query
stringlengths 7
33.1k
| document
stringlengths 7
335k
| metadata
dict | negatives
sequencelengths 3
101
| negative_scores
sequencelengths 3
101
| document_score
stringlengths 3
10
| document_rank
stringclasses 102
values |
---|---|---|---|---|---|---|
TODO Autogenerated method stub | @Override
public List<TopicContent> findAllByExample(TopicContent entity) {
return topicContentDao.findAllByExample(entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public TopicContent findById(Serializable id) {
return topicContentDao.findById(id);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public Serializable save(TopicContent entity) {
return topicContentDao.save(entity);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
@Transactional
public void saveOrUpdate(TopicContent entity) {
topicContentDao.saveOrUpdate(entity);
} | {
"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 |
Constructors Create a detached OrderLogRecord | public OrderLogRecord() {
super(OrderLog.ORDER_LOG);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderLogRecord(Integer id, Integer orderId, Byte status, Timestamp changeTime) {\n super(OrderLog.ORDER_LOG);\n\n set(0, id);\n set(1, orderId);\n set(2, status);\n set(3, changeTime);\n }",
"public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }",
"private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public PedidoRecord() {\n super(Pedido.PEDIDO);\n }",
"public ZLogRecord() {\n super(ZLog.Z_LOG);\n }",
"public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }",
"public CheckpointRecord(BasicLogRecord rec) {\r\n\t\tint txCount = (Integer) rec.nextVal(INTEGER).asJavaVal();\r\n\t\tthis.lsn = rec.getLSN();\r\n\t\tthis.txNums = new ArrayList<Long>();\r\n\t\tfor (int i = 0; i < txCount; i++) {\r\n\t\t\ttxNums.add((Long) rec.nextVal(BIGINT).asJavaVal());\r\n\t\t}\r\n\t}",
"public OrderLine() {\n }",
"public EmployeeRecord(){}",
"public LogContract(){}",
"public LogEntry () {\n }",
"private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }",
"public Order() {\n\t}",
"public ServiceOrderRecord(Integer orderId, Integer storeId, String orderSn, Integer userId, Byte orderStatus, String orderStatusName, String subscriber, String mobile, Integer serviceId, Integer technicianId, String technicianName, String serviceDate, String servicePeriod, String addMessage, String adminMessage, String verifyCode, String verifyAdmin, String payCode, String payName, String paySn, BigDecimal moneyPaid, BigDecimal discount, Integer couponId, BigDecimal orderAmount, Timestamp payTime, Timestamp cancelledTime, Timestamp finishedTime, String prepayId, Byte delFlag, Byte verifyType, String cancelReason, Byte type, Byte verifyPay, String aliTradeNo, Timestamp createTime, Timestamp updateTime, String memberCardNo, BigDecimal memberCardBalance, BigDecimal useAccount) {\n super(ServiceOrder.SERVICE_ORDER);\n\n set(0, orderId);\n set(1, storeId);\n set(2, orderSn);\n set(3, userId);\n set(4, orderStatus);\n set(5, orderStatusName);\n set(6, subscriber);\n set(7, mobile);\n set(8, serviceId);\n set(9, technicianId);\n set(10, technicianName);\n set(11, serviceDate);\n set(12, servicePeriod);\n set(13, addMessage);\n set(14, adminMessage);\n set(15, verifyCode);\n set(16, verifyAdmin);\n set(17, payCode);\n set(18, payName);\n set(19, paySn);\n set(20, moneyPaid);\n set(21, discount);\n set(22, couponId);\n set(23, orderAmount);\n set(24, payTime);\n set(25, cancelledTime);\n set(26, finishedTime);\n set(27, prepayId);\n set(28, delFlag);\n set(29, verifyType);\n set(30, cancelReason);\n set(31, type);\n set(32, verifyPay);\n set(33, aliTradeNo);\n set(34, createTime);\n set(35, updateTime);\n set(36, memberCardNo);\n set(37, memberCardBalance);\n set(38, useAccount);\n }",
"public PersonRecord() {}",
"public ClearMoneyLogRecord() {\n super(ClearMoneyLog.CLEAR_MONEY_LOG);\n }",
"public OrderInventedRecord() {\n super(OrderInvented.ORDER_INVENTED);\n }",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"public Order() {\n }",
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"public GenericTcalRecord() {\n this(-1);\n }",
"public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }",
"public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}",
"public MessageRecord() {\n super(Message.MESSAGE);\n }",
"OrderDTO create(OrderDTO orderDTO);",
"public LockRecord(NodeId nodeId, Record record, String workspace) {\n super(record, workspace);\n\n this.nodeId = nodeId;\n this.isLock = false;\n }",
"public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }",
"public DebugLogEntry(DebugLogEntry source) {\n if (source.Id != null) {\n this.Id = new String(source.Id);\n }\n if (source.Event != null) {\n this.Event = new String(source.Event);\n }\n if (source.LogType != null) {\n this.LogType = new String(source.LogType);\n }\n if (source.Timestamp != null) {\n this.Timestamp = new Long(source.Timestamp);\n }\n if (source.Result != null) {\n this.Result = new String(source.Result);\n }\n if (source.Data != null) {\n this.Data = new String(source.Data);\n }\n if (source.Topic != null) {\n this.Topic = new String(source.Topic);\n }\n if (source.DeviceName != null) {\n this.DeviceName = new String(source.DeviceName);\n }\n }",
"public History(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"public CommAreaRecord() {\n\t}",
"protected EqpmentLogExample(EqpmentLogExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }",
"public ARecord() {\n super(A.A);\n }",
"public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}",
"public DoctorRecord() {\n super(Doctor.DOCTOR);\n }",
"void create(Order order);",
"RecordInfo clone();",
"public Order() {\n\t\tthis.orderID = DataHolder.getInstance().getLastOrderId() + 1;\n\t\tthis.dateOrdered = new Date();\n\t\tthis.dateFilled = null;\n\t\tthis.projectedDate = addDays(dateOrdered,1);\n\t}",
"public TradeRecordStruct() {\n }",
"public OrderItem() {}",
"public PanoOrderTransCriteria(Object record, PanoOrderTransCriteria example) {\r\n this.record = record;\r\n this.orderByClause = example.orderByClause;\r\n this.oredCriteria = example.oredCriteria;\r\n }",
"private JournalEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public SalesRecords() {\n super();\n }",
"public TExpressOrderRecord(Integer id, Integer userId, String expressNumber, String expressCompanyName, ExpressCompanyType expressCompany, String phone, String address, String studentName, LocalDateTime accessDay, String accessNumber, OrderType orderType, String orderTypeName, String remark, LocalDateTime createTime, Integer createUser, String createUserName, LocalDateTime updateTime, Integer updateUser, String updateUserName, LocalDateTime deleteTime, Integer deleteUser, String deleteUserName, Byte enabled, LocalDateTime dataVersion) {\n super(TExpressOrder.T_EXPRESS_ORDER);\n\n set(0, id);\n set(1, userId);\n set(2, expressNumber);\n set(3, expressCompanyName);\n set(4, expressCompany);\n set(5, phone);\n set(6, address);\n set(7, studentName);\n set(8, accessDay);\n set(9, accessNumber);\n set(10, orderType);\n set(11, orderTypeName);\n set(12, remark);\n set(13, createTime);\n set(14, createUser);\n set(15, createUserName);\n set(16, updateTime);\n set(17, updateUser);\n set(18, updateUserName);\n set(19, deleteTime);\n set(20, deleteUser);\n set(21, deleteUserName);\n set(22, enabled);\n set(23, dataVersion);\n }",
"public LockRecord(NodeId nodeId, boolean isDeep, String lockOwner,\n Record record, String workspace) {\n super(record, workspace);\n\n this.nodeId = nodeId;\n this.isLock = true;\n this.isDeep = isDeep;\n this.lockOwner = lockOwner;\n }",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"public BookRecord() {\n super(Book.BOOK);\n }",
"public TAssetsDeviceRecord(Long id, Integer customerId, String orderId, Integer productId, String sn, String title, String companyName, Date startDate, Date endDate, BigDecimal deposit, BigDecimal rent, BigDecimal marketPrice, Byte status, Byte rentStatus, Integer belongId, Timestamp cdate, Timestamp mdate) {\n super(TAssetsDevice.T_ASSETS_DEVICE);\n\n set(0, id);\n set(1, customerId);\n set(2, orderId);\n set(3, productId);\n set(4, sn);\n set(5, title);\n set(6, companyName);\n set(7, startDate);\n set(8, endDate);\n set(9, deposit);\n set(10, rent);\n set(11, marketPrice);\n set(12, status);\n set(13, rentStatus);\n set(14, belongId);\n set(15, cdate);\n set(16, mdate);\n }",
"public BaseRecord(String date, String comment, String problemUID, String title){\n this.UID = UUID.randomUUID().toString();\n this.title = title;\n this.date = date;\n this.comment = comment;\n this.problemUID = problemUID;\n }",
"DataHRecordData() {}",
"public LogEmailSendrecordDao() {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class);\n }",
"public BaseOrder (java.lang.Long id) {\r\n\t\tthis.setId(id);\r\n\t\tinitialize();\r\n\t}",
"protected Order(String custFName, String custLName, String custEmail, int orderID,\n Timestamp creationDate, double totalDue, String status, String salesFName,\n String salesLName,\n String salesEmail) {\n this.custFName = custFName;\n this.custLName = custLName;\n this.custEmail = custEmail;\n this.orderID = orderID;\n this.creationDate = creationDate;\n this.totalDue = totalDue;\n this.status = status;\n this.salesFName = salesFName;\n this.salesLName = salesLName;\n this.salesEmail = salesEmail;\n products = new ArrayList<>();\n }",
"public DoctorRecord(Integer id, Integer age, Integer workTime, Byte sex, String name, String url, Byte duty, String hospitalCode, String certificateCode, String professionalCode, Date registerTime, String registerHospital, String mobile, Integer titleId, BigDecimal consultationPrice, String treatDisease, Byte status, Integer userId, Byte isDelete, Timestamp createTime, Timestamp updateTime, Timestamp onDutyTime, Byte isOnDuty, Byte canConsultation, Integer avgAnswerTime, Integer consultationNumber, BigDecimal avgCommentStar, Integer attentionNumber, String userToken, Timestamp authTime, BigDecimal consultationTotalMoney, Byte isFetch, String signature) {\n super(Doctor.DOCTOR);\n\n set(0, id);\n set(1, age);\n set(2, workTime);\n set(3, sex);\n set(4, name);\n set(5, url);\n set(6, duty);\n set(7, hospitalCode);\n set(8, certificateCode);\n set(9, professionalCode);\n set(10, registerTime);\n set(11, registerHospital);\n set(12, mobile);\n set(13, titleId);\n set(14, consultationPrice);\n set(15, treatDisease);\n set(16, status);\n set(17, userId);\n set(18, isDelete);\n set(19, createTime);\n set(20, updateTime);\n set(21, onDutyTime);\n set(22, isOnDuty);\n set(23, canConsultation);\n set(24, avgAnswerTime);\n set(25, consultationNumber);\n set(26, avgCommentStar);\n set(27, attentionNumber);\n set(28, userToken);\n set(29, authTime);\n set(30, consultationTotalMoney);\n set(31, isFetch);\n set(32, signature);\n }",
"LockRecord(Record record, String workspace) {\n super(record, workspace);\n }",
"public SongRecord(){\n\t}",
"public AuthorRecord() {\n super(Author.AUTHOR);\n }",
"public PointRecord(){\n \n }",
"public FlightOrder(Flight flight, Order order) {\n\t\tsuper();\n\t\tthis.flight = flight;\n\t\tthis.order = order;\n\t\tthis.tickets = new HashSet<FlightTicket>();\n\t}",
"public ResourceDowntimeRecord(ResourceDowntimeRecord copy) {\r\n\t\tid = copy.id;\r\n\t\ttimestamp = copy.timestamp;\r\n created = copy.created;\r\n\t\tstart_time = copy.start_time;\r\n\t\tend_time = copy.end_time;\r\n\t\tdowntime_summary = copy.downtime_summary;\r\n\t\tdowntime_class_id = copy.downtime_class_id;\r\n\t\tdowntime_severity_id = copy.downtime_severity_id;\r\n\t\tresource_id = copy.resource_id;\r\n\t\tdn_id = copy.dn_id;\r\n\t\tsso_id = copy.sso_id;\r\n\t\tdisable = copy.disable;\r\n\t}",
"public RedpacketActivityOperationLog() {\n this(\"redpacket_activity_operation_log\", null);\n }",
"private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Order(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Long createRecord(Record object);",
"public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}",
"public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }",
"public CharacterPartyRecord() {\n super(CharacterParty.CHARACTER_PARTY);\n }",
"public TicketLogEntry(int r, String l, User u, Timestamp d){\n\t\tid = 0;\n\t\tticketID = r;\n\t\tlogEntry = l;\n\t\tperformedBy = u;\n\t\tperformedDate = d;\n\t}",
"public TLogEntity(TLogEntity other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetTitle()) {\n this.Title = other.Title;\n }\n if (other.isSetMessage()) {\n this.Message = other.Message;\n }\n this.Level = other.Level;\n this.Time = other.Time;\n if (other.isSetSource()) {\n this.Source = other.Source;\n }\n this.Thread = other.Thread;\n if (other.isSetTags()) {\n Map<String,String> __this__Tags = new HashMap<String,String>(other.Tags);\n this.Tags = __this__Tags;\n }\n }",
"@Override\r\n\tpublic ItemLog createItemLog() {\n\t\treturn new HpLog();\r\n\t}",
"@Test\n public void constructorNullPreviousNotificationLogId() {\n new NotificationLog(currentNotificationLogId, nextNotificationLogId, null, notifications, true);\n }",
"public void insertHistory(RecordDTO recordDTO);",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"public Log() { //Null constructor is adequate as all values start at zero\n\t}",
"public LateComingRecord() {\n\t\t}",
"public Order() {\n\t\tsuper();\n\t\titems = new HashMap<>();\n\t}",
"private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }",
"public ZLogRecord(UInteger id, Timestamp ltime, String ltype, String name, String descr) {\n super(ZLog.Z_LOG);\n\n set(0, id);\n set(1, ltime);\n set(2, ltype);\n set(3, name);\n set(4, descr);\n }",
"public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}",
"public IndexRecord()\n {\n }",
"public Order() {\n\t\tsuper();\n\t\tcurrentOrder += 1;\n\t\torderNumber = currentOrder;\n\t\tthis.orderPrice.setScale(2, BigDecimal.ROUND_HALF_EVEN);\n\t}",
"public DataRecord() {\n super(DataTable.DATA);\n }",
"public MetricSchemaRecord() { }",
"public SalesRecord() {\n super(Sales.SALES);\n }",
"public SourceRecord() {\n super(Source.SOURCE);\n }",
"private Log()\n {\n //Hides implicit constructor.\n }",
"private TicketLog createLog() throws SQLException {\n\t\t\t\t\treturn new TicketLog(rs.getLong(1), rs.getString(2),\n\t\t\t\t\t\t\trs.getLong(3),\n\t\t\t\t\t\t\tTicketLog.Action.valueOf(rs.getString(4)),\n\t\t\t\t\t\t\trs.getInt(5));\n\t\t\t\t}",
"public PaymentRecordKey(String recordId, String ordersId, String buildDay) {\n this.recordId = recordId;\n this.ordersId = ordersId;\n this.buildDay = buildDay;\n }",
"public LogBook() {\n logs = new UniqueLogList();\n exercises = new UniqueExerciseList();\n }",
"public ProductTestReport(Long id)\n/* 26: */ {\n/* 27:27 */ super(id);\n/* 28: */ }",
"LogRecord saveLog(LogRecord logRecord);",
"public ServiceRecordDisk(final ServiceRecordDisk o)\r\n { \r\n this.records = o.records;\r\n this.recordsByMemberNum = o.recordsByMemberNum;\r\n this.recordsByProviderNum = o.recordsByProviderNum;\r\n }",
"public PurchaseRequestAttachment() {\r\n }",
"public Order(long price, long quantity, long seqNo) {\n this.price = price;\n this.quantity = quantity;\n this.seqNo = seqNo;\n }",
"protected TUserMessageRecordExample(TUserMessageRecordExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }",
"public StudentRecord() {}",
"public Order(int _orderId){\n this.orderId = _orderId;\n }",
"private OrderKey(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public TagRecord() {\n super(Tag.TAG);\n }",
"public SupplyOrder(SupplyOrder otherOrder){\n if(otherOrder!=null){\n this.orderID=otherOrder.getOrderID();\n this.setCustomerID(otherOrder.getCustomerID());\n this.setProductID(otherOrder.getProductID());\n this.setOrderDate(otherOrder.getOrderDate());\n this.setAmount(otherOrder.getAmount());\n }\n else{\n this.orderID=0;\n this.setCustomerID(\"\");\n this.setProductID(\"\");\n this.setOrderDate(new LocalDate());\n this.setAmount(0.0);\n }\n }"
] | [
"0.6770165",
"0.61447936",
"0.6105364",
"0.6032559",
"0.6028659",
"0.5946867",
"0.59333056",
"0.59249943",
"0.5798283",
"0.5709393",
"0.5693065",
"0.569222",
"0.56332064",
"0.56045175",
"0.5598732",
"0.55819243",
"0.5571951",
"0.5561362",
"0.5540062",
"0.5530701",
"0.5515847",
"0.5479235",
"0.54588675",
"0.54531574",
"0.5450333",
"0.5401588",
"0.53938854",
"0.5393543",
"0.5388247",
"0.5375543",
"0.5349284",
"0.5340112",
"0.53210545",
"0.532103",
"0.5315356",
"0.5308867",
"0.5296754",
"0.52926046",
"0.52877426",
"0.5279259",
"0.52315664",
"0.522918",
"0.52246356",
"0.52098024",
"0.5202662",
"0.5190249",
"0.5182898",
"0.51824445",
"0.5173624",
"0.5173152",
"0.51726043",
"0.51701707",
"0.51614845",
"0.5156198",
"0.5155387",
"0.51369846",
"0.5126838",
"0.5118391",
"0.51181716",
"0.5098868",
"0.5094214",
"0.50851226",
"0.5081472",
"0.50699043",
"0.5062885",
"0.50565475",
"0.5052281",
"0.5042684",
"0.5039442",
"0.50305295",
"0.5028957",
"0.50274944",
"0.5017684",
"0.5012803",
"0.5005734",
"0.50055593",
"0.49952427",
"0.49938214",
"0.49840248",
"0.49817437",
"0.49735358",
"0.49699306",
"0.4969856",
"0.49668738",
"0.49611312",
"0.49578205",
"0.49511072",
"0.49493775",
"0.49453893",
"0.4944786",
"0.49395993",
"0.4936981",
"0.49368367",
"0.49338567",
"0.49327368",
"0.4929692",
"0.49242008",
"0.49216047",
"0.49163434",
"0.49084747"
] | 0.761623 | 0 |
Create a detached, initialised OrderLogRecord | public OrderLogRecord(Integer id, Integer orderId, Byte status, Timestamp changeTime) {
super(OrderLog.ORDER_LOG);
set(0, id);
set(1, orderId);
set(2, status);
set(3, changeTime);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OrderLogRecord() {\n super(OrderLog.ORDER_LOG);\n }",
"public ZLogRecord() {\n super(ZLog.Z_LOG);\n }",
"public ServiceOrderRecord() {\n super(ServiceOrder.SERVICE_ORDER);\n }",
"private LogRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Order(Builder builder) {\r\n this.id = builder.id;\r\n this.orderDate = builder.orderDate;\r\n //this.orderLine = builder.orderLine;\r\n }",
"public OrderInventedRecord() {\n super(OrderInvented.ORDER_INVENTED);\n }",
"public CheckpointRecord(BasicLogRecord rec) {\r\n\t\tint txCount = (Integer) rec.nextVal(INTEGER).asJavaVal();\r\n\t\tthis.lsn = rec.getLSN();\r\n\t\tthis.txNums = new ArrayList<Long>();\r\n\t\tfor (int i = 0; i < txCount; i++) {\r\n\t\t\ttxNums.add((Long) rec.nextVal(BIGINT).asJavaVal());\r\n\t\t}\r\n\t}",
"void create(Order order);",
"private ExchangeRecord(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"@Override\r\n\tpublic ItemLog createItemLog() {\n\t\treturn new HpLog();\r\n\t}",
"public OrderLine() {\n }",
"public OrderInventedRecord(Integer id, String orderSn, Integer sellerId, Integer memberId, String memberName, Byte orderState, Timestamp payTime, Byte paymentStatus, Byte invoiceStatus, String invoiceTitle, Byte invioceState, String invoiceType, BigDecimal moneyProduct, BigDecimal moneyOrder, BigDecimal moneyPaidBalance, BigDecimal moneyPaidReality, BigDecimal moneyGiftcardAmount, BigDecimal moneyCouponcode, BigDecimal moneyLowerAmount, BigDecimal moneyBack, Integer moneyIntegral, Integer lowerId, Integer giftcardId, Integer couponcodeId, String ip, String paymentName, String paymentCode, String mobile, String codeExchange, Byte isSuccess, String email, String zipCode, String remark, Timestamp finishTime, String tradeSn, String source, Byte isGiftCardOrder, Integer productCommentsId, Timestamp createTime, Timestamp updateTime) {\n super(OrderInvented.ORDER_INVENTED);\n\n set(0, id);\n set(1, orderSn);\n set(2, sellerId);\n set(3, memberId);\n set(4, memberName);\n set(5, orderState);\n set(6, payTime);\n set(7, paymentStatus);\n set(8, invoiceStatus);\n set(9, invoiceTitle);\n set(10, invioceState);\n set(11, invoiceType);\n set(12, moneyProduct);\n set(13, moneyOrder);\n set(14, moneyPaidBalance);\n set(15, moneyPaidReality);\n set(16, moneyGiftcardAmount);\n set(17, moneyCouponcode);\n set(18, moneyLowerAmount);\n set(19, moneyBack);\n set(20, moneyIntegral);\n set(21, lowerId);\n set(22, giftcardId);\n set(23, couponcodeId);\n set(24, ip);\n set(25, paymentName);\n set(26, paymentCode);\n set(27, mobile);\n set(28, codeExchange);\n set(29, isSuccess);\n set(30, email);\n set(31, zipCode);\n set(32, remark);\n set(33, finishTime);\n set(34, tradeSn);\n set(35, source);\n set(36, isGiftCardOrder);\n set(37, productCommentsId);\n set(38, createTime);\n set(39, updateTime);\n }",
"public LogContract(){}",
"public PedidoRecord() {\n super(Pedido.PEDIDO);\n }",
"public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}",
"public Order() {\n orderID = \"\";\n customerID = \"\";\n status = \"\";\n }",
"public LogEntry () {\n }",
"public Order() {\n\t\tthis.orderID = DataHolder.getInstance().getLastOrderId() + 1;\n\t\tthis.dateOrdered = new Date();\n\t\tthis.dateFilled = null;\n\t\tthis.projectedDate = addDays(dateOrdered,1);\n\t}",
"public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}",
"private LogRecord createLogRecordInOtherThread() {\n class MyThread extends Thread {\n\n LogRecord record;\n\n public void run() {\n record = new LogRecord(Level.INFO, \"foobar\");\n }\n\n public LogRecord getRecord() {\n return record;\n }\n };\n\n MyThread theThread = new MyThread();\n try {\n theThread.start();\n theThread.join();\n return theThread.getRecord();\n } catch (InterruptedException _) {\n return null;\n }\n }",
"public ClearMoneyLogRecord() {\n super(ClearMoneyLog.CLEAR_MONEY_LOG);\n }",
"public Order() {\n\t}",
"public EmployeeRecord(){}",
"public PersonRecord() {}",
"public Long createRecord(Record object);",
"public MessageRecord() {\n super(Message.MESSAGE);\n }",
"public abstract ExternalRecord createExternalRecord()\r\n\t\t\tthrows Exception;",
"public ServiceOrderRecord(Integer orderId, Integer storeId, String orderSn, Integer userId, Byte orderStatus, String orderStatusName, String subscriber, String mobile, Integer serviceId, Integer technicianId, String technicianName, String serviceDate, String servicePeriod, String addMessage, String adminMessage, String verifyCode, String verifyAdmin, String payCode, String payName, String paySn, BigDecimal moneyPaid, BigDecimal discount, Integer couponId, BigDecimal orderAmount, Timestamp payTime, Timestamp cancelledTime, Timestamp finishedTime, String prepayId, Byte delFlag, Byte verifyType, String cancelReason, Byte type, Byte verifyPay, String aliTradeNo, Timestamp createTime, Timestamp updateTime, String memberCardNo, BigDecimal memberCardBalance, BigDecimal useAccount) {\n super(ServiceOrder.SERVICE_ORDER);\n\n set(0, orderId);\n set(1, storeId);\n set(2, orderSn);\n set(3, userId);\n set(4, orderStatus);\n set(5, orderStatusName);\n set(6, subscriber);\n set(7, mobile);\n set(8, serviceId);\n set(9, technicianId);\n set(10, technicianName);\n set(11, serviceDate);\n set(12, servicePeriod);\n set(13, addMessage);\n set(14, adminMessage);\n set(15, verifyCode);\n set(16, verifyAdmin);\n set(17, payCode);\n set(18, payName);\n set(19, paySn);\n set(20, moneyPaid);\n set(21, discount);\n set(22, couponId);\n set(23, orderAmount);\n set(24, payTime);\n set(25, cancelledTime);\n set(26, finishedTime);\n set(27, prepayId);\n set(28, delFlag);\n set(29, verifyType);\n set(30, cancelReason);\n set(31, type);\n set(32, verifyPay);\n set(33, aliTradeNo);\n set(34, createTime);\n set(35, updateTime);\n set(36, memberCardNo);\n set(37, memberCardBalance);\n set(38, useAccount);\n }",
"private Record generateRecord(int tenantId, String tableName, String logLevel, String message,\n\t long time, int timeOffset, boolean generateRecordIds) {\n\n\t\tMap<String, Object> values = new HashMap<String, Object>();\n\t\tvalues.put(\"log_level\", logLevel);\n\t\tvalues.put(\"tenant\", tenantId);\n\t\tvalues.put(\"message\", \"Important syslog with tenant ID: \" + tenantId + \"and message:\" +\n\t\t message);\n\t\tlong timeTmp;\n\t\tif (time != -1) {\n\t\t\ttimeTmp = time;\n\t\t\ttime += timeOffset;\n\t\t} else {\n\t\t\ttimeTmp = System.currentTimeMillis();\n\t\t}\n\t\treturn new Record(generateRecordIds ? GenericUtils.generateRecordID() : null, tenantId,\n\t\t tableName, values, timeTmp);\n\t}",
"DataHRecordData() {}",
"@Override\n\tpublic Order create(Order order) {\n\t\ttry (Connection connection = DBUtils.getInstance().getConnection();\n\t\t\t\tStatement statement = connection.createStatement();) {\n\t\t\tstatement.executeUpdate(\"INSERT INTO orders(customer_id) VALUES ('\" + order.getCustomer_id() + \"')\");\n\t\t\treturn readLatest();\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.debug(e);\n\t\t\tLOGGER.error(e.getMessage());\n\t\t}\n\t\treturn null;\n\t}",
"OrderDTO create(OrderDTO orderDTO);",
"public LockRecord(NodeId nodeId, Record record, String workspace) {\n super(record, workspace);\n\n this.nodeId = nodeId;\n this.isLock = false;\n }",
"public void create(Order order) {\n order_dao.create(order);\n }",
"public OrderLine() {\n products = new ArrayList<>();\n price = new BigDecimal(0);\n }",
"public void startOrder() {\r\n this.o= new Order();\r\n }",
"public Order() {\n }",
"public LateComingRecord() {\n\t\t}",
"public TExpressOrderRecord() {\n super(TExpressOrder.T_EXPRESS_ORDER);\n }",
"protected EqpmentLogExample(EqpmentLogExample example) {\n this.orderByClause = example.orderByClause;\n this.oredCriteria = example.oredCriteria;\n }",
"public ExternalRequestHistoryRecord() {\n super(ExternalRequestHistory.EXTERNAL_REQUEST_HISTORY);\n }",
"LogRecord saveLog(LogRecord logRecord);",
"public Record(Record other) {\n if (other.isSetAttrs()) {\n List<AttrVal> __this__attrs = new ArrayList<AttrVal>(other.attrs.size());\n for (AttrVal other_element : other.attrs) {\n __this__attrs.add(new AttrVal(other_element));\n }\n this.attrs = __this__attrs;\n }\n }",
"public TradeRecordStruct() {\n }",
"public static OrdersLine createEntity(EntityManager em) {\n OrdersLine ordersLine = new OrdersLine()\n .ordersLineName(DEFAULT_ORDERS_LINE_NAME)\n .ordersLineValue(DEFAULT_ORDERS_LINE_VALUE)\n .ordersLinePrice(DEFAULT_ORDERS_LINE_PRICE)\n .ordersLineDescription(DEFAULT_ORDERS_LINE_DESCRIPTION)\n .thumbnailPhoto(DEFAULT_THUMBNAIL_PHOTO)\n .thumbnailPhotoContentType(DEFAULT_THUMBNAIL_PHOTO_CONTENT_TYPE)\n .fullPhoto(DEFAULT_FULL_PHOTO)\n .fullPhotoContentType(DEFAULT_FULL_PHOTO_CONTENT_TYPE)\n .fullPhotoUrl(DEFAULT_FULL_PHOTO_URL)\n .thumbnailPhotoUrl(DEFAULT_THUMBNAIL_PHOTO_URL);\n return ordersLine;\n }",
"public LogEmailSendrecordDao() {\n super(LogEmailSendrecord.LOG_EMAIL_SENDRECORD, com.moseeker.baseorm.db.logdb.tables.pojos.LogEmailSendrecord.class);\n }",
"private TicketLog createLog() throws SQLException {\n\t\t\t\t\treturn new TicketLog(rs.getLong(1), rs.getString(2),\n\t\t\t\t\t\t\trs.getLong(3),\n\t\t\t\t\t\t\tTicketLog.Action.valueOf(rs.getString(4)),\n\t\t\t\t\t\t\trs.getInt(5));\n\t\t\t\t}",
"public Packet(final long unique) {\r\n\t\ttype = EvidenceType.NONE;\r\n\t\tcommand = EvidenceBuilder.LOG_CREATE;\r\n\t\tid = unique;\r\n\t\tdata = null;\r\n\t}",
"public void OrderHistoryInit() {\n orderId = -1;\n ArrayList<Orders> orders = new OrdersBean().getFromUsername(Global.getUsername());\n setDataModel(orders);\n orderTable.setModel(dtm);\n setVisible(true);\n }",
"public void create(Order order) {\n\t\torderDao.create(order);\n\t}",
"@Override\n public Order create(Order order) {\n this.orders.add(order);\n save();\n return order;\n }",
"public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}",
"protected void perRecordInit(Record record)\n {\n }",
"private DAPMessage constructFrom(DatabaseTableRecord record) {\n return DAPMessage.fromXML(record.getStringValue(CommunicationNetworkServiceDatabaseConstants.DAP_MESSAGE_DATA_COLUMN_NAME));\n }",
"public static PostponeRecord createEntity(EntityManager em) {\n PostponeRecord postponeRecord = new PostponeRecord()\n .driverId(DEFAULT_DRIVER_ID)\n .vehicleId(DEFAULT_VEHICLE_ID)\n .companyId(DEFAULT_COMPANY_ID)\n .receiptNumber(DEFAULT_RECEIPT_NUMBER)\n .operationTime(DEFAULT_OPERATION_TIME)\n .plateNumber(DEFAULT_PLATE_NUMBER)\n .driverName(DEFAULT_DRIVER_NAME)\n .postponeData(DEFAULT_POSTPONE_DATA)\n .remark(DEFAULT_REMARK);\n return postponeRecord;\n }",
"public static SyncHistory createEntity() {\n return new SyncHistory();\n }",
"public void createNewOrder()\n\t{\n\t\tnew DataBaseOperationAsyn().execute();\n\t}",
"public LockRecord(NodeId nodeId, boolean isDeep, String lockOwner,\n Record record, String workspace) {\n super(record, workspace);\n\n this.nodeId = nodeId;\n this.isLock = true;\n this.isDeep = isDeep;\n this.lockOwner = lockOwner;\n }",
"public DefaultRecord(long pos, ByteBuffer buf) {\n _pos = pos;\n _buf = buf;\n }",
"@Test\n public void constructorNullPreviousNotificationLogId() {\n new NotificationLog(currentNotificationLogId, nextNotificationLogId, null, notifications, true);\n }",
"public OrderItem() {}",
"LockRecord(Record record, String workspace) {\n super(record, workspace);\n }",
"public CommAreaRecord() {\n\t}",
"public void insertHistory(RecordDTO recordDTO);",
"int insert(NjOrderCallbackLog record);",
"private PassageRecord(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public PurchaseRequestAttachment() {\r\n }",
"public History(ArrayList<Order> orders) {\n this.orders = orders;\n }",
"public TExpressOrderRecord(Integer id, Integer userId, String expressNumber, String expressCompanyName, ExpressCompanyType expressCompany, String phone, String address, String studentName, LocalDateTime accessDay, String accessNumber, OrderType orderType, String orderTypeName, String remark, LocalDateTime createTime, Integer createUser, String createUserName, LocalDateTime updateTime, Integer updateUser, String updateUserName, LocalDateTime deleteTime, Integer deleteUser, String deleteUserName, Byte enabled, LocalDateTime dataVersion) {\n super(TExpressOrder.T_EXPRESS_ORDER);\n\n set(0, id);\n set(1, userId);\n set(2, expressNumber);\n set(3, expressCompanyName);\n set(4, expressCompany);\n set(5, phone);\n set(6, address);\n set(7, studentName);\n set(8, accessDay);\n set(9, accessNumber);\n set(10, orderType);\n set(11, orderTypeName);\n set(12, remark);\n set(13, createTime);\n set(14, createUser);\n set(15, createUserName);\n set(16, updateTime);\n set(17, updateUser);\n set(18, updateUserName);\n set(19, deleteTime);\n set(20, deleteUser);\n set(21, deleteUserName);\n set(22, enabled);\n set(23, dataVersion);\n }",
"public GenericTcalRecord() {\n this(-1);\n }",
"public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }",
"public Order() {\n\t\tsuper();\n\t\tcurrentOrder += 1;\n\t\torderNumber = currentOrder;\n\t\tthis.orderPrice.setScale(2, BigDecimal.ROUND_HALF_EVEN);\n\t}",
"public LogEntry generateLogEntry() {\n long time = getTime();\n int bloodGlucose = getBloodGlucose();\n double bolus = getBolus();\n int carbohydrate = getCarbohydrate();\n return new LogEntry(time, bloodGlucose, bolus, carbohydrate);\n }",
"private JournalEntry(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"@Transactional(propagation=Propagation.REQUIRES_NEW)\r\n\tpublic void createError(){\r\n\t\tOrder newOrder = new Order( );\r\n\t\tnewOrder.setDescription(\"Service layer added \"+Calendar.getInstance().getTime());\r\n\t\tspringOrderDao.errorSave(newOrder);\r\n\t}",
"public DebugLogEntry(DebugLogEntry source) {\n if (source.Id != null) {\n this.Id = new String(source.Id);\n }\n if (source.Event != null) {\n this.Event = new String(source.Event);\n }\n if (source.LogType != null) {\n this.LogType = new String(source.LogType);\n }\n if (source.Timestamp != null) {\n this.Timestamp = new Long(source.Timestamp);\n }\n if (source.Result != null) {\n this.Result = new String(source.Result);\n }\n if (source.Data != null) {\n this.Data = new String(source.Data);\n }\n if (source.Topic != null) {\n this.Topic = new String(source.Topic);\n }\n if (source.DeviceName != null) {\n this.DeviceName = new String(source.DeviceName);\n }\n }",
"public ARecord() {\n super(A.A);\n }",
"@Override\r\n\tpublic Order create(Order order) {\r\n\t\ttry (Connection connection = JDBCUtils.getInstance().getConnection();\r\n\t\t\t\tStatement statement = connection.createStatement();) {\r\n\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders(customer_id) values(%d)\",\r\n\t\t\t\t\torder.getCustomer().getId()));\r\n\t\t\t\tHashMap<Item, Long> items = order.getItems();\r\n\t\t\t\tfor (Entry<Item, Long> entry : items.entrySet()) {\r\n\t\t\t\t\tstatement.executeUpdate(String.format(\"INSERT INTO orders_items(order_id, item_id, quantity) \"\r\n\t\t\t\t\t\t\t+ \"values(last_insert_id(), %d, %d)\", entry.getKey().getId(), entry.getValue()));\r\n\t\t\t\t}\r\n\t\t\treturn readLatest();\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOGGER.debug(e);\r\n\t\t\tLOGGER.error(e.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"protected static LogRecord getLogRecord( SharedLevel pLevel, int pLogId ) {\n\n // Aux vars\n int i = 0;\n String className = null;\n\n // Get the stack trace\n StackTraceElement stackTraceElement = null;\n StackTraceElement[] stackTrace = ( new Throwable() ).getStackTrace();\n\n // Get the location\n for( i=0; i<stackTrace.length; i++ ) {\n stackTraceElement = stackTrace[ i ];\n className = stackTrace[ i ].getClassName();\n if( className.equals( SharedException.class.getName() ) ) continue;\n break;\n }\n\n // Create the new log record\n LogRecord logRecord = new LogRecord( pLevel, \"LOG_ID_\" + pLogId + \" from \" + stackTraceElement.toString() );\n\n // Set parameters for the log record\n logRecord.setSourceClassName( stackTraceElement.getClassName() );\n logRecord.setSourceMethodName( stackTraceElement.getMethodName() );\n\n // Set the logger name using the agent id if present\n logRecord.setLoggerName( \"anonymous\" );\n SharedSecurityParam securityParam = (SharedSecurityParam) SecurityLocalThreadContext.getSecurityParam();\n if( securityParam != null ) logRecord.setLoggerName( securityParam.getAgentId() );\n\n // Send it back\n return( logRecord );\n }",
"public CreateOrderRequest() {\n\t\t_pcs = new PropertyChangeSupport(this);\n\t}",
"@Override\n\tpublic void create(StockDataRecord bo) throws SQLException, BusinessObjectException {\n\t\tthis.addRecord( bo.getPapername().toString(), bo.getDate().toString(), bo.getTime().toString(), Double.toString(bo.getClose()), Double.toString(bo.getVolume()) );\n\t\tbo.get();\n\t\t\n\t}",
"public Order() {\n\t\tsuper();\n\t\titems = new HashMap<>();\n\t}",
"public PaymentRecordKey(String recordId, String ordersId, String buildDay) {\n this.recordId = recordId;\n this.ordersId = ordersId;\n this.buildDay = buildDay;\n }",
"public void startRecord(Leader leader) {\n this.record = new Record();\n record.add(leader);\n }",
"public static OrderDetailInfo createEntity(EntityManager em) {\n OrderDetailInfo orderDetailInfo = new OrderDetailInfo()\n .productName(DEFAULT_PRODUCT_NAME)\n .priceProduct(DEFAULT_PRICE_PRODUCT)\n .quantityOrder(DEFAULT_QUANTITY_ORDER)\n .amount(DEFAULT_AMOUNT)\n .orderDate(DEFAULT_ORDER_DATE);\n return orderDetailInfo;\n }",
"private Order convertOrderElemeToOrderObj04(ISqlAdapter adapter, String orderId) throws HitspException {\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\r\n DataTable dtOrderEleme = getOrderElemeInfo(adapter, orderId);\r\n if (dtOrderEleme == null || dtOrderEleme.size() == 0) {\r\n return null;\r\n }\r\n\r\n Order order = new Order();\r\n if (!Converter.toBoolean(dtOrderEleme.get(0, \"book\"))) {\r\n //若该订单非预订单\r\n order.setDeliverTime(null);\r\n } else {\r\n //若该订单为预订单\r\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+8\"));\r\n// Date b = formatter.parse(a);\r\n// order.setDeliverTime(Converter.toDate(dtOrderEleme.get(0, \"deliverTime\")));\r\n try {\r\n order.setDeliverTime(formatter.parse(dtOrderEleme.get(0, \"deliverTime\")));\r\n } catch (ParseException e) {\r\n logger.error(\"预计送达时间处理错误\");\r\n }\r\n }\r\n order.setOrderId(dtOrderEleme.get(0, \"orderId\"));\r\n order.setId(Converter.toLong(orderId));\r\n\r\n String udate = dtOrderEleme.get(0, \"activeAt\");\r\n String cdate = dtOrderEleme.get(0, \"createdAt\");\r\n try {\r\n Date uDate = df.parse(udate);\r\n Date cDate = df.parse(cdate);\r\n order.setGmtCreate(cDate);\r\n order.setGmtModify(uDate);\r\n } catch (ParseException e) {\r\n logger.error(\"下单时间处理错误\");\r\n }\r\n\r\n order.setOrderFrom(\"15\");\r\n order.setTotalPrice(Converter.toBigDecimal(dtOrderEleme.get(0, \"totalPrice\")));\r\n order.setOriginalPrice(Converter.toBigDecimal(dtOrderEleme.get(0, \"originalPrice\")));\r\n order.setStatus(\"0\");\r\n String elemeShopId = dtOrderEleme.get(0, \"shopId\");\r\n DataTable dtShop = getShopInfoByElemeShopId(adapter, elemeShopId);\r\n if (dtShop == null || dtShop.size() == 0) {\r\n logger.error(\"饿了么({})门店不存在\", elemeShopId);\r\n return null;\r\n }\r\n\r\n order.setShopId(dtShop.get(0, \"id\"));\r\n order.setShopName(dtShop.get(0, \"name\"));\r\n// order.setShopAddress(dtOrderEleme.get(0, \"address\"));\r\n order.setShopAddress(\"\");//饿了么推送订单中无门店地址,暂置为空\r\n order.setShopPhone(null);\r\n order.setRecipientName(dtOrderEleme.get(0, \"consignee\"));\r\n order.setRecipientAddress(dtOrderEleme.get(0, \"deliveryPoiAddress\"));\r\n\r\n StringBuilder phones = new StringBuilder();\r\n JSONArray phoneList = JSON.parseArray(dtOrderEleme.get(0, \"phoneList\"));\r\n if (phoneList != null) {\r\n for (int i = 0; i < phoneList.size(); i++) {\r\n String phone = phoneList.getString(i);\r\n if (i != 0) {\r\n phones.append(\";\");\r\n }\r\n phones.append(phone);\r\n }\r\n }\r\n order.setRecipientPhone(phones.toString());\r\n\r\n order.setRecipientLongitude(Converter.toBigDecimal(dtOrderEleme.get(0, \"deliveryGeo\").split(\",\")[0]));\r\n order.setRecipientLatitude(Converter.toBigDecimal(dtOrderEleme.get(0, \"deliveryGeo\").split(\",\")[1]));\r\n order.setShippingType(\"10\");\r\n order.setShippingFee(dtOrderEleme.get(0, \"deliverFee\") == null ? BigDecimal.valueOf(0) : Converter.toBigDecimal(dtOrderEleme.get(0, \"deliverFee\")));\r\n order.setShipperName(null);\r\n order.setShipperPhone(null);\r\n order.setHasInvoiced(Converter.toBoolean(dtOrderEleme.get(0, \"invoiced\")));\r\n order.setInvoiceTitle(dtOrderEleme.get(0, \"invoice\"));\r\n order.setPackageFee(Converter.toBigDecimal(dtOrderEleme.get(0, \"packageFee\")));\r\n order.setPayType(Converter.toBoolean(dtOrderEleme.get(0, \"onlinePaid\")) == false ? \"1\" : \"2\");\r\n order.setCaution(dtOrderEleme.get(0, \"description\"));\r\n order.setRemark(\"\");\r\n BigDecimal shopPart = Converter.toBigDecimal(dtOrderEleme.get(0, \"shopPart\"));\r\n if (shopPart.signum() == -1) {\r\n shopPart = shopPart.abs();\r\n }\r\n order.setShopPart(shopPart);\r\n order.setShopIncome(Converter.toBigDecimal(dtOrderEleme.get(0, \"income\")));\r\n BigDecimal serviceFee = Converter.toBigDecimal(dtOrderEleme.get(0, \"serviceFee\"));\r\n if (serviceFee.signum() == -1) {\r\n serviceFee = serviceFee.abs();\r\n }\r\n order.setServiceFee(serviceFee);\r\n// List<OrderDetail> detailList = convertOrderElemeToOrderDetailList(adapter, dtOrderEleme);\r\n List<OrderDetail> detailList = convertOrderElemeToOrderDetailList04(adapter, dtOrderEleme, dtShop.get(0, \"id\"));\r\n order.setDetail(detailList);\r\n return order;\r\n }",
"@Override\n\tpublic DBObject trackOrder(String orderID) {\n\t\treturn null;\n\t}",
"private RecordImpl(Table tableParent, long lRecord, URI uriTemporaryLobFolder) throws IOException\n\t{\n\t\t_tableParent\t\t\t= tableParent;\n\t\t_lRecord\t\t\t\t= lRecord;\n\t\t_uriTemporaryLobFolder\t= uriTemporaryLobFolder;\n\t\tsetRecordType(_of.createRecordType());\n\t}",
"public TAssetsDeviceRecord(Long id, Integer customerId, String orderId, Integer productId, String sn, String title, String companyName, Date startDate, Date endDate, BigDecimal deposit, BigDecimal rent, BigDecimal marketPrice, Byte status, Byte rentStatus, Integer belongId, Timestamp cdate, Timestamp mdate) {\n super(TAssetsDevice.T_ASSETS_DEVICE);\n\n set(0, id);\n set(1, customerId);\n set(2, orderId);\n set(3, productId);\n set(4, sn);\n set(5, title);\n set(6, companyName);\n set(7, startDate);\n set(8, endDate);\n set(9, deposit);\n set(10, rent);\n set(11, marketPrice);\n set(12, status);\n set(13, rentStatus);\n set(14, belongId);\n set(15, cdate);\n set(16, mdate);\n }",
"@Override\n\tpublic void createOrder(OrderDto orderDto) {\n\t\tModelMapper modelMapper = new ModelMapper();\n\t\t\n\t\tmodelMapper.getConfiguration().setMatchingStrategy(MatchingStrategies.STRICT);\n\t\t\n\t\tOrderEntity orderEntity = new OrderEntity();\n\t\t//\t\t= modelMapper.map(orderDto, OrderEntity.class);\n\t\t\n\t\t\n\t\torderEntity.setCustomerName(orderDto.getCustomer().getName());\n\t\torderEntity.setEmail(orderDto.getCustomer().getEmail());\n\t\torderEntity.setProductName(orderDto.getProduct().getName());\n\t\torderEntity.setDescription(orderDto.getProduct().getDescription());\n\t\torderEntity.setAmount(orderDto.getAmount());\n\t\torderEntity.setoId(orderDto.getoId());\n\t\torderRepository.save(orderEntity);\n\t\t\t\t\n\t}",
"private static void receiverRecordCreator(DonorReceiver acc) {\n ReceiverOrganInventory organInventory = acc.getRequiredOrgans();\n\n boolean[] organPresent = {\n organInventory.getLiver(), organInventory.getKidneys(), organInventory.getHeart(),\n organInventory.getLungs(), organInventory.getIntestine(), organInventory.getCorneas(),\n organInventory.getMiddleEars(), organInventory.getSkin(), organInventory.getBone(),\n organInventory.getBoneMarrow(), organInventory.getConnectiveTissue(),\n organInventory.getPancreas()\n };\n\n LocalDateTime[] organTimes = {\n organInventory.getLiverTimeStamp(), organInventory.getKidneysTimeStamp(),\n organInventory.getHeartTimeStamp(), organInventory.getLungsTimeStamp(),\n organInventory.getIntestineTimeStamp(), organInventory.getCorneasTimeStamp(),\n organInventory.getMiddleEarsTimeStamp(), organInventory.getSkinTimeStamp(),\n organInventory.getBoneTimeStamp(), organInventory.getBoneMarrowTimeStamp(),\n organInventory.getConnectiveTissueTimeStamp(), organInventory.getPancreasTimeStamp()\n };\n\n String[] organString = {\n \"Liver\", \"Kidneys\", \"Heart\", \"Lungs\", \"Intestines\", \"Corneas\", \"Middle Ear\", \"Skin\", \"Bone\",\n \"Bone Marrow\", \"Connective Tissue\", \"Pancreas\"\n };\n\n for (int i = 0; i < organPresent.length; i++) {\n if (organPresent[i]) {\n ReceiverRecord record = new ReceiverRecord(acc.fullName(), acc.getUserName(),\n acc.getContactDetails().getAddress().getRegion(), organTimes[i], organString[i]);\n records.add(record);\n }\n }\n }",
"public BookRecord() {\n super(Book.BOOK);\n }",
"public LogEvent newInstance()\n {\n return new LogEvent();\n }",
"public DoctorRecord() {\n super(Doctor.DOCTOR);\n }",
"private Order(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public TagRecord() {\n super(Tag.TAG);\n }",
"public Order() {\n this(DSL.name(\"order\"), null);\n }",
"void addRecord(HistoryRecord record) throws IOException;",
"RecordInfo clone();",
"public CharacterPartyRecord() {\n super(CharacterParty.CHARACTER_PARTY);\n }"
] | [
"0.73277926",
"0.59309375",
"0.5831095",
"0.58150285",
"0.55827177",
"0.5573061",
"0.5570217",
"0.5560888",
"0.55555016",
"0.5441799",
"0.5438781",
"0.54356635",
"0.5389416",
"0.5379225",
"0.5317166",
"0.53099406",
"0.5294844",
"0.5284028",
"0.528083",
"0.52381873",
"0.5237588",
"0.52374923",
"0.52087355",
"0.5197165",
"0.5181198",
"0.5177745",
"0.516764",
"0.5165151",
"0.5127522",
"0.51264447",
"0.51231325",
"0.5105916",
"0.50989074",
"0.50983095",
"0.5094657",
"0.5094434",
"0.50782216",
"0.50758165",
"0.50757146",
"0.507495",
"0.5071139",
"0.5062358",
"0.50553715",
"0.5042347",
"0.50348276",
"0.502751",
"0.50261104",
"0.5023017",
"0.5020904",
"0.50197464",
"0.50193304",
"0.500499",
"0.49988097",
"0.49970502",
"0.49921045",
"0.4987633",
"0.4985791",
"0.49826255",
"0.49664944",
"0.49608475",
"0.4938067",
"0.49347082",
"0.49259964",
"0.49235925",
"0.48928192",
"0.48923403",
"0.48791835",
"0.48785013",
"0.4872754",
"0.48717296",
"0.48715466",
"0.48639977",
"0.48539877",
"0.48385516",
"0.4833806",
"0.4830686",
"0.4827611",
"0.4822266",
"0.4820418",
"0.48169923",
"0.4813561",
"0.48125795",
"0.48098075",
"0.4806994",
"0.48057032",
"0.4805459",
"0.48031285",
"0.48029083",
"0.47985584",
"0.4796391",
"0.47883034",
"0.47818157",
"0.47792387",
"0.47754216",
"0.47677267",
"0.4764689",
"0.47636837",
"0.47619012",
"0.47583127",
"0.47557247"
] | 0.63250244 | 1 |
dialogue/EmitterOperations.java . Generated by the IDLtoJava compiler (portable), version "3.2" from emitter.idl samedi 3 janvier 2015 12 h 03 CET | public interface EmitterOperations {
void sendMessage(String to, String message) throws dialogue.notExistingPseudo;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Emitter getEmitter()\n {\n return emit;\n }",
"public interface Emitter extends UnaryVoidFunction<MethodVisitor> {\n }",
"public interface EventEmitter\n{\n\n public abstract void disable();\n\n public abstract void emit(String s);\n\n public abstract void emit(String s, Map map);\n\n public abstract void enable();\n\n public abstract void off();\n\n public abstract void off(String s, int i);\n\n public abstract int on(String s, EventListener eventlistener);\n\n public abstract int once(String s, EventListener eventlistener);\n\n public abstract void request(String s, EventListener eventlistener);\n\n public abstract void request(String s, Map map, EventListener eventlistener);\n\n public abstract void respond(Event event);\n\n public abstract void respond(Map map);\n}",
"@Override\n public void codegen(Emitter output) {\n }",
"public abstract void emit(EventsHandler handler);",
"public void emit(OpCode opcode){\n\t\t\n\t}",
"public abstract void emitCode(CodeEmitter ce);",
"public ObjectSequentialNumber getEmitterComponent() {\n return emitterComponent;\n }",
"@Override\n\tpublic Vector<EventI> output() {\n\t\treturn null;\n\t}",
"void emit(int i) {}",
"@Override\n public void emitOutput() {\n }",
"public SseEmitter() {}",
"public interface EventGenerator\n{\n MCEvent generate();\n void reset();\n}",
"public void setEmitterComponent(ObjectSequentialNumber emitterComponent) {\n this.emitterComponent = emitterComponent;\n }",
"public interface Ops extends OpsOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"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}",
"@Override\n\tpublic void EmitirSom() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec\\n\");\t\t\n\t}",
"void emit()\n\t\tthrows IOException;",
"protected void emit(Player p, String message) {\n }",
"public interface Outputable {\n void onOutput(String output, int id);\n}",
"public interface HelloOperations \n{\n String EqOfMotion (String v0, String t, String a);\n void shutdown ();\n}",
"public interface Event {\n public static final String NAMESPACE = \"http://purl.org/NET/c4dm/event.owl#\";\n\n // classes\n public static final URI\n Event = new URIImpl(NAMESPACE + \"Event\"),\n Factor = new URIImpl(NAMESPACE + \"Factor\"),\n Product = new URIImpl(NAMESPACE + \"Product\");\n\n // properties\n public static final URI\n agent = new URIImpl(NAMESPACE + \"agent\"),\n agent_in = new URIImpl(NAMESPACE + \"agent_in\"),\n factor = new URIImpl(NAMESPACE + \"factor\"),\n factor_of = new URIImpl(NAMESPACE + \"factor_of\"),\n hasAgent = new URIImpl(NAMESPACE + \"hasAgent\"),\n hasFactor = new URIImpl(NAMESPACE + \"hasFactor\"),\n hasLiteralFactor = new URIImpl(NAMESPACE + \"hasLiteralFactor\"),\n hasProduct = new URIImpl(NAMESPACE + \"hasProduct\"),\n hasSubEvent = new URIImpl(NAMESPACE + \"hasSubEvent\"),\n isAgentIn = new URIImpl(NAMESPACE + \"isAgentIn\"),\n isFactorOf = new URIImpl(NAMESPACE + \"isFactorOf\"),\n literal_factor = new URIImpl(NAMESPACE + \"literal_factor\"),\n place = new URIImpl(NAMESPACE + \"place\"),\n producedIn = new URIImpl(NAMESPACE + \"producedIn\"),\n produced_in = new URIImpl(NAMESPACE + \"produced_in\"),\n product = new URIImpl(NAMESPACE + \"product\"),\n sub_event = new URIImpl(NAMESPACE + \"sub_event\"),\n time = new URIImpl(NAMESPACE + \"time\");\n}",
"public interface hello extends helloOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface CtoB extends CtoBOperations, TEGApp.baseI, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface Activator extends ActivatorOperations, org.omg.CORBA.Object,\n org.omg.CORBA.portable.IDLEntity {}",
"public void emit() {\n\t\tif (label != null)\n\t\t\tSystem.out.print(label + \":\");\n\n\t\tSystem.out.println(\n\t\t\t\t\"\\t\" + getOpcode() + \" \" + source1.toString() + \" => \" + source2.toString() + \" \" + dest.toString());\n\t}",
"public void compile(Emitter e)\n {\n throw new RuntimeException(\"Implement me!!!!!\");\n }",
"public interface EventListener\n{\n\n /**\n * This method is called when data is received from the DMM.\n *\n * <p>\n * More specifically, the received packet must be valid, then decoded, then the Data Object is updated, *then* this method is called.\n */\n public void dataUpdateEvent();\n\n}",
"public interface EventDefinition extends EObject {\r\n}",
"public interface ObserverGenerator {\n\n\tpublic void update(GeneratorAsync subject) throws Exception;\n\t\n}",
"@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}",
"public interface ControlSequence {\n byte[] getCommand();\n}",
"@Override\n public void subscribe(SingleEmitter<String> emitter) throws Exception {\n\n }",
"protected abstract List<Integer> doEmit(OUT flinkTuple);",
"public interface C5740a {\n void OnDmsEvent(int i);\n }",
"public interface OSMEntitySink {\n\n public void writeBegin() throws IOException;\n\n public void writeNode(long id, Node node) throws IOException; // TODO rename id parameters to nodeId, wayId, relationId throughout\n\n public void writeWay(long id, Way way) throws IOException;\n\n public void writeRelation(long id, Relation relation) throws IOException;\n\n public void writeEnd() throws IOException;\n\n}",
"public interface CurrentMaintenanceOperationIterator_I extends CurrentMaintenanceOperationIterator_IOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface DomainEvent {}",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic double emissionFunction(double oilamount) {\n\t\treturn 0;\n\t}",
"public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface CurrentOperations\n\textends org.omg.CORBA.CurrentOperations\n{\n\t/* constants */\n\t/* operations */\n\torg.omg.CORBA.Any get_slot(int id) throws org.omg.PortableInterceptor.InvalidSlot;\n\tvoid set_slot(int id, org.omg.CORBA.Any data) throws org.omg.PortableInterceptor.InvalidSlot;\n}",
"public interface IEventGenerator<EVENT>\n{\n public void addEvent(EVENT event);\n\n public void emmit();\n}",
"public interface EventSink {\n\n /**\n * Generate event, that a new peer has been discovered for some torrent.\n *\n * @since 1.5\n */\n void firePeerDiscovered(TorrentId torrentId, Peer peer);\n\n /**\n * Generate event, that a new connection with some peer has been established.\n *\n * @since 1.9\n */\n void firePeerConnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that a connection with some peer has been terminated.\n *\n * @since 1.9\n */\n void firePeerDisconnected(ConnectionKey connectionKey);\n\n /**\n * Generate event, that local information about some peer's data has been updated.\n *\n * @since 1.9\n */\n void firePeerBitfieldUpdated(TorrentId torrentId, ConnectionKey connectionKey, Bitfield bitfield);\n\n /**\n * Generate event, that processing of some torrent has begun.\n *\n * @since 1.5\n */\n void fireTorrentStarted(TorrentId torrentId);\n\n /**\n * Generate event, that torrent's metadata has been fetched.\n *\n * @since 1.9\n */\n void fireMetadataAvailable(TorrentId torrentId, Torrent torrent);\n\n /**\n * Generate event, that processing of some torrent has finished.\n *\n * @since 1.5\n */\n void fireTorrentStopped(TorrentId torrentId);\n\n /**\n * Generate event, that the downloading and verification\n * of one of torrent's pieces has been finished.\n *\n * @since 1.8\n */\n void firePieceVerified(TorrentId torrentId, int pieceIndex);\n}",
"public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}",
"public interface ServeurCORBA {\n\t\n\t// ################################ METHODE DE CREATION / ENVOI / SUPPRESSION ################################ \n\t\n\t/**\n\t * @param idee\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerIdee(final IIdee idee, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerIdee(final IIdee idee, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerIdee(final IIdee idee, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param tache\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerTache(final IIdee idee, final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tache\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerTache(final ITache tache, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tache\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerTache(final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param idee\n\t * @param projet\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void creerProjet(final IIdee idee, final IProjet projet, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param projet\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void envoyerProjet(final IProjet projet, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param projet\n\t * @param identification\n\t * @param callback\n\t */\n\tpublic void supprimerProjet(final IProjet projet, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void creerContexte(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void envoyerContexte(final IObjetServeur contexte, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param contexte\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void supprimerContexte(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void creerTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param mode\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void envoyerTag(final ITag tag, final ModeDeMiseAJour mode, final String identification, final CallBack<String> callback);\n\t\n\t/**\n\t * @param tag\n\t * @param identification\n\t * @param callback\n\t * @throws RemoteException\n\t */\n\tpublic void supprimerTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE MODIFICATION ################################\n\t\n\t\n\tpublic void ajouterTacheAProjet(final ITache tache, final IProjet projet, final String identification, CallBack<String> callback);\n\tpublic void retirerTacheDuProjet(final ITache tache, final IProjet projet, final String identification, CallBack<String> callback);\n\n\tpublic void ajouterParticipantAuProjet(final IProjet projet, final IParticipant nom, final String identification, final CallBack<String> callback);\n\tpublic void supprimerParticipantDuProjet(final IProjet projet, final IParticipant nom, final String identification, final CallBack<String> callback);\n\n\tpublic void ajouterParticipantDuProjetATache(final IProjet projet, final IParticipant nom, final ITache tache, final String identification, final CallBack<String> callback);\n\tpublic void retirerParticipantDeLaTache(final IParticipant nom, final ITache tache, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE RECUPERATION ################################\n\t\n\t\n\tpublic void downloadInbox(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadInbox(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadPoubelle(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadPoubelle(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadArchive(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadArchive(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadProchainesTaches(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadProchainesTaches(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadProchainesTaches(final IObjetServeur contexte, final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadProchainesTaches(final IObjetServeur contexte, final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadCalendrier(final Date date, final String identification, final CallBack<String> callback);\n\tpublic void downloadCalendrier(final String identification, final CallBack<String> callback);\n\n\n\tpublic void downloadTacheParTag(final Date date, final ITag tag, final String identification, final CallBack<String> callback);\n\tpublic void downloadTacheParTag(final ITag tag, final String identification, final CallBack<String> callback);\n\t\n\t\n\t// ################################ METHODE DE GESTION DE COMPTE ################################\n\t\n\t\n\tpublic void creerCompte(final String username, final String password, final String pseudo, final String identification, final CallBack<String> callback);\n\tpublic void supprimerCompte(final String username, final String password, final String identification, final CallBack<String> callback);\n\n\tpublic void modifierPseudo(final String pseudo, final String identification, final CallBack<String> callback);\n\tpublic void modifierUsername(final String username, final String identification, final CallBack<String> callback);\n\tpublic void modifierMotDePasse(final String oldpPassword, final String newPassword, final String identification, final CallBack<String> callback);\n\n\tpublic void login(final String username, final String password, final String identification, final CallBack<String> callback);\n\tpublic void disconnect(final String identification, final CallBack<String> callback);\n\t\n\tpublic void downloadListeParticipant(final String identification, final CallBack<List<AbstractParticipant>> callback);\n\t\n\tpublic void downloadLog(final Date date, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadLog(final String identification, final CallBack<List<String>> callback);\n\t\n\t\n\t// ################################ METHODE ADMINISTRATEUR ################################\n\t\n\t\n\tpublic void downloadLogAdmin(final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadInbox(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadTaches(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadProjets(final String username, final String identification, final CallBack<List<String>> callback);\n\tpublic void downloadLog(final String username, final String identification, final CallBack<List<String>> callback);\n}",
"public void emit(Emitter emitter) {\n super.emit(emitter);\n // now emit all children.\n emitter.emitRuleInstances(getResultRuleInstances());\n }",
"public interface EndSequenceEventListener {\n void sequenceEnd();\n}",
"public interface EventActorListener {\n\n public void onFinished(ActorDet actor);\n}",
"public interface RegionalRecordManipulator extends RegionalRecordManipulatorOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface InterFace2 extends InterFace2Operations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface OSCMessageObserver {\r\n\t\r\n\t/**\r\n\t * Sets the received OSC message to the data management class to process it.\r\n\t * <p>\r\n\t * This method is automatically called when a new OSC message is received.\r\n\t * \r\n\t * @param aMessage the received OSC message\r\n\t */\r\n\tpublic void messageReceived(OscMessage aMessage);\r\n}",
"public void onEvent(EventIterator events) {\n\n }",
"public interface Vehiculos extends VehiculosOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"public interface IDigitalOutput extends Sendable, AutoCloseable {\n\n /**\n * Set the value of a digital output.\n *\n * @param value true is on, off is false.\n */\n void set(boolean value);\n\n /**\n * Gets the value being output from the Digital Output.\n *\n * @return the state of the digital output.\n */\n boolean get();\n\n /**\n * Generate a single pulse. There can only be a single pulse going at any time.\n *\n * @param pulseLength The length of the pulse.\n */\n void pulse(double pulseLength);\n\n /**\n * Determine if the pulse is still going. Determine if a previously started pulse is still\n * going.\n *\n * @return true if pulsing\n */\n boolean isPulsing();\n\n /**\n * Change the PWM frequency of the PWM output on a Digital Output line.\n *\n * <p>\n * The valid range is from 0.6 Hz to 19 kHz. The frequency resolution is logarithmic.\n *\n * <p>\n * There is only one PWM frequency for all channels.\n *\n * @param rate The frequency to output all digital output PWM signals.\n */\n void setPWMRate(double rate);\n\n /**\n * Enable a PWM Output on this line.\n *\n * <p>\n * Allocate one of the 6 DO PWM generator resources.\n *\n * <p>\n * Supply the initial duty-cycle to output so as to avoid a glitch when first starting.\n *\n * <p>\n * The resolution of the duty cycle is 8-bit for low frequencies (1kHz or less) but is reduced\n * the higher the frequency of the PWM signal is.\n *\n * @param initialDutyCycle The duty-cycle to start generating. [0..1]\n */\n void enablePWM(double initialDutyCycle);\n\n /**\n * Change this line from a PWM output back to a static Digital Output line.\n *\n * <p>\n * Free up one of the 6 DO PWM generator resources that were in use.\n */\n void disablePWM();\n\n /**\n * Change the duty-cycle that is being generated on the line.\n *\n * <p>\n * The resolution of the duty cycle is 8-bit for low frequencies (1kHz or less) but is reduced\n * the higher the frequency of the PWM signal is.\n *\n * @param dutyCycle The duty-cycle to change to. [0..1]\n */\n void updateDutyCycle(double dutyCycle);\n\n /**\n * Get the PWM rate (duty cycle) of the output.\n * \n * @return The rate [0..1].\n */\n double getPWMRate();\n\n}",
"@Override\n\tpublic void GetOut() {\n\t\t\n\t}",
"public interface Movement {\n void sound ();\n}",
"public interface Handler extends Action, Syntax {\n\n}",
"public abstract Object getOutput ();",
"public interface Opcodes {\n\n byte JOIN = 0x1;\n byte LEAVE = 0X2;\n byte MESSAGE = 0x4;\n byte MOVE = 0x5;\n byte ASSIGN = 0x3;\n byte COLOR = 0x6;\n}",
"@Override\r\n public List<Machine.Instruction> emit() {\r\n\r\n List<Machine.Instruction> InstructionList = new LinkedList<Machine.Instruction>();\r\n InstructionList.add(new Machine.pushConstant(value));\r\n return InstructionList;\r\n\r\n }",
"public interface Operation {\n String description();\n void command();\n}",
"public interface IProtocol {\r\n int ADD_ELEMENT = 2100; // parent, 0, Elements.Extra\r\n\r\n int CLEAR_CHILDREN = 2005; // parent\r\n\r\n int CONTROL_ABOUT = 3001;\r\n\r\n int CONTROL_DELETE_SAVE = 3003;\r\n\r\n // int CONTROL_RESTART = 3004;\r\n int CONTROL_FORCE_CLICK = 3005;\r\n\r\n int CONTROL_HELP = 3002;\r\n\r\n // int UPDATE_SCROLL = 5;\r\n int DISPLAY_TOAST = 2001; // OBJ = text\r\n\r\n int ON_CLICK = 1101; // OBJ = view\r\n\r\n int ON_CREATE = 1001; // OBJ = bundle\r\n\r\n int ON_DESTROY = 1006;\r\n\r\n int ON_PAUSE = 1004;\r\n\r\n int ON_RESUME = 1003;\r\n\r\n int ON_START = 1002;\r\n\r\n int ON_STOP = 1005;\r\n\r\n int ON_TOUCH_EVENT = 1103;\r\n\r\n int SET_THEME = 5001;\r\n\r\n int SHOW_HELP_PAGE = 4001;\r\n\r\n int SHOW_LICENSE = 4002;\r\n\r\n int UPDATE_COLOR = 2;\r\n\r\n int UPDATE_ENABLED = 3;\r\n\r\n int UPDATE_INFLATE = 4;\r\n\r\n int UPDATE_TEXT = 1;\r\n\r\n int UPDATE_VIEW = 0;\r\n}",
"protected void send(O operation)\n {\n }",
"@Override\n\tpublic void ACC_X_ObjectEvent(Interface.ACC_X_ObjectEvent e, String data) {\n\t\t\n\t}",
"@Override\n public List<Machine.Instruction> emit() {\n ArrayList<Machine.Instruction> data = new ArrayList<>();\n data.add(new Machine.Load(name));\n return data;\n }",
"@Override\n\tprotected void generatePrimitives(SoAction action) {\n\n\t}",
"void emit(TrackerPayload payload);",
"public interface IEvent {\r\n\r\n\t/**\r\n\t * Returns the source of the event. As events are emitted\r\n\t * by instances that are bound to an instance, this method\r\n\t * will point to the corresponding source emitter that \r\n\t * received the event.\r\n\t * \r\n\t * @return The source of the event.\r\n\t */\r\n\tpublic IEventCollector getSource();\r\n\t\r\n\t/**\r\n\t * The type of the event. This will be the string that is\r\n\t * negotiated in the contract. \r\n\t * \r\n\t * @return The type of the event that has been sent. This\r\n\t * \twill be the parameter as defined in the contract.\r\n\t */\r\n\tpublic String getType();\r\n\t\r\n\t/**\r\n\t * The data object that has been sent as event object. \r\n\t * \r\n\t * @return The data object of this event.\r\n\t */\r\n\tpublic Object getData();\r\n\r\n}",
"static public void main(String[] args){\n IA ia = new UberComponent(); IA ia2 = (IA) ia; ia2.SayHello(\",\");\n //--------------------- Check For Symmetry\n IB ia3 = (IB) ia; ia2 = (IA) ia3; ia2.SayHello(\",\"); ia3.SayHello2(\",\");\n //----------- Check For Transitivity\n IC ia4 = (IC) ia3; IA ia5 = (IA) ia4; ia5.SayHello(\",\"); a4.SayHello3(\"m\");\n }",
"public interface TwoWayListener<DM, UMD, DMD> extends EventListener {\n\n /**\n * Called when a new derived value has been produced.\n * May have been a result of a synchronous or asynchronous derivation.\n * @param evt the associated event with more information\n */\n void derived(TwoWayEvent.Derived<DM, UMD, DMD> evt);\n\n /**\n * Called when a derived model has been invalidated.\n * @param evt the associated event with more information\n */\n void invalidated(TwoWayEvent.Invalidated<DM, UMD, DMD> evt);\n \n /**\n * Called when the derived model was changed and the underlying model recreated.\n * @param evt the associated event with more information\n */\n void recreated(TwoWayEvent.Recreated<DM, UMD, DMD> evt);\n \n /**\n * Called when changes in the underlying model were clobbered by changes to\n * the derived model.\n * @param evt the associated event with more information\n */\n void clobbered(TwoWayEvent.Clobbered<DM, UMD, DMD> evt);\n \n /**\n * Called when the reference to the derived model was garbage collected.\n * @param evt the associated event\n */\n void forgotten(TwoWayEvent.Forgotten<DM, UMD, DMD> evt);\n \n /**\n * Called when an attempted derivation failed with an exception.\n * The underlying model is thus considered to be in an inconsistent state.\n * @param evt the associated event with more information\n */\n void broken(TwoWayEvent.Broken<DM, UMD, DMD> evt);\n \n}",
"public void managerOutputModified(ManagerEvent e);",
"@Override\n\tpublic void N2O_TEMP_ObjectEvent(Interface.N2O_TEMP_ObjectEvent e, String data) {\n\t\t\n\t}",
"@DISPID(8) //= 0x8. The runtime will prefer the VTID if present\r\n @VTID(15)\r\n short persistsEvents();",
"public interface OsSystemCycle extends EcucContainer {\n}",
"public interface Calculadora extends CalculadoraOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \r\n{\r\n}",
"@Override\n\tpublic void GYR_X_ObjectEvent(Interface.GYR_X_ObjectEvent e, String data) {\n\t\t\n\t}",
"public interface Actions extends EObject\n{\n}",
"public interface IOAddContactListener {\n void AddContact();\n}",
"public interface iPhisycs<E extends WolEntity> extends iEventGenerator<E>,iEventObserver<E>,Runnable,Serializable{\r\n public void insert(E entity,Position coordinate);\r\n public void castAwayEntities(Position coordinate,long radius);//Cast away all entities in thre radius near the position\r\n //public Acceleration calcAcceleration(E entity,Collection<Force> forces);\r\n public void applyForce(E entity,Force force);\r\n public void removeForce(E entity,Force force);\r\n public Velocity getVelocity(E entity);\r\n public Rotation<E> getAngularVelocity(E entity);\r\n}",
"public interface RawInputObservable {\n public void rawRegister(RawInputObserver message);\n public void rawNotify(RawInputMessage message);\n}",
"public interface TimeOfDay extends TimeOfDayOperations, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity \n{\n}",
"public interface EventListener extends Remote{\n\n @OneWay(full = true)\n void onEvent(EventObject event);\n}",
"public interface ControlSequenceExpression /*extends ControlSequence*/ {\n byte[] interpret();\n}",
"public interface Message extends ZUML2TCUMLTransformer<Link>, ModelElement {\n /**\n * <p>\n * Set the messageSort property of message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @param messageSort the messageSort property to set\n * @throws IllegalArgumentException if the messageSort is null or not \"asynchCall\" and not \"synchCall\"\n */\n public void setMessageSort(String messageSort);\n\n /**\n * <p>\n * Get the messageSort property of this message. The messargeSort of asynchronous message is \"asynchCall\",\n * for other messages, the messageSort is \"synchCall\".\n * </p>\n *\n * @return the messageSort property\n */\n public String getMessageSort();\n\n /**\n * <p>\n * Set the receiveEvent property of the message. receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @param receiveEvent the receiveEvent property to set\n */\n public void setReceiveEvent(EventOccurrence receiveEvent);\n\n /**\n * <p>\n * Get the receiveEvent property of the message, receiveEvent is the event of the end\n * point of the message in the lifeline in the view.\n * </p>\n *\n * @return the receiveEvent property of the message\n */\n public EventOccurrence getReceiveEvent();\n\n /**\n * <p>\n * Set the sendEvent property of the message. sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @param sendEvent the sendEvent property to set\n */\n public void setSendEvent(EventOccurrence sendEvent);\n\n /**\n * <p>\n * Get the sendEvent property of the message, sendEvent is the event of the start point\n * of the message in the lifeline in the view.\n * </p>\n *\n * @return the sendEvent property of message\n */\n public EventOccurrence getSendEvent();\n\n /**\n * <p>\n * Transform this message to TCUML Stimulus instance.The returned Stimulus instance must\n * be same for every call of this method. For example:\n * </p>\n * <p>Stimulus stimulus1 = this.toTCUMLStimulus();</p>\n * <p>Stimulus stimulus2 = this.toTCUMLStimulus();</p>\n * <p>stimulus1 == stimulus2 is true.</p>\n *\n * @return the transformed Stimulus instance\n */\n public Stimulus toTCUMLStimulus();\n}",
"public interface ShowStreams {\n\tString INPUT =\"show-in\";\n\t@Output(INPUT)\n\tMessageChannel inboundEvents();\n\t\n\tString OUTPUT = \"show-out\";\n @Output(OUTPUT)\n MessageChannel outboundEvents();\n}",
"public interface IECComponent extends Identifier {\r\n}",
"public abstract double emissionFunction(double oilamount);",
"public abstract double emissionFunction(double oilamount);",
"public interface ParticleVisitor {\r\n\t/** Invoked for an empty type.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid emptyType(ComplexTypeSG type) throws SAXException;\r\n\t/** Invoked for a complex type with simple content.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid simpleContent(ComplexTypeSG type) throws SAXException;\r\n\t/** Invoked to begin a sequence.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid startSequence(GroupSG group) throws SAXException;\r\n\t/** Invoked to end a sequence.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid endSequence(GroupSG group) throws SAXException;\r\n\t/** Invoked to start a choice group.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid startChoice(GroupSG group) throws SAXException;\r\n\t/** Invoked to end a choice group.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid endChoice(GroupSG group) throws SAXException;\r\n\t/** Invoked to start an all group.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid startAll(GroupSG group) throws SAXException;\r\n\t/** Invoked to end an all group.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid endAll(GroupSG group) throws SAXException;\r\n\t/** Invoked to start a complex content types\r\n\t * content.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid startComplexContent(ComplexTypeSG type) throws SAXException;\r\n\t/** Invoked to end a complex content types content.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid endComplexContent(ComplexTypeSG type) throws SAXException;\r\n\t/** Invoked to process an element with simple type.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid simpleElementParticle(GroupSG pGroup,ParticleSG particle) throws SAXException;\r\n\t/** Invoked to process an element with complex type.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid complexElementParticle(GroupSG pGroup, ParticleSG particle) throws SAXException;\r\n\t/** Invoked to process a wildcard particle.\r\n\t * @throws SAXException The visitor failed.\r\n\t */\r\n\tvoid wildcardParticle(ParticleSG particle) throws SAXException;\r\n}",
"@Override\n public void subscribe(ObservableEmitter<String> emitter) throws Exception {\n Log.e(TAG, \"emitter===\" + emitter);\n Log.e(TAG, Thread.currentThread().getName());\n emitter.onNext(\"AAAAAAAAA\");\n\n }",
"public interface MDDChannelListener {\r\n /**\r\n * Called on receipt of CHANNEL events\r\n * @param channel String containing the name of the channel\r\n * @param title String containing the title of the program\r\n * @param subtitle String containing the subtitle of the program\r\n */\r\n public void onChannel(String channel, String title, String subtitle);\r\n /**\r\n * Called on receipt of PROGRESS events\r\n * @param pos int representing current position\r\n */\r\n public void onProgress(int pos);\r\n /**\r\n * Called on receipt of EXIT event\r\n */\r\n public void onExit();\r\n}",
"void derived(TwoWayEvent.Derived<DM, UMD, DMD> evt);",
"@CommandDescription(name=\"createAluno\", kind=CommandKind.Create, requestPrimitive=\"createAluno\", responsePrimitive=\"createAlunoResponse\")\npublic interface CreateAluno extends MessageHandler {\n \n public Aluno createAluno(Aluno toCreate);\n \n}",
"public void messageReceived(OscMessage aMessage);",
"public void operationsEventNotification(OperationsEvent oe) throws RemoteException;",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:32:47.199 -0500\", hash_original_method = \"41983E4AD1DCA5E034973FB71B6F64E2\", hash_generated_method = \"FE0086F5838C2FA5A6CD634F53A119E2\")\n \npublic void createUIHandler() {\n if (mUIHandler == null) {\n mUIHandler = new Handler() {\n @DSSafe(DSCat.SAFE_LIST)\n @Override\n public void handleMessage(Message msg) {\n // Runs on the UI thread.\n switch (msg.what) {\n case RETURN_ORIGINS: {\n Map values = (Map) msg.obj;\n Set<String> origins = (Set<String>) values.get(ORIGINS);\n ValueCallback<Set<String> > callback = (ValueCallback<Set<String> >) values.get(CALLBACK);\n callback.onReceiveValue(origins);\n } break;\n case RETURN_ALLOWED: {\n Map values = (Map) msg.obj;\n Boolean allowed = (Boolean) values.get(ALLOWED);\n ValueCallback<Boolean> callback = (ValueCallback<Boolean>) values.get(CALLBACK);\n callback.onReceiveValue(allowed);\n } break;\n }\n }\n };\n }\n }",
"@Override\n\tpublic void ACC_Y_ObjectEvent(Interface.ACC_Y_ObjectEvent e, String data) {\n\t\t\n\t}",
"public interface OrganizationInteractor {\n interface onOrganization{\n void onErrorName();\n void onErrorTel();\n void onErrorAddres();\n void onCreate(boolean s);\n }\n boolean createOrganization(String name,String tel,String dir, onOrganization listener);\n Organization getOrganiation(int i);\n void delteOrganization(int i);\n}"
] | [
"0.6241647",
"0.61170834",
"0.57340086",
"0.5703971",
"0.56234765",
"0.56144017",
"0.5583701",
"0.55080706",
"0.5437371",
"0.53772694",
"0.535223",
"0.5311493",
"0.5302515",
"0.5301275",
"0.52413845",
"0.523285",
"0.5191391",
"0.51545066",
"0.5135305",
"0.51284873",
"0.50919044",
"0.5083935",
"0.50750023",
"0.50619066",
"0.50457984",
"0.5038631",
"0.50261885",
"0.5019174",
"0.50157106",
"0.5010844",
"0.49903288",
"0.4967214",
"0.49573758",
"0.49293685",
"0.49272397",
"0.49231416",
"0.49179247",
"0.49137905",
"0.4909398",
"0.4909398",
"0.4909398",
"0.48865858",
"0.488479",
"0.4877117",
"0.48719528",
"0.48433068",
"0.48331437",
"0.48274693",
"0.48247427",
"0.4821311",
"0.48201928",
"0.48187107",
"0.48047283",
"0.47742853",
"0.4763942",
"0.4761453",
"0.47572866",
"0.4755357",
"0.47547746",
"0.47511867",
"0.47510678",
"0.47476476",
"0.47401363",
"0.47328267",
"0.47287673",
"0.4727361",
"0.47218037",
"0.4719961",
"0.4716174",
"0.47143373",
"0.47125572",
"0.47104326",
"0.47039378",
"0.46995497",
"0.4695799",
"0.4680492",
"0.467565",
"0.46707308",
"0.46646976",
"0.46626693",
"0.46613523",
"0.46536225",
"0.4651909",
"0.46510863",
"0.46387875",
"0.46386513",
"0.46381748",
"0.46379244",
"0.46373078",
"0.46373078",
"0.4635279",
"0.46289122",
"0.46266812",
"0.46181968",
"0.46177042",
"0.46090567",
"0.4608394",
"0.46071184",
"0.46028623",
"0.459099"
] | 0.65431654 | 0 |
Opens a popup window of instructions | public static void showInstr(Activity a) {
// Get instructions layout
LayoutInflater inflater = a.getLayoutInflater();
View layout = inflater.inflate(R.layout.instructions,
(ViewGroup) a.findViewById(R.id.instructions1));
// initialize popup window
final PopupWindow pw = new PopupWindow(layout,
LinearLayout.LayoutParams.WRAP_CONTENT,
LinearLayout.LayoutParams.WRAP_CONTENT, true);
pw.showAtLocation(layout, Gravity.CENTER | Gravity.TOP, 0, 500);
// Set click event to close popup
layout.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
// do anything when popupWindow was clicked
pw.dismiss(); // dismiss the window
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void showInstructions() {\n Alert popUp = new Alert(Alert.AlertType.INFORMATION);\n popUp.setTitle(\"Instructions\");\n popUp.setContentText(\"The size field in the bottom let controls the board demensions.\" \n + \"The coord field in the bottom right controls the starting point of the tour \" \n + \"where 0 <= x, y < size. \"\n + \"Press enter with the text field in focus to submit changes. \"\n + \"Changes submitted to the coordinate field will start a new tour. \"\n + \"Depending on the conditions it could take a while!\");\n\n popUp.showAndWait();\n }",
"public void triggerPopup();",
"@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }",
"public void showInstructions()\n {\n //make the instructions window visible\n instructionScreen.setVisible(true);\n }",
"public void createPopupWindow() {\r\n \t//\r\n }",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}",
"public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }",
"public void showGenPopup() {\n\t\ttv_popupTitle.setText(R.string.title3);\n\t\ttv_popupInfo.setText(R.string.description3);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"public void openWindow()\r\n {\r\n myWindow = new TraderWindow(this);\r\n while(!mailbox.isEmpty())\r\n {\r\n myWindow.showMessage( mailbox.remove() );\r\n }\r\n }",
"public void Open() {\r\n\t click();\r\n\t }",
"public void open() {\n\t\tthis.createContents();\n\n\t\tWindowBuilder delegate = this.getDelegate();\n\t\tdelegate.setTitle(this.title);\n\t\tdelegate.setContents(this);\n\t\tdelegate.setIcon(this.iconImage);\n\t\tdelegate.setMinHeight(this.minHeight);\n\t\tdelegate.setMinWidth(this.minWidth);\n\t\tdelegate.open();\n\t}",
"void show_info() {\n\t\tsetAlwaysOnTop(false);\n\n\t\tString msg = \"<html><ul><li>Shortcuts:<br/>\"\n\t\t\t\t+ \"(\\\") start macro<br/>\"\n\t\t\t\t+ \"(esc) exit<br/><br/>\"\n\t\t\t\t+ \"<li>Author: <b>Can Kurt</b></ul></html>\";\n\n\t\tJLabel label = new JLabel(msg);\n\t\tlabel.setFont(new Font(\"arial\", Font.PLAIN, 15));\n\n\t\tJOptionPane.showMessageDialog(null, label ,\"Info\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\tsetAlwaysOnTop(true);\n\t}",
"public void show() {\r\n isOkPressed = false;\r\n\r\n dialog = RitDialog.create(context);\r\n dialog.setTitle(\"Inline Method\");\r\n dialog.setContentPane(contentPanel);\r\n\r\n buttonOk.requestFocus();\r\n\r\n HelpViewer.attachHelpToDialog(dialog, buttonHelp, \"refact.inline_method\");\r\n SwingUtil.initCommonDialogKeystrokes(dialog, buttonOk, buttonCancel, buttonHelp);\r\n\r\n dialog.show();\r\n }",
"@Override\n public void showLorenzoActionPopUp(String string) {\n\n }",
"public void showOxPopup() {\n\t\ttv_popupTitle.setText(R.string.title1);\n\t\ttv_popupInfo.setText(R.string.description1);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}",
"private void showHelpDialog() {\n\n view.helpDialog();\n }",
"public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow helpWindow = new HelpWindow(this);\n helpWindow.setVisible(true);\n\n\n // HTMLDisplay helpdisplay = new HTMLDisplay( str, \"TerpPaint Help\" );\n //\t helpdisplay.setVisible( true );\n // System.out.println(\"help topics\");\n }",
"public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent action) {\n\t\t\t\t\tDishDetails.OpenWindow(null);\n\t\t\t\t}",
"private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}",
"boolean isPopUpOpened();",
"private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}",
"private void showPopWindow() {\n\t\tfinal PointerPopupWindow p = new PointerPopupWindow(this,\n\t\t\t\tgetResources().getDimensionPixelSize(R.dimen.popup_width));\n\t\tView convertView = setClickListener(p);\n\n\t\tp.setContentView(convertView);\n\t\tp.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pop_window_back)));\n\t\tp.setPointerImageRes(R.drawable.ic_popup_pointer);\n\t\tp.setAlignMode(PointerPopupWindow.AlignMode.CENTER_FIX);\n\t\tp.showAsPointer(photo);\n\t}",
"public void createInstructionButton() {\n \tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tshowInstructions();}\n };\n \tcreateGenericButton(2, 0, myResources.getString(\"guide\"), eventHandler);\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\t\t\t\tWindow.open(result.get(\"description\"), \"description\", result.get(\"description\"));\r\n\r\n\t\t\t\t\t\t}",
"private void showPopup(String title, String message)\n\t{\n\t\tJOptionPane.showMessageDialog(frmMPSWebServices, message, title, JOptionPane.PLAIN_MESSAGE);\n\t}",
"private JMenuItem getMniOpen() {\r\n\t\tif (mniOpen == null) {\r\n\t\t\tmniOpen = new JMenuItem();\r\n\t\t\tmniOpen.setText(\"Open...\");\r\n\t\t\tmniOpen.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\tString url = JOptionPane.showInputDialog(mniOpen,\"Address\",\"Open\",JOptionPane.QUESTION_MESSAGE);\r\n\t\t\t\t\tif(url != null) {\r\n\t\t\t\t\t\tif(!url.equals(\"\")) {\r\n\t\t\t\t\t\t\tgoTo(url, HistoryManagement.CLEAR);\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\treturn mniOpen;\r\n\t}",
"public ICurrentPage openNewWindow(String url);",
"public void showInstructionsPanel()\n {\n setWidgetAsExample(introPanel);\n }",
"public void ConfirmPopupWindowClick(View view) {\n LayoutInflater inflater = (LayoutInflater)\n getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.activity_confirm_pub_crawl, null);\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n Button noBtn = (Button) popupView.findViewById(R.id.NoBtn);\n noBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n }\n });\n\n Button yesBtn = (Button) popupView.findViewById(R.id.YesBtn);\n yesBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n Intent goToRandomPubCrawlActivity = new Intent(AddToPubCrawl.this, random_pub_crawl.class);\n startActivity(goToRandomPubCrawlActivity);\n }\n });\n }",
"public void showInstructionsPanel() {\n\t\tsetWidgetAsExample(introPanel);\n\t}",
"public void popup(String a){\n pop.setLayout(null);\n ControlAction c = new ControlAction();\n pop.setBounds(420, 320, 460, 160);\n pop.setBorder(new LineBorder(Color.BLACK, 2));\n //condition for showing popup message\n if(a.startsWith(\"1\")){\n mas.setText(\"Selamat Anda Telah Melakukan Peminjaman\");\n nolocker.setText(\"No. Locker Anda Yaitu 17\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(true);\n }else if(a.equals(WARN1)){\n mas.setText(\"Maaf Anda Telah Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.equals(WARN2)){\n mas.setText(\"Maaf Anda Belum Melakukan Peminjaman\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n }else if(a.contains(\"BUKA\")){\n mas.setText(\"Anda Ingin Mengakhiri Peminjaman ?\");\n yes.setVisible(true);\n String key = a.substring(4);\n yes.setActionCommand(\"YES\"+key);\n no.setVisible(true);\n nolocker.setVisible(false);\n }else if(a.equals(NO)){\n mas.setText(\"Loker Anda Telah Terbuka\");\n yes.setVisible(false);\n no.setVisible(false);\n nolocker.setVisible(false);\n } \n mas.setFont(new Font(\"arial\", Font.BOLD, 20));\n mas.setOpaque(false);\n mas.setForeground(Color.BLACK);\n Dimension si1 = mas.getPreferredSize();\n mas.setBounds(10, 40, si1.width, si1.height);\n nolocker.setFont(new Font(\"arial\", Font.BOLD, 20));\n nolocker.setOpaque(false);\n nolocker.setForeground(Color.BLACK);\n Dimension si3 = nolocker.getPreferredSize();\n nolocker.setBounds(10, 70, si3.width, si3.height);\n //close button handling\n close.addActionListener(c);\n close.setActionCommand(EXIT);\n Dimension si2 = close.getPreferredSize();\n close.setBounds(420, 10, si2.width, si2.height);\n close.setBorder(BorderFactory.createEmptyBorder());\n close.setContentAreaFilled(false);\n //yes button handling\n yes.addActionListener(c);\n Dimension si4 = yes.getPreferredSize();\n yes.setBounds(100, 100, si4.width, si4.height);\n yes.setBorder(BorderFactory.createEmptyBorder());\n yes.setContentAreaFilled(false);\n //no button handling\n no.addActionListener(c);\n no.setActionCommand(NO);\n Dimension si5 = no.getPreferredSize();\n no.setBounds(250, 100, si5.width, si5.height);\n no.setBorder(BorderFactory.createEmptyBorder());\n no.setContentAreaFilled(false);\n //add to card3 top most layer\n card3.add(pop,6,0);\n }",
"@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t// show level instructions\n\t\taddPopup(instructionsPopup);\n\t\tsetAlpha(1 * 60 * 5);\n\t\tsetFadeRate(1);\n\t}",
"public String showDialog() {\n setModal(true);\n setLocationRelativeTo(_parent);\n setVisible(true);\n return phpSyntaxTreeURL;\n }",
"public void open() {\r\n\t\tthis.setVisible(true);\r\n\t}",
"private void actionOnClicHelp() {\r\n\t\ttry {\r\n\t\t\tGUIGeneralMethods.openWebPage(new URL(Constants.C_HELPING_URL));\r\n\t\t} catch (URISyntaxException | IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(frame, Constants.C_ERROR_WHILE_BROWSING_HELP, Constants.C_ERROR_DIALOG_TITLE,\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE); \r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\tNaukriPopup oo= new NaukriPopup();\n\too.launch();\n\too.launch1();\n}",
"private void showPopUpWindow() {\n Log.d(TwoPlayersActivity.LOG_TAG, \"show popup\");\n LayoutInflater layoutInflater = (LayoutInflater) this\n .getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\n View popupView = layoutInflater.inflate(R.layout.pop_up,\n (ViewGroup) findViewById(R.id.pop_up));\n\n popupWindow = new PopupWindow(popupView,\n LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, true);\n\n popupWindow.showAtLocation(popupView, Gravity.CENTER, 0, 0);\n\n Button btnDismiss = (Button)popupView.findViewById(R.id.dismiss);\n\n btnDismiss.setOnClickListener(new Button.OnClickListener() {\n @Override\n public void onClick(View v) {\n popupWindow.dismiss();\n }\n });\n }",
"public native void show(GInfoWindow self)/*-{\r\n\t\tself.show();\r\n\t}-*/;",
"public void openNSE() {\n\t\t\t this.open.getText();\r\n\t\t}",
"@Override\n\tpublic boolean doPopup(int x, int y) {\n\t\tif (popup == null) {\n\t\t\tpopup = createPopup();\n\t\t}\n\t\tpopup.show(this, x, y);\n\t\treturn true;\n\t}",
"public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}",
"@Given(\"^Browser will open with the show alert box$\")\r\n\tpublic void browser_will_open_with_the_show_alert_box() throws Throwable {\n\t\tSystem.out.println(\"Browser show alert box button\");\r\n\t}",
"public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}",
"private void openDialogHelpJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonActionPerformed\n setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));\n BareBonesBrowserLaunch.openURL(\"http://cruxtoolkit.sourceforge.net/\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n }",
"public static void goToEditSongWindow()\n {\n EditSongWindow editSongWindow = new EditSongWindow();\n editSongWindow.setVisible(true);\n editSongWindow.setFatherWindow(actualWindow, false);\n }",
"@FXML\n private void openReplyWindow() {\n try {\n ComposeEmailWindow cew = new ComposeEmailWindow(\"RE: \", this.fromContent.getText(),\n this.subjectContent.getText(), this.msgContent.getText());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void show();",
"public void help()\r\n {\r\n \tJFrame insScr=new JFrame(\"Instructions\");\r\n \tJLabel instructions=new JLabel(new ImageIcon(getClass().getResource(\"Instructions.png\")));\r\n \t\r\n insScr.add(instructions);\r\n insScr.setSize(900,600);\r\n insScr.setVisible(true);\r\n \r\n Dimension screenLoc=Toolkit.getDefaultToolkit().getScreenSize();\r\n\t\tinsScr.setLocation(screenLoc.width/2-insScr.getSize().width/2, screenLoc.height/2-insScr.getSize().height/2);\r\n \r\n }",
"public void showResultsWindow() {\r\n \t\tshowResults.setSelected(true);\r\n \t\tshowResultsWindow(true);\r\n \t}",
"private void helpWindow() {\n\n\t\t// Open a new window\n\t\tJFrame frame2 = new JFrame(\"Help\");\n\n\t\t// Create mainPanel2\n\t\tContainer mainPanel2 = frame2.getContentPane();\n\t\tmainPanel2.setLayout(new BoxLayout(mainPanel2, BoxLayout.Y_AXIS));\n\t\tmainPanel2.setForeground(Color.WHITE);\n\t\tmainPanel2.setBackground(Color.BLACK);\n\n\t\t// Add a jeditorpane\n\t\tJEditorPane instructions = new JEditorPane();\n\t\tinstructions.setText(\"TO PLAY NOTES:\\n \" + \"Click a key or use the following format: \\n \"\n\t\t\t\t+ \"\tA B B A --> Basic musical notes \\n\" + \"\tD# --> Make a note sharp \\n\"\n\t\t\t\t+ \"\tA R C --> R adds a rest \\n\" + \"\tE5 --> Play E in 5th octave \\n\"\n\t\t\t\t+ \"\tC5q+E5q+G5q A+G A+G --> Play chord using +\\n\\n\"\n\t\t\t\t+ \"To change note lengths the following characters can be used:\\n\" + \"\tw whole\\n\" + \"\th half\\n\"\n\t\t\t\t+ \"\tq quarter\\n\" + \"\ti eighth\\n\" + \"\ts sixteenth\\n\\n\" + \"TO PLAY RHYTHMS:\\n\"\n\t\t\t\t+ \"The following drum sounds are available:\\n\" + \"\tO bass drum\\n\" + \"\to bass drum 2\\n\"\n\t\t\t\t+ \"\t^ hi hat\\n\" + \"\t* snare drum\\n\" + \"\t! crash cymbal\\n\" + \"\t. ride cymbal\");\n\t\tinstructions.setForeground(Color.WHITE);\n\t\tinstructions.setBackground(Color.BLACK);\n\t\tinstructions.setFont(new Font(\"Ariel\", Font.PLAIN, 16));\n\n\t\t// Add instructions to the mainPanel\n\t\tmainPanel2.add(instructions);\n\n\t\t// Set the frame size and visible\n\t\tframe2.setSize(500, 550);\n\t\tframe2.setVisible(true);\n\n\t}",
"private void popUpMessage(String message){\n\t\tJFrame frame = new JFrame();\n\t\tJLabel mText = new JLabel(message);\n\t\t\n\t\tframe.add(mText);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.pack();\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t\t\n\t}",
"private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }",
"public void showHelp(OnClickListener cl) {\n\t\tBuilder adb = new AlertDialog.Builder(this);\n\t\tadb.setIcon(R.drawable.icon);\n \tadb.setTitle(\"Wallpaper Wizard\");\n \tadb.setMessage(Html.fromHtml(\"<b>Tap</b> the images you like, and I will \" + \n \t\t\t\"learn your preferences to suggest new images.<p>\" + \n \t\t\t\"<b>Press and Hold</b> an image to set it as your wallpaper \" + \n \t\t\t\"and save it to the 'wizard' directory on your SD card. \" + \n \t\t\t\"<p>All proceeds from ads will benefit the computer science \" + \n \t\t\t\"program at <b>Centenary College of Louisiana</b>.\"));\n \tadb.setPositiveButton(\"OK\", cl);\n \tadb.show(); \t\n }",
"private void formWindowOpened(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_formWindowOpened\njam(); \nJOptionPane.showMessageDialog(rootPane, \"Welcome to REMINDER'S NOTE\");\n \n }",
"private void openUserManagementWindow() {\r\n\t\tnew JFrameUser();\r\n\t}",
"public void show_help_pop( View view ) {\n //create and set up dialog box object\n AlertDialog.Builder pop_up = new AlertDialog.Builder( this );\n pop_up.setTitle( \"Alarm/Reminder Help\" );\n pop_up.setIcon( R.drawable.logo );\n final String help_message = \"This alarm is mainly designed for daily reminders, such as\" +\n \" meetings and timed activities, it is not particularly meant to be used as a wake\" +\n \"-up alarm in the morning.\\n\\nThe interface provides simplicity. To set the alarm\" +\n \", pick the hour and minute using the hands of the clock (make sure to pick AM/PM\" +\n \" correctly) and set it by clicking the toggle button in the center. The button \" +\n \"text will now read \\\"ON\\\". You may also wish to provide your own reminder text in\" +\n \" the area just below time picker. Use the same toggle button to disable the \" +\n \"alarm. Once the alarm sounds, a notification will appear on your screen. Click \" +\n \"the notification (may have to unlock screen first) to open up the alarm screen\" +\n \" and then click the toggle button to disable the alarm and turn off the sound.\";\n pop_up.setMessage( help_message );\n\n //set up buttons for dialog box\n pop_up.setPositiveButton( \"OK\", null );\n\n //show pop-up\n pop_up.show( );\n }",
"public void showItext() {\n\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\t\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (formDef == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\ttabs.selectTab(TAB_INDEX_DESIGN);\n\t\t\t\t\t\n\t\t\t\t\t//update the itext map\n\t\t\t\t\tcontroller.updateLanguage(Context.getLocale(), Context.getLocale(), formDef);\n\t\t\t\t\tFormDef form = controller.getSelectedForm();\n\t\t\t\t\t\n\t\t\t\t\t//clear the itext list\n\t\t\t\t\tContext.getItextList().removeAll();\n\t\t\t\t\t//copy over the map to the list\n\t\t\t\t\tSet<String> keys = form.getITextMap().keySet();\n\t\t\t\t\tfor(String key : keys)\n\t\t\t\t\t{\n\t\t\t\t\t\tItextModel itext = form.getITextMap().get(key);\n\t\t\t\t\t\tContext.getItextList().add(itext);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\titextWidget.loadItext(Context.getItextList());\n\t\t\t\t\titextWidget.showWindow();\n\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}",
"@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n //Simply opens a new Editor Window\n new EditorWindow().setVisible(true);\n\n }",
"@FXML\n\tpublic void OpenHelpContentPage() {\n\n\t\tif (!Desktop.isDesktopSupported()) {\n\t\t\tSystem.out.println(\"Desktop not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {\n\t\t\tSystem.out.println(\"File opening not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Task<Void> task = new Task<Void>() {\n\t\t\t@Override\n\t\t\tpublic Void call() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tFile sx3InstallLocation = SX3Manager.getInstance().getInstallLocation().getParentFile()\n\t\t\t\t\t\t\t.getAbsoluteFile();\n\t\t\t\t\tDesktop.getDesktop().open(new File(\n\t\t\t\t\t\t\tsx3InstallLocation + File.separator + \"Cypress_EZ-USB_SX3_ConfigurationUtility.pdf\"));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t\tfinal Thread thread = new Thread(task);\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcd.show(jp, \"3\");\n\t\t\t}",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}",
"private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }",
"public void open(Plugin plugin, SpoutPlayer splayer) {\n\n GenericPopup popup = new GenericPopup();\n int width = splayer.getMainScreen().getMaxWidth();\n int height = splayer.getMainScreen().getMaxHeight();\n pluginLeg.log(\"aight\" + width + \"\" + height);\n\n// int width = splayer.getCurrentScreen().getWidth();\n// int height = splayer.getCurrentScreen().getHeight();\n\n //title of the screen\n GenericLabel topLabel = new GenericLabel(\"Clan-Invitation\");\n topLabel.setScale(1);\n\n topLabel.setWidth(topLabel.getText().length() * 8 * (int) topLabel.getScale()).setHeight((int) topLabel.getScale() * 15);\n\n topLabel.setX(width / 2 - topLabel.getWidth() / 2);\n topLabel.setY(topLabel.getHeight() / 2 + 5);\n popup.attachWidget(plugin, topLabel);\n\n //title of the screen\n String questionString = \"&2You are invited to \"+clan.getName()+\". Do you want to join?\";\n GenericLabel questionLabel = new GenericLabel(LegendaryClans.parseColor(questionString));\n questionLabel.setScale(1);\n questionLabel.setWidth(questionLabel.getText().length() * 5 * (int) questionLabel.getScale());\n questionLabel.setHeight((int) questionLabel.getScale() * 15);\n\n questionLabel.setX(width / 2 - questionLabel.getWidth() / 2);\n questionLabel.setY(height / 2 - questionLabel.getHeight() / 2);\n popup.attachWidget(plugin, questionLabel);\n\n //Accept Button\n LegendaryButton acceptButton = new LegendaryButton(LegendaryClans.parseColor(\"&2Accept!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n if (pluginLeg.getClanManager().getClanByPlayer(clan.getLeaders().get(0)) != null && askedPlayer != null) {\n clan.addMember(askedPlayer);\n } \n getPopup().close();\n }\n };\n\n\n acceptButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale()).setHeight((int) acceptButton.getScale() * 15);;\n acceptButton.setX(width / 2 + width / 4 - acceptButton.getWidth() / 2).setY(height / 2 + height / 4 - acceptButton.getHeight() / 2);\n\n\n popup.attachWidget(plugin, acceptButton);\n //deny button\n LegendaryButton denieButton = new LegendaryButton(LegendaryClans.parseColor(\"&4Deny!\"), popup) {\n\n @Override\n public void onButtonClick(ButtonClickEvent event) {\n clan.broadcastMessage(\"&4\" + askedPlayer.getName() + \" denied invitation!\");\n getPopup().close();\n }\n };\n\n denieButton.setWidth(acceptButton.getText().length() * 8 * (int) acceptButton.getScale());\n denieButton.setHeight((int) denieButton.getScale() * 15);\n// \n// ((LegendaryClans)plugin).log(\"\"+width+\",\"+height);\n// denieButton.setX(denieButton.getX()+denieButton.getWidth()/2 +10);\n\n denieButton.setX(width / 4 - denieButton.getWidth() / 2);\n denieButton.setY(height / 2 + height / 4 - denieButton.getHeight() / 2);\n popup.attachWidget(plugin, denieButton);\n\n splayer.closeActiveWindow();\n splayer.getMainScreen().attachPopupScreen(popup);\n }",
"private static void showHelp(){\r\n JOptionPane.showMessageDialog(null, \"1. Choose the faculty.\\n\"\r\n + \"2. Type in the year when the school year started in format YYYY.\\n\"\r\n + \"3. Choose the semester.\\n\"\r\n + \"4. Enter subject codes separated by semicolon. You can add them all at once or add other subjects later.\\n\"\r\n + \"5. Press the Add button to load schedule options.\\n\"\r\n + \"6. Click on the loaded options you want to choose. Their color will turn red.\\n\"\r\n + \"7. Save the options you chose to the text file through File -> Save.\\n\",\r\n \"How-to\", JOptionPane.PLAIN_MESSAGE);\r\n }",
"@FXML\n private void openForwardWindow() {\n try {\n ComposeEmailWindow cew = new ComposeEmailWindow(\"FWD: \", \"\",\n this.subjectContent.getText(), this.msgContent.getText());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"public void showWindow(Link link) {\n\t\tlinkToEdit = link;\n\t\tthis.workingLink = link.clone();\n\t\tupdate();\n\t\tMenuStart.centerWindow(this);\n\t\tsetVisible(true);\n\t}",
"private void jMenuItem141ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem141ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org/quick_help.html\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"Intent getOpenInOtherWindowIntent();",
"protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}",
"@Override\n public void windowOpened(WindowEvent e) {\n this.mostrar();\n }",
"private void showHelp() {\n\t\tif (_OpenHelpFrame != null) {\n\t\t\t_OpenHelpFrame.requestFocus();\n\t\t\treturn;\n\t\t}\n\n\t\tfinal JTextArea textPane = new JTextArea();\n\t\ttextPane.setEditable(JEntityEditor.this.security.level >= JEntityEditor.this.entity\n\t\t\t\t.getPermission(Entity.PERMISSION_EDIT_HELP).level);\n\t\ttextPane.setLineWrap(true);\n\t\ttextPane.setWrapStyleWord(true);\n\t\ttextPane.setText(state.help == null ? \"\" : state.help);\n\n\t\t_OpenHelpFrame = new JFrame();\n\t\t_OpenHelpFrame.setMinimumSize(new Dimension(300, 400));\n\t\t_OpenHelpFrame.setModalExclusionType(Dialog.ModalExclusionType.NO_EXCLUDE);\n\t\t_OpenHelpFrame.setAlwaysOnTop(true);\n\t\t_OpenHelpFrame.setLocationRelativeTo(this);\n\t\t_OpenHelpFrame.setLocation(this.getWidth(), 0);\n\t\t_OpenHelpFrame.setTitle(\"Help\");\n\t\t_OpenHelpFrame.addWindowListener(new WindowListenerAdapter() {\n\n\t\t\t@Override\n\t\t\tprotected void event(WindowEvent e) {\n\t\t\t\tif (e.getID() != WindowEvent.WINDOW_CLOSING && e.getID() != WindowEvent.WINDOW_CLOSED)\n\t\t\t\t\treturn;\n\t\t\t\tif (security.level >= JEntityEditor.this.entity.getPermission(Entity.PERMISSION_EDIT_HELP).level)\n\t\t\t\t\tstate.help = textPane.getText();\n\t\t\t\t_OpenHelpFrame = null;\n\t\t\t}\n\t\t});\n\t\t_OpenHelpFrame.add(new JScrollPane(textPane));\n\t\t_OpenHelpFrame.setVisible(true);\n\t}",
"public void openOptionsWindow() {\n\t\tthis.dispose();\t//built-in method to destroy this GUI.\n\t\tnew SARMain().setVisible(true);\n\t}",
"private ShowFitaMT() {\r\n setLocationRelativeTo(null);\r\n initComponents();\r\n setSize(600,120);\r\n setModal(true);\r\n }",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void show() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}",
"private void openManagementWindow() {\n\n\t\tWindowManager.getInstance().openManagementWindow();\n\t\t// Close the current window\n\t\tthis.close();\n\t}",
"private void openAbout() {\r\n\t\tJDialogAbout jDialogAbout = new JDialogAbout();\r\n\t\tjDialogAbout.setVisible(true);\r\n\t}",
"private void openExitWindowConfirmation() {\n\t\t// int opcion = JOptionPane.showConfirmDialog(this, \"Desea salir del\n\t\t// Chat\", \"Confirmación\",\n\t\t// JOptionPane.YES_NO_OPTION);\n\t\t// if (opcion == JOptionPane.YES_OPTION) {\n\t\tthis.setVisible(false);\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\n\tpublic void show() {\n\t\t\n\t}",
"public void newHelp() {\n\t\tif(helpWindow){\n\t\t\tJOptionPane.showMessageDialog(null, \"Une fenêtre d'aide est déjà ouverte.\");\n\t\t}\n\t\telse {\n\t\t\thelpWindow = true;\n\t\t\t\n\t\t\tJFrame aide = new JFrame();\n\t\t\t\n\t\t\taide.setTitle(\"Aide\");\n\t\t\taide.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\taide.setSize(700,500);\n\t\t\taide.setLocationRelativeTo(null);\n\t\t\taide.setVisible(true);\n\n\t\t\tJTextArea helpText = new JTextArea();\n\t\t\thelpText.setText(Constants.HELP);\n\t\t\thelpText.setEditable(false);\n\n\t\t\tJScrollPane scrollbar = new JScrollPane(helpText);\n\t\t\tscrollbar.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t\tscrollbar.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\n\t\t\taide.add(scrollbar);\n\t\t\t\n\t\t\taide.addWindowListener(new WindowAdapter() {\n\t\t\t public void windowClosed(WindowEvent e) {\n\t\t\t \thelpWindow = false;\n\t\t\t }\n\t\t\t});\n\t\t}\n\t}",
"private void popupModify() {\n\t\tboolean doNotShow = false;\n\t\tif (this instanceof Umlenkrolle && ((Umlenkrolle) this).isFree()) {\n\t\t\tdoNotShow = true;\n\t\t} else if (this instanceof DoppelUmlenkrolle) {\n\t\t\tdoNotShow = true;\n\t\t}\n\t\taufzugschacht.mainFrameShowOptionsFrame(this, doNotShow);\n\t}"
] | [
"0.7289102",
"0.70048505",
"0.69443095",
"0.67213815",
"0.6657352",
"0.65574443",
"0.6480926",
"0.6444788",
"0.6397764",
"0.63916564",
"0.63732064",
"0.63150454",
"0.62634003",
"0.62550616",
"0.6235914",
"0.62354046",
"0.6222802",
"0.6222695",
"0.61974776",
"0.617398",
"0.61571306",
"0.6154082",
"0.61358523",
"0.61065507",
"0.6094987",
"0.6090981",
"0.6080382",
"0.6072408",
"0.6052705",
"0.60516036",
"0.6042456",
"0.60421634",
"0.60028446",
"0.5995493",
"0.5993381",
"0.5990663",
"0.59887224",
"0.59627503",
"0.59505475",
"0.59500784",
"0.59398615",
"0.59379894",
"0.5922312",
"0.5910895",
"0.59105605",
"0.5894177",
"0.58854717",
"0.58824164",
"0.5881746",
"0.58787656",
"0.58752716",
"0.5854887",
"0.5835001",
"0.58264375",
"0.5809681",
"0.58059657",
"0.5802608",
"0.5798042",
"0.5790597",
"0.57852596",
"0.5783013",
"0.57823503",
"0.57776046",
"0.5770801",
"0.5763507",
"0.57578945",
"0.5752432",
"0.5751978",
"0.5751763",
"0.57431203",
"0.5735686",
"0.57332444",
"0.5731117",
"0.5730374",
"0.5729249",
"0.5724313",
"0.57200176",
"0.57200176",
"0.57200176",
"0.5717143",
"0.5715325",
"0.5714097",
"0.5712448",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5704354",
"0.5701089",
"0.5699882"
] | 0.712577 | 1 |
do anything when popupWindow was clicked | @Override
public void onClick(View view) {
pw.dismiss(); // dismiss the window
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void triggerPopup();",
"@Override\n\t\t\tpublic void onClickedPopup(int arg0) {\n\t\t\t\t\n\t\t\t}",
"public void getPopup() {\n\t\t\tglobal.btnClick(popup);\n\t\t}",
"public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}",
"public void createPopupWindow() {\r\n \t//\r\n }",
"@Override\n public void onClick(View v) {\n if (popupWindow == null) {\n showPopWindow();\n } else {\n closePopWindow();\n }\n }",
"@Override\r\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\tsuper.mouseClicked(e);\r\n\t\t\tif(e.isPopupTrigger()){\r\n\t\t\t\tdoClick(e);\r\n\t\t\t\tjPopupMenu.show((Component)e.getSource(), e.getX(), e.getY());\r\n\t\t\t}\r\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (mypopupwindow.isShowing()) {\n\t\t\t\t\tmypopupwindow.dismiss();\n\t\t\t\t} else {\n\t\t\t\t\tmypopupwindow.showAtLocation(\n\t\t\t\t\t\t\tfindViewById(R.id.linearlayout0), Gravity.CENTER,\n\t\t\t\t\t\t\t10, 10);\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif(e.isPopupTrigger())\n\t\t\t\t{\n\t\t\t\t\tpopup.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t}",
"@Override\n\t\tpublic void mousePressed(final MouseEvent e) {\n\t\t\tif (e.isPopupTrigger()) {\n\t\t\t\tpopUp(e);\n\t\t\t}\n\t\t}",
"private void popUp() {\n\tpop = new RoomPopUp(this);\n\tnoPopUp = false;\n }",
"public void ConfirmPopupWindowClick(View view) {\n LayoutInflater inflater = (LayoutInflater)\n getSystemService(LAYOUT_INFLATER_SERVICE);\n View popupView = inflater.inflate(R.layout.activity_confirm_pub_crawl, null);\n\n // create the popup window\n int width = LinearLayout.LayoutParams.WRAP_CONTENT;\n int height = LinearLayout.LayoutParams.WRAP_CONTENT;\n boolean focusable = true; // lets taps outside the popup also dismiss it\n final PopupWindow popupWindow = new PopupWindow(popupView, width, height, focusable);\n\n // show the popup window\n // which view you pass in doesn't matter, it is only used for the window tolken\n popupWindow.showAtLocation(view, Gravity.CENTER, 0, 0);\n\n Button noBtn = (Button) popupView.findViewById(R.id.NoBtn);\n noBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n }\n });\n\n Button yesBtn = (Button) popupView.findViewById(R.id.YesBtn);\n yesBtn.setOnClickListener(new View.OnClickListener() {\n\n public void onClick(View popupView) {\n popupWindow.dismiss();\n Intent goToRandomPubCrawlActivity = new Intent(AddToPubCrawl.this, random_pub_crawl.class);\n startActivity(goToRandomPubCrawlActivity);\n }\n });\n }",
"public void mousePressed(MouseEvent e) {\r\n maybeShowPopup(e);\r\n }",
"boolean isPopUpOpened();",
"@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent action) {\n\t\t\t\t\tDishDetails.OpenWindow(null);\n\t\t\t\t}",
"public void mousePressed(MouseEvent e) {\n\t\t\tshowPopup(e);\n\t\t}",
"@Override\n public void onClick(View view) {\n popupWindow.dismiss();\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n this.mostrar();\n }",
"@Override public void windowOpened(WindowEvent evt) { }",
"@Override public void windowOpened(WindowEvent evt) { }",
"@Override\n public void windowOpened(WindowEvent e)\n {\n\n }",
"private void showPopWindow() {\n\t\tfinal PointerPopupWindow p = new PointerPopupWindow(this,\n\t\t\t\tgetResources().getDimensionPixelSize(R.dimen.popup_width));\n\t\tView convertView = setClickListener(p);\n\n\t\tp.setContentView(convertView);\n\t\tp.setBackgroundDrawable(new ColorDrawable(getResources().getColor(R.color.pop_window_back)));\n\t\tp.setPointerImageRes(R.drawable.ic_popup_pointer);\n\t\tp.setAlignMode(PointerPopupWindow.AlignMode.CENTER_FIX);\n\t\tp.showAsPointer(photo);\n\t}",
"@Override\n public void onClick(View v) {\n popupWindow.dismiss();\n\n }",
"public void windowOpened(WindowEvent e) { }",
"@Override\n\tpublic boolean doPopup(int x, int y) {\n\t\tif (popup == null) {\n\t\t\tpopup = createPopup();\n\t\t}\n\t\tpopup.show(this, x, y);\n\t\treturn true;\n\t}",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n public void windowOpened(WindowEvent e) {\n }",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n public void windowActivated(WindowEvent arg0) {}",
"@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\t\n\t\t\t}",
"@Override\n public void windowActivated(WindowEvent e)\n {\n\n }",
"@Override\r\n public void windowOpened(WindowEvent e) {\n }",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\n public void windowOpened(WindowEvent e) {\n \n }",
"@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent arg0) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void windowOpened(WindowEvent arg0) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void windowActivated(WindowEvent e) {\n\t\t\t\n\t\t}",
"@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tpopupWindow.dismiss();\n\t\t\t}",
"@Override\r\n public void windowActivated(WindowEvent e) {\r\n\r\n }",
"public void windowActivated(WindowEvent event) {}",
"public void windowActivated(WindowEvent e) {\n\t\t\r\n\t}",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }",
"@Override\n public void windowActivated(WindowEvent e) {\n }"
] | [
"0.8000939",
"0.7730794",
"0.7312978",
"0.7297694",
"0.7264843",
"0.7245704",
"0.70560133",
"0.7027555",
"0.69766414",
"0.69193166",
"0.6905391",
"0.6862138",
"0.68515307",
"0.6842874",
"0.6817827",
"0.6747053",
"0.6733237",
"0.672802",
"0.67094064",
"0.67094064",
"0.66971105",
"0.6695032",
"0.667897",
"0.66753435",
"0.66590834",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6648997",
"0.6633064",
"0.6633064",
"0.6633064",
"0.6633064",
"0.66322017",
"0.66322017",
"0.6629823",
"0.6619249",
"0.66170496",
"0.66115797",
"0.66115797",
"0.66115797",
"0.66115797",
"0.66115797",
"0.6609454",
"0.6609454",
"0.6609454",
"0.6609454",
"0.6609454",
"0.6604035",
"0.65948457",
"0.6579009",
"0.6579009",
"0.6579009",
"0.6579009",
"0.6579009",
"0.6579009",
"0.6579009",
"0.6577217",
"0.6575355",
"0.6575355",
"0.6574557",
"0.6574557",
"0.6574557",
"0.6574557",
"0.6574557",
"0.6574557",
"0.6574557",
"0.6569591",
"0.6569591",
"0.6569591",
"0.6569591",
"0.6569591",
"0.6568833",
"0.65646744",
"0.65646744",
"0.65598005",
"0.65595585",
"0.65581006",
"0.65516984",
"0.6551602",
"0.6551602",
"0.6551602",
"0.6551602",
"0.6551602"
] | 0.0 | -1 |
TODO Autogenerated method stub | public static void main(String[] args) {
int two[][] = { { 3, 2, 1 }, { 5, 4, 3, 2, 1 }, { 1, 2 } };
for (int i = 0; i <= two.length - 1; i++) {
for (int j = 0; j <= two[i].length - 1; j++) {
System.out.print(two[i][j] + "\t");
}
System.out.println();
}
} | {
"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 |
A pool with a single task queue | public static SimplePool simplePool(int poolSize) {
return new SimplePool(poolSize);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Processor(int id, WorkStealingThreadPool pool) {\n this.id = id;\n this.pool = pool;\n this.tasks = new ArrayDeque<Task>();\n }",
"OMMPool getPool();",
"public SingleWorkerPoolExecutor() {\n this.worker = new Worker(taskQueue);\n\n // Nothing bad as worker is blocked by an emptiness of a task\n // queue. Adding to this task queue will be possible after worker pool\n // finishes construction\n worker.start();\n }",
"@Override\n\tpublic void run() {\n\t\tif (queue.size() > 0) {\n\t\t\tITask task = queue.poll();\n\t\t\tpool.execute(task);\n\t\t} else {\n\t\t\tqueue.setTaskRunning(false);\n\t\t}\n\t}",
"ActorThreadPool getThreadPool();",
"public void runTask(Runnable task) {\n\t\tthreadPool.execute(task);\r\n\t\t// System.out.println(\"Queue Size after assigning the\r\n\t\t// task..\"+queue.size() );\r\n\t\t// System.out.println(\"Pool Size after assigning the\r\n\t\t// task..\"+threadPool.getActiveCount() );\r\n\t\t// System.out.println(\"Task count..\"+threadPool.getTaskCount() );\r\n\t\tSystem.out.println(\"Task count..\" + queue.size());\r\n\r\n\t}",
"final void pushTask(Runnable t) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int s = sp;\n setSlot(q, s & mask, t);\n storeSp(++s);\n if ((s -= base) == 1)\n pool.signalWork();\n else if (s >= mask)\n growQueue();\n }",
"protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }",
"@Override\r\n public void handleMessage(Message msg) {\n mThreadPool.execute(getTask());\r\n try {\r\n mSemaphoreThreadPool.acquire();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }",
"public BoneCP getPool() {\n return pool;\n }",
"private CollectTaskPool() {\n\t\tsuper();\n\t}",
"@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}",
"protected abstract void createPool();",
"private synchronized void addTask(Runnable runnable) {\r\n mTaskQueue.add(runnable);\r\n try {\r\n if (mPoolThreadHandler==null){\r\n mSemaphorePoolThreadHandler.acquire();\r\n }\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n mPoolThreadHandler.sendEmptyMessage(0x110);\r\n }",
"@Test\r\n\tpublic void test()\r\n\t{\n\t\t\r\n\t\tThreadPoolManager.addPool(\"1,UD,12,12,30000,200000\");\r\n//\t\tThreadPoolManager.addPool(\"2,UD,12,12,30000,200000\");\r\n\r\n// ThreadPoolManager.init(params);\r\n// ThreadPoolManager.getPool(\"1\");\r\n\t\t\r\n//\t\tThread t = new Thread(this.testCreaterun());\r\n//\t\tBaseTask\r\n\t\tBaseTask b = this.testCreaterun();\r\n\t\tThreadPoolManager.submit(\"1\", b);\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\tThreadPoolManager.shutdownNow(\"1\");\r\n\t\t\r\n\t\tSystemUtil.sleep(2000);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystemUtil.sleepForever();\r\n\t}",
"public interface ThreadPool<Job extends Runnable> {\n\n void execute(Job job);\n\n void shutDown();\n\n void addWorkers(int num);\n\n void removeWorkers(int num);\n\n int getJobSize();\n\n}",
"public ThreadPool getDefaultThreadPool();",
"private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"protected final void spawn(Task<?>... task) {\n // Gets a list of tasks, make a forLoop, and add it the the queue of that specific task\n for (int i=0; i<task.length; i++){\n // We want the pool to add a given task.\n // pool.addTask(task[i], id); <- this function needs to increase aswell.\n myProcessor.getPool().addTask(task[i], myProcessor.getProcessorID());\n //\tSystem.out.println(\"Spawned \" + i + \" new tasks\");\n }\n }",
"final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }",
"public interface PoolPipe { \n\n /**\n * Put a runnable in the queue for execution. The semantics\n * of the queue is dependent on the current implementation. If the\n * pipe is closed this method throws an pipe closed exception.\n */\n \n public void put(Runnable run) throws InterruptedException, PipeClosedException;\n \n}",
"private Runnable getTask() {\r\n if (mType== Type.FIFO){\r\n return mTaskQueue.removeFirst();\r\n }else if (mType== Type.LIFO){\r\n return mTaskQueue.removeLast();\r\n }\r\n return null;\r\n }",
"public StealingPool getPool() {\n return pool;\n }",
"public List<CaptureTask> loadTaskToTaskPool(int poolSize) {\n\t\treturn null;\r\n\t}",
"@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 interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}",
"public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }",
"final Runnable popTask() {\n int s = sp;\n while (s != base) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int mask = q.length - 1;\n int i = (s - 1) & mask;\n Runnable t = q[i];\n if (t == null || !casSlotNull(q, i, t))\n break;\n storeSp(s - 1);\n return t;\n }\n }\n return null;\n }",
"public TaskQueue(){\n this(\n new PrintWriter(System.out, true),\n new PrintWriter(System.err, true),\n DEFAULT_CONCURRENT_ACTIONS\n );\n }",
"public abstract void queue(@Nonnull LimiterPair task);",
"int getPoolSize();",
"@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread().getName()+\"输出\");\n }\n });\n }\n }",
"protected interface Pool<T> {\n /** Retrieves the give object from the pool if it is found, or null otherwise. */\n @Nullable\n T get(T input);\n\n /** Stores the given object into the pool. */\n void put(T input);\n\n /** Clears the pool. */\n void clear();\n\n /** Returns the size of the pool. */\n int size();\n }",
"public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }",
"public static void main(String[] args)\n {\n Runnable r1 = new Task1();\n // Creates Thread task\n Task2 r2 = new Task2();\n ExecutorService pool = Executors.newFixedThreadPool(MAX_T);\n\n pool.execute(r1);\n r2.start();\n\n // pool shutdown\n pool.shutdown();\n }",
"public ThreadPool()\r\n {\r\n // 20 seconds of inactivity and a worker gives up\r\n suicideTime = 20000;\r\n // half a second for the oldest job in the queue before\r\n // spawning a worker to handle it\r\n spawnTime = 500;\r\n jobs = null;\r\n activeThreads = 0;\r\n askedToStop = false;\r\n }",
"public BlockingObjectPool(int size) {\n synchronized (pool) {\n range(0, size)\n .forEach(i -> pool.add(new Object()));\n }\n }",
"Executor getWorkerpool() {\n\t return pool.getWorkerpool();\n\t}",
"public ListPool(int capacity) {\n pool = new ArrayBlockingQueue<>(capacity);\n }",
"private static void threadPoolWithExecute() {\n\n Executor executor = Executors.newFixedThreadPool(3);\n IntStream.range(1, 10)\n .forEach((i) -> {\n executor.execute(() -> {\n System.out.println(\"started task for id - \"+i);\n try {\n if (i == 8) {\n Thread.sleep(4000);\n } else {\n Thread.sleep(1000);\n }\n System.out.println(\"In runnable task for id -\" + i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n });\n System.out.println(\"End of method .THis gets printed immdly since execute is not blocking call\");\n }",
"Task poll();",
"public ForkJoinPool getPool() {\n return pool;\n }",
"final Runnable peekTask() {\n Runnable[] q = queue;\n if (q == null)\n return null;\n int mask = q.length - 1;\n int i = base;\n return q[i & mask];\n }",
"WorkProcessor(BlockingQueue<Integer> queue) {\n this.queue = queue;\n ThreadFactoryBuilder builder = new ThreadFactoryBuilder();\n builder.setNameFormat(\"Thread-%d\");\n builder.setUncaughtExceptionHandler((t, e) -> logError(\"Error \\t\" + e.getMessage(), e));\n executor = Executors.newFixedThreadPool(NUM_THREAD, builder.build());\n }",
"public Task(){}",
"public WorkerPool(String name) {\n this.name = name;\n\n log = LogFactory.getLog(WorkerPool.class.getName() + \":\" + name);\n }",
"public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tArrayBlockingQueue<ByteBuffer> cachedBuffers = null;\n\t\t\tScheduledFuture<?> futureP = null;\n\t\t\tScheduledFuture<?> futureA = null;\n\t\t\tScheduledFuture<?> futureB = null;\n\t\t\ttry {\n\t\t\t\tScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1, new ThreadFactory() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Thread newThread(@Nonnull Runnable r) {\n\t\t\t\t\t\tThread t = new Thread(THREAD_GROUP, r);\n\t\t\t\t\t\tt.setDaemon(true);\n\t\t\t\t\t\treturn t;\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tByteBuffer b = ByteBuffer.wrap(genId);\n\t\t\t\tb.putInt(workerId);\n\t\t\t\tb.putLong(Long.reverse(System.nanoTime()) ^ System.currentTimeMillis());\n\t\t\t\tb.putInt(ThreadLocalFixedSeedRandom.current().nextInt());\n\t\t\t\tb.flip();\n\t\t\t\tb.get(genId);\n\n\t\t\t\t// tasks should be removed if the future is canceled\n\t\t\t\texecutor.setRemoveOnCancelPolicy(true);\n\n\t\t\t\t// make sure shutdown removes all pending tasks\n\t\t\t\texecutor.setContinueExistingPeriodicTasksAfterShutdownPolicy(false);\n\t\t\t\texecutor.setExecuteExistingDelayedTasksAfterShutdownPolicy(false);\n\n\t\t\t\tcachedBuffers = new ArrayBlockingQueue<>(CACHED_BUFFERS);\n\t\t\t\tfor (int i = 0; i < CACHED_BUFFERS; i++) {\n\t\t\t\t\tByteBuffer buff = ByteBuffer.allocate(BUFFER_SIZE);\n\t\t\t\t\tif (rustMode) {\n\t\t\t\t\t\tbuff.order(ByteOrder.LITTLE_ENDIAN);\n\t\t\t\t\t}\n\t\t\t\t\tcachedBuffers.add(buff);\n\t\t\t\t}\n\n\t\t\t\tint personSize = personsGenerator.itemSize();\n\t\t\t\tint auctionSize = auctionsGenerator.itemSize();\n\t\t\t\tint bidSize = bidGenerator.itemSize();\n\n\t\t\t\tlong ratio = targetPartitionSize / TOTAL_EVENT_RATIO;\n\t\t\t\tlong personsToGenerate = (PERSON_EVENT_RATIO * ratio) / personSize;\n\t\t\t\tlong auctionsToGenerate = (AUCTION_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong bidsToGenerate = (BID_EVENT_RATIO * ratio) / auctionSize;\n\t\t\t\tlong recordsToGenerate = personsToGenerate + auctionsToGenerate + bidsToGenerate;\n\n\t\t\t\tint itemsPerBufferPerson = (BUFFER_SIZE - METADATA_SIZE) / personSize;\n\t\t\t\tint itemsPerBufferAuction = (BUFFER_SIZE - METADATA_SIZE) / auctionSize;\n\t\t\t\tint itemsPerBufferBid = (BUFFER_SIZE - METADATA_SIZE) / bidSize;\n\n\t\t\t\tAtomicLong sharedCounterPerson = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterAuction = new AtomicLong();\n\t\t\t\tAtomicLong sharedCounterBid = new AtomicLong();\n\n\t\t\t\tstarter.countDown();\n\t\t\t\tfairStarter.await();\n\n\t\t\t\tThroughtputLogger personLogger = new ThroughtputLogger(sharedCounterPerson, csvDirectory, name, topicNamePerson + \"-\" + workerId, 5, personSize);\n\t\t\t\tfutureP = executor.scheduleAtFixedRate(personLogger, 5, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger auctionLogger = new ThroughtputLogger(sharedCounterAuction, csvDirectory, name, topicNameAuction + \"-\" + workerId,5, auctionSize);\n\t\t\t\tfutureA = executor.scheduleAtFixedRate(auctionLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tThroughtputLogger bidsLogger = new ThroughtputLogger(sharedCounterBid, csvDirectory, name, topicNameBid + \"-\" + workerId,5, bidSize);\n\t\t\t\tfutureB = executor.scheduleAtFixedRate(bidsLogger, 6, 5, TimeUnit.SECONDS);\n\n\t\t\t\tdouble startMs = System.currentTimeMillis();\n\t\t\t\tlong sentBytes = 0;\n\t\t\t\tThreadLocalFixedSeedRandom randomness = ThreadLocalFixedSeedRandom.current();\n\n\n\t\t\t\tlong desiredThroughputBytesPerSecondMax = desiredThroughputBytesPerSecond;\n\t\t\t\tlong desiredThroughputBytesPerSecondMin = varyingWorkload ? 1024 * 1024 : desiredThroughputBytesPerSecond; // 1 MB/s\n\t\t\t\tlong throughputDelta = varyingWorkload ? 512 * 1024 : 0;\n\t\t\t\tlong currentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\tlong throughputChangeTimestamp = 0;\n\n\t\t\t\tRateLimiter throughputThrottler = RateLimiter.create(currentThroughput, 5, TimeUnit.SECONDS);\n\t\t\t\tLOG.debug(\"Create throughputThrottler for {} -> << {} MB/sec : {} MB/sec >>\",\n\t\t\t\t\t\tworkerId, desiredThroughputBytesPerSecondMin / ONE_MEGABYTE, desiredThroughputBytesPerSecondMax / ONE_MEGABYTE);\n\t\t\t\tint chkP = personsGenerator.genChecksum();\n\t\t\t\tint chkA = auctionsGenerator.genChecksum();\n\t\t\t\tint chkB = bidGenerator.genChecksum();\n\t\t\t\tlong pendingPerson = (recordsToGenerate / TOTAL_EVENT_RATIO) * PERSON_EVENT_RATIO;\n\t\t\t\tlong pendingAuctions = (recordsToGenerate / TOTAL_EVENT_RATIO) * AUCTION_EVENT_RATIO;\n\t\t\t\tlong pendingBids = (recordsToGenerate / TOTAL_EVENT_RATIO) * BID_EVENT_RATIO;\n\t\t\t\tlong sentBytesDelta = 0;\n\t\t\t\tByteBuffer bufP = cachedBuffers.take();\n\t\t\t\tByteBuffer bufA = cachedBuffers.take();\n\t\t\t\tByteBuffer bufB = cachedBuffers.take();\n\t\t\t\tbufA.putInt(chkA);\n\t\t\t\tbufP.putInt(chkP);\n\t\t\t\tbufB.putInt(chkB);\n\t\t\t\tint itemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\tint itemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\tint itemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\tlong backlogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\tlong backlogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\tlong backlogBid = pendingBids - itemsInThisBufferA;\n\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\tbufB.putLong(backlogBid);\n\n\t\t\t\tlong sentPersons = 0;\n\t\t\t\tlong sentAuctions = 0;\n\t\t\t\tlong sentBids = 0;\n\t\t\t\tlong eventId = 0;\n\n\t\t\t\tfor (; eventId < recordsToGenerate; eventId++) {\n\n\t\t\t\t\tfinal long timestamp = System.currentTimeMillis();\n\n\t\t\t\t\tlong rem = eventId % TOTAL_EVENT_RATIO;\n\t\t\t\t\tif (rem < PERSON_EVENT_RATIO) {\n\t\t\t\t\t\tpersonsGenerator.writeItem(eventId, timestamp, randomness, bufP);\n\t\t\t\t\t\tpendingPerson--;\n\t\t\t\t\t\tif (bufP.remaining() < personSize) {\n\t\t\t\t\t\t\tbufP.position(bufP.position() + bufP.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNamePerson, targetPartition, genId, bufP);\n\t\t\t\t\t\t\tkafkaProducerPersons.send(kafkaRecord, new InternalCallback(cachedBuffers, bufP, sharedCounterPerson, itemsInThisBufferP));\n\t\t\t\t\t\t\tsentPersons += itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP = cachedBuffers.take();\n\t\t\t\t\t\t\tbufP.putInt(chkP);\n\t\t\t\t\t\t\titemsInThisBufferP = (int) Math.min(itemsPerBufferPerson, pendingPerson);\n\t\t\t\t\t\t\tbacklogPerson = pendingPerson - itemsInThisBufferP;\n\t\t\t\t\t\t\tbufP.putInt(itemsInThisBufferP);\n\t\t\t\t\t\t\tbufP.putLong(backlogPerson);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (rem < (PERSON_EVENT_RATIO + AUCTION_EVENT_RATIO)) {\n\t\t\t\t\t\tauctionsGenerator.writeItem(eventId, timestamp, randomness, bufA);\n\t\t\t\t\t\tpendingAuctions--;\n\t\t\t\t\t\tif (bufA.remaining() < auctionSize) {\n\t\t\t\t\t\t\tbufA.position(bufA.position() + bufA.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameAuction, targetPartition, genId, bufA);\n\t\t\t\t\t\t\tkafkaProducerAuctions.send(kafkaRecord, new InternalCallback(cachedBuffers, bufA, sharedCounterAuction, itemsInThisBufferA));\n\t\t\t\t\t\t\tsentAuctions += itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA = cachedBuffers.take();\n\t\t\t\t\t\t\tbufA.putInt(chkA);\n\t\t\t\t\t\t\titemsInThisBufferA = (int) Math.min(itemsPerBufferAuction, pendingAuctions);\n\t\t\t\t\t\t\tbacklogAuction = pendingAuctions - itemsInThisBufferA;\n\t\t\t\t\t\t\tbufA.putInt(itemsInThisBufferA);\n\t\t\t\t\t\t\tbufA.putLong(backlogAuction);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbidGenerator.writeItem(eventId, timestamp, randomness, bufB);\n\t\t\t\t\t\tpendingBids--;\n\t\t\t\t\t\tif (bufB.remaining() < bidSize) {\n\t\t\t\t\t\t\tbufB.position(bufB.position() + bufB.remaining());\n\t\t\t\t\t\t\tProducerRecord<byte[], ByteBuffer> kafkaRecord = new ProducerRecord<>(topicNameBid, targetPartition, genId, bufB);\n\t\t\t\t\t\t\tkafkaProducerBids.send(kafkaRecord, new InternalCallback(cachedBuffers, bufB, sharedCounterBid, itemsInThisBufferB));\n\t\t\t\t\t\t\tsentBids += itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB = cachedBuffers.take();\n\t\t\t\t\t\t\tbufB.putInt(chkB);\n\t\t\t\t\t\t\titemsInThisBufferB = (int) Math.min(itemsPerBufferBid, pendingBids);\n\t\t\t\t\t\t\tbacklogBid = pendingBids - itemsInThisBufferB;\n\t\t\t\t\t\t\tbufB.putInt(itemsInThisBufferB);\n\t\t\t\t\t\t\tbufB.putLong(backlogBid);\n\t\t\t\t\t\t\tsentBytes += BUFFER_SIZE;\n\t\t\t\t\t\t\tsentBytesDelta += BUFFER_SIZE;\n\t\t\t\t\t\t\tthroughputThrottler.acquire(BUFFER_SIZE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n//\n\n\t\t\t\t\tif (sentBytesDelta > LOGGING_THRESHOLD) {\n\t\t\t\t\t\tLOG.info(\"{} has just sent {} MB to kafka in {} sec - rate limiter {} bytes/sec\",\n\t\t\t\t\t\t\t\tname,\n\t\t\t\t\t\t\t\tsentBytes / ONE_MEGABYTE,\n\t\t\t\t\t\t\t\t(timestamp - startMs) / 1_000,\n\t\t\t\t\t\t\t\tthroughputThrottler.getRate());\n\t\t\t\t\t\tsentBytesDelta = 0;\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((timestamp - throughputChangeTimestamp) > 10_000) {\n\t\t\t\t\t\tcurrentThroughput += throughputDelta;\n\t\t\t\t\t\tif (currentThroughput > desiredThroughputBytesPerSecondMax) {\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t} else if (currentThroughput < desiredThroughputBytesPerSecondMin) {\n\t\t\t\t\t\t\tcurrentThroughput = desiredThroughputBytesPerSecondMin;\n\t\t\t\t\t\t\tthroughputDelta = -throughputDelta;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthroughputThrottler.setRate(currentThroughput);\n\t\t\t\t\t\tthroughputChangeTimestamp = timestamp;\n\t\t\t\t\t\tLOG.debug(\"Throttler changed to {}\", currentThroughput);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterPerson.compareAndSet(sentPersons, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentAuctions, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\twhile (!sharedCounterAuction.compareAndSet(sentBids, 0)) {\n\t\t\t\t\tThread.sleep(100);\n\t\t\t\t}\n\t\t\t\tdouble end = System.currentTimeMillis();\n\t\t\t\tdouble diff = end - startMs;\n\t\t\t\tLOG.info(\"{} is finished after {} msec and {} GBs and {} items with an overall throughput of {}\",\n\t\t\t\t\t\tname,\n\t\t\t\t\t\tdiff,\n\t\t\t\t\t\tsentBytes / ONE_GIGABYTE,\n\t\t\t\t\t\trecordsToGenerate,\n\t\t\t\t\t\t(sentBytes * 1_000.0) / (diff * ONE_GIGABYTE));\n\t\t\t} catch (Throwable error) {\n\t\t\t\tLOG.error(\"Error: {}\", error);\n\t\t\t} finally {\n\t\t\t\tif (cachedBuffers != null) {\n\t\t\t\t\tcachedBuffers.clear();\n\t\t\t\t}\n\t\t\t\tkafkaProducerAuctions.close();\n\t\t\t\tkafkaProducerPersons.close();\n\t\t\t\tkafkaProducerBids.close();\n\t\t\t\tcontroller.countDown();\n\t\t\t\tif (futureA != null) {\n\t\t\t\t\tfutureA.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureP != null) {\n\t\t\t\t\tfutureP.cancel(false);\n\t\t\t\t}\n\t\t\t\tif (futureB != null) {\n\t\t\t\t\tfutureB.cancel(false);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n ExecutorService es = Executors.newCachedThreadPool();\n es.execute(new Task(65));\n es.execute(new Task(5));\n System.out.println(\"结束执行!\");\n }",
"private UniqueElementSingleThreadWorker()\n {\n _state = ActivityState.INITIALIZING;\n _taskQueue = new UniqueTagQueue<String, Runnable>();\n \n _taskThread = new Thread(\"UniqueElementSingleThreadWorker-\" + COUNTER.incrementAndGet())\n {\n @Override\n public void run()\n {\n while(true)\n {\n try\n {\n Runnable task = _taskQueue.blockingPop();\n if(task == SHUTDOWN_TASK)\n {\n break;\n }\n task.run();\n }\n catch(InterruptedException ex) { }\n //Catch run time exceptions that the runnable might throw so that the thread does not die\n catch(RuntimeException ex)\n {\n ErrorReporter.reportUncaughtException(ex);\n }\n }\n \n _state = ActivityState.SHUT_DOWN;\n }\n };\n }",
"void bind(WorkerPool workerPool);",
"int getMinPoolSize();",
"public synchronized void execute(Runnable task) throws Exception{\n \n if(threadPoolExecutor.isShutdown()){\n \tSystem.out.println(\"Thread pool \" + \"\" + \" is being Shutdown.\\n\"\n \t\t\t\t\t+ \"No tasks are allowed to be scheduled.\");\n \n }\n //add the task to the queue\n //this will cause a thread in the work pool to pick this up and execute\n queue.put(task);\n System.out.println(\"task has been added.\");\n }",
"public interface TaskQueue {\n\n /**\n * Adds a task to this dependency queue.\n *\n * @param task the {@code KernelRunnable} to add\n * @param owner the {@code Identity} that owns the task\n */\n void addTask(KernelRunnable task, Identity owner);\n\n}",
"private void forkQueueProcessor() {\n if (lifecycle.started() == false) {\n drainQueueOnRejection(new FailedToCommitClusterStateException(\"node closed\", getRejectionException()));\n return;\n }\n\n assert totalQueueSize.get() > 0;\n final var threadContext = threadPool.getThreadContext();\n try (var ignored = threadContext.stashContext()) {\n threadContext.markAsSystemContext();\n threadPoolExecutor.execute(queuesProcessor);\n }\n }",
"public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }",
"public Serializable asyncPop() {//can move on to another task before it finishes.\n Serializable temp = null;\n boolean finished = false;\n while(!finished){\n if(taskQueue.isEmpty()){\n try {\n Thread.sleep(1000);//1 second\n } catch (InterruptedException ex) {\n Logger.getLogger(BasicMsgQ.class.getName()).log(Level.SEVERE, null, ex);\n }\n }else{\n temp = taskQueue.removeFirst();\n finished = true;\n } \n }\n return temp;\n }",
"private static void threadPoolInit() {\n ExecutorService service = Executors.newCachedThreadPool();\n try {\n for (int i = 1; i <= 10; i++) {\n service.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" 办理业务...\");\n });\n try {\n TimeUnit.MILLISECONDS.sleep(1L);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n service.shutdown();\n }\n }",
"private void queueTask(Version theTask) {\n\tsynchronized(_taskQueue) {\n\t _taskQueue.add(theTask);\n\t}\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 }",
"public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }",
"public WaitablePQueue() {\n\t\tthis(DEFAULT_INITIAL_CAPACITY, null);\n\t}",
"public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;",
"final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }",
"public String poolName();",
"int getExecutorCorePoolSize();",
"void runQueue();",
"public Task makeTask() {\n Task genTask = new Task(this, state, generateLocationInNeighborhood());\n\n\n //state.printlnSynchronized(\"base bounty in neighborhood \" + id + \" is = \" + (totalTime / count));\n genTask.setBaseBounty(getBaseBounty(genTask.getJob().jobType, genTask));\n double br = getBountyRate(genTask.getLocation(),genTask.getJob().jobType);\n totalBr += br;\n genTask.setBountyRate(br);\n\n\n totalBaseBounty += genTask.getBounty();\n tasks.add(genTask);\n\n totalNumTasksGenerated++;\n return genTask;\n }",
"public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"protected TaskFlow( ) { }",
"Connection createConnection(ExecutorService pool);",
"private static void threadPoolWithSubmit() throws InterruptedException, ExecutionException {\n Executor executor = Executors.newFixedThreadPool(1);\n Callable<String> callable=()->{\n try{\n Thread.sleep(4000);\n System.out.println(\"In callable\");\n Thread.sleep(4000);\n System.out.println(\"In runnable for task id 1\");\n }catch(Exception e){\n e.printStackTrace();\n }\n return \"success\";\n };\n Future<String> future =((ExecutorService) executor).submit(callable);\n System.out.println(\"Future result - \"+future.get()+\" Future is blocking as it blocks until result is obtained\");\n System.out.println(\"End of method \");\n ((ExecutorService) executor).shutdown();\n /*Output\n In callable\n In runnable for task id 1\n Future result - success Future is blocking as it blocks until result is obtained\n End of method\n */\n }",
"private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 100).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}",
"private void workOnQueue() {\n }",
"public static void main(String[] args) {\n\n var pool = Executors.newFixedThreadPool(5);\n Future outcome = pool.submit(() -> 1);\n\n }",
"public int getActivePoolSize(){return activePoolSize;}",
"void connect(FmqPool pool);",
"public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}",
"Task getAggregatedTask();",
"private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }",
"private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }",
"public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }",
"@Override\r\n\tpublic void run() {\n\t\ttry {\r\n\t\t\tObjectInputStream objectInput = new ObjectInputStream(\r\n\t\t\t\t\tclsock.getInputStream());\r\n\t\t\tObject object = objectInput.readObject();\r\n\t\t\ttask = (String) object;// reading URLs from client\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\tSystem.out.println(\"The task Batch has not come from the Client\");\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t\tString clientId = task.split(\",\")[0];\r\n\r\n\t\tRemoteScheduler remoteScheduler = new RemoteScheduler(clientId,\r\n\t\t\t\ttask);\r\n\t\tremoteScheduler.sendTaskToQueue();\r\n\t\tExecutorService remoteService = Executors.newFixedThreadPool(1);\r\n\t\ttry {\r\n\t\t\tFuture<String> remoteResult = remoteService\r\n\t\t\t\t\t.submit(remoteScheduler);\r\n\t\t\tString clientResult = remoteResult.get();\r\n\t\t\tObjectOutputStream outputStream = new ObjectOutputStream(\r\n\t\t\t\t\tclsock.getOutputStream());\r\n\t\t\toutputStream.writeObject(clientResult);\r\n\t\t\toutputStream.close();\r\n\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\te.printStackTrace();\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}\r\n\r\n\t\ttry {\r\n\t\t\tclsock.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}",
"Task createTask();",
"Task createTask();",
"Task createTask();",
"protected ClassPool getClassPool() {\r\n return pool;\r\n }",
"private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }",
"@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 Task() { }",
"public interface PoolStrategy<T> {\n T onPoolExhausted() throws PoolException;\n\n boolean onNoImpactRecycle() throws PoolException;\n }",
"public static void main(String[] args) {\n\n ScheduledExecutorService service = Executors.newScheduledThreadPool(4);\n\n //task to run after 10 seconds delay\n service.schedule(new Task(), 10, TimeUnit.SECONDS);\n\n //task to repeatedly every 10 seconds\n service.scheduleAtFixedRate(new Task(), 15, 10, TimeUnit.SECONDS);\n\n //task to run repeatedly 10 seconds after previous task completes\n service.scheduleWithFixedDelay(new Task(), 15, 10, TimeUnit.SECONDS);\n\n\n for (int i = 0; i < 100; i++) {\n System.out.println(\"task number - \" + i + \" \");\n service.execute(new Task());\n }\n System.out.println(\"Thread name: \" + Thread.currentThread().getName());\n\n }",
"private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }",
"public boolean isPoolingEnabled();",
"@Override\n\tpublic void addTask(ISimpleTask task) {\n\t\ttry {\n\t\t\tqueue.put(task);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }",
"public TaskThread(ThreadPool threadPool) {\n super(threadPool.getThreadGroup(), \"Task: Idle\");\n this.threadPool = threadPool;\n threadId = ThreadPool.getUniqueThreadId();\n System.out.println(\"threadId Created:\" + threadId);\n }",
"@Override\n public void run() {\n task.run();\n }",
"void processQueue();",
"Callable<E> getTask();"
] | [
"0.69124264",
"0.69019365",
"0.68559355",
"0.6766047",
"0.67325336",
"0.66666394",
"0.6644701",
"0.65352875",
"0.6451499",
"0.64182645",
"0.641022",
"0.6389741",
"0.63232446",
"0.6284686",
"0.623154",
"0.615268",
"0.6152039",
"0.6112127",
"0.6097306",
"0.609038",
"0.60900193",
"0.6067392",
"0.60608137",
"0.6036206",
"0.59956384",
"0.59853137",
"0.5967106",
"0.5964096",
"0.59552354",
"0.5901707",
"0.58892715",
"0.587081",
"0.5868966",
"0.5867864",
"0.58273995",
"0.580096",
"0.5783567",
"0.57788676",
"0.57760006",
"0.5736057",
"0.5733784",
"0.5727855",
"0.5727571",
"0.57272416",
"0.57260513",
"0.57174015",
"0.569935",
"0.56950706",
"0.569331",
"0.56870294",
"0.56777614",
"0.56763643",
"0.5668802",
"0.56535983",
"0.5646457",
"0.5646041",
"0.56437206",
"0.5639048",
"0.562704",
"0.5619416",
"0.56144893",
"0.5614337",
"0.5598308",
"0.55934554",
"0.5584916",
"0.5584677",
"0.55804074",
"0.5579694",
"0.55776626",
"0.55750793",
"0.555998",
"0.5557371",
"0.5556046",
"0.55520314",
"0.55407876",
"0.55323404",
"0.55236053",
"0.5513774",
"0.5512352",
"0.55116665",
"0.5510551",
"0.5510507",
"0.5508568",
"0.55060416",
"0.55050385",
"0.55050385",
"0.55050385",
"0.5504845",
"0.5502515",
"0.550064",
"0.5500565",
"0.5498734",
"0.5496872",
"0.5496488",
"0.5490987",
"0.54891986",
"0.5485122",
"0.54829115",
"0.5482536",
"0.5481178",
"0.54786617"
] | 0.0 | -1 |
The returned queue is not thread safe | public Queue getQueue() {
return new Queue();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void workOnQueue() {\n }",
"T get() throws QueueEmpytException;",
"private Queue(){\r\n\t\tgenerateQueue();\r\n\t}",
"void processQueue();",
"void runQueue();",
"public void onQueue();",
"protected abstract long waitOnQueue();",
"public static Queue getQueue(){\r\n\t\treturn queueInstance;\r\n\t}",
"myQueue(){\n }",
"Object dequeue();",
"Object dequeue();",
"public Boolean lazyQueue();",
"public Object dequeue()\n {\n return queue.removeFirst();\n }",
"public interface Queue {\n\tpublic Set getGatheredElements();\n\tpublic Set getProcessedElements();\n\tpublic int getQueueSize(int level);\n\tpublic int getProcessedSize();\n\tpublic int getGatheredSize();\n\tpublic void setMaxElements(int elements);\n\tpublic Object pop(int level);\n\tpublic boolean push(Object task, int level);\n\tpublic void clear();\n}",
"public synchronized Object get() {\n try {\n Object obj = queue.take().getElement();\n\n // set next offset\n delayOffset = System.currentTimeMillis();\n\n return obj;\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"protected abstract List<BlockingQueue<CallRunner>> getQueues();",
"public MyArrayList<E> getQueue() {\n return this.queue;\n }",
"T dequeue();",
"T dequeue();",
"public interface Queue {\r\n\r\n\t/**\r\n\t * This method will return the first activity from the queue.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic Activity poll();\r\n\r\n\t/**\r\n\t * This method will push the activity to the queue.\r\n\t * \r\n\t * @param activity\r\n\t */\r\n\tpublic void push(Object activity);\r\n\r\n\t/**\r\n\t * This method will tell that the queue is closed or not.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isQueueClosed();\r\n\r\n\t/**\r\n\t * This method will on the queue to available.\r\n\t */\r\n\tpublic void onQueue();\r\n\r\n\t/**\r\n\t * this method will off the queue so not available.\r\n\t */\r\n\tpublic void closeQueue();\r\n\r\n\t/**\r\n\t * Returns true if the queue is empty.\r\n\t * \r\n\t * @return\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n}",
"public T dequeue();",
"public List<MediaSessionCompat.QueueItem> getQueue() {\n }",
"public void queueUsage() {\n\t\t//use LinkedList as a queue\n\t\tQueue<String> q = new LinkedList<String>();\n\t\tq.add(\"1\");\n\t\tq.add(\"2\");\n\t\tq.add(\"3\");\n\t\tq.add(\"10\");\n\t\tq.add(\"11\");\n\t\tint[] a;\n\n\t\tLinkedBlockingQueue<String> bq = new LinkedBlockingQueue<String>();\n\t\t\n\t\t//ArrayBlockingQueue needs to set the size when created.\n\t\tArrayBlockingQueue<String> aq = new ArrayBlockingQueue<String>(100);\n\t\t\n\t\tPriorityBlockingQueue<String> pq = new PriorityBlockingQueue<String>();\n\t\t\n//\t\tDelayQueue<String> dq = new DelayQueue<String>(); \n\t\t\n\t}",
"@Override\r\n\tpublic Iterator iterator() {\n\t\treturn new QueueIterator();\r\n\t}",
"E dequeue();",
"E dequeue();",
"E dequeue();",
"public int queue() \n { return waiting; }",
"T dequeue() throws RuntimeException;",
"T dequeue() throws RuntimeException;",
"<V extends Object> Queue<V> getQueue(String queueName);",
"@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic Optional<IAMQPQueue> queue() {\n\t\t\t\treturn null;\n\t\t\t}",
"protected void onQueued() {}",
"private void processQueue() {\n WeakValue<V, K> weakValue;\n while ((weakValue = (WeakValue<V, K>) queue.poll()) != null) {\n // remove it from the cache\n weakCache.remove(weakValue.key);\n }\n }",
"private static Flux<ByteBuffer> dequeuingFlux(Queue<ByteBuffer> queue) {\n return Flux.generate(sink -> {\n ByteBuffer buffer = queue.poll();\n if (buffer != null) {\n sink.next(buffer);\n } else {\n sink.complete();\n }\n });\n }",
"@Override\n protected String getQueueName() {return _queueName;}",
"public Queue() {}",
"@Override\n\tpublic void addToQueue() {\n\t}",
"@Override\n public E poll() {\n E tmp = (E)queue[0];\n System.arraycopy(queue, 1, queue, 0, size - 1);\n size--;\n return tmp;\n }",
"public interface QueueService {\n\n /**\n * 添加元素\n *\n * @param messageQueue\n */\n void add(MessageQueue messageQueue);\n\n\n /**\n * 弹出元素\n */\n MessageQueue poll();\n\n Iterator<MessageQueue> iterator();\n\n\n}",
"public E dequeue();",
"Queue getQueue() throws NamingException;",
"@NotNull\n public static <T> Queue<T> queue() {\n try {\n return new ArrayDeque<T>();\n } catch (NoClassDefFoundError nce) {\n return new LinkedList<T>();\n }\n }",
"private void putOneQueue(BlockingQueue q, List buffer) throws InterruptedException {\n q.put(buffer);\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" done\");\n// System.err.println(Thread.currentThread().getName() + \"[MC] puts \" + buffer.size() + \" on \" + q.hashCode() + \" first record \" + buffer.get(0));\n }",
"public MyQueue() {\n \n }",
"@Override\r\n\tpublic Iterator<Object> iterator() {\r\n\t\treturn new QueueIterator();\r\n\t}",
"ValueQueue() { super(); }",
"public Object dequeue() {\n return queue.dequeue();\n }",
"@Test\n public void queue() {\n\n Queue<String> q = new LinkedList<>();\n q.offer(\"1\");\n q.offer(\"2\");\n q.offer(\"3\");\n System.out.println(q.offer(\"4\"));\n System.out.println(q.add(\"2\"));\n System.out.println(q.toString());\n System.out.println(\"peek \" + q.peek()); // 1, peek() means get the first element in the queue\n System.out.println(\"size \" + q.size()); // 4\n System.out.println(\"poll \" + q.poll()); // 1\n System.out.println(\"size \" + q.size()); // 3\n\n\n }",
"public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}",
"public interface IQueue {\n public void clear();\n public boolean isEmpty();\n public int length();\n public Object peek();\n public void offer(Object x) throws Exception;\n public Object poll();\n}",
"public QueueExplorator() {\n\t\tqueue = new LinkedQueue<Square>();\t\n\t}",
"Collection<QueuedPrintJob> getQueue();",
"public interface QueueManager {\n List<Message> messages = null;\n\n int insertQueue(String queueId, Message message);\n\n List<Message> getQueue(String queueId, int num);\n}",
"T peek(){\n if(isEmpty()){\n return null;\n }\n return (T)queueArray[0];\n }",
"public AppQueue getQueue()\r\n {\r\n return event_q;\r\n }",
"public interface Queue<T> {\n\n /**\n * Current queue size\n * @return size as int\n */\n int size();\n\n /**\n * Checks if the the queue is empty\n * @return true if the list is empty\n */\n boolean isEmpty();\n\n /**\n * Adding an element to the queue\n * @param t element to add\n */\n void enqueue(T t);\n\n /**\n * Return and removes the first element in the queue\n * @return the removed element\n * @throws IndexOutOfBoundsException if queue is empty\n */\n T dequeue();\n\n /**\n * Return (without removing) first element in queue\n * @return the first element in queue\n * @throws IndexOutOfBoundsException if the queue is empty\n *\n */\n T first();\n\n /**\n * Return (without removing) last element in queue\n * @return last element in queue\n * @throws IndexOutOfBoundsException if the queue is empty\n */\n T last();\n\n /**\n * Return a string representation of the queue content.\n * @return String of queue\n */\n String toString();\n\n /**\n * Element iterator.\n * @return Iterates over elements in queue\n */\n Iterator iterator();\n\n}",
"public AliasInQueue() {\n\t\tsuper();\n\t}",
"void queueShrunk();",
"public static void main(String[] args) {\n// System.out.println(testQueue.getQueueElement());\n// System.out.println(testQueue.getQueueElement());\n }",
"BaseRequest<T> queue(RequestQueue queue) {\n queue.add(this);\n return this;\n }",
"@Override\n\tpublic E dequeue() {\n\t\tif(isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\tE data = queue[pos];\n\t\tqueue[pos] = null;\n\t\tpos = (pos+1) % queue.length;\n\t\tsize--;\n\t\treturn data;\n\t}",
"public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }",
"@Override\n public void run(){\n while(!killed) {\n try {\n LinkedList<Object> list = queue.take();\n if(list.size()!=0) {\n if (list.get(3) == null) {\n passIDFromQueue((int) list.get(0), (int) list.get(1),\n (int) list.get(2), (LinkedList<Node>) list\n .get(4), (LinkedList<Node>) list.get(5));\n } else {\n returnIDFromQueue((int)list.get(0),(int)list.get(1),\n (int) list.get(2), (boolean) list.get(3),\n (LinkedList<Node>) list.get(4),(LinkedList<Node>) list.get(5));\n }\n }\n }\n catch (Exception e){\n System.out.println(e);\n killed=true;\n }\n }\n }",
"public interface Queue<E> {\n\n /**\n * \n * @return the number of elements in the queue.\n */\n int size();\n\n /**\n * \n * @return true if the queue is empty, false if not.\n */\n boolean isEmpty();\n\n /**\n * \n * Inserts an element at the rear of the queue.\n * \n * @param e\n */\n void enqueue(E e);\n\n /**\n * \n * @return the first element of the queue, but does not remove it (null if empty).\n */\n E first();\n\n /**\n * \n * @return first element of the queue and removes it (null if empty).\n */\n E dequeue();\n}",
"public process dequeue() {\n\t\treturn queue.removeFirst();\n\t}",
"public interface Queue {\n /***** Setting class functions *******/\n\n /* Add element to end of queue function\n * PRE: elem != null && queue != null\n * POST: queue[size] = elem && size` = size + 1 && other imutabled\n */\n void enqueue(Object elem);\n\n /* Delete and return first element in queue function\n * PRE: size > 0\n * POST: R = queue[0] && queue[i] = queue[i + 1] && size` = size - 1 && other imutabled\n */\n Object dequeue();\n\n /* Add element to begin of queue\n * PRE: elem != null\n * POST: queue[i] = queue[i - 1](size >= i > 0) && queue[0] = elem && size` = size + 1 && other imutabled\n */\n void push(Object elem);\n\n /* Delete and return last element in queue function\n * PRE: size > 0\n * POST: R = queue[size - 1] && size` = size - 1 && other imutabled\n */\n Object remove();\n\n /***** Getting class functions *******/\n\n /* Get first element of queue function\n * PRE: size > 0\n * POST: R = queue[0] && all elements imutabled\n */\n Object element();\n\n /* Get last element of queue function\n * PRE: size > 0\n * POST: R = queue[size - 1] && all elements imutabled\n */\n Object peek();\n\n /* Get size function\n * PRE: True\n * POST: R = size && all imutabled\n */\n int size();\n\n /* Check for empty queue function\n * PRE: True\n * POST: R = (size == 0) && all imutabled\n */\n boolean isEmpty();\n\n /* Delete all elements from queue function\n * PRE: True\n * POST: size = 0\n */\n void clear();\n\n /******* Modification *******/\n /* Create queue with elements like predicate\n * PRE: correct predicate && queue != null\n * POST: all imutabled && R = {R[0]...R[new_size] : new_size <= size && predicate(R[i]) = 1 && R - the same type of queue}\n * : && exist sequence i[0] ... i[k] (i[0] < ... < i[k]) : R[it] = queue[i[it]](0 <= it < k) && k - max\n */\n Queue filter(Predicate predicate);\n\n /* Create queue with elements like predicate\n * PRE: correct function && queue != null\n * POST: all imutabled && R = {y[i] | y[i] = function(queue[i])} size(R) = size(queue) && R is the same type of queue\n */\n Queue map(Function function);\n}",
"public synchronized FileMetadata getMetadataFromQueue(){\n FileMetadata fileMetadata = queue.pollFirst();\n while(fileMetadata ==null){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n fileMetadata = queue.pollFirst();\n }\n return fileMetadata;\n }",
"public MyQueue() {\n\n }",
"public E poll(){\n int cnt = 0;\n long expect = front;\n int index;\n int curTryNum = tryNum;\n E e ;\n for(;;) {\n HighPerformanceQueue q = this;\n expect = front;\n index = (int)(expect&(max_size-1));\n if(available[index]) {\n e = (E) data[index];\n //TODO Additional write burden is added to the read operation\n available[index] = false;\n if (help.compareAndSwapLong(q, frontOffset, expect, expect + 1)) {\n // TODO Dynamic maintenance retries\n break;\n }\n available[index] = true;\n }\n cnt++;\n if(cnt==tryNum){\n return null;\n }\n }\n return e;\n }",
"public BlockingQueue<T> getInputQueue() {\n\t\treturn inputQueue;\n\t}",
"@Override\n public void flush() {\n new QueueConsumer().run();\n }",
"public synchronized T dequeue() {\r\n\t\twhile(queue.size()==0){\r\n\t\t\ttry {\r\n\t\t\t\tthis.wait();\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\tSystem.out.println(\"Problem during dequeue\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tT ans = queue.removeFirst();\r\n\t\tthis.notifyAll();\r\n\t\treturn ans;\r\n\r\n\t}",
"public void drain() {\r\n if (getAndIncrement() == 0) {\r\n SimpleQueue<T> simpleQueue = this.queue;\r\n int i = this.consumed;\r\n int i2 = this.bufferSize;\r\n int i3 = i2 - (i2 >> 2);\r\n boolean z = this.sourceMode != 1;\r\n int i4 = 1;\r\n int i5 = i;\r\n SimpleQueue<T> simpleQueue2 = simpleQueue;\r\n int i6 = i5;\r\n while (true) {\r\n if (simpleQueue2 != null) {\r\n long j = LongCompanionObject.MAX_VALUE;\r\n InnerSubscription[] innerSubscriptionArr = (InnerSubscription[]) this.subscribers.get();\r\n boolean z2 = false;\r\n for (InnerSubscription innerSubscription : innerSubscriptionArr) {\r\n long j2 = innerSubscription.get();\r\n if (j2 != Long.MIN_VALUE) {\r\n j = Math.min(j2 - innerSubscription.emitted, j);\r\n z2 = true;\r\n }\r\n }\r\n long j3 = 0;\r\n if (!z2) {\r\n j = 0;\r\n }\r\n while (true) {\r\n if (j == j3) {\r\n break;\r\n }\r\n boolean z3 = this.done;\r\n try {\r\n Object poll = simpleQueue2.poll();\r\n boolean z4 = poll == null;\r\n if (!checkTerminated(z3, z4)) {\r\n if (z4) {\r\n break;\r\n }\r\n int length = innerSubscriptionArr.length;\r\n for (int i7 = 0; i7 < length; i7++) {\r\n InnerSubscription innerSubscription2 = innerSubscriptionArr[i7];\r\n if (!innerSubscription2.isCancelled()) {\r\n innerSubscription2.downstream.onNext(poll);\r\n innerSubscription2.emitted++;\r\n }\r\n }\r\n if (z) {\r\n i6++;\r\n if (i6 == i3) {\r\n ((Subscription) this.upstream.get()).request((long) i3);\r\n i6 = 0;\r\n }\r\n }\r\n j--;\r\n if (innerSubscriptionArr != this.subscribers.get()) {\r\n break;\r\n }\r\n j3 = 0;\r\n } else {\r\n return;\r\n }\r\n } catch (Throwable th) {\r\n Throwable th2 = th;\r\n Exceptions.throwIfFatal(th2);\r\n ((Subscription) this.upstream.get()).cancel();\r\n simpleQueue2.clear();\r\n this.done = true;\r\n signalError(th2);\r\n return;\r\n }\r\n }\r\n if (checkTerminated(this.done, simpleQueue2.isEmpty())) {\r\n return;\r\n }\r\n }\r\n this.consumed = i6;\r\n i4 = addAndGet(-i4);\r\n if (i4 != 0) {\r\n if (simpleQueue2 == null) {\r\n simpleQueue2 = this.queue;\r\n }\r\n } else {\r\n return;\r\n }\r\n }\r\n }\r\n }",
"public CincamimisQueue()\r\n {\r\n measurementQueue=new ArrayBlockingQueue(10,true);\r\n }",
"@Override\n\tpublic synchronized T take() throws InterruptedException {\n try {\n while (queue.size()==0) wait();\n //if(debug) System.out.println(\"take: \"+queue.get(0));\n }\n catch (InterruptedException ie) {\n System.err.println(\"heh, who woke me up too soon?\");\n }\n // we have the lock and state we're seeking; remove, return element\n T o = queue.get(0);\n\n queue.remove(0);\n //this.data[] = null; // kill the old data\n notifyAll();\n return o;\n\t}",
"public interface Queue<E> {\r\n\r\n /**\r\n * Adds the given item to the end of the queue.\r\n * \r\n * @pre The queue is not full and the item to be added is not null\r\n * @post The item is added at the end of the queue\r\n * @param item\r\n * The item to be added to the queue\r\n */\r\n void enqueue(E item);\r\n\r\n /**\r\n * Removes and returns the item from the beginning of the queue.\r\n * \r\n * @pre The queue is not full\r\n * @post The item is removed queue\r\n * @return the item removed from the queue or null if the queue is empty\r\n */\r\n E dequeue();\r\n\r\n}",
"@Override\n public E peek() {\n return (E)queue[0];\n }",
"public synchronized Cincamimis firstAvailableandRemoveW() throws QueueException, InterruptedException\r\n {\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n if(measurementQueue.isEmpty()) return null;\r\n \r\n Cincamimis element=measurementQueue.take(); \r\n if(element!=null) this.notifyObservers();\r\n \r\n return element; \r\n }",
"private RequestQueue getRequestQueue() {\n if (mRequestQueue == null) {\n mRequestQueue = Volley.newRequestQueue(getApplicationContext());\n }\n\n return mRequestQueue;\n }",
"public synchronized Cincamimis firstAvailableandRemove() throws QueueException\r\n {\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n if(measurementQueue.isEmpty()) return null;\r\n \r\n Cincamimis element=measurementQueue.poll(); \r\n if(element!=null) this.notifyObservers();\r\n \r\n return element; \r\n }",
"public LinkedBlockingQueue<Run> getStartQueue() {\n\t\treturn new LinkedBlockingQueue<Run>(startQueue);\n\t}",
"public E dequeue() throws InterruptedException {\n\t\tthis.sem.acquire();\n\n\t\tsynchronized (this.pq) {\n\t\t\tE res = this.pq.poll();\n//\t\t\tSystem.out.println(\"dequeue \" + res);\n\n\t\t\treturn res;\n\t\t}\t\t\n\t}",
"T poll(){\n if(isEmpty()){\n return null;\n }\n T temp = (T) queueArray[0];\n for(int i=0; i<tail-1;i++){\n queueArray[i] = queueArray[i+1];\n }\n tail--;\n return temp;\n }",
"@DISPID(112)\r\n\t// = 0x70. The runtime will prefer the VTID if present\r\n\t@VTID(107)\r\n\tjava.lang.String queue();",
"protected Queue<Token> getTokenQueue() {\n return mTokenQueue;\n }",
"public interface UnboundedQueue<T> {\n \n\t/**\n\t * This method inserts a generic type element to the back of the Queue, increasing the\n\t * size by one. \n\t * \n\t * @param o Generic type to be added to the back of the Queue.\n\t */\n public void insert(T o);\n \n /**\n * This method removes a generic type element from the front of the Queue thereby decreasing the\n * size by one. Throws an EmptyQueueException if the Queue is empty and there is no\n * element to remove.\n * \n * @return Object removed from the front of the Queue\n * @throws EmptyQueueException if Queue is empty and there is no object to remove\n */\n public T remove() throws EmptyQueueException;\n \n /**\n * This method makes a copy of the element at the front of the Queue. Size stays the same.\n * \n * @return copy of the element at the front of the Queue.\n * @throws EmptyQueueException thrown if the Queue is empty and there is no elment at the front\n */\n public T front() throws EmptyQueueException;\n \n /**\n * This method returns true if the Queue has a front element and therefore is \n * not empty.\n * \n * @return true if the Queue has a front element\n */\n public boolean hasFront();\n \n /**\n * This method returns the number of elements currently stored in the structure (Queue).\n * \n * \n * @return int number of elements stored in the Queue\n */\n public int size();\n\n /**\n * This method creates a String representation of the Queue.\n * \n * @return String which represents the Queue\n */\n public String toString();\n \n}",
"final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }",
"public interface IGenQ<T> {\n\n // Put an item into the queue\n void put(T ch) throws QueueFullException;\n\n // Get an item from the queue\n T get() throws QueueEmpytException;\n\n\n\n}",
"@Override\n public CardAccessNumber call() throws Exception {\n return queue.take();\n }",
"public interface QueueInterface {\r\n Object dequeue() throws QueueUnderflowException;\r\n // Throws QueueUnderflowException if this queue is empty,\r\n // otherwise removes top element from this queue.\r\n \r\n \r\n boolean isEmpty();\r\n // Returns true if this queuea is empty, otherwise returns false.\r\n\r\n}",
"TransferQueue<ResultType> getResultsQueue();",
"public synchronized Cincamimis firstAvailable() throws QueueException\r\n {\r\n if(measurementQueue==null) throw new QueueException(\"CINCAMIMIS Queue not found\");\r\n \r\n return measurementQueue.peek(); \r\n }",
"@Override\n\tpublic void run() {\n\t\twhile(true) {\n\t\t\tqueue.get();\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public MyQueue() {\n storeStack = new Stack<>();\n }",
"public MyQueue() {\n\n }",
"public MyQueue() {\n\n }",
"public Channel getChannel(String queue) {\r\n try {\r\n channelLock.lock();\r\n if (!channels.containsKey(queue)) {\r\n start(queue);\r\n }\r\n return channels.get(queue);\r\n } finally {\r\n channelLock.unlock();\r\n }\r\n }",
"final Runnable deqTask() {\n Runnable t;\n Runnable[] q;\n int i;\n int b;\n if (sp != (b = base) &&\n (q = queue) != null && // must read q after b\n (t = q[i = (q.length - 1) & b]) != null &&\n casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n return null;\n }"
] | [
"0.7484572",
"0.7328324",
"0.7141822",
"0.6984493",
"0.68758136",
"0.6861133",
"0.68540335",
"0.68244195",
"0.678703",
"0.67080104",
"0.67080104",
"0.66428447",
"0.66310763",
"0.6595444",
"0.6569303",
"0.65544456",
"0.6523439",
"0.64861286",
"0.64861286",
"0.6466363",
"0.64548516",
"0.644858",
"0.6447867",
"0.6447736",
"0.64465916",
"0.64465916",
"0.64465916",
"0.64421964",
"0.6433425",
"0.6433425",
"0.64210224",
"0.64201635",
"0.64201635",
"0.6416711",
"0.6412678",
"0.64064217",
"0.6405115",
"0.6382865",
"0.63780755",
"0.6370034",
"0.63670456",
"0.6362432",
"0.6328263",
"0.63233876",
"0.63145673",
"0.62968045",
"0.62851405",
"0.62811977",
"0.6270124",
"0.6255714",
"0.6248564",
"0.6233203",
"0.62289774",
"0.621624",
"0.6209879",
"0.6205547",
"0.6203323",
"0.61922544",
"0.6176881",
"0.61700016",
"0.6164852",
"0.6163039",
"0.6149352",
"0.61479497",
"0.6146569",
"0.6137456",
"0.6130096",
"0.6129676",
"0.6124393",
"0.61220205",
"0.61087716",
"0.610466",
"0.61004674",
"0.6099474",
"0.60991585",
"0.6093784",
"0.609312",
"0.60831815",
"0.60822606",
"0.608221",
"0.60819167",
"0.6079342",
"0.6078812",
"0.6073255",
"0.6070827",
"0.6068639",
"0.6065743",
"0.60565996",
"0.605172",
"0.60512286",
"0.60449994",
"0.604052",
"0.60381156",
"0.60370857",
"0.6020814",
"0.60101265",
"0.60091656",
"0.60091656",
"0.6002766",
"0.600254"
] | 0.69644725 | 4 |
Mimic the old ThreadPool interface (saves the caller from having to create a temporary effectively final variable to pass to the lambda) | public <T> void submit(T workLoad, Consumer<T> workerFunction) {
this.submit(() -> workerFunction.accept(workLoad));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n void test3() {\n ThreadPoolExecutor executor = new ThreadPoolExecutor(1,1,10L, TimeUnit.SECONDS,new LinkedBlockingDeque<>(2),new ThreadPoolExecutor.DiscardPolicy());\n for (int i = 0; i < 10; i++) {\n executor.execute(new Runnable() {\n @Override\n public void run() {\n System.out.println(Thread.currentThread().getName()+\"输出\");\n }\n });\n }\n }",
"private static void createThreadUsingLambdaExpressions() {\n\t\tRunnable r = () -> {System.out.println(\"Lambda Expression thread is executed.\");};\n\t\tThread t = new Thread(r);\n\t\tt.start();\n\t}",
"public interface ThreadPool<Job extends Runnable> {\n\n void execute(Job job);\n\n void shutDown();\n\n void addWorkers(int num);\n\n void removeWorkers(int num);\n\n int getJobSize();\n\n}",
"public interface ThreadPool {\n /**\n * Returns the number of threads in the thread pool.\n */\n int getPoolSize();\n /**\n * Returns the maximum size of the thread pool.\n */\n int getMaximumPoolSize();\n /**\n * Returns the keep-alive time until the thread suicides after it became\n * idle (milliseconds unit).\n */\n int getKeepAliveTime();\n\n void setMaximumPoolSize(int maximumPoolSize);\n void setKeepAliveTime(int keepAliveTime);\n\n /**\n * Starts thread pool threads and starts forwarding events to them.\n */\n void start();\n /**\n * Stops all thread pool threads.\n */\n void stop();\n \n\n}",
"private static void threadPoolWithExecute() {\n\n Executor executor = Executors.newFixedThreadPool(3);\n IntStream.range(1, 10)\n .forEach((i) -> {\n executor.execute(() -> {\n System.out.println(\"started task for id - \"+i);\n try {\n if (i == 8) {\n Thread.sleep(4000);\n } else {\n Thread.sleep(1000);\n }\n System.out.println(\"In runnable task for id -\" + i);\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n });\n System.out.println(\"End of method .THis gets printed immdly since execute is not blocking call\");\n }",
"private static void useCachedThreadPool() {\n ExecutorService executor = Executors.newCachedThreadPool();\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n\n executor.execute(() -> {\n System.out.println(\"==========\");\n });\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 100).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"ActorThreadPool getThreadPool();",
"private static void ThreadCreationLambdaWay() {\r\n\t\tThread t2 = new Thread(() -> {\r\n\t\t\tSystem.out.println(\"This is a runnable method done in Lambda Expressions > 1.8\");\r\n\t\t});\r\n\t\tt2.start();\r\n\t\t\r\n\t\t// Other way\r\n\t\t\r\n\t\tThread t3 = new Thread(() -> System.out.println(\"This is runnable method done in single line Lambda expressions > 1.8\"));\r\n\t\tt3.start();\r\n\t}",
"private static void threadPoolWithSubmit() throws InterruptedException, ExecutionException {\n Executor executor = Executors.newFixedThreadPool(1);\n Callable<String> callable=()->{\n try{\n Thread.sleep(4000);\n System.out.println(\"In callable\");\n Thread.sleep(4000);\n System.out.println(\"In runnable for task id 1\");\n }catch(Exception e){\n e.printStackTrace();\n }\n return \"success\";\n };\n Future<String> future =((ExecutorService) executor).submit(callable);\n System.out.println(\"Future result - \"+future.get()+\" Future is blocking as it blocks until result is obtained\");\n System.out.println(\"End of method \");\n ((ExecutorService) executor).shutdown();\n /*Output\n In callable\n In runnable for task id 1\n Future result - success Future is blocking as it blocks until result is obtained\n End of method\n */\n }",
"public interface IHttpThreadExecutor {\n public void addTask(Runnable runnable);\n}",
"private void YeWuMethod(String name) {\n\n for (int j = 0; j < 10; j++) {\n\n\n// Runnable task = new RunnableTask();\n// Runnable ttlRunnable = TtlRunnable.get(task);\n\n// executor.execute(ttlRunnable);\n\n executor.execute(() -> {\n System.out.println(\"==========\"+name+\"===\"+threadLocal.get());\n });\n }\n\n// for (int i = 0; i < 10; i++) {\n// new Thread(() -> {\n// System.out.println(name+\"===\"+threadLocal.get());\n// }, \"input thread name\").start();\n// }\n\n\n\n\n }",
"public ThreadPool getDefaultThreadPool();",
"protected ThreadPool getPool()\r\n {\r\n return threadPool_;\r\n }",
"public void testNewFixedThreadPool1() {\n final ExecutorService e = Executors.newFixedThreadPool(2);\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"private static void demoRunnable() {\n new Thread(() -> System.out.println(Thread.currentThread().getName()), \"thread-λ\").start();\n new Thread(ToLambdaP5::printThread, \"thread-method-ref\").start();\n }",
"@Test\n @SneakyThrows\n void test() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n\n Runnable runnable = () -> {\n System.out.println(\"this is a new thread !!\");\n System.out.println(\"===============\");\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n };\n\n for (int i = 0; i < 3; i++) {\n executor.submit(runnable);\n }\n Thread.sleep(10 * 1000);\n\n executor.shutdown();\n\n }",
"public void testNewCachedThreadPool2() {\n final ExecutorService e = Executors.newCachedThreadPool(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"public void testNewFixedThreadPool2() {\n final ExecutorService e = Executors.newFixedThreadPool(2, new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"public void execute(final DispatchTask task, final DeliverTask callback)\n {\n // Note that we associate a callback with a task via the thread used to \n // execute the task. In general, a free slot in the pool (i.e., m_pool[i] is \n // null) can be used to set-up a new thread. Also note that we need to \n // update the LRU index if we change the pool.\n synchronized(m_lock)\n {\n if(m_closed)\n {\n // We are closed hence, spin-of a new thread for the new task.\n final PooledThread result = new PooledThread();\n \n // Set-up the thread and associate the task with the callback.\n result.reset(task, callback);\n \n // release the thread immediately since we don't pool anymore.\n result.release();\n \n return;\n }\n \n // Search in the pool for a free thread.\n for (int i = 0; i < m_pool.length; i++)\n {\n // o.k. we found a free slot now set-up a new thread for it.\n if (null == m_pool[i])\n {\n m_pool[i] = new PooledThread();\n\n m_pool[i].reset(task, callback);\n \n m_index.add(new Integer(i));\n \n return;\n }\n else if (m_pool[i].available())\n {\n // we found a free thread now set it up.\n m_pool[i].reset(task, callback);\n \n final Integer idx = new Integer(i);\n \n m_index.remove(idx);\n \n m_index.add(idx);\n \n return;\n }\n }\n\n // The pool is full and no threads are available hence, spin-off a new\n // thread and add it to the pool while decoupling the least recently used\n // one. This assumes that older threads are likely to take longer to \n // become available again then younger ones.\n final int pos = ((Integer) m_index.remove(0)).intValue();\n \n m_index.add(new Integer(pos));\n \n m_pool[pos].release();\n\n m_pool[pos] = new PooledThread();\n\n m_pool[pos].reset(task, callback);\n }\n }",
"public static void main(String[] args) {\n\n var pool = Executors.newFixedThreadPool(5);\n Future outcome = pool.submit(() -> 1);\n\n }",
"Thread makeThreadClosure( final String s, final int n){\n return new Thread( () -> System.out.println((s + (res += n ))));\n }",
"private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }",
"public void buttonClickThreadPool(View view) throws InterruptedException {\n count = 0;\n ThreadPoolExecutor mThreadPoolExecutor = new ThreadPoolExecutor(\n NUMBER_OF_CORES + 5, // Initial pool size\n NUMBER_OF_CORES + 8, // Max pool size\n KEEP_ALIVE_TIME, // Time idle thread waits before terminating\n KEEP_ALIVE_TIME_UNIT, // Sets the Time Unit for KEEP_ALIVE_TIME\n new LinkedBlockingDeque<Runnable>()); // Work Queue\n\n Future<Integer> future = mThreadPoolExecutor.submit(mCallable);\n Thread.sleep(200);\n future.cancel(true);\n }",
"private static void useFixedSizePool(){\n ExecutorService executor = Executors.newFixedThreadPool(10);\n\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n\n IntStream.range(0, 20).boxed().forEach(i -> {\n executor.execute(() -> {\n sleepSeconds(10);\n System.out.println(Thread.currentThread().getName() + \"[\" + i + \"]\");\n });\n });\n sleepSeconds(1);\n System.out.println(((ThreadPoolExecutor) executor).getActiveCount());\n }",
"public static void main(String[] args) {\n ThreadPoolExecutor executorService = new ThreadPoolExecutor(3, 10, 1L, TimeUnit.SECONDS,\n new LinkedBlockingQueue<>(20),\n Executors.defaultThreadFactory(),\n new ThreadPoolExecutor.AbortPolicy());\n ABC abc = new ABC();\n try {\n for (int i = 1; i <= 10; i++) {\n executorService.execute(abc::print5);\n executorService.execute(abc::print10);\n executorService.execute(abc::print15);\n }\n\n }finally {\n executorService.shutdown();\n }\n }",
"@Override\n public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {\n if (profile.isDefaultProfile()) {\n return vertxExecutorService;\n } else {\n return super.newThreadPool(profile, threadFactory);\n }\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Runnable run,\r\n\t\t\tfinal T defaultValue,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\trun.run();\r\n\t\t\t\t\t\t\tobserver.next(defaultValue);\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t};\r\n\t}",
"public static void main(String args[]) {\n ExecutorService executor = Executors.newFixedThreadPool(5);\n //create a list to hold the Future object associated with Callable\n Map<Integer, Future<String>> map = new HashMap<Integer, Future<String>>();\n //Create MyCallable instance\n for (int i = 0; i < 10; i++) {\n Callable<String> callable = new MyCallable(\"\" + i);\n //submit Callable tasks to be executed by thread pool\n Future<String> future = executor.submit(callable);\n\n //add Future to the list, we can get return value using Future\n map.put(i, future);\n }\n System.out.println(\"Assigned\");\n map.forEach(MyCallable::handleResult);\n// for (Future<String> fut : list) {\n// try {\n// //print the return value of Future, notice the output delay in console\n// // because Future.get() waits for task to get completed\n// System.out.println(new Date() + \"::\" + fut.get());\n// } catch (InterruptedException e) {\n// e.printStackTrace();\n// } catch (ExecutionException e) {\n// System.out.println(\"Handled in main thread - Crash\");\n// }\n// }\n System.out.println(\"About to shutdown\");\n //shut down the executor service now\n executor.shutdown();\n System.out.println(\"Shutdown\");\n }",
"public void testNewScheduledThreadPool() throws Exception {\n final ScheduledExecutorService p = Executors.newScheduledThreadPool(2);\n try (PoolCleaner cleaner = cleaner(p)) {\n final CountDownLatch proceed = new CountDownLatch(1);\n final Runnable task = new CheckedRunnable() {\n public void realRun() {\n await(proceed);\n }};\n long startTime = System.nanoTime();\n Future f = p.schedule(Executors.callable(task, Boolean.TRUE),\n timeoutMillis(), MILLISECONDS);\n assertFalse(f.isDone());\n proceed.countDown();\n assertSame(Boolean.TRUE, f.get(LONG_DELAY_MS, MILLISECONDS));\n assertSame(Boolean.TRUE, f.get());\n assertTrue(f.isDone());\n assertFalse(f.isCancelled());\n assertTrue(millisElapsedSince(startTime) >= timeoutMillis());\n }\n }",
"Future<T> then(Runnable result);",
"public interface Callable<V> {\n\n\tpublic void onCall(int state, V jo);\n\n}",
"public FuncCallExecutor(ThreadRuntime rt) {\r\n\t\tthis.rt = rt;\r\n\t}",
"Callable<E> getTask();",
"public UseCaseThreadPoolScheduler() {\n\t\tthis.threadPoolExecutor = new ThreadPoolExecutor(POOL_SIZE, MAX_POOL_SIZE, TIMEOUT,\n\t\t\t\tTimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(POOL_SIZE));\n\t}",
"public static void main(String[] args) throws ExecutionException, InterruptedException {\n ExecutorService executorService=Executors.newScheduledThreadPool(5);\n try{\n for (int i = 0; i < 10; i++) {\n Future<String> futures = executorService.submit(new TestCallable());\n System.out.println(\"result---------------------\"+futures.get());\n }\n }catch (Exception e){\n e.printStackTrace();\n }finally {\n executorService.shutdown();\n }\n }",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tinvoke();\n\t\t\t\t\t}",
"@Override\n\tpublic void execute() {\n\t\tThreadPool pool=ThreadPool.getInstance();\n\t\tpool.beginTaskRun(this);\n\t}",
"void method() {\r\n\t\t// variable in the method\r\n\t\tint x = 20;\r\n\r\n\t\t// create reference of functional interface to lambda expression\r\n\t\tRunnable r = () -> {\r\n\t\t\tSystem.out.println(\"var of the class = \" + this.x);\r\n\t\t\tSystem.out.println(\"var of the method = \" + x);\r\n\t\t};\r\n\r\n\t\t// create a thread and run it\r\n\t\tThread t = new Thread(r);\r\n\t\tt.start();\r\n\t}",
"public static void main(String[] args) {\n\t\tRunnable r1=()->{for (int i = 0; i < 10; i++) {\n\t\t\tSystem.out.println(\"Lambda thread\");\n\t\t}\n\t\t};\n\t\tThread t = new Thread(r1);\n\t\tt.start();\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tSystem.out.println(\"main thread\");\n\t\t}\n\n\t}",
"public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }",
"public void run()\r\n/* 996: */ {\r\n/* 997:838 */ if (DefaultPromise.this.listeners == null) {\r\n/* 998: */ for (;;)\r\n/* 999: */ {\r\n/* :00:840 */ GenericFutureListener<?> l = (GenericFutureListener)poll();\r\n/* :01:841 */ if (l == null) {\r\n/* :02: */ break;\r\n/* :03: */ }\r\n/* :04:844 */ DefaultPromise.notifyListener0(DefaultPromise.this, l);\r\n/* :05: */ }\r\n/* :06: */ }\r\n/* :07:849 */ DefaultPromise.execute(DefaultPromise.this.executor(), this);\r\n/* :08: */ }",
"public ThreadPool( int totalPoolSize ) {\n\n\tpoolLocked = false;\n\n\ttry {\n\n\t initializePools( null, totalPoolSize );\n\n\t} catch( Exception exc ) {}\n\n }",
"public void testNewSingleThreadExecutor1() {\n final ExecutorService e = Executors.newSingleThreadExecutor();\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"public static void main(String[] args) {\n Runnable r1 = () -> {\n String thread = Thread.currentThread().getName();\n log.info(\"{} getting lock\", thread);\n lock.lock();\n log.info(\"{}, increment to {}\", thread, count++);\n log.info(\"{} unlock\", thread);\n lock.unlock();\n\n };\n\n for (int i=0; i <= 5; i++){\n executorService.execute(r1);\n }\n\n executorService.shutdown();\n\n }",
"CompletableFuture<?> submit(Runnable request);",
"public static void main(String[] args) {\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n }\n };\n\n // using functions, a bit cleaner\n Runnable runnable2 = () -> {\n for(int i =0; i<10000; i++){\n System.out.println(\n Thread.currentThread().getId() + \":\" + i\n );\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n\n Thread thread2 = new Thread(runnable);\n thread2.start();\n\n Thread thread3 = new Thread(runnable);\n thread3.start();\n\n }",
"public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"@Override\n\t<T> T runWithContext(Callable<T> callable) throws Exception;",
"public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\n }",
"@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Runnable run,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\trun.run();\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\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}",
"static ExecutorService boundedNamedCachedExecutorService(int maxThreadBound, String poolName, long keepalive, int queueSize, RejectedExecutionHandler abortPolicy) {\n\n ThreadFactory threadFactory = new NamedThreadFactory(poolName);\n LinkedBlockingQueue<Runnable> queue = new LinkedBlockingQueue<Runnable>(queueSize);\n\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(\n maxThreadBound,\n maxThreadBound,\n keepalive,\n TimeUnit.SECONDS,\n queue,\n threadFactory,\n abortPolicy\n );\n\n threadPoolExecutor.allowCoreThreadTimeOut(true);\n\n return threadPoolExecutor;\n }",
"public static void main(String[] args) throws InterruptedException {\n\t\tObservable.just(\"hi\",\"hello\",\"okay\").subscribe(z -> System.out.print(z));\n\t\t\n\t\t// creating observable using create in lambda style[Sync]\n\t\tObservable.create( f ->{\n\t\t\t\t\t\t\tf.onNext(\"hello\");\n\t\t\t\t\t\t\tif( f.isUnsubscribed() ){\n\t\t\t\t\t\t\t\treturn; \n\t\t\t\t\t\t\t}}).subscribe( s -> System.out.println(s));\n\t\t\n\t\t\n\t\tExecutorService executor = Executors.newSingleThreadExecutor();\n\t\tSystem.out.println(\"----\"+Thread.currentThread().getName());\n\t\t\n\t\t// creating observable using create in lambda style[Async]\n\t\tObservable.create(f -> {executor.submit(() ->{\n\t\t\t f.onNext(Thread.currentThread().getName());\n\t \t});}).subscribe(s -> {System.out.println(Thread.currentThread().getName()); \n\t \t\t\t\t\t\t\tSystem.out.println(s);} );\n\t\t\n\t\t// creating observable using create in lambda style[Async + observerOn]\n\t\tObservable.create(f -> {executor.submit(() ->{\n\t\t\t f.onNext(Thread.currentThread().getName());\n\t \t});}).observeOn(Schedulers.newThread()).subscribe(s -> {System.out.println(Thread.currentThread().getName()); \n\t \t\t\t\t\t\t\tSystem.out.println(s);} );\n\n\t\t\n\t\t// creating observable using create in lambda style[Async + subscribeOn]\n\t\tObservable.create(f -> {executor.submit(() ->{\n\t\t\t f.onNext(Thread.currentThread().getName());\n\t \t});}).subscribeOn(Schedulers.newThread()).subscribe(s -> {System.out.println(Thread.currentThread().getName()); \n\t \t\t\t\t\t\t\tSystem.out.println(s);} );\n\n\t\t\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\t//bulk API simulation\n\t\tObservable<Integer> obs = Observable.just(1,2,3,4,5,6).map(userId ->{\n\t\t\t//make mysql call\n\t\t try { System.out.println(\"---\"+Thread.currentThread().getName());\n\t\t\treturn makeSqlCall(userId);\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn 0;\n\t\t});\n\t\t\t\t\n\t obs.subscribeOn(Schedulers.io()).subscribe(id ->{ result.add(id);System.out.println(Thread.currentThread().getName());});\n\t for(Integer x: result){System.out.print(x+\" - \");}\n\t\t\n\t}",
"public static void main(String[] args) {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(2, 2, 0, TimeUnit.NANOSECONDS, new ArrayBlockingQueue<>(10));\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task A over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n threadPoolExecutor.execute(() -> {\n System.out.println(Thread.currentThread().getName() + \" Task B over!\");\n semaphore.release();\n });\n\n try {\n semaphore.acquire(2);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"all task over!\");\n threadPoolExecutor.shutdown();\n }",
"private void completionService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n ExecutorCompletionService<String> completionService = new ExecutorCompletionService<String>(executor);\n for (final String printRequest : printRequests) {\n// ListenableFuture<String> printer = completionService.submit(new Printer(printRequest));\n completionService.submit(new Printer(printRequest));\n }\n try {\n for (int t = 0, n = printRequests.size(); t < n; t++) {\n Future<String> f = completionService.take();\n System.out.print(f.get());\n }\n } catch (InterruptedException | ExecutionException e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n\n }",
"private void initThreadPool(int numOfThreadsInPool, int[][] resultMat, Observer listener) {\n for(int i=0;i<numOfThreadsInPool; i++){\r\n PoolThread newPoolThread = new PoolThread(m_TaskQueue, resultMat);\r\n newPoolThread.AddResultMatListener(listener);\r\n m_Threads.add(newPoolThread);\r\n }\r\n // Start all Threads:\r\n for(PoolThread currThread: m_Threads){\r\n currThread.start();\r\n }\r\n }",
"public void testExecuteInParallel_Collection_ThreadPoolExecutor() throws Exception\n {\n System.out.println( \"executeInParallel\" );\n Collection<Callable<Double>> tasks = createTasks( 10 );\n Collection<Double> result = ParallelUtil.executeInParallel( tasks, ParallelUtil.createThreadPool( 1 ) );\n assertEquals( result.size(), tasks.size() );\n }",
"interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }",
"public interface PoolPipe { \n\n /**\n * Put a runnable in the queue for execution. The semantics\n * of the queue is dependent on the current implementation. If the\n * pipe is closed this method throws an pipe closed exception.\n */\n \n public void put(Runnable run) throws InterruptedException, PipeClosedException;\n \n}",
"private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }",
"public ThreadPool getThreadPool(int numericIdForThreadpool) throws NoSuchThreadPoolException;",
"public interface ThreadExecutor extends Executor {\n}",
"@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}",
"public static void main(String args[]) {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n\t\t\n\t\t// Create a list to hold the Future object associated with Callable\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\n\n\t\t/**\n\t\t * Create MyCallable instance using Lambda expression which return\n\t\t * the thread name executing this callable task\n\t\t */\n\t\tCallable<String> callable = () -> {\n\t\t\tThread.sleep(2000);\n\t\t\treturn Thread.currentThread().getName();\n\t\t};\n\t\t\n\t\t/**\n\t\t * Submit Callable tasks to be executed by thread pool\n\t\t * Add Future to the list, we can get return value using Future\n\t\t **/\n\t\tfor (int i = 0; i < 20; i++) {\n\t\t\tFuture<String> future = executor.submit(callable);\n\t\t\tfutureList.add(future);\n\t\t}\n\t\t\n\t\t/**\n\t\t * Print the return value of Future, notice the output delay\n\t\t * in console because Future.get() waits for task to get completed\n\t\t **/\n\t\tfor (Future<String> future : futureList) {\n\t\t\ttry {\n\t\t\t\tSystem.out.println(new Date() + \" | \" + future.get());\n\t\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// shut down the executor service.\n\t\texecutor.shutdown();\n\t}",
"@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}",
"@Override\npublic void run() {\n perform();\t\n}",
"@Override\n public ExecutorService getWrapped() {\n return es;\n }",
"private static Thread watch(Runnable block) {\n Thread thread = new Thread(block::run);\n thread.start();\n return thread;\n }",
"private CheckedConditionRunnable decorate(CheckedConditionRunnable r) {\n return c -> {\n // make sure that this thread has no permit (from a prior or racing call to unpark) so it\n // won't spuriously wake-up below\n LockSupport.parkNanos(100);\n lock.lock();\n try {\n r.run(c);\n } finally {\n lock.unlock();\n }\n };\n }",
"public static ThreadPool getInstance()\r\n {\r\n if(instance == null)\r\n {\r\n instance = new ThreadPool();\r\n }\r\n return instance;\r\n }",
"int getExecutorCorePoolSize();",
"public static void main(String[] args){\n\t\t\r\n\t\t\r\n\t\tTask task = ()-> System.out.println(\"Hello from Lambda!\");\r\n\t\t\r\n\t\tTask taskInnerClass = new Task(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void perform() {\r\n\t\t\t\tSystem.out.println(\"Hello from inner class!\");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t};\r\n\t\t\r\n\t\ttask.perform();\r\n\t\t\r\n\t\ttaskInnerClass.perform();\r\n\t\t\r\n\t\t// even though the two approaches are doing the same task. They are not same.\r\n\t\t\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\tList<Future<String>> futureList = new ArrayList<Future<String>>();\r\n\r\n\t\t//collection of multiple tasks which we are supposed to give to thread pool to perform\r\n\t\tList<CallableDemo> taskList = new ArrayList<CallableDemo>();\r\n\t\t//adding multiple tasks to collection (tasks are created using 'Callable' Interface.\r\n\t\ttaskList.add(new CallableDemo(\"first\"));\r\n\t\ttaskList.add(new CallableDemo(\"second\"));\r\n\t\ttaskList.add(new CallableDemo(\"third\"));\r\n\t\ttaskList.add(new CallableDemo(\"fourth\"));\r\n\t\ttaskList.add(new CallableDemo(\"fifth\"));\r\n\t\ttaskList.add(new CallableDemo(\"sixth\"));\r\n\t\ttaskList.add(new CallableDemo(\"seventh\"));\r\n\r\n\t\t//creating a thread pool of size four\r\n\t\tExecutorService threadPool = Executors.newFixedThreadPool(4);\r\n\t\t\r\n\t\tfor (CallableDemo task : taskList) {\r\n\t\t\tfutureList.add(threadPool.submit(task));\r\n\t\t}\r\n threadPool.shutdown();\r\n\t\tfor (Future<String> future : futureList) {\r\n\t\t\ttry {\r\n//\t\t\t\t System.out.println(future.get());\r\n\t\t\t\tSystem.out.println(future.get(1L, TimeUnit.SECONDS));\r\n\t\t\t} catch (InterruptedException | ExecutionException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}catch (TimeoutException e) {\r\n\t\t\t\tSystem.out.println(\"Sorry already waited for result for 1 second , can't wait anymore...\");\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }",
"public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }",
"ScheduledExecutorService getExecutorService();",
"private Object getTask(Runnable runnable)\r\n {\r\n Object innerTask = \r\n ObservableExecutors.getInnerTask(runnable, Object.class);\r\n if (innerTask != null)\r\n {\r\n return innerTask;\r\n }\r\n return runnable;\r\n }",
"public void put(Runnable run) throws InterruptedException, PipeClosedException;",
"@Test\n @DisplayName(\"Invoke Any\")\n void invokeAny() throws ExecutionException, InterruptedException {\n ExecutorService executor = Executors.newWorkStealingPool();\n\n List<Callable<String>> callables = Arrays.asList(\n callable(\"task1\", 2),\n callable(\"task2\", 1),\n callable(\"task3\", 3));\n\n String result = executor.invokeAny(callables);\n assertEquals(\"task2\", result);\n }",
"public static Runnable decorate(ThreadPoolExecutor thiz, Runnable r) {\n /*\n * Here we handle the special case of this ThreadPoolExecutor (TPE) actually being an instance of\n * ScheduledThreadPoolExecutor (STPE). STPE subclasses TPE and doesn't override its remove() method.\n * When STPE.remove() is invoked, it actually invokes TPE.remove(). Thus despite ThreadPoolExecutorInterceptor\n * excluding STPE (and its subclasses) from interception, here we need to take this extra action to exclude\n * STPE.\n *\n * STPE uses a member class ScheduledFutureTask to manage delayed work. If the Runnable `r' is actually\n * a ScheduledFutureTask, then wrapping it here in a DecoratedRunnable will result in the check\n * `instanceof ScheduledFutureTask' failing in the implementation of `ScheduledThreadPoolExecutor$DelayedWorkQueue.indexOf',\n * which will result in a linear scan of the STPE's task queue instead of a constant-time lookup into\n * the array backing that queue. This performance regression may be dangerous in high-load scenarios.\n */\n if (thiz instanceof ScheduledThreadPoolExecutor) {\n return r;\n } else {\n return DecoratedRunnable.maybeCreate(r);\n }\n }",
"private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }",
"public static void main(String[] args)\r\n\t{\r\n\t\tExecutorService executorService = Executors.newFixedThreadPool(1);\r\n\t\tList<Future<String>> futureList = new ArrayList<>();\r\n\t\t\r\n\t\tCallable<String> callable = new Thread1();\r\n\t\tCallable<String> callable2 = new Thread1();\r\n\t\tCallable<String> callable3 = new Thread1();\r\n\t\t\r\n\t\t// Future:\r\n\t\t/** A Future represents the result of an asynchronous computation. Methods are provided to check if the computation is complete, \r\n\t\t* to wait for its completion, and to retrieve the result of the computation. The result can only be retrieved using method get \r\n\t\t* when the computation has completed, blocking if necessary until it is ready. Cancellation is performed by the cancel method. \r\n\t\t* Additional methods are provided to determine if the task completed normally or was cancelled. Once a computation has completed, \r\n\t\t* the computation cannot be cancelled. If you would like to use a Future for the sake of cancellability but not provide a usable \r\n\t\t* result, you can declare types of the form Future<?> and return null as a result of the underlying task. **/\r\n\t\t\r\n\t\t// submit():\r\n\t\t/** Submits a value-returning task for execution and returns a Future representing the pending results of the task. \r\n\t\t* The Future's get method will return the task's result upon successful completion. \r\n\t\t* If you would like to immediately block waiting for a task, you can use constructions of the form result = exec.submit(aCallable).get(); **/ \r\n\t\tFuture<String> future = executorService.submit(callable);\r\n\t\tfutureList.add(future);\r\n\t\t\r\n\t\tFuture<String> future2 = executorService.submit(callable2);\r\n\t\tfutureList.add(future2);\r\n\t\t\r\n\t\tFuture<String> future3 = executorService.submit(callable3);\r\n\t\tfutureList.add(future3);\r\n\t\t\r\n\t\tSystem.out.println(\"futureList.size(): \"+futureList.size()); \r\n\t\t\r\n\t\tfor(Future<String> fut : futureList)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\t// cancel(true)\r\n\t\t\t\t/** Attempts to cancel execution of this task. This attempt will fail if the task has already completed, has already been cancelled, \r\n\t\t\t\t* or could not be cancelled for some other reason. If successful, and this task has not started when cancel is called, this task should never run. \r\n\t\t\t\t* If the task has already started, then the mayInterruptIfRunning parameter determines whether the thread executing this task should be \r\n\t\t\t\t* interrupted in an attempt to stop the task. After this method returns, subsequent calls to isDone will always return true. \r\n\t\t\t\t* Subsequent calls to isCancelled will always return true if this method returned true. **/\r\n\t\t\t\t// System.out.println(fut.cancel(true));\r\n\t\t\t\t\r\n\t\t\t\t// get():\r\n\t\t\t\t// Waits if necessary for the computation to complete, and then retrieves its result.\r\n\t\t\t\tSystem.out.println(fut.get());\r\n\t\t\t\t\r\n\t\t\t\t// get(1000, TimeUnit.MILLISECONDS):\r\n\t\t\t\t/** Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.\r\n\t\t\t\t* Here, we can specify the time to wait for the result, itís useful to avoid current thread getting blocked for longer time. **/ \r\n\t\t\t\t// System.out.println(fut.get(1000, TimeUnit.MILLISECONDS));\r\n\t\t\t\t\r\n\t\t\t\t// isDone():\r\n\t\t\t\t/** Returns true if this task completed. \r\n\t\t\t\t* Completion may be due to normal termination, an exception, or cancellation -- in all of these cases, this method will return true **/\r\n\t\t\t\t// System.out.println(fut.isDone());\r\n\t\r\n\t\t\t\t// isCancelled(): \r\n\t\t\t\t/** Returns true if this task was cancelled before it completed normally. **/\r\n\t\t\t\t// System.out.println(fut.isCancelled());\r\n\t\t\t}\r\n\t\t\tcatch(Exception ex)\r\n\t\t\t{\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\texecutorService.shutdown();\r\n\t}",
"public interface RunnableTask {\n ProcessResult run();\n}",
"public synchronized void retThread(WorkerThread w) {\n\t\tfor (int i = 0; i < this.threadPool.size(); ++i) {\n\t\t\tif (this.threadPool.get(i) == w) {\n\t\t\t\tthis.threadPool.get(i).setAvailable(true);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic static void testNonThreadLocal() {\n\t\tExecutorService service = Executors.newCachedThreadPool();\n\n\t\tRunnable task = new Runnable() {\n\t\t\tNonThreadLocal<AtomicInteger> tlocal = new NonThreadLocal<AtomicInteger>() {\n\t\t\t\t@Override\n\t\t\t\tpublic AtomicInteger initialValue() {\n\t\t\t\t\treturn new AtomicInteger(1);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" start with value: \" + tlocal.get());\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tint res;\n//\t\t\t\tsynchronized (\"ABC\") {\n\t\t\t\t\tres = tlocal.get().addAndGet(1);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tTimeUnit.SECONDS.sleep(1);\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\ttlocal.set(new AtomicInteger(res));\n//\t\t\t\t}\n\t\t\t\tSystem.out.println(Thread.currentThread().getName() + \" ends with value: \" + res);\n\t\t\t}\n\t\t};\n\t\tfor (int i = 0; i < 5; i++)\n\t\t\tservice.submit(task);\n\t\tservice.shutdown();\n\n\t}",
"public static void main(String[] args) throws InterruptedException, ExecutionException {\n\t\tExecutorService executor = Executors.newFixedThreadPool(5);\n for (int i = 0; i < 10; i++) {\n \tCallable worker = new WorkerThread1(\"\" + i);\n \tFuture future = executor.submit(worker);\n \tSystem.out.println(\"Results\"+future.get());\n //executor.execute(worker);\n }\n executor.shutdown();\n while (!executor.isTerminated()) {\n }\n System.out.println(\"Finished all threads\");\n }",
"public static void main(String[] args) {\r\n\r\n ExecutorService es = Executors.newFixedThreadPool(100);\r\n for (int i = 0; i < 10; i++) {\r\n es.execute(new Runnable() {\r\n @Override\r\n public void run() {\r\n // l++;\r\n // l--;\r\n l.incrementAndGet();\r\n l.decrementAndGet();\r\n }\r\n });\r\n }\r\n // for (int i = 0; i < 10; i++) {\r\n // es.execute(new Runnable() {\r\n // @Override\r\n // public void run() {\r\n // synchronized (l) {\r\n // l--;\r\n // }\r\n // // l.decrementAndGet();\r\n // }\r\n // });\r\n // }\r\n System.out.println(l);\r\n }",
"protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }",
"private Runnable scan() {\n Runnable t = null;\n int r = seed; // extract once to keep scan quiet\n StealingThread[] ws; // refreshed on outer loop\n int mask; // must be power 2 minus 1 and > 0\n outer:do {\n if ((ws = pool.threads) != null && (mask = ws.length - 1) > 0) {\n int idx = r;\n int probes = ~mask; // use random index while negative\n for (;;) {\n r = xorShift(r); // update random seed\n StealingThread v = ws[mask & idx];\n if (v == null || v.sp == v.base) {\n if (probes <= mask)\n idx = (probes++ < 0) ? r : (idx + 1);\n else\n break;\n }\n else if (!tryActivate() || (t = v.deqTask()) == null)\n continue outer; // restart on contention\n else\n break outer;\n }\n }\n } while (pool.hasNewSyncEvent(this)); // retry on pool events\n seed = r;\n return t;\n }",
"@SuppressWarnings({ \"rawtypes\", \"unchecked\" })\r\n\tpublic static void main(String[] args) throws InterruptedException, ExecutionException{\n\t\tExecutorService e = Executors.newFixedThreadPool(2);\r\n//\t\tList<Future> list = new ArrayList<Future>();\r\n\t\tfor(int i=0;i<10;i++){\r\n\t\t\tCallable c = new JavaTestThread(i);\r\n\t\t\tFuture f = e.submit(c);\r\n\t\t\tSystem.out.println(\"-------\"+ f.get().toString());\r\n\t\t}\r\n\t\t\r\n\t\r\n\t\t\r\n\t}",
"@Nonnull\r\n\tpublic static <T> Observable<T> invokeAsync(\r\n\t\t\t@Nonnull final Callable<? extends T> call,\r\n\t\t\t@Nonnull final Scheduler pool) {\r\n\t\treturn new Observable<T>() {\r\n\t\t\t@Override\r\n\t\t\t@Nonnull \r\n\t\t\tpublic Closeable register(@Nonnull final Observer<? super T> observer) {\r\n\t\t\t\treturn pool.schedule(new Runnable() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tobserver.next(call.call());\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t} catch (Throwable ex) {\r\n\t\t\t\t\t\t\tobserver.error(ex);\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}",
"private void m76769g() {\n C1592h.m7855a((Callable<TResult>) new C23441a<TResult>(this), C1592h.f5958b);\n }",
"final Runnable pollLocalTask() {\n return locallyDeqTask();\n }",
"private static <T> Callable<T> lazyval(final T value, final long delayMillis) {\n return new Callable<T>() {\n @Override\n public T call() throws Exception {\n Thread.sleep(delayMillis);\n log(\"Task completed with: \" + value);\n return value;\n }\n };\n // return () -> {\n // Thread.sleep(delayMillis);\n // log(\"Task completed with: \" + value);\n // return value;\n // };\n }",
"public ThreadPoolExecutor getForLightWeightBackgroundTasks() {\n return mForLightWeightBackgroundTasks;\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: */ }",
"public static void main(String[] args) throws Exception {\n FutureTask<String> futureTask = new FutureTask<String>(new Callable<String>() {\n @Override\n public String call() throws Exception {\n Thread.sleep(10000);\n System.out.println(\"thread done ...\");\n return \"hello world\";\n }\n });\n futureTask.run();\n// executorService.submit(futureTask);\n System.out.println(futureTask.get());\n// executorService.shutdown();\n }",
"public interface Executor<Work extends Runnable> {\n void execute(Work work);\n\n void shutdown();\n\n void addWorks(Work work);\n\n void removeWorks(int num);\n\n int getWorkSize();\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 }",
"public void testCreateThreadPool_int()\n {\n System.out.println( \"createThreadPool\" );\n int numRequestedThreads = 0;\n ThreadPoolExecutor result = ParallelUtil.createThreadPool( ParallelUtil.OPTIMAL_THREADS );\n ThreadPoolExecutor expected = ParallelUtil.createThreadPool( -1 );\n assertEquals( expected.getMaximumPoolSize(), result.getMaximumPoolSize() );\n \n result = ParallelUtil.createThreadPool( -1 );\n assertTrue( result.getMaximumPoolSize() > 0 );\n \n numRequestedThreads = 10;\n result = ParallelUtil.createThreadPool( numRequestedThreads );\n assertEquals( numRequestedThreads, result.getMaximumPoolSize() );\n }",
"public interface ThreadApi {\n Future executeInBackground(Runnable task);\n boolean executeInMainThread(Runnable task);\n boolean executeInMainThread(Runnable task, long delay);\n}",
"public static void main(String[] args) {\n int num = 10;\n\n // The following line would also cause an error\n // because it would remove the effectively final status from num.\n //num = 5;\n\n MyFunc myLambda = (n) -> {\n // This use of num is OK. It does nto modify num.\n int v = num + n;\n\n // However, the following is illegal because it attempts to modify the value of num.\n //num++;\n\n return v;\n };\n\n\n System.out.println(myLambda.func(5));\n }"
] | [
"0.61536866",
"0.61400664",
"0.61264646",
"0.6010197",
"0.6008564",
"0.5969267",
"0.59422576",
"0.5895566",
"0.58351815",
"0.5822975",
"0.579513",
"0.57804143",
"0.57758677",
"0.5743271",
"0.57302517",
"0.5723408",
"0.5709262",
"0.562965",
"0.5601754",
"0.55807906",
"0.54713327",
"0.54571366",
"0.543247",
"0.5382137",
"0.53777295",
"0.53721714",
"0.5369014",
"0.5359758",
"0.5355128",
"0.53518796",
"0.5347171",
"0.5345125",
"0.5344296",
"0.5310322",
"0.5303173",
"0.52939177",
"0.52935255",
"0.5292056",
"0.5283347",
"0.5280058",
"0.52410996",
"0.5229779",
"0.522583",
"0.5223607",
"0.5223128",
"0.5220282",
"0.52195287",
"0.51924723",
"0.51770717",
"0.51752687",
"0.5172063",
"0.515662",
"0.51552784",
"0.5150378",
"0.51455057",
"0.5130291",
"0.51208866",
"0.51155806",
"0.51096594",
"0.50959337",
"0.509451",
"0.5088871",
"0.5087441",
"0.5079847",
"0.50796086",
"0.50680286",
"0.50654477",
"0.506036",
"0.5054944",
"0.50514907",
"0.5051123",
"0.50248736",
"0.50203407",
"0.50135374",
"0.50105226",
"0.5009419",
"0.50063765",
"0.5005856",
"0.50038046",
"0.50008863",
"0.5000056",
"0.49933755",
"0.49901673",
"0.49878603",
"0.49867696",
"0.49839085",
"0.4980423",
"0.49752846",
"0.49730074",
"0.4972111",
"0.4968538",
"0.4968185",
"0.4967979",
"0.49636003",
"0.4947759",
"0.4947067",
"0.49467954",
"0.4943829",
"0.49434718",
"0.49384162",
"0.49373758"
] | 0.0 | -1 |
TODO: is there a reason I didn't just use Comparator? | public interface EqualsOverride<T>
{
boolean isEqual(T t1, T t2);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static Comparator<Person> comparator(CrudFilter filter) {\n return filter.getSortOrders().entrySet().stream()\n .map(sortClause -> {\n try {\n Comparator<Person> comparator\n = Comparator.comparing(person ->\n (Comparable) valueOf(sortClause.getKey(), person));\n\n if (sortClause.getValue() == SortDirection.DESCENDING) {\n comparator = comparator.reversed();\n }\n\n return comparator;\n } catch (Exception ex) {\n return (Comparator<Person>) (o1, o2) -> 0;\n }\n })\n .reduce(Comparator::thenComparing)\n .orElse((o1, o2) -> 0);\n }",
"@Override\n\tpublic int compare(Person p1, Person p2) { //because this class implements Comparator \n\t\treturn p1.id-p2.id;\n\t}",
"private Comparator<Integer> getIntegerComparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer integer1, Integer integer2) {\n return integer1 - integer2;\n }\n };\n }",
"Comparator<O> getObjectComparator();",
"public abstract void compare();",
"public interface Comparator {\n default int compare(Object a, Object b) {\n FeatureExpr ctx = Contexts.model_java_util_Comparator_compare;\n V<?> compareResult = compare__Ljava_lang_Object_Ljava_lang_Object__I(V.one(ctx, a), V.one(ctx, b), ctx);\n V<?> selected = compareResult.select(ctx);\n assert selected.getOne() instanceof java.lang.Integer : \"compare returns non-Integer\";\n return ((java.lang.Integer) selected.getOne());\n }\n V<?> compare__Ljava_lang_Object_Ljava_lang_Object__I(V a, V b, FeatureExpr fe);\n}",
"public int compare(Object o1, Object o2) {\n/* 25 */ Alphabet a1 = (Alphabet)o1;\n/* 26 */ Alphabet a2 = (Alphabet)o2;\n/* */ \n/* 28 */ return a2.order - a1.order;\n/* */ }",
"protected abstract Comparator<UsageInfo> makeUsageInfoComparator();",
"@Override\n public Comparator<? super E> comparator() {\n return comparator;\n }",
"Comparator<T> sortBy();",
"public void sortCompetitors(){\n\t\t}",
"public Comparator<Integer> comparator() {\n return new Comparator<Integer>() {\n @Override\n public int compare(Integer o1, Integer o2) {\n Http2PriorityNode n1 = nodesByID.get(o1);\n Http2PriorityNode n2 = nodesByID.get(o2);\n if(n1 == null && n2 == null) {\n return 0;\n }\n if(n1 == null) {\n return -1;\n }\n if(n2 == null) {\n return 1;\n }\n //do the comparison\n //this is kinda crap, but I can't really think of any better way to handle this\n\n double d1 = createWeightingProportion(n1);\n double d2 = createWeightingProportion(n2);\n return Double.compare(d1, d2);\n }\n };\n }",
"public interface Comparator<Item>{\n\tpublic int compare(Item a, Item b);\n}",
"public Comparator<? super K> comparator() {\n/* 102 */ return null;\n/* */ }",
"@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}",
"int compare(T t1, T t2);",
"public void testObjCompare()\n {\n assertEquals( Comparator.EQUAL, Util.objCompare(null,null) );\n assertEquals( Comparator.LESS, Util.objCompare(new Integer(10), new Integer(20)) );\n assertEquals( Comparator.GREATER, Util.objCompare(new Integer(25), new Integer(20)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(null,new Integer(1)) );\n assertEquals( Comparator.UNDECIDABLE,Util.objCompare(new Integer(1),null) );\n }",
"private Comparator<Node> getComparator() {\n class QueueCompare implements Comparator<Node> {\n @Override\n public int compare(Node o1, Node o2) {\n if (o1.manPrior > o2.manPrior) return 1;\n else if (o1.manPrior < o2.manPrior) return -1;\n else if (o1.hamPrior > o2.hamPrior) return 1;\n else if (o1.hamPrior < o2.hamPrior) return -1;\n else if (o1.manPrior - o1.movesToBoard > o2.manPrior - o2.movesToBoard) return 1;\n else if (o1.manPrior - o1.movesToBoard < o2.manPrior - o2.movesToBoard) return -1;\n else if (o1.hamPrior - o1.movesToBoard > o2.hamPrior - o2.movesToBoard) return 1;\n else if (o1.hamPrior - o1.movesToBoard < o2.hamPrior - o2.movesToBoard) return -1;\n return 1;\n }\n }\n return new QueueCompare();\n }",
"@Transient\n\tpublic static Comparator<Requerimiento> getComparator(){\n\t\treturn new Comparator<Requerimiento>(){\n\t\t\tpublic int compare(Requerimiento requer1, Requerimiento requer2) {\n\t\t\t\treturn requer1.getIdRequerimiento().compareTo(requer2.getIdRequerimiento());\n\t\t\t}\n\t\t};\n\t}",
"private SimplexComparator() {}",
"public static Comparator method_1280() {\n return field_713;\n }",
"@Test\n public void testCreateComparatorByName() {\n System.out.println(\"createComparatorByName\");\n // in decreasing order\n boolean increasing = false;\n BankAccount instance = new BankAccount(\"Kelly\", 99.99);\n BankAccount instance2 = new BankAccount(\"Nelly\", 199.99);\n int result = BankAccount.createComparatorByName(increasing).compare(instance, instance2);\n assertTrue(result > 0);\n int result2 = BankAccount.createComparatorByName(increasing).compare(instance2, instance);\n assertTrue(result2 < 0);\n // in increasing order\n increasing = true;\n int result3 = BankAccount.createComparatorByName(increasing).compare(instance2, instance);\n assertTrue(result3 > 0);\n }",
"private IdentifiableComparator() {\n\t\t// This class is not intended to create own objects from it.\n\t}",
"int compare(T o1, T o2);",
"@Test\n public void testCompare() {\n AantalGastenComparator instance = new AantalGastenComparator();\n int expResult;\n int result;\n \n //test 1\n Accommodatie a1 = new Accommodatie(\"je moeder\", 30.00, 2, 1);\n Accommodatie a2 = new Accommodatie(\"je vader\", 40.00, 3, 1);\n expResult = -1;\n result = instance.compare(a1, a2);\n assertEquals(expResult, result);\n \n \n //test 2\n Accommodatie a3 = new Accommodatie(\"je moeder2\", 30.00, 2, 1);\n Accommodatie a4 = new Accommodatie(\"je vader2\", 40.00, 2, 1);\n expResult = 0;\n result = instance.compare(a3, a4);\n assertEquals(expResult, result);\n \n \n //test 3\n Accommodatie a5 = new Accommodatie(\"je moeder3\", 30.00, 3, 1);\n Accommodatie a6 = new Accommodatie(\"je vader3\", 40.00, 2, 1);\n expResult = 1;\n result = instance.compare(a5, a6);\n assertEquals(expResult, result);\n }",
"public static Comparator<VisualizarEncontroDTO> comparator() {\r\n\t\t\r\n\t\treturn (d1,d2) -> d1.dataInicio.compareTo(d2.dataInicio);\r\n\t}",
"Comparator<? super K> comparator();",
"@Override\n public int compare(final E obj1, final E obj2) {\n return comparator.compare(obj2, obj1);\n }",
"@Override\n public int compare(T a, T b) {\n for (Comparator<T> comparator : comparators) {\n int cmp = comparator.compare(a, b);\n\n if (cmp != 0) {\n return cmp;\n }\n }\n return 0;\n }",
"@Override\n\t\tpublic int compare(Object a, Object b) {\n\t\t\tif(hm.get(a)>hm.get(b))\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn 1;\n\t\t\t}\n\t\t\t\n\t\t}",
"protected abstract int doCompare(Object o1, Object o2);",
"private int Compare(ResultsClass lhs, ResultsClass rhs) {\n if (lhs.bodyPart > rhs.bodyPart) {\n return 1;\n } else if (lhs.bodyPart > rhs.bodyPart) {\n return -1;\n } else {\n return 0;\n }\n }",
"@Override\n public int compare(Object arg0, Object arg1) {\n return arg0.hashCode() - arg1.hashCode();\n }",
"private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }",
"public int compareTo(Person that) { return -1; }",
"@Override\r\npublic int compareTo(Object o) {\n\treturn 0;\r\n}",
"@Test\n public void compareFunctionalBigger() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p1, p2);\n \n assertEquals(-1, a);\n\n }",
"@Override\n public int compare(Object arg0, Object arg1) {\n int a = arg0.hashCode();\n int b = arg1.hashCode();\n int accum;\n if (a == b) {\n accum = 0;\n } else if (a > b) {\n accum = 1;\n } else {\n accum = -1;\n }\n return accum;\n }",
"public abstract BoundCodeDt<?> getComparatorElement();",
"public interface Comparator extends ComparisonConstants {\n public int compare(Object a, Object b);\n}",
"@Override\n\t\tpublic int compare(final Collection<?> first, final Collection<?> second)\n\t\t{\n\t\t\tif( first.size() < second.size() )\n\t\t\t\treturn -1;\n\t\t\telse if( first.size() > second.size() )\n\t\t\t\treturn 1;\n\t\t\treturn 0;\n\t\t}",
"public interface StartTreeNodeComparator\n{\n public boolean compare (StartTreeNode node);\n}",
"public void sortElements(Comparator<TLProperty> comparator);",
"protected Comparator getNameComparator()\n {\n if(nameComparator == null)\n {\n nameComparator = new SMComponentNameComparator();\n }\n\n return nameComparator;\n }",
"void updateSortingComparators(Comparator<ReadOnlyEntry> eventComparator,\n Comparator<ReadOnlyEntry> deadlineComparator,\n Comparator<ReadOnlyEntry> floatingTaskComparator);",
"@SuppressWarnings(\"ComparatorMethodParameterNotUsed\")\n @Override\n public int compare(Map.Entry<Integer, Integer> entry1, Map.Entry<Integer, Integer> entry2) {\n return entry2.getValue() > entry1.getValue() ? 1 : -1;\n }",
"interface IComparator<T> {\n // Returns a negative number if t1 comes before t2 in this ordering\n // Returns zero if t1 is the same as t2 in this ordering\n // Returns a positive number if t1 comes after t2 in this ordering\n int compare(T t1, T t2);\n}",
"@Test\r\n public void testCompare() {\r\n\r\n double[] r1;\r\n double[] r2;\r\n Comparator<double[]> instance = new DoubleArrayComparator();\r\n \r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,2,3}; \r\n assertEquals(0, instance.compare(r1, r2));\r\n\r\n r1 = new double[]{1,2,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(-1, instance.compare(r1, r2));\r\n \r\n r1 = new double[]{1,3,3};\r\n r2 = new double[]{1,3,2}; \r\n assertEquals(1, instance.compare(r1, r2));\r\n \r\n }",
"public Comparator<? super P> comparator();",
"public compare(){\r\n }",
"public String sortBy();",
"@Override\n public int compare(Entry<String, Integer> arg0, Entry<String, Integer> arg1) {\n if(arg0.getValue() == arg1.getValue()){\n return arg0.getKey().compareTo(arg1.getKey());\n } else {\n return arg1.getValue() - arg0.getValue();\n }\n }",
"@Test\n public void compareFunctionalSmaller() {\n HighScoreComparator comparator2 = new HighScoreComparator();\n int a;\n a = comparator2.compare(p2, p1);\n \n assertEquals(1, a);\n }",
"public int compareTo(Object other) { return 404;}",
"@Override\n\t\t\tpublic Comparator<HidenMachines> getComparator() {\n\t\t\t\treturn new Comparator<HidenMachines>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(HidenMachines machine1,\n\t\t\t\t\t\t\tHidenMachines machine2) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn machine1.no-machine2.no;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"private static void sortingMemo() {\n\t\t\n\t}",
"@Override\n public int compare(Integer a, Integer b) {\n if (base.get(a) >= base.get(b)) {\n return 1;\n } else {\n return -1;\n } // returning 0 would merge keys\n }",
"@Override\n\t\tpublic int compare(Object arg0, Object arg1) {\n\t\t\treturn 0;\n\t\t}",
"public int compare(E a, E b) {\n // Complete this method.\n\t\treturn -1 * ((Map.Entry<String,Integer>)a).getValue().compareTo(((Map.Entry<String,Integer>)b).getValue());\n }",
"public static void main(String[] args) {\n Circle[] circles = new Circle[3];\n circles[0] = new Circle(3.6);\n circles[1] = new Circle();\n circles[2] = new Circle(3.5, \"indigo\", false);\n System.out.println(\"Pre-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n\n Comparator circleComparator = new CircleComparator();\n Arrays.sort(circles,circleComparator);\n\n System.out.println(\"After-sorted: \");\n for (Circle circle:circles){\n System.out.println(circle);\n }\n /*ComparableCircle[] circles= new ComparableCircle[3];\n circles[0]= new ComparableCircle(3.6);\n circles[1]=new ComparableCircle();\n circles[2]=new ComparableCircle(\"blue\",true,3.4);\n System.out.println(\"Pre-sorted:\");\n for(ComparableCircle circle:circles) {\n System.out.println(circle);\n }\n System.out.println(circles[0].compareTo(circles[1]));\n System.out.println(circles[1].compareTo(circles[2]));\n System.out.println(circles[0].compareTo(circles[2]));\n\n Arrays.sort(circles);\n\n System.out.println(\"After-sorted: \");\n for(ComparableCircle circle:circles){\n System.out.println(circle);\n }*/\n }",
"private int compararEntradas (Entry<K,V> e1, Entry<K,V> e2)\r\n\t{\r\n\t\treturn (comp.compare(e1.getKey(),e2.getKey()));\r\n\t}",
"@Override\r\n\tpublic int compare(Entry<Integer, Integer> o1, Entry<Integer, Integer> o2) {\n\t\treturn o2.getValue().compareTo(o1.getValue());\r\n\t}",
"@Override\n\tpublic Comparator<? super K> comparator() {\n\t\treturn null;\n\t}",
"@Override\r\n\t public int compare(Student_UsingComparator obj1, Student_UsingComparator obj2){\n\t\t return obj2.rollno-obj1.rollno;\r\n\t }",
"public static JwComparator<AcCustodySummaryVo> getItemInCustodyComparator()\n {\n return AcCustodySummaryVoTools.instance.getItemInCustodyComparator();\n }",
"private Comparator<Doctor> lastNameAlphabeticalComparator() {\n return (o1, o2) -> {\n if(o1.getLastName() != null && o2.getLastName() != null){\n return o1.getLastName().compareTo(o2.getLastName());\n }\n return 0;\n };\n }",
"private static Comparator<String> getItemNameComparator()\n\t{\n\t\tComparator<String> c = new Comparator<String>() {\n\t\t\tpublic int compare(String a, String b)\n\t\t\t{\n\t\t\t\tString help = StandardOptions.HELP.toString();\n\t\t\t\tif (a.equalsIgnoreCase(help))\n\t\t\t\t{\n\t\t\t\t\treturn b.equalsIgnoreCase(help) ? 0 : 1;\n\t\t\t\t}\n\t\t\t\telse if (b.equalsIgnoreCase(help)) // Only b is help, so a < b\n\t\t\t\t{\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\telse // neither are help\n\t\t\t\t{\n\t\t\t\t\treturn a.compareToIgnoreCase(b);\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\treturn c;\n\t}",
"private final int compare( AnyType item, RedBlackNode<AnyType> t )\n {\n if( t == header )\n return 1;\n else\n return item.compareTo( t.element ); \n }",
"protected abstract Comparator<T> getFallbackComparator();",
"@Override\n\tpublic int compare(Inventariable<T> o1, Inventariable<T> o2) {\n\t\treturn o1.getCodigo()-o2.getCodigo();\n\t}",
"@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) {\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t}",
"private static void compareForIdenticalKeys() {\n Integer[] identical = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1};\n\n Insertion insertion = new Insertion();\n insertion.analyzeSort(identical);\n insertion.getStat().printReport();\n\n Selection selection = new Selection();\n selection.analyzeSort(identical);\n selection.getStat().printReport();\n }",
"@Override\r\n public void sort(final IRepository<T> repository,\r\n final Comparator<T> comparator) {\r\n int personLength = 0;\r\n for (T iPerson : repository.toList()) {\r\n if (iPerson != null) {\r\n ++personLength;\r\n }\r\n }\r\n for (int i = 1; i < personLength; i++) {\r\n T current = repository.get(i);\r\n int j = i - 1;\r\n while(j >= 0 && comparator.compare(repository.get(j), current) > 0) {\r\n repository.set(j + 1, repository.get(j));\r\n j--;\r\n }\r\n repository.set(j + 1, current);\r\n }\r\n }",
"private Comparator<Doctor> firstNameAlphabeticalComparator() {\n return (o1, o2) -> {\n if(!(o1.getFirstName() == null || o2.getFirstName() == null)){\n if (o1.getFirstName().compareTo(o2.getFirstName()) == 0)\n return lastNameAlphabeticalComparator().compare(o1,o2);\n else\n return o1.getFirstName().compareTo(o2.getFirstName());\n }\n return 0;\n };\n }",
"@Override\n\tpublic int compare(Cabina o1, Cabina o2) {\n\t\treturn o1.getNumero()-o2.getNumero();\n\t}",
"public int compareTo(Object coffee1, Object coffee2){\r\n\r\n System.out.println(\"compareTo being called on \" + coffee1 + \" and \" + coffee2);\r\n\r\n if (coffee1.price - coffee2.price < 0){\r\n return -1;\r\n }\r\n else if (coffee1.price == coffee2.price){\r\n if (length(coffee1.company) < length(coffee2.company)){\r\n return -1\r\n }\r\n else if (coffee1.company == coffee2.company){\r\n if (length(coffee1.color)) < length(coffee2.color){\r\n return -1\r\n }\r\n else if (coffee1.color == coffee2.color){\r\n return 0\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1\r\n }\r\n }\r\n else{\r\n return 1;\r\n }\r\n}",
"public void sortMatches();",
"private Sort() { }",
"@Override\n\t\t\t\t\tpublic int compare(Entry<Integer, String> o1, Entry<Integer, String> o2) {\n\t\t\t\t\t\treturn o1.getValue().compareTo(o2.getValue());\n\t\t\t\t\t}",
"@Override\n public int compare(CostVector o1, CostVector o2) {\n int i = 0;\n while (i < o1.getCosts().length && o1.getCosts()[i] == o2.getCosts()[i]) {\n i++;\n }\n if (i != o1.getCosts().length) {\n return o1.getCosts()[i] > o2.getCosts()[i] ? 1 : -1;\n } else {\n return 0;\n }\n }",
"@Override\n\t\t\tpublic Comparator<SkillMachines> getComparator() {\n\t\t\t\treturn new Comparator<SkillMachines>(){\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic int compare(SkillMachines machine1,\n\t\t\t\t\t\t\tSkillMachines machine2) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\treturn machine1.no-machine2.no;\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}",
"@Override\r\n /**\r\n * *\r\n *Primero revisa si los apellidos con iguales, en el caso de que sean iguales\r\n *entra al if y compara por nombres, de lo contrario nunca entra al if y \r\n * compara normalmente por apellido\r\n * \r\n */ \r\n public void ordenarPersonas (){\r\n Comparator<Persona> comparacionPersona= (Persona persona1,Persona persona2)->{\r\n \r\n if(persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos())==0){\r\n return persona1.getNombres().compareToIgnoreCase(persona2.getNombres());}\r\n return persona1.getApellidos().compareToIgnoreCase(persona2.getApellidos());\r\n }; \r\n\r\n listaPersona.sort(comparacionPersona);\r\n }",
"private void sort() {\n\t\tCollections.sort(this.entities, comparator);\n\t}",
"@Override\n\t\t\tpublic int compare( Entry<Exercice, Integer> o1, Entry<Exercice, Integer> o2 )\n\t\t\t{\n\t\t\t\treturn - o1.getValue().compareTo( o2.getValue() );\n\t\t\t}",
"public void step3(){\n\n Collections.sort(names,(String a, String b) -> a.compareTo(b));\n }",
"public void step2(){\n\n Collections.sort(names,(String a,String b) -> {\n return a.compareTo(b);\n });\n }",
"public PriceComparator()\n\t{\n\t\tascending=true;\n\t}",
"@Override\n\t\t\tpublic int compare(Entry<Long, String> e1, Entry<Long, String> e2) {\n\t\t\t\t\n\t\t\t\treturn (int) (e1.getKey()-e2.getKey());\n\t\t\t}",
"static int compar(int d1,int m1, int y1,int d2,int m2, int y2 )\n{\n if(y1>y2)\n return 1;\n if(y1<y2)\n return -1;\n \n if(m1>m2)\n return 1;\n if(m1<m2)\n return -1;\n \n if(d1>d2)\n return 1;\n if(d1<d2)\n return -1;\n \n \n \n return 0;\n \n \n}",
"@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}",
"@Override\r\n\t\tpublic int compareTo(Object o) {\n\t\t\treturn 0;\r\n\t\t}",
"private static final List<Fooable> sortFooables(\n \t\t\tMap<Fooable, Integer> fooPairs) {\n \t\t// Create a list of Map.Entries based on the input Map\n \t\tList<Map.Entry<Fooable, Integer>> pairList = new ArrayList<>();\n \t\tpairList.addAll(fooPairs.entrySet());\n \n \t\t// Sort the list of Map.Entries containing Fooables and Levenshtein\n \t\t// Distances\n \t\tCollections.sort(pairList,\n \t\t\t\tnew Comparator<Map.Entry<Fooable, Integer>>() {\n \t\t\t\t\t@Override\n \t\t\t\t\tpublic int compare(Entry<Fooable, Integer> o1,\n \t\t\t\t\t\t\tEntry<Fooable, Integer> o2) {\n \t\t\t\t\t\t// Initially sort by Levenshtein Distance\n \t\t\t\t\t\tif (o1.getValue() < o2.getValue())\n \t\t\t\t\t\t\treturn -1;\n \n \t\t\t\t\t\tif (o1.getValue() > o2.getValue())\n \t\t\t\t\t\t\treturn 1;\n \n \t\t\t\t\t\t// Fallback sorting on String comparison\n \t\t\t\t\t\treturn o1.getKey().getName()\n \t\t\t\t\t\t\t\t.compareToIgnoreCase(o2.getKey().getName());\n \t\t\t\t\t}\n \t\t\t\t});\n \n \t\t// Construct a sorted list of Fooables\n \t\tList<Fooable> sortedList = new ArrayList<>();\n \t\tfor (Map.Entry<Fooable, Integer> pair : pairList) {\n \t\t\tsortedList.add(pair.getKey());\n \t\t}\n \n \t\treturn sortedList;\n \t}",
"@Test\n\tpublic void testComparator() {\n\t\tComparator<Integer> compare = (left, right) -> { return left > right ? 1: (left < right ? -1 : 0); };\n\t\t\n\t\tassertThat(compare.compare(1,1), is(0));\n\t\tassertThat(compare.compare(1,2), is(-1));\n\t\tassertThat(compare.compare(2,1), is(1));\n\t\t\n\t\t//Callable<String> \n\t\t// String call()\n\t\tCallable<String> sayHello = () -> \"Hello World\";\n\t\ttry {\n\t\t\tassertThat(sayHello.call(), is(\"Hello World\"));\n\t\t}catch(Exception e) { }\n\t\t\n\t\t/*\n\t\tRunnable runMe = () -> { System.out.println(\"Hello from run me!\"); };\n\t\trunMe.run();\n\t\t\n\t\tnew Thread(runMe).start();\n\t\t\n\t\tint test = 10;\n\t\tRunnable perhapsRun = () -> {\n\t\t\tif(test < 10) {\n\t\t\t\tSystem.out.println(\"Hello from run\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"Good-bye from run\");\n\t\t\t}\n\t\t};\n\t\ttest = 6;\n\t\tnew Thread(perhapsRun).start();\n\t\t*/\n\t\t\n\t\tPredicate<Integer> odd = n -> n % 2 != 0;\n\t\tPredicate<Integer> positive = n -> n >= 0;\n\t\t\n\t\tPredicate<Integer> oddAndPositive = Predicates.<Integer>and( n -> n % 2 != 0, n -> n >= 0);\n\t\t\n\t\tassertThat(oddAndPositive.test(3), is(true));\n\t}",
"@Override\r\n\tpublic int compare(Map.Entry<Integer, Integer> o1,\r\n\t\t\tMap.Entry<Integer, Integer> o2) {\n\t\treturn o2.getValue() - o1.getValue();\r\n\t}",
"protected Comparator<PhysicalMachine> makeDecreasingPhysicalMachineComparator() {\n return new Comparator<PhysicalMachine>() {\n Comparator<Machine> cap_comp = makeDecreasingMachineComparator();\n public int compare(PhysicalMachine m0, PhysicalMachine m1) {\n int diff = cap_comp.compare(m0, m1);\n if (diff == 0) {\n diff = m0.getID() - m1.getID();\n }\n return diff;\n }\n };\n }",
"public static void main(String[] args) {\r\n\t\t\r\n\t\tList<Student> students = new ArrayList<>();\r\n\t\t\r\n\t\tstudents.add(new Student(23, \"Aryan\"));\r\n\t\tstudents.add(new Student(23, \"Jeet\"));\r\n\t\tstudents.add(new Student(83, \"Dhruv\"));\r\n\t\tstudents.add(new Student(13, \"Amit\"));\r\n\t\tstudents.add(new Student(65, \"Aditya\"));\r\n\t\tstudents.add(new Student(57, \"Jeet\"));\r\n\t\t\r\n//\t\tCollections.sort(students);\r\n\t\t\r\n//\t\tCollections.sort(students, new SortByNameThenMarks());\t// We passed our own comparator object.\r\n\t\t\r\n\t\t// We can have our own anonymous comparator without making a class. We can do that so by doing the following:\r\n\t\t\r\n//\t\tCollections.sort(students, new Comparator<Student>() {\r\n//\r\n//\t\t\t@Override\r\n//\t\t\tpublic int compare(Student obj1, Student obj2) {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t}\r\n//\t\t\t\r\n//\t\t});\r\n\t\t\r\n\t\t// With the help of Lambda we could cut short the lines but we have to mention the sign \"->\".\r\n//\t\tCollections.sort(students,(Student obj1, Student obj2) -> {\r\n\t\t\r\n//\t\tCollections.sort(students,(obj1, obj2) -> {\r\n//\t\t\t\tif(obj1.name.equals(obj2)) return obj1.marks - obj2.marks;\r\n//\t\t\t\treturn obj1.name.compareTo(obj2.name);\r\n//\t\t\t});\r\n\t\t\r\n//\t\tCollections.sort(students, (obj1, obj2) -> obj1.name.compareTo(obj2.name));\r\n\t\t\r\n//\tThe comparator SortByNameThenMarks can be written in one line as follows. Also \".reversed()\" is used to reverse the order of comparison.\r\n\t\tCollections.sort(students, Comparator.comparing(Student::getName).thenComparing(Student::getMarks).reversed());\r\n\t\t\r\n\t\tstudents.forEach(System.out::println);\t// This is lambda expression to print \r\n\t}",
"public Comparator<Integer> createIntegerComparator() {\n \n return (Integer i1, Integer i2) -> ( i1.intValue() - i2.intValue());\n }",
"public void triCollection(){\r\n Collections.sort(collection);\r\n }",
"public Comparator<Point> slopeOrder() {\n /* YOUR CODE HERE */\n return new SlopeOrder();\n }",
"public SoilTypeComparator() {\n\t\tthis.descending = true;\n\t}",
"public static void main(String[] args) {\n SortedSet<CompareObject> objects = new TreeSet<>(new ComparatorTest());\n\n objects.add(new CompareObject(1));\n objects.add(new CompareObject(3));\n objects.add(new CompareObject(5));\n objects.add(new CompareObject(-13));\n objects.add(new CompareObject(12));\n objects.add(new CompareObject(1100));\n objects.add(new CompareObject(1));\n\n for (CompareObject x : objects){\n System.out.println(x);\n }\n\n }"
] | [
"0.682034",
"0.6574746",
"0.6537471",
"0.64504206",
"0.6434276",
"0.63721824",
"0.63660794",
"0.6365769",
"0.6358311",
"0.6314118",
"0.62931365",
"0.62609524",
"0.6241159",
"0.6236253",
"0.6203748",
"0.6144584",
"0.6133104",
"0.6119511",
"0.6109382",
"0.6102122",
"0.60912365",
"0.60801417",
"0.6073035",
"0.6067755",
"0.6066249",
"0.60423666",
"0.6028481",
"0.60265386",
"0.6019397",
"0.60049796",
"0.5999666",
"0.5999011",
"0.5986747",
"0.5981085",
"0.5969555",
"0.5963823",
"0.5963242",
"0.59622025",
"0.5953994",
"0.5945632",
"0.5934931",
"0.5932149",
"0.59210527",
"0.59161097",
"0.5914316",
"0.59095234",
"0.5905159",
"0.590497",
"0.5874466",
"0.5865456",
"0.5856956",
"0.58522785",
"0.584806",
"0.5825374",
"0.5825159",
"0.58185893",
"0.5807777",
"0.58036053",
"0.5797807",
"0.5791309",
"0.57547396",
"0.57477325",
"0.57462215",
"0.57404816",
"0.5739896",
"0.5731884",
"0.5727124",
"0.57269835",
"0.5724498",
"0.5723798",
"0.57221836",
"0.5715448",
"0.5714139",
"0.5707056",
"0.57057226",
"0.5689828",
"0.56882685",
"0.5687729",
"0.56860745",
"0.567906",
"0.56753266",
"0.5672278",
"0.566502",
"0.565678",
"0.5655925",
"0.56532484",
"0.5646608",
"0.5645164",
"0.5638718",
"0.56363845",
"0.563147",
"0.5631291",
"0.56309825",
"0.56308234",
"0.56257397",
"0.56234133",
"0.5620446",
"0.5617919",
"0.5617693",
"0.5615161",
"0.56144345"
] | 0.0 | -1 |
TODO Autogenerated method stub | public List<Map<String, Object>> orderReport(Date stateDate,Date endDate) {
return reportMapper.orderReport(stateDate,endDate);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
Constructor that makes document with Document Model docModel and Title title. | public Document(String title, CopyOnWriteArrayList<String> docModel,
String location, int id) {
this.docModel = docModel;
this.name = title;
this.location = location;
this.id = id;
/* Starts up command listener for document */
Thread t = new Thread(new Runnable() {
@Override
public void run() {
while (true) {
if (!commandsQueue.isEmpty()) {
String[] currCommand = commandsQueue.remove();
if (currCommand[0].equals("insert")) {
insert(Integer.parseInt(currCommand[1]),
currCommand[2]);
} else if (currCommand[0].equals("remove")) {
remove(Integer.parseInt(currCommand[1]));
}
updateActiveUsers();
}
}
}
});
t.start();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Doc() {\n\n }",
"public CouchDoc() {\n super();\n docType = getClass().getSimpleName();\n }",
"public Document() {\n }",
"public Model(CoreSession session, String parentPath, String title)\n throws ClientException {\n \tthis.session = session;\n this.doc = session.createDocumentModel(parentPath, title,\n PAGENAV.type());\n this.doc.setPropertyValue(\"dc:title\", title);\n }",
"public Document(String newTitle) throws BusinessRuleException\n {\n this.setTitle(newTitle);\n this.publicationDate = null;\n this.securityLevel = new SecurityLevel();\n this.nominations = new TreeSet();\n }",
"public DocumentBuilder() {\n this.document = new Document();\n }",
"protected Document createDefaultModel() {\n return new PlainDocument();\n }",
"public ModDocument() {\r\n\t\tsuper();\r\n\t}",
"public Documento() {\n\n\t}",
"public MyDocument() {\r\n }",
"public DocumentDao() {\n super(Document.DOCUMENT, cn.edu.nju.teamwiki.jooq.tables.pojos.Document.class);\n }",
"public DocumentView(MainWindow frame, String documentName, String text) {\n\t\tif (DEBUG) {\n\t\t\tSystem.out.println(\"Estou criando um documento :]\");\n\t\t}\n\t\tthis.frame = frame;\n\t\tthis.client = frame.getClient();\n\t\tthis.documentName = documentName;\n\t\tthis.username = frame.getUsername();\n\t\tdocumentText = Encoding.decode(text);\n\t\tdocumentNameLabel = new JLabel(\"<html><B>\"+documentName+\"</B></html>\");\n\t\tcreateLayout();\n\t}",
"private Doc addDoc(String title, String text) {\n\t\tDoc doc = objectFactory.createDoc();\n\t\tdoc.setTitle(title);\n\t\tdoc.setLang(ParserConstants.english.toString());\n\t\tdoc.getContent().add(text);\n\t\treturn doc;\n\t}",
"public DocumentController(String date, String content) {\n document = new DocumentSchema();\n document.setDocumentStr(content);\n document.setPublicationDate(date);\n document.setDocId(UUID.randomUUID().toString());\n }",
"public RichDocument()\n {\n setMeta(new DocumentMeta());\n _paragraphs=new ArrayList<Paragraph>();\n }",
"public PDFInfo(DocumentModel inDoc) {\n this(inDoc, null, null);\n }",
"public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }",
"public Book () {\n\t\tsuper ();\n\t\t_title = \"\";\n\t\t_text = \"\";\n\t\t_publisher = null;\n\t\t_oid = 0;\n\t\t_author = null;\n\t\t_Isbn = \"\";\n\t}",
"public DocumentBase() {\n \n }",
"Documentable createDocumentable();",
"Documentation createDocumentation();",
"Documentation createDocumentation();",
"Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;",
"public JCYDocument() {}",
"public XMLMessage(Document document) {\n setDocument(document);\n }",
"protected Document() {/* intentionally empty block */}",
"@Override\n public DocumentServiceEntry createDocument(String title, String contents) throws DocumentServiceException {\n DocsService svc = getDocsService();\n DocumentEntry newDocument = new DocumentEntry();\n newDocument.setTitle(new PlainTextConstruct(title));\n DocumentEntry entry;\n try {\n MediaByteArraySource source = new MediaByteArraySource(contents.getBytes(\"UTF8\"), \"text/plain\");\n newDocument.setMediaSource(source);\n entry = svc.insert(new URL(DOCS_SCOPE + \"default/private/full\"), newDocument);\n } catch (Exception e) {\n e.printStackTrace();\n throw new DocumentServiceException(e.getMessage());\n }\n return getDocumentReference(entry);\n }",
"@SuppressWarnings(\"unchecked\")\n @Override\n protected void buildPdfDocument(Map<String, Object> model, Document document, PdfWriter writer,\n HttpServletRequest request, HttpServletResponse response) throws Exception {\n createNewPdfByTemplate(model,document,writer,request,response);\n\n }",
"public void newDocument();",
"protected Document createDefaultModel()\n\t{\n\t\treturn new IntegerDocument();\n\t}",
"public SearchDocument() {\n super();\n }",
"public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}",
"public CreateDocumentController() {\n }",
"public SimpleDocReader() { }",
"public interface SingleDocumentModel {\n\t\n\t/**\n\t * Returns {@link JTextArea} component used by {@code this} document.\n\t * \n\t * @return {@link JTextArea} component used by {@code this} document\n\t */\n\tJTextArea getTextComponent();\n\n\t/**\n\t * Returns path of this document. If document was not saved yet returned\n\t * path is {@code null}.\n\t * \n\t * @return path of this document. If document was not saved yet returned\n\t * \t\t path is {@code null}\n\t */\n\tPath getFilePath();\n\n\t/**\n\t * Sets the path of {@code this} document to the given one. Given path\n\t * cannot be {@code null}.\n\t * \n\t * @param path\n\t * new path of {@code this} document\n\t * @throws NullPointerException if the given path is {@code null}\n\t */\n\tvoid setFilePath(Path path);\n\n\t/**\n\t * Returns {@code true} is this document was modified after last saving.\n\t * \n\t * @return {@code true} is this document was modified after last saving\n\t */\n\tboolean isModified();\n\n\t/**\n\t * Sets modification status of this document to the given one.\n\t * \n\t * @param modified\n\t * new modification status of {@code this} document\n\t */\n\tvoid setModified(boolean modified);\n\n\t/**\n\t * Adds listener to {@code this} document intern collection.\n\t * \n\t * @param l\n\t * listener to be added\n\t * @throws NullPointerException if the given listener is {@code null}\n\t */\n\tvoid addSingleDocumentListener(SingleDocumentListener l);\n\n\t/**\n\t * Removes given listener from {@code this} document.\n\t * \n\t * @param l\n\t * listener to be removed\n\t */\n\tvoid removeSingleDocumentListener(SingleDocumentListener l);\n\t\n}",
"public CreateDocumentRequest withRequires(java.util.Collection<DocumentRequires> requires) {\n setRequires(requires);\n return this;\n }",
"public DefaultObjectModel ()\n {\n this (new Schema ());\n }",
"public void consolidatedDocumentInit(Document doc){ \n setSubject(doc.getSubject()); \n }",
"private static DocumentationImpl createDocumentation() {\n\t\treturn DocumentationImpl.Builder.info(\"A workspace in which other items can be placed, and top-level options can be configured.\")\n\t\t\t\t.param(\"Initialize\", \"Whether or not to execute the Initialize phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Run\", \"Whether or not to execute the Run phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Duration (minutes)\", \"The number of minutes this workspace will be alive.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Retrieve Data\", \"Whether or not to execute the Retrieve Data phase.\") // FIXME: STRING: srogers\n\t\t\t\t.param(\"Cleanup\", \"Whether or not to execute the Cleanup phase.\") // FIXME: STRING: srogers\n\t\t\t\t.build(); // FIXME: srogers: extract string construction into a dedicated method\n\t}",
"public OnshapeDocument(String documentId, String workspaceId, String versionId, String microversionId, String elementId) {\n this.baseURL = \"https://cad.onshape.com\";\n this.documentId = documentId;\n this.wvm = workspaceId != null ? WVM.Workspace : (versionId != null ? WVM.Version : (microversionId != null ? WVM.Microversion : null));\n this.workspaceId = workspaceId;\n this.versionId = versionId;\n this.microversionId = microversionId;\n this.elementId = elementId;\n }",
"public Doc newDocument(String documentElementName) {\n return new Doc(documentElementName);\n }",
"public Document createDefaultDocument()\n {\n return new MoeSyntaxDocument(projectResolver, documentListener);\n }",
"public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);",
"@Override\n public DocumentServiceEntry getNewDocument() {\n UserService userService = UserServiceFactory.getUserService();\n DocumentServiceEntry doc = new DocumentServiceEntry();\n doc.setTitle(\"Untitled Document\");\n doc.setIdentifier(doc.getTitle().replaceAll(\"[^a-zA-Z0-9_\\\\-\\\\.]\", \"\"));\n doc.setAuthor(userService.getCurrentUser().getEmail());\n doc.setEditor(userService.getCurrentUser().getNickname());\n return doc;\n }",
"public DoubleDocument () {\r\n\t}",
"public ExternalDocumentEntry() {\n\t\tsuper(CDAFactory.eINSTANCE.createExternalDocument());\n\t\tthis.getMdht().getTemplateIds()\n\t\t\t\t.add(DatatypesFactory.eINSTANCE.createII(\"2.16.840.1.113883.10.20.1.36\"));\n\t\tthis.getMdht().setClassCode(ActClassDocument.DOC);\n\t\tthis.getMdht().setMoodCode(ActMood.EVN);\n\n\t}",
"public Model() {\n this(DSL.name(\"model\"), null);\n }",
"Rule Document() {\n // Push 1 DocumentNode onto the value stack\n return Sequence(\n WhiteSpace(),\n ZeroOrMore(Header()),\n ZeroOrMore(Definition()),\n EOI,\n actions.pushDocumentNode());\n }",
"SingleDocumentModel loadDocument(Path path);",
"public Document buildDocument(Document doc) throws IOException {\n\t\treturn config.build(taxonomyWriter, doc);\n\t}",
"private void createDocument() {\n\t\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\t\ttry {\r\n\t\t\t//get an instance of builder\r\n\t\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\r\n\t\t\t//create an instance of DOM\r\n\t\t\tdom = db.newDocument();\r\n\r\n\t\t\t}catch(ParserConfigurationException pce) {\r\n\t\t\t\t//dump it\r\n\t\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\r\n\t\t\t\tSystem.exit(1);\r\n\t\t\t}\r\n\r\n\t\t}",
"public static DocumentBuilder createDocumentBuilder() {\n\t\treturn createDocumentBuilder(DefaultEntityResolver.getInstance());\n\t}",
"public Document(Author author, String title, String content, Vector<String> connectorWords) {\n mAuthor = author;\n //mTitle = new Sentence(title);\n mTitle = title;\n mContent = new Content(content);\n mConnectorWords = connectorWords;\n calculateWordFrequency();\n }",
"private void createDocument(){\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n\t\ttry {\n\t\t//get an instance of builder\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\n\n\t\t//create an instance of DOM\n\t\tdom = db.newDocument();\n\n\t\t}catch(ParserConfigurationException pce) {\n\t\t\t//dump it\n\t\t\tSystem.out.println(\"Error while trying to instantiate DocumentBuilder \" + pce);\n\t\t\tSystem.exit(1);\n\t\t}\n }",
"public void setMainDocument(String body, String type, Date date, String title) {\n mainDocument = new DocumentItem(body, type, DocumentItemType.DOCUMENT);\n setMainDocumentInfo(date, title);\n }",
"private Document createDocumentForTest() {\r\n\r\n EntityManager em = com.topcoder.service.studio.contest.bean.MockEntityManager.EMF.createEntityManager();\r\n em.getTransaction().begin();\r\n\r\n FilePath path = new FilePath();\r\n path.setModifyDate(new Date());\r\n path.setPath(\"path\");\r\n\r\n StudioFileType studioFileType = new StudioFileType();\r\n studioFileType.setDescription(\"description\");\r\n studioFileType.setExtension(\"extension\");\r\n studioFileType.setImageFile(true);\r\n studioFileType.setSort(1);\r\n em.persist(studioFileType);\r\n\r\n MimeType mimeType = new MimeType();\r\n mimeType.setDescription(\"description\");\r\n mimeType.setStudioFileType(studioFileType);\r\n mimeType.setMimeTypeId(1L);\r\n em.persist(mimeType);\r\n\r\n DocumentType type = new DocumentType();\r\n type.setDescription(\"description\");\r\n type.setDocumentTypeId(1L);\r\n em.persist(type);\r\n\r\n em.getTransaction().commit();\r\n em.close();\r\n\r\n Document document = new Document();\r\n document.setOriginalFileName(\"originalFileName\");\r\n document.setSystemFileName(\"systemFileName\");\r\n document.setPath(path);\r\n document.setMimeType(mimeType);\r\n document.setType(type);\r\n document.setCreateDate(new Date());\r\n\r\n return document;\r\n }",
"SingleDocumentModel getCurrentDocument();",
"public abstract WalkerDocument newDocument(IOptions options);",
"protected void addTitlePage(Document doc) throws Exception {\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\\n\\n\"));\r\t\t\t\n // data dictionary\n Font font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 22);\n \t\tParagraph prg = new Paragraph(\"Data Dictionary\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // full definition\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 14);\n prg = new Paragraph(\"Definition of\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n // dataset name\n font = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 26);\n prg = new Paragraph(dsName, font);\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// dataset word\n font = FontFactory.getFont(FontFactory.HELVETICA, 14);\n \t\tprg = new Paragraph(\"dataset\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n doc.add(prg);\n \n \t\tdoc.add(new Paragraph(\"\\n\\n\"));\n \t\t\n \t\t// version\n \t\tprg = new Paragraph();\n \t\tprg.add(new Chunk(\"Version: \", font));\n \t\tprg.add(new Chunk(dsVersion, font));\n \t\tprg.setAlignment(Element.ALIGN_CENTER);\n \t\tdoc.add(prg);\n \t\t\n \t\t// date\n \t\t//prg = new Paragraph(getTitlePageDate());\n \t\t//prg.setAlignment(Element.ALIGN_CENTER);\n \t\t//doc.add(prg);\n \n doc.add(new Paragraph(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\"));\n \n // European Environment Agency\n font = FontFactory.getFont(FontFactory.TIMES_BOLD, 12);\n prg = new Paragraph(\"European Environment Agency\", font);\n prg.setAlignment(Element.ALIGN_CENTER);\n \n if (!Util.voidStr(logo)){\n Image img = Image.getInstance(logo);\n img.setAlignment(Image.LEFT);\n \n prg.add(new Chunk(img, 0, 0));\n }\n \n doc.add(prg);\n }",
"public Book(final String title) {\n this.title = title;\n }",
"public XMLData () {\r\n\r\n //code description\r\n\r\n try {\r\n DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();\r\n this.document = builder.newDocument(); \r\n }\r\n catch (ParserConfigurationException err) {}\r\n\r\n }",
"public WalkerDocument newDocument() { return newDocument((IOptions)null); }",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Model createModel();",
"Documento createDocumento();",
"public Document getModel(){\n return getDocument();\n }",
"public void setDocument(Document doc)\n\t{\n\t\tthis.document = doc;\n\t}",
"public ServiceJob(Document document) {\n\t\tsuper();\n\t\tthis.setDocument(document);\n\t}",
"public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }",
"@Override\n public DocumentModel createDocument(CoreSession session, Blob content, DocumentModel mainDoc, DocumentModel folder)\n throws IOException {\n\n return createDocument(session, content, mainDoc, folder, false);\n }",
"public void init() { \n\t\ttry { \n\t\t\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); \n\t\t\tDocumentBuilder builder = factory.newDocumentBuilder(); \n\t\t\tthis.document = builder.newDocument(); \n\t\t\tlogger.info(\"initilize the document success.\");\n\t\t} catch (ParserConfigurationException e) { \n\t\t\t\n\t\t\tlogger.error(e.getMessage());\n\t\t} \n\t}",
"public BookInfoDO() {\n super();\n }",
"public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }",
"@Override\n public DocumentServiceEntry saveDocument(String documentId, String etag, String title,\n String contents) throws DocumentServiceException {\n if (documentId == null || documentId.equals(\"\")) {\n return createDocument(title, contents);\n } else {\n return setDocumentContents(documentId, etag, contents);\n }\n }",
"public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }",
"public CreateDocumentRequest withDocumentFormat(DocumentFormat documentFormat) {\n this.documentFormat = documentFormat.toString();\n return this;\n }",
"protected AnnotatedDocument createAnnotatedDocument(Model nifModel)\r\n throws Exception {\n ResIterator resIter = nifModel.listResourcesWithProperty(RDF.type,\r\n NIF.Context);\r\n List<Resource> resources = new ArrayList<Resource>();\r\n while (resIter.hasNext()) {\r\n resources.add(resIter.next());\r\n }\r\n if (resources.size() == 0) {\r\n LOGGER.error(\"Couldn't find the document resource inside the parsed NIF model.\");\r\n throw new Exception(\r\n \"Couldn't find the document resource inside the parsed NIF model.\");\r\n }\r\n if (resources.size() > 1) {\r\n LOGGER.warn(\"Got a NIF model with more than one resource of the type nif:Context. Only the first one will be used.\");\r\n }\r\n\r\n Resource document = resources.get(0);\r\n\r\n // Get the text of the document\r\n NodeIterator nodeIter = nifModel.listObjectsOfProperty(document,\r\n NIF.isString);\r\n Literal tempLiteral = null;\r\n while (nodeIter.hasNext()) {\r\n if (tempLiteral != null) {\r\n LOGGER.warn(\"Got a document with more than one nif:isString properties. Using the last one.\");\r\n }\r\n tempLiteral = nodeIter.next().asLiteral();\r\n }\r\n if (tempLiteral == null) {\r\n LOGGER.error(\"Got a document node without a text.\");\r\n throw new Exception(\"Got a document node without a text.\");\r\n }\r\n AnnotatedDocument resultDocument = new AnnotatedDocumentImpl(\r\n tempLiteral.getString());\r\n String documentURI = document.getURI();\r\n int pos = documentURI.lastIndexOf('#');\r\n if (pos > 0) {\r\n resultDocument.setDocumentURI(documentURI.substring(0, pos));\r\n }\r\n\r\n // Get the language of the text if it exists\r\n String lang = tempLiteral.getLanguage();\r\n if ((lang != null) && (lang.length() > 0)) {\r\n // FIXME add the language to the result document\r\n }\r\n\r\n // get the annotations from the model\r\n List<Annotation> annotations = resultDocument.getAnnotations();\r\n resIter = nifModel.listSubjectsWithProperty(NIF.referenceContext,\r\n document);\r\n Resource annotationResource;\r\n int start, end;\r\n String entityUri;\r\n double confidence;\r\n while (resIter.hasNext()) {\r\n annotationResource = resIter.next();\r\n start = end = -1;\r\n nodeIter = nifModel.listObjectsOfProperty(annotationResource,\r\n NIF.beginIndex);\r\n if (nodeIter.hasNext()) {\r\n start = nodeIter.next().asLiteral().getInt();\r\n }\r\n nodeIter = nifModel.listObjectsOfProperty(annotationResource,\r\n NIF.endIndex);\r\n if (nodeIter.hasNext()) {\r\n end = nodeIter.next().asLiteral().getInt();\r\n }\r\n if ((start >= 0) && (end >= 0)) {\r\n nodeIter = nifModel.listObjectsOfProperty(annotationResource,\r\n ITSRDF.taIdentRef);\r\n if (nodeIter.hasNext()) {\r\n entityUri = nodeIter.next().toString();\r\n nodeIter = nifModel.listObjectsOfProperty(\r\n annotationResource, ITSRDF.taConfidence);\r\n if (nodeIter.hasNext()) {\r\n confidence = nodeIter.next().asLiteral().getDouble();\r\n annotations.add(new ScoredDisambigAnnotation(start, end\r\n - start, entityUri, confidence));\r\n } else {\r\n // It has been disambiguated without a confidence\r\n annotations.add(new DisambiguatedAnnotation(start, end\r\n - start, entityUri));\r\n }\r\n } else {\r\n // It is a named entity that hasn't been disambiguated\r\n annotations.add(new AnnotationImpl(start, end - start));\r\n }\r\n } else {\r\n LOGGER.warn(\"Found an annotation resource (\\\"\"\r\n + annotationResource.getURI()\r\n + \"\\\") without a start or end index. This annotation will be ignored.\");\r\n }\r\n }\r\n\r\n correctAnnotationPositions(resultDocument);\r\n return resultDocument;\r\n }",
"public Model() {\n\t}",
"public Model() {\n\t}",
"public DocumentUtil() {\n // Because this class can be instantiated by other classes many times, we only\n // want to call the initialize() function\n // if we will be using the getProblemType() function below.\n }",
"public Book() {\n\t\ttitle = null;\n\t\tauthor = null;\n\t}",
"public static XMLDocument create()\n {\n return new XMLDocument();\n }",
"public DocumentManipulator(Document document) {\n\t\tthis.document = document;\n\t\tinit();\n\t}",
"public Document(int addr, TOP_Type type) {\n super(addr, type);\n readObject();\n }",
"public XmlDocumentDefinition() {\n }",
"public DocumentReport() {\n\n\t\tLOGGER.info(\"Create Document Processor\");\n\n\t\tresultsXMLWriter = new ResultsXMLWriter();\n\t\tgaugesWriter = new GaugeJSONWriter();\n\t\tgaugesWriter.setMode(processMode.toString());\n\t\tgaugesXMLWriter = new GaugeXMLWriter();\n\t\tstylesXMLWriter = new StylesXMLWriter();\n\t\tstylesWriter = new StylesJSONWriter();\n\t\tstylesWriter.setMode(processMode.toString());\n\t\t\n\t\txPathWriter = new XPathJSONWriter();\n\t\txPathDotWriter = new DotWriter();\n\t\txPathXMLWriter = new XMLWriter();\n\t\txPathWriter.setMode(processMode.toString());\n\t\t\n//\t\tdotWriter = new DotWriter();\n\t}",
"public Finder(BookModel model) {\n this(model, 0);\n }",
"public Document newDocument() {\n\t\treturn new org.apache.xerces.dom.DocumentImpl();\n\t}",
"public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }",
"public OnshapeDocument(String documentId, String workspaceId, String elementId) {\n this.baseURL = \"https://cad.onshape.com\";\n this.documentId = documentId;\n this.wvm = WVM.Workspace;\n this.workspaceId = workspaceId;\n this.versionId = null;\n this.microversionId = null;\n this.elementId = elementId;\n }",
"public static Document newDocument() throws XMLException{\n\t\ttry{\n\t\t\tfinal DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\t\t\t\n\t\t\tfinal DocumentBuilder builder = factory.newDocumentBuilder();\n\t\t\tfinal Document doc = builder.newDocument();\n\t\t\treturn doc;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tthrow new XMLException(e);\n\t\t}\n\t}",
"public void setDocumentTitle(String documentTitle) {\n this.documentTitle = documentTitle;\n }",
"void init(Document doc) {\n mDoc = doc;\n mDoc.getDocumentElement().normalize();\n load();\n }",
"public Publication(String title, int year)\n {\n // this is the constructor that iniates the variables \n name = title;\n yr = year;\n }",
"@DISPID(-2147417094)\n @PropGet\n com4j.Com4jObject document();"
] | [
"0.67850393",
"0.6596007",
"0.6558568",
"0.65254563",
"0.6462364",
"0.6432631",
"0.6428108",
"0.6347068",
"0.6283546",
"0.62461394",
"0.62151855",
"0.6176749",
"0.6114954",
"0.6097962",
"0.60554224",
"0.6045351",
"0.5987858",
"0.59221965",
"0.59212357",
"0.589833",
"0.5895457",
"0.5895457",
"0.5888133",
"0.5861351",
"0.5851026",
"0.57970756",
"0.57964665",
"0.5785281",
"0.5748105",
"0.57446605",
"0.5728437",
"0.5716266",
"0.5704504",
"0.5690735",
"0.5666939",
"0.5652265",
"0.5623612",
"0.56103003",
"0.55983007",
"0.55869853",
"0.5567876",
"0.5562561",
"0.555886",
"0.5549499",
"0.5544479",
"0.55433124",
"0.5539011",
"0.55341405",
"0.5520445",
"0.55178887",
"0.5509671",
"0.54997474",
"0.5498967",
"0.54965246",
"0.54927194",
"0.54918164",
"0.5469399",
"0.5468978",
"0.54535955",
"0.5451448",
"0.5436695",
"0.5424613",
"0.5420138",
"0.5420138",
"0.5420138",
"0.5420138",
"0.5420138",
"0.5420138",
"0.5420138",
"0.5411755",
"0.5409423",
"0.5397309",
"0.53955144",
"0.5393285",
"0.53851134",
"0.5380075",
"0.53789383",
"0.5378467",
"0.5370787",
"0.5363251",
"0.53614646",
"0.53597736",
"0.5358655",
"0.5358655",
"0.5350491",
"0.53473383",
"0.5334301",
"0.53294796",
"0.5318805",
"0.53134876",
"0.5306847",
"0.53067666",
"0.53007084",
"0.5271443",
"0.5269858",
"0.52581424",
"0.5255106",
"0.52486426",
"0.52476966",
"0.524515"
] | 0.65499717 | 3 |
Synchronized for good measure | private synchronized void remove(int index) {
if (index >= 0 && index <= docModel.size())
try {
docModel.remove(index - 1);
} catch (ArrayIndexOutOfBoundsException e) {
if (commandsQueue.size() == 0)
updateActiveUsers();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void synchronize(){ \r\n }",
"void contentsSynchronized();",
"@Override\n public void sync(){\n }",
"public boolean synchronize() {\n\t\treturn false;\n\t}",
"@Override\r\n\tpublic boolean isSynchronized() {\n\t\treturn false;\r\n\t}",
"void beforeContentsSynchronized();",
"@Override\n public void callSync() {\n\n }",
"@Override\n\tpublic void run() {\n\t\tStaticSynchronized.execute();\n\t\tStaticSynchronized.execute2();\n\t\tStaticSynchronized.execute3();\n\t}",
"protected void synchronizationDone() {\n }",
"public void lock() {\n if (!locked) {\n locked = true;\n sortAndTruncate();\n }\n }",
"public LockSync() {\n lock = new ReentrantLock();\n }",
"void sync()throws IOException;",
"void lock();",
"@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\ts.put();\n\t\t\t\t}",
"private static void concurrentList(){\n\t\tList<Object> unsafeList = new ArrayList<Object>();\n\t\tList<Object> safeList = Collections.synchronizedList(unsafeList);\n\t\t\n\t\t/*\n\t\t * Note that you must manually synchronize the returned list when iterating over it, for example:\n\t\t */\n\t\tsynchronized (safeList) {\n\t\t Iterator<Object> it = safeList.iterator();\n\t\t while (it.hasNext()) {\n\t\t System.out.println(it.next());\n\t\t }\n\t\t}\n\t}",
"void synchronizationDone();",
"@Override\n public void run() {\n super.run();\n notAtomic.naIncreament();\n }",
"@Override\n\tpublic void sync() throws IOException {\n\t\t\n\t}",
"public void lock() {\n\n }",
"public void lock() {\r\n super.lock();\r\n }",
"@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"inside run() method.....\");\n\n\t\tlock();\n\n\t}",
"@Test\r\n\tvoid testReentrant() throws Exception\r\n\t{\r\n\t\tfinal PageAccessSynchronizer sync = new PageAccessSynchronizer(Duration.ofSeconds(5));\r\n\t\tsync.lockPage(0);\r\n\t\tsync.lockPage(0);\r\n\t}",
"static void synced () {\n\t\tList<Integer> linkedList = \n\t\t\t\tCollections.synchronizedList(new LinkedList<Integer>());\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\t\t// launch a thread to add numbers 100 to 200 to the list\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry { Thread.sleep(1);} \n\t\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"end\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// now run an iterator to go through the linked list that is \n\t\t// synchronized with the linked list object. \n\t\tsynchronized(linkedList) {\n\t\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\t\tSystem.out.println(\"starting iteration\");\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\ttry {Thread.sleep(4);} \n\t\t\t\tcatch (InterruptedException e) {e.printStackTrace();}\n\t\t\t\tSystem.out.println(iterator.next());\n\t\t\t}\t\n\t\t\tSystem.out.println(\"finished iteration\");\n\t\t}\n\t}",
"public static void sync() {\n/* 72 */ if (theInstance != null) {\n/* */ \n/* */ \n/* */ \n/* 76 */ D3DScreenUpdateManager d3DScreenUpdateManager = (D3DScreenUpdateManager)ScreenUpdateManager.getInstance();\n/* 77 */ d3DScreenUpdateManager.runUpdateNow();\n/* */ \n/* 79 */ theInstance.lock();\n/* */ try {\n/* 81 */ theInstance.ensureCapacity(4);\n/* 82 */ theInstance.getBuffer().putInt(76);\n/* 83 */ theInstance.flushNow();\n/* */ } finally {\n/* 85 */ theInstance.unlock();\n/* */ } \n/* */ } \n/* */ }",
"public static synchronized void foo() {\n\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"public void lock() {\n super.lock();\n }",
"@Override public void run()\n\t\t{\n\t\t\twhile (mutex)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tmutex = true; \n\t\t\treadCount++;\n\t\t\tif (readCount == 1)\n\t\t\t{\n\t\t\twrt = true; // Locking writer when reader is active\n\t\t\t}\n\t\t\tmutex = false;\n\t\t\t// Critical Section \n\t\t\ttry {\n\t\t\t\t\tFile myObj = new File(\"shared.txt\"); \n\t\t\t\t\tScanner myReader = new Scanner(myObj); \n\t\t\t\t\tString data = myReader.nextLine(); \n\t\t\t\t\tSystem.out.println(\"Reading: \" + data); \n\t\t\t\t\tmyReader.close();\n\t\t\t\t} catch (FileNotFoundException e){}\n\n\t\t\t// Leave Critical section\n\t\t\twhile (mutex) { System.out.print(\"\"); } mutex = true;\n\t\t\treadCount--;\n\t\t\tif (readCount == 0) \n\t\t\t{\n\t\t\t\twrt = false; // Unlocking writer if all reading process is done.\n\t\t\t}\n\t\t\tmutex = false;\n\t\t}",
"Shared shared();",
"private SingletonSyncBlock() {}",
"public void requestExtraSync()\n {\n executor.requestExtraSync();\n }",
"@Override\n\tpublic void sync() throws IOException\n\t{\n\n\t}",
"public static void synchronize() {\n awaitCompletion(READ_HANDLES);\n awaitCompletion(WRITE_HANDLES);\n }",
"public void syncHandle() {\n syncOldStream();\n }",
"public boolean sync() throws VlException \n\t{\n\t return false; \n\t}",
"@Override\r\n\tpublic void doConcurrentJob() {\n\t\tthis.vop.interatorTheVector();\r\n\t}",
"@Override public void run()\n {\n while (wrt)\n {\n System.out.print(\"\");\n }\n\n // Locking Writer and Reader wrt = true;\n mutex = true;\n // Critical section\n BufferedWriter out = null; \n try \n {\n\t\t\t\tout = new BufferedWriter(new FileWriter(\"shared.txt\", false)); \n\t\t\t\tvalue = value + 1;\n\t\t\t\tSystem.out.println(\"Writing: \" + (value)); \n\t\t\t\tout.write(String.valueOf(value)); \n\t\t\t\tout.close();\n } \n catch (IOException e){}\n\n // Leaving Critical section\n wrt = false;\n\tmutex = false;\n\t\t}",
"@Override\n public void syncState() {\n scheduledCounter.check();\n }",
"void sync() throws IOException;",
"void removeAllLocks(){\r\n \tpageAccess = new ConcurrentHashMap<String, AccessDetailVO>();\r\n\r\n }",
"@Test\n\tpublic void test_synchronization() throws InterruptedException, ExecutionException {\n\t\t\n\t\tIkanowV1SyncService_LibraryJars s1 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\tIkanowV1SyncService_LibraryJars s2 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\tIkanowV1SyncService_LibraryJars s3 = new IkanowV1SyncService_LibraryJars(BeanTemplateUtils.clone(_service_config).with(\"v1_enabled\", true).done(), \n\t\t\t\t_service_context);\n\t\t\n\t\tint old = IkanowV1SyncService_LibraryJars._num_leader_changes;\n\t\t\n\t\ts1.start(); s2.start(); s3.start();\n\t\tfor (int i = 0; i < 4; ++i) {\n\t\t\ttry { Thread.sleep(1000); } catch (Exception e) {}\n\t\t}\n\t\ts1.stop(); s2.stop(); s3.stop();\n\t\t\n\t\tassertEquals(old + 1, IkanowV1SyncService_LibraryJars._num_leader_changes);\n\t\t\n\t\t@SuppressWarnings(\"unchecked\")\n\t\tfinal ICrudService<JsonNode> v1_config_db = _service_context.getCoreManagementDbService().getUnderlyingPlatformDriver(ICrudService.class, Optional.of(\"social.share\")).get();\t\t\t\t\n\t\t\n\t\tassertTrue(\"Query optimized\", v1_config_db.deregisterOptimizedQuery(Arrays.asList(\"title\")));\n\t\t\n\t}",
"public synchronized void add() {\ncounter += 1;\n}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}",
"public boolean isSynchronizing() {\n\t\treturn false;\n\t}",
"@Override\n public void run() {\n currentContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n while (true) {\n String newlyReadContent = FileAccessServiceLocator.getStockOrderFileAccess().read();\n if (!newlyReadContent.equals(currentContent) || !newlyReadContent.isEmpty()){\n notify(newlyReadContent);\n currentContent = newlyReadContent;\n }\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n//end of modifiable zone..................E/bfb5c4c0-88e6-44fa-9add-89d5b4394004\n }",
"@Override public void run() // the run() method is the start method for every thread\n {\n // operations that do not use shared memory go outside the synchronized block\n // do not assume that all methods like System.out.println() are thread safe\n \n synchronized (sync) // this synchronized block will prevent multiple threads from altering the shared memory\n {\n System.out.println(\"I am thread \" + threadIndex); // we cannot reference local variables like i\n // so we are using final variable threadIndex\n \n System.out.println(\"The count is now \" + ++sync.counter); // sync.counter is shared memory\n // thus we cannot have multiple threads\n // try to increment at the same time\n \n if (sync.counter == sync.numThreads)\n {\n System.out.println(\"All threads will be notified\");\n \n sync.notifyAll(); // this method unblocks all threads that have called sync.wait()\n }\n else\n {\n System.out.println(\"Thread \" + threadIndex + \" will wait until notified\");\n \n // the .wait() method halts the current thread until it is notified from the same object sync\n try { sync.wait(); } catch (Exception e) { System.out.println(\"catched exception\"); }\n \n System.out.println(\"Thread \" + threadIndex + \" has been notified\");\n }\n }\n }",
"private static void m200a() {\r\n Object obj = AuthTask.f155a;\r\n synchronized (obj) {\r\n try {\r\n obj.notify();\r\n } catch (Exception e) {\r\n }\r\n }\r\n }",
"Boolean autoSync();",
"static void unSynced () {\n\t\tList<Integer> linkedList = Collections.synchronizedList(new LinkedList<Integer>());\n\n\t\t// fill it with numbers 1 to 100\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tlinkedList.add(i);\n\t\t}\n\n\t\t// launch a thread to add 100 more numbers\n\t\tnew Thread(new Runnable () {\n\t\t\t@Override\n\t\t\tpublic void run () {\n\t\t\t\tSystem.out.println(\"starting adding numbers\");\n\t\t\t\tfor (int i = 100; i < 200; i++) {\n\t\t\t\t\tlinkedList.add(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(1);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"ending adding numbers\");\n\t\t\t}\n\t\t}).start();\n\n\t\t// try to iterate through the list in parallel with the numbers being added\n\t\t// interleaving occurs and the iterator throws a CME.\n\t\tIterator<Integer> iterator = linkedList.iterator();\n\t\tSystem.out.println(\"starting iteration\");\n\t\twhile (iterator.hasNext()) { \n\t\t\ttry {\n\t\t\t\tThread.sleep(4);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tSystem.out.println(iterator.next());\n\t\t}\n\t\tSystem.out.println(\"finished iteration\");\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (a) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\ta.wait();\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}",
"public void run() {\n\t\tSystem.out.println(\"fuseAdd\");\n\t\tAddConcurrent1 adder = new AddConcurrent1();\n\t\tValidateFusion validator = new ValidateFusion();\n\t\tint sum = adder.addConcurrent1(sortedSnapshot);\t\t\t \n\t\tvalidator.validate(sum, 2);\n\t\tGlobalInfo.completeThreads++;\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public boolean needsSync() {\n return myNeedsSync;\n }",
"public void lock() {\n\t\tlocked = true;\n\t}",
"public void sync(){\n byte[] block = new byte[512];\n SysLib.int2bytes(totalBlocks, block, 0);\n SysLib.int2bytes(totalInodes, block, 4);\n SysLib.int2bytes(freeList, block, 8);\n SysLib.rawwrite(0, block);\n }",
"@Override\n public boolean isThreadSafe()\n {\n return false;\n }",
"void trySynchronizeHostData(DataBuffer buffer);",
"private static synchronized int next(){\n next ++;\n return next;\n}",
"public void synchronize(int change);",
"public void syncStream() {\n JCudaDriver.cuStreamSynchronize(stream);}",
"public void sync() {\n\t\t\n\t\tfor (int i = 0; i <= temporary.length - 1; i++) {\n\t\t\tfinalized[i] = temporary[i];\n\t\t}\n\n//TODO:\t\ttemporary.clear();\n\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (OnlineObjectsContainer.this.onlineObjects) {\n\t\t\t\t\tfinal Iterator<OnlineObject> iterator = OnlineObjectsContainer.this.onlineObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.EXPIRATION_TIME < System.currentTimeMillis()) {\n\t\t\t\t\t\t\tOnlineObjectsContainer.this.recentlyRemovedObjects.add(anObject);\n\t\t\t\t\t\t\tOnlineObjectsContainer.this.recentlyAddedObjects.remove(anObject);\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void run() {\n message.synchronizedInstance();\n }",
"abstract protected void syncTuples() throws IOException;",
"@Override\n\tpublic void run() {\n\t\twhile(true){\n \tlock.lock();\n \ttry{\n\t \tif(observers.isEmpty()){\n\t \t\treturn;\n\t \t}\n \t}\n \tfinally{\n \t\tlock.unlock();\n \t}\n }\n\t}",
"@Override\n public void run() {\n syncToServer();\n }",
"public void acquire() {\r\n return;\r\n }",
"private void sync() throws Exception {\n final Synchronizer synchronizer = new Synchronizer();\n\n final long start = System.nanoTime();\n synchronizer.synchronize(caller, listener);\n final long stop = System.nanoTime();\n Duration syncDuration = Duration.ofNanos(stop - start);\n\n caller.drainReceivedEventQueue();\n listener.drainReceivedEventQueue();\n\n System.out.printf(\n \"Synced %d events in %d ms%n\",\n caller.getReceivedEvents().size() + listener.getReceivedEvents().size(), syncDuration.toMillis());\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\n\t\t\t}",
"public void sync(Runnable run) {\n lock.lock();\n try {\n run.run();\n } finally {\n lock.unlock();\n }\n }",
"public boolean isSynchronized()\n {\n ensureLoaded();\n return m_flags.isSynchronized();\n }",
"public void testConcurrency() throws InterruptedException {\n initCache();\n\n final ArrayList<WMSTile> wcos = new ArrayList<WMSTile>();\n final ArrayList<Integer> test = new ArrayList<Integer>();\n final LinkedBlockingQueue<Integer> idxs = new LinkedBlockingQueue<Integer>();\n\n Collection<Callable<Integer>> tasks = new ArrayList<Callable<Integer>>();\n\n for (int i = 0; i < 30000; i++) {\n wcos.add(getDefaultWMSCacheObject(\"q\" + i, 50, true));\n test.add(-1);\n idxs.put(i);\n\n //put and get task\n tasks.add(new Callable<Integer>() {\n\n public Integer call() throws Exception {\n //put\n int i = idxs.take();\n boolean ok = wmsCache.put(wcos.get(i).getQuery(), wcos.get(i).getColourmode(), PointType.POINT_1, wcos.get(i));\n\n //get\n if (ok) {\n WMSTile wco = wmsCache.get(wcos.get(i).getQuery(), wcos.get(i).getColourmode(), PointType.POINT_1);\n if (wco.getCached()) {\n if (compareWMSObjects(wco, wcos.get(i))) {\n test.set(i, 1);\n } else {\n test.set(i, 0);\n }\n }\n }\n return i;\n }\n });\n }\n ExecutorService executorService = Executors.newFixedThreadPool(100);\n executorService.invokeAll(tasks);\n\n //test cache cleaner operated correctly\n assertTrue(wmsCache.getSize() <= wmsCache.getMaxCacheSize());\n\n //test for presence of invalid test comparisons\n int invalid = 0;\n int valid = 0;\n for (int i = 0; i < test.size(); i++) {\n if (test.get(i) == 0) {\n invalid++;\n } else if (test.get(i) == 1) {\n valid++;\n }\n }\n assertTrue(valid > 0);\n assertTrue(invalid == 0);\n }",
"private SingletonThreadSafeExample(){\n this.invoke++;\n }",
"@Override\n\tpublic boolean allowMultithreading()\n\t{\n\t\treturn true;\n\t}",
"@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tboolean bok = checkMinPath();\n\t\t\t\t\t\t\tif (bok) {\n\t\t\t\t\t\t\t\tcanRun = true;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (exitWhenGetNotLock) {// 获取不到锁,直接不执行,return\n\t\t\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\tif (canRun) {\n\t\t\t\t\t\t\t\t\tboolean bok1 = checkMinPath();\n\t\t\t\t\t\t\t\t\tif (bok1) {// 获取所成功\n\t\t\t\t\t\t\t\t\t\tgetLockSuccess();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"同步等待...\");\n\t\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (KeeperException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}",
"public void sync()\n {\n byte[] blockData = new byte[Disk.blockSize];\n SysLib.int2bytes(totalBlocks, blockData, 0);\n SysLib.int2bytes(inodeBlocks, blockData, 4);\n SysLib.int2bytes(freeList, blockData, 8);\n SysLib.rawwrite(0, blockData);\n }",
"@Override\n public void run()\n {\n active = true;\n try\n {\n try\n {\n lock.acquire();\n }\n catch (InterruptedException e)\n {\n return;\n }\n guardedRun();\n }\n finally\n {\n lock.release();\n }\n }",
"@Override\r\n\t\tpublic void run() {\n\t\t\twhile(true) {\r\n\t\t\t\tsynchronized(a) {\r\n\t\t\t\t\twhile(!a.isEmpty()) {\r\n\t\t\t\t\t\ta.getFirst().cover();\r\n\t\t\t\t\t\ta.removeFirst();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tThread.sleep(2000);\r\n\t\t\t\t} catch (InterruptedException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}",
"public void Synchronize(){\n\t\tfor(int i=0; i<centers.size(); i++){\n\t\t\tHashSet<Integer> datasets = centers.get(i);\n\t\t\tfor(int j=0; j<centers.size(); j++){\n\t\t\t\tif(j!=i){\n\t\t\t\t\tHashSet<Integer> other = centers.get(j);\n\t\t\t\t\tfor (Iterator iterator = other.iterator(); iterator\n\t\t\t\t\t\t\t.hasNext();) {\n\t\t\t\t\t\tInteger data = (Integer) iterator.next();\n\t\t\t\t\t\tif(!datasets.contains(data)){\n\t\t\t\t\t\t\tSystem.out.println(data + \" \" + (j+1) + \" \" + (i+1));\n\t\t\t\t\t\t\tdatasets.add(data);\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(\"done\");\n\t}",
"private void workOnQueue() {\n }",
"public void RunSync() {\n\t\tInteger numThreads = Runtime.getRuntime().availableProcessors() + 1;\n\t\tExecutorService executor = Executors.newFixedThreadPool(numThreads);\n\t\tSystem.out.println(\"Num Threads: \" + numThreads.toString());\t\n\t\t\n\t\t// Set rate limits so sync will pause and avoid errors\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.SECONDS.toNanos(1), 100));\n\t\tRequestLimitManager.addLimit(new Limit(TimeUnit.HOURS.toNanos(1), 36000));\n\n\t\t// Initialize start time for request limits\n\t\tItemSync.initialize();\n\t\tItemSync.setMaxRecords(200000); // @todo Detect the end of valid IDs if possible\n\n\t\t// Add callable instance to list so they can be managed during execution phase\n\t\tArrayList<Callable<ItemSync>> tasks = new ArrayList<Callable<ItemSync>>();\n\t\tfor(int i = 0; i < numThreads; i++) {\n\t\t\ttasks.add(new ItemSync());\n\t\t}\n\n\n\t\t/**\n\t\t * EXECUTION STAGE: Start all sync threads, loop until all threads are finished.\n\t\t * Sleeps at end of check so we aren't hammering the CPU.\n\t\t */\n\t\ttry {\n\t\t\t// Start callables for every ItemSync instance\n\t\t\tList<Future<ItemSync>> futures = executor.invokeAll(tasks);\n\n\t\t\t// Main loop, checks state of thread (future)\n\t\t\tboolean loop = true;\n\t\t\twhile(loop) {\n\t\t\t\tloop = false;\n\t\t\t\tfor(Future<ItemSync> future : futures) {\n\t\t\t\t\tSystem.out.println(future.isDone());\n\t\t\t\t\tif(!future.isDone()) {\n\t\t\t\t\t\tloop = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Waiting...\");\n\t\t\t\tThread.sleep(TimeUnit.SECONDS.toMillis(1));\n\t\t\t}\n\t\t\t\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\n\t\t/**\n\t\t * CLEAN UP STAGE: Threads are done running, clean up\n\t\t */\n\t\tSystem.out.println(\"Shutting down threads\");\n\t\texecutor.shutdown();\n\t\twhile(!executor.isTerminated()) {\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"Finished\");\n\t}",
"protected final void lockRead() {\n m_lock.readLock().lock();\n }",
"private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }",
"@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}",
"@Override\r\n\tpublic void run() {\n\t\tint i=0;\r\n\t\twhile(i<1000) {\r\n\t\t\tq.put(i++);\r\n\t\t}\r\n\t}",
"void syncGroup();",
"public void run() {\n int i = 0;\n try {\n while (!isConnected()) {\n Thread.sleep(100);\n }\n } catch (InterruptedException ex) {\n Thread.dumpStack();\n }\n\n while (true) {\n try {\n if (i % 20 == 0) {\n // System.out.println(\"Mapper.run() :: 1\");\n reDistributeMyKeys(); //runs less than once in 5sec\n }\n if (i % 10 == 0) {\n //System.out.println(\"Mapper.run() :: 2\");\n reDistributeKeys(); //runs less than 0,75 per second\n }\n if (i % 5 == 0) {\n //System.out.println(\"Mapper.run() :: 3\");\n distributeKeys(); //runs less than 4 times a second\n }\n if (i % 20 == 0) {\n //System.out.println(\"Mapper.run() :: 4\");\n checkAlive();//runs less than once in 5ssec\n }\n if (i % 100 == 0) { //runs less than once in 25sec sees updates in directory files\n //System.out.println(\"Mapper.run() :: 5\");\n FileApp.changeDirectrory(FileApp.getDirectory());\n }\n\n i++;\n\n Thread.sleep(250);\n } catch (InterruptedException ex) {\n System.err.println(\"Mapper.run(): Interrupted exception\");\n Thread.dumpStack();\n } catch (Exception e) {\n System.err.println(\"Mapper.run() threw exception \" + e.getClass());\n e.printStackTrace();\n }\n\n\n }//while(true)\n\n }",
"private synchronized void incrementCount()\n\t{\n\t\tcount++;\n\t}",
"SyncObject(int numThreads)\n {\n this.numThreads = numThreads;\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tsynchronized (OnlineObjectsContainer.this.onlineObjects) {\n\t\t\t\t\tIterator<OnlineObject> iterator = OnlineObjectsContainer.this.recentlyAddedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\titerator = OnlineObjectsContainer.this.recentlyRemovedObjects.iterator();\n\t\t\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\t\tfinal OnlineObject anObject = iterator.next();\n\t\t\t\t\t\tif (anObject.getSeenAt().getTime() + OnlineObjectsContainer.RECENT_TIMEOUT < System.currentTimeMillis()) {\n\t\t\t\t\t\t\titerator.remove();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"T sync() throws IOException, ChallongeException;",
"private synchronized void flushCache() {\n /*\n r6 = this;\n monitor-enter(r6)\n r0 = 0\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n boolean r1 = r1.isEmpty() // Catch:{ all -> 0x005a }\n if (r1 == 0) goto L_0x000c\n monitor-exit(r6)\n return\n L_0x000c:\n r1 = 4\n if (r0 >= r1) goto L_0x0058\n int r1 = r6.cdS // Catch:{ all -> 0x005a }\n r2 = 64\n if (r1 > r2) goto L_0x001e\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r1 = (long) r1 // Catch:{ all -> 0x005a }\n long r3 = r6.cdV // Catch:{ all -> 0x005a }\n int r1 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1))\n if (r1 <= 0) goto L_0x0058\n L_0x001e:\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n java.util.Set r1 = r1.entrySet() // Catch:{ all -> 0x005a }\n java.util.Iterator r1 = r1.iterator() // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.next() // Catch:{ all -> 0x005a }\n java.util.Map$Entry r1 = (java.util.Map.Entry) r1 // Catch:{ all -> 0x005a }\n java.io.File r2 = new java.io.File // Catch:{ all -> 0x005a }\n java.lang.Object r3 = r1.getValue() // Catch:{ all -> 0x005a }\n java.lang.String r3 = (java.lang.String) r3 // Catch:{ all -> 0x005a }\n r2.<init>(r3) // Catch:{ all -> 0x005a }\n long r2 = r2.length() // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r4 = r6.cdY // Catch:{ all -> 0x005a }\n java.lang.Object r1 = r1.getKey() // Catch:{ all -> 0x005a }\n r4.remove(r1) // Catch:{ all -> 0x005a }\n java.util.Map<java.lang.String, java.lang.String> r1 = r6.cdY // Catch:{ all -> 0x005a }\n int r1 = r1.size() // Catch:{ all -> 0x005a }\n r6.cdS = r1 // Catch:{ all -> 0x005a }\n int r1 = r6.cdT // Catch:{ all -> 0x005a }\n long r4 = (long) r1 // Catch:{ all -> 0x005a }\n long r4 = r4 - r2\n int r1 = (int) r4 // Catch:{ all -> 0x005a }\n r6.cdT = r1 // Catch:{ all -> 0x005a }\n int r0 = r0 + 1\n goto L_0x000c\n L_0x0058:\n monitor-exit(r6)\n return\n L_0x005a:\n r0 = move-exception\n monitor-exit(r6)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.introvd.template.common.bitmapfun.util.DiskLruCache.flushCache():void\");\n }",
"private synchronized void syncData() {\n try {\n // pulling data from server\n pullData();\n\n // pushing local changes to server\n// recordStatus=2\n pushData();\n// recordStatus=1\n// pushData1();\n } catch (Throwable throwable) {\n Log.d(TAG, \"doWork: \" + throwable.getMessage());\n }\n // Toast.makeText(getApplicationContext(), \".\", Toast.LENGTH_SHORT).show();\n }",
"private SyncState() {}",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean tryLock() {\n\t\treturn false;\n\t}"
] | [
"0.72421104",
"0.6999782",
"0.67506534",
"0.6646443",
"0.6515706",
"0.6345236",
"0.62554467",
"0.61064506",
"0.6096856",
"0.60748994",
"0.6060692",
"0.60446596",
"0.60227007",
"0.6015972",
"0.5980698",
"0.5968138",
"0.596499",
"0.5935962",
"0.59232354",
"0.5914658",
"0.5912878",
"0.591139",
"0.5910153",
"0.588725",
"0.5882102",
"0.58420146",
"0.58420146",
"0.58420146",
"0.58220106",
"0.5797099",
"0.57718587",
"0.5765673",
"0.5740618",
"0.5733",
"0.57307935",
"0.5722817",
"0.57207227",
"0.57173556",
"0.5700103",
"0.56999445",
"0.5696268",
"0.5688597",
"0.5682181",
"0.56801003",
"0.56801003",
"0.56697106",
"0.56679887",
"0.56674296",
"0.56609315",
"0.5653576",
"0.5642755",
"0.56280994",
"0.5626951",
"0.5620785",
"0.56186706",
"0.56161785",
"0.5615643",
"0.56047976",
"0.558883",
"0.55865514",
"0.5577476",
"0.5574285",
"0.55630434",
"0.556209",
"0.5544722",
"0.55257833",
"0.5517293",
"0.55140555",
"0.55066794",
"0.54779166",
"0.547678",
"0.5468857",
"0.54557174",
"0.5453299",
"0.54532355",
"0.545256",
"0.545084",
"0.5446307",
"0.5443257",
"0.5443257",
"0.5440028",
"0.54398376",
"0.54284936",
"0.54205257",
"0.5397678",
"0.5397196",
"0.5395727",
"0.5395434",
"0.5387804",
"0.53856146",
"0.53819185",
"0.5377882",
"0.5376884",
"0.5375983",
"0.5373978",
"0.53739065",
"0.5372275",
"0.53710335",
"0.5366896",
"0.5366484",
"0.5366484"
] | 0.0 | -1 |
Registers a user to be available to updates by adding the user to the ActiveUsers list. | public void addActiveUser(Socket socket) {
if (!activeClients.contains(socket))
activeClients.add(socket);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void register(User user) {\n\t\tboolean exists = false ;\n\t\tfor ( User currentUser : users )\n\t\t\tif ( currentUser.getId().equals(user.getId()) )\n\t\t\t\texists = true ;\n\t\tif ( !exists ) {\n\t\t\taddUser(user) ;\n\t\t\tSystem.out.println(\"[USER CREATED]\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"[INVALID ACTION] User Already Exists\") ;\n\t\t\tSystem.out.println() ;\n\t\t}\n\t}",
"void registerUser(User newUser);",
"public void newUser(User user) {\n users.add(user);\n }",
"@Override\n\tpublic void regist(User user) {\n\t\tdao.addUser(user);\n\t}",
"public void addUser() {\n\t\tthis.users++;\n\t}",
"private void register_user() {\n\n\t\tHttpRegister post = new HttpRegister();\n\t\tpost.execute(Config.URL + \"/api/newuser\");\n\n\t}",
"public void addUser(User user){\r\n users.add(user);\r\n }",
"@Override\r\n\tpublic int register(User user) {\n\t\treturn dao.addUser(user);\r\n\t}",
"public void addUser(User user) {\n\t\t\r\n\t}",
"public void addUser() {\n\t\tUser user = dataManager.findCurrentUser();\r\n\t\tif (user != null) {\r\n\t\t\tframeManager.addUser(user);\r\n\t\t\tpesquisar();\r\n\t\t} else {\r\n\t\t\tAlertUtils.alertSemPrivelegio();\r\n\t\t}\r\n\t}",
"public void addUser(User user) {\n\t\tuserList.addUser(user);\n\t}",
"@Override\n\tpublic void addNewUser(User user) {\n\t\tusersHashtable.put(user.getAccount(),user);\n\t}",
"public void registerUser(User newUser) {\r\n userRepo.save(newUser);\r\n }",
"public void register() {\n int index = requestFromList(getUserTypes(), true);\n if (index == -1) {\n guestPresenter.returnToMainMenu();\n return;\n }\n UserManager.UserType type;\n if (index == 0) {\n type = UserManager.UserType.ATTENDEE;\n } else if (index == 1) {\n type = UserManager.UserType.ORGANIZER;\n } else {\n type = UserManager.UserType.SPEAKER;\n }\n String name = requestString(\"name\");\n char[] password = requestString(\"password\").toCharArray();\n boolean vip = false;\n if(type == UserManager.UserType.ATTENDEE) {\n vip = requestBoolean(\"vip\");\n }\n List<Object> list = guestManager.register(type, name, password, vip);\n int id = (int)list.get(0);\n updater.addCredentials((byte[])list.get(1), (byte[])list.get(2));\n updater.addUser(id, type, name, vip);\n guestPresenter.printSuccessRegistration(id);\n }",
"private void registerUser()\n {\n /*AuthService.createAccount takes a Consumer<Boolean> where the result will be true if the user successfully logged in, or false otherwise*/\n authService.createAccount(entryService.extractText(namedFields), result -> {\n if (result.isEmpty()) {\n startActivity(new Intent(this, DashboardActivity.class));\n } else {\n makeToast(result);\n formContainer.setAlpha(1f);\n progressContainer.setVisibility(View.GONE);\n progressContainer.setOnClickListener(null);\n }\n });\n }",
"public void registerUser(User user) throws UserManagementException;",
"public void activateUser(User user) {\n activeUsers.putIfAbsent(user.getUsername(), user);\n }",
"public void addUser(TIdentifiable user) {\r\n\t // make sure that the user doesn't exists already\r\n\t if (userExists(user)) return;\r\n\t \r\n\t // check to see if we need to expand the array:\r\n\t if (m_current_users_count == m_current_max_users) expandTable(2, 1);\t \r\n\t m_users.addID(user);\r\n\t m_current_users_count++;\r\n }",
"@Override\n\tpublic void register(User user) {\n\t\tuserDao.register(user);\n\t}",
"@Override\n\tpublic boolean registerUtente(Utente user) {\n\t\tif(!userExists(user)) {\n\t\t\tDB db = getDB();\n\t\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\t\tlong hash = (long) user.getUsername().hashCode();\n\t\t\tusers.put(hash, user);\n\t\t\tdb.commit();\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\t\n\t}",
"public void addUser() {\r\n PutItemRequest request = new PutItemRequest().withTableName(\"IST440Users\").withReturnConsumedCapacity(\"TOTAL\");\r\n PutItemResult response = client.putItem(request);\r\n }",
"@Override\n public void registerUser(User user) {\n userDAO.createUser(user);\n }",
"public void addUser(User user) {\n \t\tuser.setId(userCounterIdCounter);\n \t\tusers.add(user);\n \t\tuserCounterIdCounter++;\n \t}",
"@Override\n\tpublic void addUser(User user) {\n\t\tuserMapper.addUser(user);\n\t}",
"private void registerUser() {\n\n // Get register name\n EditText mRegisterNameField = (EditText) findViewById(R.id.register_name_field);\n String nickname = mRegisterNameField.getText().toString();\n\n // Get register email\n EditText mRegisterEmailField = (EditText) findViewById(R.id.register_email_field);\n String email = mRegisterEmailField.getText().toString();\n\n // Get register password\n EditText mRegisterPasswordField = (EditText) findViewById(R.id.register_password_field);\n String password = mRegisterPasswordField.getText().toString();\n\n AccountCredentials credentials = new AccountCredentials(email, password);\n credentials.setNickname(nickname);\n\n if (DataHolder.getInstance().isAnonymous()) {\n credentials.setOldUsername(DataHolder.getInstance().getUser().getUsername());\n }\n\n sendRegistrationRequest(credentials);\n }",
"@Override\n\tpublic void addUser(User user) {\n mapper.addUser(user);\n\t}",
"public void addUser(User user) {\n\t\tuserMapper.insert(user);\n\n\t}",
"@Override\n\tpublic User addUser(User user) {\n\t\treturn userDatabase.put(user.getEmail(), user);\n\t}",
"public void addUser(User user) {\n\t\tSystem.out.println(\"adding user :\"+user.toString());\n\t\tuserList.add(user);\n\t}",
"@Override\r\n\tpublic boolean add(User u) {\r\n\t\treturn executeAndIsModified(INSERT_INTO_USERS, u.getTax_code(),\r\n\t\t\t\tu.getName(),\r\n\t\t\t\tu.getSurname(),\r\n\t\t\t\tu.getPhone(),\r\n\t\t\t\tu.getAddress(),\r\n\t\t\t\tu.getEmail(),\r\n\t\t\t\tu.getPassword(),\r\n\t\t\t\tu.getRole());\r\n\r\n\t}",
"public void add(User user) {\r\n this.UserList.add(user);\r\n }",
"@Override\n\tpublic void addUser(ERSUser user) {\n\t\tuserDao.insertUser(user);\n\t}",
"public void addUser(User user) {\n\t\tif(!users.containsKey(user.id)) {\n\t\t\tusers.put(user.id, user);\n\t\t}\n\t}",
"Boolean registerNewUser(User user);",
"@Override\r\n\tpublic int addUser(User user) {\n\t\treturn userMapper.addUser(user);\r\n\t}",
"public void addUser(User user);",
"public void addUser(User user) {\n if (this.users == null) {\n this.users = new ArrayList<>();\n }\n this.users.add(user);\n }",
"@Override\n public boolean addUser(User user) {\n return controller.addUser(user);\n }",
"@Override\n\tpublic void registerUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}",
"public void addUser(User user) {\n users.put(user.getUsername(), user);\n persistenceFacade.addUser(user);\n }",
"@Override\n\tpublic void addUser(User user) {\n\t\tiUserDao.addUser(user);\n\t}",
"public void registerNewUser(final FirebaseFirestore db, final User user) {\n FirebaseUser FbUser = FirebaseAuth.getInstance().getCurrentUser();\n if (FbUser != null) {\n UserProfileChangeRequest request = new UserProfileChangeRequest.Builder()\n .setDisplayName(user.getName())\n .build();\n FbUser.updateProfile(request);\n }\n\n final DatabaseHelper localDB = new DatabaseHelper(getApplicationContext());\n db.collection(collection)\n .document(user.getEmail())\n .set(user)\n .addOnSuccessListener(avoid -> {\n Toast.makeText(getApplicationContext(), \"Registered\", Toast.LENGTH_SHORT).show();\n\n // Send to cache (local db)\n addToCache(user, localDB);\n\n // Send intent to dashboard\n Intent goToDashboard = new Intent(SignupActivity.this, Dashboard.class);\n Bundle myBundle = new Bundle();\n myBundle.putString(\"email\", user.getEmail());\n// myBundle.putString(\"name\", user.getName());\n// myBundle.putString(\"maxIncome\", String.valueOf(user.getMaxIncome()));\n myBundle.putBoolean(\"coming_from_login_signup\", true);\n goToDashboard.putExtras(myBundle);\n startActivity(goToDashboard);\n })\n .addOnFailureListener(e -> snackbar.showStatus(\"Not Registered\"));\n }",
"public void addUser(User user) {\n\t\tuserDao.addUser(user);\r\n\r\n\t}",
"public void addUser(UserModel user);",
"public void add(User user) {\n\t\tmapper.add(user);\n\t}",
"@Override\n\tpublic void setUser(User user) {\n\t\tusersHashtable.put(user.getAccount(), user);\n\t}",
"private void registerUserOnServer() throws IOException {\r\n\t\tdataSending.sendMessage(Server.REGISTER+\" \"+userName, Long.toString(userModel.ID));\r\n\t}",
"public void addUserBtn(){\n\t\t\n\t\t// TODO: ERROR CHECK\n\t\t\n\t\tUserEntry user = new UserEntry(nameTF.getText(), (String)usertypeCB.getValue(), emailTF.getText());\n\t\tAdminController.userEntryList.add(user);\n\t\t\n\t\t\n\t\t// Create a UserEntry and add it to the observable list\n\t\tAdminController.userList.add(user);\t\t\n\t\t\n\t //AdminController.adminTV.setItems(AdminController.userList);\n\t\t\n\t\t//Close current stage\n\t\tAdminController.addUserStage.close();\n\t\t\n\t}",
"User update(User userToUpdate, RegisterRequest registerRequest);",
"public void add(User user) {\n\t\tuserDao.add(user);\n\t}",
"void addUser(User user);",
"void addUser(User user);",
"@Override\r\n\tpublic void add(User1 user) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\tsession.save(user);\r\n\t}",
"@Override\r\n\tpublic void add(User user) {\n\r\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public long registerUserProfile(User user);",
"public void updateUser(User user) {\n\t\t\r\n\t}",
"public boolean addUser(User user) {\n if (!registeredUsers.containsKey(user.getUsername())) {\n registeredUsers.put(user.getUsername(), user);\n return true;\n }\n return false;\n }",
"public void addUser(User user){\n loginDAO.saveUser(user.getId(),user.getName(),user.getPassword());\n }",
"public void addUser(User user)\n\t{\n\t\tUser newUser = addNewUser(user.getEntity());\n\t\tnewUser.setDisplayText(user.getDisplayText());\n\t\tnewUser.setState(user.getState());\n\t\tfor (Endpoint endpoint : user.getEndpoints())\n\t\t\tnewUser.addEndpoint(endpoint);\n\t}",
"@Override\n public boolean register(UserDTO user) throws WrongUserDatabase, UserDatabaseNotFoundException, UserExistsException {\n userRepository.addUser(user);\n return true;\n }",
"@Override\n\tpublic boolean userRegister(User user) {\n\t\tif(userDao.insertUser(user)<=0)\n\t\t return false;\n\t\telse\n\t\t\treturn true;\n\t}",
"public void addUser(User user) {\n\t\tuserDao.insert(user);\n\t}",
"@Override\n\tpublic int AddUser(UserBean userbean) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic User addUser(User user) {\n\t\treturn userReposotory.save(user);\r\n\t}",
"@RequestMapping(value=\"/user\", method = RequestMethod.POST) \n\tpublic void saveUser(@RequestBody Users user) {\n\t\tlogger.debug(\"Add a new user: {}\", user.getUsername());\n\t\tauthService.saveUser(user);\n\t}",
"public void registerUser(User1 u1) {\n\t\tSession session = sf.openSession();\n\t\tTransaction tx = session.beginTransaction();\t\t\n\t\t\n \tsession.save(u1);\t\t\n \t \n \ttx.commit();\n \tsession.close();\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static Call<User> register(User user){\n return ApiConfig.getService().createUser(user);\n }",
"ResponseMessage addUser(User user);",
"private void registerUser(HttpServletRequest request, HttpServletResponse response){\n String firstName = request.getParameter(\"firstName\");\n String lastName = request.getParameter(\"lastName\");\n String address = request.getParameter(\"address\");\n String email = request.getParameter(\"email\");\n String shipAddress = request.getParameter(\"shipAddress\");\n int role = Integer.parseInt(request.getParameter(\"role\"));\n User user = new User(firstName,lastName,address,email,shipAddress,role);\n userServices.addUser(user);\n try {\n request.getRequestDispatcher(\"/home\").forward(request,response);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@PostMapping(path = \"register_user\")\n public String registerUser(User newUser){\n for(User user:users) {\n if (user.getEmailId().equals(newUser.getEmailId())) {\n return \"user_exists\";\n }\n }\n users.add(newUser);\n return \"register_success\";\n }",
"private void register(UserAuthenticationMessage uaMessage) {\n\t\tinitialize();\n\t\tUser newUser = uaMessage.getUser();\n\t\tHashMap<String, Boolean> dbInfo = DatabaseRequests.registerNewUser(newUser);\n\t\tcreateRegistrationAnswer(dbInfo.get(MIDs.EMAIL_EXISTS), dbInfo.get(MIDs.USER_EXISTS), dbInfo.get(MIDs.AUTHENTICATE));\n\t}",
"@Override\n\tpublic int addUser(TbUser user) {\n\t\treturn new userDaoImpl().addUser(user);\n\t}",
"public void saveUsers(@ModelAttribute(\"users\") Users user) {\n\t\t\r\n\t\tusersService.saveUsers(user);\r\n\t\t\r\n\t}",
"@Transactional\r\n\tpublic void saveRegisteredUser(Tswacct tswacct, Users users) {\n\t\tsaveUsers(tswacct, users, users.getCustomer().getCustomerId());\r\n\t\t\r\n\t}",
"public void register(UserRegistration userRegistration){\n User userToSave = UserMapper.map(userRegistration);\n// metoda do szyfrowania będzie wykorzystana w aktualnej metodzie register(),\n hashPasswordWithSha256(userToSave);\n userDao.save(userToSave);\n }",
"@Override\n\tpublic int addUser(User user) {\n\t\treturn userDao.addUser(user);\n\t}",
"public void addUser(User user) {\n users.add(new User(user.getUsername(), Hash.md5(user.getPassword())));\n // Naively dump the whole users list to file\n reader.dumpToFile(users);\n }",
"public User addUser(User user) {\n allUsers.add(user);\n allUserNames.add(user.getUserName());\n allPasswords.add(user.getPassword());\n allEmails.add(user.getEmail());\n return user;\n }",
"public void Register() {\n Url url = new Url();\n User user = new User(fname.getText().toString(), lname.getText().toString(), username.getText().toString(), password.getText().toString());\n Call<Void> registerUser = url.createInstanceofRetrofit().addNewUser(user);\n registerUser.enqueue(new Callback<Void>() {\n @Override\n public void onResponse(Call<Void> call, Response<Void> response) {\n Toast.makeText(getActivity(), \"User Registered successfully\", Toast.LENGTH_SHORT).show();\n }\n\n @Override\n public void onFailure(Call<Void> call, Throwable t) {\n Toast.makeText(getActivity(), \"Error\" + t, Toast.LENGTH_SHORT).show();\n }\n });\n }",
"@Override\n\tpublic void addItem(User entity) {\n\t\tuserRepository.save(entity);\n\t\t\n\t}",
"private boolean addUser(User user) {\r\n\t\tthis.storer.storeUser(user);\r\n\t\tmapping.put(user.getUsername(), user);\r\n\t\treturn true;\r\n\t}",
"public void addUser(User user) {\n\t\tet.begin();\n\t\tem.persist(user);\n\t\tet.commit();\n\t}",
"public void addUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk addUser\");\r\n\t}",
"@Override\r\n\tpublic boolean addNewUser(User user) {\n\t\treturn false;\r\n\t}",
"public void addUser(User u){\n\r\n userRef.child(u.getUuid()).setValue(u);\r\n\r\n DatabaseReference zipUserReference;\r\n DatabaseReference zipNotifTokenReference;\r\n List<String> zipList = u.getZipCodes();\r\n\r\n for (String zipCode : zipList) {\r\n zipUserReference = baseRef.child(zipCode).child(ZIPCODE_USERID_REFERENCE_LIST);\r\n // Add uuid to zipcode user list\r\n zipUserReference.child(u.getUuid()).setValue(u.getUuid());\r\n\r\n // Add notifToken to list\r\n zipNotifTokenReference = baseRef.child(zipCode).child(ZIPCODE_NOTIFICATION_TOKENS_LIST);\r\n zipNotifTokenReference.child(u.getNotificationToken()).setValue(u.getNotificationToken());\r\n\r\n }\r\n }",
"public void register(User user) {\n\n\t\ttry {\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tString sql = \"insert into user_info(user_name,user_password,user_email,user_address) values(?,?,?,?)\";\n\t\t\tpst = con.prepareStatement(sql);\n\t\t\tpst.setString(1, user.getName());\n\t\t\tpst.setString(2, user.getPassword());\n\t\t\tpst.setString(3, user.getEmail());\n\t\t\tpst.setString(4, user.getAddress());\n\n\t\t\tpst.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\tConnectionUtil.close(con, pst);\n\t\t}\n\t}",
"public void addUser(String userRoomInfo, User user){\n\t\tLog.v(\"SpaceController\", \"addUser()\");\n\t\tspace.getAllNicksnames().put(user.getNickname(), user);\n\t\tspace.getAllParticipants().put(user.getUsername(), user);\n\t\tspace.getAllOccupants().put(user.getUsername(), muc.getOccupant(userRoomInfo)); \n\t\tint x = Values.staggeredAddStart + space.getAllParticipants().size()*(Values.userIconW/5);\n\t\tint y = Values.staggeredAddStart + space.getAllParticipants().size()*(Values.userIconH/5);\n\t\tUserView uv = new UserView(view.getContext(), user, user.getImage(), space, x, y);\n\t\tspace.getAllIcons().add(uv);\n\t\t\n\t\t\n\t\t/* If you are currently in this space then refresh the \n\t\t * the spaceview ui\n\t\t */\n\t\tif(space == MainApplication.screen.getSpace()){\n\t\t\tLog.v(\"SpaceController\", \"adding user to spaceView\");\n\t\t\tview.getActivity().invalidateSpaceView();\n\t\t\t\n\t\t}\n\n\t\tif(space != Space.getMainSpace())\n\t\t\tview.getActivity().invalidatePSIconView(psiv);\n\t\tview.getActivity().launchNotificationView(user, \"adduser\");\n\t}",
"@POST\n @Path( \"/\" )\n @Consumes( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )\n @Produces( { MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML } )\n public String addUpdateUser( User user ){\n if( user.getId() == null ){\n System.out.println( \"adding user \" + user );\n api.addUser( user );\n }else{\n System.out.println( \"updating user \" + user );\n api.updateUser( user.getId(), user );\n }\n return user.getId();\n }",
"@Override\n\tpublic boolean register(User user) {\n\t\tboolean flag = false;\n\t\tList<User> list = this.userDao.findAll(\"and userName = ?\", user.getUserName());\n\t\t//System.out.println(list.size());\n\t\tif(list.size() <= 0){\n\t\t\tthis.userDao.register(user);\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}",
"public synchronized void putUser(User user) {\r\n try {\r\n user.setLastMod(Tstamp.makeTimestamp());\r\n String xmlUser = this.makeUser(user);\r\n String xmlRef = this.makeUserRefString(user);\r\n this.updateCache(user, xmlUser, xmlRef);\r\n this.dbManager.storeUser(user, xmlUser, xmlRef);\r\n }\r\n catch (Exception e) {\r\n server.getLogger().warning(\"Failed to put User\" + StackTrace.toString(e));\r\n }\r\n }",
"public void addUser(final User user)\n throws UserAlreadyExistsException {\n\n if (userStore.get(user.getId()) != null) {\n throw new UserAlreadyExistsException();\n }\n\n userStore.add(user);\n\n }",
"public void register(AbstractVisitor user) {\n users.add(user);\n user.setChatroom(this);\n user.receive(\"Thank you \" + user.getName() + \" for registering with this chatroom!\");\n }",
"@Override public void registerNewUser(String username, String password)\r\n throws RemoteException, SQLException {\r\n gameListClientModel.registerNewUser(username, password);\r\n }",
"public static void writeNewUser(User user) {\n DatabaseReference usersRef = FirebaseDatabase.getInstance().getReference();\n FirebaseAuth mAuth = FirebaseAuth.getInstance();\n usersRef.child(\"users\").child(mAuth.getUid()).setValue(user);\n }",
"@Override\n public void addUser(User u) {\n Session session = this.sessionFactory.getCurrentSession();\n session.persist(u);\n logger.info(\"User saved successfully, User Details=\"+u);\n }",
"void updateUser(@Nonnull User user);",
"@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}",
"public void addSubscriber(User user) {\n subscribers.add(user);\n }",
"@Override\n\tpublic boolean update(User user) {\n\t\tif (user == null) {\n\t\t\treturn false;\n\t\t}\n\t\tif (get(user.getId()) != null) {\n\t\t\tuserList.add(user);\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void addUser(User tmpUser, User user) {\n\t\t\n\t}"
] | [
"0.7163303",
"0.6941543",
"0.68976504",
"0.6847833",
"0.6802976",
"0.67935634",
"0.67932326",
"0.67786455",
"0.6747026",
"0.67464125",
"0.67142713",
"0.6704769",
"0.6664197",
"0.66505164",
"0.6646271",
"0.66227955",
"0.65923584",
"0.65854686",
"0.6526999",
"0.65259296",
"0.652217",
"0.65179855",
"0.6474364",
"0.64733744",
"0.6462489",
"0.64472425",
"0.64395225",
"0.6408018",
"0.64049834",
"0.6396671",
"0.6371297",
"0.6356525",
"0.63296187",
"0.6324235",
"0.63219863",
"0.6316543",
"0.63098544",
"0.6301141",
"0.6285629",
"0.62764335",
"0.62715405",
"0.6271488",
"0.62563384",
"0.6254939",
"0.62253594",
"0.62028193",
"0.6202616",
"0.61886525",
"0.61792576",
"0.6176109",
"0.6168574",
"0.6168574",
"0.61606485",
"0.61550194",
"0.6151224",
"0.6144447",
"0.6137865",
"0.6128532",
"0.6109356",
"0.61077756",
"0.6106843",
"0.6100013",
"0.609894",
"0.6098807",
"0.6093466",
"0.6069743",
"0.6061961",
"0.60605973",
"0.6044531",
"0.602968",
"0.6029265",
"0.6025391",
"0.6013029",
"0.6006876",
"0.60054404",
"0.6002168",
"0.5967273",
"0.59619623",
"0.59616876",
"0.595419",
"0.59517825",
"0.5942172",
"0.5939978",
"0.5938508",
"0.5930111",
"0.5929312",
"0.5927344",
"0.59250534",
"0.59239924",
"0.59236336",
"0.59166944",
"0.591615",
"0.5913438",
"0.5912691",
"0.59087235",
"0.5907133",
"0.5901844",
"0.589659",
"0.58887327",
"0.5885416",
"0.5880639"
] | 0.0 | -1 |
Updates all users of changes to the document model. | public void updateActiveUsers() {
if (commandsQueue.isEmpty()) {
String currentDoc = this.toString();
for (Socket socket : activeClients) {
if (!socket.isClosed())
Server.outs.get(socket).println(id + "A" + currentDoc);
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }",
"private void updateUserDoc(){\n FirebaseFirestore db = FirebaseFirestore.getInstance();\n\n Map<String, Object> userData = new HashMap<>();\n userData.put(\"name\", FieldValue.delete());\n userData.put(\"updated\", new Timestamp(new Date()));\n\n db.collection(\"users\")\n .document(mUser.getUid())\n .set(userData, SetOptions.merge())\n .addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Log.d(LOG_TAG, \"Document successfully written.\");\n\n // Proceed to the main activity\n Intent intent = new Intent(LoginActivity.this, MainActivity.class);\n startActivity(intent);\n }\n })\n .addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Log.e(LOG_TAG, \"Error writing document.\", e);\n Toast.makeText(LoginActivity.this, \"Database Error\", Toast.LENGTH_SHORT)\n .show();\n\n setVisibleView(SignInView.SIGN_IN); // Show the Sign In Button\n }\n });\n }",
"public void updateUserLists()\n\t{\n\t\tfor (CIntentionCell cell : cells.values())\n\t\t{\n\t\t\tcell.updateUserList();\n\t\t}\n\t}",
"@Update\n void update(UsersEntity usersEntity);",
"public void updateUser() {\r\n users.clear();\r\n RestaurantHelper.getCollectionFromARestaurant(currentRest.getPlaceId(), \"luncherId\").addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n for (DocumentSnapshot docSnap : task.getResult()) {\r\n UserHelper.getUser(docSnap.getId()).addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if(!task.getResult().getId().equals(currentUser.getUid())){\r\n users.add(task.getResult().toObject(User.class));\r\n mCoworkerAdapter.notifyDataSetChanged();\r\n }\r\n }\r\n });\r\n }\r\n }\r\n }).addOnFailureListener(this.onFailureListener());\r\n }",
"@Override\n\tpublic void update(ERS_USERS entity) {\n\t\t\n\t}",
"public void update(User user);",
"public void update(User obj) {\n\t\t\n\t}",
"@Override\r\n\tpublic int updateUser(Users user) {\n\t\treturn 0;\r\n\t}",
"public String update() {\r\n\t\tuserService.update(userEdit);\r\n\t\tusers.setWrappedData(userService.list());\r\n\t\treturn \"update\";\r\n\t}",
"private void realTimeUpdate(){\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.addSnapshotListener(new EventListener<DocumentSnapshot>() {\r\n @Override\r\n public void onEvent(@Nullable DocumentSnapshot documentSnapshot, @Nullable FirebaseFirestoreException e) {\r\n if (e != null){\r\n Toast.makeText(Testing.this, \"Error: \" + e.toString(), Toast.LENGTH_LONG).show();\r\n return;\r\n }else if (documentSnapshot != null && documentSnapshot.exists()) {\r\n Toast.makeText(Testing.this, \"Current data:\" + documentSnapshot.getData(), Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n });\r\n }",
"@Override\n\tpublic void updateUser(User user)\n\t{\n\n\t}",
"@Override\n\tpublic void update(User objetc) {\n\t\tuserDao.update(objetc);\n\t}",
"protected void refreshAllUsers() {}",
"public void updateUser(User oldUser, User newUser) ;",
"void update(User user);",
"void update(User user);",
"public void updateUser(User user) {\n\t\t\r\n\t}",
"public void update(User u) {\n\r\n\t}",
"@Override\n\tpublic void updateUser(user theUser) {\n\t}",
"@Override\n\tpublic void updateUser(User pUser) {\n\t\t\n\t}",
"@Override\r\n\tpublic boolean updateUsers(Users u) {\n\t\treturn rp.updateUsers(u);\r\n\t}",
"public void updateUser(Person user) {\n\t\t\n\t}",
"@Override\n\tpublic Users updateUser(Users users) {\n\t\treturn iUserDao.updateUser(users);\n\t}",
"public void updateMultipleRecord(){\n MongoCollection<Document> table = db.getCollection(\"user\");\n Document document = new Document();\n document.put(\"userName\", \"FreeUser\");\n document.put(\"status\", true);\n\n Document updateDocument=new Document(\"$set\", document);\n\n\n table.updateMany(eq(\"userType\", \"Free\"), updateDocument);\n }",
"@VisibleForTesting\n void updateUsers(List<String> userUnids) {\n final String METHOD = \"updateUsers\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n NotesView serverAccessView = null;\n try {\n String userSelectionFormula = connectorSession.getUserSelectionFormula();\n String userNameFormula = connectorSession.getUserNameFormula();\n LOGGER.log(Level.FINEST,\n \"User selection formula is: {0}\\nUser name formula is: {1}\",\n new Object[] { userSelectionFormula, userNameFormula });\n serverAccessView = directoryDatabase.getView(\n NCCONST.DIRVIEW_SERVERACCESS);\n serverAccessView.refresh();\n\n int count = 0;\n for (String unid : userUnids) {\n NotesDocument personDoc = getDocumentByUnid(directoryDatabase, unid);\n if (personDoc == null) {\n LOGGER.log(Level.FINEST, \"Person document [{0}] is not found\", unid);\n } else {\n String notesName = null;\n try {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n if (!personDoc.getItemValueString(NCCONST.ITMFORM).contentEquals(\n NCCONST.DIRFORM_PERSON)) {\n continue;\n }\n // The first value in this field is the Notes name; other\n // names may be present.\n Vector nameVector = personDoc.getItemValue(NCCONST.PITM_FULLNAME);\n if (nameVector.size() == 0) {\n continue;\n }\n String storedName = nameVector.firstElement().toString();\n notesName = notesSession.createName(storedName)\n .getCanonical().toLowerCase();\n LOGGER.log(Level.FINEST,\n \"Processing user: {0}; name from directory was: {1}\",\n new Object[] { notesName, storedName});\n // Get their PVI\n String pvi = evaluatePvi(userNameFormula, personDoc);\n if (0 == pvi.length()) {\n LOGGER.log(Level.WARNING,\n \"Could not evaluate PVI username for: {0}\", notesName);\n continue;\n }\n LOGGER.log(Level.FINEST, \"PVI: {0}\", pvi);\n // Does this person match the selection formula?\n boolean selected = checkPersonSelectionFormula(userSelectionFormula,\n personDoc);\n if (!selected) {\n LOGGER.log(Level.FINEST, \"User not selected: {0}\", notesName);\n continue;\n }\n updateUser(personDoc, notesName, pvi, serverAccessView);\n // Log user info\n if (LOGGER.isLoggable(Level.FINE)) {\n User user = getUser(\"gsaname\", pvi);\n LOGGER.log(Level.FINE, \"All groups for {0}: {1}\",\n new Object[] { user, user.getGroups() });\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Failed to update user cache\"\n + (notesName != null ? \" for \" + notesName : \"\"), e);\n } finally {\n Util.recycle(personDoc);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error processing users\", e);\n } finally {\n Util.recycle(serverAccessView);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINE, \"Update users: {0}ms\", timeFinish - timeStart);\n }",
"public boolean update(User u);",
"void updateUser(@Nonnull User user);",
"@Override\n\tpublic int updateUsers(User user) {\n\t\treturn userDao.updateUsers(user);\n\t}",
"public void update() throws Exception {\n\t HaUserDao.getInstance().updateUser(this);\n\t}",
"public void update() throws NotFoundException {\n\tUserDA.update(this);\n }",
"@Override\n public void syncUserData() {\n\n List<User> users = userRepository.getUserList();\n List<LdapUser> ldapUsers = getAllUsers();\n Set<Integer> listUserIdRemoveAM = new HashSet<>();\n\n //check update or delete \n for (User user : users) {\n boolean isDeleted = true;\n for (LdapUser ldapUser : ldapUsers) {\n if (user.getUserID().equals(ldapUser.getUserID())) {\n // is updateours\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n \n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n checkChangeDepartment(user, department, listUserIdRemoveAM);\n \n userRepository.editUser(user);\n \n isDeleted = false;\n break;\n }\n }\n if (isDeleted) {\n user.setIsDeleted((byte) 1);\n user.setActive((byte) 0);\n userRepository.editUser(user);\n }\n }\n\n //check new user\n for (LdapUser ldapUser : ldapUsers) {\n boolean isNew = true;\n for(User user : users){\n if(ldapUser.getUserID().equals(user.getUserID())){\n isNew = false;\n break;\n }\n }\n if(isNew){\n logger.debug(\"Is new User userID = \"+ldapUser.getUserID());\n User user = new User();\n user.setUserID(ldapUser.getUserID());\n user.setStaffCode(ldapUser.getUserID());\n user.setFirstName(ldapUser.getFirstName());\n user.setLastName(ldapUser.getLastName());\n user.setCreatedAt(Utils.getCurrentTime());\n user.setUpdatedAt(Utils.getCurrentTime());\n user.setEmail(ldapUser.getMail().trim());\n user.setJobTitle(ldapUser.getTitle() == null ? DEFAULT_JOB_TITLE : ldapUser.getTitle());\n user.setPhoneNumber(ldapUser.getTelephonNumber());\n user.setActive((byte) 1);\n user.setIsDeleted((byte) 0);\n user.setOfficeLocation(ldapUser.getOfficeLocation());\n user.setRoleId(4);\n user.setApprovalManagerId(0);;\n \n String managerId = ldapUser.getManagerUser();\n User manager = getUserFromListByUserID(users, managerId);\n user.setManagerId(manager == null ? 0 : manager.getId());\n\n //This code will be lock till deploy the real LDAP have 2 properties are \"department\" and \"userAccountControl\"\n Department department = departmentRepository.getDepartmentByName(ldapUser.getDepartment());\n user.setDepartmentId(department == null ? 0 : department.getId());\n \n /*user.setActive(ldapUser.getUserAccountControl() == 514 ? (byte) 0 : (byte) 1);*/\n \n userRepository.addUser(user);\n logger.debug(\"Is new User id = \"+user.getId());\n }\n }\n \n //Remove AprovalManager out User\n for(Integer userId : listUserIdRemoveAM){\n if(userId == null) continue;\n User userRemoveAMId = userRepository.getUserById(userId);\n userRemoveAMId.setApprovalManagerId(0);\n userRepository.editUser(userRemoveAMId);\n }\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"public void update(com.conurets.inventory.model.User model) throws InventoryException {\n }",
"private void updateUserInEvents(Person target, Person editedPerson) {\n for (Event event : versionedAddressBook.getEventList()) {\n boolean changed = event.updatePerson(target, editedPerson);\n if (changed) {\n versionedAddressBook.updateEvent(event, event);\n }\n }\n }",
"@Override\r\n\tpublic int update(User user) {\n\t\treturn 0;\r\n\t}",
"public User updateUser(User user);",
"public static void nonAdminUpdates(User user) {\t\n\t\tint updCounter = 0;\n\t\tif (user != null) { \n\t\t\tString updFirstName = Console.getStringAllowNull(\"\\nEnter Updated FirstName [ENTER] for No Change: \");\n\t\t\tif (updFirstName.isEmpty()) {\n\t\t\t\tuser.setFirstName(user.getFirstName());\n\t\t\t} else {\n\t\t\t\tuser.setFirstName(updFirstName);\n\t\t\t\tupdCounter++;\n\t\t\t}\n\t\t\tString updLastName = Console.getStringAllowNull(\"Enter Updated LastName [ENTER] for No Change: \");\n\t\t\tif (updLastName.isEmpty()) {\n\t\t\t\tuser.setLastName(user.getLastName());\n\t\t\t} else {\n\t\t\t\tuser.setLastName(updLastName);\n\t\t\t\tupdCounter++;\n\t\t\t}\n\t\t\tString updPassword = Console.getStringAllowNull(\"Enter Updated Password [ENTER] for No Change: \");\n\t\t\tif (updPassword.isEmpty()) {\n\t\t\t\tuser.setPassword(user.getPassword());\n\t\t\t} else {\n\t\t\t\tuser.setPassword(updPassword);\n\t\t\t\tupdCounter++;\n\t\t\t}\n\t\t\tString updPhone = Console.getStringAllowNull(\"Enter Updated Phone# [ENTER] for No Change: \");\n\t\t\tif (updPhone.isEmpty()) {\n\t\t\t\tuser.setPhone(user.getPhone());\n\t\t\t} else {\n\t\t\t\tuser.setPhone(updPhone);\n\t\t\t\tupdCounter++;\n\t\t\t}\n\t\t\tString updEmail = Console.getStringAllowNull(\"Enter Updated Email [ENTER] for No Change: \");\n\t\t\tif (updEmail.isEmpty()) {\n\t\t\t\tuser.setEmail(user.getEmail());\n\t\t\t} else {\n\t\t\t\tuser.setEmail(updEmail);\n\t\t\t\tupdCounter++;\n\t\t\t}\n\t\t\tif (updCounter > 0) {\n\t\t\t\tUserDB.update(user);\n\t\t\t\tSystem.out.println(user.toString());\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"\\n%%% No Changes Entered - Record not Updated\");\n\t\t\t}\t\t\t\n\t\t} \n\t}",
"@Override\n\tpublic void update(UsersDto dto) {\n\t\tsession.update(\"users.update\", dto);\n\t}",
"@Override\n\tpublic void updateUser(SpaceUserVO spaceUserVO) throws Exception {\n\t\t\n\t}",
"@Override\n\tpublic void updateLoggedinUsers() throws Exception {\n\n\t}",
"@Override\n\tpublic void modify(UserModel um) throws Exception {\n\t\tsf.getCurrentSession().update(um);\n\t}",
"@Override\r\n\tpublic boolean updateUser() {\n\t\treturn false;\r\n\t}",
"void documentModifyStatusUpdated(SingleDocumentModel model);",
"void documentModifyStatusUpdated(SingleDocumentModel model);",
"private void updateProfile() {\r\n\r\n builder.setMessage(\"Are you sure you want to update?\")\r\n .setCancelable(false)\r\n .setTitle(\"Profile Update\")\r\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\r\n\r\n if (user == null) {\r\n return;\r\n }\r\n\r\n //Validate fields\r\n if (!validateData()){\r\n return;\r\n }\r\n\r\n String userId = user.getUid();\r\n String email = user.getEmail();\r\n DocumentReference reference = mFirebaseFirestore.collection(\"users\").document(userId);\r\n reference.update(\"contact\", mTextViewContact.getText().toString());\r\n reference.update(\"estate\", mTextViewEstate.getText().toString());\r\n reference.update(\"houseno\", mTextViewHouseNo.getText().toString());\r\n reference.update(\"name\", mTextViewName.getText().toString())\r\n .addOnSuccessListener(new OnSuccessListener<Void>() {\r\n @Override\r\n public void onSuccess(Void aVoid) {\r\n Toast.makeText(Testing.this, \"User: \" + mTextViewName.getText().toString() + \" Profile updated successfully!\", Toast.LENGTH_LONG).show();\r\n resetFieldData();\r\n }\r\n })\r\n .addOnFailureListener(new OnFailureListener() {\r\n @Override\r\n public void onFailure(@NonNull Exception e) {\r\n Toast.makeText(Testing.this, \"Error while updating your profile. KIndly check your internet connection!\" + e.toString(), Toast.LENGTH_LONG).show();\r\n }\r\n });\r\n }\r\n })\r\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n dialogInterface.cancel();\r\n }\r\n });\r\n AlertDialog alertDialog = builder.create();\r\n alertDialog.show();\r\n }",
"public void updateUser() {\n Connection conn = null;\n try {\n conn = DriverManager.getConnection(db.DB.connectionString, db.DB.user, db.DB.password);\n Statement stmt = conn.createStatement();\n String query = \"update users set first_name='\" + firstName + \"', \";\n query += \"last_name='\" + lastName + \"', \";\n query += \"phone_number='\" + phoneNumber + \"', \";\n query += \"email='\" + email + \"', \";\n query += \"address='\" + address + \"', \";\n query += \"id_city='\" + idCity + \"' \";\n query += \"where id_user = \" + id;\n stmt.executeUpdate(query);\n\n User updatedUser = findUser(id);\n updatedUser.setFirstName(firstName);\n updatedUser.setLastName(lastName);\n updatedUser.setPhoneNumber(phoneNumber);\n updatedUser.setEmail(email);\n updatedUser.setIdCity(idCity);\n updatedUser.setAddress(address);\n\n } catch (SQLException ex) {\n Logger.getLogger(UserController.class.getName()).log(Level.SEVERE, null, ex);\n } finally {\n clear();\n try {\n conn.close();\n } catch (Exception e) {\n /* ignored */ }\n }\n }",
"public User update(User updatedInfo);",
"public void updateUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk updateUser\");\r\n\t}",
"@Override\n\tpublic int update(Users t) {\n\t\treturn usersDAO.update(t);\n\t}",
"UpdateUserResult updateUser(UpdateUserRequest updateUserRequest);",
"public void setUpdateExistingUsers( boolean bUpdateExistingUsers )\n {\n _bUpdateExistingUsers = bUpdateExistingUsers;\n }",
"@Override\r\n\tpublic void update( UserFields oldFields, UserFields newFields ) {\n\t\t\r\n\t}",
"public void updateUsersList() {\n\t adapter = new UsersAdapter(getActivity(), allUsers);\n setListAdapter(adapter);\n\t getListView().setOnItemClickListener(this);\n\t}",
"void setUserUpdated(final Long userUpdated);",
"@Override\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userMapper.updateByPrimaryKey(record);\n\t}",
"@Override\n public boolean updateUser(User user) {\n return controller.updateUser(user);\n }",
"@Override\n\tpublic boolean updateUser(User user) {\n\t\tboolean success = false;\n\t\tfor (User userTemp : userVO.getUsers()) {\n\n\t\t\tif (user.getId().equals(userTemp.getId())) {\n\n\t\t\t\tuserTemp.setPinCode(user.getPinCode());\n\t\t\t\tuserTemp.setBirthDate(user.getBirthDate());\n\n\t\t\t\t// newPerson.se\n\t\t\t\t/**\n\t\t\t\t * Copy Object Properties and Update Salary\n\t\t\t\t */\n\t\t\t\t// BeanUtils.copyProperties(person, newPerson);\n\t\t\t\t// newPerson.setFirstName(firstName);\n\t\t\t\t// newPerson.setDob(dob);\n\t\t\t\t// userVO.getUsers().add(userTemp);\n\t\t\t\tsuccess = true;\n\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t}\n\t\treturn success;\n\t}",
"@Override\n public void update(Usuario usuario) {\n }",
"int updateByPrimaryKey(ROmUsers record);",
"@Override\r\n\tpublic void updateUser(TUsers tuser) {\n\t\tdao.updateUser(tuser);\r\n\t}",
"@Override\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn 0;\n\t}",
"@Override\r\n\tpublic int updateUser(User user, String userName) {\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic void updateUser(User user) {\n\t userMapper.updateUser(user);\n\t}",
"public void setUpdateUser(Integer updateUser) {\n this.updateUser = updateUser;\n }",
"UserEntity updateUser(UserEntity userEntity);",
"@Override\r\n\tpublic int updateByPrimaryKey(AdminUser record) {\n\t\treturn adminUserMapper.updateByPrimaryKey(record);\r\n\t}",
"@Override\r\n\tpublic int updateByPrimaryKeySelective(User record) {\n\t\treturn userDao.updateByPrimaryKeySelective(record);\r\n\t}",
"@Override\r\n\tpublic int updateByPrimaryKey(User record) {\n\t\treturn userDao.updateByPrimaryKey(record);\r\n\t}",
"public void updateUser(long userID) {\n \t}",
"@Override\n public void onClick(View v) {\n if(editName.getText().toString().isEmpty() || editEmail.getText().toString().isEmpty() || editStudentID.getText().toString().isEmpty() || editAddress.getText().toString().isEmpty() || editStudentID.getText().toString().isEmpty() || editProfession.getText().toString().isEmpty()){\n Toast.makeText(EditProfile.this, \"Fields not valid\", Toast.LENGTH_SHORT).show();\n return;\n }\n\n //update users registered email\n String email = editEmail.getText().toString();\n user.updateEmail(email).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n //update the users information\n public void onSuccess(Void aVoid) {\n DocumentReference ref = fStore.collection(\"users\").document(user.getUid());\n Map<String,Object> edited = new HashMap<>();\n edited.put(\"Address\",editAddress.getText().toString());\n edited.put(\"Email\",editEmail.getText().toString());\n edited.put(\"FullName\",editName.getText().toString());\n edited.put(\"Profession\",editProfession.getText().toString());\n edited.put(\"UTAid\",editStudentID.getText().toString());\n ref.update(edited).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n Toast.makeText(EditProfile.this, \"Profile Updated\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(), Profile.class));\n finish();\n }\n });\n Toast.makeText(EditProfile.this, \"Email is Updated\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(getApplicationContext(), Profile.class));\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(EditProfile.this, e.getMessage(), Toast.LENGTH_SHORT).show();\n }\n });\n }",
"ManageUserResponse updateUser(UserUpdateRequest user, Long userId);",
"private void updateUI(FirebaseUser user) {\n\n HashMap<String, Object> data = new HashMap<>();\n data.put(\"FName\", user.getDisplayName());\n data.put(\"LName\", user.getDisplayName());\n data.put(\"email\", user.getEmail());\n data.put(\"password\", \"No need this\");\n data.put(\"uid\", mAuth.getCurrentUser().getUid());\n data.put(\"token\", user.getIdToken(true).toString());\n\n db.collection(\"users\").document(mAuth.getCurrentUser().getUid())\n .set(data).addOnSuccessListener(new OnSuccessListener<Void>() {\n @Override\n public void onSuccess(Void aVoid) {\n\n finish();\n startActivity(new Intent(Login.this, CollectingData.class));\n }\n });\n\n }",
"@Override\n\tpublic int updateByPrimaryKeySelective(User record) {\n\t\treturn userMapper.updateByPrimaryKeySelective(record);\n\t}",
"private static void updateUser() {\n\t currentUser = Structure.User(currentUser);\n\t CRUDUsers.compareWithRemote(currentUser).subscribe(new SingleSubscriber<User>() {\n\t\t @Override\n\t\t public void onSuccess(User value) {\n\t\t\t\tConnection.logIn(value);\n\t\t }\n\t\t\n\t\t @Override\n\t\t public void onError(Throwable error) {\n\t\t\t logOff();\n\t\t\t App.showMessage(error.getMessage());\n\t\t }\n\t });\n }",
"public String updateUser(){\n\t\tusersservice.update(usersId, username, password, department, role, post, positionId);\n\t\treturn \"Success\";\n\t}",
"public static Task<Void> updateUserProfile(String userId, Map<String, Object> data) {\n // update the user's profile info\n return FirebaseFirestore.getInstance()\n .collection(Const.USERS_COLLECTION)\n .document(userId)\n .update(data);\n }",
"@Override\r\n\tpublic void updateUser(User user) {\n\t\tuserReposotory.save(user);\r\n\t\t\r\n\t}",
"public void userUpdate(User user) {\n\t\tdao.userUpdate(user);\n\t}",
"public void objectsUpdated(UpdateResult evt) {\n \t\tif (getLogger().isDebugEnabled())\n \t\t\tgetLogger().debug(\"Objects updated\");\n \n \tcacheValidString = null;\n \t\tcachedReservations = null;\n \tif (workingUser != null)\n \t\t{\n \t\t\tif ( evt.isModified( User.TYPE))\n \t\t\t{\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tIterator<User> it = operator.getObjects(User.class).iterator();\n \t\t\t\t\tUser newUser = null;\n \t\t\t\t\twhile (it.hasNext()) {\n \t\t\t\t\t\tUser user = it.next();\n \t\t\t\t\t\tif (user.equals(workingUser)) {\n \t\t\t\t\t\t newUser = user;\n \t\t\t\t\t\t break;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\tif ( newUser == null)\n \t\t\t\t\t{\n \t\t\t\t\t\tEntityNotFoundException ex = new EntityNotFoundException(\"User (\" + workingUser + \") not found. Maybe it was removed.\");\n \t\t\t\t\t\tfireUpdateError(ex);\n \t\t\t\t\t\treturn;\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tworkingUser = newUser;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tcatch (RaplaException ex)\n \t\t\t\t{\n \t\t\t\t\tfireUpdateError(ex);\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\t\t\t\n \t\tfireUpdateEvent(evt);\n \t}",
"private void updateList(int index, User updateUser)\n\t{\n\t\tthis.usersList.get(index).setUsername(updateUser.getUsername());\n\t\tthis.usersList.get(index).setPassword(updateUser.getPassword());\n\t\tthis.usersList.get(index).setEmail(updateUser.getEmail());\n\t\tthis.usersList.get(index).setName(updateUser.getName());\n\t\tthis.usersList.get(index).setPhone(updateUser.getPhone());\n\t}",
"@Override\n\tpublic int update(Users user) {\n\t\treturn userDAO.update(user);\n\t}",
"public void updateUserList(Set<String> users) {\n\t\tuserlistModel = new DefaultListModel<String>();\n\t\tfor (String user : users) {\n\t\t\tuserlistModel.addElement(user);\n\t\t}\n\t\tuserList.setModel(userlistModel);\n\t\t\n\t\t\n\t}",
"int updateByPrimaryKeySelective(ROmUsers record);",
"int updateByPrimaryKey(UUser record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"int updateByPrimaryKey(User record);",
"@Override\n public void updateStamps(int userID) {\n User user = new DataClass().getUserByID(userID);\n user.setStamp(user.getStamp() + 1);\n new DataClass().updateUser(user);\n }",
"@Override\n\tpublic void updatePassword(AdminUser userModel) {\n\n\t}",
"public void updateUser(UserModel body, Integer id) {\n UserModel userModelToUpdate = userRepository.getOne(id);\n userModelToUpdate.setFirstname(body.getFirstname());\n if(body.getPassword()!=null) {\n //validate on UserModel entity\n }\n userModelToUpdate.setLastname(body.getLastname());\n userModelToUpdate.setEmail(body.getEmail());\n userModelToUpdate.setPassword(body.getPassword());\n userModelToUpdate.setUsername(body.getUsername());\n userRepository.save(body);\n // wait for best practice\n }",
"private void updateFriendsCount(String userId, String ownId, boolean increment) {\n String error = \"Failed to update friends count information\";\n UserDatabase userDb = new UserDatabase(userId);\n DocumentReference documentReference = userDb.getDatabase();\n documentReference.get()\n .addOnSuccessListener(success -> setFriendsCount(documentReference, success.getData(), increment, true))\n .addOnFailureListener(fail -> handleError(error, fail));\n\n userDb = new UserDatabase(ownId);\n DocumentReference documentReference1 = userDb.getDatabase();\n documentReference1.get()\n .addOnSuccessListener(success -> setFriendsCount(documentReference1, success.getData(), increment, false)) // our profile view is out of sight, so don't update\n .addOnFailureListener(fail -> handleError(error, fail));\n }",
"int updateByPrimaryKeySelective(UUser record);",
"void updateUserByUserId(Map<String, Object> properties, Integer userId)\n throws AppException;",
"public void updateUserDetails() {\n\t\tSystem.out.println(\"Calling updateUserDetails() Method To Update User Record\");\n\t\tuserDAO.updateUser(user);\n\t}"
] | [
"0.7151659",
"0.6768378",
"0.6552698",
"0.6387356",
"0.6354012",
"0.6263001",
"0.62575686",
"0.62538546",
"0.62174964",
"0.61992836",
"0.6176315",
"0.612777",
"0.60927606",
"0.60889065",
"0.6085983",
"0.6076445",
"0.6076445",
"0.6051182",
"0.60434085",
"0.60232735",
"0.6015179",
"0.6005993",
"0.596897",
"0.5964834",
"0.5911917",
"0.58555657",
"0.5853514",
"0.581516",
"0.57981205",
"0.5786746",
"0.5754932",
"0.57401675",
"0.57371986",
"0.57239115",
"0.5721534",
"0.57117534",
"0.56993186",
"0.5684608",
"0.56791127",
"0.56694806",
"0.56671345",
"0.5643935",
"0.5640513",
"0.5629731",
"0.5629731",
"0.56291914",
"0.5615368",
"0.5615188",
"0.55988413",
"0.5596038",
"0.55949485",
"0.5575272",
"0.55590117",
"0.5546763",
"0.553679",
"0.5533945",
"0.55263263",
"0.55168873",
"0.5510627",
"0.55044055",
"0.5484978",
"0.54847354",
"0.548177",
"0.54709715",
"0.5470147",
"0.54672563",
"0.5466001",
"0.54644376",
"0.5463339",
"0.5456604",
"0.54555285",
"0.54446274",
"0.54439247",
"0.54369396",
"0.54353994",
"0.5434447",
"0.5429168",
"0.54283786",
"0.5419611",
"0.5411994",
"0.5411491",
"0.54033744",
"0.53938824",
"0.53864235",
"0.5385543",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.537608",
"0.53679734",
"0.53568083",
"0.53432643",
"0.5338021",
"0.53370786",
"0.53312767",
"0.53305346"
] | 0.0 | -1 |
Adds an insert command to this document's queue. | public void insertChar(int index, String charToInsert) {
commandsQueue.add(new String[] { "insert", "" + index, charToInsert });
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void insertCommand(iCommand c){\r\n\t\ttry {\r\n\t\t\tcommandQueue.put(c);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}",
"public void insert()\n\t{\n\t}",
"@Override\r\n\tpublic String insert() {\n\t\treturn \"insert\";\r\n\t}",
"@Override\n\tpublic void insert() {\n\t\t\n\t}",
"public void insert(Object data, int index){\r\n enqueue(data);\r\n }",
"int insert(JmfTaskMqRef record);",
"static void insert(Queue<Integer> q, int k){\n \n q.add(k);\n \n }",
"public void enqueue(Object data){\r\n super.insert(data, 0);//inserts it to the first index everytime (for tostring)\r\n }",
"public void insertJobCommand(JobCommand jobCommand) throws DatabaseException, IllegalArgumentException;",
"public void insert(SQLStatement statement) {\n queryThread.addQuery(statement);\n }",
"@Override\n\tpublic void insertProcess() {\n\t\t\n\t}",
"public void enqueue(T pushed)\n\t{insert(pushed);}",
"public void insert(Comment com){\n //@todo implement method\n }",
"void insert(TbMessage record);",
"public void insert(String text) {\n\t\tcmd = new InsertCommand(text, editor);\n\t\tinvoker = new MiniEditorInvoker(cmd);\n\t\tinvoker.action();\n\t}",
"protected void startInsertRunnable() {\n\t}",
"public void enqueue ()\n {\n count++;\n questionList.add(newQuestion);\n //System.out.println(\"Question #\"+ totNumQ + \" is added to the queue.\");\n }",
"public void addCommand(CommandInfo command) {\n\t\ttry {\n\t\t\tcommandsQueue.put(command);\n\t\t} catch(InterruptedException exception) {\n\t\t\texception.printStackTrace();\n\t\t}\n\t}",
"public void insert(Object item);",
"void insert(MnMscQos record);",
"public void enqueue(E e) {\n\t\t\tsynchronized (this.pq) {\n\t\t\t\tthis.pq.add(e);\n//\t\t\t\tSystem.out.println(\"insert \" + e);\n\t\t\t}\n\t\t\tthis.sem.release();\n\t}",
"int insertSelective(AlertQueue record);",
"private void addInsertOp() {\n\n if (!mIsNewAlert) {\n mValues.put(AlertContentProvider.KEY_ALERT_ID, mRawAlertId);\n }\n ContentProviderOperation.Builder builder =\n newInsertCpo(Data.CONTENT_URI, mIsSyncOperation, mIsYieldAllowed);\n builder.withValues(mValues);\n if (mIsNewAlert) {\n builder.withValueBackReference(AlertContentProvider.KEY_ALERT_ID, mBackReference);\n }\n mIsYieldAllowed = false;\n mBatchOperation.add(builder.build());\n }",
"public static synchronized void insert(IEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }",
"public void addCommand(Command cmd) {\n cmd.setTask(this);\n commands.add(cmd);\n }",
"public void addReceivedInternalDocument(AddReceivedInternalDocumentCommand aCommand);",
"protected void processInsert(int index, Character anInput) {\n\t\tListEditInput.newCase(OperationName.ADD, index, anInput, ApplicationTags.EDITOR, this);\n\t\taddToTopic(index, anInput);\n\t}",
"@Override\n\tpublic void insert(String... args) throws SQLException {\n\t\t\n\t}",
"int insert(_task record);",
"public void insert() {\r\n\t\t// In this way we can enjoy work`s deliverable without inheritance.\r\n\t\totherMethod();\r\n\t\twork.insert();\r\n\t}",
"public void insert() {\n\t\tSession session = DBManager.getSession();\n\t\tsession.beginTransaction();\n\t\tsession.save(this);\n\t\tsession.getTransaction().commit();\n\t}",
"@Override\r\n\tpublic void insert(BbsDto dto) {\n\t}",
"public static synchronized void insert(JeyEvent e) {\n queue.addLast(e);\r\n EventQueue.class.notifyAll();\r\n }",
"@Insert\n long insert(Task task);",
"@Override\n\tpublic void insertar() {\n\t\t\n\t}",
"protected void insertQuestion(final QuestionImpl question)\n\t{\n\t\tthis.sqlService.transact(new Runnable()\n\t\t{\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tinsertQuestionTx(question);\n\t\t\t}\n\t\t}, \"insertQuestion: \" + question.getId());\n\t}",
"public void addCommand(String auth, Command command) {\n if(sessionCommandQueue.containsKey(auth)) {\n sessionCommandQueue.get(auth).add(command);\n } else {\n List<Command> list = new ArrayList<>();\n list.add(command);\n sessionCommandQueue.put(auth, list);\n }\n }",
"@Override\n\tpublic int insert(Message t) {\n\t\treturn 0;\n\t}",
"void addCommand(final Runnable command)\n {\n synchronized (command_queue)\n {\n // New maximum queue length (+1 for the one about to get added)\n if (command_queue.size() >= max_size_reached)\n max_size_reached = command_queue.size() + 1;\n command_queue.addLast(command);\n }\n }",
"@Override\n\tpublic void addToQueue() {\n\t}",
"@Override\n\tpublic void insertQA(QA qa) {\n\t\tqaDao.insertQAPost(qa);\n\t}",
"@SuppressWarnings(\"unchecked\")\n void add(MigrationCommand command);",
"public void insert(String word) {\r\n tree.add(word);\r\n }",
"protected abstract void insertQuestionTx(QuestionImpl question);",
"public void addCommand(Object cmd) {\n Message msg = this.handler.obtainMessage(0);\n msg.obj = cmd;\n this.handler.sendMessage(msg);\n }",
"int insert(Message record);",
"public void insert(BusiTagBean record) {\n }",
"@Override\n public MyBusinessObjectInsertCommand getInsertCommand() {\n return new MyBusinessObjectInsertCommand(this);\n }",
"public void executeInsertCard() {\n\t\tcurrentState.edgeInsertCard();\n\t}",
"public final void mINSERT() throws RecognitionException {\n try {\n int _type = INSERT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:348:7: ( I N S E R T )\n // /Users/cbinnig/Workspace/DHBW_FirstDB_Loesung3/src/de/dhbw/db2/firstdb/sql/FirstSQL.g:348:9: I N S E R T\n {\n mI(); \n mN(); \n mS(); \n mE(); \n mR(); \n mT(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void enqueue(Message msg){\n\t\tqueue.add(msg);\n\t}",
"@Override\n\tpublic void insert(ReplyDTO dto) throws Exception {\n\t\tsession.insert(\"ReplyMapper.insert\",dto);\n\t\t\n\t}",
"public void addQ (Question Q)\n {\n newQuestion = Q;\n \n enqueue();\n }",
"@Insert(ADD_NEW)\n @Options(useGeneratedKeys = true, keyProperty = \"id\")\n @Override\n int addNew(Object position);",
"com.google.spanner.v1.Mutation.Write getInsert();",
"public void insert(Spot spot) { mRepository.insert(spot); }",
"protected void add(Query query) {\n queries.add(query);\n executeThread();\n }",
"public void insert(Conge conge) ;",
"@Insert({ \"insert into ALERT_QUEUE (ALERT_Q_ID, ALERT_TYPE, \", \"USER_ID, SMS_TEXT, \", \"EMAIL_TEXT, CREATE_TIME, \", \"SCHEDULED_TIME, DELIVERED_STATUS, \", \"RETRY_COUNT, MOBILE_NO, \",\n\t\t\t\"EMAIL_TO, EMAIL_TEMPLATE_ID, \", \"BULK_EMAIL_MEMBER_NO)\", \"values (#{alertQId,jdbcType=DECIMAL}, #{alertType,jdbcType=VARCHAR}, \",\n\t\t\t\"#{userId,jdbcType=VARCHAR}, #{smsText,jdbcType=VARCHAR}, \", \"#{emailText,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{scheduledTime,jdbcType=TIMESTAMP}, #{deliveredStatus,jdbcType=VARCHAR}, \", \"#{retryCount,jdbcType=DECIMAL}, #{mobileNo,jdbcType=VARCHAR}, \",\n\t\t\t\"#{emailTo,jdbcType=VARCHAR}, #{emailTemplateId,jdbcType=VARCHAR}, \", \"#{bulkEmailMemberNo,jdbcType=VARCHAR})\" })\n\tint insert(AlertQueue record);",
"private void addCommand(byte command) {\r\n if (journal_entries >= command_journal.length) {\r\n // Resize command array.\r\n int grow_size = Math.min(4000, journal_entries);\r\n grow_size = Math.max(4, grow_size);\r\n byte[] new_command_journal = new byte[journal_entries + grow_size];\r\n System.arraycopy(command_journal, 0, new_command_journal, 0,\r\n journal_entries);\r\n command_journal = new_command_journal;\r\n }\r\n\r\n command_journal[journal_entries] = command;\r\n ++journal_entries;\r\n }",
"int insert(MsgContent record);",
"public final void mK_INSERT() throws RecognitionException {\n try {\n int _type = K_INSERT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:484:9: ( I N S E R T )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:484:16: I N S E R T\n {\n mI(); \n mN(); \n mS(); \n mE(); \n mR(); \n mT(); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }",
"public void insert(Job job) throws DatabaseException, IllegalArgumentException;",
"void insert(CmsChannel record);",
"WriteRequest insert(PiEntity entity);",
"public void addSong(String song){\n\t\tqueueInsertion(song);\n\t}",
"public void insert(E e);",
"int insert(Yqbd record);",
"public void innerAdd(Object cmd) {\n this.commandList.add(cmd);\n if (!this.handler.hasMessages(1)) {\n this.handler.sendEmptyMessageDelayed(1, getDelayTime());\n }\n }",
"public void insert(String word, Point point)\r\n\t{\r\n\t\t//call insert\r\n\t\troot.insert(new Data(word, point));\r\n\t}",
"int insert(KnowledgeComment record);",
"int insert(PfCombElementEvent record);",
"void insert(int insertSize);",
"public RequestedDocument addRequestedDocument(AddRequestedDocumentCommand aCommand);",
"void insertItem(Position position, IItem item);",
"private void addCommandToQueue(CancellableCommand command) {\n outstandingRequests.add(command);\n while (outstandingRequests.size() > maxOutstandingRequests) {\n outstandingRequests.poll().onCancelled();\n }\n }",
"int insert(PrivateMessage record);",
"void enqueue(T item) {\n contents.addAtTail(item);\n }",
"@Override\n\tpublic boolean add(T insertItem) {\n\t\t// TODO Just add the item to the array\n\t\tif (isFull()) {\n\t\t\treturn false;\n\t\t}\n\t\tdata[size++] = insertItem;\n\t\treturn true;\n\t}",
"public void insert(T vertex, Point2D pos);",
"public void processInsertar() {\n }",
"private void enterToRunwayQueue() {\n\t\tqueue.insert(this);\n\t}",
"String insertDocument(String doc) {\n\t\treturn insertDocument(doc, null); // no docId\n\t}",
"@Override\n public int insert(PWsdTaskdataDomain pWsdTaskdataDomain) {\n return getPersistanceManager().insert(getNamespace() + \".insert\", pWsdTaskdataDomain);\n }",
"public void insert(E item) {\n // FILL IN\n }",
"public void insert() throws SQLException;",
"public void add(PhotonDoc doc);",
"public void insertTerm(Term term) {\n ProgressTrackerDatabase.databaseWriteExecutor.execute(() -> {\n mTermDao.insert(term);\n });\n }",
"public void insert(String word) {\n this.root.insert(word);\n }",
"public void insert(T element);",
"int insert(Question record);",
"int insert(Question record);",
"int insert(Question record);",
"int insert(Question record);",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tUri insertedUri = context.getContentResolver().insert(uri,\n\t\t\t\t\t\tvalues);\n\t\t\t\tMessage msg = Message.obtain();\n\t\t\t\t// msg.what=INSERT_OPERATION;\n\t\t\t\tif (ContentUris.parseId(insertedUri) > 0) {\n\t\t\t\t\tmsg.what = SUCCESS;\n\t\t\t\t} else {\n\t\t\t\t\tmsg.what = FAIL;\n\t\t\t\t}\n\t\t\t\thandler.sendMessage(msg);\n\t\t\t}",
"public void insert(Glyph glyph, int position) throws OperationNotSupportedException, IndexOutOfBoundsException {\n throw new OperationNotSupportedException(\"This Glyph cannot have children\");\n }",
"public void insertToken(Token tok) {\r\n\t}",
"public void insert(T o);",
"@Override\n\tpublic void preInsert() {\n\n\t}",
"public void insert(ScOrgSeq record) {\n getSqlMapClientTemplate().insert(\"sc_org_seq.abatorgenerated_insert\", record);\n }"
] | [
"0.6309835",
"0.6004108",
"0.5914999",
"0.5878389",
"0.57597035",
"0.572755",
"0.5708168",
"0.5707288",
"0.5663041",
"0.5637867",
"0.56252724",
"0.56173897",
"0.55496556",
"0.55474293",
"0.5506244",
"0.55002195",
"0.5492096",
"0.5474236",
"0.54619384",
"0.5453816",
"0.54462117",
"0.5425157",
"0.54180306",
"0.5408299",
"0.540786",
"0.5401105",
"0.5387129",
"0.5358838",
"0.5329124",
"0.53184056",
"0.5307144",
"0.53023946",
"0.5274722",
"0.52567315",
"0.5248227",
"0.52475107",
"0.52422047",
"0.52347803",
"0.5219704",
"0.52168775",
"0.5216077",
"0.5213036",
"0.5212758",
"0.519864",
"0.5194682",
"0.51919913",
"0.5191064",
"0.51887697",
"0.5187908",
"0.5168546",
"0.5168505",
"0.51640683",
"0.5160614",
"0.51491743",
"0.51453906",
"0.5140485",
"0.5136558",
"0.5132255",
"0.51290226",
"0.5127814",
"0.51258457",
"0.5124397",
"0.5124",
"0.5120221",
"0.511995",
"0.5113429",
"0.5109519",
"0.51083297",
"0.51080513",
"0.51013595",
"0.51006347",
"0.50942177",
"0.50875115",
"0.5087027",
"0.5085564",
"0.50820625",
"0.50819916",
"0.5080302",
"0.5076343",
"0.5072214",
"0.50587636",
"0.5056352",
"0.5052727",
"0.5052473",
"0.5049829",
"0.50442946",
"0.5041693",
"0.50386953",
"0.50386184",
"0.50366515",
"0.50362724",
"0.50362724",
"0.50362724",
"0.50362724",
"0.5029528",
"0.50239176",
"0.50211287",
"0.5018391",
"0.5014165",
"0.50124276"
] | 0.552912 | 14 |
Add a remove command to this document's queue | public void removeChar(int index) {
commandsQueue.add(new String[] { "remove", "" + index });
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean remove(final String queueName, final String item);",
"public E remove() throws FileQueueClosedException;",
"void removeFromQueue(ActionEvent event){\n model.getQueueList().remove(podcast);\n podcast.setQueued(false);\n podcast.togglePlaying();\n cm.hide();\n }",
"public void remove ( ) {\n\t\texecute ( handle -> handle.remove ( ) );\n\t}",
"public void remove() {\n\t\tprocess temp = queue.removeFirst();\n\t}",
"public void remove () {}",
"void deleteQueue();",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\n btRemove().push();\n }",
"public void remove() {\r\n //\r\n }",
"public void remove() {\n\t}",
"public void remove() {\n\t}",
"void removeReceiveQueue(final String receiveQueueId);",
"public void remove(){\n }",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove();",
"public void remove() {\n\n }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public void remove() {\n\t }",
"public T remove() throws EmptyQueueException;",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"void remove();",
"public void dequeue()\n\t{\n\t\tq.removeFirst();\n\t}",
"public void dequeue() {\n\t\tObject ret_val = todequeue();\n\t\tif(ret_val == null)\n\t\t\tSystem.out.println(\"The queue is empty\");\n\t\telse\n\t\t\tSystem.out.println(\"Removed: \" + ret_val);\n\t}",
"void removeQueueMessageStore(ActiveMQQueue destination);",
"@Override\n public synchronized void delete(String queueName, QueueMessage message) {\n if(message == null) {\n return;\n }\n\n // If we process FIFO this makes it slightly faster\n // to find the next message to process\n this.readQueueLocation = message.getQueueLocation();\n\n this.ringBufferQueue[message.getQueueLocation()] = null;\n this.itemsInQueue--;\n }",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void remove() {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\t\tpublic void remove() {\n\t\t\t\n\t\t}",
"@Override\n\tpublic void remove() { }",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"@Override\n\tpublic void remove() {\n\t\t\n\t}",
"public void removeFromQueue(Player player) {\n }",
"public void pop() {\n queue.remove();\n }",
"@Override\n public void remove() {\n }",
"@Test\n @DisplayName(\"Testing remove StringQueue\")\n public void testRemoveStringQueue() {\n queue.offer(\"Test\");\n assertEquals(queue.remove(), \"Test\");\n\n assertThrows(NoSuchElementException.class, () -> {\n queue.remove();\n });\n }",
"@Override\n public void remove() {\n }",
"public boolean atomicRemove();",
"public E remove();",
"public E remove();",
"@Override\r\n\t\tpublic void remove() {\n\r\n\t\t}",
"public BufferSlot remove();",
"Object remove();",
"public Queue<T> deQueue();",
"public void remove(){\r\n // Does Nothing\r\n }",
"@Override\n\t\t\t\tpublic void remove() {\n\t\t\t\t\t\n\t\t\t\t}",
"@Override\n public PaintOrder remove() {\n if (!queue.isEmpty()) {\n var temp = queue.remove();\n processedOrders ++;\n currentOrders --;\n queuedOrders --;\n return temp; \n }\n return null;\n }",
"public final void remove () {\r\n }",
"@Override\n public void doRemove(String content, MiddleObject midObj) throws ChannelReleaseException {\n }",
"public void remove( IAnswer answerToRemove );",
"public void remove(DBObject dbObjectQuery);",
"@Override\r\n\t\tpublic void remove() {\r\n\t\t\t// YOU DO NOT NEED TO WRITE THIS\r\n\t\t}",
"public void clusterQueueRemoved(StorageQueue queue) throws AndesException {\n try {\n log.info(\"Queue removal request received queue= \" + queue.getName());\n if(!queue.getName().contains(AndesUtils.MQTT_TOPIC_STORAGE_QUEUE_PREFIX)) {\n removeQueue(queue.getName());\n }\n } catch (Exception e) {\n log.error(\"could not remove cluster queue\", e);\n throw new AndesException(\"could not remove cluster queue : \" + queue.toString(), e);\n }\n }",
"void remove(final Task task);",
"public Object remove();",
"public void removed() {\n }",
"private synchronized void remove(int index) {\r\n\t\tif (index >= 0 && index <= docModel.size())\r\n\t\t\ttry {\r\n\t\t\t\tdocModel.remove(index - 1);\r\n\t\t\t} catch (ArrayIndexOutOfBoundsException e) {\r\n\t\t\t\tif (commandsQueue.size() == 0)\r\n\t\t\t\t\tupdateActiveUsers();\r\n\t\t\t}\r\n\t}",
"@Override\r\n\tpublic void replyremove(int crid) throws Exception {\n\t\tdao.replyremove(crid);\r\n\t}",
"public abstract void onRemove();",
"@Override\n public void remove(int no) throws Exception {\n \n }",
"public static void removeByQueueName(String queueName) {\n\t\tgetPersistence().removeByQueueName(queueName);\n\t}",
"void deleteCommand(String commandID);",
"public Object remove(int index){\r\n return dequeue(); //calls the dequeue method\r\n }",
"public void remove(String arg0) {\n\t\t\n\t}",
"public void remove(){\n\t\tqueueArray[1][0] = null;\n\t\tqueueArray[1][1] = null;\n\t}",
"@Override\n public UntagQueueResult untagQueue(UntagQueueRequest request) {\n request = beforeClientExecution(request);\n return executeUntagQueue(request);\n }",
"public void dequeue()\n {\n System.out.println(\"Question #\"+ questionList.get(0).getQNum()\n + \" is removed from the queue.\");\n questionList.remove(0);\n count--;\n }",
"public void removeCommand(final String command) {\n try {\n commands.remove(command);\n } catch (Exception e) {//NOPMD\n e.printStackTrace();//NOPMD\n e.getMessage();//NOPMD\n }\n }",
"public void removeJob(int jNo);",
"public void remove(){throw new RuntimeException(\"Removing() is not implemented\");\r\n\t\t}",
"public abstract Type Dequeue();",
"public E dequeue();",
"@Override\n public void remove(Note note) {\n }",
"public abstract void remove(UIReader reader);",
"Object dequeue();",
"Object dequeue();",
"@DELETE\n @Path(\"/remove\")\n public void delete() {\n System.out.println(\"DELETE invoked\");\n }",
"public void syncRemoveQueue() {\n if (!this.removeQueue.isEmpty()) {\n CommonPacket packet = PacketType.OUT_ENTITY_DESTROY.newInstance(this.removeQueue);\n this.removeQueue.clear();\n Player p = this.playerRef.get();\n if (p != null) {\n PacketUtil.sendPacket(p, packet);\n }\n }\n }",
"public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation>\n deleteQueuedResource(com.google.cloud.tpu.v2alpha1.DeleteQueuedResourceRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getDeleteQueuedResourceMethod(), getCallOptions()), request);\n }",
"E dequeue();",
"E dequeue();",
"E dequeue();",
"void remove(String identifier) throws GuacamoleException;",
"public WriteResult remove(final DBObject query, final DBCollectionRemoveOptions options) {\n notNull(\"query\", query);\n notNull(\"options\", options);\n WriteConcern optionsWriteConcern = options.getWriteConcern();\n WriteConcern writeConcern = optionsWriteConcern != null ? optionsWriteConcern : getWriteConcern();\n DeleteRequest deleteRequest = new DeleteRequest(wrap(query, options.getEncoder())).collation(options.getCollation());\n return executeWriteOperation(createBulkWriteOperationForDelete(getNamespace(), false, writeConcern, retryWrites,\n singletonList(deleteRequest)));\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }",
"public void remove() {\n super.remove();\n }"
] | [
"0.63636386",
"0.62891227",
"0.6254015",
"0.6225597",
"0.61659455",
"0.6156085",
"0.6078197",
"0.6073013",
"0.6073013",
"0.59982127",
"0.5966731",
"0.5966731",
"0.5960517",
"0.59487873",
"0.5946178",
"0.5946178",
"0.5946178",
"0.5946178",
"0.5946178",
"0.59317374",
"0.59016436",
"0.59016436",
"0.59016436",
"0.5821609",
"0.5812558",
"0.5812558",
"0.5812558",
"0.5812558",
"0.5812558",
"0.5763626",
"0.5742087",
"0.5738524",
"0.5738186",
"0.5705613",
"0.5705613",
"0.5702308",
"0.5702308",
"0.5698784",
"0.5688813",
"0.5688813",
"0.5688813",
"0.5688813",
"0.5688813",
"0.5688813",
"0.5688813",
"0.5688813",
"0.56869733",
"0.56816447",
"0.5667115",
"0.5655065",
"0.5644814",
"0.56204516",
"0.5613876",
"0.5613876",
"0.5607673",
"0.55959433",
"0.5589138",
"0.55627537",
"0.55551356",
"0.5550216",
"0.5542937",
"0.55407465",
"0.55365944",
"0.5502214",
"0.5472549",
"0.54621285",
"0.54485303",
"0.5434884",
"0.5425996",
"0.54227906",
"0.5398933",
"0.53948736",
"0.5383361",
"0.5382293",
"0.53704435",
"0.5366726",
"0.5357765",
"0.5348903",
"0.5346408",
"0.5343814",
"0.53434926",
"0.53370285",
"0.53352",
"0.5326919",
"0.5326843",
"0.5326448",
"0.5301355",
"0.5284492",
"0.5276431",
"0.5276431",
"0.5273183",
"0.5271186",
"0.52685976",
"0.52641666",
"0.52641666",
"0.52641666",
"0.52616596",
"0.52613604",
"0.5255105",
"0.5255105",
"0.5255105"
] | 0.0 | -1 |
Also updates the file. | @Override
public String toString() {
StringBuilder docAsStringtoSend = new StringBuilder();
for (String c : docModel) {
if (!c.equals("a")) {
docAsStringtoSend.append(c + "a");
}
}
String newFile = docAsStringtoSend.toString();
updateFile(newFile);
return newFile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateFile() throws IOException;",
"private void updateFile() {\n try {\n this.taskStorage.save(this.taskList);\n this.aliasStorage.save(this.parser);\n } catch (IOException e) {\n System.out.println(\"Master i am unable to save the file!\");\n }\n }",
"private void updateFiles() {\n\t}",
"@Override\n\t\tpublic void update() throws IOException {\n\t\t}",
"void update(FileInfo fileInfo);",
"@Override\n\tpublic File update(File file) {\n\t\treturn (File) this.getSession().merge(file);\n\t}",
"public void reload() {\n\t\tif (file.lastModified() <= fileModified)\n\t\t\treturn;\n\t\n\t\treadFile();\n\t}",
"private void updateFile() {\n\t\tPrintWriter outfile;\n\t\ttry {\n\t\t\toutfile = new PrintWriter(new BufferedWriter(new FileWriter(\"stats.txt\")));\n\t\t\toutfile.println(\"15\"); // this is the number\n\t\t\tfor (Integer i : storeInfo) {\n\t\t\t\toutfile.println(i); // we overwrite the existing files\n\t\t\t}\n\t\t\tfor (String s : charBought) {\n\t\t\t\toutfile.println(s); // overwrite the character\n\t\t\t}\n\t\t\tfor (String s : miscBought) {\n\t\t\t\toutfile.println(s);\n\t\t\t}\n\t\t\toutfile.close();\n\t\t}\n\t\tcatch (IOException ex) {\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}",
"public synchronized void refresh()\n {\n // Update the last modified time\n // This returns zero (i.e. Jan 1 1970) if the file does not exist\n this.lastModifiedTime = this.file.lastModified() / 1000;\n }",
"public void updateFile() {\n try {\n FileWriter fw = new FileWriter(path);\n for (Task t : taskList.getTasks()) {\n fw.write(t.toTxt());\n }\n fw.close();\n } catch (IOException e) {\n System.out.println(\"File cannot be found\");\n }\n }",
"@Override\n\tpublic FileModel update(FileModel c) {\n\t\treturn fm.saveAndFlush(c);\n\t}",
"private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}",
"@Override\n public void commit() throws IOException {\n if (!committed && currentFile != null) {\n long pos = currentFile.getLineReadPos();\n currentFile.setPos(pos);\n currentFile.setLastUpdated(updateTime);\n committed = true;\n }\n }",
"private void updateDataFile(DataFile dataFile) {\n updateMeeting(dataFile.getMeeting());\n }",
"public void update(String filename, SensorData sensorData){\n //Adds the sensor data to the buffer. \n addToBuffer(filename, sensorData);\n \n //Uploads the data to the server if it's turned on. \n if (Server.getInstance().getServerIsOn())\n if(uploadData()){\n //If the upload was successful, clear the buffer.\n clearBuffer();\n }\n }",
"void setNewFile(File file);",
"public void update() throws IOException{\r\n\t\tObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(\"agenda.txt\", false));\r\n\t\toos.writeObject(artists);\r\n\t\toos.writeObject(stages);\r\n\t\toos.writeObject(performances);\r\n\t\tartists.clear();\r\n\t\tstages.clear();\r\n\t\tperformances.clear();\r\n\t\toos.close();\r\n\t}",
"private void updateFile(CrowdinFile _file) {\n String fileN = _file.getFile().getName();\n if (getLog().isDebugEnabled())\n getLog().debug(\"*** Initializing: \" + fileN);\n // Making sure the file is a master file and not a translation\n if (_file.getClass().equals(CrowdinFile.class)) {\n if (getLog().isDebugEnabled())\n getLog().debug(\"*** Init dir\");\n initDir(_file.getCrowdinPath());\n try {\n if (_file.getFile().exists()) {\n \n //escape special character before sync\n FileUtils.replaceCharactersInFile(_file.getFile().getPath(), \"config/special_character_processing.properties\", \"EscapeSpecialCharactersBeforeSyncFromCodeToCrowdin\");\n \n if (!getHelper().elementExists(_file.getCrowdinPath())) {\n if (getLog().isDebugEnabled())\n getLog().debug(\"*** Add file: \" + _file.getCrowdinPath());\n String result = getHelper().addFile(_file);\n if (result.contains(\"success\")) {\n getLog().info(\"File \" + fileN + \" created succesfully.\");\n initTranslations(_file);\n } else {\n getLog().warn(\"Cannot create file '\" + _file.getFile().getPath() + \"'. Reason:\\n\" + result);\n if (_file.isShouldBeCleaned()) {\n _file.getFile().delete();\n }\n }\n } else {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"*** Update file: \" + _file.getCrowdinPath());\n }\n String result = getHelper().updateFile(_file);\n System.out.println(result);\n if (result.contains(\"success\"))\n getLog().info(\"File \" + fileN + \" updated succesfully.\");\n else\n getLog().warn(\"Cannot update file '\" + _file.getFile().getPath() + \"'. Reason:\\n\" + result);\n if (_file.isShouldBeCleaned()) {\n _file.getFile().delete();\n }\n \n //remove escape special character before sync\n FileUtils.replaceCharactersInFile(_file.getFile().getPath(), \"config/special_character_processing.properties\", \"EscapeSpecialCharactersAfterSyncFromCodeToCrowdin\");\n \n }\n } else {\n if (getHelper().elementExists(_file.getCrowdinPath())) {\n if (getLog().isDebugEnabled())\n getLog().debug(\"*** Delete file: \" + _file.getCrowdinPath());\n String result = getHelper().deleteFile(_file);\n if (result.contains(\"success\"))\n getLog().info(\"File \" + fileN + \" deleted succesfully.\");\n else\n getLog().warn(\"Cannot delete file '\" + _file.getFile().getPath() + \"'. Reason:\\n\" + result);\n }\n }\n } catch (MojoExecutionException e) {\n getLog().error(\"Error while updating file '\" + _file.getFile().getPath() + \"'. Exception:\\n\" + e.getMessage());\n }\n }\n }",
"@Override\r\n\tpublic void updateAll() throws IOException {\n\t}",
"public void updateFile(String fname, String content) {\n\t\tprintMsg(\"running updateFiles() in \\\"\" + this.getClass().getName() + \"\\\" class.\");\n\t\tString text = null;\n\t\tPath filepath = Paths.get(theRootPath + System.getProperty(\"file.separator\") + fname);\n\t\tif(Files.exists(filepath)) {\n\t\t\tprintMsg(\"File \" + fname + \" exists, updating...\");\n\t\t\t\n\t\t\tif(content.isEmpty() || content == null) {\n\t\t\t\ttext = String.format(\"%s, testing appending text to an empty file.\\r\\n\", new Date());\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttext = content + \"\\r\\n\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tFiles.write(filepath, text.getBytes(), StandardOpenOption.APPEND);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"private void updateToFile(PQNode node) throws Exception{\n List<PQNode> nodes = retrieveWholeFile(node.getPqIndex());\n int replaceIndex = node.getPqIndex()-bufStart;\n\n nodes.set(replaceIndex,node);\n int fileId = (node.getPqIndex()-1)/ENTRY_BLOCK_SIZE;\n File file = new File(DIRECTORY + getMapFileName(NAME_PATTERN, fileId));\n storeToFile(file,nodes, false);\n }",
"@Override\r\n\tpublic void updateFileData(FileMetaDataEntity userInfo) {\n\t\t\r\n\t}",
"void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }",
"public void updatePathAndFile(String path, String file){\r\n\t\tthis.path = path;\r\n\t\tthis.file = file;\r\n\t}",
"public void refreshData(File file) throws IOException{\n\t\tmodel = new FileDataModel(file);\n\t}",
"public void setFileupdate(Date fileupdate) {\n this.fileupdate = fileupdate;\n }",
"private void updateImageFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(asciiImageFile);\n \t\tout.print(asciiImage(false));\n \t\tout.close();\n \t}",
"public void refreshFileInformation()\n\t\tthrows IOException, SMBException {\n\n\t\t// Get the latest file information for the file\n\n\t\tif ( m_sess instanceof DiskSession) {\n\t\t\tDiskSession diskSess = (DiskSession) m_sess;\n\n\t\t\tFileInfo fInfo = diskSess.getFileInformation( getFileName());\n\t\t\tif ( fInfo != null)\n\t\t\t\tsetFileInformation( fInfo);\n\t\t}\n\t}",
"private void updateDatabaseFile() {\n Log.i(\"updateDatabaseFile\", \"Updating server app database\");\n try {\n FileInputStream inputStream = new FileInputStream(databaseFile);\n DropboxAPI.Entry response = MainActivity.mDBApi.putFileOverwrite(databaseFile.getName(), inputStream,\n databaseFile.length(), null);\n Log.i(\"updateDatabaseFile\", \"The uploaded file's rev is: \" + response.rev);\n } catch (Exception e) {\n Log.e(\"updateDatabaseFile\", e.toString(), e);\n }\n }",
"public void updateScoreFile() {\n try {\n outputStream = new ObjectOutputStream(new FileOutputStream(HIGHSCORE_FILE));\n outputStream.writeObject(scores);\n } catch (FileNotFoundException e) {\n } catch (IOException e) {\n } finally {\n try {\n if (outputStream != null) {\n outputStream.flush();\n outputStream.close();\n }\n } catch (IOException e) {\n }\n }\n }",
"private void setFile() {\n\t}",
"public void updateDoc (DocFile updatefile) throws ParseException, IOException {\n\n // Check if the file extension is valid\n if (updatefile == null) return;\n if (!isValid(updatefile) || !(FileManager.fileExists(updatefile.getId(), updatefile.getFileType()) || pathExists (updatefile.getPath()))) {\n return;\n }\n\n if (FileManager.fileExists(updatefile.getId(), updatefile.getFileType())) {\n String path = FileManager.download(updatefile.getId(), updatefile.getFileType());\n updatefile.setPath(path);\n }\n\n // remove the file from the index and re-add it\n this.removeDoc(updatefile);\n this.addDoc(updatefile);\n //FileManager.cleanTemporaryDownloads();\n }",
"@Test\r\n public void testUpdateFile() {\r\n System.out.println(\"updateFile\");\r\n InparseManager instance = ((InparseManager) new ParserGenerator().getNewApplicationInparser());\r\n try {\r\n File file = File.createTempFile(\"TempInpFile\", null);\r\n instance.setlocalPath(file.getAbsolutePath());\r\n } catch (IOException ex) {\r\n Logger.getLogger(ApplicationInparserTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n instance.updateFile();\r\n // no assertEquals needed because the method itself would throw an error\r\n // if an error occurs check your connection to the internet\r\n }",
"protected void fileSet() throws IOException {\n//\t\tfos = new FileOutputStream(outFile, false);\n//\t\tdos = new DataOutputStream(fos);\n\t\trealWriter = new BufferedWriter(new FileWriter(outFile.getAbsolutePath()));\n\t}",
"private void updateDataFile() throws FileNotFoundException {\n \t\tfinal PrintWriter out = new PrintWriter(calendarDataFile);\n \t\tfor (int x = 0; x < CAL_WIDTH; x++) {\n \t\t\tfor (int y = 0; y < CAL_HEIGHT; y++) {\n \t\t\t\tif (contrib[y][x] == null ||\n \t\t\t\t\tcontrib[y][x].current - contrib[y][x].initial == 0)\n \t\t\t\t{\n \t\t\t\t\tcontinue;\n \t\t\t\t}\n \t\t\t\tout.println(contrib[y][x]);\n \t\t\t}\n \t\t}\n \t\tout.close();\n \t}",
"@Override\n public void update(String fileName) {\n //Responses or action taken after an event occured in publisher and is notified\n System.out.println(\"Email to \" + this.email + \": \\\" The file \" + fileName + \" has been modified!\");\n }",
"public int update(FFileInputDO FFileInput) throws DataAccessException;",
"public void doUpdate() {\n fileChooser.setCurrentDirectory(new File(getPath()));\n fileChooser.rescanCurrentDirectory();\n }",
"@Override\r\n\tpublic int update_file(Map<String, Object> map) throws Exception {\n\t\treturn sql.update(\"cms_board.update_file\", map);\r\n\t}",
"@Override\n public void whenDone() {\n getDocumentController().setFile(fileToSaveTo);\n getDocumentController().setHasChanged(false);\n getDocumentController().notifyChange();\n }",
"void changeFile()\n {\n App app = new App();\n // Loop through the read File\n for (String s : readFile) {\n if (app.containsUtilize(s)) {\n // Changes the first use of utilize with use\n String newTemp = s.replaceFirst(\"utilize\", \"use\");\n // Writes to file\n this.writeFile.add(newTemp);\n } else {\n // not utilize\n this.writeFile.add(s);\n }\n }\n }",
"public static void updateDatabase(){\n\t\ttry {\n\t\t\tPrintWriter pwFLU = new PrintWriter(filePath);\n\t\t\tfor(Entry<String, Pair<FileID, Integer>> entry : Peer.fileList.entrySet()){\n\t\t\t\tString path = entry.getKey();\n\t\t\t\tPair<FileID, Integer> pair = entry.getValue();\n\t\t\t\tpwFLU.println(path + \"|\" + pair.getFirst().toString() + \"|\" + pair.getSecond());\n\t\t\t}\n\t\t\tpwFLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t/*\n\t\t * UPDATE THE CHUNKS\n\t\t */\n\t\ttry {\n\t\t\tPrintWriter pwCLU = new PrintWriter(chunkPath);\n\t\t\tfor(ChunkInfo ci : Peer.chunks){\n\t\t\t\tpwCLU.println(ci.getFileId() + \"|\" + ci.getChunkNo() + \"|\" + ci.getDesiredRD() + \"|\" + ci.getActualRD());\n\t\t\t}\n\t\t\tpwCLU.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public final void run() {\t\n\t\tlong timeStamp = file.lastModified();\n\t if( this.timeStamp != timeStamp ) {\n\t \tthis.timeStamp = timeStamp;\n\t \tonChange(file);\n\t }\n\t}",
"@Override\n\t\tpublic void setEditedContent(CGFile file) {\n\n\t\t}",
"public void update() throws IOException {\n\n\t\tif(this.bdgDataColIdx < 4){\n\t\t\tSystem.err.println(\"Invalid index for bedgraph column of data value. Resetting to 4. Expected >=4. Got \" + this.bdgDataColIdx);\n\t\t\tthis.bdgDataColIdx= 4;\n\t\t}\n\n\t\tif(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.BIGWIG)){\n\t\t\t\n\t\t\tbigWigToScores(this.bigWigReader);\n\t\t\t\n\t\t} else if(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.TDF)){\n\n\t\t\tthis.screenWiggleLocusInfoList= \n\t\t\t\t\tTDFUtils.tdfRangeToScreen(this.getFilename(), this.getGc().getChrom(), \n\t\t\t\t\t\t\tthis.getGc().getFrom(), this.getGc().getTo(), this.getGc().getMapping());\n\t\t\t\n\t\t\tArrayList<Double> screenScores= new ArrayList<Double>();\n\t\t\tfor(ScreenWiggleLocusInfo x : screenWiggleLocusInfoList){\n\t\t\t\tscreenScores.add((double)x.getMeanScore());\n\t\t\t}\n\t\t\tthis.setScreenScores(screenScores);\t\n\t\t\t\n\t\t} else if(Utils.getFileTypeFromName(this.getFilename()).equals(TrackFormat.BEDGRAPH)){\n\n\t\t\t// FIXME: Do not use hardcoded .samTextViewer.tmp.gz!\n\t\t\tif(Utils.hasTabixIndex(this.getFilename())){\n\t\t\t\tbedGraphToScores(this.getFilename());\n\t\t\t} else if(Utils.hasTabixIndex(this.getFilename() + \".samTextViewer.tmp.gz\")){\n\t\t\t\tbedGraphToScores(this.getFilename() + \".samTextViewer.tmp.gz\");\n\t\t\t} else {\n\t\t\t\tblockCompressAndIndex(this.getFilename(), this.getFilename() + \".samTextViewer.tmp.gz\", true);\n\t\t\t\tbedGraphToScores(this.getFilename() + \".samTextViewer.tmp.gz\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Extension (i.e. file type) not recognized for \" + this.getFilename());\n\t\t}\n\t\tthis.setYLimitMin(this.getYLimitMin());\n\t\tthis.setYLimitMax(this.getYLimitMax());\n\t}",
"@Override\n public void notify(String newFileContent) {\n Repository.getRepositoryInstance().updateStockOrders(newFileContent);\n//end of modifiable zone..................E/a170c128-ca49-4fc4-abdd-43b714481007\n }",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"@Override\n\t\tpublic void update() {\n\n\t\t}",
"private void setDataFileChanged(String newPath) {\r\n \t\t// set file to be reloaded if changed\r\n \t\tif ((null == dataFile && !newPath.equals(\"\"))\r\n \t\t\t\t|| (null != dataFile && !dataFile.equals(newPath))) {\r\n \t\t\treloadFile = true;\r\n \t\t}\r\n \t\t// copy new value\r\n \t\tdataFile = newPath;\r\n \t\t// add log\r\n \t\tif (localLOGV) {\r\n \t\t\tLog.i(TAG, \"Reload file set to \" + String.valueOf(reloadFile));\r\n \t\t}\r\n \t}",
"@Override\n public void setFile(File f) {\n \n }",
"public void updatePersistence() {\n\t\tFile file = new File(\"data.txt\");\n\t\tserializeToFile(file);\n\t\tupdatePersistentSettings();\n\t}",
"public void testModifyFile() throws Exception {\n System.out.print(\".. Testing file modification ..\");\n String filesystem = \"VSS \" + workingDirectory + File.separator + \"Work\";\n Node filesystemNode = new Node(new ExplorerOperator().repositoryTab().getRootNode(), filesystem);\n Node A_FileNode = new Node( filesystemNode, \"A_File [Current] (\" + userName + \")\");\n BufferedWriter writer = new BufferedWriter(new FileWriter(workingDirectory + File.separator + \"Work\" + File.separator + \"A_File.java\"));\n writer.write(\"/** This is testing A_File.java file.\\n */\\n public class Testing_File {\\n int i;\\n }\\n\");\n writer.flush();\n writer.close();\n new OpenAction().perform(A_FileNode);\n new Action(VERSIONING_MENU + \"|\" + REFRESH, REFRESH).perform(A_FileNode);\n Thread.sleep(5000);\n A_FileNode = new Node( filesystemNode, \"A_File [Locally Modified] (\" + userName + \")\");\n System.out.println(\". done !\");\n }",
"@Override\n public void update() {\n updateBuffs();\n }",
"private void serialize() {\r\n if (newFile) {\r\n this.newFile = this.serializeAs();\r\n } else if (!newFile && !path.equals(\"\")) {\r\n sr.save(this.path);\r\n }\r\n }",
"public void save() {\n\t\tFile f = null;\n\t\tif ((jfc.showSaveDialog(null) == JFileChooser.APPROVE_OPTION) &&\n\t\t\t\t(!jfc.getSelectedFile().exists() ||\n\t\t\t\t\t(JOptionPane.showConfirmDialog(null,\n\t\t\t\t\t\"File \" + jfc.getSelectedFile().getAbsolutePath() +\n\t\t\t\t\t\" exists.\\nDo you want to replace it?\", \"Are you sure?\",\n\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION)))\n\t\t\tf = jfc.getSelectedFile();\n\t\tif (f == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tFileOutputStream fos = WavWrite.open(f.getPath(),\n\t\t\t\t\t(int)currentFile.length, currentFile.channels,\n\t\t\t\t\t(int)Math.round(currentFile.frameRate),\n\t\t\t\t\tcurrentFile.frameSize / currentFile.channels);\n\t\t\tinitBeats();\n\t\t\tsetPosition(0);\n\t\t\twhile (currentPosition < currentFile.length) {\n\t\t\t\tint bytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\tif (bytesRead > 0) {\n\t\t\t\t\taddBeats(readBuffer, bytesRead);\n\t\t\t\t\tfos.write(readBuffer, 0, bytesRead);\n\t\t\t\t\tcurrentPosition += bytesRead;\n\t\t\t\t} else\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (currentPosition < currentFile.length)\n\t\t\t\tSystem.err.println(\"saveAudio(): error: wrote \" + currentPosition +\n\t\t\t\t\t\t\" of \" + currentFile.length + \" bytes\");\n\t\t\tfos.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"IOException while saving data\");\n\t\t}\n\t}",
"public void update(){}",
"public void update(){}",
"public void testChanges(String filePath) {\n Object[] fileObjectArray = fetchTextFile(filePath);\n String newFile = prepareText(fileObjectArray);\n System.out.println(newFile);\n }",
"public void updateMenuFile() {\n\t\tif (fileMenu != null) {\n\t\t\tfileMenu.update();\n\t\t}\n\t}",
"private synchronized void updateFilename()\n\t{\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDate date = cal.getTime();\n\n\t\tcal.add(Calendar.DATE, 1);\n\t\tcal.set(Calendar.HOUR_OF_DAY, 0);\n\t\tcal.set(Calendar.MINUTE , 0);\n\t\tcal.set(Calendar.SECOND, 0);\n\n\t\tfilename = prefix + dateFormat.format(date);\n\t\tnextRotate = cal.getTimeInMillis();\n\t}",
"@ActionKey(\"/api/blog/updateFile\")\n public void updateFile() throws IOException {\n Integer id = getParaToInt(\"id\");\n File blogFile = getFile(\"blog\").getFile();\n if (id == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n if (!blogFile.getName().endsWith(\".md\")) {\n mResult.fail(110);\n renderJson(mResult);\n return;\n }\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(new FileInputStream(blogFile), \"UTF-8\"));\n StringBuilder builder = new StringBuilder();\n String line = \"\";\n while (line != null) {\n line = reader.readLine();\n builder.append(line);\n }\n mResult.success(mBlogService.update(id, \"content\", builder.toString()));\n renderJson(mResult);\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n mResult.fail(109);\n if (reader != null) {\n reader.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }",
"public void refresh() {\n try (InputStream stream = new FileInputStream(file)) {\n Map<String, String> properties = new HashMap<>();\n Properties props = new Properties();\n props.load(stream);\n for (String key : props.stringPropertyNames()) {\n properties.put(key, props.getProperty(key));\n }\n LOG.log(Level.FINEST, \"Loaded properties from \" + file);\n this.properties = properties;\n } catch (IOException e) {\n LOG.log(Level.FINEST, \"Cannot load properties from \" + file, e);\n }\n }",
"@Override\n public void setSaveFile(File file)\n {\n \n }",
"public void newFile() {\r\n \t\tcurFile = null;\r\n \t}",
"public void update() {\n\t\t\n\t}",
"private void refreshIO() throws IOException {\n FileIO io = fileIOFactory.build(segmentId);\n\n io.position(io().position());\n\n io().close();\n\n this.io = io;\n }",
"public void rewritingHashedFile(File path) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(path);\n\t\tbyte[] inputBytes = new byte[fis.available() - 64];\n\t\tfis.read(inputBytes);\n\t\tfis.close();\n\t\t\n\t\tFileOutputStream fos = new FileOutputStream(path);\n\t\tfos.write(inputBytes);\n\t\tfos.close();\n\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"@Override\r\n\t\tpublic void update() {\n\t\t\t\r\n\t\t}",
"public long saveupdateProperty(Property property, MultipartFile file) {\n\t\treturn 0;\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void update() {\n\t}",
"public void setFile(File file);",
"public void update() {}",
"private void fileModify(String text) throws IOException {\n text += \"\\n\";\n try {\n File filePath;\n filePath = Environment.getExternalStoragePublicDirectory(Environment.DIRECTORY_DOCUMENTS);\n if (!filePath.exists()) {\n if (filePath.mkdir()) ; //directory is created;\n }\n\n fileOutputStream = new FileOutputStream(file);\n fileOutputStream.write(text.getBytes());\n\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n fileOutputStream.flush();\n try {\n fileOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }",
"public void touchOne(File inFile)\n {\n mFiles.add(inFile);\n }",
"private void updateFileResource(Long fileId) {\n editResourceService.getVMFile(fileId, new AsyncCallback<VMFile>() {\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n FileTreeNode targetNode = (FileTreeNode) fileTreeNodeFactory.findTreeNode(tree, fileId);\n targetNode.setResource(result);\n }\n });\n }",
"@Override\n public void update(long id) {\n try (Session session = createSessionFactory().openSession()) {\n\n Transaction transaction = session.getTransaction();\n transaction.begin();\n\n File findItem = (File) findById(id);\n findItem.setName(\"new_novel\");\n findItem.setSize(10);\n //action\n session.update(findItem);\n //close session/tr\n transaction.commit();\n throw new IOException();\n } catch (HibernateException e) {\n System.out.println(\"Nothing update!\" + e.getMessage());\n }\n catch (IOException e){\n System.out.println(\"Something wrong in File update method\");\n e.printStackTrace();\n }\n\n }",
"public void update(int idIndex, String inpuFilePath) {\n\t\tString url = IP + String.valueOf(PORT) + \"/update\";\n\t\thelper(url, idIndex, inpuFilePath);\n\t}",
"public void updateMbsProFile(File driveFile, DocumentFile mbsProFile) throws IOException\n {\n mDrive.downloadFile(driveFile.getId(), mContext.getContentResolver().openOutputStream(mbsProFile.getUri()));\n }",
"@Override\r\n public void update() {\n ArrayList<String>Lines=new ArrayList<>();\r\n File file =new File(\"/home/yara/Documents/4year/OODP/Task.txt\");\r\n BufferedReader br = null;\r\n try {\r\n br = new BufferedReader(new FileReader(\"/home/yara/Documents/4year/OODP/Task.txt\"));\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(Task.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n String str;\r\n String UID=id.getText();\r\n try {\r\n while((str=br.readLine()) !=null)\r\n {\r\n \r\n Lines.add(str);\r\n }\r\n String UpadetString = id.getText() +\" , \"+ name.getText()+\" , \"+ date_start.getText()+\" , \"+ date_finish.getText()+\" , \"+status.getText();\r\n for (int i=0 ;i<Lines.size();i++)\r\n {\r\n String line=Lines.get(i).trim();\r\n String[] datarow =line.split(\" , \");\r\n if(datarow[0].equals(UID))\r\n {\r\n Lines.set(i,UpadetString );\r\n } \r\n }\r\n PrintWriter Pwriter = new PrintWriter(file);\r\n Pwriter.print(\"\");\r\n Pwriter.close();\r\n \r\n File f=new File(\"/home/yara/Documents/4year/OODP/Task.txt\");\r\n FileWriter writer = new FileWriter(f.getAbsoluteFile(), true);\r\n BufferedWriter bw=new BufferedWriter(writer);\r\n for(String x:Lines)\r\n {\r\n bw.write(x);\r\n bw.newLine();\r\n }\r\n bw.close();\r\n \r\n } catch (IOException ex) {\r\n Logger.getLogger(Task.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n }",
"protected abstract void writeFile();",
"public void save() {\n JAXB.marshal(this, new File(fileName));\n }",
"public void updateData() {}",
"public void flushFile(SrvSession sess, TreeConnection tree, NetworkFile file)\n throws IOException {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB flushFile()\");\n \n // Flush any buffered data\n \n file.flushFile();\n }",
"public void updateInfo() {\n\t}",
"public void updateState( RssGeneratedFile rssFile )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_UPDATE );\n daoUtil.setInt( 1, rssFile.getState( ) );\n //FIXME The date should be rssFile.getUpdateDate( )\n daoUtil.setTimestamp( 2, new java.sql.Timestamp( new java.util.Date( ).getTime( ) ) );\n daoUtil.setInt( 3, rssFile.getId( ) );\n daoUtil.executeUpdate( );\n daoUtil.free( );\n }",
"public void updateProperties() {\n\t\t\tEnumeration iter = properties.keys();\r\n\t\t\twhile (iter.hasMoreElements()) {\r\n\t\t\t\tString key = (String) iter.nextElement();\r\n\t\t\t\tif (key.startsWith(ConfigParameters.RECENT_FILE_PREFIX)) {\r\n\t\t\t\t\tproperties.remove(key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Save the list of recent file information\r\n\t\t\tfor (int i = 0; i < files.length; i++) {\r\n\t\t\t\tproperties.put(ConfigParameters.RECENT_FILE_PREFIX + (i + 1),\r\n\t\t\t\t\t\tfiles[i]);\r\n\t\t\t}\r\n\t\t\t// Save the number of recent files\r\n\t\t\tproperties.remove(ConfigParameters.RECENT_FILE_NUMBER);\r\n\t\t\tproperties.put(ConfigParameters.RECENT_FILE_NUMBER, files.length\r\n\t\t\t\t\t+ \"\");\r\n\t\t\t// Save to external file\r\n\t\t\tsim.core.AppEngine.getInstance().system.systemParameters\r\n\t\t\t\t\t.saveProperties(properties);\r\n\t\t\tdirty = false;\r\n\t\t}",
"public void reload() {\n if ( _build_file != null ) {\n openBuildFile( _build_file );\n }\n }",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void update() {\n\t\t\r\n\t}",
"private void closeFile() {\n if (fileSpec != null) {\n boolean modOK = modIfChanged();\n if (currentFileModified) {\n filePrefs.handleClose();\n }\n }\n currentFileModified = false;\n }",
"private void updateImformation(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tint fileId= Integer.parseInt(request.getParameter(\"fileId\"));\n\t\tString caption= request.getParameter(\"caption\");\n\t\tString label= request.getParameter(\"label\");\n\t\tString fileName= request.getParameter(\"fileName\");\n\t\tFiles file= new Files(fileId, fileName, label, caption);\n\t\tnew FilesDAO().update(fileId, caption, label);;\n\t\tlistingPage(request, response);\n\t}",
"Object getUptodatefile();",
"public void update()\n\t{\n\t\tsuper.update();\n\t}"
] | [
"0.8506746",
"0.77838236",
"0.7551653",
"0.7492907",
"0.709788",
"0.7092099",
"0.7090458",
"0.7089305",
"0.7052082",
"0.69570684",
"0.69240427",
"0.68568957",
"0.67104405",
"0.66449183",
"0.6623295",
"0.65701765",
"0.65581506",
"0.6549171",
"0.6520574",
"0.6510382",
"0.6471073",
"0.6453144",
"0.6423578",
"0.6419287",
"0.64115256",
"0.6410379",
"0.6391788",
"0.63816845",
"0.6361558",
"0.63582736",
"0.63202816",
"0.6318639",
"0.62645996",
"0.625726",
"0.62537646",
"0.62152463",
"0.6208752",
"0.62010205",
"0.6162741",
"0.6161253",
"0.6153132",
"0.6125857",
"0.6100792",
"0.60571015",
"0.602408",
"0.60219514",
"0.59984803",
"0.59984803",
"0.59984803",
"0.59925854",
"0.5982068",
"0.59797496",
"0.59779614",
"0.5960337",
"0.590773",
"0.5905869",
"0.5899769",
"0.5899769",
"0.58952135",
"0.5889504",
"0.5884249",
"0.5871297",
"0.5851854",
"0.5847764",
"0.58384824",
"0.58291924",
"0.5827669",
"0.5825618",
"0.57996726",
"0.57996726",
"0.57936656",
"0.57890075",
"0.57890075",
"0.57890075",
"0.57890075",
"0.5781293",
"0.57785964",
"0.5777062",
"0.57633054",
"0.5748953",
"0.57360095",
"0.57291037",
"0.5724217",
"0.57229096",
"0.57123154",
"0.5711473",
"0.57092834",
"0.5699119",
"0.5690838",
"0.5686699",
"0.568572",
"0.5681947",
"0.5672272",
"0.5672272",
"0.5672272",
"0.5672272",
"0.5672272",
"0.5672215",
"0.567007",
"0.5669455",
"0.5658374"
] | 0.0 | -1 |
Returns the object with the settings used for calls to listWorkflows. | public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>
listWorkflowsSettings() {
return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public Workflows workflows() {\n return this.workflows;\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"Settings getSettings();",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public int getWorkflowId(){return workflowId;}",
"List<SettingDTO> getSettings();",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public WorkflowsHistory workflowsHistory() {\n return this.workflowsHistory;\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public List<Workflow> getAllWorkflows() throws PortalException;",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public PagedCallSettings<ListTablesRequest, ListTablesResponse, ListTablesPagedResponse>\n listTablesSettings() {\n return listTablesSettings;\n }",
"public List<Setting> getSettings() {\n // Usuario logeado\n String username = SecurityContextHolder.getContext().getAuthentication().getName();\n\n // Entidad del usuario\n User user = userRepository.findByUsername((username)).orElseThrow();\n\n return settingRepository.findByUserId(user.getId());\n }",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public PagedCallSettings.Builder<ListTablesRequest, ListTablesResponse, ListTablesPagedResponse>\n listTablesSettings() {\n return listTablesSettings;\n }",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"private List<LdapSettingModel> getLdapSettingForView() {\n List<LdapSettingModel> settingModelList = new ArrayList<>();\n List<LdapSetting> ldapSettings =\n centralConfigService.getMutableDescriptor().getSecurity().getLdapSettings();\n ldapSettings.forEach(ldapSetting -> settingModelList.add(new LdapSettingModel(ldapSetting, true)));\n return settingModelList;\n }",
"public com.ys.hmawfm.wfms.services.service.WFMS_WorkflowConfigLocalService getWFMS_WorkflowConfigLocalService() {\n\t\treturn wfms_WorkflowConfigLocalService;\n\t}",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"public WorkflowsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"public List<Settings> getAllSettings() {\n return this.settingsRepository.findAll();\n }",
"public UserSettings getUserSettings() {\n\t\treturn userSettings;\n\t}",
"public String getWorkflowName() {\r\n\t\treturn this.workflowName;\r\n\t}",
"public MovSettings getMovSettings() {\n return this.movSettings;\n }",
"public WorkflowDTO getAPIWorkflowStatus(String uuid, String workflowType)\n throws APIManagementException {\n return APIUtil.getAPIWorkflowStatus(uuid, workflowType);\n }",
"public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"public WorkspaceSettings() {\n super();\n }",
"public List<WTask> getTaskList(){return taskList;}",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"void getSettings(ControlsSettings settings);",
"public String getSettings();",
"public TempWorkflow(String name)\n\t{\n\t\tthis.workflowName = name;\t\t\n\t\tthis.taskList = new ArrayList<TempWTask>(); //Initialize a list to record the set of tasks\n\t}",
"public Settings loadDefault() {\n return new Settings();\n }",
"public interface IWorkflowStatus {\n\t/**\n\t * @return the type\n\t */\n\tpublic WorkflowEvent getType();\n\t/**\n\t * @param type the type to set\n\t */\n\tpublic void setType(WorkflowEvent event);\n\t/**\n\t * @return the topic\n\t */\n\tpublic String getTopic();\n\t/**\n\t * @param topic the topic to set\n\t */\n\tpublic void setTopic(String topic);\n\t/**\n\t * @return the attempt\n\t */\n\tpublic int getAttempt();\n\t/**\n\t * @param attempt the attempt to set\n\t */\n\tpublic void setAttempt(int attempt);\n\t/**\n\t * @return the lecturer\n\t */\n\tpublic String getLecturer();\n\t/**\n\t * @param lecturer the lecturer to set\n\t */\n\tpublic void setLecturer(String lecturer);\n\t/**\n\t * @return the secondExaminer\n\t */\n\tpublic String getSecondExaminer();\n\t/**\n\t * @param secondExaminer the secondExaminer to set\n\t */\n\tpublic void setSecondExaminer(String examinar);\n\t/**\n\t * @return the dateOfIssue\n\t */\n\tpublic String getDateOfIssue();\n\t/**\n\t * @param dateOfIssue the dateOfIssue to set\n\t */\n\tpublic void setDateOfIssue(String date);\n\t/**\n\t * @return the deadline\n\t */\n\tpublic String getDeadline();\n\t/**\n\t * @param deadline the deadline to set\n\t */\n\tpublic void setDeadline(String deadline);\n\t/**\n\t * @return the overtime\n\t */\n\tpublic int getOvertime();\n\t/**\n\t * @param overtime the overtime to set\n\t */\n\tpublic void setOvertime(int overtime);\n\t/**\n\t * @return the dateOfHandOver\n\t */\n\tpublic String getDateOfHandOver();\n\t/**\n\t * @param dateOfHandOver the dateOfHandOver to set\n\t */\n\tpublic void setDateOfHandOver(String date);\n\t/**\n\t * @return the resultFileUploadState\n\t */\n\tpublic WorkflowStatusEnum getResultFileUploadState();\n\t/**\n\t * @param resultFileUploadState the resultFileUploadState to set\n\t */\n\tpublic void setResultFileUploadState(WorkflowStatusEnum phase);\n\t/**\n\t * @return the workFlowState\n\t */\n\tpublic String getWorkFlowState();\n\t/**\n\t * @param workFlowState the workFlowState to set\n\t */\n\tpublic void setWorkFlowState(String workFlowState);\n}",
"public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}",
"Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }",
"Map<String, String> getAllAsMap() {\n return Collections.unmodifiableMap(settings);\n }",
"public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}",
"@Override\n public List<Param<?>> params() {\n return this.settings;\n }",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}",
"public UnaryCallSettings<GetTableRequest, Table> getTableSettings() {\n return getTableSettings;\n }",
"public static TaskListModel getInstance(Context context)\n {\n \tif (taskListModel == null)\n \t{\n \t\ttaskListModel = new TaskListModel(context);\n \t}\n \t\n \treturn taskListModel;\n }",
"@Enumerated (EnumType.STRING)\r\n @Column (name=\"WORKFLOW_STATUS\")\r\n public Status getWorkflowStatus() {\r\n return workflowStatus;\r\n }",
"private Map<String, String> getActiveWorkflows(ResourceResolver resourceResolver,\n final Map<String, String> workflowMap)\n throws RepositoryException, PersistenceException {\n\n final Map<String, String> activeWorkflowMap = new LinkedHashMap<String, String>();\n final WorkflowSession workflowSession =\n workflowService.getWorkflowSession(resourceResolver.adaptTo(Session.class));\n\n boolean dirty = false;\n for (final Map.Entry<String, String> entry : workflowMap.entrySet()) {\n final String workflowId = entry.getValue();\n\n final Workflow workflow;\n try {\n workflow = workflowSession.getWorkflow(workflowId);\n if (workflow.isActive()) {\n activeWorkflowMap.put(entry.getKey(), workflow.getId());\n }\n\n final Resource resource = resourceResolver.getResource(entry.getKey());\n final ModifiableValueMap mvm = resource.adaptTo(ModifiableValueMap.class);\n\n if (!StringUtils.equals(mvm.get(KEY_STATE, String.class), workflow.getState())) {\n mvm.put(KEY_STATE, workflow.getState());\n dirty = true;\n }\n } catch (WorkflowException e) {\n log.error(\"Could not get workflow with id [ {} ]. {}\", workflowId, e);\n }\n }\n\n if (dirty) {\n resourceResolver.commit();\n }\n\n return activeWorkflowMap;\n }",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"public LineChartSeriesSettings getSettings() {\n return this.settings;\n }",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"public SettingsScreen getSettingsScreen() {\n return settingsScreen;\n }",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"@Override\n\tpublic long getWorkflowId() {\n\t\treturn _scienceApp.getWorkflowId();\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public UnaryCallSettings<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public Workflow() {\n\t\tsuper();\n\t}",
"public ObjectWorkflowState getObjectWorkflow( String token, int objectType, String objectId, int objectVersion ) throws Exception{\n \tString url = Constants.HOST+Constants.OBJECT_CREATION_URL+objectType+\"/\"+objectId+\"/\"+objectVersion+\"/\"+\"workflowstate\";\n \t\n \tCloseableHttpClient httpclient = HttpClients.createDefault();\n try {\n HttpGet httpget = new HttpGet(url);\n httpget.setHeader(\"X-Authentication\", token);\n\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // Create a custom response handler\n ResponseHandler<String> responseHandler = new ResponseHandler<String>() {\n\n @Override\n public String handleResponse(\n final HttpResponse response) throws ClientProtocolException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n return entity != null ? EntityUtils.toString(entity) : null;\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n }\n\n };\n String responseBody = httpclient.execute(httpget, responseHandler);\n System.out.println(\"----------------------------------------\");\n System.out.println(responseBody);\n \n ObjectMapper mapper = new ObjectMapper();\n String jsonInString = responseBody;\n \n ObjectWorkflowState objectWorkflow = mapper.readValue(jsonInString, ObjectWorkflowState.class);\n \n return objectWorkflow;\n \n } finally {\n httpclient.close();\n }\n \n // return new ObjectWorkflowState();\n }",
"public Settings(){}",
"@Override\n public String getObjectName() {\n return getWorkflowName();\n }",
"List<Workflow> findByIdTask( int nIdTask );",
"public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}",
"public abstract SharedPreferences getStateSettings();",
"public PagedCallSettings.Builder<\n ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>\n listDatabasesSettings() {\n return listDatabasesSettings;\n }",
"protected WorkflowExecutor getWorkflowExecutor(String workflowType) throws APIManagementException {\n try {\n return WorkflowExecutorFactory.getInstance().getWorkflowExecutor(workflowType);\n } catch (WorkflowException e) {\n handleException(\"Error while obtaining WorkflowExecutor instance for workflow type :\" + workflowType);\n }\n return null;\n }",
"public WorkflowInstanceStatus getStatus() {\n return this.status;\n }",
"public GetSettings() {\r\n }",
"public PagedCallSettings<ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>\n listDatabasesSettings() {\n return listDatabasesSettings;\n }",
"public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"com.google.apps.alertcenter.v1beta1.SettingsOrBuilder getSettingsOrBuilder();",
"public static synchronized ActivityTaskManager getInstance() {\n if (sInstance == null) {\n sInstance = new ActivityTaskManager();\n }\n return sInstance;\n }"
] | [
"0.77528334",
"0.7351804",
"0.73194444",
"0.66365904",
"0.6443085",
"0.63540846",
"0.6348518",
"0.61353266",
"0.606127",
"0.60518575",
"0.6038668",
"0.589771",
"0.5889098",
"0.57902",
"0.57498604",
"0.56907505",
"0.564059",
"0.55879176",
"0.55647624",
"0.5517399",
"0.5517399",
"0.5515481",
"0.5498608",
"0.54809326",
"0.5399496",
"0.5378722",
"0.5366679",
"0.534745",
"0.53469217",
"0.53184795",
"0.52971923",
"0.52708817",
"0.52669406",
"0.52390665",
"0.52314633",
"0.5230485",
"0.519835",
"0.515507",
"0.5140338",
"0.51349586",
"0.5121092",
"0.5053674",
"0.50457186",
"0.5012497",
"0.5011357",
"0.49903616",
"0.49898177",
"0.49853894",
"0.49575362",
"0.49279127",
"0.48854116",
"0.486008",
"0.4838847",
"0.4829064",
"0.48272818",
"0.4824604",
"0.4812766",
"0.4803095",
"0.47893244",
"0.47777352",
"0.47751117",
"0.47702536",
"0.47691646",
"0.4769127",
"0.47632226",
"0.47631896",
"0.47495028",
"0.47495028",
"0.47418678",
"0.47313273",
"0.47243986",
"0.47216883",
"0.47154677",
"0.471513",
"0.47139716",
"0.47089267",
"0.47057477",
"0.47034067",
"0.46984306",
"0.468873",
"0.46760333",
"0.46735024",
"0.46656546",
"0.46650007",
"0.46521068",
"0.46503177",
"0.46499962",
"0.46475485",
"0.4647362",
"0.46470466",
"0.46415934",
"0.46360195",
"0.4628405",
"0.46270674",
"0.4622532",
"0.4618897",
"0.45996684",
"0.45923042",
"0.45730448",
"0.4565194"
] | 0.7442203 | 1 |
Returns the object with the settings used for calls to getWorkflow. | public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {
return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"Settings getSettings();",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public int getWorkflowId(){return workflowId;}",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"public Workflows workflows() {\n return this.workflows;\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public Settings loadDefault() {\n return new Settings();\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"public Workflow() {\n\t\tsuper();\n\t}",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"void getSettings(ControlsSettings settings);",
"public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}",
"public final ExperimentWorkflow getWorkflow( String etype ) {\r\n \r\n // Workflow, depending on the experiment type:\r\n if( AdminManagerImpl.IDENTIFY.equals(etype)) {\r\n log.info(\"Running an Identify experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof IdentifyWorkflow) ) )\r\n ewfCache = new IdentifyWorkflow();\r\n \r\n } else if( AdminManagerImpl.MIGRATE.equals(etype)) {\r\n log.info(\"Running a Migrate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof MigrateWorkflow) ) )\r\n ewfCache = new MigrateWorkflow();\r\n \r\n } else if( AdminManagerImpl.EMULATE.equals(etype)) {\r\n log.info(\"Running a Emulate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ViewerWorkflow) ) )\r\n ewfCache = new ViewerWorkflow();\r\n \r\n } else if( AdminManagerImpl.EXECUTABLEPP.equals(etype)) {\r\n log.info(\"Running an Executable PP experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ExecutablePPWorkflow) ) )\r\n ewfCache = new ExecutablePPWorkflow();\r\n \r\n } else {\r\n log.error(\"Unknown experiment type: \"+etype);\r\n \r\n }\r\n\r\n // Ensure the parameters are stored/remembered:\r\n if( ewfCache != null ) {\r\n ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject(\"ExperimentBean\");\r\n try {\r\n \tif(ewfCache.getParameters().equals(expBean.getExperiment().getExperimentExecutable().getParameters())){\r\n \t\t//no update - don't call the time consuming ewfCache.setParameters\r\n \t}else{\r\n \t\tewfCache.setParameters(expBean.getExperiment().getExperimentExecutable().getParameters());\r\n \t}\r\n \r\n } catch (Exception e) {\r\n //Version v1.0 - the ExperimentExecutable().getParameters() aren't any longer used! All Information is encoded in a WFConf object\r\n \t//TODO AL remove the Parameters from the ExperimentExecutable AND the ExpTypeBackingBean\r\n }\r\n }\r\n return ewfCache;\r\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public String getWorkflowName() {\r\n\t\treturn this.workflowName;\r\n\t}",
"public ObjectWorkflowState getObjectWorkflow( String token, int objectType, String objectId, int objectVersion ) throws Exception{\n \tString url = Constants.HOST+Constants.OBJECT_CREATION_URL+objectType+\"/\"+objectId+\"/\"+objectVersion+\"/\"+\"workflowstate\";\n \t\n \tCloseableHttpClient httpclient = HttpClients.createDefault();\n try {\n HttpGet httpget = new HttpGet(url);\n httpget.setHeader(\"X-Authentication\", token);\n\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // Create a custom response handler\n ResponseHandler<String> responseHandler = new ResponseHandler<String>() {\n\n @Override\n public String handleResponse(\n final HttpResponse response) throws ClientProtocolException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n return entity != null ? EntityUtils.toString(entity) : null;\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n }\n\n };\n String responseBody = httpclient.execute(httpget, responseHandler);\n System.out.println(\"----------------------------------------\");\n System.out.println(responseBody);\n \n ObjectMapper mapper = new ObjectMapper();\n String jsonInString = responseBody;\n \n ObjectWorkflowState objectWorkflow = mapper.readValue(jsonInString, ObjectWorkflowState.class);\n \n return objectWorkflow;\n \n } finally {\n httpclient.close();\n }\n \n // return new ObjectWorkflowState();\n }",
"protected WorkflowExecutor getWorkflowExecutor(String workflowType) throws APIManagementException {\n try {\n return WorkflowExecutorFactory.getInstance().getWorkflowExecutor(workflowType);\n } catch (WorkflowException e) {\n handleException(\"Error while obtaining WorkflowExecutor instance for workflow type :\" + workflowType);\n }\n return null;\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public T get() {\n\t\treturn get(ModSettings.currentContext);\n\t}",
"@Override\n\tpublic long getWorkflowId() {\n\t\treturn _scienceApp.getWorkflowId();\n\t}",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"public UserSettings getUserSettings() {\n\t\treturn userSettings;\n\t}",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"@Override\n public String getObjectName() {\n return getWorkflowName();\n }",
"public abstract SharedPreferences getStateSettings();",
"public GenericValue toGenericValue(final OfBizDelegator ofBizDelegator) {\n return ofBizDelegator.makeValue(\"Workflow\", new FieldMap()\n .add(\"id\", id)\n .add(\"name\", name)\n .add(\"creator\", creator)\n .add(\"descriptor\", descriptor)\n .add(\"islocked\", islocked)\n );\n }",
"public GetSettings() {\r\n }",
"public possibleSettings setting (){\n\t\treturn setting;\n\t}",
"UserSettings getByUser();",
"public interface IWorkflowStatus {\n\t/**\n\t * @return the type\n\t */\n\tpublic WorkflowEvent getType();\n\t/**\n\t * @param type the type to set\n\t */\n\tpublic void setType(WorkflowEvent event);\n\t/**\n\t * @return the topic\n\t */\n\tpublic String getTopic();\n\t/**\n\t * @param topic the topic to set\n\t */\n\tpublic void setTopic(String topic);\n\t/**\n\t * @return the attempt\n\t */\n\tpublic int getAttempt();\n\t/**\n\t * @param attempt the attempt to set\n\t */\n\tpublic void setAttempt(int attempt);\n\t/**\n\t * @return the lecturer\n\t */\n\tpublic String getLecturer();\n\t/**\n\t * @param lecturer the lecturer to set\n\t */\n\tpublic void setLecturer(String lecturer);\n\t/**\n\t * @return the secondExaminer\n\t */\n\tpublic String getSecondExaminer();\n\t/**\n\t * @param secondExaminer the secondExaminer to set\n\t */\n\tpublic void setSecondExaminer(String examinar);\n\t/**\n\t * @return the dateOfIssue\n\t */\n\tpublic String getDateOfIssue();\n\t/**\n\t * @param dateOfIssue the dateOfIssue to set\n\t */\n\tpublic void setDateOfIssue(String date);\n\t/**\n\t * @return the deadline\n\t */\n\tpublic String getDeadline();\n\t/**\n\t * @param deadline the deadline to set\n\t */\n\tpublic void setDeadline(String deadline);\n\t/**\n\t * @return the overtime\n\t */\n\tpublic int getOvertime();\n\t/**\n\t * @param overtime the overtime to set\n\t */\n\tpublic void setOvertime(int overtime);\n\t/**\n\t * @return the dateOfHandOver\n\t */\n\tpublic String getDateOfHandOver();\n\t/**\n\t * @param dateOfHandOver the dateOfHandOver to set\n\t */\n\tpublic void setDateOfHandOver(String date);\n\t/**\n\t * @return the resultFileUploadState\n\t */\n\tpublic WorkflowStatusEnum getResultFileUploadState();\n\t/**\n\t * @param resultFileUploadState the resultFileUploadState to set\n\t */\n\tpublic void setResultFileUploadState(WorkflowStatusEnum phase);\n\t/**\n\t * @return the workFlowState\n\t */\n\tpublic String getWorkFlowState();\n\t/**\n\t * @param workFlowState the workFlowState to set\n\t */\n\tpublic void setWorkFlowState(String workFlowState);\n}",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"public WorkflowStatus getStatus() {\n\t\treturn status;\n\t}",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public WorkflowResource() {\r\n\t}",
"public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }",
"long getWorkflowID();",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"public WorkflowExecutionInfo getExecutionInfo() {\n return executionInfo;\n }",
"public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }",
"public interface WorkflowReader {\n\t/**\n\t * Gives the name of the workflow (a string made of alphanumeric characters only, where the first character is alphabetic).\n\t * @return the name of the workflow\n\t */\n\tpublic String getName();\n\t\n\t/**\n\t * Gives the actions defined for this workflow.\n\t * @return a set of interfaces for accessing information about defined actions\n\t */\n\tpublic Set<ActionReader> getActions();\n\t\n\t/**\n\t * Gives the known processes that instantiate this workflow.\n\t * @return a set of interfaces for accessing the information of known processes that instantiate this workflow\n\t */\n\tpublic Set<ProcessReader> getProcesses();\n\t\n\t/**\n\t * Gives the action with the given name.\n\t * @param name the name (a string made of alphanumeric characters only, where the first character is alphabetic)\n\t * @return an interface for accessing information about the action with the given name\n\t * or null if this action is not in the workflow.\n\t */\n\tpublic ActionReader getAction(String name);\n}",
"private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }",
"WorkingTask getWorkingTask();",
"public static synchronized ActivityTaskManager getInstance() {\n if (sInstance == null) {\n sInstance = new ActivityTaskManager();\n }\n return sInstance;\n }",
"protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public String getSettings();",
"public WorkflowDTO getAPIWorkflowStatus(String uuid, String workflowType)\n throws APIManagementException {\n return APIUtil.getAPIWorkflowStatus(uuid, workflowType);\n }",
"GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }",
"public Settings(){}",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public static ViewParameters getInstance ()\r\n {\r\n return Holder.INSTANCE;\r\n }",
"public MovSettings getMovSettings() {\n return this.movSettings;\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public int getAD_Workflow_ID();",
"public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}",
"public GameSettings getGameSettings() {\r\n return this.gameSettings;\r\n }",
"private static Option<ConfiguredWorkflowRef> createConfiguredWorkflowRef(String workflowId, String workflowParamsJson) {\n return Util.createConfiguredWorkflowRef(option(workflowId).bind(trimToNone),\n option(workflowParamsJson).bind(trimToNone));\n }",
"public com.ys.hmawfm.wfms.services.service.WFMS_WorkflowConfigLocalService getWFMS_WorkflowConfigLocalService() {\n\t\treturn wfms_WorkflowConfigLocalService;\n\t}",
"private LifecycleHolder get(Context context) {\n if (context == null) {\n throw new IllegalArgumentException(\"You cannot start a load on a null Context\");\n } else if (!isOnMainThread() && !(context instanceof Application)) {\n if (context instanceof FragmentActivity) {\n return get((FragmentActivity) context);\n } else if (context instanceof Activity) {\n return get((Activity) context);\n } else if (context instanceof ContextWrapper) {\n return get(((ContextWrapper) context).getBaseContext());\n }\n }\n\n return getApplicationLifecycle();\n }",
"public WorkspaceSettings() {\n super();\n }",
"public WorkflowsExample() {\n oredCriteria = new ArrayList<Criteria>();\n }",
"protected void setWorkflowService(WorkflowService service) {\n this.workflowService = service;\n }",
"@Override\r\n\tpublic Settings getSettings(String personId) {\n\t\treturn null;\r\n\t}"
] | [
"0.7402797",
"0.65829134",
"0.6569188",
"0.6482814",
"0.6398887",
"0.63577294",
"0.6282311",
"0.62547994",
"0.6234278",
"0.61531216",
"0.6011736",
"0.5980361",
"0.59579873",
"0.5951297",
"0.59450155",
"0.59450155",
"0.5935413",
"0.5860268",
"0.58574396",
"0.5848011",
"0.5838606",
"0.5826624",
"0.5790499",
"0.5704173",
"0.569695",
"0.5694396",
"0.56092864",
"0.55962086",
"0.5510413",
"0.55020255",
"0.5475457",
"0.5424392",
"0.54120654",
"0.54109436",
"0.53885454",
"0.53765094",
"0.53653145",
"0.5339883",
"0.53266174",
"0.5307538",
"0.52919656",
"0.5243101",
"0.52225715",
"0.5219157",
"0.52159745",
"0.5196108",
"0.51958483",
"0.5178068",
"0.51662964",
"0.51391387",
"0.5133991",
"0.5119378",
"0.5112444",
"0.5111186",
"0.5102781",
"0.50810075",
"0.50796735",
"0.5070204",
"0.5066477",
"0.50559455",
"0.5053457",
"0.5050162",
"0.50469244",
"0.5046414",
"0.50406146",
"0.5029078",
"0.5026415",
"0.5017523",
"0.50120544",
"0.501057",
"0.500631",
"0.50049376",
"0.49895087",
"0.49784803",
"0.49748972",
"0.49700323",
"0.49666163",
"0.4958836",
"0.49571386",
"0.49561918",
"0.49518377",
"0.49514332",
"0.49511105",
"0.49478808",
"0.49439865",
"0.49383214",
"0.49320275",
"0.4931605",
"0.4928386",
"0.49279222",
"0.4927849",
"0.49254352",
"0.49104986",
"0.48920298",
"0.4891268",
"0.48891392",
"0.48864192",
"0.48809633",
"0.48683208",
"0.48654014"
] | 0.72824514 | 1 |
Returns the object with the settings used for calls to createWorkflow. | public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {
return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"Settings getSettings();",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Workflow() {\n\t\tsuper();\n\t}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"public static Settings get() {\n return INSTANCE;\n }",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public int getWorkflowId(){return workflowId;}",
"public Settings(){}",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public EWorkflowFactoryImpl() {\n\t\tsuper();\n\t}",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }",
"public WorkflowResource() {\r\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public WorkspaceSettings() {\n super();\n }",
"public GenericValue toGenericValue(final OfBizDelegator ofBizDelegator) {\n return ofBizDelegator.makeValue(\"Workflow\", new FieldMap()\n .add(\"id\", id)\n .add(\"name\", name)\n .add(\"creator\", creator)\n .add(\"descriptor\", descriptor)\n .add(\"islocked\", islocked)\n );\n }",
"private Settings() { }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"private Settings() {}",
"public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"private static Option<ConfiguredWorkflowRef> createConfiguredWorkflowRef(String workflowId, String workflowParamsJson) {\n return Util.createConfiguredWorkflowRef(option(workflowId).bind(trimToNone),\n option(workflowParamsJson).bind(trimToNone));\n }",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"void getSettings(ControlsSettings settings);",
"public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }",
"VmSettingsType createVmSettingsType();",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public GetSettings() {\r\n }",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }",
"UserSettings getOrCreateByUser();",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public Workflows workflows() {\n return this.workflows;\n }",
"public static WorkflowDTO fromGenericValue(GenericValue gv) {\n return new WorkflowDTO(\n gv.getLong(\"id\"),\n gv.getString(\"name\"),\n gv.getString(\"creator\"),\n gv.getString(\"descriptor\"),\n gv.getString(\"islocked\")\n );\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public TempWorkflow(String name)\n\t{\n\t\tthis.workflowName = name;\t\t\n\t\tthis.taskList = new ArrayList<TempWTask>(); //Initialize a list to record the set of tasks\n\t}",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"ConfigModel createInstanceOfConfigModel();",
"public Workflow init() throws IOException, ReflectiveOperationException {\n List<UtteranceProcessor> processors = new ArrayList<>();\n for (UtteranceProcessorConfig upc : processorConfigs) {\n processors.add(upc.init());\n }\n \n List<IntentMatcher> matchers = new ArrayList<>();\n if (matcherConfigs.size() < 1) {\n matchers.add(IntentMatcherConfig.getDefault());\n } else {\n for (IntentMatcherConfig imc : matcherConfigs) {\n matchers.add(imc.init());\n }\n }\n \n List<IntentResolver> resolvers = new ArrayList<>();\n if (resolverConfigs.size() < 1) {\n resolvers.add(IntentResolverConfig.getDefault());\n } else {\n for (IntentResolverConfig irc : resolverConfigs) {\n resolvers.add(irc.init());\n }\n }\n \n List<PromptHandler> promptHandlers = new ArrayList<>();\n if (promptHandlerConfigs.size() < 1) {\n promptHandlers.add(PromptHandlerConfig.getDefault());\n } else {\n for (PromptHandlerConfig phc : promptHandlerConfigs) {\n promptHandlers.add(phc.init());\n }\n }\n return DefaultWorkflowFactory.get().createDefaultWorkflow(\n name, processors, matchers, resolvers, promptHandlers);\n }",
"public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}",
"SettingType createSettingType();",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"Settings ()\n {\n }",
"protected WorkflowExecutor getWorkflowExecutor(String workflowType) throws APIManagementException {\n try {\n return WorkflowExecutorFactory.getInstance().getWorkflowExecutor(workflowType);\n } catch (WorkflowException e) {\n handleException(\"Error while obtaining WorkflowExecutor instance for workflow type :\" + workflowType);\n }\n return null;\n }",
"public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}",
"public final ExperimentWorkflow getWorkflow( String etype ) {\r\n \r\n // Workflow, depending on the experiment type:\r\n if( AdminManagerImpl.IDENTIFY.equals(etype)) {\r\n log.info(\"Running an Identify experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof IdentifyWorkflow) ) )\r\n ewfCache = new IdentifyWorkflow();\r\n \r\n } else if( AdminManagerImpl.MIGRATE.equals(etype)) {\r\n log.info(\"Running a Migrate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof MigrateWorkflow) ) )\r\n ewfCache = new MigrateWorkflow();\r\n \r\n } else if( AdminManagerImpl.EMULATE.equals(etype)) {\r\n log.info(\"Running a Emulate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ViewerWorkflow) ) )\r\n ewfCache = new ViewerWorkflow();\r\n \r\n } else if( AdminManagerImpl.EXECUTABLEPP.equals(etype)) {\r\n log.info(\"Running an Executable PP experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ExecutablePPWorkflow) ) )\r\n ewfCache = new ExecutablePPWorkflow();\r\n \r\n } else {\r\n log.error(\"Unknown experiment type: \"+etype);\r\n \r\n }\r\n\r\n // Ensure the parameters are stored/remembered:\r\n if( ewfCache != null ) {\r\n ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject(\"ExperimentBean\");\r\n try {\r\n \tif(ewfCache.getParameters().equals(expBean.getExperiment().getExperimentExecutable().getParameters())){\r\n \t\t//no update - don't call the time consuming ewfCache.setParameters\r\n \t}else{\r\n \t\tewfCache.setParameters(expBean.getExperiment().getExperimentExecutable().getParameters());\r\n \t}\r\n \r\n } catch (Exception e) {\r\n //Version v1.0 - the ExperimentExecutable().getParameters() aren't any longer used! All Information is encoded in a WFConf object\r\n \t//TODO AL remove the Parameters from the ExperimentExecutable AND the ExpTypeBackingBean\r\n }\r\n }\r\n return ewfCache;\r\n }",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"@Override\n public String getObjectName() {\n return getWorkflowName();\n }",
"interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }",
"public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }",
"GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }",
"public SurveyInstance createSurveyInstance() {\n return new SurveyInstance();\n }",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }",
"private APIStateWorkflowDTO setAPIStateWorkflowDTOParameters(String currentStatus, String action, String name,\n String context, String apiType, String version,\n String providerName, int apiOrApiProductId,\n String uuid, String gatewayVendor, String workflowType,\n WorkflowExecutor apiStateWFExecutor) {\n\n WorkflowProperties workflowProperties = getAPIManagerConfiguration().getWorkflowProperties();\n APIStateWorkflowDTO stateWorkflowDTO = new APIStateWorkflowDTO();\n stateWorkflowDTO.setApiCurrentState(currentStatus);\n stateWorkflowDTO.setApiLCAction(action);\n stateWorkflowDTO.setApiName(name);\n stateWorkflowDTO.setApiContext(context);\n stateWorkflowDTO.setApiType(apiType);\n stateWorkflowDTO.setApiVersion(version);\n stateWorkflowDTO.setApiProvider(providerName);\n stateWorkflowDTO.setGatewayVendor(gatewayVendor);\n stateWorkflowDTO.setCallbackUrl(workflowProperties.getWorkflowCallbackAPI());\n stateWorkflowDTO.setExternalWorkflowReference(apiStateWFExecutor.generateUUID());\n stateWorkflowDTO.setTenantId(tenantId);\n stateWorkflowDTO.setTenantDomain(this.tenantDomain);\n stateWorkflowDTO.setWorkflowType(workflowType);\n stateWorkflowDTO.setStatus(WorkflowStatus.CREATED);\n stateWorkflowDTO.setCreatedTime(System.currentTimeMillis());\n stateWorkflowDTO.setWorkflowReference(Integer.toString(apiOrApiProductId));\n stateWorkflowDTO.setInvoker(this.username);\n stateWorkflowDTO.setApiUUID(uuid);\n String workflowDescription = \"Pending lifecycle state change action: \" + action;\n stateWorkflowDTO.setWorkflowDescription(workflowDescription);\n return stateWorkflowDTO;\n }",
"public static synchronized ActivityTaskManager getInstance() {\n if (sInstance == null) {\n sInstance = new ActivityTaskManager();\n }\n return sInstance;\n }",
"public static SOEASYParameters getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SOEASYParameters();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static ViewParameters getInstance ()\r\n {\r\n return Holder.INSTANCE;\r\n }",
"private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}",
"Transaction createTransaction(Settings settings);",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"private static HashMap<String, String> settings() {\n HashMap<String, String> settings = new HashMap<String, String>();\n settings.put(\"db.default.url\", \"jdbc:mysql://api.template-java.com:3306/play_test\");\n settings.put(\"db.default.username\", \"root\");\n settings.put(\"db.default.password\", \"\");\n settings.put(\"db.default.jndiName\", \"DefaultDS\");\n settings.put(\"jpa.default\", \"mySqlPersistenceUnit\");\n return(settings);\n }",
"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}",
"private Settings()\n {}",
"public abstract SharedPreferences getStateSettings();"
] | [
"0.7088415",
"0.70583254",
"0.6937857",
"0.6778521",
"0.66879827",
"0.6253988",
"0.6237724",
"0.58984935",
"0.58694243",
"0.58568114",
"0.58123714",
"0.5779357",
"0.56780964",
"0.5640501",
"0.5629588",
"0.5587648",
"0.55853236",
"0.5581309",
"0.5578356",
"0.552674",
"0.5482839",
"0.54694563",
"0.54694563",
"0.5464887",
"0.54347855",
"0.54280204",
"0.54130185",
"0.5402908",
"0.5388937",
"0.5332754",
"0.532347",
"0.53156585",
"0.52898616",
"0.52803516",
"0.5277012",
"0.52625936",
"0.5234052",
"0.52037376",
"0.5185478",
"0.51683944",
"0.51657224",
"0.51582634",
"0.5146279",
"0.51306677",
"0.5121493",
"0.51144856",
"0.510268",
"0.50999",
"0.5092822",
"0.50859576",
"0.50825936",
"0.5075477",
"0.5035948",
"0.502044",
"0.50135154",
"0.5013212",
"0.50062686",
"0.5003737",
"0.50019926",
"0.49930984",
"0.4981836",
"0.49795622",
"0.49738967",
"0.49732313",
"0.49683654",
"0.49661085",
"0.49532706",
"0.49496132",
"0.49414343",
"0.49302253",
"0.49236268",
"0.49192077",
"0.4912745",
"0.49040222",
"0.49002364",
"0.48961562",
"0.48917136",
"0.48856202",
"0.48854768",
"0.48769894",
"0.4871073",
"0.48595157",
"0.4856255",
"0.4855508",
"0.4853502",
"0.48389527",
"0.4831991",
"0.4821446",
"0.48212534",
"0.48024422",
"0.4797787",
"0.47942057",
"0.47833154",
"0.4779595",
"0.47696447",
"0.47685668",
"0.47596845",
"0.47569108",
"0.47445956",
"0.47427896"
] | 0.70881844 | 1 |
Returns the object with the settings used for calls to createWorkflow. | public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>
createWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"Settings getSettings();",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Workflow() {\n\t\tsuper();\n\t}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"public static Settings get() {\n return INSTANCE;\n }",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public int getWorkflowId(){return workflowId;}",
"public Settings(){}",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public EWorkflowFactoryImpl() {\n\t\tsuper();\n\t}",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"private static void makeInstance(){\n\n if(settingsFile==null){\n settingsFile = new MetadataFile(SETTINGS_FILE_PATH);\n }\n\n if(!settingsFile.exists()){\n settingsFile.create();\n }\n\n if(tagListeners==null){\n tagListeners= new HashMap<>();\n }\n\n }",
"private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }",
"public WorkflowResource() {\r\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public WorkspaceSettings() {\n super();\n }",
"public GenericValue toGenericValue(final OfBizDelegator ofBizDelegator) {\n return ofBizDelegator.makeValue(\"Workflow\", new FieldMap()\n .add(\"id\", id)\n .add(\"name\", name)\n .add(\"creator\", creator)\n .add(\"descriptor\", descriptor)\n .add(\"islocked\", islocked)\n );\n }",
"private Settings() { }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"private Settings() {}",
"public static Object createTaskObject(){\n try {\n\n return taskModel.make()\n .load(ClassLoader.getSystemClassLoader(), ClassLoadingStrategy.Default.WRAPPER)\n .getLoaded()\n .newInstance();\n\n\n } catch (InstantiationException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"private static Option<ConfiguredWorkflowRef> createConfiguredWorkflowRef(String workflowId, String workflowParamsJson) {\n return Util.createConfiguredWorkflowRef(option(workflowId).bind(trimToNone),\n option(workflowParamsJson).bind(trimToNone));\n }",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"void getSettings(ControlsSettings settings);",
"public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }",
"VmSettingsType createVmSettingsType();",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public GetSettings() {\r\n }",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public static Setup getInstance () {\n return SetupHolder.INSTANCE;\n }",
"UserSettings getOrCreateByUser();",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public Workflows workflows() {\n return this.workflows;\n }",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public static WorkflowDTO fromGenericValue(GenericValue gv) {\n return new WorkflowDTO(\n gv.getLong(\"id\"),\n gv.getString(\"name\"),\n gv.getString(\"creator\"),\n gv.getString(\"descriptor\"),\n gv.getString(\"islocked\")\n );\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public TempWorkflow(String name)\n\t{\n\t\tthis.workflowName = name;\t\t\n\t\tthis.taskList = new ArrayList<TempWTask>(); //Initialize a list to record the set of tasks\n\t}",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"ConfigModel createInstanceOfConfigModel();",
"public Workflow init() throws IOException, ReflectiveOperationException {\n List<UtteranceProcessor> processors = new ArrayList<>();\n for (UtteranceProcessorConfig upc : processorConfigs) {\n processors.add(upc.init());\n }\n \n List<IntentMatcher> matchers = new ArrayList<>();\n if (matcherConfigs.size() < 1) {\n matchers.add(IntentMatcherConfig.getDefault());\n } else {\n for (IntentMatcherConfig imc : matcherConfigs) {\n matchers.add(imc.init());\n }\n }\n \n List<IntentResolver> resolvers = new ArrayList<>();\n if (resolverConfigs.size() < 1) {\n resolvers.add(IntentResolverConfig.getDefault());\n } else {\n for (IntentResolverConfig irc : resolverConfigs) {\n resolvers.add(irc.init());\n }\n }\n \n List<PromptHandler> promptHandlers = new ArrayList<>();\n if (promptHandlerConfigs.size() < 1) {\n promptHandlers.add(PromptHandlerConfig.getDefault());\n } else {\n for (PromptHandlerConfig phc : promptHandlerConfigs) {\n promptHandlers.add(phc.init());\n }\n }\n return DefaultWorkflowFactory.get().createDefaultWorkflow(\n name, processors, matchers, resolvers, promptHandlers);\n }",
"public WorkflowsPage () {\n\t\t\t\tPageFactory.initElements(driver, this);\n\t\t\t}",
"SettingType createSettingType();",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"Settings ()\n {\n }",
"protected WorkflowExecutor getWorkflowExecutor(String workflowType) throws APIManagementException {\n try {\n return WorkflowExecutorFactory.getInstance().getWorkflowExecutor(workflowType);\n } catch (WorkflowException e) {\n handleException(\"Error while obtaining WorkflowExecutor instance for workflow type :\" + workflowType);\n }\n return null;\n }",
"public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}",
"public final ExperimentWorkflow getWorkflow( String etype ) {\r\n \r\n // Workflow, depending on the experiment type:\r\n if( AdminManagerImpl.IDENTIFY.equals(etype)) {\r\n log.info(\"Running an Identify experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof IdentifyWorkflow) ) )\r\n ewfCache = new IdentifyWorkflow();\r\n \r\n } else if( AdminManagerImpl.MIGRATE.equals(etype)) {\r\n log.info(\"Running a Migrate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof MigrateWorkflow) ) )\r\n ewfCache = new MigrateWorkflow();\r\n \r\n } else if( AdminManagerImpl.EMULATE.equals(etype)) {\r\n log.info(\"Running a Emulate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ViewerWorkflow) ) )\r\n ewfCache = new ViewerWorkflow();\r\n \r\n } else if( AdminManagerImpl.EXECUTABLEPP.equals(etype)) {\r\n log.info(\"Running an Executable PP experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ExecutablePPWorkflow) ) )\r\n ewfCache = new ExecutablePPWorkflow();\r\n \r\n } else {\r\n log.error(\"Unknown experiment type: \"+etype);\r\n \r\n }\r\n\r\n // Ensure the parameters are stored/remembered:\r\n if( ewfCache != null ) {\r\n ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject(\"ExperimentBean\");\r\n try {\r\n \tif(ewfCache.getParameters().equals(expBean.getExperiment().getExperimentExecutable().getParameters())){\r\n \t\t//no update - don't call the time consuming ewfCache.setParameters\r\n \t}else{\r\n \t\tewfCache.setParameters(expBean.getExperiment().getExperimentExecutable().getParameters());\r\n \t}\r\n \r\n } catch (Exception e) {\r\n //Version v1.0 - the ExperimentExecutable().getParameters() aren't any longer used! All Information is encoded in a WFConf object\r\n \t//TODO AL remove the Parameters from the ExperimentExecutable AND the ExpTypeBackingBean\r\n }\r\n }\r\n return ewfCache;\r\n }",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"@Override\n public String getObjectName() {\n return getWorkflowName();\n }",
"interface WithTensorFlowSettings {\n /**\n * Specifies tensorFlowSettings.\n * @param tensorFlowSettings the tensorFlowSettings parameter value\n * @return the next definition stage\n */\n WithCreate withTensorFlowSettings(TensorFlowSettings tensorFlowSettings);\n }",
"public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }",
"GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }",
"public SurveyInstance createSurveyInstance() {\n return new SurveyInstance();\n }",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"private APIStateWorkflowDTO setAPIStateWorkflowDTOParameters(String currentStatus, String action, String name,\n String context, String apiType, String version,\n String providerName, int apiOrApiProductId,\n String uuid, String gatewayVendor, String workflowType,\n WorkflowExecutor apiStateWFExecutor) {\n\n WorkflowProperties workflowProperties = getAPIManagerConfiguration().getWorkflowProperties();\n APIStateWorkflowDTO stateWorkflowDTO = new APIStateWorkflowDTO();\n stateWorkflowDTO.setApiCurrentState(currentStatus);\n stateWorkflowDTO.setApiLCAction(action);\n stateWorkflowDTO.setApiName(name);\n stateWorkflowDTO.setApiContext(context);\n stateWorkflowDTO.setApiType(apiType);\n stateWorkflowDTO.setApiVersion(version);\n stateWorkflowDTO.setApiProvider(providerName);\n stateWorkflowDTO.setGatewayVendor(gatewayVendor);\n stateWorkflowDTO.setCallbackUrl(workflowProperties.getWorkflowCallbackAPI());\n stateWorkflowDTO.setExternalWorkflowReference(apiStateWFExecutor.generateUUID());\n stateWorkflowDTO.setTenantId(tenantId);\n stateWorkflowDTO.setTenantDomain(this.tenantDomain);\n stateWorkflowDTO.setWorkflowType(workflowType);\n stateWorkflowDTO.setStatus(WorkflowStatus.CREATED);\n stateWorkflowDTO.setCreatedTime(System.currentTimeMillis());\n stateWorkflowDTO.setWorkflowReference(Integer.toString(apiOrApiProductId));\n stateWorkflowDTO.setInvoker(this.username);\n stateWorkflowDTO.setApiUUID(uuid);\n String workflowDescription = \"Pending lifecycle state change action: \" + action;\n stateWorkflowDTO.setWorkflowDescription(workflowDescription);\n return stateWorkflowDTO;\n }",
"public static SPSConfig createSPSConfig() {\n return new SPSConfig();\n }",
"public static synchronized ActivityTaskManager getInstance() {\n if (sInstance == null) {\n sInstance = new ActivityTaskManager();\n }\n return sInstance;\n }",
"public static SOEASYParameters getInstance() {\n\t\tif (instance == null) {\n\t\t\tinstance = new SOEASYParameters();\n\t\t}\n\n\t\treturn instance;\n\t}",
"public static ViewParameters getInstance ()\r\n {\r\n return Holder.INSTANCE;\r\n }",
"private SettingsManager() {\r\n\t\tthis.loadSettings();\r\n\t}",
"Transaction createTransaction(Settings settings);",
"protected JobConf createJobConf() \n {\n return new JobConf();\n }",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"private static HashMap<String, String> settings() {\n HashMap<String, String> settings = new HashMap<String, String>();\n settings.put(\"db.default.url\", \"jdbc:mysql://api.template-java.com:3306/play_test\");\n settings.put(\"db.default.username\", \"root\");\n settings.put(\"db.default.password\", \"\");\n settings.put(\"db.default.jndiName\", \"DefaultDS\");\n settings.put(\"jpa.default\", \"mySqlPersistenceUnit\");\n return(settings);\n }",
"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}",
"private Settings()\n {}",
"public abstract SharedPreferences getStateSettings();"
] | [
"0.7089068",
"0.70882386",
"0.70592517",
"0.69389886",
"0.6687756",
"0.6253731",
"0.62370723",
"0.58959717",
"0.5870429",
"0.585731",
"0.58130985",
"0.5777454",
"0.5677465",
"0.56424415",
"0.56304806",
"0.5585896",
"0.55832237",
"0.5582383",
"0.55763704",
"0.5525372",
"0.5480716",
"0.547068",
"0.547068",
"0.5465779",
"0.54326713",
"0.5429233",
"0.54132843",
"0.5401054",
"0.5387398",
"0.53326154",
"0.5324473",
"0.5315745",
"0.528923",
"0.52797264",
"0.5277503",
"0.5261307",
"0.52326655",
"0.5203934",
"0.51839465",
"0.51659757",
"0.5164295",
"0.5156811",
"0.5146273",
"0.5130515",
"0.5122186",
"0.51122254",
"0.5101105",
"0.51001894",
"0.50909376",
"0.5086285",
"0.50804466",
"0.5075404",
"0.503416",
"0.50188565",
"0.5011858",
"0.5011627",
"0.50059074",
"0.50023454",
"0.5000535",
"0.49910656",
"0.49799737",
"0.4979094",
"0.49738583",
"0.49725682",
"0.4970783",
"0.49663678",
"0.4951529",
"0.49506846",
"0.49399993",
"0.49304318",
"0.49218172",
"0.49175906",
"0.49137923",
"0.4904253",
"0.4898731",
"0.48941427",
"0.4890244",
"0.48860127",
"0.48849207",
"0.4878152",
"0.48689252",
"0.48614252",
"0.4856695",
"0.48530844",
"0.48511335",
"0.4838314",
"0.4833411",
"0.48231977",
"0.48199284",
"0.48026705",
"0.47964767",
"0.4791689",
"0.47813052",
"0.47806668",
"0.47689408",
"0.4767713",
"0.4757888",
"0.47574642",
"0.47431415",
"0.47417527"
] | 0.6779816 | 4 |
Returns the object with the settings used for calls to deleteWorkflow. | public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {
return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public int getWorkflowId(){return workflowId;}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"Settings getSettings();",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public UnaryCallSettings<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"public UnaryCallSettings<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public UnaryCallSettings.Builder<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public Settings(){}",
"public UnaryCallSettings<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"long getWorkflowID();",
"@Nullable\n public UserSettings delete() throws ClientException {\n return send(HttpMethod.DELETE, null);\n }",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"void deleteWorkflowRequest(String requestId) throws WorkflowException;",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public UnaryCallSettings.Builder<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"go.micro.runtime.RuntimeOuterClass.DeleteOptions getOptions();",
"public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}",
"public DeleteProject propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@GET\r\n\t@Path(\"/deletegraph\")\r\n\tpublic Response deleteGraph(@HeaderParam(\"x-session-token\") String sSessionId, @QueryParam(\"workflowId\") String sWorkflowId) {\r\n\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" )\");\r\n\t\ttry {\r\n\t\t\t// Check User\r\n\t\t\tif (Utils.isNullOrEmpty(sSessionId)) return Response.status(Status.UNAUTHORIZED).build();\r\n\t\t\tUser oUser = Wasdi.getUserFromSession(sSessionId);\r\n\r\n\t\t\tif (oUser == null) {\r\n\t\t\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" ): invalid session\");\r\n\t\t\t\treturn Response.status(Status.UNAUTHORIZED).build();\r\n\t\t\t}\r\n\t\t\tif (Utils.isNullOrEmpty(oUser.getUserId())) return Response.status(Status.UNAUTHORIZED).build();\r\n\r\n\t\t\tString sUserId = oUser.getUserId();\r\n\r\n\t\t\tSnapWorkflowRepository oSnapWorkflowRepository = new SnapWorkflowRepository();\r\n\t\t\tSnapWorkflow oWorkflow = oSnapWorkflowRepository.getSnapWorkflow(sWorkflowId);\r\n\r\n\t\t\tif (oWorkflow == null) return Response.status(Status.INTERNAL_SERVER_ERROR).build();\r\n\t\t\tif (oWorkflow.getUserId().equals(sUserId) == false) return Response.status(Status.UNAUTHORIZED).build();\r\n\r\n\t\t\t// Get Download Path\r\n\t\t\tString sBasePath = Wasdi.getDownloadPath(m_oServletConfig);\r\n\t\t\tsBasePath += \"workflows/\";\r\n\t\t\tString sWorkflowFilePath = sBasePath + oWorkflow.getWorkflowId() + \".xml\";\r\n\r\n\t\t\tif (!Utils.isNullOrEmpty(sWorkflowFilePath)) {\r\n\t\t\t\tFile oWorkflowFile = new File(sWorkflowFilePath);\r\n\t\t\t\tif (oWorkflowFile.exists()) {\r\n\t\t\t\t\tif (!oWorkflowFile.delete()) {\r\n\t\t\t\t\t\tUtils.debugLog(\"ProcessingResource.deleteWorkflow: Error deleting the workflow file \" + oWorkflow.getFilePath());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tUtils.debugLog(\"ProcessingResource.deleteWorkflow: workflow file path is null or empty.\");\r\n\t\t\t}\r\n\r\n\t\t\toSnapWorkflowRepository.deleteSnapWorkflow(sWorkflowId);\r\n\t\t} catch (Exception oE) {\r\n\t\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" ): \" + oE);\r\n\t\t\treturn Response.serverError().build();\r\n\t\t}\r\n\t\treturn Response.ok().build();\r\n\t}",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"public WorkspaceSettings() {\n super();\n }",
"public int getAD_Workflow_ID();",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public Long getSettingsId() {\n\t\treturn settingsId;\n\t}",
"@Override\r\n\tpublic Settings getSettings(String personId) {\n\t\treturn null;\r\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public void setAD_Workflow_ID (int AD_Workflow_ID);",
"private Settings() {}",
"@Transactional()\n\tprivate boolean deleteWorkflow(int requestTypeId,AuthDetailsVo authDetailsVo) throws CommonException {\n\t\tint count = 0;\n\n\t\ttry {\n\t\t\tcount = (int) (long) requestTypeDAO.findDeleteWorkflow(requestTypeId,authDetailsVo);\n\t\t\tif (count > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception exe) {\n\n\t\t\tthrow new CommonException(getMessage(\"dataFailure\",authDetailsVo));\n\t\t}\n\t\treturn false;\n\n\t}",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"@Override\n public void cleanUpPendingTask(String workflowExtRef) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Starting cleanup task for APIStateChangeWSWorkflowExecutor for :\" + workflowExtRef);\n }\n String errorMsg;\n super.cleanUpPendingTask(workflowExtRef);\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n apiMgtDAO.deleteWorkflowRequest(workflowExtRef);\n } catch (APIManagementException axisFault) {\n errorMsg = \"Error sending out cancel pending application approval process message. cause: \" + axisFault\n .getMessage();\n throw new WorkflowException(errorMsg, axisFault);\n }\n }",
"private Settings() { }",
"public JButtonOperator btSettings() {\n if (_btSettings==null) {\n _btSettings = new JButtonOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_Properties\"));\n }\n return _btSettings;\n }",
"public ObjectWorkflowState getObjectWorkflow( String token, int objectType, String objectId, int objectVersion ) throws Exception{\n \tString url = Constants.HOST+Constants.OBJECT_CREATION_URL+objectType+\"/\"+objectId+\"/\"+objectVersion+\"/\"+\"workflowstate\";\n \t\n \tCloseableHttpClient httpclient = HttpClients.createDefault();\n try {\n HttpGet httpget = new HttpGet(url);\n httpget.setHeader(\"X-Authentication\", token);\n\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // Create a custom response handler\n ResponseHandler<String> responseHandler = new ResponseHandler<String>() {\n\n @Override\n public String handleResponse(\n final HttpResponse response) throws ClientProtocolException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n return entity != null ? EntityUtils.toString(entity) : null;\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n }\n\n };\n String responseBody = httpclient.execute(httpget, responseHandler);\n System.out.println(\"----------------------------------------\");\n System.out.println(responseBody);\n \n ObjectMapper mapper = new ObjectMapper();\n String jsonInString = responseBody;\n \n ObjectWorkflowState objectWorkflow = mapper.readValue(jsonInString, ObjectWorkflowState.class);\n \n return objectWorkflow;\n \n } finally {\n httpclient.close();\n }\n \n // return new ObjectWorkflowState();\n }",
"void getSettings(ControlsSettings settings);",
"private static Option<ConfiguredWorkflowRef> createConfiguredWorkflowRef(String workflowId, String workflowParamsJson) {\n return Util.createConfiguredWorkflowRef(option(workflowId).bind(trimToNone),\n option(workflowParamsJson).bind(trimToNone));\n }",
"public Workflows workflows() {\n return this.workflows;\n }",
"@Override\n\tpublic long getWorkflowId() {\n\t\treturn _scienceApp.getWorkflowId();\n\t}",
"public DeleteScheduler propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"Map<String, Object> deleteConfig(Request request, String type, String id);",
"io.dstore.values.BooleanValue getDeleteCampaign();",
"public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static FluentdRemoteSettings getInstance() {\n return INSTANCE;\n }",
"public static CppTestRuleSetDAOImpl getInstance()\r\n {\r\n return instance;\r\n }",
"TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack();",
"public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}",
"public TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack() {\n if (packCase_ == 4) {\n return (TaskProtobufWrapper.DeleteTaskPack) pack_;\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n }",
"public Workflow() {\n\t\tsuper();\n\t}",
"public abstract SharedPreferences getStateSettings();",
"io.dstore.values.BooleanValueOrBuilder getDeleteCampaignOrBuilder();",
"PendingDelete(Index index, IndexSettings settings) {\n this.index = index;\n this.shardId = -1;\n this.settings = settings;\n this.deleteIndex = true;\n }",
"public TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack() {\n if (deleteTaskPackBuilder_ == null) {\n if (packCase_ == 4) {\n return (TaskProtobufWrapper.DeleteTaskPack) pack_;\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n } else {\n if (packCase_ == 4) {\n return deleteTaskPackBuilder_.getMessage();\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n }\n }",
"public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }",
"public static DocumentationSettings getDefault(){\n return INSTANCE;\n }",
"public static TodoData getInstance() {\n return instance;\n }",
"public static ViewParameters getInstance ()\r\n {\r\n return Holder.INSTANCE;\r\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public DeleteOAuth propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"@Override\r\n\tpublic void delete(ReportingUrlCreation transientInstance){\n\t\ttry {\r\n\t\t\tgetSession().delete(transientInstance);\r\n\t\t} catch (RuntimeException re) {\r\n\t\t\tre.printStackTrace();\r\n\t\t\tthrow re;\r\n\t\t}\r\n\t}",
"public io.dstore.values.BooleanValue.Builder getDeleteCampaignBuilder() {\n \n onChanged();\n return getDeleteCampaignFieldBuilder().getBuilder();\n }",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }"
] | [
"0.7204206",
"0.7113482",
"0.7046603",
"0.59324473",
"0.59294325",
"0.57891876",
"0.5586847",
"0.5539097",
"0.549363",
"0.5449355",
"0.54307806",
"0.5260362",
"0.525552",
"0.5237126",
"0.5196807",
"0.5157873",
"0.51537514",
"0.51187193",
"0.5111365",
"0.5089065",
"0.5045715",
"0.50372463",
"0.5036091",
"0.5016614",
"0.49799263",
"0.49709496",
"0.49468186",
"0.49153966",
"0.4885082",
"0.48291552",
"0.47963935",
"0.47118965",
"0.47109136",
"0.46849155",
"0.46527857",
"0.4648856",
"0.46336666",
"0.46336666",
"0.46297574",
"0.46262318",
"0.45793688",
"0.4575935",
"0.45753044",
"0.45733732",
"0.4551306",
"0.45505738",
"0.4544117",
"0.45126328",
"0.45082033",
"0.45023406",
"0.44910684",
"0.44878113",
"0.44875252",
"0.44769916",
"0.44521385",
"0.44499484",
"0.44456965",
"0.4437363",
"0.44361347",
"0.44342336",
"0.44274956",
"0.43867007",
"0.4379499",
"0.43743283",
"0.43563285",
"0.43553162",
"0.4342773",
"0.43422943",
"0.43380395",
"0.43357673",
"0.43266326",
"0.43229806",
"0.4320234",
"0.43026394",
"0.43000123",
"0.42957765",
"0.42914265",
"0.42863482",
"0.42749083",
"0.42726243",
"0.42687002",
"0.42684838",
"0.42536986",
"0.42486656",
"0.42417118",
"0.4226639",
"0.42213723",
"0.42206007",
"0.42188138",
"0.42174056",
"0.42120925",
"0.42113376",
"0.42066023",
"0.4205588",
"0.4201735",
"0.4200338",
"0.4193893",
"0.41937307",
"0.41935107",
"0.4191621"
] | 0.7255779 | 0 |
Returns the object with the settings used for calls to deleteWorkflow. | public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>
deleteWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public static Settings get() {\n return INSTANCE;\n }",
"public int getWorkflowId(){return workflowId;}",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"Settings getSettings();",
"public UnaryCallSettings<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"public UnaryCallSettings<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public UnaryCallSettings.Builder<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"public Settings(){}",
"public UnaryCallSettings<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"@Nullable\n public UserSettings delete() throws ClientException {\n return send(HttpMethod.DELETE, null);\n }",
"long getWorkflowID();",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"void deleteWorkflowRequest(String requestId) throws WorkflowException;",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public UnaryCallSettings.Builder<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"go.micro.runtime.RuntimeOuterClass.DeleteOptions getOptions();",
"public DeleteProject propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public T caseWorkflow(Workflow object) {\n\t\treturn null;\n\t}",
"@GET\r\n\t@Path(\"/deletegraph\")\r\n\tpublic Response deleteGraph(@HeaderParam(\"x-session-token\") String sSessionId, @QueryParam(\"workflowId\") String sWorkflowId) {\r\n\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" )\");\r\n\t\ttry {\r\n\t\t\t// Check User\r\n\t\t\tif (Utils.isNullOrEmpty(sSessionId)) return Response.status(Status.UNAUTHORIZED).build();\r\n\t\t\tUser oUser = Wasdi.getUserFromSession(sSessionId);\r\n\r\n\t\t\tif (oUser == null) {\r\n\t\t\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" ): invalid session\");\r\n\t\t\t\treturn Response.status(Status.UNAUTHORIZED).build();\r\n\t\t\t}\r\n\t\t\tif (Utils.isNullOrEmpty(oUser.getUserId())) return Response.status(Status.UNAUTHORIZED).build();\r\n\r\n\t\t\tString sUserId = oUser.getUserId();\r\n\r\n\t\t\tSnapWorkflowRepository oSnapWorkflowRepository = new SnapWorkflowRepository();\r\n\t\t\tSnapWorkflow oWorkflow = oSnapWorkflowRepository.getSnapWorkflow(sWorkflowId);\r\n\r\n\t\t\tif (oWorkflow == null) return Response.status(Status.INTERNAL_SERVER_ERROR).build();\r\n\t\t\tif (oWorkflow.getUserId().equals(sUserId) == false) return Response.status(Status.UNAUTHORIZED).build();\r\n\r\n\t\t\t// Get Download Path\r\n\t\t\tString sBasePath = Wasdi.getDownloadPath(m_oServletConfig);\r\n\t\t\tsBasePath += \"workflows/\";\r\n\t\t\tString sWorkflowFilePath = sBasePath + oWorkflow.getWorkflowId() + \".xml\";\r\n\r\n\t\t\tif (!Utils.isNullOrEmpty(sWorkflowFilePath)) {\r\n\t\t\t\tFile oWorkflowFile = new File(sWorkflowFilePath);\r\n\t\t\t\tif (oWorkflowFile.exists()) {\r\n\t\t\t\t\tif (!oWorkflowFile.delete()) {\r\n\t\t\t\t\t\tUtils.debugLog(\"ProcessingResource.deleteWorkflow: Error deleting the workflow file \" + oWorkflow.getFilePath());\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tUtils.debugLog(\"ProcessingResource.deleteWorkflow: workflow file path is null or empty.\");\r\n\t\t\t}\r\n\r\n\t\t\toSnapWorkflowRepository.deleteSnapWorkflow(sWorkflowId);\r\n\t\t} catch (Exception oE) {\r\n\t\t\tUtils.debugLog(\"ProcessingResources.deleteWorkflow( Session: \" + sSessionId + \", Workflow: \" + sWorkflowId + \" ): \" + oE);\r\n\t\t\treturn Response.serverError().build();\r\n\t\t}\r\n\t\treturn Response.ok().build();\r\n\t}",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"public WorkspaceSettings() {\n super();\n }",
"public int getAD_Workflow_ID();",
"public Long getSettingsId() {\n\t\treturn settingsId;\n\t}",
"@Override\r\n\tpublic Settings getSettings(String personId) {\n\t\treturn null;\r\n\t}",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public void setAD_Workflow_ID (int AD_Workflow_ID);",
"private Settings() {}",
"@Transactional()\n\tprivate boolean deleteWorkflow(int requestTypeId,AuthDetailsVo authDetailsVo) throws CommonException {\n\t\tint count = 0;\n\n\t\ttry {\n\t\t\tcount = (int) (long) requestTypeDAO.findDeleteWorkflow(requestTypeId,authDetailsVo);\n\t\t\tif (count > 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t} catch (Exception exe) {\n\n\t\t\tthrow new CommonException(getMessage(\"dataFailure\",authDetailsVo));\n\t\t}\n\t\treturn false;\n\n\t}",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"public UndoableCommand undo() {\n logger.info(String.format(\"----------------[UNDOING][%s]\", this));\n return new DeleteActivityCommand(null, activityAdded);\n }",
"private Settings() { }",
"@Override\n public void cleanUpPendingTask(String workflowExtRef) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Starting cleanup task for APIStateChangeWSWorkflowExecutor for :\" + workflowExtRef);\n }\n String errorMsg;\n super.cleanUpPendingTask(workflowExtRef);\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n apiMgtDAO.deleteWorkflowRequest(workflowExtRef);\n } catch (APIManagementException axisFault) {\n errorMsg = \"Error sending out cancel pending application approval process message. cause: \" + axisFault\n .getMessage();\n throw new WorkflowException(errorMsg, axisFault);\n }\n }",
"public JButtonOperator btSettings() {\n if (_btSettings==null) {\n _btSettings = new JButtonOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_Properties\"));\n }\n return _btSettings;\n }",
"public ObjectWorkflowState getObjectWorkflow( String token, int objectType, String objectId, int objectVersion ) throws Exception{\n \tString url = Constants.HOST+Constants.OBJECT_CREATION_URL+objectType+\"/\"+objectId+\"/\"+objectVersion+\"/\"+\"workflowstate\";\n \t\n \tCloseableHttpClient httpclient = HttpClients.createDefault();\n try {\n HttpGet httpget = new HttpGet(url);\n httpget.setHeader(\"X-Authentication\", token);\n\n System.out.println(\"Executing request \" + httpget.getRequestLine());\n\n // Create a custom response handler\n ResponseHandler<String> responseHandler = new ResponseHandler<String>() {\n\n @Override\n public String handleResponse(\n final HttpResponse response) throws ClientProtocolException, IOException {\n int status = response.getStatusLine().getStatusCode();\n if (status >= 200 && status < 300) {\n HttpEntity entity = response.getEntity();\n return entity != null ? EntityUtils.toString(entity) : null;\n } else {\n throw new ClientProtocolException(\"Unexpected response status: \" + status);\n }\n }\n\n };\n String responseBody = httpclient.execute(httpget, responseHandler);\n System.out.println(\"----------------------------------------\");\n System.out.println(responseBody);\n \n ObjectMapper mapper = new ObjectMapper();\n String jsonInString = responseBody;\n \n ObjectWorkflowState objectWorkflow = mapper.readValue(jsonInString, ObjectWorkflowState.class);\n \n return objectWorkflow;\n \n } finally {\n httpclient.close();\n }\n \n // return new ObjectWorkflowState();\n }",
"void getSettings(ControlsSettings settings);",
"private static Option<ConfiguredWorkflowRef> createConfiguredWorkflowRef(String workflowId, String workflowParamsJson) {\n return Util.createConfiguredWorkflowRef(option(workflowId).bind(trimToNone),\n option(workflowParamsJson).bind(trimToNone));\n }",
"public Workflows workflows() {\n return this.workflows;\n }",
"@Override\n\tpublic long getWorkflowId() {\n\t\treturn _scienceApp.getWorkflowId();\n\t}",
"public DeleteScheduler propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"public Workflow getWorkflow(String identifier) throws PortalException;",
"Map<String, Object> deleteConfig(Request request, String type, String id);",
"io.dstore.values.BooleanValue getDeleteCampaign();",
"public static synchronized SettingsStore getInstance() {\r\n\t\tif (instance == null) {\r\n\t\t\tinstance = new SettingsStore();\r\n\t\t}\r\n\t\treturn instance;\r\n\t}",
"public static FluentdRemoteSettings getInstance() {\n return INSTANCE;\n }",
"public static CppTestRuleSetDAOImpl getInstance()\r\n {\r\n return instance;\r\n }",
"TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack();",
"public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}",
"public TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack() {\n if (packCase_ == 4) {\n return (TaskProtobufWrapper.DeleteTaskPack) pack_;\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n }",
"public abstract SharedPreferences getStateSettings();",
"io.dstore.values.BooleanValueOrBuilder getDeleteCampaignOrBuilder();",
"public Workflow() {\n\t\tsuper();\n\t}",
"PendingDelete(Index index, IndexSettings settings) {\n this.index = index;\n this.shardId = -1;\n this.settings = settings;\n this.deleteIndex = true;\n }",
"public TaskProtobufWrapper.DeleteTaskPack getDeleteTaskPack() {\n if (deleteTaskPackBuilder_ == null) {\n if (packCase_ == 4) {\n return (TaskProtobufWrapper.DeleteTaskPack) pack_;\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n } else {\n if (packCase_ == 4) {\n return deleteTaskPackBuilder_.getMessage();\n }\n return TaskProtobufWrapper.DeleteTaskPack.getDefaultInstance();\n }\n }",
"public void setWorkflowStatus(Status status) {\r\n workflowStatus = status;\r\n }",
"public static DocumentationSettings getDefault(){\n return INSTANCE;\n }",
"public static TodoData getInstance() {\n return instance;\n }",
"public static ViewParameters getInstance ()\r\n {\r\n return Holder.INSTANCE;\r\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public io.dstore.values.BooleanValue.Builder getDeleteCampaignBuilder() {\n \n onChanged();\n return getDeleteCampaignFieldBuilder().getBuilder();\n }",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"public DeleteOAuth propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public DeleteNamespacedConfiguration propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }"
] | [
"0.72568613",
"0.7205311",
"0.7114713",
"0.5935227",
"0.59318686",
"0.5789851",
"0.55874646",
"0.55400854",
"0.54944783",
"0.54523015",
"0.54319644",
"0.52624434",
"0.5257416",
"0.52390194",
"0.5199755",
"0.5160899",
"0.5156044",
"0.51215446",
"0.51117474",
"0.5092344",
"0.50484353",
"0.50360346",
"0.503468",
"0.5017854",
"0.49809623",
"0.49717602",
"0.49484682",
"0.49151564",
"0.48884016",
"0.48301154",
"0.47999087",
"0.4715679",
"0.47133747",
"0.46863142",
"0.46515107",
"0.4650877",
"0.46343118",
"0.46343118",
"0.46283448",
"0.46268082",
"0.45831764",
"0.45768684",
"0.45767456",
"0.45717683",
"0.45521918",
"0.4549175",
"0.45448208",
"0.45137796",
"0.45121822",
"0.45027357",
"0.44915292",
"0.44867527",
"0.44849873",
"0.4477074",
"0.44548976",
"0.44487348",
"0.44468245",
"0.44395265",
"0.4437039",
"0.4437031",
"0.44296217",
"0.43860555",
"0.43777466",
"0.43733856",
"0.43567246",
"0.43550286",
"0.434081",
"0.43404773",
"0.4338412",
"0.43358243",
"0.43292335",
"0.4323036",
"0.43223956",
"0.4303897",
"0.42995253",
"0.429776",
"0.4292925",
"0.42872548",
"0.42744276",
"0.42728412",
"0.4270297",
"0.42700464",
"0.42532086",
"0.424795",
"0.42441487",
"0.42265445",
"0.42224583",
"0.4219096",
"0.421741",
"0.4215415",
"0.42120907",
"0.4210312",
"0.42069766",
"0.42047435",
"0.42011532",
"0.4200729",
"0.41951227",
"0.41947928",
"0.4193443",
"0.41911978"
] | 0.70480275 | 3 |
Returns the object with the settings used for calls to updateWorkflow. | public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {
return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"Settings getSettings();",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public static Settings get() {\n return INSTANCE;\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public int getWorkflowId(){return workflowId;}",
"void getSettings(ControlsSettings settings);",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"public UserSettings getUserSettings() {\n\t\treturn userSettings;\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }",
"GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }",
"public abstract SharedPreferences getStateSettings();",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"private APIStateWorkflowDTO setAPIStateWorkflowDTOParameters(String currentStatus, String action, String name,\n String context, String apiType, String version,\n String providerName, int apiOrApiProductId,\n String uuid, String gatewayVendor, String workflowType,\n WorkflowExecutor apiStateWFExecutor) {\n\n WorkflowProperties workflowProperties = getAPIManagerConfiguration().getWorkflowProperties();\n APIStateWorkflowDTO stateWorkflowDTO = new APIStateWorkflowDTO();\n stateWorkflowDTO.setApiCurrentState(currentStatus);\n stateWorkflowDTO.setApiLCAction(action);\n stateWorkflowDTO.setApiName(name);\n stateWorkflowDTO.setApiContext(context);\n stateWorkflowDTO.setApiType(apiType);\n stateWorkflowDTO.setApiVersion(version);\n stateWorkflowDTO.setApiProvider(providerName);\n stateWorkflowDTO.setGatewayVendor(gatewayVendor);\n stateWorkflowDTO.setCallbackUrl(workflowProperties.getWorkflowCallbackAPI());\n stateWorkflowDTO.setExternalWorkflowReference(apiStateWFExecutor.generateUUID());\n stateWorkflowDTO.setTenantId(tenantId);\n stateWorkflowDTO.setTenantDomain(this.tenantDomain);\n stateWorkflowDTO.setWorkflowType(workflowType);\n stateWorkflowDTO.setStatus(WorkflowStatus.CREATED);\n stateWorkflowDTO.setCreatedTime(System.currentTimeMillis());\n stateWorkflowDTO.setWorkflowReference(Integer.toString(apiOrApiProductId));\n stateWorkflowDTO.setInvoker(this.username);\n stateWorkflowDTO.setApiUUID(uuid);\n String workflowDescription = \"Pending lifecycle state change action: \" + action;\n stateWorkflowDTO.setWorkflowDescription(workflowDescription);\n return stateWorkflowDTO;\n }",
"public GameSettings getGameSettings() {\r\n return this.gameSettings;\r\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public final ExperimentWorkflow getWorkflow( String etype ) {\r\n \r\n // Workflow, depending on the experiment type:\r\n if( AdminManagerImpl.IDENTIFY.equals(etype)) {\r\n log.info(\"Running an Identify experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof IdentifyWorkflow) ) )\r\n ewfCache = new IdentifyWorkflow();\r\n \r\n } else if( AdminManagerImpl.MIGRATE.equals(etype)) {\r\n log.info(\"Running a Migrate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof MigrateWorkflow) ) )\r\n ewfCache = new MigrateWorkflow();\r\n \r\n } else if( AdminManagerImpl.EMULATE.equals(etype)) {\r\n log.info(\"Running a Emulate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ViewerWorkflow) ) )\r\n ewfCache = new ViewerWorkflow();\r\n \r\n } else if( AdminManagerImpl.EXECUTABLEPP.equals(etype)) {\r\n log.info(\"Running an Executable PP experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ExecutablePPWorkflow) ) )\r\n ewfCache = new ExecutablePPWorkflow();\r\n \r\n } else {\r\n log.error(\"Unknown experiment type: \"+etype);\r\n \r\n }\r\n\r\n // Ensure the parameters are stored/remembered:\r\n if( ewfCache != null ) {\r\n ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject(\"ExperimentBean\");\r\n try {\r\n \tif(ewfCache.getParameters().equals(expBean.getExperiment().getExperimentExecutable().getParameters())){\r\n \t\t//no update - don't call the time consuming ewfCache.setParameters\r\n \t}else{\r\n \t\tewfCache.setParameters(expBean.getExperiment().getExperimentExecutable().getParameters());\r\n \t}\r\n \r\n } catch (Exception e) {\r\n //Version v1.0 - the ExperimentExecutable().getParameters() aren't any longer used! All Information is encoded in a WFConf object\r\n \t//TODO AL remove the Parameters from the ExperimentExecutable AND the ExpTypeBackingBean\r\n }\r\n }\r\n return ewfCache;\r\n }",
"public Pokemon.ContactSettingsProto getSettings() {\n if (settingsBuilder_ == null) {\n return settings_;\n } else {\n return settingsBuilder_.getMessage();\n }\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public AutoUpdateSettings GetUpdateSettings() throws EdgeServiceFault;",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"UserSettings getByUser();",
"public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}",
"com.google.apps.alertcenter.v1beta1.SettingsOrBuilder getSettingsOrBuilder();",
"IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings);",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"public MovSettings getMovSettings() {\n return this.movSettings;\n }",
"public static WaterfallConfig wconf() {\n\t\treturn uniqueInstance;\n\t}",
"IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();",
"public Workflows workflows() {\n return this.workflows;\n }",
"UserSettings getOrCreateByUser();",
"public possibleSettings setting (){\n\t\treturn setting;\n\t}",
"@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"public LocationSettingsHandler getLocationSettingsHandler(){\n return locationSettingsHandler;\n }",
"private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }",
"protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public GenericValue toGenericValue(final OfBizDelegator ofBizDelegator) {\n return ofBizDelegator.makeValue(\"Workflow\", new FieldMap()\n .add(\"id\", id)\n .add(\"name\", name)\n .add(\"creator\", creator)\n .add(\"descriptor\", descriptor)\n .add(\"islocked\", islocked)\n );\n }",
"public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}",
"public Map<String, Object> getSettings() {\n HashMap<String, Object> settings = new HashMap<>();\n\n // the selected input column\n settings.put(PIASettings.CONFIG_INPUT_COLUMN.getKey(), inputColumnBox.getSelectedColumn());\n // error when no decoys are found\n settings.put(PIASettings.ERROR_ON_NO_DECOYS.getKey(), checkErrorOnNoDecoys.isSelected());\n // create PSM sets\n settings.put(PIASettings.CREATE_PSMSETS.getKey(), checkCreatePSMSets.isSelected());\n // consider modifications\n settings.put(PIASettings.CONSIDER_MODIFICATIONS.getKey(), checkConsiderModifications.isSelected());\n // export level and format\n settings.put(PIASettings.EXPORT_FILTER.getKey(), checkExportFilter.isSelected() && checkExportFilter.isEnabled());\n settings.put(PIASettings.EXPORT_LEVEL.getKey(), comboExportLevel.getSelectedItem().toString());\n settings.put(PIASettings.EXPORT_FORMAT.getKey(), comboExportFormat.getSelectedItem() != null ?\n comboExportFormat.getSelectedItem().toString() : null);\n settings.put(PIASettings.EXPORT_FILEBASENAME.getKey(), fieldExportFileBasename.getText().trim());\n\n // PSM file ID\n settings.put(PIASettings.PSM_ANALYSIS_FILE_ID.getKey(), Integer.parseInt(fieldPSMAnalysisFileID.getText()));\n\n // calculate FDR scores for all files\n settings.put(PIASettings.CALCULATE_ALL_FDR.getKey(), checkCalculateAllFDR.isSelected());\n // calculate combined FDR score\n settings.put(PIASettings.CALCULATE_COMBINED_FDR_SCORE.getKey(), checkCalculateCombinedFDRScore.isSelected());\n\n // decoy strategy for all files\n settings.put(PIASettings.ALL_DECOY_STRATEGY.getKey(), allDecoyStrategy.getSelection().getActionCommand());\n // decoy pattern for all files\n settings.put(PIASettings.ALL_DECOY_PATTERN.getKey(), fieldAllDecoyPattern.getText());\n\n // used identifications (for FDR) for all files\n settings.put(PIASettings.ALL_USED_IDENTIFICATIONS.getKey(), Integer.parseInt(allUsedTopIdentifications.getSelection().getActionCommand()));\n\n // the preferred scores for FDR calculation\n DefaultListModel<String> scoreListModel = (DefaultListModel<String>)selectedPreferredFDRScoresList.getModel();\n String[] preferredScoreShorts = new String[scoreListModel.getSize()];\n for (int i=0; i < scoreListModel.getSize(); i++) {\n preferredScoreShorts[i] = scoreListModel.get(i);\n }\n settings.put(PIASettings.FDR_PREFERRED_SCORES.getKey(), preferredScoreShorts);\n\n // the PSM level filters\n List<AbstractFilter> filtersList = filtersPSMLevel.getAppliedFilters();\n String[] filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PSM_FILTERS.getKey(), filtersArr);\n\n\n // infere peptides\n settings.put(PIASettings.PEPTIDE_INFER_PEPTIDES.getKey(), checkInferPeptides.isSelected());\n\n // peptide file ID\n settings.put(PIASettings.PEPTIDE_ANALYSIS_FILE_ID.getKey(), Integer.parseInt(fieldPeptideAnalysisFileID.getText()));\n\n // the peptide level filters\n filtersList = filtersPeptideLevel.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PEPTIDE_FILTERS.getKey(), filtersArr);\n\n\n // infere proteins\n settings.put(PIASettings.PROTEIN_INFER_PROTEINS.getKey(), checkInferProteins.isSelected());\n\n // protein inference method\n settings.put(PIASettings.PROTEIN_INFERENCE_METHOD.getKey(), radioGrpInferenceMethod.getSelection().getActionCommand());\n\n // the protein inference filters\n filtersList = filtersProteinInference.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PROTEIN_INFERENCE_FILTERS.getKey(), filtersArr);\n\n // scoring method used by protein inference\n settings.put(PIASettings.PROTEIN_SCORING_METHOD.getKey(), radioGrpProteinScoring.getSelection().getActionCommand());\n\n // scoring method used by protein inference\n settings.put(PIASettings.PROTEIN_SCORING_SCORE.getKey(), comboAvailableBaseScores.getSelectedItem());\n\n // the PSMs used for protein scoring\n settings.put(PIASettings.PROTEIN_SCORING_USED_PSMS.getKey(), radioGrpPSMsForScoring.getSelection().getActionCommand());\n\n // the protein level filters\n filtersList = filtersProteinLevel.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PROTEIN_FILTERS.getKey(), filtersArr);\n\n return settings;\n }",
"public WorkflowExecutionInfo getExecutionInfo() {\n return executionInfo;\n }",
"private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }",
"public com.ys.hmawfm.wfms.services.service.WFMS_WorkflowConfigLocalService getWFMS_WorkflowConfigLocalService() {\n\t\treturn wfms_WorkflowConfigLocalService;\n\t}",
"public Pokemon.ContactSettingsProto getSettings() {\n return settings_;\n }",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }",
"protected WorkloadConfiguration getWorkloadConfiguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public CommonExportProperties runSettings() {\n return this.runSettings;\n }",
"public JButtonOperator btSettings() {\n if (_btSettings==null) {\n _btSettings = new JButtonOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_Properties\"));\n }\n return _btSettings;\n }",
"public static Config getConfig(){\n return _Config;\n }",
"public static File getSettingsfile() {\n return settingsfile;\n }",
"public static FluentdRemoteSettings getInstance() {\n return INSTANCE;\n }",
"public ISysConfig getSysConfig() {\n ISysConfig sc = new DefaultSysConfig(SeqConfigNames.INSTRUMENT_CONFIG_NAME);\n\n // Fill in the current values.\n sc.putParameter(StringParameter.getInstance(ISPDataObject.VERSION_PROP, getVersion()));\n sc.putParameter(DefaultParameter.getInstance(DISPERSER_PROP.getName(), getDisperser()));\n sc.putParameter(DefaultParameter.getInstance(WAVELENGTH_PROP.getName(), getWavelength()));\n sc.putParameter(DefaultParameter.getInstance(EXPOSURE_TIME_PROP.getName(), getExposureTime()));\n sc.putParameter(DefaultParameter.getInstance(POS_ANGLE_PROP.getName(), getPosAngle()));\n sc.putParameter(DefaultParameter.getInstance(COADDS_PROP.getName(), getCoadds()));\n\n return sc;\n }"
] | [
"0.68545276",
"0.67819655",
"0.673139",
"0.6724683",
"0.6584358",
"0.6244589",
"0.6201408",
"0.61656106",
"0.6105529",
"0.6073358",
"0.6049008",
"0.60259473",
"0.60103047",
"0.59513766",
"0.58278644",
"0.5808599",
"0.5792222",
"0.5745353",
"0.5736903",
"0.5634157",
"0.5555235",
"0.55044717",
"0.54933465",
"0.5486142",
"0.5430587",
"0.5413035",
"0.5405241",
"0.534275",
"0.53316134",
"0.5321679",
"0.5288904",
"0.5288839",
"0.5284778",
"0.52649534",
"0.52517533",
"0.52504563",
"0.52165794",
"0.52137643",
"0.52137643",
"0.51901597",
"0.51732886",
"0.51599526",
"0.5152868",
"0.5133063",
"0.512805",
"0.5112113",
"0.50982726",
"0.5076713",
"0.5071326",
"0.50688624",
"0.5066454",
"0.5066454",
"0.5066454",
"0.5066454",
"0.5066454",
"0.5066454",
"0.5066454",
"0.50650495",
"0.5061275",
"0.5055942",
"0.50482607",
"0.50466555",
"0.50448364",
"0.5044065",
"0.5042557",
"0.5031633",
"0.5024906",
"0.50148225",
"0.5005423",
"0.49978545",
"0.4995821",
"0.49878627",
"0.4975089",
"0.49717575",
"0.49670562",
"0.49643406",
"0.49637356",
"0.49609208",
"0.49575582",
"0.49532634",
"0.49462375",
"0.49433962",
"0.49422392",
"0.49376494",
"0.49282518",
"0.4919805",
"0.49072897",
"0.4902204",
"0.49010792",
"0.48995537",
"0.48906136",
"0.4889285",
"0.4877582",
"0.487269",
"0.48689944",
"0.48685595",
"0.48642808",
"0.4860831",
"0.48574188",
"0.4852741"
] | 0.6741932 | 2 |
Returns the object with the settings used for calls to updateWorkflow. | public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>
updateWorkflowOperationSettings() {
return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public FetchModusSettings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"Settings getSettings();",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public synchronized static Settings getSettings() {\n \tif (settings==null) {\n \t\tHashMap<String, String> def = new HashMap<>();\n \t\tdef.put(Settings.Keys.align.toString(), \"center_inner\");\n \t\tsettings = new Settings(\"/DotifyStudio/prefs_v\"+PREFS_VERSION, def);\n \t}\n \treturn settings;\n }",
"public Settings getSettings()\r\n\t{\r\n\t\treturn settings;\r\n\t}",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public static SettingsModel getInstance() {\n return SETTINGS_MODEL;\n }",
"public Workflow getWorkflow() {\n\t\treturn workflow;\n\t}",
"public static Settings load() {\r\n\t\tSettings settings = new Settings();\r\n\t\ttry {\r\n\t\t\tPortalExtraInfo pei = PortalUtil.loadPortalExtraInfo(null, null, \"photoroster\");\r\n\t\t\tExtraInfo ei = pei.getExtraInfo();\r\n\r\n\t\t\tif (null == ei.getValue(\"doneOnce\")) {\r\n\t\t\t\tei.setValue(\"filePath\", settings.getFilePath());\r\n\t\t\t\tei.setValue(\"fileDirectory\", settings.getFileDirectory());\r\n\t\t\t\tei.setValue(\"remoteLocal\", settings.getRemoteLocal());\r\n\t\t\t\tei.setValue(\"localURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"remoteURLRoot\", settings.getRemoteURLRoot());\r\n\t\t\t\tei.setValue(\"enableInstructorUpload\", settings.getEnableInstructorUpload());\r\n\t\t\t\tei.setValue(\"filenameID\", settings.getFilenameID());\r\n\t\t\t\tei.setValue(\"scalePhotos\", settings.getScalePhotos());\r\n\t\t\t\tei.setValue(\"scaledPhotoExtents\", settings.getScaledPhotoExtents());\r\n\t\t\t\tei.setValue(\"photoCheck\", settings.getPhotoCheck());\r\n\t\t\t\tei.setValue(\"allowableCourseRoles\", settings.getAllowableCourseRoles());\r\n\t\t\t}\r\n\r\n\t\t\tsettings.setFilePath(ei.getValue(\"filePath\"));\r\n\t\t\tsettings.setFileDirectory(ei.getValue(\"fileDirectory\"));\r\n\t\t\tsettings.setRemoteLocal(ei.getValue(\"remoteLocal\"));\r\n\t\t\tsettings.setLocalURLRoot(ei.getValue(\"localURLRoot\"));\r\n\t\t\tsettings.setRemoteURLRoot(ei.getValue(\"remoteURLRoot\"));\r\n\t\t\tsettings.setEnableInstructorUpload(ei.getValue(\"enableInstructorUpload\"));\r\n\t\t\tsettings.setFilenameID(ei.getValue(\"filenameID\"));\r\n\t\t\tsettings.setScalePhotos(ei.getValue(\"scalePhotos\"));\r\n\t\t\tsettings.setDoneOnce(ei.getValue(\"doneOnce\"));\r\n\t\t\tsettings.setScaledPhotoExtents(ei.getValue(\"scaledPhotoExtents\"));\r\n\t\t\tsettings.setPhotoCheck(ei.getValue(\"photoCheck\"));\r\n\t\t\tsettings.setAllowableCourseRoles(ei.getValue(\"allowableCourseRoles\"));\r\n\t\t} catch (Throwable t) {\r\n\t\t\tlogger.error(\"Unable to load application settings\", t);\r\n\t\t}\r\n\t\t\r\n\t\treturn settings;\r\n\t}",
"public static Settings get() {\n return INSTANCE;\n }",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"public static @NotNull Settings getSettings ()\n {\n Application application = ApplicationManager.getApplication ();\n SettingsPlugin settingsPlugin = application.getComponent (SettingsPlugin.class);\n return settingsPlugin.getSettings ();\n }",
"com.google.apps.alertcenter.v1beta1.Settings getSettings();",
"public SharedPreferences GetSettings() {\n return mSettings;\n }",
"public WorkflowConfig getWorkflow(String name) {\n if (!this.workflows.containsKey(name)) {\n throw new IllegalArgumentException(\"There is no workflow with name \" + name);\n }\n \n return this.workflows.get(name);\n }",
"public int getWorkflowId(){return workflowId;}",
"void getSettings(ControlsSettings settings);",
"public WorkflowExecutionConfiguration getExecutionConfiguration() {\n return executionConfiguration;\n }",
"protected Map<String, String> getSettings() {\n\n return (Map<String, String>) getExtraData().get(ProcessListener.EXTRA_DATA_SETTINGS);\n }",
"public UserSettings getUserSettings() {\n\t\treturn userSettings;\n\t}",
"public static UISettings getShadowInstance() {\n Application application = ApplicationManager.getApplication();\n return application != null ? getInstance() : new UISettings();\n }",
"GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(),\n (int) primaryStage.getX(), (int) primaryStage.getY());\n }",
"public GuiSettings getCurrentGuiSetting() {\n return new GuiSettings(primaryStage.getWidth(), primaryStage.getHeight(), (int) primaryStage.getX(),\n (int) primaryStage.getY());\n }",
"public WFMS_WorkflowConfigPersistence getWFMS_WorkflowConfigPersistence() {\n\t\treturn wfms_WorkflowConfigPersistence;\n\t}",
"private Properties getAppSettings() {\n \t\t\n\t if(_appSettings == null){\n\t\t try {\n\t\t\tsynchronized(this){\t\t\n\t\t\t\tif(_appSettings == null) {\t\t\t\t\t\t\n\t\t\t\t\t_appSettings = new Properties();\t\n\t\t\t\t\t\n\t\t\t\t\t//look for an existing file this mmsi\n\t\t\t\t\t//if one doesn't exist, use a default file.\n\t\t\t\t\tString configFile = _configFile;\n\t\t\t\t\tFile file = new File(configFile);\n\t\t\t\t\tif(file.exists() == false){\n\t\t\t\t\t\tconfigFile = STORE_BASE + APPL_PROPS;\n\t\t\t\t\t}\n\t\t\t\t\tFileInputStream oFile = new FileInputStream(configFile);\n\t\t \t\tInputStream setupOutput = new DataInputStream(oFile);\t\t \t\t\t\t\n\t\t \t\t//InputStream propInput = new DataInputStream(this.getClass().getResourceAsStream(STORE_BASE + APP_SETTINGS));\t \t \t \t\t\t\n\t\t\t\t\t_appSettings.load(setupOutput);\t\n\t\t\t\t\t\n\t\t\t\t} \t \t\t\t\t\t\n\t\t\t}\t \t\t\t\n\t\t}catch(Exception oEx){\n\t\t\tAppLogger.error(oEx);\n\t\t}\t\t \t\t\t\t\t\n\t}\t\t\t \t\t\n\treturn _appSettings;\n }",
"public abstract SharedPreferences getStateSettings();",
"public Properties storeSettings() {\r\n return mSettings.storeSettings();\r\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public String getWorkflowName(){return workflowName;}",
"public String getWorkflowName(){return workflowName;}",
"private Workflow context(Action a) {\n\t\tString workflowClassName = param.workflowName;\n\t\t//Independent actions may be part of some other workflow, fill them in first.\n\t\tfor(Workflow w : workflows) {\n\t\t\tif(w.isSatisfiable(a)) {\n\t\t\t\treturn w;\n\t\t\t}\n\t\t}\n\t\t//The action do not satisfy any existing workflow. We check whether the action is independent.\n\t\t//If it is, we start a new workflow with head = this action.\n\t\ttry {\n\t\t\tClass workflowClass = Class.forName(workflowClassName);\n\t\t\tWorkflow w = (Workflow) workflowClass.newInstance();\n\t\t\tw.sys = this;\n\n\t\t\tif(w.isIndependentAction(a) && w.isSatisfiable(a)) {\n\t\t\t\tworkflows.add(w);\n\t\t\t\tSimLogger.log(Level.FINEST, \"New workflow created with action \" + a);\n\t\t\t\treturn w;\n\t\t\t}\n\t\t} catch(ClassNotFoundException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Class not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(InstantiationException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t} catch(IllegalAccessException e) {\n\t\t\tSimLogger.log(Level.SEVERE, \"Default Constructor not found for workflow class: \" + workflowClassName);\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tSimLogger.log(Level.FINE, \"No workflow can be found to satisify action \" + a +\n\t\t \". Action is execution is cancelled.\");\n\t\treturn null;\n\t}",
"private static Settings prepareSettings() {\n final String dir = System.getProperty(JBOSS_CONFIG_DIR);\n Settings mySettings;\n\n if (dir != null) {\n final String file = dir + File.separator + PROPERTIES_FILE;\n LOG.debug(\"Reading the IWS Properties from '{}'.\", file);\n\n try (InputStream stream = new FileInputStream(file)) {\n final Properties properties = new Properties();\n properties.load(stream);\n\n mySettings = new Settings(properties);\n } catch (FileNotFoundException e) {\n LOG.warn(\"Properties file was not found, reverting to default values.\", e);\n mySettings = new Settings();\n } catch (IOException e) {\n LOG.warn(\"Properties file could not be loaded, reverting to default values.\", e);\n mySettings = new Settings();\n }\n } else {\n LOG.warn(\"Application Server Configuration Path cannot be read.\");\n mySettings = new Settings();\n }\n\n return mySettings;\n }",
"public Class<?> getSettingsClass()\n {\n return null;\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public Settings loadDefault() {\n return new Settings();\n }",
"public static SettingsManager getSettingsManager() {\r\n\t\tif (settingsManager == null) {\r\n\t\t\tsettingsManager = new SettingsManager();\r\n\t\t}\r\n\t\treturn settingsManager;\r\n\t}",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public Long getWorkflowId() {\n return this.workflowId;\n }",
"private APIStateWorkflowDTO setAPIStateWorkflowDTOParameters(String currentStatus, String action, String name,\n String context, String apiType, String version,\n String providerName, int apiOrApiProductId,\n String uuid, String gatewayVendor, String workflowType,\n WorkflowExecutor apiStateWFExecutor) {\n\n WorkflowProperties workflowProperties = getAPIManagerConfiguration().getWorkflowProperties();\n APIStateWorkflowDTO stateWorkflowDTO = new APIStateWorkflowDTO();\n stateWorkflowDTO.setApiCurrentState(currentStatus);\n stateWorkflowDTO.setApiLCAction(action);\n stateWorkflowDTO.setApiName(name);\n stateWorkflowDTO.setApiContext(context);\n stateWorkflowDTO.setApiType(apiType);\n stateWorkflowDTO.setApiVersion(version);\n stateWorkflowDTO.setApiProvider(providerName);\n stateWorkflowDTO.setGatewayVendor(gatewayVendor);\n stateWorkflowDTO.setCallbackUrl(workflowProperties.getWorkflowCallbackAPI());\n stateWorkflowDTO.setExternalWorkflowReference(apiStateWFExecutor.generateUUID());\n stateWorkflowDTO.setTenantId(tenantId);\n stateWorkflowDTO.setTenantDomain(this.tenantDomain);\n stateWorkflowDTO.setWorkflowType(workflowType);\n stateWorkflowDTO.setStatus(WorkflowStatus.CREATED);\n stateWorkflowDTO.setCreatedTime(System.currentTimeMillis());\n stateWorkflowDTO.setWorkflowReference(Integer.toString(apiOrApiProductId));\n stateWorkflowDTO.setInvoker(this.username);\n stateWorkflowDTO.setApiUUID(uuid);\n String workflowDescription = \"Pending lifecycle state change action: \" + action;\n stateWorkflowDTO.setWorkflowDescription(workflowDescription);\n return stateWorkflowDTO;\n }",
"public GameSettings getGameSettings() {\r\n return this.gameSettings;\r\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"GuiSettings getGuiSettings();",
"@Deprecated\n\tpublic io.vertigo.workflow.domain.instance.WfWorkflow getWfWorkflow() {\n\t\tif (!wfwIdAccessor.isLoaded()) {\n\t\t\twfwIdAccessor.load();\n\t\t}\n\t\treturn wfwIdAccessor.get();\n\t}",
"private SettingsModel() {\n difficulty = EASY_DIFFICULTY;\n duration = 60;\n open = false;\n }",
"public final ExperimentWorkflow getWorkflow( String etype ) {\r\n \r\n // Workflow, depending on the experiment type:\r\n if( AdminManagerImpl.IDENTIFY.equals(etype)) {\r\n log.info(\"Running an Identify experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof IdentifyWorkflow) ) )\r\n ewfCache = new IdentifyWorkflow();\r\n \r\n } else if( AdminManagerImpl.MIGRATE.equals(etype)) {\r\n log.info(\"Running a Migrate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof MigrateWorkflow) ) )\r\n ewfCache = new MigrateWorkflow();\r\n \r\n } else if( AdminManagerImpl.EMULATE.equals(etype)) {\r\n log.info(\"Running a Emulate experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ViewerWorkflow) ) )\r\n ewfCache = new ViewerWorkflow();\r\n \r\n } else if( AdminManagerImpl.EXECUTABLEPP.equals(etype)) {\r\n log.info(\"Running an Executable PP experiment.\");\r\n if( ewfCache == null || ( ! (ewfCache instanceof ExecutablePPWorkflow) ) )\r\n ewfCache = new ExecutablePPWorkflow();\r\n \r\n } else {\r\n log.error(\"Unknown experiment type: \"+etype);\r\n \r\n }\r\n\r\n // Ensure the parameters are stored/remembered:\r\n if( ewfCache != null ) {\r\n ExperimentBean expBean = (ExperimentBean)JSFUtil.getManagedObject(\"ExperimentBean\");\r\n try {\r\n \tif(ewfCache.getParameters().equals(expBean.getExperiment().getExperimentExecutable().getParameters())){\r\n \t\t//no update - don't call the time consuming ewfCache.setParameters\r\n \t}else{\r\n \t\tewfCache.setParameters(expBean.getExperiment().getExperimentExecutable().getParameters());\r\n \t}\r\n \r\n } catch (Exception e) {\r\n //Version v1.0 - the ExperimentExecutable().getParameters() aren't any longer used! All Information is encoded in a WFConf object\r\n \t//TODO AL remove the Parameters from the ExperimentExecutable AND the ExpTypeBackingBean\r\n }\r\n }\r\n return ewfCache;\r\n }",
"public SettingsController(){\n SharedPreferences prefs = MainActivity.context.getSharedPreferences(MY_PREFERENCES, MODE_PRIVATE);\n backgroundMusicOn = prefs.getBoolean(MUSIC_PREFERENCES, true);\n soundEffectsOn= prefs.getBoolean(SOUND_EFFECTS_PREFERENCES, true);\n deckSkin=prefs.getString(DECK_SKIN_PREFERENCES, \"back1\");\n animationSpeed=prefs.getInt(ANIMATION_SPEED_PREFERENCES,ANIMATION_MEDIUM);\n }",
"public Pokemon.ContactSettingsProto getSettings() {\n if (settingsBuilder_ == null) {\n return settings_;\n } else {\n return settingsBuilder_.getMessage();\n }\n }",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public AutoUpdateSettings GetUpdateSettings() throws EdgeServiceFault;",
"public abstract Map<String,List<Parameter>> getWorkflowParameters();",
"public String getWorkflowRoot() {\n return workflowRoot;\n }",
"UserSettings getByUser();",
"public JPanel getSettingsPanel() {\n\t\t//edgeAttributeHandler.updateAttributeList();\n\t\t// Everytime we ask for the panel, we want to update our attributes\n\t\tTunable attributeTunable = clusterProperties.get(\"attributeList\");\n\t\tattributeArray = getAllAttributes();\n\t\tattributeTunable.setLowerBound((Object)attributeArray);\n\n\t\treturn clusterProperties.getTunablePanel();\n\t}",
"com.google.apps.alertcenter.v1beta1.SettingsOrBuilder getSettingsOrBuilder();",
"IngestModuleIngestJobSettingsPanel getIngestJobSettingsPanel(IngestModuleIngestJobSettings settings);",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"public MovSettings getMovSettings() {\n return this.movSettings;\n }",
"public static WaterfallConfig wconf() {\n\t\treturn uniqueInstance;\n\t}",
"public Workflows workflows() {\n return this.workflows;\n }",
"IngestModuleGlobalSettingsPanel getGlobalSettingsPanel();",
"UserSettings getOrCreateByUser();",
"public possibleSettings setting (){\n\t\treturn setting;\n\t}",
"@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}",
"@Override\n\tpublic Map<String, Object> getProperties(ProgramWorkflow object) {\n\t\treturn Collections.emptyMap();\n\t}",
"protected final Dictionary<String, ?> getSiteConfiguration() {\n return config;\n }",
"public LocationSettingsHandler getLocationSettingsHandler(){\n return locationSettingsHandler;\n }",
"private Settings() {\n prefs = NbPreferences.forModule( Settings.class );\n }",
"protected WorkloadConfiguration getConfguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public GenericValue toGenericValue(final OfBizDelegator ofBizDelegator) {\n return ofBizDelegator.makeValue(\"Workflow\", new FieldMap()\n .add(\"id\", id)\n .add(\"name\", name)\n .add(\"creator\", creator)\n .add(\"descriptor\", descriptor)\n .add(\"islocked\", islocked)\n );\n }",
"public static SettingsPanel getSettingsPanel() {\n\t\treturn ((dataProvider == null) ? null : new AmpSettingsPanel());\n\t}",
"public Map<String, Object> getSettings() {\n HashMap<String, Object> settings = new HashMap<>();\n\n // the selected input column\n settings.put(PIASettings.CONFIG_INPUT_COLUMN.getKey(), inputColumnBox.getSelectedColumn());\n // error when no decoys are found\n settings.put(PIASettings.ERROR_ON_NO_DECOYS.getKey(), checkErrorOnNoDecoys.isSelected());\n // create PSM sets\n settings.put(PIASettings.CREATE_PSMSETS.getKey(), checkCreatePSMSets.isSelected());\n // consider modifications\n settings.put(PIASettings.CONSIDER_MODIFICATIONS.getKey(), checkConsiderModifications.isSelected());\n // export level and format\n settings.put(PIASettings.EXPORT_FILTER.getKey(), checkExportFilter.isSelected() && checkExportFilter.isEnabled());\n settings.put(PIASettings.EXPORT_LEVEL.getKey(), comboExportLevel.getSelectedItem().toString());\n settings.put(PIASettings.EXPORT_FORMAT.getKey(), comboExportFormat.getSelectedItem() != null ?\n comboExportFormat.getSelectedItem().toString() : null);\n settings.put(PIASettings.EXPORT_FILEBASENAME.getKey(), fieldExportFileBasename.getText().trim());\n\n // PSM file ID\n settings.put(PIASettings.PSM_ANALYSIS_FILE_ID.getKey(), Integer.parseInt(fieldPSMAnalysisFileID.getText()));\n\n // calculate FDR scores for all files\n settings.put(PIASettings.CALCULATE_ALL_FDR.getKey(), checkCalculateAllFDR.isSelected());\n // calculate combined FDR score\n settings.put(PIASettings.CALCULATE_COMBINED_FDR_SCORE.getKey(), checkCalculateCombinedFDRScore.isSelected());\n\n // decoy strategy for all files\n settings.put(PIASettings.ALL_DECOY_STRATEGY.getKey(), allDecoyStrategy.getSelection().getActionCommand());\n // decoy pattern for all files\n settings.put(PIASettings.ALL_DECOY_PATTERN.getKey(), fieldAllDecoyPattern.getText());\n\n // used identifications (for FDR) for all files\n settings.put(PIASettings.ALL_USED_IDENTIFICATIONS.getKey(), Integer.parseInt(allUsedTopIdentifications.getSelection().getActionCommand()));\n\n // the preferred scores for FDR calculation\n DefaultListModel<String> scoreListModel = (DefaultListModel<String>)selectedPreferredFDRScoresList.getModel();\n String[] preferredScoreShorts = new String[scoreListModel.getSize()];\n for (int i=0; i < scoreListModel.getSize(); i++) {\n preferredScoreShorts[i] = scoreListModel.get(i);\n }\n settings.put(PIASettings.FDR_PREFERRED_SCORES.getKey(), preferredScoreShorts);\n\n // the PSM level filters\n List<AbstractFilter> filtersList = filtersPSMLevel.getAppliedFilters();\n String[] filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PSM_FILTERS.getKey(), filtersArr);\n\n\n // infere peptides\n settings.put(PIASettings.PEPTIDE_INFER_PEPTIDES.getKey(), checkInferPeptides.isSelected());\n\n // peptide file ID\n settings.put(PIASettings.PEPTIDE_ANALYSIS_FILE_ID.getKey(), Integer.parseInt(fieldPeptideAnalysisFileID.getText()));\n\n // the peptide level filters\n filtersList = filtersPeptideLevel.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PEPTIDE_FILTERS.getKey(), filtersArr);\n\n\n // infere proteins\n settings.put(PIASettings.PROTEIN_INFER_PROTEINS.getKey(), checkInferProteins.isSelected());\n\n // protein inference method\n settings.put(PIASettings.PROTEIN_INFERENCE_METHOD.getKey(), radioGrpInferenceMethod.getSelection().getActionCommand());\n\n // the protein inference filters\n filtersList = filtersProteinInference.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PROTEIN_INFERENCE_FILTERS.getKey(), filtersArr);\n\n // scoring method used by protein inference\n settings.put(PIASettings.PROTEIN_SCORING_METHOD.getKey(), radioGrpProteinScoring.getSelection().getActionCommand());\n\n // scoring method used by protein inference\n settings.put(PIASettings.PROTEIN_SCORING_SCORE.getKey(), comboAvailableBaseScores.getSelectedItem());\n\n // the PSMs used for protein scoring\n settings.put(PIASettings.PROTEIN_SCORING_USED_PSMS.getKey(), radioGrpPSMsForScoring.getSelection().getActionCommand());\n\n // the protein level filters\n filtersList = filtersProteinLevel.getAppliedFilters();\n filtersArr = new String[filtersList.size()];\n for (int i=0; i < filtersList.size(); i++) {\n filtersArr[i] = ObjectSerializer.serializeFilter(filtersList.get(i));\n }\n settings.put(PIASettings.PROTEIN_FILTERS.getKey(), filtersArr);\n\n return settings;\n }",
"public WorkflowExecutionInfo getExecutionInfo() {\n return executionInfo;\n }",
"public com.ys.hmawfm.wfms.services.service.WFMS_WorkflowConfigLocalService getWFMS_WorkflowConfigLocalService() {\n\t\treturn wfms_WorkflowConfigLocalService;\n\t}",
"private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }",
"public Pokemon.ContactSettingsProto getSettings() {\n return settings_;\n }",
"public static LocalSettings getInstance() {\n if (INSTANCE == null) {\n INSTANCE = new LocalSettings();\n }\n \n return INSTANCE;\n }",
"private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }",
"protected WorkloadConfiguration getWorkloadConfiguration() {\n\t\treturn workloadConfiguration;\n\t}",
"public CommonExportProperties runSettings() {\n return this.runSettings;\n }",
"public JButtonOperator btSettings() {\n if (_btSettings==null) {\n _btSettings = new JButtonOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_Properties\"));\n }\n return _btSettings;\n }",
"public static Config getConfig(){\n return _Config;\n }",
"public static File getSettingsfile() {\n return settingsfile;\n }",
"public static FluentdRemoteSettings getInstance() {\n return INSTANCE;\n }",
"public ISysConfig getSysConfig() {\n ISysConfig sc = new DefaultSysConfig(SeqConfigNames.INSTRUMENT_CONFIG_NAME);\n\n // Fill in the current values.\n sc.putParameter(StringParameter.getInstance(ISPDataObject.VERSION_PROP, getVersion()));\n sc.putParameter(DefaultParameter.getInstance(DISPERSER_PROP.getName(), getDisperser()));\n sc.putParameter(DefaultParameter.getInstance(WAVELENGTH_PROP.getName(), getWavelength()));\n sc.putParameter(DefaultParameter.getInstance(EXPOSURE_TIME_PROP.getName(), getExposureTime()));\n sc.putParameter(DefaultParameter.getInstance(POS_ANGLE_PROP.getName(), getPosAngle()));\n sc.putParameter(DefaultParameter.getInstance(COADDS_PROP.getName(), getCoadds()));\n\n return sc;\n }"
] | [
"0.6855602",
"0.6782561",
"0.674229",
"0.67323506",
"0.672563",
"0.6245746",
"0.6200383",
"0.6163892",
"0.61066645",
"0.6071239",
"0.60475016",
"0.6027128",
"0.6011912",
"0.59527385",
"0.5828671",
"0.5807777",
"0.5795284",
"0.5744275",
"0.57356274",
"0.56329936",
"0.5554239",
"0.5502376",
"0.5492079",
"0.5488351",
"0.543304",
"0.5410623",
"0.5405641",
"0.53421736",
"0.5330453",
"0.532093",
"0.5287959",
"0.52879494",
"0.5286268",
"0.5263781",
"0.5250536",
"0.52488804",
"0.5217803",
"0.52160436",
"0.52160436",
"0.5193533",
"0.5172",
"0.5158792",
"0.51539856",
"0.51317054",
"0.512714",
"0.51144916",
"0.51009214",
"0.50785977",
"0.5070981",
"0.5069901",
"0.5066037",
"0.50649256",
"0.50649256",
"0.50649256",
"0.50649256",
"0.50649256",
"0.50649256",
"0.50649256",
"0.5064127",
"0.50553954",
"0.5049102",
"0.5047876",
"0.5043443",
"0.504198",
"0.5040464",
"0.5032832",
"0.502609",
"0.50142956",
"0.50044394",
"0.4995756",
"0.4993414",
"0.49862725",
"0.4974712",
"0.49710116",
"0.49669328",
"0.49645263",
"0.4963456",
"0.49586478",
"0.4956436",
"0.49540067",
"0.4944629",
"0.49423295",
"0.49404952",
"0.4936985",
"0.49287882",
"0.491812",
"0.4906326",
"0.4902992",
"0.4901269",
"0.48996314",
"0.48898986",
"0.48889837",
"0.4876172",
"0.48726174",
"0.4867522",
"0.48660335",
"0.48634088",
"0.48590428",
"0.48552725",
"0.48532"
] | 0.6584894 | 5 |
Returns a builder for the default ExecutorProvider for this service. | public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {
return WorkflowsStubSettings.defaultExecutorProviderBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }",
"public interface IExecutorBuilder {\n /**\n * Build IExecutor implementation.\n * @return IExecutor\n */\n IExecutor build();\n}",
"public Builder setExecutorProvider(ExecutorProvider executorProvider) {\n this.executorProvider =\n Preconditions.checkNotNull(executorProvider, \"ExecutorProvider is null.\");\n return this;\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 }",
"@Override\n protected ExecutorService createDefaultExecutorService() {\n return null;\n }",
"public Builder executorService(final ExecutorService executorService) {\n this.executorService = executorService;\n return this;\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();\n }",
"public NetconfServerConfigurationBuilder setExecutorService(ExecutorService executorService) {// NOSONAR\n this.m_executorService = executorService;\n return this;\n }",
"private static synchronized Executor getDefaultExecutor() {\n return sDefaultExecutor == null ? sDefaultExecutor = new Executor(1)\n : sDefaultExecutor;\n }",
"public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }",
"public ExecutorService createExecutor() {\n return getCamelContext().getExecutorServiceManager().newThreadPool(this, endpointName,\n 1, 5);\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 }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return WorkflowsStubSettings.defaultCredentialsProviderBuilder();\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 ResteasyServiceBuilder withExecutor(Executor executor) {\n this.executor = executor;\n return this;\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"@Override\n\tpublic Executor getExecutor() {\n\t\treturn null;\n\t}",
"public abstract T executor(@Nullable Executor executor);",
"public static Service newInstance() {\n return newInstance(DEFAULT_PROVIDER_NAME);\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 }",
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultHttpJsonTransportProviderBuilder();\n }",
"@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}",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"public static ApiRequest.ApiRequestBuilder builder() {\n final ApiRequest.ApiRequestBuilder builder = new ApiRequestBuilderCustom();\n return builder\n .requestStartTime(Instant.now().toEpochMilli())\n .requestId(UUID.randomUUID().toString());\n }",
"public static CustomHazelcastBuilder builder () {\n return new CustomHazelcastBuilder();\n }",
"protected ConnectionProvider createConnectionProviderIfNotSupplied() {\n\t\tif (connectionProviderSupplier != null) {\n\t\t\treturn connectionProviderSupplier.get();\n\t\t}\n\t\treturn new CoreConnectionPool();\n\t}",
"@NonNull\n public static Executor directExecutor() {\n return DirectExecutor.getInstance();\n }",
"@Override\n public ExecutorService getWrapped() {\n return es;\n }",
"public ThreadPool getDefaultThreadPool();",
"public jbt.execution.core.ExecutionTask createExecutor(\r\n\t\t\tjbt.execution.core.BTExecutor executor,\r\n\t\t\tjbt.execution.core.ExecutionTask parent) {\r\n\t\treturn new server.ai.jbt.actions.execution.ComputeWatchPoint(this,\r\n\t\t\t\texecutor, parent);\r\n\t}",
"public ElevatorControllerOperationsDefault() {\n\t\televatorControllerOperations = ElevatorControllerOperationsImplFactory.ElevatorControllerOperationsBuilder();}",
"public static ExecutorService getMainExecutorService() {\n return executorService;\n }",
"public ExecutorService m33643a() {\n return (ExecutorService) C15521i.a(this.f28354a.m25442b(), \"Cannot return null from a non-@Nullable @Provides method\");\n }",
"protected DefaultPromise()\r\n/* 44: */ {\r\n/* 45: 83 */ this.executor = null;\r\n/* 46: */ }",
"public Provider1Builder() {\r\n provider1 = new Provider1();\r\n }",
"public static sparqles.avro.analytics.EPViewInteroperability.Builder newBuilder() {\n return new sparqles.avro.analytics.EPViewInteroperability.Builder();\n }",
"void setExecutorService(ExecutorService executorService);",
"public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }",
"public ProcessBuilder buildCommand() {\n return null;\n }",
"public Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}",
"public DefaultPromise(EventExecutor executor)\r\n/* 36: */ {\r\n/* 37: 75 */ if (executor == null) {\r\n/* 38: 76 */ throw new NullPointerException(\"executor\");\r\n/* 39: */ }\r\n/* 40: 78 */ this.executor = executor;\r\n/* 41: */ }",
"public DefaultJobSelectionStrategy() {\n }",
"public CloudSdk.Builder newBuilder() {\n return new CloudSdk.Builder()\n .sdkPath(cloudSdkHome != null ? cloudSdkHome.toPath() : null)\n .exitListener(new NonZeroExceptionExitListener())\n .appCommandMetricsEnvironment(getClass().getPackage().getImplementationTitle())\n .appCommandMetricsEnvironmentVersion(getClass().getPackage().getImplementationVersion());\n }",
"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 OptionsBuilder optionsBuilder() {\n OptionsBuilder builder = new OptionsBuilder();\n\n builder.forks(forks);\n builder.warmupIterations(warmupIterations);\n builder.measurementIterations(measurementIterations);\n builder.timeUnit(outputTimeUnit);\n builder.threads(threads);\n\n if (benchmarkModes != null) {\n for (Mode benchmarkMode : benchmarkModes)\n builder.getBenchModes().add(benchmarkMode);\n }\n\n if (benchmarks != null) {\n for (Object benchmark : benchmarks) {\n if (benchmark instanceof Class)\n builder.include(((Class)benchmark).getSimpleName());\n else\n builder.include(benchmark.toString());\n }\n }\n\n if (jvmArgs != null)\n builder.jvmArgs(jvmArgs);\n\n if (output != null)\n builder.output(output);\n\n if (profilers != null) {\n for (Class profiler : profilers)\n builder.addProfiler(profiler);\n }\n\n return builder;\n }",
"public SequentialExecutor(Executor executor)\r\n {\r\n myExecutor = Utilities.checkNull(executor, \"executor\");\r\n }",
"public Executor getExecutor() {\n return executor;\n }",
"@Override\n public ExecutorService newThreadPool(ThreadPoolProfile profile, ThreadFactory threadFactory) {\n if (profile.isDefaultProfile()) {\n return vertxExecutorService;\n } else {\n return super.newThreadPool(profile, threadFactory);\n }\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public ExecutorService getExecutorService() {\n return executorService;\n }",
"public jbt.execution.core.ExecutionTask createExecutor(\n\t\t\tjbt.execution.core.BTExecutor executor,\n\t\t\tjbt.execution.core.ExecutionTask parent) {\n\t\treturn new entrants.BT.Execution.Actions.DefaultMove(this, executor,\n\t\t\t\tparent);\n\t}",
"protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }",
"public ExecutionFactoryImpl() {\n\t\tsuper();\n\t}",
"@Override\n public Executor generate(int type) {\n return null;\n }",
"@Override\n\tpublic ThreadPoolExecutor getThreadPool(final HystrixThreadPoolKey threadPoolKey,\n\t\t\tfinal HystrixProperty<Integer> corePoolSize, final HystrixProperty<Integer> maximumPoolSize,\n\t\t\tfinal HystrixProperty<Integer> keepAliveTime, final TimeUnit unit,\n\t\t\tfinal BlockingQueue<Runnable> workQueue) {\n\n\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - default [threadPoolKey=\" + threadPoolKey.name() + \", corePoolSize=\"\n\t\t\t\t+ corePoolSize.get() + \", maximumPoolSize=\" + maximumPoolSize.get() + \", keepAliveTime=\"\n\t\t\t\t+ keepAliveTime.get() + \", unit=\" + unit.name() + \"], override with [threadPoolKey=\"\n\t\t\t\t+ threadPoolKey.name() + \", corePoolSize=\" + CORE_POOL_SIZE + \", maximumPoolSize=\" + MAX_POOL_SIZE\n\t\t\t\t+ \", keepAliveTime=\" + KEEP_ALIVE_TIME + \", unit=\" + TimeUnit.SECONDS.name() + \"]\");\n\n\t\tif (threadFactory != null) {\n\t\t\t// All threads will run as part of this application component.\n\t\t\tfinal ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(CORE_POOL_SIZE, MAX_POOL_SIZE,\n\t\t\t\t\tKEEP_ALIVE_TIME, TimeUnit.SECONDS, new ArrayBlockingQueue<Runnable>(BLOCKING_QUEUE_SIZE),\n\t\t\t\t\tthis.threadFactory);\n\n\t\t\tLOGGER.debug(LOG_PREFIX + \"getThreadPool - initialized threadpool executor [threadPoolKey=\"\n\t\t\t\t\t+ threadPoolKey.name() + \"]\");\n\n\t\t\treturn threadPoolExecutor;\n\t\t} else {\n\t\t\tLOGGER.warn(LOG_PREFIX + \"getThreadPool - fallback to Hystrix default thread pool executor.\");\n\n\t\t\treturn super.getThreadPool(threadPoolKey, corePoolSize, maximumPoolSize, keepAliveTime, unit, workQueue);\n\t\t}\n\t}",
"protected EventExecutorFactory getExecutorFactory() {\n\t\treturn executorFactory;\n\t}",
"public org.naru.park.ParkModel.UIParkRequest.Builder getRequestBuilder() {\n \n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public Provider1 build() {\r\n return provider1;\r\n }",
"static Builder builder() {\n return new Builder();\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"@NonNull\n public Executor getExecutor() {\n return mExecutor;\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public ComputerBuilder() {\n this.computer = new Computer();\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 ListenableThreadPoolExecutor newOptimalSizedExecutorService(String name, int priority) {\r\n\t\tint processors = Runtime.getRuntime().availableProcessors();\r\n\t\tint threads = processors > 1 ? processors - 1 : 1;\r\n\t\treturn new ListenableThreadPoolExecutor(name, threads, priority);\r\n\t}",
"static XalanExecutor newInstance(AggregateTransformer caller) throws BuildException {\n Class procVersion = null;\n XalanExecutor executor = null;\n try {\n procVersion = Class.forName(\"org.apache.xalan.processor.XSLProcessorVersion\");\n executor = (XalanExecutor) Class.forName(\n \"org.apache.tools.ant.taskdefs.optional.junit.Xalan2Executor\").newInstance();\n } catch (Exception xalan2missing){\n StringWriter swr = new StringWriter();\n xalan2missing.printStackTrace(new PrintWriter(swr));\n caller.task.log(\"Didn't find Xalan2.\", Project.MSG_DEBUG);\n caller.task.log(swr.toString(), Project.MSG_DEBUG);\n try {\n procVersion = Class.forName(\"org.apache.xalan.xslt.XSLProcessorVersion\");\n executor = (XalanExecutor) Class.forName(\n \"org.apache.tools.ant.taskdefs.optional.junit.Xalan1Executor\").newInstance();\n } catch (Exception xalan1missing){\n swr = new StringWriter();\n xalan1missing.printStackTrace(new PrintWriter(swr));\n caller.task.log(\"Didn't find Xalan1.\", Project.MSG_DEBUG);\n caller.task.log(swr.toString(), Project.MSG_DEBUG);\n }\n }\n String version = getXalanVersion(procVersion);\n caller.task.log(\"Using Xalan version: \" + version);\n executor.setCaller(caller);\n return executor;\n }",
"public TaskProvider getTaskProvider();",
"public interface ConfigurableSupplierBuilder <T, U extends ConfigurableSupplierBuilder<T,U>>\n extends SupplierBuilder<T>, Configurable<U>{\n\n default StreamableSupplier<T> build(Consumer<U> configuration){\n return this.configure(configuration).build();\n }\n}",
"public String getExecutorName() {\n return executorName;\n }",
"@ProviderType\npublic interface ThreadPoolMBean {\n\n /**\n * Retrieve the block policy of the thread pool.\n * \n * @return the block policy\n */\n String getBlockPolicy();\n\n /**\n * Retrieve the active count from the pool's Executor.\n * \n * @return the active count or -1 if the thread pool does not have an Executor\n */\n int getExecutorActiveCount();\n\n /**\n * Retrieve the completed task count from the pool's Executor.\n * \n * @return the completed task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorCompletedTaskCount();\n\n /**\n * Retrieve the core pool size from the pool's Executor.\n * \n * @return the core pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorCorePoolSize();\n\n /**\n * Retrieve the largest pool size from the pool's Executor.\n * \n * @return the largest pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorLargestPoolSize();\n\n /**\n * Retrieve the maximum pool size from the pool's Executor.\n * \n * @return the maximum pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorMaximumPoolSize();\n\n\n /**\n * Retrieve the pool size from the pool's Executor.\n * \n * @return the pool size or -1 if the thread pool does not have an Executor\n */\n int getExecutorPoolSize();\n\n\n /**\n * Retrieve the task count from the pool's Executor. This is the total number of tasks, which\n * have ever been scheduled to this threadpool. They might have been processed yet or not.\n * \n * @return the task count or -1 if the thread pool does not have an Executor\n */\n long getExecutorTaskCount();\n \n \n /**\n * Retrieve the number of tasks in the work queue of the pool's Executor. These are the\n * tasks which have been already submitted to the threadpool, but which are not yet executed.\n * @return the number of tasks in the work queue -1 if the thread pool does not have an Executor\n */\n long getExcutorTasksInWorkQueueCount();\n\n /**\n * Return the configured max thread age.\n *\n * @return The configured max thread age.\n * @deprecated Since version 1.1.1 always returns -1 as threads are no longer retired\n * but instead the thread locals are cleaned up (<a href=\"https://issues.apache.org/jira/browse/SLING-6261\">SLING-6261</a>)\n */\n @Deprecated\n long getMaxThreadAge();\n\n /**\n * Return the configured keep alive time.\n * \n * @return The configured keep alive time.\n */\n long getKeepAliveTime();\n\n /**\n * Return the configured maximum pool size.\n * \n * @return The configured maximum pool size.\n */\n int getMaxPoolSize();\n\n /**\n * Return the minimum pool size.\n * \n * @return The minimum pool size.\n */\n int getMinPoolSize();\n\n /**\n * Return the name of the thread pool\n * \n * @return the name\n */\n String getName();\n\n /**\n * Return the configuration pid of the thread pool.\n * \n * @return the pid\n */\n String getPid();\n\n /**\n * Return the configured priority of the thread pool.\n * \n * @return the priority\n */\n String getPriority();\n\n /**\n * Return the configured queue size.\n * \n * @return The configured queue size.\n */\n int getQueueSize();\n\n /**\n * Return the configured shutdown wait time in milliseconds.\n * \n * @return The configured shutdown wait time.\n */\n int getShutdownWaitTimeMs();\n\n /**\n * Return whether or not the thread pool creates daemon threads.\n * \n * @return The daemon configuration.\n */\n boolean isDaemon();\n\n /**\n * Return whether or not the thread pool is configured to shutdown gracefully.\n * \n * @return The graceful shutdown configuration.\n */\n boolean isShutdownGraceful();\n\n /**\n * Return whether or not the thread pool is in use.\n * \n * @return The used state of the pool.\n */\n boolean isUsed();\n\n}",
"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}"
] | [
"0.8677944",
"0.6682121",
"0.6461372",
"0.6332824",
"0.63082975",
"0.62088513",
"0.601971",
"0.58458465",
"0.5809147",
"0.57288355",
"0.57125473",
"0.5704943",
"0.5693507",
"0.5648413",
"0.56471133",
"0.5575235",
"0.55427766",
"0.5485984",
"0.53418726",
"0.530021",
"0.5290229",
"0.52656966",
"0.5228803",
"0.52008635",
"0.5155584",
"0.5153957",
"0.5149209",
"0.5148416",
"0.514749",
"0.51340926",
"0.51068395",
"0.50914663",
"0.50910395",
"0.5073713",
"0.50723326",
"0.5067431",
"0.5057485",
"0.50543463",
"0.5053753",
"0.50491315",
"0.50306284",
"0.50265884",
"0.50264865",
"0.50161815",
"0.49926856",
"0.4988103",
"0.4978817",
"0.4971244",
"0.49511865",
"0.49443913",
"0.49360898",
"0.49275663",
"0.4924519",
"0.49119288",
"0.49119288",
"0.49082792",
"0.49082792",
"0.49082792",
"0.49082792",
"0.49069482",
"0.4898763",
"0.489565",
"0.48926327",
"0.48882926",
"0.48782563",
"0.486982",
"0.48209655",
"0.48146465",
"0.48027685",
"0.48015884",
"0.47955182",
"0.47882956",
"0.47882956",
"0.47882956",
"0.47882956",
"0.47873318",
"0.47873318",
"0.47873318",
"0.47725186",
"0.47717762",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47625062",
"0.47586742",
"0.47550386",
"0.4753069",
"0.47451898",
"0.47327846",
"0.47237813",
"0.47022662",
"0.4700904",
"0.4693011"
] | 0.81832516 | 1 |
Returns the default service endpoint. | public static String getDefaultEndpoint() {
return WorkflowsStubSettings.getDefaultEndpoint();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"Endpoint getDefaultEndpoint();",
"String serviceEndpoint();",
"public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }",
"void setDefaultEndpoint(Endpoint defaultEndpoint);",
"public String getEndpoint() {\n\t\treturn null;\n\t}",
"@Override\n public String getServiceEndpoint(String serviceName) {\n return serviceEndpoints.get(serviceName);\n }",
"String endpoint();",
"protected abstract String getBaseEndpoint();",
"@java.lang.Override\n public java.lang.String getServiceEndpoint() {\n java.lang.Object ref = serviceEndpoint_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n serviceEndpoint_ = s;\n return s;\n }\n }",
"private String getServiceEndpointAddress() {\n try {\n Config config = Config.getInstance();\n return config.getHost();\n } catch (IOException e) {\n throw new IllegalArgumentException(\"Service url is wrong.\");\n }\n }",
"void setDefaultEndpointUri(String endpointUri);",
"public java.lang.String getServiceEndpoint() {\n java.lang.Object ref = serviceEndpoint_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n serviceEndpoint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"protected String getServiceEndpoint(String serviceName) {\n APIManagerConfiguration config = ServiceReferenceHolder.getInstance().\n getAPIManagerConfigurationService().getAPIManagerConfiguration();\n String url = config.getFirstProperty(APIConstants.API_GATEWAY_SERVER_URL);\n return url + serviceName;\n }",
"public String getDocumentEndpoint();",
"protected abstract String getBaseEndpointPath();",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String endpoint() {\n return this.endpoint;\n }",
"public EndpointService endpointService() {\n return this.endpointService;\n }",
"public com.quikj.server.app.EndPointInterface getEndpoint() {\n\t\treturn endpoint;\n\t}",
"public String getEndpointName() {\n return endpointName;\n }",
"EndpointType endpointType();",
"@java.lang.Override\n public com.google.protobuf.ByteString getServiceEndpointBytes() {\n java.lang.Object ref = serviceEndpoint_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n serviceEndpoint_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\tpublic URL getServiceUrl()\n\t{\n\t\treturn null;\n\t}",
"public String getDefaultPort() {\n return defaultPort;\n }",
"public String getEndpointInterface()\r\n {\r\n return endpointInterface;\r\n }",
"public VirtualHost getDefaultHost() {\r\n return this.defaultHost;\r\n }",
"public String endpointName() {\n return this.endpointName;\n }",
"public final HttpEndpoint getEndpoint( ) {\r\n\t\treturn this.endpoint;\t\t\r\n\t}",
"public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n apiEndpoint_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getHandleServiceBaseUrl();",
"public String endpointUri() {\n return this.endpointUri;\n }",
"@java.lang.Override\n public java.lang.String getApiEndpoint() {\n java.lang.Object ref = apiEndpoint_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n apiEndpoint_ = s;\n return s;\n }\n }",
"public String getServiceUrl() {\n return \"http://\" + this.serviceHost + \":\" + this.servicePort;\n }",
"private String getEndPointUrl()\r\n\t{\r\n\t\t// TODO - Get the URL from WSRR\r\n\t\treturn \"http://localhost:8093/mockCustomerBinding\";\r\n\t}",
"public com.google.protobuf.ByteString getServiceEndpointBytes() {\n java.lang.Object ref = serviceEndpoint_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);\n serviceEndpoint_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public Builder setServiceEndpoint(java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n serviceEndpoint_ = value;\n bitField0_ |= 0x00002000;\n onChanged();\n return this;\n }",
"String getServiceUrl();",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint();",
"default String getHost() {\n return \"localhost\";\n }",
"public String endpointUrl() {\n return this.endpointUrl;\n }",
"public String getHttpsEndpoint() {\n\t\treturn \"https://\" + getMyHostname() + \":\" + httpsPort;\n\t}",
"@Override\n\tpublic DefaultServicePortMapping getDefaultServicePortMapping(STBPortMapping prop) {\n\t\tDefaultServicePortMapping defaultServicePortMapping = defaultServicePortMappingRepository\n\t\t\t\t.findByServiceName(prop.getServiceType());\n\t\tif (DeviceManagerUtil.checkNullObject(defaultServicePortMapping)) {\n\t\t\tthrow new DeviceManagerException(ErrorCode.INVALID_SERVICE_TYPE,\n\t\t\t\t\t\"Wrong ServiceType = \" + prop.getServiceType() + \" provided\");\n\t\t}\n\t\treturn defaultServicePortMapping;\n\t}",
"public static String getDefaultMtlsEndpoint() {\n return \"biglake.mtls.googleapis.com:443\";\n }",
"public QName getServiceName() {\n\t\treturn null;\n\t}",
"default String socket() {\n return WebServer.DEFAULT_SOCKET_NAME;\n }",
"public org.hl7.fhir.Uri getEndpoint()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.hl7.fhir.Uri target = null;\n target = (org.hl7.fhir.Uri)get_store().find_element_user(ENDPOINT$8, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }",
"String getStaticWebEndpoint();",
"@Override\n public GetServiceEndpointResult getServiceEndpoint(GetServiceEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeGetServiceEndpoint(request);\n }",
"public URL getEndPoint();",
"public final String getEndpointOverrideUrl() {\n return properties.get(ENDPOINT_OVERRIDE_URL_PROPERTY);\n }",
"UMOEndpointURI getEndpointURI();",
"public String getSearchEndpoint();",
"java.lang.String getService();",
"java.lang.String getService();",
"java.lang.String getService();",
"public final String getDefaultNsURI() {\n if (mSize == 0) {\n throw new IllegalStateException(\"Illegal access, empty stack.\");\n }\n return mElements[mSize-(ENTRY_SIZE - IX_DEFAULT_NS)];\n }",
"protected String getDefaultListener()\n {\n return DEFAULT_LISTENER;\n }",
"private URI getInstanceUri(String serviceId) {\n List<ServiceInstance> serviceInstances = discoveryClient.getInstances(serviceId);\n if (serviceInstances.size() > 0) {\n return serviceInstances.get(0).getUri();\n } else {\n log.warn(\"Service Instance not found for service \" + serviceId + \"!\");\n return null;\n }\n }",
"public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint() {\n if (endpointBuilder_ == null) {\n return endpoint_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance() : endpoint_;\n } else {\n return endpointBuilder_.getMessage();\n }\n }",
"public String getDefaultFromAddress() {\n\t\treturn myDefaultFromAddress;\n\t}",
"public String getEndpointAsString() {\r\n\t\tString host;\r\n\r\n\t\ttry {\r\n\t\t\thost = InetAddress.getByName(m_hostString).toString();\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\thost = m_hostString;\r\n\t\t}\r\n\r\n\t\treturn host + \":\" + m_port;\r\n\t}",
"public String getDefaultNamespace() {\n return defaultNamespaceUri;\n }",
"public static String getDefaultServletName() {\n return RefDataServlet.DEFAULT_REFERENCE_DATA_SERVLET_NAME;\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public static PilosaClient defaultClient() {\n return PilosaClient.withURI(URI.defaultURI());\n }",
"String getServiceRef();",
"public String getEndpointId();",
"public String getServiceName();",
"public String getDiscoveryEndpoint() {\n return discoveryEndpoint;\n }",
"void setEndpoint(String endpoint);",
"String getServiceName();",
"String getServiceName();",
"public String getSparqlEndPoint() {\n\t\treturn this.sparqlEndPointURL;\n\t}",
"public GraphNode firstEndpoint() {\n\t\t\treturn start;\n\t\t}",
"private String getDefaultNS() {\n\t\treturn model.getNsPrefixURI(\"\");\n\t}",
"java.lang.String getServiceName();",
"java.lang.String getServiceName();",
"public URL getWSDLDocumentLocation() {\n\t\treturn null;\n\t}",
"protected String getDefaultListenerMethod() {\n\t\treturn this.defaultListenerMethod;\n\t}",
"public static EndpointMBean getAddEndpointMBean()\n {\n return new Endpoint(\n \"http://localhost:9080/WebServiceProject/CalculatorService\");\n }",
"public Builder clearServiceEndpoint() {\n serviceEndpoint_ = getDefaultInstance().getServiceEndpoint();\n bitField0_ = (bitField0_ & ~0x00002000);\n onChanged();\n return this;\n }",
"public static ServerActivator getDefault() {\n\t\treturn plugin;\n\t}",
"@Override\n\tprotected String getWebServiceUri() {\n\t\treturn this.uri;\n\t}",
"String getNodeServiceUrl()\n throws IOException, SoapException;",
"@java.lang.Override\n public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint() {\n return endpoint_ == null ? io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.getDefaultInstance() : endpoint_;\n }",
"public String getServiceUrl() {\n return serviceUrl;\n }",
"@Nonnull\n\tprivate URI getPossiblyInsecureBaseUri() {\n\t\tUriInfo ui = getUriInfo();\n\t\tif (ui != null && ui.getBaseUri() != null)\n\t\t\treturn ui.getBaseUri();\n\t\t// See if JAX-WS *cannot* supply the info\n\t\tif (jaxws == null || jaxws.getMessageContext() == null)\n\t\t\t// Hack to make the test suite work\n\t\t\treturn URI.create(\"http://\" + DEFAULT_HOST\n\t\t\t\t\t+ \"/taverna-server/rest/\");\n\t\tString pathInfo = (String) jaxws.getMessageContext().get(PATH_INFO);\n\t\tpathInfo = pathInfo.replaceFirst(\"/soap$\", \"/rest/\");\n\t\tpathInfo = pathInfo.replaceFirst(\"/rest/.+$\", \"/rest/\");\n\t\treturn URI.create(\"http://\" + getHostLocation() + pathInfo);\n\t}",
"public abstract String getServiceName();",
"public Resource getDefaultGraphName() {\n \t\treturn createResource(this.baseGraphName);\n \t}",
"@Override\n public String toString() {\n return endpoint;\n }",
"@GetMapping(\"/service\")\n\tpublic String showService() {\n\t\treturn \"service\";\n\t}",
"protected abstract String getATiempoServiceName();",
"public String getEndPoint() {\n return _endPoint;\n }",
"public abstract Endpoint createEndpoint(String bindingId, Object implementor);",
"@WebMethod\n URI exposeEndpoint(Endpoint endpoint);",
"@java.lang.Override\n public com.google.cloud.networkmanagement.v1beta1.EndpointInfo getEndpoint() {\n if (endpointBuilder_ == null) {\n if (stepInfoCase_ == 8) {\n return (com.google.cloud.networkmanagement.v1beta1.EndpointInfo) stepInfo_;\n }\n return com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance();\n } else {\n if (stepInfoCase_ == 8) {\n return endpointBuilder_.getMessage();\n }\n return com.google.cloud.networkmanagement.v1beta1.EndpointInfo.getDefaultInstance();\n }\n }",
"default HttpUrl getNodeUrl() {\n return HttpUrl.parse(getHost()).newBuilder().port(getPort()).build();\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }"
] | [
"0.82360005",
"0.7306365",
"0.72812724",
"0.72709095",
"0.6871711",
"0.6836553",
"0.67814",
"0.6774995",
"0.67027754",
"0.66593266",
"0.6637685",
"0.66110706",
"0.6443634",
"0.6395922",
"0.62653685",
"0.6262007",
"0.6262007",
"0.6243032",
"0.6125578",
"0.60891914",
"0.6080673",
"0.6041615",
"0.60407513",
"0.60361266",
"0.6019475",
"0.6012637",
"0.5983815",
"0.59827757",
"0.59803426",
"0.59798366",
"0.5966688",
"0.5945028",
"0.59271866",
"0.584639",
"0.581835",
"0.5814206",
"0.5797097",
"0.5788581",
"0.57661253",
"0.5757202",
"0.57541054",
"0.5743138",
"0.57315964",
"0.57256067",
"0.5725038",
"0.57227635",
"0.5721654",
"0.57137406",
"0.57090783",
"0.56973904",
"0.5691549",
"0.56869763",
"0.56758857",
"0.5670222",
"0.5670222",
"0.5670222",
"0.56563485",
"0.5647834",
"0.5642435",
"0.5642283",
"0.564113",
"0.56202066",
"0.5609218",
"0.56082356",
"0.5585808",
"0.55832416",
"0.55421966",
"0.55351406",
"0.5531803",
"0.5522801",
"0.55206233",
"0.55206233",
"0.551968",
"0.55182076",
"0.5515692",
"0.5508002",
"0.5508002",
"0.55038655",
"0.54898113",
"0.547589",
"0.5471486",
"0.54682904",
"0.5445719",
"0.5443221",
"0.5435916",
"0.54257244",
"0.54023784",
"0.53924274",
"0.53778523",
"0.5377279",
"0.53764206",
"0.5363964",
"0.53549355",
"0.53301054",
"0.53117687",
"0.5307498",
"0.5302644",
"0.53009135",
"0.53009135",
"0.53009135"
] | 0.79290885 | 1 |
Returns the default service scopes. | public static List<String> getDefaultServiceScopes() {
return WorkflowsStubSettings.getDefaultServiceScopes();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static List<String> getDefaultServiceScopes() {\n return DEFAULT_SERVICE_SCOPES;\n }",
"@Override\n public Set<String> getScopes() {\n return scopes;\n }",
"@Override\n public Set<String> getScopes() {\n return scopes;\n }",
"public Set<Scope> getScopes();",
"public String getScopes() {\n\t\treturn getParameterValue(\"scope\");\n\t}",
"public PreferenceScopeResolver getDefaultScopeResolver() {\n return scopeResolver;\n }",
"private String[] getScopes() {\n return scopeTextView.getText().toString().toLowerCase().split(\" \");\n }",
"protected Collection<String> getStravaScopes() {\n return Arrays.asList(\"activity:read\");\n }",
"public Set<OntologyScope> getRegisteredScopes();",
"public PreferenceScopeResolutionStrategyInfo getDefaultScopeResolutionStrategyInfo() {\n return scopeResolutionStrategyInfo;\n }",
"public List<String> getScopesList() {\n\t\tString scopes = getScopes();\n\t\tif (scopes == null)\n\t\t\treturn new ArrayList<String>();\n\t\treturn Arrays.asList(scopes.split(SCOPE_DELIMITER));\n\t}",
"public DownloadScopeList getAvailableScopeList( )\r\n {\r\n if ( System.currentTimeMillis() >\r\n availableRangeSetTime + AVAILABLE_RANGE_SET_TIMEOUT )\r\n {\r\n setAvailableRangeSet( null );\r\n }\r\n return availableScopeList;\r\n }",
"Set<String> getDecoratedScope(final Set<String> inputScopes) {\n final Set<String> scopes = new HashSet<>(inputScopes);\n final Set<String> reservedScopes = getReservedScopesAsSet();\n scopes.addAll(reservedScopes);\n scopes.remove(mAuthRequestParameters.getClientId());\n\n return scopes;\n }",
"String getScope();",
"public String getAutoApproveScopes() {\n return autoApproveScopes;\n }",
"private static IScopeContext[] createPreferenceScopes(IProject project) {\n\t\tif (project != null) {\n\t\t\treturn new IScopeContext[] { new ProjectScope(project),\n\t\t\t\t\tnew InstanceScope(), new DefaultScope() };\n\t\t}\n\t\treturn new IScopeContext[] { new InstanceScope(), new DefaultScope() };\n\t}",
"@Override\n\tpublic Response<Boolean> getRecommendScopes(RequestContext requestContext) {\n\t\treturn null;\n\t}",
"public interface Scope {\n\t\n\tpublic static final String PHOTO = \"photo\";\n\tpublic static final String MESSAGE = \"message\";\n\tpublic static final String FRIENDS = \"friends\";\n\tpublic static final String ACCOUNT = \"account\";\n\tpublic static final String NOTIFICATION = \"notification\";\n\tpublic static final String APPLICATION = \"application\";\n\tpublic static final String STREAM = \"stream\";\n\tpublic static final String PERSON_INFO = \"person_info\";\n\t\n\t\n}",
"public static Collection<RoleScope> values() {\n return values(RoleScope.class);\n }",
"com.google.analytics.admin.v1alpha.AudienceFilterScope getScope();",
"public Set<ScopeEventListener> getScopeRegistrationListeners();",
"public Scope currentScope(){\n if(currentConstants == null){\n return Scope.GLOBAL;\n }\n if(currentConstants != null && temporaryConstants == null){\n return Scope.LOCAL;\n }\n return Scope.TEMPORARY;\n }",
"public java.lang.String getScope() {\r\n return scope;\r\n }",
"public void setScopes(String scopes) {\n\t\tset(\"scope\", scopes);\n\t}",
"public void filterScopes(Set<Scope> allowedScopes);",
"public String getScope() {\n return scope;\n }",
"public String getScope() {\n return scope;\n }",
"@Nullable\n public String getScope() {\n return scope;\n }",
"default ImmutableSet<Class<? extends ManagedService>> getDependencies()\n\t{\n\t\treturn Sets.immutable.empty();\n\t}",
"public static Scope empty(){\n return EMPTY;\n }",
"@RequestMapping(value = \"/scope\", method = GET, produces = APPLICATION_JSON_VALUE)\n\tpublic DataResponse<List<Scope>> allScopes(\n\t\t\t@RequestParam(value = \"component\", required = true) String cId) {\n\t\tObjectId componentId = new ObjectId(cId);\n\t\treturn this.scopeService.getAllScopes(componentId);\n\t}",
"@Override\n public List<Scope> getAllSharedScopes(String tenantDomain) throws APIManagementException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Retrieving all the shared scopes for tenant: \" + tenantDomain);\n }\n //Get all shared scopes\n List<Scope> allSharedScopes = ApiMgtDAO.getInstance().getAllSharedScopes(tenantDomain);\n //Get all scopes from KM\n List<Scope> allScopes = scopesDAO.getScopes(APIUtil.getTenantIdFromTenantDomain(tenantDomain));\n for (Scope scope : allSharedScopes) {\n for (Scope tempScope : allScopes) {\n if (scope.getKey().equals(tempScope.getKey())) {\n scope.setName(tempScope.getName());\n scope.setDescription(tempScope.getDescription());\n scope.setRoles(tempScope.getRoles());\n break;\n }\n }\n }\n return allSharedScopes;\n }",
"@Override\n public String checkScopesPolicy(String scope) {\n LOGGER.debug(\"Checking scopes policy for: \" + scope);\n\n ScopeService scopeService = ScopeService.instance();\n scopes.clear();\n\n final StringBuilder grantedScopesSb = new StringBuilder();\n final String[] scopesRequested = scope.split(\" \");\n final String[] scopesAllowed = client.getScopes();\n\n // if federation is enabled, take scopes from federation trust\n if (ConfigurationFactory.getConfiguration().getFederationEnabled()) {\n LOGGER.trace(\"Ignore client scopes because federation is enabled (take scopes from trust).\");\n final List<FederationTrust> list = FederationDataService.instance().getTrustByClient(client, FederationTrustStatus.ACTIVE);\n final List<String> allScopes = FederationDataService.getScopes(list);\n LOGGER.trace(\"Take scopes from federation trust list: \" + list);\n for (String dn : allScopes) {\n final Scope scopeByDn = scopeService.getScopeByDnSilently(dn);\n if (scopeByDn != null) {\n final String displayName = scopeByDn.getDisplayName();\n scopes.add(displayName);\n grantedScopesSb.append(\" \").append(displayName);\n }\n }\n } else {\n for (String scopeRequested : scopesRequested) {\n if (StringUtils.isNotBlank(scopeRequested)) {\n for (String scopeAllowedDn : scopesAllowed) {\n Scope scopeAllowed = scopeService.getScopeByDnSilently(scopeAllowedDn);\n if (scopeAllowed != null) {\n String scopeAllowedName = scopeAllowed.getDisplayName();\n if (scopeRequested.equals(scopeAllowedName)) {\n scopes.add(scopeRequested);\n grantedScopesSb.append(\" \").append(scopeRequested);\n }\n }\n }\n }\n }\n }\n\n final String grantedScopes = grantedScopesSb.toString().trim();\n LOGGER.debug(\"Granted scopes: \" + grantedScopes);\n return grantedScopes;\n }",
"public static TypePermission[] getDefaultPermissions() {\n return PERMISSIONS.clone();\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }",
"@Nonnull\n public com.microsoft.graph.requests.DefaultManagedAppProtectionCollectionRequestBuilder defaultManagedAppProtections() {\n return new com.microsoft.graph.requests.DefaultManagedAppProtectionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(\"defaultManagedAppProtections\"), getClient(), null);\n }",
"public int getScope() {\r\n\t\treturn scope;\r\n\t}",
"public String getScope() {\n\t\treturn scope;\n\t}",
"@ApiModelProperty(value = \"The scopes of the token\")\n public String getScope() {\n return scope;\n }",
"private void parseBeanScope(String defaultScope) {\n\t\tString theScope = rawConfig.getScope();\n\t\t\n\t\tif(ValueUtils.isEmpty(theScope)) {\n\t\t\t//If could not get the scope setting from the rawConfig, try to get it from the annotation.\n\t\t\tLifecycle lifecycle = this.beanClazz.getAnnotation(Lifecycle.class);\n\t\t\tif(lifecycle != null) {\n\t\t\t\ttheScope = lifecycle.scope();\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttheScope = defaultScope;\n\t\t\t}\n\t\t}\n\n\t\tthis.scope = theScope;\n\t}",
"public static Collection<FlashScope> getAllFlashScopes(HttpServletRequest req) {\n Map<Integer, FlashScope> scopes = getContainer(req, false);\n\n if (scopes == null) {\n return Collections.emptySet();\n } else {\n return scopes.values();\n }\n }",
"public int getScope()\n {\n\t\treturn url.getScope();\n }",
"public String getScope() {\n\t\treturn _scope != -1 ? Components.scopeToString(_scope): null;\n\t}",
"public String getScope() {\n return this.scope;\n }",
"public String getScope() {\n return this.scope;\n }",
"public String getScope() {\n return this.scope;\n }",
"public BsonDocument getScope() {\n return scope;\n }",
"private Set<Integer> determineFileStorageIdsFromAllScopes(DatabaseService databaseService) {\n Set<Integer> fileStoreIds = null;\n\n // Check for possible configured file storage identifiers for context-sets scope\n try {\n ConfigurationService configurationService = services.getOptionalService(ConfigurationService.class);\n if (configurationService != null) {\n Set<Integer> contextSetsFileStoreIds = determineContextSetsFileStoreIds(configurationService);\n if (contextSetsFileStoreIds.isEmpty() == false) {\n fileStoreIds = new HashSet<>();\n fileStoreIds.addAll(contextSetsFileStoreIds);\n }\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to retrieve possible identifiers of data export file storage from context-sets scope\", e);\n }\n\n // Check for possible configured file storage identifiers for reseller scope\n try {\n ResellerService resellerService = services.getOptionalService(ResellerService.class);\n if (resellerService != null && resellerService.isEnabled()) {\n Set<Integer> resellerFileStoreIds = determineResellerFileStoreIds(databaseService);\n if (resellerFileStoreIds.isEmpty() == false) {\n if (fileStoreIds == null) {\n fileStoreIds = new HashSet<>();\n }\n fileStoreIds.addAll(resellerFileStoreIds);\n }\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to retrieve possible identifiers of data export file storage from reseller scope\", e);\n }\n\n // Check for possible configured file storage identifiers for server scope\n try {\n ConfigurationService configurationService = services.getOptionalService(ConfigurationService.class);\n int fileStoreId = configurationService == null ? -1 : configurationService.getIntProperty(\"com.openexchange.gdpr.dataexport.fileStorageId\", -1);\n if (fileStoreId > 0) {\n if (fileStoreIds == null) {\n fileStoreIds = new HashSet<>();\n }\n fileStoreIds.add(I(fileStoreId));\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to retrieve possible identifiers of data export file storage from server scope\", e);\n }\n\n // Check for possible configured file storage identifiers for context and user scope\n ContextService contextService = services.getOptionalService(ContextService.class);\n if (contextService != null) {\n try {\n for (Integer representativeContextId : contextService.getDistinctContextsPerSchema()) {\n fileStoreIds = addFileStoreIdsForSchema(representativeContextId.intValue(), fileStoreIds, databaseService);\n }\n } catch (Exception e) {\n LOG.warn(\"Failed to retrieve possible identifiers of data export file storage from context and user scope\", e);\n }\n }\n\n return fileStoreIds == null ? Collections.emptySet() : fileStoreIds;\n }",
"private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE, Scope.R_EMAILADDRESS);\n }",
"public List<Dim> getGlobals(){\n\t\t\n\t\treturn null;\n\t}",
"@Override\n protected void createDefaultClientScopesImpl(RealmModel newRealm) {\n ClientScopeModel profileScope = newRealm.addClientScope(OAuth2Constants.SCOPE_PROFILE);\n profileScope.setDescription(\"OpenID Connect built-in scope: profile\");\n profileScope.setDisplayOnConsentScreen(true);\n profileScope.setConsentScreenText(PROFILE_SCOPE_CONSENT_TEXT);\n profileScope.setIncludeInTokenScope(true);\n profileScope.setProtocol(getId());\n profileScope.addProtocolMapper(builtins.get(FULL_NAME));\n profileScope.addProtocolMapper(builtins.get(FAMILY_NAME));\n profileScope.addProtocolMapper(builtins.get(GIVEN_NAME));\n profileScope.addProtocolMapper(builtins.get(MIDDLE_NAME));\n profileScope.addProtocolMapper(builtins.get(NICKNAME));\n profileScope.addProtocolMapper(builtins.get(USERNAME));\n profileScope.addProtocolMapper(builtins.get(PROFILE_CLAIM));\n profileScope.addProtocolMapper(builtins.get(PICTURE));\n profileScope.addProtocolMapper(builtins.get(WEBSITE));\n profileScope.addProtocolMapper(builtins.get(GENDER));\n profileScope.addProtocolMapper(builtins.get(BIRTHDATE));\n profileScope.addProtocolMapper(builtins.get(ZONEINFO));\n profileScope.addProtocolMapper(builtins.get(LOCALE));\n profileScope.addProtocolMapper(builtins.get(UPDATED_AT));\n\n ClientScopeModel emailScope = newRealm.addClientScope(OAuth2Constants.SCOPE_EMAIL);\n emailScope.setDescription(\"OpenID Connect built-in scope: email\");\n emailScope.setDisplayOnConsentScreen(true);\n emailScope.setConsentScreenText(EMAIL_SCOPE_CONSENT_TEXT);\n emailScope.setIncludeInTokenScope(true);\n emailScope.setProtocol(getId());\n emailScope.addProtocolMapper(builtins.get(EMAIL));\n emailScope.addProtocolMapper(builtins.get(EMAIL_VERIFIED));\n\n ClientScopeModel addressScope = newRealm.addClientScope(OAuth2Constants.SCOPE_ADDRESS);\n addressScope.setDescription(\"OpenID Connect built-in scope: address\");\n addressScope.setDisplayOnConsentScreen(true);\n addressScope.setConsentScreenText(ADDRESS_SCOPE_CONSENT_TEXT);\n addressScope.setIncludeInTokenScope(true);\n addressScope.setProtocol(getId());\n addressScope.addProtocolMapper(builtins.get(ADDRESS));\n\n ClientScopeModel phoneScope = newRealm.addClientScope(OAuth2Constants.SCOPE_PHONE);\n phoneScope.setDescription(\"OpenID Connect built-in scope: phone\");\n phoneScope.setDisplayOnConsentScreen(true);\n phoneScope.setConsentScreenText(PHONE_SCOPE_CONSENT_TEXT);\n phoneScope.setIncludeInTokenScope(true);\n phoneScope.setProtocol(getId());\n phoneScope.addProtocolMapper(builtins.get(PHONE_NUMBER));\n phoneScope.addProtocolMapper(builtins.get(PHONE_NUMBER_VERIFIED));\n\n // 'profile' and 'email' will be default scopes for now. 'address' and 'phone' will be optional scopes\n newRealm.addDefaultClientScope(profileScope, true);\n newRealm.addDefaultClientScope(emailScope, true);\n newRealm.addDefaultClientScope(addressScope, false);\n newRealm.addDefaultClientScope(phoneScope, false);\n\n RoleModel offlineRole = newRealm.getRole(OAuth2Constants.OFFLINE_ACCESS);\n if (offlineRole != null) {\n ClientScopeModel offlineAccessScope = KeycloakModelUtils.getClientScopeByName(newRealm, OAuth2Constants.OFFLINE_ACCESS);\n if (offlineAccessScope == null) {\n DefaultClientScopes.createOfflineAccessClientScope(newRealm, offlineRole);\n }\n }\n\n addRolesClientScope(newRealm);\n addWebOriginsClientScope(newRealm);\n addMicroprofileJWTClientScope(newRealm);\n addAcrClientScope(newRealm);\n }",
"public ArrayList<ResourceScopeInfoDTO> getResourceScopeData() throws APIMigrationException {\n try (Connection conn = APIMgtDBUtil.getConnection()) {\n try (PreparedStatement ps = conn.prepareStatement(GET_RESOURCE_SCOPE_SQL)) {\n try (ResultSet resultSet = ps.executeQuery()) {\n ArrayList<ResourceScopeInfoDTO> scopeInfoList = new ArrayList<>();\n while (resultSet.next()) {\n ResourceScopeInfoDTO scopeInfo = new ResourceScopeInfoDTO();\n scopeInfo.setResourcePath(resultSet.getString(RESOURCE_PATH));\n scopeInfo.setScopeId(resultSet.getString(SCOPE_ID));\n scopeInfo.setTenantID(resultSet.getString(TENANT_ID));\n scopeInfoList.add(scopeInfo);\n }\n return scopeInfoList;\n }\n }\n } catch (SQLException ex) {\n throw new APIMigrationException(\"Failed to get data from IDN_OAUTH2_RESOURCE_SCOPE\", ex);\n }\n }",
"@ClientConfig(JsonMode.Object)\n\r\n\tpublic Object getScope () {\r\n\t\treturn (Object) getStateHelper().eval(PropertyKeys.scope);\r\n\t}",
"public Scope getScope() {\n return scope;\n }",
"public Scope getScope() {\n return scope;\n }",
"public Scope getScope() {\n return scope;\n }",
"private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.W_SHARE);\n }",
"public DefaultScopeDescription() {\n }",
"private void loadDefaultConfig() {\r\n ResourceBundle bundle = ResourceLoader.getProperties(DEFAULT_CONFIG_NAME);\r\n if (bundle != null) {\r\n putAll(bundle);\r\n } else {\r\n LOG.error(\"Can't load default Scope config from: \" + DEFAULT_CONFIG_NAME);\r\n }\r\n }",
"public ScopeElements getScopeAccess() {\n\t\treturn eScope;\n\t}",
"public String[] getDefaultDomains();",
"public List<AlarmStrategy> getDefaultAlarmStrategyList() {\n List<DBAlarmStrategyDefault> dbstrategydeflist = StrategyDBHelper\n .getInstance().getDefStrategyStringList();\n List<AlarmStrategy> strategyDefList = DBStratDefList2StrategyList(dbstrategydeflist);\n return strategyDefList;\n }",
"@Override\n public String checkScopesPolicy(String requestedScopes) {\n this.scopes.clear();\n\n Set<String> grantedScopes = scopeChecker.checkScopesPolicy(client, requestedScopes);\n this.scopes.addAll(grantedScopes);\n\n final StringBuilder grantedScopesSb = new StringBuilder();\n for (String scope : scopes) {\n grantedScopesSb.append(\" \").append(scope);\n }\n\n final String grantedScopesSt = grantedScopesSb.toString().trim();\n\n return grantedScopesSt;\n }",
"@NonNull\n public GoogleBuilder setScopes(@NonNull List<String> scopes) {\n GoogleSignInOptions.Builder builder =\n new GoogleSignInOptions.Builder(GoogleSignInOptions.DEFAULT_SIGN_IN)\n .requestEmail();\n for (String scope : scopes) {\n builder.requestScopes(new Scope(scope));\n }\n return setSignInOptions(builder.build());\n }",
"private static Scope buildScope() {\n return Scope.build(Scope.R_BASICPROFILE, Scope.R_EMAILADDRESS);\n }",
"public String[] getEssentialServiceNames() {\n return new String[]{\"SocialService\"};\n }",
"Optional<AnnotationMirror> scope() {\n return unwrapOptionalEquivalence(wrappedScope());\n }",
"public List/*WsCompileEditorSupport.ServiceSettings*/ getServices();",
"private static int getMaxActiveViewScopes() {\r\n\t\tif (maxActiveViewScopes != null) {\r\n\t\t\treturn maxActiveViewScopes;\r\n\t\t}\r\n\r\n\t\tfor (String name : PARAM_NAMES_MAX_ACTIVE_VIEW_SCOPES) {\r\n\t\t\tString value = getInitParameter(name);\r\n\r\n\t\t\tif (value != null) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tmaxActiveViewScopes = Integer.valueOf(value);\r\n\t\t\t\t\treturn maxActiveViewScopes;\r\n\t\t\t\t}\r\n\t\t\t\tcatch (NumberFormatException e) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(format(ERROR_MAX_ACTIVE_VIEW_SCOPES, name, value), e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tmaxActiveViewScopes = DEFAULT_MAX_ACTIVE_VIEW_SCOPES;\r\n\t\treturn maxActiveViewScopes;\r\n\t}",
"public void newScope() {\n Map<String, Type> scope = new HashMap<String, Type>();\n scopes.push(scope);\n Map<String, Type> typeScope = new HashMap<String, Type>();\n typeScopes.push(typeScope);\n }",
"protected Set<String> getDefaultActiveGroupIds()\n {\n Set<String> result = New.set();\n\n if (myDefaultActiveLayers != null)\n {\n result.addAll(myDefaultActiveLayers.getGroupIds());\n }\n return result;\n }",
"public IPreferencesService getPreferncesService() {\n\n return preferncesService;\n }",
"public static PrefixMapping getDefault() {\n return defaultPrefixes;\n }",
"public Set<AngularClientVariableWatcher> getAngularWatchers()\n\t{\n\t\tif (angularWatchers == null)\n\t\t{\n\t\t\tangularWatchers = new LinkedHashSet<>();\n\t\t}\n\t\treturn angularWatchers;\n\t}",
"public String[] getDefaults();",
"public Collection<BwCalendar> getPreferredCalendars() {\n return getCurAuthUserPrefs().getCalendarPrefs().getPreferred();\n }",
"@Override\n public Set<String> getAllSharedScopeKeys(String tenantDomain) throws APIManagementException {\n\n //Get all shared scope keys\n return ApiMgtDAO.getInstance().getAllSharedScopeKeys(tenantDomain);\n }",
"@Programmatic\n public List<Class<?>> allServiceClasses() {\n List<Class<?>> serviceClasses = Lists\n .transform(this.servicesInjector.getRegisteredServices(), new Function<Object, Class<?>>(){\n public Class<?> apply(Object o) {\n return o.getClass();\n }\n });\n // take a copy, to allow eg I18nFacetFactory to add in default implementations of missing services.\n return Collections.unmodifiableList(Lists.newArrayList(serviceClasses));\n }",
"public DSEMergeScope getScope() {\n if (!applied)\n applyMerge();\n return scope;\n }",
"public TokenRequest setScopes(Collection var1) {\n return this.setScopes(var1);\n }",
"public List<BasicScopeResponse> getScopesByAuditId(int auditId) throws NotFoundException {\n auditService.getAuditById(auditId);\n List<BasicScopeResponse> responseList = new ArrayList<>();\n List<Scope> scopes = scopeService.findScopeItemsByAuditId(auditId);\n scopes.forEach(scope -> responseList.add(new BasicScopeResponse(scope)));\n return responseList;\n }",
"@Override // com.oppo.enterprise.mdmcoreservice.utils.defaultapp.DefaultApp\n public List<IntentFilter> getFilterList() {\n List<IntentFilter> filterList = new ArrayList<>();\n for (int i = 0; i < DEFAULT_MATCH_TYPE_LIST.size(); i++) {\n for (int j = 0; j < DEFAULT_SCHEME_LIST.size(); j++) {\n for (int k = 0; k < DEFAULT_URI_DATA_TYPE_LIST.size(); k++) {\n IntentFilter filter = new IntentFilter(\"android.intent.action.VIEW\");\n filter.addCategory(\"android.intent.category.DEFAULT\");\n filter.addDataScheme(DEFAULT_SCHEME_LIST.get(j));\n filterList.add(filter);\n }\n }\n }\n IntentFilter filter2 = new IntentFilter(\"android.intent.action.VIEW\");\n filter2.addCategory(\"android.intent.category.DEFAULT\");\n filter2.addDataScheme(\"http\");\n filterList.add(filter2);\n IntentFilter filter3 = new IntentFilter(\"android.intent.action.VIEW\");\n filter3.addCategory(\"android.intent.category.DEFAULT\");\n filter3.addDataScheme(\"http\");\n filterList.add(filter3);\n IntentFilter filter4 = new IntentFilter(\"android.intent.action.VIEW\");\n filter4.addCategory(\"android.intent.category.DEFAULT\");\n filter4.addDataScheme(\"https\");\n filterList.add(filter4);\n return filterList;\n }",
"@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n\t\treturn null;\n\t}",
"@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n\t\treturn null;\n\t}",
"private static String[] getServiceFacades() {\n\t\tString[] facadePropertiesList = null;\n\t\ttry {\n\t\t\tfacadePropertiesList = ATUIUtils.getDefault().getString(ATUI_SERVICES_FACADE_LIST).trim().split(COMMA);\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn facadePropertiesList;\n\t}",
"public String[] getRegisters() {\r\n return scope != null? scope.getRegisters() : null;\r\n }",
"public OntologyScope getScope(IRI scopeID);",
"public List getScopeResourcesCustomer(Map mp) {\n\t\treturn getSqlMapClientTemplate().queryForList(\"getScopeResourcesCustomer\", mp);\r\n\t}",
"public String[] getLocalVariables() {\r\n return scope != null? scope.getLocalVariables() : null;\r\n }",
"@Override\n\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls()\n\t{\n\t\treturn null;\n\t}",
"@Override\n\t\tpublic Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n\t\t\treturn null;\n\t\t}",
"@Override\n public Map<Class<? extends IFloodlightService>, IFloodlightService> getServiceImpls() {\n return null;\n }",
"@Override\n public Set<SessionTrackingMode> getDefaultSessionTrackingModes() {\n return null;\n }",
"public ServiceReference[] getRegisteredServices()\n {\n Object sm = System.getSecurityManager();\n\n if (sm != null)\n {\n ServiceReference[] refs = getFramework().getBundleRegisteredServices(this);\n\n if (refs == null)\n {\n return refs;\n }\n\n List result = new ArrayList();\n\n for (int i = 0; i < refs.length; i++)\n {\n try\n {\n ((SecurityManager) sm).checkPermission(new ServicePermission(\n refs[i], ServicePermission.GET));\n\n result.add(refs[i]);\n }\n catch (Exception ex)\n {\n // Silently ignore.\n }\n }\n\n if (result.isEmpty())\n {\n return null;\n }\n\n return (ServiceReference[]) result.toArray(new ServiceReference[result.size()]);\n }\n else\n {\n return getFramework().getBundleRegisteredServices(this);\n }\n }",
"Collection<QName> getDefinedStyleNames();",
"@Override\n public Set<String> getNames() {\n // TODO(adonovan): for now, the resolver treats all predeclared/universe\n // and global names as one bucket (Scope.PREDECLARED). Fix that.\n // TODO(adonovan): opt: change the resolver to request names on\n // demand to avoid all this set copying.\n HashSet<String> names = new HashSet<>();\n for (Map.Entry<String, Object> bind : getTransitiveBindings().entrySet()) {\n if (bind.getValue() instanceof FlagGuardedValue) {\n continue; // disabled\n }\n names.add(bind.getKey());\n }\n return names;\n }",
"public List<? extends DelegateLoader> createDefaultDelegates()\n {\n return createDelegates(getPolicy());\n }",
"public String getScopeUrl() {\n\t\tString t = doc.get(\"scopeurl\");\n\n\t\tif (t == null) {\n\t\t\treturn \"\";\n\t\t} else {\n\t\t\treturn t;\n\t\t}\n\t}",
"public String getBusinessScope() {\n return businessScope;\n }"
] | [
"0.8838099",
"0.70479465",
"0.70479465",
"0.6645841",
"0.65511924",
"0.63649",
"0.62581164",
"0.61621046",
"0.61239",
"0.59535205",
"0.5914394",
"0.5779066",
"0.5577611",
"0.5551164",
"0.5540299",
"0.5518286",
"0.5501896",
"0.5490035",
"0.54535854",
"0.5405179",
"0.53681076",
"0.5276465",
"0.51970863",
"0.518783",
"0.5146339",
"0.513342",
"0.513342",
"0.51329684",
"0.5113092",
"0.5101919",
"0.50870204",
"0.50699013",
"0.5064267",
"0.50632894",
"0.50520724",
"0.5041104",
"0.50388265",
"0.501769",
"0.49719685",
"0.4931094",
"0.49155983",
"0.49082553",
"0.48971787",
"0.48943767",
"0.48943767",
"0.48943767",
"0.48706436",
"0.4857762",
"0.48574948",
"0.48567572",
"0.48503122",
"0.48479873",
"0.4835868",
"0.48276493",
"0.48276493",
"0.48276493",
"0.4824978",
"0.48165417",
"0.481532",
"0.48130772",
"0.47686243",
"0.47577623",
"0.4750758",
"0.47499633",
"0.4717574",
"0.47137478",
"0.46992424",
"0.46942517",
"0.46878403",
"0.467879",
"0.46766838",
"0.46672127",
"0.46641836",
"0.46587285",
"0.46478537",
"0.46416935",
"0.46287563",
"0.46261328",
"0.46187618",
"0.46034637",
"0.45856443",
"0.45833468",
"0.45800003",
"0.45800003",
"0.45800003",
"0.45751947",
"0.4573879",
"0.4573115",
"0.45685902",
"0.45682788",
"0.45606595",
"0.45603377",
"0.45589703",
"0.4551137",
"0.4536565",
"0.45351827",
"0.45142257",
"0.4513627",
"0.4505576",
"0.44988003"
] | 0.8629756 | 1 |
Returns a builder for the default credentials for this service. | public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {
return WorkflowsStubSettings.defaultCredentialsProviderBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }",
"public Builder credentials(String credentials) {\n this.credentials = credentials;\n return this;\n }",
"public Credentials()\n {\n this(null, null, null, null);\n }",
"public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }",
"public DefaultCredentialsProvider() {\n // nothing\n }",
"public Builder(@NonNull org.openyolo.proto.Credential proto) {\n mProtoBuilder = new org.openyolo.proto.Credential.Builder();\n\n // required properties\n setIdentifier(proto.id);\n setAuthenticationDomain(new AuthenticationDomain(proto.authDomain));\n setAuthenticationMethod(proto.authMethod);\n\n // optional properties\n setDisplayName(proto.displayName);\n setDisplayPicture(proto.displayPictureUri);\n setPassword(proto.password);\n setAdditionalProperties(\n CollectionConverter.toMap(\n proto.additionalProps,\n KeyValuePairConverters.CONVERTER_KVP_TO_PAIR));\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public com.bingo.server.msg.REQ.LoginRequest.Builder getLoginBuilder() {\n \n onChanged();\n return getLoginFieldBuilder().getBuilder();\n }",
"AbstractCredentialModel createBasicCredential(String username, String password);",
"protected static Credentials getServiceCredentials() throws AnaplanAPIException {\n if (authType == AUTH_TYPE.CERT) {\n try {\n return new Credentials(getCertificate(), getPrivateKey());\n } catch (Exception e) {\n throw new AnaplanAPIException(\"Could not initialise service credentials\", e);\n }\n } else if (authType == AUTH_TYPE.OAUTH) {\n return new Credentials(clientId);\n }\n return new Credentials(getUsername(), getPassphrase());\n }",
"public ClientCredentials() {\n }",
"public Pokemon.RequestEnvelop.AuthInfo.Builder getAuthBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getAuthFieldBuilder().getBuilder();\n }",
"GoogleAuthenticatorKey createCredentials();",
"public ClientSecretCredential() {\n this(new IdentityClientOptions());\n }",
"public static Builder builder(String host, String name, String password) {\n\t\treturn new Builder(host, name, password);\n\t}",
"GoogleAuthenticatorKey createCredentials(String userName);",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();\n }",
"public Configuration.Builder getClientIdAndClientSecretBuilder() {\n String clientId = \"0993a005480472a69fab10c2f9b8ad0d6bee7acf\";//getString(R.string.client_id);\n String clientSecret=\"oVsWjoQ2RHeHvZ8xK3yrtdHrG7YiN+rnHh4qqBfmscDbCwplTFzytAoVIVrXMnAQShuBYuA6fZftYL+AIvX5zRP8JXOs06dQcej1yeL/ACJSGuiKoQJbqdC6CELuP+Pl\";\n\n String codeGrantRedirectUri = \"deva://robokart\";\n Configuration.Builder configBuilder =\n new Configuration.Builder(clientId, clientSecret, SCOPE, null,\n null);\n configBuilder.setCacheDirectory(this.getCacheDir())\n .setUserAgentString(getUserAgentString(this))\n // Used for oauth flow\n .setCodeGrantRedirectUri(codeGrantRedirectUri);\n\n return configBuilder;\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"public MetadataEntry.Builder getAuthBuilder(int index) {\n return getAuthFieldBuilder().getBuilder(index);\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }",
"public TaskProtobufWrapper.LoginPack.Builder getLoginPackBuilder() {\n return getLoginPackFieldBuilder().getBuilder();\n }",
"public RgwAdmin build() {\n if (Stream.of(accessKey, secretKey, endpoint).anyMatch(Strings::isNullOrEmpty)) {\n throw new IllegalArgumentException(\"Missing required parameter to build the instance.\");\n }\n return new RgwAdminImpl(accessKey, secretKey, endpoint);\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public Builder clearPasswd() {\n bitField0_ = (bitField0_ & ~0x00000004);\n passwd_ = getDefaultInstance().getPasswd();\n onChanged();\n return this;\n }",
"public Pokemon.RequestEnvelop.AuthInfo.JWT.Builder getTokenBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getTokenFieldBuilder().getBuilder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"public static final Account createDefaultAdminAccount() {\n Name name = new Name(\"Alice\");\n Credential credential = new Credential(\"admin\", \"admin\");\n MatricNumber matricNumber = new MatricNumber(\"A0123456X\");\n PrivilegeLevel privilegeLevel = new PrivilegeLevel(2);\n Account admin = new Account(name, credential, matricNumber, privilegeLevel);\n return admin;\n }",
"private JwtConsumerBuilder GetJwtConsumerBuilder() {\n JwtConsumerBuilder customJwtConsumerBuilder = new JwtConsumerBuilder()\n .setSkipAllDefaultValidators();\n if (!skipDefaultAudienceValidation) {\n Set<String> setAud = new HashSet<String>();\n setAud.add(CommonConstraint.EXPECTED_AUDIENCE);\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new AudValidator(setAud, false));\n }\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new IssValidator(null, false))\n .registerValidator(new SubValidator(requireSubject))\n .registerValidator(new JtiValidator(requireJwtId));\n\n return customJwtConsumerBuilder;\n }",
"private Login_S(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}",
"public Builder credential(Credential newCredential) {\n credential = newCredential;\n return this;\n }",
"private CSLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public ProfileTokenCredential() {\n super();\n new Random().nextBytes(addr_);\n new Random().nextBytes(mask_);\n }",
"public Builder clearPassword() {\n bitField0_ = (bitField0_ & ~0x00000002);\n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"public Builder clearPassword() {\n bitField0_ = (bitField0_ & ~0x00000002);\n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"public Object credentials() {\n return cred;\n }",
"public CredentialsDefinitionAdaptor(EntityDefinition def) {\n super(def);\n }",
"private Login_C(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder defaultRestrictedFieldsProvider(ResourcePathsProvider restrictedFieldsProvider) {\n\t\t\tthis.defaultRestrictedFieldsProvider = restrictedFieldsProvider;\n\t\t\treturn this.me();\n\t\t}",
"public Builder clearPwd() {\n \n pwd_ = getDefaultInstance().getPwd();\n onChanged();\n return this;\n }",
"public E build() {\r\n if (readPasswordFromConsole) {\r\n keystore.setPassword(PasswordReader.fromConsole(CoreStrings.getKeystorePrompt(keystore)));\r\n }\r\n\r\n completer.accept(keystore);\r\n return fluent;\r\n }",
"public static Account defaultAccount() {\n return Account.fromHexString(\n \"0xe05d9e08a18cf5573a92d030342c3b45395cd952e02346ba78e16421ee9dad88\");\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"private LoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private McEasyLogin(Builder builder) {\n super(builder);\n }",
"default EtcdKeysEndpointBuilder password(String password) {\n doSetProperty(\"password\", password);\n return this;\n }",
"@SuppressWarnings(\"WeakerAccess\")\n public static PilosaClient defaultClient() {\n return PilosaClient.withURI(URI.defaultURI());\n }",
"private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private LoginRequest(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public org.beangle.security.session.protobuf.Model.Account.Builder getPrincipalBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getPrincipalFieldBuilder().getBuilder();\n }",
"public Builder clearAuthentication() {\n authentication_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }",
"public com.google.cloud.video.livestream.v1.Encryption.SecretManagerSource.Builder\n getSecretManagerKeySourceBuilder() {\n return getSecretManagerKeySourceFieldBuilder().getBuilder();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"private MsLogin(Builder builder) {\n super(builder);\n }",
"public Builder clearPassword() {\n \n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"public Builder clearPassword() {\n \n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"public Builder clearPassword() {\n \n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"private MsEasyLogin(Builder builder) {\n super(builder);\n }",
"private SCLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"private McLogin(Builder builder) {\n super(builder);\n }",
"private Builder()\n {\n }",
"public static CapitalIndexedBondSecurity.Builder builder() {\n return new CapitalIndexedBondSecurity.Builder();\n }",
"private McAuth(Builder builder) {\n super(builder);\n }",
"private UserLoginReq(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static X500PrivateCredential createRootCredential() throws Exception {\n KeyPair rootPair = generateRSAKeyPair();\n X509Certificate rootCert = generateRootCert(rootPair);\n\n return new X500PrivateCredential(rootCert, rootPair.getPrivate(), ROOT_ALIAS);\n }",
"public Builder clearPassword() {\n\n password_ = getDefaultInstance().getPassword();\n onChanged();\n return this;\n }",
"public FederatedIdentityCredentialInner() {\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public Builder clearAuth() {\n \n auth_ = getDefaultInstance().getAuth();\n onChanged();\n return this;\n }",
"public Builder clearAuth() {\n \n auth_ = getDefaultInstance().getAuth();\n onChanged();\n return this;\n }",
"public Builder clearAuth() {\n \n auth_ = getDefaultInstance().getAuth();\n onChanged();\n return this;\n }",
"private RequestLogin(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }",
"public AccountKeyDatastoreSecrets() {\n }",
"private AuthOperation(Builder builder) {\n super(builder);\n }",
"public String getCredentials();",
"private Builder() {\n\t\t}",
"private LoginRes(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearPassword() {\n copyOnWrite();\n instance.clearPassword();\n return this;\n }",
"public Builder clearPassword() {\n copyOnWrite();\n instance.clearPassword();\n return this;\n }",
"public CloudSdk.Builder newBuilder() {\n return new CloudSdk.Builder()\n .sdkPath(cloudSdkHome != null ? cloudSdkHome.toPath() : null)\n .exitListener(new NonZeroExceptionExitListener())\n .appCommandMetricsEnvironment(getClass().getPackage().getImplementationTitle())\n .appCommandMetricsEnvironmentVersion(getClass().getPackage().getImplementationVersion());\n }",
"private LoginPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private AuthLoginReq(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public Builder clearAccountPassword() {\n accountPassword = null;\n fieldSetFlags()[4] = false;\n return this;\n }",
"public Builder clearAuth() {\n if (authBuilder_ == null) {\n auth_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n authBuilder_.clear();\n }\n return this;\n }",
"private LoginProto(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Builder setPasswd(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n passwd_ = value;\n onChanged();\n return this;\n }",
"private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }",
"public LoginService() {\n users.put(\"johndoe\", \"John Doe\");\n users.put(\"janedoe\", \"Jane Doe\");\n users.put(\"jguru\", \"Java Guru\");\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }"
] | [
"0.8095155",
"0.6680231",
"0.6568603",
"0.6552868",
"0.6499091",
"0.5929292",
"0.5921872",
"0.5905317",
"0.5900194",
"0.58983713",
"0.5874745",
"0.5817374",
"0.5782903",
"0.57620484",
"0.573319",
"0.5725992",
"0.5674109",
"0.56623924",
"0.56036556",
"0.5592997",
"0.5561957",
"0.5546946",
"0.5534945",
"0.55207795",
"0.5494282",
"0.5477575",
"0.544541",
"0.5434869",
"0.54096276",
"0.5396788",
"0.5394467",
"0.5378332",
"0.5374892",
"0.5373963",
"0.5353793",
"0.5351233",
"0.5329224",
"0.5329224",
"0.5327022",
"0.5310544",
"0.53104246",
"0.5279038",
"0.5272611",
"0.52672577",
"0.52592295",
"0.5258352",
"0.5258352",
"0.52562684",
"0.52515197",
"0.52496046",
"0.5241446",
"0.52373475",
"0.52373475",
"0.52373475",
"0.5186826",
"0.51845914",
"0.51758623",
"0.5164971",
"0.51630384",
"0.51592547",
"0.51592547",
"0.51592547",
"0.5158715",
"0.51576436",
"0.51457256",
"0.51395863",
"0.51379955",
"0.513096",
"0.5120896",
"0.51157624",
"0.5103608",
"0.508611",
"0.50744337",
"0.50744337",
"0.50618654",
"0.50618654",
"0.50618654",
"0.5061605",
"0.5049245",
"0.50474685",
"0.50464356",
"0.5043166",
"0.50429165",
"0.5042893",
"0.50393796",
"0.50386035",
"0.50386035",
"0.50372994",
"0.50357664",
"0.50305647",
"0.5029091",
"0.50244355",
"0.50238967",
"0.50131744",
"0.4993521",
"0.4991221",
"0.49895763",
"0.4988815",
"0.4988815",
"0.4988815"
] | 0.79790014 | 1 |
Returns a builder for the default gRPC ChannelProvider for this service. | public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {
return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }",
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return WorkflowsStubSettings.defaultCredentialsProviderBuilder();\n }",
"public abstract ManagedChannelBuilder<?> delegate();",
"private static NettyChannelBuilderProvider getChannelProviderFromProperties(\n VitessConnection connection) {\n if (Strings.isNullOrEmpty(connection.getGrpcChannelProvider())) {\n return new DefaultChannelBuilderProvider(getRetryingInterceptorConfig(connection));\n }\n\n Object provider = constructDefault(connection.getGrpcChannelProvider());\n return ((NettyChannelBuilderProvider) provider);\n }",
"public io.grpc.channelz.v1.Channel.Builder getChannelBuilder(\n int index) {\n return getChannelFieldBuilder().getBuilder(index);\n }",
"public interface ChannelBuilder {\n\n /**\n * Configure this class with the given key-value pairs\n */\n void configure(Map<String, ?> configs) throws KafkaException;\n\n\n /**\n * returns a Channel with TransportLayer and Authenticator configured.\n * @param id channel id\n * @param key SelectionKey\n */\n KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;\n\n\n /**\n * Closes ChannelBuilder\n */\n void close();\n\n}",
"private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }",
"public io.grpc.channelz.v1.Channel.Builder addChannelBuilder() {\n return getChannelFieldBuilder().addBuilder(\n io.grpc.channelz.v1.Channel.getDefaultInstance());\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }",
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultHttpJsonTransportProviderBuilder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public abstract ManagedChannelBuilder<?> builderForTarget(String str);",
"public RpcClient(ManagedChannelBuilder<?> channelBuilder) {\n channel = channelBuilder.build();\n blockingStub = PredictionServiceGrpc.newBlockingStub(channel);\n asyncStub = PredictionServiceGrpc.newStub(channel);\n modelServiceBlockingStub = ModelServiceGrpc.newBlockingStub(channel);\n modelServiceStub = ModelServiceGrpc.newStub(channel);\n channelzBlockingStub = ChannelzGrpc.newBlockingStub(channel);\n }",
"public ManagedChannelBuilder<?> delegate() {\n return this.delegateBuilder;\n }",
"@Override\n ManagedChannel createChannel(List<ServerInfo> servers) {\n checkArgument(!servers.isEmpty(), \"No management server provided.\");\n XdsLogger logger = XdsLogger.withPrefix(\"xds-client-channel-factory\");\n ServerInfo serverInfo = servers.get(0);\n String serverUri = serverInfo.getServerUri();\n logger.log(XdsLogLevel.INFO, \"Creating channel to {0}\", serverUri);\n List<ChannelCreds> channelCredsList = serverInfo.getChannelCredentials();\n ManagedChannelBuilder<?> channelBuilder = null;\n // Use the first supported channel credentials configuration.\n // Currently, only \"google_default\" is supported.\n for (ChannelCreds creds : channelCredsList) {\n if (creds.getType().equals(\"google_default\")) {\n logger.log(XdsLogLevel.INFO, \"Using channel credentials: google_default\");\n channelBuilder = GoogleDefaultChannelBuilder.forTarget(serverUri);\n break;\n }\n }\n if (channelBuilder == null) {\n logger.log(XdsLogLevel.INFO, \"Using default channel credentials\");\n channelBuilder = ManagedChannelBuilder.forTarget(serverUri);\n }\n\n return channelBuilder\n .keepAliveTime(5, TimeUnit.MINUTES)\n .build();\n }",
"public com.google.cloud.networkmanagement.v1beta1.GoogleServiceInfo.Builder\n getGoogleServiceBuilder() {\n return getGoogleServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public CloudSdk.Builder newBuilder() {\n return new CloudSdk.Builder()\n .sdkPath(cloudSdkHome != null ? cloudSdkHome.toPath() : null)\n .exitListener(new NonZeroExceptionExitListener())\n .appCommandMetricsEnvironment(getClass().getPackage().getImplementationTitle())\n .appCommandMetricsEnvironmentVersion(getClass().getPackage().getImplementationVersion());\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }",
"public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"private JwtConsumerBuilder GetJwtConsumerBuilder() {\n JwtConsumerBuilder customJwtConsumerBuilder = new JwtConsumerBuilder()\n .setSkipAllDefaultValidators();\n if (!skipDefaultAudienceValidation) {\n Set<String> setAud = new HashSet<String>();\n setAud.add(CommonConstraint.EXPECTED_AUDIENCE);\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new AudValidator(setAud, false));\n }\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new IssValidator(null, false))\n .registerValidator(new SubValidator(requireSubject))\n .registerValidator(new JtiValidator(requireJwtId));\n\n return customJwtConsumerBuilder;\n }",
"public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder\n getProtobufBuilder() {\n return getProtobufFieldBuilder().getBuilder();\n }",
"public io.grpc.channelz.v1.Channel.Builder addChannelBuilder(\n int index) {\n return getChannelFieldBuilder().addBuilder(\n index, io.grpc.channelz.v1.Channel.getDefaultInstance());\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder getThriftBuilder() {\n return getThriftFieldBuilder().getBuilder();\n }",
"@NotNull\n public Server.Builder build() {\n return builder.compression(compressionSetting);\n }",
"public static CustomHazelcastBuilder builder () {\n return new CustomHazelcastBuilder();\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"public com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder getEndpointBuilder() {\n return getEndpointFieldBuilder().getBuilder();\n }",
"private static ManagedChannel getManagedChannel(int port) {\n return ManagedChannelBuilder.forAddress(\"localhost\", port)\n .usePlaintext(true)\n .build();\n }",
"public static Service newInstance() {\n return newInstance(DEFAULT_PROVIDER_NAME);\n }",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"public BackendService build() {\n return new BackendService(super.buildUnknownFields());\n }",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"public Builder clearChannel() {\n if (channelBuilder_ == null) {\n channel_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n channelBuilder_.clear();\n }\n return this;\n }",
"private NettyServerBuilder getNettyServerBuilder(final String uds) {\n EventLoopGroup group;\n NettyServerBuilder builder = NettyServerBuilder.forAddress(new DomainSocketAddress(uds));\n if (SystemUtils.IS_OS_MAC) {\n group = new KQueueEventLoopGroup();\n builder.channelType(KQueueServerDomainSocketChannel.class);\n }\n else if (SystemUtils.IS_OS_LINUX) {\n group = new EpollEventLoopGroup();\n builder.channelType(EpollServerDomainSocketChannel.class);\n }\n else {\n throw new IllegalStateException(\"binding to unix:// addresses is only supported on Linux and macOS\");\n }\n builder.workerEventLoopGroup(group).bossEventLoopGroup(group);\n\n return builder;\n }",
"public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceProtocol.Builder getProtocolBuilder() {\n \n onChanged();\n return getProtocolFieldBuilder().getBuilder();\n }",
"public Builder clearChannel() {\n bitField0_ = (bitField0_ & ~0x00000200);\n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"public interface PortForwardingBuilder extends Builder<PortForwardingBuilder, PortForwarding> {\n\n /**\n * @see PortForwarding#getProtocol()\n */\n PortForwardingBuilder protocol(String protocol);\n\n /**\n * @see PortForwarding#getInternalIpAddress()\n */\n PortForwardingBuilder internalIpAddress(String internalIpAddress);\n\n /**\n * @see PortForwarding#getInternalPort()\n */\n PortForwardingBuilder internalPort(int internalPort);\n\n /**\n * @see PortForwarding#getInternalPortId()\n */\n PortForwardingBuilder internalPortId(String internalPortId);\n\n /**\n * @see PortForwarding#getExternalPort()\n */\n PortForwardingBuilder externalPort(int externalPort);\n\n /**\n * @see PortForwarding#getDescription()\n */\n PortForwardingBuilder description(String description);\n}",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"public com.google.protobuf.Value.Builder getDefaultValueBuilder() {\n bitField0_ |= 0x00000020;\n onChanged();\n return getDefaultValueFieldBuilder().getBuilder();\n }",
"public Builder(@NonNull org.openyolo.proto.Credential proto) {\n mProtoBuilder = new org.openyolo.proto.Credential.Builder();\n\n // required properties\n setIdentifier(proto.id);\n setAuthenticationDomain(new AuthenticationDomain(proto.authDomain));\n setAuthenticationMethod(proto.authMethod);\n\n // optional properties\n setDisplayName(proto.displayName);\n setDisplayPicture(proto.displayPictureUri);\n setPassword(proto.password);\n setAdditionalProperties(\n CollectionConverter.toMap(\n proto.additionalProps,\n KeyValuePairConverters.CONVERTER_KVP_TO_PAIR));\n }",
"public static ServerBuilder<?> newServerBuilderForPort(int port, ServerCredentials creds) {\n return ServerRegistry.getDefaultRegistry().newServerBuilderForPort(port, creds);\n }",
"public Builder clearChannel() {\n \n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"public proto.SocialMetricSource.Builder getSocialMetricSourceBuilder() {\n \n onChanged();\n return getSocialMetricSourceFieldBuilder().getBuilder();\n }",
"private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"@Bean\n @ConditionalOnMissingBean(name = \"defaultAccessContextManagerTransportChannelProvider\")\n public TransportChannelProvider defaultAccessContextManagerTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return AccessContextManagerSettings.defaultHttpJsonTransportProviderBuilder().build();\n }\n return AccessContextManagerSettings.defaultTransportChannelProvider();\n }",
"KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;",
"public final WuicFacadeBuilder noDefaultContextBuilderConfigurator() {\n this.useDefaultContextBuilderConfigurator = Boolean.FALSE;\n return this;\n }",
"public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }",
"public static GenericBootstrap byDefaultProvider() {\n return new GenericBootstrapImpl();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"@SuppressWarnings(\"unused\")\n @Provides\n @Singleton\n private ExpressiveObjectsConfigurationBuilder providesConfigurationBuilder() {\n return expressiveObjectsConfigurationBuilder;\n }",
"public com.bingo.server.msg.REQ.RegistryRequest.Builder getRegistryBuilder() {\n \n onChanged();\n return getRegistryFieldBuilder().getBuilder();\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public com.lanjiu.im.grpc.RegisteredUser.Builder getRegisteredUserBuilder() {\n \n onChanged();\n return getRegisteredUserFieldBuilder().getBuilder();\n }",
"public proto.MessagesProtos.ClientRequest.Socket.Builder getSockBuilder() {\n\n\t\t\t\tonChanged();\n\t\t\t\treturn getSockFieldBuilder().getBuilder();\n\t\t\t}",
"static Http1ClientConfig.Builder builder() {\n return Http1ClientConfig.builder();\n }",
"@Bean\n @ConditionalOnMissingBean(name = \"defaultSearchServiceTransportChannelProvider\")\n public TransportChannelProvider defaultSearchServiceTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return SearchServiceSettings.defaultHttpJsonTransportProviderBuilder().build();\n }\n return SearchServiceSettings.defaultTransportChannelProvider();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServicesBuilder(\n int index) {\n return getServicesFieldBuilder().getBuilder(index);\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServicesBuilder(\n int index) {\n return getServicesFieldBuilder().getBuilder(index);\n }",
"public Provider1Builder() {\r\n provider1 = new Provider1();\r\n }",
"public static CapitalIndexedBondSecurity.Builder builder() {\n return new CapitalIndexedBondSecurity.Builder();\n }",
"public interface WorkdayEndpointBuilder\n extends\n WorkdayEndpointConsumerBuilder,\n WorkdayEndpointProducerBuilder {\n default AdvancedWorkdayEndpointBuilder advanced() {\n return (AdvancedWorkdayEndpointBuilder) this;\n }\n /**\n * Workday Report as a service output format.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: format\n */\n default WorkdayEndpointBuilder format(String format) {\n doSetProperty(\"format\", format);\n return this;\n }\n /**\n * Workday Host name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: host\n */\n default WorkdayEndpointBuilder host(String host) {\n doSetProperty(\"host\", host);\n return this;\n }\n /**\n * Workday Client Id generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder clientId(String clientId) {\n doSetProperty(\"clientId\", clientId);\n return this;\n }\n /**\n * Workday Client Secrect generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }\n /**\n * Workday Token Refresh generated for Integration system user.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }\n /**\n * Workday Tenant name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: tenant\n */\n default WorkdayEndpointBuilder tenant(String tenant) {\n doSetProperty(\"tenant\", tenant);\n return this;\n }\n }",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"protected Constructor buildDefaultConstructor() throws DescriptorException {\n return this.buildDefaultConstructorFor(this.getDescriptor().getJavaClass());\n }",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"@Override\n protected ServerBuilder<?> getServerBuilder() {\n try {\n ServerCredentials serverCreds = TlsServerCredentials.create(\n TlsTesting.loadCert(\"server1.pem\"), TlsTesting.loadCert(\"server1.key\"));\n NettyServerBuilder builder = NettyServerBuilder.forPort(0, serverCreds)\n .flowControlWindow(AbstractInteropTest.TEST_FLOW_CONTROL_WINDOW)\n .maxInboundMessageSize(AbstractInteropTest.MAX_MESSAGE_SIZE);\n // Disable the default census stats tracer, use testing tracer instead.\n InternalNettyServerBuilder.setStatsEnabled(builder, false);\n return builder.addStreamTracerFactory(createCustomCensusTracerFactory());\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n }",
"public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources.Builder getSenderBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getSenderFieldBuilder().getBuilder();\n }",
"public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources.Builder getSenderBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getSenderFieldBuilder().getBuilder();\n }",
"public static ServerBuilder<?> forPort(int port) {\n return ServerProvider.provider().builderForPort(port);\n }",
"protected ConnectionProvider createConnectionProviderIfNotSupplied() {\n\t\tif (connectionProviderSupplier != null) {\n\t\t\treturn connectionProviderSupplier.get();\n\t\t}\n\t\treturn new CoreConnectionPool();\n\t}",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public speech.multilang.Params.ForwardingControllerParams.Builder getForwardingParamsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getForwardingParamsFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }"
] | [
"0.8116084",
"0.6873241",
"0.6738578",
"0.6543354",
"0.6384416",
"0.63446903",
"0.6226921",
"0.61498535",
"0.6141121",
"0.61226094",
"0.6106959",
"0.5979676",
"0.58677787",
"0.5786015",
"0.56813663",
"0.56702286",
"0.56461805",
"0.5577017",
"0.54963803",
"0.54963803",
"0.54963803",
"0.54707247",
"0.5468158",
"0.5468158",
"0.5453581",
"0.5450845",
"0.54505366",
"0.54235387",
"0.53877795",
"0.5387182",
"0.5384436",
"0.537317",
"0.537317",
"0.537317",
"0.537317",
"0.53590363",
"0.53146344",
"0.53134704",
"0.53115535",
"0.53024685",
"0.52999383",
"0.52999383",
"0.5293054",
"0.5288692",
"0.5288613",
"0.52772367",
"0.5275332",
"0.5253756",
"0.524331",
"0.5235161",
"0.5226747",
"0.5226653",
"0.52080095",
"0.51927906",
"0.51887065",
"0.5178164",
"0.517413",
"0.51683205",
"0.5163751",
"0.51487607",
"0.5145479",
"0.5123638",
"0.5118934",
"0.5113255",
"0.5104837",
"0.5103727",
"0.51030725",
"0.5100478",
"0.5098042",
"0.5091847",
"0.50892085",
"0.50788677",
"0.50764257",
"0.50728357",
"0.50707936",
"0.50707936",
"0.5070611",
"0.50699663",
"0.50592965",
"0.50587267",
"0.5049045",
"0.50474036",
"0.5046174",
"0.5042329",
"0.50372607",
"0.50372607",
"0.5037114",
"0.5035147",
"0.50340575",
"0.5028452",
"0.50270224",
"0.50270224",
"0.50270224",
"0.50148976",
"0.50142395",
"0.5012958",
"0.5006249",
"0.50057656",
"0.50057656",
"0.50057656"
] | 0.79288757 | 1 |
Returns a builder for the default REST ChannelProvider for this service. | @BetaApi
public static InstantiatingHttpJsonChannelProvider.Builder
defaultHttpJsonTransportProviderBuilder() {
return WorkflowsStubSettings.defaultHttpJsonTransportProviderBuilder();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@BetaApi\n public static InstantiatingHttpJsonChannelProvider.Builder\n defaultHttpJsonTransportProviderBuilder() {\n return InstantiatingHttpJsonChannelProvider.newBuilder();\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();\n }",
"public abstract ManagedChannelBuilder<?> delegate();",
"public interface ChannelBuilder {\n\n /**\n * Configure this class with the given key-value pairs\n */\n void configure(Map<String, ?> configs) throws KafkaException;\n\n\n /**\n * returns a Channel with TransportLayer and Authenticator configured.\n * @param id channel id\n * @param key SelectionKey\n */\n KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;\n\n\n /**\n * Closes ChannelBuilder\n */\n void close();\n\n}",
"@Bean\n @ConditionalOnMissingBean(name = \"defaultSearchServiceTransportChannelProvider\")\n public TransportChannelProvider defaultSearchServiceTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return SearchServiceSettings.defaultHttpJsonTransportProviderBuilder().build();\n }\n return SearchServiceSettings.defaultTransportChannelProvider();\n }",
"@Bean\n @ConditionalOnMissingBean(name = \"defaultAccessContextManagerTransportChannelProvider\")\n public TransportChannelProvider defaultAccessContextManagerTransportChannelProvider() {\n if (this.clientProperties.getUseRest()) {\n return AccessContextManagerSettings.defaultHttpJsonTransportProviderBuilder().build();\n }\n return AccessContextManagerSettings.defaultTransportChannelProvider();\n }",
"public WebResource.Builder getClientBuilder(String uri) {\n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(AUTH_USER, AUTH_PASS));\n WebResource resource = client.resource(baseUrl() + uri);\n log.info(\"XOS REST CALL>> {}\", resource);\n return resource.accept(UTF_8).type(UTF_8);\n }",
"private JwtConsumerBuilder GetJwtConsumerBuilder() {\n JwtConsumerBuilder customJwtConsumerBuilder = new JwtConsumerBuilder()\n .setSkipAllDefaultValidators();\n if (!skipDefaultAudienceValidation) {\n Set<String> setAud = new HashSet<String>();\n setAud.add(CommonConstraint.EXPECTED_AUDIENCE);\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new AudValidator(setAud, false));\n }\n customJwtConsumerBuilder = customJwtConsumerBuilder.registerValidator(new IssValidator(null, false))\n .registerValidator(new SubValidator(requireSubject))\n .registerValidator(new JtiValidator(requireJwtId));\n\n return customJwtConsumerBuilder;\n }",
"public io.grpc.channelz.v1.Channel.Builder getChannelBuilder(\n int index) {\n return getChannelFieldBuilder().getBuilder(index);\n }",
"public com.bingo.server.msg.REQ.RegistryRequest.Builder getRegistryBuilder() {\n \n onChanged();\n return getRegistryFieldBuilder().getBuilder();\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return GoogleCredentialsProvider.newBuilder()\n .setScopesToApply(DEFAULT_SERVICE_SCOPES)\n .setUseJwtAccessWithScope(true);\n }",
"public WebResource.Builder getClientBuilder() {\n return getClientBuilder(\"\");\n }",
"public io.grpc.channelz.v1.Channel.Builder addChannelBuilder() {\n return getChannelFieldBuilder().addBuilder(\n io.grpc.channelz.v1.Channel.getDefaultInstance());\n }",
"public interface AdvancedWorkdayEndpointBuilder\n extends\n AdvancedWorkdayEndpointConsumerBuilder,\n AdvancedWorkdayEndpointProducerBuilder {\n default WorkdayEndpointBuilder basic() {\n return (WorkdayEndpointBuilder) this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder synchronous(boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointBuilder synchronous(String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }",
"@NotNull\n public Server.Builder build() {\n return builder.compression(compressionSetting);\n }",
"private static NettyChannelBuilderProvider getChannelProviderFromProperties(\n VitessConnection connection) {\n if (Strings.isNullOrEmpty(connection.getGrpcChannelProvider())) {\n return new DefaultChannelBuilderProvider(getRetryingInterceptorConfig(connection));\n }\n\n Object provider = constructDefault(connection.getGrpcChannelProvider());\n return ((NettyChannelBuilderProvider) provider);\n }",
"public interface WorkdayEndpointConsumerBuilder\n extends\n EndpointConsumerBuilder {\n default AdvancedWorkdayEndpointConsumerBuilder advanced() {\n return (AdvancedWorkdayEndpointConsumerBuilder) this;\n }\n /**\n * Allows for bridging the consumer to the Camel routing Error Handler,\n * which mean any exceptions occurred while the consumer is trying to\n * pickup incoming messages, or the likes, will now be processed as a\n * message and handled by the routing Error Handler. By default the\n * consumer will use the org.apache.camel.spi.ExceptionHandler to deal\n * with exceptions, that will be logged at WARN or ERROR level and\n * ignored.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: consumer\n */\n default WorkdayEndpointConsumerBuilder bridgeErrorHandler(\n boolean bridgeErrorHandler) {\n doSetProperty(\"bridgeErrorHandler\", bridgeErrorHandler);\n return this;\n }\n /**\n * Allows for bridging the consumer to the Camel routing Error Handler,\n * which mean any exceptions occurred while the consumer is trying to\n * pickup incoming messages, or the likes, will now be processed as a\n * message and handled by the routing Error Handler. By default the\n * consumer will use the org.apache.camel.spi.ExceptionHandler to deal\n * with exceptions, that will be logged at WARN or ERROR level and\n * ignored.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: consumer\n */\n default WorkdayEndpointConsumerBuilder bridgeErrorHandler(\n String bridgeErrorHandler) {\n doSetProperty(\"bridgeErrorHandler\", bridgeErrorHandler);\n return this;\n }\n /**\n * Workday Report as a service output format.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: format\n */\n default WorkdayEndpointConsumerBuilder format(String format) {\n doSetProperty(\"format\", format);\n return this;\n }\n /**\n * Workday Host name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: host\n */\n default WorkdayEndpointConsumerBuilder host(String host) {\n doSetProperty(\"host\", host);\n return this;\n }\n /**\n * Workday Client Id generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder clientId(String clientId) {\n doSetProperty(\"clientId\", clientId);\n return this;\n }\n /**\n * Workday Client Secrect generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }\n /**\n * Workday Token Refresh generated for Integration system user.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointConsumerBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }\n /**\n * Workday Tenant name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: tenant\n */\n default WorkdayEndpointConsumerBuilder tenant(String tenant) {\n doSetProperty(\"tenant\", tenant);\n return this;\n }\n }",
"public Channel() {\n this(DSL.name(\"channel\"), null);\n }",
"public ManagedChannelBuilder<?> delegate() {\n return this.delegateBuilder;\n }",
"SourceBuilder createRestController();",
"public abstract ManagedChannelBuilder<?> builderForTarget(String str);",
"public interface AdvancedWorkdayEndpointConsumerBuilder\n extends\n EndpointConsumerBuilder {\n default WorkdayEndpointConsumerBuilder basic() {\n return (WorkdayEndpointConsumerBuilder) this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option is a: <code>org.apache.camel.spi.ExceptionHandler</code>\n * type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n ExceptionHandler exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * To let the consumer use a custom ExceptionHandler. Notice if the\n * option bridgeErrorHandler is enabled then this option is not in use.\n * By default the consumer will deal with exceptions, that will be\n * logged at WARN or ERROR level and ignored.\n * \n * The option will be converted to a\n * <code>org.apache.camel.spi.ExceptionHandler</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exceptionHandler(\n String exceptionHandler) {\n doSetProperty(\"exceptionHandler\", exceptionHandler);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option is a: <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n ExchangePattern exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Sets the exchange pattern when the consumer creates an exchange.\n * \n * The option will be converted to a\n * <code>org.apache.camel.ExchangePattern</code> type.\n * \n * Group: consumer (advanced)\n */\n default AdvancedWorkdayEndpointConsumerBuilder exchangePattern(\n String exchangePattern) {\n doSetProperty(\"exchangePattern\", exchangePattern);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointConsumerBuilder synchronous(\n String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }",
"public interface WorkdayEndpointBuilder\n extends\n WorkdayEndpointConsumerBuilder,\n WorkdayEndpointProducerBuilder {\n default AdvancedWorkdayEndpointBuilder advanced() {\n return (AdvancedWorkdayEndpointBuilder) this;\n }\n /**\n * Workday Report as a service output format.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: format\n */\n default WorkdayEndpointBuilder format(String format) {\n doSetProperty(\"format\", format);\n return this;\n }\n /**\n * Workday Host name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: host\n */\n default WorkdayEndpointBuilder host(String host) {\n doSetProperty(\"host\", host);\n return this;\n }\n /**\n * Workday Client Id generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder clientId(String clientId) {\n doSetProperty(\"clientId\", clientId);\n return this;\n }\n /**\n * Workday Client Secrect generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }\n /**\n * Workday Token Refresh generated for Integration system user.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }\n /**\n * Workday Tenant name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: tenant\n */\n default WorkdayEndpointBuilder tenant(String tenant) {\n doSetProperty(\"tenant\", tenant);\n return this;\n }\n }",
"public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() {\n return WorkflowsStubSettings.defaultCredentialsProviderBuilder();\n }",
"public JsonHttpChannel() {\n this.defaultConstructor = new JsonHttpEventFactory();\n }",
"public RgwAdmin build() {\n if (Stream.of(accessKey, secretKey, endpoint).anyMatch(Strings::isNullOrEmpty)) {\n throw new IllegalArgumentException(\"Missing required parameter to build the instance.\");\n }\n return new RgwAdminImpl(accessKey, secretKey, endpoint);\n }",
"public com.google.cloud.networkmanagement.v1beta1.EndpointInfo.Builder getEndpointBuilder() {\n return getEndpointFieldBuilder().getBuilder();\n }",
"RestClientBuilder(){\n\n }",
"static Http1ClientConfig.Builder builder() {\n return Http1ClientConfig.builder();\n }",
"@Override\r\n public UriBuilder getBaseUriBuilder() {\n return null;\r\n }",
"public interface AdvancedWorkdayEndpointProducerBuilder\n extends\n EndpointProducerBuilder {\n default WorkdayEndpointProducerBuilder basic() {\n return (WorkdayEndpointProducerBuilder) this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder basicPropertyBinding(\n boolean basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Whether the endpoint should use basic property binding (Camel 2.x) or\n * the newer property binding with additional capabilities.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder basicPropertyBinding(\n String basicPropertyBinding) {\n doSetProperty(\"basicPropertyBinding\", basicPropertyBinding);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option is a:\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder httpConnectionManager(\n Object httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Pool connection manager for advanced configuration.\n * \n * The option will be converted to a\n * <code>org.apache.http.impl.conn.PoolingHttpClientConnectionManager</code> type.\n * \n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder httpConnectionManager(\n String httpConnectionManager) {\n doSetProperty(\"httpConnectionManager\", httpConnectionManager);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder synchronous(\n boolean synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n /**\n * Sets whether synchronous processing should be strictly used, or Camel\n * is allowed to use asynchronous processing (if supported).\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: advanced\n */\n default AdvancedWorkdayEndpointProducerBuilder synchronous(\n String synchronous) {\n doSetProperty(\"synchronous\", synchronous);\n return this;\n }\n }",
"public static Builder newHttpJsonBuilder() {\n return Builder.createHttpJsonDefault();\n }",
"public Builder clearChannel() {\n if (channelBuilder_ == null) {\n channel_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n channelBuilder_.clear();\n }\n return this;\n }",
"public interface SimpleDraweeControllerBuilder\r\n{\r\n\r\n public abstract DraweeController build();\r\n\r\n public abstract SimpleDraweeControllerBuilder setCallerContext(Object obj);\r\n\r\n public abstract SimpleDraweeControllerBuilder setOldController(DraweeController draweecontroller);\r\n\r\n public abstract SimpleDraweeControllerBuilder setUri(Uri uri);\r\n\r\n public abstract SimpleDraweeControllerBuilder setUri(String s);\r\n}",
"public interface RegistrySettings {\n\n\n static Builder builder() {\n\t\treturn new Builder();\n\t}\n\n ResourceRegistryRepository getResourceRegistryRepository();\n\n MappedClassRegistry getMappedClassRegistry();\n\n MappedClassFactory getMappedClassFactory();\n\n List<String> getPackagesToScan();\n\n MappedFieldFactory getMappedFieldFactory();\n\n Comparator<MappedField<?>> getMappedFieldOrderComparator();\n\n RepositoryFactory getRepositoryFactory();\n\n MappedFieldBuilderVisitor[] getMappedFieldVisitors();\n\n ErrorFactory getErrorFactory();\n\n MethodArgumentFactory getMethodArgumentFactory();\n\n ConverterFactory getConverterFactory();\n\n ParameterConverterFactory getParameterConverterFactory();\n\n ControllerMethodAccess getDefaultControllerAccess();\n\n ServiceMethodAccess getDefaultServiceAccess();\n\n List<Object> getDefaultServiceFilters();\n\n RequestObjectFactory getRequestObjectFactory();\n\n Pagination getDefaultPagination();\n\n ResourcePathsProvider getDefaultRestrictedFieldsProvider();\n\n ResourcePathsProvider getDefaultSparseFieldsProvider();\n\n String getBasePath();\n\n static class Builder {\n private final static Logger log = LoggerFactory.getLogger(RegistrySettings.class);\n\n\t\tprivate boolean excludeFrameworkFilters;\n\n\t\tprivate ResourceRegistryRepository resourceRegistryMap;\n\t\tprivate MappedClassFactory mappedClassFactory;\n\t\tprivate MappedClassRegistry mappedClassRegistry;\n\t\tprivate String[] packagesToScan;\n\t\tprivate MappedFieldFactory mappedFieldFactory;\n\t\tprivate MappedFieldBuilderVisitor[] mappedFieldVisitors;\n\t\tprivate Comparator<MappedField<?>> mappedFieldOrderComparator;\n\n\t\tprivate ControllerMethodAccess defaultControllerMethodAccess;\n\t\tprivate ServiceMethodAccess defaultServiceMethodAccess;\n\n\t\tprivate RepositoryFactory repositoryFactory;\n\t\tprivate ErrorFactory errorFactory;\n\t\tprivate RequestObjectFactory requestObjectFactory;\n\t\tprivate MethodArgumentFactory methodArgumentFactory;\n\t\tprivate Object[] defaultServiceFilters;\n\t\tprivate Pagination defaultPagination;\n\t\tprivate Validator validator;\n\t\tprivate ResourcePathsProvider defaultSparseFieldsProvider;\n\t\tprivate ResourcePathsProvider defaultRestrictedFieldsProvider;\n\t\tprivate String basePath;\n private ConverterFactory converterFactory;\n\n\t\tprivate Builder me() {\n\t\t\treturn this;\n\t\t}\n\n\t\t/**\n * Provided alternate storage for registry meta data\n * \n * @param resourceRegistryMap implementation\n * @return this builder\n */\n\t\tpublic Builder resourceRegistryRepository(ResourceRegistryRepository resourceRegistryMap) {\n\t\t\tthis.resourceRegistryMap = resourceRegistryMap;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n\t\t * @param packagesToScan used by {@link com.github.restup.registry.ResourceRegistry} to filter acceptable {@link Resource}s\n * @return this builder\n */\n\t\tpublic Builder packagesToScan(String... packagesToScan) {\n\t\t\tthis.packagesToScan = packagesToScan;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Comparator for defining sort order of {@link MappedClass#getAttributes()}\n * \n * @param mappedFieldOrderComparator implementation\n * @return this builder\n */\n\t\tpublic Builder mappedFieldOrderComparator(Comparator<MappedField<?>> mappedFieldOrderComparator) {\n\t\t\tthis.mappedFieldOrderComparator = mappedFieldOrderComparator;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Provide an alternate implementation for creating {@link MappedField}\n * \n * @param mappedFieldFactory implementation\n * @return this builder\n */\n\t\tpublic Builder mappedFieldFactory(MappedFieldFactory mappedFieldFactory) {\n\t\t\tthis.mappedFieldFactory = mappedFieldFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * If {@link #mappedFieldFactory(MappedFieldFactory)} is not overridden,\n * {@link MappedFieldBuilderVisitor} implementations may be specified to customize behavior of\n * {@link DefaultMappedFieldFactory}\n * \n * @param visitors implementations\n * @return this builder\n */\n\t\tpublic Builder mappedFieldBuilderVisitors(MappedFieldBuilderVisitor... visitors) {\n\t\t\tthis.mappedFieldVisitors = visitors;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides factory for providing default {@link com.github.restup.repository.Repository}\n * implementations.\n * \n * @param repositoryFactory implementation\n * @return this builder\n */\n\t\tpublic Builder repositoryFactory(RepositoryFactory repositoryFactory) {\n\t\t\tthis.repositoryFactory = repositoryFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides factory for providing error objects\n * \n * @param errorFactory implementation\n * @return this builder\n */\n\t\tpublic Builder errorFactory(ErrorFactory errorFactory) {\n\t\t\tthis.errorFactory = errorFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Provides argument instances for services filters\n * \n * @param methodArgumentFactory implementation\n * @return this builder\n */\n\t\tpublic Builder methodArgumentFactory(MethodArgumentFactory methodArgumentFactory) {\n\t\t\tthis.methodArgumentFactory = methodArgumentFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Defines default service method access for resources. Resources may define their own.\n * \n * @param defaultServiceMethodAccess implementation\n * @return this builder\n */\n\t\tpublic Builder serviceMethodAccess(ServiceMethodAccess defaultServiceMethodAccess) {\n\t\t\tthis.defaultServiceMethodAccess = defaultServiceMethodAccess;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Defines default service controller access for resources. Resources may define their own.\n * \n * @param defaultControllerMethodAccess implementation\n * @return this builder\n */\n\t\tpublic Builder controllerMethodAccess(ControllerMethodAccess defaultControllerMethodAccess) {\n\t\t\tthis.defaultControllerMethodAccess = defaultControllerMethodAccess;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides default {@link RequestObjectFactory}\n * \n * @param requestObjectFactory implementation\n * @return this builder\n */\n\t\tpublic Builder requestObjectFactory(RequestObjectFactory requestObjectFactory) {\n\t\t\tthis.requestObjectFactory = requestObjectFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Overrides default {@link MappedClassFactory}\n * \n * @param mappedClassFactory implementation\n * @return this builder\n */\n\t\tpublic Builder mappedClassFactory(MappedClassFactory mappedClassFactory) {\n\t\t\tthis.mappedClassFactory = mappedClassFactory;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * If true, default filters ({@link NotFoundFilter}, etc) will be excluded from default filters\n * \n * @param excludeFrameworkFilters if true service filters are excluded. if false, Up! filters are\n * added.\n * @return this builder\n */\n\t\tpublic Builder excludeFrameworkFilters(boolean excludeFrameworkFilters) {\n\t\t\tthis.excludeFrameworkFilters = excludeFrameworkFilters;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Define default service filters to be used for resources relying on filter based services. This\n * will add to default Up! filters unless, {@link #excludeFrameworkFilters(boolean)} is set to true\n * \n * @param filters to add as default service filters.\n * @return this builder\n */\n\t\tpublic Builder defaultServiceFilters(Object... filters) {\n\t\t\tthis.defaultServiceFilters = filters;\n\t\t\treturn this.me();\n\t\t}\n\n public Builder defaultPagination(Pagination defaultPagination) {\n this.defaultPagination = defaultPagination;\n\t\t\t\t\treturn this.me();\n }\n\n public Builder defaultPaginationDisabled() {\n\t\t\t\t\treturn this.defaultPagination(Pagination.disabled());\n }\n\n public Builder defaultPagination(Integer pageLimit, Integer pageOffset, boolean withTotalsDisabled) {\n\t\t\t\t\treturn this.defaultPagination(Pagination.of(pageLimit, pageOffset, withTotalsDisabled));\n }\n\n\t\tpublic Builder defaultPagination(Integer pageLimit) {\n\t\t\treturn this.defaultPagination(pageLimit, 0, false);\n\t\t}\n\n\t\tpublic Builder validator(Validator validator) {\n\t\t\tthis.validator = validator;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Default implementation to be used when resource does not specify it's own implementation\n * \n * @param restrictedFieldsProvider implementation\n * @return this builder\n */\n\t\tpublic Builder defaultRestrictedFieldsProvider(ResourcePathsProvider restrictedFieldsProvider) {\n\t\t\tthis.defaultRestrictedFieldsProvider = restrictedFieldsProvider;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * Default implementation to be used when resource does not specify it's own implementation\n * \n * @param defaultSparseFieldsProvider implementation\n * @return this builder\n */\n\t\tpublic Builder defaultSparseFieldsProvider(ResourcePathsProvider defaultSparseFieldsProvider) {\n\t\t\tthis.defaultSparseFieldsProvider = defaultSparseFieldsProvider;\n\t\t\treturn this.me();\n\t\t}\n\n\t\t/**\n * The default base path for all resources\n * \n * @param basePath used for exposed endpoints\n * @return this builder\n */\n public Builder basePath(String basePath) {\n this.basePath = basePath;\n\t\t\t\t\treturn this.me();\n }\n\n /**\n * @param converterFactory used for parameter conversion\n * @return this builder\n */\n public Builder converterFactory(ConverterFactory converterFactory) {\n this.converterFactory = converterFactory;\n\t\t\t\t\treturn this.me();\n }\n\n\t\tpublic RegistrySettings build() {\n\t\t\tString[] packagesToScan = this.packagesToScan;\n\t\t\tif (ArrayUtils.isEmpty(packagesToScan)) {\n\t\t\t\tpackagesToScan = new String[] { \"com\" };\n\t\t\t}\n\t\t\tComparator<MappedField<?>> mappedFieldOrderComparator = this.mappedFieldOrderComparator;\n\t\t\tif (mappedFieldOrderComparator == null) {\n mappedFieldOrderComparator = MappedClass.getDefaultFieldComparator();\n\t\t\t}\n\t\t\tMappedFieldBuilderVisitor[] mappedFieldVisitors = this.mappedFieldVisitors;\n\t\t\tif (ArrayUtils.isEmpty(mappedFieldVisitors)) {\n mappedFieldVisitors = MappedFieldBuilderVisitor.getDefaultVisitors();\n\t\t\t}\n\t\t\tMappedFieldFactory mappedFieldFactory = this.mappedFieldFactory;\n\t\t\tif (mappedFieldFactory == null) {\n\t\t\t\tmappedFieldFactory = new DefaultMappedFieldFactory(mappedFieldVisitors);\n\t\t\t}\n\n\t\t\tErrorFactory errorFactory = this.errorFactory;\n\t\t\tif (errorFactory == null) {\n errorFactory = ErrorFactory.getDefaultErrorFactory();\n\t\t\t}\n\t\t\tRequestObjectFactory requestObjectFactory = this.requestObjectFactory;\n\t\t\tif (requestObjectFactory == null) {\n\t\t\t\trequestObjectFactory = new DefaultRequestObjectFactory();\n\t\t\t}\n\n\t\t\tObject[] defaultServiceFilters = this.defaultServiceFilters;\n\n\t\t\tif (!this.excludeFrameworkFilters) {\n\t\t\t\tdefaultServiceFilters = ArrayUtils.addAll(defaultServiceFilters, new BulkOperationByQueryFilter(),\n\t\t\t\t\t\tnew ImmutableFieldValidationFilter(), new IncludeFilter(), new NotFoundFilter(),\n\t\t\t\t\t\tnew RelationshipValidationFilter(), new SequencedIdValidationFilter(),\n\t\t\t\t\t\tnew CaseInsensitiveSearchFieldFilter());\n\n\t\t\t\tValidator javaxValidations = this.validator;\n\t\t\t\tif (javaxValidations == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tValidatorFactory factory = Validation.buildDefaultValidatorFactory();\n\t\t\t\t\t\tjavaxValidations = factory.getValidator();\n\t\t\t\t\t} catch (Exception p) {\n\t\t\t\t\t\tlog.warn(\n\t\t\t\t\t\t\t\t\"Unable to add JavaxValidationFilter, because no Bean Validation provider could be found. Add a provider like Hibernate Validator (RI) to your classpath.\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (javaxValidations != null) {\n\t\t\t\t\tdefaultServiceFilters = ArrayUtils.add(defaultServiceFilters,\n\t\t\t\t\t\t\tnew JavaxValidationFilter(javaxValidations));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tResourceRegistryRepository resourceRegistryMap = this.resourceRegistryMap;\n\t\t\tif (resourceRegistryMap == null) {\n\t\t\t\tresourceRegistryMap = new DefaultResourceRegistryRepository();\n\t\t\t}\n\n // builder.add(parameterConverters);\n ConverterFactory converterFactory = this.converterFactory;\n\n if (converterFactory == null) {\n converterFactory = ConverterFactory.getDefaultConverterFactory();\n\t\t\t}\n\n\t\t\tParameterConverterFactory parameterConverterFactory = ParameterConverterFactory\n\t\t\t\t\t.builder(errorFactory)\n\t\t\t\t\t.addAll(converterFactory.getConverters(String.class))\n\t\t\t\t\t.build();\n\n\t\t\tControllerMethodAccess defaultControllerMethodAccess = this.defaultControllerMethodAccess;\n\t\t\tif (defaultControllerMethodAccess == null) {\n defaultControllerMethodAccess = ControllerMethodAccess.allEnabled();\n\t\t\t}\n\n\t\t\tServiceMethodAccess defaultServiceMethodAccess = this.defaultServiceMethodAccess;\n\t\t\tif (defaultServiceMethodAccess == null) {\n defaultServiceMethodAccess = ServiceMethodAccess.allEnabled();\n\t\t\t}\n\n\t\t\tPagination pagination = this.defaultPagination;\n\t\t\tif (pagination == null) {\n\t\t\t\tpagination = Pagination.of(10, 0);\n\t\t\t}\n\n\t\t\tResourcePathsProvider defaultSparseFields = this.defaultSparseFieldsProvider;\n\t\t\tif (defaultSparseFields == null) {\n defaultSparseFields = ResourcePathsProvider.allApiFields();\n\t\t\t}\n\n\t\t\tResourcePathsProvider restrictedFields = this.defaultRestrictedFieldsProvider;\n\t\t\tif (restrictedFields == null) {\n restrictedFields = ResourcePathsProvider.empty();\n\t\t\t}\n\n\t\t\tString basePath = Resource.cleanBasePath(this.basePath);\n\t\t\tif (basePath == null) {\n\t\t\t\tbasePath = \"/\";\n\t\t\t}\n\n\t\t\treturn new BasicRegistrySettings(resourceRegistryMap, this.mappedClassFactory,\n\t\t\t\tthis.mappedClassRegistry, packagesToScan,\n\t\t\t\t\tmappedFieldFactory, mappedFieldVisitors, mappedFieldOrderComparator, defaultControllerMethodAccess,\n\t\t\t\tdefaultServiceMethodAccess, this.repositoryFactory, errorFactory, requestObjectFactory,\n\t\t\t\tthis.methodArgumentFactory, converterFactory, parameterConverterFactory,\n\t\t\t\tdefaultServiceFilters,\n\t\t\t\t\tpagination, defaultSparseFields, restrictedFields, basePath);\n\t\t}\n\t}\n\n}",
"public DelegateCredentialsProvider build() {\n return new DelegateCredentialsProvider(this);\n }",
"KafkaChannel buildChannel(String id, SelectionKey key, int maxReceiveSize) throws KafkaException;",
"@SuppressWarnings(\"unused\")\n @Provides\n @Singleton\n private ExpressiveObjectsConfigurationBuilder providesConfigurationBuilder() {\n return expressiveObjectsConfigurationBuilder;\n }",
"private URLConnection urlConnBuilder(URI base, URI resource) throws IOException {\n if (!resource.isAbsolute() && base != null) {\n resource = base.resolve(resource);\n }\n URL specURL = resource.toURL();\n URLConnection connection = specURL.openConnection();\n connection.setRequestProperty(\"Accept\", \"application/json\");\n connection.setRequestProperty(\"user-agent\", \"spymemcached vbucket client\");\n connection.setRequestProperty(\"X-memcachekv-Store-Client-Specification-Version\", CLIENT_SPEC_VER);\n\tif (restUsr != null) {\n\t try {\n\t\tconnection.setRequestProperty(\"Authorization\", buildAuthHeader(restUsr, restPwd));\n\t } catch (UnsupportedEncodingException ex) {\n\t\tthrow new IOException(\"Could not encode specified credentials for HTTP request.\", ex);\n\t }\n\t}\n\n return connection;\n\n }",
"interface Builder {\n /**\n * Add all the routes from the given route configuration object. This method can be called\n * multiple times on a builder. This method is currently one of the few methods where runtime\n * exceptions can occur during Lighter configuration. If the added RouteConfiguration instance\n * contains routes that already exist, this method may throw a {@link IllegalArgumentException}\n * @param configuration The route configuration to add\n * @return self\n */\n Builder addRouter(RouteConfiguration configuration);\n\n /**\n * Add an injection factory representing the application's dependency injection solution. This method\n * should only be called once.\n * @param factory the factory to add\n * @return self\n */\n Builder injectionFactory(InjectionObjectFactory factory);\n\n /**\n * Add a type adaptor factory for serialization and deserialization of data to Java objects. The factory\n * added must be sufficient for all types and media types the application requires. This method should\n * only be called once.\n * @param factory the factory to add\n * @return self\n */\n Builder adapterFactory(TypeAdapterFactory factory);\n\n /**\n * Set the port for the server to bind to.\n * @param port the port\n * @return self\n */\n Builder port(int port);\n\n /**\n * Set the host name for the server to bind to\n * @param hostName the host name\n * @return self\n */\n Builder hostName(String hostName);\n\n /**\n * Show the lighter startup banner. By default, the banner is shown.\n * @param show true to show the banner, false to hide it\n * @return self\n */\n Builder showBanner(boolean show);\n\n /**\n * Add a response transformer that will run for EVERY response generated by lighter. This method\n * can be called multiple times to add multiple transformers. Transformers <strong>are not</strong>\n * guaranteed to run in any order.\n * @param transformer the transformer to be used on responses\n * @return self\n */\n Builder addResponseTransformer(GlobalRequestTransformer transformer);\n\n /**\n * Construct a Lighter instance using the configuration from this builder\n * @return a new Lighter instance\n */\n Lighter build();\n }",
"public BackendService build() {\n return new BackendService(super.buildUnknownFields());\n }",
"@Override\r\n public UriBuilder getRequestUriBuilder() {\n return null;\r\n }",
"@Override\n ManagedChannel createChannel(List<ServerInfo> servers) {\n checkArgument(!servers.isEmpty(), \"No management server provided.\");\n XdsLogger logger = XdsLogger.withPrefix(\"xds-client-channel-factory\");\n ServerInfo serverInfo = servers.get(0);\n String serverUri = serverInfo.getServerUri();\n logger.log(XdsLogLevel.INFO, \"Creating channel to {0}\", serverUri);\n List<ChannelCreds> channelCredsList = serverInfo.getChannelCredentials();\n ManagedChannelBuilder<?> channelBuilder = null;\n // Use the first supported channel credentials configuration.\n // Currently, only \"google_default\" is supported.\n for (ChannelCreds creds : channelCredsList) {\n if (creds.getType().equals(\"google_default\")) {\n logger.log(XdsLogLevel.INFO, \"Using channel credentials: google_default\");\n channelBuilder = GoogleDefaultChannelBuilder.forTarget(serverUri);\n break;\n }\n }\n if (channelBuilder == null) {\n logger.log(XdsLogLevel.INFO, \"Using default channel credentials\");\n channelBuilder = ManagedChannelBuilder.forTarget(serverUri);\n }\n\n return channelBuilder\n .keepAliveTime(5, TimeUnit.MINUTES)\n .build();\n }",
"static Http2ClientBuilder builder() {\n return new Http2ClientBuilder();\n }",
"public ProxyHandlerRegistry build() {\n checkNotNull(finder, \"No channel finder defined\");\n\n ProxyServerCallHandler<InputStream, InputStream> proxyHandler =\n new ProxyServerCallHandler<>(finder, CallOptions.DEFAULT);\n\n Map<String, ServerMethodDefinition<?, ?>> methods = new HashMap<>();\n for (ServerServiceDefinition service : services.values()) {\n for (ServerMethodDefinition<?, ?> method : service.getMethods()) {\n String methodName = method.getMethodDescriptor().getFullMethodName();\n methods.put(\n methodName,\n createProxyServerMethodDefinition(\n method.getMethodDescriptor(),\n proxyHandler)\n );\n }\n }\n return new ProxyHandlerRegistry(\n Collections.unmodifiableMap(methods));\n }",
"private static ManagedChannel getManagedChannel(int port) {\n return ManagedChannelBuilder.forAddress(\"localhost\", port)\n .usePlaintext(true)\n .build();\n }",
"public com.czht.face.recognition.Czhtdev.Request.Builder getRequestBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"public Builder defaultRestrictedFieldsProvider(ResourcePathsProvider restrictedFieldsProvider) {\n\t\t\tthis.defaultRestrictedFieldsProvider = restrictedFieldsProvider;\n\t\t\treturn this.me();\n\t\t}",
"private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }",
"public JsonHttpChannel(FromJsonHttp defaultConstructor) {\n this.defaultConstructor = defaultConstructor;\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);",
"public static GeneralCategoryRecommendationBuilder builder() {\n return GeneralCategoryRecommendationBuilder.of();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return InstantiatingExecutorProvider.newBuilder();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"@Override\n public WsClient build() {\n header(HEADER_UPGRADE_WS);\n header(HEADER_WS_VERSION);\n header(Http.HeaderValues.CONTENT_LENGTH_ZERO);\n if (subprotocols.isEmpty()) {\n removeHeader(HEADER_WS_PROTOCOL);\n } else {\n header(HEADER_WS_PROTOCOL, subprotocols);\n }\n\n return new WsClientImpl(this);\n }",
"@Override\n public SessionClient build() {\n Supplier<CompletableFuture<SessionClient>> proxyFactory = () -> CompletableFuture.completedFuture(\n new DefaultRaftSessionClient(\n primitiveName,\n primitiveType,\n serviceConfig,\n partitionId,\n DefaultRaftClient.this.protocol,\n selectorManager,\n sessionManager,\n readConsistency,\n communicationStrategy,\n threadContextFactory.createContext(),\n minTimeout,\n maxTimeout));\n\n SessionClient proxy;\n\n ThreadContext context = threadContextFactory.createContext();\n\n // If the recovery strategy is set to RECOVER, wrap the builder in a recovering proxy client.\n if (recoveryStrategy == Recovery.RECOVER) {\n proxy = new RecoveringSessionClient(\n clientId,\n partitionId,\n primitiveName,\n primitiveType,\n proxyFactory,\n context);\n } else {\n proxy = proxyFactory.get().join();\n }\n\n // If max retries is set, wrap the client in a retrying proxy client.\n if (maxRetries > 0) {\n proxy = new RetryingSessionClient(\n proxy,\n context,\n maxRetries,\n retryDelay);\n }\n return new BlockingAwareSessionClient(proxy, context);\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint.Builder getEndpointBuilder() {\n \n onChanged();\n return getEndpointFieldBuilder().getBuilder();\n }",
"public Builder clearChannel() {\n \n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"Channel channel() {\n return channel;\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public interface WorkdayEndpointProducerBuilder\n extends\n EndpointProducerBuilder {\n default AdvancedWorkdayEndpointProducerBuilder advanced() {\n return (AdvancedWorkdayEndpointProducerBuilder) this;\n }\n /**\n * Whether the producer should be started lazy (on the first message).\n * By starting lazy you can use this to allow CamelContext and routes to\n * startup in situations where a producer may otherwise fail during\n * starting and cause the route to fail being started. By deferring this\n * startup to be lazy then the startup failure can be handled during\n * routing messages via Camel's routing error handlers. Beware that when\n * the first message is processed then creating and starting the\n * producer may take a little time and prolong the total processing time\n * of the processing.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: producer\n */\n default WorkdayEndpointProducerBuilder lazyStartProducer(\n boolean lazyStartProducer) {\n doSetProperty(\"lazyStartProducer\", lazyStartProducer);\n return this;\n }\n /**\n * Whether the producer should be started lazy (on the first message).\n * By starting lazy you can use this to allow CamelContext and routes to\n * startup in situations where a producer may otherwise fail during\n * starting and cause the route to fail being started. By deferring this\n * startup to be lazy then the startup failure can be handled during\n * routing messages via Camel's routing error handlers. Beware that when\n * the first message is processed then creating and starting the\n * producer may take a little time and prolong the total processing time\n * of the processing.\n * \n * The option will be converted to a <code>boolean</code> type.\n * \n * Default: false\n * Group: producer\n */\n default WorkdayEndpointProducerBuilder lazyStartProducer(\n String lazyStartProducer) {\n doSetProperty(\"lazyStartProducer\", lazyStartProducer);\n return this;\n }\n /**\n * Workday Report as a service output format.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: format\n */\n default WorkdayEndpointProducerBuilder format(String format) {\n doSetProperty(\"format\", format);\n return this;\n }\n /**\n * Workday Host name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: host\n */\n default WorkdayEndpointProducerBuilder host(String host) {\n doSetProperty(\"host\", host);\n return this;\n }\n /**\n * Workday Client Id generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointProducerBuilder clientId(String clientId) {\n doSetProperty(\"clientId\", clientId);\n return this;\n }\n /**\n * Workday Client Secrect generated by API Client for Integrations.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointProducerBuilder clientSecret(String clientSecret) {\n doSetProperty(\"clientSecret\", clientSecret);\n return this;\n }\n /**\n * Workday Token Refresh generated for Integration system user.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: security\n */\n default WorkdayEndpointProducerBuilder tokenRefresh(String tokenRefresh) {\n doSetProperty(\"tokenRefresh\", tokenRefresh);\n return this;\n }\n /**\n * Workday Tenant name.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Required: true\n * Group: tenant\n */\n default WorkdayEndpointProducerBuilder tenant(String tenant) {\n doSetProperty(\"tenant\", tenant);\n return this;\n }\n }",
"public Builder clearChannel() {\n bitField0_ = (bitField0_ & ~0x00000200);\n channel_ = getDefaultInstance().getChannel();\n onChanged();\n return this;\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"@Override\n public IRateLimiter<TKey> build() {\n Preconditions.checkArgument(this.rateLimit > 0, \"rateLimit must be positive\");\n Preconditions.checkArgument(this.intervalTime > 0, \"intervalTime must be positive\");\n Preconditions.checkArgument(this.calendarTimeUnitCode > 0, \"TimeUnit is not valid\");\n\n return new InMemoryRateLimiter<>(this);\n }",
"public com.example.products.ProductsRS.Builder getProductsRSBuilder() {\n \n onChanged();\n return getProductsRSFieldBuilder().getBuilder();\n }",
"@Bean\n\tpublic Docket createRestApi() {\n\t\treturn new Docket(DocumentationType.SWAGGER_2)\n\t\t\t\t.apiInfo(apiInfo())\n\t\t\t\t.groupName(\"rest\")\n\t\t\t\t.select()\n\t\t\t\t.apis(RequestHandlerSelectors.basePackage(\"com.ly.edu.controller\"))\n\t\t\t\t.paths(PathSelectors.any())\n\t\t\t\t.build();\n\t}",
"@Override\n public RestContextSpec<?, ?> createContextSpec() {\n Properties restProperties = new Properties();\n restProperties.setProperty(provider + \".contextbuilder\", SimpleDBContextBuilder.class.getName());\n restProperties.setProperty(provider + \".propertiesbuilder\", SimpleDBPropertiesBuilder.class.getName());\n return new RestContextFactory(restProperties).createContextSpec(provider, \"foo\", \"bar\", getProperties());\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public Builder clearChannel() {\n bitField0_ = (bitField0_ & ~0x00000002);\n channel_ = 1;\n onChanged();\n return this;\n }",
"public Builder url(URI endpoint) {\n return server(endpoint);\n }",
"public Builder setChannel(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n channel_ = value;\n onChanged();\n return this;\n }",
"@Override\n public Http2ConnectionHandler build() {\n return super.build();\n }",
"public abstract ManagedChannelBuilder<?> builderForAddress(String str, int i);",
"@Nonnull\n public static UBL23WriterBuilder <TransportServiceDescriptionRequestType> transportServiceDescriptionRequest ()\n {\n return UBL23WriterBuilder.create (TransportServiceDescriptionRequestType.class);\n }",
"@JsonCreator\n ChannelImpl(@JsonProperty(\"id\") final String id, @JsonProperty(\"version\") final Long version,\n @JsonProperty(\"createdAt\") final java.time.ZonedDateTime createdAt,\n @JsonProperty(\"lastModifiedAt\") final java.time.ZonedDateTime lastModifiedAt,\n @JsonProperty(\"lastModifiedBy\") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy,\n @JsonProperty(\"createdBy\") final com.commercetools.api.models.common.CreatedBy createdBy,\n @JsonProperty(\"key\") final String key,\n @JsonProperty(\"roles\") final java.util.List<com.commercetools.api.models.channel.ChannelRoleEnum> roles,\n @JsonProperty(\"name\") final com.commercetools.api.models.common.LocalizedString name,\n @JsonProperty(\"description\") final com.commercetools.api.models.common.LocalizedString description,\n @JsonProperty(\"address\") final com.commercetools.api.models.common.Address address,\n @JsonProperty(\"reviewRatingStatistics\") final com.commercetools.api.models.review.ReviewRatingStatistics reviewRatingStatistics,\n @JsonProperty(\"custom\") final com.commercetools.api.models.type.CustomFields custom,\n @JsonProperty(\"geoLocation\") final com.commercetools.api.models.common.GeoJson geoLocation) {\n this.id = id;\n this.version = version;\n this.createdAt = createdAt;\n this.lastModifiedAt = lastModifiedAt;\n this.lastModifiedBy = lastModifiedBy;\n this.createdBy = createdBy;\n this.key = key;\n this.roles = roles;\n this.name = name;\n this.description = description;\n this.address = address;\n this.reviewRatingStatistics = reviewRatingStatistics;\n this.custom = custom;\n this.geoLocation = geoLocation;\n }",
"Endpoint getDefaultEndpoint();",
"public interface ConfigurableSupplierBuilder <T, U extends ConfigurableSupplierBuilder<T,U>>\n extends SupplierBuilder<T>, Configurable<U>{\n\n default StreamableSupplier<T> build(Consumer<U> configuration){\n return this.configure(configuration).build();\n }\n}",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public interface Builder extends Thing.Builder {\n\n @Override\n Builder addJsonLdContext(@Nullable JsonLdContext context);\n\n @Override\n Builder addJsonLdContext(@Nullable JsonLdContext.Builder context);\n\n @Override\n Builder setJsonLdId(@Nullable String value);\n\n @Override\n Builder setJsonLdReverse(String property, Thing obj);\n\n @Override\n Builder setJsonLdReverse(String property, Thing.Builder builder);\n\n /** Add a value to property about. */\n Builder addAbout(Thing value);\n\n /** Add a value to property about. */\n Builder addAbout(Thing.Builder value);\n\n /** Add a value to property about. */\n Builder addAbout(String value);\n\n /** Add a value to property accessibilityAPI. */\n Builder addAccessibilityAPI(Text value);\n\n /** Add a value to property accessibilityAPI. */\n Builder addAccessibilityAPI(String value);\n\n /** Add a value to property accessibilityControl. */\n Builder addAccessibilityControl(Text value);\n\n /** Add a value to property accessibilityControl. */\n Builder addAccessibilityControl(String value);\n\n /** Add a value to property accessibilityFeature. */\n Builder addAccessibilityFeature(Text value);\n\n /** Add a value to property accessibilityFeature. */\n Builder addAccessibilityFeature(String value);\n\n /** Add a value to property accessibilityHazard. */\n Builder addAccessibilityHazard(Text value);\n\n /** Add a value to property accessibilityHazard. */\n Builder addAccessibilityHazard(String value);\n\n /** Add a value to property accountablePerson. */\n Builder addAccountablePerson(Person value);\n\n /** Add a value to property accountablePerson. */\n Builder addAccountablePerson(Person.Builder value);\n\n /** Add a value to property accountablePerson. */\n Builder addAccountablePerson(String value);\n\n /** Add a value to property additionalType. */\n Builder addAdditionalType(URL value);\n\n /** Add a value to property additionalType. */\n Builder addAdditionalType(String value);\n\n /** Add a value to property aggregateRating. */\n Builder addAggregateRating(AggregateRating value);\n\n /** Add a value to property aggregateRating. */\n Builder addAggregateRating(AggregateRating.Builder value);\n\n /** Add a value to property aggregateRating. */\n Builder addAggregateRating(String value);\n\n /** Add a value to property alternateName. */\n Builder addAlternateName(Text value);\n\n /** Add a value to property alternateName. */\n Builder addAlternateName(String value);\n\n /** Add a value to property alternativeHeadline. */\n Builder addAlternativeHeadline(Text value);\n\n /** Add a value to property alternativeHeadline. */\n Builder addAlternativeHeadline(String value);\n\n /** Add a value to property associatedMedia. */\n Builder addAssociatedMedia(MediaObject value);\n\n /** Add a value to property associatedMedia. */\n Builder addAssociatedMedia(MediaObject.Builder value);\n\n /** Add a value to property associatedMedia. */\n Builder addAssociatedMedia(String value);\n\n /** Add a value to property audience. */\n Builder addAudience(Audience value);\n\n /** Add a value to property audience. */\n Builder addAudience(Audience.Builder value);\n\n /** Add a value to property audience. */\n Builder addAudience(String value);\n\n /** Add a value to property audio. */\n Builder addAudio(AudioObject value);\n\n /** Add a value to property audio. */\n Builder addAudio(AudioObject.Builder value);\n\n /** Add a value to property audio. */\n Builder addAudio(String value);\n\n /** Add a value to property author. */\n Builder addAuthor(Organization value);\n\n /** Add a value to property author. */\n Builder addAuthor(Organization.Builder value);\n\n /** Add a value to property author. */\n Builder addAuthor(Person value);\n\n /** Add a value to property author. */\n Builder addAuthor(Person.Builder value);\n\n /** Add a value to property author. */\n Builder addAuthor(String value);\n\n /** Add a value to property award. */\n Builder addAward(Text value);\n\n /** Add a value to property award. */\n Builder addAward(String value);\n\n /** Add a value to property awards. */\n Builder addAwards(Text value);\n\n /** Add a value to property awards. */\n Builder addAwards(String value);\n\n /** Add a value to property character. */\n Builder addCharacter(Person value);\n\n /** Add a value to property character. */\n Builder addCharacter(Person.Builder value);\n\n /** Add a value to property character. */\n Builder addCharacter(String value);\n\n /** Add a value to property citation. */\n Builder addCitation(CreativeWork value);\n\n /** Add a value to property citation. */\n Builder addCitation(CreativeWork.Builder value);\n\n /** Add a value to property citation. */\n Builder addCitation(Text value);\n\n /** Add a value to property citation. */\n Builder addCitation(String value);\n\n /** Add a value to property comment. */\n Builder addComment(Comment value);\n\n /** Add a value to property comment. */\n Builder addComment(Comment.Builder value);\n\n /** Add a value to property comment. */\n Builder addComment(String value);\n\n /** Add a value to property commentCount. */\n Builder addCommentCount(Integer value);\n\n /** Add a value to property commentCount. */\n Builder addCommentCount(String value);\n\n /** Add a value to property contentLocation. */\n Builder addContentLocation(Place value);\n\n /** Add a value to property contentLocation. */\n Builder addContentLocation(Place.Builder value);\n\n /** Add a value to property contentLocation. */\n Builder addContentLocation(String value);\n\n /** Add a value to property contentRating. */\n Builder addContentRating(Text value);\n\n /** Add a value to property contentRating. */\n Builder addContentRating(String value);\n\n /** Add a value to property contributor. */\n Builder addContributor(Organization value);\n\n /** Add a value to property contributor. */\n Builder addContributor(Organization.Builder value);\n\n /** Add a value to property contributor. */\n Builder addContributor(Person value);\n\n /** Add a value to property contributor. */\n Builder addContributor(Person.Builder value);\n\n /** Add a value to property contributor. */\n Builder addContributor(String value);\n\n /** Add a value to property copyrightHolder. */\n Builder addCopyrightHolder(Organization value);\n\n /** Add a value to property copyrightHolder. */\n Builder addCopyrightHolder(Organization.Builder value);\n\n /** Add a value to property copyrightHolder. */\n Builder addCopyrightHolder(Person value);\n\n /** Add a value to property copyrightHolder. */\n Builder addCopyrightHolder(Person.Builder value);\n\n /** Add a value to property copyrightHolder. */\n Builder addCopyrightHolder(String value);\n\n /** Add a value to property copyrightYear. */\n Builder addCopyrightYear(Number value);\n\n /** Add a value to property copyrightYear. */\n Builder addCopyrightYear(String value);\n\n /** Add a value to property creator. */\n Builder addCreator(Organization value);\n\n /** Add a value to property creator. */\n Builder addCreator(Organization.Builder value);\n\n /** Add a value to property creator. */\n Builder addCreator(Person value);\n\n /** Add a value to property creator. */\n Builder addCreator(Person.Builder value);\n\n /** Add a value to property creator. */\n Builder addCreator(String value);\n\n /** Add a value to property dateCreated. */\n Builder addDateCreated(Date value);\n\n /** Add a value to property dateCreated. */\n Builder addDateCreated(DateTime value);\n\n /** Add a value to property dateCreated. */\n Builder addDateCreated(String value);\n\n /** Add a value to property dateModified. */\n Builder addDateModified(Date value);\n\n /** Add a value to property dateModified. */\n Builder addDateModified(DateTime value);\n\n /** Add a value to property dateModified. */\n Builder addDateModified(String value);\n\n /** Add a value to property datePublished. */\n Builder addDatePublished(Date value);\n\n /** Add a value to property datePublished. */\n Builder addDatePublished(String value);\n\n /** Add a value to property description. */\n Builder addDescription(Text value);\n\n /** Add a value to property description. */\n Builder addDescription(String value);\n\n /** Add a value to property discussionUrl. */\n Builder addDiscussionUrl(URL value);\n\n /** Add a value to property discussionUrl. */\n Builder addDiscussionUrl(String value);\n\n /** Add a value to property editor. */\n Builder addEditor(Person value);\n\n /** Add a value to property editor. */\n Builder addEditor(Person.Builder value);\n\n /** Add a value to property editor. */\n Builder addEditor(String value);\n\n /** Add a value to property educationalAlignment. */\n Builder addEducationalAlignment(AlignmentObject value);\n\n /** Add a value to property educationalAlignment. */\n Builder addEducationalAlignment(AlignmentObject.Builder value);\n\n /** Add a value to property educationalAlignment. */\n Builder addEducationalAlignment(String value);\n\n /** Add a value to property educationalUse. */\n Builder addEducationalUse(Text value);\n\n /** Add a value to property educationalUse. */\n Builder addEducationalUse(String value);\n\n /** Add a value to property encoding. */\n Builder addEncoding(MediaObject value);\n\n /** Add a value to property encoding. */\n Builder addEncoding(MediaObject.Builder value);\n\n /** Add a value to property encoding. */\n Builder addEncoding(String value);\n\n /** Add a value to property encodings. */\n Builder addEncodings(MediaObject value);\n\n /** Add a value to property encodings. */\n Builder addEncodings(MediaObject.Builder value);\n\n /** Add a value to property encodings. */\n Builder addEncodings(String value);\n\n /** Add a value to property exampleOfWork. */\n Builder addExampleOfWork(CreativeWork value);\n\n /** Add a value to property exampleOfWork. */\n Builder addExampleOfWork(CreativeWork.Builder value);\n\n /** Add a value to property exampleOfWork. */\n Builder addExampleOfWork(String value);\n\n /** Add a value to property fileFormat. */\n Builder addFileFormat(Text value);\n\n /** Add a value to property fileFormat. */\n Builder addFileFormat(String value);\n\n /** Add a value to property genre. */\n Builder addGenre(Text value);\n\n /** Add a value to property genre. */\n Builder addGenre(URL value);\n\n /** Add a value to property genre. */\n Builder addGenre(String value);\n\n /** Add a value to property hasPart. */\n Builder addHasPart(CreativeWork value);\n\n /** Add a value to property hasPart. */\n Builder addHasPart(CreativeWork.Builder value);\n\n /** Add a value to property hasPart. */\n Builder addHasPart(String value);\n\n /** Add a value to property headline. */\n Builder addHeadline(Text value);\n\n /** Add a value to property headline. */\n Builder addHeadline(String value);\n\n /** Add a value to property image. */\n Builder addImage(ImageObject value);\n\n /** Add a value to property image. */\n Builder addImage(ImageObject.Builder value);\n\n /** Add a value to property image. */\n Builder addImage(URL value);\n\n /** Add a value to property image. */\n Builder addImage(String value);\n\n /** Add a value to property inLanguage. */\n Builder addInLanguage(Language value);\n\n /** Add a value to property inLanguage. */\n Builder addInLanguage(Language.Builder value);\n\n /** Add a value to property inLanguage. */\n Builder addInLanguage(Text value);\n\n /** Add a value to property inLanguage. */\n Builder addInLanguage(String value);\n\n /** Add a value to property interactionStatistic. */\n Builder addInteractionStatistic(InteractionCounter value);\n\n /** Add a value to property interactionStatistic. */\n Builder addInteractionStatistic(InteractionCounter.Builder value);\n\n /** Add a value to property interactionStatistic. */\n Builder addInteractionStatistic(String value);\n\n /** Add a value to property interactivityType. */\n Builder addInteractivityType(Text value);\n\n /** Add a value to property interactivityType. */\n Builder addInteractivityType(String value);\n\n /** Add a value to property isBasedOnUrl. */\n Builder addIsBasedOnUrl(URL value);\n\n /** Add a value to property isBasedOnUrl. */\n Builder addIsBasedOnUrl(String value);\n\n /** Add a value to property isFamilyFriendly. */\n Builder addIsFamilyFriendly(Boolean value);\n\n /** Add a value to property isFamilyFriendly. */\n Builder addIsFamilyFriendly(String value);\n\n /** Add a value to property isPartOf. */\n Builder addIsPartOf(CreativeWork value);\n\n /** Add a value to property isPartOf. */\n Builder addIsPartOf(CreativeWork.Builder value);\n\n /** Add a value to property isPartOf. */\n Builder addIsPartOf(String value);\n\n /** Add a value to property keywords. */\n Builder addKeywords(Text value);\n\n /** Add a value to property keywords. */\n Builder addKeywords(String value);\n\n /** Add a value to property learningResourceType. */\n Builder addLearningResourceType(Text value);\n\n /** Add a value to property learningResourceType. */\n Builder addLearningResourceType(String value);\n\n /** Add a value to property license. */\n Builder addLicense(CreativeWork value);\n\n /** Add a value to property license. */\n Builder addLicense(CreativeWork.Builder value);\n\n /** Add a value to property license. */\n Builder addLicense(URL value);\n\n /** Add a value to property license. */\n Builder addLicense(String value);\n\n /** Add a value to property locationCreated. */\n Builder addLocationCreated(Place value);\n\n /** Add a value to property locationCreated. */\n Builder addLocationCreated(Place.Builder value);\n\n /** Add a value to property locationCreated. */\n Builder addLocationCreated(String value);\n\n /** Add a value to property mainEntity. */\n Builder addMainEntity(Thing value);\n\n /** Add a value to property mainEntity. */\n Builder addMainEntity(Thing.Builder value);\n\n /** Add a value to property mainEntity. */\n Builder addMainEntity(String value);\n\n /** Add a value to property mainEntityOfPage. */\n Builder addMainEntityOfPage(CreativeWork value);\n\n /** Add a value to property mainEntityOfPage. */\n Builder addMainEntityOfPage(CreativeWork.Builder value);\n\n /** Add a value to property mainEntityOfPage. */\n Builder addMainEntityOfPage(URL value);\n\n /** Add a value to property mainEntityOfPage. */\n Builder addMainEntityOfPage(String value);\n\n /** Add a value to property mentions. */\n Builder addMentions(Thing value);\n\n /** Add a value to property mentions. */\n Builder addMentions(Thing.Builder value);\n\n /** Add a value to property mentions. */\n Builder addMentions(String value);\n\n /** Add a value to property name. */\n Builder addName(Text value);\n\n /** Add a value to property name. */\n Builder addName(String value);\n\n /** Add a value to property offers. */\n Builder addOffers(Offer value);\n\n /** Add a value to property offers. */\n Builder addOffers(Offer.Builder value);\n\n /** Add a value to property offers. */\n Builder addOffers(String value);\n\n /** Add a value to property position. */\n Builder addPosition(Integer value);\n\n /** Add a value to property position. */\n Builder addPosition(Text value);\n\n /** Add a value to property position. */\n Builder addPosition(String value);\n\n /** Add a value to property potentialAction. */\n Builder addPotentialAction(Action value);\n\n /** Add a value to property potentialAction. */\n Builder addPotentialAction(Action.Builder value);\n\n /** Add a value to property potentialAction. */\n Builder addPotentialAction(String value);\n\n /** Add a value to property producer. */\n Builder addProducer(Organization value);\n\n /** Add a value to property producer. */\n Builder addProducer(Organization.Builder value);\n\n /** Add a value to property producer. */\n Builder addProducer(Person value);\n\n /** Add a value to property producer. */\n Builder addProducer(Person.Builder value);\n\n /** Add a value to property producer. */\n Builder addProducer(String value);\n\n /** Add a value to property provider. */\n Builder addProvider(Organization value);\n\n /** Add a value to property provider. */\n Builder addProvider(Organization.Builder value);\n\n /** Add a value to property provider. */\n Builder addProvider(Person value);\n\n /** Add a value to property provider. */\n Builder addProvider(Person.Builder value);\n\n /** Add a value to property provider. */\n Builder addProvider(String value);\n\n /** Add a value to property publication. */\n Builder addPublication(PublicationEvent value);\n\n /** Add a value to property publication. */\n Builder addPublication(PublicationEvent.Builder value);\n\n /** Add a value to property publication. */\n Builder addPublication(String value);\n\n /** Add a value to property publisher. */\n Builder addPublisher(Organization value);\n\n /** Add a value to property publisher. */\n Builder addPublisher(Organization.Builder value);\n\n /** Add a value to property publisher. */\n Builder addPublisher(Person value);\n\n /** Add a value to property publisher. */\n Builder addPublisher(Person.Builder value);\n\n /** Add a value to property publisher. */\n Builder addPublisher(String value);\n\n /** Add a value to property publishingPrinciples. */\n Builder addPublishingPrinciples(URL value);\n\n /** Add a value to property publishingPrinciples. */\n Builder addPublishingPrinciples(String value);\n\n /** Add a value to property recordedAt. */\n Builder addRecordedAt(Event value);\n\n /** Add a value to property recordedAt. */\n Builder addRecordedAt(Event.Builder value);\n\n /** Add a value to property recordedAt. */\n Builder addRecordedAt(String value);\n\n /** Add a value to property releasedEvent. */\n Builder addReleasedEvent(PublicationEvent value);\n\n /** Add a value to property releasedEvent. */\n Builder addReleasedEvent(PublicationEvent.Builder value);\n\n /** Add a value to property releasedEvent. */\n Builder addReleasedEvent(String value);\n\n /** Add a value to property review. */\n Builder addReview(Review value);\n\n /** Add a value to property review. */\n Builder addReview(Review.Builder value);\n\n /** Add a value to property review. */\n Builder addReview(String value);\n\n /** Add a value to property reviews. */\n Builder addReviews(Review value);\n\n /** Add a value to property reviews. */\n Builder addReviews(Review.Builder value);\n\n /** Add a value to property reviews. */\n Builder addReviews(String value);\n\n /** Add a value to property sameAs. */\n Builder addSameAs(URL value);\n\n /** Add a value to property sameAs. */\n Builder addSameAs(String value);\n\n /** Add a value to property schemaVersion. */\n Builder addSchemaVersion(Text value);\n\n /** Add a value to property schemaVersion. */\n Builder addSchemaVersion(URL value);\n\n /** Add a value to property schemaVersion. */\n Builder addSchemaVersion(String value);\n\n /** Add a value to property sourceOrganization. */\n Builder addSourceOrganization(Organization value);\n\n /** Add a value to property sourceOrganization. */\n Builder addSourceOrganization(Organization.Builder value);\n\n /** Add a value to property sourceOrganization. */\n Builder addSourceOrganization(String value);\n\n /** Add a value to property text. */\n Builder addText(Text value);\n\n /** Add a value to property text. */\n Builder addText(String value);\n\n /** Add a value to property thumbnailUrl. */\n Builder addThumbnailUrl(URL value);\n\n /** Add a value to property thumbnailUrl. */\n Builder addThumbnailUrl(String value);\n\n /** Add a value to property timeRequired. */\n Builder addTimeRequired(Duration value);\n\n /** Add a value to property timeRequired. */\n Builder addTimeRequired(Duration.Builder value);\n\n /** Add a value to property timeRequired. */\n Builder addTimeRequired(String value);\n\n /** Add a value to property translator. */\n Builder addTranslator(Organization value);\n\n /** Add a value to property translator. */\n Builder addTranslator(Organization.Builder value);\n\n /** Add a value to property translator. */\n Builder addTranslator(Person value);\n\n /** Add a value to property translator. */\n Builder addTranslator(Person.Builder value);\n\n /** Add a value to property translator. */\n Builder addTranslator(String value);\n\n /** Add a value to property typicalAgeRange. */\n Builder addTypicalAgeRange(Text value);\n\n /** Add a value to property typicalAgeRange. */\n Builder addTypicalAgeRange(String value);\n\n /** Add a value to property url. */\n Builder addUrl(URL value);\n\n /** Add a value to property url. */\n Builder addUrl(String value);\n\n /** Add a value to property version. */\n Builder addVersion(Number value);\n\n /** Add a value to property version. */\n Builder addVersion(String value);\n\n /** Add a value to property video. */\n Builder addVideo(VideoObject value);\n\n /** Add a value to property video. */\n Builder addVideo(VideoObject.Builder value);\n\n /** Add a value to property video. */\n Builder addVideo(String value);\n\n /** Add a value to property workExample. */\n Builder addWorkExample(CreativeWork value);\n\n /** Add a value to property workExample. */\n Builder addWorkExample(CreativeWork.Builder value);\n\n /** Add a value to property workExample. */\n Builder addWorkExample(String value);\n\n /** Add a value to property detailedDescription. */\n Builder addDetailedDescription(Article value);\n\n /** Add a value to property detailedDescription. */\n Builder addDetailedDescription(Article.Builder value);\n\n /** Add a value to property detailedDescription. */\n Builder addDetailedDescription(String value);\n\n /** Add a value to property popularityScore. */\n Builder addPopularityScore(PopularityScoreSpecification value);\n\n /** Add a value to property popularityScore. */\n Builder addPopularityScore(PopularityScoreSpecification.Builder value);\n\n /** Add a value to property popularityScore. */\n Builder addPopularityScore(String value);\n\n /**\n * Add a value to property.\n *\n * @param name The property name.\n * @param value The value of the property.\n */\n Builder addProperty(String name, SchemaOrgType value);\n\n /**\n * Add a value to property.\n *\n * @param name The property name.\n * @param builder The schema.org object builder for the property value.\n */\n Builder addProperty(String name, Thing.Builder builder);\n\n /**\n * Add a value to property.\n *\n * @param name The property name.\n * @param value The string value of the property.\n */\n Builder addProperty(String name, String value);\n\n /** Build a {@link CreativeWork} object. */\n CreativeWork build();\n }",
"public Provider() {\n\t\t\tsuper(SCHEME);\n\t\t}",
"public MediaTypeBuilder () {\n this.parameters = new HashMap<String, String>();\n this.type = \"application\";\n this.subtype = \"octet-stream\";\n }",
"public UnaryCallSettings.Builder<GetCatalogRequest, Catalog> getCatalogSettings() {\n return getCatalogSettings;\n }",
"public interface ChannelFactory<T extends Channel> {\n T newChannel();\n}",
"public UnaryCallSettings.Builder<CreateCatalogRequest, Catalog> createCatalogSettings() {\n return createCatalogSettings;\n }",
"private HttpDataSource.Factory buildHttpDataSourceFactory(DefaultBandwidthMeter bandwidthMeter) {\n return new DefaultHttpDataSourceFactory(userAgent, bandwidthMeter);\n }",
"public interface EtcdKeysEndpointBuilder extends EndpointProducerBuilder {\n default AdvancedEtcdKeysEndpointBuilder advanced() {\n return (AdvancedEtcdKeysEndpointBuilder) this;\n }\n /**\n * To apply an action recursively.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: producer\n * \n * @param recursive the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder recursive(boolean recursive) {\n doSetProperty(\"recursive\", recursive);\n return this;\n }\n /**\n * To apply an action recursively.\n * \n * The option will be converted to a <code>boolean</code>\n * type.\n * \n * Default: false\n * Group: producer\n * \n * @param recursive the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder recursive(String recursive) {\n doSetProperty(\"recursive\", recursive);\n return this;\n }\n /**\n * The path to look for for service discovery.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Default: /services/\n * Group: producer\n * \n * @param servicePath the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder servicePath(String servicePath) {\n doSetProperty(\"servicePath\", servicePath);\n return this;\n }\n /**\n * To set the maximum time an action could take to complete.\n * \n * The option is a: <code>java.lang.Long</code> type.\n * \n * Group: producer\n * \n * @param timeout the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder timeout(Long timeout) {\n doSetProperty(\"timeout\", timeout);\n return this;\n }\n /**\n * To set the maximum time an action could take to complete.\n * \n * The option will be converted to a\n * <code>java.lang.Long</code> type.\n * \n * Group: producer\n * \n * @param timeout the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder timeout(String timeout) {\n doSetProperty(\"timeout\", timeout);\n return this;\n }\n /**\n * To set the URIs the client connects.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Default: http://localhost:2379,http://localhost:4001\n * Group: common\n * \n * @param uris the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder uris(String uris) {\n doSetProperty(\"uris\", uris);\n return this;\n }\n /**\n * Whether the producer should be started lazy (on the first message).\n * By starting lazy you can use this to allow CamelContext and routes to\n * startup in situations where a producer may otherwise fail during\n * starting and cause the route to fail being started. By deferring this\n * startup to be lazy then the startup failure can be handled during\n * routing messages via Camel's routing error handlers. Beware that when\n * the first message is processed then creating and starting the\n * producer may take a little time and prolong the total processing time\n * of the processing.\n * \n * The option is a: <code>boolean</code> type.\n * \n * Default: false\n * Group: producer\n * \n * @param lazyStartProducer the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder lazyStartProducer(\n boolean lazyStartProducer) {\n doSetProperty(\"lazyStartProducer\", lazyStartProducer);\n return this;\n }\n /**\n * Whether the producer should be started lazy (on the first message).\n * By starting lazy you can use this to allow CamelContext and routes to\n * startup in situations where a producer may otherwise fail during\n * starting and cause the route to fail being started. By deferring this\n * startup to be lazy then the startup failure can be handled during\n * routing messages via Camel's routing error handlers. Beware that when\n * the first message is processed then creating and starting the\n * producer may take a little time and prolong the total processing time\n * of the processing.\n * \n * The option will be converted to a <code>boolean</code>\n * type.\n * \n * Default: false\n * Group: producer\n * \n * @param lazyStartProducer the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder lazyStartProducer(\n String lazyStartProducer) {\n doSetProperty(\"lazyStartProducer\", lazyStartProducer);\n return this;\n }\n /**\n * To set the lifespan of a key in milliseconds.\n * \n * The option is a: <code>java.lang.Integer</code> type.\n * \n * Group: producer\n * \n * @param timeToLive the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder timeToLive(Integer timeToLive) {\n doSetProperty(\"timeToLive\", timeToLive);\n return this;\n }\n /**\n * To set the lifespan of a key in milliseconds.\n * \n * The option will be converted to a\n * <code>java.lang.Integer</code> type.\n * \n * Group: producer\n * \n * @param timeToLive the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder timeToLive(String timeToLive) {\n doSetProperty(\"timeToLive\", timeToLive);\n return this;\n }\n /**\n * The password to use for basic authentication.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: security\n * \n * @param password the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder password(String password) {\n doSetProperty(\"password\", password);\n return this;\n }\n /**\n * To configure security using SSLContextParameters.\n * \n * The option is a:\n * <code>org.apache.camel.support.jsse.SSLContextParameters</code> type.\n * \n * Group: security\n * \n * @param sslContextParameters the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder sslContextParameters(\n Object sslContextParameters) {\n doSetProperty(\"sslContextParameters\", sslContextParameters);\n return this;\n }\n /**\n * To configure security using SSLContextParameters.\n * \n * The option will be converted to a\n * <code>org.apache.camel.support.jsse.SSLContextParameters</code> type.\n * \n * Group: security\n * \n * @param sslContextParameters the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder sslContextParameters(\n String sslContextParameters) {\n doSetProperty(\"sslContextParameters\", sslContextParameters);\n return this;\n }\n /**\n * The user name to use for basic authentication.\n * \n * The option is a: <code>java.lang.String</code> type.\n * \n * Group: security\n * \n * @param userName the value to set\n * @return the dsl builder\n */\n default EtcdKeysEndpointBuilder userName(String userName) {\n doSetProperty(\"userName\", userName);\n return this;\n }\n }",
"public ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern build() {\n return new ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern(\"hi\");\n }",
"public interface ChannelGeneratorExtension {\n\n /**\n * Generates a {@link PhysicalChannel} for the channel.\n *\n * @param channel the logical channel to generate\n * @param contributionUri the contribution this channel is being provisioned under. This may be different than the contribution where the channel is\n * defined, e .g. if the channel is provisioned for a producer or consumer in another deployable\n * @return the physical channel definition\n * @throws Fabric3Exception if there is an error generating the channel\n */\n PhysicalChannel generate(LogicalChannel channel, URI contributionUri) throws Fabric3Exception;\n}",
"public Factory() {\n this(getInternalClient());\n }",
"public static ApiRequest.ApiRequestBuilder builder() {\n final ApiRequest.ApiRequestBuilder builder = new ApiRequestBuilderCustom();\n return builder\n .requestStartTime(Instant.now().toEpochMilli())\n .requestId(UUID.randomUUID().toString());\n }"
] | [
"0.68654746",
"0.6740239",
"0.652506",
"0.61222196",
"0.59766525",
"0.597628",
"0.5784879",
"0.574285",
"0.5691427",
"0.5686799",
"0.5677721",
"0.5603327",
"0.55955297",
"0.5592967",
"0.5541249",
"0.54883397",
"0.54505414",
"0.5448973",
"0.54453456",
"0.54361373",
"0.5422098",
"0.5419815",
"0.5400146",
"0.53924936",
"0.5389999",
"0.53809255",
"0.5370993",
"0.53526163",
"0.53390455",
"0.531521",
"0.5284532",
"0.5255824",
"0.5240623",
"0.5227561",
"0.52218527",
"0.52201074",
"0.5218022",
"0.5204144",
"0.5202658",
"0.5192081",
"0.51865846",
"0.51792955",
"0.5177368",
"0.51557404",
"0.5150869",
"0.5145092",
"0.5144682",
"0.51411647",
"0.5136765",
"0.513644",
"0.5135575",
"0.5131567",
"0.5127527",
"0.5117908",
"0.511669",
"0.51136416",
"0.51061076",
"0.51021725",
"0.510073",
"0.5094676",
"0.5079916",
"0.50703096",
"0.5062478",
"0.5050938",
"0.5049385",
"0.50475854",
"0.5040195",
"0.5040195",
"0.5040195",
"0.5038324",
"0.5033224",
"0.50218445",
"0.50203234",
"0.5015543",
"0.50135964",
"0.50028384",
"0.4999739",
"0.4984747",
"0.49691677",
"0.4957149",
"0.49530593",
"0.49523616",
"0.494895",
"0.49445146",
"0.4914709",
"0.49146184",
"0.49029458",
"0.4900551",
"0.48987374",
"0.4896022",
"0.48945785",
"0.4891222",
"0.4887897",
"0.4886926",
"0.48849648",
"0.48839238",
"0.4881802",
"0.48806965",
"0.48708493",
"0.48705658"
] | 0.6291537 | 3 |
Returns a new gRPC builder for this class. | public static Builder newBuilder() {
return Builder.createDefault();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"private GRPCRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"private RpcMessage(Builder builder) {\n super(builder);\n }",
"public static com.autodesk.ws.avro.Call.Builder newBuilder() {\n return new com.autodesk.ws.avro.Call.Builder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.Service.Builder getServiceBuilder() {\n \n onChanged();\n return getServiceFieldBuilder().getBuilder();\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ProtobufSchema.Builder\n getProtobufBuilder() {\n return getProtobufFieldBuilder().getBuilder();\n }",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"private knock_rs(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"private Service(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Package(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return InstantiatingGrpcChannelProvider.newBuilder()\n .setMaxInboundMessageSize(Integer.MAX_VALUE);\n }",
"public static Builder builder(){ return new Builder(); }",
"private RpcMetadata(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private CombatProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();\n }",
"private BaseResponse(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public static ProxyBuilder getBuilder() {\r\n\t\tClassProxyBuilder builder = new ClassProxyBuilder();\r\n\t\treturn builder;\r\n\t}",
"public com.clarifai.grpc.api.Operation.Builder getOperationBuilder() {\n \n onChanged();\n return getOperationFieldBuilder().getBuilder();\n }",
"private Basis(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private DnsServiceProtocol(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"private Instance(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public CloudSdk.Builder newBuilder() {\n return new CloudSdk.Builder()\n .sdkPath(cloudSdkHome != null ? cloudSdkHome.toPath() : null)\n .exitListener(new NonZeroExceptionExitListener())\n .appCommandMetricsEnvironment(getClass().getPackage().getImplementationTitle())\n .appCommandMetricsEnvironmentVersion(getClass().getPackage().getImplementationVersion());\n }",
"private ProtocolMessage(Builder builder) {\n super(builder);\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}",
"private Builder() {}",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Response(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Builder() {\n\t\t}",
"private Message(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"public com.google.cloud.datacatalog.v1.PhysicalSchema.ThriftSchema.Builder getThriftBuilder() {\n return getThriftFieldBuilder().getBuilder();\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"public Builder() { }",
"private flight(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Request(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"private C(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"private Builder builder() {\n\n\t\tif (!(message instanceof Builder)) {\n\t\t\tthrow new IllegalStateException(\"Message is not a builder\");\n\t\t}\n\n\t\treturn (Builder) message;\n\n\t}",
"public static FxForwardTrade.Builder builder() {\n return new FxForwardTrade.Builder();\n }",
"public static Builder builder() {\n return new Report.Builder();\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }"
] | [
"0.70312643",
"0.70312643",
"0.70312643",
"0.70312643",
"0.6872343",
"0.67416406",
"0.66941607",
"0.66317827",
"0.66317827",
"0.66317827",
"0.6595073",
"0.65859413",
"0.65859413",
"0.65859413",
"0.65859413",
"0.6568152",
"0.6565212",
"0.6543041",
"0.6543041",
"0.6543041",
"0.6497636",
"0.6497636",
"0.6497636",
"0.6497636",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64893746",
"0.64500284",
"0.64404804",
"0.6439808",
"0.6439808",
"0.6439808",
"0.6432477",
"0.643132",
"0.6429409",
"0.63930655",
"0.63930655",
"0.63922465",
"0.6379748",
"0.6371955",
"0.6344341",
"0.6328509",
"0.63238865",
"0.6266683",
"0.6262241",
"0.62269425",
"0.62260413",
"0.61698157",
"0.61682117",
"0.6164069",
"0.6163261",
"0.6163261",
"0.6163261",
"0.6161599",
"0.6161204",
"0.61326444",
"0.61279106",
"0.6117283",
"0.611083",
"0.61051166",
"0.61051166",
"0.61051166",
"0.61051166",
"0.61051166",
"0.61051166",
"0.61051166",
"0.6103617",
"0.6103617",
"0.6103617",
"0.6103617",
"0.6103617",
"0.6103617",
"0.6103617",
"0.6100527",
"0.6091348",
"0.6086043",
"0.60833657",
"0.60833657",
"0.60820574",
"0.6047617",
"0.60404193",
"0.60404193",
"0.60404193",
"0.60404193",
"0.6036324",
"0.6036324",
"0.6031812",
"0.602855",
"0.60281026",
"0.6025586",
"0.6009594"
] | 0.65777 | 16 |
Returns a new REST builder for this class. | @BetaApi
public static Builder newHttpJsonBuilder() {
return Builder.createHttpJsonDefault();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Builder newHttpJsonBuilder() {\n return Builder.createHttpJsonDefault();\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"RestClientBuilder(){\n\n }",
"RESTElement createRESTElement();",
"SourceBuilder createRestController();",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"interface Builder {\n /**\n * Add all the routes from the given route configuration object. This method can be called\n * multiple times on a builder. This method is currently one of the few methods where runtime\n * exceptions can occur during Lighter configuration. If the added RouteConfiguration instance\n * contains routes that already exist, this method may throw a {@link IllegalArgumentException}\n * @param configuration The route configuration to add\n * @return self\n */\n Builder addRouter(RouteConfiguration configuration);\n\n /**\n * Add an injection factory representing the application's dependency injection solution. This method\n * should only be called once.\n * @param factory the factory to add\n * @return self\n */\n Builder injectionFactory(InjectionObjectFactory factory);\n\n /**\n * Add a type adaptor factory for serialization and deserialization of data to Java objects. The factory\n * added must be sufficient for all types and media types the application requires. This method should\n * only be called once.\n * @param factory the factory to add\n * @return self\n */\n Builder adapterFactory(TypeAdapterFactory factory);\n\n /**\n * Set the port for the server to bind to.\n * @param port the port\n * @return self\n */\n Builder port(int port);\n\n /**\n * Set the host name for the server to bind to\n * @param hostName the host name\n * @return self\n */\n Builder hostName(String hostName);\n\n /**\n * Show the lighter startup banner. By default, the banner is shown.\n * @param show true to show the banner, false to hide it\n * @return self\n */\n Builder showBanner(boolean show);\n\n /**\n * Add a response transformer that will run for EVERY response generated by lighter. This method\n * can be called multiple times to add multiple transformers. Transformers <strong>are not</strong>\n * guaranteed to run in any order.\n * @param transformer the transformer to be used on responses\n * @return self\n */\n Builder addResponseTransformer(GlobalRequestTransformer transformer);\n\n /**\n * Construct a Lighter instance using the configuration from this builder\n * @return a new Lighter instance\n */\n Lighter build();\n }",
"public static ApiRequest.ApiRequestBuilder builder() {\n final ApiRequest.ApiRequestBuilder builder = new ApiRequestBuilderCustom();\n return builder\n .requestStartTime(Instant.now().toEpochMilli())\n .requestId(UUID.randomUUID().toString());\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static ApiREST api(){\n\n RestAdapter restAdapter = new RestAdapter.Builder()\n .setEndpoint(CONFIG_BASE_DOMAIN)\n //.setLogLevel(RestAdapter.LogLevel.FULL)\n .build();\n ApiREST apiRest = restAdapter.create(ApiREST.class);\n return apiRest;\n }",
"static Builder builder() {\n return new Builder();\n }",
"public Resource2Builder but() {\n return (Resource2Builder)clone();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }",
"public static Builder builder(){ return new Builder(); }",
"public Request<E, T> buildHttpGet ()\n\t{\n\t\treturn new HttpGetRequest<E,T>(this);\n\t}",
"public RgwAdmin build() {\n if (Stream.of(accessKey, secretKey, endpoint).anyMatch(Strings::isNullOrEmpty)) {\n throw new IllegalArgumentException(\"Missing required parameter to build the instance.\");\n }\n return new RgwAdminImpl(accessKey, secretKey, endpoint);\n }",
"public MessageRest() {\n client = javax.ws.rs.client.ClientBuilder.newClient();\n webTarget = client.target(BASE_URI).path(\"MessageResources\");\n }",
"public RestClient(){\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public interface LocationApi {\n\n @GET(\"/json/\")\n Call<Location> getLoc();\n\n class Builder extends ApiBuilder<LocationApi> {\n\n public LocationApi build() {\n return build(LocationApi.class);\n }\n\n }\n}",
"public static OperationResponse builder() {\n\t\treturn new OperationResponse();\n\t}",
"public Builder(){\n }",
"private Builder() {}",
"public RequestDataBuilder get() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.GET);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public JSONBuilder() {\n\t\tthis(null, null);\n\t}",
"public WebResource.Builder getClientBuilder() {\n return getClientBuilder(\"\");\n }",
"ResourceAPI createResourceAPI();",
"RestApplicationModel createRestApplicationModel();",
"public Builder() { }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"private Builder() {\n\t\t}",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"private RestRequest createRestRequest(final Client jerseyClient) {\n String uri = getServiceEndpointAddress();\n WebResource webResource = buildWebResource(jerseyClient, uri);\n return new RestRequest(webResource);\n }",
"@Override\n protected RoutesBuilder createRouteBuilder() throws Exception {\n // override this method and provide our RouteBuilder class\n return new RestDslRouteBuilder();\n }",
"public Builder() {\n\t\t}",
"static Http2ClientBuilder builder() {\n return new Http2ClientBuilder();\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public static BitmovinApiBuilder<GenericS3Api> builder() {\n return new BitmovinApiBuilder<>(GenericS3Api.class);\n }",
"public static abstract interface Builder\n/* */ {\n/* */ public abstract Builder paths(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder methods(RequestMethod... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder params(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder headers(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder consumes(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder produces(String... paramVarArgs);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder mappingName(String paramString);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder customCondition(RequestCondition<?> paramRequestCondition);\n/* */ \n/* */ \n/* */ \n/* */ public abstract Builder options(RequestMappingInfo.BuilderConfiguration paramBuilderConfiguration);\n/* */ \n/* */ \n/* */ \n/* */ public abstract RequestMappingInfo build();\n/* */ }",
"public static LinkBuilder builder() {\n return new LinkBuilder();\n }",
"RequestBuilder setBody(Resource resource);",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"private Builder() {\n super(SCHEMA$);\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public com.example.products.ProductsRS.Builder getProductsRSBuilder() {\n \n onChanged();\n return getProductsRSFieldBuilder().getBuilder();\n }",
"public static APIRetrofit build() {\n final Retrofit retrofit = new Retrofit.Builder()\n .baseUrl(BASE_URL)\n .addConverterFactory(GsonConverterFactory.create())\n .addCallAdapterFactory(RxJava2CallAdapterFactory.create())\n .build();\n TrafficStats.setThreadStatsTag(0x1000);\n return retrofit.create(APIRetrofit.class);\n }",
"public interface ViewRequestBuilder<R extends ViewRequest<S>, S extends Serializable, B extends ViewRequestBuilder<R, S, B>>\n extends RequestObjectBuilder<ViewRequest<S>, ViewRequestBuilder<?, S, ?>> {\n /**\n * Sets the document reference\n *\n * @param documentReference The document reference\n * @return the builder (for chaining)\n */\n B documentReference(String documentReference);\n\n /**\n * Sets the database or index containing the document\n *\n * @param database The database or index containing the document\n * @return the builder (for chaining)\n */\n B database(S database);\n\n /**\n * Sets the text to highlight in the document\n *\n * @param highlightExpression Text to highlight in the document\n * @return the builder (for chaining)\n */\n B highlightExpression(String highlightExpression);\n\n /**\n * @param original Whether to retrieve the original file, without converting to HTML.\n * @return the builder (for chaining)\n */\n B original(boolean original);\n\n /**\n * {@inheritDoc}\n */\n @Override\n R build();\n}",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public WebResource.Builder getClientBuilder(String uri) {\n Client client = Client.create();\n client.addFilter(new HTTPBasicAuthFilter(AUTH_USER, AUTH_PASS));\n WebResource resource = client.resource(baseUrl() + uri);\n log.info(\"XOS REST CALL>> {}\", resource);\n return resource.accept(UTF_8).type(UTF_8);\n }"
] | [
"0.64078236",
"0.636161",
"0.63031363",
"0.6251662",
"0.62214106",
"0.6044236",
"0.6012347",
"0.6012347",
"0.6012347",
"0.6012347",
"0.5986343",
"0.59823984",
"0.59722507",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.59469396",
"0.5936328",
"0.5936328",
"0.5936328",
"0.5934612",
"0.5926336",
"0.59057844",
"0.58874905",
"0.58874905",
"0.58874905",
"0.58874905",
"0.58874905",
"0.58874905",
"0.58874905",
"0.58874077",
"0.5875689",
"0.5866434",
"0.5855733",
"0.57893807",
"0.5789116",
"0.57664156",
"0.5766302",
"0.5766302",
"0.57628655",
"0.57628655",
"0.57628655",
"0.5721126",
"0.5715034",
"0.5712369",
"0.5711952",
"0.57065403",
"0.57062024",
"0.5689731",
"0.5676404",
"0.5652612",
"0.564702",
"0.56326056",
"0.56305957",
"0.5595274",
"0.5585259",
"0.5580236",
"0.55713147",
"0.5566814",
"0.5551668",
"0.5551668",
"0.55481577",
"0.5521874",
"0.5513794",
"0.55115795",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.5509427",
"0.55014265",
"0.55014265",
"0.54990834",
"0.54953194",
"0.5475372",
"0.54739815",
"0.54717416",
"0.54693025",
"0.5466051"
] | 0.0 | -1 |
Returns a new builder for this class. | public static Builder newBuilder(ClientContext clientContext) {
return new Builder(clientContext);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder builder(){ return new Builder(); }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public Builder() { }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"public Builder() {\n\t\t}",
"public Builder(){\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"private Builder() {}",
"private Builder() {\n\t\t}",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public static LinkBuilder builder() {\n return new LinkBuilder();\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"public static JSONBuilder newInstance(){\n return new JSONBuilder();\n }",
"public static ComputerBuilder getBuilder() {\n return new ComputerBuilder();\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Builder builder() {\n return new Report.Builder();\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public static GoldenCopy.Builder builder() {\n return new GoldenCopy.Builder();\n }",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"private Builder()\n {\n }",
"public static DataModelBuilder create() {\n return new DataModelBuilder();\n }",
"protected ClassBuilder getBuilder() {\n return m_classBuilder;\n }",
"public static MappableBuilder createMappableBuilder()\r\n {\r\n\r\n return new MappableBuilder( createMappableBuilderFactory() );\r\n }",
"public static ApiRequest.ApiRequestBuilder builder() {\n final ApiRequest.ApiRequestBuilder builder = new ApiRequestBuilderCustom();\n return builder\n .requestStartTime(Instant.now().toEpochMilli())\n .requestId(UUID.randomUUID().toString());\n }",
"public static ProxyBuilder getBuilder() {\r\n\t\tClassProxyBuilder builder = new ClassProxyBuilder();\r\n\t\treturn builder;\r\n\t}",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"private Builder builder() {\n\n\t\tif (!(message instanceof Builder)) {\n\t\t\tthrow new IllegalStateException(\"Message is not a builder\");\n\t\t}\n\n\t\treturn (Builder) message;\n\n\t}",
"public static MPOpenAPIBuilder builder() {\n return new MPOpenAPIBuilder();\n }",
"public static HandlerBuilder newHandlerBuilder() {\n return new HandlerBuilder();\n }",
"public Builder getThis() { return this; }",
"public static FXMLLoaderBuilder builder() {\n return new FXMLLoaderBuilder();\n }",
"public static DeviceIdentifierBuilder builder() {\n return new DeviceIdentifierBuilder();\n }",
"public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public static Builder newBuilder(Builder other) {\n return new Builder(other);\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern build() {\n return new ImmutableByHavingOnlyAPrivateConstructorUsingTheBuilderPattern(\"hi\");\n }",
"public io.grafeas.v1.Metadata.Builder getMetadataBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getMetadataFieldBuilder().getBuilder();\n }",
"java.lang.String getBuilder();",
"public org.apache.drill.exec.proto.UserBitShared.RecordBatchDef.Builder getDefBuilder() {\n bitField0_ |= 0x00000020;\n onChanged();\n return getDefFieldBuilder().getBuilder();\n }",
"public XULTemplateBuilder getBuilder() //readonly\n\t{\n\t\tif(xulTemplateBuilder == null && getDatabase() != null) {\n\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\txulTemplateBuilder = new XULTemplateBuilderImpl(rdfService, this);\n\t\t}\n\t\treturn xulTemplateBuilder;\n\t}",
"public Builder()\n {\n this(\"\", \"\");\n }",
"public Person build(){\n return new Person(this);\n }",
"public Builder() {\n this(Graphs.<N, E>createUndirected());\n }",
"private Builder() {\n super(SCHEMA$);\n }"
] | [
"0.8275145",
"0.8275145",
"0.8275145",
"0.8275145",
"0.82421917",
"0.82421917",
"0.82421917",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.82274806",
"0.81239426",
"0.8064605",
"0.80084157",
"0.80084157",
"0.79786",
"0.79452825",
"0.79452825",
"0.79452825",
"0.79452825",
"0.79452825",
"0.79452825",
"0.79452825",
"0.77794236",
"0.77794236",
"0.77794236",
"0.77794236",
"0.7755916",
"0.7740778",
"0.7740778",
"0.7740778",
"0.7714941",
"0.76635915",
"0.7625537",
"0.75930244",
"0.75703126",
"0.75703126",
"0.75532335",
"0.7541536",
"0.7541536",
"0.7541536",
"0.7444705",
"0.7408972",
"0.7353304",
"0.7338548",
"0.7329771",
"0.7284803",
"0.72836787",
"0.72495717",
"0.72119224",
"0.72119224",
"0.72119224",
"0.72119224",
"0.7211907",
"0.7210213",
"0.7210213",
"0.72057253",
"0.7181318",
"0.7175561",
"0.70931596",
"0.70931596",
"0.70779854",
"0.7076574",
"0.7070387",
"0.696677",
"0.6924305",
"0.6914683",
"0.6913231",
"0.6886243",
"0.6864674",
"0.6858689",
"0.68492806",
"0.6837545",
"0.6813949",
"0.6780632",
"0.67780745",
"0.67338926",
"0.67297816",
"0.6707675",
"0.6684072",
"0.6665179",
"0.6628473",
"0.6613617",
"0.6613617",
"0.6591204",
"0.6584233",
"0.6567447",
"0.6541237",
"0.65321827",
"0.65042055",
"0.65025574",
"0.65003616",
"0.64825064",
"0.6481445"
] | 0.0 | -1 |
Returns a builder containing all the values of this settings class. | public Builder toBuilder() {
return new Builder(this);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder(){ return new Builder(); }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public OptionsBuilder optionsBuilder() {\n OptionsBuilder builder = new OptionsBuilder();\n\n builder.forks(forks);\n builder.warmupIterations(warmupIterations);\n builder.measurementIterations(measurementIterations);\n builder.timeUnit(outputTimeUnit);\n builder.threads(threads);\n\n if (benchmarkModes != null) {\n for (Mode benchmarkMode : benchmarkModes)\n builder.getBenchModes().add(benchmarkMode);\n }\n\n if (benchmarks != null) {\n for (Object benchmark : benchmarks) {\n if (benchmark instanceof Class)\n builder.include(((Class)benchmark).getSimpleName());\n else\n builder.include(benchmark.toString());\n }\n }\n\n if (jvmArgs != null)\n builder.jvmArgs(jvmArgs);\n\n if (output != null)\n builder.output(output);\n\n if (profilers != null) {\n for (Class profiler : profilers)\n builder.addProfiler(profiler);\n }\n\n return builder;\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public static Value.Builder newBuilder() {\n return new Value.Builder();\n }",
"public io.dstore.values.BooleanValue.Builder getPredefinedValuesBuilder() {\n \n onChanged();\n return getPredefinedValuesFieldBuilder().getBuilder();\n }",
"public Builder() {\n\t\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public Settings() {\r\n\t\tthis.settings = new HashMap<String, Object>();\r\n\t\tloadDefaults();\r\n\t}",
"public Builder(){\n }",
"public Builder() { }",
"private SettingsRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"private Builder() {\n\t\t}",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public Builder() {\n\t\t\tsuper(Defaults.NAME);\n\t\t}",
"public IotdmSimpleConfig build() {\n return new IotdmSimpleConfig(this.builder.build());\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public Builder() {\n }",
"public Builder() {\n }",
"private Builder() {}",
"public HandlerBuilder but() {\n HandlerBuilder _builder = newHandlerBuilder();\n _builder.m_featureAnySet = m_featureAnySet;\n _builder.m_any = m_any;\n _builder.m_featureCanReadSet = m_featureCanReadSet;\n _builder.m_canRead = m_canRead;\n _builder.m_featureCanWriteSet = m_featureCanWriteSet;\n _builder.m_canWrite = m_canWrite;\n _builder.m_featureChangedSet = m_featureChangedSet;\n _builder.m_changed = m_changed;\n _builder.m_featureMixedSet = m_featureMixedSet;\n _builder.m_mixed = m_mixed;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n _builder.m_featureTimestampSet = m_featureTimestampSet;\n _builder.m_timestamp = m_timestamp;\n _builder.m_featureValueSet = m_featureValueSet;\n _builder.m_value = m_value;\n return _builder;\n }",
"public ParametersBuilder() {\n this(Parameters.DEFAULT);\n }",
"private Builder() {\n }",
"private Builder() {\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public Builder() {\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public QueryOptions build() {\n return new QueryOptions(this.columns, this.excludeColumns, this.excludeAttributes, this.shards);\n }",
"public Settings(){}",
"public static ProductBuilder builder() {\n return ProductBuilder.of();\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}",
"public static Builder builder() {\n return new Report.Builder();\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public build.buf.validate.conformance.cases.MessageNone.NoneMsg.Builder getValBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getValFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.LogsOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"private BattlePartySettingsProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"@Nonnull\n public static InfluxDBClientOptions.Builder builder() {\n return new InfluxDBClientOptions.Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"@MavlinkMessageBuilder\n public static Builder builder() {\n return new Builder();\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"public trinsic.services.common.v1.CommonOuterClass.JsonPayload.Builder getAttributesBuilder() {\n \n onChanged();\n return getAttributesFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public io.grafeas.v1.Metadata.Builder getMetadataBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getMetadataFieldBuilder().getBuilder();\n }",
"public JsonObject build() {\n JsonObject object = new JsonObject();\n\n for (Map.Entry<String, Object> entry : values.entrySet()) {\n object.put(entry.getKey(), entry.getValue());\n }\n\n return object;\n }",
"public go.micro.runtime.RuntimeOuterClass.ListOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public com.google.protobuf.Value.Builder getDefaultValueBuilder() {\n bitField0_ |= 0x00000020;\n onChanged();\n return getDefaultValueFieldBuilder().getBuilder();\n }",
"public kvClient.pb.KeyValue.Builder getKvBuilder() {\n return getKvFieldBuilder().getBuilder();\n }",
"public static baconhep.TTau.Builder newBuilder() {\n return new baconhep.TTau.Builder();\n }"
] | [
"0.720363",
"0.7059011",
"0.6967154",
"0.6967154",
"0.6967154",
"0.6967154",
"0.6910475",
"0.69048744",
"0.68553716",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6804492",
"0.6759162",
"0.6756266",
"0.6675574",
"0.6675574",
"0.6675574",
"0.6663028",
"0.6586347",
"0.6576596",
"0.6576596",
"0.6576596",
"0.6576596",
"0.6555238",
"0.6434543",
"0.6434543",
"0.6434543",
"0.6419114",
"0.63731736",
"0.63731736",
"0.63720644",
"0.6336044",
"0.6304449",
"0.62811375",
"0.61785215",
"0.61589164",
"0.613419",
"0.613419",
"0.6112739",
"0.6105954",
"0.6051698",
"0.6051668",
"0.60361284",
"0.60361284",
"0.60361284",
"0.6032721",
"0.6023004",
"0.6020289",
"0.6010086",
"0.60085875",
"0.5992561",
"0.5992561",
"0.59768844",
"0.59467584",
"0.5919752",
"0.58853835",
"0.58853835",
"0.58679104",
"0.5864597",
"0.5864019",
"0.5854286",
"0.5852793",
"0.58474815",
"0.58271843",
"0.58258945",
"0.5809253",
"0.58080554",
"0.57953155",
"0.5789904",
"0.5781834",
"0.5777216",
"0.57688624",
"0.57688624",
"0.5752488",
"0.5752488",
"0.5752488",
"0.5752488",
"0.5750688",
"0.57332057",
"0.5725531",
"0.5723092",
"0.57062525",
"0.5705313",
"0.5701999",
"0.5677199",
"0.5668284"
] | 0.6386135 | 40 |
Applies the given settings updater function to all of the unary API methods in this service. Note: This method does not support applying settings to streaming methods. | public Builder applyToAllUnaryMethods(
ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {
super.applyToAllUnaryMethods(
getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater);
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Builder applyToAllUnaryMethods(\n ApiFunction<UnaryCallSettings.Builder<?, ?>, Void> settingsUpdater) {\n super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater);\n return this;\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings<UpdateTableRequest, Table> updateTableSettings() {\n return updateTableSettings;\n }",
"public UnaryCallSettings.Builder<UpdateTableRequest, Table> updateTableSettings() {\n return updateTableSettings;\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public void setAllUpdateFlags() {\n\t}",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"private void updateRunninigWiFiSettings() {\n\t\tlogger.info(\"Going to fetch WIFI settings..\");\n\t\tfor(WiFiSettings updWiFiSetting: updatedConfig.getWifiSettings()) {\n\t\t\t\n\t\t\t//runningWifiSetting = DeviceConfigurationAPI.getListItem(wifiSettingsList, Integer.valueOf(updWiFiSetting.getIndex()));\n\t\t\tpopulateWiFI( updWiFiSetting);\n\t\t\tNetworkSettings nws = updWiFiSetting.getNetworkSettings();\n\t\t\tif(nws != null) {\n\t\t\t\t\n\t\t\t\tpopulateNetwork(nws);\n\t\t\t}\n\t\t\t\n\t\t\t//int index = wifiSettingsList.indexOf(runningWifiSetting);\n\t\t\t\n\t\t}\n\t\t\n\t}",
"public UnaryCallSettings<UpdateDatabaseRequest, Database> updateDatabaseSettings() {\n return updateDatabaseSettings;\n }",
"private void updateRpcGeneric(String methodName, CallStats stats) {\n getMetric(DRTN_BASE + methodName, rpcTimers, timerFactory).update(stats.getCallTimeMs(),\n TimeUnit.MILLISECONDS);\n getMetric(REQ_BASE + methodName, rpcHistograms, histogramFactory)\n .update(stats.getRequestSizeBytes());\n getMetric(RESP_BASE + methodName, rpcHistograms, histogramFactory)\n .update(stats.getResponseSizeBytes());\n }",
"public void applyWebProxySettings() {\n boolean settingsChanged = false;\n boolean enablingProxy = false;\n Properties sysprops = System.getProperties();\n if (proxyHost != null) {\n settingsChanged = true;\n if (proxyHost.length() != 0) {\n traceSettingInfo();\n enablingProxy = true;\n sysprops.put(\"http.proxyHost\", proxyHost);\n String portString = Integer.toString(proxyPort);\n sysprops.put(\"http.proxyPort\", portString);\n sysprops.put(\"https.proxyHost\", proxyHost);\n sysprops.put(\"https.proxyPort\", portString);\n sysprops.put(\"ftp.proxyHost\", proxyHost);\n sysprops.put(\"ftp.proxyPort\", portString);\n if (nonProxyHosts != null) {\n sysprops.put(\"http.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"https.nonProxyHosts\", nonProxyHosts);\n sysprops.put(\"ftp.nonProxyHosts\", nonProxyHosts);\n }\n if(proxyUser!=null) {\n sysprops.put(\"http.proxyUser\", proxyUser);\n sysprops.put(\"http.proxyPassword\", proxyPassword);\n }\n } else {\n log(\"resetting http proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"http.proxyHost\");\n sysprops.remove(\"http.proxyPort\");\n sysprops.remove(\"http.proxyUser\");\n sysprops.remove(\"http.proxyPassword\");\n sysprops.remove(\"https.proxyHost\");\n sysprops.remove(\"https.proxyPort\");\n sysprops.remove(\"ftp.proxyHost\");\n sysprops.remove(\"ftp.proxyPort\");\n }\n }\n\n //socks\n if (socksProxyHost != null) {\n settingsChanged = true;\n if (socksProxyHost.length() != 0) {\n enablingProxy = true;\n sysprops.put(\"socksProxyHost\", socksProxyHost);\n sysprops.put(\"socksProxyPort\", Integer.toString(socksProxyPort));\n if (proxyUser != null) {\n //this may be a java1.4 thingy only\n sysprops.put(\"java.net.socks.username\", proxyUser);\n sysprops.put(\"java.net.socks.password\", proxyPassword);\n }\n\n } else {\n log(\"resetting socks proxy\", Project.MSG_VERBOSE);\n sysprops.remove(\"socksProxyHost\");\n sysprops.remove(\"socksProxyPort\");\n sysprops.remove(\"java.net.socks.username\");\n sysprops.remove(\"java.net.socks.password\");\n }\n }\n\n\n //for Java1.1 we need to tell the system that the settings are new\n if (settingsChanged &&\n JavaEnvUtils.isJavaVersion(JavaEnvUtils.JAVA_1_1)) {\n legacyResetProxySettingsCall(enablingProxy);\n }\n }",
"@Override\n public void updateSettings(final RecognitionSettingsImpl settings) {\n Platform.runLater(() -> {\n this.udpateRateCombo.getSelectionModel().select(settings.getUpdateRate());\n this.sliderRadius.setValue(settings.getDtwRadius() * 10);\n this.sliderMinThreshold.setValue(settings.getMinDtwThreashold());\n this.sliderMaxThreshold.setValue(settings.getMaxDTWThreashold());\n this.sliderTimeSeparation.setValue(settings.getMinTimeSeparation());\n this.sliderMatchNumber.setValue(settings.getMatchNumber());\n });\n }",
"private void processSetting(Setting setting) {\r\n // Get all of the methods to be called by this setting as strings\r\n ArrayList<String> methods = setting.getSettingMethods();\r\n \r\n // Set each method into an array to be run using the mapMethodSetting\r\n for (String methodName : methods) {\r\n try {\r\n // Get the specific method to run from this class \r\n Method method = GameManager.class.getMethod(methodName, \r\n this.methodMapSetting.get(methodName));\r\n \r\n // Set an array to hold the arguments for this \r\n Object[] arguments = \r\n new Object[method.getParameterTypes().length];\r\n \r\n // Loop through the values and add them to the arguments list\r\n for (int i = 0; i < arguments.length; i++) {\r\n arguments[i] = setting.getNextSettingValue();\r\n }\r\n \r\n // Invoke the method with the arguments array\r\n method.invoke(this, arguments);\r\n }\r\n catch (NoSuchMethodException|IllegalAccessException|\r\n InvocationTargetException e) {\r\n System.out.println(e.getCause());\r\n }\r\n }\r\n }",
"void updateMethod(Method method);",
"public void disableImplementationUpdates()\n {\n disableUpdates = true;\n }",
"public Builder clearSettingsUpdateIntervalInSec() {\n \n settingsUpdateIntervalInSec_ = 0L;\n onChanged();\n return this;\n }",
"public static void updateActions() {\n\t\tjEdit.removeActionSet(apiCommands);\r\n\t\tapiCommands.removeAllActions();\r\n\t\tStringTokenizer tokenizer = new StringTokenizer(\r\n\t\t\tjEdit.getProperty(\"options.javadoc.path\", \"\"), File.pathSeparator);\r\n\t\twhile (tokenizer.hasMoreTokens()) {\r\n\t\t\tString token = tokenizer.nextToken();\r\n\t\t\ttry {\r\n\t\t\t\tapiCommands.addAction(ApiAction.create(token));\r\n\t\t\t} catch (IllegalArgumentException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\tjEdit.addActionSet(apiCommands);\r\n\t}",
"public void apply() {\n // apply general settings\n if (generalModeKeepRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.KEEP);\n } else if (generalModeUpdateRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.UPDATE);\n } else if (generalModeReplaceRadioButton.isSelected()) {\n settings.getGeneralSettings().setMode(Mode.REPLACE);\n }\n\n settings.getGeneralSettings().getLevels().clear();\n if (generalLevelTypeCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.TYPE);\n }\n if (generalLevelMethodCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.METHOD);\n }\n if (generalLevelFieldCheckbox.isSelected()) {\n settings.getGeneralSettings().getLevels().add(Level.FIELD);\n }\n\n settings.getGeneralSettings().getVisibilities().clear();\n if (generalVisibilityPublicCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PUBLIC);\n }\n if (generalVisibilityProtectedCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PROTECTED);\n }\n if (generalVisibilityDefaultCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.DEFAULT);\n }\n if (generalVisibilityPrivateCheckbox.isSelected()) {\n settings.getGeneralSettings().getVisibilities().add(Visibility.PRIVATE);\n }\n\n settings.getGeneralSettings().setOverriddenMethods(generalOtherOverriddenMethodsCheckbox.isSelected());\n settings.getGeneralSettings().setSplittedClassName(generalOtherSplittedClassName.isSelected());\n\n // apply templates settings\n settings.getTemplateSettings().setClassTemplates(classTemplatesTable.getSettings());\n settings.getTemplateSettings().setConstructorTemplates(constructorTemplatesTable.getSettings());\n settings.getTemplateSettings().setMethodTemplates(methodTemplatesTable.getSettings());\n settings.getTemplateSettings().setFieldTemplates(fieldTemplatesTable.getSettings());\n }",
"public void performAdditionalUpdates() {\n\t\t// Default: do nothing - subclasses should override if needed\n\t}",
"public void refresh() {\n if (!postLoaderMethodList.interpretAsGlobalPosts()) {\n refreshWithHidePublicUpdate();\n } else {\n refreshNoHidePublicUpdate();\n }\n }",
"void patch(final MailboxUsageMailboxCounts sourceMailboxUsageMailboxCounts, final ICallback<? super MailboxUsageMailboxCounts> callback);",
"private void updateNotificationStatus(final boolean isNotificationOn) {\n showProgressDialog();\n IApiClient client = ApiClient.getApiClient();\n Call<ResUpdateProfile> resUpdateProfileCall = client.updateSettingsWithoutImage(RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), MethodFactory.UPDATE_SETTINGS.getMethod()),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), mAppSharedPreference.getString(PreferenceKeys.KEY_SERVICE_KEY, ServiceConstants.SERVICE_KEY)),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), mAppSharedPreference.getString(PreferenceKeys.KEY_USER_ID, \"\")),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), \"\"),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), isNotificationOn ? \"1\" : \"0\"),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), \"\"),\n RequestBody.create(MediaType.parse(ServiceConstants.TYPE_MULTIPART), \"\"));\n resUpdateProfileCall.enqueue(new Callback<ResUpdateProfile>() {\n @Override\n public void onResponse(Call<ResUpdateProfile> call, Response<ResUpdateProfile> response) {\n dismissProgressDialog();\n ResUpdateProfile resUpdateProfile = response.body();\n if (resUpdateProfile != null) {\n if (resUpdateProfile.getSuccess() == ServiceConstants.SUCCESS) {\n mAppSharedPreference.setBoolean(PreferenceKeys.KEY_NOTIFICATION_ON, isNotificationOn);\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, resUpdateProfile.getErrstr());\n }\n } else {\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n }\n\n @Override\n public void onFailure(Call<ResUpdateProfile> call, Throwable t) {\n dismissProgressDialog();\n ToastUtils.showShortToast(SettingsActivity.this, R.string.err_network_connection);\n }\n });\n }",
"public void resetAllOperations() {\n\t\t/*\n\t\t * Check to see if we are in any countdown modes\n\t\t */\n\t\tif(inCountdown1Mode) {\n\t\t\twarmUpWindow1.dismiss();\n\t\t}\t\t\n\t\tif(inBaselineMode) {\n\t\t\tbaselineWindow.dismiss();\n\t\t}\n\t\t\n\t\t/**\n\t\t * Turn off any red leds\n\t\t */\n\t\tledOn1.setVisibility(View.INVISIBLE);\n\t\tledOn2.setVisibility(View.INVISIBLE);\n\t\tledOn3.setVisibility(View.INVISIBLE);\n\t\tledOn4.setVisibility(View.INVISIBLE);\n\t\tledOn5.setVisibility(View.INVISIBLE);\n\t\tledOn6.setVisibility(View.INVISIBLE);\n\t\tledOn7.setVisibility(View.INVISIBLE);\n\t\tledOn8.setVisibility(View.INVISIBLE);\n\t\tledOn9.setVisibility(View.INVISIBLE);\n\t\t\n\t\t/*\n\t\t * Reset any program flow variables\n\t\t */\n\t\tinCountdown1Mode = false;\n\t\tinBaselineMode = false;\n\t\ton = false;\n\t\tmodeChange = false;\n\t\twarmedUp = false;\n\t\t\n\t\t/*\n\t\t * Reset counts\n\t\t */\n\t\tcountdown1 = WARMUP_COUNT;\n\t\tcountdown2 = BASELINE_COUNT;\n\t\ttvUpdate(tvSensorValue, \"--\");\n\t\t\n\t\tcountdown1Handler.removeCallbacksAndMessages(null);\n\t\tcountdown2Handler.removeCallbacksAndMessages(null);\n\t\tmodeHandler.removeCallbacksAndMessages(null);\n\t\ttickHandler.removeCallbacksAndMessages(null);\n\t\tsetLEDsHandler.removeCallbacksAndMessages(null);\n\t\t\n\t\t// Stop taking measurements\n\t\tstreamer.disable();\n\t\t// Disable the sensor\n\t\tdroneApp.myDrone.quickDisable(qsSensor);\n\t}",
"private Settings enrichWithOfflineMode(Settings settings) {\n\n String goOffline = SecurityActions.getProperty(ALT_MAVEN_OFFLINE);\n if (goOffline != null && goOffline.length() > 0) {\n settings.setOffline(Boolean.valueOf(goOffline));\n }\n\n return settings;\n }",
"public Gateway setFns(java.lang.String fns) {\n return genClient.setOther(fns, CacheKey.fns);\n }",
"@Override\n public RespResult<Integer> batchExecuteUpdateNoBlocking(String username, String system, List<SqlExecReqDto> updates) {\n return RespResult.buildSuccessWithData(0);\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"private void updateAll() {\n updateAction();\n updateQueryViews();\n }",
"public UnaryCallSettings.Builder<UpdateDatabaseRequest, Database> updateDatabaseSettings() {\n return updateDatabaseSettings;\n }",
"default DictionaryResponse setDictionarySettings(@Nonnull DictionarySettings dictionarySettings) {\n return setDictionarySettings(dictionarySettings, null);\n }",
"void applyExtensions(ReaderContext context, Operation operation, Method method);",
"public Builder clearUpdateUfsMode() {\n if (updateUfsModeBuilder_ == null) {\n updateUfsMode_ = alluxio.proto.journal.File.UpdateUfsModeEntry.getDefaultInstance();\n onChanged();\n } else {\n updateUfsModeBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x10000000);\n return this;\n }",
"@Override\n\tpublic abstract AbstractCKYStep<MR> overloadWithUnary(\n\t\t\tParseRuleResult<MR> unaryRuleResult, boolean fullParseAfterUnary);",
"public AutoUpdateSettings GetUpdateSettings() throws EdgeServiceFault;",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"private void updateAvailableInferenceFilters() {\n if ((radioGrpInferenceMethod != null) && (filtersProteinInference!= null)) {\n filtersProteinInference.removeAllAvailableFilter();\n\n ProteinInferenceMethod method = ProteinInferenceFactory.getProteinInferenceByName(\n radioGrpInferenceMethod.getSelection().getActionCommand());\n\n if (method != null) {\n AbstractProteinInference inference = method.createInstanceOf();\n\n for (RegisteredFilters filter : inference.getAllAvailableFilters()) {\n filtersProteinInference.addAvailableFilter(filter);\n }\n } else {\n LOGGER.error(\"Could not create inference method for \"\n + radioGrpInferenceMethod.getSelection().getActionCommand());\n }\n }\n }",
"void applySchemes(ReaderContext context, Operation operation, Method method);",
"public void updateFlags()\n {\n initialize();\n }",
"public void updateUf() {\n ArrayList<FunctionalUnit> updateList = new ArrayList<>();\n updateList = FU.get(typeFU.GENERIC);\n for (int i = 0; i < updateList.size(); i++) {\n if (updateList.get(i).isExecFinish() == true) {\n updateList.get(i).setActive(true); \n }\n }\n updateList = FU.get(typeFU.ADD);\n for (int i = 0; i < updateList.size(); i++) {\n if (updateList.get(i).isExecFinish() == true) {\n updateList.get(i).setActive(true); \n }\n }\n updateList = FU.get(typeFU.MULT);\n for (int i = 0; i < updateList.size(); i++) {\n if (updateList.get(i).isExecFinish() == true) {\n updateList.get(i).setActive(true); \n }\n }\n }",
"public int setAllProfileSettings(DsProfileSettings settings)\n {\n DsLog.log1(LOG_TAG, \"setAllProfileSettings\");\n DsAkSettings akSettings = settings.getAllSettings();\n \n // Send EFFECT_CMD_SET_PARAM\n // EFFECT_PARAM_SET_VALUES\n //\n Object[] params = DsAkSettings.akSettableParamDefinitions.toArray();\n // Calculate the total array length\n int nParams = params.length;\n byte[] baValue = new byte[activeDeviceSize_ + paramCountSize_ + (deviceIdSize_ + paramIdSize_ + paramValueCountSize_) * nParams + akSettings.getValues().length * paramValueSize_];\n int index = 0;\n // Active audio device.\n index += int32ToByteArray(AudioSystem.DEVICE_OUT_DEFAULT, baValue, index);\n // Number of parameters.\n index += int32ToByteArray(nParams, baValue, index);\n for (int i = 0; i < params.length; ++i)\n {\n // Device ID to which the parameter will be applied.\n index += int32ToByteArray(AudioSystem.DEVICE_OUT_DEFAULT, baValue, index);\n // Parameter ID.\n int paramId = DsAkSettings.getAkParamId((String)params[i]);\n index += int32ToByteArray(paramId, baValue, index);\n // Parameter value count.\n int length = DsAkSettings.getParamArrayLength((String)params[i]);\n index += int32ToByteArray(length, baValue, index);\n for (int offset = 0; offset < length; ++offset)\n {\n index += int32ToByteArray(akSettings.get((String)params[i], offset), baValue, index);\n }\n }\n return setParameter(EFFECT_PARAM_SET_VALUES, baValue);\n }",
"private void startLocationUpdates() {\n mSettingsClient.checkLocationSettings(mLocationSettingsRequest).\n addOnSuccessListener(this, new OnSuccessListener<LocationSettingsResponse>() {\n @Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Log.e(TAG, \"All location settings are satisfied.\");\n\n //noinspection MissingPermission\n mFusedLocationClient.requestLocationUpdates(mLocationBalancedRequest,\n mLocationCallback, Looper.myLooper());\n\n updateLocationUI();\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n Log.e(TAG, \"Location settings are not satisfied. Attempting to upgrade \" +\n \"location settings \");\n try {\n // Show the dialog by calling startResolutionForResult(), and check the\n // result in onActivityResult().\n ResolvableApiException rae = (ResolvableApiException) e;\n rae.startResolutionForResult(MainActivity.this, REQUEST_CHECK_SETTINGS);\n } catch (IntentSender.SendIntentException sie) {\n Log.e(TAG, \"PendingIntent unable to execute request.\");\n }\n break;\n case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:\n String errorMessage = \"Location settings are inadequate, and cannot be \" +\n \"fixed here. Fix in Settings.\";\n Log.e(TAG, errorMessage);\n Toast.makeText(MainActivity.this, errorMessage, Toast.LENGTH_LONG).show();\n mRequestingLocationUpdates = false;\n }\n updateLocationUI();\n }\n });\n\n }",
"public void clearFns() {\n genClient.clear(CacheKey.fns);\n }",
"MailboxUsageMailboxCounts patch(final MailboxUsageMailboxCounts sourceMailboxUsageMailboxCounts) throws ClientException;",
"public void updateServer(Identity identity, ServerInvokerMetadata invokers[]);",
"void unsetServiceConfigurationList();",
"@SuppressWarnings(\"unused\")\n private void setAllGesturesEnabled(final JSONArray args, final CallbackContext callbackContext) throws JSONException {\n Boolean isEnabled = args.getBoolean(1);\n UiSettings uiSettings = map.getUiSettings();\n uiSettings.setAllGesturesEnabled(isEnabled);\n this.sendNoResult(callbackContext);\n }",
"private void startLocationUpdates() {\n settingsClient\n .checkLocationSettings(locationSettingsRequest)\n .addOnSuccessListener(this, new OnSuccessListener<LocationSettingsResponse>() {\n @SuppressLint(\"MissingPermission\")\n @Override\n public void onSuccess(LocationSettingsResponse locationSettingsResponse) {\n Log.i(TAG, \"All location settings are satisfied.\");\n\n //noinspection MissingPermission\n fusedLocationClient.requestLocationUpdates(locationRequest, locationCallback, Looper.myLooper());\n\n onLocationChange();\n }\n })\n .addOnFailureListener(this, new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n int statusCode = ((ApiException) e).getStatusCode();\n switch (statusCode) {\n case LocationSettingsStatusCodes.RESOLUTION_REQUIRED:\n Log.i(TAG, \"Location settings are not satisfied. Attempting to upgrade \" +\n \"location settings \");\n try {\n // Show the dialog by calling startResolutionForResult(), and check the\n // result in onActivityResult().\n ResolvableApiException rae = (ResolvableApiException) e;\n rae.startResolutionForResult(UserLocation.this, REQUEST_CODE);\n } catch (IntentSender.SendIntentException sie) {\n Log.i(TAG, \"PendingIntent unable to execute request.\");\n }\n break;\n case LocationSettingsStatusCodes.SETTINGS_CHANGE_UNAVAILABLE:\n String errorMessage = \"Location settings are inadequate, and cannot be \" +\n \"fixed here. Fix in Settings.\";\n Log.e(TAG, errorMessage);\n\n Toast.makeText(UserLocation.this, errorMessage, Toast.LENGTH_LONG).show();\n }\n\n onLocationChange();\n }\n });\n }",
"public RestUtils setMethodOptions()\n\t{\n\t\trestMethodDef.setHttpMethod(HttpMethod.OPTIONS);\n\t\treturn this;\n\t}",
"public QueryMethodType<T> removeMethodParams()\n {\n childNode.remove(\"method-params\");\n return this;\n }",
"public void setAlgorithm(){\n\t\tif(pickRequest.equals(\"FCFS\"){\n\t\t\tmethods.remove(0);\n\t\t}\n\t\telse if(pickRequest.equals(\"Closest\"))\n\t\t{\n\t\t\tmethods.remove(); \n\t\t}\n\t\telse if(pickRequest.equals(\"Urgency\"))\n\t\t{\n\t\t\tmethods.remove();\n\t\t}\n\t}",
"@Override\n\tpublic void streamingServiceListUpdate() {\n\t\t\n\t}",
"interface Update extends\n Appliable<NamespaceAuthorizationRule>,\n AuthorizationRule.UpdateStages.WithListenOrSendOrManage<Update> {\n }",
"public synchronized void stopUpdates(){\n mHandler.removeCallbacks(mStatusChecker);\n }",
"private Stream<Method> getMethodStream(\n Class<?> api,\n ProtocolHandler protocol\n ) {\n Stream<Method> methodStream = Stream\n .of(api.getMethods())\n .filter(m -> !ReflectUtils.isDeprecated(m))\n .filter(m -> !ReflectUtils.isDeprecated(m.getReturnType()))\n .filter(m -> !ReflectUtils.hasAnyBitwigObjectParameter(m))\n .filter(m -> !ReflectUtils.hasAnyCallbackParameter(m))\n .filter(m -> !ReflectUtils.isModuleFactory(m))\n .filter(m -> {\n if (LOG.isDebugEnabled() && m.isBridge()) {\n LOG.debug(\n \"node[{}] member method[{}] is bridge method\",\n absoluteName,\n ReflectUtils.javaExpression(m)\n );\n }\n return !m.isBridge();\n });\n\n // markInterested is probably same as Subscribable#subscibe()\n if (Value.class.isAssignableFrom(nodeType)) {\n methodStream =\n methodStream.filter(m -> !(\"markInterested\".equals(m.getName())));\n }\n\n // TODO other Host methods ?\n if (ControllerHost.class.isAssignableFrom(nodeType)) {\n methodStream =\n methodStream.filter(m ->\n \"getNotificationSettings\".equals(m.getName()) ||\n \"showPopupNotification\".equals(m.getName())\n );\n }\n\n // MasterTrack#sendBank() is useless, and host throw exception.\n if (MasterTrack.class.isAssignableFrom(nodeType)) {\n methodStream = methodStream.filter(m -> !\"sendBank\".equals(m.getName()));\n }\n\n // SceneBank is implemented Bank<Scene>, should use Bank#getItemAt(int) instead of SceneBank#getScene(int)\n if (SceneBank.class.isAssignableFrom(nodeType)) {\n methodStream = methodStream.filter(m -> !\"getScene\".equals(m.getName()));\n }\n // DeviceBank is implemented Bank<Device>, should use Bank#getItemAt(int) instead of DeviceBank#getDevice(int)\n if (DeviceBank.class.isAssignableFrom(nodeType)) {\n methodStream = methodStream.filter(m -> !\"getDevice\".equals(m.getName()));\n }\n // Parameter#setLabel(String) can only be called during driver initialization\n if (Parameter.class.isAssignableFrom(nodeType)) {\n methodStream = methodStream.filter(m -> !\"setLabel\".equals(m.getName()));\n }\n\n // since bitwig 3.1\n\n //#if bitwig.extension.api.version >= 10\n methodStream =\n methodStream.filter(m ->\n !ReflectUtils.isPureHardwareBindable(m.getReturnType(), protocol)\n );\n //#endif\n\n // TODO since bitwig 3.1, API methods are annotated with @OscMethod, @OscNode\n // Will OSC server be released soon ?\n\n // Color class is difficult to use via remote. ColorValue class is enough.\n methodStream =\n methodStream.filter(m -> !Color.class.equals(m.getReturnType()));\n\n // move to ApplicationExt#observerdAction\n if (Action.class.isAssignableFrom(nodeType)) {\n methodStream = methodStream.filter(m -> !\"isEnabled\".equals(m.getName()));\n }\n return methodStream;\n }",
"public interface FirewallPolicyIdpsSignaturesOverrides {\n /**\n * Will update the status of policy's signature overrides for IDPS.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param parameters Will contain all properties of the object to put.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n SignaturesOverrides patch(String resourceGroupName, String firewallPolicyName, SignaturesOverridesInner parameters);\n\n /**\n * Will update the status of policy's signature overrides for IDPS.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param parameters Will contain all properties of the object to put.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n Response<SignaturesOverrides> patchWithResponse(\n String resourceGroupName, String firewallPolicyName, SignaturesOverridesInner parameters, Context context);\n\n /**\n * Will override/create a new signature overrides for the policy's IDPS.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param parameters Will contain all properties of the object to put.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n SignaturesOverrides put(String resourceGroupName, String firewallPolicyName, SignaturesOverridesInner parameters);\n\n /**\n * Will override/create a new signature overrides for the policy's IDPS.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param parameters Will contain all properties of the object to put.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n Response<SignaturesOverrides> putWithResponse(\n String resourceGroupName, String firewallPolicyName, SignaturesOverridesInner parameters, Context context);\n\n /**\n * Returns all signatures overrides for a specific policy.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n SignaturesOverrides get(String resourceGroupName, String firewallPolicyName);\n\n /**\n * Returns all signatures overrides for a specific policy.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return contains all specific policy signatures overrides for the IDPS.\n */\n Response<SignaturesOverrides> getWithResponse(String resourceGroupName, String firewallPolicyName, Context context);\n\n /**\n * Returns all signatures overrides objects for a specific policy as a list containing a single value.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return describes an object containing an array with a single item.\n */\n SignaturesOverridesList list(String resourceGroupName, String firewallPolicyName);\n\n /**\n * Returns all signatures overrides objects for a specific policy as a list containing a single value.\n *\n * @param resourceGroupName The name of the resource group.\n * @param firewallPolicyName The name of the Firewall Policy.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return describes an object containing an array with a single item.\n */\n Response<SignaturesOverridesList> listWithResponse(\n String resourceGroupName, String firewallPolicyName, Context context);\n}",
"public void update(\n final Properties properties\n ) {\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }",
"private void applyConfig(GraphQLClientConfiguration configuration) {\n if (this.endpoint == null && configuration.getUrl() != null) {\n this.endpoint = URI.create(configuration.getUrl());\n }\n if (this.websocketUrl == null && configuration.getWebsocketUrl() != null) {\n this.websocketUrl = configuration.getWebsocketUrl();\n }\n if (this.headers == null && configuration.getHeaders() != null) {\n this.headers = configuration.getHeaders();\n }\n if (this.initPayload == null && configuration.getInitPayload() != null) {\n this.initPayload = configuration.getInitPayload();\n }\n if (this.websocketInitializationTimeout == null && configuration.getWebsocketInitializationTimeout() != null) {\n this.websocketInitializationTimeout = configuration.getWebsocketInitializationTimeout();\n }\n if (executeSingleOperationsOverWebsocket == null && configuration.getExecuteSingleOperationsOverWebsocket() != null) {\n this.executeSingleOperationsOverWebsocket = configuration.getExecuteSingleOperationsOverWebsocket();\n }\n if (allowUnexpectedResponseFields == null && configuration.getAllowUnexpectedResponseFields() != null) {\n this.allowUnexpectedResponseFields = configuration.getAllowUnexpectedResponseFields();\n }\n\n if (configuration.getWebsocketSubprotocols() != null) {\n configuration.getWebsocketSubprotocols().forEach(protocol -> {\n try {\n WebsocketSubprotocol e = WebsocketSubprotocol.fromString(protocol);\n this.subprotocols.add(e);\n } catch (IllegalArgumentException e) {\n log.warn(e);\n }\n });\n }\n\n VertxClientOptionsHelper.applyConfigToVertxOptions(options, configuration);\n }",
"@Override\n\tpublic void configure(JSONObject settings)\n\t{\n\t\tthrow new UnsupportedOperationException();\n\t}",
"public void setUpdatesHandler(UpdatesHandler coreHandler);",
"void filterUpdate(ServerContext context, UpdateRequest request,\n ResultHandler<Resource> handler, RequestHandler next);",
"void applyImplicitParameters(ReaderContext context, Operation operation, Method method);",
"private static void revertAllToDefault() throws Exception {\n \n SoapTransport transport = authZmailAdmin();\n modifyLocalconfigAndReload(transport, LC.autoprov_initial_sleep_ms, DEFAULT_AUTOPROV_INITIAL_SLEEP_MS);\n \n Server localServer = prov.getLocalServer();\n localServer.setAutoProvPollingInterval(DEFAULT_AUTOPROV_POLLING_INTERVAL);\n localServer.unsetAutoProvScheduledDomains();\n }",
"private static void unaryService(ManagedChannel channel){\n CalculatorServiceBlockingStub calculatorClient = newBlockingStub(channel);\n\n //Create a Greet Request\n SumRequest sumRequest = SumRequest\n .newBuilder()\n .setFirstNumber(1)\n .setSecondNumber(2)\n .build();\n\n //Call the RPC and get back a GreetResponse\n SumResponse sumResponse = calculatorClient.sum(sumRequest);\n System.out.println(sumRequest.getFirstNumber() +\"+\" + sumRequest.getSecondNumber() +\"=\"+ sumResponse.getSumResult());\n }",
"public Builder clearUpdateCounts() {\n updateCounts_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }",
"public InterceptorType<T> removeAllAroundInvoke()\n {\n childNode.remove(\"around-invoke\");\n return this;\n }",
"synchronized private void flushPendingUpdates() throws SailException {\n\t\tif (!isActiveOperation()\n\t\t\t\t|| isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) {\n\t\t\tflush();\n\t\t\tpendingAdds = false;\n\t\t\tpendingRemovals = false;\n\t\t}\n\t}",
"void unsetAppliesPeriod();",
"public void clearAllResultsAndSummaries() {\r\n for (WjrMethodItem methodItem : methodItems.values()) {\r\n methodItem.clearResult();\r\n }\r\n for (WjrClassItem classItem : classItems.values()) {\r\n classItem.clearSummary();\r\n }\r\n root.clearSummary();\r\n }",
"public void unwrap(CtClass clazz, Collection methodInfos) throws Exception\n {\n for (Iterator iterator = methodInfos.iterator(); iterator.hasNext();)\n {\n org.jboss.aop.MethodInfo methodInfo = (org.jboss.aop.MethodInfo) iterator.next();\n Method method = methodInfo.getAdvisedMethod();\n AOPClassPool classPool = (AOPClassPool) clazz.getClassPool();\n Class[] parameterTypes = method.getParameterTypes();\n CtClass[] javassistParameterTypes = new CtClass[parameterTypes.length];\n for (int i = 0; i < parameterTypes.length; i++)\n {\n classPool.getLocally(parameterTypes[i].getName());\n }\n CtMethod javassistWMethod = clazz.getDeclaredMethod(method.getName(), javassistParameterTypes);\n if (wrapper.isNotPrepared(javassistWMethod, WrapperTransformer.SINGLE_TRANSFORMATION_INDEX))\n {\n continue;\n }\n CtMethod javassistMethod = clazz.getDeclaredMethod(ClassAdvisor.notAdvisedMethodName(clazz.getName(), method.getName()),\n javassistParameterTypes);\n // wrap\n wrapper.unwrap(javassistWMethod, WrapperTransformer.SINGLE_TRANSFORMATION_INDEX);\n // executeUnwrapping\n javassistWMethod.setBody(javassistMethod, null);\n }\n }",
"public void updateCommands ( ) {\n\t\texecute ( handle -> handle.updateCommands ( ) );\n\t}",
"public ApplyUpdateProperties() {\n }",
"public void setHideSettings(String un, boolean friends, boolean posts, boolean age, boolean status){\n MongoCollection<Document> collRU = db.getCollection(\"registeredUser\");\n // updating user database\n collRU.findOneAndUpdate(\n eq(\"username\", un),\n and(\n Updates.set(\"hidefriends\", friends),\n Updates.set(\"hideposts\",posts),\n Updates.set(\"hideage\",age),\n Updates.set(\"hidestatus\",status)\n )\n );\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}",
"void unsetMethod();",
"void updateControllersStatus(boolean enabled);",
"public ChannelFavorites(Settings settings) {\r\n this.settings = settings;\r\n if (settings.getBoolean(\"historyClear\")) {\r\n removeOld();\r\n }\r\n }",
"public void resetFilterAndRefresh() {\n postLoaderMethodList.setSelectedIndex(0);\n postLoaderMethodList.setContentType(PostLoader.CONTENT_ALL);\n postLoaderMethodList.setShowGlobalPosts(false);\n AppSession.getInstance().getUser().setHidePublicContents(false);\n\n refreshForDifferentPostParams();\n }",
"public void setAPISetting(String setting){\n if(!setting.equals(\"true\")){\n setting = \"false\";\n }\n apiSetting = setting;\n }",
"public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentStats.activeRequests = toLoad.size() + loading.size();\n recentStats.maxActiveRequests = recentStats.activeRequests;\n });\n }",
"default void disableFollowButton() {}",
"private int update(surfstore.SurfStoreBasic.FileInfo request, String method) {\n int updated = 0;\n for (int i = 0; i < metadataStubList.size(); i++) {\n MetadataStoreGrpc.MetadataStoreBlockingStub metaStub = metadataStubList.get(i);\n metaStub.ping(Empty.newBuilder().build());\n // 1st phase\n\t\t\tif (metaStub.updateLog(LogInfo.newBuilder().setLog(method).setFilename(request.getFilename()).build()).getAnswer() == false) { // not crashed\n\t\t\t\t// 2nd phase\n\t\t\t\tif (metaStub.updateFollower(request).getResult() == WriteResult.Result.OK) {\n\t\t\t\t\tfollowerMapList.get(i).put(request.getFilename(), request.getVersion());\n\t\t\t\t\tupdated++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"heartbeat update follower numbers \" + Integer.toString(updated));\n\t\treturn updated;\n\t}",
"void setDeprecated(Operation operation, Method method);",
"public boolean interceptSetEnabledFunctions(String functions) {\n return false;\n }",
"@Override\n\tpublic void hookUpdatedValues() {\n\t\tWeatherUtil.doBlockList();\n\t\tWeatherUtilConfig.processLists();\n\t}",
"public void updateRegisteredUsersFacts(\r\n usdl.Usdl_rupStub.Facts args015\r\n\r\n ) throws java.rmi.RemoteException\r\n\r\n\r\n {\r\n org.apache.axis2.context.MessageContext _messageContext = null;\r\n\r\n\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[3].getName());\r\n _operationClient.getOptions().setAction(\"urn:updateRegisteredUsersFacts\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n\r\n addPropertyToOperationClient(_operationClient, org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR, \"&\");\r\n\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n\r\n //Style is Doc.\r\n usdl.Usdl_rupStub.UpdateRegisteredUsersFacts dummyWrappedType = null;\r\n env = toEnvelope(getFactory(_operationClient.getOptions().getSoapVersionURI()),\r\n args015,\r\n dummyWrappedType,\r\n optimizeContent(new javax.xml.namespace.QName(\"http://ws.apache.org/axis2\",\r\n \"updateRegisteredUsersFacts\")));\r\n\r\n\r\n //adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message contxt to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.execute(true);\r\n\r\n\r\n if (_messageContext.getTransportOut() != null) {\r\n _messageContext.getTransportOut().getSender().cleanup(_messageContext);\r\n }\r\n\r\n return;\r\n }",
"public UpdateUfsModeTResponse updateUfsMode(String ufsPath, UpdateUfsModeTOptions options) throws alluxio.thrift.AlluxioTException, org.apache.thrift.TException;",
"@Scheduled(fixedRate = 2000)\n private void doSendRpcUsage() {\n List<MethodCallDTO> items = stats.values()\n .stream()\n .map(stat -> new MethodCallDTO(\n stat.name,\n stat.count.longValue(),\n stat.lastCall.longValue(),\n stat.lastResult.get(),\n stat.curl))\n .sorted((s1, s2) -> s1.getMethodName().compareTo(s2.getMethodName()))\n .collect(Collectors.toList());\n\n clientMessageService.sendToTopic(\"/topic/rpcUsage\", items);\n }",
"private void forecastUpdatedFromServiceUpdater(List<YahooForcast> forecasts) {\n\t\tif (callback != null) {\n\t\t\t// update your forecast\n\t\t\tthis.forecasts = forecasts;\n\t\t\t// use the callback to prevent the client\n\t\t\tif (callback.get() != null) {\n\t\t\t\t// yep, we use a weakReference\n\t\t\t\tcallback.get().forecastLoaded(forecasts);\n\t\t\t}\n\t\t}\n\t}",
"default CompletableFuture<DictionaryResponse> setDictionarySettingsAsync(\n @Nonnull DictionarySettings dictionarySettings) {\n return setDictionarySettingsAsync(dictionarySettings, null);\n }",
"public ApiResponse<PresenceSettings> putPresenceSettings(ApiRequest<PresenceSettings> request) throws IOException {\n try {\n return pcapiClient.invoke(request, new TypeReference<PresenceSettings>() {});\n }\n catch (ApiException exception) {\n @SuppressWarnings(\"unchecked\")\n ApiResponse<PresenceSettings> response = (ApiResponse<PresenceSettings>)(ApiResponse<?>)exception;\n return response;\n }\n catch (Throwable exception) {\n if (pcapiClient.getShouldThrowErrors()) {\n if (exception instanceof IOException) {\n throw (IOException)exception;\n }\n throw new RuntimeException(exception);\n }\n @SuppressWarnings(\"unchecked\")\n ApiResponse<PresenceSettings> response = (ApiResponse<PresenceSettings>)(ApiResponse<?>)(new ApiException(exception));\n return response;\n }\n }",
"private void updPrevRunningConfigUpdates() {\n\t\tList<FilterCondition> cond = new ArrayList<>();\n\t\tList<ConfiguredValuesMO> prevConfigList = null;\n\t\tConfiguredValuesMO prevConfig = null;\n\t\tsetFilterConditions(cond); \n\t\ttry {\n\t\t\tprevConfigList = (List<ConfiguredValuesMO>) genDao.getGenericObjects(ConfiguredValuesMO.class, cond, Boolean.TRUE);\n\t\t} catch (DAOException e) {\n\t\t\tlogger.error(\"Exception while retrieving Config updates for the device.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tprevConfig = prevConfigList.get(0); // Ideally this should give only one item.\n\t\tprevConfig.setStatus(ConfigUpdateStatus.INACTIVE);\n\t\ttry {\n\t\t\tgenDao.saveGenericObject(prevConfig);\n\t\t} catch (DAOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"interface Update extends Appliable<PrivateEndpointConnection>, UpdateStages.WithId, UpdateStages.WithName, UpdateStages.WithPrivateEndpoint, UpdateStages.WithPrivateLinkServiceConnectionState, UpdateStages.WithProvisioningState {\n }",
"public ConfigurationBuilder onlyMethods() {\n\t\tconfigurationBuilder.setAccessStrategy(AccessStrategy.ONLY_METHODS);\n\t\treturn configurationBuilder;\n\t}",
"void set(final Map<String, String> settings) {\n for (Map.Entry<String, String> entry : settings.entrySet())\n set(entry.getKey(), entry.getValue());\n }",
"void set(final Map<String, String> settings) {\n for (Map.Entry<String, String> entry : settings.entrySet())\n set(entry.getKey(), entry.getValue());\n }",
"default void refreshStream() {}",
"public static Map<Service, MenigaAPI> createApiInterfaces(MenigaSettings settings) {\n\t\tMap<Service, MenigaAPI> endpoints = new HashMap<>();\n\n\t\t// Create the default retrofit and client for all services.\n\t\tWebClient.retrofits.put(Service.ALL, buildRetrofit(Service.ALL, settings));\n\t\tendpoints.put(Service.ALL, WebClient.retrofits.get(Service.ALL).create(MenigaAPI.class));\n\n\t\tfor (Service service : settings.getSpecialServiceEndpoints().keySet()) {\n\t\t\tWebClient.retrofits.put(service, buildRetrofit(service, settings));\n\t\t\tendpoints.put(service, WebClient.retrofits.get(service).create(MenigaAPI.class));\n\t\t}\n\n\t\treturn endpoints;\n\t}",
"public T enableMethods(List<String> enabledMethods) {\n this.enabledMethods = Objects.requireNonNullElse(enabledMethods, new ArrayList<>());\n return self();\n }"
] | [
"0.7554154",
"0.5765662",
"0.53084767",
"0.52201015",
"0.4868081",
"0.48139605",
"0.46763456",
"0.45671627",
"0.45266584",
"0.45204568",
"0.4404755",
"0.43892306",
"0.4383607",
"0.4331655",
"0.42828378",
"0.42635742",
"0.4263556",
"0.426203",
"0.4252021",
"0.42405784",
"0.42373884",
"0.42131105",
"0.4204566",
"0.41686982",
"0.416536",
"0.41619873",
"0.41609997",
"0.41537395",
"0.41454062",
"0.41451094",
"0.4138633",
"0.4135298",
"0.41349703",
"0.41330686",
"0.41322953",
"0.41109285",
"0.41081148",
"0.41036198",
"0.40859511",
"0.40840486",
"0.4062716",
"0.40547144",
"0.4051944",
"0.40518436",
"0.40478072",
"0.4044896",
"0.40392706",
"0.40347794",
"0.40171826",
"0.4014583",
"0.40115833",
"0.4008522",
"0.4002301",
"0.39881614",
"0.3978873",
"0.39692205",
"0.39691922",
"0.39605197",
"0.3959467",
"0.39543208",
"0.39491287",
"0.39353946",
"0.3935204",
"0.39243814",
"0.391723",
"0.39154688",
"0.39034933",
"0.39001247",
"0.38902357",
"0.38865545",
"0.38862094",
"0.38856387",
"0.38810596",
"0.38710374",
"0.38635936",
"0.38626388",
"0.38564157",
"0.38563547",
"0.3852866",
"0.38470316",
"0.38391754",
"0.38318264",
"0.3828195",
"0.38243446",
"0.38231835",
"0.3818398",
"0.3815997",
"0.38095188",
"0.38094723",
"0.38073447",
"0.37975168",
"0.37944376",
"0.37927637",
"0.37857106",
"0.37851736",
"0.37755",
"0.37755",
"0.37754112",
"0.37690663",
"0.37657717"
] | 0.7552495 | 1 |
Returns the builder for the settings used for calls to listWorkflows. | public PagedCallSettings.Builder<
ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>
listWorkflowsSettings() {
return getStubSettingsBuilder().listWorkflowsSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public PagedCallSettings.Builder<ListTablesRequest, ListTablesResponse, ListTablesPagedResponse>\n listTablesSettings() {\n return listTablesSettings;\n }",
"public PagedCallSettings.Builder<\n ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>\n listDatabasesSettings() {\n return listDatabasesSettings;\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public static Builder builder(){ return new Builder(); }",
"public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public UnaryCallSettings.Builder<GetTableRequest, Table> getTableSettings() {\n return getTableSettings;\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"public go.micro.runtime.RuntimeOuterClass.ListOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public UnaryCallSettings.Builder<CreateTableRequest, Table> createTableSettings() {\n return createTableSettings;\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public speech.multilang.Params.ScoringControllerParams.Builder getScoringParamsBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getScoringParamsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public OptionsBuilder optionsBuilder() {\n OptionsBuilder builder = new OptionsBuilder();\n\n builder.forks(forks);\n builder.warmupIterations(warmupIterations);\n builder.measurementIterations(measurementIterations);\n builder.timeUnit(outputTimeUnit);\n builder.threads(threads);\n\n if (benchmarkModes != null) {\n for (Mode benchmarkMode : benchmarkModes)\n builder.getBenchModes().add(benchmarkMode);\n }\n\n if (benchmarks != null) {\n for (Object benchmark : benchmarks) {\n if (benchmark instanceof Class)\n builder.include(((Class)benchmark).getSimpleName());\n else\n builder.include(benchmark.toString());\n }\n }\n\n if (jvmArgs != null)\n builder.jvmArgs(jvmArgs);\n\n if (output != null)\n builder.output(output);\n\n if (profilers != null) {\n for (Class profiler : profilers)\n builder.addProfiler(profiler);\n }\n\n return builder;\n }",
"public speech.multilang.Params.ForwardingControllerParams.Builder getForwardingParamsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getForwardingParamsFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.LogsOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public com.google.cloud.dialogflow.cx.v3beta1.Intent.Parameter.Builder getParametersBuilder(\n int index) {\n return getParametersFieldBuilder().getBuilder(index);\n }",
"protected ParametersBuilder getSaveParameters(){\r\n return new ParametersBuilder(\r\n saveOrUpdateParameters(),\r\n getStartUser(),\r\n getDescription()\r\n );\r\n }",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public io.dstore.values.StringValue.Builder getConditionListBuilder() {\n \n onChanged();\n return getConditionListFieldBuilder().getBuilder();\n }",
"public tensorflow.serving.internal.SerializedInputOuterClass.SerializedExampleList.Builder getExampleListBuilder() {\n return getExampleListFieldBuilder().getBuilder();\n }",
"public io.grafeas.v1.Jwt.Builder getJwtsBuilder(int index) {\n return getJwtsFieldBuilder().getBuilder(index);\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"public static HelpDisplayBuilder builder() {\n return new HelpDisplayBuilder();\n }",
"public com.google.cloud.dialogflow.cx.v3beta1.Form.Parameter.Builder getParametersBuilder(\n int index) {\n return getParametersFieldBuilder().getBuilder(index);\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"static Builder newBuilder() {\n return new Builder();\n }"
] | [
"0.75348645",
"0.72261053",
"0.6958047",
"0.66622436",
"0.65501153",
"0.64925325",
"0.6379752",
"0.6367129",
"0.62053734",
"0.61442727",
"0.61246425",
"0.6031748",
"0.59410465",
"0.58692485",
"0.5823588",
"0.5728242",
"0.5696486",
"0.5696486",
"0.5696486",
"0.5696486",
"0.5695677",
"0.56651115",
"0.5653142",
"0.5611725",
"0.5594869",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.55815154",
"0.5519589",
"0.54987466",
"0.54930127",
"0.54930127",
"0.54930127",
"0.5453779",
"0.5432327",
"0.54179686",
"0.53957504",
"0.5358091",
"0.53054756",
"0.523881",
"0.523881",
"0.523881",
"0.523881",
"0.523881",
"0.523881",
"0.523881",
"0.52326804",
"0.52293766",
"0.522597",
"0.5224052",
"0.520219",
"0.5201573",
"0.51915026",
"0.51906735",
"0.5181271",
"0.5181271",
"0.5148756",
"0.51348853",
"0.5112161",
"0.5083679",
"0.50809175",
"0.50809175",
"0.50809175",
"0.50809175",
"0.50796074",
"0.50690305",
"0.5044837",
"0.5023426",
"0.5023042",
"0.501938",
"0.5011572",
"0.5000056",
"0.49814716",
"0.4974449",
"0.4974449",
"0.4974449",
"0.49716693",
"0.49677444",
"0.49661088",
"0.49654758",
"0.49641398",
"0.49641398",
"0.49570432",
"0.4956126",
"0.49529806",
"0.49462408",
"0.49456212",
"0.49399397",
"0.493824",
"0.4934952",
"0.49308845",
"0.49215758"
] | 0.76900035 | 0 |
Returns the builder for the settings used for calls to getWorkflow. | public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {
return getStubSettingsBuilder().getWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder(){ return new Builder(); }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"Settings getSettings();",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"public UnaryCallSettings.Builder<GetTableRequest, Table> getTableSettings() {\n return getTableSettings;\n }",
"public speech.multilang.Params.ForwardingControllerParams.Builder getForwardingParamsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getForwardingParamsFieldBuilder().getBuilder();\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public org.naru.park.ParkModel.UIParkRequest.Builder getRequestBuilder() {\n \n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"public Builder getThis() { return this; }",
"public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() {\n return WorkflowsStubSettings.defaultGrpcTransportProviderBuilder();\n }",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public speech.multilang.Params.ScoringControllerParams.Builder getScoringParamsBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getScoringParamsFieldBuilder().getBuilder();\n }",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public XULTemplateBuilder getBuilder() //readonly\n\t{\n\t\tif(xulTemplateBuilder == null && getDatabase() != null) {\n\t\t\tRDFService rdfService = null; //TODO get the RDFService\n\t\t\txulTemplateBuilder = new XULTemplateBuilderImpl(rdfService, this);\n\t\t}\n\t\treturn xulTemplateBuilder;\n\t}",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public static Object builder() {\n\t\treturn null;\r\n\t}"
] | [
"0.72987425",
"0.7067054",
"0.6798463",
"0.67728484",
"0.6632458",
"0.6536525",
"0.65170324",
"0.63390607",
"0.6282303",
"0.62462133",
"0.62442786",
"0.62442786",
"0.62442786",
"0.62442786",
"0.6232064",
"0.6189585",
"0.6155994",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.61406547",
"0.6079328",
"0.60688144",
"0.60580295",
"0.605719",
"0.60570025",
"0.60570025",
"0.60570025",
"0.6051321",
"0.5992277",
"0.59365237",
"0.58359224",
"0.57796097",
"0.57079506",
"0.5684985",
"0.56423354",
"0.56279016",
"0.5620164",
"0.5589676",
"0.5589676",
"0.5580839",
"0.55716366",
"0.5544537",
"0.5542171",
"0.5542171",
"0.5542171",
"0.5542171",
"0.5542171",
"0.5542171",
"0.5542171",
"0.5540341",
"0.5539177",
"0.5524762",
"0.5507508",
"0.54793155",
"0.5479115",
"0.5479115",
"0.5479115",
"0.5479115",
"0.5466012",
"0.54655975",
"0.5462557",
"0.54521006",
"0.5440059",
"0.5440059",
"0.5419927",
"0.5411692",
"0.5404807",
"0.54042906",
"0.5397249",
"0.539269",
"0.53911024",
"0.53888726",
"0.53888726",
"0.53888726",
"0.53598976",
"0.5339745",
"0.53367716",
"0.53361565",
"0.53298223",
"0.53280073",
"0.530751",
"0.5291866",
"0.5264307",
"0.52589905",
"0.5258372",
"0.5256522",
"0.52372074",
"0.5234124",
"0.5233288",
"0.5233004",
"0.5225539",
"0.5217271"
] | 0.77087456 | 0 |
Returns the builder for the settings used for calls to createWorkflow. | public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {
return getStubSettingsBuilder().createWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder(){ return new Builder(); }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntry.Builder getCreateStoreBuilder() {\n bitField0_ |= 0x00000100;\n onChanged();\n return getCreateStoreFieldBuilder().getBuilder();\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"@Incubating\n interface Builder {\n\n /**\n * Sets the root project directory for this Gradle Build.\n *\n * @param projectDir root project directory.\n * @return this\n */\n Builder forProjectDirectory(File projectDir);\n\n /**\n * Specifies the Gradle distribution described in the build should be used.\n *\n * @return this\n */\n Builder useBuildDistribution();\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleHome The Gradle installation directory.\n * @return this\n */\n Builder useInstallation(File gradleHome);\n\n /**\n * Specifies the version of Gradle to use.\n *\n * @param gradleVersion The version to use.\n * @return this\n */\n Builder useGradleVersion(String gradleVersion);\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleDistribution The distribution to use.\n *\n * @return this\n */\n Builder useDistribution(URI gradleDistribution);\n\n /**\n * Creates an immutable GradleBuild instance based on this builder.\n *\n * @return a new instance, never null.\n */\n GradleBuild create();\n }",
"public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public Builder(){\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"private Builder() {}",
"Builder makePermanent();",
"public static Object builder() {\n\t\treturn null;\r\n\t}"
] | [
"0.7307331",
"0.7237078",
"0.6840037",
"0.6573413",
"0.6500092",
"0.64185345",
"0.6354319",
"0.62773484",
"0.6274826",
"0.6274826",
"0.6274826",
"0.6274826",
"0.6264115",
"0.6243668",
"0.6238767",
"0.6200253",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61949354",
"0.61405313",
"0.61305064",
"0.612226",
"0.6121953",
"0.6121953",
"0.6121953",
"0.5989469",
"0.5967668",
"0.593858",
"0.5877005",
"0.58637387",
"0.5846235",
"0.5846235",
"0.5772713",
"0.57660013",
"0.5652781",
"0.5652245",
"0.5639105",
"0.5628517",
"0.56155103",
"0.55619365",
"0.5559531",
"0.5551235",
"0.5532267",
"0.5532267",
"0.5532267",
"0.5532267",
"0.5532267",
"0.5532267",
"0.5532267",
"0.552375",
"0.5517215",
"0.5517215",
"0.5517215",
"0.5517215",
"0.55152905",
"0.54987955",
"0.5489668",
"0.5484511",
"0.5484511",
"0.54841447",
"0.54763126",
"0.543925",
"0.5437186",
"0.54299235",
"0.54299235",
"0.54299235",
"0.5412729",
"0.5392214",
"0.5388926",
"0.53741276",
"0.53740126",
"0.5368001",
"0.53582877",
"0.53517824",
"0.5335728",
"0.5333451",
"0.53334355",
"0.5314603",
"0.529928",
"0.5298821",
"0.5298821",
"0.5298821",
"0.5290024",
"0.5289101",
"0.52849615",
"0.5281371",
"0.5275813",
"0.5272172",
"0.5270976",
"0.52646047",
"0.5254505",
"0.5254007"
] | 0.7496752 | 0 |
Returns the builder for the settings used for calls to createWorkflow. | public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>
createWorkflowOperationSettings() {
return getStubSettingsBuilder().createWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder(){ return new Builder(); }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public Leilao builder() {\n\t\treturn this.leilao;\r\n\t}",
"public PaymentType builder()\n {\n return new PaymentType(this);\n }",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public starnamed.x.wasm.v1beta1.Types.AccessConfig.Builder getInstantiatePermissionBuilder() {\n \n onChanged();\n return getInstantiatePermissionFieldBuilder().getBuilder();\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"@Contract(\" -> new\")\n public static @NotNull Builder getBuilder()\n {\n return new Builder();\n }",
"public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() {\n return WorkflowsStubSettings.defaultExecutorProviderBuilder();\n }",
"public alluxio.proto.journal.KeyValue.CreateStoreEntry.Builder getCreateStoreBuilder() {\n bitField0_ |= 0x00000100;\n onChanged();\n return getCreateStoreFieldBuilder().getBuilder();\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"@Override\n \tpublic ISettingsPage makeSettingsPage() {\n \t\treturn new ProcessSettingsPage(settings);\n \t}",
"@Incubating\n interface Builder {\n\n /**\n * Sets the root project directory for this Gradle Build.\n *\n * @param projectDir root project directory.\n * @return this\n */\n Builder forProjectDirectory(File projectDir);\n\n /**\n * Specifies the Gradle distribution described in the build should be used.\n *\n * @return this\n */\n Builder useBuildDistribution();\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleHome The Gradle installation directory.\n * @return this\n */\n Builder useInstallation(File gradleHome);\n\n /**\n * Specifies the version of Gradle to use.\n *\n * @param gradleVersion The version to use.\n * @return this\n */\n Builder useGradleVersion(String gradleVersion);\n\n /**\n * Specifies the Gradle distribution to use.\n *\n * @param gradleDistribution The distribution to use.\n *\n * @return this\n */\n Builder useDistribution(URI gradleDistribution);\n\n /**\n * Creates an immutable GradleBuild instance based on this builder.\n *\n * @return a new instance, never null.\n */\n GradleBuild create();\n }",
"public Builder newBuilderForType(GeneratedMessageV3.BuilderParent builderParent) {\n return new Builder(builderParent);\n }",
"public Builder() {}",
"public Builder() {}",
"public Builder() {}",
"public static Object builder() {\n\t\treturn null;\n\t}",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public Builder(){\n }",
"public Builder<X> toBuilder() {\n return new Builder<X>(this);\n }",
"public Workspace build() {\n if (properties == null) {\n properties = new HashMap<>();\n }\n if (workspaceId == null || workspaceStage == null) {\n throw new MissingRequiredFieldsException(\"Workspace requires id and stage\");\n }\n return new Workspace(\n workspaceId,\n displayName,\n description,\n spendProfileId,\n properties,\n workspaceStage,\n gcpCloudContext);\n }",
"public WorkflowConfiguration() {\n\t\t\n\t}",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"private Builder() {}",
"Builder makePermanent();",
"private Builder() {\n\t\t}"
] | [
"0.74976027",
"0.73087215",
"0.6839398",
"0.65732574",
"0.6501686",
"0.64206153",
"0.6355203",
"0.6278317",
"0.62732065",
"0.62732065",
"0.62732065",
"0.62732065",
"0.6263115",
"0.62423384",
"0.6237595",
"0.62019664",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.61932474",
"0.6140603",
"0.6129073",
"0.612116",
"0.61201614",
"0.61201614",
"0.61201614",
"0.5987263",
"0.59671783",
"0.59382164",
"0.5876543",
"0.5863343",
"0.5843946",
"0.5843946",
"0.5771161",
"0.57682043",
"0.5653518",
"0.56505793",
"0.5637695",
"0.5628562",
"0.56148565",
"0.5562364",
"0.55576724",
"0.55495393",
"0.55296636",
"0.55296636",
"0.55296636",
"0.55296636",
"0.55296636",
"0.55296636",
"0.55296636",
"0.5522872",
"0.5515739",
"0.55153346",
"0.55153346",
"0.55153346",
"0.55153346",
"0.5497074",
"0.54903895",
"0.54830873",
"0.5482467",
"0.5482467",
"0.5475419",
"0.5437023",
"0.5435596",
"0.54280066",
"0.54280066",
"0.54280066",
"0.54115456",
"0.5391555",
"0.5387722",
"0.5373095",
"0.53722477",
"0.5368035",
"0.53579384",
"0.53498095",
"0.5334028",
"0.53340054",
"0.53338933",
"0.53136677",
"0.5298482",
"0.5297637",
"0.5297637",
"0.5297637",
"0.5287926",
"0.52871156",
"0.5284312",
"0.52792555",
"0.5275125",
"0.5272271",
"0.5270541",
"0.5263842",
"0.5253372",
"0.5252658"
] | 0.723799 | 2 |
Returns the builder for the settings used for calls to deleteWorkflow. | public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {
return getStubSettingsBuilder().deleteWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public io.dstore.values.BooleanValue.Builder getDeleteCampaignBuilder() {\n \n onChanged();\n return getDeleteCampaignFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"public DeleteBuilder delete() {\n return new DeleteBuilder(this);\n }",
"public org.naru.park.ParkController.CommonAction.Builder getDeleteSensorBuilder() {\n \n onChanged();\n return getDeleteSensorFieldBuilder().getBuilder();\n }",
"public TaskProtobufWrapper.DeleteTaskPack.Builder getDeleteTaskPackBuilder() {\n return getDeleteTaskPackFieldBuilder().getBuilder();\n }",
"public alluxio.proto.journal.KeyValue.DeleteStoreEntry.Builder getDeleteStoreBuilder() {\n bitField0_ |= 0x00002000;\n onChanged();\n return getDeleteStoreFieldBuilder().getBuilder();\n }",
"public io.dstore.values.IntegerValue.Builder getForceDeleteBuilder() {\n \n onChanged();\n return getForceDeleteFieldBuilder().getBuilder();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public Builder clearDeleteTaskPack() {\n if (deleteTaskPackBuilder_ == null) {\n if (packCase_ == 4) {\n packCase_ = 0;\n pack_ = null;\n onChanged();\n }\n } else {\n if (packCase_ == 4) {\n packCase_ = 0;\n pack_ = null;\n }\n deleteTaskPackBuilder_.clear();\n }\n return this;\n }",
"public UnaryCallSettings<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public alluxio.proto.journal.Block.DeleteBlockEntry.Builder getDeleteBlockBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getDeleteBlockFieldBuilder().getBuilder();\n }",
"public Builder clearSettings() {\n if (settingsBuilder_ == null) {\n settings_ = Pokemon.ContactSettingsProto.getDefaultInstance();\n onChanged();\n } else {\n settingsBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000200);\n return this;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public edu.usfca.cs.dfs.StorageMessages.DeleteBackUp.Builder getDeleteBackUpBuilder() {\n return getDeleteBackUpFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder(){ return new Builder(); }",
"private com.google.protobuf.SingleFieldBuilderV3<\n go.micro.runtime.RuntimeOuterClass.DeleteOptions, go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder, go.micro.runtime.RuntimeOuterClass.DeleteOptionsOrBuilder> \n getOptionsFieldBuilder() {\n if (optionsBuilder_ == null) {\n optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n go.micro.runtime.RuntimeOuterClass.DeleteOptions, go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder, go.micro.runtime.RuntimeOuterClass.DeleteOptionsOrBuilder>(\n getOptions(),\n getParentForChildren(),\n isClean());\n options_ = null;\n }\n return optionsBuilder_;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public alluxio.proto.journal.File.DeleteFileEntry.Builder getDeleteFileBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getDeleteFileFieldBuilder().getBuilder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static CustomerDeletedMessagePayloadBuilder builder() {\n return CustomerDeletedMessagePayloadBuilder.of();\n }",
"public Builder setOptions(\n go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder builderForValue) {\n if (optionsBuilder_ == null) {\n options_ = builderForValue.build();\n onChanged();\n } else {\n optionsBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"private DeleteOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public alluxio.proto.journal.File.DeleteMountPointEntry.Builder getDeleteMountPointBuilder() {\n bitField0_ |= 0x00001000;\n onChanged();\n return getDeleteMountPointFieldBuilder().getBuilder();\n }",
"public Builder clearDeviceSettings() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettings_ = null;\n onChanged();\n } else {\n deviceSettings_ = null;\n deviceSettingsBuilder_ = null;\n }\n\n return this;\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public io.dstore.values.BooleanValue.Builder getDeleteCharacteristicBuilder() {\n \n onChanged();\n return getDeleteCharacteristicFieldBuilder().getBuilder();\n }",
"public org.naru.park.ParkController.CommonAction.Builder getDeleteBeaconBuilder() {\n \n onChanged();\n return getDeleteBeaconFieldBuilder().getBuilder();\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder> \n getDeleteCampaignFieldBuilder() {\n if (deleteCampaignBuilder_ == null) {\n deleteCampaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder>(\n getDeleteCampaign(),\n getParentForChildren(),\n isClean());\n deleteCampaign_ = null;\n }\n return deleteCampaignBuilder_;\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public Builder clearSharedTo() {\n copyOnWrite();\n instance.clearSharedTo();\n return this;\n }",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n onChanged();\n }\n } else {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n }\n configBuilder_.clear();\n }\n return this;\n }",
"public Builder clearCreateTaskPack() {\n if (createTaskPackBuilder_ == null) {\n if (packCase_ == 3) {\n packCase_ = 0;\n pack_ = null;\n onChanged();\n }\n } else {\n if (packCase_ == 3) {\n packCase_ = 0;\n pack_ = null;\n }\n createTaskPackBuilder_.clear();\n }\n return this;\n }",
"public Builder setDeleteCampaign(\n io.dstore.values.BooleanValue.Builder builderForValue) {\n if (deleteCampaignBuilder_ == null) {\n deleteCampaign_ = builderForValue.build();\n onChanged();\n } else {\n deleteCampaignBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public Builder clearDelete() {\n copyOnWrite();\n instance.clearDelete();\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public alluxio.proto.journal.Lineage.DeleteLineageEntry.Builder getDeleteLineageBuilder() {\n bitField0_ |= 0x00000800;\n onChanged();\n return getDeleteLineageFieldBuilder().getBuilder();\n }",
"private DeleteTaskPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder> \n getDeviceSettingsFieldBuilder() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder>(\n getDeviceSettings(),\n getParentForChildren(),\n isClean());\n deviceSettings_ = null;\n }\n return deviceSettingsBuilder_;\n }",
"private Delete(Builder builder) {\n super(builder);\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public Builder setDeleteTaskPack(\n TaskProtobufWrapper.DeleteTaskPack.Builder builderForValue) {\n if (deleteTaskPackBuilder_ == null) {\n pack_ = builderForValue.build();\n onChanged();\n } else {\n deleteTaskPackBuilder_.setMessage(builderForValue.build());\n }\n packCase_ = 4;\n return this;\n }",
"public Builder clearBuilderConfig() {\n bitField0_ = (bitField0_ & ~0x00000001);\n builderConfig_ = null;\n if (builderConfigBuilder_ != null) {\n builderConfigBuilder_.dispose();\n builderConfigBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"public Builder clearBuild() {\n copyOnWrite();\n instance.clearBuild();\n return this;\n }",
"private SettingsRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public Builder clearFirewall() {\n if (firewallBuilder_ == null) {\n if (stepInfoCase_ == 6) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 6) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n firewallBuilder_.clear();\n }\n return this;\n }",
"public Builder clearGenesis() {\n copyOnWrite();\n instance.clearGenesis();\n return this;\n }",
"public Builder clearDonator() {\n if (donatorBuilder_ == null) {\n if (payloadCase_ == 3) {\n payloadCase_ = 0;\n payload_ = null;\n onChanged();\n }\n } else {\n if (payloadCase_ == 3) {\n payloadCase_ = 0;\n payload_ = null;\n }\n donatorBuilder_.clear();\n }\n return this;\n }",
"public DeleteBuild propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public Builder clearDonatie() {\n if (donatieBuilder_ == null) {\n if (payloadCase_ == 5) {\n payloadCase_ = 0;\n payload_ = null;\n onChanged();\n }\n } else {\n if (payloadCase_ == 5) {\n payloadCase_ = 0;\n payload_ = null;\n }\n donatieBuilder_.clear();\n }\n return this;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}"
] | [
"0.77001864",
"0.66708815",
"0.64944535",
"0.6481094",
"0.6338766",
"0.61855394",
"0.6064977",
"0.60344726",
"0.5996293",
"0.5900081",
"0.5863473",
"0.5840561",
"0.58114743",
"0.57600796",
"0.57350534",
"0.5678445",
"0.5633584",
"0.5528899",
"0.5523982",
"0.5518807",
"0.54841524",
"0.5460293",
"0.54320955",
"0.5340334",
"0.5268847",
"0.52595395",
"0.5223761",
"0.5222452",
"0.52221406",
"0.5210178",
"0.5176763",
"0.5169928",
"0.51659787",
"0.5158422",
"0.5158422",
"0.5158422",
"0.5158422",
"0.5157276",
"0.5125125",
"0.5112218",
"0.50933015",
"0.5086833",
"0.5086687",
"0.5083218",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.506315",
"0.5056748",
"0.50510925",
"0.50313354",
"0.50140536",
"0.50140536",
"0.50140536",
"0.50109017",
"0.499604",
"0.49697822",
"0.4953697",
"0.49517077",
"0.49466956",
"0.4943357",
"0.49270678",
"0.48892573",
"0.48674315",
"0.4863479",
"0.4850519",
"0.4849743",
"0.48470914",
"0.48422527",
"0.4832953",
"0.48218986",
"0.4819184",
"0.48138893",
"0.4783772",
"0.47825375",
"0.4782271",
"0.47665593",
"0.47596517",
"0.47596517",
"0.47569987",
"0.4736566",
"0.47206402",
"0.47140142",
"0.47020942",
"0.47013798",
"0.4698224",
"0.46970624",
"0.4694477",
"0.46874738",
"0.4679157",
"0.46690366",
"0.4668642"
] | 0.788844 | 0 |
Returns the builder for the settings used for calls to deleteWorkflow. | public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>
deleteWorkflowOperationSettings() {
return getStubSettingsBuilder().deleteWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public UnaryCallSettings<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowSettings();\n }",
"public OperationCallSettings<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public UnaryCallSettings.Builder<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public io.dstore.values.BooleanValue.Builder getDeleteCampaignBuilder() {\n \n onChanged();\n return getDeleteCampaignFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"public go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<DeleteCatalogRequest, Catalog> deleteCatalogSettings() {\n return deleteCatalogSettings;\n }",
"public DeleteBuilder delete() {\n return new DeleteBuilder(this);\n }",
"public org.naru.park.ParkController.CommonAction.Builder getDeleteSensorBuilder() {\n \n onChanged();\n return getDeleteSensorFieldBuilder().getBuilder();\n }",
"public TaskProtobufWrapper.DeleteTaskPack.Builder getDeleteTaskPackBuilder() {\n return getDeleteTaskPackFieldBuilder().getBuilder();\n }",
"public alluxio.proto.journal.KeyValue.DeleteStoreEntry.Builder getDeleteStoreBuilder() {\n bitField0_ |= 0x00002000;\n onChanged();\n return getDeleteStoreFieldBuilder().getBuilder();\n }",
"public io.dstore.values.IntegerValue.Builder getForceDeleteBuilder() {\n \n onChanged();\n return getForceDeleteFieldBuilder().getBuilder();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<DeleteTableRequest, Table> deleteTableSettings() {\n return deleteTableSettings;\n }",
"public Builder clearDeleteTaskPack() {\n if (deleteTaskPackBuilder_ == null) {\n if (packCase_ == 4) {\n packCase_ = 0;\n pack_ = null;\n onChanged();\n }\n } else {\n if (packCase_ == 4) {\n packCase_ = 0;\n pack_ = null;\n }\n deleteTaskPackBuilder_.clear();\n }\n return this;\n }",
"public UnaryCallSettings<DeleteDatabaseRequest, Database> deleteDatabaseSettings() {\n return deleteDatabaseSettings;\n }",
"public alluxio.proto.journal.Block.DeleteBlockEntry.Builder getDeleteBlockBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getDeleteBlockFieldBuilder().getBuilder();\n }",
"public Builder clearSettings() {\n if (settingsBuilder_ == null) {\n settings_ = Pokemon.ContactSettingsProto.getDefaultInstance();\n onChanged();\n } else {\n settingsBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000200);\n return this;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public RequestDataBuilder delete() {\n\t\tRequest request = new Request(urlPattern, RequestMethod.DELETE);\n\t\tmap.put(request, clazz);\n\t\treturn this;\n\t}",
"public static Builder create(){\n return new Builder(Tribit.ZERO);\n }",
"public edu.usfca.cs.dfs.StorageMessages.DeleteBackUp.Builder getDeleteBackUpBuilder() {\n return getDeleteBackUpFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder(){ return new Builder(); }",
"private com.google.protobuf.SingleFieldBuilderV3<\n go.micro.runtime.RuntimeOuterClass.DeleteOptions, go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder, go.micro.runtime.RuntimeOuterClass.DeleteOptionsOrBuilder> \n getOptionsFieldBuilder() {\n if (optionsBuilder_ == null) {\n optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n go.micro.runtime.RuntimeOuterClass.DeleteOptions, go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder, go.micro.runtime.RuntimeOuterClass.DeleteOptionsOrBuilder>(\n getOptions(),\n getParentForChildren(),\n isClean());\n options_ = null;\n }\n return optionsBuilder_;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public alluxio.proto.journal.File.DeleteFileEntry.Builder getDeleteFileBuilder() {\n bitField0_ |= 0x00000400;\n onChanged();\n return getDeleteFileFieldBuilder().getBuilder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static CustomerDeletedMessagePayloadBuilder builder() {\n return CustomerDeletedMessagePayloadBuilder.of();\n }",
"public Builder setOptions(\n go.micro.runtime.RuntimeOuterClass.DeleteOptions.Builder builderForValue) {\n if (optionsBuilder_ == null) {\n options_ = builderForValue.build();\n onChanged();\n } else {\n optionsBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"private DeleteOptions(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public alluxio.proto.journal.File.DeleteMountPointEntry.Builder getDeleteMountPointBuilder() {\n bitField0_ |= 0x00001000;\n onChanged();\n return getDeleteMountPointFieldBuilder().getBuilder();\n }",
"public Builder clearDeviceSettings() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettings_ = null;\n onChanged();\n } else {\n deviceSettings_ = null;\n deviceSettingsBuilder_ = null;\n }\n\n return this;\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public io.dstore.values.BooleanValue.Builder getDeleteCharacteristicBuilder() {\n \n onChanged();\n return getDeleteCharacteristicFieldBuilder().getBuilder();\n }",
"public org.naru.park.ParkController.CommonAction.Builder getDeleteBeaconBuilder() {\n \n onChanged();\n return getDeleteBeaconFieldBuilder().getBuilder();\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder> \n getDeleteCampaignFieldBuilder() {\n if (deleteCampaignBuilder_ == null) {\n deleteCampaignBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n io.dstore.values.BooleanValue, io.dstore.values.BooleanValue.Builder, io.dstore.values.BooleanValueOrBuilder>(\n getDeleteCampaign(),\n getParentForChildren(),\n isClean());\n deleteCampaign_ = null;\n }\n return deleteCampaignBuilder_;\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public Builder clearSharedTo() {\n copyOnWrite();\n instance.clearSharedTo();\n return this;\n }",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n onChanged();\n }\n } else {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n }\n configBuilder_.clear();\n }\n return this;\n }",
"public Builder clearCreateTaskPack() {\n if (createTaskPackBuilder_ == null) {\n if (packCase_ == 3) {\n packCase_ = 0;\n pack_ = null;\n onChanged();\n }\n } else {\n if (packCase_ == 3) {\n packCase_ = 0;\n pack_ = null;\n }\n createTaskPackBuilder_.clear();\n }\n return this;\n }",
"public Builder setDeleteCampaign(\n io.dstore.values.BooleanValue.Builder builderForValue) {\n if (deleteCampaignBuilder_ == null) {\n deleteCampaign_ = builderForValue.build();\n onChanged();\n } else {\n deleteCampaignBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public Builder clearDelete() {\n copyOnWrite();\n instance.clearDelete();\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public UnaryCallSettings.Builder<CreateDatabaseRequest, Database> createDatabaseSettings() {\n return createDatabaseSettings;\n }",
"public alluxio.proto.journal.Lineage.DeleteLineageEntry.Builder getDeleteLineageBuilder() {\n bitField0_ |= 0x00000800;\n onChanged();\n return getDeleteLineageFieldBuilder().getBuilder();\n }",
"private DeleteTaskPack(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }",
"public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder> \n getDeviceSettingsFieldBuilder() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder>(\n getDeviceSettings(),\n getParentForChildren(),\n isClean());\n deviceSettings_ = null;\n }\n return deviceSettingsBuilder_;\n }",
"private Delete(Builder builder) {\n super(builder);\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public Builder setDeleteTaskPack(\n TaskProtobufWrapper.DeleteTaskPack.Builder builderForValue) {\n if (deleteTaskPackBuilder_ == null) {\n pack_ = builderForValue.build();\n onChanged();\n } else {\n deleteTaskPackBuilder_.setMessage(builderForValue.build());\n }\n packCase_ = 4;\n return this;\n }",
"public Builder clearBuilderConfig() {\n bitField0_ = (bitField0_ & ~0x00000001);\n builderConfig_ = null;\n if (builderConfigBuilder_ != null) {\n builderConfigBuilder_.dispose();\n builderConfigBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"public Builder clearBuild() {\n copyOnWrite();\n instance.clearBuild();\n return this;\n }",
"private SettingsRequest(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public Builder clearFirewall() {\n if (firewallBuilder_ == null) {\n if (stepInfoCase_ == 6) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n onChanged();\n }\n } else {\n if (stepInfoCase_ == 6) {\n stepInfoCase_ = 0;\n stepInfo_ = null;\n }\n firewallBuilder_.clear();\n }\n return this;\n }",
"public Builder clearGenesis() {\n copyOnWrite();\n instance.clearGenesis();\n return this;\n }",
"public Builder clearDonator() {\n if (donatorBuilder_ == null) {\n if (payloadCase_ == 3) {\n payloadCase_ = 0;\n payload_ = null;\n onChanged();\n }\n } else {\n if (payloadCase_ == 3) {\n payloadCase_ = 0;\n payload_ = null;\n }\n donatorBuilder_.clear();\n }\n return this;\n }",
"public DeleteBuild propagationPolicy(String propagationPolicy) {\n put(\"propagationPolicy\", propagationPolicy);\n return this;\n }",
"public Builder clearDonatie() {\n if (donatieBuilder_ == null) {\n if (payloadCase_ == 5) {\n payloadCase_ = 0;\n payload_ = null;\n onChanged();\n }\n } else {\n if (payloadCase_ == 5) {\n payloadCase_ = 0;\n payload_ = null;\n }\n donatieBuilder_.clear();\n }\n return this;\n }",
"public PagedCallSettings<ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).listWorkflowsSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}"
] | [
"0.788844",
"0.66708815",
"0.64944535",
"0.6481094",
"0.6338766",
"0.61855394",
"0.6064977",
"0.60344726",
"0.5996293",
"0.5900081",
"0.5863473",
"0.5840561",
"0.58114743",
"0.57600796",
"0.57350534",
"0.5678445",
"0.5633584",
"0.5528899",
"0.5523982",
"0.5518807",
"0.54841524",
"0.5460293",
"0.54320955",
"0.5340334",
"0.5268847",
"0.52595395",
"0.5223761",
"0.5222452",
"0.52221406",
"0.5210178",
"0.5176763",
"0.5169928",
"0.51659787",
"0.5158422",
"0.5158422",
"0.5158422",
"0.5158422",
"0.5157276",
"0.5125125",
"0.5112218",
"0.50933015",
"0.5086833",
"0.5086687",
"0.5083218",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.5072887",
"0.506315",
"0.5056748",
"0.50510925",
"0.50313354",
"0.50140536",
"0.50140536",
"0.50140536",
"0.50109017",
"0.499604",
"0.49697822",
"0.4953697",
"0.49517077",
"0.49466956",
"0.4943357",
"0.49270678",
"0.48892573",
"0.48674315",
"0.4863479",
"0.4850519",
"0.4849743",
"0.48470914",
"0.48422527",
"0.4832953",
"0.48218986",
"0.4819184",
"0.48138893",
"0.4783772",
"0.47825375",
"0.4782271",
"0.47665593",
"0.47596517",
"0.47596517",
"0.47569987",
"0.4736566",
"0.47206402",
"0.47140142",
"0.47020942",
"0.47013798",
"0.4698224",
"0.46970624",
"0.4694477",
"0.46874738",
"0.4679157",
"0.46690366",
"0.4668642"
] | 0.77001864 | 1 |
Returns the builder for the settings used for calls to updateWorkflow. | public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {
return getStubSettingsBuilder().updateWorkflowSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return getStubSettingsBuilder().updateWorkflowOperationSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder(){ return new Builder(); }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public go.micro.runtime.RuntimeOuterClass.UpdateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder> \n getDeviceSettingsFieldBuilder() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder>(\n getDeviceSettings(),\n getParentForChildren(),\n isClean());\n deviceSettings_ = null;\n }\n return deviceSettingsBuilder_;\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"protected ParametersBuilder getSaveParameters(){\r\n return new ParametersBuilder(\r\n saveOrUpdateParameters(),\r\n getStartUser(),\r\n getDescription()\r\n );\r\n }",
"public alluxio.proto.journal.File.SetAttributeEntry.Builder getSetAttributeBuilder() {\n bitField0_ |= 0x08000000;\n onChanged();\n return getSetAttributeFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<UpdateDatabaseRequest, Database> updateDatabaseSettings() {\n return updateDatabaseSettings;\n }",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"public UnaryCallSettings.Builder<UpdateTableRequest, Table> updateTableSettings() {\n return updateTableSettings;\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"public speech.multilang.Params.ForwardingControllerParams.Builder getForwardingParamsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getForwardingParamsFieldBuilder().getBuilder();\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"public go.micro.runtime.RuntimeOuterClass.ListOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public go.micro.runtime.RuntimeOuterClass.LogsOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> \n getConfigurationFieldBuilder() {\n if (configurationBuilder_ == null) {\n configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(\n getConfiguration(),\n getParentForChildren(),\n isClean());\n configuration_ = null;\n }\n return configurationBuilder_;\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public io.grafeas.v1.BuilderConfig.Builder getBuilderConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBuilderConfigFieldBuilder().getBuilder();\n }",
"Builder makePermanent();",
"protected ParametersBuilder getUpdateParameters(){\r\n return new ParametersBuilder(\r\n getId(),\r\n saveOrUpdateParameters(),\r\n getUpUser(),\r\n getDescription()\r\n );\r\n }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public OptionsBuilder optionsBuilder() {\n OptionsBuilder builder = new OptionsBuilder();\n\n builder.forks(forks);\n builder.warmupIterations(warmupIterations);\n builder.measurementIterations(measurementIterations);\n builder.timeUnit(outputTimeUnit);\n builder.threads(threads);\n\n if (benchmarkModes != null) {\n for (Mode benchmarkMode : benchmarkModes)\n builder.getBenchModes().add(benchmarkMode);\n }\n\n if (benchmarks != null) {\n for (Object benchmark : benchmarks) {\n if (benchmark instanceof Class)\n builder.include(((Class)benchmark).getSimpleName());\n else\n builder.include(benchmark.toString());\n }\n }\n\n if (jvmArgs != null)\n builder.jvmArgs(jvmArgs);\n\n if (output != null)\n builder.output(output);\n\n if (profilers != null) {\n for (Class profiler : profilers)\n builder.addProfiler(profiler);\n }\n\n return builder;\n }",
"public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public speech.multilang.Params.ScoringControllerParams.Builder getScoringParamsBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getScoringParamsFieldBuilder().getBuilder();\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder getVmConfigBuilder() {\n return getVmConfigFieldBuilder().getBuilder();\n }",
"UpdateOperationConfiguration build();",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }"
] | [
"0.71115535",
"0.70803565",
"0.704893",
"0.6864769",
"0.68425846",
"0.6687923",
"0.6632983",
"0.6406872",
"0.6327836",
"0.63113123",
"0.6277428",
"0.61280125",
"0.61222637",
"0.61222637",
"0.61222637",
"0.61222637",
"0.6114015",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.60347193",
"0.6006024",
"0.5979829",
"0.596514",
"0.59547997",
"0.59446865",
"0.59446865",
"0.59446865",
"0.5936098",
"0.59336805",
"0.59081763",
"0.5841388",
"0.5800017",
"0.57967186",
"0.57910454",
"0.5725876",
"0.5699844",
"0.56932867",
"0.56926423",
"0.56782573",
"0.5669315",
"0.5669315",
"0.5669315",
"0.5669315",
"0.5669315",
"0.5669315",
"0.5669315",
"0.56394535",
"0.5632605",
"0.5628938",
"0.5585354",
"0.55548114",
"0.555058",
"0.5538688",
"0.55343765",
"0.553124",
"0.5530506",
"0.551674",
"0.5514797",
"0.55006266",
"0.548285",
"0.5479379",
"0.54571825",
"0.5446357",
"0.54426175",
"0.5418886",
"0.5418886",
"0.5411227",
"0.5396194",
"0.5393932",
"0.53770447",
"0.5363483",
"0.53592",
"0.53592",
"0.53592",
"0.53592",
"0.53495395",
"0.5345054",
"0.5343098",
"0.5343098",
"0.5334356",
"0.5329634",
"0.53274286",
"0.5322245",
"0.53203297",
"0.5319415",
"0.53147495",
"0.5314003",
"0.53000593",
"0.52931637",
"0.5281544",
"0.52644837",
"0.52644837"
] | 0.7274643 | 0 |
Returns the builder for the settings used for calls to updateWorkflow. | public OperationCallSettings.Builder<UpdateWorkflowRequest, Workflow, OperationMetadata>
updateWorkflowOperationSettings() {
return getStubSettingsBuilder().updateWorkflowOperationSettings();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public UnaryCallSettings.Builder<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return getStubSettingsBuilder().updateWorkflowSettings();\n }",
"public UnaryCallSettings.Builder<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return getStubSettingsBuilder().getWorkflowSettings();\n }",
"public Pokemon.ContactSettingsProto.Builder getSettingsBuilder() {\n bitField0_ |= 0x00000200;\n onChanged();\n return getSettingsFieldBuilder().getBuilder();\n }",
"public static RestructuringSettings.Builder builder() {\n return new RestructuringSettings.Builder();\n }",
"public UnaryCallSettings.Builder<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return getStubSettingsBuilder().createWorkflowSettings();\n }",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return getStubSettingsBuilder().createWorkflowOperationSettings();\n }",
"public PagedCallSettings.Builder<\n ListWorkflowsRequest, ListWorkflowsResponse, ListWorkflowsPagedResponse>\n listWorkflowsSettings() {\n return getStubSettingsBuilder().listWorkflowsSettings();\n }",
"@Experimental\n@Immutable\npublic interface SettingsBuilderRequest {\n\n @Nonnull\n Session getSession();\n\n /**\n * Gets the global settings path.\n *\n * @return the global settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getGlobalSettingsPath();\n\n /**\n * Gets the global settings source.\n *\n * @return the global settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getGlobalSettingsSource();\n\n /**\n * Gets the project settings source.\n *\n * @return the project settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getProjectSettingsSource();\n\n /**\n * Gets the project settings path.\n *\n * @return the project settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getProjectSettingsPath();\n\n /**\n * Gets the user settings path.\n *\n * @return the user settings path or {@code null} if none\n */\n @Nonnull\n Optional<Path> getUserSettingsPath();\n\n /**\n * Gets the user settings source.\n *\n * @return the user settings source or {@code null} if none\n */\n @Nonnull\n Optional<Source> getUserSettingsSource();\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Source globalSettingsSource, @Nonnull Source userSettingsSource) {\n return build(session, globalSettingsSource, null, userSettingsSource);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session, @Nonnull Path globalSettingsPath, @Nonnull Path userSettingsPath) {\n return build(session, globalSettingsPath, null, userSettingsPath);\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Source globalSettingsSource,\n @Nonnull Source projectSettingsSource,\n @Nonnull Source userSettingsSource) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsSource(nonNull(globalSettingsSource, \"globalSettingsSource cannot be null\"))\n .projectSettingsSource(nonNull(projectSettingsSource, \"projectSettingsSource cannot be null\"))\n .userSettingsSource(nonNull(userSettingsSource, \"userSettingsSource cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequest build(\n @Nonnull Session session,\n @Nonnull Path globalSettingsPath,\n @Nonnull Path projectSettingsPath,\n @Nonnull Path userSettingsPath) {\n return builder()\n .session(nonNull(session, \"session cannot be null\"))\n .globalSettingsPath(nonNull(globalSettingsPath, \"globalSettingsPath cannot be null\"))\n .projectSettingsPath(nonNull(projectSettingsPath, \"projectSettingsPath cannot be null\"))\n .userSettingsPath(nonNull(userSettingsPath, \"userSettingsPath cannot be null\"))\n .build();\n }\n\n @Nonnull\n static SettingsBuilderRequestBuilder builder() {\n return new SettingsBuilderRequestBuilder();\n }\n\n @NotThreadSafe\n class SettingsBuilderRequestBuilder {\n Session session;\n Path globalSettingsPath;\n Source globalSettingsSource;\n Path projectSettingsPath;\n Source projectSettingsSource;\n Path userSettingsPath;\n Source userSettingsSource;\n\n public SettingsBuilderRequestBuilder session(Session session) {\n this.session = session;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsPath(Path globalSettingsPath) {\n this.globalSettingsPath = globalSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder globalSettingsSource(Source globalSettingsSource) {\n this.globalSettingsSource = globalSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsPath(Path projectSettingsPath) {\n this.projectSettingsPath = projectSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder projectSettingsSource(Source projectSettingsSource) {\n this.projectSettingsSource = projectSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsPath(Path userSettingsPath) {\n this.userSettingsPath = userSettingsPath;\n return this;\n }\n\n public SettingsBuilderRequestBuilder userSettingsSource(Source userSettingsSource) {\n this.userSettingsSource = userSettingsSource;\n return this;\n }\n\n public SettingsBuilderRequest build() {\n return new DefaultSettingsBuilderRequest(\n session,\n globalSettingsPath,\n globalSettingsSource,\n projectSettingsPath,\n projectSettingsSource,\n userSettingsPath,\n userSettingsSource);\n }\n\n private static class DefaultSettingsBuilderRequest extends BaseRequest implements SettingsBuilderRequest {\n private final Path globalSettingsPath;\n private final Source globalSettingsSource;\n private final Path projectSettingsPath;\n private final Source projectSettingsSource;\n private final Path userSettingsPath;\n private final Source userSettingsSource;\n\n @SuppressWarnings(\"checkstyle:ParameterNumber\")\n DefaultSettingsBuilderRequest(\n @Nonnull Session session,\n @Nullable Path globalSettingsPath,\n @Nullable Source globalSettingsSource,\n @Nullable Path projectSettingsPath,\n @Nullable Source projectSettingsSource,\n @Nullable Path userSettingsPath,\n @Nullable Source userSettingsSource) {\n super(session);\n this.globalSettingsPath = globalSettingsPath;\n this.globalSettingsSource = globalSettingsSource;\n this.projectSettingsPath = projectSettingsPath;\n this.projectSettingsSource = projectSettingsSource;\n this.userSettingsPath = userSettingsPath;\n this.userSettingsSource = userSettingsSource;\n }\n\n @Nonnull\n @Override\n public Optional<Path> getGlobalSettingsPath() {\n return Optional.ofNullable(globalSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getGlobalSettingsSource() {\n return Optional.ofNullable(globalSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getProjectSettingsPath() {\n return Optional.ofNullable(projectSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getProjectSettingsSource() {\n return Optional.ofNullable(projectSettingsSource);\n }\n\n @Nonnull\n @Override\n public Optional<Path> getUserSettingsPath() {\n return Optional.ofNullable(userSettingsPath);\n }\n\n @Nonnull\n @Override\n public Optional<Source> getUserSettingsSource() {\n return Optional.ofNullable(userSettingsSource);\n }\n }\n }\n}",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public static Builder builder() {\n return new Builder().defaults();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder(){ return new Builder(); }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public static Builder builder ()\n {\n\n return new Builder ();\n\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public static Builder builder() {\n return new Builder();\n }",
"public UnaryCallSettings.Builder<DeleteWorkflowRequest, Operation> deleteWorkflowSettings() {\n return getStubSettingsBuilder().deleteWorkflowSettings();\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public OperationCallSettings.Builder<DeleteWorkflowRequest, Empty, OperationMetadata>\n deleteWorkflowOperationSettings() {\n return getStubSettingsBuilder().deleteWorkflowOperationSettings();\n }",
"public UnaryCallSettings<CreateWorkflowRequest, Operation> createWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowSettings();\n }",
"public go.micro.runtime.RuntimeOuterClass.UpdateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"private com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder> \n getSettingsFieldBuilder() {\n if (settingsBuilder_ == null) {\n settingsBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n Pokemon.ContactSettingsProto, Pokemon.ContactSettingsProto.Builder, Pokemon.ContactSettingsProtoOrBuilder>(\n getSettings(),\n getParentForChildren(),\n isClean());\n settings_ = null;\n }\n return settingsBuilder_;\n }",
"public UnaryCallSettings<UpdateWorkflowRequest, Operation> updateWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowSettings();\n }",
"public AriBuilder builder() {\n if ( builder == null ) {\n throw new IllegalArgumentException(\"This version has no builder. Library error for :\" + this.name());\n } else {\n return builder;\n }\n }",
"public OperationCallSettings<UpdateWorkflowRequest, Workflow, OperationMetadata>\n updateWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).updateWorkflowOperationSettings();\n }",
"public static NodeConfigBuilder builder() {\n\t\treturn new NodeConfigBuilder();\n\t}",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public static BitmovinApiBuilder<AdaptationsetsApi> builder() {\n return new BitmovinApiBuilder<>(AdaptationsetsApi.class);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public Builder toBuilder() {\n return new Builder(this);\n }",
"public UnaryCallSettings<GetWorkflowRequest, Workflow> getWorkflowSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).getWorkflowSettings();\n }",
"public static StandalonePriceSetValidFromActionBuilder builder() {\n return StandalonePriceSetValidFromActionBuilder.of();\n }",
"public OperationCallSettings<CreateWorkflowRequest, Workflow, OperationMetadata>\n createWorkflowOperationSettings() {\n return ((WorkflowsStubSettings) getStubSettings()).createWorkflowOperationSettings();\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder> \n getDeviceSettingsFieldBuilder() {\n if (deviceSettingsBuilder_ == null) {\n deviceSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n google.maps.fleetengine.v1.DeviceSettings, google.maps.fleetengine.v1.DeviceSettings.Builder, google.maps.fleetengine.v1.DeviceSettingsOrBuilder>(\n getDeviceSettings(),\n getParentForChildren(),\n isClean());\n deviceSettings_ = null;\n }\n return deviceSettingsBuilder_;\n }",
"public KafkaRequestParam.Builder getRequestBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getRequestFieldBuilder().getBuilder();\n }",
"protected ParametersBuilder getSaveParameters(){\r\n return new ParametersBuilder(\r\n saveOrUpdateParameters(),\r\n getStartUser(),\r\n getDescription()\r\n );\r\n }",
"public alluxio.proto.journal.File.SetAttributeEntry.Builder getSetAttributeBuilder() {\n bitField0_ |= 0x08000000;\n onChanged();\n return getSetAttributeFieldBuilder().getBuilder();\n }",
"public go.micro.runtime.RuntimeOuterClass.CreateOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public UnaryCallSettings.Builder<UpdateDatabaseRequest, Database> updateDatabaseSettings() {\n return updateDatabaseSettings;\n }",
"protected Builder stateBuilder() {\n return this.stateBuilder();\n }",
"public UnaryCallSettings.Builder<UpdateTableRequest, Table> updateTableSettings() {\n return updateTableSettings;\n }",
"public com.google.cloud.datafusion.v1beta1.CryptoKeyConfig.Builder getCryptoKeyConfigBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getCryptoKeyConfigFieldBuilder().getBuilder();\n }",
"public speech.multilang.Params.ForwardingControllerParams.Builder getForwardingParamsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getForwardingParamsFieldBuilder().getBuilder();\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"public Builder() {\r\n // setting default values\r\n configurationBuilder.httpStatusCodesToRetry(Stream.of(408, 413, 429, 500, 502, 503, 504,\r\n 521, 522, 524).collect(Collectors.toSet()));\r\n configurationBuilder.httpMethodsToRetry(Stream.of(Method.GET,\r\n Method.PUT).collect(Collectors.toSet()));\r\n }",
"static Builder builder() {\n return new SourceContextImpl.Builder();\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder create() {\n\t\treturn new Builder();\n\t}",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public Package.Builder getBuilder() {\n return pkgBuilder;\n }",
"public go.micro.runtime.RuntimeOuterClass.ListOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"@Override // ohos.global.icu.impl.duration.PeriodBuilderImpl\r\n public PeriodBuilder withSettings(BasicPeriodBuilderFactory.Settings settings) {\r\n return get(this.unit, settings);\r\n }",
"public go.micro.runtime.RuntimeOuterClass.LogsOptions.Builder getOptionsBuilder() {\n \n onChanged();\n return getOptionsFieldBuilder().getBuilder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> \n getConfigurationFieldBuilder() {\n if (configurationBuilder_ == null) {\n configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(\n getConfiguration(),\n getParentForChildren(),\n isClean());\n configuration_ = null;\n }\n return configurationBuilder_;\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public static Builder newBuilder() {\n return Builder.createDefault();\n }",
"public io.grafeas.v1.BuilderConfig.Builder getBuilderConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getBuilderConfigFieldBuilder().getBuilder();\n }",
"Builder makePermanent();",
"protected ParametersBuilder getUpdateParameters(){\r\n return new ParametersBuilder(\r\n getId(),\r\n saveOrUpdateParameters(),\r\n getUpUser(),\r\n getDescription()\r\n );\r\n }",
"public static Builder<?> builder() {\n return new Builder2();\n }",
"public UnaryCallSettings.Builder<GetDatabaseRequest, Database> getDatabaseSettings() {\n return getDatabaseSettings;\n }",
"public OptionsBuilder optionsBuilder() {\n OptionsBuilder builder = new OptionsBuilder();\n\n builder.forks(forks);\n builder.warmupIterations(warmupIterations);\n builder.measurementIterations(measurementIterations);\n builder.timeUnit(outputTimeUnit);\n builder.threads(threads);\n\n if (benchmarkModes != null) {\n for (Mode benchmarkMode : benchmarkModes)\n builder.getBenchModes().add(benchmarkMode);\n }\n\n if (benchmarks != null) {\n for (Object benchmark : benchmarks) {\n if (benchmark instanceof Class)\n builder.include(((Class)benchmark).getSimpleName());\n else\n builder.include(benchmark.toString());\n }\n }\n\n if (jvmArgs != null)\n builder.jvmArgs(jvmArgs);\n\n if (output != null)\n builder.output(output);\n\n if (profilers != null) {\n for (Class profiler : profilers)\n builder.addProfiler(profiler);\n }\n\n return builder;\n }",
"public static RwjlTmTjmx.Builder builder() {\n return new RwjlTmTjmx.Builder();\n }",
"public speech.multilang.Params.ScoringControllerParams.Builder getScoringParamsBuilder() {\n bitField0_ |= 0x00000002;\n onChanged();\n return getScoringParamsFieldBuilder().getBuilder();\n }",
"public io.envoyproxy.envoy.extensions.wasm.v3.VmConfig.Builder getVmConfigBuilder() {\n return getVmConfigFieldBuilder().getBuilder();\n }",
"UpdateOperationConfiguration build();",
"static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }",
"public static Builder newBuilder() {\n return new Builder();\n }"
] | [
"0.7273282",
"0.7111803",
"0.70493084",
"0.6864641",
"0.68428123",
"0.6688344",
"0.66328233",
"0.64066523",
"0.63284016",
"0.631149",
"0.62780654",
"0.61275214",
"0.6122878",
"0.6122878",
"0.6122878",
"0.6122878",
"0.61145097",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.6035396",
"0.60063994",
"0.5980939",
"0.5965494",
"0.595522",
"0.5945381",
"0.5945381",
"0.5945381",
"0.59350836",
"0.5933809",
"0.59068054",
"0.5841852",
"0.57980704",
"0.57979107",
"0.57899916",
"0.57265276",
"0.5698435",
"0.56932175",
"0.56923777",
"0.56773734",
"0.56700885",
"0.56700885",
"0.56700885",
"0.56700885",
"0.56700885",
"0.56700885",
"0.56700885",
"0.5639954",
"0.56325334",
"0.5628773",
"0.5585131",
"0.5556243",
"0.5551118",
"0.5538755",
"0.55343467",
"0.5530238",
"0.5529054",
"0.55169606",
"0.5512959",
"0.549977",
"0.54838735",
"0.54790443",
"0.54560506",
"0.54466254",
"0.54417765",
"0.54197806",
"0.54197806",
"0.54114485",
"0.5396573",
"0.5392656",
"0.53770024",
"0.53625387",
"0.53593796",
"0.53593796",
"0.53593796",
"0.53593796",
"0.5350302",
"0.53452367",
"0.53429157",
"0.53429157",
"0.53348017",
"0.5330227",
"0.53262717",
"0.53233176",
"0.53193474",
"0.5318844",
"0.53154075",
"0.53149885",
"0.5298719",
"0.52918977",
"0.5281743",
"0.52646744",
"0.52646744"
] | 0.70789295 | 2 |
Get all the concepts complying with the given descriptor. Strict determines a filter for the concepts based on version info | public static IDescribable getFirst( Collection<? extends IDescribable> results )
{
if(( results == null ) || ( results.size() == 0 ))
return null;
return results.iterator().next();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract List<String> getValidDescriptors();",
"@SuppressWarnings({\n \"static-method\", \"unchecked\"\n })\n private ConceptList findAvailableEditingConcepts(Translation translation,\n PfsParameter pfs, WorkflowService service) throws Exception {\n\n // Cleanse PFS parameter to turn \"concept\" fields into concept refset member\n // fields\n final PfsParameter localPfs =\n pfs == null ? new PfsParameterJpa() : new PfsParameterJpa(pfs);\n if (localPfs.getSortField() != null\n && localPfs.getSortField().equals(\"name\")) {\n localPfs.setSortField(\"conceptName\");\n }\n if (localPfs.getSortField() != null\n && localPfs.getSortField().equals(\"terminologyId\")) {\n localPfs.setSortField(\"conceptId\");\n }\n if (localPfs.getSortField() != null\n && localPfs.getSortField().equals(\"workflowStatus\")) {\n localPfs.setSortField(null);\n }\n\n // Members of the refset\n // That do not have concepts in the translation\n String queryStr = \"select a from ConceptRefsetMemberJpa a, RefsetJpa b \"\n + \"where b.id = :refsetId and a.refset = b \" + \"and a.conceptId NOT IN \"\n + \"(select d.terminologyId from TranslationJpa c, ConceptJpa d \"\n + \" where c.refset = b AND d.translation = c AND c.id = :translationId )\";\n\n List<ConceptRefsetMember> results = null;\n final ConceptListJpa list = new ConceptListJpa();\n int totalCount = 0;\n // No need to use applyPfsToList if there is not a filter\n if (localPfs.getQueryRestriction() == null\n || localPfs.getQueryRestriction().isEmpty()) {\n\n Query ctQuery = ((RootServiceJpa) service).getEntityManager().createQuery(\n \"select count(*) from ConceptRefsetMemberJpa a, RefsetJpa b \"\n + \"where b.id = :refsetId and a.refset = b \"\n + \"and a.conceptId NOT IN \"\n + \"(select d.terminologyId from TranslationJpa c, ConceptJpa d \"\n + \" where c.refset = b AND d.translation = c AND c.id = :translationId )\");\n ctQuery.setParameter(\"refsetId\", translation.getRefset().getId());\n ctQuery.setParameter(\"translationId\", translation.getId());\n\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, localPfs);\n query.setParameter(\"refsetId\", translation.getRefset().getId());\n query.setParameter(\"translationId\", translation.getId());\n results = query.getResultList();\n totalCount = ((Long) ctQuery.getSingleResult()).intValue();\n }\n\n // Use applyPfsToList if there is a filter\n else {\n\n // Remove query restriction, add it back in later.\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, null);\n query.setParameter(\"refsetId\", translation.getRefset().getId());\n query.setParameter(\"translationId\", translation.getId());\n int[] totalCt = new int[1];\n results = query.getResultList();\n results = service.applyPfsToList(results, ConceptRefsetMember.class,\n totalCt, localPfs);\n totalCount = totalCt[0];\n }\n\n // Repackage as a concept list\n for (final ConceptRefsetMember member : results) {\n final Concept concept = new ConceptJpa();\n concept.setActive(member.isActive());\n concept.setModuleId(member.getModuleId());\n concept.setTerminologyId(member.getConceptId());\n concept.setName(member.getConceptName());\n list.getObjects().add(concept);\n }\n list.setTotalCount(totalCount);\n\n return list;\n\n }",
"public ArrayList<Concept> getAllConcepts() {\n \treturn this.concepts.getAllContents();\n }",
"public Collection<Requirement> getGenericRequirements();",
"private void findConceptsForInstances() {\n\t\tfor (int i = 0; i < INPUT.length; i++)\n\t\t\tINPUT[i] = taxonomyMap.get(INPUT[i]).parent.value;\n\n\t\tfor (int i = 0; i < OUTPUT.length; i++)\n\t\t\tOUTPUT[i] = taxonomyMap.get(OUTPUT[i]).parent.value;\n\n\t\tavailableInputs = new HashSet<String>(Arrays.asList(INPUT));\n\t\trequiredOutputs = new HashSet<String>(Arrays.asList(OUTPUT));\n\n\t\tfor (ServiceNode s : serviceMap.values()) {\n\t\t\tSet<String> inputs = s.getInputs();\n\t\t\tSet<String> newInputs = new HashSet<String>();\n\n\t\t\tfor (String i : inputs)\n\t\t\t\tnewInputs.add(taxonomyMap.get(i).parent.value);\n\t\t\ts.setInputs(newInputs);\n\n\t\t\tSet<String> outputs = s.getOutputs();\n\t\t\tSet<String> newOutputs = new HashSet<String>();\n\n\t\t\tfor (String i : outputs)\n\t\t\t\tnewOutputs.add(taxonomyMap.get(i).parent.value);\n\t\t\ts.setOutputs(newOutputs);\n\t\t}\n\t}",
"ImmutableList<SchemaOrgType> getLearningResourceTypeList();",
"private List<Concept> getConceptList(String id, Terminology terminology, IncludeParam ip)\n throws JsonMappingException, JsonProcessingException {\n Optional<ElasticObject> esObject = getElasticObject(id, terminology);\n if (!esObject.isPresent()) {\n return Collections.<Concept> emptyList();\n }\n\n List<Concept> concepts = esObject.get().getConcepts();\n return ConceptUtils.applyInclude(concepts, ip);\n }",
"private void findConceptsForInstances() {\n\t\tSet<String> temp = new HashSet<String>();\n\n\t\tfor (String s : taskInput)\n\t\t\ttemp.add(taxonomyMap.get(s).parents.get(0).value);\n\t\ttaskInput.clear();\n\t\ttaskInput.addAll(temp);\n\n\t\ttemp.clear();\n\t\tfor (String s : taskOutput)\n\t\t\ttemp.add(taxonomyMap.get(s).parents.get(0).value);\n\t\ttaskOutput.clear();\n\t\ttaskOutput.addAll(temp);\n\n\t\tfor (Node s : serviceMap.values()) {\n\t\t\ttemp.clear();\n\t\t\tSet<String> inputs = s.getInputs();\n\t\t\tfor (String i : inputs)\n\t\t\t\ttemp.add(taxonomyMap.get(i).parents.get(0).value);\n\t\t\tinputs.clear();\n\t\t\tinputs.addAll(temp);\n\n\t\t\ttemp.clear();\n\t\t\tSet<String> outputs = s.getOutputs();\n\t\t\tfor (String o : outputs)\n\t\t\t\ttemp.add(taxonomyMap.get(o).parents.get(0).value);\n\t\t\toutputs.clear();\n\t\t\toutputs.addAll(temp);\n\t\t}\n\t}",
"private List<BeaconConcept> filterSemanticGroup(List<BeaconConcept> concepts, List<String> types) {\n\t\t\n\t\tif (types.isEmpty()) return concepts;\n\t\t\n\t\tPredicate<BeaconConcept> hasType = n -> !Collections.disjoint(types, n.getCategories());\n\t\tconcepts = Util.filter(hasType, concepts);\n\t\t\n\t\treturn concepts;\n\t}",
"@SuppressWarnings({\n \"static-method\", \"unchecked\"\n })\n private ConceptList findAvailableReviewConcepts(Translation translation,\n PfsParameter pfs, WorkflowService service) throws Exception {\n\n // Concepts of the translation with\n // workflow status in a certain state\n // that do not yet have tracking records\n final String queryStr =\n \"select a from ConceptJpa a, TranslationJpa b, TrackingRecordJpa c \"\n + \"where a.translation = b and c.translation = b \"\n + \"and a = c.concept and a.workflowStatus = :editingDone \"\n + \"and b.id = :translationId\";\n\n /*\n * final String queryStr =\n * \"select a from ConceptJpa a, TranslationJpa b, TrackingRecordJpa c \" +\n * \"where a.translation = b and c.translation = b \" +\n * \"and a = c.concept and a.workflowStatus = :reviewDone \" +\n * \"and b.id = :translationId and c in (select t from TrackingRecordJpa t join t.reviewers group by t having count(*) = 1)\"\n * ;\n */\n List<Concept> results = null;\n final ConceptListJpa list = new ConceptListJpa();\n int totalCount = 0;\n // No need to use applyPfsToList if there is not a filter\n if (pfs != null && (pfs.getQueryRestriction() == null\n || pfs.getQueryRestriction().isEmpty())) {\n\n final Query ctQuery =\n ((RootServiceJpa) service).getEntityManager().createQuery(\n \"select count(*) from ConceptJpa a, TranslationJpa b, TrackingRecordJpa c \"\n + \"where a.translation = b and c.translation = b \"\n + \"and a = c.concept and a.workflowStatus = :editingDone \"\n + \"and b.id = :translationId\");\n ctQuery.setParameter(\"editingDone\", WorkflowStatus.EDITING_DONE);\n ctQuery.setParameter(\"translationId\", translation.getId());\n\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, pfs);\n query.setParameter(\"editingDone\", WorkflowStatus.EDITING_DONE);\n query.setParameter(\"translationId\", translation.getId());\n results = query.getResultList();\n totalCount = ((Long) ctQuery.getSingleResult()).intValue();\n }\n\n // Use applyPfsToList if there is a filter\n else {\n\n // Remove query restriction, add it back in later.\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, null);\n query.setParameter(\"editingDone\", WorkflowStatus.EDITING_DONE);\n query.setParameter(\"translationId\", translation.getId());\n int[] totalCt = new int[1];\n results = query.getResultList();\n results = service.applyPfsToList(results, Concept.class, totalCt, pfs);\n totalCount = totalCt[0];\n }\n\n list.getObjects().addAll(results);\n list.setTotalCount(totalCount);\n\n return list;\n\n }",
"List<Constraint> getQualifier();",
"ImmutableList<ResourceRequirement> getRequirements();",
"Set<Concept> getSubclasses(Concept concept);",
"public interface IFlexoOntologyConcept<TA extends TechnologyAdapter<TA>> extends IFlexoOntologyObject<TA> {\n\t/**\n\t * Ontology of Concept.\n\t * \n\t * @return\n\t */\n\tpublic IFlexoOntology<TA> getOntology();\n\n\t/**\n\t * Annotation upon Concept.\n\t * \n\t * @return\n\t */\n\tpublic List<? extends IFlexoOntologyAnnotation> getAnnotations();\n\n\t/**\n\t * Container of Concept.\n\t * \n\t * @return\n\t */\n\tpublic IFlexoOntologyConceptContainer<TA> getContainer();\n\n\t/**\n\t * Association with structural features for Concept.\n\t * \n\t * @return\n\t */\n\tpublic List<? extends IFlexoOntologyFeatureAssociation<TA>> getStructuralFeatureAssociations();\n\n\t/**\n\t * Association with behavioural features for Concept.\n\t * \n\t * @return\n\t */\n\tpublic List<? extends IFlexoOntologyFeatureAssociation<TA>> getBehaviouralFeatureAssociations();\n\n\t/**\n\t * \n\t * Is this a Super Concept of concept.\n\t * \n\t * @return\n\t */\n\tpublic boolean isSuperConceptOf(IFlexoOntologyConcept<TA> concept);\n\n\t/**\n\t * \n\t * Is this a Sub Concept of concept.\n\t * \n\t * @return\n\t */\n\tpublic boolean isSubConceptOf(IFlexoOntologyConcept<TA> concept);\n\n\t/**\n\t * Visitor access.\n\t * \n\t * @param visitor\n\t * @return\n\t * \n\t * @pattern visitor\n\t */\n\tpublic <T> T accept(IFlexoOntologyConceptVisitor<T> visitor);\n\n\t/**\n\t * This equals has a particular semantics (differs from {@link #equals(Object)} method) in the way that it returns true only and only if\n\t * compared objects are representing same concept regarding URI. This does not guarantee that both objects will respond the same way to\n\t * some methods.<br>\n\t * This method returns true if and only if objects are same, or if one of both object redefine the other one (with eventual many levels)\n\t * \n\t * @param o\n\t * @return\n\t */\n\tpublic boolean equalsToConcept(IFlexoOntologyConcept<TA> concept);\n\n\t/**\n\t * Return all properties accessible in the scope of this ontology object, where declared domain is this object\n\t * \n\t * @return\n\t */\n\n}",
"private void sync() {\n\t\t// stop sync time\n \t\tsyncTimer.stop();\n\n\t\t// long time = System.currentTimeMillis();\n\n\t\t// copy concept list\n\t\tList<ReportConcept> allConcepts = new ArrayList<ReportConcept>();\n\t\tsynchronized (concepts) {\n\t\t\tallConcepts.addAll(concepts);\n\t\t}\n\n\t\t// do sync\n\t\tsynchronized (removedConcepts) {\n\t\t\t// lets see if we can removed concepts\n\t\t\t// and refines\n\t\t\tfor (ReportConcept c : removedConcepts) {\n\t\t\t\tConceptEntry e = c.getConceptEntry();\n\t\t\t\t// if concept is not in interface, add it\n\t\t\t\tif (reportInterface.getConceptEntry(e) != null) {\n\t\t\t\t\t// see if removed concept was replace w/ new more\n\t\t\t\t\t// general/specific concept\n\t\t\t\t\t// if not, it is a simple remove, else it is a refine\n\t\t\t\t\tReportConcept n = getRelatedConcept(c);\n\t\t\t\t\tif (n == null) {\n\t\t\t\t\t\treportInterface.removeConceptEntry(e);\n\t\t\t\t\t} else \tif(n.isAttribute()){\n\t\t\t\t\t\t// if related concept is a left over attribute, then remove it\n\t\t\t\t\t\tconcepts.remove(n);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// when refining, we want to retain feature information\n\t\t\t\t\t\tn.getConceptEntry().setFeature(e.getFeature());\n\n\t\t\t\t\t\t// now do a refine\n\t\t\t\t\t\treportInterface.refineConceptEntry(e, n.getConceptEntry());\n\t\t\t\t\t\tallConcepts.remove(n);\n\t\t\t\t\t\trepaintConcept(n);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clear removed concepts\n\t\t\tremovedConcepts.clear();\n\t\t}\n\n\t\t// lets see if we can add concepts\n\t\tfor (ReportConcept c : allConcepts) {\n\t\t\tConceptEntry e = c.getConceptEntry();\n\n\t\t\t// if concept is not in interface, add it\n\t\t\tConceptEntry o = reportInterface.getConceptEntry(e);\n\t\t\tif (o == null) {\n\t\t\t\t// add concept if not some stray attribute by itself\n\t\t\t\tif(!e.isAttribute())\n\t\t\t\t\treportInterface.addConceptEntry(e);\n\t\t\t} else {\n\t\t\t\tReportConcept or = ReportConcept.getReportConcept(o, reportInterface);\n\t\t\t\t// now lets check if negation status changed\n\t\t\t\tif ((c.isNegated() != or.isNegated())) {\n\t\t\t\t\t// if new concept is absent, add negation\n\t\t\t\t\tif (c.isNegated()) {\n\t\t\t\t\t\treportInterface.addConceptEntry(c.getNegation().getConceptEntry());\n\t\t\t\t\t\t// otherwise remove negation\n\t\t\t\t\t} else if (or.isNegated()) {\n\t\t\t\t\t\treportInterface.removeConceptEntry(or.getNegation().getConceptEntry());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// such concept does exist in\n\t\t\t\te.copyConceptStatus(o);\n\t\t\t}\n\t\t\trepaintConcept(c);\n\t\t}\n\n\t\treportInterface.debug(\"--\\nparsed concepts in document:\\t\" + concepts);\n\t\treportInterface.debug();\n\t\t// System.out.println(\"sync time \"+(System.currentTimeMillis()-time));\n\t}",
"@SuppressWarnings({\n \"static-method\", \"unchecked\"\n })\n private ConceptList findAvailableReview2Concepts(Translation translation,\n PfsParameter pfs, WorkflowService service) throws Exception {\n\n // Concepts of the translation with\n // workflow status in a certain state\n // that do not yet have tracking records\n\n final String queryStr =\n \"select a from ConceptJpa a, TranslationJpa b, TrackingRecordJpa c \"\n + \"where a.translation = b and c.translation = b \"\n + \"and a = c.concept and a.workflowStatus = :reviewDone \"\n + \"and b.id = :translationId and c in (select t from TrackingRecordJpa t join t.reviewers group by t having count(*) = 1)\";\n\n List<Concept> results = null;\n final ConceptListJpa list = new ConceptListJpa();\n int totalCount = 0;\n // No need to use applyPfsToList if there is not a filter\n if (pfs != null && (pfs.getQueryRestriction() == null\n || pfs.getQueryRestriction().isEmpty())) {\n\n final Query ctQuery =\n ((RootServiceJpa) service).getEntityManager().createQuery(\n \"select count(*) from ConceptJpa a, TranslationJpa b, TrackingRecordJpa c \"\n + \"where a.translation = b and c.translation = b \"\n + \"and a = c.concept and a.workflowStatus = :reviewDone \"\n + \"and b.id = :translationId and c in (select t from TrackingRecordJpa t join t.reviewers group by t having count(*) = 1)\");\n ctQuery.setParameter(\"reviewDone\", WorkflowStatus.REVIEW_DONE);\n ctQuery.setParameter(\"translationId\", translation.getId());\n\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, pfs);\n query.setParameter(\"reviewDone\", WorkflowStatus.REVIEW_DONE);\n query.setParameter(\"translationId\", translation.getId());\n results = query.getResultList();\n totalCount = ((Long) ctQuery.getSingleResult()).intValue();\n }\n\n // Use applyPfsToList if there is a filter\n else {\n\n // Remove query restriction, add it back in later.\n final Query query =\n ((RootServiceJpa) service).applyPfsToJqlQuery(queryStr, null);\n query.setParameter(\"reviewDone\", WorkflowStatus.REVIEW_DONE);\n query.setParameter(\"translationId\", translation.getId());\n int[] totalCt = new int[1];\n results = query.getResultList();\n results = service.applyPfsToList(results, Concept.class, totalCt, pfs);\n totalCount = totalCt[0];\n }\n\n list.getObjects().addAll(results);\n list.setTotalCount(totalCount);\n\n return list;\n\n }",
"Concept getConcept(String id);",
"public interface SimpleRestriction extends SchemaComponent {\n public static final String ENUMERATION_PROPERTY = \"enumerations\";\n public static final String PATTERN_PROPERTY = \"patterns\";\n public static final String MIN_EXCLUSIVE_PROPERTY = \"minExclusives\";\n public static final String MIN_LENGTH_PROPERTY = \"minLengths\";\n public static final String MAX_LENGTH_PROPERTY = \"maxLengths\";\n public static final String FRACTION_DIGITS_PROPERTY = \"fractionDigits\";\n public static final String WHITESPACE_PROPERTY = \"whitespaces\";\n public static final String MAX_INCLUSIVE_PROPERTY = \"maxInclusives\";\n public static final String TOTAL_DIGITS_PROPERTY = \"totalDigits\";\n public static final String LENGTH_PROPERTY = \"lengths\";\n public static final String MIN_INCLUSIVE_PROPERTY = \"minInclusives\";\n public static final String MAX_EXCLUSIVE_PROPERTY = \"maxExclusives\";\n public static final String BASE_PROPERTY = \"base\";\n public static final String INLINETYPE_PROPERTY = \"inlinetype\";\n \n Collection<TotalDigits> getTotalDigits();\n void addTotalDigit(TotalDigits td);\n void removeTotalDigit(TotalDigits td);\n \n Collection<MinExclusive> getMinExclusives();\n void addMinExclusive(MinExclusive me);\n void removeMinExclusive(MinExclusive me);\n \n Collection<MinInclusive> getMinInclusives();\n void addMinInclusive(MinInclusive me);\n void removeMinInclusive(MinInclusive me);\n \n Collection<MinLength> getMinLengths();\n void addMinLength(MinLength ml);\n void removeMinLength(MinLength ml);\n \n Collection<MaxLength> getMaxLengths();\n void addMaxLength(MaxLength ml);\n void removeMaxLength(MaxLength ml);\n \n Collection<Pattern> getPatterns();\n void addPattern(Pattern p);\n void removePattern(Pattern p);\n \n Collection<MaxExclusive> getMaxExclusives();\n void addMaxExclusive(MaxExclusive me);\n void removeMaxExclusive(MaxExclusive me);\n \n Collection<MaxInclusive> getMaxInclusives();\n void addMaxInclusive(MaxInclusive me);\n void removeMaxInclusive(MaxInclusive me);\n \n Collection<Length> getLengths();\n void addLength(Length me);\n void removeLength(Length me);\n \n Collection<Whitespace> getWhitespaces();\n void addWhitespace(Whitespace me);\n void removeWhitespace(Whitespace me);\n \n Collection<FractionDigits> getFractionDigits();\n void addFractionDigits(FractionDigits fd);\n void removeFractionDigits(FractionDigits fd);\n \n Collection<Enumeration> getEnumerations();\n void addEnumeration(Enumeration fd);\n void removeEnumeration(Enumeration fd);\n \n LocalSimpleType getInlineType();\n void setInlineType(LocalSimpleType aSimpleType);\n \n}",
"Set<Concept> getSuperclasses(Concept concept);",
"public List<Constraint> getConstraints();",
"public Set<OWLLogicalAxiom> canWeDoBetter(){\n\t\tSet<Set<OWLClass>> largeSCCs =\n\t\t\t\ttarj.getStronglyConnectComponents().\n\t\t\t\t\t\tstream().\n\t\t\t\t\t\tfilter(x -> x.size() > 1).\n\t\t\t\t\t\tcollect(Collectors.toSet());\n\n\t\t//Add all those axioms which use their own definition on the RHS\n\t\tSet<OWLLogicalAxiom> cycleCausing = new HashSet<>();\n\t\tcycleCausing.addAll(builder.getSelfDefinedAxioms());\n\n\t\tfor(OWLLogicalAxiom axiom : axioms){\n\t\t\tOWLClass name = (OWLClass) AxiomSplitter.getNameofAxiom(axiom);\n\t\t\t\tfor(Set<OWLClass> component : largeSCCs){\n\t\t\t\t\tif(component.contains(name)){\n\t\t\t\t\t\tOWLClassExpression def = AxiomSplitter.getDefinitionofAxiom(axiom);\n\t\t\t\t\t\tSet<OWLClass> defCls = ModuleUtils.getNamedClassesInSignature(def);\n\t\t\t\t\t\tSet<OWLClass> inter = Sets.intersection(component, defCls);\n\t\t\t\t\t\tif(!inter.isEmpty()){\n\t\t\t\t\t\t\tcycleCausing.add(axiom);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\treturn cycleCausing;\n\t}",
"Filters getFiltersWithInferredAnnotations( Filters f, @Nullable Collection<OntologyTerm> mentionedTerms );",
"default List<String> assignedConcepts(Source code, final Set<String> relevant){\n final Context context = Sources.from(code);\n\n final UnitLocation unit = relevant.isEmpty()\n ? locatedCompilationUnit(context)\n : locatedMethod(context, relevant);\n\n if(unit == null) return ImmutableList.of();\n\n return assignedConcepts(unit, 10);\n }",
"@objid (\"be13c135-d5bf-4f14-9794-2c2fbdc9e900\")\n <T extends ResourceType> List<T> getDefinedResourceType(java.lang.Class<T> filterClass);",
"String getConcept();",
"ImmutableList<SchemaOrgType> getAccessibilityAPIList();",
"ImmutableList<SchemaOrgType> getAccessibilityFeatureList();",
"public List<? extends Requirement> getRequirements();",
"ImmutableList<SchemaOrgType> getVersionList();",
"public List<String> getConstituencies() throws HttpNotFoundException, HttpBadRequestException, HttpForbiddenException, HttpFetchException, JsonProcessingException, IOException, URISyntaxException {\n\t\tURIBuilder url = setupUrlFor(GET_CONSTITUENCIES);\n\t\t\n\t\tfinal List<String> constituencyNames = Lists.newArrayList();\t\n\t\tfinal Iterator<JsonNode> elements = objectMapper.readTree(httpFetcher.get(url.build())).elements();\n\t\twhile(elements.hasNext()) {\n\t\t\tJsonNode next = elements.next();\n\t\t\tconstituencyNames.add(next.get(NAME).asText());\n\t\t}\t\t\n\t\treturn constituencyNames;\n\t}",
"default List<String> assignedConcepts(Source code){\n return assignedConcepts(code, ImmutableSet.of());\n }",
"private List<ConceptMinimal> getConceptMinimalList(String id, Terminology terminology)\n throws JsonMappingException, JsonProcessingException {\n Optional<ElasticObject> esObject = getElasticObject(id, terminology);\n if (!esObject.isPresent()) {\n return Collections.<ConceptMinimal> emptyList();\n }\n\n return esObject.get().getConceptMinimals();\n }",
"public IScapSyncSearchFacet[] getFacets();",
"List<ConsentRevocationTermsVersions> findAllByVersionDisabledOrderByAddedDateTimeDesc(Boolean disabled);",
"public DependencySatisfaction satisfied() {\n\t\treturn satisfied(new HashSet<String>(), new HashSet<String>());\n\t}",
"public Set<AlfClass> getSpecializations()\r\n\t{\treturn Collections.unmodifiableSet(this.specializations);\t}",
"@GET\n \t@Path(\"/getAllConceptStatus\")\n \t@Produces({MediaType.APPLICATION_JSON})\n \tpublic ExtJsonFormLoadData<List<GenericStatusView>> getAllConceptStatus() throws BusinessException {\n \t\tList<GenericStatusView> listOfStatus = new ArrayList<GenericStatusView>();\n \t\t\n \t\ttry {\n \t\t\tResourceBundle res = ResourceBundle.getBundle(\"labels\", new EncodedControl(\"UTF-8\"));\n \t\t\tString availableStatusIds[] = res.getString(\"concept-status\").split(\",\");\n \t\t\t\n \t\t\tif (\"\".equals(availableStatusIds[0])) {\n \t\t\t\t//Ids of status for concepts are not set correctly\n \t\t\t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t}\n \t\t\t\n \t for (String id : availableStatusIds) {\n \t \tGenericStatusView conceptStatusView = new GenericStatusView();\n\t \tconceptStatusView.setStatus(Integer.valueOf(id));\n \t \t\n \t \tString label = res.getString(\"concept-status[\"+ id +\"]\");\n \t \tif (label.isEmpty()) {\n \t \t\t//Labels of status are not set correctly\n \t \t\tthrow new BusinessException(\"Error with property file - check values of identifier concept status\", \"check-values-of-concept-status\");\n \t\t\t\t} else {\n \t\t\t\t\tconceptStatusView.setStatusLabel(label);\n \t\t\t\t}\n \t \tlistOfStatus.add(conceptStatusView);\n \t\t\t}\n \t\t} catch (MissingResourceException e) {\n \t\t\tthrow new BusinessException(\"Error with property file - check values of concept status\", \"check-values-of-concept-status\", e);\n \t\t}\n \t\tExtJsonFormLoadData<List<GenericStatusView>> result = new ExtJsonFormLoadData<List<GenericStatusView>>(listOfStatus);\n result.setTotal((long) listOfStatus.size());\n \t\treturn result;\n \t}",
"public static void crdHasV1Beta2Only(KubernetesClient client) {\n for (String kind : AbstractCommand.STRIMZI_KINDS) {\n String crdName = CrdUpgradeCommand.CRD_NAMES.get(kind);\n CustomResourceDefinition crd = client.apiextensions().v1beta1().customResourceDefinitions().withName(crdName).get();\n\n if (kind.equals(\"KafkaTopic\") || kind.equals(\"KafkaUser\")) {\n // KafkaTopic and KafkaUser resources have even in CRD v1 also the old versions v1alpha1 and v1beta1.\n // This is in order to allow smooth migration for the Topic and User Operators without users or topics\n // deleted when the CRDs are upgraded from apiextensions/v1beta1 to apiextensions/v1.\n assertThat(crd.getSpec().getVersions().size(), is(3));\n assertThat(crd.getSpec().getVersions().stream().map(CustomResourceDefinitionVersion::getName).collect(toList()), containsInAnyOrder(\"v1alpha1\", \"v1beta1\", \"v1beta2\"));\n } else {\n assertThat(crd.getSpec().getVersions().size(), is(1));\n assertThat(crd.getSpec().getVersions().stream().map(CustomResourceDefinitionVersion::getName).collect(toList()), contains(\"v1beta2\"));\n }\n }\n }",
"private void processConcepts(Collection<ReportConcept> concepts) {\n\t\t// compact concept list until it stops changing size\n\t\tint previousSize = 0;\n\t\twhile (concepts.size() != previousSize) {\n\t\t\tpreviousSize = concepts.size();\n\t\t\tList<ReportConcept> list = new ArrayList<ReportConcept>(concepts);\n\t\t\tReportConcept previous = list.get(0);\n\t\t\tfor(int i=1;i<list.size();i++){\n\t\t\t\tReportConcept entry = list.get(i);\n\t\t\t\tReportConcept next = ((i+1)<list.size())?list.get(i+1):null;\n\t\t\t\t\n\t\t\t\t// see if we can find a common concept for three entries\n\t\t\t\tReportConcept common = null;\n\t\t\t\tif(next != null)\n\t\t\t\t\tcommon = mergeConcepts(previous, entry, next,concepts);\n\t\t\t\t// if no luck try merge 2 \n\t\t\t\tif(common == null)\n\t\t\t\t\tcommon = mergeConcepts(previous, entry,concepts);\n\t\t\t\t\n\t\t\t\t// if common concept found, then make it a previous concept\n\t\t\t\tif (common != null) \n\t\t\t\t\tentry = common;\n\t\t\t\tprevious = entry;\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"public List<String> getConceptSources(){\n \treturn conceptSources;\n }",
"@Override\n\tpublic Set<OWLEntity> getAllConcepts() {\n\t\tSet<OWLEntity> result = new HashSet<OWLEntity>();\n\t\tresult.addAll(ontology.getClassesInSignature());\n\t\tresult.addAll(ontology.getIndividualsInSignature());\n\t\treturn result;\n\t}",
"public abstract <T extends ReferenceAnnotation> List<ReferenceMetadata<T>> getAvailableVersions(Class<T> cls);",
"public Set list( String constraint ) {\n Set result = new HashSet();\n for( Iterator it = this.rcIterator(); it.hasNext() ; ){\n ReplicaCatalog catalog = (ReplicaCatalog) it.next();\n result.addAll( catalog.list( constraint ) );\n }\n return result;\n\n }",
"ConceptsType createConceptsType();",
"@Programmatic\n public Collection<ObjectSpecification> allSpecifications() {\n return Lists.newArrayList(allCachedSpecifications());\n }",
"java.util.List<com.clarifai.grpc.api.ConceptLanguage> \n getConceptLanguagesList();",
"public interface KubernetesSecretRule extends ExtensionPoint {\n\n /**\n * Check if the secret should be excluded.\n * @param secret secret will be checked.\n * @return true, if the secret should be excluded.\n */\n boolean exclude(V1Secret secret);\n\n static ExtensionList<KubernetesSecretRule> all() {\n return ExtensionList.lookup(KubernetesSecretRule.class);\n }\n\n static boolean shouldExclude(V1Secret secret) {\n ExtensionList<KubernetesSecretRule> filters = all();\n\n return filters.stream().anyMatch(e -> e.exclude(secret));\n }\n\n}",
"public List getResourceTypes(ResourceType resourceType);",
"List<List<String>> getFilters(String resource);",
"public List<IAspectRead> getReadAspects(IPartType partType);",
"Collection<StructuralFeature> getTypedFeatures();",
"public static List<ArchetypeDescriptor> getArchetypeDescriptors(String shortName) {\r\n return getArchetypeDescriptors(new String[]{shortName});\r\n }",
"com.clarifai.grpc.api.ConceptLanguage getConceptLanguages(int index);",
"public Set<IAspectRead> getReadAspects();",
"@RequestMapping(method = RequestMethod.GET, value = \"/recipes\", produces = MediaType.APPLICATION_JSON_VALUE)\n public RecipesDescriptor getRecipes() {\n final Stream<Recipe> stream = StreamSupport.stream(this.recipeRepository.findAll().spliterator(), false);\n\n final List<Recipe> recipes = stream.collect(Collectors.toList());\n return new RecipesDescriptor(recipes);\n }",
"private ReportConcept mergeConcepts(ReportConcept previous, ReportConcept entry, Collection<ReportConcept> concepts){\n\t\tIClass pc = previous.getConceptClass();\n\t\tIClass ec = entry.getConceptClass();\n\t\tIClass common = getDirectCommonChild(pc,ec);\n\t\t\n\t\t// make sure that common ground is valid\n\t\tif(common != null){\n\t\t\t// we can't have two attributes s.a. 3 mm inferring a finding\n\t\t\tif(isFeature(common) && !isFeature(pc) && !isFeature(ec))\n\t\t\t\tcommon = null;\n\t\t\t// check if we are doing the same to diagnosis\n\t\t\tif(isDisease(common) && !isDisease(pc) && !isDisease(ec))\n\t\t\t\tcommon = null;\n\t\t\t\n\t\t\t// if previous concept is in fact more specific then current concept\n\t\t\t//TODO: this breaks depth of invasion 1.3mm\n\t\t\tif(pc.hasSuperClass(ec)){\n\t\t\t\t/*\n\t\t\t\tint stp = previous.getOffset();\n\t\t\t\tint enp = stp+previous.getLength();\n\t\t\t\tint stc = entry.getOffset();\n\t\t\t\tint enc = stc+entry.getLength();\n\t\t\t\t// we only accept common if more specific encompas the more general\n\t\t\t\tif(!(stp <= stc && enc <= enp)){\n\t\t\t\t\tcommon = null;\n\t\t\t\t}*/\n\t\t\t\tif(isSubset(previous.getLabels(),entry.getLabels())){\n\t\t\t\t\tcommon = null;\n\t\t\t\t}\n\t\t\t}else if(pc.hasSubClass(ec)){\n\t\t\t\t/*int stp = pc.getConcept().getOffset();\n\t\t\t\tint enp = stp+pc.getConcept().getText().length();\n\t\t\t\tint stc = ec.getConcept().getOffset();\n\t\t\t\tint enc = stc+ec.getConcept().getText().length();\n\t\t\t\t// we only accept common if more specific encompas the more general\n\t\t\t\tif(!(stc <= stp && enp <= enc)){\n\t\t\t\t\tcommon = null;\n\t\t\t\t}\n\t\t\t\t*/\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t// common ground was found\n\t\tif(common != null){\n\t\t\tReportConcept ne = createReportConcept(common);\n\t\t\tne.addLabels(previous.getLabels());\n\t\t\tne.addLabels(entry.getLabels());\n\t\t\t//ne.addComponent(previous);\n\t\t\t//ne.addComponent(entry);\n\t\t\t\n\t\t\t\n\t\t\t// if new concept is just an old concept\n\t\t\t// then retain the old concept\n\t\t\tif(entry.equals(ne))\n\t\t\t\tne.setConceptEntry(entry.getConceptEntry());\n\t\t\tif(previous.equals(ne))\n\t\t\t\tne.setConceptEntry(previous.getConceptEntry());\n\t\t\t\n\t\t\t\n\t\t\t//CORRECTION: previous should take precedence, MAX was arbitrary\n\t\t\tif(previous.getConceptEntry().hasNumericValue())\n\t\t\t\tne.setNumericValue(previous.getNumericValue());\n\t\t\telse if(entry.getConceptEntry().hasNumericValue())\n\t\t\t\tne.setNumericValue(entry.getNumericValue());\n\t\t\t\n\t\t\t// copy resource link\n\t\t\tif(previous.hasResourceLink())\n\t\t\t\tne.setResourceLink(previous.getResourceLink());\n\t\t\telse if(entry.hasResourceLink())\n\t\t\t\tne.setResourceLink(entry.getResourceLink());\n\t\t\t\n\t\t\t// copy negation\n\t\t\tif(previous.isNegated())\n\t\t\t\tne.setNegation(previous.getNegation());\n\t\t\telse if(entry.isNegated())\n\t\t\t\tne.setNegation(entry.getNegation());\n\t\t\t\t\n\t\t\t// update list\n\t\t\tconcepts.remove(entry);\n\t\t\tconcepts.remove(previous);\n\t\t\tconcepts.add(ne);\n\t\t\n\t\t\treturn ne;\n\t\t}\n\t\treturn null;\n\t}",
"public interface HierarchicalKnowledgeBase {\n\n /**\n * Get the concept with the provided id.\n * @param id Concept ID.\n * @return Concept\n */\n Concept getConcept(String id);\n\n /**\n * Get the instance with the provided id.\n * @param id Instance ID.\n * @return Instance\n */\n Instance getInstance(String id);\n\t/**\n * Get a collection with the subclasses of the provided concept\n * @param concept Concept provided\n * @return collection of subclasses of the concept\n */\n Set<Concept> getSubclasses(Concept concept);\n \n /**\n * Returns a collection containing the superclasses of the provided concept\n * @param concept Concept provided\n * @return collection of subclasses of the concept\n */\n Set<Concept> getSuperclasses(Concept concept);\n \n /**\n * Check if concept x is equivalent to concept y\n * @param x Concept x\n * @param y Concept y\n * @return True if x is equivalent to y\n */\n boolean equivalent(Concept x, Concept y);\n \n /**\n * Check if concept x is subclass of concept y\n * @param x Concept x\n * @param y Concept y\n * @return True if x subclass of y, false in other case.\n */\n boolean isSubclass(Concept x, Concept y);\n \n /**\n * Check if concept x is a subclass of y, false in other case\n * @param x Concept x\n * @param y Concept y\n * @return True if x is a superclass of y\n */\n boolean isSuperclass(Concept x, Concept y);\n \n /**\n * Returns the concept Resource from which this Resource is instance. If\n * the Resource is not an instance, the function returns the same Resource.\n * @param instance Concept or Instance Resource\n * @return Concept parent of the instance.\n */\n Concept resolveInstance(Instance instance);\n \n /**\n * Return all instances of the provided concept.\n * @return {@link Set} with the instances of the concept.\n * If there are no instances, a empty set is returned.\n */\n Set<Instance> getInstances(Concept concept);\n\n /**\n * Return all concepts managed by this KB.\n * @return {@link Set} with all available concepts.\n */\n Set<Concept> getConcepts();\n\n /**\n * Return all instances managed by this KB.\n * @return {@link Set} with all available instances.\n */\n Set<Instance> getInstances();\n}",
"private static List<Filter> enumAtomicFiltersLR(List<ValNode> L, List<ValNode> R, EnumContext ec, boolean allowExists) {\n // L contains all left values, and R contains all right values in a comparator\n List<Filter> atomics = new ArrayList<>();\n for (ValNode l : L) {\n for (ValNode r : R) {\n if (l.equalsToValNode(r)) continue;\n if (l instanceof ConstantVal && r instanceof ConstantVal) continue;\n\n if (l.getType(ec).equals(r.getType(ec))) {\n if (l.getType(ec).equals(ValType.DateVal) || l.getType(ec).equals(ValType.NumberVal)) {\n for (BiFunction<Value, Value, Boolean> func : VVComparator.getAllFunctions()) {\n atomics.add(new VVComparator(Arrays.asList(l, r), func));\n }\n } else {\n atomics.add(new VVComparator(Arrays.asList(l, r), VVComparator.eq));\n atomics.add(new VVComparator(Arrays.asList(l, r), VVComparator.neq));\n\n }\n }\n }\n }\n\n // Enumerate Filter with EXISTS clause, we don't want exists to\n if (allowExists) {\n List<ValNode> allValues = new ArrayList<>();\n allValues.addAll(L);\n allValues.addAll(R);\n allValues.addAll(ec.getValNodes());\n\n List<List<ValNode>> llvns = CombinationGenerator.genCombination(\n allValues, EnumParamTN.numberOfParams);\n for (List<ValNode> vns : llvns) {\n InstantiateEnv ie = new InstantiateEnv(vns, ec);\n atomics.addAll(\n ec.getParameterizedTables().stream().map(tn -> tn.instantiate(ie))\n .filter(t -> t.getAllHoles().size() == 0)\n .map(tn -> new ExistsFilter(tn))\n .collect(Collectors.toList()));\n // Also enumerate not exists\n atomics.addAll(\n ec.getParameterizedTables().stream().map(tn -> tn.instantiate(ie))\n .filter(t -> t.getAllHoles().size() == 0)\n .map(tn -> new ExistsFilter(tn, true))\n .collect(Collectors.toList()));\n }\n }\n\n // Add IS NULL for atomic filters\n // TODO: possibly just ignore it\n Set<ValNode> allValues = new HashSet<>();\n allValues.addAll(L);\n allValues.addAll(R);\n allValues.addAll(ec.getValNodes());\n\n for (ValNode vn : allValues) {\n if (vn instanceof ValHole)\n continue;\n atomics.add(new IsNullFilter(vn, true));\n atomics.add(new IsNullFilter(vn, false));\n }\n\n atomics.add(new EmptyFilter());\n\n return atomics;\n }",
"public abstract List<AbstractRequirement> getRequirements();",
"public interface EntityBasedFilterGenerator extends RuleListComponent {\r\n\r\n /**\r\n * Generates restriction base on supplied entity instance.\r\n * \r\n * @param entityInstReader\r\n * entity instance reader\r\n * @param rule\r\n * the process rule to use (optional)\r\n * @throws UnifyException\r\n * if an error occurs\r\n */\r\n Restriction generate(ValueStoreReader entityInstReader, String rule) throws UnifyException;\r\n}",
"public static List<ArchetypeDescriptor> getArchetypeDescriptors(String shortName, IArchetypeService service) {\r\n return getArchetypeDescriptors(new String[]{shortName}, service);\r\n }",
"<T> List<Suggest<T>> getPossibleValues(ActionDescriptor<? extends ActionInputParameter> actionDescriptor);",
"List<ResourceType> resourceTypes();",
"public interface IComponentDescriptor {\r\n\r\n\t/**\r\n\t * Returns the component type.\r\n\t *\r\n\t * @return class of the described component\r\n\t */\r\n\tClass<?> getComponentType();\r\n\r\n//\t/**\r\n//\t * Returns all properties descriptions (meta-properties) of this component.\r\n//\t *\r\n//\t * @return list of meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getProperties();\r\n\r\n//\t/**\r\n//\t * Returns required properties descriptions (meta-properties) of this component. These properties are required to\r\n//\t * proper component initialization.\r\n//\t *\r\n//\t * @return list of required meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getRequriedProperties();\r\n\r\n//\t/**\r\n//\t * Returns optional properties descriptions (meta-properties) of this component. These properties are not required\r\n//\t * for proper component initialization.\r\n//\t *\r\n//\t * @return list of optional meta properties\r\n//\t */\r\n//\tCollection<MetaProperty> getOptionalProperties();\r\n\r\n\t/**\r\n\t * Returns list containing sequences of parameters types of available constructors.\r\n\t *\r\n\t * @return list of available constructor parameters\r\n\t */\r\n\tList<List<Class<?>>> getConstructorParametersTypes();\r\n\r\n\t/**\r\n\t * Checks if described component contains a property with a given name.\r\n\t *\r\n\t * @param name\r\n\t * name of a property\r\n\t * @return true if this described component contains a needed property\r\n\t */\r\n\tboolean containsProperty(String name);\r\n\r\n}",
"private Set<Permission> getInferredPermissions(DvObject dvo) {\n\n Set<Permission> permissions = EnumSet.noneOf(Permission.class);\n\n if (isPublicallyDownloadable(dvo)) {\n permissions.add(Permission.DownloadFile);\n }\n\n return permissions;\n }",
"public void test_afs_01() {\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <owl:Class rdf:about='http://example.org/foo#A'>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n String sourceA =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#' \"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <rdf:Description rdf:about='http://example.org/foo#x'>\"\n + \" <rdf:type rdf:resource='http://example.org/foo#A' />\"\n + \" </rdf:Description>\"\n + \"</rdf:RDF>\";\n \n Model tBox = ModelFactory.createDefaultModel();\n tBox.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n Model aBox = ModelFactory.createDefaultModel();\n aBox.read(new ByteArrayInputStream(sourceA.getBytes()), \"http://example.org/foo\");\n \n Reasoner reasoner = ReasonerRegistry.getOWLReasoner();\n reasoner = reasoner.bindSchema(tBox);\n \n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM_RULE_INF);\n spec.setReasoner(reasoner);\n \n OntModel m = ModelFactory.createOntologyModel(spec, aBox);\n \n List inds = new ArrayList();\n for (Iterator i = m.listIndividuals(); i.hasNext();) {\n inds.add(i.next());\n }\n \n assertTrue(\"x should be an individual\", inds.contains(m.getResource(\"http://example.org/foo#x\")));\n \n }",
"private void deleteUnwantedFsnAcceptability(Concept c) throws TermServerScriptException {\n\t\tList<Description> fsns = c.getDescriptions(Acceptability.BOTH, DescriptionType.FSN, ActiveState.ACTIVE);\n\t\tif (fsns.size() != 1) {\n\t\t\tString msg = \"Concept has \" + fsns.size() + \" active fsns\";\n\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t} else {\n\t\t\tString msg = \"[\" + fsns.get(0).getDescriptionId() + \"]: \";\n\t\t\tList<LangRefsetEntry> langRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, US_ENG_LANG_REFSET);\n\t\t\tif (langRefEntries.size() != 1) {\n\t\t\t\tif (langRefEntries.size() == 2) {\n\t\t\t\t\tList<LangRefsetEntry> uslangRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, refsets, SCTID_US_MODULE);\n\t\t\t\t\tList<LangRefsetEntry> corelangRefEntries = fsns.get(0).getLangRefsetEntries(ActiveState.BOTH, refsets, SCTID_CORE_MODULE);\n\t\t\t\t\tif (uslangRefEntries.size() > 1 || corelangRefEntries.size() >1) {\n\t\t\t\t\t\tmsg += \"Two acceptabilities in the same module\";\n\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (!uslangRefEntries.get(0).isActive() && corelangRefEntries.get(0).isActive() ) {\n\t\t\t\t\t\t\tlong usET = Long.parseLong(uslangRefEntries.get(0).getEffectiveTime());\n\t\t\t\t\t\t\tlong coreET = Long.parseLong(corelangRefEntries.get(0).getEffectiveTime());\n\t\t\t\t\t\t\tmsg += \"US langrefset entry inactivated \" + (usET > coreET ? \"after\":\"before\") + \" core row activated - \" + usET;\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If the US inactivated AFTER the core activated, then this is the case we need to fix\n\t\t\t\t\t\t\tuslangRefEntries.get(0).delete(deletionEffectiveTime);\n\t\t\t\t\t\t\tString action = \"Deleted US FSN LangRefset entry\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.MEDIUM, ReportActionType.DESCRIPTION_CHANGE_MADE, action);\n\t\t\t\t\t\t\tc.setModified();\n\t\t\t\t\t\t} if (uslangRefEntries.get(0).isActive() && corelangRefEntries.get(0).isActive() ) {\n\t\t\t\t\t\t\tmsg += \"Both US and Core module lang refset entries are inactive\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.LOW, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tmsg += \"Unexpected configuration of us and core lang refset entries\";\n\t\t\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tmsg += \"FSN has \" + langRefEntries.size() + \" US acceptability values.\";\n\t\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t\t}\n\t\t\t} else if (!langRefEntries.get(0).getAcceptabilityId().equals(SCTID_PREFERRED_TERM)) {\n\t\t\t\tmsg += \"FSN has an acceptability that is not Preferred.\";\n\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t} else if (!langRefEntries.get(0).isActive()) {\n\t\t\t\tmsg += \"FSN's US acceptability is inactive.\";\n\t\t\t\treport(c, c.getFSNDescription(), Severity.HIGH, ReportActionType.VALIDATION_CHECK, msg);\n\t\t\t}\n\t\t}\n\t}",
"List<Concept2OntClassMapping> lookupConcept2OntClassMappingPairs(Concept concept);",
"public List<CatalogDescription> getCatalogDescriptions(Map<String, String> eqCriteria, Map<String, String> searchCriteria);",
"default List<String> assignedConcepts(List<Source> sources){\n return assignedConcepts(10, sources);\n }",
"List<IViewEntity> getConstraintEntities();",
"java.util.List<? extends com.clarifai.grpc.api.ConceptLanguageOrBuilder> \n getConceptLanguagesOrBuilderList();",
"public abstract List<Technique> findTechniqueByName(String technique);",
"interface ResourceClassIntrospector {\n \n /**\n * Initializes the recipient introspector.\n * @param reflectionService reflection service\n */\n void init(ReflectionService reflectionService);\n \n /**\n * Produces a set of resource method descriptors for the given resource\n * class.\n * <p>\n * An implementation of this method must traverse classes identified by\n * subresource locators to produce the complete set of resource methods \n * reachable from the given resource class.\n * \n * @param path path of the resource specified by {@code resourceClass}\n * @param resourceClass the subject resource class\n * @return set of resource method descriptors\n */\n Set<ResourceDescriptor> describe(String path, Class<?> resourceClass);\n \n}",
"public Resolution rdf() {\r\n try {\r\n vocabularyFolder = vocabularyService.getVocabularyFolder(vocabularyFolder.getIdentifier(), false);\r\n initFilter();\r\n filter.setUsePaging(false);\r\n List<? extends VocabularyConcept> concepts = null;\r\n if (vocabularyFolder.isSiteCodeType()) {\r\n SiteCodeFilter siteCodeFilter = new SiteCodeFilter();\r\n siteCodeFilter.setUsePaging(false);\r\n concepts = siteCodeService.searchSiteCodes(siteCodeFilter).getList();\r\n } else {\r\n concepts = vocabularyService.searchVocabularyConcepts(filter).getList();\r\n }\r\n \r\n final List<? extends VocabularyConcept> finalConcepts = concepts;\r\n \r\n if (vocabularyFolder.isDraftStatus()) {\r\n throw new RuntimeException(\"Vocabulary is not in released or public draft status.\");\r\n }\r\n \r\n final String contextRoot =\r\n StringUtils.isNotEmpty(vocabularyFolder.getBaseUri()) ? vocabularyFolder.getBaseUri() : Props\r\n .getRequiredProperty(PropsIF.DD_URL) + \"/vocabularies/\" + vocabularyFolder.getIdentifier() + \"/\";\r\n \r\n StreamingResolution result = new StreamingResolution(\"application/rdf+xml\") {\r\n @Override\r\n public void stream(HttpServletResponse response) throws Exception {\r\n VocabularyXmlWriter xmlWriter =\r\n new VocabularyXmlWriter(response.getOutputStream(), contextRoot, vocabularyFolder, finalConcepts);\r\n xmlWriter.writeManifestXml();\r\n }\r\n };\r\n return result;\r\n } catch (Exception e) {\r\n LOGGER.error(\"Failed to output vocabulary RDF data\", e);\r\n ErrorResolution error = new ErrorResolution(HttpURLConnection.HTTP_INTERNAL_ERROR);\r\n error.setErrorMessage(e.getMessage());\r\n return error;\r\n }\r\n }",
"public List<CriticalComponent> getCriticalComponents();",
"private static void writeConcepts(XMLStreamWriter w, RepositoryConnection con, IRI pred, String classWrap) \n\t\t\tthrows XMLStreamException {\n\t\t\n\t\tSet<IRI> concepts;\n\t\n\t\ttry (RepositoryResult<Statement> res = con.getStatements(null, pred, null)) {\n\t\t\tconcepts = res.stream()\n\t\t\t\t\t\t\t.map(Statement::getObject)\n\t\t\t\t\t\t\t.filter(IRI.class::isInstance)\n\t\t\t\t\t\t\t.map(IRI.class::cast)\n\t\t\t\t\t\t\t.filter(i -> i.toString().startsWith(\"http\"))\n\t\t\t\t\t\t\t.collect(Collectors.toSet());\t\t\n\t\t}\n\n\t\tif (concepts == null || concepts.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\t\tfor (IRI concept: concepts) {\n\t\t\tw.writeStartElement(classWrap);\n\t\t\tw.writeAttribute(\"rdf:about\", concept.toString());\n\t\t\tif(! classWrap.equals(\"skos:Concept\")) {\n\t\t\t\tw.writeEmptyElement(\"rdf:type\");\n\t\t\t\tw.writeAttribute(\"rdf:resource\", SKOS.CONCEPT.stringValue());\n\t\t\t}\n\t\t\twriteLiterals(w, con, concept, SKOS.PREF_LABEL, \"skos:prefLabel\");\n\t\t\twriteReferences(w, con, concept, SKOS.IN_SCHEME, \"skos:inScheme\");\n\t\t\tw.writeEndElement();\n\t\t}\n\t\tLOG.info(\"Wrote {} {} concepts\", concepts.size(), classWrap);\n\t\t\n\t}",
"public Result check(Descriptor descriptor) {\n return check((WebBundleDescriptor) descriptor);\n }",
"java.util.List<com.google.cloud.clouddms.v1.ConstraintEntity> getConstraintsList();",
"public interface CompliancesClient {\n /**\n * The Compliance scores of the specific management group.\n *\n * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or\n * management group (/providers/Microsoft.Management/managementGroups/mgName).\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return list of Compliance objects response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<ComplianceInner> list(String scope);\n\n /**\n * The Compliance scores of the specific management group.\n *\n * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or\n * management group (/providers/Microsoft.Management/managementGroups/mgName).\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return list of Compliance objects response as paginated response with {@link PagedIterable}.\n */\n @ServiceMethod(returns = ReturnType.COLLECTION)\n PagedIterable<ComplianceInner> list(String scope, Context context);\n\n /**\n * Details of a specific Compliance.\n *\n * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or\n * management group (/providers/Microsoft.Management/managementGroups/mgName).\n * @param complianceName name of the Compliance.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return compliance of a scope along with {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<ComplianceInner> getWithResponse(String scope, String complianceName, Context context);\n\n /**\n * Details of a specific Compliance.\n *\n * @param scope Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or\n * management group (/providers/Microsoft.Management/managementGroups/mgName).\n * @param complianceName name of the Compliance.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return compliance of a scope.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n ComplianceInner get(String scope, String complianceName);\n}",
"public interface RuleRefableBase extends org.semanticwb.model.Referensable\r\n{\r\n /**\r\n * Referencia a un objeto de tipo Rule \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_RuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#RuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_hasRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#hasRuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_notInheritRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#notInheritRuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_andEvalRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#andEvalRuleRef\");\r\n /**\r\n * Interfaz que define propiedades para elementos que pueden referencia a reglas \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_RuleRefable=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#RuleRefable\");\r\n\r\n public org.semanticwb.model.GenericIterator<org.semanticwb.model.RuleRef> listRuleRefs();\r\n public boolean hasRuleRef(org.semanticwb.model.RuleRef value);\r\n public org.semanticwb.model.GenericIterator<org.semanticwb.model.RuleRef> listInheritRuleRefs();\r\n\r\n /**\r\n * Adds the RuleRef\r\n * @param value An instance of org.semanticwb.model.RuleRef\r\n */\r\n public void addRuleRef(org.semanticwb.model.RuleRef value);\r\n\r\n /**\r\n * Remove all the values for the property RuleRef\r\n */\r\n public void removeAllRuleRef();\r\n\r\n /**\r\n * Remove a value from the property RuleRef\r\n * @param value An instance of org.semanticwb.model.RuleRef\r\n */\r\n public void removeRuleRef(org.semanticwb.model.RuleRef value);\r\n\r\n/**\r\n* Gets the RuleRef\r\n* @return a instance of org.semanticwb.model.RuleRef\r\n*/\r\n public org.semanticwb.model.RuleRef getRuleRef();\r\n\r\n public boolean isNotInheritRuleRef();\r\n\r\n public void setNotInheritRuleRef(boolean value);\r\n\r\n public boolean isAndEvalRuleRef();\r\n\r\n public void setAndEvalRuleRef(boolean value);\r\n}",
"Set<Condition> getDeclaredInstanceInvariantConditions();",
"@NotNull\n @Generated\n @Selector(\"needRulesVerdict\")\n public static native NEFilterNewFlowVerdict needRulesVerdict();",
"@GET\n @Path(\"/conditions/systemTags/{tags}\")\n public Collection<RESTConditionType> getConditionTypesBySystemTag(@PathParam(\"tags\") String tags, @HeaderParam(\"Accept-Language\") String language) {\n String[] tagsArray = tags.split(\",\");\n Set<ConditionType> results = new LinkedHashSet<>();\n for (String tag : tagsArray) {\n results.addAll(definitionsService.getConditionTypesBySystemTag(tag));\n }\n return localizationHelper.generateConditions(results, language);\n }",
"private void filterOverlap(List<Concept> concepts) {\n\t\t// go over concepts in\n\t\tSet<Concept> torem = new HashSet<Concept>();\n\t\tConcept p = null;\n\t\tfor(Concept c : concepts){\n\t\t\tif(p != null){\n\t\t\t\tif(c.getCode().equals(p.getCode())){\n\t\t\t\t\tif(c.getText() != null && c.getText().contains(p.getText())){\n\t\t\t\t\t\ttorem.add(p);\n\t\t\t\t\t}else if(p.getText() != null && p.getText().contains(c.getText())){\n\t\t\t\t\t\ttorem.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tp = c;\n\t\t}\n\t\t\n\t\t// remove whatever\n\t\tfor (Concept r : torem) {\n\t\t\tfor (ListIterator<Concept> it = concepts.listIterator(); it.hasNext();) {\n\t\t\t\tConcept c = it.next();\n\t\t\t\tif (c.equals(r) && c.getText().equals(r.getText())) {\n\t\t\t\t\tit.remove();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"protected void initSpecSpecificConditions() {\r\n // THESE ARE ALL FOR MAF SPEC 1.0 ONLY\r\n\r\n //If variant_Type is \"ins\" Reference_Allele should always be \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"[^\\\\-]\"), \"contain anything but '-' characters\", true));\r\n // and either of Tumor_Seq_Allele1 and Tumor_Seq_Allele2 should have \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantInsSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n //If variant_Type is \"del\", then Reference_Allele can't contain \"-\",\r\n conditions.add(new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_REFERENCE_ALLELE, Pattern.compile(\"-\"), \"contain any '-' characters\", true));\r\n // and either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should contain \"-\".\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE1, Pattern.compile(\"-\"), \"contain at least one '-'\", false),\r\n new ConditionalRequirement(FIELD_VARIANT_TYPE, getVariantTypeDelSymbol(), FIELD_TUMOR_SEQ_ALLELE2, Pattern.compile(\"-\"), \"contain at least one '-'\", false)));\r\n\r\n //If validation_status is \"wildtype\", then Tumor_Seq_Allele1=Tumor_Seq_Allele2\r\n //and Tumor_Seq_Allele1=Reference_Allele)\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(FIELD_VALIDATION_STATUS, VALIDATION_STATUS_WILDTYPE, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, false));\r\n\r\n // if mutation_status is germline, tumor_seql_allele1 must be equal to match_norm_seq_allele1\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE1,\r\n FIELD_MATCH_NORM_SEQ_ALLELE1, false));\r\n conditions.add(new ConditionalRequirement(FIELD_MUTATION_STATUS, MUTATION_STATUS_GERMLINE, FIELD_TUMOR_SEQ_ALLELE2,\r\n FIELD_MATCH_NORM_SEQ_ALLELE2, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele1 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then Match_Norm_Validation_Allele2 should equal Reference_Allele\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE2,\r\n FIELD_REFERENCE_ALLELE, false));\r\n // if mutation_status is somatic and validation status is valid, then either Tumor_Seq_Allele1 or Tumor_Seq_Allele2 should NOT match Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true), // not\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_SOMATIC, VALIDATION_STATUS_VALID}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true))); // not\r\n\r\n //If Mutation_Status == LOH AND Validation_Status==Unknown, then\r\n //Tumor_Seq_Allele1 == Tumor_Seq_Allele2 and\r\n //Match_Norm_Seq_Allele1 != Match_Norm_Seq_Allele2 and\r\n //Tumor_Seq_Allele1 = (Match_Norm_Seq_Allele1 or Match_Norm_Seq_Allele2)\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_TUMOR_SEQ_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_MATCH_NORM_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_UNKNOWN}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_MATCH_NORM_SEQ_ALLELE2, false)));\r\n //If Mutation_Status == LOH AND Validation_Status==Valid, then\r\n //Tumor_Validation_Allele1 == Tumor_Validation_Allele2 and\r\n //Match_Norm_Validation_Allele1 != Match_Norm_Validation_Allele2 and\r\n //Tumor_Validation_Allele1 == (Match_Norm_Validation_Allele1 or Match_Norm_Validation_Allele2).\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_TUMOR_VALIDATION_ALLELE2, false));\r\n conditions.add(new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_MATCH_NORM_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, true)); // not\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE1, false),\r\n new ConditionalRequirement(new String[]{FIELD_MUTATION_STATUS, FIELD_VALIDATION_STATUS}, new String[]{MUTATION_STATUS_LOH, VALIDATION_STATUS_VALID}, FIELD_TUMOR_VALIDATION_ALLELE1, FIELD_MATCH_NORM_VALIDATION_ALLELE2, false)));\r\n // Tumor_Seq_Allele1 != Reference_Allele OR Tumor_Seq_Allele2 != Reference_Allele\r\n conditions.add(new ConditionalRequirement(ConditionalOperator.OR,\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE1, FIELD_REFERENCE_ALLELE, true),\r\n new ConditionalRequirement(new String[]{}, new String[]{}, FIELD_TUMOR_SEQ_ALLELE2, FIELD_REFERENCE_ALLELE, true)));\r\n\r\n }",
"public static Collection<RoboconfError> validate( ApplicationDescriptor descriptor ) {\n\n\t\tCollection<RoboconfError> errors = new ArrayList<RoboconfError> ();\n\t\tif( Utils.isEmptyOrWhitespaces( descriptor.getName()))\n\t\t\terrors.add( new RoboconfError( ErrorCode.RM_MISSING_APPLICATION_NAME ));\n\n\t\tif( Utils.isEmptyOrWhitespaces( descriptor.getQualifier()))\n\t\t\terrors.add( new RoboconfError( ErrorCode.RM_MISSING_APPLICATION_QUALIFIER ));\n\n\t\tif( Utils.isEmptyOrWhitespaces( descriptor.getGraphEntryPoint()))\n\t\t\terrors.add( new RoboconfError( ErrorCode.RM_MISSING_APPLICATION_GEP ));\n\n\t\treturn errors;\n\t}",
"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 List<ScheduleResource> neededSpecificResources();",
"Concept getConceptName();",
"public void addFilterToAdvancedtablecompositionRequiredProperty(ViewerFilter filter);",
"public FeatureFilter getSchema();",
"List<SolarClassification> getAttributesByFilterSolar(String uuid, String filter, String value, List<Header> headers);",
"public abstract Collection<Pair<String,String>> getAllForms();",
"List<SecuritySchemeRef> securedBy();",
"public interface KnowledgeBase {\r\n\r\n\t/**\r\n\t * Get the topics of this knowledge base.\r\n\t * \r\n\t * @return the list of topics of this knowledge base\r\n\t */\r\n\tpublic Set<Topic> getTopics();\r\n\r\n\t/**\r\n\t * Get the relations of this knowledge base.\r\n\t * \r\n\t * @return the list of relations of this knowledge base\r\n\t */\r\n\tpublic Set<Relation> getRelations();\r\n\r\n\t/**\r\n\t * Get the set of the relation types occur in this knowledge base.\r\n\t * \r\n\t * @return the set of relation types of this knowledge base\r\n\t */\r\n\tpublic Set<RelationType> getRelationTypes();\r\n\r\n\t/**\r\n\t * Get the set of the scopes occur in this knowledge base.\r\n\t * \r\n\t * @return the set of scopes of this knowledge base\r\n\t */\r\n\tpublic Set<Scope> getScopes();\r\n\t\r\n\t\r\n\tpublic KnowledgeBaseDescriptor getKnowledgeBaseDescriptor();\r\n\t\r\n\tpublic void setKnowledgeBaseDescriptor(KnowledgeBaseDescriptor knowledgeBaseDescriptor);\r\n\r\n\t/**\r\n\t * Filters out every topic names and relations those scope is not the\r\n\t * specified scope list, then the unused scopes are also being removed.\r\n\t * \r\n\t * @param allowedScopes\r\n\t * the <code>Set</code> of scopes which we want to keep\r\n\t */\r\n\tpublic void filterScopes(Set<Scope> allowedScopes);\r\n\r\n\tpublic void setRelationTypes(Set<RelationType> types);\r\n}",
"public abstract List<QualifiedName> getAffectedFeatureTypes();",
"List<E> findAll(Specification<E> spec);",
"private Resolution getVocabularyConceptResolution() {\r\n HttpServletRequest httpRequest = getContext().getRequest();\r\n String url = httpRequest.getRequestURL().toString();\r\n // String query = httpRequest.getQueryString();\r\n \r\n String[] parameters = StringUtils.split(StringUtils.substringAfter(url, \"/vocabulary/\"), \"/\");\r\n \r\n if (parameters.length >= 2) {\r\n if (!RESERVED_VOCABULARY_EVENTS.contains(parameters[1])) {\r\n RedirectResolution resolution = new RedirectResolution(VocabularyConceptActionBean.class, \"view\");\r\n resolution.addParameter(\"vocabularyFolder.identifier\", parameters[0]);\r\n resolution.addParameter(\"vocabularyConcept.identifier\", parameters[1]);\r\n resolution.addParameter(\"vocabularyFolder.workingCopy\", vocabularyFolder.isWorkingCopy());\r\n \r\n return resolution;\r\n }\r\n }\r\n \r\n return null;\r\n }",
"com.google.privacy.dlp.v2.CustomInfoType.DetectionRule getDetectionRules(int index);",
"@OnlyIn(Dist.CLIENT)\n public Collection<ResourceLocation> getAspectModels();"
] | [
"0.5236537",
"0.5156919",
"0.5106576",
"0.48628634",
"0.4821903",
"0.47683027",
"0.47395056",
"0.47015387",
"0.46872947",
"0.46803406",
"0.46738648",
"0.46491268",
"0.46438628",
"0.4642038",
"0.46387205",
"0.4602838",
"0.45861086",
"0.45014352",
"0.44868058",
"0.4470419",
"0.4467724",
"0.44420555",
"0.44288325",
"0.44210288",
"0.44068575",
"0.43947518",
"0.43894783",
"0.43589896",
"0.4355293",
"0.43413183",
"0.43338978",
"0.4332962",
"0.43219203",
"0.4321561",
"0.43196747",
"0.4300371",
"0.42990404",
"0.42982203",
"0.42899805",
"0.42830664",
"0.42737797",
"0.42561838",
"0.42541933",
"0.4253667",
"0.4246013",
"0.42448378",
"0.4239748",
"0.4233282",
"0.42316642",
"0.42272675",
"0.42204037",
"0.42136967",
"0.42088723",
"0.420022",
"0.41940787",
"0.41932458",
"0.41892084",
"0.41888282",
"0.41717112",
"0.41712266",
"0.41677094",
"0.4153929",
"0.4153389",
"0.4149682",
"0.41471586",
"0.4141786",
"0.4139238",
"0.41368097",
"0.41366693",
"0.4126862",
"0.41244376",
"0.41202587",
"0.41046157",
"0.4102638",
"0.41013438",
"0.40942848",
"0.40885165",
"0.40858456",
"0.40843108",
"0.40820184",
"0.40778345",
"0.40776813",
"0.40734667",
"0.40726835",
"0.40632161",
"0.4063092",
"0.40625554",
"0.40616336",
"0.4060741",
"0.40578616",
"0.4054207",
"0.40511975",
"0.4045734",
"0.40451005",
"0.40428057",
"0.40400025",
"0.4040002",
"0.4039826",
"0.4035947",
"0.4035262",
"0.40333524"
] | 0.0 | -1 |
Constructor initializing geneSetElements ArrayList | public Geneset(){
this.geneSetElements=new ArrayList();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public RandomizedSet() {\n data = new ArrayList<>();\n val2Index = new HashMap<>();\n }",
"public Layer_ElementsCollection()\n\t{\n\t\tthis.elements = new ArrayList<GIS_element>();\n\t}",
"public ZYArraySet(){\n elements = (ElementType[])new Object[DEFAULT_INIT_LENGTH];\n }",
"public RandomizedSet_380() {\n elementsList = new ArrayList<>();\n valToIndex = new HashMap<>();\n }",
"public RandomizedSet() {\n list = new ArrayList<>();\n map = new HashMap<>();\n }",
"public RandomizedSet() {\n data=new ArrayList<>();\n valueIndex=new HashMap<>();\n random=new Random();\n }",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"public RandomizedSet() {\n set = new HashMap<>();\n list = new ArrayList<>();\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic DesignHashSet() {\n\t\t// Array of ArrayLists.\n\t\tset = (List<Integer>[]) new ArrayList[MAX_LEN];\n\t}",
"public RandomizedSet() {\n m = new HashMap<>();\n l = new ArrayList<>();\n }",
"public RandomizedSet() {\n // public RandomizedSet1() {\n lst = new ArrayList<>();\n rand = new Random();\n map = new HashMap<>();\n }",
"public MyHashSet() {\n s = new ArrayList<>();\n }",
"public ArraySet(Collection<? extends E> c)\n {\n super(c);\n addsEnabled = false;\n }",
"public RandomizedSet() {\n nums = new ArrayList<Integer>();\n location = new HashMap<Integer, Integer>();\n }",
"public RandomizedSet() {\n list = new HashSet<>();\n\n }",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public RandomizedSet() {\n }",
"public MyHashSet() {\n nodes = new Node[Max_Size];\n }",
"public OCRSet() {\r\n this.map = new HashMap<Integer, E>();\r\n }",
"public RandomizedSet() {\r\n set = new HashSet<>();\r\n }",
"public IdentificationSet() {\n map = new HashMap<>();\n init();\n }",
"public RandomizedCollection() {\n map = new HashMap<>();\n arr = new ArrayList<>();\n }",
"public FVectorGene() {\n\t\t\n\t}",
"public Set(){\n setSet(new int[0]);\n }",
"public RandomizedSet() {\n this.valueToIndex = new HashMap<>();\n this.values = new ArrayList<>();\n this.random = new Random();\n }",
"public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }",
"public RandomizedSet() {\n map = new HashMap<Integer, Integer>();\n set = new ArrayList<Integer>();\n int validLength = 0;\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 }",
"public MyMultiset() {\n\t\tthis.set = new HashSet<Node>();\n\t}",
"public RandomizedSet() {\n map = new HashMap<>();\n }",
"public PointSET() { // construct an empty set of points\n\n }",
"public RandomizedSet() {\n\n\n sub =new ArrayList<Integer>();\n hm=new HashMap<Integer,Integer>();\n rand =new Random();\n\n }",
"public MyArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"public RandomizedSet() {\n set = new HashSet<Integer>();\n }",
"public Set() {\n\t\tlist = new LinkedList<Object>();\n\t}",
"public GeneSplicerParser() {\n acceptors = new ArrayList<Integer>();\n donors = new ArrayList<Integer>();\n }",
"public ArraySet() {\n\t\tthis(DEFAULT_CAPACITY);\n\t}",
"public HeapSet () {\r\n\t\tsuper ();\r\n\t}",
"private static List<Gene> getGenePool() {\n List<Gene> list = new ArrayList<>();\n\n Item item1 = new Item();\n item1.setName(\"Swiss Army Knife\");\n item1.setWeight(0.08125);\n item1.setVal(15);\n Gene gene1 = new Gene(item1);\n\n Item item2 = new Item();\n item2.setName(\"Duct Tape\");\n item2.setWeight(1.3);\n item2.setVal(3);\n Gene gene2 = new Gene(item2);\n\n Item item3 = new Item();\n item3.setName(\"Rope (50 feet)\");\n item3.setWeight(7);\n item3.setVal(10);\n Gene gene3 = new Gene(item3);\n\n Item item4 = new Item();\n item4.setName(\"Satellite phone\");\n item4.setWeight(2);\n item4.setVal(8);\n Gene gene4 = new Gene(item4);\n\n Item item5 = new Item();\n item5.setName(\"Elmer's Glue\");\n item5.setWeight(0.25);\n item5.setVal(2);\n Gene gene5 = new Gene(item5);\n\n Item item6 = new Item();\n item6.setName(\"Toilet Paper Roll\");\n item6.setWeight(.5);\n item6.setVal(4);\n Gene gene6 = new Gene(item6);\n\n Item item7 = new Item();\n item7.setName(\"Binoculars\");\n item7.setWeight(3);\n item7.setVal(5);\n Gene gene7 = new Gene(item7);\n\n Item item8 = new Item();\n item8.setName(\"Compass\");\n item8.setWeight(0.0573202);\n item8.setVal(15);\n Gene gene8 = new Gene(item8);\n\n Item item9 = new Item();\n item9.setName(\"Jug (pre-filled with water)\");\n item9.setWeight(4);\n item9.setVal(6);\n Gene gene9 = new Gene(item9);\n\n Item item10 = new Item();\n item10.setName(\"Flashlight\");\n item10.setWeight(2);\n item10.setVal(4);\n Gene gene10 = new Gene(item10);\n\n Item item11 = new Item();\n item11.setName(\"Box of paper clips\");\n item11.setWeight(.9);\n item11.setVal(2);\n Gene gene11 = new Gene(item11);\n\n Item item12 = new Item();\n item12.setName(\"Gloves (1 pair)\");\n item12.setWeight(.8125);\n item12.setVal(3);\n Gene gene12 = new Gene(item12);\n\n Item item13 = new Item();\n item13.setName(\"Scissors\");\n item13.setWeight(0.2);\n item13.setVal(2);\n Gene gene13 = new Gene(item13);\n\n Item item14 = new Item();\n item14.setName(\"Signal Flair (4pk)\");\n item14.setWeight(4);\n item14.setVal(5);\n Gene gene14 = new Gene(item14);\n\n Item item15 = new Item();\n item15.setName(\"Water Purifying System\");\n item15.setWeight(0.5125);\n item15.setVal(4);\n Gene gene15 = new Gene(item15);\n\n Item item16 = new Item();\n item16.setName(\"Whistle\");\n item16.setWeight(0.075);\n item16.setVal(2);\n Gene gene16 = new Gene(item16);\n\n Item item17 = new Item();\n item17.setName(\"Sleeping Bag\");\n item17.setWeight(0.38125);\n item17.setVal(4);\n Gene gene17 = new Gene(item17);\n\n Item item18 = new Item();\n item18.setName(\"Insect Repellent\");\n item18.setWeight(1.15);\n item18.setVal(3);\n Gene gene18 = new Gene(item18);\n\n Item item19 = new Item();\n item19.setName(\"Trowel\");\n item19.setWeight(0.31875);\n item19.setVal(3);\n Gene gene19 = new Gene(item19);\n\n Item item20 = new Item();\n item20.setName(\"Lighter\");\n item20.setWeight(.2);\n item20.setVal(4);\n Gene gene20 = new Gene(item20);\n\n Item item21 = new Item();\n item21.setName(\"Safety Horn\");\n item21.setWeight(.21);\n item21.setVal(3);\n Gene gene21 = new Gene(item21);\n\n Item item22 = new Item();\n item22.setName(\"Headlamp\");\n item22.setWeight(.8);\n item22.setVal(4);\n Gene gene22 = new Gene(item22);\n\n Item item23 = new Item();\n item23.setName(\"Freeze Dried Food Kit\");\n item23.setWeight(2);\n item23.setVal(6);\n Gene gene23 = new Gene(item23);\n\n Item item24 = new Item();\n item24.setName(\"Sunscreen\");\n item24.setWeight(.5);\n item24.setVal(4);\n Gene gene24 = new Gene(item24);\n\n Item item25 = new Item();\n item25.setName(\"Trekking Pole (Adjustable)\");\n item25.setWeight(1.3);\n item25.setVal(4);\n Gene gene25 = new Gene(item25);\n\n Item item26 = new Item();\n item26.setName(\"Counter Assault Bear Spray\");\n item26.setWeight(.5);\n item26.setVal(4);\n Gene gene26 = new Gene(item26);\n\n Item item27 = new Item();\n item27.setName(\"Insect Spray\");\n item27.setWeight(.5);\n item27.setVal(3);\n Gene gene27 = new Gene(item27);\n\n Item item28 = new Item();\n item28.setName(\"Hand sanitizer\");\n item28.setWeight(.625);\n item28.setVal(3);\n Gene gene28 = new Gene(item28);\n\n Item item29 = new Item();\n item29.setName(\"Mirror\");\n item29.setWeight(.5);\n item29.setVal(3);\n Gene gene29 = new Gene(item29);\n\n Item item30 = new Item();\n item30.setName(\"First Aid Kit\");\n item30.setWeight(3);\n item30.setVal(6);\n Gene gene30 = new Gene(item30);\n\n list.add(gene1);\n list.add(gene2);\n list.add(gene3);\n list.add(gene4);\n list.add(gene5);\n list.add(gene6);\n list.add(gene7);\n list.add(gene8);\n list.add(gene9);\n list.add(gene10);\n list.add(gene11);\n list.add(gene12);\n list.add(gene13);\n list.add(gene14);\n list.add(gene15);\n list.add(gene16);\n list.add(gene17);\n list.add(gene18);\n list.add(gene19);\n list.add(gene20);\n list.add(gene21);\n list.add(gene22);\n list.add(gene23);\n list.add(gene24);\n list.add(gene25);\n list.add(gene26);\n list.add(gene27);\n list.add(gene28);\n list.add(gene29);\n list.add(gene30);\n\n return list;\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList1() {\n\t\telements = (E[]) new Object[CAPACITY];\n\t\tsize = 0;\n\t}",
"public ArrayList() {\n elements = new Object[DEFAULT_CAPACITY];\n }",
"public ArrayList() {\n //sets an array with no length\n this.array = (E[]) new Object[0];\n }",
"public String getGeneList() {\n return geneList;\n }",
"public HashSet(){\n this(17);\n }",
"public IntegerSet() {\n elements = new int[MAX_SIZE];\n size = 0;\n }",
"public OpticalElements() {\n }",
"public ArrayList(int initCapacity) {\n elements = new Object[initCapacity];\n }",
"public OCRSet(Collection<? extends E> c) {\r\n this.map =\r\n new HashMap<Integer, E>(Math.max((int) (c.size() / .75f) + 1,\r\n 16));\r\n this.addAll(c);\r\n }",
"public OCRSet(int initialCapacity) {\r\n this.map = new HashMap<Integer, E>(initialCapacity);\r\n }",
"public BasicElementList() {\n\t}",
"public RandomizedSet() {\r\n\t\tbucket = new BucketItem[BUCKET_SIZE];\r\n\t}",
"public SpecimenArray()\r\n\t{\r\n\t\tsuper();\r\n\t}",
"public RelevanceSet() {\r\n \tinitComponents();\r\n //updateData();\r\n }",
"public ListSet() {\n lists = new TernarySearchTree<>();\n }",
"public MyHashSet() {\n \n }",
"public Population(ArrayList<Chromosome> c, int selMethod, int selPara, \r\n\t\t int crossMethod, double crossPara, int mutMethod,\r\n\t\t double mutPara, int replaceMethod, int replacePara,\r\n\t\t double powerStep, double tourStep, FitnessFunction fitnessFunction)\r\n {\r\n\tthis(selMethod, selPara, crossMethod, crossPara, mutMethod, mutPara, \r\n\t replaceMethod, replacePara, powerStep, tourStep, fitnessFunction);\r\n\r\n\tchromos = c;\r\n\r\n\tinitialize();\r\n }",
"public Genetic() {\r\n }",
"public Set (ArrayList<String> inputArray) { // Constructor, taking in an ArrayList\n\t\tstringArray = inputArray;\n\t\t// Setting that passed ArrayList to our private variable\n\t}",
"public IndexedSet(final int initialCapacity) {\n elements = new ArrayList<>(initialCapacity);\n indexByElement = new Object2IntOpenHashMap<>(initialCapacity);\n }",
"public Chromosome(ArrayList<Teacher_lesson> list){\n\t\tthis.genes=new int[array_size];\n\t\tRandom r= new Random();\n\t\tfor(int i=0;i<genes.length;i++){\n\t\t\t\n\t\t\tthis.genes[i]=r.nextInt(number_of_professors);\n\t\t}\n\t\tthis.DataList=list;\n\t\tthis.calculateFitness();\n\t}",
"protected Set() {\n size = 0;\n set = new int[TEN];\n }",
"public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }",
"public ArrayList() {\n\t\tthis.elements = new Object[5];\n\t\tthis.last = -1;\n\t}",
"public GAIndividual()\n {\n m_fitness = 0;\n m_genome = new ArrayList<Integer>();\n }",
"public EmployeeSet()\n\t{\n\t\tnumOfEmployees = 0;\n\t\temployeeData = new Employee[10];\n\t}",
"public AgileSet() {\n currentSize = 0.0;\n }",
"public ArrayList<Genome_ga> makeGenomeList(int length){\n\t\tArrayList<Genome_ga> genomelist = new ArrayList<Genome_ga>();\r\n\t\tfor(int i =0; i<length;i++) {\r\n\t\t\tgenomelist.add(make1Genome());\r\n\t\t}\r\n\r\n\t\tgenomelist = evg.evalGenomeList(genomelist);\r\n\r\n\t\treturn genomelist;\r\n\t}",
"public void setGeneList(String geneList) {\n this.geneList = geneList;\n }",
"public ArrayListStack() {\n\t\telements = new ArrayList<>();\n\t}",
"public IntHashSet()\n/* */ {\n/* 69 */ this(0, 0.3D);\n/* */ }",
"public FeatureCollection() {\n//\t\tif (featureTypes!=null) {\n//\t\t\tavailableFeatureTypes = featureTypes;\n//\t\t}\n\t}",
"public DesignHashSet() {\n map=new HashMap<>();\n }",
"public SetOfRanges() {\n RangeSet = new Vector();\n }",
"public ListDA() {\n elements = new Object[CAPACITY];\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder setGeneIds(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.geneIds = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public Genepool(int numGenes) {\n\t\tgeneNumber = numGenes;\n\t\tgenepool = new ArrayList<Gene>();\n\t\toffspringPool = new ArrayList<Gene>();\n\t\tgenerateGenes();\n\t}",
"public RandomizedCollection() {\n\n }",
"public IdentificationSet(int initialCapacity) {\n map = new HashMap<>(initialCapacity);\n init();\n }",
"public ArrayList() {\n _size = 0;\n _store = (E[]) new Object[32];\n }",
"public ArrayList() {\n\t\tthis(10, 75);\n\t}",
"public RandomizedSet() {\n realSet = new HashSet<>();\n allSet = new Integer[10];\n random = new Random();\n }",
"public Collection() {\n this.collection = new ArrayList<>();\n }",
"public PointSET() {\n pointSet = new TreeSet<>();\n }",
"public OccList()\n {\n int capacity = 8;\n data = new Occ[capacity];\n // initialize data with empty occ\n for (int i=0; i<capacity; i++) data[i] = new Occ(); \n }",
"public HeapSet (int initialCapacity) {\r\n\t\tsuper (initialCapacity);\r\n\t}",
"public MyArrayList ()\r\n {\r\n \tlist = new Object[100];\r\n \tnumElements = 0;\r\n }",
"public Collection()\n {\n // initialisation des variables d'instance\n documents = new ArrayList<>();\n }",
"public JMLObjectSet (E e)\n /*@ public normal_behavior\n @ assignable objectState, elementType, containsNull, owner;\n @ ensures this.has(e) && this.int_size() == 1;\n @ ensures_redundantly\n @ (* this is a singleton set containing e *); \n @*/\n {\n //@ set owner = null;\n the_list = JMLListObjectNode.cons(e, null); // cons() clones if needed\n size = 1;\n //@ set elementType = (e == null ? \\type(Object) : \\typeof(e));\n //@ set containsNull = (e == null);\n }",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList() {\n\t\tsize = 0;\n\t\tlist = (E[]) new Object[INIT_SIZE];\n\t}",
"public PointSET() {\n //s = new TreeSet<Point2D>(Point2D.X_ORDER);\n }",
"public TileGIS(Engine engine, Agent owner, AgentArrayList<? extends TileGIS> collection)\n/* 337: */ {\n/* 338:416 */ super(engine, owner, collection);\n/* 339: */ }",
"public RandomizedCollection() {\n nums = new ArrayList<>();\n num2Index = new HashMap<>();\n rand = new Random();\n }",
"public Bag() {\n\t\tinstances = new ArrayList<double[]>();\n\t\tname = \"\";\n\t}",
"private static SVIntervalTree<String> initTree() {\n final SVIntervalTree<String> tree = new SVIntervalTree<>();\n final String[] genes = {\"A\", \"B\", \"C\", \"D\", \"E\"};\n if (transcriptionStartSites.length != genes.length) {\n throw new TestException(\"Transcription start sites list and genes array are not the same length\");\n }\n for ( int idx = 0; idx < genes.length; ++idx ) {\n tree.put(transcriptionStartSites[idx], genes[idx]);\n }\n return tree;\n }",
"public grille_chiffre(){\n\tgc=new Object[5][5];\n\tlst_8=new ArrayList<Object>();\n}",
"public HashMultiSet() {\n\t\thMap = new HashMap<T, Integer>();\n\t\tsize = 0;\n\t}",
"public StringSet() {\r\n\t\tsuper();\r\n\t}",
"ProductUnit() {\n _elements = new Element[0];\n }"
] | [
"0.7000186",
"0.6482007",
"0.643671",
"0.6420645",
"0.63557136",
"0.6316284",
"0.6307281",
"0.6307083",
"0.62883335",
"0.6260298",
"0.6241966",
"0.6179871",
"0.61777157",
"0.61171913",
"0.61143947",
"0.61047393",
"0.6091298",
"0.6083577",
"0.6064851",
"0.6033747",
"0.5987854",
"0.5987808",
"0.5958673",
"0.595681",
"0.5949449",
"0.593828",
"0.59322715",
"0.5931761",
"0.5907127",
"0.5901573",
"0.5901126",
"0.5885883",
"0.58805037",
"0.58717185",
"0.5855138",
"0.584954",
"0.5845901",
"0.5822426",
"0.5814147",
"0.5812451",
"0.57911545",
"0.57798696",
"0.577085",
"0.5767303",
"0.5752867",
"0.5751946",
"0.57379436",
"0.5731097",
"0.5727739",
"0.5712358",
"0.5694905",
"0.5681827",
"0.5679717",
"0.5651217",
"0.56331146",
"0.56325436",
"0.56305856",
"0.5626164",
"0.5623989",
"0.56192434",
"0.5616755",
"0.5612908",
"0.5590702",
"0.55891263",
"0.5584748",
"0.5575697",
"0.55740255",
"0.55611575",
"0.55531603",
"0.5550181",
"0.55457455",
"0.554461",
"0.5543092",
"0.55409425",
"0.5535436",
"0.552877",
"0.5525165",
"0.551962",
"0.5519161",
"0.55189425",
"0.5510466",
"0.55060565",
"0.54998076",
"0.5498869",
"0.54842746",
"0.54706633",
"0.5469917",
"0.54646015",
"0.5462552",
"0.54621685",
"0.5454155",
"0.5447563",
"0.5445125",
"0.5444338",
"0.5436732",
"0.54337984",
"0.5433673",
"0.5427917",
"0.54141515",
"0.5409784"
] | 0.86701906 | 0 |
Adds an element (gene) to the geneSetElement arraylist | public void setGeneSetElement(IGeneSetElement element, int index) {
geneSetElements.add(index, element);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public void addGene(BEDGene gene) {\n \r\n\t\t\tif (coordinate.equals(gene.coordinate) && (start <= gene.getEnd()) && (end >= gene.getStart())) {\r\n \t\t\t\tgeneList.add(new Gene(gene));\r\n \t\t\t}\r\n \t\t}",
"public void addExisting(SelectableGraphElement element)\n {\n elements.add(element);\n }",
"public void add(E element) {\n\t\t// your code here\n\t}",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public void addElement(Integer e){\n list.add(e);\n }",
"public void add(Object e)\n {\n if(numElements == maxElements)\n doubleCapacity();\n \n // Add element\n if(!contains(e))\n elements[numElements++] = e;\n }",
"public void addElement(final FeatureElement newElement)\n\t{\n\t\tfeatureElements.add(newElement);\n\t}",
"protected void submitNewGene(Gene element) {\n\t\tGene newgene = new Gene(element);\n\t\tgenes.put(newgene.innovation, newgene);\n\n\t\tif (newgene.innovation > highest)\n\t\t\thighest = newgene.innovation;\n\t}",
"public String getGeneList() {\n return geneList;\n }",
"public @Override boolean add(E element) {\n \tappend(element);\n \treturn true;\n }",
"public void addElementToBuild(\n\t\t\tString geneName,\n\t\t\tStrand geneStrand,\n\t\t\tint geneStart,\n\t\t\tint geneStop,\n\t\t\tfloat geneScore,\n\t\t\tint geneUTR5Bound,\n\t\t\tint geneUTR3Bound,\n\t\t\tListView<ScoredChromosomeWindow> geneExons\n\t\t\t) throws ObjectAlreadyBuiltException, ElementAddedNotSortedException {\n\t\tif (geneStarts == null) {\n\t\t\tthrow new ObjectAlreadyBuiltException();\n\t\t}\n\t\tif (!geneStarts.isEmpty()) {\n\t\t\tint lastElementIndex = geneStarts.size() -1;\n\t\t\tint lastStart = geneStarts.get(lastElementIndex);\n\t\t\tif (geneStart < lastStart) {\n\t\t\t\t// case where the element added are not sorted\n\t\t\t\tthrow new ElementAddedNotSortedException();\n\t\t\t}\n\t\t}\n\t\t// add gene name offset\n\t\tgeneNameOffsets.add(geneNames.size());\n\t\t// add the gene name\n\t\tif (geneName == null) {\n\t\t\tgeneName = \"\";\n\t\t}\n\t\tbyte[] geneNameBytes = geneName.getBytes();\n\t\tfor (int i = 0; i < geneNameBytes.length; i++) {\n\t\t\tgeneNames.add(geneNameBytes[i]);\n\t\t}\n\t\t// add strand\n\t\tgeneStrands.add(geneStrand == Strand.FIVE);\n\t\t// add gene start, stop, score, UTR5 and UTR3\n\t\tgeneStarts.add(geneStart);\n\t\tgeneStops.add(geneStop);\n\t\tgeneScores.add(geneScore);\n\t\tgeneUTR5Bounds.add(geneUTR5Bound);\n\t\tgeneUTR3Bounds.add(geneUTR3Bound);\n\t\t// add exon offset\n\t\texonOffsets.add(lastExonAddedIndex);\n\t\t// add exon\n\t\tif (geneExons != null) {\n\t\t\tfor (ScoredChromosomeWindow currentExon: geneExons) {\n\t\t\t\texonLVBuilder.addUnsortedElementToBuild(currentExon);\n\t\t\t\tlastExonAddedIndex++;\n\t\t\t}\n\t\t}\n\t}",
"public void add(SelectableGraphElement element)\n {\n if (!element.isSelected()) {\n element.setSelected(true);\n elements.add(element);\n }\n }",
"public void addElement(Expression element){\n\t\telements.add(element);\n\t}",
"public void addNormal(E element) {\n\t\tsuper.add(element);\r\n\t}",
"void append(E element);",
"public void addSelectedElement(ReportElement el, boolean fireEvent) {\r\n if (selectedElements.contains(el)) return;\r\n\r\n if (isDefaultCellMode() != (el.getCell().getType() == CrosstabCell.NODATA_CELL)) return;\r\n //label1.setText(\"ADDED\");\r\n // Faccio una corona non selected attorno al nuovo elemento...\r\n Rectangle rect = new Rectangle(el.position.x-5,el.position.y-5,el.width+10, el.height+10);\r\n selectedElements.addElement(el);\r\n\r\n this.repaint();\r\n if (fireEvent) {\r\n fireSelectionChangedEvent();\r\n }\r\n\r\n getMainFrame().setCutCopyEnabled(true);\r\n }",
"private void addElement(PEElement element) {\n\t\tif (currentGroups.size() > 0) {\n\t\t\tcurrentGroups.peek().getElements().add(element);\n\t\t} else if (currentLabeledNodeType != null) {\n\t\t\tcurrentLabeledNodeType.getElements().add(element);\n\t\t} else {\n\t\t\tcurrentNodeType.getElements().add(element);\n\t\t}\n\t}",
"public synchronized void elementsAdded(Object source,\n\t\t\tCollection<? extends ElementType> element, int newSize) {\n\n\t}",
"public Gel_BioInf_Models.VirtualPanel.Builder setGeneIds(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.geneIds = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public void add(int index, E element);",
"public void setGeneList(String geneList) {\n this.geneList = geneList;\n }",
"public void setGeneIds(java.util.List<java.lang.String> value) {\n this.geneIds = value;\n }",
"void add(Object element);",
"public void push (E element);",
"public void setElement(Object e) {\n element = e;\n }",
"public ElementsBag add(HTMLElement element) {\n iterable.elements.push(element);\n return that();\n }",
"public void add(E element) {\n\t\tif (element == null) {\n\t\t\tthrow new NullPointerException();\n\t\t}\n\n\t\tif (size < elements.length) {\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t} else {\n\t\t\t// grow array\n\t\t\tint currentSize = elements.length;\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tE[] temp = (E[]) new Object[currentSize * 2];\n\t\t\tfor (int i = 0; i < size(); i++) {\n\t\t\t\ttemp[i] = elements[i];\n\t\t\t}\n\t\t\telements = temp;\n\t\t\telements[size] = element;\n\t\t\tsize++;\n\t\t}\n\n\t}",
"public void push(Object element) {\r\n\t\tal.add(element, al.listSize);\r\n\t}",
"public boolean add(Object element);",
"public void addImputedGenoSet(GenoSet geno) {\r\n\t\tthis.ImputedGenoSet.add(geno);\r\n\t}",
"public void add(E elem) {\n if (!list.contains(elem))\n list.insertLast(elem);\n }",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"public void agregarIngrediente(Ingrediente ingrediente){\n\t\tingredientes.add(ingrediente);\n\t}",
"public void addElement(ThingNode element)\n\t{\n\t\tsuper.addElement(element);\n\t\telements.add(element);\n\t}",
"@TimeComplexity(\"O(1)\")\n\tpublic E setElement(E eT)\n\t{\n\t\t//TCJ: the cost does not vary with input size so it is constant\n\t\tE temp = element;\n\t\telement = eT;\n\t\treturn temp;\n\t}",
"public void addElement(Integer elem){\n\t\tlist.add(elem);\n\t}",
"@Override\r\n\tpublic void add(T element) {\n\t\tthis._list.add(element);\r\n\t}",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"@Override\n public boolean add(Set<E> e) {\n throw new UnsupportedOperationException(\"Add not supported\");\n }",
"public void push(E element);",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"public void add(E e) {\n\t\tentities.add(e);\n\t}",
"void addElement(String name, Element element) {\n if (elementMap.containsKey(name)) {\n elementMap.get(name).add(element);\n } else {\n List<Element> newList = new ArrayList<Element>();\n newList.add(element);\n elementMap.put(name, newList);\n }\n }",
"@Override\n public void add(T element) {\n add(size(), element);\n }",
"@Override\r\n\tpublic boolean add(GIS_layer e) {\n\r\n\t\treturn set.add(e);\r\n\t}",
"public void add(E element){\n\t\tArrayQueue<E> temp = new ArrayQueue<E>();\n\t\ttemp.enqueue(element);\n\t\tQ.enqueue(temp);\n\t}",
"@Override\n public abstract void addToXmlElement(Element element);",
"public void add (T element);",
"public void add(T element);",
"public void add(T element);",
"@Override\n public boolean add(E e) {\n notNull(e);\n if (size >= elementData.length) {\n int newCapacity = (elementData.length << 1);\n elementData = Arrays.copyOf(elementData, newCapacity);\n }\n elementData[size++] = e;\n return true;\n }",
"public void push(E element) {\r\n items.add(0, element);\r\n }",
"void append(E[] elements);",
"public void addToArray(JsonElement element){\n values.add(element);\n }",
"public void addObservedGenoSet(GenoSet geno) {\r\n\t\tthis.ObservedGenoSet.add(geno);\r\n\t}",
"public void setElement(E element) {\n\t\t\tthis.element = element;\n\t\t}",
"public void agregar(T elemento) {\n\t\tNode <T> agrega= new Node<T>(elemento);\n\t\tNode <T> actual=null;\n\t\tNode <T> anterior = null;\n\t\tactual=primero;\n\t\tboolean agregado=false;\n\t\tif ( numeroElementos==0) {\n\t\t\tprimero = agrega;\n\t\t\tultimo=primero;\n\t\t}\n\t\telse if ( agrega.darElemento().compareTo(ultimo.darElemento())<=0) \n\t\t{\n\t\t\tultimo.asignarSiguiente(agrega);\n\t\t\tultimo=agrega;\n\t\t}\n\t\telse if(agrega.darElemento().compareTo(primero.darElemento())>=0) {\n\t\t\tagrega.asignarSiguiente(primero);\n\t\t\tprimero=agrega;\n\t\t\t}\n\t\telse {\n\t\t\twhile (!agregado) {\n\n\t\t\t\tif (agrega.darElemento().compareTo(actual.darElemento())<0) {\n\t\t\t\t\tanterior= actual;\n\t\t\t\t\tactual=actual.darSiguiente();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse { \n\t\t\t\t\tanterior.asignarSiguiente(agrega);\n\t\t\t\t\tagrega.asignarSiguiente(actual);\n\t\t\t\t\t\tagregado=true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tnumeroElementos++;\n\t}",
"E add(E element) {\n\t\t\tshort index = (short)((element.hashCode() >> 24) & 0x000000FF);\n\t\t\tE obj = nodes[index].add(this, element.hashCode(), element, (byte) 1);\n\t\t\tif (obj == null) {\n\t\t\t\tsize++;\n\t\t\t}\n\t\t\treturn obj;\n\t\t}",
"public void push(T element) {\n\t\t//add the new element\n\t\telements.add(element);\n\n\t}",
"public void add(String element){\n\t\tif(!contains(element)){\n\t\t\tlist.addLast(element);\n\t\t}\n\t}",
"public void addEgg( EggAbstract x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tif (x!=null){\n\t\t\teggs.add(x);\n\t\t}\n\t}",
"public abstract void add(String element) throws RemoteException;",
"public void append(T element);",
"public void append(T element);",
"public void AddE(E element)\n {\n this.add(element);\n if (this.size() != 1)\n {\n int i;\n int j;\n for (i = 0; i < this.size(); i++) {\n E value = this.get(i);\n for (j = i; j > 0; j--) {\n if (this.get(j - 1).compareTo(value) < 0) {\n break;\n } else {\n this.set(j, this.get(j - 1));\n }\n }\n this.set(j, value);\n }\n }\n }",
"public void addElement(SvgElement element) {\n Objects.requireNonNull(element);\n if (!children.contains(element)) {\n children.add(element);\n updateChildrenAttribute();\n }\n }",
"protected /*@ non_null @*/ JMLObjectSet<E> fast_insert(E elem) {\n return new JMLObjectSet<E>( // cons() clones if necessary\n JMLListObjectNode.cons(elem, the_list),\n size+1);\n }",
"public void put(E element);",
"public void setElement(E element)\n\t{\n\t\tthis.data = element;\n\t}",
"public void addElement(Object obj);",
"private void addGeneSetInfo(DefaultMutableTreeNode root) {\n Object[][] results = new Object[this.resultMatrix.A.length][this.resultMatrix.A[0].length+1];\r\n for (int i=0; i<results.length; i++){\r\n \tfor (int j=1; j<results[0].length; j++){\r\n \t\tresults[i][j]= resultMatrix.A[i][j-1];\r\n \t}\r\n }\r\n\r\n for (int i=0; i<results.length; i++){\r\n \tresults[i][0] = geneListNames[i];\r\n }\r\n String[] columns = {\"Gene List\",\"Gene Count\", \"F-value\", \"p-value (permutation)\", \"p-value (approximate)\"};\r\n \r\n IViewer tabViewer = new GLOBALANCResultTable(results,columns);\r\n \troot.add(new DefaultMutableTreeNode(new LeafInfo(\"Results Table\", tabViewer, new Integer(0))));\r\n\t\t\r\n\t}",
"@Override\n public boolean add(T e) {\n if (numElements == maxElements) {\n doubleCapacity();\n }\n\n // Add element\n elements[numElements++] = e;\n return true;\n }",
"public void addElement() {\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\taddElement(newNode);\n\t}",
"public void rbListAddElement() {\n rbProductType.clear();\n rbProductType.add(rbScs);\n rbProductType.add(rbSko);\n rbProductType.add(rbMko);\n rbProductType.add(rbZko);\n }",
"public void add(GuiElementBase element)\n\t\t{ insert(children.size(), element); }",
"public void add(E element) {\n\n\t\tif (size == capacity) {\n\t\t\tgrowArray();\n\t\t}\n\n\t\tlist[size] = element;\n\t\tsize++;\n\t}",
"private void addElite(ArrayList<Chromosome> cOld, ArrayList<Chromosome> cNew){\n int index = cOld.size()-1;\n for(int i=0;i<numElite;i++){\n //Add eliteCopies copies of each elite\n for(int c=0;c<eliteCopies;c++){\n //If first, just add the original\n if(c==0){\n cNew.add(cOld.get(index));\n }\n //Else duplicate the original\n else{\n try {\n cNew.add(cOld.get(index).clone());\n } catch (CloneNotSupportedException ex) {\n Logger.getLogger(GeneFactory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }\n index--;\n //Add a failsafe in case it has been asked to get more elite than\n //there are chromosomes\n if(index<0){\n break;\n }\n }\n }",
"public void push(T element){\n\t\tarray[noOfElements] = element;\n\t\tnoOfElements ++;\t\t\n\t}",
"public void addAll(SelectionSet newSet)\n {\n elements.addAll(newSet.elements);\n }",
"@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }",
"void addElement(FormElement elt);",
"public void createSet(String element) {\n\t\t\n\t\tSet<String> set = new HashSet<String>();\n\t\tset.add(element);\n\t\t\n\t\tMap<String, Set<String>> map = new HashMap<String, Set<String>>();\t\t\n\t\tmap.put(element, set);\n\t\t\n\t\tdisjointSet.add(map);\n\t\n\t}",
"public void addElement(String s) throws DuplicateElementException {\n\tif (elements.contains(s)) {\n\t throw new DuplicateElementException(\"The Element \"+s+\" is already in the Alias \"+this.toString());\n\t}\n\telements.add(s);\n }",
"public abstract void add(T element);",
"public abstract void add(T element);",
"@Override\n public void push(T element){\n arrayAsList.add(element);\n stackPointer++;\n }",
"public void add(Object value) {\n verifyModifiable();\n\n elements.add(value);\n }",
"public void setElement(String newElem) { element = newElem;}",
"public void add(E element){\n if(size==capacity){\n capacity *=2;\n E[] array2 = (E[]) new Object[capacity];\n if (size >= 0) System.arraycopy(array, 0, array2, 0, size);\n array2[size]=element;\n array=array2;\n }else{\n array[size]=element;\n }\n size++;\n }",
"public Bag add(D elt) {\n return new SetBag_NonEmpty(elt);\n }",
"public void add(X elem);",
"void add(int index, Object element);",
"public void addToRatebooks(entity.ImpactTestingRateBook element);",
"public void addElements(List<T> elements) {\n this.elements.addAll(elements);\n }",
"public void newElement() {\r\n }",
"public void add(Element element, Fitness score) {\r\n Validate.nonNull(element, \"element\");\r\n\r\n if (numElements >= capacity) {\r\n assert numElements == capacity : numElements;\r\n if (worstScore().compareTo(score) >= 0) {\r\n return;\r\n }\r\n }\r\n\r\n List<Element> list = elementsByFitness.get(score);\r\n if (list == null) {\r\n list = new ArrayList<>(1);\r\n List<Element> previousList = elementsByFitness.put(score, list);\r\n assert previousList == null;\r\n } else {\r\n assert !list.isEmpty();\r\n }\r\n\r\n if (!list.contains(element)) {\r\n list.add(element);\r\n ++numElements;\r\n cull(capacity);\r\n }\r\n\r\n if (list.isEmpty()) {\r\n list = elementsByFitness.remove(score);\r\n assert list != null;\r\n }\r\n }",
"public void addEdge(Edge e){\n edgeList.add(e);\n }",
"public void add(String element) {\n\t\tslist.add(element);\n\t}"
] | [
"0.72744966",
"0.68369776",
"0.654107",
"0.6156609",
"0.59677666",
"0.5839736",
"0.5784972",
"0.5752807",
"0.5746486",
"0.5703434",
"0.56745523",
"0.5670546",
"0.562323",
"0.5602917",
"0.5565153",
"0.5539199",
"0.5514513",
"0.55065024",
"0.548573",
"0.54834837",
"0.54800546",
"0.5461937",
"0.54449046",
"0.5418416",
"0.5417272",
"0.54071385",
"0.5389529",
"0.5384997",
"0.5347834",
"0.53371185",
"0.5319798",
"0.5317437",
"0.53134495",
"0.5311513",
"0.52973074",
"0.5297133",
"0.5294649",
"0.5286424",
"0.52769876",
"0.5273065",
"0.52676886",
"0.5251937",
"0.52363604",
"0.52090204",
"0.520736",
"0.52073306",
"0.5194221",
"0.51667476",
"0.51502764",
"0.51385814",
"0.51360184",
"0.51360184",
"0.5123135",
"0.51192206",
"0.51138043",
"0.5107891",
"0.51071566",
"0.50986695",
"0.5094768",
"0.50901645",
"0.50854176",
"0.50838876",
"0.5065008",
"0.5058304",
"0.50455856",
"0.50455856",
"0.5032205",
"0.50292397",
"0.5028242",
"0.5024397",
"0.50176775",
"0.50120425",
"0.50119597",
"0.5005924",
"0.50032634",
"0.5003185",
"0.5002337",
"0.4998938",
"0.4996703",
"0.4994539",
"0.49915722",
"0.49889365",
"0.49868345",
"0.49731734",
"0.49724057",
"0.4972117",
"0.4972117",
"0.49595922",
"0.4957702",
"0.49532342",
"0.4950681",
"0.49380386",
"0.49285793",
"0.49282342",
"0.49281237",
"0.49228916",
"0.4922169",
"0.49176657",
"0.49142826",
"0.4909197"
] | 0.7375305 | 0 |
Returns arraylist containing genesetelements (aka genes ) | public ArrayList<IGeneSetElement> getGenesetElements(){
return geneSetElements;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"public String getGeneList() {\n return geneList;\n }",
"protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"public Map<String, Gene> getGenes() {\n return genes;\n }",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public ArrayList<Integer> getGen() {\n\treturn _gen;\n }",
"public HashSet getElements() {\n\treturn elements;\n }",
"private static List<Gene> getGenePool() {\n List<Gene> list = new ArrayList<>();\n\n Item item1 = new Item();\n item1.setName(\"Swiss Army Knife\");\n item1.setWeight(0.08125);\n item1.setVal(15);\n Gene gene1 = new Gene(item1);\n\n Item item2 = new Item();\n item2.setName(\"Duct Tape\");\n item2.setWeight(1.3);\n item2.setVal(3);\n Gene gene2 = new Gene(item2);\n\n Item item3 = new Item();\n item3.setName(\"Rope (50 feet)\");\n item3.setWeight(7);\n item3.setVal(10);\n Gene gene3 = new Gene(item3);\n\n Item item4 = new Item();\n item4.setName(\"Satellite phone\");\n item4.setWeight(2);\n item4.setVal(8);\n Gene gene4 = new Gene(item4);\n\n Item item5 = new Item();\n item5.setName(\"Elmer's Glue\");\n item5.setWeight(0.25);\n item5.setVal(2);\n Gene gene5 = new Gene(item5);\n\n Item item6 = new Item();\n item6.setName(\"Toilet Paper Roll\");\n item6.setWeight(.5);\n item6.setVal(4);\n Gene gene6 = new Gene(item6);\n\n Item item7 = new Item();\n item7.setName(\"Binoculars\");\n item7.setWeight(3);\n item7.setVal(5);\n Gene gene7 = new Gene(item7);\n\n Item item8 = new Item();\n item8.setName(\"Compass\");\n item8.setWeight(0.0573202);\n item8.setVal(15);\n Gene gene8 = new Gene(item8);\n\n Item item9 = new Item();\n item9.setName(\"Jug (pre-filled with water)\");\n item9.setWeight(4);\n item9.setVal(6);\n Gene gene9 = new Gene(item9);\n\n Item item10 = new Item();\n item10.setName(\"Flashlight\");\n item10.setWeight(2);\n item10.setVal(4);\n Gene gene10 = new Gene(item10);\n\n Item item11 = new Item();\n item11.setName(\"Box of paper clips\");\n item11.setWeight(.9);\n item11.setVal(2);\n Gene gene11 = new Gene(item11);\n\n Item item12 = new Item();\n item12.setName(\"Gloves (1 pair)\");\n item12.setWeight(.8125);\n item12.setVal(3);\n Gene gene12 = new Gene(item12);\n\n Item item13 = new Item();\n item13.setName(\"Scissors\");\n item13.setWeight(0.2);\n item13.setVal(2);\n Gene gene13 = new Gene(item13);\n\n Item item14 = new Item();\n item14.setName(\"Signal Flair (4pk)\");\n item14.setWeight(4);\n item14.setVal(5);\n Gene gene14 = new Gene(item14);\n\n Item item15 = new Item();\n item15.setName(\"Water Purifying System\");\n item15.setWeight(0.5125);\n item15.setVal(4);\n Gene gene15 = new Gene(item15);\n\n Item item16 = new Item();\n item16.setName(\"Whistle\");\n item16.setWeight(0.075);\n item16.setVal(2);\n Gene gene16 = new Gene(item16);\n\n Item item17 = new Item();\n item17.setName(\"Sleeping Bag\");\n item17.setWeight(0.38125);\n item17.setVal(4);\n Gene gene17 = new Gene(item17);\n\n Item item18 = new Item();\n item18.setName(\"Insect Repellent\");\n item18.setWeight(1.15);\n item18.setVal(3);\n Gene gene18 = new Gene(item18);\n\n Item item19 = new Item();\n item19.setName(\"Trowel\");\n item19.setWeight(0.31875);\n item19.setVal(3);\n Gene gene19 = new Gene(item19);\n\n Item item20 = new Item();\n item20.setName(\"Lighter\");\n item20.setWeight(.2);\n item20.setVal(4);\n Gene gene20 = new Gene(item20);\n\n Item item21 = new Item();\n item21.setName(\"Safety Horn\");\n item21.setWeight(.21);\n item21.setVal(3);\n Gene gene21 = new Gene(item21);\n\n Item item22 = new Item();\n item22.setName(\"Headlamp\");\n item22.setWeight(.8);\n item22.setVal(4);\n Gene gene22 = new Gene(item22);\n\n Item item23 = new Item();\n item23.setName(\"Freeze Dried Food Kit\");\n item23.setWeight(2);\n item23.setVal(6);\n Gene gene23 = new Gene(item23);\n\n Item item24 = new Item();\n item24.setName(\"Sunscreen\");\n item24.setWeight(.5);\n item24.setVal(4);\n Gene gene24 = new Gene(item24);\n\n Item item25 = new Item();\n item25.setName(\"Trekking Pole (Adjustable)\");\n item25.setWeight(1.3);\n item25.setVal(4);\n Gene gene25 = new Gene(item25);\n\n Item item26 = new Item();\n item26.setName(\"Counter Assault Bear Spray\");\n item26.setWeight(.5);\n item26.setVal(4);\n Gene gene26 = new Gene(item26);\n\n Item item27 = new Item();\n item27.setName(\"Insect Spray\");\n item27.setWeight(.5);\n item27.setVal(3);\n Gene gene27 = new Gene(item27);\n\n Item item28 = new Item();\n item28.setName(\"Hand sanitizer\");\n item28.setWeight(.625);\n item28.setVal(3);\n Gene gene28 = new Gene(item28);\n\n Item item29 = new Item();\n item29.setName(\"Mirror\");\n item29.setWeight(.5);\n item29.setVal(3);\n Gene gene29 = new Gene(item29);\n\n Item item30 = new Item();\n item30.setName(\"First Aid Kit\");\n item30.setWeight(3);\n item30.setVal(6);\n Gene gene30 = new Gene(item30);\n\n list.add(gene1);\n list.add(gene2);\n list.add(gene3);\n list.add(gene4);\n list.add(gene5);\n list.add(gene6);\n list.add(gene7);\n list.add(gene8);\n list.add(gene9);\n list.add(gene10);\n list.add(gene11);\n list.add(gene12);\n list.add(gene13);\n list.add(gene14);\n list.add(gene15);\n list.add(gene16);\n list.add(gene17);\n list.add(gene18);\n list.add(gene19);\n list.add(gene20);\n list.add(gene21);\n list.add(gene22);\n list.add(gene23);\n list.add(gene24);\n list.add(gene25);\n list.add(gene26);\n list.add(gene27);\n list.add(gene28);\n list.add(gene29);\n list.add(gene30);\n\n return list;\n }",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"public List<Subset> getElements() {\n\t\treturn subSetList;\n\t}",
"public abstract Set<Genome> getAvailableGenomes();",
"public ArrayList<Genome_ga> makeGenomeList(int length){\n\t\tArrayList<Genome_ga> genomelist = new ArrayList<Genome_ga>();\r\n\t\tfor(int i =0; i<length;i++) {\r\n\t\t\tgenomelist.add(make1Genome());\r\n\t\t}\r\n\r\n\t\tgenomelist = evg.evalGenomeList(genomelist);\r\n\r\n\t\treturn genomelist;\r\n\t}",
"public int[] getGenes() {\r\n\t\tint[] genes = new int[9];\r\n\t\tgenes[0] = this.command.ordinal();\r\n\t\tif(this.senseDir == null){\r\n\t\t\tgenes[1] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[1] = this.senseDir.ordinal();\r\n\t\t}\r\n\t\tif(this.turnDir == null){\r\n\t\t\tgenes[2] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[2] = this.turnDir.ordinal();\r\n\t\t}\r\n\t\tgenes[3] = this.marker;\r\n\t\tgenes[4] = this.p;\r\n\t\tgenes[5] = this.st1;\r\n\t\tgenes[6] = this.st2;\r\n\t\tif(this.condition == null){\r\n\t\t\tgenes[7] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[7] = this.condition.ordinal();\r\n\t\t}\r\n\t\tgenes[8] = this.senseMarker;\r\n\t\treturn genes;\r\n\t}",
"public List<GenomicElement> getElements(GenomicRegion region) {\n return null;\n }",
"public Iterator<T> byGenerations() {\r\n ArrayIterator<T> iter = new ArrayIterator<T>();\r\n\r\n for (int i = 0; i < SIZE; i++) {\r\n iter.add(tree[i]);\r\n }\r\n\r\n return iter;\r\n }",
"public ArrayList<Elezione> caricaElezioni() {\n\t\t\t\n\t\t\tDB db = getDB();\n\t\t\tMap<Integer, Elezione> map = db.getTreeMap(\"elezione\");\n\t\t\tArrayList<Elezione> elezioni = new ArrayList<Elezione>();\n\t\t\tSet<Integer> keys = map.keySet();\n\t\t\tfor (int key : keys) {\n\t\t\t\telezioni.add(map.get(key));\n\t\t\t}\n\t\t\treturn elezioni;\n\t\t}",
"public ArrayList <EggAbstract> getEggs() {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\treturn eggs;\n\t}",
"private Set<String> getSubNetGenes(String organism, String file) {\n\n\t\tSet<String> localSubNetGenes = Sets.newHashSet();\n\t\tDocument doc = openDoc(file);\n\n\t\t// Now I got the doc. So I can traverse the file\n\t\tElement root = doc.getDocumentElement();\n\n\t\tNodeList nodes = root.getChildNodes();\n\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode node = nodes.item(i);\n\n\t\t\tif (node.getNodeName().equals(\"entry\")) {\n\n\t\t\t\tString localName = null;\n\t\t\t\tString objType = null;\n\n\t\t\t\tNamedNodeMap localAttrs = node.getAttributes();\n\n\t\t\t\tfor (int k = 0; k < localAttrs.getLength(); k++) {\n\n\t\t\t\t\tNode localAt = localAttrs.item(k);\n\n\t\t\t\t\tif (localAt.getNodeName().equals(\"name\")) {\n\t\t\t\t\t\tlocalName = localAt.getNodeValue();\n\t\t\t\t\t} else if (localAt.getNodeName().equals(\"type\")) {\n\t\t\t\t\t\tobjType = localAt.getNodeValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprocessEntry(localSubNetGenes, localName, objType);\n\t\t\t}\n\n\t\t}\n\t\treturn localSubNetGenes;\n\t}",
"public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Bars> i = BarsList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }",
"ImmutableList<SchemaOrgType> getGenreList();",
"protected Set<Integer> getInnovations() {\n\t\treturn genes.keySet();\n\t}",
"public Tag [] getTagSet() {\n return this.TagSet;\n }",
"ArrayList<String> returnArray() {\n\t\treturn stringArray; // Return just the array and not the Set object\n\t}",
"@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }",
"public GermplasmList getGermPlasmList(String fileName) throws Exception;",
"@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}",
"private Object[] elements() {\n return elements.toArray();\n }",
"public Collection<GObject> getObjects();",
"public static ArrayList<Individuo> mutaHeuristica(ArrayList<Individuo> genAnt,int nB){\n ArrayList<Individuo> aux = genAnt;\n ArrayList<Integer> genesS = new ArrayList<>();\n int nM = (int) (genAnt.size()*0.2); //determina cuantos individuos van a ser mutados\n int iS,gS,i=0,n,c;\n byte gaux[],baux;\n Random r = new Random();\n while(i<nM){\n gS = r.nextInt(nB+1);//selecciona el numero de genes aleatoriamente\n iS = r.nextInt(genAnt.size());//selecciona un individuo aleatoriamente\n gaux = aux.get(iS).getGenotipo();//obtenemos genotipo de ind seleccionado\n c=0;\n System.out.println(gS);\n //seleccionamos genes a ser permutados\n while(c != gS){\n n = r.nextInt(nB);\n if(!genesS.contains(n)){\n genesS.add(n);\n System.out.print(genesS.get(c)+\" \");\n c++;\n }\n }\n System.out.println(\"\");\n //aux.remove(iS);//quitamos elemento\n //aux.add(iS, new Individuo(gaux,genAnt.get(0).getTipoRepre()));//añadimos elemento mutado\n i++;\n }\n return aux;\n }",
"private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"E[] getAll();",
"public ObservableList<String> getAllGenres(){\n return allGenres;\n }",
"public ArrayList<String> getObjects(){\n ArrayList<String> objs = new ArrayList<>();\n for (int i = 0; i < field.length; i++){\n objs.add(\"Asteroid\");\n }\n return objs;\n }",
"public static ArrayList<String> getGeneSymbols(String filename){\n String line = null;\t\t\n\t\t// This will contain the gene symbols\n\t\tArrayList<String> geneSymbols = new ArrayList<String>();\n try {\n // FileReader reads text files in the default encoding.\n FileReader fileReader = new FileReader(filename);\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while((line = bufferedReader.readLine()) != null) {\n\t\t\t\tString lineHolder = line.toString();\n\t\t\t\tString delimiter = \"\\\\t\";\n\t\t\t\tString [] strArray = lineHolder.split(delimiter);\n geneSymbols.add(strArray[0]);\n } \n // Always close files.\n bufferedReader.close(); \n }\n catch(FileNotFoundException ex) {\n System.out.println(\"Unable to open file '\" + filename + \"'\"); \n }\n catch(IOException ex) {\n System.out.println(\"Error reading file '\" + filename + \"'\"); \n // Or we could just do this: \n // ex.printStackTrace();\n\t\t}\n\t\treturn geneSymbols;\n\t}",
"public ArrayList<MovieGenreModel> getAllGenres() {\n\t\treturn null;\n\t}",
"public final native GEFeatureContainer getFeatures() /*-{\r\n\t\treturn this.getFeatures();\r\n\t}-*/;",
"private Itemset[] getItemsets() {\n\t\t\treturn frequentItemsets.keySet().toArray(new Itemset[frequentItemsets.size()]);\n\t\t}",
"public ArrayList<GenoSet> getImputedGenoSet() {\r\n\t\treturn ImputedGenoSet;\r\n\t}",
"public GenoSet getObservedGenoSet(int i) {\r\n\t\treturn ObservedGenoSet.get(i);\r\n\t}",
"public ArrayList<Chromosome> getEliteChromosomes() {\n // SortedMap instead of HashMap? Duplicate key values? \n ArrayList<Chromosome> elites = new ArrayList<Chromosome>();\n// ArrayList<Chromosome> sortedList = this.getChromosomesSorted();\n boolean firstRun = true;\n\n //this.sort();\n Collections.sort(this.chromosomes);\n\n while (elites.size() < Defines.eliteCt) {\n for (Chromosome chromosome : this.chromosomes) {\n if (elites.size() < Defines.eliteCt) {\n if (firstRun && chromosome.isValid()) {\n elites.add(chromosome);\n } else {\n elites.add(chromosome);\n }\n }\n }\n firstRun = false;\n }\n return elites;\n }",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"public ArrayList getChunks() {\n ArrayList tmp = new ArrayList();\n for (Iterator i = iterator(); i.hasNext(); ) {\n tmp.addAll(((Element) i.next()).getChunks());\n }\n return tmp;\n }",
"public UGen[] getuGenArray() {\n\t\treturn uGenArray;\n\t}",
"@Override\n\tpublic ArrayList<Elezione> listaElezioni() {\n\t\tArrayList<Elezione> listaElezioni = caricaElezioni();\n\t\treturn listaElezioni;\n\t}",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList();",
"static ArrayList<Ingredient> getIngredients() {\n\t\tArrayList<Ingredient> Ingredients = new ArrayList<Ingredient>();\n\t\tfor (Recipe rec : Recipes) {\n\t\t\tfor (String ing : rec.Ingredients) {\n\t\t\t\taddIngredient(Ingredients, ing);\n\t\t\t}\n\t\t}\n\t\treturn Ingredients;\n\t}",
"public Object[] getElements() {\r\n\t\treturn elements.clone();\r\n\t}",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"Set<Vertex> getVertices();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray();",
"public Set<E> getEdges();",
"@NotNull\n @Override\n public Object[] getVariants() {\n final Set<String> alreadySeen = ContainerUtil.newHashSet();\n final List<LookupElement> results = ContainerUtil.newArrayList();\n ResolveUtil.treeWalkUp(myElement, new FrogBaseScopeProcessor() {\n @Override\n public boolean execute(@NotNull PsiElement element, ResolveState state) {\n if (element instanceof FrogNamedElement) {\n FrogNamedElement namedElement = (FrogNamedElement) element;\n String name = namedElement.getName();\n if (!alreadySeen.contains(name)) {\n alreadySeen.add(name);\n results.add(buildLookupElement(namedElement));\n }\n }\n return true;\n }\n });\n return ArrayUtil.toObjectArray(results);\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic ArrayList<E> getEntities() {\n\t\treturn (ArrayList<E>) entities.clone();\n\t}",
"public ArrayList<Edge> getListEdges(){\r\n return listEdges;\r\n }",
"HCollection values();",
"public int[] getArticulationVertices() {\n int[] xs = new int[set.cardinality()];\n for (int x = set.nextSetBit(0), i = 0;\n x >= 0;\n x = set.nextSetBit(x + 1), i++) {\n xs[i] = x;\n }\n return xs;\n }",
"private Collection<Edge> getEdges()\r\n\t{\r\n\t return eSet;\r\n\t}",
"public List<NoteToken> getElts(){\r\n List<NoteToken> returnList = new ArrayList<NoteToken>();\r\n for (Iterator<Meters> i = MetersList.iterator(); i.hasNext();){\r\n returnList.addAll(i.next().getElts());\r\n }\r\n return returnList;\r\n }",
"public java.util.List<org.landxml.schema.landXML11.FeatureDocument.Feature> getFeatureList()\r\n {\r\n final class FeatureList extends java.util.AbstractList<org.landxml.schema.landXML11.FeatureDocument.Feature>\r\n {\r\n public org.landxml.schema.landXML11.FeatureDocument.Feature get(int i)\r\n { return GPSSetupImpl.this.getFeatureArray(i); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature set(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.setFeatureArray(i, o);\r\n return old;\r\n }\r\n \r\n public void add(int i, org.landxml.schema.landXML11.FeatureDocument.Feature o)\r\n { GPSSetupImpl.this.insertNewFeature(i).set(o); }\r\n \r\n public org.landxml.schema.landXML11.FeatureDocument.Feature remove(int i)\r\n {\r\n org.landxml.schema.landXML11.FeatureDocument.Feature old = GPSSetupImpl.this.getFeatureArray(i);\r\n GPSSetupImpl.this.removeFeature(i);\r\n return old;\r\n }\r\n \r\n public int size()\r\n { return GPSSetupImpl.this.sizeOfFeatureArray(); }\r\n \r\n }\r\n \r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return new FeatureList();\r\n }\r\n }",
"public E[] values(){\n\t\tE[] output = (E[]) new Object[howMany];\n\t\tint j = 0;\n\t\tfor (int i = 0; i < elem.length; i++)\n\t\t\tif (elem[i] != null){\n\t\t\t\toutput[j] = elem[i];\n\t\t\t\tj = j + 1;\n\t\t\t}\n\t\treturn output;\n\t}",
"public Object[] getGroupList() {\n return grouptabs.keySet().toArray();\n }",
"Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n ArrayList<Long> verticesIter = new ArrayList<>();\n verticesIter.addAll(adj.keySet());\n return verticesIter;\n }",
"static String[] getProductTagsArray() {\n\n\t\tList<String> productTagsList = new ArrayList<>();\n\t\tproductTagsList.add(\"neutro\");\n\t\tproductTagsList.add(\"veludo\");\n\t\tproductTagsList.add(\"couro\");\n\t\tproductTagsList.add(\"basics\");\n\t\tproductTagsList.add(\"festa\");\n\t\tproductTagsList.add(\"workwear\");\n\t\tproductTagsList.add(\"inverno\");\n\t\tproductTagsList.add(\"boho\");\n\t\tproductTagsList.add(\"estampas\");\n\t\tproductTagsList.add(\"balada\");\n\t\tproductTagsList.add(\"colorido\");\n\t\tproductTagsList.add(\"casual\");\n\t\tproductTagsList.add(\"liso\");\n\t\tproductTagsList.add(\"moderno\");\n\t\tproductTagsList.add(\"passeio\");\n\t\tproductTagsList.add(\"metal\");\n\t\tproductTagsList.add(\"viagem\");\n\t\tproductTagsList.add(\"delicado\");\n\t\tproductTagsList.add(\"descolado\");\n\t\tproductTagsList.add(\"elastano\");\n\n\t\treturn productTagsList.toArray(new String[productTagsList.size()]);\n\t}",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"public /*@ non_null @*/ JMLObjectBag<E> toBag() {\n JMLObjectBag<E> ret = new JMLObjectBag<E>();\n JMLIterator<E> elems = iterator();\n while (elems.hasNext()) {\n //@ assume elems.moreElements;\n E o = elems.next();\n E e = (o == null ? null : o);\n ret = ret.insert(e);\n }\n return ret;\n }",
"public ArrayList<T> getList() {\n synchronized(this) {\n return new ArrayList<T>(_treeSet);\n }\n }",
"Collection<V> getAllElements();",
"public ImmutableList<G> getGoods() {\n return this.goods;\n }",
"public ArrayList<InformeGarage> obtenerInformeEstadoGarages() {\n\n\t\tArrayList<InformeGarage> lista = new ArrayList<InformeGarage>();\n\n\t\tfor (Garage garage : this.garages) {\n\t\t\tlista.add(garage.dameInforme());\n\t\t}\n\t\treturn lista;\n\t}",
"Iterable<? extends XomNode> elements();",
"@Override\n\tpublic GalaxyNote[] galList() {\n\t\treturn null;\n\t}",
"public Set<V> getVertices();",
"public Set<V> getVertices();",
"@DISPID(1610940426) //= 0x6005000a. The runtime will prefer the VTID if present\n @VTID(32)\n GeometricElements geometricElements();",
"public void setGeneList(String geneList) {\n this.geneList = geneList;\n }",
"private static List forestIntoList() {\n List temp = new ArrayList<Integer>();\n for (int i = 0; i < SIZE; i++) {\n for (int j = 0; j < SIZE; j++) {\n temp.add(forest[i][j]);\n }\n }\n return temp;\n }",
"java.util.List<java.lang.String> getFeaturesList();",
"public synchronized Collection getElementos() {\n return elemento.values();\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate List<Gene> getAllByName(String name, Session session) {\n\t\tQuery query = session.createQuery(\"select distinct(g) from Xref as x1, Xref as x2, TranscriptToXref as tx1, TranscriptToXref as tx2, Dbname as db, Gene as g where\" +\n\t\t\t\t\" x1.displayId= :name and\" +\n\t\t\t\t\" x1.xrefId=tx1.xref and\" +\n\t\t\t\t\" tx1.transcript=tx2.transcript and\" +\n\t\t\t\t\" tx2.xref=x2.xrefId and\" +\n\t\t\t\t\" x2.dbname=db.dbnameId and\" +\n\t\t\t\t\" db.name='ensembl_gene' and\" +\n\t\t\t\t\" x2.displayId=g.stableId\").setParameter(\"name\", name.trim()); //and t.gene=g.geneId\" , Transcript as t\n\t\treturn (List<Gene>)query.list();\n\t}",
"@DISPID(1610940416) //= 0x60050000. The runtime will prefer the VTID if present\n @VTID(22)\n GeometricElements geometricElements();",
"public DEdge[] getEdges(){\n return listOfEdges;\n }",
"@DISPID(1610940447) //= 0x6005001f. The runtime will prefer the VTID if present\n @VTID(53)\n OrderedGeometricalSets orderedGeometricalSets();",
"public java.util.List<uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureEdge.Builder> \n getEdgeBuilderList() {\n return getEdgeFieldBuilder().getBuilderList();\n }",
"public List<Element> listElements() {\r\n List<Element> result = new ArrayList<>(numElements);\r\n for (Entry<Fitness, List<Element>> entry\r\n : elementsByFitness.descendingMap().entrySet()) {\r\n List<Element> list = entry.getValue();\r\n assert !list.isEmpty();\r\n result.addAll(list);\r\n }\r\n\r\n return result;\r\n }",
"public Bag[] get_bags() {\r\n return this.bags;\r\n }",
"public GasSystemRecord[][] gasList(ArrayList<GasSystemRecord> gaslist){\n\t\tif(gaslist == null){\n\t\t\treturn null;\n\t\t}\n\t\telse{\n\t\t\tGasSystemRecord[][] list = new GasSystemRecord[(int)Math.ceil((double)gaslist.size()/(double)5)][5];\n\t\t\tint i;\n\t\t\tint j = 0;\n\t\t\tint count = 0;\n\t\t\t\n\t\t\tfor(i = 0 ; i < gaslist.size() ; i++){\n\t\t\t\tif( i < 5 ){\n\t\t\t\t\tlist[j][i] = (GasSystemRecord)gaslist.get(i);\n\t\t\t\t\tif(i == 4){\n\t\t\t\t\t\tj++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tlist[j][i % 5] = gaslist.get(i);\n\t\t\t\t\tcount++;\n\t\t\t\t\tif( count == 5){\n\t\t\t\t\t\tj++;\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn list;\n\t\t}\n\t}",
"public org.landxml.schema.landXML11.FeatureDocument.Feature[] getFeatureArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(FEATURE$14, targetList);\r\n org.landxml.schema.landXML11.FeatureDocument.Feature[] result = new org.landxml.schema.landXML11.FeatureDocument.Feature[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }",
"public ArrayList<Casella> getGrup()\n\t{\n\t\treturn grup;\n\t}",
"@Override\r\n\tpublic List<Groupe> getGroupes() {\n\t\treturn dao.getGroupes();\r\n\t}",
"public String [ ] getNombresGranos() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Grano) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }",
"List<IMEInventoryHandler> getCellArray();",
"public Object[] getElements() {\r\n\t\treturn data.toArray();\r\n\t}",
"public Collection<String > getResult(){\n Collection<String> result = new HashSet<String>();\n result.add(\"A\");\n result.add(\"B\");\n result.add(\"C\");\n result.add(\"D\");\n return result;\n }",
"public void setGeneIds(java.util.List<java.lang.String> value) {\n this.geneIds = value;\n }",
"protected Gene getRandomGene() {\n\t\tArrayList<Gene> genearr = new ArrayList<Gene>();\n\t\tgenearr.addAll(genes.values());\n\t\treturn genearr.get(Braincraft.randomInteger(genearr.size()));\n\t}",
"@Override\n public List<E> allItems() {\n return new ArrayList(graphNodes.keySet());\n }"
] | [
"0.7613713",
"0.7136591",
"0.7024264",
"0.6953726",
"0.68463945",
"0.6362184",
"0.6273455",
"0.6252553",
"0.6245469",
"0.6240094",
"0.61775833",
"0.6173061",
"0.6115659",
"0.6037047",
"0.60284704",
"0.59960616",
"0.595504",
"0.5935298",
"0.59254616",
"0.5842262",
"0.58255464",
"0.57896924",
"0.57847726",
"0.5783615",
"0.5775519",
"0.57573634",
"0.5749809",
"0.57486796",
"0.57444346",
"0.57288325",
"0.56781465",
"0.5648094",
"0.5643593",
"0.56414604",
"0.56371194",
"0.5628701",
"0.5623204",
"0.5610324",
"0.5600167",
"0.55973506",
"0.55894065",
"0.5589366",
"0.5570118",
"0.5567948",
"0.5562358",
"0.55534184",
"0.5534737",
"0.5534737",
"0.55178505",
"0.55142325",
"0.5505134",
"0.5503803",
"0.55012655",
"0.55012655",
"0.5501149",
"0.5492389",
"0.548991",
"0.5481908",
"0.5481146",
"0.548089",
"0.54765004",
"0.5474223",
"0.54731905",
"0.54689294",
"0.5451855",
"0.54282665",
"0.54244846",
"0.5420937",
"0.54149514",
"0.54072154",
"0.5405404",
"0.5404382",
"0.5391999",
"0.5387863",
"0.5382189",
"0.538189",
"0.538189",
"0.53755355",
"0.5361937",
"0.5361633",
"0.5360487",
"0.53598964",
"0.5359838",
"0.5345553",
"0.53413653",
"0.5331503",
"0.5323784",
"0.5314895",
"0.53140783",
"0.53138673",
"0.53129596",
"0.5312798",
"0.5311837",
"0.530076",
"0.52997434",
"0.52983904",
"0.5297471",
"0.5296655",
"0.52904046",
"0.52900577"
] | 0.8035885 | 0 |
Set the name of the geneset | public void setGeneSetName(String name) {
geneSetName=name;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setName(String string) {\n\t\t\n\t}",
"public void setName(String newname) {\n name=newname;\n }",
"public void setName (String n){\n\t\tname = n;\n\t}",
"void setName(String name_);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public void setName(String name);",
"public static void set_SetName(String v) throws RuntimeException\n {\n UmlCom.send_cmd(CmdFamily.javaSettingsCmd, JavaSettingsCmd._setJavaSetNameCmd, v);\n UmlCom.check();\n \n _set_name = v;\n }",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"void setName(String name);",
"public void setName(String new_name){\n this.name=new_name;\n }",
"public void setName(String n) {\r\n name = n;\r\n }",
"public void setName(String n);",
"public void setName (String n) {\n name = n;\n }",
"public static void setName(String n){\n\t\tname = n;\n\t}",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"void setName(java.lang.String name);",
"public void setName(String newname)\n {\n name = newname;\n \n }",
"@Override\r\n public void setName(String name) {\n }",
"@Override\n\tpublic void setName(String name) {\n\t\t\n\t}",
"public void setName(String s) {\n\t\t\n\t\tname = s;\n\t}",
"public void setName(String n){ name=n; }",
"public void setName(String newname){\n name = newname; \n }",
"void setName(String strName);",
"public void setName(String nm){\n\t\tname = nm;\n\t}",
"public void setName(java.lang.String value);",
"public void setName(java.lang.String value);",
"public void setName(String arg0) {\n\t\t\n\t}",
"public void setName (String Name);",
"public void setName (String Name);",
"public void setName (String Name);",
"void setName(String s);",
"public void setName(String name) throws Exception;",
"@Override\n public void setName(String name) {\n\n }",
"@Override\n public void setName(String name) {\n \n }",
"public void setName(String name) {\n\t\tName = name;\n\t}",
"public void setName(String string) {\n\t\tthis.name = string;\n\t}",
"private void setName(java.lang.String name) {\n System.out.println(\"setting name \"+name);\n this.name = name;\n }",
"public void setName(final String name);",
"public void setName(String n) {\r\n\t\tthis.name = n;\r\n\t}",
"public void setName(String n) {\n this.name = n;\n }",
"public void setName(String name){\n \t\tthis.name = name;\n \t}",
"@Override\n\tpublic void setName(String arg0) {\n\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"@Override\n\tpublic void setName(String name) {\n\t\tsuper.setName(name);\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}",
"public void setName(String s) {\n this.name = s;\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\r\n this.name = name;\r\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String newValue);",
"public void setName(String newValue);",
"@Override\n\tpublic void setName( final String name )\n\t{\n\t\tsuper.setName( name );\n\t}",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String name) {\n \tthis.name = name;\n }",
"public void setName(String v){\n\t\ttry{\n\t\tsetProperty(SCHEMA_ELEMENT_NAME + \"/name\",v);\n\t\t_Name=null;\n\t\t} catch (Exception e1) {logger.error(e1);}\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String name){\n\t\tthis.name = name;\n\t}",
"public void setName(String value) {\n\t\tname = value;\n\t}",
"public void setName(String name) \n {\n this.name = name;\n }",
"private void setName(){\r\n\t\tString tagString = new String();\r\n\t\tfor (String k : tags.keySet()){\r\n\t\t\ttagString += \"@\" + k;\r\n\t\t}\r\n\t\tString newName = originalName + tagString +\".\"+ extension;\r\n\t\tif (!newName.equals(name)){\r\n\t\t\tremovePrevNames(newName); //if the new name is a previous name\r\n\t\t\taddPrevNames(name);\r\n\t\t\tupdateLog(newName);\r\n\t\t\tname = newName;\r\n\t\t\t//notify the tag observer\r\n\t\t\tsetChanged();\r\n\t\t\tnotifyObservers();\r\n\t\t\tclearChanged();\r\n\t\t}\r\n\t}",
"public void setName(String new_name) {\n\t\t_name = new_name;\n\t}",
"private void setName() {\n\t\t//MAKE SURE NOT TO GET ACCIDENTAL RECURSION HERE\n\t\t//DO NOT JUST MAKE A NEW TRIAD AND COMPARE TO CURRENT TRIAD\n\t\t//UNLESS ??? MAYBEDON\"T PUT SET NAME IN THE CONSTRUCTOR?\n\t\t//SIMILAR PROBLEM TO SETINVERSION\n\t\t\n\t\t//major, minor, diminished, augmented\n\t\t//this.name = name;\n\t}",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setName(String name){\n this.name = name;\n }",
"public void setGeneName(String geneName) {\n this.geneName = geneName;\n }",
"public void setName(String name) {\n this.name = name;\n }",
"public void setName(String name) {\n if (definerSet) {\n tooManyDefinitions();\n }\n definerSet = true;\n this.name = name;\n }",
"public void setName(String value) {\n this.name = value;\n }",
"public void setName(String name) {\t\t\r\n\t\tthis.name = name;\t\t\r\n\t}",
"public void setName(String name)\n {\n this.name=name;\n }",
"public void setName(String name) {\r\n\t\tthis.name=name;\r\n\t}",
"@Override\r\n\tpublic void setName(String name) {\n\t\tthis.name = name;\r\n\t}",
"public void setName(String name) {\r\n \t\tthis.name = name;\r\n \t}",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name) {\r\n this.name = name;\r\n }",
"public void setName(String name)\n \t{\n \t\tthis.name = name;\n \t}"
] | [
"0.69011515",
"0.6864512",
"0.6858814",
"0.6788945",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.6742871",
"0.67219836",
"0.67198014",
"0.67198014",
"0.67198014",
"0.67198014",
"0.67198014",
"0.67198014",
"0.6714928",
"0.671464",
"0.66876906",
"0.6676699",
"0.6671097",
"0.66705066",
"0.66705066",
"0.66705066",
"0.6669073",
"0.6665192",
"0.66637605",
"0.66564286",
"0.6655645",
"0.6644169",
"0.6631466",
"0.6624919",
"0.66094315",
"0.66094315",
"0.65959334",
"0.65950495",
"0.65950495",
"0.65950495",
"0.6586119",
"0.6580738",
"0.6578373",
"0.6574174",
"0.6572439",
"0.657159",
"0.6570177",
"0.6569011",
"0.65653634",
"0.65609777",
"0.65445817",
"0.65427375",
"0.6529404",
"0.6529404",
"0.6503603",
"0.6503603",
"0.6503603",
"0.64999473",
"0.6490861",
"0.6490861",
"0.6490861",
"0.649003",
"0.64880127",
"0.64880127",
"0.6483328",
"0.64812475",
"0.64812475",
"0.64809966",
"0.6478319",
"0.6478319",
"0.6478319",
"0.6465277",
"0.6461313",
"0.6460688",
"0.6457046",
"0.6451267",
"0.64485395",
"0.64485395",
"0.64485395",
"0.64485395",
"0.64485395",
"0.64485395",
"0.64485395",
"0.64476305",
"0.64440906",
"0.64358413",
"0.64270604",
"0.6422",
"0.64188546",
"0.64159256",
"0.6407917",
"0.6406816",
"0.63985246",
"0.63985246",
"0.63985246",
"0.6393041"
] | 0.8168786 | 0 |
Returns a string array containing genes in each synexpression group. There may be multiple synExpressionGroups for a geneset. | public String[] getSynExpressionGroup(String name) {
return synExpressionGroups.get(name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String[] getSimilarGenes(\r\n\t\t\tString synExpressionGroupName) {\r\n\t\t\r\n\t\treturn similarGeneGroups.get(synExpressionGroupName);\r\n\t}",
"public int[] getGenes() {\r\n\t\tint[] genes = new int[9];\r\n\t\tgenes[0] = this.command.ordinal();\r\n\t\tif(this.senseDir == null){\r\n\t\t\tgenes[1] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[1] = this.senseDir.ordinal();\r\n\t\t}\r\n\t\tif(this.turnDir == null){\r\n\t\t\tgenes[2] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[2] = this.turnDir.ordinal();\r\n\t\t}\r\n\t\tgenes[3] = this.marker;\r\n\t\tgenes[4] = this.p;\r\n\t\tgenes[5] = this.st1;\r\n\t\tgenes[6] = this.st2;\r\n\t\tif(this.condition == null){\r\n\t\t\tgenes[7] = -1;\r\n\t\t}else{\r\n\t\t\tgenes[7] = this.condition.ordinal();\r\n\t\t}\r\n\t\tgenes[8] = this.senseMarker;\r\n\t\treturn genes;\r\n\t}",
"protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}",
"public String getGeneList() {\n return geneList;\n }",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"public java.util.List<java.lang.String> getGeneIds() {\n return geneIds;\n }",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public String getGenresString(){\n String genres =\"\";\n for (String str : allGenres){\n genres += str +\", \";\n }\n return genres;\n }",
"public Map<String, Gene> getGenes() {\n return genes;\n }",
"public Model[] getGnetGroup() {\r\n int cr, num = 0;\r\n Model[] group = new Model[models.size()];\r\n // if (Controls.getInstance().getGnet() == null) {\r\n return null;\r\n // }\r\n // cr = Controls.getInstance().getGnet().getTargetVariable();\r\n// for (int i = 0; i < models.size(); i++) {\r\n// if (getModel(i) != null) {\r\n// if (getModel(i).getTargetVariable() == cr) {\r\n// group[num++] = getModel(i);\r\n// }\r\n// }\r\n// }\r\n //return group;\r\n }",
"private String[] getArrayGroupName() {\n java.util.List<StudentGroupThrift> studentGroupThrifts = mainWindow.getStudentClient().getAllStudentGroup();\n List<String> groupName = studentGroupThrifts.stream()\n .map(StudentGroupThrift::getName).collect(Collectors.toList());\n return groupName.toArray(new String[groupName.size()]);\n }",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"Iterable<String> groups();",
"public String [ ] getNombresGranos() {\n int cantidad = 0;\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n \n if(this.ingredientes.get(i) instanceof Grano) {\n cantidad++;\n }\n }\n\n String arreglo[] = new String[cantidad];\n \n for(int i = 0; i < cantidad; i ++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }",
"public String[] getSupportedGenomeBuilds() {\n ArrayList<String> supported=new ArrayList<String>();\n for (DataSource source:datasources) {\n String sourcebuild=source.getGenomeBuild();\n if (sourcebuild!=null && !supported.contains(sourcebuild)) supported.add(sourcebuild);\n } \n Collections.sort(supported);\n String[] ar=new String[supported.size()];\n return supported.toArray(ar);\n }",
"public ComboItem[] getEe_groups() {\r\n\t\treturn ee_groups;\r\n\t}",
"@SuppressWarnings(\"serial\")\n\tpublic ArrayList<String> getGroups() throws Exception{\n\t\treturn new ArrayList<String>(){{\n\t\t\tUserRegistry ur = UserRegistry.findOrCreate(doc);\n\t\t\tGroups groups = Groups.findOrCreate(ur);\n\t\t\tfor(Group g:Group.list(groups))\n\t\t\t\tadd(g.getAttribute(\"name\"));\n\t\t}};\n\t}",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGssExportedNameType[] getGssExportedNameArray();",
"Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);",
"public String getStringOfGene()\n {\n String print = \"\";\n for(int x = 0; x < numOfCoef; x++)\n {\n print = print +\"||\"+ vectOfCoef.get(x);\n }\n return print;\n }",
"public TreeMap<String, Course> getGenEndCourses(String[] genEds) {\n\n StringBuffer gen = new StringBuffer();\n for (String s : genEds) {\n gen.append(s);\n gen.append(\"|\");\n }\n gen.deleteCharAt(gen.length() - 1);\n\n return getCourses(\"gen_ed=\" + gen.toString());\n }",
"public List<String> getAggregatedOutput() {\r\n\t\t//begin\r\n\t\tList<String> temp = Broker.getOutput();\r\n\t\treturn temp;\r\n\t\t//end\r\n\t\t//return null;\r\n\t}",
"String[] getGenerators();",
"public String getGroupNamesAsString() {\n return String.format(\"%s\", StringUtils.join(getGroupNames(), \", \"));\n }",
"private String[] getNodeStringArray(){\n String[] nodes = new String[truss.getNodeModel().size()];\n for(int i =0;i<truss.getNodeModel().size();i++){\n nodes[i] = \"Node\" + truss.getNodeModel().get(i).getNumber();\n }\n return nodes;\n }",
"public String genotypeToString()\n {\n StringBuilder s = new StringBuilder();\n s.append( Code.encode( genome.length ) );\n for( int i = 0 ; i < genome.length ; i++ ) {\n s.append(Code.encode(genome[i].toString()));\n }\n return s.toString();\n }",
"static String[] getProductTagsArray() {\n\n\t\tList<String> productTagsList = new ArrayList<>();\n\t\tproductTagsList.add(\"neutro\");\n\t\tproductTagsList.add(\"veludo\");\n\t\tproductTagsList.add(\"couro\");\n\t\tproductTagsList.add(\"basics\");\n\t\tproductTagsList.add(\"festa\");\n\t\tproductTagsList.add(\"workwear\");\n\t\tproductTagsList.add(\"inverno\");\n\t\tproductTagsList.add(\"boho\");\n\t\tproductTagsList.add(\"estampas\");\n\t\tproductTagsList.add(\"balada\");\n\t\tproductTagsList.add(\"colorido\");\n\t\tproductTagsList.add(\"casual\");\n\t\tproductTagsList.add(\"liso\");\n\t\tproductTagsList.add(\"moderno\");\n\t\tproductTagsList.add(\"passeio\");\n\t\tproductTagsList.add(\"metal\");\n\t\tproductTagsList.add(\"viagem\");\n\t\tproductTagsList.add(\"delicado\");\n\t\tproductTagsList.add(\"descolado\");\n\t\tproductTagsList.add(\"elastano\");\n\n\t\treturn productTagsList.toArray(new String[productTagsList.size()]);\n\t}",
"public String[] getStringArray(String subExpression) {\n String[] result = null;\n String expression = contextNode + \"/\" + subExpression;\n try {\n NodeList nl = (NodeList)xp.evaluate(contextNode + \"/\" + subExpression, source, XPathConstants.NODESET);\n int n = nl.getLength();\n if (n > 0) {\n result = new String[n];\n for (int i = 0; i < n; i++) result[i] = nl.item(i).getTextContent();\n }\n } catch(Exception e) {\n Util.log(\"XML error: can't read node \" + expression + \".\");\n Util.logException(e);\n }\n return result;\n }",
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"private static String[] getMinGeneIds() {\n\t\tString []output = new String[2];\n\t\tString minI = \"\", minJ = \"\";\n\t\tdouble min = Double.MAX_VALUE;\n\t\tfor (Map.Entry<String, String> entry : minMatrix.entrySet()) {\n\t\t\tString minData[] = entry.getValue().split(\";\");\n\t\t\tdouble currDist = Double.parseDouble(minData[1]);\n\t\t\tif(currDist < min) {\n\t\t\t\tminI = entry.getKey();\n\t\t\t\tminJ = minData[0];\n\t\t\t\tmin = currDist;\n\t\t\t}\n\t\t}\n\t\toutput[0] = minI;output[1] = minJ;\n\t\treturn output;\n\t}",
"final XSElementDecl[] getSubstitutionGroups() {\n if (fSubGroupCount < fSubGroups.length)\n fSubGroups = resize(fSubGroups, fSubGroupCount);\n return fSubGroups;\n }",
"public String[ ] toStrings() {\n\t\tString[ ] theStrings = new String[1 + 3 * motifhitinfo.length];\n\t\tString[ ] mStrings;\n\t\ttheStrings[0] = PAD1 + SUBGENENAME + PAD2 + SUBGENEGENUS + PAD3 + HITSCORE + PAD4 + THETRANSLATOR.externalize(HITHOTSPOT);\n\t\tfor (int m=0; m<motifhitinfo.length; m++) {\n\t\t\tmStrings = motifhitinfo[m].toStrings();\n\t\t\ttheStrings[3 * m + 1] = mStrings[0];\n\t\t\ttheStrings[3 * m + 2] = mStrings[1];\n\t\t\ttheStrings[3 * m + 3] = mStrings[2];\n\t\t}\n\t\treturn theStrings;\n\t}",
"public String getGruposToString(){\n\t\tif(null == grupos){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tStringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.grupos.size(); i++) {\n\t\t\t\tif(i == (this.grupos.size()-1)){\n\t\t\t\t\tgrupos.append(this.grupos.get(i).getNombreGrupo());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.grupos.get(i).getNombreGrupo()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}",
"public Object[] getGroupList() {\n return grouptabs.keySet().toArray();\n }",
"public List <String> getGroups ()\n {\n return groups;\n }",
"private Set<String> getSubNetGenes(String organism, String file) {\n\n\t\tSet<String> localSubNetGenes = Sets.newHashSet();\n\t\tDocument doc = openDoc(file);\n\n\t\t// Now I got the doc. So I can traverse the file\n\t\tElement root = doc.getDocumentElement();\n\n\t\tNodeList nodes = root.getChildNodes();\n\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode node = nodes.item(i);\n\n\t\t\tif (node.getNodeName().equals(\"entry\")) {\n\n\t\t\t\tString localName = null;\n\t\t\t\tString objType = null;\n\n\t\t\t\tNamedNodeMap localAttrs = node.getAttributes();\n\n\t\t\t\tfor (int k = 0; k < localAttrs.getLength(); k++) {\n\n\t\t\t\t\tNode localAt = localAttrs.item(k);\n\n\t\t\t\t\tif (localAt.getNodeName().equals(\"name\")) {\n\t\t\t\t\t\tlocalName = localAt.getNodeValue();\n\t\t\t\t\t} else if (localAt.getNodeName().equals(\"type\")) {\n\t\t\t\t\t\tobjType = localAt.getNodeValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprocessEntry(localSubNetGenes, localName, objType);\n\t\t\t}\n\n\t\t}\n\t\treturn localSubNetGenes;\n\t}",
"protected String[] getSubjectLines ()\n {\n Set<String> subjectLines = Sets.newHashSet();\n for (String bucketName : _buckets) {\n for (Bucket b : Bucket.values()) {\n if (b.name.equals(bucketName)) {\n for (String subj : b.subjectLines) {\n subjectLines.add(subj);\n }\n }\n }\n }\n return subjectLines.toArray(new String[subjectLines.size()]);\n }",
"public List<String> findAllSynonyms(String gene){\n\t\tList<String> synonyms = new ArrayList<String> ();\n\t\tif (this.termSet.contains(gene)){\n\t\t\tMap<String,List<String>> geneSynonyms = this.synonymDictionary.get(gene);\n\t\t\tSet<String> keys = geneSynonyms.keySet();\n\t\t\tfor(String k:keys){\n\t\t\t\tList<String> subList = geneSynonyms.get(k);\n\t\t\t\tfor(String s:subList){\n\t\t\t\t\tsynonyms.add(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn synonyms;\n\t}",
"@Override\n public String toString() {\n return AGGREGATE_NODE_STR + \" \" + groupingVariables + \" \" + \"[\" + substitution + \"]\" ;\n }",
"public Set<SymbolGroup> getGroups() {\n return groups;\n }",
"public static MekString[] getMekStringArray(){\n\t\treturn setOfStrings;\n\t}",
"public String toString()\r\n {\n String str = \"lrr[\" + geneId + \", \" + exons.size() + \" ex]\\n\";\r\n // str += \"Exon Starts: \" + ArrayUtils.toString(exonStarts) + \"\\n\";\r\n // str += \"Exon Ends: \" + ArrayUtils.toString(exonEnds) + \"\\n\";\r\n return str;\r\n }",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSGeneralNameType[] getGeneralNameArray();",
"public String[] getStringArray() {\r\n\t\tString[] a = value.getStringArray();\r\n\t\tif (a == null)\r\n\t\t\treturn null;\r\n\t\tint n = a.length;\r\n\t\tString[] b = new String[n];\r\n\t\tfor (int i = 0; i < n; i++)\r\n\t\t\tb[i] = substitution(a[i]);\r\n\t\treturn (b);\r\n\t}",
"public List<String> emitGenotype() {\n\t\tList<String> genotype = new ArrayList<String>();\n\t\tfor (int i = 0; i < 2; i++) {\n\t\t\tdouble random = Math.random();\n\t\t\tif (random < 0.0005) {\n\t\t\t\tgenotype.add(\"1\");\n\t\t\t} else {\n\t\t\t\tgenotype.add(\"0\");\n\t\t\t}\n\t\t}\n\t\treturn(genotype);\n\t}",
"protected Set<String> getGroupsSet() {\n return getGroupsList().stream().collect(Collectors.toSet());\n }",
"public String [ ] getNombresIngredientes() {\n String arreglo[] = new String[this.ingredientes.size()];\n \n for(int i = 0; i < this.ingredientes.size(); i++) {\n arreglo[i] = this.ingredientes.get(i).toString();\n }\n \n return arreglo;\n }",
"String[] getTags() {\n if (sections == null) {\n return null;\n }\n\n Vector<String> tagV = new Vector<>(sections.length * 2);\n\n for (Section section : sections) {\n String[] names = section.getOutputNames();\n\n Collections.addAll(tagV, names);\n } // outer for\n\n return tagV.toArray(new String[tagV.size()]);\n }",
"public String getRegulations() {\n return regulations;\n }",
"public com.walgreens.rxit.ch.cda.StrucDocSup[] getSupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(SUP$4, targetList);\n com.walgreens.rxit.ch.cda.StrucDocSup[] result = new com.walgreens.rxit.ch.cda.StrucDocSup[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public String[] getGradeRanges() {\n\t\tString t = doc.get(getFieldId(\"gradeRange\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public java.lang.String getGENGRP() {\n return GENGRP;\n }",
"public String[] tileRefsArray() {\n String[] s = new String[tileRefs.size()];\n\n for (int i = 1; i <= tileRefs.size(); i++) {\n s[i - 1] = tileRefs.get(String.valueOf(i));\n }\n\n return s;\n }",
"public String[] toStrings();",
"public RefSeq getGeneAnn() {\n\t\treturn geneAnn;\n\t}",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public String[] getLookupGroups() throws RemoteException {\n\t\treturn disco.getGroups();\n\t}",
"public java.util.List<ReservationCoverageGroup> getGroups() {\n return groups;\n }",
"public ObservableList<String> getAllGenres(){\n return allGenres;\n }",
"public String[] nodeLabelsArray() {\n List<String> list = Utils.jListGetValuesWrapper(entity_label_list);\n String strs[] = new String[list.size()]; for (int i=0;i<strs.length;i++) strs[i] = list.get(i);\n return strs;\n }",
"@Override\r\n public Set<String> getContainers()\r\n {\r\n assert(true);\r\n \tSet<String> toReturn = new TreeSet<String>();\r\n for (ProductContainer container : groups)\r\n {\r\n toReturn.add(container.getName());\r\n }\r\n return toReturn;\r\n }",
"public String getGeneName() {\n return geneName;\n }",
"public List<OSSGroup> getGroups() {\r\n\t\treturn groups;\r\n\t}",
"public Iterable<String> nouns(){\n List<String> ReturnType = new ArrayList<String>();\n for(int i =0; i< SynSets.length; i++)\n ReturnType.add(SynSets[i][0]);\n return ReturnType;\n }",
"public Collection<String> getGroupNames() {\n getGroupCache();\n if (groupNames == null) return null;\n return new ArrayList<String>(groupNames);\n }",
"public String[] getTransforms() {\r\n List<String> al = new ArrayList<String>();\r\n // Iterate through the transforms\r\n Iterator<BundlesDT.DT> it_dt = transforms.keySet().iterator();\r\n while (it_dt.hasNext()) {\r\n BundlesDT.DT datatype = it_dt.next();\r\n Iterator<String> it_trans = transforms.get(datatype).keySet().iterator();\r\n while (it_trans.hasNext()) {\r\n String trans = it_trans.next();\r\n\tal.add(\"\" + datatype + BundlesDT.DELIM + trans);\r\n }\r\n }\r\n // Convert back to strings\r\n String strs[] = new String[al.size()]; for (int i=0;i<strs.length;i++) strs[i] = al.get(i);\r\n return strs;\r\n }",
"public String[] asStringArray() {\n\t\tString array[] = new String[4];\n\t\tarray[0] = \"Name: \" + this.name;\n\t\tarray[1] = \"Money: \" + Double.toString(this.money);\n\t\tarray[2] = \"On table: \" + Double.toString(onTable);\n\t\tif (this.getBlind() == Blind.NONE) {\n\t\t\tarray[3] = \"\";\n\t\t} else {\n\t\t\tarray[3] = \"Blind \" + this.blind.name();\n\t\t}\n\t\treturn array;\n\t}",
"public com.walgreens.rxit.ch.cda.StrucDocColgroup[] getColgroupArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(COLGROUP$4, targetList);\n com.walgreens.rxit.ch.cda.StrucDocColgroup[] result = new com.walgreens.rxit.ch.cda.StrucDocColgroup[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"ImmutableList<SchemaOrgType> getGenreList();",
"public static Double[] generateGenome() {\n\t\tDouble[] genome = new Double[variableNum];\n\t\tfor(int i = 0; i < variableNum; i++) {\n\t\t\tgenome[i] = (Math.random() - 0.5)*(maxValue - minValue);\n\t\t}\n\t\treturn genome;\n\t}",
"public String[] getSubjects() {\n\t\tString t = doc.get(getFieldId(\"subject\", metadataFormat)).trim();\n\t\tString[] vals;\n\t\tif (t == null || t.length() == 0) {\n\t\t\treturn null;\n\t\t}\n\t\treturn t.split(\"\\\\+\");\n\t}",
"public abstract Set<Genome> getAvailableGenomes();",
"private List<String> build() {\n List<String> ags = new ArrayList<>();\n ags.add(\"European Union Chromosome 3 Arabidopsis Sequencing Consortium\");\n ags.add(\"Institute for Genomic Research\");\n ags.add(\"Kazusa DNA Research Institute\");\n return ags;\n }",
"public String[] getTrees(){\n LinkedList l = new LinkedList();\n for(TreeInfo t : TreeInfo.values()){\n l.add(t.getTreeType());\n }\n return Arrays.copyOf(l.toArray(), l.toArray().length, String[].class);\n }",
"public Set<String> getGroups() {\n return groups;\n }",
"@NonNull\n public final List<Genres> getGenres() {\n return this.genres;\n }",
"public ArrayList<String> getGroupNames() {\n ArrayList<String> temp = new ArrayList<String>();\n\n for (Map.Entry<String, Integer[]> entry : tutLabGroups.entrySet()) {\n if (entry.getKey().equals(\"_LEC\")) {\n continue;\n }\n\n temp.add(entry.getKey());\n }\n\n return temp;\n }",
"public String getPantallasToString(){\n\t\tif(null == grupos){\n\t\t\treturn \"\";\n\t\t}else{\n\t\t\tStringBuilder grupos = new StringBuilder();\n\t\t\tfor (int i = 0; i < this.grupos.size(); i++) {\n\t\t\t\tif(i == (this.grupos.size()-1)){\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString());\n\t\t\t\t}else{\n\t\t\t\t\tgrupos.append(this.grupos.get(i).pantallasToString()).append(\", \");\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn grupos.toString();\n\t\t}\n\t}",
"Set<Group> getGroups();",
"public String getAttributesetarray() {\r\n return attributesetarray;\r\n }",
"public String getListaGrupos () {\n String nomesGruposList = \"\";\n if(this.conversas != null && this.conversas.size() > 0){\n for(int i = 0; i < this.conversas.size(); i++){\n //nomesGruposList += conversas.get(i).nomeGrupo + \" \";\n }\n }\n return nomesGruposList;\n }",
"public String[] getValues(String expression, Map<String, String> namespaces) {\n return getNodes(expression, namespaces, String.class);\n }",
"public String getSupportedGenomeBuildsTooltip(int[] organisms) {\n if (organisms==null) organisms=getSupportedOrganisms();\n ArrayList<String> list=new ArrayList<String>(organisms.length);\n for (int i=0;i<organisms.length;i++) {\n String commonName=Organism.getCommonName(organisms[i]);\n ArrayList<String> builds=getSupportedBuildsForOrganism(organisms[i]);\n list.add(commonName+\" (\"+MotifLabEngine.splice(builds, \",\")+\")\");\n }\n Collections.sort(list);\n StringBuilder tooltip=new StringBuilder();\n tooltip.append(\"<html>\");\n for (String string:list) {\n tooltip.append(string);\n tooltip.append(\"<br>\");\n }\n tooltip.append(\"</html>\"); \n return tooltip.toString();\n }",
"public Set<String> getAggregators(String field)\n {\n return fieldToAggregator.get(field);\n }",
"public String[] getNomEquips(){\n\t\tString[] noms= new String[n_equips];\n\t\tNode aux = primer; \n\t\tint i=0;\n\t\twhile((aux!=null)&&(i<n_equips)) {\n\t\t\tnoms[i] = aux.info.getNom();\n\t\t\taux=aux.Nodeseguent;\n\t\t\ti++;\n\t\t}\n\t\treturn noms;\n\t}",
"public mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.AgrupadorTO[] getAgrupadores() {\n return agrupadores;\n }",
"public ArrayList <EggAbstract> getEggs() {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\treturn eggs;\n\t}",
"public Iterable<String> nouns() {\n Stack<String> iter = new Stack<>();\n for (String ss : synsetsStrToNum.keySet())\n iter.push(ss);\n return iter;\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.FinancialStatement[] getFinancialStatementsGroupArray();",
"public String get_gene_id() {\n return m_gene_id;\n }",
"public String[] getValues(String expression) {\n return getValues(expression, CastUtils.cast(Collections.emptyMap(), String.class, String.class));\n }",
"public List<ProvisioningGroup> retrieveGrouperTargetGroups() {\n List<ProvisioningGroup> grouperTargetGroups = new ArrayList<ProvisioningGroup>();\n for (ProvisioningGroupWrapper provisioningGroupWrapper : this.provisioningGroupWrappers) {\n ProvisioningGroup grouperTargetGroup = provisioningGroupWrapper.getGrouperTargetGroup();\n if (grouperTargetGroup != null) {\n grouperTargetGroups.add(grouperTargetGroup);\n }\n }\n return grouperTargetGroups;\n }",
"public Expression getArray()\n {\n return getExpression();\n }",
"public int[] getSupportedOrganisms() {\n if (datasources==null) return new int[0];\n int size=datasources.size();\n HashSet<Integer> map=new HashSet<Integer>(3);\n for (DataSource source:datasources) {\n map.add(new Integer(source.getOrganism()));\n }\n int[] result=new int[map.size()];\n int i=0;\n for (Integer integer:map) {\n result[i]=integer.intValue();\n i++;\n }\n return result;\n }",
"public com.walgreens.rxit.ch.cda.PN[] getNameArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(NAME$8, targetList);\n com.walgreens.rxit.ch.cda.PN[] result = new com.walgreens.rxit.ch.cda.PN[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }",
"public String genresListText(Song [] songList){\n\t\t\n\t\tString text = \"\";\n\t\t\n\t\tfor(int i=0; i<songList.length; i++){\n\t\t\n\t\t\tif(songList[i]!=null){\n\t\t\t\tif( (i>0)&&(songList[i-1].getSongGenre().equals(songList[i].getSongGenre()))){ \n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\ttext+= songList[i].getSongGenre() + \",\";\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn text;\n\t}",
"public abstract Collection getGroups();",
"private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}",
"List getExpressions();",
"public String[] list(){\n\t\t\n\t\tSet<String> t = contents.keySet();\n\t\tString s[] = t.toArray(new String[0]);\n\t\treturn s;\n\t}"
] | [
"0.7249261",
"0.62478304",
"0.5878942",
"0.58360845",
"0.5829549",
"0.57819754",
"0.56982577",
"0.5613286",
"0.55350655",
"0.5517679",
"0.54880553",
"0.54269594",
"0.53836566",
"0.5360303",
"0.53267807",
"0.53057903",
"0.52610946",
"0.52607673",
"0.51872176",
"0.517671",
"0.51615524",
"0.51277035",
"0.5103937",
"0.50682837",
"0.50653744",
"0.50616646",
"0.50423706",
"0.50124246",
"0.50120294",
"0.5009074",
"0.50089955",
"0.50065434",
"0.50050133",
"0.49577087",
"0.49567473",
"0.49558425",
"0.4950684",
"0.49503",
"0.49249554",
"0.4920324",
"0.4895397",
"0.4895146",
"0.48889628",
"0.4883824",
"0.48768333",
"0.4876292",
"0.48601395",
"0.48441026",
"0.48389655",
"0.48377654",
"0.4832262",
"0.48253074",
"0.48075765",
"0.48069668",
"0.4800473",
"0.47786093",
"0.47782215",
"0.4776418",
"0.47761077",
"0.4775077",
"0.47607377",
"0.47590062",
"0.47533214",
"0.47385195",
"0.4738165",
"0.4734851",
"0.4730502",
"0.4720629",
"0.47202268",
"0.47195125",
"0.47128043",
"0.47092074",
"0.47038534",
"0.47031543",
"0.4699348",
"0.46962783",
"0.469413",
"0.4683764",
"0.46757308",
"0.4668169",
"0.4664444",
"0.46627307",
"0.46560884",
"0.4651463",
"0.4641498",
"0.4638618",
"0.4631795",
"0.46192786",
"0.4613411",
"0.45946112",
"0.459388",
"0.45862854",
"0.4579358",
"0.45788902",
"0.45785564",
"0.45783758",
"0.4578241",
"0.4577094",
"0.45756507",
"0.45743456"
] | 0.6285094 | 1 |
FloatMatrix containing average gene expression profile of genes in synexpression groups. Each row represents a synexpression group | public FloatMatrix getSynExpressionProfiles() {
return synExpressionProfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}",
"private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += ind.getGeneValue(i);\n }\n }\n //divide by the number of individuals\n double factor = 1.0 / pop.getNumGenotypes();\n for (int i = 0; i < value.length; i++) {\n value[i] *=factor;\n }\n return value;\n }",
"public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}",
"public Pairs[] getMeanOfGaussionsFromEM(String inputFolderPath, int numOfGaussions) throws Exception\n{\n\tdouble[][] mean = null;\n\tExpectationMaximizationAlgorithm EMA = new ExpectationMaximizationAlgorithm();\n\t//Read all arff files available in inputFolder\n\tFile[] arffFiles = EMA.readAllFiles(inputFolderPath);\n\t\n\tPairs pp[] = new Pairs[arffFiles.length]; \n\t\n\tfor(int i=0;i<arffFiles.length;i++)\n\t{\n\t\tEMA = new ExpectationMaximizationAlgorithm();\n\t\tBufferedReader datafile = EMA.readDataFile(arffFiles[i].getName().toString(),inputFolderPath);\n\t\tSystem.out.println(\"Converting..... : \"+arffFiles[i].getName().toString());\n\t\tInstances data = new Instances(datafile);\n\t\t\n\t\tEM EMObject = new EM();\n\t\tEMObject.setNumClusters(numOfGaussions);\n\t\tEMObject.buildClusterer(data);\n\t\tdouble[][][] attr = EMObject.getClusterModelsNumericAtts();\n\t\tmean = new double[data.numAttributes()][numOfGaussions];\n\t\tdouble[][] variance = new double[data.numAttributes()][numOfGaussions];\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tmean[k][j]=attr[j][k][0];\n\t\t\t}\n\t\t}\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tvariance[k][j]=attr[j][k][1];\n\t\t\t}\n\t\t}\n\t\tpp[i] = new Pairs(arffFiles[i].getName().toString(), mean,variance);\n\t\t\n\t}\n\t\n\treturn pp;\n}",
"public static double mean(double[][] mat) { \n int counter = 0;\n double total = 0;\n for (int row = 0; row < mat.length; row++){\n for (int column = 0; column < mat[0].length; column++){\n total += mat[row][column];\n }\n }\n return total/counter;\n }",
"public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}",
"public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}",
"double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}",
"public double[] features( HaeaOperators<T> operators ) {\n \tdouble[][] rates = new double[operators.rates.size()][];\n \ttry{ for( int i=0; i<rates.length; i++ ) rates[i] = operators.rates(i); }catch(Exception e){}\n\t\tStatistics[] stat = Matrix.statistics(rates, false);\n\t\tdouble[] avg = new double[stat.length];\n\t\tfor( int i=0; i<avg.length; i++ ) avg[i] = stat[i].avg; \n\t\treturn avg;\n }",
"public DMatrixRMaj getMean() {\n\t\treturn x;\n\t}",
"double getAvgTreatment();",
"private float calculateMean()\n { \n int numberEmployees = employees.size();\n float total = 0, meanGrossPay = 0;\n // Create an array of all gross pays\n float[] allGrossPay = new float[numberEmployees];\n \n // Call method to return an array of float containing all gross pays\n allGrossPay = calculateAllGrossPay();\n // Find total gross pay\n for (int i = 0; i < numberEmployees; i++)\n {\n total += allGrossPay[i];\n }\n // Find mean and return it\n if (numberEmployees > 0)\n {\n meanGrossPay = total/numberEmployees;\n \n }\n return meanGrossPay;\n }",
"public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}",
"public double mean() {\n return mu;\n }",
"public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }",
"public void E11_6() {\n double[] row1 = {7.5, 3.6};\n double[] row2 = {4.2, 9.7};\n double[] row3 = {6.1, 8.0};\n double column1Sum = row1[0] + row2[0] + row3[0];\n double column2Sum = row1[1] + row2[1] + row3[1];\n System.out.println(\"Column 1 average: \" + (column1Sum/3));\n System.out.println(\"Column 2 average: \" + (column2Sum/3));\n }",
"public static float[] returnMeanArray (float[] weatherArray){\n float[] meanArray = new float[12];\n for (int i = 0; i < 12; i++){\n meanArray[i] = weatherArray[i]/30;\n }\n return meanArray;\n }",
"double average();",
"public MatOfDouble getMean()\r\n {\r\n \r\n MatOfDouble retVal = MatOfDouble.fromNativeAddr(getMean_0(nativeObj));\r\n \r\n return retVal;\r\n }",
"private static double meanVal(double[] arrayOfSamples){\n\t\tdouble total = 0;\n\t\t for (double i :arrayOfSamples){\n\t\t \ttotal += i;\n\t\t }\n\t return total/arrayOfSamples.length;\n\t}",
"public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }",
"private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}",
"public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}",
"public double[] getAverages() {\n\t\t\n\t\t// initialize array\n\t\taverages = new double[5];\n\t\t\n\t\t// used with calcAverage for the startIndex\n\t\tint curIndex = 0;\n\t\taverages[ASSIGNMENTS] = calcAverage(curIndex, curIndex += NUM_ASSIGNMENTS);\n\t\taverages[QUIZZES] = calcAverage(curIndex, curIndex += NUM_QUIZZES);\n\t\taverages[TESTS] = calcAverage(curIndex, curIndex += NUM_TESTS);\n\t\taverages[FINAL] = calcAverage(curIndex, curIndex + 1);\n\t\t\n\t\t// get the overall average\n\t\tdouble quizTestAverage = (averages[QUIZZES] + averages[TESTS]) * PERCENT_QUIZ_AND_TESTS / 2;\n\t\tdouble assignmentAverage = averages[ASSIGNMENTS] * PERCENT_ASSIGNMENTS;\n\t\tdouble finalAverage = averages[FINAL] * PERCENT_FINAL;\n\t\taverages[OVERALL] = quizTestAverage + assignmentAverage + finalAverage;\n\t\t\n\t\t// return the array\n\t\treturn averages;\n\t}",
"public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}",
"public double geoMean() {\n\t\tint product = 1;\n\t\tfor (Animal a : animals) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.size());\n\t}",
"public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}",
"@Query(\"select avg(u.articles.size), stddev(u.articles.size) from User u\")\n\tDouble[] avgstdArticlesPerWriter();",
"public float getAvgSim() {\n return avgSim;\n }",
"private float getAvg(Map<String, Float> m) {\n float avg = 0;\n ArrayList<Float> list = new ArrayList<>(m.values());\n for (float v : list) {\n avg += v;\n }\n return avg / list.size();\n }",
"public float getAverage(){\r\n\t\treturn Average;\r\n\t}",
"public abstract GeneralValue getAverageValue(String fieldName, String subFieldName);",
"public double mean() {\r\n\t\treturn mean;\r\n\t}",
"public static double getAverage(double[][] array)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tList<Double> lineSumList = new ArrayList<Double>();\r\n\t\tfor( int i = 0; i < array.length; i++ ) {\r\n\t\t\tdouble lineSum = Σ(array[i]);\r\n\t\t\tlineSumList.add(lineSum);\r\n\t\t\tcount += array[i].length;\r\n\t\t}\r\n\t\tdouble sum = Σ(lineSumList);\r\n\t\t\r\n\t\tif (sum == 0 || array.length == 0)\r\n\t\t\treturn 0;\r\n\t\treturn sum / count;\r\n\t}",
"public ArrayList<Double> getAverageFitnesses() { return avgFitnesses; }",
"public double mean() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n for (int j = 0; j < tab.get(i).size(); j++) {\n resultat += Double.parseDouble(tab.get(i).get(j));\n }\n }\n resultat = (resultat / (tab.size() + tab.get(0).size() - 1));\n System.out.println(\"Mean colonne:\" + resultat);\n return resultat;\n }",
"public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}",
"public double mean() {\n return mean;\n }",
"private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }",
"public Double[] getAverageGradeStatistic(String mode) {\n double totalPoints = 0.0;\n double totalWorth = 0.0;\n for (int i=0; i < assignments.size(); i++) {\n Assignment ass = assignments.get(i);\n ArrayList<Integer> assGrades = ass.getAllGrades();\n int assWorth = ass.getWorth();\n for (int j=0; j < assGrades.size(); j++) {\n Integer assGrade = assGrades.get(j);\n if (assGrade != null) {\n totalPoints += assGrade;\n totalWorth += assWorth;\n }\n else if (mode.equals(\"best\")) {\n totalPoints += assWorth;\n totalWorth += assWorth;\n }\n else if (mode.equals(\"worst\")) {\n totalWorth += assWorth;\n }\n }\n }\n\n Double[] ret = {totalPoints, totalWorth};\n return ret;\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"public double getMean() throws IMRException {\n\n\t\tString imt = im.getName();\n\t\tif (!imt.equals(MMI_Param.NAME)) {\n\t\t\tupdateCoefficients();\n\t\t\tdouble b_mean = getRockMean();\n\t\t\tif (imt.equals(PGA_Param.NAME)) {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName(), b_mean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName()));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn Math.log(getMMI()); // return the log for now (until I figure a better way)\n\t\t}\n\n\t}",
"private double[][] getEnergyMatrix() {\n double[][] energi = new double[height()][width()];\n for (int i = 0; i < height(); i++) {\n for (int j = 0; j < width(); j++) {\n energi[i][j] = energy(j, i);\n }\n }\n return energi;\n }",
"public static DMatrixRMaj averageMatrices(List<DMatrixRMaj> matList){\n int n = matList.size(); // n matrices to average\n\n // Create resulting matrix\n DMatrixRMaj res = new DMatrixRMaj(matList.get(0).numRows, matList.get(0).numCols);\n\n // Fill matrix with all zeros\n res.zero();\n\n // Loop to add matrices\n for (DMatrixRMaj mat: matList) {\n // TODO: assert mat.size() == res.size() ?\n CommonOps_DDRM.add(res, mat, res);\n }\n\n // Divide by total of matrices\n CommonOps_DDRM.divide(res, (float) n);\n\n return res;\n }",
"public double populationMean()\n\t{\n\t\treturn null == _distPopulation ? java.lang.Double.NaN : _distPopulation.mean();\n\t}",
"public double mean() {\n\t\treturn mean;\n\t}",
"public double mean() {\n\t\treturn mean;\n\t}",
"public double averageCosineSimilarity() {\n\n\t\tdouble sumCosineSimilarities = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble similarity = cosineSimilarityMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumCosineSimilarities += similarity;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tSystem.out.println(sumCosineSimilarities);\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumCosineSimilarities / nDistances;\n\t}",
"public double mean() { \n return StdStats.mean(result);\n\n }",
"public BigDecimal getRows_examined_avg() {\n return rows_examined_avg;\n }",
"public double mean() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\t\t\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tsum += v;\n\t\t}\n\t\t\n\t\treturn sum / (double)n;\n\t}",
"public native MagickImage averageImages() throws MagickException;",
"public double getMean() {\n return mean;\n }",
"@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}",
"public double mean() {\n return StdStats.mean(stats);\r\n }",
"public static double Average(int[][] matrix){\n double total = 0;\n double promedio =0;\n double divisor = 0;\n \n for(int i=0; i<matrix.length; i++){\n for (int j=0;j<matrix[i].length;j++ ) {\n \n total += matrix[i][j];\n } \n divisor = matrix[i].length * matrix.length; \n promedio = total / divisor; \n }\n \n return promedio;\n }",
"public BigDecimal getRows_sent_avg() {\n return rows_sent_avg;\n }",
"public Double getMean() {\n return mean;\n }",
"private void extractSmallerUMatrix(boolean average)\n\t{\n\t\tfor(int i = 0; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < SOM[0].length; j++)\n\t\t\t{\n\t\t\t\tU_MATRIX_SHRINK[i][j] = getAverageSOMNeighbour(i,j,average);\n\t\t\t\t//System.out.print(\"[ \"+ i +\" ][ \" + j + \" ] = \" + U_MATRIX_SHRINK[i][j]+\"\\t\");\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println();\n\t\t}\n\t}",
"public IAverage groupBy(String...columns);",
"private Double getMean(Double[] values) {\n double sum = 0;\n int count = 0;\n for (Double d: values) {\n if (d != null) {\n sum += d;\n ++count;\n }\n }\n return count == 0 ? null : (sum / count);\n }",
"public double calcAvg() {\n\t\treturn (double)calcSum() / data.size();\n }",
"public double mean(double data[]) {\r\n\t\tdouble mean = 0;\r\n\t\ttry {\r\n\t\t\tfor(int i=0;i<data.length;i++) {\r\n\t\t\t\tmean =mean+data[i];\r\n\t\t\t}\r\n\t\t\tmean = mean / data.length;\r\n\t\t}\r\n\t\tcatch(Exception e) {\r\n\t\t\tDataMaster.logger.warning(e.toString());\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\treturn mean;\r\n\t}",
"public double arithmeticalMean(double[] arr) {\n return 0;\n }",
"private double[] std(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n double [] m = mean(pop);\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += Math.pow( ind.getGeneValue(i) - m[i],2);\n }\n }\n //divide by the number of individuals - 1\n for (int i = 0; i < value.length; i++) {\n value[i] = Math.sqrt( value[i] /(pop.getNumGenotypes()-1));\n }\n return value;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void average(HashMap<Column, String> data, List<Expression> exp,\n\t\t\tFunction f) {\n\t\tString val = f.getParameters().toString();\n\t\tCreateTable ct = null;\n\t\tString datatype = null;\n\t\tfor (Map.Entry<Column, String> fields : data.entrySet()) {\n\n\t\t\tif ((getSchema().containsKey(fields.getKey().getTable().toString()))) {\n\t\t\t\tct = getSchema().get(fields.getKey().getTable().toString());\n\t\t\t\tList<ColumnDefinition> l = ct.getColumnDefinitions();\n\t\t\t\tfor (int i = 0; i < l.size(); i++) {\n\t\t\t\t\tif (l.get(i)\n\t\t\t\t\t\t\t.getColumnName()\n\t\t\t\t\t\t\t.equalsIgnoreCase((fields.getKey().getColumnName()))) {\n\t\t\t\t\t\tdatatype = l.get(i).getColDataType().toString();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// String sum_value=leafval.toString();\n\t\tString tmp = f.getName() + \"_\" + val;\n\t\tif (check.contains(tmp)) {\n\t\t\t// do nothing\n\t\t} else {\n\t\t\tcheck.add(tmp);\n\t\t}\n\t\t\n\t\tsum(data,exp, f);\n\t\tcount(data,exp, f);\n\t\tLeafValue sum = null;\n\t\tLeafValue count = null;\n\t\tfor(Map.Entry<String, LeafValue> mp : output.entrySet())\n\t\t{\n\t\t\tif(mp.getKey().contains(\"SUM_\" + val))\n\t\t\t{\n\t\t\t\tsum=mp.getValue();\n\t\t\t}\n\t\t\tif(mp.getKey().contains(\"COUNT_\" + val))\n\t\t\t{\n\t\t\t\tcount=mp.getValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (datatype.equalsIgnoreCase(\"INT\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLong l1 = sum.toLong();\n\t\t\t\tLong l2 = count.toLong();\n\t\t\t\tLeafValue l = new LongValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t\t\n\t\t\t} catch (InvalidLeaf 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} else if (datatype.equalsIgnoreCase(\"DECIMAL\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDouble l1 = sum.toDouble();\n\t\t\t\tDouble l2 = count.toDouble();\n\t\t\t\tLeafValue l = new DoubleValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t} catch (InvalidLeaf e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t\t}",
"public BigDecimal getRows_affected_avg() {\n return rows_affected_avg;\n }",
"public static float getMeanEdge(Graph grafo) {\r\n\t\tfloat grauMedio = 2 * (float) grafo.getEdgeNumber() / grafo.getVertexNumber();\r\n\r\n\t\treturn grauMedio;\r\n\t}",
"public float getMean() {\r\n int sum = getSum(rbt.root);\r\n float mean = sum / rbt.size();\r\n return mean;\r\n }",
"public double[] eigenValues(){\n if(!this.pcaDone)this.pca();\n return this.eigenValues;\n }",
"public final double getMean()\r\n\t{\r\n\t\treturn mean;\r\n\t}",
"public Double computeAverage(){\n\t\tdouble total = 0; //double used to keep total value of elements in arr to determine average\n\t\t\n\t\tfor(int i = 0; i < arr.length; i++)//loop through array and add the total\n\t\t{\n\t\t\ttotal += arr[i].doubleValue(); //add current value of element in arr to total's value\n\t\t}\n\t\t\n\t\tDouble result = total/arr.length; //returns the average as a Double\n\t\t\n\t\treturn result;\n\t}",
"public double getXMean() {\n\t\treturn xStats.mean();\n\t}",
"double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}",
"public double[] calcAvgCharMetrics() {\n double[] darrayMetrics = new double[TOTAL_IDX_CNT];\n if (!isChildListType()) {\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[CHAR_CNT_IDX] = 1.0; // weight.\n if (mType != UnitProtoType.Type.TYPE_UNKNOWN\n && mType != UnitProtoType.Type.TYPE_DOT\n && mType != UnitProtoType.Type.TYPE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_BRACE\n && mType != UnitProtoType.Type.TYPE_CLOSE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_BRACE\n && mType != UnitProtoType.Type.TYPE_VERTICAL_LINE\n && mType != UnitProtoType.Type.TYPE_SUBTRACT\n && mType != UnitProtoType.Type.TYPE_SQRT_LEFT\n && mType != UnitProtoType.Type.TYPE_SQRT_SHORT\n && mType != UnitProtoType.Type.TYPE_SQRT_MEDIUM\n && mType != UnitProtoType.Type.TYPE_SQRT_LONG\n && mType != UnitProtoType.Type.TYPE_SQRT_TALL\n && mType != UnitProtoType.Type.TYPE_SQRT_VERY_TALL) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 1.0; // weight.\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 0.0; // weight.\n }\n darrayMetrics[AVG_VGAP_IDX] = mnWidth;\n darrayMetrics[VGAP_CNT_IDX] = 0.0; // weight\n } else {\n double dSumWidth = 0, dSumNormalCharWidth = 0;\n double dSumHeight = 0, dSumNormalCharHeight = 0;\n double dTotalWeight = 0, dTotalNormalCharWeight = 0;\n double dVGap = 0, dTotalVGapWeight = 0;\n for (int idx = 0; idx < mlistChildren.size(); idx ++) {\n double[] darrayThisMetrics = mlistChildren.get(idx).calcAvgCharMetrics();\n dSumWidth += darrayThisMetrics[AVG_CHAR_WIDTH_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharWidth += darrayThisMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dSumHeight += darrayThisMetrics[AVG_CHAR_HEIGHT_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharHeight += darrayThisMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dTotalWeight += darrayThisMetrics[CHAR_CNT_IDX];\n dTotalNormalCharWeight += darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dVGap += darrayThisMetrics[AVG_VGAP_IDX] * darrayThisMetrics[VGAP_CNT_IDX];\n dTotalVGapWeight += darrayThisMetrics[VGAP_CNT_IDX];\n if (idx > 0 && (mnExprRecogType == EXPRRECOGTYPE_VBLANKCUT || mnExprRecogType == EXPRRECOGTYPE_VCUTMATRIX)) {\n double dThisVGap = mlistChildren.get(idx).mnLeft - mlistChildren.get(idx - 1).getRightPlus1();\n dVGap += (dThisVGap > 0)?dThisVGap:0;\n dTotalVGapWeight += (dThisVGap > 0)?1.0:0;\n }\n }\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumWidth / dTotalWeight);\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumHeight / dTotalWeight);\n darrayMetrics[CHAR_CNT_IDX] = dTotalWeight;\n if (dTotalNormalCharWeight == 0) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = darrayMetrics[AVG_CHAR_HEIGHT_IDX];\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumNormalCharWidth / dTotalNormalCharWeight);\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumNormalCharHeight / dTotalNormalCharWeight);\n }\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = dTotalNormalCharWeight;\n if (dTotalVGapWeight == 0) {\n darrayMetrics[AVG_VGAP_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n } else {\n darrayMetrics[AVG_VGAP_IDX] = Math.max(ConstantsMgr.msnMinVGapWidthInUnit, dVGap / dTotalVGapWeight);\n }\n darrayMetrics[VGAP_CNT_IDX] = dTotalVGapWeight;\n }\n return darrayMetrics;\n }",
"public double getAverage() {\n int total = 0;\n\n // sum grades of the student\n for (int grade : grades)\n total += grade;\n\n // return average of the grade\n return (double) total / grades.length;\n }",
"public T mean();",
"private double[] getMeanMedStd(ArrayList<Feature> freature, String keyID, double dthresh) {\r\n\r\n ArrayList<Double> values = FeatureOps.getSpecifiedFeatureNumericalPropertyAsArrayList(freature, keyID);\r\n // threshold the data. \r\n NumericArrayListOps.removeElementsGreaterThan(values, dthresh);\r\n double[] d2 = List2Prims.doubleFromDouble(values);\r\n\r\n if (d2.length == 0) {\r\n return new double[]{dthresh, dthresh, Double.POSITIVE_INFINITY, 0d};\r\n }\r\n\r\n double mean, median, std, ratioNeighbours;\r\n mean = StatUtils.mean(d2);\r\n Median med = new Median();\r\n median = med.evaluate(d2);\r\n std = Math.sqrt(StatUtils.variance(d2));\r\n // the proportion of the set in close proximity to features in the second set. \r\n ratioNeighbours = ((double) d2.length) / (double) freature.size();\r\n return new double[]{mean, median, std, ratioNeighbours};\r\n }",
"public double getAverage(){\n return getTotal()/array.length;\n }",
"protected HashMap generateExpressionMap(){\n System.out.println(\"Processing Expression Data into Hash\");\n HashMap tempHash = new HashMap();\n GraphObjAttributes nodeAttributes = cyNetwork.getNodeAttributes();\n for (Iterator nodeIt = cyNetwork.nodesIterator();nodeIt.hasNext();) {\n double [] tempArray = new double[attrNames.length];\n Node current = (Node)nodeIt.next();\n for(int j = 0;j<attrNames.length;j++){\n\tmRNAMeasurement tempmRNA = expressionData.getMeasurement(nodeAttributes.getCanonicalName(current),attrNames[j]);\n\tif(tempmRNA == null){\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(.5);\n\t}\n\telse{\n\t double sigValue = tempmRNA.getSignificance();\n\t if (sigValue < MIN_SIG) {\n\t sigValue = MIN_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MIN_SIG); \n\t } // end of if ()\n\t if (sigValue > MAX_SIG) {\n\t sigValue = MAX_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MAX_SIG); \n\t } // end of if ()\n\t //transform the p-value into a z-value and store it in the array of z scores for this particular node\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(sigValue);\n\t}\n }\n tempHash.put(current,tempArray);\n }\n System.out.println(\"Done processing into Hash\");\n return tempHash;\n }",
"public static double geoMean(AnimalPack animals) {\n\t\tint product = 1;\n\t\tfor (Animal a : animals.getAnimals()) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.getAnimals().size());\n\t}",
"public static int[][] average(int[][] pixels){\r\n\t\t\t\r\n\t\t\tint height = pixels.length;\r\n\t\t\tint width = pixels[0].length;\r\n\t\t\t\r\n\t\t\t//Apply Average Filter\r\n\t for (int v = 1; v < height; v++) {\r\n\t for (int u = 1; u < width; u++) {\r\n\t \r\n\t int sum = 0;\r\n\t for (int j = -1; j <=1; j++) {\r\n\t for (int i = -1; i <= 1; i++) {\r\n\t if((u + (j) >= 0 && v + (i) >= 0 && u+(j) < width && v + (i) < height)){\r\n\t \tint p = pixels[v+(i)][u+(j)];\r\n\t \tsum = sum + p;\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t int q = (int) (sum /9);\r\n\t aResult[v][u] = q;\r\n\t }\r\n\t }\r\n\t return aResult;\r\n\t\t}",
"public static Matrix mean(Matrix m, boolean adjustment) {\n int rows_c = m.rows(), cols_c = m.cols(), den = rows_c;\n Matrix d;\n if (adjustment)\n den = den - 1;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double sumCol = 0D;\n for (int row = 1; row <= rows_c; row++) {\n sumCol += m.get(row, col);\n }\n d.set(1, col, sumCol / den);\n }\n }\n return d;\n }",
"org.apache.xmlbeans.XmlObject getContactMeansArray(int i);",
"double getMeanProfit() {\n ArrayList<Double> allProfits = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> profitsOfFirm = firm.getProfits();\n allProfits.addAll(profitsOfFirm.subList(profitsOfFirm.size() - SimulationManager.sizeOfExaminationInterval, profitsOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allProfits), 2);\n }",
"public double getMeanSquare() {\n return sumQ / count;\n }",
"public final float[][] reconstructedExactLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tint max=0;\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t\tmax++;\n \t\t\t}\n \t\t\tif (max==nmgdm) levelsets[n][xyz] = UNKNOWN;\n \t\t}\n \t}\n \treturn levelsets;\n }",
"public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }",
"public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }",
"public static double average (double ... s4){\n double suma = 0.0;\n for (double value : s4) {\n suma += value;\n }\n return suma / s4.length;\n }",
"public double averageEuclideanDistance() {\n\n\t\tdouble sumEuclideanDistances = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble distance = euclideanDistanceMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumEuclideanDistances += distance;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumEuclideanDistances / nDistances;\n\t}",
"public double getAverage() {\n return this.average;\n }",
"private double getAvg() {\n\n double sum = 0;\n\n for (Map.Entry<Integer, Double> entry : values.entrySet()) {\n sum += entry.getValue();\n }\n\n if (values.size() > 0) {\n return sum / values.size();\n } else {\n throw new IllegalStateException(\"no values\");\n }\n }",
"public double getAverage(){\n int total = 0; //inicializa o total\n \n //soma notas de um aluno\n for(int grade: grades){\n total += grade;\n }\n \n return (double) total/grades.length;\n }",
"public double getAverage(){\n double total = 0;\n for(double s : scores)total += s;\n return total/scores.length;\n }",
"@Test\n\tpublic void averageWorksForModeNone() {\n\t\tfinal FloatTimeSeries t0 = new FloatTreeTimeSeries();\n\t\tt0.addValues(TimeSeriesUtils.createStepFunction(10, 0, 10, 10, 0)); // constant function = 10\n\t\tfinal FloatTimeSeries t1 = new FloatTreeTimeSeries();\n\t\tt1.addValues(TimeSeriesUtils.createStepFunction(5, 20, 25, 20, 0)); // constant function = 20\n\t\tfinal ReadOnlyTimeSeries avg = MultiTimeSeriesUtils.getAverageTimeSeries(Arrays.<ReadOnlyTimeSeries> asList(t0, t1), 0, Long.MAX_VALUE, true, null, false);\n\t\tAssert.assertEquals(\"Time series sum has wrong number of data points\", 13, avg.size());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 15, avg.getValue(20).getValue().getIntegerValue());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 20, avg.getValue(45).getValue().getIntegerValue());\n\t\tAssert.assertEquals(\"Unexpected value in time series sum\", 10, avg.getValue(80).getValue().getIntegerValue());\n\t}",
"private double[] getMeanCenter(){\n double[] meanXY = new double[2];\n float[] trans = getTranslationVector(center.getX(),center.getY(),BITMAP_SIZE,BITMAP_SIZE,CONSTANT);\n // Plot points\n for (MeasurementService.DataPoint p: list) {\n meanXY[0] += (p.getX()*CONSTANT)+trans[0];\n meanXY[1] += (p.getY()*CONSTANT)+trans[1];\n }\n\n meanXY[0] = meanXY[0] / list.size();\n meanXY[1] = meanXY[1] / list.size();\n return meanXY;\n }",
"public double[] monteCarloMeans(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValuesMeans;\n }",
"public double mean() {\n\t\treturn StdStats.mean(results); \n\t}",
"public double getAverage(){\r\n\t\tdouble sum=0;\r\n\t\tfor(Iterator<T> it=this.iterator();it.hasNext();){\r\n\t\t\tsum+=it.next().doubleValue();\r\n\t\t}\r\n\t\treturn sum/this.size();\r\n\t}"
] | [
"0.62834704",
"0.54425555",
"0.5270386",
"0.521526",
"0.5032017",
"0.50086963",
"0.499759",
"0.49710405",
"0.4943159",
"0.48937297",
"0.4875009",
"0.48046643",
"0.47931883",
"0.4774733",
"0.47616",
"0.47429466",
"0.47092998",
"0.47047696",
"0.47023305",
"0.46909133",
"0.46811774",
"0.46713045",
"0.46524468",
"0.46423176",
"0.46300644",
"0.4619507",
"0.46189445",
"0.46133795",
"0.46121508",
"0.4611143",
"0.45936716",
"0.4587027",
"0.4585959",
"0.45833135",
"0.45829567",
"0.45713264",
"0.45621374",
"0.45612928",
"0.45589042",
"0.45583624",
"0.45578554",
"0.4550654",
"0.4549584",
"0.45447454",
"0.45447412",
"0.45389783",
"0.45389783",
"0.45366246",
"0.4533852",
"0.4533791",
"0.45327792",
"0.4523164",
"0.4514122",
"0.45109284",
"0.4507637",
"0.4498108",
"0.44910744",
"0.44847026",
"0.44832137",
"0.44829643",
"0.44820774",
"0.44764686",
"0.44701928",
"0.44640043",
"0.44573158",
"0.44469297",
"0.44429895",
"0.44378805",
"0.4436413",
"0.4434747",
"0.44344047",
"0.44293705",
"0.44282052",
"0.44210044",
"0.44194975",
"0.44193",
"0.44188476",
"0.44139355",
"0.44036976",
"0.44014755",
"0.4397489",
"0.43909907",
"0.43891582",
"0.43860233",
"0.43857312",
"0.43805692",
"0.43794277",
"0.43785456",
"0.43711972",
"0.43685675",
"0.43675125",
"0.43656847",
"0.4359394",
"0.43590707",
"0.43541512",
"0.43465418",
"0.43446755",
"0.43388015",
"0.43377963",
"0.43231156"
] | 0.48585498 | 11 |
Sets genes present in a synexpression group | public void setSynExpressionGroup(String name, String[] groups) {
if(!synExpressionGroups.containsKey(name)) {
synExpressionGroups.put(name, groups);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public void setSimilarGenes(String name, String[] groups) {\r\n\t\tif(!similarGeneGroups.containsKey(name)) {\r\n\t\tsimilarGeneGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}",
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"public void setGroups(Set<SymbolGroup> groups) {\n this.groups = groups;\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder setGeneIds(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.geneIds = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public abstract void setGen(int i, double value);",
"public void setRandomGenes(int i){\n if (i > populationSize){\n throw new IllegalArgumentException(\"The number of random genes per generation must not be greater than the population size\");\n }\n randGenes = i;\n }",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public void setGenus(String genus) {\n this.genus = genus;\n }",
"protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult);",
"public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public Void visit(SetBuilderExp exp)\n {\n exp.qvar.accept(this);\n addForalls(exp.qvar, generate(exp.exp));\n return null;\n }",
"public void setGeneIds(java.util.List<java.lang.String> value) {\n this.geneIds = value;\n }",
"void update(String selectedGene);",
"public abstract void updateCurGene(int mid);",
"public void setGi(java.math.BigInteger gi)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(GI$22, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(GI$22);\r\n }\r\n target.setBigIntegerValue(gi);\r\n }\r\n }",
"@Override\n public void setGroupSet(final boolean val) {\n groupSet = val;\n }",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"public void g() throws Rte6mainIOException\n\t{\n\t\tfinal String GS_FILE_NAME = \"/media/Data/asher/data/dev/alpha_system/rte6/RTE6_DEVSET/RTE6_Main_DEVSET_GS.xml\";\n\t\tAnswersFileReader afr = new DefaultAnswersFileReader();\n\t\tafr.setGoldStandard(false);\n\t\tafr.setXml(GS_FILE_NAME);\n\t\tafr.read();\n\t\tMap<String,Map<String,Set<SentenceIdentifier>>> answers = afr.getAnswers();\n\t\t\n\t\t\n\t\tAnswersFileWriter afw = new DefaultAnswersFileWriter();\n\t\tafw.setWriteTheEvaluationAttribute(true);\n\t\tafw.setAnswers(answers);\n\t\tafw.setXml(GS_FILE_NAME+\".my.xml\");\n\t\tafw.write();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void setGenre(String genreStr) {\n String genresRemovedCommas = genreStr.replaceAll(COMMA, EMPTY);\r\n String[] genresArray = genresRemovedCommas.split(SPACE);\r\n Collections.addAll(genres, genresArray);\r\n }",
"public void xsetGi(org.apache.xmlbeans.XmlInteger gi)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlInteger target = null;\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().find_element_user(GI$22, 0);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlInteger)get_store().add_element_user(GI$22);\r\n }\r\n target.set(gi);\r\n }\r\n }",
"public String[] getSimilarGenes(\r\n\t\t\tString synExpressionGroupName) {\r\n\t\t\r\n\t\treturn similarGeneGroups.get(synExpressionGroupName);\r\n\t}",
"public int mutateGene(int gene);",
"public void setMethodGen(MethodGen mg){\n\t\tthis.mg = mg;\n\t}",
"public void setLookupGroups( String[] groups ) throws RemoteException {\n\t\tStringBuffer l = new StringBuffer();\n\t\tl.append(\"Set lookup groups:\");\n\t\tfor( int i = 0; i< groups.length; ++i ) {\n\t\t\tl.append(\" \"+groups[i] );\n\t\t}\n\t\tlog.log(Level.CONFIG, l.toString() );\n\t\ttry {\n\t\t\tPersistentData data = io.readState();\n\t\t\tdata.groups = groups;\n\t\t\tio.writeState( data );\n\t\t\tdisco.setGroups(data.groups);\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t} catch( IOException ex ) {\n\t\t\tthrow new RemoteException(ex.toString());\n\t\t}\n\t}",
"public void set(String gr) {\n simConnection.doCommand(cmd(gr));\n }",
"private void markbases(Set<GdlSentence> contents){\r\n\t\tMap<GdlSentence, Proposition> props = propNet.getBasePropositions();\r\n\t\tfor (GdlSentence p : contents) {\r\n\t\t\tprops.get(p).setValue(true);\r\n\t\t}\r\n }",
"public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }",
"public void setGENGRP(java.lang.String GENGRP) {\n this.GENGRP = GENGRP;\n }",
"protected void setRDFforSemSimSubmodelAnnotations(){\n\t\t\n\t\tfor(Submodel sub : semsimmodel.getSubmodels()){\n\t\t\tsetRDFforSubmodelAnnotations(sub);\n\t\t}\n\t}",
"void startAll(GroupSG group) throws SAXException;",
"private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }",
"void assignOperators(Object rgID, List<Object> operIDs);",
"private void genArgRepMutantGen(MethodCallExpr me,Expression ex,int pos){\n\n MethodCallExpr mutantMulti = me.clone();\n BinaryExpr binaryExpr2 = new BinaryExpr(ex,ex, BinaryExpr.Operator.MULTIPLY);\n mutantMulti.setArgument(pos,binaryExpr2);\n outputToFile(me,mutantMulti);\n }",
"protected float[] getGenes() {\n\t\t\treturn genes;\n\t\t}",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"public void setSvgElement(OMSVGSVGElement svg, String title, String idPrefix) {\n \t\tthis.svg = svg;\n \t\tthis.idPrefix = idPrefix;\n \t\twindowRect = svg.createSVGRect();\n \n \t\t// Force the svg to have its size managed by CSS\n \t\t// (no width and height attributes). This size will\n \t\t// be the min (window size, bbox of the svg in\n \t\t// screen coordinates taking into account the\n \t\t// viewing transform).\n \t\tsvg.removeAttribute(SVGConstants.SVG_WIDTH_ATTRIBUTE);\n \t\tsvg.removeAttribute(SVGConstants.SVG_HEIGHT_ATTRIBUTE);\n \t\t\n \t // Add event handlers. These event handlers will re-route\n \t // events to the highlighter or the manipulators\n \t svg.addMouseMoveHandler(this);\n \t svg.addMouseDownHandler(this);\n \t svg.addMouseUpHandler(this);\n \n \t\telementToModel.clear();\n \t\ttagNameToTagCount.clear();\n \n \t\t// Normalize ids to support multi-docs\n \t SVGProcessor.normalizeIds(svg, idPrefix);\n \t \n \t // Create the transform group\n \t xformGroup = new OMSVGGElement();\n \t xformGroup.getTransform().getBaseVal().appendItem(svg.createSVGTransform());\n \n \t // Build the geometry group (used to control the viewing\n \t // transform)\n \t OMSVGGElement elementGroup = new OMSVGGElement();\n \t\tSVGNamedElementModel.createTitleDesc(elementGroup.getElement().<SVGElement>cast(), title);\n \t SVGProcessor.reparent(svg, elementGroup);\n \t \n \t // Create the selection group to handle highlighting\n \t // of the selection and hovered elements.\n \t OMSVGGElement twinGroup = (OMSVGGElement) elementGroup.cloneNode(true);\n \t twinGroup.getTransform().getBaseVal().appendItem(svg.createSVGTransform());\n \t SVGProcessor.normalizeIds(twinGroup, SVGProcessor.newPrefixExtension(idPrefix, EXT_TWIN));\n \t twinGroup.getStyle().setSVGProperty(SVGConstants.CSS_VISIBILITY_PROPERTY, SVGConstants.CSS_HIDDEN_VALUE);\n \t \n \t modelGroup = create(elementGroup.getElement().<SVGElement>cast(), twinGroup.getElement().<SVGElement>cast());\n \t xformGroup.appendChild(elementGroup);\n \t svg.appendChild(xformGroup);\n \t svg.appendChild(twinGroup);\n \t setScale(1f);\n \t \n \t // Build the SVG tree store\n \t store = new TreeStore<SVGElementModel>();\n \t store.add(modelGroup, true);\n \t \n \t // From now on, listen to changes to the model, to translate\n \t // them into commands\n \t store.addStoreListener(new StoreListener<SVGElementModel>() {\n \t\t\t@Override\n \t\t\tpublic void storeUpdate(StoreEvent<SVGElementModel> se) {\n \t\t\t\tSVGModel.this.storeUpdate(se);\n \t\t\t}\n \t\t});\n \n \t\t// Keep the viewBox if available for later computation of the viewBox model\n \t\t// on svg attach. The actual SVG viewBox is removed.\n \t\tOMSVGRect viewBoxRect = svg.getViewBox().getBaseVal();\n \t\tif (viewBoxRect.getWidth() != 0f && viewBoxRect.getHeight() != 0f) {\n \t\t\tcreateViewBox(viewBoxRect);\n \t\t}\n \t\tsvg.removeAttribute(SVGConstants.SVG_VIEW_BOX_ATTRIBUTE);\n \n \t // Build the command store\n \t commandStore = new CommandStore();\n \n \t // Build the selection model\n \t selectionModel = new SVGSelectionModel();\n \t \n \t}",
"void startSequence(GroupSG group) throws SAXException;",
"public void startDocument() throws SAXException {\n\tcurGroupId = \"\";\n\tcurGeneSet.clear();\n\tmHgEntryIdHandler.reset();\n\tsuper.startDocument();\n }",
"public void setConcreteSyntaxNodes (String[] nodes);",
"IParser setEncodeElements(Set<String> theEncodeElements);",
"public Set<String> getGenres() {\r\n return this.genres;\r\n }",
"void startChoice(GroupSG group) throws SAXException;",
"private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}",
"@Override\n\tpublic void set(int id, Generator generator) {\n\t}",
"public void setGenre() {\r\n this.genre = genre;\r\n }",
"public void setGenre(String genre)\r\n {\r\n this.genre=genre;\r\n }",
"public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"void initGrammarEvents() {\n\tg0.addProduction(new com.siemens.ct.exi.grammars.event.StartDocument(), g1);\n\tg1.addProduction(globalSE59, g2);\n\tg1.addProduction(globalSE62, g2);\n\tg1.addProduction(globalSE64, g2);\n\tg1.addProduction(globalSE66, g2);\n\tg1.addProduction(globalSE73, g2);\n\tg1.addProduction(globalSE75, g2);\n\tg1.addProduction(globalSE76, g2);\n\tg1.addProduction(globalSE78, g2);\n\tg1.addProduction(globalSE80, g2);\n\tg1.addProduction(globalSE82, g2);\n\tg1.addProduction(globalSE85, g2);\n\tg1.addProduction(globalSE91, g2);\n\tg1.addProduction(globalSE93, g2);\n\tg1.addProduction(globalSE95, g2);\n\tg1.addProduction(globalSE97, g2);\n\tg1.addProduction(globalSE101, g2);\n\tg1.addProduction(globalSE102, g2);\n\tg1.addProduction(globalSE104, g2);\n\tg1.addProduction(globalSE106, g2);\n\tg1.addProduction(globalSE109, g2);\n\tg1.addProduction(globalSE111, g2);\n\tg1.addProduction(globalSE113, g2);\n\tg1.addProduction(globalSE115, g2);\n\tg1.addProduction(globalSE119, g2);\n\tg1.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g2);\n\tg2.addProduction(new com.siemens.ct.exi.grammars.event.EndDocument(), g68);\n\tg3.addProduction(new com.siemens.ct.exi.grammars.event.StartDocument(), g4);\n\tg4.addProduction(globalSE59, g4);\n\tg4.addProduction(globalSE62, g4);\n\tg4.addProduction(globalSE64, g4);\n\tg4.addProduction(globalSE66, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc68, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc72, g7), g4);\n\tg4.addProduction(globalSE73, g4);\n\tg4.addProduction(globalSE75, g4);\n\tg4.addProduction(globalSE76, g4);\n\tg4.addProduction(globalSE78, g4);\n\tg4.addProduction(globalSE80, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g4);\n\tg4.addProduction(globalSE82, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g4);\n\tg4.addProduction(globalSE85, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc89, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc90, g7), g4);\n\tg4.addProduction(globalSE91, g4);\n\tg4.addProduction(globalSE93, g4);\n\tg4.addProduction(globalSE95, g4);\n\tg4.addProduction(globalSE97, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g4);\n\tg4.addProduction(globalSE101, g4);\n\tg4.addProduction(globalSE102, g4);\n\tg4.addProduction(globalSE104, g4);\n\tg4.addProduction(globalSE106, g4);\n\tg4.addProduction(globalSE109, g4);\n\tg4.addProduction(globalSE111, g4);\n\tg4.addProduction(globalSE113, g4);\n\tg4.addProduction(globalSE115, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g4);\n\tg4.addProduction(globalSE119, g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc125, g17), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g4);\n\tg4.addProduction(new com.siemens.ct.exi.grammars.event.EndDocument(), g68);\n\tg5.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g49);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g71);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg6.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg7.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc61)), g69);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g50);\n\tg8.addProduction(globalSE75, g79);\n\tg8.addProduction(globalSE76, g79);\n\tg8.addProduction(globalSE95, g79);\n\tg8.addProduction(globalSE119, g79);\n\tg8.addProduction(globalSE85, g79);\n\tg8.addProduction(globalSE97, g79);\n\tg8.addProduction(globalSE80, g79);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg8.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg9.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g69);\n\tg10.addProduction(globalSE62, g80);\n\tg10.addProduction(globalSE91, g80);\n\tg10.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g80);\n\tg10.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g83);\n\tg11.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g81);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g51);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g52);\n\tg12.addProduction(globalSE115, g69);\n\tg12.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg13.addProduction(globalSE113, g85);\n\tg14.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g53);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg15.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg16.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g88);\n\tg17.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc43)), g69);\n\tg18.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg19.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g93);\n\tg19.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg20.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg21.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g54);\n\tg21.addProduction(globalSE93, g103);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g55);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g56);\n\tg22.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg22.addProduction(globalSE115, g100);\n\tg22.addProduction(globalSE64, g101);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc1, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g58);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g59);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg23.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg24.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g60);\n\tg24.addProduction(globalSE111, g108);\n\tg25.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g61);\n\tg25.addProduction(globalSE59, g105);\n\tg26.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc0, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g62);\n\tg27.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc71)), g69);\n\tg28.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g63);\n\tg28.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg29.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g64);\n\tg29.addProduction(globalSE106, g113);\n\tg30.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g65);\n\tg30.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc4, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g66);\n\tg31.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.ListDatatype(new com.siemens.ct.exi.datatype.StringDatatype(qnc14), qnc13)), g69);\n\tg32.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc14)), g69);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.AttributeGeneric(), g33);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg33.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg34.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BooleanDatatype(qnc28)), g69);\n\tg35.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(-128), com.siemens.ct.exi.values.IntegerValue.valueOf(127), qnc29)), g69);\n\tg36.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.date, qnc30)), g69);\n\tg37.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.dateTime, qnc31)), g69);\n\tg38.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DecimalDatatype(qnc32)), g69);\n\tg39.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.FloatDatatype(qnc33)), g69);\n\tg40.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gDay, qnc36)), g69);\n\tg41.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonth, qnc37)), g69);\n\tg42.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonthDay, qnc38)), g69);\n\tg43.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYear, qnc39)), g69);\n\tg44.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYearMonth, qnc40)), g69);\n\tg45.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryHexDatatype(qnc41)), g69);\n\tg46.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.UnsignedIntegerDatatype(qnc47)), g69);\n\tg47.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.time, qnc53)), g69);\n\tg48.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(0), com.siemens.ct.exi.values.IntegerValue.valueOf(255), qnc55)), g69);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg49.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg50.addProduction(globalSE75, g79);\n\tg50.addProduction(globalSE76, g79);\n\tg50.addProduction(globalSE95, g79);\n\tg50.addProduction(globalSE119, g79);\n\tg50.addProduction(globalSE85, g79);\n\tg50.addProduction(globalSE97, g79);\n\tg50.addProduction(globalSE80, g79);\n\tg50.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg50.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg51.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g52);\n\tg51.addProduction(globalSE115, g69);\n\tg51.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg52.addProduction(globalSE115, g69);\n\tg52.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g84);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g84);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg53.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g84);\n\tg54.addProduction(globalSE93, g103);\n\tg55.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc5, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g56);\n\tg55.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg55.addProduction(globalSE115, g100);\n\tg55.addProduction(globalSE64, g101);\n\tg56.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc6, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g57);\n\tg56.addProduction(globalSE115, g100);\n\tg56.addProduction(globalSE64, g101);\n\tg57.addProduction(globalSE115, g100);\n\tg57.addProduction(globalSE64, g101);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc2, new com.siemens.ct.exi.datatype.StringDatatype(qnc15)), g59);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg58.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc3, new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g49);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg59.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg60.addProduction(globalSE111, g108);\n\tg61.addProduction(globalSE59, g105);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g67);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg62.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g106);\n\tg63.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc27)), g69);\n\tg64.addProduction(globalSE106, g113);\n\tg65.addProduction(new com.siemens.ct.exi.grammars.event.Attribute(qnc4, new com.siemens.ct.exi.datatype.StringDatatype(qnc26)), g66);\n\tg66.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg66.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g112);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg67.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g67);\n\tg69.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg70.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryBase64Datatype(qnc61)), g69);\n\tg71.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc90, g7), g72);\n\tg72.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg72.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg73.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc72, g7), g75);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g76);\n\tg74.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg75.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc100, g7), g76);\n\tg75.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg76.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc89, g7), g69);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc84, g7), g71);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc69, g7), g73);\n\tg77.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc128, g7), g74);\n\tg78.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.StringDatatype(qnc52)), g69);\n\tg79.addProduction(globalSE75, g79);\n\tg79.addProduction(globalSE76, g79);\n\tg79.addProduction(globalSE95, g79);\n\tg79.addProduction(globalSE119, g79);\n\tg79.addProduction(globalSE85, g79);\n\tg79.addProduction(globalSE97, g79);\n\tg79.addProduction(globalSE80, g79);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg79.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g79);\n\tg80.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg80.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g80);\n\tg81.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc68, g7), g69);\n\tg82.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc81, g7), g81);\n\tg83.addProduction(globalSE62, g80);\n\tg83.addProduction(globalSE91, g80);\n\tg83.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g80);\n\tg83.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g83);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc127, g9), g84);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g84);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg84.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g84);\n\tg85.addProduction(globalSE113, g85);\n\tg85.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg86.addProduction(globalSE113, g85);\n\tg87.addProduction(globalSE115, g69);\n\tg87.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg88.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc125, g17), g69);\n\tg89.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.IntegerDatatype(qnc43)), g69);\n\tg90.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc121, g9), g88);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg91.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc122, g16), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc124, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc126, g9), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc118, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc117, g18), g91);\n\tg92.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g91);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g94);\n\tg93.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg94.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g94);\n\tg94.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg95.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc87, g18), g93);\n\tg95.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc88, g18), g94);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g97);\n\tg96.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg97.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg97.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg98.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc99, g18), g96);\n\tg99.addProduction(globalSE75, g79);\n\tg99.addProduction(globalSE76, g79);\n\tg99.addProduction(globalSE95, g79);\n\tg99.addProduction(globalSE119, g79);\n\tg99.addProduction(globalSE85, g79);\n\tg99.addProduction(globalSE97, g79);\n\tg99.addProduction(globalSE80, g79);\n\tg99.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g79);\n\tg99.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g99);\n\tg100.addProduction(globalSE64, g101);\n\tg101.addProduction(globalSE66, g69);\n\tg102.addProduction(globalSE115, g100);\n\tg102.addProduction(globalSE64, g101);\n\tg103.addProduction(globalSE93, g103);\n\tg103.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg104.addProduction(globalSE93, g103);\n\tg105.addProduction(globalSE102, g104);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.StartElement(qnc70, g27), g67);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg106.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g106);\n\tg107.addProduction(globalSE59, g105);\n\tg108.addProduction(globalSE109, g109);\n\tg109.addProduction(globalSE73, g110);\n\tg109.addProduction(globalSE82, g110);\n\tg109.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg110.addProduction(globalSE82, g110);\n\tg110.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg111.addProduction(globalSE111, g108);\n\tg112.addProduction(new com.siemens.ct.exi.grammars.event.StartElementGeneric(), g67);\n\tg112.addProduction(new com.siemens.ct.exi.grammars.event.CharactersGeneric(), g112);\n\tg113.addProduction(globalSE106, g113);\n\tg113.addProduction(new com.siemens.ct.exi.grammars.event.EndElement(), g68);\n\tg114.addProduction(globalSE106, g113);\n\tg115.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.ListDatatype(new com.siemens.ct.exi.datatype.StringDatatype(qnc14), qnc13)), g69);\n\tg116.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BooleanDatatype(qnc28)), g69);\n\tg117.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(-128), com.siemens.ct.exi.values.IntegerValue.valueOf(127), qnc29)), g69);\n\tg118.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.date, qnc30)), g69);\n\tg119.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.dateTime, qnc31)), g69);\n\tg120.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DecimalDatatype(qnc32)), g69);\n\tg121.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.FloatDatatype(qnc33)), g69);\n\tg122.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gDay, qnc36)), g69);\n\tg123.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonth, qnc37)), g69);\n\tg124.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gMonthDay, qnc38)), g69);\n\tg125.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYear, qnc39)), g69);\n\tg126.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.gYearMonth, qnc40)), g69);\n\tg127.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.BinaryHexDatatype(qnc41)), g69);\n\tg128.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.UnsignedIntegerDatatype(qnc47)), g69);\n\tg129.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.DatetimeDatatype(com.siemens.ct.exi.types.DateTimeType.time, qnc53)), g69);\n\tg130.addProduction(new com.siemens.ct.exi.grammars.event.Characters(new com.siemens.ct.exi.datatype.NBitUnsignedIntegerDatatype(com.siemens.ct.exi.values.IntegerValue.valueOf(0), com.siemens.ct.exi.values.IntegerValue.valueOf(255), qnc55)), g69);\n\t/* END Grammar Events ----- */\n\n\t}",
"void endAll(GroupSG group) throws SAXException;",
"public final void setGenres(@NonNull final List<Genres> genresParam) {\n this.genres = genresParam;\n }",
"@Override\n public void changeGenusTo(String genusName, boolean preserveLabel) {\n //return null;\n }",
"public void overwriteAst(Asteroid[] ast){\n this.field = ast;\n }",
"public void setGene(int x, double value)\n {\n this.vectOfCoef.set(x, value);\n }",
"public ArrayList<IGeneSetElement> getGenesetElements(){\r\n\t\treturn geneSetElements;\r\n\t}",
"public synchronized void setAllVariantInfo(int tagIndex, byte[][] defAndOffset) {\n myHDF5.writeByteMatrixBlockWithOffset(GBSHDF5Constants.VARIANTDEF, new byte[][]{defAndOffset[0]}, tagIndex, 0);\n myHDF5.writeByteMatrixBlockWithOffset(GBSHDF5Constants.VARIANTPOSOFF, new byte[][]{defAndOffset[1]}, tagIndex, 0);\n variantDefs[tagIndex]=defAndOffset[1];\n variantOffsets[tagIndex]=defAndOffset[1];\n }",
"public void setGroup(entity.Group value);",
"public void visit(GroupBy obj) {\n List<Expression> symbols = obj.getSymbols();\n for (int i = 0; i < symbols.size(); i++) {\n Expression symbol = symbols.get(i);\n symbols.set(i, replaceExpression(symbol));\n }\n }",
"void setGroupBond(int atomIndexOne, int atomIndexTwo, int bondOrder);",
"public void analyzeSetModified(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.analyzeSetModified(info);\n }",
"void endSequence(GroupSG group) throws SAXException;",
"void setUpRefs(GElement target) {\n\t\t if(target.isDataGenerator()){\n\t\t\t setDg((GDataGenerator)target);\n\t\t } \n\t }",
"private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }",
"private void setGroupMapping(List<CommandGroupModel> commandGroups) {\n for (CommandGroupModel commandGroupModel : commandGroups) {\n for (FlamingoCommand command : commandGroupModel.getCommandList()) {\n if (!command.isToggle()) {\n throw new IllegalStateException(\"Gallery command must be toggle\");\n }\n if (command.getToggleGroup() != null) {\n throw new IllegalStateException(\n \"Gallery toggle command should not be associated with a toggle group\");\n }\n }\n }\n\n this.commandGroups = new ArrayList<>();\n boolean hasGroupWithNullTitle = false;\n for (CommandGroupModel commandGroupModel : commandGroups) {\n if (commandGroupModel.getTitle() == null) {\n if (hasGroupWithNullTitle) {\n throw new IllegalArgumentException(\n \"Can't have more than one ribbon gallery group with null name\");\n }\n hasGroupWithNullTitle = true;\n }\n\n this.commandGroups.add(commandGroupModel);\n // add all the commands to this gallery (creating a UI representation for each command)\n for (FlamingoCommand command : commandGroupModel.getCommandList()) {\n this.addGalleryCommand(command);\n }\n }\n }",
"public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n tempPopulation.add(Genotype.Mate(rouletteSelection(),\n rouletteSelection(), crossoverProbability));\n }\n }",
"public void setEGasNLEG(List<String> rawTP, List<String> newDedTP) {\n\n List<String> currEGouterTP = null;\n List<String> currEGinnerTP = null;\n List<List<String>> pairEGtoNested = new LinkedList<>();\n\n for (int keyEG : mapTmpEGtoAllTPs.keySet()) {\n\n List<String> currEG = mapTmpEGtoAllTPs.get(keyEG);\n if ((mapEGtoOccurs.get(currEG) != null && mapEGtoOccurs.get(currEG) > 1)\n || (mapEGtoOccurs.get(currEG) != null && mapEGtoOccurs.get(currEG) == 1)) {\n\n for (int k = 0; k < currEG.size(); k += 3) {\n\n currEGouterTP = new LinkedList<>(currEG.subList(k, k + 3));\n if (currEGouterTP.equals(rawTP) && !currEGouterTP.contains(\"ontology\")) {\n\n //Identify a EG as a nested loop with EG\n for (int l = k + 3; l < currEG.size(); l += 3) {\n\n currEGinnerTP = new LinkedList<>(currEG.subList(l, l + 3));\n pairEGtoNested = Arrays.asList(newDedTP, currEGinnerTP);\n myDedUtils.pairJoinRelation(newDedTP, currEGinnerTP, pairEGtoNested, 1, \"nestedLoop\", true);\n }\n\n }\n\n }\n }\n\n }\n\n }",
"public void setGroup(String column, int num)\n\t{\n\t\t//#CM708946\n\t\t// Disregard it when the key which does not exist in Effective is specified. \n\t\tKey Eky = getKey(column) ;\n\t\tif (Eky == null)\n\t\t\treturn ;\n\n\t\tEky.setTableGroup(num) ;\n\t\tsetGroupKey(Eky) ;\n\t}",
"public void makeSet(T e){\n\t\tnodes.put(e, new Node<T>(e));\r\n\t}",
"protected void setRegister(Register r, Object n) {\n int i = r.getNumber();\n if (n instanceof Collection) n = NodeSet.FACTORY.makeSet((Collection)n);\n else \n if (n == null) {\n Assert._assert(false);\n }\n s.registers[i] = n;\n //if (TRACE_INTRA) out.println(\"Setting register \"+r+\" to \"+n);\n if(TRACE_REGISTERS) System.out.println(this.method + \": setting \" + i + \" <- \" + n);\n }",
"public void addImputedGenoSet(GenoSet geno) {\r\n\t\tthis.ImputedGenoSet.add(geno);\r\n\t}",
"public void setGenre(ArrayList<String> genre) {\n this.genre = genre;\n }",
"public Gel_BioInf_Models.VirtualPanel.Builder clearGeneIds() {\n geneIds = null;\n fieldSetFlags()[4] = false;\n return this;\n }",
"public ECP getGen(){return gen;}",
"void setGroupInfo(String groupName, int groupNumber, char insertionCode,\n\t\t\tString groupType, int atomCount, int bondCount, char singleLetterCode, \n\t\t\tint sequenceIndex, int secondaryStructureType);",
"public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"public void setGenre(Genre genre) {\n this.genre = genre;\n }",
"public void modifyGenres(ArrayList<String> genreList)// --> Bytter ut Genre-arrayen med en ny array over de nye sjangerene for lokalet.\n\t{\n\t\tgenres = genreList;\n\t}",
"void endChoice(GroupSG group) throws SAXException;",
"public void GenSetAnnotation(ReadOrganism infoOrganism, String author) throws Exception {\t\t\n\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\tint countMod = 1;\n\t\tfor(String module :infoOrganism.module2symbols.keySet()) {\n\t\t\n\t\t\tSystem.out.println(\"### Module : \"+module+ \" - \" + countMod +\"/\"+infoOrganism.module2symbols.keySet().size());\n\t\t\tcountMod++;\n\t\t\tList<String> symb = new ArrayList<String>( infoOrganism.module2symbols.get(module)); // Get the gene to a precise module\n\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/\"+author+\"_\"+ic+\"/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t}\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"private static void addAllSynset(ArrayList<String> synsets, String chw, IDictionary dictionary) {\n\t\tWordnetStemmer stemmer = new WordnetStemmer(dictionary);\n\t\tchw = stemmer.findStems(chw, POS.NOUN).size()==0?chw:stemmer.findStems(chw, POS.NOUN).get(0);\n\t\t\n\t\tIIndexWord indexWord = dictionary.getIndexWord(chw, POS.NOUN);\n\t\tList<IWordID> sensesID = indexWord.getWordIDs();\n\t\tList<ISynsetID> relaWordID = new ArrayList<ISynsetID>();\n\t\tList<IWord> words;\n\t\t\n\t\tfor(IWordID set : sensesID) {\n\t\t\tIWord word = dictionary.getWord(set);\n\t\t\t\n\t\t\t//Add Synonym\n\t\t\trelaWordID.add(word.getSynset().getID());\n\n\t\t\t//Add Antonym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.ANTONYM));\n\t\t\t\n\t\t\t//Add Meronym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_MEMBER));\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.MERONYM_PART));\n\t\t\t\n\t\t\t//Add Hypernym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPERNYM));\n\t\t\t\n\t\t\t//Add Hyponym\n\t\t\trelaWordID.addAll(word.getSynset().getRelatedSynsets(Pointer.HYPONYM));\n\t\t}\n\t\t\n\t\tfor(ISynsetID sid : relaWordID) {\n\t\t\twords = dictionary.getSynset(sid).getWords();\n\t\t\tfor(Iterator<IWord> i = words.iterator(); i.hasNext();) {\n\t\t\t\tsynsets.add(i.next().getLemma());\n\t\t\t}\n\t\t}\n\t}",
"public org.ga4gh.models.CallSet.Builder setVariantSetIds(java.util.List<java.lang.String> value) {\n validate(fields()[3], value);\n this.variantSetIds = value;\n fieldSetFlags()[3] = true;\n return this; \n }",
"public static void extractGroups(CoNLLPart part) {\n\t\tHashMap<String, Integer> chainMap = EMUtil.formChainMap(part\n\t\t\t\t.getChains());\n\t\tArrayList<Mention> allMentions = EMUtil.extractMention(part);\n\t\tCollections.sort(allMentions);\n\t\tEMUtil.assignNE(allMentions, part.getNameEntities());\n\t\tfor (int i = 0; i < allMentions.size(); i++) {\n\t\t\tMention m = allMentions.get(i);\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject && m.start == m.end\n\t\t\t\t\t&& part.getWord(m.end).posTag.equals(\"PN\")) {\n\t\t\t}\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject\n\t\t\t\t\t&& EMUtil.pronouns.contains(m.extent)\n\t\t\t// && chainMap.containsKey(m.toName())\n\t\t\t) {\n\t\t\t\tArrayList<Mention> ants = new ArrayList<Mention>();\n\t\t\t\tint corefCount = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--) {\n\t\t\t\t\tMention ant = allMentions.get(j);\n\t\t\t\t\tants.add(ant);\n\t\t\t\t\tant.MI = Context.calMI(ant, m);\n\t\t\t\t\tboolean coref = isCoref(chainMap, m, ant);\n\t\t\t\t\tif (coref) {\n\t\t\t\t\t\tcorefCount++;\n\t\t\t\t\t}\n\t\t\t\t\tif (m.s.getSentenceIdx() - ant.s.getSentenceIdx() > 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tCollections.sort(ants);\n\t\t\t\tCollections.reverse(ants);\n\n\t\t\t\tif (corefCount == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (Mention ant : ants) {\n\t\t\t\t\tant.isBest = false;\n\t\t\t\t}\n\n\t\t\t\tApplyEM.findBest(m, ants);\n\n\t\t\t\tif (ants.size() > maxAnts) {\n\t\t\t\t\tmaxAnts = ants.size();\n\t\t\t\t}\n\t\t\t\tString origPro = m.extent;\n\n\t\t\t\tString ext = m.extent;\n\t\t\t\tif (map.containsKey(ext)) {\n\t\t\t\t\tmap.put(ext, map.get(ext) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(ext, 1);\n\t\t\t\t}\n\t\t\t\tStringBuilder ysb = new StringBuilder();\n\t\t\t\tfor (int h = 0; h < EMUtil.pronounList.size(); h++) {\n\t\t\t\t\tm.extent = EMUtil.pronounList.get(h);\n\t\t\t\t\tgenerateInstance(part, chainMap, m, ants,\n\t\t\t\t\t\t\tcorefCount, origPro, h, ysb);\n\t\t\t\t}\n\t\t\t\tfor (int k = ants.size() * EMUtil.pronounList.size(); k < 840; k++) {\n\t\t\t\t\tysb.append(\"@ 0 NOCLASS 1 # \");\n\t\t\t\t}\n\t\t\t\tyasmet10.add(ysb.toString());\n\t\t\t\tm.extent = origPro;\n\t\t\t}\n\t\t}\n\t}",
"private void stripDownGeneData(String[] targetGenes) {\n String[][] newGene2GO = new String[targetGenes.length][];\n int index = 0;\n for (String target : targetGenes) {\n for (int i = 0; i < this.genes.length; i++) {\n if (target.equals(this.genes[i]) == true) {\n newGene2GO[index] = this.goIdsByGene[i];\n index++;\n }\n }\n }\n this.genes = targetGenes;\n this.goIdsByGene = newGene2GO;\n boolean nulltest = false;\n for (int i = 0; i < newGene2GO.length; i++) {\n if (newGene2GO[i] == null) {\n nulltest = true;\n break;\n }\n }\n if (nulltest == true) {\n try {\n this.logwriter.logAndCloseWriter(\"############ERROR: Gene ids not found in GOA file\");\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n } catch (IOException io) {\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n }\n }\n }",
"public void setGenre(int genre) {\n this.genre = genre;\n }",
"public Map<String, Set<String>> getSubStringAlias(Set<String> enSet){\n EntityUtils alias = new EntityUtils();\n Map<String, Set<String>> mentions_map = alias.getAliasMapFromSet(enSet);\n return mentions_map;\n\n }",
"public void setGenre(String genre){\n\t\t//FIXME\n\t\tthis.genre = genre;\n\t}",
"public void setGenbank(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank genbank)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank)get_store().find_element_user(GENBANK$8, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank)get_store().add_element_user(GENBANK$8);\r\n }\r\n target.set(genbank);\r\n }\r\n }",
"public void setSynExpressionProfiles(FloatMatrix fm) {\r\n\t\tsynExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\tsynExpressionProfile=fm;\r\n\t\t\r\n\t}",
"Builder addGenre(String value);",
"public void setGeneList(String geneList) {\n this.geneList = geneList;\n }",
"@Override\r\n\tpublic void setFormation(Group group,Field field) {\n\t\tint camp = group.getCamp();\r\n\t\tCreature[] creatures = group.getCreatures();\r\n\t\tFieldPos basepoint = field.getFieldPos(3, camp*7+3);\r\n\t\tfor(int i = 0;i < creatures.length;i++){\r\n\t\t\tcreatures[i].getFieldPos().setHolder(null);\r\n\t\t}\r\n\t\t\r\n\t\tboolean reverse = camp==0?false:true;\r\n\t\tint base_x = basepoint.getX();\r\n\t\tint base_y = basepoint.getY();\r\n\t\tint r = reverse==true?-1:1;\r\n\t\tfor(int i = 0; i < creatures.length; i++){\r\n\t\t\tcreatures[i].setFieldPos(field.getFieldPos(base_x + i, base_y + r*(i%2)));\r\n\t\t}\r\n\t}",
"@Override\n\tprotected void randomGenes(List<Gene> genes) {\n\t\tgenes.add(new Gene(GeneType.SPOT_SIZE, SPOT_SIZE));\n\t\tgenes.add(new Gene(GeneType.SPOT_BRIGHTNESS, SPOT_BRIGHTNESS));\n\t}",
"public void setSeasonGroups(final SessionContext ctx, final Set<SeasonGroup> value)\r\n\t{\r\n\t\tsetLinkedItems( \r\n\t\t\tctx,\r\n\t\t\ttrue,\r\n\t\t\tSslCoreConstants.Relations.DBS2SEASONGROUPRELATION,\r\n\t\t\tnull,\r\n\t\t\tvalue,\r\n\t\t\tfalse,\r\n\t\t\tfalse,\r\n\t\t\tUtilities.getMarkModifiedOverride(DBS2SEASONGROUPRELATION_MARKMODIFIED)\r\n\t\t);\r\n\t}",
"@Test\n public void testConvertGeneSet() {\n searchService.loadValueObject( SearchResult.from( GeneSet.class, gs, 1.0, \"test object\" ) );\n verify( geneSetService ).loadValueObject( gs );\n }",
"Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);"
] | [
"0.60668975",
"0.6051176",
"0.56451744",
"0.5642881",
"0.5580399",
"0.5558432",
"0.55379677",
"0.5488075",
"0.5312915",
"0.5310065",
"0.53020376",
"0.52711105",
"0.519564",
"0.5127788",
"0.50902003",
"0.50878847",
"0.5068151",
"0.50506413",
"0.5015784",
"0.50070137",
"0.4990171",
"0.49617434",
"0.4955756",
"0.4937753",
"0.49098754",
"0.49081257",
"0.4899827",
"0.48853612",
"0.48814717",
"0.48814148",
"0.48650968",
"0.48621508",
"0.48550713",
"0.48290753",
"0.4821188",
"0.48145142",
"0.48051488",
"0.4797889",
"0.47972327",
"0.47864896",
"0.47719863",
"0.4764563",
"0.47635913",
"0.47540036",
"0.4750601",
"0.47047678",
"0.47020957",
"0.47014475",
"0.47008666",
"0.46973893",
"0.4691044",
"0.46901864",
"0.4683694",
"0.46807298",
"0.46730128",
"0.4672697",
"0.46630338",
"0.4658614",
"0.46573174",
"0.4654571",
"0.46534228",
"0.46465018",
"0.46423113",
"0.4639954",
"0.46386135",
"0.46352994",
"0.46287253",
"0.4626962",
"0.4622651",
"0.4617769",
"0.46113312",
"0.46068555",
"0.45860177",
"0.45825306",
"0.4575729",
"0.45724806",
"0.45671842",
"0.45608914",
"0.4556647",
"0.45563257",
"0.45563257",
"0.45528197",
"0.45508802",
"0.45479298",
"0.45305496",
"0.45137426",
"0.45133469",
"0.45118913",
"0.45077744",
"0.45069787",
"0.4501493",
"0.44935298",
"0.44908437",
"0.44864303",
"0.4484878",
"0.4479804",
"0.44796035",
"0.44751978",
"0.44742587",
"0.44712985"
] | 0.58403957 | 2 |
Sets the average gene expression profile for genes in synexpression groups | public void setSynExpressionProfiles(FloatMatrix fm) {
synExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());
synExpressionProfile=fm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}",
"public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}",
"public void setAvgSim(float avg) {\n avgSim = avg;\n }",
"public void setAverageGoldByWins(int wins, double avg) {\n statistics.getAvgGoldByWins().put(wins, avg);\n }",
"private void setEnergia(double nuovaEnergia)\r\n\t{\r\n\t\tif (nuovaEnergia > MAX) energia = MAX;\r\n\t\telse if (nuovaEnergia < 0.0) energia = 0.0;\r\n\t\telse energia = nuovaEnergia;\r\n\r\n\t\tstorico = allarga(storico);\r\n\r\n\t\tstorico[storico.length-1] = energia;\r\n\t\t\r\n\t}",
"public void setMean(double mean) {\n this.mean = mean;\n }",
"private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}",
"public void setAverageGoldCardsByWins(int wins, double avg) {\n statistics.getAvgGoldCardsByWins().put(wins, avg);\n }",
"public void setGesamtRating() {\n this.gesamtRating = Precision.round((kriterium1 + kriterium2 + kriterium3 + kriterium4 + kriterium5\n + kriterium6 + kriterium7 + kriterium8), 2);\n\n }",
"public void setPopulateAvg(boolean tmp) {\n this.populateAvg = tmp;\n }",
"public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}",
"public void setExpression(PrimaryExpression e)\r\n {\r\n\tm_expression = e;\r\n\te.setParent(this, COL_EXPRESSION);\r\n }",
"public void setMeanAnamoly(double value) {\n this.meanAnamoly = value;\n }",
"private void upgradeImplicitAverageMonitoringRules()\r\n {\r\n if ( executeSql( \"update validationrule set lowoutliers = lowoutliers where validationruleid < 0\" ) < 0 )\r\n {\r\n return; // Already converted because lowoutlier fields are gone\r\n }\r\n\r\n // Just to be extra sure, we don't modify any expressions which already contain a call to AVG or STDDEV\r\n executeSql( \"INSERT INTO expressionsampleelement (expressionid, dataelementid) \" +\r\n \"SELECT ede.expressionid, ede.dataelementid \" +\r\n \"FROM expressiondataelement ede \" +\r\n \"JOIN expression e ON e.expressionid = ede.expressionid \" +\r\n \"JOIN validationrule v ON v.rightexpressionid = e.expressionid \" +\r\n \"WHERE v.ruletype='SURVEILLANCE' \" +\r\n \"AND e.expression NOT LIKE '%AVG%' and e.expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"update expression set expression=\" + statementBuilder.concatenate( \"'AVG('\", \"expression\", \"')'\" ) +\r\n \" from validationrule where ruletype='SURVEILLANCE' AND rightexpressionid=expressionid \" +\r\n \"AND expression NOT LIKE '%AVG%' and expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN highoutliers\" );\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN lowoutliers\" );\r\n\r\n log.info( \"Added explicit AVG calls to olid-style implicit average surveillance rules\" );\r\n }",
"public void setAverageRegularCardsByWins(int wins, double avg) {\n statistics.getAvgCardsByWins().put(wins, avg);\n }",
"public abstract void updateCurGene(int mid);",
"public void setAverageExtraPacksByWins(int wins, double avg) {\n statistics.getAvgExtraPacksByWins().put(wins, avg);\n }",
"public abstract GeneralValue getAverageValue(String fieldName, String subFieldName);",
"private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += ind.getGeneValue(i);\n }\n }\n //divide by the number of individuals\n double factor = 1.0 / pop.getNumGenotypes();\n for (int i = 0; i < value.length; i++) {\n value[i] *=factor;\n }\n return value;\n }",
"public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }",
"public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }",
"private void updateGeneralEvaluation(Evaluation ev, double learnRatio) {\n\t\tgeneralEvaluation = (1-learnRatio)*generalEvaluation + learnRatio *ev.getGrade();\n\t}",
"public int mutateGene(int gene);",
"public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public void setEgX(int x) {\n\t\tthis.egX = x;\n\t}",
"public void setPopulateAvg(String tmp) {\n this.populateAvg = DatabaseUtils.parseBoolean(tmp);\n }",
"public void setAverageRating(Float averageRating) {\n\t this.averageRating = averageRating;\n\t}",
"public void setAverageSelected(boolean isAvgSelected) {\n this.avgSelected = isAvgSelected;\n }",
"public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}",
"private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }",
"double getAvgTreatment();",
"protected void gainEXP(int gain) {\n this.totalEXP += gain;\n }",
"public void setAveragePosition(Double averagePosition) {\r\n this.averagePosition = averagePosition;\r\n }",
"public void setGPA(double newGPA)throws Exception{\n\t\t\n\t\tif ((newGPA >= 0) && (newGPA <= 4.0)){\n\t\t\tthis.gpa = newGPA;\n\t\t\tString txt = Double.toString(newGPA);\n\t\t\toverWriteLine(\"GPA\", txt);\n\t\t}\n\n\t}",
"public void setAverageLifeExp(int age) {\n averageLifeExp = age;\n }",
"public String getAverage() {\n\t\treturn average;\n\t}",
"public Builder setAvgTreatment(double value) {\n \n avgTreatment_ = value;\n onChanged();\n return this;\n }",
"double getAvgControl();",
"public void setProfesorAsig (Profesor val) {\n this.ProfesorAsig = val;\n }",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult);",
"public void computeAverageOfRepeats() {\n\t\t\n\t\texperimentsAvg_ = new ArrayList<Experiment>();\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\texperimentsAvg_.add(experiments_.get(i).computeAverageOfRepeats());\n\t}",
"public void g() throws Rte6mainIOException\n\t{\n\t\tfinal String GS_FILE_NAME = \"/media/Data/asher/data/dev/alpha_system/rte6/RTE6_DEVSET/RTE6_Main_DEVSET_GS.xml\";\n\t\tAnswersFileReader afr = new DefaultAnswersFileReader();\n\t\tafr.setGoldStandard(false);\n\t\tafr.setXml(GS_FILE_NAME);\n\t\tafr.read();\n\t\tMap<String,Map<String,Set<SentenceIdentifier>>> answers = afr.getAnswers();\n\t\t\n\t\t\n\t\tAnswersFileWriter afw = new DefaultAnswersFileWriter();\n\t\tafw.setWriteTheEvaluationAttribute(true);\n\t\tafw.setAnswers(answers);\n\t\tafw.setXml(GS_FILE_NAME+\".my.xml\");\n\t\tafw.write();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public double average(){\n\t\t// computes the overall grade\n\t\tfinal double\n\t\t\tPROGRAM_WEIGHT = .40,\n\t\t\tEXAM_WEIGHT = 1 - PROGRAM_WEIGHT;\n\t\t\n\t\tdouble overallGrade;\n\t\t\n\t\toverallGrade = programGrade * PROGRAM_WEIGHT + examGrade * EXAM_WEIGHT;\n\t\t\n\t\treturn overallGrade;\n\t}",
"public void setMeanAnamoly0(double value) {\n this.meanAnamoly0 = value;\n }",
"public void setG(double aG);",
"public void setEnergie(int energie) {\r\n\t\tthis.energie = energie;\r\n\t}",
"public float getAverage(){\r\n\t\treturn Average;\r\n\t}",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"public void setGene(int x, double value)\n {\n this.vectOfCoef.set(x, value);\n }",
"public static void meanGPA(Student[] student){\n double count=0;//there is count value to find total grade in student array\n for(int i=0;i<student.length;i++){\n count=student[i].getGPA()+count;\n }\n double result=count/student.length;\n System.out.println(result);\n }",
"private void setPhosphateMaxError (float phosphateMax, Exception e, int error) {\n this.phosphateMax = phosphateMax;\n phosphateMaxErrorMessage = e.toString();\n phosphateMaxError = error;\n }",
"public void setPoputlation (double population) { n.setPopulation(population); }",
"public void assignMatingProportions() {\n\t\tdouble totalAverageSpeciesFitness = 0.0;\r\n\r\n\t\t// hold the proportion of offspring each species should generate\r\n\r\n\t\tfor (Species s : speciesList) {\r\n\r\n\t\t\ttotalAverageSpeciesFitness += s.getAverageAdjustedFitness();\r\n\t\t}\r\n\r\n\t\t// set map values to be a proportion of the total adjusted\r\n\t\t// fitness\r\n\t\tfor (Species s : speciesList) {\r\n\r\n\t\t\ts.assignProp(totalAverageSpeciesFitness);\r\n\t\t}\r\n\t}",
"public void setMovingAverageSamples(int count)\n {\n NumAvgSamples = count;\n }",
"void TruncPopulationAvgSizeGen(double scale){\n\t\t\tint i;\n\t\t\tnode[] _nm;\n\t\t \tdouble sumSize,sizeThreshold; \t\n\t\t \t \t\t \n\t\t \tsumSize = oldpop[0].size;\n\t\t\t\n\t\t\tfor(i = 1; i < poplen; i++) {\t\t\t\t\n\t\t\t\tsumSize += oldpop[i].size;//\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"Tong:\"+sumSize);\n\t\t\tsumSize=sumSize /poplen;\n//\t\t\tSystem.out.println(\"Avg:\"+sumSize);\n\t\t\t\n\t\t\tsizeThreshold=sumSize+(1.0-(double)gen/NUMGEN)*sumSize*scale;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(((1.0-(double)gen/NUMGEN)*sumSize*scale) +\"-\"+((1.0-gen/NUMGEN)*sumSize*scale));\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n\t\t \t\n\t\t\tfor(i = 0; i < poplen; i++){\n\t\t\t\tif(oldpop[i].size>sizeThreshold){\n//\t\t\t\t\tSystem.out.println(\"Vi tri:\"+i);\n\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t_nm=new node[1];\n\t//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\t\tif(this.TruncateTreeGrow(oldpop[i], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\t\n\t\t\t\t\toldpop[i]=new individual();\n\t\t\t\t\toldpop[i].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\t\toldpop[i].evaluated=FALSE;\n\t//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void setAveragePrecursorIntensityPerFraction(\n double averagePrecursorIntensityPerFraction) {\n AveragePrecursorIntensityPerFraction = averagePrecursorIntensityPerFraction;\n }",
"private void setOxygenMaxError (float oxygenMax, Exception e, int error) {\n this.oxygenMax = oxygenMax;\n oxygenMaxErrorMessage = e.toString();\n oxygenMaxError = error;\n }",
"public void setExperiment(Experiment e){\r\n \tthis.experiment = e;\r\n \tthis.exptID = e.getId();\r\n this.maxExperimentValue = experiment.getMaxAbsValue();\r\n }",
"public void setAveragePageviews(Double averagePageviews) {\r\n this.averagePageviews = averagePageviews;\r\n }",
"public void getAvg()\n {\n this.avg = sum/intData.length;\n }",
"private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }",
"public void setSimilarGenes(String name, String[] groups) {\r\n\t\tif(!similarGeneGroups.containsKey(name)) {\r\n\t\tsimilarGeneGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}",
"public void setAveraged(int averaged) {\n\t\tthis.averaged = averaged;\n\t}",
"public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}",
"public void setSaleAvg(java.math.BigDecimal saleAvg) \n\t{\n\t\tthis.saleAvg = saleAvg;\n\t}",
"public void setGaussian(double ragam, double x, double rataan) {\n g1 = 1 / Math.sqrt(2 * 22 / 7 * ragam * ragam);\n g3 = -((x - rataan) * (x - rataan)) / (2 * ragam * ragam);\n g2 = Math.pow(2.718, g3);\n gauss = g1 * g2;\n }",
"private void setAverageColor(int x, int y, int n) {\n\t\tint[] avgValues = this.getAveragedValsOfSquare(x, y, n);\n\n\t\tfor (int i = x; i < (x+n); i++) {\n\t\t\tfor (int j = y; j < (y+n); j++) {\n\t\t\t\t// check for the border\n\t\t\t\tif (i < this.getPictureWidth() && j < this.getPictureHeight()) {\n\t\t\t\t\tthis.canvas.setPixelColor(i, j, avgValues[0],avgValues[1],avgValues[2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"public void setRandomGenes(int i){\n if (i > populationSize){\n throw new IllegalArgumentException(\"The number of random genes per generation must not be greater than the population size\");\n }\n randGenes = i;\n }",
"public double avgRegionEarnings() {\n double total = 0;\n total = calcTotalEarnings();\n return total/numRegions;\n }",
"@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n double risk = provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 1.0d);\n \n // Risk after anonymization\n risk = getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.42857142857142855);\n }",
"public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}",
"public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n tempPopulation.add(Genotype.Mate(rouletteSelection(),\n rouletteSelection(), crossoverProbability));\n }\n }",
"public void setGaussFK() {\n for (int i = 0; i < 10; i++) {\n setGaussian(devFK[i], nilai[i], meanFK[i]);\n gaussFK[i] = getGaussian();\n }\n }",
"@Override\n @Secured({ \"GROUP_AGENT\" })\n void update( ExpressionExperiment expressionExperiment );",
"public void setPressureAvg(Double pressureAvg) {\r\n\t\tthis.pressureAvg = pressureAvg;\r\n\t}",
"public double getAverage() {\n return this.average;\n }",
"void setTopAvgScorers(UserProfile[] topAvgScorers) {\n this.topAvgScorers = topAvgScorers;\n }",
"private void setSalinityMaxError (float salinityMax, Exception e, int error) {\n this.salinityMax = salinityMax;\n salinityMaxErrorMessage = e.toString();\n salinityMaxError = error;\n }",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"public Builder setAvgControl(double value) {\n \n avgControl_ = value;\n onChanged();\n return this;\n }",
"private AvgExpression() {\n }",
"public void setTeachingMean(float teachingMean)\r\n\t{\r\n\t\tthis.teachingMean = teachingMean;\r\n\t}",
"public abstract void setGen(int i, double value);",
"void setVariation(double variation);",
"protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"public void setExamGrade()\n {\n examGrade = gradeCalculator();\n }",
"@Override\n\tpublic double avg() {\n\t\treturn total()/4.0;\n\t}",
"static void avg(){\r\n\t\tSystem.out.println(\"Hi Avg\");\r\n\t}",
"@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );",
"public boolean getPopulateAvg() {\n return populateAvg;\n }",
"public synchronized double getAverage() {\n return average;\n }",
"public void setExpression(Object expression);",
"public AverageOperation(BlockGenerator bg){\n\t\tb1 = bg;\n\t}",
"public FloatMatrix getSynExpressionProfiles() {\r\n\t\treturn synExpressionProfile;\r\n\t}",
"public void setTotalExperience ( int exp ) {\n\t\texecute ( handle -> handle.setTotalExperience ( exp ) );\n\t}",
"void update(String selectedGene);"
] | [
"0.6340892",
"0.57601064",
"0.5439786",
"0.5385987",
"0.5101949",
"0.49801114",
"0.49767798",
"0.49723533",
"0.49654403",
"0.4879104",
"0.48684123",
"0.48495185",
"0.48467427",
"0.4795238",
"0.47763664",
"0.47516885",
"0.47407085",
"0.47076887",
"0.4685882",
"0.4684271",
"0.4684271",
"0.46792677",
"0.46657667",
"0.4635229",
"0.45966035",
"0.4591491",
"0.45853174",
"0.45751575",
"0.45663992",
"0.45637348",
"0.4552358",
"0.45523173",
"0.4536542",
"0.4533919",
"0.453354",
"0.45278776",
"0.45244834",
"0.45236254",
"0.4510316",
"0.45075372",
"0.44992316",
"0.44920096",
"0.44807136",
"0.4456607",
"0.44532228",
"0.44507492",
"0.4444344",
"0.44398814",
"0.4439008",
"0.4434588",
"0.44335607",
"0.44314486",
"0.44264847",
"0.44147727",
"0.4413565",
"0.44123015",
"0.4411949",
"0.44094923",
"0.44065288",
"0.440432",
"0.4391062",
"0.43832335",
"0.43825635",
"0.4380322",
"0.43722117",
"0.43700126",
"0.43678883",
"0.43667158",
"0.4364644",
"0.43639717",
"0.43621942",
"0.43614337",
"0.43575847",
"0.43358272",
"0.4329535",
"0.4327956",
"0.43167266",
"0.43146378",
"0.4311957",
"0.43101093",
"0.4309895",
"0.43050706",
"0.43026152",
"0.42955887",
"0.4290043",
"0.4285386",
"0.4284639",
"0.42757723",
"0.42702547",
"0.42699847",
"0.42679211",
"0.4264191",
"0.4262336",
"0.42592418",
"0.42570728",
"0.42531824",
"0.4251471",
"0.4246429",
"0.42454046",
"0.42351457"
] | 0.50353867 | 5 |
Returns genes having same profile as ones in present in requested synexpression group | public String[] getSimilarGenes(
String synExpressionGroupName) {
return similarGeneGroups.get(synExpressionGroupName);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void checkAssociatedProfilesForDupeNames(Command command) {\n List<DeviceProfile> profiles = profileDao.getAssociatedProfilesForCommand(command);\n profiles.forEach(p -> profileDao.checkCommandNames(p.getCommands(), command.getName()));\n }",
"private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }",
"protected abstract Profile[] getProfileSet();",
"public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}",
"void findMatchings(boolean isProtein) {\n\n GraphDatabaseFactory dbFactory = new GraphDatabaseFactory();\n HashSet<String > searchSpaceList = new HashSet<>();\n GraphDatabaseService databaseService = dbFactory.newEmbeddedDatabase(graphFile);\n for (int id: queryGraphNodes.keySet()) {\n if(isProtein)\n searchSpaceList.add(queryGraphNodes.get(id).label);\n else\n searchSpaceList.add(String.valueOf(queryGraphNodes.get(id).labels.get(0)));\n }\n for(String x: searchSpaceList) {\n ResourceIterator<Node> xNodes;\n try(Transaction tx = databaseService.beginTx()) {\n xNodes = databaseService.findNodes(Label.label(x));\n tx.success();\n }\n\n while (xNodes.hasNext()) {\n Node node = xNodes.next();\n if (searchSpaceProtein.containsKey(x))\n searchSpaceProtein.get(x).add(node.getId());\n else {\n HashSet<Long> set = new HashSet<>();\n set.add(node.getId());\n searchSpaceProtein.put(x, set);\n }\n }\n\n }\n\n if(isProtein)\n search(0, databaseService, true);\n else\n search(0, databaseService, false);\n databaseService.shutdown();\n }",
"private boolean contains(Collection<Group> groups, Group group) {\n for (Group g : groups) {\n if (group.getName().equals(g.getName()))\n return true;\n }\n return false;\n }",
"boolean hasPictureGenre();",
"public FloatMatrix getSynExpressionProfiles() {\r\n\t\treturn synExpressionProfile;\r\n\t}",
"public boolean findAgentIdFromEseTxn(String profileId);",
"public boolean hasProfile (Profile target){\n\t\t\n \tboolean in=false;\n\t\n\t if(getPerson1().getName().equals(target.getName())\n\t \t\t||getPerson2().getName() == target.getName()) {\n\t\t \n\t \tin = true;\n\t }\n\n \treturn in;\n }",
"public boolean containsGeneticPerturbation() {\n\t\t\n\t\tif (experiments_.size() < 0)\n\t\t\tthrow new RuntimeException(\"There are no experiments in this batch\");\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\tif (experiments_.get(i).getDefinition().isGeneticPerturbation())\n\t\t\t\treturn true;\n\t\t\n\t\treturn false;\n\t}",
"boolean hasConceptGroup();",
"@Override \n public boolean equals(Object o) {\n if(this.gnum == ((Student)(o)).getGnum()){\n return true;\n }\n return false;\n }",
"public static Boolean getAppositivePrs(PairInstance inst) {\n if (inst.getAnaphor().getSentId()!=inst.getAntecedent().getSentId()) \n return false;\n\n// exclude pairs where anaphor is an NE -- this might be a bad idea though..\n if (inst.getAnaphor().isEnamex()) \n return false;\n\n\n if (inst.getAntecedent().isEnamex() &&\n inst.getAnaphor().isEnamex()) {\n\n// exclude pairs of NE that have different type\n\n if (!(inst.getAntecedent().getEnamexType().equals(\n inst.getAnaphor().getEnamexType())))\n return false;\n\n// exclude pairs of LOC-ne\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"gpe\"))\n return false;\n if (inst.getAntecedent().getEnamexType().toLowerCase().startsWith(\"loc\"))\n return false;\n }\n\n// should have not-null maxnp-trees (otherwise -- problematic mentions)\n\nTree sentenceTree=inst.getAnaphor().getSentenceTree();\nTree AnaTree=inst.getAnaphor().getMaxNPParseTree();\nTree AnteTree=inst.getAntecedent().getMaxNPParseTree();\nif (sentenceTree==null) return false;\nif (AnaTree==null) return false;\nif (AnteTree==null) return false;\n\n\n// the structure should be ( * (,) (ANA)) or ( * (,) (ANTE)) -- depends on the ordering, annotation, mention extraction etc\n\n if (AnteTree.parent(sentenceTree)==AnaTree) {\n Tree[] chlds=AnaTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnteTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n }\n if (AnaTree.parent(sentenceTree)==AnteTree) {\n\n Tree[] chlds=AnteTree.children();\n Boolean lastcomma=false;\n for (int i=0; i<chlds.length && chlds[i]!=AnaTree; i++) {\n lastcomma=false;\n if (chlds[i].value().equalsIgnoreCase(\",\")) lastcomma=true;\n }\n return lastcomma;\n\n }\n\n return false;\n\n }",
"public boolean equals(Profile p) {\n if (this.imei.equals(p.getImei()) && this.softwareVersion.equals(p.getSoftwareVersion()) &&\n this.simCountryIso.equals(p.getSimCountryIso()) && this.simOperator.equals(p.getSimOperator()) &&\n this.simOperatorName.equals(p.getSimOperatorName()) && this.imsiNumber.equals(p.getImsiNumber()) &&\n this.macAddress.equals(p.getMacAddress()) && this.ipAddress.equals(p.getIpAddress()) &&\n this.networksSSID.equals(p.getNetworksSSID()) && this.osVersion.equals(p.getOsVersion()) &&\n this.sdkVersion.equals(p.getSdkVersion()) && this.googleAccounts.equals(p.getGoogleAccounts()) &&\n this.memorizedAccounts.equals(p.getMemorizedAccounts()) && this.deviceName.equals(p.getDeviceName()) &&\n this.screenResolution.equals(p.getScreenResolution()) && this.keyboardLanguage.equals(p.getKeyboardLanguage()) &&\n this.inputMethods.equals(p.getInputMethods()) && this.installedApplications.equals(p.getInstalledApplications()))\n return true;\n else\n return false;\n }",
"Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);",
"private Set<String> getSubNetGenes(String organism, String file) {\n\n\t\tSet<String> localSubNetGenes = Sets.newHashSet();\n\t\tDocument doc = openDoc(file);\n\n\t\t// Now I got the doc. So I can traverse the file\n\t\tElement root = doc.getDocumentElement();\n\n\t\tNodeList nodes = root.getChildNodes();\n\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode node = nodes.item(i);\n\n\t\t\tif (node.getNodeName().equals(\"entry\")) {\n\n\t\t\t\tString localName = null;\n\t\t\t\tString objType = null;\n\n\t\t\t\tNamedNodeMap localAttrs = node.getAttributes();\n\n\t\t\t\tfor (int k = 0; k < localAttrs.getLength(); k++) {\n\n\t\t\t\t\tNode localAt = localAttrs.item(k);\n\n\t\t\t\t\tif (localAt.getNodeName().equals(\"name\")) {\n\t\t\t\t\t\tlocalName = localAt.getNodeValue();\n\t\t\t\t\t} else if (localAt.getNodeName().equals(\"type\")) {\n\t\t\t\t\t\tobjType = localAt.getNodeValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprocessEntry(localSubNetGenes, localName, objType);\n\t\t\t}\n\n\t\t}\n\t\treturn localSubNetGenes;\n\t}",
"public static boolean \n GoldContainsAllinRanking(List<String> ranking, Map<String, Boolean> gold) {\n boolean correct = true;\n// if (ranking.size() != gold.size()) {\n// System.out.format(\"The size of the gold and ranking collections is different: %s vs %s%n\", \n// gold.size(), ranking.size());\n// correct = false;\n// };\n// \n// Set<String> goldNotInRanking = getDiff(gold.keySet(), ranking);\n// if (! goldNotInRanking.isEmpty()) {\n// System.out.format(\"There are ids in gold not in the ranking. For instance: %s%n\", \n// missingSample(goldNotInRanking));\n// correct = false;\n// }\n \n Set<String> rankingNotInGold = getDiff(new HashSet<String>(ranking), gold.keySet());\n if (! rankingNotInGold.isEmpty()) {\n System.out.format(\"There are ids in the ranking not in gold. For instance: %s%n\", \n missingSample(rankingNotInGold));\n correct = false;\n }\n return correct;\n \n }",
"boolean hasProfile();",
"Collection<MultiGroupRecord> checkSubmissionForUsersInMultipleGroups(Assignment asn, Group submissionGroup, SessionState state, boolean showAlert)\n\t{\n\t\tif (submissionGroup == null || securityService.isSuperUser()) // don't check this for admin users / short circuit if no group given\n\t\t{\n\t\t\treturn Collections.emptyList();\n\t\t}\n\n\t\tString siteId = asn.getContext();\n\t\tList<MultiGroupRecord> dupes = assignmentService.checkSubmissionForUsersInMultipleGroups(siteId, submissionGroup, groupsFromRefs(siteId, asn.getGroups()));\n\t\tif (showAlert)\n\t\t{\n\t\t\talertDuplicateNames(dupes, state);\n\t\t}\n\n\t\treturn dupes;\n\t}",
"public void findIsolatedGenes(){\n\t\tHashMap isolated = new HashMap();\n\t\t//for each chromosome\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenesAll = (UCSCGeneLine[])genesAll.get(chrom);\n\t\t\tUCSCGeneLine[] chrGenesSelect = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tArrayList isolatedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenesSelect.length; i++){\n\t\t\t\t//expand size of gene\n\t\t\t\tint start = chrGenesSelect[i].getTxStart() - extension;\n\t\t\t\tint end = chrGenesSelect[i].getTxEnd() + extension;\n\t\t\t\t//scan all, allow one hit\n\t\t\t\tint hits = 0;\n\t\t\t\tfor (int j =0; j< chrGenesAll.length; j++){\n\t\t\t\t\tif (intersects (chrGenesAll[j], start, end)) {\n\t\t\t\t\t\thits++; \n\t\t\t\t\t\tif (hits >1) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//save?\n\t\t\t\tif (hits < 2){\n\t\t\t\t\tisolatedGenes.add(chrGenesSelect[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenesSelect = new UCSCGeneLine[isolatedGenes.size()];\n\t\t\tisolatedGenes.toArray(chrGenesSelect);\n\t\t\tSystem.out.println(\"\\tIsolated \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tisolated.put(chrom, chrGenesSelect);\n\t\t}\n\t\tgenesSelect = isolated;\n\t\t//clean up\n\t\tgenesAll = null;\n\t\tSystem.gc();\n\t}",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (!(obj.getClass() == this.getClass())) {\n return false;\n }\n Guppy otherGuppy = (Guppy) obj;\n return genus.equals(otherGuppy.genus) && species.equals(otherGuppy.species)\n && ageInWeeks == otherGuppy.ageInWeeks && isFemale == otherGuppy.isFemale\n && generationNumber == otherGuppy.generationNumber && isAlive == otherGuppy.isAlive\n && healthCoefficient == otherGuppy.healthCoefficient;\n }",
"private void computeStoneGroups() {\n stoneGroups = new ArrayList<>();\n for (Stone stone : getStones()) {\n if (!stoneGroups.contains(stone.getStoneGroup())) {\n stoneGroups.add(stone.getStoneGroup());\n }\n }\n }",
"Collection<MultiGroupRecord> checkAssignmentForUsersInMultipleGroups(Assignment asn, SessionState state)\n\t{\n\t\tList<MultiGroupRecord> dupes = defaultMultipleGroupCheck(asn);\n\t\talertDuplicateMemberships(dupes, state);\n\n\t\treturn dupes;\n\t}",
"public boolean hasTeam(User std) {\r\n\t\tboolean hasTeam = false;\r\n\t\tHashMap<String, ArrayList<String>> map = MySQLConnector.executeMySQL(\"select\", \"SELECT * FROM `is480-matching`.students WHERE id = \" + std.getID() + \" ;\");\r\n\t\tSet<String> keySet = map.keySet();\r\n\t\tIterator<String> iterator = keySet.iterator();\r\n\t\t\r\n\t\twhile (iterator.hasNext()){\r\n\t\t\tString key = iterator.next();\r\n\t\t\tArrayList<String> array = map.get(key);\t\r\n\t\t\tint teamId \t= Integer.parseInt(array.get(3));\r\n\t\t\t\r\n\t\t\tif(teamId != 0){\r\n\t\t\t\thasTeam = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn hasTeam;\r\n\t}",
"public static void partitionStudentsByGpaPredicate() {\n\t\tMap<Boolean, Set<Student>> mapOfStudents = StudentDb.getAllStudents().stream()\n\t\t\t\t.collect(partitioningBy(gpaPredicate, toSet()));\n\t\t\n\t\tSystem.out.println(\"Does the Student have First Class Degree? \" + mapOfStudents);\n\t}",
"boolean containsPowertypeRange(Generalization powertypeRange);",
"public Set<QuantDiseaseGroupsComparison> getSelectedComparisonsList() {\n Set<QuantDiseaseGroupsComparison> tempProteinsList = new LinkedHashSet<>();\n if (quantSearchSelection != null && selectedComparisonsList != null) {\n for (QuantDiseaseGroupsComparison quantComp : selectedComparisonsList) {\n Map<String, QuantComparisonProtein> map = new LinkedHashMap<>();\n\n for (String protien : quantSearchSelection.getSelectedProteinsList()) {\n String key = \"\";\n if (quantComp.getQuantComparisonProteinMap().containsKey(\"0_\" + protien)) {\n key = \"0_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"1_\" + protien)) {\n key = \"1_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"2_\" + protien)) {\n key = \"2_\" + protien;\n\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"3_\" + protien)) {\n\n key = \"3_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"4_\" + protien)) // if (quantComp.getQuantComparisonProteinMap().containsValue(protien.getProtKey())) {\n {\n key = \"4_\" + protien;\n\n }\n\n if (quantComp.getQuantComparisonProteinMap().containsKey(key)) {\n map.put(key, quantComp.getQuantComparisonProteinMap().get(key));\n }\n\n }\n QuantDiseaseGroupsComparison updatedQuantComp = quantComp.cloning();\n updatedQuantComp.setQuantComparisonProteinMap(map);\n tempProteinsList.add(updatedQuantComp);\n }\n return tempProteinsList;\n\n }\n\n return selectedComparisonsList;\n }",
"private int[] matches(int[] partition, int feature, boolean value) {\r\n\t\t// to allocate the array we first check how many samples we're talking\r\n\t\t// about\r\n\t\tint nMatches = 0;\r\n\t\tfor (int i = 0; i < partition.length; i++) {\r\n\t\t\tif (input[partition[i]][feature] == value)\r\n\t\t\t\tnMatches++;\r\n\t\t}\r\n\t\tint[] subset = new int[nMatches]; // allocate the array holding the\r\n\t\t\t\t\t\t\t\t\t\t\t// matching sample indices\r\n\t\tint cnt = 0;\r\n\t\t// collect the matching samples\r\n\t\tfor (int i = 0; i < partition.length; i++) {\r\n\t\t\tif (input[partition[i]][feature] == value)\r\n\t\t\t\tsubset[cnt++] = partition[i];\r\n\t\t}\r\n\t\treturn subset;\r\n\t}",
"private boolean testTargetSemanticGroup( Edge edge, Set<String> sourceAliases, List<String> types ) {\n\t\t\n\t\tNode subject = edge.getSubject();\n\t\tString subjectId = translator.makeId( subject );\n\n\t\tNode object = edge.getObject();\n\t\tString objectId = translator.makeId( object );\n\t\t\n\t\tif( sourceAliases.contains(subjectId) ) \n\t\t\treturn types.contains(translator.inferConceptCategory(object));\n\t\t\t\n\t\t else if( sourceAliases.contains(objectId) )\n\t\t\treturn types.contains(translator.inferConceptCategory(subject));\n \n\t\t// Strange situation... one of the two id's should match a source alias!\n\t\t_logger.warn(\"ControllerImpl.testTargetSemanticGroup(): strange!... neither subject id '\"+subjectId+\n\t\t\t\t \"' nor object id '\"+objectId+\"' found in source alias list '\"+String.join(\",\", sourceAliases)+\"'?\");\n\t\treturn false;\n\n\t}",
"public boolean isPerson (String lemma){\n \n if (lemma.equals(\"man\")){\n return true;\n }\n\n if (this.gNet != null){\n\n List < Synset > synsets ;\n synsets = this.gNet.getSynsets(lemma);\n /*\n * check if synsnet is empty, if not empty, just continue with the block below\n * else, run some morphological analysis, and retry synset.\n * \n * This only covers the person filter. Also need to cover what is and is not a subject expression\n */\n for (Synset synset: synsets){\n List<List<Synset>> hypernyms = synset.getTransRelatedSynsets(ConRel.has_hypernym);\n for (List<Synset> hypernym: hypernyms){\n for (Synset s: hypernym){\n // ID for human / person, not living being in general and ID for group\n if (s.getId() == 34063 || s.getId() == 22562){\n return true;\n }\n }\n\n }\n }\n return false;\n }\n return false;\n }",
"default Stream<Triple> witnesses(Triple... elements) {\n Set<Triple> toBeMatched = new HashSet<>(Arrays.asList(elements));\n return apex().carrier().elements().filter(witnes -> {\n return toBeMatched.stream().allMatch(target -> {\n return projections().anyMatch(morphism -> morphism.apply(witnes).map(target::equals).orElse(false));\n });\n });\n }",
"protected boolean hasGene(int innovation) {\n\t\treturn genes.containsKey(innovation);\n\t}",
"public boolean pertanyAlGrup( Casella casella )\n\t{\n\t\treturn grup.contains( casella );\n\t}",
"boolean hasSharedSet();",
"public boolean hasGeneIds() {\n return fieldSetFlags()[4];\n }",
"boolean hasMatchedElements();",
"public Boolean haveGolden(int[] numbers, int goldenNo){\n\n Set<Integer> setOfNumbers = new HashSet<Integer>();\n\n for (int number:numbers) {\n if (setOfNumbers.contains(goldenNo-number)) //we are assuming goldenNo is > all no\n return true;\n setOfNumbers.add(number);\n }\n return false;\n }",
"Set<String> getProteinAccessions(String experimentAccession);",
"public static void extractGroups(CoNLLPart part) {\n\t\tHashMap<String, Integer> chainMap = EMUtil.formChainMap(part\n\t\t\t\t.getChains());\n\t\tArrayList<Mention> allMentions = EMUtil.extractMention(part);\n\t\tCollections.sort(allMentions);\n\t\tEMUtil.assignNE(allMentions, part.getNameEntities());\n\t\tfor (int i = 0; i < allMentions.size(); i++) {\n\t\t\tMention m = allMentions.get(i);\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject && m.start == m.end\n\t\t\t\t\t&& part.getWord(m.end).posTag.equals(\"PN\")) {\n\t\t\t}\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject\n\t\t\t\t\t&& EMUtil.pronouns.contains(m.extent)\n\t\t\t// && chainMap.containsKey(m.toName())\n\t\t\t) {\n\t\t\t\tArrayList<Mention> ants = new ArrayList<Mention>();\n\t\t\t\tint corefCount = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--) {\n\t\t\t\t\tMention ant = allMentions.get(j);\n\t\t\t\t\tants.add(ant);\n\t\t\t\t\tant.MI = Context.calMI(ant, m);\n\t\t\t\t\tboolean coref = isCoref(chainMap, m, ant);\n\t\t\t\t\tif (coref) {\n\t\t\t\t\t\tcorefCount++;\n\t\t\t\t\t}\n\t\t\t\t\tif (m.s.getSentenceIdx() - ant.s.getSentenceIdx() > 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tCollections.sort(ants);\n\t\t\t\tCollections.reverse(ants);\n\n\t\t\t\tif (corefCount == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (Mention ant : ants) {\n\t\t\t\t\tant.isBest = false;\n\t\t\t\t}\n\n\t\t\t\tApplyEM.findBest(m, ants);\n\n\t\t\t\tif (ants.size() > maxAnts) {\n\t\t\t\t\tmaxAnts = ants.size();\n\t\t\t\t}\n\t\t\t\tString origPro = m.extent;\n\n\t\t\t\tString ext = m.extent;\n\t\t\t\tif (map.containsKey(ext)) {\n\t\t\t\t\tmap.put(ext, map.get(ext) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(ext, 1);\n\t\t\t\t}\n\t\t\t\tStringBuilder ysb = new StringBuilder();\n\t\t\t\tfor (int h = 0; h < EMUtil.pronounList.size(); h++) {\n\t\t\t\t\tm.extent = EMUtil.pronounList.get(h);\n\t\t\t\t\tgenerateInstance(part, chainMap, m, ants,\n\t\t\t\t\t\t\tcorefCount, origPro, h, ysb);\n\t\t\t\t}\n\t\t\t\tfor (int k = ants.size() * EMUtil.pronounList.size(); k < 840; k++) {\n\t\t\t\t\tysb.append(\"@ 0 NOCLASS 1 # \");\n\t\t\t\t}\n\t\t\t\tyasmet10.add(ysb.toString());\n\t\t\t\tm.extent = origPro;\n\t\t\t}\n\t\t}\n\t}",
"private boolean containsAll(Graph g, Set<Node> nodes, NodePair pair) {\n List<String> nodeNames = g.getNodeNames();\n if (!nodeNames.contains(pair.getFirst().getName()) || !nodeNames.contains(pair.getSecond().getName())) {\n return false;\n }\n for (Node node : nodes) {\n if (!nodeNames.contains(node.getName())) {\n return false;\n }\n }\n return true;\n }",
"private void syncProfileSelection() {\r\n\t\tfor (int i = 0; i < selectedProfiles.size(); i++) {\r\n\t\t\tselectedProfiles.set(i, tableSelectionPD.isProfileSelected(i));\r\n\t\t}\r\n\t}",
"@Override\n public boolean hasNext() {\n return !pq.isEmpty() && pq.arrProfiles[iCursor++] != null;\n }",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"public boolean verifyProfile(String pProfile) {\r\n return pProfile.contains(profile.toString());\r\n\t}",
"@Test\n public void getGraph2() throws Exception {\n final BlankNodeOrIRI graph2Name = (BlankNodeOrIRI) dataset.stream(Optional.empty(), bob, isPrimaryTopicOf, null)\n .map(Quad::getObject).findAny().get();\n\n try (final Graph g2 = dataset.getGraph(graph2Name).get()) {\n assertEquals(4, g2.size());\n final Triple bobNameTriple = bobNameQuad.asTriple();\n assertTrue(g2.contains(bobNameTriple));\n assertTrue(g2.contains(bob, member, bnode1));\n assertTrue(g2.contains(bob, member, bnode2));\n assertFalse(g2.contains(bnode1, name, secretClubName));\n assertTrue(g2.contains(bnode2, name, companyName));\n }\n }",
"@Test\r\n public void testGetKnownDiseaseAssociationsForMgiGeneId() {\r\n String mgiGeneId = \"MGI:95523\";\r\n\r\n Map<Disease, Set<DiseaseAssociation>> result = instance.getKnownDiseaseAssociationsForMgiGeneId(mgiGeneId);\r\n\r\n for (Disease disease : result.keySet()) {\r\n// System.out.println(disease);\r\n Set<DiseaseAssociation> diseaseAssociations = result.get(disease);\r\n if (disease.getDiseaseId().equals(\"OMIM:101200\")) {\r\n assertEquals(2, diseaseAssociations.size());\r\n }\r\n for (DiseaseAssociation diseaseAssociation : diseaseAssociations) {\r\n// System.out.println(String.format(\" %s\", diseaseAssociation));\r\n }\r\n }\r\n\r\n assertTrue(result.keySet().size() >= 11);\r\n \r\n \r\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\tState State = (State) obj;\n\t\tSquare aux = null;\n\t\tboolean isequal = true;\n\t\tif (getTractor().getColumn()!=State.getTractor().getColumn() || getTractor().getRow()!=State.getTractor().getRow())\n\t\t\tisequal = false;\n\t\telse {\n\t\t\tfor (int i = 0;i<getRows() && isequal; i++) {\n\t\t\t\tfor (int j = 0;j < getColumns() && isequal; j++) {\n\t\t\t\t\taux = new Square (i,j);\n\t\t\t\t\tif (cells[i][j].getSand() != State.getSquare(aux).getSand()) \n\t\t\t\t\t\tisequal = false; \n\t\t\t\t}\n\t\t\t} \n\t\t} \n\t\treturn isequal;\n\t}",
"public boolean equalGenotypes(AbstractEAIndividual individual) {\n if (individual instanceof GAIndividualBinaryData) {\n GAIndividualBinaryData indy = (GAIndividualBinaryData) individual;\n if (this.m_GenotypeLength != indy.m_GenotypeLength) return false;\n if ((this.m_Genotype == null) || (indy.m_Genotype == null)) return false; \n if (!this.m_Genotype.equals(indy.m_Genotype)) return false;\n return true;\n } else {\n return false;\n }\n }",
"public boolean contient(Couple assoc) {\n for (int i = 0; i < nbAssoc; i++)\n if (associations[i].equals(assoc))\n return true;\n return false;\n }",
"private boolean hasNomeRepetido(String[] listaNomes) {\n for (int i = 0; i < listaNomes.length; i++) {\n for (int j = 0; j < listaNomes.length; j++) {\n if ((i != j) && (listaNomes[i].equals(listaNomes[j]))) {\n return true;\n }\n }\n }\n\n return false;\n }",
"@Test\n\tvoid attributeGroupDisjunction2() {\n\t\tassertEquals(\n\t\t\t\"Match procedure with left OR right foot (grouped)\",\n\t\t\tSets.newHashSet(AMPUTATION_FOOT_LEFT, AMPUTATION_FOOT_RIGHT, AMPUTATION_FOOT_BILATERAL),\n\t\t\tstrings(selectConceptIds(\"< 71388002 |Procedure|: { 363704007 |Procedure site| = 22335008 |Left Foot| } OR { 363704007 |Procedure site| = 7769000 |Right Foot| }\")));\n\n\t}",
"public boolean verifyProfile(Profile p) {\n // If the two profiles are exactly the same, they will obviously match each other\n if (this.equals(p)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(this.getImei() + \": Equal Profile.\");\n System.out.println(\"Equal profile.\");\n changedInformation = \"Nothing has changed.\";\n return true;\n }\n\n // Check static attributes, if something is different the profile is invalid\n if (!imei.equals(p.getImei()) | !macAddress.equals(p.getMacAddress()) | !screenResolution.equals(p.getScreenResolution())) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(this.getImei() + \": Static attribute changed.\");\n System.out.println(this.getImei() + \": Static attribute changed.\");\n changedInformation = \"Static Attributes changed.\";\n return false;\n }\n\n String logString = this.getImei() + \": \";\n // Comparing the number of changed attributes\n int changed = 0;\n\n if (!softwareVersion.equals(p.getSoftwareVersion())) {\n String message = \" Software Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperator.equals(p.getSimOperator())) {\n String message = \" SIM Operator changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simOperatorName.equals(p.getSimOperatorName())) {\n String message = \" SIM Operator Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!simCountryIso.equals(p.getSimCountryIso())) {\n String message = \" SIM Country Iso changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!simSerialNumber.equals(p.getSimSerialNumber())) {\n String message = \" SIM Serial Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!imsiNumber.equals(p.getImsiNumber())) {\n String message = \" IMSI Number changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if (!ipAddress.equals(p.getIpAddress())) {\n String message = \" IP Address changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!osVersion.equals(p.getOsVersion())) {\n String message = \" OS Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!sdkVersion.equals(p.getSdkVersion())) {\n String message = \" SDK Version changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!deviceName.equals(p.getDeviceName())) {\n String message = \" Device Name changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!keyboardLanguage.equals(p.getKeyboardLanguage())) {\n String message = \" Keyboard Language changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!networksSSID.equals(p.getNetworksSSID())) {\n String message = \" Networks changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!googleAccounts.equals(p.getGoogleAccounts())) {\n String message = \" Google Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!memorizedAccounts.equals(p.getMemorizedAccounts())) {\n String message = \" Memorized Accounts changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!inputMethods.equals(p.getInputMethods())) {\n String message = \" Input Methods changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n if(!installedApplications.equals(p.getInstalledApplications())) {\n String message = \" Installed Applications changed. \";\n logString = logString + message;\n changedInformation = changedInformation + message + \"\\n\";\n changed++;\n }\n\n // Dividing the number of changed attributes by the number of checked attributes\n double division = changed/ (double) 16;\n // If the division is greater than the threshold, the two profiles mismatch as they are not similar enough\n if (division >= (1 - ServerUtils.THRESHOLD)) {\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logError(logString);\n System.out.println(\"ERROR: \" + logString);\n return false;\n }\n\n // Checks every list with the threshold\n if (ServerUtils.SERVER_DEPLOY) LogManager.getInstance().logInfo(logString);\n System.out.println(\"INFO: \" + logString);\n return compareLists(networksSSID, p.getNetworksSSID(), ServerUtils.THRESHOLD, \"NetworksSSID\", this.imei) &&\n compareLists(googleAccounts, p.getGoogleAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"GoogleAccounts\", this.imei) &&\n compareLists(memorizedAccounts, p.getMemorizedAccounts(), ServerUtils.ACCOUNTS_THRESHOLD, \"Accounts\", this.imei) &&\n compareLists(inputMethods, p.getInputMethods(), ServerUtils.THRESHOLD, \"InputMethods\", this.imei) &&\n compareLists(installedApplications, p.getInstalledApplications(), ServerUtils.THRESHOLD, \"Applications\", this.imei);\n }",
"private boolean areTwoMatchingRelators(final ExpressionJpa expression) {\n /*\n * since we are only dealing Person and CorporateBody\n * an assertion is that we are only dealing with 700 and 710 fields\n * and can reuse our counts\n */\n\n return (countMatchingPerson(expression)\n + countMatchingCorpBody(expression))\n >= 2;\n }",
"public boolean isSetGenbank()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(GENBANK$8) != 0;\r\n }\r\n }",
"@Override\n\tpublic boolean isIsIndividualMatch() {\n\t\treturn _esfTournament.isIsIndividualMatch();\n\t}",
"Collection<? extends Subdomain_group> getIsVertexOf();",
"private boolean isTargetGroupInUse(int targetGroupID, Set<String> targetExpressions) {\n\t\tfor(String targetExpression : targetExpressions) {\n\t\t\tSet<Integer> ids = this.targetService.getTargetIdsFromExpressionString(targetExpression);\n\t\t\t\n\t\t\tif(ids.contains(targetGroupID)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"private List<String> findSynonyms(String gene,String scope){\n\t\t\n\t\tList<String> li = new ArrayList<String> ();\n\t\t\n\t\tif (this.termSet.contains(gene)){\n\t\t\tfor (String str:this.synonymDictionary.get(gene).get(scope)){\n\t\t\t\tli.add(str);\n\t\t\t};\n\t\t}\n\t\treturn li;\n\t\n\t}",
"public int findGnetGroup() {\r\n int cr, num = 0;\r\n //TODO\r\n // if (Controls.getInstance().getGnet() == null) {\r\n // return 0;\r\n // }\r\n // cr = Controls.getInstance().getGnet().getTargetVariable();\r\n //for (int i = 0; i < models.size(); i++) {\r\n // if (getModel(i) != null) {\r\n // if (getModel(i).getTargetVariable() == cr) {\r\n // num++;\r\n // }\r\n // }\r\n //}\r\n return num;\r\n }",
"public boolean isGoodMatch(Session x, Set<Session> s) {\n for(Session y:s) {\n Set<String> hours=sessionHours(y);\n for(String id: sessionHours(x))\n if(hours.contains(id)) return false;\n }\n return true;\n }",
"private boolean checkProfileNameUniqueness(boolean userDialog) {\r\n\t\tboolean duplicateNameOccours = false;\r\n\t\t/**\r\n\t\t * Over the new imported profiles\r\n\t\t */\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tCurve p = parsedProfiles.get(i);\r\n\t\t\t/**\r\n\t\t\t * Handle the case that the profile name is not unique\r\n\t\t\t */\r\n\t\t\tif (!controller.isProfileNameGlobalUnique(p.getName())\r\n\t\t\t\t\t&& selectedProfiles.get(i)) {\r\n\t\t\t\t/**\r\n\t\t\t\t * Indicate duplicate profile names\r\n\t\t\t\t */\r\n\t\t\t\tduplicateNameOccours = true;\r\n\t\t\t\t/**\r\n\t\t\t\t * Provide a user interface to change the profile name\r\n\t\t\t\t */\r\n\t\t\t\tif (userDialog) {\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * In the other case ask the user for a different name\r\n\t\t\t\t\t */\r\n\t\t\t\t\tString dialogTitle = \"Duplicate profile name\";\r\n\t\t\t\t\tString dialogMsg = \"The profile name \\\"\" + p.getName()\r\n\t\t\t\t\t\t\t+ \"\\\" already exists globally.\\n\"\r\n\t\t\t\t\t\t\t+ \"Please enter a globally unique\"\r\n\t\t\t\t\t\t\t+ \" profile name.\";\r\n\t\t\t\t\tString dialogRet = JOptionPane.showInputDialog(null,\r\n\t\t\t\t\t\t\tdialogMsg, dialogTitle, JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t/**\r\n\t\t\t\t\t * Only store the new name if not empty\r\n\t\t\t\t\t */\r\n\t\t\t\t\tif (dialogRet != null) {\r\n\t\t\t\t\t\tif (!dialogRet.isEmpty()) {\r\n\t\t\t\t\t\t\tp.setName(dialogRet);\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\r\n\t\t/**\r\n\t\t * Check also if there exists local uniqueness if the comparison against\r\n\t\t * the global names found no error.\r\n\t\t */\r\n\t\tif (duplicateNameOccours == false) {\r\n\t\t\tduplicateNameOccours = checkProfileNameUniquessLocal();\r\n\t\t}\r\n\r\n\t\treturn duplicateNameOccours;\r\n\t}",
"private boolean makeSureSampleIsNotConfusedWithSampleGroup(\n Class<? extends Submittable> submittableClass, Class<? extends StoredSubmittable> repositoryModelClass) {\n\n if (submittableClass != Sample.class || repositoryModelClass == uk.ac.ebi.subs.repository.model.Sample.class) {\n return true;\n }\n\n return false;\n }",
"public void testSimpleGene()\n {\n String dna = \"GTACGTAGATCGGCTATCTAGATAA\";\n System.out.println(\"Without ATG, with TAA\");\n System.out.println(findSimpleGene(dna, \"ATG\", \"TAA\"));\n\n // With ATG, without TAA\n dna = \"GTACGTAGATGGGCTATCTAGATGA\";\n System.out.println(\"With ATG, without TAA\");\n System.out.println(findSimpleGene(dna, \"ATG\", \"TAA\"));\n\n // Without ATG, without TAA\n dna = \"GTACGTAGATCGGCTATCTAGATGA\";\n System.out.println(\"Without ATG, without TAA\");\n System.out.println(findSimpleGene(dna, \"ATG\", \"TAA\"));\n\n // With ATG, with TAA, multiple of 3\n dna = \"gtacgtagatgggctagatctgataagt\";\n System.out.println(\"With ATG, with TAA, multiple of 3\");\n System.out.println(findSimpleGene(dna, \"ATG\", \"TAA\"));\n\n // With ATG, with TAA, not multiple of 3\n dna = \"GTACGTAGATGGGCTATCTAGATAAGT\";\n System.out.println(\"With ATG, with TAA, not multiple of 3\");\n System.out.println(findSimpleGene(dna, \"ATG\", \"TAA\"));\n }",
"@Test\r\n public void testGetDiseasesByMgiGeneId() {\r\n String mgiGeneId = \"MGI:95523\";\r\n\r\n Set<Disease> result = instance.getDiseasesByMgiGeneId(mgiGeneId);\r\n// System.out.println(\"Human ortholog diseases for mouse gene \" + mgiGeneId);\r\n// for (Disease disease : result) {\r\n// System.out.println(disease.getDiseaseId() + \" - \" + disease.getTerm());\r\n// }\r\n assertTrue(result.size() >= 14);\r\n\r\n }",
"private boolean getSimilarity(\n String primaryProteinAccession,\n String secondaryProteinAccession,\n ProteinDetailsProvider proteinDetailsProvider\n ) {\n\n String geneNamePrimaryProtein = proteinDetailsProvider.getGeneName(primaryProteinAccession);\n String geneNameSecondaryProtein = proteinDetailsProvider.getGeneName(secondaryProteinAccession);\n\n boolean sameGene = false;\n\n // compare the gene names\n if (geneNamePrimaryProtein != null && geneNameSecondaryProtein != null) {\n sameGene = geneNamePrimaryProtein.equalsIgnoreCase(geneNameSecondaryProtein);\n }\n\n if (sameGene) {\n\n return true;\n\n } else {\n\n // compare gene names, similar gene names often means related proteins, like CPNE3 and CPNE2\n if (geneNamePrimaryProtein != null && geneNameSecondaryProtein != null) {\n\n // one gene name is a substring of the other, for example: EEF1A1 and EEF1A1P5\n if (geneNamePrimaryProtein.contains(geneNameSecondaryProtein)\n || geneNameSecondaryProtein.contains(geneNamePrimaryProtein)) {\n return true;\n }\n\n // equal but for the last character, for example: CPNE3 and CPNE2\n if ((geneNameSecondaryProtein.length() > 2 && geneNamePrimaryProtein.contains(geneNameSecondaryProtein.substring(0, geneNameSecondaryProtein.length() - 2)))\n || (geneNamePrimaryProtein.length() > 2 && geneNameSecondaryProtein.contains(geneNamePrimaryProtein.substring(0, geneNamePrimaryProtein.length() - 2)))) {\n return true;\n }\n\n // equal but for the two last characters, for example: CPNE11 and CPNE12\n if ((geneNameSecondaryProtein.length() > 3 && geneNamePrimaryProtein.contains(geneNameSecondaryProtein.substring(0, geneNameSecondaryProtein.length() - 3)))\n || (geneNamePrimaryProtein.length() > 3 && geneNameSecondaryProtein.contains(geneNamePrimaryProtein.substring(0, geneNamePrimaryProtein.length() - 3)))) {\n return true;\n }\n\n // @TODO: support more complex gene families?\n }\n\n // compare the protein descriptions, less secure than gene names\n HashSet<String> primaryDescription = parseDescription(\n proteinDetailsProvider.getSimpleDescription(primaryProteinAccession));\n HashSet<String> secondaryDescription = parseDescription(\n proteinDetailsProvider.getSimpleDescription(secondaryProteinAccession));\n\n if (primaryDescription.size() > secondaryDescription.size()) {\n\n int nMatch = 0;\n\n for (String secondaryDescription1 : secondaryDescription) {\n\n if (primaryDescription.contains(secondaryDescription1)) {\n\n nMatch++;\n\n }\n }\n\n return nMatch >= secondaryDescription.size() / 2;\n\n } else {\n\n int nMatch = 0;\n\n for (String primaryDescription1 : primaryDescription) {\n\n if (secondaryDescription.contains(primaryDescription1)) {\n\n nMatch++;\n\n }\n }\n\n return nMatch >= primaryDescription.size() / 2;\n\n }\n }\n }",
"@Test\n public void testSameEPPNs() throws Exception {\n // Get a set of keys.\n ArrayList<UserMultiID> umks = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n umks.add(createUMK());\n }\n User user = newUser();\n User mostRecentUser = user;\n String idp = user.getIdP();\n long oneYear = 31557600000L; // in ms.\n long currentTime = System.currentTimeMillis();\n ArrayList<User> newUsers = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n newUsers.add(user);\n\n // all have the same EPPN, but different eptids\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn(), umks.get(i).getEptid());\n Date date = new Date(currentTime - (i + 1) * oneYear); // have these spaced one year apart.\n user.setCreationTS(date);\n user.setUserMultiKey(newUmk);\n getUserStore().update(user, true);\n user = newUser();\n user.setIdP(idp);\n }\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn());\n\n Collection<User> users = getUserStore().get(newUmk, idp);\n\n assert users.size() == count : \"Incorrect number of users found. Expected \" + count + \" and got \" + users.size();\n XMLMap userMap = getDBSClient().getUser(newUmk, idp);\n checkUserAgainstMap(userMap, mostRecentUser);\n }",
"private boolean checkProfileNameUniquessLocal() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tfor (int j = i + 1; j < parsedProfiles.size(); j++) {\r\n\t\t\t\tif (parsedProfiles.get(i).getName()\r\n\t\t\t\t\t\t.compareTo(parsedProfiles.get(j).getName()) == 0) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private int countMatchingPerson(final ExpressionJpa expression) {\n\n int matchCount = 0;\n\n for (MarcDataField field700 : this.marcRecord.getDataFields(\"700\")) {\n for (String relatorSubfield : field700.getValueList('4')) {\n if (\"prf\".equals(relatorSubfield)\n || \"cnd\".equals(relatorSubfield)) {\n final String persAuthIdent =\n PersonMapper.getAuthIdent(field700);\n // now have a personIdent from the MarcRecord\n // is there a matching persisted personIdent\n // under the expression.realizedBy relationship\n for (ExpressionToResponsibleParty realizedBy :\n expression.getHasRealizers()) {\n // this should be a PersonJpa, but ...\n // TODO better way to screen ResponsiblePartyJpa subclasses?\n try {\n final PersonJpa responPers =\n (PersonJpa) realizedBy.\n getTargetResponsibleParty();\n if (persAuthIdent.equals(responPers.getAuthIdent())) {\n matchCount++;\n }\n } catch (ClassCastException notPerson) {\n // not a PersonJpa\n }\n }\n }\n }\n }\n\n return matchCount;\n }",
"public void testDifferentDotProducts() {\n List<ISpectrum> spectra = ClusteringTestUtilities.readISpectraFromResource();\n\n ISpectrum[] spectrums = (ISpectrum[]) spectra.toArray();\n\n int total = 0;\n int different = 0;\n ISimilarityChecker checker = new FrankEtAlDotProduct(0.5F, 15, true);\n ISimilarityChecker currentChecker = new FrankEtAlDotProductJohannes();\n\n Set<String> interestingIds = new HashSet<>();\n\n\n for (int i = 0; i < spectrums.length; i++) {\n ISpectrum psm1 = spectrums[i];\n for (int j = i + 1; j < spectrums.length; j++) {\n ISpectrum psm2 = spectrums[j];\n double dotOrg = checker.assessSimilarity(psm1, psm2);\n double dotNew = currentChecker.assessSimilarity(psm1, psm2);\n\n if (Math.abs(dotOrg - dotNew) > 0.00001) {\n different++;\n\n StringBuilder usedPeaksTester = new StringBuilder();\n\n // these are the really interesting cases\n dotOrg = checker.assessSimilarity(psm1, psm2);\n\n double noClosestPeak = dotNew;\n dotNew = currentChecker.assessSimilarity(psm1, psm2);\n String id2 = psm2.getId();\n String id1 = psm1.getId();\n interestingIds.add(id1);\n interestingIds.add(id2);\n\n // System.out.println(usedPeaksTester.toString());\n // System.out.printf(id2 + \":\" + id1 + \" \" + \"Old: %8.3f Newx: %8.3f New: %8.3f\\tDiff: %8.3f\\n\", dotOrg, noClosestPeak, dotNew, dotOrg - dotNew);\n }\n total++;\n\n }\n\n }\n\n List<String> sorted = new ArrayList<>(interestingIds);\n Collections.sort(sorted);\n // System.out.println(\"Interesting Ids\");\n for (String s : sorted) {\n // System.out.println(s);\n }\n\n\n TestCase.assertEquals(0, different);\n }",
"private boolean allMUsSet() {\n\t\tVector meaningUnits = Model.getIllocutionUnitRoots().getMeaningUnits();\n\t\tfor (int i = 0; i < meaningUnits.size(); i++) {\n\t\t\tMeaningUnit mu = (MeaningUnit) meaningUnits.get(i);\n\t\t\tVector sememeGroups = mu.getSememeGroups();\n\t\t\tif (sememeGroups.isEmpty()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public Set<Sportive> filterByFirstName(String st){\n Iterable<Sportive> materials = repo.findAll();\n return StreamSupport.stream(materials.spliterator(), false).filter(sportive -> sportive.getFirstName().contains(st)).collect(Collectors.toSet());\n }",
"public void matchesDemo() \n {\n Map<String, Set<String>> clientMap = new HashMap<>();\n Set<String> interests = new HashSet<>();\n\n interests.add(\"Food\");\n interests.add(\"Wine\");\n interests.add(\"Tandems\");\n clientMap.put(\"Hal\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Walking\");\n interests.add(\"Welding\");\n clientMap.put(\"Gemma\", interests);\n\t \n interests = new HashSet<>();\n interests.add(\"Food\");\n interests.add(\"Cinema\");\n interests.add(\"Wine\");\n clientMap.put(\"Caroline\", interests);\n\n Set<String> halsInterests = clientMap.get(\"Hal\");\n String outputString;\n Set<String> eachClientInterests;\n Set<String> intersection;\n\n for (String eachClient : clientMap.keySet()) \n {\n eachClientInterests = clientMap.get(eachClient);\n intersection = new HashSet<>(halsInterests);\n intersection.retainAll(eachClientInterests);\n outputString = \"Hal and \" + eachClient \n + \" have common interests: \"\n + intersection;\n System.out.println(outputString) ;\n }\n }",
"@Test\n public void ORSearch_GeneralPopulationGenerally() throws Exception {\n\n final Set<String> searchResults = newsLineSearch.search(TEST_FILE, \"general population generally\",\n SearchType.OR);\n\n assertThat(searchResults).hasSize(2).contains(allLines.get(6), allLines.get(8));\n }",
"@Test\r\n public void testGetPredictedDiseaseAssociationsForMgiGeneId() {\r\n String mgiGeneId = \"MGI:95523\";\r\n\r\n Map<Disease, Set<DiseaseAssociation>> result = instance.getPredictedDiseaseAssociationsForMgiGeneId(mgiGeneId);\r\n \r\n// for (Disease disease : result.keySet()) {\r\n// System.out.println(disease);\r\n// for (DiseaseAssociation diseaseAssociation : result.get(disease)) {\r\n// System.out.println(String.format(\" %s\", diseaseAssociation));\r\n// }\r\n// }\r\n assertTrue(result.keySet().size() > 290);\r\n }",
"boolean hasGcj02();",
"@DataProvider(name = \"toyIntegratedVariants\")\n public Object[][] getAnnotateStructuralVariantTestData() {\n return new Object[][]{\n { createVariantContext(\"chr1\", 10, 50, null, null, null,\n \"<CNV>\", 40, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 50, 450, null, null, null,\n \"<DEL>\", 400, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.LOF, GATKSVVCFConstants.NONCODING_BREAKPOINT,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", \"DNase\", false)) },\n { createVariantContext(\"chr1\", 1100, 1700, null, null, null,\n \"<INV>\", 600, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_SPAN, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 1300, 1800, null, null, null,\n \"<INS:LINE1>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_BREAKPOINT, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 2000, 2200, null, null, null,\n \"<DUP>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.DUP_PARTIAL,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", false)) },\n { createVariantContext(\"chr1\", 3100, 3300, null, null, null,\n \"<DUP>\", 200, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", true)) },\n // check annotate promoter for all segments in multi-segment SV\n { createVariantContext(\"chr1\", 30, 30, \"chr1\", 3030, null,\n \"<BND>\", null, \"-+\", null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(Arrays.asList(\"EMMA1\", \"EMMA2\"), true)) }\n };\n }",
"@Override\n\tpublic boolean getIsIndividualMatch() {\n\t\treturn _esfTournament.getIsIndividualMatch();\n\t}",
"public abstract List<String> getRequiredProfiles();",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profesori)) {\r\n return false;\r\n }\r\n Profesori other = (Profesori) object;\r\n if ((this.profesorID == null && other.profesorID != null) || (this.profesorID != null && !this.profesorID.equals(other.profesorID))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean getDoCommonSubexpressionElimination();",
"private List<Individual<T>> selectIndividuals(Deme<T> deme) {\n return IntStream.range(0, tournamentSize).mapToObj(i -> selRandomOp.select(deme.getIndividuals()))\n .collect(Collectors.toList());\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Profesor)) {\r\n return false;\r\n }\r\n Profesor other = (Profesor) object;\r\n if ((this.perIdentificacion == null && other.perIdentificacion != null) || (this.perIdentificacion != null && !this.perIdentificacion.equals(other.perIdentificacion))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n public void testSqlExistsMultiValuedWithForeignRestriction() {\n Query<Garage> garagesQuery = existsIn(cars,\n Garage.BRANDS_SERVICED,\n Car.NAME,\n equal(Car.FEATURES, \"convertible\")\n );\n\n Set<Garage> results = asSet(garages.retrieve(garagesQuery));\n\n assertEquals(\"should have 2 results\", 2, results.size());\n assertTrue(\"results should contain garage2\", results.contains(garage2));\n assertTrue(\"results should contain garage5\", results.contains(garage5));\n }",
"public Model[] getGnetGroup() {\r\n int cr, num = 0;\r\n Model[] group = new Model[models.size()];\r\n // if (Controls.getInstance().getGnet() == null) {\r\n return null;\r\n // }\r\n // cr = Controls.getInstance().getGnet().getTargetVariable();\r\n// for (int i = 0; i < models.size(); i++) {\r\n// if (getModel(i) != null) {\r\n// if (getModel(i).getTargetVariable() == cr) {\r\n// group[num++] = getModel(i);\r\n// }\r\n// }\r\n// }\r\n //return group;\r\n }",
"public String[] getProfiles();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Profiles)) {\n return false;\n }\n Profiles other = (Profiles) object;\n if ((this.userId == null && other.userId != null) || (this.userId != null && !this.userId.equals(other.userId))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Genre)) {\r\n return false;\r\n }\r\n Genre other = (Genre) object;\r\n if ((this.genreCode == null && other.genreCode != null) || (this.genreCode != null && !this.genreCode.equals(other.genreCode))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"boolean hasS2();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Grad)) {\n return false;\n }\n Grad other = (Grad) object;\n if ((this.idGrada == null && other.idGrada != null) || (this.idGrada != null && !this.idGrada.equals(other.idGrada))) {\n return false;\n }\n return true;\n }",
"public static void main(String[] args) {\n\n ArrayList<String> students = new ArrayList<>();\n students.add(\"Sayeem\");\n students.add(\"Wagar\");\n students.add(\"Beslan\");\n students.add(\"Dawut\");\n students.add(\"Ramazan\");\n students.add(\"Mehary\");\n\n // Verify that the names: Ulku, Busra are contained in students list\n\n boolean r = students.containsAll(Arrays.asList(\"Ulku\", \"Busra\") );\n System.out.println(r);\n\n System.out.println(\"=======================================\");\n\n ArrayList<String> group1 = new ArrayList<>();\n\n // add all student names in your group\n group1.addAll( Arrays.asList(\"Muhtar\", \"Nadir\", \"Asiya\", \"Saim\"));\n\n // verify your mentor and one of your closest friend' names are contained in the list\n group1.containsAll( Arrays.asList(\"Mike\"));\n\n\n\n }",
"private static List<PwPair> removeDuplicateGroupIds(List<PwPair> allPairs,\n Map<String, UrlGroup> outGroupMap) {\n List<PwPair> filteredPairs = new ArrayList<>();\n Map<String, UrlGroup> groupMap = outGroupMap;\n if (groupMap == null) {\n groupMap = new HashMap<>();\n } else {\n groupMap.clear();\n }\n\n for (PwPair pwPair : allPairs) {\n PwsResult pwsResult = pwPair.getPwsResult();\n String groupId = pwsResult.getGroupId();\n if (groupId == null || groupId.equals(\"\")) {\n // Pairs without a group are always included\n filteredPairs.add(pwPair);\n } else {\n // Create the group if it doesn't exist\n UrlGroup urlGroup = groupMap.get(groupId);\n if (urlGroup == null) {\n urlGroup = new UrlGroup(groupId);\n groupMap.put(groupId, urlGroup);\n }\n urlGroup.addPair(pwPair);\n }\n }\n\n for (UrlGroup urlGroup : groupMap.values()) {\n filteredPairs.add(urlGroup.getTopPair());\n }\n\n return filteredPairs;\n }",
"private Collection<String[]> findPrefixPairMatches(String unitNameWithPrefix, boolean constrainBasedOnValidUnitNames, boolean onlyFirstMatch) {\n Collection<String[]> prefixMatches = new ArrayList<>();\n\n String[] prefixMatchByValue = findPrefixMatchByValue(unitNameWithPrefix, constrainBasedOnValidUnitNames);\n if(prefixMatchByValue != NO_PREFIX_MATCH_ARRAY)\n prefixMatches.add(prefixMatchByValue);\n\n prefixMatches.addAll(findPrefixMatchesByName(unitNameWithPrefix, constrainBasedOnValidUnitNames, onlyFirstMatch));\n\n for(String[] prefixMatch:prefixMatches)\n setProperlyOrderedPrefixNamePairs(prefixMatch);\n\n return prefixMatches;\n }",
"private void selectRandomUnexploredProfile(GameObserver gameObs) {\n if (eGame.getTotalNumSamples() >= eGame.getNumProfiles() ||\n gameObs.numObsLeft() <= 0) return;\n\n eGame.getRandomProfile(currentOutcome);\n while (eGame.getNumSamples(currentOutcome) > 0) {\n eGame.getRandomProfile(currentOutcome);\n }\n\n sampleAndUpdate(currentOutcome, gameObs);\n }",
"boolean hasPublicProfile();",
"boolean hasSharedCriterion();",
"public boolean stupneProOriGraf(){\n\t\tint pom = 0;\n\t\tfor(int i = 0; i < vrchP.length;i++){\n\t\t\tif(vrchP[i].stupenVstup != vrchP[i].stupenVystup)\n\t\t\t\tpom++;\n\t\t}\n\t\tif(pom != 0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}",
"@Override\r\n public final boolean equals(final Object o) {\r\n if (o == this)\r\n return true;\r\n if (o instanceof RBGPProgram) {\r\n return Arrays.equals(((RBGPProgram) o).m_rules, this.m_rules);\r\n }\r\n return false;\r\n }",
"@Override\r\n\tpublic boolean isSameGroup(EyeTrackerItem element) {\n\t\treturn this.group.items.contains(element);\r\n\t}",
"public Set<RecordPair> match(Record record) throws ApplicationException;"
] | [
"0.4832562",
"0.4792259",
"0.4736929",
"0.4735319",
"0.4717676",
"0.46938947",
"0.46886307",
"0.4676835",
"0.46344563",
"0.45839235",
"0.4505737",
"0.4494862",
"0.44446754",
"0.44419625",
"0.4438101",
"0.4403876",
"0.4403044",
"0.43661723",
"0.4358583",
"0.43533635",
"0.43522233",
"0.43421894",
"0.43150526",
"0.4303979",
"0.42687744",
"0.42448577",
"0.42296728",
"0.42136192",
"0.42135388",
"0.42045093",
"0.419724",
"0.4197174",
"0.4189391",
"0.41694137",
"0.41599253",
"0.4154236",
"0.41389197",
"0.41331172",
"0.41304392",
"0.41188765",
"0.41148832",
"0.41109794",
"0.41074875",
"0.40845856",
"0.40804642",
"0.4078594",
"0.40500382",
"0.40465868",
"0.4027193",
"0.40262425",
"0.40223533",
"0.4017437",
"0.4016888",
"0.4014578",
"0.40091455",
"0.40074727",
"0.4007167",
"0.40037838",
"0.39915946",
"0.3990005",
"0.39886945",
"0.3974635",
"0.3973861",
"0.39729923",
"0.3968574",
"0.39680392",
"0.3965708",
"0.3964999",
"0.3949506",
"0.3948047",
"0.39397123",
"0.39356723",
"0.39352703",
"0.39271823",
"0.39268714",
"0.3926209",
"0.39259192",
"0.39210743",
"0.39159626",
"0.39151418",
"0.39138237",
"0.39088422",
"0.39083222",
"0.39052826",
"0.38972983",
"0.3894919",
"0.38924074",
"0.3891861",
"0.38904497",
"0.3889305",
"0.38876435",
"0.3886196",
"0.3882961",
"0.38827384",
"0.38791153",
"0.38789073",
"0.3878731",
"0.38761762",
"0.3875751",
"0.38717082"
] | 0.48560354 | 0 |
FloatMatrix containing average gene expression profile of genes similar to ones in synexpression groups. Each row represents expression profile of a group similar to corresponding synexpression group | public FloatMatrix getSimilarGeneExpressionProfile( ) {
return averageExpressionProfile;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}",
"public Pairs[] getMeanOfGaussionsFromEM(String inputFolderPath, int numOfGaussions) throws Exception\n{\n\tdouble[][] mean = null;\n\tExpectationMaximizationAlgorithm EMA = new ExpectationMaximizationAlgorithm();\n\t//Read all arff files available in inputFolder\n\tFile[] arffFiles = EMA.readAllFiles(inputFolderPath);\n\t\n\tPairs pp[] = new Pairs[arffFiles.length]; \n\t\n\tfor(int i=0;i<arffFiles.length;i++)\n\t{\n\t\tEMA = new ExpectationMaximizationAlgorithm();\n\t\tBufferedReader datafile = EMA.readDataFile(arffFiles[i].getName().toString(),inputFolderPath);\n\t\tSystem.out.println(\"Converting..... : \"+arffFiles[i].getName().toString());\n\t\tInstances data = new Instances(datafile);\n\t\t\n\t\tEM EMObject = new EM();\n\t\tEMObject.setNumClusters(numOfGaussions);\n\t\tEMObject.buildClusterer(data);\n\t\tdouble[][][] attr = EMObject.getClusterModelsNumericAtts();\n\t\tmean = new double[data.numAttributes()][numOfGaussions];\n\t\tdouble[][] variance = new double[data.numAttributes()][numOfGaussions];\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tmean[k][j]=attr[j][k][0];\n\t\t\t}\n\t\t}\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tvariance[k][j]=attr[j][k][1];\n\t\t\t}\n\t\t}\n\t\tpp[i] = new Pairs(arffFiles[i].getName().toString(), mean,variance);\n\t\t\n\t}\n\t\n\treturn pp;\n}",
"private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += ind.getGeneValue(i);\n }\n }\n //divide by the number of individuals\n double factor = 1.0 / pop.getNumGenotypes();\n for (int i = 0; i < value.length; i++) {\n value[i] *=factor;\n }\n return value;\n }",
"private void extractSmallerUMatrix(boolean average)\n\t{\n\t\tfor(int i = 0; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < SOM[0].length; j++)\n\t\t\t{\n\t\t\t\tU_MATRIX_SHRINK[i][j] = getAverageSOMNeighbour(i,j,average);\n\t\t\t\t//System.out.print(\"[ \"+ i +\" ][ \" + j + \" ] = \" + U_MATRIX_SHRINK[i][j]+\"\\t\");\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println();\n\t\t}\n\t}",
"public FloatMatrix getSynExpressionProfiles() {\r\n\t\treturn synExpressionProfile;\r\n\t}",
"public double averageCosineSimilarity() {\n\n\t\tdouble sumCosineSimilarities = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble similarity = cosineSimilarityMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumCosineSimilarities += similarity;\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\tSystem.out.println(sumCosineSimilarities);\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumCosineSimilarities / nDistances;\n\t}",
"public static double mean(double[][] mat) { \n int counter = 0;\n double total = 0;\n for (int row = 0; row < mat.length; row++){\n for (int column = 0; column < mat[0].length; column++){\n total += mat[row][column];\n }\n }\n return total/counter;\n }",
"public double[] features( HaeaOperators<T> operators ) {\n \tdouble[][] rates = new double[operators.rates.size()][];\n \ttry{ for( int i=0; i<rates.length; i++ ) rates[i] = operators.rates(i); }catch(Exception e){}\n\t\tStatistics[] stat = Matrix.statistics(rates, false);\n\t\tdouble[] avg = new double[stat.length];\n\t\tfor( int i=0; i<avg.length; i++ ) avg[i] = stat[i].avg; \n\t\treturn avg;\n }",
"public double[] mean() {\n\t\tdouble[] mean = null;\n\t\tif(instances != null) {\n\t\t\tmean = new double[instances.get(0).length];\n\t\t\tfor(double[] instance : instances) {\n\t\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\t\tmean[d] += instance[d];\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdouble n = instances.size();\n\t\t\tfor(int d=0; d<mean.length; d++) {\n\t\t\t\tmean[d] /= n;\n\t\t\t}\n\t\t}\n\t\treturn mean;\n\t}",
"public void E11_6() {\n double[] row1 = {7.5, 3.6};\n double[] row2 = {4.2, 9.7};\n double[] row3 = {6.1, 8.0};\n double column1Sum = row1[0] + row2[0] + row3[0];\n double column2Sum = row1[1] + row2[1] + row3[1];\n System.out.println(\"Column 1 average: \" + (column1Sum/3));\n System.out.println(\"Column 2 average: \" + (column2Sum/3));\n }",
"public double averageFeaturesPerExample(){\n\t\treturn sumFeatureValues/((double)exampleCount);\n\t}",
"double getAvgTreatment();",
"private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}",
"public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"double avg(){\n\t\tdouble sum = 0.0;\n\t\tfor(int i=0;i<num.length;i++)\n\t\t\tsum+=num[i].doubleValue();\n\t\treturn sum/num.length;\n\t}",
"public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }",
"public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}",
"public double getMean(){\n\t\treturn Math.exp(location + scale * scale / 2);\n\t}",
"public DMatrixRMaj getMean() {\n\t\treturn x;\n\t}",
"private float calculateMean()\n { \n int numberEmployees = employees.size();\n float total = 0, meanGrossPay = 0;\n // Create an array of all gross pays\n float[] allGrossPay = new float[numberEmployees];\n \n // Call method to return an array of float containing all gross pays\n allGrossPay = calculateAllGrossPay();\n // Find total gross pay\n for (int i = 0; i < numberEmployees; i++)\n {\n total += allGrossPay[i];\n }\n // Find mean and return it\n if (numberEmployees > 0)\n {\n meanGrossPay = total/numberEmployees;\n \n }\n return meanGrossPay;\n }",
"public double geoMean() {\n\t\tint product = 1;\n\t\tfor (Animal a : animals) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.size());\n\t}",
"protected HashMap generateExpressionMap(){\n System.out.println(\"Processing Expression Data into Hash\");\n HashMap tempHash = new HashMap();\n GraphObjAttributes nodeAttributes = cyNetwork.getNodeAttributes();\n for (Iterator nodeIt = cyNetwork.nodesIterator();nodeIt.hasNext();) {\n double [] tempArray = new double[attrNames.length];\n Node current = (Node)nodeIt.next();\n for(int j = 0;j<attrNames.length;j++){\n\tmRNAMeasurement tempmRNA = expressionData.getMeasurement(nodeAttributes.getCanonicalName(current),attrNames[j]);\n\tif(tempmRNA == null){\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(.5);\n\t}\n\telse{\n\t double sigValue = tempmRNA.getSignificance();\n\t if (sigValue < MIN_SIG) {\n\t sigValue = MIN_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MIN_SIG); \n\t } // end of if ()\n\t if (sigValue > MAX_SIG) {\n\t sigValue = MAX_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MAX_SIG); \n\t } // end of if ()\n\t //transform the p-value into a z-value and store it in the array of z scores for this particular node\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(sigValue);\n\t}\n }\n tempHash.put(current,tempArray);\n }\n System.out.println(\"Done processing into Hash\");\n return tempHash;\n }",
"public static float[] returnMeanArray (float[] weatherArray){\n float[] meanArray = new float[12];\n for (int i = 0; i < 12; i++){\n meanArray[i] = weatherArray[i]/30;\n }\n return meanArray;\n }",
"public double mean() {\n double resultat = 0;\n for (int i = 0; i < tab.size(); i++) {\n for (int j = 0; j < tab.get(i).size(); j++) {\n resultat += Double.parseDouble(tab.get(i).get(j));\n }\n }\n resultat = (resultat / (tab.size() + tab.get(0).size() - 1));\n System.out.println(\"Mean colonne:\" + resultat);\n return resultat;\n }",
"private INDArray computeVectorAverage(List<float[]> embeddingsList)\r\n {\r\n INDArray sum = Nd4j.zeros(embeddingsList.get(0).length);\r\n\r\n for (float[] vec : embeddingsList) {\r\n INDArray nd = Nd4j.create(vec);\r\n sum = sum.add(nd);\r\n }\r\n sum = sum.div(embeddingsList.size());\r\n return sum;\r\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void average(HashMap<Column, String> data, List<Expression> exp,\n\t\t\tFunction f) {\n\t\tString val = f.getParameters().toString();\n\t\tCreateTable ct = null;\n\t\tString datatype = null;\n\t\tfor (Map.Entry<Column, String> fields : data.entrySet()) {\n\n\t\t\tif ((getSchema().containsKey(fields.getKey().getTable().toString()))) {\n\t\t\t\tct = getSchema().get(fields.getKey().getTable().toString());\n\t\t\t\tList<ColumnDefinition> l = ct.getColumnDefinitions();\n\t\t\t\tfor (int i = 0; i < l.size(); i++) {\n\t\t\t\t\tif (l.get(i)\n\t\t\t\t\t\t\t.getColumnName()\n\t\t\t\t\t\t\t.equalsIgnoreCase((fields.getKey().getColumnName()))) {\n\t\t\t\t\t\tdatatype = l.get(i).getColDataType().toString();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// String sum_value=leafval.toString();\n\t\tString tmp = f.getName() + \"_\" + val;\n\t\tif (check.contains(tmp)) {\n\t\t\t// do nothing\n\t\t} else {\n\t\t\tcheck.add(tmp);\n\t\t}\n\t\t\n\t\tsum(data,exp, f);\n\t\tcount(data,exp, f);\n\t\tLeafValue sum = null;\n\t\tLeafValue count = null;\n\t\tfor(Map.Entry<String, LeafValue> mp : output.entrySet())\n\t\t{\n\t\t\tif(mp.getKey().contains(\"SUM_\" + val))\n\t\t\t{\n\t\t\t\tsum=mp.getValue();\n\t\t\t}\n\t\t\tif(mp.getKey().contains(\"COUNT_\" + val))\n\t\t\t{\n\t\t\t\tcount=mp.getValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (datatype.equalsIgnoreCase(\"INT\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLong l1 = sum.toLong();\n\t\t\t\tLong l2 = count.toLong();\n\t\t\t\tLeafValue l = new LongValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t\t\n\t\t\t} catch (InvalidLeaf 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} else if (datatype.equalsIgnoreCase(\"DECIMAL\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDouble l1 = sum.toDouble();\n\t\t\t\tDouble l2 = count.toDouble();\n\t\t\t\tLeafValue l = new DoubleValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t} catch (InvalidLeaf e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t\t}",
"private static double meanVal(double[] arrayOfSamples){\n\t\tdouble total = 0;\n\t\t for (double i :arrayOfSamples){\n\t\t \ttotal += i;\n\t\t }\n\t return total/arrayOfSamples.length;\n\t}",
"public void makeStochastic() {\n \n double sum = 0.0;\n \n for(T row : getFirstDimension()) {\n \n // sum all values\n for(T col : getMatches(row)) {\n \n if(get(row, col)!=null) {\n sum += get(row, col);\n }\n \n }\n }\n \n \n for(T row : getFirstDimension()) {\n \n // sum all values\n for(T col : getMatches(row)) {\n \n if(get(row, col)!=null) {\n set(row, col, get(row, col)/sum);\n }\n \n }\n }\n }",
"public static DMatrixRMaj averageMatrices(List<DMatrixRMaj> matList){\n int n = matList.size(); // n matrices to average\n\n // Create resulting matrix\n DMatrixRMaj res = new DMatrixRMaj(matList.get(0).numRows, matList.get(0).numCols);\n\n // Fill matrix with all zeros\n res.zero();\n\n // Loop to add matrices\n for (DMatrixRMaj mat: matList) {\n // TODO: assert mat.size() == res.size() ?\n CommonOps_DDRM.add(res, mat, res);\n }\n\n // Divide by total of matrices\n CommonOps_DDRM.divide(res, (float) n);\n\n return res;\n }",
"public double getMeanValuePixels() {\n\t\tdouble avg = 0;\n\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\tavg += this.image[i][j];\n\t\t\t}\n\t\t}\n\t\tavg /= this.getQtyPixels();\n\n\t\treturn avg;\n\t}",
"private float getAvg(Map<String, Float> m) {\n float avg = 0;\n ArrayList<Float> list = new ArrayList<>(m.values());\n for (float v : list) {\n avg += v;\n }\n return avg / list.size();\n }",
"public ArrayList<Double> getAverageFitnesses() { return avgFitnesses; }",
"public double[] calcAvgCharMetrics() {\n double[] darrayMetrics = new double[TOTAL_IDX_CNT];\n if (!isChildListType()) {\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[CHAR_CNT_IDX] = 1.0; // weight.\n if (mType != UnitProtoType.Type.TYPE_UNKNOWN\n && mType != UnitProtoType.Type.TYPE_DOT\n && mType != UnitProtoType.Type.TYPE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_BRACE\n && mType != UnitProtoType.Type.TYPE_CLOSE_ROUND_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_SQUARE_BRACKET\n && mType != UnitProtoType.Type.TYPE_CLOSE_BRACE\n && mType != UnitProtoType.Type.TYPE_VERTICAL_LINE\n && mType != UnitProtoType.Type.TYPE_SUBTRACT\n && mType != UnitProtoType.Type.TYPE_SQRT_LEFT\n && mType != UnitProtoType.Type.TYPE_SQRT_SHORT\n && mType != UnitProtoType.Type.TYPE_SQRT_MEDIUM\n && mType != UnitProtoType.Type.TYPE_SQRT_LONG\n && mType != UnitProtoType.Type.TYPE_SQRT_TALL\n && mType != UnitProtoType.Type.TYPE_SQRT_VERY_TALL) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 1.0; // weight.\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = mnWidth;\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = mnHeight;\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = 0.0; // weight.\n }\n darrayMetrics[AVG_VGAP_IDX] = mnWidth;\n darrayMetrics[VGAP_CNT_IDX] = 0.0; // weight\n } else {\n double dSumWidth = 0, dSumNormalCharWidth = 0;\n double dSumHeight = 0, dSumNormalCharHeight = 0;\n double dTotalWeight = 0, dTotalNormalCharWeight = 0;\n double dVGap = 0, dTotalVGapWeight = 0;\n for (int idx = 0; idx < mlistChildren.size(); idx ++) {\n double[] darrayThisMetrics = mlistChildren.get(idx).calcAvgCharMetrics();\n dSumWidth += darrayThisMetrics[AVG_CHAR_WIDTH_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharWidth += darrayThisMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dSumHeight += darrayThisMetrics[AVG_CHAR_HEIGHT_IDX] * darrayThisMetrics[CHAR_CNT_IDX];\n dSumNormalCharHeight += darrayThisMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] * darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dTotalWeight += darrayThisMetrics[CHAR_CNT_IDX];\n dTotalNormalCharWeight += darrayThisMetrics[NORMAL_CHAR_CNT_IDX];\n dVGap += darrayThisMetrics[AVG_VGAP_IDX] * darrayThisMetrics[VGAP_CNT_IDX];\n dTotalVGapWeight += darrayThisMetrics[VGAP_CNT_IDX];\n if (idx > 0 && (mnExprRecogType == EXPRRECOGTYPE_VBLANKCUT || mnExprRecogType == EXPRRECOGTYPE_VCUTMATRIX)) {\n double dThisVGap = mlistChildren.get(idx).mnLeft - mlistChildren.get(idx - 1).getRightPlus1();\n dVGap += (dThisVGap > 0)?dThisVGap:0;\n dTotalVGapWeight += (dThisVGap > 0)?1.0:0;\n }\n }\n darrayMetrics[AVG_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumWidth / dTotalWeight);\n darrayMetrics[AVG_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumHeight / dTotalWeight);\n darrayMetrics[CHAR_CNT_IDX] = dTotalWeight;\n if (dTotalNormalCharWeight == 0) {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = darrayMetrics[AVG_CHAR_HEIGHT_IDX];\n } else {\n darrayMetrics[AVG_NORMAL_CHAR_WIDTH_IDX] = Math.max(ConstantsMgr.msnMinCharWidthInUnit, dSumNormalCharWidth / dTotalNormalCharWeight);\n darrayMetrics[AVG_NORMAL_CHAR_HEIGHT_IDX] = Math.max(ConstantsMgr.msnMinCharHeightInUnit, dSumNormalCharHeight / dTotalNormalCharWeight);\n }\n darrayMetrics[NORMAL_CHAR_CNT_IDX] = dTotalNormalCharWeight;\n if (dTotalVGapWeight == 0) {\n darrayMetrics[AVG_VGAP_IDX] = darrayMetrics[AVG_CHAR_WIDTH_IDX];\n } else {\n darrayMetrics[AVG_VGAP_IDX] = Math.max(ConstantsMgr.msnMinVGapWidthInUnit, dVGap / dTotalVGapWeight);\n }\n darrayMetrics[VGAP_CNT_IDX] = dTotalVGapWeight;\n }\n return darrayMetrics;\n }",
"public final float[][] reconstructedExactLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tint max=0;\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t\tmax++;\n \t\t\t}\n \t\t\tif (max==nmgdm) levelsets[n][xyz] = UNKNOWN;\n \t\t}\n \t}\n \treturn levelsets;\n }",
"public void setSynExpressionProfiles(FloatMatrix fm) {\r\n\t\tsynExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\tsynExpressionProfile=fm;\r\n\t\t\r\n\t}",
"public static double Average(int[][] matrix){\n double total = 0;\n double promedio =0;\n double divisor = 0;\n \n for(int i=0; i<matrix.length; i++){\n for (int j=0;j<matrix[i].length;j++ ) {\n \n total += matrix[i][j];\n } \n divisor = matrix[i].length * matrix.length; \n promedio = total / divisor; \n }\n \n return promedio;\n }",
"public double getMean() throws IMRException {\n\n\t\tString imt = im.getName();\n\t\tif (!imt.equals(MMI_Param.NAME)) {\n\t\t\tupdateCoefficients();\n\t\t\tdouble b_mean = getRockMean();\n\t\t\tif (imt.equals(PGA_Param.NAME)) {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName(), b_mean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn b_mean + Math.log(getAmpFactor(im.getName()));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\treturn Math.log(getMMI()); // return the log for now (until I figure a better way)\n\t\t}\n\n\t}",
"public MatOfDouble getMean()\r\n {\r\n \r\n MatOfDouble retVal = MatOfDouble.fromNativeAddr(getMean_0(nativeObj));\r\n \r\n return retVal;\r\n }",
"public double averageEuclideanDistance() {\n\n\t\tdouble sumEuclideanDistances = 0;\n\t\tdouble nDistances = popSize * popSize;\n\t\t// double distance = 0;\n\n\t\tfor (int i = 0; i < popSize; i++) {\n\t\t\tfor (int j = 0; j < popSize; j++){\n\t\t\t\tIndividual oneIndividual = getIndividualAtIndex(i);\n\t\t\t\tIndividual otherIndividual = getIndividualAtIndex(j);\n\t\t\t\tdouble[] genotypeOneIndidivual = oneIndividual.getGenotype();\n\t\t\t\tdouble[] genotypeOtherIndidivual = otherIndividual.getGenotype();\n\t\t\t\tdouble distance = euclideanDistanceMetric(genotypeOneIndidivual, genotypeOtherIndidivual);\n\t\t\t\tsumEuclideanDistances += distance;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t// double average = sumEuclideanDistances / nDistances;\n\n\t\treturn sumEuclideanDistances / nDistances;\n\t}",
"private Point findMeanByArrayList(ArrayList<GenUsers> ulist) {\n\t\t\n int count = ulist.size();\n double ht_sum=0,wt_sum=0;\n\t\t\n\t\t//code: find the mean male point and mean female point\n\t\tfor(int i=0;i<count;i++) {\n\t\t\tht_sum= ht_sum + ulist.get(i).getHt();\n\t\t\twt_sum= wt_sum + ulist.get(i).getWt();\n\t\t\t\n\t\t}\n\t\t\n\t\tdouble ht_mean = ht_sum/count;\n\t\tdouble wt_mean = wt_sum/count;\n\t\treturn new Point(ht_mean,wt_mean);\n\t}",
"public double getMean(){\n\t\treturn (double)sampleSize * type1Size / populationSize;\n\t}",
"public float getAvgSim() {\n return avgSim;\n }",
"public double[] getAverages() {\n\t\t\n\t\t// initialize array\n\t\taverages = new double[5];\n\t\t\n\t\t// used with calcAverage for the startIndex\n\t\tint curIndex = 0;\n\t\taverages[ASSIGNMENTS] = calcAverage(curIndex, curIndex += NUM_ASSIGNMENTS);\n\t\taverages[QUIZZES] = calcAverage(curIndex, curIndex += NUM_QUIZZES);\n\t\taverages[TESTS] = calcAverage(curIndex, curIndex += NUM_TESTS);\n\t\taverages[FINAL] = calcAverage(curIndex, curIndex + 1);\n\t\t\n\t\t// get the overall average\n\t\tdouble quizTestAverage = (averages[QUIZZES] + averages[TESTS]) * PERCENT_QUIZ_AND_TESTS / 2;\n\t\tdouble assignmentAverage = averages[ASSIGNMENTS] * PERCENT_ASSIGNMENTS;\n\t\tdouble finalAverage = averages[FINAL] * PERCENT_FINAL;\n\t\taverages[OVERALL] = quizTestAverage + assignmentAverage + finalAverage;\n\t\t\n\t\t// return the array\n\t\treturn averages;\n\t}",
"public abstract GeneralValue getAverageValue(String fieldName, String subFieldName);",
"double average();",
"private Matrix gaussianEliminate(){\r\n\t\t//Start from the 0, 0 (top left)\r\n\t\tint rowPoint = 0;\r\n\t\tint colPoint = 0;\r\n\t\t// instantiate the array storing values for new Matrix\r\n\t\tDouble[][] newVal = deepCopy(AllVal);\r\n\t\twhile (rowPoint < row && colPoint < col) {\r\n\t\t\t// find the index with max number (absolute value) from rowPoint to row\r\n\t\t\tDouble max = Math.abs(newVal[rowPoint][colPoint]);\r\n\t\t\tint index = rowPoint;\r\n\t\t\tint maxindex = rowPoint;\r\n\t\t\twhile (index < row) {\r\n\t\t\t\tif (max < Math.abs(newVal[index][colPoint])) {\r\n\t\t\t\t\tmax = newVal[index][colPoint];\r\n\t\t\t\t\tmaxindex = index;\r\n\t\t\t\t}\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\t\t\t// if max is 0 then that must mean there are no pivots\r\n\t\t\tif (max == 0) {\r\n\t\t\t\tcolPoint++;\r\n\t\t\t}else {\r\n\t\t\t\t//TODO: refactor into method\r\n\t\t\t\tDouble[] Temp = newVal[rowPoint];\r\n\t\t\t\tnewVal[rowPoint] = newVal[maxindex];\r\n\t\t\t\tnewVal[maxindex] = Temp;\r\n\t\t\t\t// Fill 0 lower part of pivot\r\n\t\t\t\tfor(int lower = rowPoint + 1; lower < row; lower++) {\r\n\t\t\t\t\tDouble ratio = newVal[lower][colPoint]/newVal[rowPoint][colPoint];\r\n\t\t\t\t\tnewVal[lower][colPoint] = (Double) 0.0;\r\n\t\t\t\t\t// adjust for the remaining element\r\n\t\t\t\t\tfor (int remain = colPoint + 1; remain < col; remain++) {\r\n\t\t\t\t\t\tnewVal[lower][remain] = newVal[lower][remain] - newVal[lower][remain]*ratio;\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\trowPoint++;\r\n\t\t\t\tcolPoint++;\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newVal);\r\n\t}",
"public Double[] getAverageGradeStatistic(String mode) {\n double totalPoints = 0.0;\n double totalWorth = 0.0;\n for (int i=0; i < assignments.size(); i++) {\n Assignment ass = assignments.get(i);\n ArrayList<Integer> assGrades = ass.getAllGrades();\n int assWorth = ass.getWorth();\n for (int j=0; j < assGrades.size(); j++) {\n Integer assGrade = assGrades.get(j);\n if (assGrade != null) {\n totalPoints += assGrade;\n totalWorth += assWorth;\n }\n else if (mode.equals(\"best\")) {\n totalPoints += assWorth;\n totalWorth += assWorth;\n }\n else if (mode.equals(\"worst\")) {\n totalWorth += assWorth;\n }\n }\n }\n\n Double[] ret = {totalPoints, totalWorth};\n return ret;\n }",
"@Test public void testParseMix() {\n double[][] exp = new double[][] {\n ard( 0 , 0.5 , 1 , 0),\n ard( 3 , NaN , 4 , 1),\n ard( 6 , NaN , 8 , 0),\n ard( 0.6 , 0.7 , 0.8 , 1),\n ard(+0.6 , +0.7 , +0.8 , 0),\n ard(-0.6 , -0.7 , -0.8 , 1),\n ard( .6 , .7 , .8 , 0),\n ard(+ .6 , +.7 , +.8 , 1),\n ard(- .6 , -.7 , -.8 , 0),\n ard(+0.6e0 , +0.7e0 , +0.8e0 , 1),\n ard(-0.6e0 , -0.7e0 , -0.8e0 , 0),\n ard( .6e0 , .7e0 , .8e0 , 1),\n ard(+ .6e0 , +.7e0 , +.8e0 , 0),\n ard( -.6e0 , -.7e0 , -.8e0 , 1),\n ard(+0.6e00 , +0.7e00 , +0.8e00 , 0),\n ard(-0.6e00 , -0.7e00 , -0.8e00 , 1),\n ard( .6e00 , .7e00 , .8e00 , 0),\n ard( +.6e00 , +.7e00 , +.8e00 , 1),\n ard( -.6e00 , -.7e00 , -.8e00 , 0),\n ard(+0.6e-01, +0.7e-01, +0.8e-01, 1),\n ard(-0.6e-01, -0.7e-01, -0.8e-01, 0),\n ard( .6e-01, .7e-01, .8e-01, 1),\n ard( +.6e-01, +.7e-01, +.8e-01, 0),\n ard( -.6e-01, -.7e-01, -.8e-01, 1),\n ard(+0.6e+01, +0.7e+01, +0.8e+01, 0),\n ard(-0.6e+01, -0.7e+01, -0.8e+01, 1),\n ard( .6e+01, .7e+01, .8e+01, 0),\n ard( +.6e+01, +.7e+01, +.8e+01, 1),\n ard( -.6e+01, -.7e+01, -.8e+01, 0),\n ard(+0.6e102, +0.7e102, +0.8e102, 1),\n ard(-0.6e102, -0.7e102, -0.8e102, 0),\n ard( .6e102, .7e102, .8e102, 1),\n ard( +.6e102, +.7e102, +.8e102, 0),\n ard( -.6e102, -.7e102, -.8e102, 1)\n };\n Frame fr = parseTestFile(\"smalldata/junit/test_parse_mix.csv\");\n testParsed(fr._key, exp);\n }",
"private double[] getMeanMedStd(ArrayList<Feature> freature, String keyID, double dthresh) {\r\n\r\n ArrayList<Double> values = FeatureOps.getSpecifiedFeatureNumericalPropertyAsArrayList(freature, keyID);\r\n // threshold the data. \r\n NumericArrayListOps.removeElementsGreaterThan(values, dthresh);\r\n double[] d2 = List2Prims.doubleFromDouble(values);\r\n\r\n if (d2.length == 0) {\r\n return new double[]{dthresh, dthresh, Double.POSITIVE_INFINITY, 0d};\r\n }\r\n\r\n double mean, median, std, ratioNeighbours;\r\n mean = StatUtils.mean(d2);\r\n Median med = new Median();\r\n median = med.evaluate(d2);\r\n std = Math.sqrt(StatUtils.variance(d2));\r\n // the proportion of the set in close proximity to features in the second set. \r\n ratioNeighbours = ((double) d2.length) / (double) freature.size();\r\n return new double[]{mean, median, std, ratioNeighbours};\r\n }",
"private double[][] getEnergyMatrix() {\n double[][] energi = new double[height()][width()];\n for (int i = 0; i < height(); i++) {\n for (int j = 0; j < width(); j++) {\n energi[i][j] = energy(j, i);\n }\n }\n return energi;\n }",
"@Test(timeout = 4000)\n public void test167() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n resultMatrixLatex0.showStdDevTipText();\n resultMatrixLatex0.getRevision();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n resultMatrixGnuPlot0.RIGHT_PARENTHESES = \")\";\n resultMatrixGnuPlot0.getDefaultRowNameWidth();\n int[] intArray0 = new int[7];\n intArray0[0] = 2;\n intArray0[1] = 2;\n intArray0[2] = 0;\n intArray0[3] = 1;\n intArray0[4] = 0;\n intArray0[5] = 1;\n intArray0[6] = 2;\n resultMatrixLatex0.m_ColOrder = intArray0;\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance(resultMatrixGnuPlot0);\n int[] intArray1 = new int[6];\n intArray1[0] = 0;\n intArray1[1] = 50;\n intArray1[2] = 50;\n intArray1[3] = 50;\n intArray1[4] = 2;\n intArray1[5] = 0;\n resultMatrixSignificance0.m_RankingLosses = intArray1;\n resultMatrixSignificance0.getDisplayName();\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n \n String string0 = resultMatrixLatex0.getSummaryTitle(0);\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(\"a\", string0);\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n }",
"public double[] calculatefitnessvalue(String str) {\t\n\t\tint a = Integer.parseInt(str.substring(0, 5), 2); \n\t\tint b = Integer.parseInt(str.substring(6, 11), 2);\n\t\tint c = Integer.parseInt(str.substring(12, 17), 2);\n\t\tint d = Integer.parseInt(str.substring(18, 23), 2);\n\t\tint e = Integer.parseInt(str.substring(24, 29), 2);\n\t\tint f = Integer.parseInt(str.substring(30, 35), 2);\n\t\tint g = Integer.parseInt(str.substring(36, 41), 2);\n\t\tint h = Integer.parseInt(str.substring(42, 47), 2);\n\t\tint i = Integer.parseInt(str.substring(48, 53), 2);\n\t\tint j = Integer.parseInt(str.substring(54, 59), 2);\n\n\t\tdouble x1 = a * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of x\n\t\tdouble x2 = b * (6.0 - 0) / (Math.pow(2, 6) - 1); //gene of y\n\t\tdouble x3 = c * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x4 = d * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x5 = e * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x6 = f * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x7 = g * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x8 = h * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x9 = i * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\tdouble x10 = j * (6.0 - 0) / (Math.pow(2, 6) - 1);\n\t\t\n\t\t//the Objective function\n\t\tdouble fitness = 3 - Math.sin(2 * x1) * Math.sin(2 * x1) \n\t\t\t\t+ Math.sin(2 * x2) * Math.sin(2 * x2)\n\t\t\t\t- Math.sin(2 * x3) * Math.sin(2 * x3)\n\t\t\t\t+ Math.sin(2 * x4) * Math.sin(2 * x4)\n\t\t\t\t- Math.sin(2 * x5) * Math.sin(2 * x5)\n\t\t\t\t+ Math.sin(2 * x6) * Math.sin(2 * x6)\n\t\t\t\t- Math.sin(2 * x7) * Math.sin(2 * x7)\n\t\t\t\t+ Math.sin(2 * x8) * Math.sin(2 * x8)\n\t\t\t\t- Math.sin(2 * x9) * Math.sin(2 * x9)\n\t\t\t\t+ Math.sin(2 * x10) * Math.sin(2 * x10);\n\t\t\n\t\tdouble[] returns = { x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, fitness };\n\t\treturn returns;\n\t}",
"public void makeRowStochastic() {\n \n for(T row : getFirstDimension()) {\n \n double sum = 0.0;\n \n // sum all values of the current row\n for(T col : getMatches(row)) {\n \n sum += get(row, col);\n \n }\n \n // divide each value by the sum\n for(T col : getMatches(row)) {\n \n set(row, col, get(row, col) / sum);\n \n }\n }\n \n }",
"public double mean() {\n return mu;\n }",
"private HashMap<String, Double> getHashMapScore(String query){\n WaveIO waveIO = new WaveIO();\n\n short[] inputSignal = waveIO.readWave(query);\n MagnitudeSpectrum ms = new MagnitudeSpectrum();\n double[] msFeatureQuery = ms.getFeature(inputSignal);\n Energy energy = new Energy();\n double[] energyFeatureQuery = energy.getFeature(inputSignal);\n ZeroCrossing zc = new ZeroCrossing();\n double[] zcFeatureQuery = zc.getFeature(inputSignal);\n MFCC mfcc = new MFCC(Frames.frameLength);\n mfcc.process(inputSignal);\n double[] mfccFeatureQuery = mfcc.getMeanFeature();\n \n \n // Get cosine SimList\n HashMap<String, Double> cosineSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> cosineMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcosineMsSimList.put(f.getKey(), (Cosine.getDistance(msFeatureQuery, (double[]) f.getValue())));\n \t// System.out.println(cosineMsSimList.get(f.getKey()));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \tcosineEnergySimList.put(f.getKey(), (Cosine.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \tcosineZcSimList.put(f.getKey(), (Cosine.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \tcosineMfccSimList.put(f.getKey(), (Cosine.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(cosineMsSimList);\n normalizeValue(cosineEnergySimList);\n normalizeValue(cosineZcSimList);\n normalizeValue(cosineMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcosineSimList.put(f.getKey(), (m_msFeatureWeight * cosineMsSimList.get(f.getKey())) + (m_energyFeatureWeight * cosineEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * cosineZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * cosineMfccSimList.get(f.getKey())));\n }\n \n // Get Euclidean SimList\n HashMap<String, Double> euclideanSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> euclideanMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \teuclideanMsSimList.put(f.getKey(), (Euclidean.getDistance(msFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \teuclideanEnergySimList.put(f.getKey(), (Euclidean.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \teuclideanZcSimList.put(f.getKey(), (Euclidean.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \teuclideanMfccSimList.put(f.getKey(), (Euclidean.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(euclideanMsSimList);\n normalizeValue(euclideanEnergySimList);\n normalizeValue(euclideanZcSimList);\n normalizeValue(euclideanMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \teuclideanSimList.put(f.getKey(), (m_msFeatureWeight * euclideanMsSimList.get(f.getKey())) + (m_energyFeatureWeight * euclideanEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * euclideanZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * euclideanMfccSimList.get(f.getKey())));\n }\n \n // Get CityBlock SimList\n HashMap<String, Double> cityblockSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockMsSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockEnergySimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockZcSimList = new HashMap<String, Double>();\n HashMap<String, Double> cityblockMfccSimList = new HashMap<String, Double>();\n \n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcityblockMsSimList.put(f.getKey(), (Euclidean.getDistance(msFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_energyFeature.entrySet()){\n \tcityblockEnergySimList.put(f.getKey(), (Euclidean.getDistance(energyFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_zcFeature.entrySet()){\n \tcityblockZcSimList.put(f.getKey(), (Euclidean.getDistance(zcFeatureQuery, (double[]) f.getValue())));\n }\n for (Map.Entry<String,double[]> f: m_mfccFeature.entrySet()){\n \tcityblockMfccSimList.put(f.getKey(), (Euclidean.getDistance(mfccFeatureQuery, (double[]) f.getValue())));\n }\n normalizeValue(cityblockMsSimList);\n normalizeValue(cityblockEnergySimList);\n normalizeValue(cityblockZcSimList);\n normalizeValue(cityblockMfccSimList);\n // Combine 4 features\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tcityblockSimList.put(f.getKey(), (m_msFeatureWeight * cityblockMsSimList.get(f.getKey())) + (m_energyFeatureWeight * cityblockEnergySimList.get(f.getKey())) + (m_zcFeatureWeight * cityblockZcSimList.get(f.getKey())) + (m_mfccFeatureWeight * cityblockMfccSimList.get(f.getKey())));\n }\n \n // Overall\n HashMap<String, Double> simList = new HashMap<String, Double>();\n for (Map.Entry<String,double[]> f: m_msFeature.entrySet()){\n \tsimList.put(f.getKey(), (m_cosineWeight * cosineSimList.get(f.getKey())) + (m_euclideanWeight * euclideanSimList.get(f.getKey())) + (m_cityblockWeight * cityblockSimList.get(f.getKey())));\n }\n \n return simList;\n }",
"private static void calculateSimilarity() {\n \tLOG.info(\"Begin calculating spatial similarity between users.\");\n \t\n\t\t// Get a list of all users\n \tNeo4JUserDAO uDao = (Neo4JUserDAO) DAOFactory.instance().getUserDAO();\n\t\tList<Node> users = uDao.findAll();\n\t\t\n\t\tint usersCount = users.size();\n \tLOG.debug(\"Found {} users.\", usersCount);\n\t\t\n\t\t// Instantiate all needed classes for similarity measurement\n\t\tNeo4JSequenceExtractor ex = new Neo4JSequenceExtractor();\n\t\tex.setFromLevel(clArgs.calcSimilarityFromLevel);\n\t\tex.setToLevel(clArgs.calcSimilarityToLevel);\n\t\t\n\t\tNeo4JSequenceMatcher matcher = new Neo4JSequenceMatcher(\n\t\t\t\tclArgs.calcSimilaritySplitThreshold, \n\t\t\t\tclArgs.calcSimilarityMinSequenceLength,\n\t\t\t\tclArgs.calcSimilarityTempConstraintThreshold);\n\t\tNeo4JSimilarityAnalyzer analyzer = new Neo4JSimilarityAnalyzer();\n\t\t\n\t\t// Create matrix that holds similarity results\n\t\tdouble[][] similarityResults = new double[usersCount][usersCount];\n\t\t\n\t\t// Go through all pair-wise user combinations\n \tfor (int i = 0; i < usersCount; i++) {\n\t\t\tNode userOne = users.get(i);\n\t\t\tObject userOneId = uDao.getUserId(userOne);\n\t\t\t\n\t\t\t// Set current first user for sequence extraction\n\t\t\tex.setUserNodeOne(userOne);\n\t\t\t\n\t\t\tfor (int j = i + 1; j < usersCount; j++) {\n\t\t\t\tNode userTwo = users.get(j);\n\t\t\t\tObject userTwoId = uDao.getUserId(userTwo);\n\t\t\t\tLOG.info(\"Calculate similarity between user [{}] and [{}].\", userOneId, userTwoId);\n\t\t\t\t\n\t\t\t\tdouble similarity = 0.0;\n\t\t\t\t\n\t\t\t\t// Step 1: Extract cluster sequences of two users based on their hierarchical graphs\n\t\t\t\t// Set current second user for sequence extraction\n\t\t\t\tex.setUserNodeTwo(userTwo);\n\t\t\t\tMap<Integer, SequenceWrapper> clusterSequences = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// Start extraction of cluster sequences\n\t\t\t\t\tLOG.info(\"Step 1: Extraction of cluster sequences from level {} to level {}.\", clArgs.calcSimilarityFromLevel, clArgs.calcSimilarityToLevel);\n\t\t\t\t\tclusterSequences = ex.extract();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tLOG.error(\"An error occurred while extracting the sequences of common clusters of user [{}] and [{}]:\\n{}\", \n\t\t\t\t\t\t\tnew Object[] {userOneId, userTwoId, e});\n\t\t\t\t\tLOG.debug(\"Similarity measurement stopped for users [{}] and [{}].\", userOneId, userTwoId);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Step 2: Match the extracted cluster sequences to find maximal length similar sequences\n\t\t\t\tMap<Integer, List<Sequence<SimilarSequenceCluster>>> maxLengthSimilarSequences = null;\n\t\t\t\t\n\t\t\t\t// Matching is only possible if there is a valid result of step 1 \n\t\t\t\tif (clusterSequences != null && !clusterSequences.isEmpty()) {\n\t\t\t\t\tmatcher.setSequencesOnLevel(clusterSequences);\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\t// Start matching of cluster sequences\n\t\t\t\t\t\tLOG.info(\"Step 2: Matching of cluster sequences.\");\n\t\t\t\t\t\tmaxLengthSimilarSequences = matcher.match();\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tLOG.error(\"An error occurred while matching the sequences of common clusters of user [{}] and [{}]:\\n{}\", \n\t\t\t\t\t\t\t\tnew Object[] {userOneId, userTwoId, e});\n\t\t\t\t\t\tLOG.debug(\"Similarity measurement stopped for users [{}] and [{}].\", userOneId, userTwoId);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\t// Step 3: Compute spatial similarity between the current two users\n\t\t\t\t\t// Similarity measurement is only possible with a valid result of step 2\n\t\t\t\t\tif (maxLengthSimilarSequences != null && !maxLengthSimilarSequences.isEmpty()) {\n\t\t\t\t\t\tanalyzer.setUserNodeOne(userOne);\n\t\t\t\t\t\tanalyzer.setUserNodeTwo(userTwo);\n\t\t\t\t\t\tanalyzer.setMaximalLengthSimilarSequencesOnLevel(maxLengthSimilarSequences);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t// Start similarity measurement\n\t\t\t\t\t\t\tLOG.info(\"Step 3: Similarity measurement.\");\n\t\t\t\t\t\t\tsimilarity = analyzer.analyze();\n\t\t\t\t\t\t\tLOG.debug(\"Final similarity score: {}\", similarity);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Save similarity value in result matrix\n\t\t\t\t\t\t\tsimilarityResults[i][j] = similarity;\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tLOG.error(\"An error occurred while measuring similarity between user [{}] and [{}]:\\n{}\", \n\t\t\t\t\t\t\t\t\tnew Object[] {userOneId, userTwoId, e});\n\t\t\t\t\t\t\tLOG.debug(\"Similarity measurement stopped for users [{}] and [{}].\", userOneId, userTwoId);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\t// END: step 3\n\t\t\t\t}\t// END: step 2\n\t\t\t}\t// END: user two loop\n\t\t}\t// END: user one loop\n \t\n \tLOG.info(\"Finished calculating spatial similarity.\");\n \t\n \t// Normalize the similarity scores from 0 to 1\n \tif (clArgs.normalization) {\n\t \tLOG.info(\"Normalizing similarity scores.\");\n\t \tsimilarityResults = SimilarityNormalizer.normalize(similarityResults);\n \t}\n \t\n \t// The evaluation is requested\n \tif (clArgs.evaluation) {\n \t\tLOG.info(\"Evaluation is enabled.\");\n \t\t\n \t\t// Calculate simple evaluation\n \t\tLOG.info(\"Calculate similarity evaluation values.\");\n \t\tSimilarityEvaluation evaluation = SimilarityEvaluator.evaluate(similarityResults);\n \t\t\n \t\t// Build up other information to include in the evaluation files\n \t\tList<String> otherInformation = new ArrayList<String>();\n \t\tif (clArgs.automation) {\n \t\t\t// Clustering information is only included if the automation task is running\n \t\t\totherInformation.add(CommandLineArgs.CLUSTERING_OPTICS_XI);\n \t\t\totherInformation.add(String.valueOf(df.format(currentOpticsXi)));\n \t\t\totherInformation.add(CommandLineArgs.CLUSTERING_OPTICS_MIN_POINTS);\n \t\t\totherInformation.add(String.valueOf(df.format(currentOpticsMinPoints)));\n \t\t}\n \t\t\n \t\t// Add simple metrics from similarity measurement\n \t\totherInformation.add(SimilarityEvaluation.SIMILARITY_MIN);\n \t\totherInformation.add(String.valueOf(df.format(evaluation.getMin())));\n \t\totherInformation.add(SimilarityEvaluation.SIMILARITY_MAX);\n \t\totherInformation.add(String.valueOf(df.format(evaluation.getMax())));\n \t\totherInformation.add(SimilarityEvaluation.SIMILARITY_MEAN);\n \t\totherInformation.add(String.valueOf(df.format(evaluation.getSimilarityMean())));\n \t\totherInformation.add(SimilarityEvaluation.SIMILAR_USER_PAIRS);\n \t\totherInformation.add(String.valueOf(evaluation.getSimilarUserPairs()));\n \t\t\n \t\t// Write similarity results in a file\n \t\tLOG.info(\"Writing evaluation data to a file.\");\n \t\tArrayToCsvWriter.writeDoubles(similarityResults, clArgs.evaluationOutDir, otherInformation.toArray(new String[0]));\n \t}\n \t// Evaluation is not requested, write the similarity scores into the graph database\n \telse {\n \t\tLOG.info(\"Write similarity scores to the graph database.\");\n \t\t\n \t\tfor (int i = 0; i < similarityResults.length; i++) {\n \t\t\t// Get first user by id\n \t\t\tNode userOne = uDao.findUserById(i);\n \t\t\tfor (int j = i + 1; j < similarityResults.length; j++) {\n \t\t\t\tdouble similarityScore = similarityResults[i][j];\n \t\t\t\t// User pairs that are not similar (i.e., have a similarity score of zero) do not get a connection\n \t\t\t\tif (similarityScore > 0) {\n\t \t\t\t\t// Get second user by id\n\t \t\t\t\tNode userTwo = uDao.findUserById(j);\n\t \t\t\t\t\n\t \t\t\t\t// Add similarity relationship\n\t \t\t\t\tuDao.connectSimilarUsers(userOne, userTwo, similarityScore);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}\n }",
"public native MagickImage averageImages() throws MagickException;",
"public static double geoMean(AnimalPack animals) {\n\t\tint product = 1;\n\t\tfor (Animal a : animals.getAnimals()) {\n\t\t\tproduct *= a.getSize();\n\t\t}\n\t\treturn Math.pow(product, 1.0 / animals.getAnimals().size());\n\t}",
"private double calc_gain_ratio(String attrb,int partitonElem,HashMap<Integer, WeatherData> trainDataXMap,HashMap<Integer, WeatherData> trainDataYMap,double information_gain_System,int total_count_in_train)\n\t{\n\t\t\n\t\tHashMap<Integer,Integer> X_Train_attrb_part1 = new HashMap<Integer,Integer>();\n\t\tHashMap<Integer,Integer> X_Train_attrb_part2 = new HashMap<Integer,Integer>();\n\t\tHashMap<Integer,WeatherData> Y_Train_attrb_part1 = new HashMap<Integer,WeatherData>();\n\t\tHashMap<Integer,WeatherData> Y_Train_attrb_part2 = new HashMap<Integer,WeatherData>();\n\t\t//System.out.println(\"the partition elem is\"+partitonElem);\n\t\tfor(int i=1;i<=trainDataXMap.size();i++)\n\t\t{\n\t\t\tWeatherData wd = trainDataXMap.get(i);\n\t\t\t\n\t\t\tfor(Feature f: wd.getFeatures())\n\t\t\t{\n\t\t\t\tif(f.getName().contains(attrb))\n\t\t\t\t{\n\t\t\t\t\tint attrb_val = Integer.parseInt(f.getValues().get(0).toString());\n\t\t\t\t\tint xTRainKey = getKey(wd);\n\t\t\t\t\tif(attrb_val <= partitonElem)\n\t\t\t\t\t{\n\t\t\t\t\t\tX_Train_attrb_part1.put(xTRainKey,attrb_val);\n\t\t\t\t\t\tY_Train_attrb_part1.put(xTRainKey, trainDataYMap.get(xTRainKey));\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tX_Train_attrb_part2.put(xTRainKey,attrb_val);\n\t\t\t\t\t\tY_Train_attrb_part2.put(xTRainKey, trainDataYMap.get(xTRainKey));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Size of first partition\n\t\tint Total_Count_attr_part1 = X_Train_attrb_part1.size();\n\t\t//System.out.println(\"the size of X first partition\"+Total_Count_attr_part1);\n\t\t//System.out.println(\"the size of Y first partition\"+Y_Train_attrb_part1.size());\n\t\t\n\t\t//Size of second partition\n\t\tint Total_Count_attr_part2 = X_Train_attrb_part2.size();\n\t\t//System.out.println(\"the size of X second partition\"+Total_Count_attr_part2);\n\t\t//System.out.println(\"the size of Y second partition\"+Y_Train_attrb_part2.size());\n\t\t\n\t\t//No of records in first partition where EVENT = RAIN \n\t\tint count_rain_yes_part1 = getCountsOfRain(Y_Train_attrb_part1,true,Total_Count_attr_part1);\n\t\t//System.out.println(\"count of rain in first part1\"+count_rain_yes_part1);\n\t\t\n\t\t//No of records in first partition where EVENT != RAIN Y_Train_attrb_part1\n\t\tint count_rain_no_part1 = getCountsOfRain(Y_Train_attrb_part1,false,Total_Count_attr_part1);\t\t\n\t\t//System.out.println(\"count of no rain in first part1\"+count_rain_no_part1);\n\t\t\n\t\t//Compute the Information Gain in first partition\n\t\t\n\t\tdouble prob_yes_rain_part1 = 0.0;\n\t\tdouble prob_no_rain_part1 = 0.0;\n\t\tdouble prob_yes_rain_part2 = 0.0;\n\t\tdouble prob_no_rain_part2 = 0.0;\n\t\tdouble getInfoGain_part1 = 0.0;\n\t double getInfoGain_part2 = 0.0;\n\t double gain_ratio_partition = 0.0;\n\t\tif(Total_Count_attr_part1!=0){\n\t\t\tprob_yes_rain_part1 = (count_rain_yes_part1/(double)Total_Count_attr_part1);\n\t\t\tprob_no_rain_part1 = (count_rain_no_part1/(double)Total_Count_attr_part1);\t\t\t\n\t\t}\n\t\tif((prob_yes_rain_part1!=0.0) && (prob_no_rain_part1!=0.0))\n\t\t{\n\t\t\tgetInfoGain_part1 = getInformationGain(prob_yes_rain_part1,prob_no_rain_part1);\n\t\t}\t\t\n\t\t\n\t\t//System.out.println(\"the info gain from part1\"+getInfoGain_part1);\n\t\t//No of records in second partition where EVENT = RAIN \n int count_rain_yes_part2 = getCountsOfRain(Y_Train_attrb_part2,true,Total_Count_attr_part2);\n\t\t\n //No of records in first partition where EVENT != RAIN\n\t\tint count_rain_no_part2 = getCountsOfRain(Y_Train_attrb_part2,false,Total_Count_attr_part2);\t\n\t\t\n\t\t//Compute the Information Gain in second partition\n\t\tif(Total_Count_attr_part2!=0)\n\t\t{\n\t\t\tprob_yes_rain_part2 = (count_rain_yes_part2/(double)Total_Count_attr_part2);\n\t\t\tprob_no_rain_part2 = (count_rain_no_part2/(double)Total_Count_attr_part2);\n\t\t\t\n\t\t}\n\t\tif((prob_yes_rain_part2!=0.0) && (prob_no_rain_part2!=0.0))\n\t\t{\n\t\t\tgetInfoGain_part2 = getInformationGain(prob_yes_rain_part2,prob_no_rain_part2);\n\t\t}\n\t\t//System.out.println(\"the info gain from part2\"+getInfoGain_part2);\n\t\t\n\t\t//Total Information from both partitions\n\t\tdouble infoGainFrom_Partition = getInfoGain_part1 + getInfoGain_part2;\n\t\t\n\t\t//Gain from the Partition\n\t\tdouble Gain_from_partition = information_gain_System - infoGainFrom_Partition;\n\t\t//System.out.println(\"The inf gain from system\"+information_gain_System);\n\t\t//System.out.println(\"The inf gain from part\"+infoGainFrom_Partition);\n\t\t//System.out.println(\"The gain from part\"+Gain_from_partition);\n\t\t\n\t\t//Split information of partition\n\t\tif((Total_Count_attr_part1!=0) && (Total_Count_attr_part2!=0))\n\t\t{\n\t\n\t\t\tdouble splitInfoFromPartition = getInformationGain(((double)Total_Count_attr_part1/total_count_in_train),\n ((double)Total_Count_attr_part2/total_count_in_train));\n\t\t\t\n\t\t\t//System.out.println(\"The split info from partition\"+splitInfoFromPartition);\n \n\t\t\t//Gain ratio of Partition\n gain_ratio_partition = Gain_from_partition/splitInfoFromPartition;\n\t\t}\n\t\t//System.out.println(\"The gain ratio info from partition\"+gain_ratio_partition);\n\t\treturn gain_ratio_partition;\n\t}",
"public double average(){\n double avg = 0;\n double sum = 0;\n for (T t : arr) {\n // sum += t.doubleValue();\n }\n\n return sum / arr.length;\n }",
"public static float mean(float[] v) {\n\t\tfloat sum = 0;\n\t\tint count = 0;\n\t\tfor (float value : v) {\n\t\t\tif (Util.isUsed(value)) {\n\t\t\t\tsum += value;\n\t\t\t\tcount ++;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn sum / (float)count;\n\t}",
"public static void main(String[] args) {\n\n\n int [][] array = {\n {1, 4, 3, 2, 5},\n {4, 5, 3, 2, 9},\n {4, 7, 8, 1, 4}};\n\n int sum = 0;\n int mean = 0;\n int median = 0;\n double variance = 0;\n double sdev = 0; //Standard deviation\n\n //Make 2d array into 1d array\n int [] list = new int [array.length * array[0].length];\n\n int listnum = 0;\n for (int i = 0; i < array.length; i++){\n for (int j = 0; j < array.length; j++){\n list[listnum++] = array [i][j];\n }\n }\n\n //This is used to find the SUM\n for (int i = 0; i < list.length; i++) {\n sum += list[i];\n }\n System.out.println(\"This is the sum: \" + sum);\n\n //MEAN\n mean = sum/list.length;\n System.out.println(\"Mean: \" + mean);\n\n //This is used to find the MEDIAN\n Arrays.sort(list);\n\n int middle = (list.length / 2);\n if (list.length % 2 == 0) {\n int medium1 = list[middle];\n int medium2 = list[middle - 1];\n median = (medium1 + medium2) / 2;\n } else {\n median = list[middle + 1];\n }\n System.out.println(\"The MEDIAN is: \" + median);\n\n\n //This is the mode\n int[] frequencies = new int[10]; // all zero\n for(int [] row : array){\n for(int val : row){\n frequencies[val]++;\n }\n }\n\n // scan for the largest value\n int largest = 0;\n int mode = -1;\n for (int i = 0; i < 10; ++i) {\n if (frequencies[i] > largest) {\n largest = frequencies[i];\n mode = i;\n }\n }System.out.println(\"Mode: \" + mode);\n\n\n\n //VARIANCE\n double temp = 0;\n for (double a : list) {\n temp += (a - mean) * (a - mean);\n }\n variance = temp / list.length;\n System.out.println(\"Variance:\" + variance);\n\n //Standard deviation\n sdev = Math.sqrt(variance);\n System.out.println(\"Standard Deviation: \" + sdev);\n }",
"private void PeriodMeanEvaluation () {\n\n float x = 0;\n for(int i = 0; i < 3; i++)\n {\n for(int j = 0; j < numberOfSample; j++)\n {\n x = x + singleFrame[j][i];\n }\n meanOfPeriodCoord[i] = (x/numberOfSample);\n x = 0;\n }\n }",
"protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult);",
"public static int[][] average(int[][] pixels){\r\n\t\t\t\r\n\t\t\tint height = pixels.length;\r\n\t\t\tint width = pixels[0].length;\r\n\t\t\t\r\n\t\t\t//Apply Average Filter\r\n\t for (int v = 1; v < height; v++) {\r\n\t for (int u = 1; u < width; u++) {\r\n\t \r\n\t int sum = 0;\r\n\t for (int j = -1; j <=1; j++) {\r\n\t for (int i = -1; i <= 1; i++) {\r\n\t if((u + (j) >= 0 && v + (i) >= 0 && u+(j) < width && v + (i) < height)){\r\n\t \tint p = pixels[v+(i)][u+(j)];\r\n\t \tsum = sum + p;\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t int q = (int) (sum /9);\r\n\t aResult[v][u] = q;\r\n\t }\r\n\t }\r\n\t return aResult;\r\n\t\t}",
"public void findAvg()\n {\n for(int i = 0; i <= scores.length-1; i++)\n {\n for (int j = 0; j <= scores[0].length-1; j++)\n {\n total += scores[i][j];\n }\n }\n System.out.println(\"The class average test score is \" + \n total/24 + \".\");\n }",
"public double mean() {\n\t\tint n = this.getAttCount();\n\t\tif (n == 0) return Constants.UNUSED;\n\t\t\n\t\tdouble sum = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tdouble v = this.getValueAsReal(i);\n\t\t\tsum += v;\n\t\t}\n\t\t\n\t\treturn sum / (double)n;\n\t}",
"public BigDecimal getRows_examined_avg() {\n return rows_examined_avg;\n }",
"@Query(\"select avg(u.articles.size), stddev(u.articles.size) from User u\")\n\tDouble[] avgstdArticlesPerWriter();",
"public static Matrix mean(Matrix m, boolean adjustment) {\n int rows_c = m.rows(), cols_c = m.cols(), den = rows_c;\n Matrix d;\n if (adjustment)\n den = den - 1;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double sumCol = 0D;\n for (int row = 1; row <= rows_c; row++) {\n sumCol += m.get(row, col);\n }\n d.set(1, col, sumCol / den);\n }\n }\n return d;\n }",
"@Test(timeout = 4000)\n public void test146() throws Throwable {\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n String[] stringArray0 = new String[4];\n stringArray0[1] = \"[\";\n stringArray0[2] = \"*\";\n double[] doubleArray0 = new double[7];\n doubleArray0[0] = (double) 0;\n doubleArray0[1] = (double) 2;\n doubleArray0[3] = (double) 1;\n resultMatrixCSV0.setSignificanceWidth(123);\n doubleArray0[4] = (double) 2;\n doubleArray0[5] = (double) 0;\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex(resultMatrixPlainText0);\n ResultMatrixCSV resultMatrixCSV1 = new ResultMatrixCSV();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixSignificance0);\n double[][] doubleArray1 = new double[6][2];\n doubleArray1[0] = doubleArray0;\n doubleArray1[1] = doubleArray0;\n doubleArray1[2] = doubleArray0;\n doubleArray1[3] = doubleArray0;\n doubleArray1[4] = doubleArray0;\n double[] doubleArray2 = new double[3];\n doubleArray2[0] = (double) 1;\n doubleArray2[1] = (double) 1;\n doubleArray2[2] = (double) 2;\n doubleArray1[5] = doubleArray2;\n resultMatrixGnuPlot0.m_StdDev = doubleArray1;\n ResultMatrixCSV resultMatrixCSV2 = new ResultMatrixCSV(resultMatrixCSV1);\n resultMatrixCSV1.clearRanking();\n resultMatrixCSV1.getShowStdDev();\n resultMatrixCSV0.setEnumerateRowNames(false);\n assertEquals(123, resultMatrixCSV0.getSignificanceWidth());\n \n resultMatrixCSV1.getColOrder();\n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot(resultMatrixGnuPlot0);\n resultMatrixPlainText0.rowNameWidthTipText();\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n }",
"public double mean()\n {\n double sum = 0.0;\n for(int t = 0; t<size; t++)\n sum += x[t];\n return sum/size;\n }",
"public static double getAverage(double[][] array)\r\n\t{\r\n\t\tint count = 0;\r\n\t\tList<Double> lineSumList = new ArrayList<Double>();\r\n\t\tfor( int i = 0; i < array.length; i++ ) {\r\n\t\t\tdouble lineSum = Σ(array[i]);\r\n\t\t\tlineSumList.add(lineSum);\r\n\t\t\tcount += array[i].length;\r\n\t\t}\r\n\t\tdouble sum = Σ(lineSumList);\r\n\t\t\r\n\t\tif (sum == 0 || array.length == 0)\r\n\t\t\treturn 0;\r\n\t\treturn sum / count;\r\n\t}",
"org.apache.xmlbeans.XmlObject getContactMeansArray(int i);",
"protected void updateMeasureValue(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n aggregators[i].agg(row[i]);\n }\n }\n calculateMaxMinUnique();\n }",
"public double mean() { \n return StdStats.mean(result);\n\n }",
"@Test\n public void testTransform() {\n File file1=new File(\"testData/testfile.mgf\");\n MgfReader rdr=new MgfReader(file1);\n ArrayList<Spectrum> specs = rdr.readAll();\n System.out.println(\"transform\");\n Spectrum spec = specs.get(0);\n ReciprocalTransform instance = new ReciprocalTransform();\n Spectrum expResult = null;\n Spectrum result = null;//instance.transform(spec);\n assertEquals(result, expResult);\n }",
"double getMeanProfit() {\n ArrayList<Double> allProfits = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> profitsOfFirm = firm.getProfits();\n allProfits.addAll(profitsOfFirm.subList(profitsOfFirm.size() - SimulationManager.sizeOfExaminationInterval, profitsOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allProfits), 2);\n }",
"@Test(timeout = 4000)\n public void test119() throws Throwable {\n String[] stringArray0 = new String[6];\n stringArray0[0] = \"\";\n stringArray0[1] = \"\";\n stringArray0[3] = \"<3\\\"uyx{[a7=aq,-hIYf\";\n stringArray0[4] = \":\";\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(0, 1025);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1025, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1025, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n String string0 = resultMatrixGnuPlot0.colNameWidthTipText();\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1025, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1025, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string0);\n \n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertNotNull(resultMatrixLatex0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n \n String string1 = resultMatrixLatex0.toStringMatrix();\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertNotNull(string1);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(\"\\\\begin{table}[thb]\\n\\\\caption{\\\\label{labelname}Table Caption}\\n\\\\footnotesize\\n{\\\\centering \\\\begin{tabular}{lr}\\n\\\\\\\\\\n\\\\hline\\nDataset & (1)\\\\\\\\\\n\\\\hline\\nrow0 & \\\\\\\\\\n\\\\hline\\n\\\\multicolumn{2}{c}{$\\\\circ$, $\\\\bullet$ statistically significant improvement or degradation}\\\\\\\\\\n\\\\end{tabular} \\\\footnotesize \\\\par}\\n\\\\end{table}\\n\", string1);\n assertFalse(string1.equals((Object)string0));\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n boolean boolean0 = resultMatrixCSV0.isStdDev((-422));\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertFalse(boolean0);\n \n String string2 = resultMatrixGnuPlot0.colNameWidthTipText();\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1025, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1025, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"The maximum width of the column names (0 = optimal).\", string2);\n assertFalse(string2.equals((Object)string1));\n \n double double0 = resultMatrixGnuPlot0.getCount(0);\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getVisibleColCount());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertEquals(50, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(50, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(1025, resultMatrixGnuPlot0.getRowCount());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(0, resultMatrixGnuPlot0.getColCount());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertEquals(1025, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0.0, double0, 0.01);\n \n int int0 = resultMatrixCSV0.getVisibleColCount();\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, int0);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(37, 106);\n }",
"public void recalculateStats(){\n weight = .25f * (shaftMat.getParameter(\"Density\") * length + headMat.getParameter(\"Density\") * .4f);\n sharpness = headMat.getParameter(\"Malleability\") + 1f / headMat.getParameter(\"Durability\"); //Malleable objects can be sharp, as can fragile objects\n// fragility = 1f / (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n durability = (shaftMat.getParameter(\"Durability\") * .5f + headMat.getParameter(\"Durability\") * .5f);\n trueness = shaftMat.getParameter(\"Regularity\") + headMat.getParameter(\"Regularity\");\n// length = 2f;\n }",
"public IAverage groupBy(String...columns);",
"public static void main(String[] args) {\n\r\n\t\t\t\tScanner Student_data = new Scanner(System.in);\r\n\t\t\t\tScanner Semester_Average = new Scanner(System.in);\r\n\r\n\t\t\t\tString name;\r\n\t\t\t\tString num;\r\n\t\t\t\tint age;\r\n\r\n\t\t\t\tfloat[] Material = new float[5];\r\n\t\t\t\tfloat SeAvg;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tSystem.out.print(\"أسمك أدخل : \");\r\n\t\t\t\t\tname = Student_data.nextLine();\r\n\r\n\t\t\t\t\tSystem.out.print(\"الأكاديمي رقمك أدخل : \");\r\n\t\t\t\t\tnum = Student_data.nextLine();\r\n\t\t\t\t\tSystem.out.print(\"عمرك أدخل : \");\r\n\t\t\t\t\tage = Student_data.nextInt();\r\n\r\n\t\t\t\t\tSystem.out.println(\"\\n الطالب معلومات \");\r\n\t\t\t\t\tSystem.out.println(\"الإسم : \" + name);\r\n\t\t\t\t\tSystem.out.println(\"الرقم : \" + num);\r\n\t\t\t\t\tSystem.out.println(\"العمر : \" + age);\r\n\t\t\t\t\tSystem.out.println(\"\");\r\n\r\n\t\t\t\t\tSystem.out.println(\"الفصلي معدلك لحساب التالية المواد في درجاتك أدخل : \");\r\n\t\t\t\t\tSystem.out.print(\"1 البرمجة أساسيات : \");\r\n\t\t\t\t\tMaterial[0] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 الإنترنت صفحات برمجة : \");\r\n\t\t\t\t\tMaterial[1] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"التعلم مهارات : \");\r\n\t\t\t\t\tMaterial[2] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 البيانات قواعد مبادئ : \");\r\n\t\t\t\t\tMaterial[3] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSystem.out.print(\"1 الحاسب تتطبيقات في مقدمة : \");\r\n\t\t\t\t\tMaterial[4] = Semester_Average.nextFloat();\r\n\t\t\t\t\tSeAvg = (Material[0] + Material[1] + Material[2] + Material[3] + Material[4]) / 100;\r\n\r\n\t\t\t\t\tif (SeAvg >= 2.95) {\r\n\t\t\t\t\t\tfor (double i = 0; i <= 10; i++) {\r\n\t\t\t\t\t\t\tSystem.out.println(\"هو معدلك ناجح أنت مبروك ألف : \" + SeAvg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.println(\"هو معدلك !راسب أنت عذرا: \" + SeAvg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tDate currentDate = new Date();\r\n\t\t\t\t\tString D = currentDate.toString();\r\n\t\t\t\t\tSystem.out.println(\"اليوم تاريخ : \" + D);\r\n\t\t\t\t\t\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tSystem.out.print(e.toString());\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tStudent_data.close();\r\n\t\t\t\t\tSemester_Average.close();\r\n\r\n\t\t\t\t\tdoSomething();\r\n\t\t\t\t}\r\n\t\t\t}",
"@Override\n public double findAverage() {\n double average = 0;\n for (Student key : map.keySet()) {\n average += map.get(key).getValue();\n }\n average /= map.keySet().size();\n return average;\n }",
"public float[] getAccuracyStats() throws IOException{\n \n int negativeScores[] = new int[2];\n int positiveScores[] = new int[2];\n float total[] = new float[2];\n \n negativeScores = getTotalScore_Negative();\n positiveScores = getTotalScore_Positive();\n \n afinnNegative = negativeScores[0];\n afinnPositive = positiveScores[0];\n mohanNegative = negativeScores[1];\n mohanPositive = positiveScores[1];\n \n total[0] = Math.round(((afinnNegative+afinnPositive)/testSetSize)*100.0);\n total[1] = Math.round(((mohanNegative+mohanPositive)/testSetSize)*100.0);\n \n return total;\n }",
"public final float[][] reconstructedLevelSets() {\n \tfloat[][] levelsets = new float[nobj][nx*ny*nz];\n \tfor (int n=0;n<nobj;n++) {\n \t\tfor (int xyz=0; xyz<nx*ny*nz; xyz++) {\n \t\t\tif (mgdmlabels[0][xyz]==n) levelsets[n][xyz] = -mgdmfunctions[0][xyz];\n \t\t\telse levelsets[n][xyz] = 0.0f;\n \t\t\t\n \t\t\tfor (int l=0;l<nmgdm && mgdmlabels[l][xyz]!=n;l++) {\n \t\t\t\tlevelsets[n][xyz] += mgdmfunctions[l][xyz];\n \t\t\t}\n \t\t}\n \t}\n \treturn levelsets;\n }",
"private Double getMean(Double[] values) {\n double sum = 0;\n int count = 0;\n for (Double d: values) {\n if (d != null) {\n sum += d;\n ++count;\n }\n }\n return count == 0 ? null : (sum / count);\n }",
"public double[] monteCarloMeans(){\n if(!this.monteCarloDone)this.monteCarlo();\n return this.randomEigenValuesMeans;\n }",
"public double average(){\r\n\t\t//create variable to hold the values\r\n\t\tdouble average = 0;\r\n\t\t\r\n\t\tfor (int i = 0; i < this.data.length; i++){\r\n\t\t\t//add current index\r\n\t\t\taverage += this.data[i];\r\n\t\t\t}\r\n\t\treturn (average/this.data.length);\r\n\t}",
"public static void main(String[] args) throws Exception {\n String dataFile = \"E:\\\\InstallPacksges\\\\JIDT\\\\infodynamics-dist-1.4\\\\demos\\\\data\\\\10ColsRandomGaussian-1.txt\";\n ArrayFileReader afr = new ArrayFileReader(dataFile);\n double[][] data = afr.getDouble2DMatrix();\n // 1. Construct the calculator:\n TransferEntropyCalculatorGaussian calc;\n calc = new TransferEntropyCalculatorGaussian();\n // 2. Set any properties to non-default values:\n // No properties were set to non-default values\n\n // Compute for all pairs:\n for (int s = 0; s < 10; s++) {\n for (int d = 0; d < 10; d++) {\n // For each source-dest pair:\n if (s == d) {\n continue;\n }\n double[] source = MatrixUtils.selectColumn(data, s);\n double[] destination = MatrixUtils.selectColumn(data, d);\n\n // 3. Initialise the calculator for (re-)use:\n calc.initialise();\n // 4. Supply the sample data:\n calc.setObservations(source, destination);\n // 5. Compute the estimate:\n double result = calc.computeAverageLocalOfObservations();\n\n System.out.printf(\"TE_Gaussian(col_%d -> col_%d) = %.4f nats\\n\",\n s, d, result);\n }\n }\n\n }",
"public double getMeanSquare() {\n return sumQ / count;\n }",
"private void upgradeImplicitAverageMonitoringRules()\r\n {\r\n if ( executeSql( \"update validationrule set lowoutliers = lowoutliers where validationruleid < 0\" ) < 0 )\r\n {\r\n return; // Already converted because lowoutlier fields are gone\r\n }\r\n\r\n // Just to be extra sure, we don't modify any expressions which already contain a call to AVG or STDDEV\r\n executeSql( \"INSERT INTO expressionsampleelement (expressionid, dataelementid) \" +\r\n \"SELECT ede.expressionid, ede.dataelementid \" +\r\n \"FROM expressiondataelement ede \" +\r\n \"JOIN expression e ON e.expressionid = ede.expressionid \" +\r\n \"JOIN validationrule v ON v.rightexpressionid = e.expressionid \" +\r\n \"WHERE v.ruletype='SURVEILLANCE' \" +\r\n \"AND e.expression NOT LIKE '%AVG%' and e.expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"update expression set expression=\" + statementBuilder.concatenate( \"'AVG('\", \"expression\", \"')'\" ) +\r\n \" from validationrule where ruletype='SURVEILLANCE' AND rightexpressionid=expressionid \" +\r\n \"AND expression NOT LIKE '%AVG%' and expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN highoutliers\" );\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN lowoutliers\" );\r\n\r\n log.info( \"Added explicit AVG calls to olid-style implicit average surveillance rules\" );\r\n }",
"public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void updateExtraTransformMatrix(float[] fArr) {\n }",
"public double arithmeticalMean(double[] arr) {\n return 0;\n }",
"private void addGeneSetInfo(DefaultMutableTreeNode root) {\n Object[][] results = new Object[this.resultMatrix.A.length][this.resultMatrix.A[0].length+1];\r\n for (int i=0; i<results.length; i++){\r\n \tfor (int j=1; j<results[0].length; j++){\r\n \t\tresults[i][j]= resultMatrix.A[i][j-1];\r\n \t}\r\n }\r\n\r\n for (int i=0; i<results.length; i++){\r\n \tresults[i][0] = geneListNames[i];\r\n }\r\n String[] columns = {\"Gene List\",\"Gene Count\", \"F-value\", \"p-value (permutation)\", \"p-value (approximate)\"};\r\n \r\n IViewer tabViewer = new GLOBALANCResultTable(results,columns);\r\n \troot.add(new DefaultMutableTreeNode(new LeafInfo(\"Results Table\", tabViewer, new Integer(0))));\r\n\t\t\r\n\t}",
"private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }",
"@Test(timeout = 4000)\n public void test151() throws Throwable {\n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML();\n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV();\n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText();\n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixPlainText0);\n String string0 = resultMatrixGnuPlot0.getRowName(2486);\n assertTrue(resultMatrixGnuPlot0.getPrintColNames());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(5, resultMatrixGnuPlot0.getCountWidth());\n assertNull(string0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot1 = new ResultMatrixGnuPlot();\n resultMatrixGnuPlot1.getDefaultColNameWidth();\n resultMatrixHTML0.m_ShowAverage = false;\n ResultMatrixGnuPlot resultMatrixGnuPlot2 = new ResultMatrixGnuPlot(resultMatrixHTML0);\n resultMatrixGnuPlot2.setRowHidden((-4260), false);\n assertEquals(2, resultMatrixGnuPlot2.getStdDevPrec());\n assertEquals(2, resultMatrixGnuPlot2.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot2.getSignificanceWidth());\n assertEquals(25, resultMatrixGnuPlot2.getRowNameWidth());\n assertEquals(0, resultMatrixGnuPlot2.getStdDevWidth());\n assertTrue(resultMatrixGnuPlot2.getPrintRowNames());\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n resultMatrixSignificance0.setCountWidth(0);\n resultMatrixSignificance0.getDefaultShowStdDev();\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n \n resultMatrixHTML0.getRevision();\n int int0 = resultMatrixPlainText0.getDisplayRow(1);\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals((-1), int0);\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n }",
"public double mean() {\n return StdStats.mean(stats);\r\n }",
"double average() { // used double b/c I want decimal places\n\t\tint sum = 0;\n\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\tsum = sum + array[i];\n\t\t}\n\t\tdouble average = (double) sum / array.length;\n\t\treturn average;\n\n\t}"
] | [
"0.5630661",
"0.53215265",
"0.50786924",
"0.49005705",
"0.48687094",
"0.48262435",
"0.48058325",
"0.4794619",
"0.47107783",
"0.46735853",
"0.46731818",
"0.4608861",
"0.46086442",
"0.46026874",
"0.46001658",
"0.45804903",
"0.45679915",
"0.45487806",
"0.45255122",
"0.45189056",
"0.45181152",
"0.4510831",
"0.4503056",
"0.4488672",
"0.44858506",
"0.4474177",
"0.44679704",
"0.44613478",
"0.44570333",
"0.44534495",
"0.44403806",
"0.44356593",
"0.44272518",
"0.4423513",
"0.44202048",
"0.4414905",
"0.44095993",
"0.4407318",
"0.44031537",
"0.43970692",
"0.43894413",
"0.43733358",
"0.4371251",
"0.43681246",
"0.4364752",
"0.4359962",
"0.4355997",
"0.4353549",
"0.4348036",
"0.4341391",
"0.43358216",
"0.43356705",
"0.4331875",
"0.43309653",
"0.43274602",
"0.43246394",
"0.43200892",
"0.4317154",
"0.43122554",
"0.43115208",
"0.43081138",
"0.42968518",
"0.42918977",
"0.42896765",
"0.42850205",
"0.42842785",
"0.4282141",
"0.4274122",
"0.42647797",
"0.42621323",
"0.42610362",
"0.42529368",
"0.42502177",
"0.42488992",
"0.4232229",
"0.42312884",
"0.42300344",
"0.42292294",
"0.4224896",
"0.42162898",
"0.42140043",
"0.4213043",
"0.4212749",
"0.42050648",
"0.41958332",
"0.41955662",
"0.4193145",
"0.4190567",
"0.41886473",
"0.41876778",
"0.41741446",
"0.4164808",
"0.41635817",
"0.41605872",
"0.41438416",
"0.4138982",
"0.4136025",
"0.4135411",
"0.4134381",
"0.4133296"
] | 0.65712166 | 0 |
Sets average gene expression profile of genes similar to ones in synexpression groups. Each row represents expression profile of a group similar to corresponding synexpression group | public void setSimilarGeneExpressionProfile(FloatMatrix fm) {
averageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());
averageExpressionProfile=fm;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}",
"private void calculateAvg() {\n\t\tDescriptiveStatistics stats = new DescriptiveStatistics();\n\t\tfor (QueryInfo oneQ : this.maxQueries) {\n\t\t\tstats.addValue(oneQ.getGapCount() * oneQ.getFrequency());\n\t\t}\n\t\tthis.avgGain = stats.getMean();\n\t\tthis.medianGain = stats.getPercentile(50);\n\t\tthis.quartiles = stats.getPercentile(75);\n\t}",
"protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult);",
"private void upgradeImplicitAverageMonitoringRules()\r\n {\r\n if ( executeSql( \"update validationrule set lowoutliers = lowoutliers where validationruleid < 0\" ) < 0 )\r\n {\r\n return; // Already converted because lowoutlier fields are gone\r\n }\r\n\r\n // Just to be extra sure, we don't modify any expressions which already contain a call to AVG or STDDEV\r\n executeSql( \"INSERT INTO expressionsampleelement (expressionid, dataelementid) \" +\r\n \"SELECT ede.expressionid, ede.dataelementid \" +\r\n \"FROM expressiondataelement ede \" +\r\n \"JOIN expression e ON e.expressionid = ede.expressionid \" +\r\n \"JOIN validationrule v ON v.rightexpressionid = e.expressionid \" +\r\n \"WHERE v.ruletype='SURVEILLANCE' \" +\r\n \"AND e.expression NOT LIKE '%AVG%' and e.expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"update expression set expression=\" + statementBuilder.concatenate( \"'AVG('\", \"expression\", \"')'\" ) +\r\n \" from validationrule where ruletype='SURVEILLANCE' AND rightexpressionid=expressionid \" +\r\n \"AND expression NOT LIKE '%AVG%' and expression NOT LIKE '%STDDEV%';\" );\r\n\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN highoutliers\" );\r\n executeSql( \"ALTER TABLE validationrule DROP COLUMN lowoutliers\" );\r\n\r\n log.info( \"Added explicit AVG calls to olid-style implicit average surveillance rules\" );\r\n }",
"private void analyze() {\n\t\tdouble org = 0;\n\t\tdouble avgIndPerDoc = 0;\n\t\tdouble avgTotalPerDoc = 0;\n\n\t\tfor (Instance instance : instanceProvider.getInstances()) {\n\n\t\t\tint g = 0;\n\t\t\tSet<AbstractAnnotation> orgM = new HashSet<>();\n\n//\t\t\torgM.addAll(instance.getGoldAnnotations().getAnnotations());\n//\t\t\tg += instance.getGoldAnnotations().getAnnotations().size();\n\n\t\t\tfor (AbstractAnnotation instance2 : instance.getGoldAnnotations().getAnnotations()) {\n\n\t\t\t\tResult r = new Result(instance2);\n\n\t\t\t\t{\n////\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getTrend());\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(r.getInvestigationMethod());\n////\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(\n////\t\t\t\t\t\t\tr.getDefinedExperimentalGroups().stream().map(a -> a.get()).collect(Collectors.toList()));\n//\n//\t\t\t\t\torgM.addAll(aa);\n//\t\t\t\t\tg += aa.size();\n\t\t\t\t}\n\n\t\t\t\t{\n\t\t\t\t\t/**\n\t\t\t\t\t * props of exp\n\t\t\t\t\t */\n\t\t\t\t\tfor (DefinedExperimentalGroup instance3 : r.getDefinedExperimentalGroups()) {\n\n//\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getOrganismModel());\n//\t\t\t\t\tList<AbstractAnnotation> aa = new ArrayList<>(instance3.getTreatments());\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> ab = Arrays.asList(instance3.getInjury());\n\n\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getDeliveryMethods().stream())\n\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n\t\t\t\t\t\taa.addAll(instance3.getTreatments().stream().filter(i -> i != null)\n\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Treatment(et))\n\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getDeliveryMethod()).filter(i -> i != null)\n\t\t\t\t\t\t\t\t.collect(Collectors.toList()));\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).flatMap(i -> i.getAnaesthetics().stream())\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).collect(Collectors.toList());\n\n//\t\t\t\t\t\tList<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryDevice()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\t// List<AbstractAnnotation> aa = ab.stream().filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.map(et -> et.asInstanceOfEntityTemplate()).map(et -> new Injury(et))\n//\t\t\t\t\t\t\t\t.filter(i -> i != null).map(i -> i.getInjuryLocation()).filter(i -> i != null)\n//\t\t\t\t\t\t\t\t.collect(Collectors.toList());\n\n\t\t\t\t\t\torgM.addAll(aa);\n\t\t\t\t\t\tg += aa.size();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tavgIndPerDoc += orgM.size();\n\t\t\tavgTotalPerDoc += g;\n\n\t\t\torg += ((double) orgM.size()) / (g == 0 ? 1 : g);\n//\t\t\tSystem.out.println(((double) orgM.size()) / g);\n\n\t\t}\n\t\tSystem.out.println(\"avgTotalPerDoc = \" + avgTotalPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"avgIndPerDoc = \" + avgIndPerDoc / instanceProvider.getInstances().size());\n\t\tSystem.out.println(\"org = \" + org);\n\t\tSystem.out.println(\"avg. org = \" + (org / instanceProvider.getInstances().size()));\n\t\tSystem.out.println(new DecimalFormat(\"0.00\").format(avgTotalPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(avgIndPerDoc / instanceProvider.getInstances().size())\n\t\t\t\t+ \" & \" + new DecimalFormat(\"0.00\").format(org / instanceProvider.getInstances().size()));\n\t\tSystem.exit(1);\n\n\t\tStats.countVariables(0, instanceProvider.getInstances());\n\n\t\tint count = 0;\n\t\tfor (SlotType slotType : EntityType.get(\"Result\").getSlots()) {\n\n\t\t\tif (slotType.isExcluded())\n\t\t\t\tcontinue;\n\t\t\tcount++;\n\t\t\tSystem.out.println(slotType.name);\n\n\t\t}\n\t\tSystem.out.println(count);\n\t\tSystem.exit(1);\n\t}",
"public void parseAverages(){\r\n\t\tfor(int i = 1; i < x.size(); i++){\r\n\t\t\tdouble avg = (x.get(i) + x.get(i-1)) / 2;\r\n\t\t\tx.set(i, avg);\r\n\t\t}\r\n\t}",
"public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public void setAvgSim(float avg) {\n avgSim = avg;\n }",
"public void computeAverageOfRepeats() {\n\t\t\n\t\texperimentsAvg_ = new ArrayList<Experiment>();\n\t\t\n\t\tfor (int i=0; i<experiments_.size(); i++)\n\t\t\texperimentsAvg_.add(experiments_.get(i).computeAverageOfRepeats());\n\t}",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"protected void updateMeasureValue(Object[] row) {\n for (int i = 0; i < aggregators.length; i++) {\n if (null != row[i]) {\n aggregators[i].agg(row[i]);\n }\n }\n calculateMaxMinUnique();\n }",
"public void setSynExpressionProfiles(FloatMatrix fm) {\r\n\t\tsynExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\tsynExpressionProfile=fm;\r\n\t\t\r\n\t}",
"private void updateMean() {\r\n double tmp = 0.0;\r\n for (Tweet t : members) {\r\n tmp += t.getDateLong();\r\n }\r\n tmp = tmp / (double) members.size();\r\n this.mean = tmp;\r\n }",
"public void average(){\n\t\tfor(PlayerWealthDataAccumulator w : _wealthData.values()){\n\t\t\tw.average();\n\t\t}\n\t}",
"public abstract void updateCurGene(int mid);",
"private double[] mean(Population pop) {\n double[] value = new double[pop.getIndividual(0).getNumGenes()];\n //for all individuals\n Iterator<Individual> it = pop.getIterator();\n while (it.hasNext()) {\n Individual ind = it.next();\n //sum the value of the gene\n for (int i = 0; i < value.length; i++) {\n value[i] += ind.getGeneValue(i);\n }\n }\n //divide by the number of individuals\n double factor = 1.0 / pop.getNumGenotypes();\n for (int i = 0; i < value.length; i++) {\n value[i] *=factor;\n }\n return value;\n }",
"public void setSimilarGenes(String name, String[] groups) {\r\n\t\tif(!similarGeneGroups.containsKey(name)) {\r\n\t\tsimilarGeneGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}",
"@Test\r\n\tpublic void driverGroups75MoreAnnouncementsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateGroups75MoreAnnouncementsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"public void setGesamtRating() {\n this.gesamtRating = Precision.round((kriterium1 + kriterium2 + kriterium3 + kriterium4 + kriterium5\n + kriterium6 + kriterium7 + kriterium8), 2);\n\n }",
"public void setAverageGoldByWins(int wins, double avg) {\n statistics.getAvgGoldByWins().put(wins, avg);\n }",
"public int mutateGene(int gene);",
"public abstract GeneralValue getAverageValue(String fieldName, String subFieldName);",
"void TruncPopulationAvgSizeGen(double scale){\n\t\t\tint i;\n\t\t\tnode[] _nm;\n\t\t \tdouble sumSize,sizeThreshold; \t\n\t\t \t \t\t \n\t\t \tsumSize = oldpop[0].size;\n\t\t\t\n\t\t\tfor(i = 1; i < poplen; i++) {\t\t\t\t\n\t\t\t\tsumSize += oldpop[i].size;//\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"Tong:\"+sumSize);\n\t\t\tsumSize=sumSize /poplen;\n//\t\t\tSystem.out.println(\"Avg:\"+sumSize);\n\t\t\t\n\t\t\tsizeThreshold=sumSize+(1.0-(double)gen/NUMGEN)*sumSize*scale;\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(((1.0-(double)gen/NUMGEN)*sumSize*scale) +\"-\"+((1.0-gen/NUMGEN)*sumSize*scale));\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n\t\t \t\n\t\t\tfor(i = 0; i < poplen; i++){\n\t\t\t\tif(oldpop[i].size>sizeThreshold){\n//\t\t\t\t\tSystem.out.println(\"Vi tri:\"+i);\n\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t_nm=new node[1];\n\t//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\t\tif(this.TruncateTreeGrow(oldpop[i], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\t\n\t\t\t\t\toldpop[i]=new individual();\n\t\t\t\t\toldpop[i].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\t\toldpop[i].evaluated=FALSE;\n\t//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}",
"public void setPopulateAvg(boolean tmp) {\n this.populateAvg = tmp;\n }",
"private void updateGeneralEvaluation(Evaluation ev, double learnRatio) {\n\t\tgeneralEvaluation = (1-learnRatio)*generalEvaluation + learnRatio *ev.getGrade();\n\t}",
"public void printAverageRatingsByGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n Filter f = new GenreFilter(\"Comedy\"); \n int minRatings = 20;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" + MovieDatabase.getYear(r.getItem()) + \"\\t\" \n + MovieDatabase.getTitle(r.getItem()) + \"\\t\" + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }",
"public Pairs[] getMeanOfGaussionsFromEM(String inputFolderPath, int numOfGaussions) throws Exception\n{\n\tdouble[][] mean = null;\n\tExpectationMaximizationAlgorithm EMA = new ExpectationMaximizationAlgorithm();\n\t//Read all arff files available in inputFolder\n\tFile[] arffFiles = EMA.readAllFiles(inputFolderPath);\n\t\n\tPairs pp[] = new Pairs[arffFiles.length]; \n\t\n\tfor(int i=0;i<arffFiles.length;i++)\n\t{\n\t\tEMA = new ExpectationMaximizationAlgorithm();\n\t\tBufferedReader datafile = EMA.readDataFile(arffFiles[i].getName().toString(),inputFolderPath);\n\t\tSystem.out.println(\"Converting..... : \"+arffFiles[i].getName().toString());\n\t\tInstances data = new Instances(datafile);\n\t\t\n\t\tEM EMObject = new EM();\n\t\tEMObject.setNumClusters(numOfGaussions);\n\t\tEMObject.buildClusterer(data);\n\t\tdouble[][][] attr = EMObject.getClusterModelsNumericAtts();\n\t\tmean = new double[data.numAttributes()][numOfGaussions];\n\t\tdouble[][] variance = new double[data.numAttributes()][numOfGaussions];\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tmean[k][j]=attr[j][k][0];\n\t\t\t}\n\t\t}\n\t\tfor(int j=0;j<numOfGaussions;j++)\n\t\t{\n\t\t\tfor(int k=0;k<data.numAttributes();k++)\n\t\t\t{\n\t\t\t\tvariance[k][j]=attr[j][k][1];\n\t\t\t}\n\t\t}\n\t\tpp[i] = new Pairs(arffFiles[i].getName().toString(), mean,variance);\n\t\t\n\t}\n\t\n\treturn pp;\n}",
"boolean sameAvg(genDemo <?> ob){\n\t\tif(this.avg() == ob.avg())\n\t\t\treturn true;\n\t\t\n\t\telse \n\t\t\treturn false;\n\t}",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public void setAverageRegularCardsByWins(int wins, double avg) {\n statistics.getAvgCardsByWins().put(wins, avg);\n }",
"public void assignMatingProportions() {\n\t\tdouble totalAverageSpeciesFitness = 0.0;\r\n\r\n\t\t// hold the proportion of offspring each species should generate\r\n\r\n\t\tfor (Species s : speciesList) {\r\n\r\n\t\t\ttotalAverageSpeciesFitness += s.getAverageAdjustedFitness();\r\n\t\t}\r\n\r\n\t\t// set map values to be a proportion of the total adjusted\r\n\t\t// fitness\r\n\t\tfor (Species s : speciesList) {\r\n\r\n\t\t\ts.assignProp(totalAverageSpeciesFitness);\r\n\t\t}\r\n\t}",
"public void setAverageExtraPacksByWins(int wins, double avg) {\n statistics.getAvgExtraPacksByWins().put(wins, avg);\n }",
"public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void printAverageRatingsByGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n String genre = \"Crime\";\n \n GenreFilter genre_filter = new GenreFilter(genre);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, genre_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" +title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }",
"private GeneListAnalysis setupGeneListAnalysisValues(String[] dataRow) {\r\n\r\n \t//log.debug(\"in setupGeneListAnalysisValues\");\r\n \t//log.debug(\"dataRow= \"); new Debugger().print(dataRow);\r\n\r\n \tGeneListAnalysis newGeneListAnalysis = new GeneListAnalysis();\r\n\r\n\t\tnewGeneListAnalysis.setAnalysis_id(Integer.parseInt(dataRow[0]));\r\n newGeneListAnalysis.setDescription(dataRow[1]);\r\n newGeneListAnalysis.setGene_list_id(Integer.parseInt(dataRow[2]));\r\n newGeneListAnalysis.setCreate_date_as_string(dataRow[3]);\r\n\t\tnewGeneListAnalysis.setCreate_date(new ObjectHandler().getDisplayDateAsTimestamp(dataRow[3]));\r\n newGeneListAnalysis.setUser_id(Integer.parseInt(dataRow[4]));\r\n\t\tnewGeneListAnalysis.setCreate_date_for_filename(dataRow[5]);\r\n\t\tnewGeneListAnalysis.setAnalysis_type(dataRow[6]);\r\n\t\tnewGeneListAnalysis.setVisible(Integer.parseInt(dataRow[7]));\r\n newGeneListAnalysis.setName(dataRow[8]);\r\n newGeneListAnalysis.setStatus(dataRow[9]);\r\n newGeneListAnalysis.setPath(dataRow[10]);\r\n\t\tif (dataRow.length>11 && dataRow[11] != null && !dataRow[11].equals(\"\")) {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(Integer.parseInt(dataRow[11]));\r\n\t\t} else {\r\n\t\t\tnewGeneListAnalysis.setParameter_group_id(-99);\r\n\t\t}\r\n \r\n //check for long running probably an error\r\n if(newGeneListAnalysis.getStatus()!=null && newGeneListAnalysis.getStatus().equals(\"Running\")){\r\n java.util.Date cur=new java.util.Date();\r\n long diff=cur.getTime()-newGeneListAnalysis.getCreate_date().getTime();\r\n if(diff>excessiveTimeLimit){\r\n newGeneListAnalysis.setStatus(\"Error\");\r\n }\r\n }\r\n\r\n \treturn newGeneListAnalysis;\r\n \t}",
"@Test\n public void testAverageRisk() {\n DataProvider provider = new DataProvider();\n provider.createDataDefinition();\n // Risk before anonymization\n double risk = provider.getData().getHandle().getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 1.0d);\n \n // Risk after anonymization\n risk = getAnonymizedData(provider.getData()).getRiskEstimator(ARXPopulationModel.create(provider.getData().getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.42857142857142855);\n }",
"public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }",
"public void setMeanAnamoly(double value) {\n this.meanAnamoly = value;\n }",
"public void setMean(double mean) {\n this.mean = mean;\n }",
"public void setAverageGoldCardsByWins(int wins, double avg) {\n statistics.getAvgGoldCardsByWins().put(wins, avg);\n }",
"double getAvgTreatment();",
"public void setRows_examined_avg(BigDecimal rows_examined_avg) {\n this.rows_examined_avg = rows_examined_avg;\n }",
"public void makeSegDats(){\n\t\ttry {\n\t\t\tFile preSgr = new File (ucscGeneTableFileSelect.getParentFile(),selectName+\"_exprGenes.sgr\");\n\t\t\tPrintWriter outPreSgr = new PrintWriter (new FileWriter (preSgr));\n\t\t\tFile postSgr = new File (ucscGeneTableFileSelect.getParentFile(),selectName+\"_exprGeneMedian.sgr\");\n\t\t\tPrintWriter outPostSgr = new PrintWriter (new FileWriter (postSgr));\n\t\t\t//instantiate Bar parser\n\t\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t\t//make array to hold SegDats\n\t\t\tArrayList segDatsAL = new ArrayList();\n\t\t\t//for each chromosome in select genes\n\t\t\tIterator it = genesSelect.keySet().iterator();\n\t\t\twhile (it.hasNext()){\n\t\t\t\t//get genes\n\t\t\t\tString chrom = (String)it.next();\n\t\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\t\t//for each gene \n\t\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\t\t//fetch Grs\n\t\t\t\t\tArrayList al = barParser.fetchRegionGrs(chrom, chrGenes[i].getTxStart() - extensionToSegment, chrGenes[i].getTxEnd() + extensionToSegment);\n\t\t\t\t\tGr[] grs = new Gr[al.size()];\n\t\t\t\t\tal.toArray(grs);\n\t\t\t\t\t//for each Gr, check to see if it is entirely contained in the gene, if so assign the median value\n\t\t\t\t\tint posStart = -1;\n\t\t\t\t\tint posEnd = -1;\n\t\t\t\t\tfloat median = chrGenes[i].getScores()[0];\n\t\t\t\t\t//these gr positions have been modified by the bpPositionOffSet, shifted left to start of oligo\n\t\t\t\t\t//shrink size too\n\t\t\t\t\tint start = chrGenes[i].getTxStart()+ bpShrink;\n\t\t\t\t\tint end = chrGenes[i].getTxEnd() + bpPositionOffSetRegion - bpShrink;\n\t\t\t\t\tif (end < start) {\n\t\t\t\t\t\tSystem.out.println(\"\\tSkipping \"+chrGenes[i].getName() + \" End shrinking eliminated gene.\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int x =0; x< grs.length; x++){\n\t\t\t\t\t\toutPreSgr.println(chrom +\"\\t\"+grs[x]);\n\t\t\t\t\t\t//clip it to median\n\t\t\t\t\t\tif (grs[x].getScore() > median) grs[x].setScore(median);\n\t\t\t\t\t\t//is it contained? Set to median\n\t\t\t\t\t\tif (grs[x].getPosition() >= start && grs[x].getPosition() <= end) {\n\t\t\t\t\t\t\t//set score to median\n\t\t\t\t\t\t\tgrs[x].setScore(median);\t\t\t\t\t\t\n\t\t\t\t\t\t\t//set start\n\t\t\t\t\t\t\tif (posStart == -1) posStart = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//not contained, has start been set? if so then check stop\n\t\t\t\t\t\telse if (posStart != -1 && posEnd == -1){\n\t\t\t\t\t\t\t//start has been set, stop has not, thus set stop to prior Gr position\n\t\t\t\t\t\t\tposEnd = x - 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutPostSgr.println(chrom +\"\\t\"+grs[x]);\n\t\t\t\t\t}\n\n\t\t\t\t\t//save data\n\t\t\t\t\tsegDatsAL.add(new SegDat(chrGenes[i], grs, posStart, posEnd));\n\t\t\t\t}\n\t\t\t}\n\t\t\tsegDats = new SegDat[segDatsAL.size()];\n\t\t\tsegDatsAL.toArray(segDats);\n\n\t\t\toutPreSgr.close();\n\t\t\toutPostSgr.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"private void analyseSamples(){\n EditText editTx;\n\n resetBackgrounds();\n\n MeasureSet measureSet;\n ArrayList<View> views = new ArrayList<View>();\n\n for(int y = 1; y <= rowCount; y++) {\n measureSet = new MeasureSet();\n views.clear();\n measureSet.copyUncertainty(measuredMag);\n for (int x = 1; x <= columnCount; x++) {\n editTx = (EditText) rootView.findViewById(Integer.parseInt(\"10\" + x + \"00\" + y)).findViewById(R.id.third_list_value);\n views.add(editTx);\n\n try {\n measureSet.add(Double.parseDouble(editTx.getText().toString()));\n } catch (Exception e) {\n editTx.setBackgroundResource(R.drawable.red_shape);\n Toast.makeText(getActivity(), getString(R.string.third_invalid_value), Toast.LENGTH_SHORT).show();\n return;\n }\n }\n\n if (!StatisticUtils.applyChauvenet(measureSet, views)) {\n Toast.makeText(getActivity(), getString(R.string.third_chauvenet_invalid_samples), Toast.LENGTH_SHORT).show();\n return;\n }\n\n measuredMag.addMeasureSet(measureSet);\n }\n\n ((MainActivity) getActivity()).callFragment(Constants.FINAL_STEP_FRAGMENT, mag1, mag2);\n }",
"public void printAverageRatingsByYearAfterAndGenre(){\n ThirdRatings sr = new ThirdRatings();\n int raters = sr.getRaterSize();\n System.out.println(\"read data for \" + raters + \" raters\");\n System.out.println(\"-------------------------------------\");\n \n //MovieDatabase.initialize(\"ratedmovies_short.csv\");\n MovieDatabase.initialize(\"ratedmoviesfull.csv\");\n System.out.println(\"read data for \" + MovieDatabase.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n \n AllFilters f = new AllFilters();\n YearAfterFilter y = new YearAfterFilter(1990);\n GenreFilter g = new GenreFilter(\"Drama\");\n f.addFilter(y);\n f.addFilter(g);\n int minRatings = 8;\n ArrayList<Rating> aveRat = sr.getAverageRatingsByFilter(minRatings, f);\n System.out.println(\"Found \" + aveRat.size() + \" movies\");\n System.out.println(\"-------------------------------------\");\n // sort arraylist\n Collections.sort(aveRat);\n for(Rating r: aveRat){\n System.out.println(r.getValue() + \"\\t\" \n + MovieDatabase.getYear(r.getItem()) + \"\\t\"\n + MovieDatabase.getTitle(r.getItem()) + \"\\t\"\n + MovieDatabase.getGenres(r.getItem()));\n }\n System.out.println(\"-------------------------------------\");\n \n \n }",
"@Override\n public void doEvaluation(ArrayList<Individual> sample, boolean isTrain, GeneticAlgorithm<Individual> GA) {\n for (Individual ind : sample) {\n if (!ind.isEvaluated()) {\n mainEvaluator.doEvaluation(ind, isTrain);\n GA.TrialsPlusPlus();\n ind.setNEval((int) GA.getTrials());\n }\n }\n\n if (isTrain) {\n // Now, apply the decay factor to all individuals in the population\n for (Individual ind : sample) {\n if (!ind.isEmpty()) {\n ArrayDeque<Boolean> aux = appearance.get(ind);\n if (aux != null) {\n Iterator<Boolean> iterator = aux.iterator();\n\n int exponent = -1;\n double decayFactor = 1.0;\n\n // Calculate the decay factor of this individual\n while (iterator.hasNext()) {\n if (!iterator.next()) {\n // The element was present, add to the decay factor\n decayFactor -= Math.pow(2, exponent);\n }\n exponent--;\n }\n\n // Now, get indivual's objectives and apply the dacay factor to all of them\n for (QualityMeasure obj : (ArrayList<QualityMeasure>) ind.getObjs()) {\n if (obj.getValue() >= 0) {\n obj.setValue(obj.getValue() * decayFactor);\n } else {\n // if the value is negative, to make it worst we need to divide\n obj.setValue(obj.getValue() / decayFactor);\n }\n }\n }\n }\n }\n // Once applied the decay factor, update the time structure, adding the new individuals.\n //updateAppearance(sample, GA.getCurrentClass());\n }\n }",
"public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"public void setPopulateAvg(String tmp) {\n this.populateAvg = DatabaseUtils.parseBoolean(tmp);\n }",
"@Test\r\n\tpublic void driverExhibitions10MoreSponsorhipsThanAvg() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateExhibitions10MoreSponsorhipsThanAvg((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"public void g() throws Rte6mainIOException\n\t{\n\t\tfinal String GS_FILE_NAME = \"/media/Data/asher/data/dev/alpha_system/rte6/RTE6_DEVSET/RTE6_Main_DEVSET_GS.xml\";\n\t\tAnswersFileReader afr = new DefaultAnswersFileReader();\n\t\tafr.setGoldStandard(false);\n\t\tafr.setXml(GS_FILE_NAME);\n\t\tafr.read();\n\t\tMap<String,Map<String,Set<SentenceIdentifier>>> answers = afr.getAnswers();\n\t\t\n\t\t\n\t\tAnswersFileWriter afw = new DefaultAnswersFileWriter();\n\t\tafw.setWriteTheEvaluationAttribute(true);\n\t\tafw.setAnswers(answers);\n\t\tafw.setXml(GS_FILE_NAME+\".my.xml\");\n\t\tafw.write();\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public static TrainEA constructNEATTrainer(NEATPopulation population,\n CalculateScore calculateScore) {\n final TrainEA result = new TrainEA(population, calculateScore);\n\n // Speciation\n result.setSpeciation(new NEATMSpeciation());\n\n // Selection\n result.setSelection(new TruncationSelection(result, 0.3));\n\n // Create compound operator for weight mutation\n CompoundOperator weightMutation = new CompoundOperator();\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(1), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(2), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(3), new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectProportion(0.004),\n new MutatePerturbLinkWeight(0.004)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(1), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(2), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectFixed(3), new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.1125,\n new NEATMutateWeights(new SelectProportion(0.02),\n new MutatePerturbLinkWeight(0.2)));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(1), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(2), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.03,\n new NEATMutateWeights(new SelectFixed(3), new MutateResetLinkWeight()));\n weightMutation.getComponents().add(0.01,\n new NEATMutateWeights(new SelectProportion(0.02), new MutateResetLinkWeight()));\n weightMutation.getComponents().finalizeStructure();\n\n // Champ operator limits mutation operator on best genome (seems unused for now)\n result.setChampMutation(weightMutation);\n\n // Add all the operators, probability should sum to 1\n result.addOperation(0.32, new NEATMCrossover());\n result.addOperation(0.375, weightMutation);\n result.addOperation(0.05, new NEATMMutateAddNode());\n result.addOperation(0.05, new NEATMutateAddLink());\n result.addOperation(0.005, new NEATMMutateRemoveLink());\n\n // Add the sensor position mutators\n CompoundOperator positionMutation = new CompoundOperator();\n OperationList positionMutationComponents = positionMutation.getComponents();\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(1), new MutatePerturbSensorParameter(5.0f, BEARING)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(2), new MutatePerturbSensorParameter(5.0f, BEARING)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(1), new MutatePerturbSensorParameter(5.0f, ORIENTATION)));\n positionMutationComponents.add(0.25, new NEATMMutateIndividualSensor(\n new SelectSensorsFixed(2), new MutatePerturbSensorParameter(5.0f, ORIENTATION)));\n positionMutationComponents.finalizeStructure();\n\n result.addOperation(0.1, positionMutation);\n\n // Add the sensor field mutators\n CompoundOperator fieldMutation = new CompoundOperator();\n OperationList fieldMutationComponents = fieldMutation.getComponents();\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(ULTRASONIC), new MutatePerturbSensorParameter(5.0f, RANGE)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(PROXIMITY), new MutatePerturbSensorParameter(5.0f, RANGE)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(ULTRASONIC),\n new MutatePerturbSensorParameter(5.0f, FIELD_OF_VIEW)));\n fieldMutationComponents.add(0.5, new NEATMMutateSensorGroup(\n new SelectSensorsType(PROXIMITY),\n new MutatePerturbSensorParameter(5.0f, FIELD_OF_VIEW)));\n fieldMutationComponents.finalizeStructure();\n\n result.addOperation(0.05, fieldMutation);\n\n // Add sensor mutation\n double connectionDensity = 0.1;\n CompoundOperator addSensorMutation = new CompoundOperator();\n OperationList addSensorComponents = addSensorMutation.getComponents();\n addSensorComponents.add(0.5, new NEATMMutateAddSensor(SensorType.PROXIMITY,\n connectionDensity, new MutateResetLinkWeight()));\n addSensorComponents.add(0.5, new NEATMMutateAddSensor(SensorType.ULTRASONIC,\n connectionDensity, new MutatePerturbLinkWeight(0.2)));\n addSensorComponents.finalizeStructure();\n\n result.addOperation(0.05, addSensorMutation);\n\n\n result.getOperators().finalizeStructure();\n\n result.setCODEC(new NEATMCODEC());\n\n return result;\n }",
"public void fillAvgTemplateValues() {\n\t\t//photoCounter keeps a record of the current location in the array wherein an average HSV value will be assigned\n\t\tint photoCounter = 0;\n\t\t//The length (number of images from source folder) that will be inserted into each row and each column \n\t\tint length = (int)Math.sqrt(imagePieces);\n\t\t\n\t\t//Creates the grid of average HSV values depending on where the top left coordinate of a subsection is \n\t\tfor(int r = 0; r < length; r++) {\n\t\t\tfor(int c = 0; c < length; c++) {\n\t\t\t\tint[] temp = new int[3];\n\t\t\t\t\n\t\t\t\t//If statement chain is present because if the row or column is 0, it assigns parameters manually to avoid dividing by 0\n\t\t\t\tif(r == 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r == 0 && c != 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV(0, (int)((height * c) / length), width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse if(r != 0 && c == 0) {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), 0, width/length, height/length);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttemp = backgroundImage.getAverageHSV((int)((width * r) / length), (int)((height * c) / length), width / length, height / length);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//To get H value\n\t\t\t\tavgTemplateValues[photoCounter][0] = temp[0];\n\t\t\t\t//To get S value\n\t\t\t\tavgTemplateValues[photoCounter][1] = temp[1];\n\t\t\t\t//To get V value\n\t\t\t\tavgTemplateValues[photoCounter][2] = temp[2];\n\t\t\t\tphotoCounter++;\n\t\t\t}\n\t\t}\n\t}",
"protected void evolve()\n\t\t{\tif(this_gen < NUMBER_GENERATIONS) {\n\t\t\t\t// Create a new generation.\n\t\t\t\tfloat avg_fit=Float.MIN_VALUE, max_fit=Float.MIN_VALUE, sum_fit=0;\n\t\t\t\tfloat tot_wait=0, avg_wait=0, tot_move=0, avg_move=0;\n\n\t\t\t\tfor(int i=0;i<NUMBER_INDIVIDUALS;i++) {\n\t\t\t\t\tfloat fit = calcFitness(inds[i]);\n\t\t\t\t\tinds[i].setFitness(fit);\n\t\t\t\t\tsum_fit\t += fit;\n\t\t\t\t\tmax_fit = fit>max_fit ? fit : max_fit;\n\t\t\t\t\ttot_wait += inds[i].getWait();\n\t\t\t\t\ttot_move += inds[i].getMove();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tavg_wait = tot_wait/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_move = tot_move/NUMBER_INDIVIDUALS;\n\t\t\t\tavg_fit = sum_fit/NUMBER_INDIVIDUALS;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Stats of prev. gen: (a-wait,a-move)=(\"+avg_wait+\",\"+avg_move+\")\"+\" (a-fit,mx-fit)=(\"+avg_fit+\",\"+max_fit+\")\");\n\t\t\t\tSystem.out.println(\"Evolving...\");\n\t\t\t\t\n\t\t\t\t// Sorts the current Individual-array on fitness, descending\n\t\t\t\tinds = sortIndsArr(inds);\n\t\t\t\t\n\t\t\t\tint num_mating = (int) Math.floor(NUMBER_INDIVIDUALS*(1-ELITISM_FACTOR));\n\t\t\t\tint num_elitism = (int) Math.ceil(NUMBER_INDIVIDUALS*ELITISM_FACTOR);\n\t\t\t\tif(num_mating%2!=0) {\n\t\t\t\t\tnum_mating--;\n\t\t\t\t\tnum_elitism++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tIndividual[] newInds = new Individual[NUMBER_INDIVIDUALS];\n\t\t\t\t\n\t\t\t\t// Tournament selection\n\t\t\t\tfor(int i=0;i<num_mating;i+=2) {\n\t\t\t\t\tIndividual mamma=null, pappa=null;\n\t\t\t\t\tfloat chn_mum = random.nextFloat();\n\t\t\t\t\tfloat chn_pap = random.nextFloat();\n\t\t\t\t\tfloat fit_mum, sum_fit2=0, sum_fit3=0;\n\t\t\t\t\tint index_mum = -1;\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tsum_fit2 += (inds[j].getFitness()/sum_fit);\n\t\t\t\t\t\tif(chn_mum <= sum_fit2) {\n\t\t\t\t\t\t\tmamma = inds[j];\n\t\t\t\t\t\t\tindex_mum = j;\n\t\t\t\t\t\t\tfit_mum = mamma.getFitness();\n\t\t\t\t\t\t\tsum_fit2 = sum_fit-fit_mum;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfor(int j=0;j<NUMBER_INDIVIDUALS;j++) {\n\t\t\t\t\t\tif(j!=index_mum) {\n\t\t\t\t\t\t\tsum_fit3 += (inds[j].getFitness()/sum_fit2);\n\t\t\t\t\t\t\tif(chn_pap <= sum_fit3) {\n\t\t\t\t\t\t\t\tpappa = inds[j];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//System.out.println(\"Mating...: \"+mamma.getFitness()+\",\"+pappa.getFitness());\n\t\t\t\t\tIndividual[] kids = mate(mamma, pappa);\n\t\t\t\t\tnewInds[i]\t= kids[0];\n\t\t\t\t\tnewInds[i+1]= kids[1];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Elitism\n\t\t\t\tfor(int i=0;i<num_elitism;i++) {\n\t\t\t\t\tnewInds[i+num_mating] = inds[i];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tinds = newInds;\t\t\t\t\t\t\t\t\n\t\t\t\tthis_gen++;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Done with evolving\");\n\t\t\t\t// set the best individual as the ruling champ?\n\t\t\t\t// do nothing\n\t\t\t\treturn;\n\t\t\t}\n\t\t}",
"public FloatMatrix getSynExpressionProfiles() {\r\n\t\treturn synExpressionProfile;\r\n\t}",
"public void addEvaluations(Evaluation eval) {\n\t\t\tevals.put(eval.alt,eval.crit, eval.val);\n\n\t }",
"private void setAverageColor(int x, int y, int n) {\n\t\tint[] avgValues = this.getAveragedValsOfSquare(x, y, n);\n\n\t\tfor (int i = x; i < (x+n); i++) {\n\t\t\tfor (int j = y; j < (y+n); j++) {\n\t\t\t\t// check for the border\n\t\t\t\tif (i < this.getPictureWidth() && j < this.getPictureHeight()) {\n\t\t\t\t\tthis.canvas.setPixelColor(i, j, avgValues[0],avgValues[1],avgValues[2]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}",
"@Test\r\n\tpublic void driverAvgStdArtorksPerExhibition() {\r\n\r\n\t\tfinal Object testingData[][] = {\r\n\r\n\t\t\t// testingData[i][0] -> usernamed of the logged Actor.\r\n\t\t\t// testingData[i][1] -> expected Exception.\r\n\r\n\t\t\t{\r\n\t\t\t\t// + 1) An administrator displays the statistics\r\n\t\t\t\t\"admin\", null\r\n\t\t\t}, {\r\n\t\t\t\t// - 2) An unauthenticated actor tries to display the statistics\r\n\t\t\t\tnull, IllegalArgumentException.class\r\n\t\t\t}, {\r\n\t\t\t\t// - 3) A visitor displays the statistics\r\n\t\t\t\t\"visitor1\", IllegalArgumentException.class\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tfor (int i = 0; i < testingData.length; i++) {\r\n\r\n\t\t\tthis.startTransaction();\r\n\r\n\t\t\tthis.templateAvgStdArtorksPerExhibition((String) testingData[i][0], (Class<?>) testingData[i][1]);\r\n\r\n\t\t\tthis.rollbackTransaction();\r\n\t\t\tthis.entityManager.clear();\r\n\t\t}\r\n\r\n\t}",
"private void calculateOverall()\n {\n ArrayList<Integer> average = new ArrayList<Integer>(1);\n ArrayList<Integer> median = new ArrayList<Integer>(1);\n ArrayList<Integer> mode = new ArrayList<Integer>();\n ArrayList<Integer> stdDev = new ArrayList<Integer>(1);\n \n int avg = 0;\n int med = 90;\n int mod = 90;\n int dev = 0;\n \n int[] modeArray = new int[100];\n \n for (int i = 0; i < 100; i++) {\n \tmodeArray[i] = 0;\n }\n \n for (Integer score : allScores) {\n \tavg += score;\n \tmodeArray[score]++;\n }\n \n for (int i = 0; i < 100; i++) {\n \tif (modeArray[i] > mod) {\n \t\tmod = modeArray[i];\n \t}\n }\n \n avg = avg / allScores.size();\n \n Collections.sort(allScores);\n med = allScores.get(allScores.size() / 2);\n \n for (Integer score : allScores) {\n \tdev += Math.pow(score - avg, 2);\n }\n dev = (int)Math.floor(Math.sqrt(dev / allScores.size()));\n\n // TODO: Perform the actual calculations here\n average.add(avg);\n median.add(med);\n mode.add(mod);\n stdDev.add(dev);\n\n this.overallAnalytics.put(\"Average\", average);\n this.overallAnalytics.put(\"Median\", median);\n this.overallAnalytics.put(\"Mode\", mode);\n this.overallAnalytics.put(\"Standard Deviation\", stdDev);\n }",
"protected HashMap generateExpressionMap(){\n System.out.println(\"Processing Expression Data into Hash\");\n HashMap tempHash = new HashMap();\n GraphObjAttributes nodeAttributes = cyNetwork.getNodeAttributes();\n for (Iterator nodeIt = cyNetwork.nodesIterator();nodeIt.hasNext();) {\n double [] tempArray = new double[attrNames.length];\n Node current = (Node)nodeIt.next();\n for(int j = 0;j<attrNames.length;j++){\n\tmRNAMeasurement tempmRNA = expressionData.getMeasurement(nodeAttributes.getCanonicalName(current),attrNames[j]);\n\tif(tempmRNA == null){\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(.5);\n\t}\n\telse{\n\t double sigValue = tempmRNA.getSignificance();\n\t if (sigValue < MIN_SIG) {\n\t sigValue = MIN_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MIN_SIG); \n\t } // end of if ()\n\t if (sigValue > MAX_SIG) {\n\t sigValue = MAX_SIG;\n\t System.out.println(\"Warning: value for \"+nodeAttributes.getCanonicalName(current)+\" adjusted to \"+MAX_SIG); \n\t } // end of if ()\n\t //transform the p-value into a z-value and store it in the array of z scores for this particular node\n\t tempArray[j] = ZStatistics.oneMinusNormalCDFInverse(sigValue);\n\t}\n }\n tempHash.put(current,tempArray);\n }\n System.out.println(\"Done processing into Hash\");\n return tempHash;\n }",
"private void addGeneSetInfo(DefaultMutableTreeNode root) {\n Object[][] results = new Object[this.resultMatrix.A.length][this.resultMatrix.A[0].length+1];\r\n for (int i=0; i<results.length; i++){\r\n \tfor (int j=1; j<results[0].length; j++){\r\n \t\tresults[i][j]= resultMatrix.A[i][j-1];\r\n \t}\r\n }\r\n\r\n for (int i=0; i<results.length; i++){\r\n \tresults[i][0] = geneListNames[i];\r\n }\r\n String[] columns = {\"Gene List\",\"Gene Count\", \"F-value\", \"p-value (permutation)\", \"p-value (approximate)\"};\r\n \r\n IViewer tabViewer = new GLOBALANCResultTable(results,columns);\r\n \troot.add(new DefaultMutableTreeNode(new LeafInfo(\"Results Table\", tabViewer, new Integer(0))));\r\n\t\t\r\n\t}",
"public void setExpression(PrimaryExpression e)\r\n {\r\n\tm_expression = e;\r\n\te.setParent(this, COL_EXPRESSION);\r\n }",
"public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }",
"public void average() {\n\t\tif (averaged)\n\t\t\tthrow new AssertionError(\"can't average twice!!\");\n\t\t\n\t\tscale = 1.0/(double)t;\n\t\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i] = (t+1.0)*w[i] - wupdates[i];\n\t\t\n\t\taveraged = true;\n\t\n\t}",
"public static double getGenderAvgWage(String g) throws Exception\r\n\t{\r\n\t\tFile file=new File(\"Data/Peopledetails.txt\");\r\n\t\tfs=new Scanner(file);\r\n\t\tfs.useDelimiter(\",|\\\\r\\n\");\r\n\t\t\t\r\n\t\ttotalWage=0;\r\n\t\tcount=0;\r\n\t\t\r\n\t\t\t\t\t\t\r\n\t\twhile (fs.hasNext())\r\n\t\t{\r\n\t\t\tid=fs.nextInt();\r\n\t\t\tfname=fs.next();\r\n\t\t\tsname=fs.next();\r\n\t\t\tgen=fs.next();\r\n\t\t\thrate=fs.nextDouble();\r\n\t\t\thrs=fs.nextDouble();\r\n\t\t\t\r\n\t\t\tgross=hrs*hrate;\r\n\t\t\t\r\n\t\t\t//Calculates the overtime\r\n\t\t\tif(hrs>40)\r\n\t\t\t{\r\n\t\t\t\totime=hrs-40;\r\n\t\t\t\tstandard=40;\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\totime=0;\r\n\t\t\t\tstandard=hrs;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgross=(standard*hrate+otime*hrate*1.5);\r\n\t\t\t\r\n\t\t\t/*if the gender is male, it takes the gross pay of that person, adds it to the total for male wages\r\n\t\t\tand also adds 1 to the male counter.*/\r\n\t\t\t//otherwise, adds it to the total for female wages and 1 to female counter.\r\n\t\t\tif(gen.equals(g))\r\n\t\t\t{\r\n\t\t\t\ttotalWage=gross+totalWage;\r\n\t\t\t\tcount+=1;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfs.close();\r\n\t\treturn totalWage/count;\r\n\t}",
"public void setDatasets(VerifiedSNP snp, String phenotype) {\r\n int overallMaxN = 0;\r\n double overallMaxSEM = 0;\r\n double overallMinSEM = -1;\r\n double overallMaxPercentile = 0;\r\n double overallMinPercentile = -1;\r\n double overallMaxMedian = 0;\r\n double overallMinMedian = -1;\r\n\r\n JsonObject snpDataObject = snp.getDataBaseEntry().getDataObject();\r\n \r\n //System.out.println(\"snpDataObject: \" + snpDataObject.toJson());\r\n \r\n Map <String, JsonObject> dataObjects = new HashMap();\r\n \r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObject = Json.createObject();\r\n dataObjects.put(sex, dataObject);\r\n \r\n dataObject.put(\"sex\", sex);\r\n dataObject.put(\"SNP ID\", snp.getDataBaseEntry().getAnnotation().get(\"Id\"));\r\n dataObject.put(\"phenotype\", phenotype);\r\n \r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) { \r\n //System.out.println(\"phenotype: \" + phenotype);\r\n //System.out.println(\"phenotype: \" + phenotype + \", object: \" + snpDataObject.getObject(phenotype).getObject(sex));\r\n JsonObject genotypeObject = snpDataObject.getObject(phenotype).getObject(sex).getObject(genotype);\r\n //System.out.println(\"genotypeObject: \" + genotypeObject.toJson());\r\n if (snpDataObject.getObject(phenotype).getBoolean(\"longitudinal\")) {\r\n List <String> nData = converter.jsonArrayToList(genotypeObject.get(\"N\"));\r\n String nMin = converter.minInteger(nData);\r\n String nMax = converter.maxInteger(nData);\r\n \r\n if (genotypeObject.hasKey(\"median\")) {\r\n List <String> medianData = converter.jsonArrayToList(genotypeObject.get(\"median\"));\r\n double medianMax = Double.parseDouble(converter.maxDouble(medianData)); \r\n if (medianMax > overallMaxMedian) {\r\n overallMaxMedian = medianMax;\r\n }\r\n double medianMin = Double.parseDouble(converter.minDouble(medianData));\r\n if (medianMin < overallMinMedian || overallMinMedian < 0) {\r\n overallMinMedian = medianMin;\r\n } \r\n }\r\n \r\n if (genotypeObject.hasKey(\"upper SEM\")) {\r\n List <String> upperSEMData = converter.jsonArrayToList(genotypeObject.get(\"upper SEM\"));\r\n double semMax = Double.parseDouble(converter.maxDouble(upperSEMData));\r\n if (semMax > overallMaxSEM) {\r\n overallMaxSEM = semMax;\r\n } \r\n }\r\n if (genotypeObject.hasKey(\"lower SEM\")) {\r\n List <String> lowerSEMData = converter.jsonArrayToList(genotypeObject.get(\"lower SEM\"));\r\n double semMin = Double.parseDouble(converter.minDouble(lowerSEMData));\r\n if (semMin < overallMinSEM || overallMinSEM < 0) {\r\n overallMinSEM = semMin;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"97.5%\")) {\r\n List <String> upperPercentileData = converter.jsonArrayToList(genotypeObject.get(\"97.5%\"));\r\n double percentileMax = Double.parseDouble(converter.maxDouble(upperPercentileData));\r\n if (percentileMax > overallMaxPercentile) {\r\n overallMaxPercentile = percentileMax;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"2.5%\")) {\r\n List <String> lowerPercentileData = converter.jsonArrayToList(genotypeObject.get(\"2.5%\"));\r\n double percentileMin = Double.parseDouble(converter.minDouble(lowerPercentileData));\r\n if (percentileMin < overallMinPercentile || overallMinPercentile < 0) {\r\n overallMinPercentile = percentileMin;\r\n }\r\n }\r\n\r\n\r\n String info = \"\";\r\n\r\n if (!nMax.equals(\"<5\")) {\r\n int currMax = Integer.parseInt(nMax);\r\n if (currMax > overallMaxN) {\r\n overallMaxN = currMax; \r\n } \r\n } \r\n String separator = \"\";\r\n if (nMin.equals(\"0\") && nMax.equals(\"0\")) {\r\n info = \"(no individuals)\";\r\n separator = \" \";\r\n }\r\n else if (nMin.equals(\"<5\") && nMax.equals(\"<5\")) {\r\n info = \"(less than 5 individuals)\";\r\n separator = \" \";\r\n }\r\n else {\r\n info = \"n ∈ [\" + nMin + \", \" + nMax + \"]\";\r\n separator = \", \";\r\n }\r\n jsonHelper.put(genotypeObject, \"labels\", Arrays.asList(new String[] {genotype + separator + info}));\r\n }\r\n dataObject.put(genotype, genotypeObject); \r\n \r\n }\r\n \r\n JsonObject numberObject = Json.createObject();\r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) {\r\n numberObject.put(genotype, dataObject.getObject(genotype).getArray(\"N\"));\r\n }\r\n //numberPlot.sendData(numberObject);\r\n }\r\n \r\n // when SEM or percentile data is missing, medians might provide the extreme values\r\n if (overallMinSEM > overallMinMedian) {\r\n overallMinSEM = overallMinMedian;\r\n }\r\n if (overallMinPercentile > overallMinMedian) {\r\n overallMinPercentile = overallMinMedian;\r\n }\r\n if (overallMaxSEM < overallMaxMedian) {\r\n overallMaxSEM = overallMaxMedian;\r\n }\r\n if (overallMaxPercentile < overallMaxMedian) {\r\n overallMaxPercentile = overallMaxMedian;\r\n }\r\n \r\n //System.out.println(\"dataObjects: \" + dataObjects);\r\n \r\n // enter extreme values and send\r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObjects.get(sex).put(\"SEM min\", overallMinSEM);\r\n dataObjects.get(sex).put(\"SEM max\", overallMaxSEM);\r\n dataObjects.get(sex).put(\"percentile max\", overallMaxPercentile);\r\n dataObjects.get(sex).put(\"percentile min\", overallMinPercentile);\r\n dataObjects.get(sex).put(\"n max\", overallMaxN);\r\n }\r\n femaleChart.sendData(dataObjects.get(\"female\"));\r\n maleChart.sendData(dataObjects.get(\"male\"));\r\n plotDataWindow.setTab(\"1\", dataObjects.get(\"female\").toJson(), \"female\");\r\n plotDataWindow.setTab(\"2\", dataObjects.get(\"male\").toJson(), \"male\"); \r\n }",
"@Test\n public final void testParseWhereExtraValue() throws Exception {\n\n try (InputStream is = this.getClass()\n .getResourceAsStream( \"/data/loader/expression/experimentalDesignTestExtra.txt\" )) {\n\n experimentalDesignImporter.importDesign( ee, is );\n }\n\n ee = this.eeService.thawLite( ee );\n\n Collection<BioMaterial> bms = new HashSet<>();\n for ( BioAssay ba : ee.getBioAssays() ) {\n BioMaterial bm = ba.getSampleUsed();\n bms.add( bm );\n }\n this.aclTestUtils.checkEEAcls( ee );\n\n this.checkResults( bms );\n }",
"public void calcAvg(){\n\t\taverage = hits/atbat;\n\t\t\n\t}",
"private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}",
"public static void increaseHygiene(int statIncreaseAmount) {\n double newHygiene = Sim.getHygiene() + statIncreaseAmount;\n\n if (newHygiene > MAX_PER_STAT) {\n Sim.setHygiene(MAX_PER_STAT);\n } else {\n Sim.setHygiene(newHygiene);\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tprivate void average(HashMap<Column, String> data, List<Expression> exp,\n\t\t\tFunction f) {\n\t\tString val = f.getParameters().toString();\n\t\tCreateTable ct = null;\n\t\tString datatype = null;\n\t\tfor (Map.Entry<Column, String> fields : data.entrySet()) {\n\n\t\t\tif ((getSchema().containsKey(fields.getKey().getTable().toString()))) {\n\t\t\t\tct = getSchema().get(fields.getKey().getTable().toString());\n\t\t\t\tList<ColumnDefinition> l = ct.getColumnDefinitions();\n\t\t\t\tfor (int i = 0; i < l.size(); i++) {\n\t\t\t\t\tif (l.get(i)\n\t\t\t\t\t\t\t.getColumnName()\n\t\t\t\t\t\t\t.equalsIgnoreCase((fields.getKey().getColumnName()))) {\n\t\t\t\t\t\tdatatype = l.get(i).getColDataType().toString();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\t// String sum_value=leafval.toString();\n\t\tString tmp = f.getName() + \"_\" + val;\n\t\tif (check.contains(tmp)) {\n\t\t\t// do nothing\n\t\t} else {\n\t\t\tcheck.add(tmp);\n\t\t}\n\t\t\n\t\tsum(data,exp, f);\n\t\tcount(data,exp, f);\n\t\tLeafValue sum = null;\n\t\tLeafValue count = null;\n\t\tfor(Map.Entry<String, LeafValue> mp : output.entrySet())\n\t\t{\n\t\t\tif(mp.getKey().contains(\"SUM_\" + val))\n\t\t\t{\n\t\t\t\tsum=mp.getValue();\n\t\t\t}\n\t\t\tif(mp.getKey().contains(\"COUNT_\" + val))\n\t\t\t{\n\t\t\t\tcount=mp.getValue();\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (datatype.equalsIgnoreCase(\"INT\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLong l1 = sum.toLong();\n\t\t\t\tLong l2 = count.toLong();\n\t\t\t\tLeafValue l = new LongValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t\t\n\t\t\t} catch (InvalidLeaf 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} else if (datatype.equalsIgnoreCase(\"DECIMAL\")) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tDouble l1 = sum.toDouble();\n\t\t\t\tDouble l2 = count.toDouble();\n\t\t\t\tLeafValue l = new DoubleValue(l1 / l2);\n\t\t\t\toutput.put(tmp, l);\n\t\t\t} catch (InvalidLeaf e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t\n\t\t\t}",
"@Test\n public void writeMultipleEntitiesWithMultipleProperties_shouldCalculateAverageAsExpected() {\n // Write multiple entities with multiple properties/\n Map<String, Double> firstEntityPropertiesValues = new HashMap<>();\n firstEntityPropertiesValues.put(PROPERTY_A, 1.0);\n firstEntityPropertiesValues.put(PROPERTY_B, 1.5);\n firstEntityPropertiesValues.put(PROPERTY_C, 2.0);\n writeEntityWithProperties(ENTITY_KIND, firstEntityPropertiesValues);\n\n Map<String, Double> secondEntityPropertiesValues = new HashMap<>();\n secondEntityPropertiesValues.put(PROPERTY_A, 0.0);\n secondEntityPropertiesValues.put(PROPERTY_B, 1.5);\n secondEntityPropertiesValues.put(PROPERTY_C, 0.0);\n writeEntityWithProperties(ENTITY_KIND, secondEntityPropertiesValues);\n\n Map<String, Double> thirdEntityPropertiesValues = new HashMap<>();\n thirdEntityPropertiesValues.put(PROPERTY_A, 2.0);\n thirdEntityPropertiesValues.put(PROPERTY_B, 1.5);\n thirdEntityPropertiesValues.put(PROPERTY_C, 4.0);\n writeEntityWithProperties(ENTITY_KIND, thirdEntityPropertiesValues);\n\n List<Entity> entities = retrieveEntities(ENTITY_KIND);\n Set<String> properties = new HashSet<>(Arrays.asList(PROPERTY_A, PROPERTY_B, PROPERTY_C));\n Map<String, Double> expectedResult = new HashMap<>();\n expectedResult.put(PROPERTY_A, 1.0);\n expectedResult.put(PROPERTY_B, 1.5);\n expectedResult.put(PROPERTY_C, 2.0);\n\n Map<String, Double> actualResult = Queries.average(entities, properties);\n\n assertThat(actualResult).containsExactlyEntriesIn(expectedResult);\n }",
"private String renderAverages(PetriNetView pnmldata, double[] data) {\n\t\treturn ResultsHTMLPane.makeTable(\n\t\t\t\tnew String[] {\n\t\t\t\t\t\t\"Average Number of Tokens on a Place\",\n\t\t\t\t\t\trenderLists(data, pnmldata.places(), new String[] {\n\t\t\t\t\t\t\t\t\"Place\", \"Number of Tokens\" }) }, 1, false,\n\t\t\t\tfalse, true, false);\n\t}",
"public static void main(String[] args) {\n ExamGrade eg1=new ExamGrade(60, 90);\n ExamGrade eg2=new ExamGrade(20, 60);\n ExamGrade eg3=new ExamGrade(55, 85);\n //instances of student \n Student s1=new Student(\"Barış\", \"Arslan\", \"male\", 3.4, \"CMPE\",eg1);\n Student s2=new Student(\"Fırat\", \"Arslan\", \"male\", 2.5, \"CMPE\", eg1);\n Student s3=new Student(\"ali\", \"mehmet\", \"male\", 1.0, \"EEN\", eg3);\n Student s4=new Student(\"ayşe\", \"pek\", \"female\", 3.0, \"EEN\", eg2);\n Student s5=new Student(\"kai\", \"pek\", \"male\", 3.1, \"TK\", eg2);\n\n Student[] a={s5,s3,s2,s1,s4}; //array for test \n Student[] b=generatedStudent(4); //describing genereted values to b because of testing\n show(b); //instance of show method\n findMinMax(b); //instance of findMinMax method\n \n System.out.println(search(a,118101));//instance of search method\n System.out.println(s2);//these control changeGrade before working method\n changeGrade(a, 118102, eg3);//instance of changeGrade method\n System.out.println(s2);//these control changeGrade after working method\n meanGPA(a);//instance of meanGPA \n }",
"public void printAverageRatingsByYearAfterAndGenre(){\n \n String moviefile = \"data/ratedmovies_short.csv\";\n String ratingsfile = \"data/ratings_short.csv\";\n \n \n ThirdRatings tr = new ThirdRatings(ratingsfile);\n \n int rating_size = tr.getRaterSize();\n \n System.out.println(\"The number of raters read is : \"+ rating_size);\n \n MovieDatabase database = new MovieDatabase();\n \n database.initialize(moviefile);\n \n int movie_size = database.size();\n \n System.out.println(\"The number of movies read is : \"+ movie_size); \n \n int year = 1980;\n String genre = \"Romance\";\n \n AllFilters all_filter = new AllFilters();\n GenreFilter gf = new GenreFilter(genre);\n YearAfterFilter yf = new YearAfterFilter(year);\n \n all_filter.addFilter(yf);\n all_filter.addFilter(gf);\n \n ArrayList<Rating> ratings_list = tr.getAverageRatingsByFilter(1, all_filter);\n \n HashMap<String, Double> map = new HashMap<String, Double>();\n \n Collections.sort(ratings_list);\n \n int count = 0; \n \n for(Rating rating : ratings_list){\n \n String title = database.getTitle(rating.getItem());\n \n double val = rating.getValue();\n \n String mov_genre = database.getGenres(rating.getItem());\n \n int mov_year = database.getYear(rating.getItem());\n \n if(val != 0.0 ){\n \n map.put(title , val);\n \n count += 1;\n\n System.out.println(val + \"\\t\" + mov_genre + \"\\t\" + mov_year + \"\\t\" + title );\n }\n\n }\n \n System.out.println(\"The number of movies found with minimal number of ratings is : \"+ count); \n \n \n }",
"public void calculateAverage() {\n\n if (turn == 1) {\n p1.setTotalScore(p1.getTotalScore() + turnScore);\n\n p1.setTotalDarts(p1.getTotalDarts() + 1);\n\n float p1Average = p1.getTotalScore() / p1.getTotalDarts();\n p1.setAverage(p1Average);\n\n } else if (turn == 2) {\n p2.setTotalDarts(p2.getTotalDarts() + 1);\n p2.setTotalScore(p2.getTotalScore() + turnScore);\n\n float p2Average = p2.getTotalScore() / p2.getTotalDarts();\n p2.setAverage(p2Average);\n }\n\n\n }",
"public void analyzeSetModified(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.analyzeSetModified(info);\n }",
"public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }",
"private void setEnergia(double nuovaEnergia)\r\n\t{\r\n\t\tif (nuovaEnergia > MAX) energia = MAX;\r\n\t\telse if (nuovaEnergia < 0.0) energia = 0.0;\r\n\t\telse energia = nuovaEnergia;\r\n\r\n\t\tstorico = allarga(storico);\r\n\r\n\t\tstorico[storico.length-1] = energia;\r\n\t\t\r\n\t}",
"void TruncPopulationAvgSize(double scale){\n\t\t\tint i,j;\n\t\t\tnode[] _nm;\n\t\t \tdouble sumSize,sizeThreshold; \t\n\t\t \t\n//\t\t \tdouble fitnessBefore;\n//\t\t \tdouble fitnessAfter;\n\t\t \t\n//\t\t\tdouble TheBestPrune, TheBestNotPrune;\n//\t\t \tdouble sumNotPrune, sumBeforePrune, sumAfterPrune;\n\t\t \t\n//\t\t \tlong starttime = System.currentTimeMillis();\n\t\t \t\n\t\t \tg_numberTrunc=0;\t\t \n\t\t \tg_TimePartTrunc=0.0;\n\t\t \tg_numTruncFalse=0;\n\t\t \t\n\t\t \t \t\t \n\t\t \tsumSize = oldpop[0].size;\n\t\t\t\n\t\t\tfor(i = 1; i < poplen; i++) {\t\t\t\t\n\t\t\t\tsumSize += oldpop[i].size;//\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tSystem.out.println(\"Tong:\"+sumSize);\n\t\t\tsumSize=sumSize /poplen;\n//\t\t\tSystem.out.println(\"Avg:\"+sumSize);\n\t\t\tsizeThreshold=sumSize+scale*sumSize;\n//\t\t\tSystem.out.println(\"Nguong:\"+sizeThreshold);\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n//\t\t\tTheBestPrune=HUGE_VAL;\n//\t\t \tTheBestNotPrune=HUGE_VAL;\n//\t\t \tsumNotPrune=0.0;\n//\t\t \tsumBeforePrune=0.0;\n//\t\t \tsumAfterPrune=0.0;\n\t\t \t\n\t\t\tfor(i = 0; i < poplen; i++){\n\t\t\t\t\n\t\t\t\tif(oldpop[i].size>sizeThreshold){\n//\t\t\t\t\tSystem.out.println(\"Vi tri:\"+i);\n\t\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t\t_nm=new node[1];\n\t\t\t\t\t\n\t\t\t\t\t//=====\n//\t\t\t\t\tif(oldpop[i].evaluated==FALSE){\n//\t\t\t\t\t\tfitnessBefore=ComputeRF(oldpop[i]);\n//\t\t\t\t\t}\n//\t\t\t\t\telse\n//\t\t\t\t\t{\n//\t\t\t\t\t\tfitnessBefore=oldpop[i].oldfitness;\n//\t\t\t\t\t}\n\t\t\t\t\t//====\n\t\t\t\t\t\n\t//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\t\tif(this.TruncateTreeGrow(oldpop[i], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\t\n\t\t\t\t\t\toldpop[i]=new individual();\n\t\t\t\t\t\toldpop[i].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\t\t\toldpop[i].evaluated=FALSE;\n\t\t//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n//\t\t\t\t\t\tfitnessAfter=ComputeRF(oldpop[i]);\n//\t\t\t\t\t\toldpop[i].oldfitness=fitnessAfter;\n//\t\t\t\t\t\toldpop[i].fitness=fitnessAfter;\n//\t\t\t\t\t\toldpop[i].evaluated=TRUE;\n\t\t\t\t\t\t\n\t\t\t\t\t\tg_numTrunc++;\n\t\t\t\t\t\t//=====================\n//\t\t\t\t\t\tsumBeforePrune=sumBeforePrune+fitnessBefore;\n//\t\t\t\t\t\tsumAfterPrune=sumAfterPrune+fitnessAfter;\t\t\t\t\t\n//\t\t\t\t\t\tif(TheBestPrune>fitnessAfter){\n//\t\t\t\t\t\t\tTheBestPrune=fitnessAfter;\n//\t\t\t\t\t\t}\n\t\t\t\t\t\t//================================\n\t\t\t\t\t\t\n//\t\t\t\t\t\tDecreaseAllFitness=DecreaseAllFitness+(fitnessBefore-fitnessAfter);\n//\t\t\t\t\t\tif(fitnessAfter<=fitnessBefore){\n//\t\t\t\t\t\t\tg_numOfBetter++;\t\t\t\t\t\t\n//\t\t\t\t\t\t\tDecreaseFitness=DecreaseFitness+(fitnessBefore-fitnessAfter);\n//\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tsumNotPrune=sumNotPrune+fitnessBefore;\n//\t\t\t\t\t\tif(TheBestNotPrune>fitnessBefore){\n//\t\t\t\t\t\t\tTheBestNotPrune=fitnessBefore;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\n//\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n//\t\t\t\telse\n//\t\t\t\t{\n//\t\t\t\t\tif(oldpop[i].evaluated==FALSE){\n//\t\t\t\t\t\tfitnessBefore=ComputeRF(oldpop[i]);\n//\t\t\t\t\t}\n//\t\t\t\t\telse\n//\t\t\t\t\t{\n//\t\t\t\t\t\tfitnessBefore=oldpop[i].oldfitness;\n//\t\t\t\t\t}\n//\t\t\t\t\t\n//\t\t\t\t\tsumNotPrune=sumNotPrune+fitnessBefore;\n//\t\t\t\t\tif(TheBestNotPrune>fitnessBefore){\n//\t\t\t\t\t\tTheBestNotPrune=fitnessBefore;\n//\t\t\t\t\t}\t\t\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//new\n\t\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tnumberTrunc[gen]=g_numberTrunc;\t\t\t\n\t\t\tTimePartTrunc[gen]=g_TimePartTrunc;\n\t\t\t\n\t\t\t\n\t\t\t\n//\t\t\t// Gan cac gia tri \n//\t\t\tavgFitnessNotPrune[gen]=sumNotPrune/(1.0*(poplen-g_numTrunc));\n//\t\t\t\t\t\t\n//\t\t\tavgFitnessBeforePrune[gen]=sumBeforePrune/(1.0*g_numTrunc);\t\t\t\n//\t\t\tavgFitnessAfterPrune[gen]=sumAfterPrune/(1.0*g_numTrunc);\n//\t\t\t\t\t\t\n//\t\t\tTheBestFitnessNotPrune[gen]=TheBestNotPrune;\n//\t\t\tTheBestFitnessPrune[gen]=TheBestPrune;\n//\t\t\t\t\n//\t\t\tif(TheBestNotPrune<TheBestPrune){\n//\t\t\t\tTheBestInNotPrune[gen]=1;\n//\t\t\t}\n//\t\t\telse{\n//\t\t\t\tTheBestInNotPrune[gen]=0;\n//\t\t\t}\n//\t\t\t\t\t\t\t\t\t\n//\t\t\tavgFitnessAllPopBefore[gen]=(sumNotPrune+sumBeforePrune)/(1.0*poplen);\t\t\t\n//\t\t\tavgFitnessAllPopAfter[gen]=(sumNotPrune+sumAfterPrune)/(1.0*poplen);\n//\t\t\t\t\t\t\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tif(sumBeforePrune<sumAfterPrune)\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tTheBestAvgInAllPopBefore[gen]=1;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tTheBestAvgInAllPopBefore[gen]=0;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\n//\t\t\t\t\t\t\n//\t\t\t\t\t\tif(avgFitnessNotPrune[gen]<avgFitnessAfterPrune[gen])\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tTheBestAvgInNotPrune[gen]=1;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\telse\n//\t\t\t\t\t\t{\n//\t\t\t\t\t\t\tTheBestAvgInNotPrune[gen]=0;\n//\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\t//===========================\n\t\t}",
"private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }",
"public static void main(String[] args) {\n String fileName = \"data1.txt\";\n \n \n //Load the data from the dataset file\n dataSet = getDataSet(fileName);\n \n //Setting up the output file\n String outputFileName = \"\";\n if (fileName.indexOf(\".\") > 0) {\n outputFileName = fileName.substring(0, fileName.lastIndexOf(\".\"));\n }\n \n createFile(outputFileName+\".csv\");\n \n //log the time the algorithm started\n long startTime = System.currentTimeMillis();\n \n //Placeholder of the fittest individual\n fittestIndividual = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n fittestIndividual.generateRulebase(); \n \n //Setup the mating pool\n matingPool = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n \n //used to run the GA multiple times without doing it manually\n //set to 1 because we want to run the GA once\n for (int a = 0; a < 1; a++) {\n currentBest = new Individual(GENE_SIZE, NUM_RULES, COND_LEN);\n currentBest.generateRulebase();\n\n //Generate a population\n generatePopulation();\n\n //Initial calculation of the fitness\n calculateFitness(population);\n\n for (int i = 0; i < GENERATION; i++) {\n average = 0; //reset the average\n currentBestArray[i] = currentBest.getFitness();\n \n tournamentSelect(population);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Perfrom crossover on the mating pool\n crossover(matingPool);\n\n //Mutation\n mutation(matingPool);\n\n //Calculate the fitness of the mating pool\n calculateFitness(matingPool);\n\n //Evaluate the current population\n for (Individual individual : matingPool) {\n if (individual.getFitness() > currentBest.getFitness()) {\n currentBest = new Individual(individual);\n }\n average = average + individual.getFitness();\n }\n \n\n //Replace the population with the new generation\n for (int j = 0; j < POP_SIZE; j++) {\n population[j] = new Individual(matingPool[j]);\n }\n \n averageArray[i] = average / POP_SIZE;\n }\n \n //Check whether the current best is fitter than the global fittest individual\n if (currentBest.fitness > fittestIndividual.fitness) {\n fittestIndividual = new Individual(currentBest);\n //copy the fittest individuals performance\n fittestArray = Arrays.copyOf(currentBestArray, currentBestArray.length);\n }\n }\n\n System.out.println(\"Best fitness generated for the dataset: \" + fittestIndividual.fitness);\n \n //output the rules\n printRules(fittestIndividual.getRulebase());\n \n //Save the performance data into the output file\n for (int i = 0; i < fittestArray.length; i++) {\n addToFile(i, fittestArray[i], averageArray[i]);\n }\n \n //close the file\n close();\n \n //Evaluate the fitness agaisnt the dataset\n calculateFitness(fittestIndividual);\n double accuracyPercentage = ((double) 100 / dataSet.size()) * fittestIndividual.fitness;\n System.out.format(\"%.2f%% accuracy on the datase set.\\n\", accuracyPercentage);\n \n //Log the duration it took\n long duration = System.currentTimeMillis() - startTime;\n System.out.println(\"Completed in \" + String.format(\"%02d min, %02d.%02d sec\",\n TimeUnit.MILLISECONDS.toMinutes(duration),\n TimeUnit.MILLISECONDS.toSeconds(duration)\n - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(duration)),\n TimeUnit.MILLISECONDS.toMillis(duration) - TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(duration))\n ));\n }",
"@Secured({ \"GROUP_AGENT\" })\n void recalculateExperimentBatchInfo( ExpressionExperiment ee );",
"@Test\n public void testAverageRisk2() throws IOException {\n Data data = getDataObject(\"./data/adult.csv\");\n // Risk before anonymization\n double risk = data.getHandle().getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.6465751607983555d);\n \n // Risk after anonymization\n risk = getAnonymizedData(data).getRiskEstimator(ARXPopulationModel.create(data.getHandle().getNumRows(), 0.1d)).getSampleBasedReidentificationRisk().getAverageRisk();\n assertTrue(\"Is: \" + risk, risk == 0.001922949406538028);\n }",
"public static void main(String[] args){\n ArrayList<Record> test = new ArrayList<>();\n test.add(new Record(1,91));\n test.add(new Record(1,92));\n test.add(new Record(2,93));\n test.add(new Record(2,99));\n test.add(new Record(2,98));\n test.add(new Record(2,97));\n test.add(new Record(1,60));\n test.add(new Record(1,58));\n test.add(new Record(2,100));\n test.add(new Record(1,61));\n\n System.out.print(firstFiveAverage.highFive(10,test));\n }",
"private void generalise(Instance newInst) throws Exception {\n\n Exemplar first = m_ExemplarsByClass[(int) newInst.classValue()];\n int n = 0;\n\n /* try to generalise with the n first exemplars */\n while(n < m_NumAttemptsOfGene && first != null){\n\t \n /* find the nearest one starting from first */\n Exemplar closest = first, cur = first;\n double smallestDist = first.squaredDistance(newInst), dist;\n while(cur.nextWithClass != null){\n\tcur = cur.nextWithClass;\n\tdist = cur.squaredDistance(newInst);\n\tif(dist < smallestDist){\n\t smallestDist = dist;\n\t closest = cur;\n\t}\n }\n\n /* remove the Examplar from NNge's lists */\n if(closest == first)\n\tfirst = first.nextWithClass;\n removeExemplar(closest); \n\n /* try to generalise */\n closest.preGeneralise(newInst);\n if(!detectOverlapping(closest)){\n\tclosest.validateGeneralisation();\n\taddExemplar(closest);\n\treturn;\n }\n\n /* it didn't work, put ungeneralised exemplar on the top of the lists */\n closest.cancelGeneralisation();\n addExemplar(closest);\t\t\t\n\n n++;\n }\n\n /* generalisation failled : add newInst as a new Examplar */\n Exemplar newEx = new Exemplar(this, m_Train, 5, newInst.classValue());\n newEx.generalise(newInst);\n initWeight(newEx);\n addExemplar(newEx);\n }",
"public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"protected void addExpressionImages(DefaultMutableTreeNode root) {\r\n DefaultMutableTreeNode node = new DefaultMutableTreeNode(\"Expression Images\");\r\n IViewer expViewer = new GLOBANCExperimentViewer(this.experiment, geneLists, null, null, null, null, null, null, null, null, null);\r\n int x=1; int y=2;\r\n for (int i=0; i<this.geneLists.length; i++) {\r\n \tnode.add(new DefaultMutableTreeNode(new LeafInfo(this.getNodeTitle(i, x, y), expViewer, new Integer(i))));\r\n \tif (i%2==1)\r\n \t\ty++;\r\n if (y>numGroups){\r\n \tx++;\r\n \ty=x+1;\r\n }\r\n }\r\n root.add(node);\r\n }",
"public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }",
"public void setAverageRating(double averageRating) {\n this.averageRating = averageRating;\n }",
"private TraceableFloat mutateGene(TraceableFloat a, float new_a_value, EvolutionState state){\n\n if(a.getValue() == new_a_value)//return the original gene if the value was not altered\n return a;\n\n double influence_factor_mut = Math.abs(a.getValue() - new_a_value) / (Math.abs(a.getValue()) + Math.abs(a.getValue() - new_a_value));\n double influence_factor_old = 1 - influence_factor_mut;\n\n List<TraceTuple> a_traceVector = new ArrayList<TraceTuple>();\n\n int i = 0; //index for this traceVector\n\n //check if we accumulate and the first element is already the mutation\n if(state.getAccumulateMutatioImpact() && a.getTraceVector().get(0).getTraceID() == state.getMutationCounter()){//if we accumulate mutation and the gene is influenced by mutation, accumulate that\n double oldScaledMutImpact = a.getTraceVector().get(0).getImpact() * influence_factor_old;\n a_traceVector.add(new TraceTuple(state.getMutationCounter(), influence_factor_mut + oldScaledMutImpact));\n i++; //increment i, as the first element of the traceList from a is already added\n } else { //add the new mutation ID if we don't accumulate or there is no mutation present bevore\n a_traceVector.add(new TraceTuple(state.getMutationCounter(), influence_factor_mut));\n }\n\n while(i < a.getTraceVector().size()){ //this iterates over the traceVector of this individual\n int currentAID = a.getTraceVector().get(i).getTraceID();\n double currentAImpact = a.getTraceVector().get(i).getImpact();\n\n a_traceVector.add(new TraceTuple(currentAID, influence_factor_old * currentAImpact));\n i++;\n }\n\n return new TraceableFloat(new_a_value, a_traceVector);\n }",
"public String[] getSimilarGenes(\r\n\t\t\tString synExpressionGroupName) {\r\n\t\t\r\n\t\treturn similarGeneGroups.get(synExpressionGroupName);\r\n\t}",
"void update(String selectedGene);",
"void convertSubsetToExperimentalFactor( ExpressionExperiment expExp, GeoSubset geoSubSet );",
"private AvgExpression() {\n }",
"protected void templateGroups75MoreAnnouncementsThanAvg(final String username, final Class<?> expected) {\r\n\r\n\t\tClass<?> caught = null;\r\n\r\n\t\t// 1. Log in \r\n\t\tthis.authenticate(username);\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// 2. Display the dashboard\r\n\t\t\tfinal List<Group> groupsRetrieved = new ArrayList<>(this.administratorService.getGroups75MoreAnnouncementsThanAvg());\r\n\r\n\t\t\t//Compute the values in order to check them\r\n\r\n\t\t\t//Compute the avg number of announcements in order to retrieve the list\r\n\t\t\tfinal List<Integer> announcementsPerGroup = new ArrayList<Integer>();\r\n\r\n\t\t\tfor (final Group g : this.groupService.findAll())\r\n\t\t\t\tannouncementsPerGroup.add(g.getAnnouncements().size());\r\n\r\n\t\t\tfinal Double avgAnnoncementPerGroup = this.computeAverage(announcementsPerGroup);\r\n\r\n\t\t\t//Get the list with more than such number\r\n\r\n\t\t\tfinal List<Group> groupsComputed = new ArrayList<Group>();\r\n\r\n\t\t\tfor (final Group g : this.groupService.findAll())\r\n\t\t\t\tif (g.getAnnouncements().size() * 1.0 > avgAnnoncementPerGroup * 1.75)\r\n\t\t\t\t\tgroupsComputed.add(g);\r\n\r\n\t\t\tAssert.isTrue(groupsRetrieved.equals(groupsComputed));\r\n\r\n\t\t} catch (final Throwable oops) {\r\n\t\t\tcaught = oops.getClass();\r\n\t\t}\r\n\r\n\t\tthis.unauthenticate();\r\n\t\tthis.checkExceptions(expected, caught);\r\n\t}",
"MixtureOfExperts(int nExperts){\r\n\t\twritePosteriorThreshold = 0.0;\r\n\t\testimationPosteriorThreshold = 0.0;\r\n\t\tnumberOfExperts = nExperts;\r\n\t\tlogProbOfCluster = new float[numberOfExperts];\r\n numberOfUsers = 0;\r\n \r\n\t}",
"int insertSelective(XPsDigest95thPercentileByAvgUs record);",
"public static void calculate_average_ratio1() {\n double sum = 0;\n\n for (int i = 0; i < Variables.pixels.size(); i++) {\n sum += Variables.pixels.get(i).getRatio1();\n }\n Variables.average_ratio1 = sum / Variables.pixels.size();\n }"
] | [
"0.60047936",
"0.49998412",
"0.49995297",
"0.49943098",
"0.49794868",
"0.49451828",
"0.48579407",
"0.4766455",
"0.47481173",
"0.47464943",
"0.47444606",
"0.47427937",
"0.4710991",
"0.4643957",
"0.4613184",
"0.45928517",
"0.4591761",
"0.4578058",
"0.45767847",
"0.45683315",
"0.4534067",
"0.4518977",
"0.45172548",
"0.45078236",
"0.44891688",
"0.44665956",
"0.4462197",
"0.44519675",
"0.44499028",
"0.44431704",
"0.44358468",
"0.44194075",
"0.44091365",
"0.44030112",
"0.43943912",
"0.43841863",
"0.43805385",
"0.4372567",
"0.43643516",
"0.43575832",
"0.43464065",
"0.43431863",
"0.43329388",
"0.43187103",
"0.4314029",
"0.4312318",
"0.4296771",
"0.4292699",
"0.42899507",
"0.4288345",
"0.4279532",
"0.42620575",
"0.42584208",
"0.425839",
"0.42572346",
"0.42469755",
"0.42421553",
"0.4241468",
"0.42412576",
"0.4240993",
"0.4240026",
"0.42385378",
"0.4233838",
"0.4230825",
"0.42296526",
"0.4228728",
"0.4220328",
"0.42161834",
"0.42125833",
"0.42078757",
"0.42068702",
"0.41960332",
"0.41914785",
"0.41893286",
"0.41883188",
"0.41877466",
"0.41875967",
"0.41869533",
"0.4181292",
"0.41764212",
"0.41692698",
"0.41521916",
"0.41453803",
"0.41411138",
"0.41379526",
"0.41311324",
"0.41285986",
"0.41242018",
"0.41224617",
"0.41221786",
"0.41221786",
"0.41180474",
"0.41129014",
"0.41028714",
"0.409442",
"0.40940583",
"0.4092201",
"0.40921763",
"0.40915143",
"0.40878403"
] | 0.6236699 | 0 |
Sets genes having same profile as ones in present in requested synexpression group | public void setSimilarGenes(String name, String[] groups) {
if(!similarGeneGroups.containsKey(name)) {
similarGeneGroups.put(name, groups);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void syncProfileSelection() {\r\n\t\tfor (int i = 0; i < selectedProfiles.size(); i++) {\r\n\t\t\tselectedProfiles.set(i, tableSelectionPD.isProfileSelected(i));\r\n\t\t}\r\n\t}",
"private void setProfileUNr(){\n Set<Hole> holeSet = createHoleSetWithUNr();\n\n for (Profile profile:profiles){\n\n for (Hole hole:profile.getHoles()) {\n setHoleUNr(hole,holeSet);\n }\n\n }\n }",
"public void GenSetAnnotation(List<String> symb) throws Exception {\t\t\n\t\tString module = \"GS_\"+((int)(Math.random()*10000));\n\t\tSystem.out.println(\"Your module name is: \"+module);\n\t\tString workspace = \"results/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdir();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"GO:0008150\";\n//\t\t\tfor( String sub: this.go.subontology.keySet()) {\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace+\"newBriefings_Incomplete/OwnModules/\"+module+\"/is_a/\";\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\tWrite.exportSSM(go, sub, this.goa,listTerm, symb,export+\"/SemanticMatrix\"); // computed and export the semantic similarity\n\n\t\t\t\tString[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetric(module, ic,sub,methods, \"average\", new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"public void analyzeSetModified(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n objGen.analyzeSetModified(info);\n }",
"private void stripDownGeneData(String[] targetGenes) {\n String[][] newGene2GO = new String[targetGenes.length][];\n int index = 0;\n for (String target : targetGenes) {\n for (int i = 0; i < this.genes.length; i++) {\n if (target.equals(this.genes[i]) == true) {\n newGene2GO[index] = this.goIdsByGene[i];\n index++;\n }\n }\n }\n this.genes = targetGenes;\n this.goIdsByGene = newGene2GO;\n boolean nulltest = false;\n for (int i = 0; i < newGene2GO.length; i++) {\n if (newGene2GO[i] == null) {\n nulltest = true;\n break;\n }\n }\n if (nulltest == true) {\n try {\n this.logwriter.logAndCloseWriter(\"############ERROR: Gene ids not found in GOA file\");\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n } catch (IOException io) {\n System.err.println(\"ERROR: Gene IDs entered could not be found in the GOA file supplied\");\n System.exit(-1);\n }\n }\n }",
"private void checkAssociatedProfilesForDupeNames(Command command) {\n List<DeviceProfile> profiles = profileDao.getAssociatedProfilesForCommand(command);\n profiles.forEach(p -> profileDao.checkCommandNames(p.getCommands(), command.getName()));\n }",
"public void setSimilarGeneExpressionProfile(FloatMatrix fm) {\r\n\t\taverageExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\taverageExpressionProfile=fm;\r\n\t}",
"public void setSynExpressionProfiles(FloatMatrix fm) {\r\n\t\tsynExpressionProfile=new FloatMatrix(fm.getRowDimension(), fm.getColumnDimension());\r\n\t\tsynExpressionProfile=fm;\r\n\t\t\r\n\t}",
"private void setSubProfiles(Vector subs)\n {\n subProfiles = subs;\n }",
"public abstract void updateCurGene(int mid);",
"protected abstract Profile[] getProfileSet();",
"void update(String selectedGene);",
"private void setPairs() {\r\n\t\tif (this.gragraNames.getSelectedValue() != null) {\r\n\t\t\tString nameStr = (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\tString name = nameStr;\r\n\t\t\t\tint indx = nameStr.indexOf(\"(\");\r\n\t\t\t\tif (indx != -1)\r\n\t\t\t\t\tname = nameStr.substring(0, indx);\r\n\t\t\t\t// System.out.println(nameStr+\" \"+name);\r\n\t\t\t\tif (name.equals(gragra.getName())) {\r\n\t\t\t\t\tthis.criticalPairGraGra = gragra;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (this.criticalPairGraGra == null && this.stopGraph != null)\r\n\t\t\t\tthis.criticalPairGraGra = this.stopGraph;\r\n\t\t} else if (this.stopGraph != null) {\r\n\t\t\tthis.criticalPairGraGra = this.stopGraph;\r\n\t\t}\r\n\t}",
"private boolean equalGenotypes(String g1, String g2){\n HashSet<String> gt1 = new HashSet (Arrays.asList( String.valueOf(g1.charAt(0)), String.valueOf(g1.charAt(1)) ));\n HashSet<String> gt2 = new HashSet (Arrays.asList( String.valueOf(g2.charAt(0)), String.valueOf(g2.charAt(1)) ));\n return gt1.equals(gt2);\n }",
"public void setGeneSetName(String name) {\r\n\t\tgeneSetName=name;\r\n\r\n\t}",
"private void syncProfileNames() {\r\n\t\tfor (int i = 0; i < parsedProfiles.size(); i++) {\r\n\t\t\tparsedProfiles.get(i).setName(tableSelectionPD.getProfileName(i));\r\n\t\t}\r\n\t}",
"void modusponens(){\n\t\tHashMap<String,HashSet<Hypothesis> > temp_lhs_hypo = new HashMap<String,HashSet<Hypothesis> >();\n\t\tHashSet<Hypothesis> new_hypos = new HashSet<Hypothesis>();\n\t\t\n\t\t//Utils.println(\"hypothesis list\");\n\t\tIterator it = hypothesis.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t String A = (String)pairs.getKey();\n\t //Utils.println(\"hypothesis A : \"+A);\n\t HashSet<Hypothesis> A_B = new_lhs_hypo.get(A);\n\t if(A_B == null) {\n\t \t//Utils.println(\"No match\");\n\t \tcontinue;\n\t \t}\n\t else{\n\t \t//Utils.println(\"Matched: \"+A_B.size());\n\t \tIterator bit = A_B.iterator();\n\t \twhile (bit.hasNext()) {\n\t \t Hypothesis A_B_hypo = (Hypothesis)bit.next();\n\t\t \tHypothesis mp_hypo = makeHypothesis(A_B_hypo.rhs, 1, -1, A, A_B_hypo.expression);\n\t\t \tif(mp_hypo!=null) {\n\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t \t\t//Utils.println(\"Existing MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t \t\t//already existing\n\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t \t//Utils.println(\"New MP result: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t\t\t }\n\t\t \t}else{\n\t\t \t\t//Utils.println(\"MP Not Valid: \"+A_B_hypo.rhs+\" on \"+A+\" and \"+A_B_hypo.expression);\n\t\t \t}\n\t\t }\n\t }\n\t }\n\t \n\t //Utils.println(\"new hypothesis list\");\n\t it = new_lhs_hypo.entrySet().iterator();\n\t while (it.hasNext()) {\n\t Map.Entry pairs = (Map.Entry)it.next();\n\t HashSet<Hypothesis> hypos = (HashSet<Hypothesis>) pairs.getValue();\n\t Iterator<Hypothesis> Ait = hypos.iterator();\n\t while(Ait.hasNext()){\n\t \tString A = ((Hypothesis)Ait.next()).expression;\n\t \t//Utils.println(\"hypothesis A : \"+A);\n\t \tHashSet<String> B_set = lhs_hypo.get(A);\n\t \tif(B_set == null){\n\t \t\t//Utils.println(\"No match\");\n\t \t\tcontinue;\n\t \t\t}\n\t \telse{\n\t \t\t//Utils.println(\"Matched: \"+B_set.size());\n\t \t\tIterator Bit = B_set.iterator();\n\t\t \twhile(Bit.hasNext()){\n\t\t \t\tString B_str = (String) Bit.next();\n\t\t \t\tString A_B_exp = Utils.expression(A, B_str);\n\t\t \t\tHypothesis mp_hypo = makeHypothesis(B_str, 1, -1, A, A_B_exp);\n\t\t \t\tif(mp_hypo!=null) {\n\t\t\t \t\tnew_hypos.add(mp_hypo);\n\t\t\t\t \tif(hypothesis.containsKey(mp_hypo.expression)) {\n\t\t\t\t \t\t//Utils.println(\"Existing MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t \t\t//already existing\n\t\t\t\t\t }else{// new hypothesis has resulted\n\t\t\t\t\t \t//Utils.println(\"New MP result: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t\t\t }\n\t\t\t \t}else{\n\t\t\t \t\t//Utils.println(\"MP Not Valid: \"+B_str+\" on \"+A+\" and \"+A_B_exp);\n\t\t\t \t}\n\t\t \t}\n\t \t}\n\t \t\n\t }\n\t }\n\t \n\t //Utils.println(\"Size of new_hypos: \"+new_hypos.size());\n\t \n\t Iterator<Hypothesis> hit = new_hypos.iterator();\n\t while(hit.hasNext()){\n\t \tHypothesis mp_hypo = hit.next();\n\t \tboolean b = insertHypothesis(mp_hypo);\n\t \tif(b){\n\t \t\tHashSet<Hypothesis> temp_hypos = temp_lhs_hypo.get(mp_hypo.lhs);\n\t \tif(temp_hypos == null){\n\t \t\ttemp_hypos = new HashSet<Hypothesis>();\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t\ttemp_lhs_hypo.put(mp_hypo.lhs, temp_hypos);\n\t \t}else{\n\t \t\ttemp_hypos.add(mp_hypo);\n\t \t}\n\t \t//Utils.printHypothesis(mp_hypo);\n\t \t}\n\t }\n\t \n\n\t //Utils.println(\"Size of temp_lhs_hypo: \"+temp_lhs_hypo.size());\n\t \n\t new_lhs_hypo.clear();\n\t new_lhs_hypo = temp_lhs_hypo;\n\t if(new_lhs_hypo.size()!=0) modusponens();\n\t}",
"public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n tempPopulation.add(Genotype.Mate(rouletteSelection(),\n rouletteSelection(), crossoverProbability));\n }\n }",
"private void computeStoneGroups() {\n stoneGroups = new ArrayList<>();\n for (Stone stone : getStones()) {\n if (!stoneGroups.contains(stone.getStoneGroup())) {\n stoneGroups.add(stone.getStoneGroup());\n }\n }\n }",
"public void generateGenes() {\n\t\tfor(int i = 0; i < geneNumber; i++){\n\t\t\tdouble[] vector = new double[NUM_HEURISTICS];\n\t\t\tfor(int j = 0; j < NUM_HEURISTICS; j++){\n\t\t\t\t// To get a number in [-0.5, 0.5)\n\t\t\t\tvector[j] = Math.random() - 0.5;\n\t\t\t}\n\t\t\tGene newGene = new Gene(vector, true);\n\t\t\tgenepool.add(newGene);\n\t\t}\n\t}",
"public static void mutation(Individual[] individuals) {\n for (int i = 0; i < POP_SIZE; i++) {\n for (int j = 0; j < GENE_SIZE; j++) {\n double randomNum = Math.random();\n if (randomNum < MUTATION_RATE) {\n randomNum = Math.random();\n ArrayList<String> bitsList = (ArrayList<String>) bits.clone();\n for (int g = 0; g < bitsList.size(); g++) {\n if (individuals[i].gene[j].equals(bitsList.get(g))) {\n String bit = bitsList.get(g);\n bitsList.remove(g);\n int index;\n if (randomNum < 0.5) {\n index = 0;\n } else {\n index = 1;\n }\n individuals[i].gene[j] = bitsList.get(new Random().nextInt(2));\n bitsList.add(bit);\n }\n }\n }\n }\n individuals[i].generateRulebase();\n }\n matingPool = Arrays.copyOf(individuals, individuals.length);\n }",
"public abstract void setProteins(Map<String, Protein> proteins);",
"private void modifyIndividuals(){\n for(AbstractBehaviour behaviour: entityBehaviours){\n JSONObject jsonPop = null;\n GeneticInterface gi = interfaceMap.get(behaviour);\n try {\n jsonPop = gi.receiveNewPopulation();\n } catch (IOException e) {\n e.printStackTrace();\n }\n for(String key: jsonPop.keySet()){\n JSONArray funArray = jsonPop.getJSONObject(key).getJSONArray(\"functions\");\n List<Function> functions = new LinkedList<>();\n for(int a = 0; a <funArray.length(); a++){\n String tree = funArray.getString(a);\n Function functionTree = Node.treeFromString(tree, behaviour.getNumberOfInputs());\n functions.add(functionTree);\n }\n behaviour.setEntityByName(key, functions);\n }\n behaviour.resetEntities();\n }\n }",
"public void setDatasets(VerifiedSNP snp, String phenotype) {\r\n int overallMaxN = 0;\r\n double overallMaxSEM = 0;\r\n double overallMinSEM = -1;\r\n double overallMaxPercentile = 0;\r\n double overallMinPercentile = -1;\r\n double overallMaxMedian = 0;\r\n double overallMinMedian = -1;\r\n\r\n JsonObject snpDataObject = snp.getDataBaseEntry().getDataObject();\r\n \r\n //System.out.println(\"snpDataObject: \" + snpDataObject.toJson());\r\n \r\n Map <String, JsonObject> dataObjects = new HashMap();\r\n \r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObject = Json.createObject();\r\n dataObjects.put(sex, dataObject);\r\n \r\n dataObject.put(\"sex\", sex);\r\n dataObject.put(\"SNP ID\", snp.getDataBaseEntry().getAnnotation().get(\"Id\"));\r\n dataObject.put(\"phenotype\", phenotype);\r\n \r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) { \r\n //System.out.println(\"phenotype: \" + phenotype);\r\n //System.out.println(\"phenotype: \" + phenotype + \", object: \" + snpDataObject.getObject(phenotype).getObject(sex));\r\n JsonObject genotypeObject = snpDataObject.getObject(phenotype).getObject(sex).getObject(genotype);\r\n //System.out.println(\"genotypeObject: \" + genotypeObject.toJson());\r\n if (snpDataObject.getObject(phenotype).getBoolean(\"longitudinal\")) {\r\n List <String> nData = converter.jsonArrayToList(genotypeObject.get(\"N\"));\r\n String nMin = converter.minInteger(nData);\r\n String nMax = converter.maxInteger(nData);\r\n \r\n if (genotypeObject.hasKey(\"median\")) {\r\n List <String> medianData = converter.jsonArrayToList(genotypeObject.get(\"median\"));\r\n double medianMax = Double.parseDouble(converter.maxDouble(medianData)); \r\n if (medianMax > overallMaxMedian) {\r\n overallMaxMedian = medianMax;\r\n }\r\n double medianMin = Double.parseDouble(converter.minDouble(medianData));\r\n if (medianMin < overallMinMedian || overallMinMedian < 0) {\r\n overallMinMedian = medianMin;\r\n } \r\n }\r\n \r\n if (genotypeObject.hasKey(\"upper SEM\")) {\r\n List <String> upperSEMData = converter.jsonArrayToList(genotypeObject.get(\"upper SEM\"));\r\n double semMax = Double.parseDouble(converter.maxDouble(upperSEMData));\r\n if (semMax > overallMaxSEM) {\r\n overallMaxSEM = semMax;\r\n } \r\n }\r\n if (genotypeObject.hasKey(\"lower SEM\")) {\r\n List <String> lowerSEMData = converter.jsonArrayToList(genotypeObject.get(\"lower SEM\"));\r\n double semMin = Double.parseDouble(converter.minDouble(lowerSEMData));\r\n if (semMin < overallMinSEM || overallMinSEM < 0) {\r\n overallMinSEM = semMin;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"97.5%\")) {\r\n List <String> upperPercentileData = converter.jsonArrayToList(genotypeObject.get(\"97.5%\"));\r\n double percentileMax = Double.parseDouble(converter.maxDouble(upperPercentileData));\r\n if (percentileMax > overallMaxPercentile) {\r\n overallMaxPercentile = percentileMax;\r\n }\r\n }\r\n if (genotypeObject.hasKey(\"2.5%\")) {\r\n List <String> lowerPercentileData = converter.jsonArrayToList(genotypeObject.get(\"2.5%\"));\r\n double percentileMin = Double.parseDouble(converter.minDouble(lowerPercentileData));\r\n if (percentileMin < overallMinPercentile || overallMinPercentile < 0) {\r\n overallMinPercentile = percentileMin;\r\n }\r\n }\r\n\r\n\r\n String info = \"\";\r\n\r\n if (!nMax.equals(\"<5\")) {\r\n int currMax = Integer.parseInt(nMax);\r\n if (currMax > overallMaxN) {\r\n overallMaxN = currMax; \r\n } \r\n } \r\n String separator = \"\";\r\n if (nMin.equals(\"0\") && nMax.equals(\"0\")) {\r\n info = \"(no individuals)\";\r\n separator = \" \";\r\n }\r\n else if (nMin.equals(\"<5\") && nMax.equals(\"<5\")) {\r\n info = \"(less than 5 individuals)\";\r\n separator = \" \";\r\n }\r\n else {\r\n info = \"n ∈ [\" + nMin + \", \" + nMax + \"]\";\r\n separator = \", \";\r\n }\r\n jsonHelper.put(genotypeObject, \"labels\", Arrays.asList(new String[] {genotype + separator + info}));\r\n }\r\n dataObject.put(genotype, genotypeObject); \r\n \r\n }\r\n \r\n JsonObject numberObject = Json.createObject();\r\n for (String genotype : new String[] {\"AA\", \"AB\", \"BB\"}) {\r\n numberObject.put(genotype, dataObject.getObject(genotype).getArray(\"N\"));\r\n }\r\n //numberPlot.sendData(numberObject);\r\n }\r\n \r\n // when SEM or percentile data is missing, medians might provide the extreme values\r\n if (overallMinSEM > overallMinMedian) {\r\n overallMinSEM = overallMinMedian;\r\n }\r\n if (overallMinPercentile > overallMinMedian) {\r\n overallMinPercentile = overallMinMedian;\r\n }\r\n if (overallMaxSEM < overallMaxMedian) {\r\n overallMaxSEM = overallMaxMedian;\r\n }\r\n if (overallMaxPercentile < overallMaxMedian) {\r\n overallMaxPercentile = overallMaxMedian;\r\n }\r\n \r\n //System.out.println(\"dataObjects: \" + dataObjects);\r\n \r\n // enter extreme values and send\r\n for (String sex : new String[] {\"female\", \"male\"}) {\r\n dataObjects.get(sex).put(\"SEM min\", overallMinSEM);\r\n dataObjects.get(sex).put(\"SEM max\", overallMaxSEM);\r\n dataObjects.get(sex).put(\"percentile max\", overallMaxPercentile);\r\n dataObjects.get(sex).put(\"percentile min\", overallMinPercentile);\r\n dataObjects.get(sex).put(\"n max\", overallMaxN);\r\n }\r\n femaleChart.sendData(dataObjects.get(\"female\"));\r\n maleChart.sendData(dataObjects.get(\"male\"));\r\n plotDataWindow.setTab(\"1\", dataObjects.get(\"female\").toJson(), \"female\");\r\n plotDataWindow.setTab(\"2\", dataObjects.get(\"male\").toJson(), \"male\"); \r\n }",
"public Geneset(){\r\n\t\tthis.geneSetElements=new ArrayList();\r\n\t\r\n\t}",
"public int mutateGene(int gene);",
"@DataProvider(name = \"toyIntegratedVariants\")\n public Object[][] getAnnotateStructuralVariantTestData() {\n return new Object[][]{\n { createVariantContext(\"chr1\", 10, 50, null, null, null,\n \"<CNV>\", 40, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 50, 450, null, null, null,\n \"<DEL>\", 400, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.LOF, GATKSVVCFConstants.NONCODING_BREAKPOINT,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA1\", \"DNase\", false)) },\n { createVariantContext(\"chr1\", 1100, 1700, null, null, null,\n \"<INV>\", 600, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_SPAN, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 1300, 1800, null, null, null,\n \"<INS:LINE1>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.NONCODING_BREAKPOINT, GATKSVVCFConstants.NEAREST_TSS,\n GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"Enhancer\", \"EMMA1\", true)) },\n { createVariantContext(\"chr1\", 2000, 2200, null, null, null,\n \"<DUP>\", 42, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.DUP_PARTIAL,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", false)) },\n { createVariantContext(\"chr1\", 3100, 3300, null, null, null,\n \"<DUP>\", 200, null, null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER,GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(\"EMMA2\", true)) },\n // check annotate promoter for all segments in multi-segment SV\n { createVariantContext(\"chr1\", 30, 30, \"chr1\", 3030, null,\n \"<BND>\", null, \"-+\", null, null),\n createAttributesMap(\n Arrays.asList(GATKSVVCFConstants.PROMOTER, GATKSVVCFConstants.INTERGENIC),\n Arrays.asList(Arrays.asList(\"EMMA1\", \"EMMA2\"), true)) }\n };\n }",
"private void uniformMutation(){\n Random random = new Random();\n double newValue = random.nextGaussian()*16.6 + 50.0;\n if(newValue < 0) newValue = 0;\n if(newValue > 100) newValue = 100;\n int gene = random.nextInt(6);\n switch (gene){\n case 0 : this.x1 = newValue; break;\n case 1 : this.x2 = newValue; break;\n case 2 : this.x3 = newValue; break;\n case 3 : this.y1 = newValue; break;\n case 4 : this.y2 = newValue; break;\n case 5 : this.y3 = newValue; break;\n }\n }",
"public void analyzeSetReference(AnalyzeInfo info)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n\n // php/3a6f\n objGen.analyzeSetReference(info);\n }",
"public void findExpressedGenes(){\n\t\tHashMap exp = new HashMap();\n\t\t//instantiate Bar parser\n\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t//for each chromosome in select\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\t//get genes\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\t//calculate medians\n\t\t\tbarParser.calculateMedians(chrGenes);\n\t\t\tArrayList expressedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\tif (chrGenes[i].getScores()[0] >= threshold ) {\n\t\t\t\t\texpressedGenes.add(chrGenes[i]);\n\t\t\t\t\t//System.out.println(chrGenes[i].simpleToString()+ chrGenes[i].getScore());\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenes = new UCSCGeneLine[expressedGenes.size()];\n\t\t\texpressedGenes.toArray(chrGenes);\n\t\t\tSystem.out.println(\"\\tExpressed \"+chrom+\"\\t\"+ chrGenes.length);\n\t\t\texp.put(chrom, chrGenes);\n\t\t}\n\t\tgenesSelect = exp;\n\t}",
"public void findIsolatedGenes(){\n\t\tHashMap isolated = new HashMap();\n\t\t//for each chromosome\n\t\tIterator it = genesSelect.keySet().iterator();\n\t\twhile (it.hasNext()){\n\t\t\tString chrom = (String)it.next();\n\t\t\tUCSCGeneLine[] chrGenesAll = (UCSCGeneLine[])genesAll.get(chrom);\n\t\t\tUCSCGeneLine[] chrGenesSelect = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\tSystem.out.println(\"\\tTotal \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tArrayList isolatedGenes = new ArrayList();\n\t\t\t//for each gene look for intersection after expanding\n\t\t\tfor (int i=0; i< chrGenesSelect.length; i++){\n\t\t\t\t//expand size of gene\n\t\t\t\tint start = chrGenesSelect[i].getTxStart() - extension;\n\t\t\t\tint end = chrGenesSelect[i].getTxEnd() + extension;\n\t\t\t\t//scan all, allow one hit\n\t\t\t\tint hits = 0;\n\t\t\t\tfor (int j =0; j< chrGenesAll.length; j++){\n\t\t\t\t\tif (intersects (chrGenesAll[j], start, end)) {\n\t\t\t\t\t\thits++; \n\t\t\t\t\t\tif (hits >1) break;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//save?\n\t\t\t\tif (hits < 2){\n\t\t\t\t\tisolatedGenes.add(chrGenesSelect[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//convert ArrayList to array and replace in hash\n\t\t\tchrGenesSelect = new UCSCGeneLine[isolatedGenes.size()];\n\t\t\tisolatedGenes.toArray(chrGenesSelect);\n\t\t\tSystem.out.println(\"\\tIsolated \"+chrom+\"\\t\"+ chrGenesSelect.length);\n\t\t\tisolated.put(chrom, chrGenesSelect);\n\t\t}\n\t\tgenesSelect = isolated;\n\t\t//clean up\n\t\tgenesAll = null;\n\t\tSystem.gc();\n\t}",
"private void markbases(Set<GdlSentence> contents){\r\n\t\tMap<GdlSentence, Proposition> props = propNet.getBasePropositions();\r\n\t\tfor (GdlSentence p : contents) {\r\n\t\t\tprops.get(p).setValue(true);\r\n\t\t}\r\n }",
"public void GenSetAnnotationONE(List<String> symb, String semsim, String ontology, String HCL,String exportfolder,String Rfile) throws Exception {\t\t\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy_MM_dd_HH_mm_ss\");\n\t\tDate date = new Date();\n\t\tString workspace = exportfolder+\"GSAn_\"+dateFormat.format(date)+\"/\";\n\n\t\tFile dossier = new File(workspace);\n\t\tif(!dossier.exists()){\n\t\t\tdossier.mkdirs();\n\t\t}\n\n\t\t\n\t\tStringBuffer plossb = new StringBuffer();\n\n\t\tplossb.append(\"SS\\tModule\\tCoverGenes\\tNumTerms\\tGNTotal\\n\");\n\t\t\n\t\t\tString sub = \"\";\n\t\t\tfor( String s: this.go.subontology.keySet()) {\n\t\t\t\tif(go.allStringtoInfoTerm.get(s).name.equals(ontology)) {\n\t\t\t\t\tsub= s;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println(\"####### SubOntology : \" +sub );\n\t\t\t\tString statfolder = workspace;\n\n\t\t\t\tdossier = new File(statfolder);\n\t\t\t\tif(!dossier.exists()){\n\t\t\t\t\tdossier.mkdir();\n\t\t\t\t}\n\n\t\t\t\tSet<String> terminosinc = new HashSet<String>(this.goa.getTerms(symb, sub,go)); // Get terms to GOA with removed incomplete terms \n\n\t\t\t\tString export = statfolder+ this.go.allStringtoInfoTerm.get(sub).toName(); // url folder to save the information\n\n\t\t\t\tArrayList<String> listTerm = new ArrayList<String>(terminosinc); // change to list the terms set\n\n\t\t\t\twriteSimilarityMatrix M = new writeSimilarityMatrix(semsim);\n\t\t\t\t\n\t\t\t\tMap<String, Object> ss = M.similarityMethod(go, listTerm, ic);\n\t\t\t\tString[] tn = (String[]) ss.get(\"names\");\n\t\t\t\tDouble[][] tab = (Double[][]) ss.get(\"table\");\n\t\t\t\t\n\t\t\t\tFile f = new File( export+\"/SemanticMatrix/\");\n\t\t\t\tif(!f.exists()) {\n\t\t\t\t\tf.mkdirs();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tWrite.exportcsvONE(tn, tab, export+\"/SemanticMatrix/\"+semsim+\".csv\");\n\t\t\t\t\t\t\n\n\t\t\t\t//String[] methods = {\"DF\",\"Ganesan\",\"LC\",\"PS\",\"Zhou\",\"Resnik\",\"Lin\",\"NUnivers\",\"AIC\"};\n\t\t\t\t\n\t\t\t\tRepresentative.onemetricONE( ic,sub,semsim, HCL, new HashSet<String>(symb), export+\"/SemanticMatrix\", export, go, listTerm,this.goa,\n\t\t\t\t\t\ttailmin,RepCombinedSimilarity,precision,nbGeneMin,Rfile);\n\n\t\t\t\n\t\t\tfor(String t : this.go.allStringtoInfoTerm.keySet()) {\n\t\t\t\tthis.go.allStringtoInfoTerm.get(t).geneSet.clear();\n\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t}",
"@Test\n public void testReplaceStampseudonymNow() {\n // Use the initial dataset to retrieve the Stampseudonym\n String initialStampseudonym = eckIdServiceUtil.generateStampseudonym(validHpgnOld);\n\n // Submit the substitution\n String processedStampseudonym = eckIdServiceUtil.replaceStampseudonym(validHpgnNew, validHpgnOld, null);\n\n // Retrieve the Stampseudonym based on the new Hpgn, and check the result\n String finalStampseudonym = eckIdServiceUtil.generateStampseudonym(validHpgnNew);\n\n // Assert that the Stampseudonym retrieved from the Replace Stampseudonym operation is correct\n assertEquals(initialStampseudonym, processedStampseudonym);\n\n // Assert that the Stampseudonym retrieved based on the new Hpgn equals the old Hpgn\n assertEquals(initialStampseudonym, finalStampseudonym);\n }",
"private void sampleAndUpdate(int[] profileToSample, GameObserver gameObs) {\n double[] samplePayoffs = gameObs.getSample(profileToSample);\n eGame.addSample(profileToSample, samplePayoffs);\n deviationTestOrder.update(profileToSample, samplePayoffs);\n }",
"@Override\n\tpublic synchronized final <V extends Value<V>> boolean update(\n\t\t\tfinal MarketTaker<V> taker) {\n\n\t\tif (!RegTaker.isValid(taker)) {\n\t\t\t// debug logged already\n\t\t\treturn false;\n\t\t}\n\n\t\tfinal RegTaker<?> regTaker = takerMap.get(taker);\n\n\t\tif (regTaker == null) {\n\t\t\tlog.warn(\"Taker not registered : {}\", taker);\n\t\t\treturn false;\n\t\t}\n\n\t\t//\n\n\t\tfinal Set<MarketInstrument> updateSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> registerSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> unregisterSet = new HashSet<MarketInstrument>();\n\t\tfinal Set<MarketInstrument> changeNotifySet = new HashSet<MarketInstrument>();\n\n\t\t{\n\n\t\t\tfinal MarketInstrument[] pastArray = regTaker.getInstruments();\n\t\t\tfinal MarketInstrument[] nextArray = taker.bindInstruments();\n\n\t\t\tfinal Set<MarketInstrument> pastSet = new HashSet<MarketInstrument>(\n\t\t\t\t\tArrays.asList(pastArray));\n\t\t\tfinal Set<MarketInstrument> nextSet = new HashSet<MarketInstrument>(\n\t\t\t\t\tArrays.asList(nextArray));\n\n\t\t\t/** past & next */\n\t\t\tupdateSet.addAll(pastSet);\n\t\t\tupdateSet.retainAll(nextSet);\n\n\t\t\t/** next - past */\n\t\t\tregisterSet.addAll(nextSet);\n\t\t\tregisterSet.removeAll(updateSet);\n\n\t\t\t/** past - next */\n\t\t\tunregisterSet.addAll(pastSet);\n\t\t\tunregisterSet.removeAll(updateSet);\n\n\t\t\t/** past + next */\n\t\t\tchangeNotifySet.addAll(updateSet);\n\t\t\tchangeNotifySet.addAll(registerSet);\n\t\t\tchangeNotifySet.addAll(unregisterSet);\n\n\t\t}\n\n\t\t//\n\n\t\t// log.debug(\"updateSet : {}\", updateSet);\n\t\t// log.debug(\"registerSet : {}\", registerSet);\n\t\t// log.debug(\"unregisterSet : {}\", unregisterSet);\n\t\t// log.debug(\"changeNotifySet : {}\", changeNotifySet);\n\n\t\t//\n\n\t\t/** unregister : based on past */\n\t\tfor (final MarketInstrument inst : unregisterSet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeUnregister, regTaker);\n\n\t\t}\n\n\t\t/** update : based on merge of next and past */\n\t\tfor (final MarketInstrument inst : updateSet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeUpdate, regTaker);\n\n\t\t}\n\n\t\t/** past = next */\n\t\tregTaker.bind();\n\n\t\t/** register : based on next */\n\t\tfor (final MarketInstrument inst : registerSet) {\n\n\t\t\tif (!isValid(inst)) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (!isRegistered(inst)) {\n\t\t\t\tregister(inst);\n\t\t\t}\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tmarket.runSafe(safeRegister, regTaker);\n\n\t\t}\n\n\t\tfinal Set<MarketDo> ms = new HashSet<MarketDo>();\n\t\t/** remove / notify */\n\t\tfor (final MarketInstrument inst : changeNotifySet) {\n\n\t\t\tfinal MarketDo market = marketMap.get(inst);\n\n\t\t\tif (!market.hasRegTakers()) {\n\t\t\t\tunregister(inst);\n\t\t\t}\n\t\t\t\n\t\t\tms.add(market);\n\n\t\t}\n\t\t\n\t\tnotifyRegListeners(ms);\n\n\t\treturn true;\n\t}",
"public void setGenus(String genus) {\n this.genus = genus;\n }",
"public void reproduce(int generation, IPopulation pop, List<ISpecies> sorted_species) {\n\t\tfor(ISpecies specie : sorted_species){\r\n\r\n\t\t\tList<IOrganism> organisms = specie.getOrganisms();\r\n\r\n\t\t\t// outside the species\r\n\t\t\tint orgnum = 0;\r\n\r\n\t\t\tIOrganism mom = null;\r\n\t\t\tIOrganism baby = null;\r\n\t\t\tIGenome new_genome = null;\r\n\t\t\tIOrganism _organism = null;\r\n\t\t\tIOrganism _dad = null;\r\n\r\n\t\t\tif (specie.getExpectedOffspring() > 0 && organisms.size() == 0)\r\n\t\t\t\treturn;\r\n\r\n\t\t\t// elements for this species\r\n\t\t\tint poolsize = organisms.size() - 1;\r\n\r\n\t\t\t// the champion of the 'this' species is the first element of the species;\r\n\t\t\tIOrganism thechamp = organisms.get(0);\r\n\t\t\tboolean champ_done = false; // Flag the preservation of the champion\r\n\r\n\t\t\t// Create the designated number of offspring for the Species one at a time.\r\n\t\t\tfor (int count = 0; count < specie.getExpectedOffspring(); count++) {\r\n\r\n\t\t\t\t// If we have a super_champ (Population champion), finish off some special clones.\r\n\t\t\t\tif (thechamp.getSuperChampOffspring() > 0) {\r\n\r\n\t\t\t\t\t// save in mom current champ;\r\n\t\t\t\t\tmom = thechamp;\r\n\t\t\t\t\t// create a new genome from this copy\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\t\t\t\t\tif ((thechamp.getSuperChampOffspring()) > 1) {\r\n\t\t\t\t\t\tif (RandomUtils.randomDouble() < .8 || evolutionParameters.getDoubleParameter(MUTATE_ADD_LINK_PROB) == 0.0)\r\n\t\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutateLinkWeight(new_genome, evolutionParameters.getDoubleParameter(WEIGHT_MUT_POWER), 1.0, MutationType.GAUSSIAN);\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t// Sometimes we add a link to a superchamp\r\n\t\t\t\t\t\t\tnew_genome.generatePhenotype(generation);\r\n\t\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutateAddLink(new_genome,pop);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t\tthechamp.incrementSuperChampOffspring();\r\n\t\t\t\t} // end population champ\r\n\r\n\t\t\t\t// If we have a Species champion, just clone it\r\n\t\t\t\telse if ((!champ_done) && (specie.getExpectedOffspring() > 5)) {\r\n\t\t\t\t\tmom = thechamp; // Mom is the champ\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation); // Baby is\r\n\t\t\t\t\t// just like mommy\r\n\t\t\t\t\tchamp_done = true;\r\n\r\n\t\t\t\t} else if (RandomUtils.randomDouble() < evolutionParameters.getDoubleParameter(MUTATE_ONLY_PROB) || poolsize == 1) {\r\n\r\n\t\t\t\t\t// Choose the random parent\r\n\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\t\t\t\t\tmom = _organism;\r\n\t\t\t\t\tnew_genome = mom.getGenome().duplicate(count);\r\n\r\n\t\t\t\t\t// Do the mutation depending on probabilities of various mutations\r\n\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutate(new_genome,pop,generation);\r\n\r\n\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t}\r\n\t\t\t\t// Otherwise we should mate\r\n\t\t\t\telse {\r\n\t\t\t\t\t// Choose the random mom\r\n\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\r\n\t\t\t\t\t// save in mom\r\n\t\t\t\t\tmom = _organism;\r\n\t\t\t\t\t// Choose random dad...\r\n\t\t\t\t\t// Mate within Species\r\n\t\t\t\t\tif (RandomUtils.randomDouble() > evolutionParameters.getDoubleParameter(INTERSPECIES_MATE_RATE)) {\r\n\t\t\t\t\t\torgnum = RandomUtils.randomInt(0, poolsize);\r\n\t\t\t\t\t\t_organism = organisms.get(orgnum);\r\n\t\t\t\t\t\t_dad = _organism;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// Mate outside Species\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// save current species\r\n\t\t\t\t\t\tISpecies randspecies = specie;\r\n\t\t\t\t\t\t// Select a random species\r\n\t\t\t\t\t\tint giveup = 0;\r\n\t\t\t\t\t\t// Give up if you can't find a different Species\r\n\t\t\t\t\t\twhile ((randspecies == specie) && (giveup < 5)) {\r\n\r\n\t\t\t\t\t\t\t// Choose a random species tending towards better species\r\n\t\t\t\t\t\t\tdouble randmult = Math.min(1.0, RandomUtils.randomGaussian() / 4);\r\n\r\n\t\t\t\t\t\t\t// This tends to select better species\r\n\t\t\t\t\t\t\tint sp_ext = Math.max(0, (int) Math.floor((randmult * (sorted_species.size() - 1.0)) + 0.5));\r\n\t\t\t\t\t\t\trandspecies = sorted_species.get(sp_ext);\r\n\t\t\t\t\t\t\t++giveup;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t_dad = randspecies.getOrganisms().get(0);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tnew_genome = evolutionStrategy.getCrossoverStrategy().performCrossover(mom,_dad,count);\r\n\r\n\t\t\t\t\t// Determine whether to mutate the baby's Genome\r\n\t\t\t\t\t// This is done randomly or if the mom and dad are the same organism\r\n\t\t\t\t\tif (RandomUtils.randomDouble() > evolutionParameters.getDoubleParameter(MATE_ONLY_PROB) || \r\n\t\t\t\t\t\t\t_dad.getGenome().getId() == mom.getGenome().getId() || \r\n\t\t\t\t\t\t\t_dad.getGenome().compatibility(mom.getGenome()) == 0.0) {\r\n\r\n\t\t\t\t\t\tevolutionStrategy.getMutationStrategy().mutate(new_genome,pop,generation);\r\n\t\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t\t} \r\n\t\t\t\t\t// end block of prob\r\n\t\t\t\t\t// Determine whether to mutate the baby's Genome\r\n\t\t\t\t\t// This is done randomly or if the mom and dad are the same organism\r\n\r\n\t\t\t\t\t// Create the baby without mutating first\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tbaby = FeatFactory.newOrganism(0.0, new_genome, generation);\r\n\t\t\t\t}\r\n\t\t\t\tevolutionStrategy.getSpeciationStrategy().addOrganismToSpecies(pop, baby);\r\n\t\t\t} // end offspring cycle\r\n\t\t}\r\n\t}",
"public void setGeneSetElement(IGeneSetElement element, int index) {\r\n\t\tgeneSetElements.add(index, element);\r\n\r\n\t}",
"private static Consumer<InternalGroupUpdate.Builder> setCurrentMembership(GroupBundle bundle) {\n return b ->\n b.setMemberModification(\n in ->\n bundle.members().stream().map(m -> m.getAccountId()).collect(toImmutableSet()))\n .setSubgroupModification(\n in ->\n bundle.byId().stream().map(m -> m.getIncludeUUID()).collect(toImmutableSet()));\n }",
"public static void generatePopulation() {\n population = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n\n for (Individual individual : population) {\n for (int i = 0; i < individual.getGene().length; i++) {\n individual.gene[i] = bits.get(new Random().nextInt(2));\n }\n individual.generateRulebase();\n }\n }",
"DSGeneMarker deepCopy();",
"protected abstract RuleExplanationSet transformGenotypes(EvolutionResult<BitGene, Double> evolutionResult);",
"public void testOnlyBaseMutated()\n {\n poly.getPrefixMapping().setNsPrefix( \"a\", alpha );\n assertEquals( null, g1.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( null, g2.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n assertEquals( alpha, gBase.getPrefixMapping().getNsPrefixURI( \"a\" ) );\n }",
"private static void initializeAllGenresList(){\n\t\tfor(int i = 0; i < 13; i ++){\n\t\t\tALL_GENRES.add(new HashSet<String>());\n\t\t}\n\t}",
"public Album setGenres(Set<String> genres) {\r\n this.genres = genres;\r\n return this;\r\n }",
"@Test\n public void ensureCanRemoveExisitingAllergenUnit() {\n System.out.println(\"Ensure Can remove an Allergen Unit Test\");\n\n Allergen allergen = new Allergen(\"al1\", \"allergen 1\");\n\n profile_unit.addAllergen(allergen);\n\n\n assertTrue(profile_unit.removeAllergen(allergen));\n\n }",
"private void createUsedSubTreeRefMap() {\n\n\t\tXmlProcessor simpleXmlProcessor = measureExport.getSimpleXMLProcessor();\n\t\tString typeXpathString = \"\";\n\t\tList<String> usedSubTreeRefIdsPop = new ArrayList<>();\n\t\tList<String> usedSubTreeRefIdsMO = new ArrayList<>();\n\t\tList<String> usedSubTreeRefIDsRA = new ArrayList<>();\n\t\tfor (String typeString : POPULATION_NAME_LIST) {\n\t\t\ttypeXpathString += \"@type = '\" + typeString + \"' or\";\n\t\t}\n\t\ttypeXpathString = typeXpathString.substring(0, typeXpathString.lastIndexOf(\" or\"));\n\t\tString xpathForSubTreeInPOPClause = \"/measure/measureGrouping//clause[\" + typeXpathString + \"]//subTreeRef/@id\";\n\t\tString xpathForSubTreeInMOClause = \"/measure/measureGrouping//clause[@type='measureObservation']//subTreeRef/@id\";\n\t\tString xpathForSubTreeInRAClause = \"/measure//riskAdjustmentVariables/subTreeRef/@id\";\n\t\ttry {\n\n\t\t\t// creating used Subtree Red Map in Populations\n\t\t\tNodeList populationsSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInPOPClause);\n\t\t\tfor (int i = 0; i < populationsSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = populationsSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIdsPop.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIdsPop.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIdsPop = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIdsPop);\n\t\t\tfor (String uuid : usedSubTreeRefIdsPop) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInPOPMap.put(uuid, subTreeNode);\n\t\t\t}\n\n\t\t\t// creating used Subtree Red Map in Measure Observations\n\t\t\tNodeList measureObsSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInMOClause);\n\t\t\tfor (int i = 0; i < measureObsSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = measureObsSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIdsMO.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIdsMO.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIdsMO = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIdsMO);\n\t\t\tfor (String uuid : usedSubTreeRefIdsMO) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInMOMap.put(uuid, subTreeNode);\n\t\t\t}\n\t\t\t// creating used Subtree Red in Risk Adjustment\n\t\t\tNodeList riskAdjSubTreeNode = simpleXmlProcessor.findNodeList(simpleXmlProcessor.getOriginalDoc(),\n\t\t\t\t\txpathForSubTreeInRAClause);\n\t\t\tfor (int i = 0; i < riskAdjSubTreeNode.getLength(); i++) {\n\t\t\t\tString uuid = riskAdjSubTreeNode.item(i).getNodeValue();\n\t\t\t\tuuid = checkIfQDMVarInstanceIsPresent(uuid, simpleXmlProcessor);\n\t\t\t\tif (!usedSubTreeRefIDsRA.contains(uuid)) {\n\t\t\t\t\tusedSubTreeRefIDsRA.add(uuid);\n\t\t\t\t}\n\t\t\t}\n\t\t\tusedSubTreeRefIDsRA = checkUnUsedSubTreeRef(simpleXmlProcessor, usedSubTreeRefIDsRA);\n\t\t\tfor (String uuid : usedSubTreeRefIDsRA) {\n\t\t\t\tNode subTreeNode = createUsedSubTreeRefMap(simpleXmlProcessor, uuid);\n\t\t\t\tsubTreeNodeInRAMap.put(uuid, subTreeNode);\n\t\t\t}\n\n\t\t} catch (XPathExpressionException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void tournament_selection() {\r\n\r\n individual[] temp_pop = new individual[this.pop_size];\r\n\r\n for (int i = 0; i < this.pop_size; i++) {\r\n\r\n // pick 2 random ints to for indices of parents\r\n int parent1 = new Random().nextInt(this.pop_size);\r\n int parent2 = new Random().nextInt(this.pop_size);\r\n\r\n individual p1 = new individual(main_population.getPopulation()[parent1].getGenes(), solutions, output);\r\n individual p2 = new individual(main_population.getPopulation()[parent2].getGenes(), solutions, output);\r\n\r\n if (p1.getFitness() >= p2.getFitness()) {\r\n temp_pop[i] = p1;\r\n } else {\r\n temp_pop[i] = p2;\r\n }\r\n }\r\n this.main_population.setPopulation(temp_pop);\r\n this.main_population.update_population();\r\n }",
"private void setUpGroupBy(){\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p2\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t\tpro = new EPPropiedad();\n\t\tpro.setNombre(\"a1.p3\");\n\t\tpro.setPseudonombre(\"\");\n\t\texpresionesGroupBy.add(pro);\n\t}",
"public void selectedtoall(boolean g) {\n for (TableMaker.Person p : allProducts) {\n if (p.invitedProperty().get() != g) {\n p.invitedProperty().set(g);\n int v = p.numBerProperty().get();\n if (g) {\n TableMaker.ans[v] = 1;\n } else if (!g) {\n TableMaker.ans[v] = 0;\n } else {\n TableMaker.ans[v] = -1;\n }\n }\n\n }\n }",
"@Override \n public boolean equals(Object o) {\n if(this.gnum == ((Student)(o)).getGnum()){\n return true;\n }\n return false;\n }",
"private void infereProteinsChanged() {\n boolean enabled = checkInferProteins.isSelected();\n\n filtersProteinInference.setEnabled(enabled);\n comboAvailableBaseScores.setEnabled(enabled);\n filtersProteinLevel.setEnabled(enabled);\n\n Enumeration<AbstractButton> btns = radioGrpInferenceMethod.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpProteinScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n\n btns = radioGrpPSMsForScoring.getElements();\n while (btns.hasMoreElements()) {\n btns.nextElement().setEnabled(enabled);\n }\n }",
"void removeHas(WrappedIndividual oldHas);",
"public void setGenbank(gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank genbank)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank)get_store().find_element_user(GENBANK$8, 0);\r\n if (target == null)\r\n {\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Genbank)get_store().add_element_user(GENBANK$8);\r\n }\r\n target.set(genbank);\r\n }\r\n }",
"@Test\n public void testConvertGeneSet() {\n searchService.loadValueObject( SearchResult.from( GeneSet.class, gs, 1.0, \"test object\" ) );\n verify( geneSetService ).loadValueObject( gs );\n }",
"public void initHashSetPlayers(Set<String> newSet) {\n this.primary = newSet;\n }",
"private void CreateGenomeData()\n {\n SymbolList blankList = new BlankSymbolList(totalLength);\n SimpleSequenceFactory seqFactory = new SimpleSequenceFactory();\n blankSequence = seqFactory.createSequence(blankList, null, null, null);\n \n try {\n \n for(int i =0;i<chromosomeCount;i++)\n {\n ArrayList<GeneDisplayInfo> currentChr = outputGenes.get(i);\n int geneCount = currentChr.size();\n\n for(int j =0; j < geneCount ; j++)\n {\n \n GeneDisplayInfo gene = currentChr.get(j);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n\n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n //String s = \"Source\n \n stranded.type = \"Source\" + Integer.toString(i);\n if(gene.name ==\"Circular\")\n stranded.type = \"CircularF\" + Integer.toString(i);\n stranded.source = gene.name;\n Feature f = blankSequence.createFeature(stranded);\n \n }\n \n } \n \n \n int totalfeature =sourceGene.size(); \n for(int i =0; i < totalfeature ; i++)\n {\n\n GeneDisplayInfo gene = GeneData.targetGene.get(i);\n StrandedFeature.Template stranded = new StrandedFeature.Template();\n \n if(gene.Complement)\n stranded.strand = StrandedFeature.NEGATIVE;\n else\n stranded.strand = StrandedFeature.POSITIVE;\n stranded.location = new RangeLocation(gene.Location1,gene.Location2);\n stranded.type = \"Target\";\n stranded.source = gene.name;\n blankSequence.createFeature(stranded);\n \n }\n \n \n }\n catch (BioException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ChangeVetoException ex) {\n Logger.getLogger(GeneData.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n\t\tcurdata = GenomeDataFactory.createGenomeData(blankSequence);\t\n \n \n }",
"public FloatMatrix getSimilarGeneExpressionProfile(\t) {\r\n\t\treturn averageExpressionProfile;\r\n\t}",
"public Gel_BioInf_Models.VirtualPanel.Builder setGeneIds(java.util.List<java.lang.String> value) {\n validate(fields()[4], value);\n this.geneIds = value;\n fieldSetFlags()[4] = true;\n return this; \n }",
"public static void extractGroups(CoNLLPart part) {\n\t\tHashMap<String, Integer> chainMap = EMUtil.formChainMap(part\n\t\t\t\t.getChains());\n\t\tArrayList<Mention> allMentions = EMUtil.extractMention(part);\n\t\tCollections.sort(allMentions);\n\t\tEMUtil.assignNE(allMentions, part.getNameEntities());\n\t\tfor (int i = 0; i < allMentions.size(); i++) {\n\t\t\tMention m = allMentions.get(i);\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject && m.start == m.end\n\t\t\t\t\t&& part.getWord(m.end).posTag.equals(\"PN\")) {\n\t\t\t}\n\n\t\t\tif (m.gram == EMUtil.Grammatic.subject\n\t\t\t\t\t&& EMUtil.pronouns.contains(m.extent)\n\t\t\t// && chainMap.containsKey(m.toName())\n\t\t\t) {\n\t\t\t\tArrayList<Mention> ants = new ArrayList<Mention>();\n\t\t\t\tint corefCount = 0;\n\t\t\t\tfor (int j = i - 1; j >= 0; j--) {\n\t\t\t\t\tMention ant = allMentions.get(j);\n\t\t\t\t\tants.add(ant);\n\t\t\t\t\tant.MI = Context.calMI(ant, m);\n\t\t\t\t\tboolean coref = isCoref(chainMap, m, ant);\n\t\t\t\t\tif (coref) {\n\t\t\t\t\t\tcorefCount++;\n\t\t\t\t\t}\n\t\t\t\t\tif (m.s.getSentenceIdx() - ant.s.getSentenceIdx() > 2) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tCollections.sort(ants);\n\t\t\t\tCollections.reverse(ants);\n\n\t\t\t\tif (corefCount == 0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (Mention ant : ants) {\n\t\t\t\t\tant.isBest = false;\n\t\t\t\t}\n\n\t\t\t\tApplyEM.findBest(m, ants);\n\n\t\t\t\tif (ants.size() > maxAnts) {\n\t\t\t\t\tmaxAnts = ants.size();\n\t\t\t\t}\n\t\t\t\tString origPro = m.extent;\n\n\t\t\t\tString ext = m.extent;\n\t\t\t\tif (map.containsKey(ext)) {\n\t\t\t\t\tmap.put(ext, map.get(ext) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tmap.put(ext, 1);\n\t\t\t\t}\n\t\t\t\tStringBuilder ysb = new StringBuilder();\n\t\t\t\tfor (int h = 0; h < EMUtil.pronounList.size(); h++) {\n\t\t\t\t\tm.extent = EMUtil.pronounList.get(h);\n\t\t\t\t\tgenerateInstance(part, chainMap, m, ants,\n\t\t\t\t\t\t\tcorefCount, origPro, h, ysb);\n\t\t\t\t}\n\t\t\t\tfor (int k = ants.size() * EMUtil.pronounList.size(); k < 840; k++) {\n\t\t\t\t\tysb.append(\"@ 0 NOCLASS 1 # \");\n\t\t\t\t}\n\t\t\t\tyasmet10.add(ysb.toString());\n\t\t\t\tm.extent = origPro;\n\t\t\t}\n\t\t}\n\t}",
"public void makeSegDats(){\n\t\ttry {\n\t\t\tFile preSgr = new File (ucscGeneTableFileSelect.getParentFile(),selectName+\"_exprGenes.sgr\");\n\t\t\tPrintWriter outPreSgr = new PrintWriter (new FileWriter (preSgr));\n\t\t\tFile postSgr = new File (ucscGeneTableFileSelect.getParentFile(),selectName+\"_exprGeneMedian.sgr\");\n\t\t\tPrintWriter outPostSgr = new PrintWriter (new FileWriter (postSgr));\n\t\t\t//instantiate Bar parser\n\t\t\tScoreParsedBars barParser = new ScoreParsedBars (barDirectory, bpPositionOffSetBar, bpPositionOffSetRegion);\n\t\t\t//make array to hold SegDats\n\t\t\tArrayList segDatsAL = new ArrayList();\n\t\t\t//for each chromosome in select genes\n\t\t\tIterator it = genesSelect.keySet().iterator();\n\t\t\twhile (it.hasNext()){\n\t\t\t\t//get genes\n\t\t\t\tString chrom = (String)it.next();\n\t\t\t\tUCSCGeneLine[] chrGenes = (UCSCGeneLine[])genesSelect.get(chrom);\n\t\t\t\t//for each gene \n\t\t\t\tfor (int i=0; i< chrGenes.length; i++){\n\t\t\t\t\t//fetch Grs\n\t\t\t\t\tArrayList al = barParser.fetchRegionGrs(chrom, chrGenes[i].getTxStart() - extensionToSegment, chrGenes[i].getTxEnd() + extensionToSegment);\n\t\t\t\t\tGr[] grs = new Gr[al.size()];\n\t\t\t\t\tal.toArray(grs);\n\t\t\t\t\t//for each Gr, check to see if it is entirely contained in the gene, if so assign the median value\n\t\t\t\t\tint posStart = -1;\n\t\t\t\t\tint posEnd = -1;\n\t\t\t\t\tfloat median = chrGenes[i].getScores()[0];\n\t\t\t\t\t//these gr positions have been modified by the bpPositionOffSet, shifted left to start of oligo\n\t\t\t\t\t//shrink size too\n\t\t\t\t\tint start = chrGenes[i].getTxStart()+ bpShrink;\n\t\t\t\t\tint end = chrGenes[i].getTxEnd() + bpPositionOffSetRegion - bpShrink;\n\t\t\t\t\tif (end < start) {\n\t\t\t\t\t\tSystem.out.println(\"\\tSkipping \"+chrGenes[i].getName() + \" End shrinking eliminated gene.\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int x =0; x< grs.length; x++){\n\t\t\t\t\t\toutPreSgr.println(chrom +\"\\t\"+grs[x]);\n\t\t\t\t\t\t//clip it to median\n\t\t\t\t\t\tif (grs[x].getScore() > median) grs[x].setScore(median);\n\t\t\t\t\t\t//is it contained? Set to median\n\t\t\t\t\t\tif (grs[x].getPosition() >= start && grs[x].getPosition() <= end) {\n\t\t\t\t\t\t\t//set score to median\n\t\t\t\t\t\t\tgrs[x].setScore(median);\t\t\t\t\t\t\n\t\t\t\t\t\t\t//set start\n\t\t\t\t\t\t\tif (posStart == -1) posStart = x;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//not contained, has start been set? if so then check stop\n\t\t\t\t\t\telse if (posStart != -1 && posEnd == -1){\n\t\t\t\t\t\t\t//start has been set, stop has not, thus set stop to prior Gr position\n\t\t\t\t\t\t\tposEnd = x - 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutPostSgr.println(chrom +\"\\t\"+grs[x]);\n\t\t\t\t\t}\n\n\t\t\t\t\t//save data\n\t\t\t\t\tsegDatsAL.add(new SegDat(chrGenes[i], grs, posStart, posEnd));\n\t\t\t\t}\n\t\t\t}\n\t\t\tsegDats = new SegDat[segDatsAL.size()];\n\t\t\tsegDatsAL.toArray(segDats);\n\n\t\t\toutPreSgr.close();\n\t\t\toutPostSgr.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"@Override\n public void changeGenusTo(String genusName, boolean preserveLabel) {\n //return null;\n }",
"private boolean testTargetSemanticGroup( Edge edge, Set<String> sourceAliases, List<String> types ) {\n\t\t\n\t\tNode subject = edge.getSubject();\n\t\tString subjectId = translator.makeId( subject );\n\n\t\tNode object = edge.getObject();\n\t\tString objectId = translator.makeId( object );\n\t\t\n\t\tif( sourceAliases.contains(subjectId) ) \n\t\t\treturn types.contains(translator.inferConceptCategory(object));\n\t\t\t\n\t\t else if( sourceAliases.contains(objectId) )\n\t\t\treturn types.contains(translator.inferConceptCategory(subject));\n \n\t\t// Strange situation... one of the two id's should match a source alias!\n\t\t_logger.warn(\"ControllerImpl.testTargetSemanticGroup(): strange!... neither subject id '\"+subjectId+\n\t\t\t\t \"' nor object id '\"+objectId+\"' found in source alias list '\"+String.join(\",\", sourceAliases)+\"'?\");\n\t\treturn false;\n\n\t}",
"public void setProfesorAsig (Profesor val) {\n this.ProfesorAsig = val;\n }",
"@Test\n public void testSameEPPNs() throws Exception {\n // Get a set of keys.\n ArrayList<UserMultiID> umks = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n umks.add(createUMK());\n }\n User user = newUser();\n User mostRecentUser = user;\n String idp = user.getIdP();\n long oneYear = 31557600000L; // in ms.\n long currentTime = System.currentTimeMillis();\n ArrayList<User> newUsers = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n newUsers.add(user);\n\n // all have the same EPPN, but different eptids\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn(), umks.get(i).getEptid());\n Date date = new Date(currentTime - (i + 1) * oneYear); // have these spaced one year apart.\n user.setCreationTS(date);\n user.setUserMultiKey(newUmk);\n getUserStore().update(user, true);\n user = newUser();\n user.setIdP(idp);\n }\n UserMultiID newUmk = new UserMultiID(umks.get(0).getEppn());\n\n Collection<User> users = getUserStore().get(newUmk, idp);\n\n assert users.size() == count : \"Incorrect number of users found. Expected \" + count + \" and got \" + users.size();\n XMLMap userMap = getDBSClient().getUser(newUmk, idp);\n checkUserAgainstMap(userMap, mostRecentUser);\n }",
"private void mutation() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint num = (int) (Math.random() * GENE * ChrNum + 1);\n\t\t\tint chromosomeNum = (int) (num / GENE) + 1;\n\n\t\t\tint mutationNum = num - (chromosomeNum - 1) * GENE; \n\t\t\tif (mutationNum == 0) \n\t\t\t\tmutationNum = 1;\n\t\t\tchromosomeNum = chromosomeNum - 1;\n\t\t\tif (chromosomeNum >= ChrNum)\n\t\t\t\tchromosomeNum = 9;\n\t\t\tString temp;\n\t\t\tString a; \n\t\t\tif (ipop[chromosomeNum].charAt(mutationNum - 1) == '0') { \n a = \"1\";\n\t\t\t} else { \n\t\t\t\ta = \"0\";\n\t\t\t}\n\t\t\t\n\t\t\tif (mutationNum == 1) {\n\t\t\t\ttemp = a + ipop[chromosomeNum].substring(mutationNum);\n\t\t\t} else {\n\t\t\t\tif (mutationNum != GENE) {\n\t\t\t\t\ttemp = ipop[chromosomeNum].substring(0, mutationNum -1) + a \n\t\t\t\t\t\t\t+ ipop[chromosomeNum].substring(mutationNum);\n\t\t\t\t} else {\n\t\t\t\t\ttemp = ipop[chromosomeNum].substring(0, mutationNum - 1) + a;\n\t\t\t\t}\n\t\t\t}\n \tipop[chromosomeNum] = temp;\n\t\t}\n\t}",
"public void addImputedGenoSet(GenoSet geno) {\r\n\t\tthis.ImputedGenoSet.add(geno);\r\n\t}",
"protected Individual[] mate(Individual ma, Individual pa) \n\t\t{\tfloat[] ch1 = getNewGenes(ma,pa);\n\t\t\tfloat[] ch2 = getNewGenes(pa,ma);\n\t\t\t\n\t\t\tIndividual[] kids = {new Individual(ch1),new Individual(ch2)};\n\t\t\treturn kids;\n\t\t}",
"public List<String> setActiveGenomes(List<String> activeGenomes) {\n System.out.println(\"Set active genomes\");\n ArrayList<ArrayList<String>> temp = new ArrayList<>();\n for (String s : activeGenomes) {\n if (s.startsWith(\"T\")) {\n temp.add(new ArrayList<>(Arrays.asList(s)));\n } else {\n System.out.println(\"middle node selected\");\n Integer x = Integer.parseInt(s);\n System.out.println(\"With id: \" + x);\n PhylogeneticNode node = phylogeneticTree.getNodeWithId(x);\n System.out.println(\"Leaves under this node:\");\n for (String a : node.getGenomes()) {\n System.out.println(a);\n }\n temp.add(phylogeneticTree.getNodeWithId(x).getGenomes());\n }\n }\n dataTree.resetMinLevel();\n return genomeGraph.setGenomesAsActive(temp);\n }",
"void replaceRegex() {\n int index = -1;\n for (int i = 0; i < regex.elist.size(); i++) {\n if (regex.elist.get(i).isShareableUnit) {\n ElementShareableUnit share = (ElementShareableUnit) regex.elist.get(i);\n if (share.share == this) {\n index = i;\n }\n }\n }\n //replace in parenthesis\n for (int i = 0; i < regex.elist.size(); i++) {\n Element e = regex.elist.get(i);\n if (e.isParentheis) {\n e.replaceRegex(this);\n }\n\n }\n if (index == -1) {\n System.out.println(\"there is error \" + this.getString());\n } else {\n regex.elist.remove(index);\n for (int i = 0; i < this.lelement.size(); i++) {\n regex.elist.add(index + i, this.lelement.get(i));\n }\n }\n //System.out.println(\"After: \" + this.regex.getString());\n }",
"public Set<QuantDiseaseGroupsComparison> getSelectedComparisonsList() {\n Set<QuantDiseaseGroupsComparison> tempProteinsList = new LinkedHashSet<>();\n if (quantSearchSelection != null && selectedComparisonsList != null) {\n for (QuantDiseaseGroupsComparison quantComp : selectedComparisonsList) {\n Map<String, QuantComparisonProtein> map = new LinkedHashMap<>();\n\n for (String protien : quantSearchSelection.getSelectedProteinsList()) {\n String key = \"\";\n if (quantComp.getQuantComparisonProteinMap().containsKey(\"0_\" + protien)) {\n key = \"0_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"1_\" + protien)) {\n key = \"1_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"2_\" + protien)) {\n key = \"2_\" + protien;\n\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"3_\" + protien)) {\n\n key = \"3_\" + protien;\n } else if (quantComp.getQuantComparisonProteinMap().containsKey(\"4_\" + protien)) // if (quantComp.getQuantComparisonProteinMap().containsValue(protien.getProtKey())) {\n {\n key = \"4_\" + protien;\n\n }\n\n if (quantComp.getQuantComparisonProteinMap().containsKey(key)) {\n map.put(key, quantComp.getQuantComparisonProteinMap().get(key));\n }\n\n }\n QuantDiseaseGroupsComparison updatedQuantComp = quantComp.cloning();\n updatedQuantComp.setQuantComparisonProteinMap(map);\n tempProteinsList.add(updatedQuantComp);\n }\n return tempProteinsList;\n\n }\n\n return selectedComparisonsList;\n }",
"void Union(int parent[], int x, int y){ \n int xset = find(parent, x); \n int yset = find(parent, y); \n parent[xset] = yset; \n }",
"public int produce(int min, int max, int start, int subpopulation, Individual[] inds, ec.EvolutionState state, int thread)\n/* */ {\n/* 27 */ int n = this.sources[0].produce(min, max, start, subpopulation, inds, state, thread);\n/* */ \n/* */ \n/* */ \n/* 31 */ if (!state.random[thread].nextBoolean(this.likelihood)) {\n/* 32 */ return reproduce(n, start, subpopulation, inds, state, thread, false);\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 38 */ if (!(this.sources[0] instanceof ec.BreedingPipeline)) {\n/* 39 */ for (int q = start; q < n + start; q++) {\n/* 40 */ inds[q] = ((Individual)inds[q].clone());\n/* */ }\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 48 */ if (!(inds[start] instanceof TestCaseCandidate))\n/* 49 */ state.output.fatal(\"OurMutatorPipeline didn't get an Chromosome.The offending individual is in subpopulation \" + \n/* 50 */ subpopulation + \" and it's:\" + inds[start]);\n/* 51 */ ChromosomeSpecies species = (ChromosomeSpecies)inds[start].species;\n/* */ \n/* */ \n/* */ \n/* 55 */ for (int q = start; q < n + start; q++)\n/* */ {\n/* 57 */ TestCaseCandidate i = (TestCaseCandidate)inds[q];\n/* 58 */ double mutp = 1.0D / i.getGenes().size();\n/* */ \n/* 60 */ double[] propa = new double[i.getGenes().size()];\n/* 61 */ for (int x = 0; x < i.getGenes().size(); x++)\n/* 62 */ propa[x] = mutp;\n/* 63 */ for (int x = 0; x < i.getGenes().size(); x++) {\n/* 64 */ if (state.random[thread].nextBoolean(propa[x]))\n/* */ {\n/* */ \n/* 67 */ ((csbst.generators.AbsractGenerator)i.getGenes().get(x)).mutate();\n/* */ }\n/* */ }\n/* */ \n/* 71 */ i.evaluated = false;\n/* */ }\n/* */ \n/* 74 */ return n;\n/* */ }",
"void randomProjection(int R, double percent_mask, int sax_len) {\r\n\t\tHashMap<Integer, HashSet<Integer>> Hash_Mark = new HashMap<>();\r\n\t\tint word, mask_word, new_word;\r\n\t\tHashSet<Integer> obj_set, ptr;\r\n\r\n\t\tint num_mask = (int) Math.ceil(percent_mask * sax_len);\r\n\r\n\t\tfor (int r = 0; r < R; r++) {\r\n\t\t\tmask_word = createMaskWord(num_mask, sax_len);\r\n\r\n\t\t\t// / random projection and mark non-duplicate object\r\n\t\t\tfor (Map.Entry<Integer, USAX_elm_type> entry : USAX_Map.entrySet()) {\r\n\t\t\t\tword = entry.getKey();\r\n\t\t\t\tobj_set = entry.getValue().obj_set;\r\n\r\n\t\t\t\t// put the new word and set combo in the hash_mark\r\n\t\t\t\tnew_word = word | mask_word;\r\n\r\n\t\t\t\tptr = Hash_Mark.get(new_word);\r\n\r\n\t\t\t\tif (ptr == null) {\r\n\t\t\t\t\tHash_Mark.put(new_word, new HashSet<>(obj_set));\r\n\t\t\t\t} else {\r\n\t\t\t\t\t// add onto our ptr, rather than overwrite.\r\n\t\t\t\t\tptr.addAll(obj_set);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// / hash again for keep the count\r\n\t\t\tfor (Map.Entry<Integer, USAX_elm_type> entry : USAX_Map.entrySet()) {\r\n\t\t\t\tword = entry.getKey();\r\n\t\t\t\tnew_word = word | mask_word;\r\n\t\t\t\tobj_set = Hash_Mark.get(new_word);\r\n\t\t\t\t// increase the histogram\r\n\t\t\t\tfor (Integer o_it : obj_set) {\r\n\t\t\t\t\tInteger count = entry.getValue().obj_count.get(o_it);\r\n\t\t\t\t\tcount = count == null ? 1 : count + 1;\r\n\t\t\t\t\tentry.getValue().obj_count.put(o_it, count);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tHash_Mark.clear();\r\n\t\t}\r\n\t}",
"@Test\n public void shouldNotPopulateDuplicateNamesForAMaterial() {\n\n String P1 = \"P1\";\n String currentPipeline = \"P2\";\n ValueStreamMap graph = new ValueStreamMap(currentPipeline, null);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(\"git_fingerprint\", \"git\", \"git\"), new CaseInsensitiveString(\"git1\"), currentPipeline, new MaterialRevision(null));\n graph.addUpstreamNode(new PipelineDependencyNode(P1, P1), null, currentPipeline);\n graph.addUpstreamMaterialNode(new SCMDependencyNode(\"git_fingerprint\", \"git\", \"git\"), new CaseInsensitiveString(\"git1\"), P1, new MaterialRevision(null));\n\n SCMDependencyNode node = (SCMDependencyNode) graph.findNode(\"git_fingerprint\");\n HashSet<String> materialNames = new HashSet<String>();\n materialNames.add(\"git1\");\n\n assertThat(node.getMaterialNames(), is(materialNames));\n }",
"private void createGenres() {\n ArrayList<String> gen = new ArrayList<>();\n //\n for (Movie mov : moviedb.getAllMovies()) {\n for (String genre : mov.getGenre()) {\n if (!gen.contains(genre.toLowerCase()))\n gen.add(genre.toLowerCase());\n }\n }\n\n Collections.sort(gen);\n\n genres = gen;\n }",
"public void mutation(Graph_GA obj, float mutation_index)\r\n\t{\r\n\t\t\r\n\t\tList<Integer> list_num = new ArrayList<Integer>();\r\n\t\tInteger[] shuffled_list = null;\r\n\t\tList<Integer> mutation_vertex = new ArrayList<Integer>();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tlist_num.add(i+1);\r\n\t\t}\r\n\t\tjava.util.Collections.shuffle(list_num);\r\n\t\tshuffled_list = list_num.toArray(new Integer[list_num.size()]);\r\n\t\t\r\n\t\tfor(int i=0;i<(chromosome_size*mutation_index);i++)\r\n\t\t{\r\n\t\t\tmutation_vertex.add(shuffled_list[i]);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tGA_Graph_Node vertex_container[] = obj.getNodes();\r\n\t\t\r\n\t\tfor(int i=0;i<obj.num_vertex;i++)\r\n\t\t{\r\n\t\t\tInteger[] valid_colors = null;\r\n\t\t\tList<Integer> adjacent_vertex_color = new LinkedList<Integer>();\r\n\t\t\tSet<DefaultEdge> adjacent_edges = obj.graph_inp.edgesOf(vertex_container[i]);\r\n\t\t\tIterator<DefaultEdge> adj_edge_list = adjacent_edges.iterator();\r\n\t\t\t\r\n\t\t\twhile(adj_edge_list.hasNext())\r\n\t\t\t{\r\n\t\t\t\tDefaultEdge adj_edge = adj_edge_list.next();\r\n\t\t\t\tGA_Graph_Node adj_node = null;\r\n\t\t\t\tadj_node = obj.graph_inp.getEdgeSource(adj_edge);\r\n\t\t\t\tif(adj_node==null||adj_node==vertex_container[i])\r\n\t\t\t\t{\r\n\t\t\t\t\tadj_node = obj.graph_inp.getEdgeTarget(adj_edge);\r\n\t\t\t\t}\r\n\t\t\t\tadjacent_vertex_color.add(chromosome[adj_node.numID-1]);\r\n\t\t\t}\r\n\t\t\tif(adjacent_vertex_color.contains(chromosome[i])&&mutation_vertex.contains(i+1))\r\n \t{\r\n\t\t\t\tList<Integer> valid_color_list = new LinkedList<Integer>();\r\n \t\tfor(int j=0;j<num_colors;j++)\r\n \t\t{\r\n \t\t\tif(adjacent_vertex_color.contains(j+1) == false)\r\n \t\t\t\tvalid_color_list.add(j+1);\t\r\n \t}\r\n \t\t\r\n \t\tvalid_colors = valid_color_list.toArray(new Integer[valid_color_list.size()]);\r\n \t\t\r\n// \t\tSystem.out.println(valid_colors.toString());\r\n \t\tif(valid_colors.length> 0)\r\n \t\t{\r\n\t \t\tint rand_num = random_generator.nextInt(valid_colors.length);\r\n\t \t\t\tint new_color = valid_colors[rand_num];\r\n\t \t\t\t\r\n\t \t\t\tchromosome[i] = new_color;\r\n \t\t}\r\n \t}\r\n\t\t\t\r\n }\r\n\t}",
"public void saveToXML() {\n\t\tList<String> vendorList = map.values().stream().sorted().distinct().collect(Collectors.toList());\n\t\t//Iterate over the vendor list\n\t\tfor (int i=0;i < vendorList.size();i++) {\n\t\t\tProducts vendorSpecificList = new Products(); //create a product object just for a member\n\t\t\tList<output.Product> miniProductList = new ArrayList<>(); //holds the list of individual Product\n\t\t\t//iterate the whole map\t\n\t\t\tfor (Entry<Product, String> entry : map.entrySet()) {\t\t\n\t\t\t\t//identify members of the distinct vendor\n\t\t\t\tif(vendorList.get(i).equals(entry.getValue())) {\t\t\t\t\n\t\t\t\t\tminiProductList.add(entry.getKey()); //add to a subset\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tvendorSpecificList.setProduct(miniProductList); //populate with subset\n\t\t\tprintFile(vendorSpecificList,vendorList.get(i)); //prints the subset\n\n\t\t}\n\t}",
"private void preprocess(ArrayList<Point>[] dsg) {\n preprocessGroup = new ArrayList<>();\n for(ArrayList<Point> l:dsg){\n \tfor(Point p:l){\n \t\tif(p.layer<=constructor.k_point_GSkyline_groups&&p.getUnitGroupSize()<=constructor.k_point_GSkyline_groups){\n \t\t\tpreprocessGroup.add(p);\n \t\t}\n \t}\n }\n for(int i=0;i<preprocessGroup.size();i++){\n \tpreprocessGroup.get(i).index=i;\n }\n }",
"public static ArrayList<Individuo> mutaHeuristica(ArrayList<Individuo> genAnt,int nB){\n ArrayList<Individuo> aux = genAnt;\n ArrayList<Integer> genesS = new ArrayList<>();\n int nM = (int) (genAnt.size()*0.2); //determina cuantos individuos van a ser mutados\n int iS,gS,i=0,n,c;\n byte gaux[],baux;\n Random r = new Random();\n while(i<nM){\n gS = r.nextInt(nB+1);//selecciona el numero de genes aleatoriamente\n iS = r.nextInt(genAnt.size());//selecciona un individuo aleatoriamente\n gaux = aux.get(iS).getGenotipo();//obtenemos genotipo de ind seleccionado\n c=0;\n System.out.println(gS);\n //seleccionamos genes a ser permutados\n while(c != gS){\n n = r.nextInt(nB);\n if(!genesS.contains(n)){\n genesS.add(n);\n System.out.print(genesS.get(c)+\" \");\n c++;\n }\n }\n System.out.println(\"\");\n //aux.remove(iS);//quitamos elemento\n //aux.add(iS, new Individuo(gaux,genAnt.get(0).getTipoRepre()));//añadimos elemento mutado\n i++;\n }\n return aux;\n }",
"public void replaceThesarusWordwithGoogleWord ( ) {\r\n\t \t\t \t\r\n\t \tfor (Map.Entry<String, List<String>> entry : GoogleToThesarus.entrySet()) {\r\n\t String key = entry.getKey();\r\n\t List<String> values = entry.getValue();\r\n\t //String wordIsReplaced=null;\r\n\t \r\n\t for (String temp: values) {\r\n\t \t//why is this null\r\n\t \t\r\n\t \tif (splitto.equals(temp)) {\r\n\t \t\tsplitto=key;\r\n\t \t\tif(!replacedWordList.contains(splitto))\r\n\t \t\t\treplacedWordList.add(splitto);\r\n \t\t\r\n\t \t \t\t \t\t}\r\n\t \telse {\r\n\t \t\t//wordIsReplaced=splitto;\r\n\t \t\t//System.out.println(\"failed\");\r\n\t \t}\r\n\t \t\t }\r\n\t \t}\r\n\t }",
"public String changeGendersOfPlaylist(Gender[] allGenders){\n String out = \"\";\n boolean stop = false;\n if(allGenders[0] == null){\n out = \"UNKNOWN\";\n }else{\n for(int i = 0; i<MAX_SONGS_PLAYLIST; i++){\n for(int j = 0; j<MAX_SONGS_PLAYLIST-1 && !stop; j++){\n if(i != j){\n if(allGenders[i] == allGenders[j]){\n allGenders[i] = null;\n } \n } \n } \n }\n for(int i = 0; i < MAX_SONGS_PLAYLIST; i++){\n if(allGenders[i] != null){\n out += allGenders[i]+\", \";\n }\n }\n }\n return out;\n }",
"public void testSelect_4()\n throws Exception {\n BestChromosomesSelector selector = new BestChromosomesSelector(conf);\n selector.setDoubletteChromosomesAllowed(true);\n // the following original rate controls that only 30% of the chromosomes\n // will be considered for selection as given with BestChromosomesSelector.\n // The last 70% will be added as doublettes in this case.\n selector.setOriginalRate(0.3d);\n // add first chromosome\n // --------------------\n Gene gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(true));\n Chromosome thirdBestChrom = new Chromosome(conf, gene, 7);\n thirdBestChrom.setFitnessValue(10);\n selector.add(thirdBestChrom);\n // add second chromosome\n // ---------------------\n gene = new BooleanGene(conf);\n gene.setAllele(Boolean.valueOf(false));\n Chromosome bestChrom = new Chromosome(conf, gene, 3);\n bestChrom.setFitnessValue(12);\n selector.add(bestChrom);\n // add third chromosome\n // ---------------------\n gene = new IntegerGene(conf);\n gene.setAllele(new Integer(444));\n Chromosome secondBestChrom = new Chromosome(conf, gene, 3);\n secondBestChrom.setFitnessValue(11);\n selector.add(secondBestChrom);\n // receive top 1 (= best) chromosome\n // ---------------------------------\n Population pop = new Population(conf);\n selector.select(1, null, pop);\n IChromosome[] bestChroms = pop.toChromosomes();\n assertEquals(1, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n // receive top 4 chromosomes with original rate = 0.3\n // --------------------------------------------------\n pop.getChromosomes().clear();\n selector.select(4, null, pop);\n bestChroms = pop.toChromosomes();\n assertEquals(4, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n assertEquals(bestChrom, bestChroms[1]); //because of originalRate = 0.3\n assertEquals(secondBestChrom, bestChroms[2]);\n assertEquals(thirdBestChrom, bestChroms[3]);\n // Non-unique chromosomes should have been returned, although not the same\n // but a cloned instance!\n assertEquals(bestChroms[0], bestChroms[1]);\n // receive top 4 chromosomes with original rate = 1\n // ------------------------------------------------\n pop.getChromosomes().clear();\n selector.setOriginalRate(1.0d);\n selector.select(4, null, pop);\n bestChroms = pop.toChromosomes();\n assertEquals(4, bestChroms.length);\n assertEquals(bestChrom, bestChroms[0]);\n assertEquals(secondBestChrom, bestChroms[1]);\n assertEquals(thirdBestChrom, bestChroms[2]);\n assertEquals(bestChrom, bestChroms[3]);\n }",
"private void assignMatchingProteins(List<PeptideSpectrumMatchNoFDR> psmList) {\n \n MsSearchResultProteinDAO protDao = DAOFactory.instance().getMsProteinMatchDAO();\n \n long s = System.currentTimeMillis();\n // map of protein accession and protein\n Map<String, Protein> proteinMap = new HashMap<String, Protein>();\n \n for(PeptideSpectrumMatchNoFDR psm: psmList) {\n \n // read the matching proteins from the database now\n List<MsSearchResultProtein> msProteinList = protDao.loadResultProteins(psm.getHitId());\n\n for (MsSearchResultProtein protein: msProteinList) {\n // we could have multiple accessions, keep the first one only\n String[] accessionStrings = protein.getAccession().split(\"\\\\cA\");\n \n Protein prot = proteinMap.get(accessionStrings[0]);\n // If we have not already seen this protein create a new entry\n if(prot == null) {\n prot = new Protein(accessionStrings[0], -1);\n proteinMap.put(accessionStrings[0], prot);\n }\n psm.getPeptideHit().addProtein(prot);\n }\n }\n \n long e = System.currentTimeMillis();\n log.info(\"\\tTime to get matching proteins: \"+TimeUtils.timeElapsedSeconds(s,e)+\" seconds.\");\n }",
"static Set get_mapping(HashMap callee_to_caller, Node callee_n) {\n Set s = (Set)callee_to_caller.get(callee_n);\n if (s != null) return s;\n s = NodeSet.FACTORY.makeSet(); s.add(callee_n);\n return s;\n }",
"private Set<String> getSubNetGenes(String organism, String file) {\n\n\t\tSet<String> localSubNetGenes = Sets.newHashSet();\n\t\tDocument doc = openDoc(file);\n\n\t\t// Now I got the doc. So I can traverse the file\n\t\tElement root = doc.getDocumentElement();\n\n\t\tNodeList nodes = root.getChildNodes();\n\n\t\tfor (int i = 0; i < nodes.getLength(); i++) {\n\t\t\tNode node = nodes.item(i);\n\n\t\t\tif (node.getNodeName().equals(\"entry\")) {\n\n\t\t\t\tString localName = null;\n\t\t\t\tString objType = null;\n\n\t\t\t\tNamedNodeMap localAttrs = node.getAttributes();\n\n\t\t\t\tfor (int k = 0; k < localAttrs.getLength(); k++) {\n\n\t\t\t\t\tNode localAt = localAttrs.item(k);\n\n\t\t\t\t\tif (localAt.getNodeName().equals(\"name\")) {\n\t\t\t\t\t\tlocalName = localAt.getNodeValue();\n\t\t\t\t\t} else if (localAt.getNodeName().equals(\"type\")) {\n\t\t\t\t\t\tobjType = localAt.getNodeValue();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tprocessEntry(localSubNetGenes, localName, objType);\n\t\t\t}\n\n\t\t}\n\t\treturn localSubNetGenes;\n\t}",
"public static void setHash_profiles() {\n\t\t\r\n\t\tProfilePojo pf1 = new ProfilePojo(1, \"Sonal\");\r\n\t\tProfilePojo pf2 = new ProfilePojo(2, \"Komal\");\r\n\t\tProfilePojo pf3 = new ProfilePojo(3, \"Sanidh\");\r\n\t\tProfilePojo pf4 = new ProfilePojo(4, \"Vanshika\");\r\n\t\thash_profiles.put((long) 1, pf1);\r\n\t\thash_profiles.put((long) 2, pf2);\r\n\t\thash_profiles.put((long) 3, pf3);\r\n\t\thash_profiles.put((long) 4, pf4);\r\n\t\t\r\n\t}",
"public static void setEnabledProfile(int profile) {\n if (enabledMenuItem != null) {\n enabledMenuItem.disableProfile();\n }\n\n // Also allow the signer tab to disable the signer\n if (profile == 0) {\n enabledMenuItem.disableProfile();\n enabledMenuItem = null;\n } else {\n\n // I don't want to keep a map of all the profiles. Just iterate through them until we find the right one\n for (MasherySignerMenuItem menuItem : menuItems) {\n if (menuItem.getProfileNumber() == profile) {\n menuItem.enableProfile();\n enabledMenuItem = menuItem;\n }\n }\n }\n }",
"public void setSynExpressionGroup(String name, String[] groups) {\r\n\t\t\r\n\t\tif(!synExpressionGroups.containsKey(name)) {\r\n\t\t\tsynExpressionGroups.put(name, groups);\r\n\t\t}\r\n\t\t\r\n\t}",
"public String[] getSimilarGenes(\r\n\t\t\tString synExpressionGroupName) {\r\n\t\t\r\n\t\treturn similarGeneGroups.get(synExpressionGroupName);\r\n\t}",
"public CSGenepixMicroarraySet(GenepixResource gr) throws Exception {\r\n super(RandomNumberGenerator.getID(), gr.getInputFile().getName());\r\n List ctu = new ArrayList();\r\n ctu.add(\"Block\");\r\n ctu.add(\"Column\");\r\n ctu.add(\"Row\");\r\n ctu.add(\"ID\");\r\n ctu.add(\"X\");\r\n ctu.add(\"Y\");\r\n ctu.add(\"Dia\");\r\n ctu.add(\"F635 Median\");\r\n ctu.add(\"F635 Mean\");\r\n ctu.add(\"B635 Median\");\r\n ctu.add(\"B635 Mean\");\r\n ctu.add(\"F532 Median\");\r\n ctu.add(\"F532 Mean\");\r\n ctu.add(\"B532 Median\");\r\n ctu.add(\"B532 Mean\");\r\n ctu.add(\"Ratio of Means\");\r\n GenepixParser2 parser = new GenepixParser2(ctu);\r\n BufferedReader reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n String line = null;\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.process(line);\r\n }\r\n\r\n }\r\n\r\n Vector v = parser.getAccessions();\r\n int count = 0;\r\n DSGeneMarker mInfo = null;\r\n for (Iterator it = v.iterator(); it.hasNext();) {\r\n mInfo = new CSGeneMarker((String) it.next());\r\n mInfo.setSerial(count++);\r\n markerVector.add(mInfo);\r\n }\r\n reader.close();\r\n reader = new BufferedReader(new FileReader(gr.getInputFile()));\r\n parser.reset();\r\n while ((line = reader.readLine()) != null) {\r\n if (!line.trim().equals(\"\")) {\r\n parser.parseLine(line);\r\n }\r\n }\r\n\r\n reader.close();\r\n parser.getMicroarray().setLabel(gr.getInputFile().getName());\r\n this.add(parser.getMicroarray());\r\n experimentInfo = parser.getExperimentInfo();\r\n }",
"public void setProfiles(Set<Profile> profiles) {\n\t\tthis.profiles = profiles;\n\t}",
"protected void setRDFforSemSimSubmodelAnnotations(){\n\t\t\n\t\tfor(Submodel sub : semsimmodel.getSubmodels()){\n\t\t\tsetRDFforSubmodelAnnotations(sub);\n\t\t}\n\t}",
"private void updateNewStudyProcedures(IacucProtocolStudyGroupBean newIacucProtocolStudyGroupBean, IacucProtocol destProtocol, \n HashMap<String, IacucProtocolSpecies> newIacucProtocolSpeciesMapping) {\n HashMap<String, IacucProtocolPerson> newProtocolPersons = getProtocolPersons(destProtocol); \n for(IacucProtocolStudyGroup newIacucProtocolStudyGroup : newIacucProtocolStudyGroupBean.getIacucProtocolStudyGroups()) {\n newIacucProtocolStudyGroup.resetPersistenceState();\n newIacucProtocolStudyGroup.setIacucProtocolStudyGroupHeaderId(newIacucProtocolStudyGroupBean.getIacucProtocolStudyGroupHeaderId());\n newIacucProtocolStudyGroup.setIacucProtocolStudyGroupBean(newIacucProtocolStudyGroupBean);\n IacucProtocolSpecies destIacucProtocolSpecies = newIacucProtocolSpeciesMapping.get(newIacucProtocolStudyGroup.getIacucProtocolSpecies().getGroupAndSpecies());\n newIacucProtocolStudyGroup.setIacucProtocolSpeciesId(destIacucProtocolSpecies.getIacucProtocolSpeciesId());\n newIacucProtocolStudyGroup.setIacucProtocolSpecies(destIacucProtocolSpecies);\n for(IacucProtocolStudyCustomData newIacucProtocolStudyCustomData : newIacucProtocolStudyGroup.getIacucProtocolStudyCustomDataList()) {\n newIacucProtocolStudyCustomData.resetPersistenceState();\n newIacucProtocolStudyCustomData.setIacucProtocolStudyGroupId(newIacucProtocolStudyGroup.getIacucProtocolStudyGroupId());\n }\n for(IacucProcedurePersonResponsible newIacucProcedurePersonResponsible : newIacucProtocolStudyGroup.getIacucProcedurePersonResponsibleList()) {\n newIacucProcedurePersonResponsible.resetPersistenceState();\n IacucProtocolPerson newIacucProtocolPerson = newProtocolPersons.get(newIacucProcedurePersonResponsible.getPersonId());\n newIacucProcedurePersonResponsible.setProtocolPersonId(newIacucProtocolPerson.getProtocolPersonId());\n newIacucProcedurePersonResponsible.setProtocolPerson(newIacucProtocolPerson);\n newIacucProcedurePersonResponsible.setIacucProtocolStudyGroupId(newIacucProtocolStudyGroup.getIacucProtocolStudyGroupId());\n }\n for(IacucProtocolStudyGroupLocation newIacucProtocolStudyGroupLocation : newIacucProtocolStudyGroup.getIacucProcedureLocationResponsibleList()) {\n newIacucProtocolStudyGroupLocation.resetPersistenceState();\n newIacucProtocolStudyGroupLocation.setIacucProtocolStudyGroupId(newIacucProtocolStudyGroup.getIacucProtocolStudyGroupId());\n }\n }\n }",
"public Generation(Generation lastGen, double differenceImportance) {\n rules = lastGen.rules;\n this.differenceImportance = differenceImportance;\n lastGen.sortDNAs();\n for (int i = 0; i < 10; i++) {\n for (int j = 0; j < 10; j++) {\n DNA dna = new DNA(lastGen.getDNAs().get(i), lastGen.getDNAs().get(j));\n dna.mutate();\n DNAs.add(dna);\n }\n }\n for (int i = 0; i < DNAs.size(); i++) {\n DNAs.get(i).setDifferenceImportance(differenceImportance);\n }\n }",
"private void updateTaxonWithGenesLoaded( Taxon taxon ) {\n if ( !taxon.getIsGenesUsable() ) {\n taxon.setIsGenesUsable( true );\n taxonService.update( taxon );\n log.info( \"Updating taxon genes loaded to true for taxon \" + taxon );\n }\n\n }",
"public static void main(String[] args) {\n String s1 = \"ShivaniKashyap\";\n char[] chararray = s1.toCharArray();\n LinkedHashSet set = new LinkedHashSet();\n LinkedHashSet newset = new LinkedHashSet();\n for(int i=0;i<chararray.length;i++)\n {\n if( !set.add(chararray[i]))\n {\n newset.add(chararray[i]);\n\n }\n\n }\n System.out.println(newset);\n }",
"private static void assignMembersOwnersToMemberships(Collection<Object[]> membershipArrays) {\r\n for (Object[] membershipArray : GrouperUtil.nonNull(membershipArrays)) {\r\n assignMemberOwnerToMembership(membershipArray);\r\n } \r\n }",
"Set<String> getExpressionOrgUnitGroupIds(String expression, ParseType parseType);"
] | [
"0.5225393",
"0.5176617",
"0.506406",
"0.49331456",
"0.49254194",
"0.4918292",
"0.48948118",
"0.4846818",
"0.48047802",
"0.4804625",
"0.47484598",
"0.4676048",
"0.46604475",
"0.46588057",
"0.46341407",
"0.46011502",
"0.45939702",
"0.45904198",
"0.45560515",
"0.45520404",
"0.454397",
"0.45288783",
"0.45100832",
"0.4481514",
"0.44795755",
"0.44746512",
"0.44702628",
"0.44665638",
"0.4461173",
"0.44444123",
"0.44395792",
"0.44152093",
"0.44128636",
"0.44120497",
"0.44100678",
"0.4405753",
"0.43915093",
"0.43832636",
"0.4379138",
"0.4361552",
"0.43511593",
"0.43481126",
"0.43322825",
"0.43288544",
"0.43187693",
"0.4299357",
"0.42966956",
"0.4294036",
"0.42845726",
"0.42796785",
"0.4266486",
"0.4262114",
"0.42581582",
"0.42548412",
"0.4238773",
"0.42348605",
"0.42276946",
"0.42253754",
"0.4218869",
"0.420335",
"0.42018872",
"0.41939262",
"0.41848773",
"0.4179889",
"0.41643938",
"0.41621014",
"0.41618335",
"0.41586387",
"0.4156721",
"0.41536477",
"0.4152266",
"0.41505054",
"0.41297525",
"0.41194198",
"0.41161346",
"0.41136438",
"0.41105667",
"0.41098368",
"0.41069433",
"0.4095727",
"0.40954423",
"0.40913332",
"0.40891373",
"0.40854383",
"0.4085412",
"0.40839306",
"0.40824237",
"0.40797555",
"0.4079272",
"0.40783733",
"0.40780568",
"0.4078055",
"0.4066965",
"0.40650982",
"0.4061338",
"0.4057697",
"0.40567863",
"0.40566725",
"0.40552565",
"0.40512854"
] | 0.5100111 | 2 |
prepare a bunch of datetime objects | private static void testDuration() {
LocalTime time1 = LocalTime.of(15, 20, 38);
LocalTime time2 = LocalTime.of(21, 8, 49);
LocalDateTime dateTime1 = time1.atDate(LocalDate.of(2014, 5, 27));
LocalDateTime dateTime2 = time2.atDate(LocalDate.of(2015, 9, 15));
Instant i1 = Instant.ofEpochSecond(1_000_000_000);
Instant i2 = Instant.now();
// create duration between two points
Duration d1 = Duration.between(time1, time2);
Duration d2 = Duration.between(dateTime1, dateTime2);
Duration d3 = Duration.between(i1, i2);
Duration d4 = Duration.between(time1, dateTime2);
// create duration from some random value
Duration threeMinutes;
threeMinutes = Duration.ofMinutes(3);
threeMinutes = Duration.of(3, ChronoUnit.MINUTES);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"protected void beforeTimeSlices()\n\t\tthrows DbCompException\n\t{\n dates = new ArrayList<Date>();\n\t}",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\n\t}",
"@Test\n public void testSetLocalDateTime() throws SQLException {\n List<String> zoneIdsToTest = getZoneIdsToTest();\n List<String> datesToTest = getDatesToTest();\n\n for (String zoneId : zoneIdsToTest) {\n ZoneId zone = ZoneId.of(zoneId);\n for (String date : datesToTest) {\n LocalDateTime localDateTime = LocalDateTime.parse(date);\n String expected = localDateTime.atZone(zone)\n .format(DateTimeFormatter.ISO_LOCAL_DATE_TIME)\n .replace('T', ' ');\n localTimestamps(zone, localDateTime, expected);\n }\n }\n }",
"@Override\n public void prepareTransient() {\n fixDates();\n untilWhenDate = assignDateField(untilWhen);\n }",
"@Override\n public void prepareTransient() {\n fixDates();\n logTimeDate = assignDateField(logTime);\n }",
"private void setDateTimeViews(){\n setDueDateView();\n setDueTimeView();\n }",
"private DateTimeAdjusters() {\n\n }",
"private void initDates() throws RIFCSException {\n NodeList nl = super.getElements(Constants.ELEMENT_DATE);\n\n for (int i = 0; i < nl.getLength(); i++) {\n dates.add(new DateWithTypeDateFormat(nl.item(i)));\n }\n }",
"private void init() {\n setMinutes(new int[] {});\n setHours(new int[] {});\n setDaysOfMonth(new int[] {});\n setMonths(new int[] {});\n setDaysOfWeek(new int[] {});\n }",
"@Test\n public void testSetOffsetDateTime() throws SQLException {\n List<String> zoneIdsToTest = getZoneIdsToTest();\n List<TimeZone> storeZones = new ArrayList<TimeZone>();\n for (String zoneId : zoneIdsToTest) {\n storeZones.add(TimeZone.getTimeZone(zoneId));\n }\n List<String> datesToTest = getDatesToTest();\n\n for (TimeZone timeZone : storeZones) {\n ZoneId zoneId = timeZone.toZoneId();\n for (String date : datesToTest) {\n LocalDateTime localDateTime = LocalDateTime.parse(date);\n String expected = date.replace('T', ' ');\n offsetTimestamps(zoneId, localDateTime, expected, storeZones);\n }\n }\n }",
"public void testConvertDate() throws Exception {\n String[] message= {\n \"from Date\",\n \"from Calendar\",\n \"from SQL Date\",\n \"from SQL Time\",\n \"from SQL Timestamp\"\n };\n \n long now = System.currentTimeMillis();\n \n Object[] date = {\n new Date(now),\n new java.util.GregorianCalendar(),\n new java.sql.Date(now),\n new java.sql.Time(now),\n new java.sql.Timestamp(now)\n };\n \n // Initialize calendar also with same ms to avoid a failing test in a new time slice\n ((GregorianCalendar)date[1]).setTimeInMillis(now);\n \n for (int i = 0; i < date.length; i++) {\n Object val = makeConverter().convert(getExpectedType(), date[i]);\n assertNotNull(\"Convert \" + message[i] + \" should not be null\", val);\n assertTrue(\"Convert \" + message[i] + \" should return a \" + getExpectedType().getName(),\n getExpectedType().isInstance(val));\n assertEquals(\"Convert \" + message[i] + \" should return a \" + date[0],\n now, ((Date) val).getTime());\n }\n }",
"@Test\n public void testSetLocalDateTimeBc() throws SQLException {\n assumeTrue(TestUtil.haveIntegerDateTimes(con));\n\n // use BC for funsies\n List<LocalDateTime> bcDates = new ArrayList<LocalDateTime>();\n bcDates.add(LocalDateTime.parse(\"1997-06-30T23:59:59.999999\").with(ChronoField.ERA, IsoEra.BCE.getValue()));\n bcDates.add(LocalDateTime.parse(\"0997-06-30T23:59:59.999999\").with(ChronoField.ERA, IsoEra.BCE.getValue()));\n\n for (LocalDateTime bcDate : bcDates) {\n String expected = LOCAL_TIME_FORMATTER.format(bcDate);\n localTimestamps(ZoneOffset.UTC, bcDate, expected);\n }\n }",
"public void startDateQuestionSet() {\n this.dateQuestionSet = new HashSet<>();//creates a new dateQuestionSet\n for (Question q : this.getForm().getQuestionList()) {//for every question in the question list of the current form\n if (q.getType().getId() == 4) {//if the question is type Date Question\n Quest newQuest = new Quest();//creates a new Quest\n newQuest.setqQuestion(q);//adds the current question to the new Quest\n this.dateQuestionSet.add(newQuest);//adds the new Quest to the new dateQuestionSet\n }\n }\n }",
"public void setDataGatheringDateTime(Date dateTime) { this.dataGatheringDateTime = dateTime; }",
"void setCreationDateTimes(final Order order) {\n final LocalDateTime now = LocalDateTime.now();\n order.setCreatedAt(now);\n order.setUpdatedAt(now);\n order.getData().setOrderedAt(now);\n }",
"private void buildDateTimeHypos(ArrayList<DateTimeHypo> hypos, String type, String[] subslots)\n {\n hypos.clear();\n \n SlotHypo[] subHypos = new SlotHypo[subslots.length];\n \n \n for ( SlotHypo sh : slot_hypos )\n {\n if ( !sh.name.startsWith(type) ) continue;\n for ( int i = 0; i < subslots.length; ++i )\n if ( sh.name.equals(type+\".\"+subslots[i]) )\n subHypos[i] = sh;\n }\n \n DateTimeHypo nh = new DateTimeHypo(type);\n nh.belief_prob = 1;\n hypos.add(nh);\n \n int bound = 1;\n for ( SlotHypo sh : subHypos )\n {\n if ( sh == null || sh.value_hypos.isEmpty() )\n continue;\n \n for ( ValueHypo vh : sh.value_hypos )\n {\n for ( int i = 0; i < bound; ++i )\n {\n DateTimeHypo th = new DateTimeHypo(hypos.get(i));\n th.addSVP(new SVP(sh.name,vh.name));\n th.belief_prob = hypos.get(i).belief_prob * vh.belief_prob;\n if ( th.belief_prob > 0.0001 )\n hypos.add(th);\n }\n }\n for ( int i = 0; i < bound; ++i )\n hypos.get(i).belief_prob *= sh.nullProb;\n \n prune(hypos);\n \n bound = hypos.size();\n }\n \n Iterator iter = hypos.iterator();\n if ( iter.hasNext() ) iter.next(); //skip the first\n while ( iter.hasNext() )\n {\n DateTimeHypo h = (DateTimeHypo)iter.next();\n \n /*\n boolean observed = false;\n for ( DateTimeHypo ht : observed_date_time_history )\n {\n if ( ht.equals(h) )\n {\n observed = true;\n break;\n }\n }\n if ( !observed )\n * */\n if ( !h.isValid() )\n iter.remove();\n }\n }",
"public void testDateTimeConverters() throws Exception {\n long currentTime = System.currentTimeMillis();\n java.util.Date utilDate = new java.util.Date(currentTime);\n assertConversion(\"DateToLong\", new DateTimeConverters.DateToLong(), utilDate, currentTime);\n assertConversion(\"DateToSqlDate\", new DateTimeConverters.DateToSqlDate(), utilDate, new java.sql.Date(currentTime));\n assertConversion(\"DateToString\", new DateTimeConverters.DateToString(), utilDate, utilDate.toString());\n //assertConversion(\"StringToDate\", new DateTimeConverters.StringToDate(), utilDate.toString(), utilDate);\n assertConversion(\"DateToTimestamp\", new DateTimeConverters.DateToTimestamp(), utilDate, new java.sql.Timestamp(currentTime));\n // Source class = java.sql.Date\n java.sql.Date sqlDate = new java.sql.Date(currentTime);\n assertConversion(\"SqlDateToDate\", new DateTimeConverters.SqlDateToDate(), sqlDate, utilDate);\n assertConversion(\"SqlDateToString\", new DateTimeConverters.SqlDateToString(), sqlDate, sqlDate.toString());\n //assertConversion(\"StringToSqlDate\", new DateTimeConverters.StringToSqlDate(), sqlDate.toString(), sqlDate);\n java.sql.Timestamp timestamp = new java.sql.Timestamp(currentTime);\n assertConversion(\"SqlDateToTimestamp\", new DateTimeConverters.SqlDateToTimestamp(), sqlDate, timestamp);\n assertConversion(\"StringToTimestamp\", new DateTimeConverters.StringToTimestamp(), timestamp.toString(), timestamp);\n assertConversion(\"TimestampToDate\", new DateTimeConverters.TimestampToDate(), timestamp, utilDate);\n assertConversion(\"TimestampToSqlDate\", new DateTimeConverters.TimestampToSqlDate(), timestamp, sqlDate);\n //assertConversion(\"TimestampToString\", new DateTimeConverters.TimestampToString(), timestamp, timestamp.toString());\n }",
"public DateTime createDateTime() throws IllegalCommandArgumentException {\n DateTime dateTime = null;\n if (containsStartDate && containsStartTime && containsEndDate && containsEndTime) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, startTime, endDate, endTime);\n checkStartEndDate(startDate, endDate, dateTime); \n } else if (containsStartDate && containsStartTime && containsEndTime) {\n dateTime = new DateTime(startDate, startTime, endTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsStartTime) {\n dateTime = new DateTime(startDate, startTime);\n checkEndDate(startDate, dateTime);\n } else if (containsStartDate && containsEndDate) {\n compareStartEndDate();\n dateTime = new DateTime(startDate, \"0800\", endDate, \"2359\");\n checkStartEndDate(startDate, endDate, dateTime);\n } else if (containsStartDate) {\n dateTime = new DateTime(startDate);\n checkEndDate(startDate, dateTime);\n } else if (containsStartTime && containsEndTime) {\n dateTime = new DateTime(currentDate, startTime, endTime);\n } else if (containsStartTime) {\n dateTime = new DateTime(currentDate, startTime);\n }\n return dateTime;\n }",
"public void adjustSettlementDatesAndPopulateMap() {\r\n\t\tfor (TradeEntity ee : entityArrayList) {\r\n\t\t\tif (!isWorkingDay(ee.getCurrency(), ee.getSettlementDate().getDayOfWeek())) {\r\n\t\t\t\tee.setEffectiveSettlementDate(getNextWorkingDay(ee));\r\n\t\t\t} else {\r\n\t\t\t\tee.setEffectiveSettlementDate(ee.getSettlementDate());\r\n\t\t\t}\r\n\t\t\tpopulateDateEntityMap(ee);\r\n\t\t}\r\n\r\n\t}",
"private void mInitData(int DaysRange, int HourRange) {\n mDaysRange = DaysRange;\n mHourRange = HourRange;\n\n mDateList = new ArrayList<>();\n mHourList = new ArrayList<>();\n mTimeWithMeridianList = new ArrayList<>();\n mDatewithYearList = new ArrayList<>();\n\n // Calculate Date List\n calculateDateList();\n }",
"public void initialiserCompte() {\n DateTime dt1 = new DateTime(date1).withTimeAtStartOfDay();\n DateTime dt2 = new DateTime(date2).withEarlierOffsetAtOverlap();\n DateTime dtIt = new DateTime(date1).withTimeAtStartOfDay();\n Interval interval = new Interval(dt1, dt2);\n\n\n\n// while (dtIt.isBefore(dt2)) {\n while (interval.contains(dtIt)) {\n compte.put(dtIt.toDate(), 0);\n dtIt = dtIt.plusDays(1);\n }\n }",
"private static void fillReserveTimeList(ResultSet resultSet, List<ReserveTime> reserveTimes){\n\t\ttry {\n\t\t\twhile (resultSet.next()){\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\tfillReserveTime(resultSet, reserveTime);\n\t\t\t\treserveTimes.add(reserveTime);\n\t\t\t}\n\t\t}catch(SQLException e){\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"private void getTimestamps() {\n \t\tCalendar calendar = new GregorianCalendar(2007,Calendar.JANUARY,1);\n \t\tcalendar.set(2000 + yy, mm - 1, dd, HH, MM);\n \t\tString[] tempstr = new String[6];\n \n \t\tfor(int i = 0; i < r.length; i++) {\n \t\t\tif(calendar.get(Calendar.YEAR) < 10) {\n \t\t\t\ttempstr[0] = \"0\" + str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[0] = str(calendar.get(Calendar.YEAR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MONTH) < 9) {\n \t\t\t\ttempstr[1] = \"0\" + str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[1] = str(calendar.get(Calendar.MONTH) + 1);\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.DATE) < 10) {\n \t\t\t\ttempstr[2] = \"0\" + str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[2] = str(calendar.get(Calendar.DATE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.HOUR) < 12) {\n \t\t\t\tif(calendar.get(Calendar.AM_PM) == 1) {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR) + 12);\n \t\t\t\t}\n \t\t\t\telse if(calendar.get(Calendar.HOUR) < 10) {\n \t\t\t\t\ttempstr[3] = \"0\" + str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[3] = str(calendar.get(Calendar.HOUR));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.MINUTE) < 10) {\n \t\t\t\ttempstr[4] = \"0\" + str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[4] = str(calendar.get(Calendar.MINUTE));\n \t\t\t}\n \t\t\tif(calendar.get(Calendar.SECOND) < 10) {\n \t\t\t\ttempstr[5] = \"0\" + str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\telse {\n \t\t\t\ttempstr[5] = str(calendar.get(Calendar.SECOND));\n \t\t\t}\n \t\t\t\n \t\t\t//LightMaskClient.appendMainText(\"\\nGettings time\");\n \t\t\t//matTime[i] = calendar.getTimeInMillis();\n \t\t\t//LightMaskClient.appendMainText(\"\\nGot time\" + matTime[i]);\n \n \t\t\t//timestamps[i] = tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5] + \" \" + tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0];\n \t\t\ttimestamps[i] = tempstr[1] + \"/\" + tempstr[2] + \"/\" + tempstr[0] + \" \" + tempstr[3] + \":\" + tempstr[4] + \":\" + tempstr[5];\n \t\t\t//LightMaskClient.appendMainText(\"\\n\" + timestamps[i]);\n \t\t\tcalendar.add(Calendar.SECOND, period);\n \t\t}\n \t}",
"@Test\r\n public void getDateValue() throws Exception {\r\n assertEquals(dt1,point1.getDateValue());\r\n assertEquals(dt2,point2.getDateValue());\r\n assertEquals(dt3,point3.getDateValue());\r\n assertEquals(dt4,point4.getDateValue());\r\n }",
"public static DateTime[] parse(String dateTime){\n boolean containsEndTime = dateTime.contains(\"-\");\n DateTime [] values = null;\n\n String split [] = dateTime.split(\" \");\n String date [] = split[0].split(\"/\");\n\n // send back two times if an end time is given\n if(containsEndTime){\n values = new DateTime[2];\n\n String timeRange [] = split[1].split(\"-\");\n String timeStart [] = timeRange[0].split(\":\");\n String timeStop [] = timeRange[1].split(\":\");\n\n DateTime start = new DateTime();\n start.withYear(Integer.parseInt(date[0]));\n start.withMonthOfYear(Integer.parseInt(date[1]));\n start.withDayOfMonth(Integer.parseInt(date[2]));\n start.withHourOfDay(Integer.parseInt(timeStart[0]));\n start.withMinuteOfHour(Integer.parseInt(timeStart[1]));\n start.withSecondOfMinute(0);\n start.withMillisOfSecond(0);\n\n DateTime end = new DateTime(start);\n end.withHourOfDay(Integer.parseInt(timeStop[0]));\n end.withMinuteOfHour(Integer.parseInt(timeStop[1]));\n\n values[0] = start;\n values[1] = end;\n\n }else{\n // one time if no end date is given\n values = new DateTime[1];\n\n String time[] = split[1].split(\":\");\n\n DateTime allDay = new DateTime();\n allDay.withYear(Integer.parseInt(date[0]));\n allDay.withMonthOfYear(Integer.parseInt(date[1]));\n allDay.withDayOfMonth(Integer.parseInt(date[2]));\n allDay.withHourOfDay(Integer.parseInt(time[0]));\n allDay.withMinuteOfHour(Integer.parseInt(time[1]));\n allDay.withSecondOfMinute(0);\n allDay.withMillisOfSecond(0);\n\n values[0] = allDay;\n }// end if\n\n return values;\n }",
"Dates() {\n clear();\n }",
"public static String[] makeRelativeTimes(int[] timeIndices,\n float timeInc) {\n\n GregorianCalendar utcCalendar =\n new GregorianCalendar(TimeZone.getTimeZone(\"GMT\"));\n String currentDate = null;\n String times = null;\n List timesList = new ArrayList();\n\n Date now = new Date();\n int minInc = (int) (60 * timeInc);\n int minutes = minInc % 60;\n int hours = minInc / 60;\n utcCalendar.setTime(now);\n int curHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int curMin = utcCalendar.get(utcCalendar.MINUTE);\n // normalize for time inc\n // int diff = curHour- (curHour / timeInc) * timeInc; \n /*\n int diff = curHour % hourInc;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + diff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -diff);\n */\n int hdiff = (hours == 0)\n ? 0\n : curHour % hours;\n int mdiff = (minutes == 0)\n ? curMin\n : curMin % minutes;\n // System.err.println(\"cur hour:\" + curHour + \" diff:\" + hdiff);\n // System.err.println(\"cur min:\" + curMin + \" diff:\" + mdiff);\n utcCalendar.add(utcCalendar.HOUR_OF_DAY, -hdiff);\n utcCalendar.add(utcCalendar.MINUTE, -mdiff);\n now = utcCalendar.getTime();\n for (int i = 0; i < timeIndices.length; i++) {\n //Reset the date to now.\n utcCalendar.setTime(now);\n //Go back timeIndices*increment hours\n //utcCalendar.add(utcCalendar.HOUR_OF_DAY,\n // -timeIndices[i] * hourInc);\n utcCalendar.add(utcCalendar.MINUTE, -timeIndices[i] * minInc);\n int newMin = utcCalendar.get(utcCalendar.MINUTE);\n int newHour = utcCalendar.get(utcCalendar.HOUR_OF_DAY);\n int newDay = utcCalendar.get(utcCalendar.DAY_OF_YEAR);\n int newYear = utcCalendar.get(utcCalendar.YEAR);\n String thisDate = \"\" + newYear + StringUtil.padZero(newDay, 3);\n //Do we have a new day\n if ( !Misc.equals(currentDate, thisDate)) {\n if (currentDate != null) {\n //if not the first time through then add it to the list\n timesList.add(makeDateUrl(currentDate, times.toString()));\n }\n currentDate = thisDate;\n times = \"\";\n }\n\n //Append the time \n if (times.length() > 0) {\n times = times + \",\";\n }\n times = times + newHour + \":\" + StringUtil.padZero(newMin, 2);\n }\n\n //add the last one to the list\n if (currentDate != null) {\n timesList.add(makeDateUrl(currentDate, times));\n }\n\n return (String[]) timesList.toArray(new String[timesList.size()]);\n\n }",
"public void setDateAndTime(int d,int m,int y,int h,int n,int s);",
"private void initDate(){\n\n owa = findViewById(R.id.OWA);\n sda = findViewById(R.id.SWA);\n fida = findViewById(R.id.FIDA);\n fda = findViewById(R.id.FDA);\n trda = findViewById(R.id.TRDA);\n tda = findViewById(R.id.TDA);\n hier = findViewById(R.id.HIER);\n\n dateList.add(hier);\n dateList.add(tda);\n dateList.add(trda);\n dateList.add(fda);\n dateList.add(fida);\n dateList.add(sda);\n dateList.add(owa);\n\n }",
"private TimestampUtils(){}",
"private static void fillBriefServerTimes(ResultSet resultSet, List<ReserveTime> reserveTimes) {\n\t\ttry {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\treserveTime.setID(resultSet.getInt(1));\n\t\t\t\treserveTime.setDateID(resultSet.getInt(2));\n\t\t\t\treserveTime.setResCodeID(resultSet.getString(3));\n\t\t\t\treserveTime.setStartTime(resultSet.getObject(4, LocalTime.class));\n\t\t\t\treserveTimes.add(reserveTime);\n\t\t\t}\n\t\t}catch (SQLException e){\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"public void assemble(Fields fields) {\n fields.millis = a;\n fields.seconds = b;\n fields.minutes = c;\n fields.hours = d;\n fields.halfdays = e;\n fields.days = f;\n fields.weeks = g;\n fields.millisOfSecond = h;\n fields.millisOfDay = i;\n fields.secondOfMinute = j;\n fields.secondOfDay = k;\n fields.minuteOfHour = l;\n fields.minuteOfDay = m;\n fields.hourOfDay = n;\n fields.hourOfHalfday = o;\n fields.clockhourOfDay = p;\n fields.clockhourOfHalfday = q;\n fields.halfdayOfDay = r;\n fields.year = new BasicYearDateTimeField(this);\n fields.yearOfEra = new GJYearOfEraDateTimeField(fields.year, this);\n fields.centuryOfEra = new DividedDateTimeField((DateTimeField) new OffsetDateTimeField(fields.yearOfEra, 99), DateTimeFieldType.centuryOfEra(), 100);\n fields.centuries = fields.centuryOfEra.getDurationField();\n fields.yearOfCentury = new OffsetDateTimeField(new RemainderDateTimeField((DividedDateTimeField) fields.centuryOfEra), DateTimeFieldType.yearOfCentury(), 1);\n fields.era = new GJEraDateTimeField(this);\n fields.dayOfWeek = new GJDayOfWeekDateTimeField(this, fields.days);\n fields.dayOfMonth = new BasicDayOfMonthDateTimeField(this, fields.days);\n fields.dayOfYear = new BasicDayOfYearDateTimeField(this, fields.days);\n fields.monthOfYear = new GJMonthOfYearDateTimeField(this);\n fields.weekyear = new BasicWeekyearDateTimeField(this);\n fields.weekOfWeekyear = new BasicWeekOfWeekyearDateTimeField(this, fields.weeks);\n fields.weekyearOfCentury = new OffsetDateTimeField(new RemainderDateTimeField(fields.weekyear, fields.centuries, DateTimeFieldType.weekyearOfCentury(), 100), DateTimeFieldType.weekyearOfCentury(), 1);\n fields.years = fields.year.getDurationField();\n fields.months = fields.monthOfYear.getDurationField();\n fields.weekyears = fields.weekyear.getDurationField();\n }",
"protected void doAWTimeSlice()\n\t\tthrows DbCompException\n\t{\n//AW:TIMESLICE\n dates.add(_timeSliceBaseTime);\n//AW:TIMESLICE_END\n\t}",
"private static Entity addScheduleDateDataEntities(final Schema schema) {\n Entity scheduleDateData = schema.addEntity(\"ScheduleDateData\");\n scheduleDateData.addIdProperty().primaryKey().autoincrement();\n scheduleDateData.addIntProperty(\"schedule_id\").notNull();\n scheduleDateData.addStringProperty(\"schedule_name\");\n scheduleDateData.addStringProperty(\"class_id\");\n scheduleDateData.addStringProperty(\"class_name\");\n scheduleDateData.addStringProperty(\"class_desc\");\n scheduleDateData.addStringProperty(\"schedule_type_id\");\n scheduleDateData.addStringProperty(\"schedule_type\");\n scheduleDateData.addStringProperty(\"schedule_start_date\");\n scheduleDateData.addStringProperty(\"schedule_start_time\");\n scheduleDateData.addStringProperty(\"schedule_end_time\");\n scheduleDateData.addLongProperty(\"schedule_start_time_long\");\n scheduleDateData.addLongProperty(\"schedule_end_time_long\");\n scheduleDateData.addIntProperty(\"schedule_monday\");\n scheduleDateData.addIntProperty(\"schedule_tuesday\");\n scheduleDateData.addIntProperty(\"schedule_wednesday\");\n scheduleDateData.addIntProperty(\"schedule_thursday\");\n scheduleDateData.addIntProperty(\"schedule_friday\");\n scheduleDateData.addIntProperty(\"schedule_saturday\");\n scheduleDateData.addIntProperty(\"schedule_sunday\");\n scheduleDateData.addStringProperty(\"schedule_frequency\");\n scheduleDateData.addIntProperty(\"is_cancelled\");\n scheduleDateData.addIntProperty(\"is_reservable\");\n scheduleDateData.addStringProperty(\"instructor_id\");\n scheduleDateData.addStringProperty(\"instructor_name\");\n scheduleDateData.addStringProperty(\"location_id\");\n scheduleDateData.addStringProperty(\"location_name\");\n\n return scheduleDateData;\n }",
"public void createDateList(Connection connection) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"DATELIST\", null);\n\n if (rs != null) {\n\n System.out.print(\"Please provide a start date: \");\n LocalDate start = LocalDate.parse(scan.nextLine());\n\n System.out.print(\"Please provide an end date: \");\n LocalDate end = LocalDate.parse(scan.nextLine());\n\n while (!start.isAfter(end)){\n\n String sql = \"INSERT INTO DateList VALUES (to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'))\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n pStmt.setString(1, start.toString());\n pStmt.setString(2, end.toString());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }",
"private static void prepareAdvData() {\n ADV_DATA.add(createDateTimePacket());\n ADV_DATA.add(createDeviceIdPacket());\n ADV_DATA.add(createDeviceSettingPacket());\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutTimePacket(i));\n }\n for (int i = 0; i < 3; i++) {\n ADV_DATA.add(createBlackOutDatePacket(i));\n }\n }",
"private void setUp() {\r\n Calendar calendar1 = Calendar.getInstance();\r\n calendar1.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n calendar1.roll(Calendar.DAY_OF_YEAR, -6);\r\n \r\n Calendar calendar2 = Calendar.getInstance();\r\n calendar2.set((endDate.get(Calendar.YEAR)), \r\n (endDate.get(Calendar.MONTH)), (endDate.get(Calendar.DAY_OF_MONTH)));\r\n \r\n acceptedDatesRange[0] = calendar1.get(Calendar.DAY_OF_YEAR);\r\n acceptedDatesRange[1] = calendar2.get(Calendar.DAY_OF_YEAR); \r\n \r\n if(acceptedDatesRange[1] < 7) {\r\n acceptedDatesRange[0] = 1; \r\n }\r\n \r\n //MiscStuff.writeToLog(\"Ranges set \" + calendar1.get\r\n // (Calendar.DAY_OF_YEAR) + \" \" + calendar2.get(Calendar.DAY_OF_YEAR));\r\n }",
"@NoProxy\n public void setDtstamps(final Timestamp val) {\n DateTime dt = new DateTime(val);\n setDtstamp(new DtStamp(dt).getValue());\n setLastmod(new LastModified(dt).getValue());\n setCtoken(getLastmod() + \"-\" + hex4FromNanos(val.getNanos()));\n\n if (getCreated() == null) {\n setCreated(new Created(dt).getValue());\n }\n }",
"private void normalizeDate(ContentValues values) {\n if (values.containsKey(ChoreContract.EventsEntry.COLUMN_TIMESTAMP)) {\n long dateValue = values.getAsLong(ChoreContract.EventsEntry.COLUMN_TIMESTAMP);\n values.put(ChoreContract.EventsEntry.COLUMN_TIMESTAMP, ChoreContract.normalizeDate(dateValue));\n }\n }",
"private static void fillReserveTimeList(ResultSet resultSet\n\t\t\t, Map<MiddayID\n\t\t\t, List<ReserveTime>> reserveTimes){\n\t\ttry {\n\t\t\tList<ReserveTime> morningReserveTimes = new ArrayList<>();\n\t\t\tList<ReserveTime> afternoonReserveTimes = new ArrayList<>();\n\t\t\twhile (resultSet.next()){\n\t\t\t\tReserveTime reserveTime = new ReserveTime();\n\t\t\t\tfillReserveTime(resultSet, reserveTime);\n\t\t\t\tif (reserveTime.getMiddayID() == MiddayID.MORNING)\n\t\t\t\t\tmorningReserveTimes.add(reserveTime);\n\t\t\t\telse if (reserveTime.getMiddayID() == MiddayID.AFTERNOON)\n\t\t\t\t\tafternoonReserveTimes.add(reserveTime);\n\t\t\t}\n\t\t\treserveTimes.put(MiddayID.MORNING, morningReserveTimes);\n\t\t\treserveTimes.put(MiddayID.AFTERNOON, afternoonReserveTimes);\n\t\t}catch(SQLException e) {\n\t\t\tLogger.getLogger(\"Exception\").log(Level.SEVERE, \"Exception \" + e);\n\t\t}\n\t}",
"private TimeSeries createEURTimeSeries(String WellID, String lang) {\n int count = 0;\n String precipitation = \"\";\n if(lang.equals(\"EN\")){\n precipitation = precipitation_en;\n }else{\n precipitation = precipitation_fr;\n }\n TimeSeries t1 = new TimeSeries(precipitation + \" (mm)\");\n //System.out.println (t1.getMaximumItemCount()); \n Hour begin = new Hour( 1, 1, 1, 2005);\n Hour end = new Hour(23, 31, 12, 2012);\n String endStr = end.toString();\n String str = begin.toString();\n \n for(Hour h1 = begin; !str.equals(endStr) ; h1 = (Hour) h1.next()){\n Second s = new Second(0, 0, h1.getHour(), h1.getDayOfMonth(), h1.getMonth(), h1.getYear());\n t1.addOrUpdate(s, new Double(Double.NaN)); \n str = h1.toString();\n }\n \n try {\n // Open the file that is the first \n // command line parameter\n FileInputStream fstream = new FileInputStream(\"Y:\\\\PGMN\\\\Precipitation\\\\\" + WellID + \".csv\");\n // Get the object of DataInputStream\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n //Read File Line By Line\n int i = 0;\n while ((strLine = br.readLine()) != null) {\n if(i>0){ \n String [] temp = strLine.split(\",\");\n //System.out.println (i);\n String [] dateTimeAM = (temp[2]).split(\" \"); //08/20/2009 10:35:00 AM\n \n String [] dates = (dateTimeAM[0]).split(\"/\"); //6/10/2009\n int month = Integer.parseInt(dates[0]);\n int day = Integer.parseInt(dates[1]);\n int year = Integer.parseInt(dates[2]);\n //System.out.println (i);\n int hour = 0;\n int minute = 0;\n int second = 0; \n if (dateTimeAM.length > 1) {\n String [] temp3 = (dateTimeAM[1]).split(\":\"); //10:35:00\n hour = Integer.parseInt(temp3[0]);\n minute = Integer.parseInt(temp3[1]);\n second = Integer.parseInt(temp3[2]);\n //08/20/2009 10:35:00 AM\n if ((dateTimeAM[2]).equals(\"PM\")) {\n if (hour < 12) {\n hour = hour + 12;\n }\n }\n if ((dateTimeAM[2]).equals(\"AM\") && (hour == 12)) {\n hour = 0;\n }\n }\n Second s = new Second(second, minute, hour, day, month, year);\n //System.out.println(strLine);\n //System.out.println(year + \", \" + month + \", \" + day + \", \" + hour + \", \" + minute + \", \" + second);\n //Hour h = new Hour(hour, day, month, year);\n Double d = new Double(Double.NaN);\n //System.out.println(temp[2]);\n if (temp.length > 2){\n d = Double.parseDouble(temp[3]);// - depth;\n count ++;\n }\n t1.addOrUpdate(s, d);\n }\n i = i + 1;\n }\n in.close();\n \n }\n catch (Exception e) {\n System.err.println(e.getMessage());\n }\n \n return t1;\n }",
"private Set calculateTimeSet() {\n List choices = getDataChoices();\n if (choices.isEmpty()) {\n return null;\n }\n Set newSet = null;\n for (int i = 0; i < choices.size(); i++) {\n try {\n VerticalProfileInfo info = getVPInfo(i);\n GridDataInstance dataInstance = info.getDataInstance();\n Set set = GridUtil.getTimeSet(dataInstance.getGrid());\n //System.out.println(\"di.timeset[\"+i+\"] = \" + set);\n if (set != null) {\n if (newSet == null) {\n newSet = set;\n } else {\n newSet = newSet.merge1DSets(set);\n }\n }\n } catch (Exception e) {\n logger.error(\"Problem calculating TimeSet\", e);\n }\n }\n //System.out.println(\"merged time set = \" + newSet);\n return newSet;\n }",
"public void init( Object date,\n Object time)\n {\n leftOperand = (ValueNode) date;\n rightOperand = (ValueNode) time;\n operator = \"timestamp\";\n methodName = \"getTimestamp\";\n }",
"public Event createModelFromMultpleTSVline(HashSet<String[]> gatheredValues,\n String provenanceInfo,\n char separator,\n DateTimeFormatter dateTimeFormatter,\n boolean filterFrom,\n LocalDate fromDate,\n boolean filterTo,\n LocalDate toDate,\n boolean filterByKeyword,\n String keyword) {\n\n Event event = null;\n boolean firstLine = true;\n for (String[] values : gatheredValues) {\n if (firstLine) {\n event = new Event(values[0], provenanceInfo);\n firstLine = false;\n }\n //fill the attributes\n //add uri\n event.addURI(values[0]);\n\n //add label after removing the language tag\n if (values[1].contains(\"@\"))\n event.addLabel(values[1].substring(0, values[1].indexOf(\"@\")));\n else\n event.addLabel(values[1]);\n\n\n // 1214-07-27^^http://www.w3.org/2001/XMLSchema#date\n //incomplete date 1863-##-##^^http://www.w3.org/2001/XMLSchema#date\n String date = values[2].replace(\"##\", \"01\");\n if (values[2].contains(\"^\"))\n date = date.substring(0, date.indexOf(\"^\"));\n\n try {\n LocalDate localDate = LocalDate.parse(date, dateTimeFormatter);\n //check date against user input parameters\n if (filterFrom) { //&& filterTo) {\n //if (localDate.isAfter(toDate) || localDate.isBefore(fromDate)) {\n if (localDate.isBefore(fromDate)) {\n return null;\n }\n }\n if (filterTo) {\n if (localDate.isAfter(toDate)) {\n return null;\n }\n }\n event.addDate(localDate);\n } catch (DateTimeParseException e) {\n //System.out.println(values[0] + \" \" + date);\n return null;\n }\n\n\n\n //50.5833^^http://www.w3.org/2001/XMLSchema#float\t3.225^^http://www.w3.org/2001/XMLSchema#float\n //event.setLat(Double.valueOf(values[3].substring(0, values[3].indexOf(\"^\"))));\n //event.setLon(Double.valueOf(values[4].substring(0, values[4].indexOf(\"^\"))));\n if (values.length>4) {\n String latString = values[3];\n if (latString.contains(\"^\"))\n latString = latString.substring(0, latString.indexOf(\"^\"));\n String longString = values[4];\n if (longString.contains(\"^\"))\n longString = longString.substring(0, longString.indexOf(\"^\"));\n\n Pair<Double, Double> p = new Pair<>(\n Double.valueOf(latString),\n Double.valueOf(longString)\n );\n event.addCoordinates(p);\n }\n if (values.length>5) {\n event.addSame(values[5]);\n }\n if (values.length>6) {\n Location location = new Location(values[6], provenanceInfo);\n event.addLocation(location);\n }\n }\n\n //filter labels by keyword\n if(filterByKeyword) {\n if (!event.getLabels().stream().anyMatch(label -> label.trim().toLowerCase().contains(keyword.toLowerCase()))) {\n return null;\n } /*else {\n System.out.println(keyword + \" found for \" + event.getLabels());\n }*/\n }\n\n return event;\n }",
"@Override\n\t\t\tprotected Void doInBackground(Void... params) {\n\t\t\t\ttOccslots = new ArrayList<Integer>();\n\t\t\t\tpOccslots = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < teacherDateList.size(); i++){\n\t\t\t\t\tParseObject o = teacherDateList.get(i);\n\t\t\t\t\ttOccslots.add(o.getInt(Constants.SLOTID));\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < parentDateList.size(); i++){\n\t\t\t\t\tParseObject o = parentDateList.get(i);\n\t\t\t\t\tpOccslots.add(o.getInt(Constants.SLOTID));\n\t\t\t\t}\n \t\t\tParseQuery<ParseObject> query = new ParseQuery<ParseObject>(Constants.TIMELINE);\n \t\t\tquery.whereNotContainedIn(Constants.SLOTID, tOccslots);\n \t\t\tquery.whereNotContainedIn(Constants.SLOTID, pOccslots);\n \t\t\tquery.addAscendingOrder(Constants.SLOTID);\n \t\t\ttry {\n\t\t\t\t\ttimesAvailable = query.find();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n \t\t\tqueriedTimes = new ArrayList<Time>();\n for (ParseObject allTimes : timesAvailable){\n \tTime time = new Time();\n \ttime.setSlot(allTimes.getInt(Constants.SLOTID));\n time.setTeacher(tFirstname+Constants.SPACE+tLastname);\n time.setTime(allTimes.getString(Constants.TIME));\n queriedTimes.add(time);\n } \n timesList.addAll(queriedTimes);\n\t\t\t\treturn null;\n\t\t\t}",
"public void addListDataToDB() {\n\n for (int i = 1; i < 10; i++) {\n TimerDisplay timer = new TimerDisplay();\n timer.setCurrentDate(\"Jan 0\" + i + \" 2017 00:00\");\n timer.setEndDate(\"Jan 0\" + (i + 2) + \" 2017 00:00\");\n timer.setPercentage();\n\n databaseHelper.addDate(timer);\n //listTimers.add(timer);\n }\n }",
"public void GetAvailableDates()\n\t{\n\t\topenDates = new ArrayList<TimePeriod>(); \n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\t\n\t\t\tString query = \"SELECT startDate, endDate FROM Available WHERE available_hid = '\"+hid+\"'\"; \n\t\t\tResultSet rs = con.stmt.executeQuery(query);\n\t\t\t\n\t\t\twhile(rs.next())\n\t\t\t{\n\t\t\t\tTimePeriod tp = new TimePeriod(); \n\t\t\t\ttp.stringStart = rs.getString(\"startDate\"); \n\t\t\t\ttp.stringEnd = rs.getString(\"endDate\"); \n\t\t\t\ttp.StringToDate();\n\t\t\t\t\n\t\t\t\topenDates.add(tp); \n\t\t\t}\n\t\t\tcon.closeConnection(); \n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"private CreateDateUtils()\r\n\t{\r\n\t}",
"public DateTime() {\n this((BusinessObject) null);\n }",
"private void registerDateConversions(ITypeManager typeManager) {\n\t\ttypeManager.registerConverter(BsonDateTime.class, String.class, \n\t\t\t(Object val) -> ToCoreStrUtils.bsonDtToStr((BsonDateTime) val));\n\t\ttypeManager.registerConverter(BsonDateTime.class, Long.class, \n\t\t\t(Object val) -> ToCoreLngUtils.bsonDtToLng((BsonDateTime) val));\n\t\ttypeManager.registerConverter(BsonDateTime.class, BigInteger.class, \n\t\t\t(Object val) -> ToCoreBgiUtils.bsonDt2Bgi((BsonDateTime) val));\n\t\ttypeManager.registerConverter(BsonDateTime.class, BigDecimal.class, \n\t\t\t(Object val) -> ToCoreBgdUtils.bsonDt2Bgd((BsonDateTime) val));\n\t\ttypeManager.registerConverter(BsonDateTime.class, Calendar.class, \n\t\t\t(Object val) -> ToCoreCalUtils.bsonDt2Cal((BsonDateTime) val));\n\t\ttypeManager.registerConverter(BsonDateTime.class, Timestamp.class, \n\t\t\t(Object val) -> ToCoreTsUtils.bsonDt2Ts((BsonDateTime) val));\n\t}",
"@Test\n\tpublic void testValidateStartDate() {\n\t\ttry {\n\t\t\tfor(String emptyValue : ParameterSets.getEmptyValues()) {\n\t\t\t\tAssert.assertNull(SurveyResponseValidators.validateStartDate(emptyValue));\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tSurveyResponseValidators.validateStartDate(\"Invalid value.\");\n\t\t\t\tfail(\"The start date was invalid.\");\n\t\t\t}\n\t\t\tcatch(ValidationException e) {\n\t\t\t\t// Passed.\n\t\t\t}\n\n\t\t\tMap<DateTime, String> dateToString = ParameterSets.getDateToString();\n\t\t\tfor(DateTime date : dateToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateStartDate(dateToString.get(date)));\n\t\t\t}\n\t\t\t\n\t\t\tMap<DateTime, String> dateTimeToString = ParameterSets.getDateTimeToString();\n\t\t\tfor(DateTime date : dateTimeToString.keySet()) {\n\t\t\t\tAssert.assertEquals(date, SurveyResponseValidators.validateStartDate(dateTimeToString.get(date)));\n\t\t\t}\n\t\t}\n\t\tcatch(ValidationException e) {\n\t\t\tfail(\"A validation exception was thrown: \" + e.getMessage());\n\t\t}\n\t}",
"private void prepareListData() {\n listDataHeader = new ArrayList<String>();\n listDataChild = new HashMap<String, List<ArticleDB>>();\n\n //get start_date\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(opening.this);\n start_date = preferences.getString(\"start_date\",\"\");\n\n SimpleDateFormat sdfDOM = new SimpleDateFormat(\"dd\");\n SimpleDateFormat sdfMonth = new SimpleDateFormat(\"MMM-yyyy\");\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd-M-yyyy hh:mm:ss\");\n\n Calendar nextYear = Calendar.getInstance();\n nextYear.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n nextYear.add(Calendar.MONTH, 13);\n Date nextYearDate = nextYear.getTime();\n\n Date currentDate = new Date();\n try {\n currentDate = sdf.parse(start_date);\n } catch (ParseException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\n long days = printDifferenceDay(currentDate, nextYearDate);\n //Log.d(\"Days_between\", String.valueOf(days));\n\n Calendar loopMonth = Calendar.getInstance();\n loopMonth.add(Calendar.MONTH,0);\n currentDate = loopMonth.getTime();\n String tmpBefore = sdfMonth.format(currentDate);\n String tmpAfter = sdfMonth.format(currentDate);\n\n int countDay = 0, countMonth=0;\n ArticleDB item = new ArticleDB();\n List<ArticleDB> artTmp = new ArrayList<ArticleDB>();\n boolean flgAdd = false;\n\n while(countDay <= 365){//while next year date coming yet!\n\n if( !tmpBefore.equals(tmpAfter) || countDay == 365 ){//if not current month and total month <= 12 months and last day\n listDataHeader.add(tmpBefore);\n listDataChild.put(listDataHeader.get(countMonth), artTmp);//add to child list\n\n //reset data\n artTmp = new ArrayList<ArticleDB>();//reset tmp array\n countMonth++;\n\n //Log.d(\"Time\", tmpBefore + \"/\" + tmpAfter);\n //Log.d(\"Add\", String.valueOf(countMonth) );\n }\n\n String dom = sdfDOM.format(currentDate);\n //Log.d(\"DOM / Month\", dom + \"/\" + tmpBefore );\n try{\n item = db.getArticle(countDay + 1);\n item.setDom(dom);\n artTmp.add(item);\n } catch (Exception e){\n //do nothing\n }\n\n loopMonth.add(Calendar.HOUR, 24);\n currentDate = loopMonth.getTime();\n tmpBefore = tmpAfter;\n tmpAfter = sdfMonth.format(currentDate);\n //Log.d(\"Count Day\", String.valueOf(countDay));\n //Log.d(\"Day of Month\", dom);\n countDay++;//count up 1 more day\n }\n\n }",
"private List<Date> getTestDates() {\n List<Date> testDates = new ArrayList<Date>();\n TimeZone.setDefault(TimeZone.getTimeZone(\"Europe/London\"));\n\n GregorianCalendar calendar = new GregorianCalendar(2010, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 0, 2);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2010, 1, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n calendar = new GregorianCalendar(2011, 0, 1);\n testDates.add(new Date(calendar.getTimeInMillis()));\n\n return testDates;\n }",
"public static Date[] getRangeDateTimes(List dateTimes, Date dateTime, boolean millisecondIgnored)\n\t{\n\t\tfor (int i = 0; i < dateTimes.size() - 1; i++)\n\t\t{\n\t\t\tDate dateTime1 = (Date) dateTimes.get(i);\n\t\t\tDate dateTime2 = (Date) dateTimes.get(i + 1);\n\t\t\t\n\t\t\tlong time = dateTime.getTime();\n\t\t\tlong time1 = dateTime1.getTime();\n\t\t\tlong time2 = dateTime2.getTime();\n\t\t\t\n\t\t\tif (millisecondIgnored)\n\t\t\t{\n\t\t\t\ttime1 = time1 - time1 % 1000;\n\t\t\t\ttime2 = time2 - time2 % 1000;\n\t\t\t}\n\t\t\t\n\t\t\tif (time >= time1 && time <= time2)\n\t\t\t{\n\t\t\t\treturn new Date[] {dateTime1, dateTime2};\n\t\t\t}\t\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"DateTimeStruct getDateTimeStruct();",
"private void createFormattedTimeArray(ArrayList<String> timeArray, ArrayList<String> formattedTimeArray) {\n String timeString = String.join(\" \", timeArray);\n List<DateGroup> dateGroups = dateParser.parse(timeString);\n List<Date> dates = dateGroups.get(0).getDates();\n int dateSize = dates.size();\n for (int i = 0; i < dateSize; i++) {\n Date date = dates.get(i);\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"ddMMyy\");\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HHmm\");\n String formattedDate = dateFormat.format(date);\n String formattedTime;\n if (dateGroups.get(0).isTimeInferred()) {\n formattedTime = \"2359\";\n } else {\n formattedTime = timeFormat.format(date);\n }\n formattedTimeArray.add(formattedDate);\n formattedTimeArray.add(formattedTime);\n }\n }",
"public interface CrossDateTimeParser {\n\n\t\n\t\n\t/**\n\t * format dari date menjadi string format. pls refer pada\n\t * @param date tanggal yang akan di format menjadi string\n\t * @param dateFormat format dari date \n\t **/\n\tpublic String format (Date date , String dateFormat) ;\n\t\n\t\n\t\n\t/**\n\t * worker utnuk mem-parse dari string menjadi date\n\t * @param dateAsString date yang di jadikan string. ini apa yang akan di jadikan date\n\t * @param dateFormat format dari date\n\t **/\n\tpublic Date parse (String dateAsString , String dateFormat) throws Exception ; \n}",
"private List<Date> getDateTimes(String str) throws Exception {\n\t\tList<Date> dates = null;\n\n\t\tcom.joestelmach.natty.Parser nattyParser = new com.joestelmach.natty.Parser();\n\t\tList<DateGroup> groups = nattyParser.parse(str);\n\n\t\tfor (DateGroup group : groups) {\n\t\t\tdates = group.getDates();\n\t\t}\n\t\treturn dates;\n\t}",
"private void setDailyValues(){\n //set updateTime\n SimpleDateFormat t = new SimpleDateFormat(\"h:mm:ss a\");\n updatedTime = \"Last updated: \" + t.format(new Date(System.currentTimeMillis()));\n \n //set maxTemp and minTemp\n maxTemp = Integer.toString(weather.getMaxTemp());\n minTemp = Integer.toString(weather.getMinTemp());\n \n //set sunriseTime and sunsetTime\n SimpleDateFormat sr = new SimpleDateFormat(\"h:mm a\");\n sunriseTime = sr.format(new Date(weather.getSunrise()*1000));\n SimpleDateFormat ss = new SimpleDateFormat(\"h:mm a\");\n sunsetTime = sr.format(new Date(weather.getSunset()*1000));\n }",
"public abstract void setConfiguracion(ArrayList<String> DateEntrada);",
"public DateUtil ( DateUtil b)\n {\n this.ordinal = b.ordinal;\n this.yyyy = b.yyyy;\n this.mm = b.mm;\n this.dd = b.dd;\n }",
"private List<String> makeListOfDates(HashSet<Calendar> workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n SimpleDateFormat sdf = new SimpleDateFormat();\n List<String> days = new ArrayList<>();\n for (Calendar date : workDays) {\n //SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/YYYY\");\n days.add(sdf.format(date.getTime()));\n }\n\n return days;\n }",
"@SuppressWarnings(\"unchecked\")\n\tprotected void genObjects(GenCtx ctx, Date day)\n\t throws GenesisError\n\t{\n\t\tEntry[] entries = selectEntries(ctx, genObjsNumber(ctx));\n\t\tMap inds = new IdentityHashMap(getEntries().length);\n\n\t\t//~: put initial in-day indices\n\t\tfor(Entry e : getEntries())\n\t\t\tinds.put(e, 0);\n\n\t\t//c: for all the objects number of the day\n\t\tfor(int ei = 0;(ei < entries.length);ei++)\n\t\t{\n\t\t\t//~: find present per-day index\n\t\t\tint i = (Integer)inds.get(entries[ei]);\n\n\t\t\t//~: and store it in the context\n\t\t\tctx.set(DAYI, i + 1); //<-- starting from 1, not 0\n\n\t\t\t//~: generate the in-day time\n\t\t\tctx.set(TIME, genDayTime(ctx, day, ei + 1, entries.length));\n\n\t\t\t//!: call the genesis unit\n\t\t\tif(callGenesis(ctx, entries[ei]))\n\t\t\t{\n\t\t\t\t//~: update per-day counter\n\t\t\t\tinds.put(entries[ei], i + 1);\n\n\t\t\t\t//~: update total counter\n\t\t\t\tif(total.containsKey(entries[ei]))\n\t\t\t\t\ttotal.put(entries[ei], 1 + total.get(entries[ei]));\n\t\t\t\telse\n\t\t\t\t\ttotal.put(entries[ei], 1);\n\t\t\t}\n\n\t\t\tctx.set(TIME, null);\n\t\t}\n\n\t\t//~: write to the log\n\t\tlogGen(ctx, day, inds);\n\t}",
"public static void MakeNewClaims(model.Claims claims)\n {\n String ClaimsID = claims.getUsername();\n Date ClaimsDate = claims.getDate();\n String ClaimsRationale= claims.getRationale();\n String ClaimsStatus = claims.getStatus();\n int ClaimsAmount = claims.getAmount();\n\n ArrayList<Date> dates = new ArrayList<Date>();\n\n //DB Query\n String query = \"INSERT INTO XYZ.\\\"Claims\\\" (\\\"mem_id\\\",\\\"date\\\",\\\"rationale\\\",\\\"status\\\",\\\"amount\\\") VALUES ('\" + ClaimsID + \"', CURRENT_DATE ,'\" + ClaimsRationale + \"', '\" + ClaimsStatus + \"', \" + ClaimsAmount + \")\" ;\n String query1 = \"SELECT * FROM XYZ.\\\"Claims\\\" WHERE XYZ.\\\"Claims\\\".\\\"mem_id\\\" = \" + \"'\" + ClaimsID + \"'\";\n ResultSet rs = dao.DBConnectionProvider.executeQuery(query1);\n dao.DBConnectionProvider.commitQuery(query);\n /*try{\n\n while(rs.next()){\n dates.add(rs.getDate(\"date\"));\n }\n System.out.println(dates.size() + \" dates size\");\n if (dates.size() < 2){\n com.DBConnectionProvider.commitQuery(query);\n }else{\n SimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd\");\n Date startOfYear = format.parse(\"2019-01-01\");\n int claimsThisYear = 0;\n for (int i = 0; i < dates.size();i++){\n if (dates.get(i).after(startOfYear)){\n claimsThisYear++;\n }\n }\n if (claimsThisYear < 2){\n com.DBConnectionProvider.commitQuery(query);\n }\n\n }\n }catch(SQLException | ParseException e){;}*/\n }",
"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 }",
"@Override\n\tpublic void initDate() {\n\n\t}",
"private void prepareShifts() {\n // set John first shift\n LocalDateTime johnShift1Start = LocalDateTime.of(2017, 6, 23, 9, 0);\n LocalDateTime johnShift1End = LocalDateTime.of(2017, 6, 23, 17, 0);\n // set John second shift\n LocalDateTime johnShift2Start = LocalDateTime.of(2017, 6, 24, 6, 0);\n LocalDateTime johnShift2End = LocalDateTime.of(2017, 6, 24, 14, 0);\n // add John shifts to the list of shifts\n shifts.add(new Shift(\"John\", johnShift1Start, johnShift1End));\n shifts.add(new Shift(\"John\", johnShift2Start, johnShift2End));\n }",
"@Override\n\t\tprotected ArrayList<ArrayList<TimeItem>> doInBackground(ArrayList<Object>... params) {\n\t\t\treturn mergeSameTimePoint(params[0]);\n\t\t}",
"public Date[] getDates() {\n/* 141 */ return getDateArray(\"date\");\n/* */ }",
"private void fillTimeEntry(int offset, int length)\n throws RedmineException\n {\n getData(\"/time_entries\",\"time_entry\",offset,length,new ParseElementHandler<TimeEntry>()\n {\n public void data(Element element)\n {\n//Dprintf.dprintf(\"element=%s projectId=%d issueId=%d userId=%d spentOn=%s\",element,getIntAttribute(element,\"project\",\"id\"),getIntAttribute(element,\"issue\",\"id\"),getIntAttribute(element,\"user\",\"id\"),getDateValue(element,\"spent_on\"),getDoubleValue(element,\"hours\"));\n TimeEntry timeEntry = new TimeEntry(getIntValue(element,\"id\"),\n getIntAttribute(element,\"project\",\"id\"),\n getIntAttribute(element,\"issue\",\"id\"),\n getIntAttribute(element,\"user\",\"id\"),\n getIntAttribute(element,\"activity\",\"id\"),\n getDoubleValue(element,\"hours\"),\n getValue(element,\"comments\"),\n getDateValue(element,\"spent_on\"),\n getDateValue(element,\"created_on\"),\n getDateValue(element,\"updated_on\")\n );\n store(timeEntry);\n }\n public void store(int index, TimeEntry timeEntry)\n {\n//Dprintf.dprintf(\"index=%d id=%d: %s\",index,timeEntry.id,timeEntry);\n timeEntryIdMap.put(timeEntry.id,index);\n if (!timeEntrySpentOnMap.containsKey(timeEntry.spentOn)) timeEntrySpentOnMap.put(timeEntry.spentOn,index);\n timeEntries.set(index,new SoftReference<TimeEntry>(timeEntry));\n }\n },\n \"sort:desc=spent_on\");\n }",
"public static List<Release_dateT> transferRelease_date(List<Release_date> date) {\r\n\t\tList<Release_dateT> dateT = new ArrayList<Release_dateT>();\r\n\t\tfor (Release_date temp : date) {\r\n\t\t\tdateT.add(transferRelease_date(temp));\r\n\t\t}\r\n\t\treturn dateT;\r\n\t}",
"protected void genObjectsTx(GenCtx ctx, Date day)\n\t throws GenesisError\n\t{\n\t\tgenObjects(ctx, day);\n\n\t\t//~: mark that day\n\t\tfor(Entry e : getEntries())\n\t\t\tif(e.getGenesis() instanceof DaysGenPart)\n\t\t\t\t((DaysGenPart)e.getGenesis()).markDayGenerated(ctx);\n\t}",
"public DateUtil (int yyyy, int mm, int dd, int how)\n {\n // save yyyy, mm, dd, and compete the ordinal equivalent\n set(yyyy, mm, dd, how);\n }",
"public void prepareObjetivos(){\n\t\tfor( int x= 0 ; x < game.getAmountObjetivos();x++){\n\t\t\tObjetivo o = game.getObjetivo(x);\n\t\t\timage = o.getImage();\n\t\t\ttemporal = image.getImage().getScaledInstance(o.getAncho(), o.getAlto(), Image.SCALE_SMOOTH);\n\t\t\to.setImage(new ImageIcon(temporal));\n\t\t}\n\t\t\n\t}",
"public void AddAvailableDates()\n\t{\n\t\ttry\n\t\t{\n\t\t\tConnector con = new Connector();\n\t\t\tString query; \n\t\t\t\n\t\t\tfor(int i = 0; i < openDates.size(); i++)\n\t\t\t{\n\t\t\t\tboolean inTable = CheckAvailableDate(openDates.get(i)); \n\t\t\t\tif(inTable == false)\n\t\t\t\t{\n\t\t\t\t\tquery = \"INSERT INTO Available(available_hid, price_per_night, startDate, endDate)\"\n\t\t\t\t\t\t\t+\" VALUE(\"+hid+\", \"+price+\", '\"+openDates.get(i).stringStart+\"', '\"+openDates.get(i).stringEnd+\"')\";\n\t\t\t\t\tint result = con.stmt.executeUpdate(query); \n\t\t\t\t}\n\t\t\t}\n\t\t\tcon.closeConnection();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void populateDemo(Connection connection, LocalDate start, LocalDate end) throws SQLException {\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"DateList\", null);\n\n if (rs != null){\n\n while (!start.isAfter(end)){\n\n String sql = \"INSERT INTO DateList VALUES (to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'))\";\n\n String sql1 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 5, 200)\";\n String sql2 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 300)\";\n String sql3 = \"INSERT INTO Information VALUES('Westin Hotel', 1, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 1000)\";\n String sql4 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 5, 200)\";\n String sql5 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 15, 400)\";\n String sql6 = \"INSERT INTO Information VALUES('Westin Hotel', 2, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 1000)\";\n String sql7 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 1, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 20, 800)\";\n String sql8 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 1, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 2000)\";\n String sql9 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 2, 'Traditional Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 25, 1000)\";\n String sql10 = \"INSERT INTO Information VALUES('Ritz Carlton Hotel', 2, 'Presidential Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 1, 2000)\";\n String sql11 = \"INSERT INTO Information VALUES('Four Seasons Hotel', 1, 'Single Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 350)\";\n String sql12 = \"INSERT INTO Information VALUES('Four Seasons Hotel', 1, 'Twin Suite', to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'), 10, 250)\";\n\n PreparedStatement pStmt = connection.prepareStatement(sql);\n PreparedStatement pStmt1 = connection.prepareStatement(sql1);\n PreparedStatement pStmt2 = connection.prepareStatement(sql2);\n PreparedStatement pStmt3 = connection.prepareStatement(sql3);\n PreparedStatement pStmt4 = connection.prepareStatement(sql4);\n PreparedStatement pStmt5 = connection.prepareStatement(sql5);\n PreparedStatement pStmt6 = connection.prepareStatement(sql6);\n PreparedStatement pStmt7 = connection.prepareStatement(sql7);\n PreparedStatement pStmt8 = connection.prepareStatement(sql8);\n PreparedStatement pStmt9 = connection.prepareStatement(sql9);\n PreparedStatement pStmt10 = connection.prepareStatement(sql10);\n PreparedStatement pStmt11 = connection.prepareStatement(sql11);\n PreparedStatement pStmt12 = connection.prepareStatement(sql12);\n\n pStmt.clearParameters();\n pStmt1.clearParameters();\n pStmt2.clearParameters();\n pStmt3.clearParameters();\n pStmt4.clearParameters();\n pStmt5.clearParameters();\n pStmt6.clearParameters();\n pStmt7.clearParameters();\n pStmt8.clearParameters();\n pStmt9.clearParameters();\n pStmt10.clearParameters();\n pStmt11.clearParameters();\n pStmt12.clearParameters();\n\n pStmt.setString(1, start.toString());\n pStmt1.setString(1, start.toString());\n pStmt2.setString(1, start.toString());\n pStmt3.setString(1, start.toString());\n pStmt4.setString(1, start.toString());\n pStmt5.setString(1, start.toString());\n pStmt6.setString(1, start.toString());\n pStmt7.setString(1, start.toString());\n pStmt8.setString(1, start.toString());\n pStmt9.setString(1, start.toString());\n pStmt10.setString(1, start.toString());\n pStmt11.setString(1, start.toString());\n pStmt12.setString(1, start.toString());\n\n start = start.plusDays(1);\n\n pStmt.setString(2, start.toString());\n pStmt1.setString(2, start.toString());\n pStmt2.setString(2, start.toString());\n pStmt3.setString(2, start.toString());\n pStmt4.setString(2, start.toString());\n pStmt5.setString(2, start.toString());\n pStmt6.setString(2, start.toString());\n pStmt7.setString(2, start.toString());\n pStmt8.setString(2, start.toString());\n pStmt9.setString(2, start.toString());\n pStmt10.setString(2, start.toString());\n pStmt11.setString(2, start.toString());\n pStmt12.setString(2, start.toString());\n\n try {\n pStmt.executeUpdate();\n pStmt1.executeUpdate();\n pStmt2.executeUpdate();\n pStmt3.executeUpdate();\n pStmt4.executeUpdate();\n pStmt5.executeUpdate();\n pStmt6.executeUpdate();\n pStmt7.executeUpdate();\n pStmt8.executeUpdate();\n pStmt9.executeUpdate();\n pStmt10.executeUpdate();\n pStmt11.executeUpdate();\n pStmt12.executeUpdate();\n }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n pStmt1.close();\n pStmt2.close();\n pStmt3.close();\n pStmt4.close();\n pStmt5.close();\n pStmt6.close();\n pStmt7.close();\n pStmt8.close();\n pStmt9.close();\n pStmt10.close();\n pStmt11.close();\n pStmt12.close();\n }\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }",
"public void prepare() {\n this.shifts = new ArrayList<>();\n this.rates = new ArrayList<>();\n // bootstrap shifts and rates\n this.prepareShifts();\n this.prepareRates();\n }",
"private static void isDateTime(String filters[]) throws WrongQueryFormatException {\n\t\tSimpleDateFormat format = new SimpleDateFormat(DateOperations.dateFormat);\n\t\ttry {\n\t\t\tDate startDate = format.parse(filters[3] + \" \" + filters[4]);\n\t\t\tDate endDate = format.parse(filters[5] + \" \" + filters[6]);\n\t\t\tif (startDate.after(endDate)) {\n\t\t\t\tthrow new WrongQueryFormatException(\"Start date,time should be before the end date/time\");\n\t\t\t}\n\t\t} catch (ParseException e) {\n\t\t\tthrow new WrongQueryFormatException(\"Wrong format of date, format is yyyy-MM-dd HH:MM\");\n\t\t}\n\t}",
"private List<Date> checkOrderOfDateTimes(List<Date> dateTimes) {\n\t\tif (dateTimes != null && dateTimes.size() == 2) {\n\t\t\tDate startDate = dateTimes.get(0);\n\t\t\tDate endDate = dateTimes.get(1);\n\t\t\tif (endDate.compareTo(startDate) < 0) {\n\t\t\t\tCalendar startCal = Calendar.getInstance();\n\t\t\t\tstartCal.setTime(startDate);\n\t\t\t\tstartCal.set(Calendar.HOUR_OF_DAY, 0);\n\t\t\t\tCalendar endCal = Calendar.getInstance();\n\t\t\t\tendCal.setTime(endDate);\n\t\t\t\tendCal.set(Calendar.HOUR_OF_DAY, 0);\n\n\t\t\t\tif (endCal.compareTo(startCal) == 0) {\n\t\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\t\tc.setTime(endDate);\n\t\t\t\t\tc.add(Calendar.DATE, 1);\n\t\t\t\t\tendDate = c.getTime();\n\t\t\t\t\tdateTimes.set(1, endDate);\n\t\t\t\t} else {\n\t\t\t\t\tdateTimes.set(0, endDate);\n\t\t\t\t\tdateTimes.set(1, startDate);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dateTimes;\n\t}",
"private void setUpFrom(){\n\t\tEPVentanaTemporal ven = new EPVentanaTemporal();\n\t\tEPPropiedad pro = new EPPropiedad();\n\t\t//setemamos la ventana.\n\t\tven.setNombre(\"time_batch\");\n\t\tven.setValor(\"10\");\n\t\tven.setUnidadTemporal(\"seconds\");\n\t\tven.setPseudonombre(\"a1\");\n\t\tpro.setNombre(\"p4\");\n\t\tpro.setPseudonombre(\"\");\n\t\tpro.setVentana(ven);\n\t\texpresionesFrom.add(pro);\n\t}",
"public void makeValidDate() {\n\t\tdouble jd = swe_julday(this.year, this.month, this.day, this.hour, SE_GREG_CAL);\n\t\tIDate dt = swe_revjul(jd, SE_GREG_CAL);\n\t\tthis.year = dt.year;\n\t\tthis.month = dt.month;\n\t\tthis.day = dt.day;\n\t\tthis.hour = dt.hour;\n\t}",
"void insertEmptyColumns() {\n List<DateTime> starts = new ArrayList<>();\n for (Long startMillis : mColumnsByStartMillis.keySet()) {\n starts.add(new DateTime(startMillis));\n }\n int maxEmptyColumns = 3 / getSegmentStartTimes().length;\n DateTime prev = starts.get(0);\n for (DateTime next : starts) {\n if (!next.isAfter(prev.plusDays(maxEmptyColumns))) {\n for (DateTime dt = prev.plusDays(1); dt.isBefore(next); dt = dt.plusDays(1)) {\n getColumnContainingTime(dt); // creates a column if it doesn't exist yet\n }\n }\n prev = next;\n }\n }",
"protected void fillMissingValues() {\r\n\t\tArrayList<Thread> fillDateThreads = new ArrayList<Thread>();\r\n\t\tfillDateValuesJob fillDateJob;\r\n\t\tThread currentThreadToAdd;\r\n\t\tfor (String date : datesValuesMap.keySet())\r\n\t\t{\r\n\t\t\tHashMap<String, SupplyValue> dateValue = datesValuesMap.get(date);\r\n\t\t\tfillDateJob = new fillDateValuesJob(dateValue, zonesTreeRoot);\r\n\t\t\tcurrentThreadToAdd = new Thread(fillDateJob);\r\n\t\t\tcurrentThreadToAdd.start();\r\n\t\t\tfillDateThreads.add(currentThreadToAdd);\r\n\t\t}\r\n\t\tfor (Thread fillThread : fillDateThreads)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tfillThread.join(THREAD_TIMEOUT);\r\n\t\t\t} catch (InterruptedException e) {}\r\n\t\t\tif (fillThread.isAlive())\r\n\t\t\t{\r\n\t\t\t\tSystem.err.println(\"one of the fill missing values threads didn't finish in timeout, results may be wrong\");\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public DateUtil (int yyyy, int mm, int dd)\n {\n set(yyyy, mm, dd, CHECK);\n }",
"private void initializeVariables(Date timeSlotDate)\n\t\t{\n\t\t\tthis.timeSlot = timeSlotDate;\n\t\t}",
"private Tasks createTaskListForAddingOrUpdating(ArrayList<String> arguments) {\n Tasks task = null;\n String descriptionOfTask = arguments.get(0);\n ArrayList<String> timeArray = getTimeArray(arguments, 0);\n int numberOfArguments = timeArray.size();\n \n if (numberOfArguments == 0) {\n task = new FloatingTask(descriptionOfTask);\n } else {\n try {\n for (int i = 0; i < timeArray.size(); i++) {\n Integer.parseInt(timeArray.get(i));\n }\n task = createNoKeywordTask(task, descriptionOfTask, timeArray, numberOfArguments);\n } catch (NumberFormatException e) {\n task = createKeywordTask(task, descriptionOfTask, timeArray);\n }\n }\n return task;\n }",
"@Override\r\n\tpublic void flushAll(Date date) {\n\t\t\r\n\t}",
"private void prepare( ) {\n super.prepare( schema.getCount( ) );\n serializer = new FieldSerializer[ fieldCount ];\n for ( int i = 0; i < fieldCount; i++ ) {\n FieldSchema field = schema.getField( i );\n serializer[i] = serializerByType[ field.getType().ordinal() ];\n }\n }",
"public void getDateEvents(Connection connection, StoreData data){\n\t\t//The following code is used to prepare a sql statement to get all the events\n\t\tdata.resetSingle();\n\t\tPreparedStatement preStmt=null;\n\t\tString stmt = \"SELECT * FROM Event\";\n\t\t//prepares the date given to this method to be used to get the correct events \n\t\tString passedDate = data.getDate();\n\t\tSimpleDateFormat displayDate = new SimpleDateFormat(\"MM-dd-yyyy\");\n\t\tSimpleDateFormat dbDate = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tSimpleDateFormat theDay = new SimpleDateFormat(\"dd\");\n\t\tSimpleDateFormat month = new SimpleDateFormat(\"MM\");\n\t\tSimpleDateFormat year = new SimpleDateFormat(\"yyyy\");\n\t\tString formatSDate = null;\n\t\tString formatEDate = null;\n\t\tString sMonth = null;\n\t\tString eMonth = null;\n\t\tString sDay = null;\n\t\tString eDay = null;\n\t\tString curDay = null;\n\t\tString curMonth = null;\n\t\tint startD = 0;\n\t\tint endD = 0;\n\t\tint curD = 0;\n\t\tint startM = 0;\n\t\tint curM = 0;\n\t\tint endM = 0;\n\t\t\n\t\t//This try catch block is used to get the events that are returned based on\n\t\t//the dates that the event has\n\t\ttry{\n\t\t\tpreStmt = (PreparedStatement) connection.prepareStatement(stmt);\n\t\t\tResultSet rs = preStmt.executeQuery();\n\t\t\tStoreData newDay;\n\t\t\t//loops through all of the events storing the ones that have the matching dates\n\t\t\twhile(rs.next()){\n\t\t\t\tnewDay = new StoreData();\n\t\t\t\tString name = rs.getString(\"Name\");\n\t\t\t\tString description = rs.getString(\"Description\");\n\t\t\t\tString location = rs.getString(\"Location\");\n\t\t\t\tString date = rs.getString(\"Start_Date\");\n\t\t\t\tString endDate = rs.getString(\"End_Date\");\n\t\t\t\t//This try catch formats the dates to be used to check to see if they are correct\n\t\t\t\ttry {\n\n\t\t\t\t\tformatSDate = displayDate.format(dbDate.parse(date));\n\t\t\t\t\tformatEDate = displayDate.format(dbDate.parse(endDate));\n\t\t\t\t\tsDay = theDay.format(dbDate.parse(date));\n\t\t\t\t\teDay = theDay.format(dbDate.parse(endDate));\n\t\t\t\t\tcurDay = theDay.format(displayDate.parse(passedDate));\n\t\t\t\t\tsMonth = month.format(dbDate.parse(date));\n\t\t\t\t\teMonth = month.format(dbDate.parse(endDate));\n\t\t\t\t\tcurMonth = month.format(displayDate.parse(passedDate));\n\t\t\t\t\tstartD = Integer.parseInt(sDay);\n\t\t\t\t\tendD = Integer.parseInt(eDay);\n\t\t\t\t\tcurD = Integer.parseInt(curDay);\n\t\t\t\t\tstartM = Integer.parseInt(sMonth);\n\t\t\t\t\tcurM = Integer.parseInt(curMonth);\n\t\t\t\t\tendM = Integer.parseInt(eMonth);\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tString sTime = rs.getString(\"Start_Time\");\n\t\t\t\tString eTime = rs.getString(\"End_Time\");\n\t\t\t\tnewDay.setName(name);\n\t\t\t\tnewDay.setDescription(description);\n\t\t\t\tnewDay.setLocation(location);\n\t\t\t\tnewDay.setDate(date);\n\t\t\t\tnewDay.setEndDate(endDate);\n\t\t\t\tnewDay.setSTime(sTime);\n\t\t\t\tnewDay.setETime(eTime);\n\t\t\t\t//stores the events that match the date that was given\n\t\t\t\tif(curD >= startD && curD <= endD && curM == startM){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(startM < curM && curM == endM && curD <= endD){\n\t\t\t\t\tdata.addDayEvent(newDay);\n\t\t\t\t}else if(curD < startD || curD > endD){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"Man you got problems now\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public FillDate() {\n }",
"@Test\n public void testDateRangeNoDate() throws Exception {\n Map<String, String> fields = new HashMap<String, String>();\n this.addSingleDayDateRange.invoke(this.lockService, fields);\n \n Assert.assertNull(\"should not contain a time \" + fields.get(\"generatedTimestamp\"), fields.get(\"generatedTimestamp\"));\n }",
"public List<LocalDate> createLocalDates( final int size ) {\n\n\t\tfinal List<LocalDate> list = new ArrayList<>(size);\n\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tlist.add(LocalDate.ofEpochDay(i));\n\t\t}\n\n\t\treturn list;\n\t}",
"private void setDateTime() {\n int day, month, year, dayOfWeek, hour, minute;\n Calendar cal;\n if (!mIsUpdateEvent && !mIsAddEvent)\n cal = Calendar.getInstance();\n else\n cal = new GregorianCalendar(mStartYear, mStartMonth, mStartDay, mStartHour, mStartMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n\n TextView date1 = findViewById(R.id.date1);\n date1.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time1 = findViewById(R.id.time1);\n time1.setText((DateTimeUtils.formattedTime(hour, minute)));\n datePicker2 = new TextDatePicker(this, R.id.date2, null);\n datePicker1 = new TextDatePicker(this, R.id.date1, datePicker2);\n datePicker1.day = day;\n datePicker1.month = month;\n datePicker1.year = year;\n\n timePicker2 = new TextTimePicker(this, R.id.time2, null);\n timePicker1 = new TextTimePicker(this, R.id.time1, timePicker2);\n timePicker1.hour = hour;\n timePicker1.minute = minute;\n\n if (mIsUpdateEvent) {\n cal = new GregorianCalendar(mEndYear, mEndMonth, mEndDay, mEndHour, mEndMinute);\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH);\n year = cal.get(Calendar.YEAR);\n dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);\n hour = cal.get(Calendar.HOUR_OF_DAY);\n minute = cal.get(Calendar.MINUTE);\n }\n\n TextView date2 = findViewById(R.id.date2);\n date2.setText(DateTimeUtils.formattedDate(this, dayOfWeek, month, day, year));\n time2 = findViewById(R.id.time2);\n time2.setText((DateTimeUtils.formattedTime(hour, minute)));\n\n datePicker2.day = day;\n datePicker2.month = month;\n datePicker2.year = year;\n\n timePicker2.hour = hour;\n timePicker2.minute = minute;\n\n if (mIsUpdateEvent && mIsAllDay ==1) {\n timePicker1.removeClickListener();\n time1.setText(\"\");\n timePicker2.removeClickListener();\n time2.setText(\"\");\n }\n }",
"public Object[] get_Values(){return new Object[]{ Id, CategoryId, StartTime, BreakTime, EndTime };}",
"@Override\n\tpublic boolean create(Dates obj) {\n\t\treturn false;\n\t}",
"protected Time(Date dateTime) throws ArgumentException {\n\t\tthis.setHours(dateTime.getHours());\n\t\tthis.setMinutes(dateTime.getMinutes());\n\t\tthis.setSeconds(dateTime.getSeconds());\n\t}",
"@Override\n public Optional<List<Object[]>> getPopulateTempTableContent() {\n List<Object[]> batchArgs = new ArrayList<>();\n\n for (DataSet dataSet : objects) {\n CategoryCombo categoryCombo = dataSet.getCategoryCombo();\n\n for (OrganisationUnit orgUnit : dataSet.getSources()) {\n if (!categoryCombo.isDefault()) {\n if (orgUnit.hasCategoryOptions()) {\n Set<CategoryOption> orgUnitOptions = orgUnit.getCategoryOptions();\n\n for (CategoryOptionCombo optionCombo : categoryCombo.getOptionCombos()) {\n Set<CategoryOption> optionComboOptions = optionCombo.getCategoryOptions();\n\n if (orgUnitOptions.containsAll(optionComboOptions)) {\n Date startDate =\n DateUtils.min(\n optionComboOptions.stream()\n .map(co -> co.getStartDate())\n .collect(Collectors.toSet()));\n Date endDate =\n DateUtils.max(\n optionComboOptions.stream()\n .map(co -> co.getAdjustedEndDate(dataSet))\n .collect(Collectors.toSet()));\n\n List<Object> values =\n Lists.newArrayList(\n dataSet.getId(), orgUnit.getId(), optionCombo.getId(), startDate, endDate);\n\n batchArgs.add(values.toArray());\n }\n }\n }\n } else {\n List<Object> values =\n Lists.newArrayList(\n dataSet.getId(), orgUnit.getId(), defaultOptionCombo.getId(), null, null);\n\n batchArgs.add(values.toArray());\n }\n }\n }\n\n return Optional.of(batchArgs);\n }",
"protected abstract List<TemporalField> validFields();",
"public static void createAppointment(Appointment TemplateAppointment) {\n String sql = \"INSERT INTO appointments Values(NULL, ?, ?,?,?,?,?,Now(),'',Now(),'',?,?,?)\";\n // (Appointment_ID,Title,Description, Type, Phone, Division_ID) VALUES (5, '', 'test', '', 'test','')\" ;\n\n try {\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ps.setString(1, TemplateAppointment.getTitle());\n ps.setString(2, TemplateAppointment.getDescription());\n ps.setString(3, TemplateAppointment.getLocation());\n ps.setString(4, TemplateAppointment.getType());\n LocalDateTime start = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getStartTime());\n start = WashTimeZone(start, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n LocalDateTime end = LocalDateTime.of(TemplateAppointment.getDate(), TemplateAppointment.getEndTime());\n end = WashTimeZone(end, ZoneId.systemDefault(), ZoneId.of(\"UTC\"));\n Timestamp Tstart = Timestamp.valueOf(start);\n Timestamp Tend = Timestamp.valueOf(end);\n ps.setTimestamp(5, Tstart);\n ps.setTimestamp(6, Tend);\n//timezone work needs to happen here\n\n ps.setInt(7, TemplateAppointment.getCustomerid());\n ps.setInt(8, TemplateAppointment.getUserid());\n ps.setInt(9, TemplateAppointment.getContactid());\n\n ps.execute();\n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }",
"public Future<List<cn.vertxup.psi.domain.tables.pojos.POutTicket>> findManyByCreatedAt(Collection<LocalDateTime> values) {\n return findManyByCondition(POutTicket.P_OUT_TICKET.CREATED_AT.in(values));\n }",
"private void _init() throws Exception {\n if (this.getListaDelCommunication() != null) {\n this.getObjectListDataProvider().setList(this.getListaDelCommunication());\n }\n\n if (this.getListaDelCommunication2() != null) {\n this.getObjectListDataProvider2().setList(this.getListaDelCommunication2());\n }\n\n dateTimeConverter1.setTimeZone(null);\n dateTimeConverter1.setPattern(\"dd/MM/yy\");\n dateTimeConverter1.setDateStyle(\"full\");\n }"
] | [
"0.58052653",
"0.58043647",
"0.56661403",
"0.547128",
"0.5469754",
"0.5427309",
"0.53592867",
"0.5345362",
"0.5334882",
"0.5308328",
"0.5276325",
"0.52528715",
"0.5189466",
"0.51324785",
"0.5128294",
"0.50853276",
"0.5076408",
"0.5036697",
"0.5011998",
"0.49937513",
"0.49889252",
"0.49790215",
"0.49594977",
"0.49463505",
"0.4923173",
"0.49212512",
"0.49085188",
"0.49064708",
"0.49016708",
"0.489852",
"0.48976153",
"0.4890858",
"0.48859024",
"0.4882137",
"0.48616534",
"0.4858132",
"0.48551816",
"0.4838371",
"0.48344415",
"0.48246777",
"0.4802483",
"0.47985312",
"0.47938192",
"0.47918192",
"0.4788247",
"0.47830397",
"0.47813305",
"0.47744992",
"0.47623822",
"0.47617573",
"0.47450033",
"0.47396544",
"0.47389552",
"0.47250473",
"0.47247767",
"0.4723933",
"0.47131065",
"0.47054178",
"0.46958175",
"0.46941346",
"0.4690178",
"0.46817556",
"0.4679229",
"0.4669217",
"0.46663442",
"0.4662063",
"0.465174",
"0.4650889",
"0.46464863",
"0.4642546",
"0.4627939",
"0.46223545",
"0.46194923",
"0.46177074",
"0.46161312",
"0.46141323",
"0.46083885",
"0.4606819",
"0.45981258",
"0.45933613",
"0.45842716",
"0.4574982",
"0.4571552",
"0.45697564",
"0.45696616",
"0.4568829",
"0.45651197",
"0.45580652",
"0.4537543",
"0.45289958",
"0.45265624",
"0.45241436",
"0.45228848",
"0.45215106",
"0.4520562",
"0.45190305",
"0.45148066",
"0.45125714",
"0.45078892",
"0.45077947",
"0.45053023"
] | 0.0 | -1 |
implementarea return compacta e facuta in service | @PostMapping("/postCar")
public ResponseEntity<Compacta> postCar(@RequestBody Compacta compacta){
return compactaService.postCar(compacta);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public WebService_Detalle_alquiler_factura() {\n }",
"public interface ProcesoVENService extends Service {\n\n\t/**\n\t * Ejecuta procedimiento generico\n\t * @param nombreExecute\n\t * @param criteria\n\t */\n\tpublic void executeGenerico(String nombreExecute, Map criteria) ;\n\t\n\t/**Actualiza calensarios\n\t * @param calendario\n\t * @param usuario\n\t */\n\tpublic void updateCalendario(Calendario calendario, Usuario usuario);\n\t\n\t/**devuelve lista de calendarios\n\t * @param criteria\n\t * @return\n\t */\n\tpublic List getCalendarios(Map criteria);\n\t\n\t/**\n\t * devuelve el calendario\n\t * @param criteria\n\t * @return\n\t */\n\tpublic Calendario getCalendario(Map criteria);\n\t\n /**\n * devuelve los feriados d euna zona\n * @param criteria\n * @return\n */\n public List getFeriadoZona(Map criteria);\n\t\n\t/**\n\t * Actualiza feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void updateFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * Inserta los feriados de una zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void insertFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\t\n\t/**\n\t * elimina los feriados d euna zona\n\t * @param feriadoZona\n\t * @param usuario\n\t */\n\tpublic void deleteFeriadoZona(FeriadoZona feriadoZona, Usuario usuario);\n\n\t/**\n\t * Metodo que trae las zonas de una region\n\t * @param feriadoRegion\n\t * @return\n\t */\n\tpublic List getZonasRegion(String feriadoRegion);\n\n\t/**\n\t * Retorna el indicador de habilitacion RUV\n\t * @param criteria\n\t * @return\n\t */\n\tpublic String getIndicadorHabilitacionRuv(Map criteria);\n\n\t/**\n\t * Genera la informacion para el reporte RUV\n\t * @param map\n\t */\n\tpublic void executeGeneracionReporteRUV(Map map);\n\t\n\t/**\n\t * Genera los archivos de libro de ventas - detalles SII\n\t * @param map\n\t */\n\tpublic void executeGenerarArchivosLibroVentasDetalleSII(Map map);\n\t\n}",
"public interface UmsatzService extends Service\n{\n\n public static final String KEY_ID = \"id\";\n public static final String KEY_KONTO_ID = \"konto_id\";\n public static final String KEY_GEGENKONTO_NAME = \"empfaenger_name\";\n public static final String KEY_GEGENKONTO_NUMMER = \"empfaenger_konto\";\n public static final String KEY_GEGENKONTO_BLZ = \"empfaenger_blz\";\n public static final String KEY_ART = \"art\";\n public static final String KEY_BETRAG = \"betrag\";\n public static final String KEY_VALUTA = \"valuta\";\n public static final String KEY_DATUM = \"datum\";\n public static final String KEY_ZWECK = \"zweck\";\n public static final String KEY_ZWECK_RAW = \"zweck_raw\";\n public static final String KEY_SALDO = \"saldo\";\n public static final String KEY_PRIMANOTA = \"primanota\";\n public static final String KEY_CUSTOMER_REF = \"customer_ref\";\n public static final String KEY_UMSATZ_TYP = \"umsatz_typ\";\n public static final String KEY_KOMMENTAR = \"kommentar\";\n public static final String KEY_GVCODE = \"gvcode\";\n\n\n /**\n * Liefert eine Liste der Umsaetze.\n * Jede Zeile entspricht einem Umsatz. Die einzelnen Werte sind durch Doppelpunkt getrennt.\n * @param text Suchbegriff.\n * @param von Datum im Format dd.mm.yyyy.\n * @param bis Datum im Format dd.mm.yyyy.\n * @return Liste der Konten.\n * @throws RemoteException\n */\n public String[] list(String text, String von, String bis) throws RemoteException;\n\n /**\n * Liefert eine Liste der Umsaetze.\n * ueber dem Hash koennen die folgenden Filter gesetzt werden:\n *\n * konto_id\n * art\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * id\n * id:min\n * id:max\n * saldo\n * saldo:min\n * saldo:max\n * valuta\n * valuta:min\n * valuta:max\n * datum\n * datum:min\n * datum:max\n * betrag\n * betrag:min\n * betrag:max\n * primanota\n * customer_ref\n * umsatz_typ (Name oder ID der Umsatz-Kategorie)\n * zweck\n *\n * Die Funktion liefer eine Liste mit den Umsaetzen zurueck\n * jeder Umsatz liegt als Map vor und enthält die folgenden\n * Elemente:\n *\n * id\n * konto_id\n * empfaenger_name\n * empfaenger_konto\n * empfaenger_blz\n * saldo\n * valuta\n * datum\n * betrag\n * primanota\n * customer_ref\n * umsatz_typ\n * zweck\n * kommentar\n * \n * @param options Map mit den Filter-Parametern.\n * @return Liste der Umsaetze.\n * @throws RemoteException\n */\n public List<Map<String,Object>> list(HashMap<String,Object> options) throws RemoteException;\n}",
"public abstract String tiposervicio();",
"public String darServicios(){\n return servicios;\n }",
"@Override\n protected ProdutoServicoImpl getservice() {\n return produtoService;\n }",
"public ServicioCreditoTributario getServicioCreditoTributario()\r\n/* 91: */ {\r\n/* 92:113 */ return this.servicioCreditoTributario;\r\n/* 93: */ }",
"public interface NivelService {\n\n List<Nivel> ListarNivel(String Descripcion, String Estado, String PaginaStart, String PaginaLength, String Orderby);\n Integer CantidadNivel(String Descripcion, String Estado);\n Nivel viewNivel(Integer Codigo);\n RespuestaTransaccion mantenimientoNivel(Nivel nivel, String usuario, Integer operacion);\n\n}",
"public interface IServicio {\n\n\tpublic String operacion();\n}",
"public interface IPaymentService {\r\n\r\n\r\n\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoPSE(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t\r\n\t/**\r\n\t * Metodo que permite hacer le pago por PSE\r\n\t * @return factura de la factura generada\r\n\t */\r\n\tpublic FacturaCompra pagoCreditCard(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n\t/**\r\n\t * Metodo que permite realizar el pago \r\n\t * mediante efectivo en un punto de pago\r\n\t * @return\r\n\t */\r\n\tpublic FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);\r\n\t\r\n}",
"public interface SaludaService{\n public String saluda(String nombre);\n}",
"public interface ICompteService {\n\t/**\n\t * Declaration des methodes metier\n\t */\n\tpublic void createCompte(Compte compte);\n\n\tpublic List<Compte> getAllCompte();\n\n\tpublic void deleteCompte(Long numeroCompte);\n\n\tpublic void updateCompte(Compte compte);\n\n\tpublic Compte getCompteById(Long numeroCompte);\n\n\tpublic void virement(Long compteEmetteur, Long compteRecepteur, double montant);\n\n\tpublic void versement(long numeroCompte, double montant);\n\n}",
"public IRecepteur quiEstAuDessus();",
"public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}",
"public interface TransacaoService {\n\n List<TransacaoDTO> getAll();\n List<TransacaoDTO> getByCliente(String cpf);\n TransacaoDTO salvarTransacao(CreateTransacaoDTO createTransacaoDTO);\n TransacaoDTO atualizarTransacao(Integer id, TransacaoDTO transacaoDTO);\n void deletarTransacao( Integer id);\n InputStreamResource getExtrato(String cpf) throws IOException;\n InputStreamResource getExtratoByCartao(Integer id) throws IOException;\n}",
"public abstract java.lang.String getAcma_cierre();",
"com.soa.SolicitarServicioDocument.SolicitarServicio getSolicitarServicio();",
"public interface MayCtaService {\r\n\r\n\t/**\r\n\t * Checks if is valid previous level.\r\n\t *\r\n\t * @param catalog the catalog\r\n\t * @param errorMsg the error msg\r\n\t * @return true, if is valid previous level\r\n\t */\r\n\tboolean isValidPreviousLevel(Maycta catalog, StringBuilder errorMsg);\r\n\r\n\t/**\r\n\t * Find first by cuenta.\r\n\t *\r\n\t * @param cuenta the cuenta\r\n\t * @return the maycta\r\n\t */\r\n\tMaycta findFirstByCuenta(String cuenta);\r\n\r\n}",
"public void realiserAcahatProduit() {\n\t\t\n\t}",
"@Remote\npublic interface PasseUneCommande {\n\n public Commande passeUneCommande(Double prixHT,String rendezvous,String cookies);\n\n public List<String> choisirCookies();\n\n public List<Commande> getCommandes();\n\n\n}",
"public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }",
"public AjusteSaldoAFavorRespuesta() {\n\t}",
"public interface ConsultarExpedienteService {\n \n DyctContribuyenteDTO buscarNumcontrol(String numControl); \n \n DeclaracionConsultarExpedienteVO buscarOrigenSaldo(String numControl); \n \n ExpedienteDTO buscarExpedienteNumControl(String noControl);\n \n TramiteCortoDTO buscaNumeroControl(String noControl, String rfc);\n \n TramiteCortoDTO buscaNumeroControl(String noControl);\n \n List<DocumentoReqDTO> buscaDocumentoRequerido (String numControl);\n \n List<SolicitudAdministrarSolVO> selecXNumControlEstAprobado(String numControl);\n\n void actualizarFolioNYVFechaNoti(String numControlDoc, String numControl, String folio, String fecha) throws SIATException;\n \n}",
"public interface SuperviseMatterService extends Serializable, Tools {\n\n /**\n * 同意督办回复\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object approvalSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 回复督办事项\n *\n * @param token\n * @param variables\n * @return\n */\n Object replySuperviseMatter(String token, Map variables);\n\n /**\n * 选择反馈方式\n *\n * @param feedbackMode\n * @param token\n * @return\n */\n Object choiceFeedbackMode(String superviseMatterId, Integer feedbackMode, String token);\n\n /**\n * 确认督办\n *\n * @param token\n * @param variables\n * @return\n */\n Object confirm(String token, Map variables);\n\n /**\n * 获取督办事项详情\n *\n * @param token\n * @param superviseMatterId\n * @return\n */\n Object getSuperviseMatter(String token, String superviseMatterId);\n\n /**\n * 督办事项列表\n *\n * @param token\n * @param page\n * @param number\n * @return\n */\n Object listSuperviseMatter(String token, String action, Boolean value, int page, int number);\n\n /**\n * 获取督办事件 表单\n *\n * @param token\n * @return\n */\n Object getSuperviseMatterFromData(String token);\n\n /**\n * 上报督办事件\n *\n * @param token\n * @param taskForm\n * @return\n */\n Object saveSuperviseMatter(String token, Map taskForm);\n\n /**\n * 读取文件信息\n *\n * @param file\n * @return\n */\n default StringBuffer getFormData(File file) {\n BufferedReader bufferedReader = null;\n StringBuffer stringBuffer = new StringBuffer();\n try {\n bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(file), \"utf-8\"));\n String line = null;\n while (null != (line = bufferedReader.readLine())) {\n stringBuffer.append(line);\n }\n } catch (Exception exception) {\n exception.printStackTrace();\n } finally {\n if (null != bufferedReader) {\n try {\n bufferedReader.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n return stringBuffer;\n }\n }\n}",
"public IFilialAux vendaToFilial();",
"private ControleurAcceuil(){ }",
"public String cargarDatos()\r\n/* 514: */ {\r\n/* 515:540 */ return null;\r\n/* 516: */ }",
"@Local\npublic interface CobranzaServiceLocal {\n\n ResumenInicialVO getCarteraPorTramos(List<Object[]> resultList);\n\n Response obtenerDocumentosSAP(Request request);\n\n Response getCargosSAP(Request request);\n}",
"public interface NiveauFormationDaoService extends Serializable {\n\t/**\n\t * @return int\n\t * @throws DataAddException \n\t * @throws WebServiceDataBaseException \n\t */\n\tpublic int addNiveauFormation(NiveauFormation nf) throws DataAddException, WebServiceDataBaseException;\n\t/**\n\t * @return boolean\n\t * @throws DataUpdateException \n\t * @throws WebServiceDataBaseException \n\t */\n\tpublic boolean updateNiveauFormation(NiveauFormation nf) throws DataUpdateException,WebServiceDataBaseException;\n\t/**\n\t * @return boolean\n\t * @throws DataDeleteException \n\t * @throws WebServiceDataBaseException\n\t */\n\tpublic boolean deleteNiveauFormation(int id) throws DataDeleteException,WebServiceDataBaseException;\n\t\n\t/**\n\t * @return List<NiveauFormation>\n\t */\n\tpublic List<NiveauFormation> getNiveauxFormation();\n\t/**\n\t * @param id\n\t * @return boolean\n\t * @throws DataReactivateException\n\t * @throws WebServiceDataBaseException\n\t */\n\tpublic boolean reactivateNiveauFormation(int id) throws DataReactivateException,WebServiceDataBaseException;\n}",
"public interface FenleiView {\n void getFenlei(List<Fenlei.DataBean> data);\n void onFaliure(Call call, IOException e);\n\n}",
"public void inicia() { \r\n\t\tventana=new VentanaMuestraServicios(this);\r\n\t\tventana.abre();\r\n\t}",
"public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }",
"private FournisseurArboTraficService() {\r\n\t\tsuper();\r\n\t}",
"protected abstract String getAtiempoServiceNameEnReversa();",
"Reserva Obtener();",
"public interface trans_ArqOperations \r\n{\r\n byte[] envia_Arq (String fName);\r\n void set_clienteSA (String parth, int id);\r\n}",
"@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}",
"public IProduto getCodProd();",
"public interface IPLMBasicFeeInfoService {\n\n void save(IMetaObjectImpl object);\n\n //费率信息\n\n void delete(int objid);\n void deleteByIds_(String objids);\n void deleteByProductId(int productid);\n\n IMetaDBQuery getSearchList(Map<String, String> map);\n IMetaObjectImpl getInfoById(int objid);\n\n public IMetaDBQuery queryByids(String objids);\n List<Map> getListByProductId(int productid);\n\n //获得管理费统计信息\n\n List<Map> getManageFeeCountList(Map map);\n\n\n\n //利率要素\n IMetaObjectImpl getInfoById_feeRate(int objid);\n void delete_feeRate(int objid);\n void deleteByIds__feeRate(String objids);\n void deleteByProductId_feeRate(int productid);\n\n List<Map> getListByProductId_feeRate(int productid);\n\n\n}",
"public FaseDescartes faseJuego();",
"public CuentaContable getCuentaContable()\r\n/* 299: */ {\r\n/* 300:367 */ return this.cuentaContable;\r\n/* 301: */ }",
"public ControladorCatalogoServicios() {\r\n }",
"public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }",
"@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }",
"public void aplicarDescuento();",
"@Override\n public DatosIntercambio subirFichero(String nombreFichero,int idSesionCliente) throws RemoteException, MalformedURLException, NotBoundException {\n\n \t//AQUI HACE FALTA CONOCER LA IP PUERTO DEL ALMACEN\n \t//Enviamos los datos para que el servicio Datos almacene los metadatos \n \tdatos = (ServicioDatosInterface) Naming.lookup(\"rmi://\"+ direccion + \":\" + puerto + \"/almacen\");\n \t\n \t//aqui deberiamos haber combropado un mensaje de error si idCliente < 0 podriamos saber que ha habido error\n int idCliente = datos.almacenarFichero(nombreFichero,idSesionCliente);\n int idSesionRepo = datos.dimeRepositorio(idCliente);//sesion del repositorio\n Interfaz.imprime(\"Se ha agregado el fichero \" + nombreFichero + \" en el almacen de Datos\"); \n \n //Devolvemos la URL del servicioClOperador con la carpeta donde se guardara el tema\n DatosIntercambio di = new DatosIntercambio(idCliente , \"rmi://\" + direccionServicioClOperador + \":\" + puertoServicioClOperador + \"/cloperador/\"+ idSesionRepo);\n return di;\n }",
"public interface PenaliteService {\n\n\t/**\n\t * Calcule de penalite est creation de {@link PenaliteBillingInfo}.\n\t * \n\t * @param referenceContrat\n\t * reference du contrat.\n\t * @param numEC\n\t * numero elementcontractuel.\n\t * @param version\n\t * version.\n\t * @param engagement\n\t * engagement.\n\t * @param periodicite\n\t * periodicite.\n\t * @param montant\n\t * montant.\n\t * @param derniereFactureDate\n\t * derniere date de facturation.\n\t * @param debutFacturationDate\n\t * date debut facturation.\n\t * @param finEngagementDate\n\t * date fin engagement.\n\t * @param finContratDate\n\t * date fin contrat.\n\t * @return {@link PenaliteBillingInfo}.\n\t * @throws TopazeException\n\t * {@link TopazeException}.\n\t */\n\tPenaliteBillingInfo getPenaliteBillingInfo(String referenceContrat, Integer numEC, Integer version,\n\t\t\tInteger engagement, Integer periodicite, Double montant, Date derniereFactureDate,\n\t\t\tDate debutFacturationDate, Date finEngagementDate, Date finContratDate) throws TopazeException;\n\n}",
"public ServicePatente() {\n this.success = false;\n // instanciando dao\n this.daoPatente = \n new br.com.ifba.scop.patente.dao.DAOPatente();\n }",
"public interface MovimientoConFlete extends MovimientoCosteable{\t\r\n\t\r\n\tpublic String getRemision() ;\r\n\t\r\n\tpublic Producto getProducto();\r\n\t\r\n\tpublic Sucursal getSucursal();\r\n\t\r\n\tpublic Long getDocumento();\r\n\t\r\n\tpublic Date getFecha();\r\n\t\r\n\tpublic double getKilosCalculados();\r\n\t\r\n\tpublic double getCantidad();\r\n\t\r\n\tpublic double getFactor();\r\n\t\r\n\tpublic String getTipoDocto();\r\n\t\r\n\tpublic BigDecimal getCostoFlete();\t\r\n\r\n\tpublic void setCostoFlete(BigDecimal costoFlete);\r\n\t\r\n\tpublic BigDecimal getImporteDelFlete();\r\n\r\n\tpublic AnalisisDeFlete getAnalisisFlete();\r\n\r\n\tpublic void setAnalisisFlete(AnalisisDeFlete analisisFlete);\r\n\t\r\n\tpublic void actualizarCosto();\r\n\r\n}",
"public String serviceInfo(){\n String msj = \"\";\n\n msj = \"Nombre del servicio: \" + serviceName;\n msj = \"Costo: \" + cost;\n msj = \"Fecha de realizacion: \" + date;\n msj = \"La ID de la mascota es: \" + petID;\n msj = \"La ID del cliente es: \" + clientID;\n\n return msj;\n }",
"public String cargarDatos()\r\n/* 109: */ {\r\n/* 110:119 */ return null;\r\n/* 111: */ }",
"public interface IEtapaService {\n Etapa save(Etapa etapa);\n\n List<EtapaARealizar> tareasProximas();\n}",
"public String execute() {\n\t\ttry {\n\t\t\tHashMap<Integer, RigaVenditeCommercianti> map = new HashMap<Integer, RigaVenditeCommercianti>();\n\t\t\tlistaTotali = new LinkedList<RigaVenditeCommercianti>();\n\t\t\t\n\t\t\tFatture fatture = new Fatture();\n\t\t\tfatture.setOrderByCliente();\n\t\t\tCollection colFatture = fatture.getFatture(dataDal, dataAl);\n\t\t\tIterator itr = colFatture.iterator();\n\t\t\twhile (itr.hasNext()) {\n\t\t\t\tFattura fattura = (Fattura) itr.next();\t\n\t\t\t\tfattura.calcolaTotali();\n\t\t\t\tif (map.containsKey(fattura.getIdCliente().intValue())) {\n\t\t\t\t\t//Aggiungi totali alla riga attuale\n\t\t\t\t\tRigaVenditeCommercianti riga = map.get(fattura.getIdCliente().intValue());\n\t\t\t\t\triga.setTotaleFattura(riga.getTotaleFattura().add(fattura.getTotaleFattura()));\n\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tfattura.calcolaTotali();\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 4\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva1())) { //IVA AL 4\n\t\t\t\t\t\triga.setImponibile1(riga.getImponibile1().add(imponibili.get(riga.getIva1())[0]));\n\t\t\t\t\t\triga.setImposta1(riga.getImposta1().add(imponibili.get(riga.getIva1())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 10\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile2(riga.getImponibile2().add(imponibili.get(riga.getIva2())[0]));\n\t\t\t\t\t\triga.setImposta2(riga.getImposta2().add(imponibili.get(riga.getIva2())[1]));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//IVA AL 20\n\t\t\t\t\tif (imponibili.containsKey(riga.getIva2())) {\n\t\t\t\t\t\triga.setImponibile3(riga.getImponibile3().add(imponibili.get(riga.getIva3())[0]));\n\t\t\t\t\t\triga.setImposta3(riga.getImposta3().add(imponibili.get(riga.getIva3())[1]));\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t//Crea riga per cliente\n\t\t\t\t\tRigaVenditeCommercianti riga = new RigaVenditeCommercianti();\n\t\t\t\t\triga.setCliente(fattura.getCliente());\n\t\t\t\t\triga.setTotaleFattura(fattura.getTotaleFattura());\n\t\t\t\t\t\n\t\t\t\t\t//CALCOLO IMPONIBILI\n\t\t\t\t\tHashMap<BigDecimal, BigDecimal[]> imponibili = fattura.getImponibili();\n\t\t\t\t\tIvas dao = new Ivas();\n\t\t\t\t\tdao.setOrderByDescrizione(DataAccessObject.ORDER_ASC);\n\t\t\t\t\tCollection aliquote = dao.getElements();\n\t\t\t\t\t\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor(Object obj : aliquote)\n\t\t\t\t\t{\n\t\t\t\t\t\tIva iva = (Iva)obj;\n\t\t\t\t\t\tif(iva.getValore().floatValue() < 4) continue;\n\t\t\t\t\t\t\n\t\t\t\t\t\tBigDecimal imponibile = new BigDecimal(0);\n\t\t\t\t\t\tBigDecimal imposta = new BigDecimal(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(imponibili.containsKey(iva.getValore()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\timponibile = imponibili.get(iva.getValore())[0];\n\t\t\t\t\t\t\timposta = imponibili.get(iva.getValore())[1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 1)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva1(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile1(imponibile);\n\t\t\t\t\t\t\triga.setImposta1(imposta);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 2)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva2(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile2(imponibile);\n\t\t\t\t\t\t\triga.setImposta2(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(index == 3)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\triga.setIva3(iva.getValore());\n\t\t\t\t\t\t\triga.setImponibile3(imponibile);\n\t\t\t\t\t\t\triga.setImposta3(imposta);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(index == 3) break;\n\t\t\t\t\t\t\n\t\t\t\t\t\tindex++;\n\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tmap.put(fattura.getIdCliente().intValue(), riga);\n\t\t\t\t\tlistaTotali.add(riga);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tstampaErrore(\"PrintVendite.execute()\", e);\n\t\t\treturn ERROR;\n\t\t}\n\t\treturn SUCCESS;\n\t}",
"public interface ProcesoMSGEliminarBuzonMensajeService extends Service {\n\n\t/**\n\t * Proceso que realiza la eliminacin del buzon de mensajes\n\t * \n\t * @param criteria\n\t */\n\tpublic void executeProcesarEliminarBuzonMensaje(Map criteria);\n\n}",
"public interface BancoService {\n public void realizarOperacao();\n}",
"public interface UsuarioFacade {\n\n\t/**\n\t * Busca funcionários atendendo aos critérios de filtro\n\t * @param filtro Filtro com os critérios\n\t * @return Registros encontrados\n\t */\n\tList<UsuarioVO> obterPorFiltro(FiltroUtil filtro);\n\n}",
"public abstract java.lang.String getAcma_descripcion();",
"public String agregarDetalleIVAFacturaSRI()\r\n/* 418: */ {\r\n/* 419:421 */ this.servicioFacturaProveedorSRI.cargarDetalleIVARetencion(this.facturaProveedorSRI, null);\r\n/* 420: */ \r\n/* 421:423 */ return \"\";\r\n/* 422: */ }",
"@Override\n public String getNombre(){\n \n return nombreServicio;\n }",
"public java.lang.String getObservacion(){\n return localObservacion;\n }",
"public String agregarDetalleFacturaSRI()\r\n/* 405: */ {\r\n/* 406:401 */ this.servicioFacturaProveedorSRI.cargarDetalleRetencion(this.facturaProveedorSRI, null, null);\r\n/* 407: */ \r\n/* 408:403 */ return \"\";\r\n/* 409: */ }",
"public PosicionDTO consultarInformacionSatelite(){\n logger.debug(\"MensajeService::PosicionDTO()\");\n PosicionDTO posicionDTO = new PosicionDTO();\n CoordenadasDTO posiciones = asignarCoordenadas();\n if(posiciones != null){\n posicionDTO.setCoordenadasDTO(posiciones);\n List<String[]> mensajeSatelites = obtenerMensajes(listaNave);\n String mensaje = organizarMensaje(mensajeSatelites);\n posicionDTO.setMensaje(mensaje);\n return posicionDTO;\n }\n return posicionDTO;\n }",
"public interface Sconto {\n\t/**\n\t * Restituisce il valore dello sconto\n\t * @param costoIntero costo di tutti i biglietti snza sconto\n\t * @return importo dello sconto\n\t */\n\tpublic double getImportoSconto(double costoIntero);\n}",
"Compuesta createCompuesta();",
"@GetMapping(\"/afficher-contenu\")\r\n\tpublic List<PanierItem> afficherContenu(){\r\n\t\t\r\n\t\ttry{\r\n\t\t\treturn panierService.listerTout();\r\n\t\t}catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"public interface ServiceProducto {\n\n// @GET(\"/sites/MLA/search?q=tennis\")\n// Call<ContenedorDeProductos>getProductos();\n\n @GET(\"/sites/MLA/search\")\n Call<ContenedorDeProductos>getProductos(@Query(\"q\") String terminoABuscar);\n\n}",
"MaquinaCafetera(){\n }",
"public void enviarValoresCabecera(){\n }",
"protected abstract String getATiempoServiceName();",
"public static MovimentiCcService creaOggettoServiceImpl() {\n\t\tMovimentiCcServiceImpl serviceImpl = new MovimentiCcServiceImpl();\r\n\t\t// crea un oggetto FactoryImpl\r\n\t\tMovimentoCcFactoryImpl movimentoCcFactoryImpl = new MovimentoCcFactoryImpl();\r\n\t\t// risolve la dipendenza \r\n\t\tserviceImpl.setMovimentoCcFactory(movimentoCcFactoryImpl);\r\n\t\treturn serviceImpl;\r\n\t}",
"public interface Filtrado extends ItemFiltro {\n\t/**\n\t * A exemplo da interface Serializable, mas nao necessariamente pelo menos\n\t * motivo, esta interface nao define nenhum metodo.\n\t */\n\t\n\t/**\n\t* Deseja-se ter um elo entre Filtrado e registro,\n\t* visto que o que se deseja eh armazenadar os\n\t* filtrados no output.txt para uso posterior.\n\t* @return Registro Registro \n\t* */\n\tpublic Registro getRegistro();\n\n}",
"public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }",
"public interface GestionDesProfilsOperations\r\n{\r\n /**\r\n * Read accessor for numeroGDP attribute\r\n * @return the attribute value\r\n */\r\n public short numeroGDP();\r\n\r\n /**\r\n * Operation connexion\r\n */\r\n public PostLicence.GestionDesVoeux connexion(PostLicence.IEtudiant iorEtudiant, String ine, String mdp)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation consulterProfil\r\n */\r\n public PostLicence.Etudiant consulterProfil(String ine)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation modifierProfil\r\n */\r\n public void modifierProfil(String ine, String adr)\r\n throws PostLicence.DonneesInvalides;\r\n\r\n /**\r\n * Operation inscriptionGestionDesVoeux\r\n */\r\n public void inscriptionGestionDesVoeux(PostLicence.GestionDesVoeux GDesVx);\r\n\r\n}",
"private List<RhFuncionario> getFuncionarios()\n {\n System.out.println(\"supiEscalaFacade.findEnfermeiros():\"+supiEscalaFacade.findEnfermeiros());\n return supiEscalaFacade.findEnfermeiros();\n }",
"public List<NotaDeCredito> procesar();",
"@Override\r\n\t\t\tpublic String doService(String param) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"@Override\n\tpublic BaseServic<Banco> getService() {\n\t\treturn service;\n\t}",
"public interface InterfaceSistemaDeControle {\r\n\t\r\n\t/** Este método adiciona um pedido.\r\n\t * \r\n\t * @param p Recebe um objeto do tipo Pedido.\r\n\t */\r\n\t\r\n\tpublic void adicionaPedido (Pedido p);\r\n\t\r\n\t/** Este método pesquisa pedidos utilizando o código do produto.\r\n\t * \r\n\t * @param codProduto Recebe um objeto do tipo String que representa o código do produto.\r\n\t * @return Este método retorna uma Lista do tipo Pedido contendo todos os produtos que têm o código \r\n\t * igual ao passado no parametro.\r\n\t */\r\n\t\r\n\tpublic List<Pedido> pesquisaIncluindoProduto (String codProduto);\r\n\t\r\n\t/** Este método remove um pedido.\r\n\t * \r\n\t * @param numPedido Este método do tipo long recebe o número do pedido que será removido.\r\n\t */\r\n\tpublic void removePedido (long numPedido);\r\n\t\r\n}",
"public void recibir_estado_partida(){\n\n }",
"List<Pacote> buscarPorTransporte(Transporte transporte);",
"public Cgg_res_oficial_seguimiento_usuario(){}",
"public interface MovimientoService {\n public static final String PROPERTY_ID = \"id\";\n public static final String PROPERTY_PARTIDO_ID = \"partidoId\";\n public static final String PROPERTY_TIEMPO_DES = \"tiempoDes\";\n public static final String PROPERTY_MINUTO = \"minuto\";\n public static final String PROPERTY_SEGUNDO = \"segundo\";\n public static final String PROPERTY_TIPO = \"tipo\";\n public static final String PROPERTY_ORIGEN = \"origen\";\n public static final String PROPERTY_ENTRA_ID = \"entraId\";\n public static final String PROPERTY_ENTRA_NOMBRE = \"entraNombre\";\n public static final String PROPERTY_SALE_ID = \"saleId\";\n public static final String PROPERTY_SALE_NOMBRE = \"saleNombre\";\n\n Map<String,Object> createMovimiento(Map<String, String> movimiento);\n\n void deleteMovimiento(Long idMovimiento);\n\n List<Map<String,Object>> movimientosByPartido(Long idPartido);\n}",
"public void buscarGestor(){\r\n\t\t\r\n\t}",
"@Override\n public String obtenerAyuda() {\n\treturn null;\n }",
"public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }",
"String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }",
"public List<Documento> getListaDocumentoFacturaProveedor()\r\n/* 313: */ {\r\n/* 314:311 */ List<Documento> listaDocumentoFactura = new ArrayList();\r\n/* 315: */ try\r\n/* 316: */ {\r\n/* 317:313 */ listaDocumentoFactura = this.servicioDocumento.buscarPorDocumentoBaseOrganizacion(DocumentoBase.FACTURA_PROVEEDOR, AppUtil.getOrganizacion()\r\n/* 318:314 */ .getId());\r\n/* 319: */ }\r\n/* 320: */ catch (ExcepcionAS2 e)\r\n/* 321: */ {\r\n/* 322:316 */ addInfoMessage(getLanguageController().getMensaje(e.getCodigoExcepcion()));\r\n/* 323: */ }\r\n/* 324:318 */ return listaDocumentoFactura;\r\n/* 325: */ }",
"public String getDescricao();",
"public CuentaContable getCuentaContable()\r\n/* 78: */ {\r\n/* 79: 99 */ return this.cuentaContable;\r\n/* 80: */ }",
"public interface CategoriaService {\n\n Categoria cadastrarCategoria(CategoriaTO categoriaTO) throws RegraDeNegocioException;\n\n List<Categoria> buscarCategoria();\n\n List<Categoria> buscarCategoriasPrincipais();\n\n Categoria buscarCategoriaPorId(Long id);\n\n Categoria buscarPorNome(String nome);\n\n}",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"public List<Mobibus> darMobibus();",
"public interface ContractService {\n\n /**\n * 获取授权提现函信息\n * @return\n */\n WithdrawalLetter getWithdrawalLetterInfo(Long id) throws Exception;\n\n\n /**\n * 获取 借款服务协议变量 信息\n * @return\n */\n LoanServiceAgreement getLoanServiceAgreementInfo(Long id) throws Exception;\n\n\n /**\n *\n * 获取 电子签名数字证书用户申请确认函s 信息\n * @return\n */\n ElectronicLetter getElectronicLetterInfo(Long id) throws Exception;\n /**\n * 获取个人信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n PersonalInfoProtocolResForm getPersonalInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取企业信息采集协议数据\n * @param userId 用户主键\n * @return 协议数据\n */\n CompanyInfoProtocolResForm getCompanyInfoCollectionProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId) throws Exception;\n\n /**\n * 获取网络借贷平台借款情况披露及承诺书\n * @param userId 用户主键\n * @param reqForm 请求参数\n * @return 协议数据\n */\n LoanGuaranteeProtocolResForm getLoanGuaranteeProtocol(Long userId, LoanGuaranteeProtocolReqForm reqForm) throws Exception;\n\n /**\n * 公司立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> companyImmediatelySigned(Long id,ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 个人立即签署\n * @param id\n * @param procurationSignatureReqForm\n * @return\n * @throws Exception\n */\n Map<String,Object> personalImmediatelySigned(Long id, ProcurationSignatureReqForm procurationSignatureReqForm) throws Exception;\n\n /**\n * 获取担保函\n * @param orderNo 订单编号\n * @param userId 用户主键\n * @return 协议数据\n */\n GuarantorLetterResForm getGuaranteeLetter(String orderNo, Long userId) throws Exception;\n\n\n Map<String,Object> personFormValidate(PersonReqForm personReqForm);\n\n Map<String,Object> companyFormValidate(String otherLoanAmt, String signatoryName, String signatoryIdentity, String mobile, String smCode,MultipartFile file);\n}",
"private RepositorioOrdemServicoHBM() {\n\n\t}",
"public void mostrarFatura() {\n\n int i;\n System.err.println(\"Fatura do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {//caso nao existam hospedes\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {//roda os hospedes cadastrados\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//pega o hospede pelo cpf\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {//caso a situacao do contrato ainda estaja ativa\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }\n System.err.println(\"Restaurante:\");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n// \n\n } else {//caso o contrato esteja fechado\n System.err.println(\"O hospede encontra-se com o contrato fechado!\");\n }\n }\n\n }\n }\n }",
"public FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);",
"public ServiceCompte() {\n\t\tsuper();\n\t}",
"public interface ComentariosService {\n\n /**\n * Obtiene todos los comentarios realizados por usuarios para su moderación. El filtro\n * posibilita la búsqueda por el estado del comentario\n *\n * @param filtro el filtro a aplicar, si no se especifica se obtienen todos {@link ComentarioFilter}\n * @param pageable la paginación de comentarios {@link Pageable}\n * @return el listado de comentarios paginados {@link List<ComentarioDTO>}\n */\n Page<ComentarioDTO> getAllComentarioByFilter(ComentarioFilter filtro, Pageable pageable);\n\n /**\n * Actualiza el estado de un comentario\n *\n * @param idLibro el ID del libro {@link Long}\n * @param idUsuario el ID del usuario que realizó la valoración {@link Long}\n * @param idEstado el ID del estado {@link Long}\n * @return el comentario actualizado {@link ComentarioDTO}\n */\n ComentarioDTO actualizarEstadoComentario(Long idLibro, Long idUsuario, Long idEstado);\n}",
"@Override\n\tpublic void coba() {\n\t\t\n\t}",
"public void mostrarCompra() {\n }",
"private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}"
] | [
"0.6708876",
"0.63445014",
"0.6331465",
"0.6237047",
"0.62259895",
"0.6170757",
"0.61602443",
"0.61378706",
"0.6131342",
"0.6129244",
"0.6128983",
"0.61027265",
"0.60795754",
"0.60677284",
"0.6067199",
"0.60665154",
"0.6064295",
"0.6057673",
"0.60210896",
"0.5982439",
"0.5979989",
"0.59648144",
"0.5956642",
"0.59565985",
"0.5956197",
"0.59406626",
"0.5938029",
"0.5929431",
"0.5924629",
"0.5923679",
"0.59156555",
"0.5904072",
"0.58981335",
"0.58969915",
"0.58927506",
"0.58688855",
"0.5859373",
"0.58550656",
"0.5846259",
"0.5839506",
"0.5825313",
"0.582278",
"0.5818019",
"0.5817018",
"0.5815371",
"0.58134454",
"0.58094466",
"0.58043313",
"0.57869333",
"0.57861745",
"0.578351",
"0.5780404",
"0.5773872",
"0.5767506",
"0.5765152",
"0.576476",
"0.5763994",
"0.5763438",
"0.57626563",
"0.57488716",
"0.5741379",
"0.57334024",
"0.57299316",
"0.57279986",
"0.5726003",
"0.5724053",
"0.5723498",
"0.5716441",
"0.57153547",
"0.5712562",
"0.57090384",
"0.570625",
"0.5697706",
"0.56976044",
"0.56964827",
"0.5694049",
"0.5688473",
"0.56869227",
"0.56802833",
"0.56798255",
"0.56790185",
"0.56747514",
"0.56709725",
"0.56706095",
"0.5669428",
"0.56679326",
"0.56617177",
"0.5653569",
"0.56523937",
"0.5648902",
"0.564784",
"0.56458116",
"0.56426835",
"0.5642635",
"0.5642551",
"0.5638832",
"0.56345946",
"0.5633718",
"0.56309396",
"0.56280375",
"0.5627082"
] | 0.0 | -1 |
Colors too close to black (e.g. 1, 0, 0), are to be converted using floats and thus counting as (255, 0, 0). | protected Color createColor(int red, int green, int blue, int alpha) {
if ((red <= 1) && (green <= 1) && (blue <= 1) && ((alpha <= 1) || (alpha == 255))) {
// rgba either 0 or 1
Color c = new Color((float)red, (float)green, (float)blue, (alpha == 255) ? 1.0f : (float)alpha);
// System.out.println(c);
return c;
}
return super.createColor(red, green, blue, alpha);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public abstract int rgbColor(double u, double v);",
"public static int countColorsAboveBrightnessThreshold(double bound) {\n int count = 0;\n\n if (bound >= luminanceOfRed255Green255Blue11()) {\n //If the bound is this high, no color value can be lower than 11, even if the other two are maxed.\n double maxRedBlueSumLuminance = 0.2126 + 0.0722; // Equals .2848, which is 1 - .7152\n double minGreenContrib = bound - maxRedBlueSumLuminance;\n double minGreenElementLuminance = minGreenContrib / .7152;\n // What is RsGreen when ((RsGreen + .055)/1.055)^2.4 == minGreenElementLuminance?\n double minRsGreen = RsRGBFromElementLuminanceWhereIntAbove10(minGreenElementLuminance);\n long minGreenInt = Math.round(Math.ceil(minRsGreen*255));\n Long i = minGreenInt;\n while (i <= 255) {\n //Evaluate what happens when the green value from 0 to 255 is equal to i\n double greenElementLuminance = .7152*ColorNamer.elementLuminance(i.intValue());\n double minRedContrib = bound - greenElementLuminance - .0722;\n // Red must contribute at least minRedContrib luminance for the luminance to be above the bound\n double minRedElementLuminance = minRedContrib / .2126;\n double minRsRed = RsRGBFromElementLuminanceWhereIntAbove10(minRedElementLuminance);\n long minRedInt = Math.round(Math.ceil(minRsRed*255));\n Long j = minRedInt;\n while (j <= 255) {\n double redElementLuminance = .2126*ColorNamer.elementLuminance(j.intValue());\n double minBlueContrib = bound - greenElementLuminance - redElementLuminance;\n double minBlueElementLuminance = minBlueContrib / .0722;\n double minRsBlue = RsRGBFromElementLuminanceWhereIntAbove10(minBlueElementLuminance);\n long minBlueInt = Math.round(Math.ceil(minRsBlue*255));\n count += (255 - minBlueInt + 1);\n j++;\n }\n\n i++;\n }\n }\n else {\n System.out.println(\"countColorsAboveBrightnessThreshold is not finished for bounds this low\");\n }\n\n return count;\n }",
"private static double dif(Color one, Color two) {\n\t\treturn Math.abs(one.getRed() - two.getRed()) + Math.abs(one.getGreen() - two.getGreen()) + Math.abs(one.getBlue() - two.getBlue());\n\t}",
"public int getColorCount() {\n \tif (colorBuf == null)\n \t\treturn 0;\n \treturn colorBuf.asFloatBuffer().limit()/4;\n }",
"private int getCurrentMainColor () {\n int translatedHue = 255 - ( int ) ( mCurrentHue * 255 / 360 );\n int index = 0;\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 0, ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255 - ( int ) i, 0, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, ( int ) i, 255 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 0, 255, 255 - ( int ) i );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( ( int ) i, 255, 0 );\n index++;\n }\n for ( float i = 0; i < 256; i += 256 / 42 ) {\n if ( index == translatedHue )\n return Color.rgb( 255, 255 - ( int ) i, 0 );\n index++;\n }\n return Color.RED;\n }",
"private int getStockChangeColor (String stockChange){\n float change = Float.parseFloat(stockChange);\n if (change >= 0){return Color.GREEN;}\n\n return Color.RED;\n }",
"public abstract RGBIColor toRGBColor();",
"int getNumColors();",
"private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\treturn phsv[2] < 64 ? fg : bg;\n \t\t}",
"private int getCloseColor(int[] prgb) {\n \t\t\tfloat[] phsv = { 0, 0, 0 };\n \t\t\trgbToHsv(prgb[0], prgb[1], prgb[2], phsv);\n \t\t\t\n \t\t\tfloat hue = phsv[0];\n \t\t\tfloat val = phsv[2] * 100 / 256;\n \n \t\t\tint closest = -1;\n \n \t\t\tfinal int white = 15;\n \t\t\tfinal int black = 1;\n \t\t\tfinal int grey = 14;\n \t\t\t\n \t\t\tif (phsv[1] < (hue >= 30 && hue < 75 ? 0.66f : 0.33f)) {\n \t\t\t\tif (val >= 70) {\n \t\t\t\t\tclosest = white;\n \t\t\t\t} else if (val >= 10) {\n \t\t\t\t\t// dithering will take care of the rest\n \t\t\t\t\tclosest = grey;\n \t\t\t\t} else {\n \t\t\t\t\tclosest = black;\n \t\t\t\t}\n \t\t\t}\n \t\t\telse {\n \t\t\t\tclosest = getClosestColorByDistance(palette, firstColor, 16, prgb, 12);\n \t\t\t\t\n \t\t\t\t// see how the color matches\n \t\t\t\tif (closest == black) {\n \t\t\t\t\tif (phsv[1] > 0.9f) {\n \t\t\t\t\t\tif ((hue >= 75 && hue < 140) && (val >= 5 && val <= 33)) {\n \t\t\t\t\t\t\tclosest = 12;\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\t/*else {\n \t\t\t\t\tint rigid = rigidMatch(phsv, hue, val);\n \t\t\t\t\tif (phsv[1] < 0.5f && (rigid == 1 || rigid == 14 || rigid == 15)) {\n \t\t\t\t\t\tclosest = rigid;\n \t\t\t\t\t}\n \t\t\t\t}*/\n \t\t\t}\n \t\t\t\n \t\t\t//closest = rigidMatch(phsv, hue, val);\n \t\t\t\n \t\t\treturn closest;\n \t\t}",
"private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }",
"public native int getTotalColors() throws MagickException;",
"public native int getNumberColors() throws MagickException;",
"public void initColors() {\n\n int i;\n float j;\n\n int start;\n int numShades = 5;\n float shadeInc = 1 / (float) numShades;\n\n\n aColors = new Color[glb.MAXCOLORS]; /* set array size */\n\n\n /* White to Black */\n start = 0;\n for (i = start, j = 1; i < start + 6; j -= shadeInc, i++) {\n aColors[i] = new Color(j, j, j);\n }\n\n start = 6;\n /* Red to almost Magenta */\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 1, (float) 0, j);\n }\n\n\n /* Magenta to almost Blue */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color(j, (float) 0, (float) 1);\n }\n\n\n /* Blue to almost Cyan */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color((float) 0, j, (float) 1);\n }\n\n /* Cyan to almost Green */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 0, (float) 1, j);\n }\n\n\n\n /* Green to almost Yellow */\n start += 5;\n for (i = start, j = 0; i < start + 5; j += shadeInc, i++) {\n aColors[i] = new Color(j, (float) 1, (float) 0);\n }\n\n /* Yellow to almost Red */\n start += 5;\n for (i = start, j = 1; i < start + 5; j -= shadeInc, i++) {\n aColors[i] = new Color((float) 1, j, (float) 0);\n }\n\n }",
"private String colourToRgb(Color c)\n {\n return \"rgb(\" + (int)(c.getRed()*255) + \",\" + (int)(c.getGreen()*255) + \",\" + (int)(c.getBlue()*255) + \")\";\n }",
"private static int get(int colour) {\r\n\t\t// If the color is incorrect (less than 0) the color is set invisible\r\n\t\tif (colour < 0) {\r\n\t\t\treturn 255;\r\n\t\t}\r\n\r\n\t\t// taking each number of the argument\r\n\t\tint r = colour / 100 % 10;\r\n\t\tint g = colour / 10 % 10;\r\n\t\tint b = colour % 10;\r\n\r\n\t\t// returning the 6*6*6 color\r\n\t\treturn r * 6 * 6 + g * 6 + b;\r\n\t}",
"java.awt.Color getColor();",
"private Color[] getExpectedPixels() {\n return new Color[]{BLACK, BLACK, BLACK,\n BLACK, BLACK, WHITE,\n BLACK, WHITE, BLACK,\n WHITE, BLACK, BLACK};\n }",
"public int getColor();",
"public int getColor();",
"private Color getColor(float value) {\r\n if (Float.isNaN(value)) {\r\n return missingColor;\r\n }\r\n \r\n float maximum;\r\n int colorIndex, rgb;\r\n \r\n if(useDoubleGradient) {\r\n \tmaximum = value < midValue ? this.minValue : this.maxValue;\r\n\t\t\tcolorIndex = (int) (255 * (value-midValue) / (maximum - midValue));\r\n\t\t\tif(colorIndex<0)\r\n\t\t\t\tcolorIndex=-colorIndex;\r\n\t\t\tcolorIndex = colorIndex > 255 ? 255 : colorIndex;\r\n\t\t\trgb = value < midValue ? negColorImage.getRGB(255 - colorIndex, 0)\r\n\t\t\t\t\t: posColorImage.getRGB(colorIndex, 0);\r\n } else {\r\n \tfloat span = this.maxValue - this.minValue;\r\n \tif(value <= minValue)\r\n \t\tcolorIndex = 0;\r\n \telse if(value >= maxValue)\r\n \t\tcolorIndex = 255;\r\n \telse\r\n \t\tcolorIndex = (int)(((value - this.minValue)/span) * 255);\r\n \t\r\n \trgb = posColorImage.getRGB(colorIndex,0);\r\n }\r\n return new Color(rgb);\r\n }",
"Color(double lowThreshold, double highThreshold){\n this.lowThreshold = lowThreshold;\n this.highThreshold = highThreshold;\n }",
"public static void main(String [] args) {\n Scanner myScanner; //define myScanner\n myScanner = new Scanner( System.in );\n System.out.print(\"Please enter three numbers representing RGB values: \");\n if (myScanner.hasNextInt() == true && myScanner.hasNextInt() == true && myScanner.hasNextInt() == true) {\n int redValue = myScanner.nextInt(); //red as first input\n int greenValue = myScanner.nextInt(); //green as second input\n int blueValue = myScanner.nextInt(); //blue is last input\n if (redValue >= 0 && redValue <= 255 && greenValue >= 0 && greenValue <= 255 && blueValue >= 0 && blueValue <= 255) {\n int firstValue = redValue/16; //calculate first number\n String firstValueHex; //declare it to use later\n switch (firstValue) {\n case 0:\n firstValueHex = \"0\";\n break;\n case 1:\n firstValueHex = \"1\";\n break;\n case 2:\n firstValueHex = \"2\";\n break;\n case 3:\n firstValueHex = \"3\";\n break;\n case 4:\n firstValueHex = \"4\";\n break;\n case 5:\n firstValueHex = \"5\";\n break;\n case 6:\n firstValueHex = \"6\";\n break;\n case 7:\n firstValueHex = \"7\";\n break;\n case 8:\n firstValueHex = \"8\";\n break;\n case 9:\n firstValueHex = \"9\";\n break;\n case 10:\n firstValueHex = \"A\";\n break;\n case 11:\n firstValueHex = \"B\";\n break;\n case 12:\n firstValueHex = \"C\";\n break;\n case 13:\n firstValueHex = \"D\";\n break;\n case 14:\n firstValueHex = \"E\";\n break;\n case 15:\n firstValueHex = \"F\";\n break;\n default:\n firstValueHex = \"0\";\n break;\n }\n int secondValue = redValue%16; //calculate second number\n String secondValueHex; //declare it to use later\n switch (secondValue) {\n case 0:\n secondValueHex = \"0\";\n break;\n case 1:\n secondValueHex = \"1\";\n break;\n case 2:\n secondValueHex = \"2\";\n break;\n case 3:\n secondValueHex = \"3\";\n break;\n case 4:\n secondValueHex = \"4\";\n break;\n case 5:\n secondValueHex = \"5\";\n break;\n case 6:\n secondValueHex = \"6\";\n break;\n case 7:\n secondValueHex = \"7\";\n break;\n case 8:\n secondValueHex = \"8\";\n break;\n case 9:\n secondValueHex = \"9\";\n break;\n case 10:\n secondValueHex = \"A\";\n break;\n case 11:\n secondValueHex = \"B\";\n break;\n case 12:\n secondValueHex = \"C\";\n break;\n case 13:\n secondValueHex = \"D\";\n break;\n case 14:\n secondValueHex = \"E\";\n break;\n case 15:\n secondValueHex = \"F\";\n break;\n default:\n secondValueHex = \"0\";\n break;\n }\n int thirdValue = greenValue/16; //calculate third number\n String thirdValueHex; //declare it to use later\n switch (thirdValue) {\n case 0:\n thirdValueHex = \"0\";\n break;\n case 1:\n thirdValueHex = \"1\";\n break;\n case 2:\n thirdValueHex = \"2\";\n break;\n case 3:\n thirdValueHex = \"3\";\n break;\n case 4:\n thirdValueHex = \"4\";\n break;\n case 5:\n thirdValueHex = \"5\";\n break;\n case 6:\n thirdValueHex = \"6\";\n break;\n case 7:\n thirdValueHex = \"7\";\n break;\n case 8:\n thirdValueHex = \"8\";\n break;\n case 9:\n thirdValueHex = \"9\";\n break;\n case 10:\n thirdValueHex = \"A\";\n break;\n case 11:\n thirdValueHex = \"B\";\n break;\n case 12:\n thirdValueHex = \"C\";\n break;\n case 13:\n thirdValueHex = \"D\";\n break;\n case 14:\n thirdValueHex = \"E\";\n break;\n case 15:\n thirdValueHex = \"F\";\n break;\n default:\n thirdValueHex = \"0\";\n break;\n }\n int fourthValue = greenValue%16; //calculate fourth number\n String fourthValueHex; //declare it to use later\n switch (fourthValue) {\n case 0:\n fourthValueHex = \"0\";\n break;\n case 1:\n fourthValueHex = \"1\";\n break;\n case 2:\n fourthValueHex = \"2\";\n break;\n case 3:\n fourthValueHex = \"3\";\n break;\n case 4:\n fourthValueHex = \"4\";\n break;\n case 5:\n fourthValueHex = \"5\";\n break;\n case 6:\n fourthValueHex = \"6\";\n break;\n case 7:\n fourthValueHex = \"7\";\n break;\n case 8:\n fourthValueHex = \"8\";\n break;\n case 9:\n fourthValueHex = \"9\";\n break;\n case 10:\n fourthValueHex = \"A\";\n break;\n case 11:\n fourthValueHex = \"B\";\n break;\n case 12:\n fourthValueHex = \"C\";\n break;\n case 13:\n fourthValueHex = \"D\";\n break;\n case 14:\n fourthValueHex = \"E\";\n break;\n case 15:\n fourthValueHex = \"F\";\n break;\n default:\n fourthValueHex = \"0\";\n break;\n }\n int fifthValue = blueValue/16; //calculate fifth number\n String fifthValueHex; //declare it to use later\n switch (fifthValue) {\n case 0:\n fifthValueHex = \"0\";\n break;\n case 1:\n fifthValueHex = \"1\";\n break;\n case 2:\n fifthValueHex = \"2\";\n break;\n case 3:\n fifthValueHex = \"3\";\n break;\n case 4:\n fifthValueHex = \"4\";\n break;\n case 5:\n fifthValueHex = \"5\";\n break;\n case 6:\n fifthValueHex = \"6\";\n break;\n case 7:\n fifthValueHex = \"7\";\n break;\n case 8:\n fifthValueHex = \"8\";\n break;\n case 9:\n fifthValueHex = \"9\";\n break;\n case 10:\n fifthValueHex = \"A\";\n break;\n case 11:\n fifthValueHex = \"B\";\n break;\n case 12:\n fifthValueHex = \"C\";\n break;\n case 13:\n fifthValueHex = \"D\";\n break;\n case 14:\n fifthValueHex = \"E\";\n break;\n case 15:\n fifthValueHex = \"F\";\n break;\n default:\n fifthValueHex = \"0\";\n break;\n }\n int sixthValue = blueValue%16; //calculate sixth number\n String sixthValueHex; //declare it to use later\n switch (sixthValue) {\n case 0:\n sixthValueHex = \"0\";\n break;\n case 1:\n sixthValueHex = \"1\";\n break;\n case 2:\n sixthValueHex = \"2\";\n break;\n case 3:\n sixthValueHex = \"3\";\n break;\n case 4:\n sixthValueHex = \"4\";\n break;\n case 5:\n sixthValueHex = \"5\";\n break;\n case 6:\n sixthValueHex = \"6\";\n break;\n case 7:\n sixthValueHex = \"7\";\n break;\n case 8:\n sixthValueHex = \"8\";\n break;\n case 9:\n sixthValueHex = \"9\";\n break;\n case 10:\n sixthValueHex = \"A\";\n break;\n case 11:\n sixthValueHex = \"B\";\n break;\n case 12:\n sixthValueHex = \"C\";\n break;\n case 13:\n sixthValueHex = \"D\";\n break;\n case 14:\n sixthValueHex = \"E\";\n break;\n case 15:\n sixthValueHex = \"F\";\n break;\n default:\n sixthValueHex = \"0\";\n break;\n } \n System.out.println(\"The decimal numbers R: \"+redValue+\" G: \"+greenValue+\" B: \"+blueValue+\n \" is represented in hexadecimal as: \"+firstValueHex+secondValueHex+thirdValueHex+fourthValueHex\n +fifthValueHex+sixthValueHex); //print numbers in hexdecimal\n }\n else{\n System.out.println(\"Sorry, you must enter numbers between 0 and 255\"); //tell user they messed up input\n }\n }\n else{\n System.out.println(\"Sorry, you must enter 3 integers\"); //tell user they messed up input\n }\n \n \n \n \n }",
"public Color colorByNeighbors() {\n float mod = maxVoltage /10f;\n float color = Math.max(0,Math.min(voltageAccumulator,mod))/mod;\n float colorNeighbors = (float)Math.max(0,Math.min(this.neighbors.size()/maxNeighbors,1.0));\n\n if(colorNeighbors<0.5f)return new Color(0.0f,0f,0f);\n\n return new Color(colorNeighbors/2f,color,color);//, 0.25f);\n }",
"public double fixColor(double color) {\n\t\tif (Double.isNaN(color)) {\n\t\t\treturn 1;\n\t\t} else if (color == Double.NEGATIVE_INFINITY) {\n\t\t\treturn Double.MIN_VALUE;\n\t\t} else if (color == Double.POSITIVE_INFINITY) {\n\t\t\treturn Double.MAX_VALUE;\n\t\t/*} else if (color < 0) {\n\t\t\treturn (Math.abs(color));*/\n\t\t} else if (color == 0) {\n\t\t\treturn 1;\n\t\t} \n\t\t\n\t\telse return color;\n\t}",
"public abstract RGBFColor toRGBFColor();",
"private int parseColour(final String value) {\n\n\t\tint result = 0xffffff;\n\n\t\t// Handle colour values that are in the format \"rgb(r,g,b)\"\n\t\tif (value.startsWith(\"rgb\")) {\n\t\t\tint r, g, b;\n\t\t\tfinal ValueTokenizer t = new ValueTokenizer();\n\t\t\tt.getToken(value.substring(3));\n\t\t\tif (t.currentTok == ValueTokenizer.LTOK_NUMBER) {\n\t\t\t\tr = (int) t.tokenF;\n\t\t\t\tt.getToken(null);\n\t\t\t\tif (t.currentTok == ValueTokenizer.LTOK_NUMBER) {\n\t\t\t\t\tg = (int) t.tokenF;\n\t\t\t\t\tt.getToken(null);\n\t\t\t\t\tif (t.currentTok == ValueTokenizer.LTOK_NUMBER) {\n\t\t\t\t\t\tb = (int) t.tokenF;\n\t\t\t\t\t\tresult = (r << 16) + (g << 8) + b;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// Handle colour values that are in the format #123abc. (Assume that's what it is,\n\t\t// if the length is seven characters).\n\t\telse if (value.length() == 7) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(value.substring(1, 7), 16);\n\t\t\t}\n\t\t\tcatch (final NumberFormatException e) {\n\t\t\t\tresult = 0xff0000;\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t}",
"public int getNColor(){\n int nColor = getBit();\n\n if (nColor==0) {\n for (int i=0; i<7; i++) {\n nColor = (nColor<<1) | getBit();\n }\n }\n\n return nColor;\n }",
"private int reduceColorSize(int oldColor, int colorRange) {\n return (int) Math.floor((oldColor / colorRange)) * colorRange;\n }",
"public static Integer[][] fixRGBValues(Integer[][] input) {\n Integer[][] output = new Integer[input.length][input.length];\n for (int y = 0; y < input.length; y++) {\n for (int x = 0; x < input.length; x++) {\n int k = input[y][x];\n if (k < 0) k = -k;\n if (k > 255) k = 255;\n output[y][x] = k;\n }\n }\n return output;\n }",
"public static float[] color(Color c) {\r\n \r\n if (c == null) c = Color.BLUE;\r\n return new float[]{ ((float) c.getRed() / 255.0f), \r\n ((float) c.getGreen() / 255.0f), ((float) c.getBlue() / 255.0f) };\r\n }",
"public static int fixRGBValue(int v) {\n if (v < 0) v = -v;\n if (v > 255) v = 255;\n return v;\n }",
"public static int color(int bg) {\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}",
"static Color getForegroundColor(String backgroundColor) {\n Color background = Color.decode(backgroundColor);\n // Counting the perceptive luminance - human eye favors green color...\n double a = 1 - (0.299 * background.getRed() + 0.587 * background.getGreen() + 0.114 * background.getBlue()) / 255;\n\n if (a < 0.5) {\n return Color.BLACK;\n } else {\n return Color.WHITE;\n }\n }",
"public static int getTextColorFromMagnitude(String input) {\n double magnitude = Double.parseDouble(input);\n if (magnitude >=0 && magnitude <= 3.5) {\n return Color.parseColor(\"#00FF00\");\n } else if (magnitude > 3.5 && magnitude <= 5.5) {\n return Color.parseColor(\"#FF6347\");\n } else {\n return Color.parseColor(\"#FF0000\");\n }\n }",
"private boolean isTheColorInputCorrect(int red, int green, int blue, int alpha){\n if(red > 255 || green > 255 || blue > 255 || alpha > 255){\n System.out.println(\"Values should be equal or smaller then 255.\");\n return false;\n }else if(red < 0 || green < 0 || blue < 0 || alpha < 0){\n System.out.println(\"Values should be equal or bigger then 0.\");\n return false;\n }else{\n return true;\n }\n }",
"public static Color getColor(int c)\n {\n int r = (7*c)%64;\n return new Color((r%4)*63+30,((r/4)%4)*63+30,(r/4/4)*63+30);\n }",
"private static int mixSigColor(int c1, int c2, int ratio) {//0~100\r\n return 0xff & (((c2 * ratio) + (c1 * (100 - ratio))) / 100);\r\n }",
"private int parseColor(int start,int end) {\n char ch = mChars[start];\n if(ch != '\"' && ch != '0') {\n return 0;\n }\n boolean type = ch == '0';\n if(type) {\n String v = new String(mChars,start + 2,end - start - 2);\n try{\n //Copied from Color.java\n long color = Long.parseLong(v, 16);\n if (end - start == 8) {\n // Set the alpha value\n color |= 0x00000000ff000000;\n }\n return (int)color;\n }catch(RuntimeException e){\n return 0;\n }\n }else{\n if(end - start != 11 && end - start != 9) {\n return 0;\n }\n String v = new String(mChars,start + 1,end - start - 2);\n try{\n return Color.parseColor(v);\n }catch(RuntimeException e){\n return 0;\n }\n }\n }",
"int getHighLightColor();",
"public int getIntColor(final double value) {\n final Color color = getColor(value);\n return ((byte) (color.getOpacity() * 255) << 24) + ((byte) (color.getRed() * 255) << 16)\n + ((byte) (color.getGreen() * 255) << 8) + ((byte) (color.getBlue() * 255));\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 }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}",
"public static Color rgbFull(float minimum, float maximum, float value)\n\t{\n\t\tvalue = maximum - value;\n\t\t\n\t\t// Setup variables\n\t float interval = (maximum - minimum) / 4;\n\t float r = 0;\n\t float g = 0;\n\t float b = 0;\n\t \n\t if((value >= minimum) && (value < interval*1))\n\t {\n\t \t\n\t \tr = 255;\n\t \tg = 255*(value - minimum)/(interval);\n\t \tb = 0;\n\t }\n\t else if((value >= interval*1) && (value < interval*2))\n\t {\n\t \tr = 255 - 255*(value - interval*1)/(interval);\n\t \tg = 255;\n\t \tb = 0;\n\t \t\n\t }\n\t else if((value >= interval*2) && (value < interval*3))\n\t {\n\t \tr = 0;\n\t \tg = 255;\n\t \tb = 255*(value - interval*2)/(interval);\n\t \t\n\t }\n\t else if((value >= interval*3) && (value <= interval*4))\n\t {\n\n\t \tr = 0;\n\t \tg = 255 - 255*(value - interval*3)/(interval);\n\t \tb = 255;\n\t } \n\t else\n\t {\n\t \t// Error State!\n\t \tr = -1;\n\t \tg = -1;\n\t \tb = -1;\n\t }\n\t \n\t Color color = new Color(r/255,g/255,b/255);\n\t return color;\n\t}",
"private int getCloseColor(int[] prgb) {\n \t\t\t\n \t\t\treturn getClosestColorByDistance(palette, firstColor, numColors, prgb, -1);\n \t\t}",
"public int checkRGBValue(int redGreenOrBlue) {\n if (redGreenOrBlue > 255) redGreenOrBlue = 255;\n if (redGreenOrBlue < 0) redGreenOrBlue = 0;\n return redGreenOrBlue;\n }",
"public abstract HSLColor toHSLColor();",
"String getColor();",
"public native int getColors() throws MagickException;",
"public static\n Color convertStringToColor(String val)\n {\n Color ret_Color;\n\n try\n {\n String workstr1;\n int slen = val.length();\n if (val.startsWith(\"0x\") || val.startsWith(\"0X\"))\n {\n workstr1 = val.substring(2);\n slen -= 2;\n }\n else\n if (val.startsWith(\"#\"))\n {\n workstr1 = val.substring(1);\n slen -= 1;\n }\n else\n { // decimal integer\n return new Color(Integer.parseInt(val));\n }\n\n // process hex string\n if (slen <= 6)\n { // no alpha\n int ival = Integer.parseInt(workstr1, 16);\n ret_Color = new Color(ival);\n }\n else\n { // has alpha of some sort\n String workstr2;\n if (slen == 8)\n {\n workstr2 = workstr1;\n }\n else\n if (slen == 7)\n {\n workstr2 = \"0\" + workstr1;\n }\n else\n {\n workstr2 = workstr1.substring(slen - 8); // get rightmost 8\n }\n\n // System.out.println(\"Color,val=[\" + val + \"],key=[\" + key + \"],slen=\" + slen + \"]\");\n // System.out.println(\" workstr1=[\" + workstr1 + \"],workstr2=[\" + workstr2 + \"]\");\n int a = Integer.parseInt(workstr2.substring(0, 2), 16); // a\n int r = Integer.parseInt(workstr2.substring(2, 4), 16); // r\n int g = Integer.parseInt(workstr2.substring(4, 6), 16); // g\n int b = Integer.parseInt(workstr2.substring(6, 8), 16); // b\n // System.out.println(\" ret_Color1=[\" + r + \":\" + g + \":\" + b +\":\" + a + \"]\");\n // int ival = Integer.parseInt(workstr2, 16);\n // ret_Color = new Color(ival, true);\n // System.out.println(\" ival=\" + ival);\n try {\n ret_Color = new Color(r, g, b, a);\n }\n catch (NoSuchMethodError excp1) {\n System.out.println(\"YutilProperties:convertStringToColor|excp1=[\" + excp1 + \"]\");\n ret_Color = new Color(r, g, b);\n }\n // System.out.println(\" ret_Color1=[\" + ret_Color + \"]\");\n }\n }\n catch(NumberFormatException e)\n {\n ret_Color = Color.black;\n // System.out.println(\"Color,ret_Color3=[\" + ret_Color + \"]\");\n }\n\n return ret_Color;\n }",
"int canon_600_color (int ratio[], int mar)\n{\n int clipped=0, target, miss;\n\n if (flash_used != 0.0) {\n if (ratio[1] < -104)\n { ratio[1] = -104; clipped = 1; }\n if (ratio[1] > 12)\n { ratio[1] = 12; clipped = 1; }\n } else {\n if (ratio[1] < -264 || ratio[1] > 461) return 2;\n if (ratio[1] < -50)\n { ratio[1] = -50; clipped = 1; }\n if (ratio[1] > 307)\n { ratio[1] = 307; clipped = 1; }\n }\n target = flash_used != 0.0 || ratio[1] < 197\n\t? -38 - (398 * ratio[1] >> 10)\n\t: -123 + (48 * ratio[1] >> 10);\n if (target - mar <= ratio[0] &&\n target + 20 >= ratio[0] && clipped == 0) return 0;\n miss = target - ratio[0];\n if ( Math.abs(miss) >= mar*4) return 2;\n if (miss < -20) miss = -20;\n if (miss > mar) miss = mar;\n ratio[0] = target - miss;\n return 1;\n}",
"public static Color getRGBColor(String name)\n\t\t\tthrows IllegalArgumentException {\n\t\tint[] c = { 0, 0, 0, 0 };\n\t\tif (name.startsWith(\"#\")) {\n\t\t\tif (name.length() == 4) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 2), 16) * 16;\n\t\t\t\tc[1] = Integer.parseInt(name.substring(2, 3), 16) * 16;\n\t\t\t\tc[2] = Integer.parseInt(name.substring(3), 16) * 16;\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tif (name.length() == 7) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 3), 16);\n\t\t\t\tc[1] = Integer.parseInt(name.substring(3, 5), 16);\n\t\t\t\tc[2] = Integer.parseInt(name.substring(5), 16);\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(MessageLocalization.getComposedMessage(\"unknown.color.format.must.be.rgb.or.rrggbb\"));\n\t\t}\n else if (name.startsWith(\"rgb(\")) {\n StringTokenizer tok = new StringTokenizer(name, \"rgb(), \\t\\r\\n\\f\");\n for (int k = 0; k < 3; ++k) {\n String v = tok.nextToken();\n if (v.endsWith(\"%\"))\n c[k] = Integer.parseInt(v.substring(0, v.length() - 1)) * 255 / 100;\n else\n c[k] = Integer.parseInt(v);\n if (c[k] < 0)\n c[k] = 0;\n else if (c[k] > 255)\n c[k] = 255;\n }\n return new Color(c[0], c[1], c[2], c[3]);\n }\n\t\tname = name.toLowerCase();\n\t\tif (!NAMES.containsKey(name))\n\t\t\tthrow new IllegalArgumentException(\"Color '\" + name\n\t\t\t\t\t+ \"' not found.\");\n\t\tc = (int[]) NAMES.get(name);\n\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t}",
"public static Color getColorSuccess() {\n return Color.white;\n }",
"public static double getRGBColorDifference1(int color, int color2) {\r\n if (color == color2) {\r\n return 0;\r\n }\r\n Color c = new Color(color);\r\n Color c2 = new Color(color2);\r\n int dif0 = c.getRed() - c2.getRed();\r\n int dif1 = c.getGreen() - c2.getGreen();\r\n int dif2 = c.getBlue() - c2.getBlue();\r\n return Math.sqrt(dif0 * dif0 + dif1 * dif1 + dif2 * dif2);\r\n }",
"public int colorLevelDifference(Pixel p){\n return Math.abs(p.getColor().getGrayLevel() - this.getColor().getGrayLevel());\n }",
"protected abstract PixelAsColors applyToPixel(Node n) throws IllegalArgumentException;",
"int getAsInt32Color(int a) {\r\n\t\tint r = (int) (x * 255);\r\n\t\tint g = (int) (y * 255);\r\n\t\tint b = (int) (z * 255);\r\n\t\tif (r > 255) {\r\n\t\t\tr = 255;\r\n\t\t}\r\n\t\tif (g > 255) {\r\n\t\t\tg = 255;\r\n\t\t}\r\n\t\tif (b > 255) {\r\n\t\t\tb = 255;\r\n\t\t}\r\n\r\n\t\tif (r < 0) {\r\n\t\t\tr = 0;\r\n\t\t}\r\n\t\tif (g < 0) {\r\n\t\t\tg = 0;\r\n\t\t}\r\n\t\tif (b < 0) {\r\n\t\t\tb = 0;\r\n\t\t}\r\n\r\n\t\treturn (b | g << 8 | r << 16 | a << 24);\r\n\t}",
"double redPercentage();",
"public float saturation() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float S;\n\n if (V == temp) {\n S = 0;\n } else {\n S = (V - temp) / (float) V;\n }\n\n return S;\n }",
"int getColour();",
"public Color(int r, int g, int b)\n {\n this( ((float)r)/255f,((float)g) /255f,((float)b)/255f );\n }",
"public static double getColorDifference(int a, int b) {\r\n if (a == b) {\r\n return 0;\r\n }\r\n return getColorDifference(getRGB(a), getRGB(b));\r\n }",
"@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }",
"private int getColorAlgo(String[] _data) {\n\t\tif(_data != null && _data.length >1) {\n\t\t\tSystem.out.print(\"Color Algo : \"+_data[1]);\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(_data[1].trim());\n\t\t\t} catch (Exception ignored) {}\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\r\n\t\tpublic Color compute(\r\n\t\t\t\tfinal double val\r\n\t\t) {\r\n\t\t\tif ((val >= mMin) && (val <= mMax) && (!Double.isNaN(val))) {\r\n\t\t\t\tfinal double sc = 255.0 * Math.pow(Utility.bound((val - mMin) / (mMax - mMin), 0.0, 1.0), mGamma);\r\n\t\t\t\treturn new Color( //\r\n\t\t\t\t\t\tmMinRgb[0] + (int) ((mMaxRgb[0] - mMinRgb[0]) * sc), //\r\n\t\t\t\t\t\tmMinRgb[1] + (int) ((mMaxRgb[1] - mMinRgb[1]) * sc), //\r\n\t\t\t\t\t\tmMinRgb[2] + (int) ((mMaxRgb[2] - mMinRgb[2]) * sc) //\r\n\t\t\t\t);\r\n\t\t\t} else\r\n\t\t\t\treturn mOutOfRange;\r\n\t\t}",
"Color calcColor() {\n\n\t\tfloat r_f, g_f, b_f;\n\t\tint size = events.size();\n\n\t\tr_f = g_f = b_f = 0;\n\n\t\tIterator<Event> it = events.iterator();\n\t\tColorEvent event;\n\n\t\twhile ( it.hasNext() ) {\n\n\t\t\tevent = (ColorEvent) it.next();\n\t\t\tr_f += event.color.getRed() / size;\n\t\t\tg_f += event.color.getGreen() / size;\n\t\t\tb_f += event.color.getBlue() / size;\n\n\t\t}\n\n\t\treturn new Color((int) r_f, (int) g_f, (int) b_f);\n\t}",
"public static int getColorsCount()\n {\n return colorsCount;\n }",
"private static int colorToRGB(int alpha, int red, int green, int blue) {\n \n int newPixel = 0;\n newPixel += alpha; newPixel = newPixel << 8;\n newPixel += red; newPixel = newPixel << 8;\n newPixel += green; newPixel = newPixel << 8;\n newPixel += blue;\n \n return newPixel;\n }",
"public int getPercentageColor() {\n return percentageColor;\n }",
"private static void normalizeColor(BufferedImage image) {\n\t\tHashMap<Integer, Integer> counts = colorHistogram(image);\r\n\t\tInteger[] a=sortmap(counts); // sorting the map\r\n\t\tInteger minFreq = 1000;\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\tif (counts.get(i) < minFreq) {\r\n\t\t\t\tminFreq = counts.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\t*\r\n\t\t*Main logic to normalise the code\r\n\t\t* Assumption: all the colors which start from edges are the noise to the captcha or background.\r\n\t\t*/\r\n\t\tArrayList<Integer> topValues = new ArrayList<>();\r\n\t\tfor (Integer i: counts.keySet()) {\r\n\t\t\ttopValues.add(i); // adding all the colors into the the array list topValues without any condition\r\n\t\t}\r\n\t\tInteger[] out=findEdgecolors(image); // findEdgecolors function returns the array of RGB values of colors which are at the edges of the picture\r\n\t\tfor(int i=0;i<out.length;i++)\r\n\t\t{\r\n\t\t\tif(out[i]!=null)\r\n\t\t\t\ttopValues.remove(out[i]); // remove the colours from topValues list if the color exist in the array returned by the findEdgecolors funciton (removing the colors which start from edges)\r\n\t\t}\r\n\t\t/*\r\n\t\t*Now topvalues consists of colors which are not in the edges of the clipped image\r\n\t\t*/\r\n\t\tint white_rgb = Color.YELLOW.getRGB();\r\n\t\tint black_rgb = Color.BLACK.getRGB();\r\n\r\n\t\tfor (int x=0; x<image.getWidth(); x++) {\r\n\t\t\tfor (int y=0; y<image.getHeight(); y++) {\r\n\t\t\t\tint pixelVal = image.getRGB(x, y);\r\n\r\n\t\t\t\tif (!topValues.contains(pixelVal)) {\r\n\t\t\t\t\timage.setRGB(x, y, white_rgb); //replacing the colors in topvalue with black\r\n\t\t\t\t} else {\r\n\t\t\t\t\timage.setRGB(x, y, black_rgb); // rest is colored with yellow (background)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif (debug) {\r\n\t\t\ttry {\r\n\t\t\t\tImageIO.write(image, \"gif\", new File(\"colorNormalized.gif\"));\r\n\t\t\t} catch (Exception e) {e.printStackTrace();}\r\n\t\t}\r\n\t}",
"public static Color bvToColor(double bv)\n\t{\n\t\tdouble t;\n\t\tdouble r = 0, g = 0, b = 0;\n\t\tbv = Math.max(-0.4, Math.min(2.0, bv));\n\t\tif ((bv >= -0.40) && (bv < 0.00))\n\t\t{\n\t\t\tt = (bv + 0.40) / (0.00 + 0.40);\n\t\t\tr = 0.61 + (0.11 * t) + (0.1 * t * t);\n\t\t}\n\t\telse if ((bv >= 0.00) && (bv < 0.40))\n\t\t{\n\t\t\tt = (bv - 0.00) / (0.40 - 0.00);\n\t\t\tr = 0.83 + (0.17 * t);\n\t\t}\n\t\telse if ((bv >= 0.40) && (bv < 2.10))\n\t\t{\n\t\t\tt = (bv - 0.40) / (2.10 - 0.40);\n\t\t\tr = 1.00;\n\t\t}\n\t\tif ((bv >= -0.40) && (bv < 0.00))\n\t\t{\n\t\t\tt = (bv + 0.40) / (0.00 + 0.40);\n\t\t\tg = 0.70 + (0.07 * t) + (0.1 * t * t);\n\t\t}\n\t\telse if ((bv >= 0.00) && (bv < 0.40))\n\t\t{\n\t\t\tt = (bv - 0.00) / (0.40 - 0.00);\n\t\t\tg = 0.87 + (0.11 * t);\n\t\t}\n\t\telse if ((bv >= 0.40) && (bv < 1.60))\n\t\t{\n\t\t\tt = (bv - 0.40) / (1.60 - 0.40);\n\t\t\tg = 0.98 - (0.16 * t);\n\t\t}\n\t\telse if ((bv >= 1.60) && (bv < 2.00))\n\t\t{\n\t\t\tt = (bv - 1.60) / (2.00 - 1.60);\n\t\t\tg = 0.82 - (0.5 * t * t);\n\t\t}\n\t\tif ((bv >= -0.40) && (bv < 0.40))\n\t\t{\n\t\t\tt = (bv + 0.40) / (0.40 + 0.40);\n\t\t\tb = 1.00;\n\t\t}\n\t\telse if ((bv >= 0.40) && (bv < 1.50))\n\t\t{\n\t\t\tt = (bv - 0.40) / (1.50 - 0.40);\n\t\t\tb = 1.00 - (0.47 * t) + (0.1 * t * t);\n\t\t}\n\t\telse if ((bv >= 1.50) && (bv < 1.94))\n\t\t{\n\t\t\tt = (bv - 1.50) / (1.94 - 1.50);\n\t\t\tb = 0.63 - (0.6 * t * t);\n\t\t}\n\t\treturn new Color((float) r, (float) g, (float) b);\n\t}",
"public static float[] createColors() {\n float[] data = new float[4 * 3];\n data[0] = 1f;\n data[1] = 0f;\n data[2] = 0f;\n data[3] = 1f;\n\n data[4] = 0f;\n data[5] = 1f;\n data[6] = 0f;\n data[7] = 1f;\n\n data[8] = 0f;\n data[9] = 0f;\n data[10] = 1f;\n data[11] = 1f;\n return data;\n }",
"private static Color tint(Color c, int tint) {\n int r = c.getRed();\n int g = c.getGreen();\n int b = c.getBlue();\n\n float ftint = tint / 100.0f;\n\n int red = Math.round(ftint * r + (1 - ftint) * 255);\n int green = Math.round(ftint * g + (1 - ftint) * 255);\n int blue = Math.round(ftint * b + (1 - ftint) * 255);\n\n return new Color(red, green, blue);\n }",
"RGB getOldColor();",
"public int getPaintAlpha(){\n return Math.round((float)paintAlpha/255*100);\n }",
"private Color getColor( float value ) {\n float[] rgba = (float[]) baseRgba_.clone();\n shader_.adjustRgba( rgba, value );\n return new Color( rgba[ 0 ], rgba[ 1 ], rgba[ 2 ], rgba[ 3 ] );\n }",
"double greenPercentage();",
"public int colorVertices();",
"public static int weakRGB(int rgb,float alpha){\r\n\t\tif(alpha==1.0){\r\n\t\t\treturn rgb;\r\n\t\t}\r\n\t\t\r\n\t\tint a = (int)(alpha*0xff);\r\n\t\tint nrgb = 0xff000000;\r\n\t\tint r = a*((rgb&0x00ff0000)>>16); //red\r\n\t\tr/=0xff;\r\n\t\tnrgb += r<<16;\r\n\t\tr = a*((rgb&0x0000ff00)>>8); \t //green\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r<<8;\r\n\t\tr = a*(rgb&0x000000ff); \t //blue\r\n\t\tr/=0xff;\r\n\t\tnrgb+=r;\r\n\t//\tnrgb+=0xff000000;\r\n\t\t\r\n\t\treturn nrgb;\r\n\t}",
"public int getColorValue() {\r\n\t\treturn color;\r\n\t}",
"private Color NewColor(int numb) {\r\n\r\n\t\tswitch(numb){\r\n\t\tcase 0: return Color.BLACK;\r\n\t\tcase 1: return Color.RED;\r\n\t\tcase 3: return Color.BLUE;\r\n\t\t}\r\n\t\treturn Color.MAGENTA;\r\n\t}",
"public Color getColor(int i) {\n switch (i) {\n case 0:\n return Color.GRAY;\n case 1:\n return Color.RED.darker();\n case 2:\n return Color.YELLOW.darker();\n case 3:\n return Color.CYAN.darker().darker();\n case 4:\n return Color.PINK.darker();\n case 5:\n return Color.GREEN.darker();\n default:\n return Color.BLACK;\n }\n }",
"int getColorDepth();",
"public float hue() {\n int r = (color >> 16) & 0xFF;\n int g = (color >> 8) & 0xFF;\n int b = color & 0xFF;\n\n int V = Math.max(b, Math.max(r, g));\n int temp = Math.min(b, Math.min(r, g));\n\n float H;\n\n if (V == temp) {\n H = 0;\n } else {\n final float vtemp = (float) (V - temp);\n final float cr = (V - r) / vtemp;\n final float cg = (V - g) / vtemp;\n final float cb = (V - b) / vtemp;\n\n if (r == V) {\n H = cb - cg;\n } else if (g == V) {\n H = 2 + cr - cb;\n } else {\n H = 4 + cg - cr;\n }\n\n H /= 6.f;\n if (H < 0) {\n H++;\n }\n }\n\n return H;\n }",
"private void parseColors(String colors){\n String pattern = \"#([A-F0-9]||[a-f0-9]){6}\";\n if (colors.matches(pattern)){\n paint.setColor(Color.parseColor(colors));\n return;\n }\n pattern = \"rgb\\\\(\\\\d\\\\d?\\\\d?,\\\\d\\\\d?\\\\d?,\\\\d\\\\d?\\\\d?\\\\)\";\n if (!colors.matches(pattern)) return;\n\n colors = colors.substring(4);\n\n int r = Integer.parseInt(colors.substring(0,colors.indexOf(',')));\n if (r > 255) return;\n\n colors = colors.substring(colors.indexOf(',') + 1);\n\n int g = Integer.parseInt(colors.substring(0,colors.indexOf(',')));\n if (g > 255) return;\n\n int b = Integer.parseInt(colors.substring(colors.indexOf(',') + 1, colors.length()-1));\n if (b > 255) return;\n\n paint.setColor(Color.argb(255, r, g, b));\n\n }",
"public void init_colors_red(){\t\n\t\tColor c1 = new Color(0,0,0);\t\t// BLACK\t\t\n\t\tColor c2 = new Color(255,0,0);\t// RED\n\t\tColor c3 = new Color(255,170,0);\t// ORANGE\n\t\tColor c4 = new Color(255,255,255);\t// WHITE\n\t\t\n\t\tinit_colors(c1,c2,c3,c4);\n\t}",
"private Color detectColor(String c){\n switch (c){\n case \"RED\": return Color.RED;\n case \"BLUE\": return Color.BLUE;\n case \"YELLOW\": return Color.YELLOW;\n case \"GREEN\": return Color.GREEN;\n case \"WHITE\": return Color.WHITE;\n case \"BLACK\": return Color.BLACK;\n case \"CYAN\": return Color.CYAN;\n case \"ORANGE\": return Color.ORANGE;\n case \"MAGENTA\": return Color.MAGENTA;\n case \"PINK\": return Color.PINK;\n default: return null;\n }\n }",
"public static void main(String[] args) {\n\t\tString x = \"rgb(40, 116, 240)\";\r\n\t\tString[] ar1 = {\"(\",\")\",\",\"};\r\n\t\tfor (int i = 0; i < ar1.length; i++) {\r\n\t\t\tx = x.replace(ar1[i], \" \");\t\t\r\n\t\t}\r\n\t\t\r\n\t\tString[] ans = x.split(\" \");\r\n\t\tint color = Integer.parseInt(ans[ans.length-1]);\r\n\t\tif(color>133 && color<250){\r\n\t\t\tSystem.out.println(\"The Text color is BLUE\");\r\n\t\t}\r\n\t\tSystem.out.println(color);\r\n\t}",
"public void k() {\n float f2 = BitmapDescriptorFactory.HUE_RED;\n for (float f3 : this.i) {\n if (f3 > BitmapDescriptorFactory.HUE_RED) {\n f2 += f3;\n }\n }\n if (f2 != BitmapDescriptorFactory.HUE_RED) {\n int length = this.i.length;\n for (int i2 = 0; i2 < length; i2++) {\n float[] fArr = this.i;\n if (fArr[i2] > BitmapDescriptorFactory.HUE_RED) {\n fArr[i2] = fArr[i2] / f2;\n }\n }\n }\n }",
"public static int color(Context context) {\n\t\tSharedPreferences prefs = PreferenceManager\n\t\t\t\t.getDefaultSharedPreferences(context);\n\t\tint bg = prefs.getInt(\"menu.background\", 0x7c000000);\n\t\tint alpha =\t((bg>>24)&0xFF);\n\t\tint red = \t((bg>>16)&0xFF);\n\t\tint green = ((bg>>8)&0xFF);\n\t\tint blue = \t((bg)&0xFF);\n\t\tdouble lum = ((0.2126*(red)+0.7152*(green)+0.0722*(blue))*((alpha)/255.0))/255.0;\n\t\tif(lum>0.35)\n\t\t\treturn 0xFF000000;//black\n\t\telse return 0xFFFFFFFF;//white\n\t}",
"public static int convertSingularRGB(int[] rgbValues) throws Exception {\r\n\t\t//Color Variables:\r\n\t\tint standardColorValue = (((rgbValues[0] & 0x0ff) << 16) | ((rgbValues[1] & 0x0ff) << 8) | ((rgbValues[2] & 0x0ff)));\r\n\r\n\t\t//Returns Value:\r\n\t\treturn standardColorValue;\r\n\t}",
"public Color getColor();",
"public Color getColor();",
"public Color getColor();",
"public void init_colors(Color c1,Color c2,Color c3,Color c4){\n\t\tcolors = new Color [100];\n\t\tfor (int i = 0; i < 33; i++){\n\t\t\tdouble f = ((double)i) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c1.getRed() + (f * (c2.getRed() - c1.getRed())) )),\n\t\t\t\tclamp((int)( c1.getGreen() + (f * (c2.getGreen() - c1.getGreen())) )),\n\t\t\t\tclamp((int)( c1.getBlue() + (f * (c2.getBlue() - c1.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 33; i < 66; i++){\n\t\t\tdouble f = ((double)(i - 33)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c2.getRed() + (f * (c3.getRed() - c2.getRed())) )),\n\t\t\t\tclamp((int)( c2.getGreen() + (f * (c3.getGreen() - c2.getGreen())) )),\n\t\t\t\tclamp((int)( c2.getBlue() + (f * (c3.getBlue() - c2.getBlue())) ))\n\t\t\t);\n\t\t}\n\t\tfor (int i = 66; i < 100; i++){\n\t\t\tdouble f = ((double)(i - 66)) / 32;\n\t\t\tcolors[i] = new Color(\n\t\t\t\tclamp((int)( c3.getRed() + (f * (c4.getRed() - c3.getRed())) )),\n\t\t\t\tclamp((int)( c3.getGreen() + (f * (c4.getGreen() - c3.getGreen())) )),\n\t\t\t\tclamp((int)( c3.getBlue() + (f * (c4.getBlue() - c3.getBlue())) ))\n\t\t\t);\n\t\t}\n\t}",
"public int getColorInt () {\r\n return this.colorReturned;\r\n }"
] | [
"0.65912384",
"0.63488305",
"0.6290758",
"0.6290381",
"0.62033767",
"0.61641836",
"0.61399734",
"0.6103646",
"0.6066932",
"0.6038863",
"0.6031084",
"0.6020753",
"0.6009948",
"0.5928065",
"0.59061044",
"0.5900362",
"0.58941656",
"0.58695567",
"0.5857348",
"0.5857348",
"0.58525074",
"0.58482534",
"0.584348",
"0.5830226",
"0.5828261",
"0.58279073",
"0.5818515",
"0.5806919",
"0.58052486",
"0.580221",
"0.5786808",
"0.5784897",
"0.57807136",
"0.5759332",
"0.57590616",
"0.5753269",
"0.57520014",
"0.5749028",
"0.57485634",
"0.5737093",
"0.5726119",
"0.57195884",
"0.57185584",
"0.57185584",
"0.57185584",
"0.57185584",
"0.57185584",
"0.57033676",
"0.57011336",
"0.5699386",
"0.5698723",
"0.56911695",
"0.5690769",
"0.56884074",
"0.5685588",
"0.56833583",
"0.5681387",
"0.5676804",
"0.56659716",
"0.5665857",
"0.56658536",
"0.5665224",
"0.5631594",
"0.56252515",
"0.5622293",
"0.56183517",
"0.56076354",
"0.55818367",
"0.5578448",
"0.55779886",
"0.55651045",
"0.5555895",
"0.55510396",
"0.55487907",
"0.5546124",
"0.5545862",
"0.55442244",
"0.5528569",
"0.5527505",
"0.5521008",
"0.5519175",
"0.5518447",
"0.55162233",
"0.5512248",
"0.5508678",
"0.5504472",
"0.5493339",
"0.548525",
"0.54738116",
"0.545771",
"0.54526424",
"0.54524016",
"0.544964",
"0.544932",
"0.5448571",
"0.5448019",
"0.5446768",
"0.5446768",
"0.5446768",
"0.5445202",
"0.5435353"
] | 0.0 | -1 |
not to be instantiated | private HepRepColor() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private stendhal() {\n\t}",
"private Rekenhulp()\n\t{\n\t}",
"private TMCourse() {\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n public void perish() {\n \n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"private Mth()\n\t{\n\t\tthrow new AssertionError();\n\t}",
"Reproducible newInstance();",
"@Override\r\n\tpublic void init() {}",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n protected void init() {\n }",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"protected Problem() {/* intentionally empty block */}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\n public void init() {\n }",
"private DiscretePotentialOperations() {\r\n\t}",
"public final void mo51373a() {\n }",
"private MetallicityUtils() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"public void smell() {\n\t\t\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() {}",
"@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 void init() {\n }",
"private MApi() {}",
"@Override\n public void init() {\n\n }",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"public Pitonyak_09_02() {\r\n }",
"public abstract Object mo26777y();",
"public abstract void mo70713b();",
"protected Doodler() {\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"private void init() {\n\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"@Override\n protected void initialize() {\n }",
"private void init() {\n\n\n\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"protected abstract void construct();",
"public void mo38117a() {\n }",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"protected OpinionFinding() {/* intentionally empty block */}",
"@Override\n protected void prot() {\n }",
"@Override\n public void init() {\n }",
"private Singletion3() {}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"public Methods() {\n // what is this doing? -PMC\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void init() {\n\n }",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"@Override\n protected void initialize() \n {\n \n }",
"private void kk12() {\n\n\t}",
"@Override\n\tpublic void init()\n\t{\n\n\t}",
"private void init() {\n }",
"protected void _init(){}",
"@Override\n\tpublic void init() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"private TAPosition()\n {\n\n }",
"private Util() { }",
"private ReportGenerationUtil() {\n\t\t\n\t}",
"private OMUtil() { }",
"private AlgorithmTools() {}",
"private void m50366E() {\n }",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"public abstract Object mo1771a();",
"private IndexBitmapObject() {\n\t}",
"public abstract void mo56925d();",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"private Infer() {\n\n }",
"protected void initialize() {}",
"protected void initialize() {}",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"private ProcessedDynamicData( ) {\r\n super();\r\n }",
"public void gored() {\n\t\t\n\t}",
"private ObjectMacroFront() {\n\n throw new InternalException(\"this class may not have instances\");\n }",
"@Override\n\tprotected void initialize() {\n\n\t}",
"private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}"
] | [
"0.6897312",
"0.6823182",
"0.6513449",
"0.6496372",
"0.6442771",
"0.6400153",
"0.63860023",
"0.6352101",
"0.6349638",
"0.6345327",
"0.63452953",
"0.63316935",
"0.63316935",
"0.6331587",
"0.6314085",
"0.6311126",
"0.6294324",
"0.6282171",
"0.62642527",
"0.62616545",
"0.6260278",
"0.62455213",
"0.62454325",
"0.62429744",
"0.6242685",
"0.6242685",
"0.6242685",
"0.6242685",
"0.6242685",
"0.6234954",
"0.6227611",
"0.6227611",
"0.6227611",
"0.62120485",
"0.6205963",
"0.6205261",
"0.6185482",
"0.6180695",
"0.6175935",
"0.6174907",
"0.61731035",
"0.61676884",
"0.61629987",
"0.6162219",
"0.615794",
"0.61566603",
"0.61566603",
"0.615574",
"0.615574",
"0.615574",
"0.615574",
"0.615574",
"0.615574",
"0.6129238",
"0.6128923",
"0.61248296",
"0.6116877",
"0.6114382",
"0.6114382",
"0.6114382",
"0.6112722",
"0.6095223",
"0.60944206",
"0.60942066",
"0.6084926",
"0.60843533",
"0.60820365",
"0.6078774",
"0.60753095",
"0.60753095",
"0.6062956",
"0.6062956",
"0.6056892",
"0.60455173",
"0.60426724",
"0.6042106",
"0.6040282",
"0.60393167",
"0.60371053",
"0.6035724",
"0.6035678",
"0.6033743",
"0.60326374",
"0.6032059",
"0.60295296",
"0.60273105",
"0.60273105",
"0.60273105",
"0.60270303",
"0.601979",
"0.6019463",
"0.6017328",
"0.60148764",
"0.60103214",
"0.60103214",
"0.6004696",
"0.5997358",
"0.5996544",
"0.59892637",
"0.59861016",
"0.59849966"
] | 0.0 | -1 |
this method returns a Color. Colors are supposedly immutable and are returned from the same table. The RGBA formats, where Alpha is optional and defaults to 1, are: by name: "yellow" , where alpha is always 1.0 by int r,g,b,a: "128, 255, 64, 255" , where alpha (a) is optional by float r,g,b,a: "0.5, 1.0, 0.25, 1.0" , where alpha (a) is optional by single number: "64637" or "0x0FFF08" , where alpha is always 1.0 | public static final Color get(String name) {
try {
return cc.stringToColor(name);
} catch (ColorConverter.ColorConversionException x) {
System.err.println(x.getMessage()+" defaulting to 'white'.");
return Color.white;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"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 }",
"public IsColor getColorFrom() {\n\t\treturn ColorBuilder.parse(getColorFromAsString());\n\t}",
"public Color color() {\n r = 34;\n g = 0;\n b = 231;\n return color(r, g, b);\n }",
"private Color getColor( float value ) {\n float[] rgba = (float[]) baseRgba_.clone();\n shader_.adjustRgba( rgba, value );\n return new Color( rgba[ 0 ], rgba[ 1 ], rgba[ 2 ], rgba[ 3 ] );\n }",
"public Color getColorObject() {\n switch (this) {\n case WHITE:\n return new Color(255,255,255);\n case BLACK:\n return new Color(0,0,0);\n case RED:\n return new Color(255,0,0);\n case GREEN:\n return new Color(0,255,0);\n case BLUE:\n return new Color(0,0,255);\n default:\n return null;\n }\n\n }",
"public Color(int red, int green, int blue, double alpha) {\n\t\tthis(new StringBuilder(21)\n\t\t\t\t.append(\"rgba(\")\n\t\t\t\t.append(red).append(',')\n\t\t\t\t.append(green).append(',')\n\t\t\t\t.append(blue).append(',')\n\t\t\t\t.append(alpha).append(')')\n\t\t\t\t.toString(), \n\t\t\t\tred, green, blue, alpha);\n\t}",
"public IsColor getColor() {\n\t\treturn ColorBuilder.parse(getColorAsString());\n\t}",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public static Color getRGBColor(String name)\n\t\t\tthrows IllegalArgumentException {\n\t\tint[] c = { 0, 0, 0, 0 };\n\t\tif (name.startsWith(\"#\")) {\n\t\t\tif (name.length() == 4) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 2), 16) * 16;\n\t\t\t\tc[1] = Integer.parseInt(name.substring(2, 3), 16) * 16;\n\t\t\t\tc[2] = Integer.parseInt(name.substring(3), 16) * 16;\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tif (name.length() == 7) {\n\t\t\t\tc[0] = Integer.parseInt(name.substring(1, 3), 16);\n\t\t\t\tc[1] = Integer.parseInt(name.substring(3, 5), 16);\n\t\t\t\tc[2] = Integer.parseInt(name.substring(5), 16);\n\t\t\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t\t\t}\n\t\t\tthrow new IllegalArgumentException(MessageLocalization.getComposedMessage(\"unknown.color.format.must.be.rgb.or.rrggbb\"));\n\t\t}\n else if (name.startsWith(\"rgb(\")) {\n StringTokenizer tok = new StringTokenizer(name, \"rgb(), \\t\\r\\n\\f\");\n for (int k = 0; k < 3; ++k) {\n String v = tok.nextToken();\n if (v.endsWith(\"%\"))\n c[k] = Integer.parseInt(v.substring(0, v.length() - 1)) * 255 / 100;\n else\n c[k] = Integer.parseInt(v);\n if (c[k] < 0)\n c[k] = 0;\n else if (c[k] > 255)\n c[k] = 255;\n }\n return new Color(c[0], c[1], c[2], c[3]);\n }\n\t\tname = name.toLowerCase();\n\t\tif (!NAMES.containsKey(name))\n\t\t\tthrow new IllegalArgumentException(\"Color '\" + name\n\t\t\t\t\t+ \"' not found.\");\n\t\tc = (int[]) NAMES.get(name);\n\t\treturn new Color(c[0], c[1], c[2], c[3]);\n\t}",
"public static Color getColor(Color color, int alpha) {\r\n alpha *= 255;\r\n alpha /= 100;\r\n\r\n return new Color(color.getRed(), color.getGreen(), color.getBlue(), alpha);\r\n }",
"public Color getColor();",
"public Color getColor();",
"public Color getColor();",
"private static Color newColor(int red, int green, int blue) {\n return new Color(red / 255.0, green / 255.0, blue / 255.0);\n }",
"java.awt.Color getColor();",
"public Color getColor() {\n switch(this.value) {\n case 2: return new Color(0xEEE4DA);\n case 4: return new Color(0xEDE0C8);\n case 8: return new Color(0xF2B179);\n case 16: return new Color(0xF59563);\n case 32: return new Color(0xF67C5F);\n case 64: return new Color(0xF65E3B);\n case 128: return new Color(0xEDCF72);\n case 256: return new Color(0xEDCC61);\n case 512: return new Color(0xEDC850);\n case 1024: return new Color(0xEDC53F);\n case 2048: return new Color(0xEDC22E);\n \n }\n // Default color for null tiles\n return new Color(0xCDC1B4);\n }",
"Color calcColor() {\n\n\t\tfloat r_f, g_f, b_f;\n\t\tint size = events.size();\n\n\t\tr_f = g_f = b_f = 0;\n\n\t\tIterator<Event> it = events.iterator();\n\t\tColorEvent event;\n\n\t\twhile ( it.hasNext() ) {\n\n\t\t\tevent = (ColorEvent) it.next();\n\t\t\tr_f += event.color.getRed() / size;\n\t\t\tg_f += event.color.getGreen() / size;\n\t\t\tb_f += event.color.getBlue() / size;\n\n\t\t}\n\n\t\treturn new Color((int) r_f, (int) g_f, (int) b_f);\n\t}",
"default Color getColor() {\r\n\t\treturn Color.RED;\r\n\t}",
"@Override\n Color getColor() {\n return new Color(32, 83, 226, 255);\n }",
"protected Color randomColor()\n {\n // There are 256 possibilities for the red, green, and blue attributes\n // of a color. Generate random values for each color attribute.\n Random randNumGen = RandNumGenerator.getInstance();\n return new Color(randNumGen.nextInt(256), // amount of red\n randNumGen.nextInt(256), // amount of green\n randNumGen.nextInt(256)); // amount of blue\n }",
"Color(int R, int G, int B) {\r\n\t\t this.rgb = new RGB(R,G,B);\r\n\t\t this.colorific = true;\r\n\t }",
"public GameColor getColor();",
"public Bitmap3DColor(\n float v1Red, float v1Green, float v1Blue, float v1Alpha,\n float v2Red, float v2Green, float v2Blue, float v2Alpha,\n float v3Red, float v3Green, float v3Blue, float v3Alpha,\n float v4Red, float v4Green, float v4Blue, float v4Alpha\n ) {\n if(\n v1Red < 0 || v1Red > 1 || v2Red < 0 || v2Red > 1 || v3Red < 0 || v3Red > 1 || v4Red < 0 || v4Red > 1 ||\n v1Green < 0 || v1Green > 1 || v2Green < 0 || v2Green > 1 || v3Green < 0 || v3Green > 1 || v4Green < 0 || v4Green > 1 ||\n v1Blue < 0 || v1Blue > 1 || v2Blue < 0 || v2Blue > 1 || v3Blue < 0 || v3Blue > 1 || v4Blue < 0 || v4Blue > 1 ||\n v1Alpha < 0 || v1Alpha > 1 || v2Alpha < 0 || v2Alpha> 1 || v3Alpha < 0 || v3Alpha > 1 || v4Alpha < 0 || v4Alpha > 1\n ) {\n throw new IllegalArgumentException(\"Values should be between 0 and 1\");\n }\n\n float[] colors = {\n v1Red, v1Green, v1Blue, v1Alpha,\n v2Red, v2Green, v2Blue, v2Alpha,\n v3Red, v3Green, v3Blue, v3Alpha,\n v4Red, v4Green, v4Blue, v4Alpha\n };\n\n ByteBuffer clb = ByteBuffer.allocateDirect(colors.length * 4);\n clb.order(ByteOrder.nativeOrder());\n this.colorBuffer = clb.asFloatBuffer();\n this.colorBuffer.put(colors);\n this.colorBuffer.position(0);\n }",
"public Color getColor() {\r\n\t\treturn new Color(Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]));\r\n\t}",
"public Color getColor() {\r\n\t\tColor retVal = theColor;\r\n\t\treturn retVal;\r\n\t}",
"@Override\n\tpublic Color getColor(String colorType) {\n\t\t\n\t\tif(colorType == null){\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tif(colorType.equalsIgnoreCase(\"RED\")){\n\t\t\treturn new Red();\n\t\t} else if(colorType.equalsIgnoreCase(\"GREEN\")){\n\t\t\treturn new Green();\n\t\t} else if(colorType.equalsIgnoreCase(\"Blue\")){\n\t\t\treturn new Blue();\n\t\t}\n\t\t\n\t\treturn null;\n\t\t\n\t}",
"public IsColor getColorTo() {\n\t\treturn ColorBuilder.parse(getColorToAsString());\n\t}",
"public static Color parserColor(String value) throws NumberFormatException {\n if(value.length() > 0 && value.charAt(0) == '#') {\n String hexcode = value.substring(1);\n switch (value.length()) {\n case 4: {\n int rgb4 = Integer.parseInt(hexcode, 16);\n int r = ((rgb4 >> 8) & 0xF) * 0x11;\n int g = ((rgb4 >> 4) & 0xF) * 0x11;\n int b = ((rgb4 ) & 0xF) * 0x11;\n return new Color(0xFF000000 | (r << 16) | (g << 8) | b);\n }\n case 5: {\n int rgb4 = Integer.parseInt(hexcode, 16);\n int a = ((rgb4 >> 12) & 0xF) * 0x11;\n int r = ((rgb4 >> 8) & 0xF) * 0x11;\n int g = ((rgb4 >> 4) & 0xF) * 0x11;\n int b = ((rgb4 ) & 0xF) * 0x11;\n return new Color((a << 24) | (r << 16) | (g << 8) | b);\n }\n case 7:\n return new Color(0xFF000000 | Integer.parseInt(hexcode, 16));\n case 9:\n return new Color((int)Long.parseLong(hexcode, 16));\n default:\n throw new NumberFormatException(\"Can't parse '\" + value + \"' as hex color\");\n }\n }\n return Color.getColorByName(value);\n }",
"RGB getNewColor();",
"abstract Color getColor();",
"private static int colorToRGB(int alpha, int red, int green, int blue) {\n \n int newPixel = 0;\n newPixel += alpha; newPixel = newPixel << 8;\n newPixel += red; newPixel = newPixel << 8;\n newPixel += green; newPixel = newPixel << 8;\n newPixel += blue;\n \n return newPixel;\n }",
"String getColor();",
"public ColorField(int rStart, int gStart, int bStart, int alphaStart, int rEnd, int gEnd, int bEnd, int alphaEnd) {\n this.rStart = rStart;\n this.gStart = gStart;\n this.bStart = bStart;\n this.alphaStart = alphaStart;\n this.rEnd = rEnd;\n this.gEnd = gEnd;\n this.bEnd = bEnd;\n this.alphaEnd = alphaEnd;\n int r = Math.abs(rStart - rEnd) / (colors.length);\n int g = Math.abs(gStart - gEnd) / (colors.length);\n int b = Math.abs(bStart - bEnd) / (colors.length);\n int alpha = Math.abs(alphaStart - alphaEnd) / (colors.length);\n for (int i = 0; i < colors.length; i++) {\n colors[i] = new Color(rStart + r * i, gStart + g * i, bStart + b * i, alphaStart + alpha * i);\n // System.out.println(colors[i].alpha);\n }\n }",
"public static java.awt.Color colorFromString(String s) {\r\n Color color = null;\r\n s = s.substring(6, s.length() - 1);\r\n if (s.startsWith(\"RGB\")) {\r\n s = s.substring(4, s.length() - 1);\r\n String[] split = s.split(\",\");\r\n int color1 = Integer.parseInt(split[0]);\r\n int color2 = Integer.parseInt(split[1]);\r\n int color3 = Integer.parseInt(split[2]);\r\n color = new Color(color1, color2, color3);\r\n } else {\r\n Field field = null;\r\n try {\r\n field = Class.forName(\"java.awt.Color\").getField(s);\r\n } catch (NoSuchFieldException | SecurityException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n color = (Color) field.get(null);\r\n } catch (IllegalArgumentException e) {\r\n e.printStackTrace();\r\n } catch (IllegalAccessException e) {\r\n e.printStackTrace();\r\n }\r\n// if (s.equals(\"blue\")) {\r\n// return Color.blue;\r\n// } else if (s.equals(\"black\")) {\r\n// return Color.black;\r\n// } else if (s.equals(\"cyan\")) {\r\n// return Color.cyan;\r\n// } else if (s.equals(\"gray\")) {\r\n// return Color.gray;\r\n// } else if (s.equals(\"lightGray\")) {\r\n// return Color.lightGray;\r\n// } else if (s.equals(\"green\")) {\r\n// return Color.green;\r\n// } else if (s.equals(\"orange\")) {\r\n// return Color.orange;\r\n// } else if (s.equals(\"pink\")) {\r\n// return Color.pink;\r\n// } else if (s.equals(\"red\")) {\r\n// return Color.red;\r\n// } else if (s.equals(\"white\")) {\r\n// return Color.white;\r\n// } else if (s.equals(\"yellow\")) {\r\n// return Color.yellow;\r\n// }\r\n }\r\n return color;\r\n }",
"@Override\n public ShapeColor getColor() {\n return new ShapeColor(this.r, this.g, this.b);\n }",
"public Bitmap3DColor(float red, float green, float blue, float alpha) {\n this(red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha, red, green, blue, alpha);\n }",
"public int getColor();",
"public int getColor();",
"@Override\r\n public Llama.Color getColor() {\r\n return color;\r\n }",
"public static Color randomColor() {\n\t\tColor c = new Color(random.nextInt(256),random.nextInt(256),random.nextInt(256));\n\t\treturn c;\n\t}",
"public RMColor getColor() { return getFill()==null? RMColor.black : getFill().getColor(); }",
"public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}",
"public Color(int red, int green, int blue) {\n\t\tStringBuilder stringBuilder = new StringBuilder(\"#000000\");\n\t\tString hexString = Integer.toHexString(getHexValue(red, green, blue));\n\t\tcolorCode = stringBuilder.replace(\n\t\t\t\tstringBuilder.length() - hexString.length(), \n\t\t\t\tstringBuilder.length(), \n\t\t\t\thexString).toString();\n\t\tthis.red = red;\n\t\tthis.green = green;\n\t\tthis.blue = blue;\n\t\tthis.alpha = DEFAULT_ALPHA;\n\t}",
"private Color generateColor() {\r\n\t\tint length = nameColor.size();\r\n\t\tif(length == 0) return colorArray[0];\r\n\t\t\r\n\t\tColor lastColor = nameColor.get(length-1);\r\n\t\tint lastColorIndex = 0;\r\n\t\tfor(int i = 0; i<colorArray.length; i++) {\r\n\t\t\tif(lastColor == colorArray[i]) {\r\n\t\t\t\tlastColorIndex = i;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tColor curColor = colorArray[(lastColorIndex+1)%3];\r\n\t\treturn curColor;\r\n\t}",
"public static Color RandomColor(){\n\t\n\tRandom rand = new Random();\n\tint red, green, blue;\n\tred = rand.nextInt(255);\n\tgreen = rand.nextInt(255);\n\tblue = rand.nextInt(255);\n\t\n\tColor color = new Color(red,green,blue);\n\treturn color;\n\t\n\t}",
"public abstract Color getColor();",
"private Color NewColor(int numb) {\r\n\r\n\t\tswitch(numb){\r\n\t\tcase 0: return Color.BLACK;\r\n\t\tcase 1: return Color.RED;\r\n\t\tcase 3: return Color.BLUE;\r\n\t\t}\r\n\t\treturn Color.MAGENTA;\r\n\t}",
"public ColorsParser() {\n colorMap.put(\"black\", Color.BLACK);\n colorMap.put(\"blue\", Color.BLUE);\n colorMap.put(\"cyan\", Color.CYAN);\n colorMap.put(\"darkgray\", Color.DARK_GRAY);\n colorMap.put(\"gray\", Color.GRAY);\n colorMap.put(\"green\", Color.GREEN);\n colorMap.put(\"lightGray\", Color.LIGHT_GRAY);\n colorMap.put(\"magenta\", Color.MAGENTA);\n colorMap.put(\"orange\", Color.ORANGE);\n colorMap.put(\"pink\", Color.PINK);\n colorMap.put(\"white\", Color.WHITE);\n colorMap.put(\"yellow\", Color.YELLOW);\n colorMap.put(\"red\", Color.RED);\n\n colorMap.put(\"BLACK\", Color.BLACK);\n colorMap.put(\"BLUE\", Color.BLUE);\n colorMap.put(\"CYAN\", Color.CYAN);\n colorMap.put(\"DARKGRAY\", Color.DARK_GRAY);\n colorMap.put(\"GRAY\", Color.GRAY);\n colorMap.put(\"GREEN\", Color.GREEN);\n colorMap.put(\"LIGHTGRAY\", Color.LIGHT_GRAY);\n colorMap.put(\"MAGENTA\", Color.MAGENTA);\n colorMap.put(\"ORANGE\", Color.ORANGE);\n colorMap.put(\"PINK\", Color.PINK);\n colorMap.put(\"WHITE\", Color.WHITE);\n colorMap.put(\"YELLOW\", Color.YELLOW);\n colorMap.put(\"RED\", Color.RED);\n\n\n }",
"private Color randomColor() {\r\n Random rand = new Random();\r\n float r = rand.nextFloat();\r\n float g = rand.nextFloat();\r\n float b = rand.nextFloat();\r\n\r\n randomColor = new Color(r, g, b, 1);\r\n return randomColor;\r\n }",
"private Color getRandomColor()\r\n\t{\r\n\t\tColor randomColor = new Color ((float) Math.random(), (float) Math.random(), (float) Math.random());\r\n\t\treturn randomColor;\r\n\t}",
"public static Color toColor(String colorSpec) throws IllegalArgumentException\r\n\t{\r\n\t\ttry {\r\n\t\t\tint red;\r\n\t\t\tint green;\r\n\t\t\tint blue;\r\n\t\t\tint alpha = 255;\r\n\r\n\t\t\tif( colorSpec.indexOf(\",\") != -1 ){\r\n\t\t\t\t// a color as numbers\r\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(colorSpec, \",\");\r\n\t\t\t\tred = Integer.parseInt(tokenizer.nextToken());\r\n\t\t\t\tgreen = Integer.parseInt(tokenizer.nextToken());\r\n\t\t\t\tblue = Integer.parseInt(tokenizer.nextToken());\r\n\t\t\t\tif( tokenizer.hasMoreTokens()){\r\n\t\t\t\t\talpha = Integer.parseInt(tokenizer.nextToken());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\t// a color as a hex\r\n\t\t\t\tred = Integer.parseInt(colorSpec.substring(0,2),16);\r\n\t\t\t\tgreen = Integer.parseInt(colorSpec.substring(2,4),16);\r\n\t\t\t\tblue = Integer.parseInt(colorSpec.substring(4,6),16);\r\n\t\t\t\tif( colorSpec.length() == 8 ){\r\n\t\t\t\t\talpha = Integer.parseInt(colorSpec.substring(6),16);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn new Color(red, green, blue, alpha);\r\n\t\t} catch (Exception e){\r\n\t\t\tthrow new IllegalArgumentException(\"Failed to parse '\" + colorSpec + \"' to a java.awt.Color : \" + e);\r\n\t\t}\r\n\t}",
"static Color getColor(String colorString) {\n if (ArgumentCheckUtil.isNullOrEmptyString(colorString)) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"white\")) {\n return Color.WHITE;\n } else if (colorString.toLowerCase().equals(\"lightgray\")) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"gray\")) {\n return Color.GRAY;\n } else if (colorString.toLowerCase().equals(\"darkgray\")) {\n return Color.DARK_GRAY;\n } else if (colorString.toLowerCase().equals(\"black\")) {\n return Color.BLACK;\n } else if (colorString.toLowerCase().equals(\"red\")) {\n return Color.RED;\n } else if (colorString.toLowerCase().equals(\"pink\")) {\n return Color.PINK;\n } else if (colorString.toLowerCase().equals(\"orange\")) {\n return Color.ORANGE;\n } else if (colorString.toLowerCase().equals(\"yellow\")) {\n return Color.YELLOW;\n } else if (colorString.toLowerCase().equals(\"green\")) {\n return Color.GREEN;\n } else if (colorString.toLowerCase().equals(\"magenta\")) {\n return Color.MAGENTA;\n } else if (colorString.toLowerCase().equals(\"cyan\")) {\n return Color.CYAN;\n } else if (colorString.toLowerCase().equals(\"blue\")) {\n return Color.BLUE;\n } else if (colorString.toLowerCase().equals(\"light_gray\")) {\n return Color.LIGHT_GRAY;\n } else if (colorString.toLowerCase().equals(\"dark_gray\")) {\n return Color.DARK_GRAY;\n } else if (colorString.startsWith(\"#\") && colorString.length() == 7) {\n // for #RRGGBB format\n try {\n return new Color(Integer.parseInt(colorString.substring(1, 3), 16), Integer.parseInt(colorString\n .substring(3, 5), 16), Integer.parseInt(colorString.substring(5), 16));\n } catch (NumberFormatException e) {\n return Color.LIGHT_GRAY;\n }\n } else {\n return Color.LIGHT_GRAY;\n }\n }",
"@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }",
"@Nullable\n public ColorProp getColor() {\n if (mImpl.hasColor()) {\n return ColorProp.fromProto(mImpl.getColor());\n } else {\n return null;\n }\n }",
"@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }",
"public static interface CardColors{\n public static final Color RGBA_0 = new Color(0xCCC0B3FF);\n public static final Color RGBA_2 = new Color(0xEEE4DAFF);\n public static final Color RGBA_4 = new Color(0xEDE0C8FF);\n public static final Color RGBA_8 = new Color(0xF2B179FF);\n public static final Color RGBA_16 = new Color(0xF49563FF);\n public static final Color RGBA_32 = new Color(0xF5794DFF);\n public static final Color RGBA_64 = new Color(0xF55D37FF);\n public static final Color RGBA_128 = new Color(0xEEE863FF);\n public static final Color RGBA_256 = new Color(0xEDB04DFF);\n public static final Color RGBA_512 = new Color(0xECB04DFF);\n public static final Color RGBA_1024 = new Color(0xEB9437FF);\n public static final Color RGBA_2048 = new Color(0xEA7821FF);\n }",
"public RGBColor getColor(){\r\n return this._color;\r\n }",
"@Override\r\n\tpublic Color getColor(String color) {\n\t\tif(color==null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t//是否是red类型\r\n\t\tif(color.equalsIgnoreCase(\"RED\")) {\r\n\t\t\treturn new Red();\r\n\t\t}else if(color.equalsIgnoreCase(\"GREEN\")) {\r\n\t\t\treturn new Green();\r\n\t\t}else if(color.equalsIgnoreCase(\"BLUE\")) {\r\n\t\t\treturn new Blue();\r\n\t\t}\r\n\t\t//都没返回类型时,返回null\r\n\t\treturn null;\r\n\t}",
"public static\n Color convertStringToColor(String val)\n {\n Color ret_Color;\n\n try\n {\n String workstr1;\n int slen = val.length();\n if (val.startsWith(\"0x\") || val.startsWith(\"0X\"))\n {\n workstr1 = val.substring(2);\n slen -= 2;\n }\n else\n if (val.startsWith(\"#\"))\n {\n workstr1 = val.substring(1);\n slen -= 1;\n }\n else\n { // decimal integer\n return new Color(Integer.parseInt(val));\n }\n\n // process hex string\n if (slen <= 6)\n { // no alpha\n int ival = Integer.parseInt(workstr1, 16);\n ret_Color = new Color(ival);\n }\n else\n { // has alpha of some sort\n String workstr2;\n if (slen == 8)\n {\n workstr2 = workstr1;\n }\n else\n if (slen == 7)\n {\n workstr2 = \"0\" + workstr1;\n }\n else\n {\n workstr2 = workstr1.substring(slen - 8); // get rightmost 8\n }\n\n // System.out.println(\"Color,val=[\" + val + \"],key=[\" + key + \"],slen=\" + slen + \"]\");\n // System.out.println(\" workstr1=[\" + workstr1 + \"],workstr2=[\" + workstr2 + \"]\");\n int a = Integer.parseInt(workstr2.substring(0, 2), 16); // a\n int r = Integer.parseInt(workstr2.substring(2, 4), 16); // r\n int g = Integer.parseInt(workstr2.substring(4, 6), 16); // g\n int b = Integer.parseInt(workstr2.substring(6, 8), 16); // b\n // System.out.println(\" ret_Color1=[\" + r + \":\" + g + \":\" + b +\":\" + a + \"]\");\n // int ival = Integer.parseInt(workstr2, 16);\n // ret_Color = new Color(ival, true);\n // System.out.println(\" ival=\" + ival);\n try {\n ret_Color = new Color(r, g, b, a);\n }\n catch (NoSuchMethodError excp1) {\n System.out.println(\"YutilProperties:convertStringToColor|excp1=[\" + excp1 + \"]\");\n ret_Color = new Color(r, g, b);\n }\n // System.out.println(\" ret_Color1=[\" + ret_Color + \"]\");\n }\n }\n catch(NumberFormatException e)\n {\n ret_Color = Color.black;\n // System.out.println(\"Color,ret_Color3=[\" + ret_Color + \"]\");\n }\n\n return ret_Color;\n }",
"public Color getColor() { return color; }",
"public RGBColor () \r\n\t{\r\n\t\tr = 0; g = 0; b = 0;\r\n\t\tindex = (byte) Palm.WinRGBToIndex(this);\t\r\n\t}",
"public Color readColor() throws IOException {\n return new Color(readInt(), readInt(), readInt());\n }",
"public static Color getBasicColor() {\n String colorEntities = PropertyLoader.getInstance().getProperties()\n .getProperty(PropertyLoader.COLOR_ENTITIES);\n Color color;\n\n if (colorEntities == null)\n color = basicColor;\n else\n color = new Color(Integer.parseInt(colorEntities));\n\n return color;\n }",
"public Color getColor() { return color.get(); }",
"public Color getColor() {\n return Color.YELLOW;\n }",
"public final Color getColor() {\n return color;\n }",
"public abstract RGBFColor toRGBFColor();",
"public Color(final int red, final int green, final int blue) {\n\t\tif (red < 0 || red > 255) {\n\t\t\tthrow new IllegalArgumentException(\"The red part of a color can only be between 0 and 255.\");\n\t\t} else if (green < 0 || green > 255) {\n\t\t\tthrow new IllegalArgumentException(\"The green part of a color can only be between 0 and 255.\");\n\t\t} else if (blue < 0 || blue > 255) {\n\t\t\tthrow new IllegalArgumentException(\"The blue part of a color can only be between 0 and 255.\");\n\t\t}\n\t\tthis.r = red;\n\t\tthis.g = green;\n\t\tthis.b = blue;\n\t}",
"private Color getColor(final RGB rgb) {\n Color color = this.colorTable.get(rgb);\n if (color == null) {\n color = new Color(Display.getCurrent(), rgb);\n this.colorTable.put(rgb, color);\n }\n return color;\n }",
"private Color getColor( float xval, float yval ) {\n float[] rgba = (float[]) baseRgba_.clone();\n if ( xFirst_ ) {\n xShader_.adjustRgba( rgba, xval );\n yShader_.adjustRgba( rgba, yval );\n }\n else {\n yShader_.adjustRgba( rgba, yval );\n xShader_.adjustRgba( rgba, xval );\n }\n return new Color( rgba[ 0 ], rgba[ 1 ], rgba[ 2 ], rgba[ 3 ] );\n }",
"public final Color getColor() {\r\n return color;\r\n }",
"@Override\n\tpublic String getColor() {\n\t\treturn \"blue\";\n\t}",
"public Color() {\n\t\tr = 0;\n\t\tg = 0;\n\t\tb = 0;\n\t}",
"public Color getColor(String key) {\r\n String cs = getString(key);\r\n cs.trim();\r\n int i1 = cs.indexOf(','), i2 = cs.lastIndexOf(',');\r\n if (i1 != i2) {\r\n try {\r\n int r = Integer.decode(cs.substring(0, i1).trim()).intValue();\r\n int g = Integer.decode(cs.substring(i1 + 1, i2).trim()).intValue();\r\n int b = Integer.decode(cs.substring(i2 + 1).trim()).intValue();\r\n\r\n return new Color(r, g, b);\r\n }\r\n catch (Exception e) {}\r\n }\r\n\r\n return null;\r\n }",
"public Color getColor() \n\t{\n\t\treturn color;\n\t}",
"public Color getColor() {\n\t\treturn Color.RED;\n\t}",
"public Color(int r, int g, int b)\n {\n this( ((float)r)/255f,((float)g) /255f,((float)b)/255f );\n }",
"public Color getColor(int i) {\n switch (i) {\n case 0:\n return Color.GRAY;\n case 1:\n return Color.RED.darker();\n case 2:\n return Color.YELLOW.darker();\n case 3:\n return Color.CYAN.darker().darker();\n case 4:\n return Color.PINK.darker();\n case 5:\n return Color.GREEN.darker();\n default:\n return Color.BLACK;\n }\n }",
"public static Color getColor() {\n return myColor;\n }",
"public final Color getColor() {\n\t\treturn color;\n\t}",
"public Color getColor(RGB rgb) {\n\t\treturn colorTable.computeIfAbsent(rgb, raw -> new Color(raw));\n\t}",
"public int getColor() {\r\n return Color;\r\n }",
"public java.awt.Color colorFromString(String s) {\n if (s.contains(\"RGB\")) {\n String[] parts = s.split(\"\\\\(|\\\\)\");\n String[] parameter = parts[2].split(\",\");\n int r = Integer.parseInt(parameter[0]);\n int g = Integer.parseInt(parameter[1]);\n int b = Integer.parseInt(parameter[2]);\n return new Color(r, g, b);\n }\n if (s.contains(\"color\")) {\n String[] parts = s.split(\"\\\\(|\\\\)\");\n String color = parts[1];\n return colorMap.get(color);\n }\n return null;\n\n }",
"public static Color getColor(int c)\n {\n int r = (7*c)%64;\n return new Color((r%4)*63+30,((r/4)%4)*63+30,(r/4/4)*63+30);\n }",
"@Override\r\n\tpublic Color backgroundColor() {\n\t\tProperty<IntegerPropertyType> colorDiff = this.getProperty(PROPERTY_NAME_COLOR_DIFFERENCE);\r\n\t\tColor c = labs[colorDiff.getValue().intValue() % labs.length].getColor();\r\n\t\t\r\n\t\treturn c;\r\n\t}",
"public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"public String getColor() {\r\n\t\treturn color;\r\n\t}",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public Color newColor(){\n\t\tRandom random = new Random();\n\n\t\tint red;\n\t\tint green;\n\t\tint blue;\n\n\t\tint counter = 0;\n\n\t\tdo {\n\t\t\tred = random.nextInt(255);\n\t\t\tgreen = random.nextInt(255);\n\t\t\tblue = random.nextInt(255);\n\t\t\tcounter++;\n\t\t\t\n\t\t}while(red + green + blue < 400 && counter < 20);\n\n\t\treturn Color.rgb(red, green, blue,1);\n\t}",
"@Override\n public Color getColor() {\n return color;\n }",
"public Vector4f getColor() {\n\t\treturn color;\n\t}",
"public Color getColor()\n {\n return color;\n }",
"public Color getColor() {\n return color;\r\n }",
"RGB getOldColor();"
] | [
"0.75474596",
"0.65812004",
"0.646732",
"0.64516485",
"0.64368045",
"0.64063996",
"0.63948447",
"0.6333855",
"0.6333855",
"0.6333855",
"0.6333855",
"0.6333855",
"0.63273126",
"0.62911415",
"0.62534726",
"0.62534726",
"0.62534726",
"0.62418604",
"0.6221301",
"0.62057155",
"0.6199702",
"0.6183479",
"0.614735",
"0.61445874",
"0.6138419",
"0.61362195",
"0.6133541",
"0.6129916",
"0.6104052",
"0.6097653",
"0.60271084",
"0.60163295",
"0.5990815",
"0.5954036",
"0.59366316",
"0.59297305",
"0.59022576",
"0.5889809",
"0.58783835",
"0.58729875",
"0.5867394",
"0.5867394",
"0.5863498",
"0.58416075",
"0.5834816",
"0.5825178",
"0.5806323",
"0.57972753",
"0.5789072",
"0.5784275",
"0.57718396",
"0.57706374",
"0.5760382",
"0.5754074",
"0.5753695",
"0.57491726",
"0.5743831",
"0.5743831",
"0.5742845",
"0.5715265",
"0.5712431",
"0.5711391",
"0.5697521",
"0.5694351",
"0.56937724",
"0.5693755",
"0.5687817",
"0.56867975",
"0.566672",
"0.56568056",
"0.56515497",
"0.56400466",
"0.56391335",
"0.5638048",
"0.5615962",
"0.56132567",
"0.56080514",
"0.5605626",
"0.56054205",
"0.56034565",
"0.56015706",
"0.5598554",
"0.55963653",
"0.55954146",
"0.5592779",
"0.55863017",
"0.55850846",
"0.5583029",
"0.55819696",
"0.5581802",
"0.55782664",
"0.55777156",
"0.5575055",
"0.5575055",
"0.5571095",
"0.55663735",
"0.55623853",
"0.55595493",
"0.5551916",
"0.5548807"
] | 0.5946053 | 34 |
Converts color into string | public static String get(Color color) {
return cc.colorToString(color);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public\n static\n String convertColorToString(Color val)\n {\n String ret_String;\n\n int a;\n try {\n a = val.getAlpha();\n }\n catch (NoSuchMethodError excp) {\n System.out.println(\"YutilProperties:convertColorToString:excp=[\" + excp + \"]\");\n a = 0xFF;\n }\n int r = val.getRed(), g = val.getGreen(), b = val.getBlue();\n String as, rs, gs, bs;\n\n rs = Integer.toHexString(r); if (rs.length() == 1) rs = \"0\" + rs;\n gs = Integer.toHexString(g); if (gs.length() == 1) gs = \"0\" + gs;\n bs = Integer.toHexString(b); if (bs.length() == 1) bs = \"0\" + bs;\n\n if (a == 0xFF)\n {\n ret_String = \"#\" + rs + gs + bs;\n }\n else\n {\n as = Integer.toHexString(a); if (as.length() == 1) as = \"0\" + as;\n ret_String = \"#\" + as + rs + gs + bs;\n } \n\n return ret_String;\n }",
"public String getColorString();",
"String getColor();",
"public static String getHexString(java.awt.Color color)\n {\n String r;\n String g;\n String b;\n r = Integer.toHexString(color.getRed());\n\n if (r.length() < 2)\n {\n r = \"0\" + r;\n }\n\n g = Integer.toHexString(color.getGreen());\n\n if (g.length() < 2)\n {\n g = \"0\" + g;\n }\n\n b = Integer.toHexString(color.getBlue());\n\n if (b.length() < 2)\n {\n b = \"0\" + b;\n }\n\n return r + g + b;\n }",
"public String getColorToAsString() {\n\t\treturn getValue(Property.COLOR_TO, SankeyDataset.DEFAULT_COLOR_TO);\n\t}",
"private static String formatHexString(Color c) {\n return c != null?String.format(null, \"#%02x%02x%02x\", new Object[]{Long.valueOf(Math.round(c.getRed() * 255.0D)), Long.valueOf(Math.round(c.getGreen() * 255.0D)), Long.valueOf(Math.round(c.getBlue() * 255.0D))}).toUpperCase():null;\n }",
"@Override\n public String toString() {\n return color.name();\n }",
"public static String colorIntToString(int color) {\r\n\t\tswitch (color) {\r\n\t\tcase -8355712:\r\n\t\t\treturn \"GRAY\";\r\n\t\tcase -256:\r\n\t\t\treturn \"YELLOW\";\r\n\t\tcase -16776961:\r\n\t\t\treturn \"BLUE\";\r\n\t\tcase -65536:\r\n\t\t\treturn \"RED\";\r\n\t\tcase -14336:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 16711935:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase -65281:\r\n\t\t\treturn \"MAGENTA\";\r\n\t\tcase 0:\r\n\t\t\treturn \"BLACK\";\r\n\t\tcase -16777216:\r\n\t\t\treturn \"BLACK\";\t\t\t\r\n\t\tcase 16767215:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase -1:\r\n\t\t\treturn \"WHITE\";\r\n\t\tcase 16762880:\r\n\t\t\treturn \"ORANGE\";\r\n\t\tcase 65535:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -16711681:\r\n\t\t\treturn \"CYAN\";\r\n\t\tcase -20561:\r\n\t\t\treturn \"PINK\";\r\n\t\tcase 16756655:\r\n\t\t\treturn \"PINK\";\r\n\t\tdefault:\r\n\t\t\treturn new String(\"Non definito nel parser: \"+Integer.toString(color));\r\n\t\t}\r\n\t}",
"public static String toString(int color) {\n return new StringBuilder()\n .append(\"Color[\")\n .append(getRed(color))\n .append(\",\")\n .append(getGreen(color))\n .append(\",\")\n .append(getBlue(color))\n .append(\"]\")\n .toString();\n }",
"public static String getWebColor(Color color) {\r\n return String.format( \"#%02X%02X%02X\",\r\n (int)( color.getRed() * 255 ),\r\n (int)( color.getGreen() * 255 ),\r\n (int)( color.getBlue() * 255 ) );\r\n }",
"private static String ColorHexString(final Color c) {\n\t\treturn (\"#\" // +Integer.toHexString(c.getRGB());\n\t\t + Integer.toHexString(256 + c.getRed()).substring(1)\n\t\t + Integer.toHexString(256 + c.getGreen()).substring(1)\n\t\t + Integer.toHexString(256 + c.getBlue()).substring(1));\n\t}",
"public String toString()\n {\n return color.charAt(0) + \"Q\";\n }",
"public String getColor() {\r\n\t\treturn \"Color = [\"+ ColorUtil.red(color) + \", \"+ ColorUtil.green(color) + \", \"+ ColorUtil.blue(color) + \"]\";\r\n\t}",
"public String getColor() {\n\t\treturn \"Elcolor del vehiculo es: \"+color; \n\t }",
"public String toString(){\n\t\treturn (red + \" \" + green + \" \" + blue + \"\\n\");\n\t}",
"private String singleChar(RubiksColor color) {\n switch(color) {\n case RED:\n return \"R\";\n case GREEN:\n return \"G\";\n case BLUE:\n return \"B\";\n case YELLOW:\n return \"Y\";\n case ORANGE:\n return \"O\";\n case WHITE:\n return \"W\";\n }\n\n return \"R\";\n }",
"public String colorToLocate() {\n char targetColor;\n gameData = DriverStation.getInstance().getGameSpecificMessage();\n if(gameData.length() > 0) {\n switch (gameData.charAt(0)) {\n case 'B' :\n targetColor = 'R';\n break;\n case 'G' :\n targetColor = 'Y';\n break;\n case 'R' :\n targetColor = 'B';\n break;\n case 'Y' :\n targetColor = 'G';\n break;\n default :\n targetColor = '?';\n break;\n }\n } else {\n targetColor = '?';\n }\n return \"\"+targetColor;\n }",
"public String toString() {\n return \"#ffff00\";\n }",
"public String getHtmlColor() {\n\t\tString sRed = Integer.toHexString(color.getRed());\n\t\tString sGreen = Integer.toHexString(color.getGreen());\n\t\tString sBlue = Integer.toHexString(color.getBlue());\n\t\t\n\t\treturn \"#\" + (sRed.length() == 1 ? \"0\" + sRed : sRed) +\n\t\t\t\t(sGreen.length() == 1 ? \"0\" + sGreen : sGreen) +\n\t\t\t\t(sBlue.length() == 1 ? \"0\" + sBlue : sBlue);\n\t}",
"public String toString() {\r\n\t\tString str = color.substring(0,1).toUpperCase()\r\n\t\t\t\t + color.substring(1) + \" \" \r\n\t\t\t\t + name.substring(0,1).toUpperCase()\r\n\t\t\t\t + name.substring(1);\r\n\t\treturn str;\r\n\t}",
"public String toCodedString() {\n\t\t//System.out.println(toString());\n\t\treturn String.format(\"%s%s\", getColor().toInt(), getShape().toString());\n\t}",
"public String getColorString() {\n return left.toString() + \", \" + right.toString();\n }",
"public String obtenColor() {\r\n return color;\r\n }",
"private static String colorDisplayName(Color c) {\n if(c != null) {\n return formatHexString(c);\n } else {\n return null;\n }\n }",
"public String toString()\r\n\t{\r\n\t\tString output = \"Color = \" + this.color + \", \";\r\n\t\toutput += super.toString();\r\n\t\treturn output;\r\n\t}",
"public String getColor(){\r\n return color;\r\n }",
"public String getColorAsString() {\n\t\treturn getValue(CommonProperty.COLOR, AbstractLabels.DEFAULT_COLOR);\n\t}",
"abstract String getColor();",
"public String getColorFromAsString() {\n\t\treturn getValue(Property.COLOR_FROM, SankeyDataset.DEFAULT_COLOR_FROM);\n\t}",
"private static String getColorString(int index) {\n switch (index) {\n case 0: return \"None\";\n case 1: case 6: return \"Orange\";\n case 2: case 7: return \"Green\";\n case 3: return \"Blue\";\n case 4: case 14: return \"Yellow\";\n case 8: return \"Black\";\n default: return \"not a color\";\n }\n }",
"@Override\n public String getColor() {\n return this.color.name();\n }",
"public String getColor() { \n return color; \n }",
"String getTextStrokeColorAsString();",
"private String translateColor(CardColor c) {\n if (c == CardColor.BLUE) return Color.BLUE.getAnsiCode();\n if (c == CardColor.VIOLET) return Color.RED.getAnsiCode();\n if (c == CardColor.GREEN) return Color.GREEN.getAnsiCode();\n else return Color.YELLOW.getAnsiCode();\n }",
"String getColour();",
"public String getColor(){\n\t\treturn color;\n\t}",
"public String getColor() {\r\n return color;\r\n }",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"Color getColor();",
"public String getColor()\n {\n return color;\n }",
"public String getColor()\n {\n return color;\n }",
"public String printColors(){\n String RGB = \"\";\n detectedColor = m_colorSensor.getColor();\n RGB = \"Red: \" + detectedColor.red + \", Green: \" + detectedColor.green + \", Blue: \" + detectedColor.blue;\n return RGB;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"public String getColor() {\n return color;\n }",
"@NoProxy\n @NoWrap\n @NoDump\n public String getColor() {\n return color;\n }",
"public String Color2Hex(int r, int g, int b)\n\t{\n Color c = new Color(r,g,b);\n String s=Integer.toHexString( c.getRGB() & 0x00ffffff ).toUpperCase() ;\n while(s.length()<6)\n \t s=\"0\"+s;\n return s;\n }",
"public char getColor();",
"public String getColor() {\r\n\t\treturn color;\r\n\t}",
"java.awt.Color getColor();",
"public String toString() {\n\t\t\n\t\treturn this.getColor() + \"B\";\n\t}",
"public String getColor(){\n return this._color;\n }",
"public String showColor(){\r\n\t\tSystem.out.println(\"The color of this fruit is \" + color);\r\n\t\treturn color;}",
"protected static String getColouredString(final String colour, final String line) {\n String res = null;\n if (colour.length() < 3) {\n int num;\n \n try {\n num = Integer.parseInt(colour);\n } catch (NumberFormatException ex) {\n num = -1;\n }\n \n if (num >= 0 && num <= 15) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, num, line);\n }\n } else if (colour.length() == 6) {\n try {\n Color.decode('#' + colour);\n res = String.format(\"%c%s%s%1$c\", Styliser.CODE_HEXCOLOUR, colour, line);\n } catch (NumberFormatException ex) { /* Do Nothing */ }\n }\n \n if (res == null) {\n res = String.format(\"%c%02d%s%1$c\", Styliser.CODE_COLOUR, 14, line);\n }\n return res;\n }",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor() {\n\t\treturn color;\n\t}",
"public String getColor(){\n return this.color;\n }",
"public String getTickColorAsString();",
"private String getHexColor(int intColor) {\n String hexColor = String.format(\"#%06X\", (0xFFFFFF & intColor));\n return hexColor;\n }",
"public static void printColor(String color){\n System.out.println(color);\n }",
"@Override\n\tpublic String getColorName() {\n\t\treturn colorName;\n\t}",
"String getBackdropColorAsString();",
"public final String getColorName(final Color c) {\n if (Color.BLUE.equals(c)) {\n return \"Blue\";\n } else if (Color.YELLOW.equals(c)) {\n return \"Jaune\";\n } else if (Color.RED.equals(c)) {\n return \"Red\";\n } else if (Color.PINK.equals(c)) {\n return \"Rose\";\n } else if (Color.GREEN.equals(c)) {\n return \"Vert\";\n }\n return null;\n }",
"@Override\n public String getColor() {\n return this.color;\n }",
"private String rgbToHex(final String value) {\n if (\"rgba(0, 0, 0, 0)\".equals(value)) {\n return \"transparent\";\n }\n final Pattern rgb = Pattern.compile(\"rgb\\\\((\\\\d{1,3}),\\\\s(\\\\d{1,3}),\\\\s(\\\\d{1,3})\\\\)\");\n final Matcher matcher = rgb.matcher(value);\n if (matcher.find()) {\n String hex = \"#\";\n for (int i = 1; i <= 3; i++) {\n int colour = Integer.parseInt(matcher.group(i));\n String s = Integer.toHexString(colour);\n if (s.length() == 1) {\n s = \"0\" + s;\n }\n hex += s;\n }\n hex = hex.toLowerCase();\n return hex;\n }\n return value;\n }",
"private String colourToRgb(Color c)\n {\n return \"rgb(\" + (int)(c.getRed()*255) + \",\" + (int)(c.getGreen()*255) + \",\" + (int)(c.getBlue()*255) + \")\";\n }",
"public String getColor()\n {\n return this.color;\n }",
"@Override\n public String toString() {\n if(a != -1) {\n return String.format(\"#%08X\", toARGB());\n } else {\n return String.format(\"#%06X\", toARGB() & 0xFFFFFF);\n }\n }",
"public IsColor getColorTo() {\n\t\treturn ColorBuilder.parse(getColorToAsString());\n\t}",
"public String getColor() {\n return this.color;\n }",
"abstract public String getColor();",
"abstract public String getColor();",
"@Override\n\tpublic String toString(){\n\t\tif(this.getColor()==1){\n\t\t\treturn \"wK\";\n\t\t}else{\n\t\t\treturn \"bK\";\n\t\t}\n\t}",
"Integer getTxtColor();",
"public String dame_color() {\n\t\treturn color;\n\t}",
"public Color getStringColor() {\n return this.getConfiguredColor(PreferencesConstants.COLOR_STRING);\n }",
"public String c() {\r\n switch (c) {\r\n case RED:\r\n return \"Red\";\r\n case BLUE:\r\n return \"Blue\";\r\n case YELLOW:\r\n return \"Yellow\";\r\n case GREEN:\r\n return \"Green\";\r\n default:\r\n return \"Colorless\";\r\n }\r\n }",
"String slotsFromColor(String color);",
"private String getColor(String tagName) {\n if (labelColor.containsKey(tagName)) {\n return labelColor.get(tagName);\n } else {\n Random random = new Random();\n // create a big random number - maximum is ffffff (hex) = 16777215 (dez)\n int nextInt = random.nextInt(256 * 256 * 256);\n // format it as hexadecimal string (with hashtag and leading zeros)\n String colorCode = String.format(\"#%06x\", nextInt);\n labelColor.put(tagName, colorCode);\n return labelColor.get(tagName);\n }\n }",
"public String getGuitarColorString(){\n\t\treturn guitarColorString;\n\t}",
"public static String toColor(String s) {\n\t\treturn ChatColor.translateAlternateColorCodes('&', s);\n\t}",
"public String toString()\r\n {\r\n if(_switchedOn)\r\n return _color + \" On\";\r\n else\r\n return _color + \" Off\";\r\n }",
"@Override\n\tpublic String toString() {\n\t\tString str_a, str_b, str_c, str_d;\n\t\tstr_a = (a==null)?\"\":a.toString();\n\t\tstr_b = (b==null)?\"\":b.toString();\n\t\tstr_c = (c==null)?\"\":c.toString();\n\t\tstr_d = (d==null)?\"\":d.toString();\n\t\t\n\t\treturn String.format(\"%d(%s)(%s)(%s)(%s)\", this.color, str_a, str_b, str_c, str_d);\n\t}",
"public String getColor() {\n return colorID;\n }",
"public String getRawColor() {\n return (String)getAttributeInternal(RAWCOLOR);\n }",
"public static String friendlyName(Color color) {\n \t\tif (colorsToNames.containsKey(color))\n \t\t\treturn colorsToNames.get(color);\n \n \t\treturn color.getColorCode();\n \t}",
"public String toString (){\r\n \r\n String mensaje=\"El rey color \"+color_rey+\" esta en la fila \"+posicion_rey.fila+\" y columna \"+posicion_rey.columna+\".\";\r\n \r\n return mensaje;\r\n \r\n }",
"public static\n Color convertStringToColor(String val)\n {\n Color ret_Color;\n\n try\n {\n String workstr1;\n int slen = val.length();\n if (val.startsWith(\"0x\") || val.startsWith(\"0X\"))\n {\n workstr1 = val.substring(2);\n slen -= 2;\n }\n else\n if (val.startsWith(\"#\"))\n {\n workstr1 = val.substring(1);\n slen -= 1;\n }\n else\n { // decimal integer\n return new Color(Integer.parseInt(val));\n }\n\n // process hex string\n if (slen <= 6)\n { // no alpha\n int ival = Integer.parseInt(workstr1, 16);\n ret_Color = new Color(ival);\n }\n else\n { // has alpha of some sort\n String workstr2;\n if (slen == 8)\n {\n workstr2 = workstr1;\n }\n else\n if (slen == 7)\n {\n workstr2 = \"0\" + workstr1;\n }\n else\n {\n workstr2 = workstr1.substring(slen - 8); // get rightmost 8\n }\n\n // System.out.println(\"Color,val=[\" + val + \"],key=[\" + key + \"],slen=\" + slen + \"]\");\n // System.out.println(\" workstr1=[\" + workstr1 + \"],workstr2=[\" + workstr2 + \"]\");\n int a = Integer.parseInt(workstr2.substring(0, 2), 16); // a\n int r = Integer.parseInt(workstr2.substring(2, 4), 16); // r\n int g = Integer.parseInt(workstr2.substring(4, 6), 16); // g\n int b = Integer.parseInt(workstr2.substring(6, 8), 16); // b\n // System.out.println(\" ret_Color1=[\" + r + \":\" + g + \":\" + b +\":\" + a + \"]\");\n // int ival = Integer.parseInt(workstr2, 16);\n // ret_Color = new Color(ival, true);\n // System.out.println(\" ival=\" + ival);\n try {\n ret_Color = new Color(r, g, b, a);\n }\n catch (NoSuchMethodError excp1) {\n System.out.println(\"YutilProperties:convertStringToColor|excp1=[\" + excp1 + \"]\");\n ret_Color = new Color(r, g, b);\n }\n // System.out.println(\" ret_Color1=[\" + ret_Color + \"]\");\n }\n }\n catch(NumberFormatException e)\n {\n ret_Color = Color.black;\n // System.out.println(\"Color,ret_Color3=[\" + ret_Color + \"]\");\n }\n\n return ret_Color;\n }",
"private String comprobarColor(String color) {\r\n String colores[] = { \"blanco\", \"negro\", \"rojo\", \"azul\", \"gris\" };\r\n boolean encontrado = false;\r\n for (int i = 0; i < colores.length && !encontrado; i++) {\r\n if (colores[i].equals(color)) {\r\n encontrado = true;\r\n }\r\n }\r\n if (encontrado) {\r\n this.color = color;\r\n } else {\r\n this.color = COLOR_POR_DEFECTO;\r\n }\r\n return this.color;\r\n }",
"public String toString()\n {\n StringBuilder builder = new StringBuilder();\n builder.append( \"origin=\" );\n builder.append( origin.toString() );\n builder.append( \",color=\" );\n builder.append( \n color == null ? \n \"null\" : \n String.format(\"#%02x%02x%02x\", color.getRed(), color.getGreen(), color.getBlue() ) \n );\n \n return builder.toString();\n }",
"public String getColor() {\n return (String)getAttributeInternal(COLOR);\n }",
"public String listOfColors() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Color> it = colors.iterator(); it.hasNext();){\r\n\t\t\t Color c = (Color) it.next();\r\n \t sb.append(c.toString() + NL);\r\n }\r\n return sb.toString();\r\n }"
] | [
"0.78138494",
"0.7346295",
"0.72585154",
"0.72558063",
"0.7248682",
"0.7229038",
"0.7139886",
"0.713417",
"0.7056529",
"0.7027422",
"0.69279593",
"0.68791497",
"0.6796463",
"0.6763255",
"0.6607346",
"0.6602719",
"0.65980196",
"0.65935594",
"0.6590814",
"0.65392435",
"0.65316933",
"0.65092444",
"0.64716905",
"0.64705455",
"0.6460275",
"0.6455383",
"0.6444426",
"0.6439825",
"0.64291954",
"0.6426276",
"0.6409389",
"0.63963425",
"0.63925946",
"0.638524",
"0.63697374",
"0.6357692",
"0.63515097",
"0.6344916",
"0.6344916",
"0.6344916",
"0.6344916",
"0.6344916",
"0.63442343",
"0.63442343",
"0.63393855",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6316863",
"0.6305763",
"0.6303751",
"0.62640995",
"0.62513494",
"0.6225137",
"0.62028164",
"0.61985767",
"0.61936337",
"0.6188582",
"0.6182891",
"0.6182891",
"0.61805874",
"0.61711866",
"0.6165144",
"0.6152245",
"0.61322975",
"0.6127716",
"0.6106627",
"0.6099449",
"0.60971135",
"0.60951144",
"0.6089975",
"0.60865164",
"0.6061029",
"0.6055601",
"0.6036102",
"0.6036102",
"0.60355633",
"0.60331154",
"0.60287696",
"0.60236496",
"0.6020671",
"0.6010625",
"0.6005803",
"0.5997538",
"0.59927166",
"0.5990782",
"0.5986646",
"0.5981134",
"0.5962725",
"0.59328604",
"0.5930802",
"0.5925502",
"0.5912672",
"0.59110475",
"0.5898631",
"0.5897362"
] | 0.726611 | 2 |
TODO: remove b4 publish | public ForwardRequest setInitiator() {
this.isInitiator = true;
return this;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void publishMe();",
"void publish();",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\r\n public void publishStart(Publisher publisher) {\n }",
"@Override\n public void handleSnapshot(FarmUtilDomain.PublishUtilState snapshot) {\n \n }",
"public String getPublish() {\n return publish;\n }",
"public String getPublish() {\n return publish;\n }",
"@Override\n public void pub() {\n // can only be public\n }",
"@Override\n public String getDescription() {\n return \"Publish exchange offer\";\n }",
"Consumable() {\n\t}",
"public void publishOnFacebook()\n {\n\n }",
"Boolean publishRunbook();",
"void publish(Context context);",
"@Override\n\t\t\tpublic IAMQPPublishAction message(byte[] message) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic IAMQPPublishAction message(byte[] message) {\n\t\t\t\treturn null;\n\t\t\t}",
"void publish(T t);",
"private void publish() {\n Log.i(TAG, \"Publishing\");\n PublishOptions options = new PublishOptions.Builder()\n .setStrategy(PUB_SUB_STRATEGY)\n .setCallback(new PublishCallback() {\n @Override\n public void onExpired() {\n super.onExpired();\n Log.i(TAG, \"No longer publishing\");\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mPublishSwitch.setChecked(false);\n }\n });\n }\n }).build();\n\n Nearby.Messages.publish(mGoogleApiClient, mPubMessage, options)\n .setResultCallback(new ResultCallback<Status>() {\n @Override\n public void onResult(@NonNull Status status) {\n if (status.isSuccess()) {\n Log.i(TAG, \"Published successfully.\");\n } else {\n logAndShowSnackbar(\"Could not publish, status = \" + status);\n mPublishSwitch.setChecked(false);\n }\n }\n });\n }",
"public void setPublish(String publish) {\n this.publish = publish;\n }",
"public void setPublish(String publish) {\n this.publish = publish;\n }",
"@Override\n public void publish(PacketContext context) {\n byte[] body = bytesOf(MQUtil.json(context));\n processAndPublishMessage(body);\n }",
"@Override\n public void feedingHerb() {\n\n }",
"@Override\r\n\tpublic boolean isPublished() {\r\n\t\treturn super.isPublished();\r\n\t}",
"InstancePublishInfo getInstancePublishInfo(Service service);",
"@Override\n\tpublic void publishTopic(Node node) {\n\t\t\n\t}",
"@Override\r\n public void publishTransition(Publisher publisher) {\n }",
"public interface Publisher {\n\t// Publishes new message to PubSubService\n\tvoid publish(Message message, PubSubService pubSubService);\n}",
"public PublishNoImgJoke() {\n\t\tsuper();\n\t}",
"@Override\n public void perish() {\n \n }",
"public abstract void publishSelf (SubscriberInterface subscriber);",
"@Override\n public void publish(PubSubObject pbObj, PubSubService pubSubService) {\n pubSubService.addObjectToQueue(pbObj);\n }",
"void publish(Message message, PubSubService pubSubService);",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\n void pack() {\n }",
"public void b(Activity activity, Bundle bundle, IUiListener iUiListener) {\n String str;\n String str2;\n String appId;\n String openId;\n Intent intent;\n int size;\n int i;\n Exception e;\n String str3 = \"\";\n f.c(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone() --start\");\n StringBuffer stringBuffer = new StringBuffer(\"mqqapi://qzone/publish?src_type=app&version=1&file_type=news\");\n ArrayList<String> stringArrayList = bundle.getStringArrayList(\"imageUrl\");\n String string = bundle.getString(\"summary\");\n int i2 = bundle.getInt(\"req_type\", 3);\n String string2 = bundle.getString(\"appName\");\n String string3 = bundle.getString(\"videoPath\");\n int i3 = bundle.getInt(\"videoDuration\");\n long j = bundle.getLong(\"videoSize\");\n try {\n Bundle bundle2 = bundle.getBundle(\"extMap\");\n if (bundle2 != null) {\n Set<String> keySet = bundle2.keySet();\n JSONObject jSONObject = new JSONObject();\n for (String str4 : keySet) {\n if (!TextUtils.isEmpty(bundle2.getString(str4))) {\n str = str3;\n try {\n jSONObject.put(str4, bundle2.getString(str4));\n } catch (Exception e2) {\n e = e2;\n f.b(\"openSDK_LOG.QzonePublish\", \"publishToQzone() --error parse extmap\", e);\n str2 = str;\n appId = this.b.getAppId();\n openId = this.b.getOpenId();\n f.a(\"openSDK_LOG.QzonePublish\", \"openId:\" + openId);\n StringBuffer stringBuffer2 = new StringBuffer();\n size = stringArrayList.size();\n i = 0;\n while (i < size) {\n }\n stringBuffer.append(\"&image_url=\" + Base64.encodeToString(j.i(stringBuffer2.toString()), 2));\n str = \"7\";\n if (4 == i2) {\n }\n if (!TextUtils.isEmpty(string)) {\n }\n if (!TextUtils.isEmpty(appId)) {\n }\n if (!TextUtils.isEmpty(string2)) {\n }\n if (!j.e(openId)) {\n }\n if (!TextUtils.isEmpty(str2)) {\n }\n stringBuffer.append(\"&req_type=\" + Base64.encodeToString(j.i(String.valueOf(i2)), 2));\n f.a(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone, url: \" + stringBuffer.toString());\n a.a(e.a(), this.b, \"requireApi\", \"shareToNativeQQ\");\n intent = new Intent(\"android.intent.action.VIEW\");\n intent.setData(Uri.parse(stringBuffer.toString()));\n intent.putExtra(\"pkg_name\", activity.getPackageName());\n if (!a(intent)) {\n }\n f.c(\"openSDK_LOG\", \"doPublishToQzone() --end\");\n }\n } else {\n str = str3;\n }\n str3 = str;\n }\n str = str3;\n if (jSONObject.length() > 0) {\n str2 = jSONObject.toString();\n appId = this.b.getAppId();\n openId = this.b.getOpenId();\n f.a(\"openSDK_LOG.QzonePublish\", \"openId:\" + openId);\n if (3 == i2 && stringArrayList != null) {\n StringBuffer stringBuffer2 = new StringBuffer();\n size = stringArrayList.size();\n i = 0;\n while (i < size) {\n stringBuffer2.append(URLEncoder.encode(stringArrayList.get(i)));\n if (i != size - 1) {\n stringBuffer2.append(\";\");\n }\n i++;\n stringArrayList = stringArrayList;\n }\n stringBuffer.append(\"&image_url=\" + Base64.encodeToString(j.i(stringBuffer2.toString()), 2));\n str = \"7\";\n }\n if (4 == i2) {\n stringBuffer.append(\"&videoPath=\" + Base64.encodeToString(j.i(string3), 2));\n stringBuffer.append(\"&videoDuration=\" + Base64.encodeToString(j.i(String.valueOf(i3)), 2));\n stringBuffer.append(\"&videoSize=\" + Base64.encodeToString(j.i(String.valueOf(j)), 2));\n str = \"8\";\n }\n if (!TextUtils.isEmpty(string)) {\n stringBuffer.append(\"&description=\" + Base64.encodeToString(j.i(string), 2));\n }\n if (!TextUtils.isEmpty(appId)) {\n stringBuffer.append(\"&share_id=\" + appId);\n }\n if (!TextUtils.isEmpty(string2)) {\n stringBuffer.append(\"&app_name=\" + Base64.encodeToString(j.i(string2), 2));\n }\n if (!j.e(openId)) {\n stringBuffer.append(\"&open_id=\" + Base64.encodeToString(j.i(openId), 2));\n }\n if (!TextUtils.isEmpty(str2)) {\n stringBuffer.append(\"&share_qzone_ext_str=\" + Base64.encodeToString(j.i(str2), 2));\n }\n stringBuffer.append(\"&req_type=\" + Base64.encodeToString(j.i(String.valueOf(i2)), 2));\n f.a(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone, url: \" + stringBuffer.toString());\n a.a(e.a(), this.b, \"requireApi\", \"shareToNativeQQ\");\n intent = new Intent(\"android.intent.action.VIEW\");\n intent.setData(Uri.parse(stringBuffer.toString()));\n intent.putExtra(\"pkg_name\", activity.getPackageName());\n if (!a(intent)) {\n a(activity, 10104, intent, false);\n d.a().a(0, \"SHARE_CHECK_SDK\", \"1000\", this.b.getAppId(), String.valueOf(4), Long.valueOf(SystemClock.elapsedRealtime()), 0, 1, \"hasActivityForIntent success\");\n d.a().a(this.b.getOpenId(), this.b.getAppId(), \"ANDROIDQQ.SHARETOQZ.XX\", \"11\", \"3\", \"1\", str, \"0\", \"1\", \"0\");\n } else {\n f.e(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone() target activity not found\");\n d.a().a(1, \"SHARE_CHECK_SDK\", \"1000\", this.b.getAppId(), String.valueOf(4), Long.valueOf(SystemClock.elapsedRealtime()), 0, 1, \"hasActivityForIntent fail\");\n d.a().a(this.b.getOpenId(), this.b.getAppId(), \"ANDROIDQQ.SHARETOQZ.XX\", \"11\", \"3\", \"1\", str, \"0\", \"1\", \"0\");\n }\n f.c(\"openSDK_LOG\", \"doPublishToQzone() --end\");\n }\n } else {\n str = str3;\n }\n } catch (Exception e3) {\n e = e3;\n str = str3;\n f.b(\"openSDK_LOG.QzonePublish\", \"publishToQzone() --error parse extmap\", e);\n str2 = str;\n appId = this.b.getAppId();\n openId = this.b.getOpenId();\n f.a(\"openSDK_LOG.QzonePublish\", \"openId:\" + openId);\n StringBuffer stringBuffer2 = new StringBuffer();\n size = stringArrayList.size();\n i = 0;\n while (i < size) {\n }\n stringBuffer.append(\"&image_url=\" + Base64.encodeToString(j.i(stringBuffer2.toString()), 2));\n str = \"7\";\n if (4 == i2) {\n }\n if (!TextUtils.isEmpty(string)) {\n }\n if (!TextUtils.isEmpty(appId)) {\n }\n if (!TextUtils.isEmpty(string2)) {\n }\n if (!j.e(openId)) {\n }\n if (!TextUtils.isEmpty(str2)) {\n }\n stringBuffer.append(\"&req_type=\" + Base64.encodeToString(j.i(String.valueOf(i2)), 2));\n f.a(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone, url: \" + stringBuffer.toString());\n a.a(e.a(), this.b, \"requireApi\", \"shareToNativeQQ\");\n intent = new Intent(\"android.intent.action.VIEW\");\n intent.setData(Uri.parse(stringBuffer.toString()));\n intent.putExtra(\"pkg_name\", activity.getPackageName());\n if (!a(intent)) {\n }\n f.c(\"openSDK_LOG\", \"doPublishToQzone() --end\");\n }\n str2 = str;\n appId = this.b.getAppId();\n openId = this.b.getOpenId();\n f.a(\"openSDK_LOG.QzonePublish\", \"openId:\" + openId);\n StringBuffer stringBuffer2 = new StringBuffer();\n size = stringArrayList.size();\n i = 0;\n while (i < size) {\n }\n stringBuffer.append(\"&image_url=\" + Base64.encodeToString(j.i(stringBuffer2.toString()), 2));\n str = \"7\";\n if (4 == i2) {\n }\n if (!TextUtils.isEmpty(string)) {\n }\n if (!TextUtils.isEmpty(appId)) {\n }\n if (!TextUtils.isEmpty(string2)) {\n }\n if (!j.e(openId)) {\n }\n if (!TextUtils.isEmpty(str2)) {\n }\n stringBuffer.append(\"&req_type=\" + Base64.encodeToString(j.i(String.valueOf(i2)), 2));\n f.a(\"openSDK_LOG.QzonePublish\", \"doPublishToQzone, url: \" + stringBuffer.toString());\n a.a(e.a(), this.b, \"requireApi\", \"shareToNativeQQ\");\n intent = new Intent(\"android.intent.action.VIEW\");\n intent.setData(Uri.parse(stringBuffer.toString()));\n intent.putExtra(\"pkg_name\", activity.getPackageName());\n if (!a(intent)) {\n }\n f.c(\"openSDK_LOG\", \"doPublishToQzone() --end\");\n }",
"private void publishHandler(MqttPublishMessage publish) {\n\n final int mqttPacketId = publish.messageId();\n LOG.info(\"PUBLISH [{}] from MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n\n // TODO: simple way, without considering wildcards\n\n // check if a publisher already exists for the requested topic\n if (!this.pubEndpoint.isPublisher(publish.topicName())) {\n\n // create two sender for publishing QoS 0/1 and QoS 2 messages\n ProtonSender senderQoS01 = this.connection.createSender(publish.topicName());\n ProtonSender senderQoS2 = this.connection.createSender(publish.topicName());\n\n this.pubEndpoint.addPublisher(publish.topicName(), new AmqpPublisher(senderQoS01, senderQoS2));\n }\n\n // sending AMQP_PUBLISH\n AmqpPublishMessage amqpPublishMessage =\n new AmqpPublishMessage(null,\n publish.qosLevel(),\n publish.isDup(),\n publish.isRetain(),\n publish.topicName(),\n publish.payload());\n\n pubEndpoint.publish(amqpPublishMessage, mqttPacketId, done -> {\n\n if (done.succeeded()) {\n\n ProtonDelivery delivery = done.result();\n if (delivery != null) {\n\n if (publish.qosLevel() == MqttQoS.AT_LEAST_ONCE) {\n this.mqttEndpoint.publishAcknowledge(mqttPacketId);\n LOG.info(\"PUBACK [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n } else {\n\n this.mqttEndpoint.publishReceived(mqttPacketId);\n LOG.info(\"PUBREC [{}] to MQTT client {}\", mqttPacketId, this.mqttEndpoint.clientIdentifier());\n }\n\n }\n }\n\n });\n }",
"@Override\n\tvoid post() {\n\t\t\n\t}",
"@Override\n public void publish(Object event) {\n System.out.println(\"Sending Event\");\n\n List<Hub> hubList = hubFacade.findAll();\n Iterator<Hub> it = hubList.iterator();\n while (it.hasNext()) {\n Hub hub = it.next();\n restEventPublisher.publish(hub, event);\n\n\n //Thread.currentThread().sleep(1000);\n }\n System.out.println(\"Sending Event After\");\n }",
"public void deliverStone4() {\n }",
"@Override\n public void publish(Event<? extends Enum, ?> event) {\n byte[] body = null;\n if (null == event) {\n log.error(\"Captured event is null...\");\n return;\n }\n if (event instanceof DeviceEvent) {\n body = bytesOf(MQUtil.json((DeviceEvent) event));\n } else if (event instanceof TopologyEvent) {\n body = bytesOf(MQUtil.json((TopologyEvent) event));\n } else if (event instanceof LinkEvent) {\n body = bytesOf(MQUtil.json((LinkEvent) event));\n } else {\n log.error(\"Invalid event: '{}'\", event);\n return;\n }\n processAndPublishMessage(body);\n }",
"interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n Update withPublishRunbook(Boolean publishRunbook);\n }",
"public void eventsPublishedByPub() {\r\n int index = 1;\r\n System.out.println(\"Events published by this publisher: \");\r\n for (Event event : pubEvents) {\r\n System.out.println(index + \"->\" + event + \"\\n\");\r\n index++;\r\n }\r\n }",
"public Publisher() {\n // This constructor is intentionally empty. Nothing special is needed here.\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void publish(ISeller seller, IHotelBiding hotelBiding) {\n\t\t\r\n\t}",
"@Override\n\t\tpublic void rest() {\n\t\t\t\n\t\t}",
"public interface IPSDTDPublisherEdition\n{\n /*\n * Element names\n */\n static public final String ELEM_ROOT = \"psxpub:pubdata\";\n static public final String ELEM_SITE = \"destsite\";\n static public final String ELEM_CONTENTLIST = \"contentlist\";\n static public final String ELEM_CONTENTITEM = \"contentitem\";\n static public final String ELEM_CONTENTTITLE = \"title\";\n static public final String ELEM_CONTENTURL = \"contenturl\";\n static public final String ELEM_DELIVERY = \"delivery\";\n static public final String ELEM_LOCATION = \"location\";\n static public final String ELEM_MODIFYDATE = \"modifydate\";\n static public final String ELEM_MODIFYUSER = \"modifyuser\";\n static public final String ELEM_EXPIREDATE = \"expiredate\";\n static public final String ELEM_CONTENTTYPE = \"contenttype\";\n static public final String ELEM_CONFIG = \"publisherconfig\";\n static public final String ELEM_PARAM = \"param\";\n static public final String ELEM_CUSTOMPROPERTIES =\"customproperties\";\n /*\n * Attribute names\n */\n static public final String ATTR_NS = \"xmlns:psxpub\";\n static public final String ATTR_USERID = \"userid\";\n static public final String ATTR_PASSWORD = \"password\";\n static public final String ATTR_IPADDRESS = \"ipaddress\";\n static public final String ATTR_PORT = \"port\";\n static public final String ATTR_ROOTDIR = \"rootdir\";\n static public final String ATTR_NAME = \"name\";\n static public final String ATTR_EDITIONID = \"editionid\";\n static public final String ATTR_SRCSITEID = \"srcsiteid\";\n static public final String ATTR_RECOVERYPUBSTATUSID = \"recoverypubstatusid\";\n static public final String ATTR_SITEID = \"siteid\";\n static public final String ATTR_PUBLISHERID = \"publisherid\";\n static public final String ATTR_PUBLICATIONID = \"publicationid\";\n static public final String ATTR_PUBSTATUSID = \"pubstatusid\";\n static public final String ATTR_DELIVERYTYPE = \"deliverytype\";\n static public final String ATTR_UNPUBLISH = \"unpublish\";\n static public final String ATTR_CONTENTID = \"contentid\";\n static public final String ATTR_REVISION = \"revision\";\n static public final String ATTR_CONTEXT = \"context\";\n static public final String ATTR_VARIANTID = \"variantid\";\n static public final String ATTR_CLISTID = \"clistid\";\n static public final String ATTR_PAGEINDEX = \"pageindex\";\n static public final String ATTR_ISLASTPAGE = \"islastpage\";\n public static final String ATTR_ELAPSETIME = \"elapsetime\";\n\n\n /**\n * The name for the attribute holding the publisher user identification,\n * never <code>null</code>.\n */\n static public final String ATTR_PUBUID = \"pubuid\";\n\n /**\n * The name for the attribute holding the publisher password, never\n * <code>null</code>.\n */\n static public final String ATTR_PUBPW = \"pubpw\";\n\n /**\n * The parameter name for the rhythmyx server name.\n */\n static public final String PARAM_RXSERVER = \"rxserver\";\n\n /**\n * The parameter name for the rhythmyx server port.\n */\n static public final String PARAM_RXPORT = \"rxport\";\n\n /**\n * The parameter name for the rhythmyx server SSL port.\n */\n static public final String PARAM_RXSSLPORT = \"rxsslport\";\n\n /**\n * The parameter name for the rhythmyx server user name.\n */\n static public final String PARAM_USERID = \"userid\";\n\n /**\n * The parameter name for the rhythmyx server password.\n */\n static public final String PARAM_PASSWORD = \"password\";\n\n /**\n * The parameter name for the publisher user name parameter.\n */\n static public final String PARAM_PUBUID = \"pubuid\";\n\n /**\n * The parameter name for the publisher password.\n */\n static public final String PARAM_PUBPW = \"pubpw\";\n\n /**\n * The parameter name for the publisher SSL port. Use this name to specify\n * the publisher SSL port in the publisher setup form.\n */\n static public final String PARAM_SSLPORT = \"sslport\";\n\n /**\n * The parameter name for the publisher log location. Use this name to\n * specify the log location in the publisher setup form.\n */\n static public final String PARAM_LOG_LOCATION = \"loglocation\";\n\n /**\n * The parameter name for the publisher soap request file. Use this name to\n * specify the soap request file in the publisher setup form.\n */\n static public final String PARAM_SOAP_REQUEST = \"soaprequest\";\n\n /**\n * The parameter name for the database publisher jdbc context factory used\n * for jndi lookups. Use this name to specify the database publisher jdbc\n * context factory in the publisher setup form.\n */\n static public final String PARAM_JDBC_CONTEXTFACTORY = \"jdbccontextfactory\";\n\n /**\n * The parameter name for the database publisher jndi provider url to use.\n * Use this name to specify the database publisher jndi provider url in the\n * publisher setup form.\n */\n static public final String PARAM_JNDI_PROVIDERURL = \"jndiproviderurl\";\n\n\n /**\n * The parameter name for the number of items after which the FTP client will\n * log out of and then log back into a server session. Defaults to\n * Integer.MAX_INT if not found in the database.\n */\n static public final String PARAM_FTP_RELOGIN_ITEMCOUNT =\n \"ftpreloginitemcount\";\n\n /**\n * The parameter name for the time (in seconds) that the FTP Publisher\n * client will wait for the complete content list to arrive. The client\n * will time out if this request is not complete in the specified number\n * of seconds. Defaults to 0 if not found in the database.\n */\n static public final String PARAM_SERVER_REQUEST_TIMEOUT =\n \"serverrequesttimeout\";\n\n /**\n * The parameter name for the field that indicates whether to use\n * Active mode (false) or Passive mode (true) in FTP Publisher requests.\n * Defaults to false (use Active mode) if not found in the database.\n */\n static public final String PARAM_FTP_USE_PASSIVE_MODE =\n \"enablepassivemode\";\n\n /** Parameter name for the time (in seconds) to wait for data to arrive on FTP\n * sockets when publishing. Note that timeouts should be rare,\n * especially since most of the time we're tranmitting data, not\n * receiving it.\n *\n * Defaults to 60 seconds. 0 means no timeout is set.\n *\n * @see net.oroinc.ftp.FtpClient#setDataTimeout\n * @see net.oroinc.net.SocketClient#setSoTimeout\n */\n static public final String PARAM_FTP_RCV_TIMEOUT =\n \"ftprcvtimeout\";\n}",
"@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\t\t\tpublic IAMQPPublishAction messages(Collection<byte[]> messages) {\n\t\t\t\treturn null;\n\t\t\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"public void mo5251b() {\n }",
"private void _generatePublications() {\n for (int i = 0; i < publications_.size(); i++) {\n _generateAPublication( (PublicationInfo) publications_.get(i));\n if(globalVersionTrigger){\n \t PublicationInfo pub = (PublicationInfo) publications_.get(i);\n \t writer_log.addPropertyInstance(pub.id, RDF.type.getURI(), ontology+\"#Publication\", true);\n \t writer_log.addPropertyInstance(pub.id, ontology+\"#name\", pub.name, false);\n \t for(String author : (ArrayList<String>) pub.authors){\n \t\t writer_log.addPropertyInstance(pub.id, ontology+\"#author\", author, true); \n \t }\n }\n }\n }",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"private void publish( String msg )\n {\n lastMessage = msg;\n System.out.println( msg );\n }",
"public interface StructuredPushConsumer extends StructuredPushConsumerOperations, CosNotifyComm.NotifyPublish, org.omg.CORBA.portable.IDLEntity \n{\n}",
"@WebService(name = \"publish_portype\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n bc.intra.middleware.api.schema.fault.ObjectFactory.class,\n bc.intra.middleware.api.schema.pubsub.ObjectFactory.class,\n bc.intra.middleware.api.services.pubsub.push.ObjectFactory.class\n})\npublic interface PublishPortype {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns bc.intra.middleware.api.services.pubsub.push.PublishResponseType\n * @throws PublishFaultMessage\n */\n @WebMethod(operationName = \"Publish\", action = \"http://www.proximus.com/middleware/services/pubsub/Publish\")\n @WebResult(name = \"PublishResponse\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n public PublishResponseType publish(\n @WebParam(name = \"PublishRequest\", targetNamespace = \"http://middleware.intra.bc/api/services/pubsub/push\", partName = \"parameters\")\n PublishRequestType parameters)\n throws PublishFaultMessage\n ;\n\n}",
"void remotePublish(NamedResource res, PeerGroup group)\n {\n // cache first the resource locally\n publish(res);\n \n // create Message Advertisement\n// Element[] elm = AdvertisementFactory.createAdvertisement(res, group);\n \n Element[] elm = res.advertisement(\"test\",\"test\",\"test\",Integer.toString(1));\n \n try\n {\n // remotePublish should propagate the advertisement, no single send\n // required\n \n // add ResolverService as Service Handler to the URI\n// EndpointAddress[] uris = ServiceActivator.peernetwork.getPeer().getURIList();\n// for (int i = 0; i < uris.length; i++)\n// {\n// uris[i] = new EndpointAddress(uris[i], RESSERVICE_NAME, null);\n// }\n// epService.send(elm, uris);\n \n // propagagte advertisement\n epService.propagate(elm, new EndpointAddress(null, RESSERVICE_NAME, null));\n \n } catch (IOException e)\n {\n// LOG.debug(\"advertisement could not be sent on an endpoint:\"+e.getMessage());\n }\n \n }",
"@Override\n protected void prot() {\n }",
"public void serialize() {\n\t\t\n\t}",
"@Override\n public void deploy() throws Exception {\n assert !this.deploymentDone();\n PubSub pubSub = PubSub.newBuilder(this)\n .build();\n\n this.publisher1 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.publisher2 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.subscriber1 = Subscriber.newBuilder(this, pubSub.getInBoundPortURI()).build();\n\n\n // --------------------------------------------------------------------\n // Connection phase\n // --------------------------------------------------------------------\n\n\n super.deploy();\n assert this.deploymentDone();\n }",
"@Override\n protected void upload(X x) {\n }",
"public String[] getPublisher() {\n/* 254 */ return getStringArray(\"publisher\");\n/* */ }",
"@Override\n\tprotected void write(ObjectOutput out) throws IOException {\n\t\t\n\t}",
"public interface ImgurNotificationEndpoint {\n\t// todo finish this.\n}",
"interface WithPublishRunbook {\n /**\n * Specifies the publishRunbook property: The auto publish of the source control. Default is true..\n *\n * @param publishRunbook The auto publish of the source control. Default is true.\n * @return the next definition stage.\n */\n WithCreate withPublishRunbook(Boolean publishRunbook);\n }",
"public TStream<String> publishJavaObjectMultiple() throws Exception {\n \n final Topology t = new Topology();\n List<SimpleInt> ints = new ArrayList<>();\n ints.add(new SimpleInt(0));\n ints.add(new SimpleInt(1));\n ints.add(new SimpleInt(2));\n ints.add(new SimpleInt(3));\n TStream<SimpleInt> sints = t.constants(ints).asType(SimpleInt.class);\n sints = addStartupDelay(sints);\n sints.publish(\"testPublishJavaObjects\");\n \n TStream<String> source = t.strings(\"publishing\", \"a\", \"java object\"); \n source = addStartupDelay(source);\n \n TStream<SimpleString> objects = source.transform(SimpleString::new).asType(SimpleString.class);\n \n objects.publish(\"testPublishJavaObjects\");\n \n TStream<SimpleString> subscribe = t.subscribe(\"testPublishJavaObjects\", SimpleString.class);\n \n TStream<String> strings = StringStreams.toString(subscribe); \n\n return strings;\n }",
"@Override\n public void write() {\n\n }",
"Publication getPubli();",
"public static boolean m133284b() {\n IAVPublishService publishService = ((IAVService) ServiceManager.get().getService(IAVService.class)).publishService();\n C7573i.m23582a((Object) publishService, \"ServiceManager.get().get…ss.java).publishService()\");\n return publishService.isPublishing();\n }",
"public void addPublisher(String value) {\n/* 246 */ addStringToBag(\"publisher\", value);\n/* */ }",
"@Override\npublic int writingBenches() {\n\treturn 200;\n}",
"public Produces () \r\n {\r\n }",
"private void publishHandler(AmqpPublishData amqpPublishData) {\n\n AmqpPublishMessage publish = amqpPublishData.amqpPublishMessage();\n\n // defensive ... check that current bridge has information about subscriptions and related granted QoS\n // see https://github.com/EnMasseProject/subserv/issues/8\n\n // try to get subscribed topic (that could have wildcards) that matches the publish topic\n String topic = (this.grantedQoSLevels.size() == 0) ? null :\n TopicMatcher.match(this.grantedQoSLevels.keySet().stream().collect(Collectors.toList()), publish.topic());\n\n if (topic != null) {\n\n // MQTT 3.1.1 spec : The QoS of Payload Messages sent in response to a Subscription MUST be\n // the minimum of the QoS of the originally published message and the maximum QoS granted by the Server\n MqttQoS qos = (publish.qos().value() < this.grantedQoSLevels.get(topic).value()) ?\n publish.qos() :\n this.grantedQoSLevels.get(topic);\n\n this.mqttEndpoint.publish(publish.topic(), publish.payload(), qos, publish.isDup(), publish.isRetain());\n // the the message identifier assigned to the published message\n amqpPublishData.setMessageId(this.mqttEndpoint.lastMessageId());\n\n LOG.info(\"PUBLISH [{}] to MQTT client {}\", this.mqttEndpoint.lastMessageId(), this.mqttEndpoint.clientIdentifier());\n\n // for QoS 0, message settled immediately\n if (qos == MqttQoS.AT_MOST_ONCE) {\n this.rcvEndpoint.settle(amqpPublishData.messageId());\n }\n\n } else {\n\n LOG.error(\"Published message : MQTT client {} is not subscribed to {} !!\", this.mqttEndpoint.clientIdentifier(), publish.topic());\n }\n }",
"public void initPublicEndpoint() {\n \t//TODO: Register the new Public End Point with in the Content Repository Node\n \tString uniqueId = UUID.randomUUID().toString();\n \t\n \tpublicEndPoint = new JMSEndpoint();\n \tpublicEndPoint.setAddress(uniqueId + \"/public\");\n \t\n \tpublicEndPoint.setProperties(configuration.getBrokerPool().getBroker().getConnections(\"topic\").getParameters());\n \n // save the public endpoint from the registry\n registry.createPublicEndpoint();\n \n publicSender = initPublicSender(new JMSSenderFactory().create(publicEndPoint));\n \t\n \tisPublicEndPointInit = true;\n }",
"@Override\n\t\tpublic void publishResource(FlexoResource<?> resource, FlexoVersion newVersion) throws Exception {\n\t\t}",
"public void deliverStone5() {\n }",
"public void onPublish(UTF8Buffer topic, Buffer payload, Runnable ack) {\n\t\t ack.run();\r\n\t\t System.out.println(\"topic\"+topic.toString()+\"=\"+new String(payload.getData()));\r\n\t\t }",
"public void deliverStone6() {\n }",
"public String getPublisher() {\n\treturn publisher;\n}",
"@Override\n public URI uploadPackage() {\n return TypeUtils.getURI(\"null://uploader:9519/w#lanfang\");\n }",
"@Override\n protected void sink(Message message) {\n }",
"@Override\n public void publishAndUpdate(MessageEntity msg) {\n if (mapper.updateIsPublished(msg.getMessageId(), MessageIsPublished.NO.val, MessageIsPublished.YES.val) == 1) {\n messagingService.send(MessagingParam.builder()\n .payload(msg.getPayload())\n .exchange(msg.getExchange())\n .routingKey(msg.getRoutingKey())\n .deliveryMode(MessageDeliveryMode.NON_PERSISTENT)\n .messagePostProcessor(new HeaderMessagePostProcessor(msg))\n .build());\n }\n }",
"private FlyWithWings(){\n\t\t\n\t}",
"public Integer CounterPublishNum(int count){\r\n\t\treturn ++count;\r\n\t}",
"private void processAndPublishMessage(byte[] body) {\n Map<String, Object> props = Maps.newHashMap();\n props.put(CORRELATION_ID, correlationId);\n MessageContext mc = new MessageContext(body, props);\n try {\n msgOutQueue.put(mc);\n String message = new String(body, \"UTF-8\");\n log.debug(\" [x] Sent '{}'\", message);\n } catch (InterruptedException | UnsupportedEncodingException e) {\n log.error(ExceptionUtils.getFullStackTrace(e));\n }\n manageSender.publish();\n }",
"@Override\r\n\tpublic void write() {\n\t\t\r\n\t}",
"@Override\n\tpublic void conferenceroom() {\n\t\t\n\t}",
"public int publishToAll(Message message);",
"public void baocun() {\n\t\t\n\t}",
"public static void publish() {\n\t\tList<Stream> streams = null;\n\t\ttry {\n\t\t\tstreams = PlatformClient.streams(getUser());\n\t\t} catch (ApplicationException e) {\n\t\t\te.printStackTrace();\n\t\t\tflash.error(\"Error while getting available streams %s\",\n\t\t\t\t\te.getMessage());\n\t\t\tindex();\n\t\t}\n\t\trender(streams);\n\t}",
"@Override\n public void packageItem() {\n System.out.println(\"Fresh Produce packing : done\");\n }",
"public interface BAPushDataEventHandler {\n\tpublic void publishedData(BAEvent event);\n}",
"void updateTransformQueueVersions() {\n\t}",
"interface SegmentedPublisher<Type> extends Publisher<Type> {\n /**\n * Returns the segment for all keys in the publisher.\n * @return segment the data the publisher provides maps to.\n */\n int getSegment();\n }",
"public void deliverStone3() {\n }",
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\r\n\tpublic void download() {\n\t\t\r\n\t}",
"H noticeOthers(PublishType publishType);",
"@Override\n public FarmUtilDomain.PublishUtilState snapshot() {\n return FarmUtilDomain.PublishUtilState.newBuilder().build();\n }",
"public interface IPublishArticle {\n @POST(ServerInterface.PUBLISH_ARTICLE)\n @Multipart\n Call<String> publishArticle(@Part MultipartBody.Part pic, @Part(\"type\") String type, @Part(\"friendCircle.user.id\") String userId, @Part(\"friendCircle.topic.id\") String topicId, @Part(\"friendCircle.msg\") String content);\n}",
"public void mo55254a() {\n }"
] | [
"0.6655902",
"0.6600833",
"0.619524",
"0.59749633",
"0.58661246",
"0.5661516",
"0.5661516",
"0.5655765",
"0.5587999",
"0.556117",
"0.5527616",
"0.5517744",
"0.5494567",
"0.5488161",
"0.5488161",
"0.54456913",
"0.54414827",
"0.54338187",
"0.54338187",
"0.54072964",
"0.54043126",
"0.537197",
"0.53697807",
"0.53599983",
"0.5355214",
"0.5354566",
"0.5348727",
"0.5333668",
"0.5328662",
"0.53228587",
"0.530872",
"0.5300464",
"0.5293278",
"0.5292405",
"0.5281994",
"0.5268075",
"0.526026",
"0.5259536",
"0.5256929",
"0.5255097",
"0.5252315",
"0.525202",
"0.5232344",
"0.52087665",
"0.5205801",
"0.52054405",
"0.5205265",
"0.5205265",
"0.51983106",
"0.51963985",
"0.51854956",
"0.51848596",
"0.51848596",
"0.5181728",
"0.51790804",
"0.51724297",
"0.51723534",
"0.5172274",
"0.5164546",
"0.51404303",
"0.51398766",
"0.5139588",
"0.5131544",
"0.5123399",
"0.5120313",
"0.51194876",
"0.51193064",
"0.5114525",
"0.5111106",
"0.5108663",
"0.5108564",
"0.51058275",
"0.5105345",
"0.50933915",
"0.50888824",
"0.5081889",
"0.5080966",
"0.50801367",
"0.5075063",
"0.50679237",
"0.5064422",
"0.50482666",
"0.5047468",
"0.5040885",
"0.50391906",
"0.5038415",
"0.5033231",
"0.5032012",
"0.501791",
"0.5017308",
"0.5016277",
"0.50002724",
"0.49926808",
"0.4989624",
"0.49856743",
"0.49829343",
"0.49810073",
"0.49740654",
"0.49736732",
"0.49728394",
"0.4971124"
] | 0.0 | -1 |
Overrides the toString method provided by Object | public String toString()
{
return _firstName + " " + _lastName + ": " + _balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override String toString();",
"@Override public String toString();",
"@Override\r\n String toString();",
"@Override\n String toString();",
"@Override\n String toString();",
"@Override\r\n public String toString();",
"@Override\r\n\tpublic String toString();",
"@Override\n\tString toString();",
"@Override\n\tpublic String toString();",
"@Override\n public String toString();",
"@Override\n public String toString();",
"@Override\n String toString();",
"@Override\n\tpublic abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n public abstract String toString();",
"@Override\n\tpublic abstract String toString ();",
"public String toString() ;",
"@Override\n public synchronized String toString() {\n return super.toString();\n }",
"@Override\n public abstract String toString();",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"@Override\r\n public String toString() {\n return super.toString();\r\n }",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"public String toString() {\n \t\treturn super.toString();\n \t}",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"@Override\r\n public String toString() {\r\n return super.toString();\r\n }",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public abstract String toString();",
"public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"@Override\n public String toString() {\n return super.toString();\n }",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();",
"public String toString();"
] | [
"0.87281114",
"0.86668193",
"0.86226207",
"0.85165495",
"0.85165495",
"0.8486862",
"0.8447938",
"0.84249955",
"0.8333846",
"0.83197486",
"0.83197486",
"0.8265315",
"0.8253768",
"0.8223885",
"0.8223885",
"0.8223885",
"0.8223885",
"0.8223885",
"0.8223885",
"0.8223885",
"0.8158752",
"0.8138793",
"0.80747485",
"0.7997599",
"0.7973951",
"0.797252",
"0.79717684",
"0.7961909",
"0.7961909",
"0.7961909",
"0.7961909",
"0.7961909",
"0.7961909",
"0.79502565",
"0.7949154",
"0.7949154",
"0.79409224",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.79066473",
"0.7899398",
"0.78906107",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78844285",
"0.78768986",
"0.7856353",
"0.78511953",
"0.78511953",
"0.78511953",
"0.78511953",
"0.7847453",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707",
"0.7834707"
] | 0.0 | -1 |
Overrides the equals method provided by Object compares the IDs of the accounts | public boolean equals(Object o)
{
// make sure the object passed is actually an account
if (o instanceof Account)
{
// cast to account - this is safe because we checked for it above
Account acct = (Account) o;
// compare account IDs
if (_id == acct._id)
return true;
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\r\n return false;\r\n }\r\n Account other = (Account) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\r\n return false;\r\n }\r\n Account other = (Account) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BsProteoxClAccounts)) {\n return false;\n }\n BsProteoxClAccounts other = (BsProteoxClAccounts) object;\n if ((this.idAccount == null && other.idAccount != null) || (this.idAccount != null && !this.idAccount.equals(other.idAccount))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Boardgplusaccount)) {\n return false;\n }\n Boardgplusaccount other = (Boardgplusaccount) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AccountDataBean)) {\n return false;\n }\n AccountDataBean other = (AccountDataBean)object;\n if (this.accountID != other.accountID && (this.accountID == null || !this.accountID.equals(other.accountID))) return false;\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CashlineAccount)) {\n return false;\n }\n CashlineAccount other = (CashlineAccount) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n if (!(obj instanceof AccountInfo)) {\n return false;\n }\n AccountInfo other = (AccountInfo)obj;\n return ((other.getUser() == user) && (other.getGroup() == group));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MainAccount)) {\n return false;\n }\n MainAccount other = (MainAccount) object;\n if ((this.mainAccountId == null && other.mainAccountId != null) || (this.mainAccountId != null && !this.mainAccountId.equals(other.mainAccountId))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Account)) {\n return false;\n }\n Account other = (Account) object;\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n\n return id.equals(((BacInfo) obj).id);\n\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"public boolean equals(Object o) {\r\n if(!(o instanceof Account)) {\r\n return false;\r\n }\r\n Account a = (Account) o;\r\n return this.getAcctNumber() == a.getAcctNumber() && this.getAcctType().equals(a.getAcctType()) && this.getAccountStatus().equals(a.getAccountStatus()) && this.getDepositor()== a.getDepositor() && this.getBalance(new TransactionTicket(Calendar.getInstance(), this.getAcctNumber(), \"\", 0 , 0)) == a.getBalance(new TransactionTicket(Calendar.getInstance(), a.getAcctNumber(), \"\", 0 , 0)) ;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof GlAccountHistoryPK)) {\r\n return false;\r\n }\r\n GlAccountHistoryPK other = (GlAccountHistoryPK) object;\r\n if ((this.glAccountId == null && other.glAccountId != null) || (this.glAccountId != null && !this.glAccountId.equals(other.glAccountId))) {\r\n return false;\r\n }\r\n if ((this.organizationPartyId == null && other.organizationPartyId != null) || (this.organizationPartyId != null && !this.organizationPartyId.equals(other.organizationPartyId))) {\r\n return false;\r\n }\r\n if ((this.customTimePeriodId == null && other.customTimePeriodId != null) || (this.customTimePeriodId != null && !this.customTimePeriodId.equals(other.customTimePeriodId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CBankaccount)) {\r\n return false;\r\n }\r\n CBankaccount other = (CBankaccount) object;\r\n if ((this.cBankaccountId == null && other.cBankaccountId != null) || (this.cBankaccountId != null && !this.cBankaccountId.equals(other.cBankaccountId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object obj) {\n return obj instanceof User && id.equals(((User) obj).getId());\n }",
"@Override\n public boolean equals(Object other) {\n if (other == this) {\n return true;\n }\n\n if (!(other instanceof LoggedInAccount)) {\n return false;\n }\n\n LoggedInAccount otherAccount = (LoggedInAccount) other;\n return (otherAccount.getUsername().fullUsername.toLowerCase()).equals(getUsername().fullUsername.toLowerCase());\n }",
"@Override\n public boolean equals(Object obj){\n boolean isEqual = false;\n if (this.getClass() == obj.getClass())\n {\n ItemID itemID = (ItemID) obj;\n if (itemID.id.equals(this.id))\n isEqual = true;\n }\n \n return isEqual;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Login)) {\n return false;\n }\n Login other = (Login) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n if (this == obj) {\n return true;\n }\n if (obj == null) {\n return false;\n }\n if (getClass() != obj.getClass()) {\n return false;\n }\n final User other = (User) obj;\n if (this.id != other.id) {\n return false;\n }\n if (!Objects.equals(this.name, other.name)) {\n return false;\n }\n /*\n if (!Objects.equals(this.cash, other.cash)) {\n return false;\n }\n if (!Objects.equals(this.skills, other.skills)) {\n return false;\n }\n if (!Objects.equals(this.potions, other.potions)) {\n return false;\n }*/\n \n if(!this.cash.getValue().equals(other.cash.getValue())){\n return false;\n }\n \n for (int i = 0; i < this.skills.size(); i++) {\n if(!this.skills.get(i).getValue().equals(other.skills.get(i).getValue())){\n return false;\n }\n\t}\n \n for (int i = 0; i < this.potions.size(); i++) {\n if(!this.potions.get(i).getValue().equals(other.potions.get(i).getValue())){\n return false;\n }\n\t}\n \n return true;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof User)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tUser obj2 = (User)obj;\r\n\t\tif(this.id>0){\r\n\t\t\treturn this.id==obj2.getId();\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (object == null) {\n return false;\n }\n if (!User.class.isAssignableFrom(object.getClass())) {\n return false;\n }\n final User other = (User) object;\n if (this.id != other.id) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals( Object obj ) {\n if ( this == obj )\n return true;\n if ( obj == null )\n return false;\n if ( getClass() != obj.getClass() )\n return false;\n Client other = (Client) obj;\n if ( id != other.id )\n return false;\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof TUsers)) {\r\n return false;\r\n }\r\n TUsers other = (TUsers) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof VatCodeCompany)) {\n return false;\n }\n VatCodeCompany other = (VatCodeCompany) object;\n return !((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id)));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Accionista)) {\n return false;\n }\n Accionista other = (Accionista) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Antecedents)) {\n return false;\n }\n return id != null && id.equals(((Antecedents) o).id);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof IbPerfilesAdm)) {\n return false;\n }\n IbPerfilesAdm other = (IbPerfilesAdm) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof UserAccount)) {\n return false;\n }\n UserAccount other = (UserAccount) object;\n if ((this.userLogin == null && other.userLogin != null) || (this.userLogin != null && !this.userLogin.equals(other.userLogin))) {\n return false;\n }\n return true;\n }",
"@Override\n public int hashCode() {\n return Objects.hash(accounts);\n\n }",
"@Override\n public boolean equals(Object obj) {\n return this == obj;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Acarsdata)) {\r\n return false;\r\n }\r\n Acarsdata other = (Acarsdata) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof EmpresaPK)) {\r\n return false;\r\n }\r\n EmpresaPK other = (EmpresaPK) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n if (this.contactoEmpresaid != other.contactoEmpresaid) {\r\n return false;\r\n }\r\n if (this.direccionEmpresaid != other.direccionEmpresaid) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CompteBancaire)) {\r\n return false;\r\n }\r\n CompteBancaire other = (CompteBancaire) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Kanri)) {\n return false;\n }\n Kanri other = (Kanri) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof RolesEntidadEntityPK)) {\n return false;\n }\n RolesEntidadEntityPK other = (RolesEntidadEntityPK) object;\n if (this.entidadId != other.entidadId) {\n return false;\n }\n if ((this.rolId == null && other.rolId != null) || (this.rolId != null && !this.rolId.equals(other.rolId))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Shares)) {\r\n return false;\r\n }\r\n Shares other = (Shares) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tmproyecto)) {\n return false;\n }\n Tmproyecto other = (Tmproyecto) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof Transaction)) {\n return false;\n }\n return id != null && id.equals(((Transaction) o).id);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof AccesoRol)) {\n return false;\n }\n AccesoRol other = (AccesoRol) object;\n if ((this.idAccesoRol == null && other.idAccesoRol != null) || (this.idAccesoRol != null && !this.idAccesoRol.equals(other.idAccesoRol))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Auditoria)) {\r\n return false;\r\n }\r\n Auditoria other = (Auditoria) object;\r\n if ((this.auditoriaPK == null && other.auditoriaPK != null) || (this.auditoriaPK != null && !this.auditoriaPK.equals(other.auditoriaPK))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Account a, Account b) {\n if ((a.getFirstName().equals(b.getFirstName())) && (a.getLastName().equals(b.getLastName())) && (a.getStreetAddress().equals(b.getStreetAddress())) && (a.getZipcode().equals(b.getZipcode())))\n return true;\n else\n return false;\n }",
"@Override public boolean equals(Object object);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Ranks)) {\n return false;\n }\n Ranks other = (Ranks) object;\n if ((this.idrank == null && other.idrank != null) || (this.idrank != null && !this.idrank.equals(other.idrank))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Abono)) {\n return false;\n }\n Abono other = (Abono) object;\n if ((this.abonoPK == null && other.abonoPK != null) || (this.abonoPK != null && !this.abonoPK.equals(other.abonoPK))) {\n return false;\n }\n return true;\n }",
"@Override\n boolean equals(Object obj);",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (o == null || getClass() != o.getClass()) {\n return false;\n }\n Transaction transaction = (Transaction) o;\n if (transaction.getId() == null || getId() == null) {\n return false;\n }\n return Objects.equals(getId(), transaction.getId());\n }",
"@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof Users)) {\n\t\t\treturn false;\n\t\t}\n\tUsers other = (Users) object;\n\tif ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n\t\treturn false;\n\t}\n\treturn true;\n\t}",
"@Override\n\t\tpublic boolean equals(Object obj) {\n\t\t\treturn super.equals(obj);\n\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Participantes)) {\r\n return false;\r\n }\r\n Participantes other = (Participantes) object;\r\n if (this.id != other.id) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof RevResultado)) {\n return false;\n }\n RevResultado other = (RevResultado) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Airports)) {\r\n return false;\r\n }\r\n Airports other = (Airports) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public final boolean equals( Object obj ) {\n return super.equals(obj);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Gerente)) {\r\n return false;\r\n }\r\n \r\n Gerente other = (Gerente) object;\r\n\r\n if ((this.id == null && other.getId() != null) || (this.id != null && !this.id.equals(other.getId()))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n AxleClassification other = (AxleClassification) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n return this == obj;\n }",
"@Override\n public boolean equals(Object o) {\n if (this == o) {\n return true;\n }\n if (!(o instanceof PasswordHistory)) {\n return false;\n }\n return id != null && id.equals(((PasswordHistory) o).id);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Vagas)) {\r\n return false;\r\n }\r\n Vagas other = (Vagas) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\r\n\t}",
"public boolean equals(Object otherObject) {\n if (!(otherObject instanceof ID)) {\n return false;\n }\n return (this.UID.equals(otherObject.toString()));\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof ShSubAccount)) {\r\n return false;\r\n }\r\n ShSubAccount other = (ShSubAccount) object;\r\n if ((this.subAccountId == null && other.subAccountId != null) || (this.subAccountId != null && !this.subAccountId.equals(other.subAccountId))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n\n\n\n return true;\n }",
"public boolean equals(Object other){\n if(other == null){\n return false;\n }\n else if(!(other instanceof Bank)){\n return false;\n }\n else{\n Bank tempBank = (Bank)other;\n if(tempBank.maxAccounts != maxAccounts || tempBank.bankName.equalsIgnoreCase(bankName) || tempBank.currAccounts != currAccounts){\n return false;\n }\n else{\n boolean flag = true;\n int i = 0;\n do{\n flag = bankAccounts[i].equals(tempBank.bankAccounts[i]);\n i++;\n }while(flag && i < maxAccounts);\n return flag;\n }\n }\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Rolistafit)) {\n return false;\n }\n Rolistafit other = (Rolistafit) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Citizens)) {\r\n return false;\r\n }\r\n Citizens other = (Citizens) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Object obj){\r\n\t\tif (!(obj instanceof ResumoArrecadacaoCreditoHelper)){\r\n\t\t\treturn false;\t\t\t\r\n\t\t} else {\r\n\t\t\tResumoArrecadacaoCreditoHelper resumoTemp = (ResumoArrecadacaoCreditoHelper) obj;\r\n\t\t \r\n\t\t // Verificamos se todas as propriedades que identificam o objeto sao iguais\r\n\t\t\treturn\r\n\t\t\t\tpropriedadesIguais(this.idCreditoOrigem, resumoTemp.idCreditoOrigem) &&\r\n\t\t\t\tpropriedadesIguais(this.idLancamentoItemContabil, resumoTemp.idLancamentoItemContabil);\r\n\t\t}\t\r\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof CredentialType)) {\n return false;\n }\n CredentialType other = (CredentialType) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof CatalogoVehiculos)) {\r\n return false;\r\n }\r\n CatalogoVehiculos other = (CatalogoVehiculos) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object obj) {\r\n return super.equals(obj);\r\n }",
"@Override\n public boolean equals(Object obj) {\n \n //TODO: Complete Method\n \n return true;\n }",
"@Override\n\tpublic boolean equals(Object object) {\n\t\tif (!(object instanceof AccountPursePK)) {\n\t\t\treturn false;\n\t\t}\n\t\tAccountPursePK other = (AccountPursePK) object;\n\t\tif ((this.accountId == null && other.accountId != null) || (this.accountId != null && !this.accountId.equals(other.accountId))) {\n\t\t\treturn false;\n\t\t}\n\t\tif ((this.productId == null && other.productId != null) || (this.productId != null && !this.productId.equals(other.productId))) {\n\t\t\treturn false;\n\t\t}\n\t\tif ((this.purseId == null && other.purseId != null) || (this.purseId != null && !this.purseId.equals(other.purseId))) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean equals(Object object)\n {\n if (!(object instanceof MatchEntryPK))\n {\n return false;\n }\n MatchEntryPK other = (MatchEntryPK) object;\n if (this.id != other.id)\n {\n return false;\n }\n if (this.formatId != other.formatId)\n {\n return false;\n }\n return this.formatGameId == other.formatGameId;\n }",
"@Override \n boolean equals(Object obj);",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof BancosTO)) {\n return false;\n }\n BancosTO other = (BancosTO) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public final boolean equals(final Object other) {\n return super.equals(other);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Sacrificio)) {\n return false;\n }\n Sacrificio other = (Sacrificio) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(final Object obj) {\n return super.equals(obj);\n }",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n\tpublic boolean equals(Object obj) {\n\t\treturn super.equals(obj);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Users)) {\n return false;\n }\n Users other = (Users) object;\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Utilisateur)) {\r\n return false;\r\n }\r\n Utilisateur other = (Utilisateur) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof SkBank)) {\n return false;\n }\n SkBank other = (SkBank) object;\n if ((this.idBank == null && other.idBank != null) || (this.idBank != null && !this.idBank.equals(other.idBank))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tblusuarios)) {\n return false;\n }\n Tblusuarios other = (Tblusuarios) object;\n if ((this.credito == null && other.credito != null) || (this.credito != null && !this.credito.equals(other.credito))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object obj) {\n return super.equals(obj);\n }",
"@Override\n\t\tpublic boolean equals(Object other) {\n\t\t\tif (other instanceof IChatServer) { // make sure that other object is an IUser\n\t\t\t\ttry {\n\t\t\t\t\t// Equality of IUsers is same as equality of UUID's.\n\t\t\t\t\treturn stub.getUser().getId().equals(((IChatServer) other).getUser().getId());\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t// Deal with the exception without throwing a RemoteException.\n\t\t\t\t\tSystem.err.println(\"ProxyUser.equals(): error getting UUID: \" + e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t// Fall through and return false\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Usr)) {\r\n return false;\r\n }\r\n Usr other = (Usr) object;\r\n if ((this.idUsr == null && other.idUsr != null) || (this.idUsr != null && !this.idUsr.equals(other.idUsr))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean equals(Object obj) {\n // we must deproxy objects before comparison, because hibernate proxy could be received here\n AbstractEntity<ID> thisEntity = HibernateUtils.deproxy(this);\n Object otherEntity = HibernateUtils.deproxy(obj);\n\n ID id = thisEntity.getId();\n\n if (id != null && otherEntity != null && otherEntity.getClass().getName().equals(getClass().getName())) {\n return id.equals(((AbstractEntity) otherEntity).getId());\n }\n\n // fallback to reference equality, original object instance should be used there\n return super.equals(obj);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\r\n return false;\r\n }\r\n User other = (User) object;\r\n if ((this.idUser == null && other.idUser != null) || (this.idUser != null && !this.idUser.equals(other.idUser))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Role)) {\n return false;\n }\n Role other = (Role) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (this == object) {\n return true;\n }\n if (object == null || getClass() != object.getClass()) {\n return false;\n }\n CardBalance that = (CardBalance) object;\n return Objects.equals(dollar, that.dollar)\n && Objects.equals(cent, that.cent);\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Infoentity)) {\r\n return false;\r\n }\r\n Infoentity other = (Infoentity) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Customer)) {\r\n return false;\r\n }\r\n Customer other = (Customer) object;\r\n return (this.id != null || other.id == null) && (this.id == null || this.id.equals(other.id));\r\n }"
] | [
"0.8276439",
"0.8276439",
"0.78839105",
"0.7703195",
"0.764582",
"0.7590996",
"0.75296974",
"0.7275063",
"0.7211376",
"0.71683204",
"0.70972013",
"0.70878375",
"0.6962848",
"0.69552827",
"0.69544196",
"0.692115",
"0.68936384",
"0.68810713",
"0.6866773",
"0.6859824",
"0.68500096",
"0.6844926",
"0.68206984",
"0.68162155",
"0.6811803",
"0.68105596",
"0.67986125",
"0.678984",
"0.67843854",
"0.67696446",
"0.676534",
"0.6762968",
"0.6759468",
"0.6759437",
"0.67563266",
"0.6753114",
"0.67410254",
"0.6730377",
"0.6725451",
"0.6702129",
"0.67016184",
"0.66979474",
"0.66970587",
"0.6695759",
"0.66863865",
"0.6685449",
"0.66834235",
"0.667707",
"0.6677019",
"0.6676377",
"0.6676377",
"0.66725194",
"0.6672402",
"0.66722804",
"0.666809",
"0.66659987",
"0.6660537",
"0.664419",
"0.6643801",
"0.663933",
"0.663933",
"0.663933",
"0.66349024",
"0.66334146",
"0.66304445",
"0.6626184",
"0.66134006",
"0.6608378",
"0.6605469",
"0.6603149",
"0.6601125",
"0.65985245",
"0.6596101",
"0.6592586",
"0.6591578",
"0.658885",
"0.6586976",
"0.6586505",
"0.65821487",
"0.6579085",
"0.6577469",
"0.6577469",
"0.6577469",
"0.6577469",
"0.6577469",
"0.6577469",
"0.6574356",
"0.65722924",
"0.65720093",
"0.6571681",
"0.65665436",
"0.65641594",
"0.6563514",
"0.65633684",
"0.6562171",
"0.6556135",
"0.65557635",
"0.6553752",
"0.65481496",
"0.6547679"
] | 0.7409559 | 7 |
Withdraws money from account | public double withdrawFrom(double amount)
{
_balance -= amount;
return _balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void withdrawMoney(int amount) {\n wallet.withdraw(amount);\n }",
"@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}",
"public void withdraw(long amount) {\n\t\n\tif(canWithdraw == true) {\n\t\tSystem.out.println(\"before \"+balance);\n\t\tbalance\t-= amount;\n\t\tSystem.out.println(\"after \"+balance);\n\t\t//add to log\n\t\tlog += \"Withdraw made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\t\tlog += log += \" Current balance is \"+balance+\" \\n\"+date;\n\t\tupdate();\n\t}else {\n\t\tlog += \"Overdraft account on \"+date+\" \\n\";\n\t\tSystem.out.println(\"Insufficients funds to complete tranaction!\");\n\t\t}//end else statement\n}",
"public void withdraw(double amount)\n {\n startingBalance -= amount;\n }",
"void withdraw() {\n System.out.println(\"Enter the amount to withdraw : \");\n int withdraw = scan.nextInt();\n balance -= withdraw;\n }",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"public void withdraw(double amount){\n\t\tbalance -= amount;\n\t}",
"private void withdraw() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at hæve: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n if ((userInput * 100) <= balance) {\n moneyController(-userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Withdraw\");\n } else {\n System.out.println(\"Utilstrækkelig balance på kontien\");\n }\n }",
"public void withdraw(double amount) {\n this.balance -= amount;\n }",
"public void withdrawMoney(double amount) {\n\t\tbalance = balance - amount;\n\t}",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"public void withdraw(double amount){\n accTransactions.add(new Transaction('W', amount, balance, \"withdraw\"));\n balance -= amount;\n }",
"public void withdraw(double amount)\n\t{\n\t\tbalance -= amount;\n\t}",
"void withdraw(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Withdrawing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (check(amount)) {\n\t\t\tbalance -= amount;\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" successfully.\");\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw \" + amount + \" unsuccessfully. Do not have enough available funds.\");\n\t\t}\n\t}",
"@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }",
"private static void withdraw(double amount) {\n double resultWithdraw = balance - amount;\r\n if (resultWithdraw < 0 || amount > 2000) {\r\n System.out.println(\"Withdrawal cannot exceed $2000. Balance cannot be reduced below $0.\");\r\n } else {\r\n System.out.println(amount + \" has been withdrawn from your bank account.\\nCurrent balance \" + resultWithdraw + \".\");\r\n }\r\n }",
"public void withdraw(double amount)\n {\n if (amount <= balance) {\n balance = balance - amount;\n }\n else {\n System.err.println(\"Transaction Declined\");\n remainder = balance - amount;\n System.out.println(\"Your balance would have been \" + remainder);\n }\n }",
"private void doWithdrawal() {\n while(true){\n try{\n Account userAccount = ui.readAccount(currentUser.getAccounts());\n int amountWithdrawn = ui.readWithdrawalAmount();\n\n if(userAccount.debit(amountWithdrawn)){\n ui.displayNewBalance(userAccount);\n break;\n\n } else {\n ui.displayError(\"You do not have enough money in this account to withdraw \" + amountWithdrawn);\n }\n }catch(Exception e){\n ui.displayError(\"Please enter a valid number.\");\n }\n }\n\n }",
"public void withdraw(double amount) {\n\t\tbalance -= amount;\n\t}",
"public Integer withdraw(Integer amount) {\r\n\t if (balance < amount) {\r\n\t throw new NotEnoughFundsException(amount, balance);\r\n\t }\r\n\t balance -= amount;\r\n\t return balance;\r\n\t }",
"void withdraw(double amount){\r\n\t\t//subtract to the current balance the amount\r\n\t\tsetBalance(getBalance() - amount);\r\n\t\t\r\n\t\t//alert the user that his bank account is in the red if the balance lower than 0\r\n\t\tif(getBalance()<0){\r\n\t\t\tSystem.out.println(\"Your bank account is in the red.\");\r\n\t\t}\r\n\t}",
"public void withdrawFromBalance(double withdrawBalanceAmount) \n\t{\n\t\taccountBalance -= withdrawBalanceAmount;\n\t}",
"public long withdraw(long amount) {\n if (amount > balance) {\n long tmp = balance;\n balance = 0;\n return tmp;\n } else {\n balance -= amount;\n return amount;\n }\n }",
"public int withdraw() {\n\t\tif ((acc.getBalance() - keyboard.getAmt()) > acc.getMinimumBalace()) {\r\n\t\t\tif (casher.withdraw(keyboard.getAmt()) == 1) {\r\n\t\t\t\tsetNewBalance();\r\n\t\t\t\t\r\n\t\t\t\treciept.printer(acc.getAccountNumber(), acc.getBalance(), keyboard.getAmt());\r\n\t\t\t\treturn 1;\r\n\t\t\t} else\r\n\t\t\t\treturn 0;\r\n\t\t}\r\n\t\treturn 0;\r\n\r\n\t}",
"@Override\n\tpublic int withdraw(double amount) throws RaiseException {\n\t\tValidator.validateWithdraw(this.getBalance(), amount);\n\t\tif(amount <= this.getBalance()) {\n\t\t\tthis.setBalance(this.getBalance() - amount);\n\t\t\t\n\t\t\t//create a transaction and adding it to the list of transactions of this account \n\t\t\tTransaction tmpTransaction = new Transaction(amount, EnumTypeTransaction.withdraw);\n\t\t\tthis.addTransaction(tmpTransaction);\n\t\t\t\n\t\t\treturn 1;\n\t\t}\n\t\treturn 0;\n\t}",
"public void withDrawAmount() {\n\t\t\n\t\ttry {\t\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to withdraw: \");\n\t\t\tint withdrawAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to withdraw : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.withDraw(withdrawAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\n\t}",
"@Test\n\tpublic void testWithdraw(){\n\t\t\n\t\t// Arrange\n\t\tBigDecimal amountToWithdraw = new BigDecimal(10.00);\n\t\tBigDecimal expectedBalance = new BigDecimal(110.5);\n\t\tdouble delta = 1e-3;\n\t\t// Act\n\t\tcurrentAccount.withdraw(amountToWithdraw);\n\t\tBalance actualBalance = currentAccount.checkBalance();\n\t\t\n\t\t// Assert\n\t\tassertEquals(expectedBalance.doubleValue(), actualBalance.getAmount().doubleValue(), delta);\n\t}",
"public void withdraw(int amount)\n {\n setBalance(getBalance()-amount);\n }",
"public void withdraw(double withdrawalAmount) {\n if (withdrawalAmount < 0) throw new IllegalArgumentException(\"Withdrawal amount cannot be negative\");\n if (balance - withdrawalAmount < 0) throw new IllegalArgumentException(\"Cannot withdraw more than account balance\");\n balance -= withdrawalAmount;\n numWithdrawals++;\n }",
"public int withdraw(int amount) {\n\n this.balance -= amount;\n if (balance < 0) {\n\n this.balance = 0;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return this.balance;\n\n } else {\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n }\n }",
"public void withdraw(float amount) {}",
"public void withdraw(float amount) {}",
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"public double depositInto(double amount)\r\n {\r\n _balance += amount;\r\n\r\n return _balance;\r\n }",
"public void withdraw(double dollarAmount) throws InsufficientFundsException {\r\n\t\tif (this.accountBalance - dollarAmount < 0 || this.accountBalance - dollarAmount - 1.50 < 0) {\r\n\t\t\tthrow new InsufficientFundsException();\r\n\t\t} else {\r\n\t\t\ttransactionTracker++;\r\n\t\t\tSystem.out.println(transactionTracker);\r\n\t\t\tif (transactionTracker > 4) {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount - 1.50;\r\n\t\t\t} else {\r\n\t\t\t\tthis.accountBalance = this.accountBalance - dollarAmount;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void withdraw (double amount) throws InsufficientFundsException{\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be withdrawn\");\n }\n if (dailyMaxWithdraw != null){\n todayWithdraw += amount;\n if(todayWithdraw > dailyMaxWithdraw){\n throw new IllegalArgumentException(\"Amount entered would exceed your daily withdraw limit\");\n }\n }\n else if (amount <= balance){\n balance -= amount;\n savingTransactions[arrayLocation] = \"Withdraw from savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n else {\n throw new InsufficientFundsException(\"Not enough money\");\n }\n }",
"public void withdraw (int amount) {\n if (amount >= 0) {\n balance = balance - amount;\n valueWithdrawals = valueWithdrawals + amount;\n if (balance < minimumBalance){\n minimumBalance = balance;\n }\n }\n }",
"public int withdrawal(Account account, double amount) { \r\n\t\tint found = find(account); //get the account that wants to withdraw\r\n\t\t\r\n\t\t//if the account doesn't exist \r\n\t\tif ( found == -1 ) {\r\n\t\t\treturn -1; \r\n\t\t}\r\n\t\t//get the balance amount, and call debit() to decrease the balance by amount \r\n\t\tDouble balance = accounts[found].getBalance();\r\n\t\taccount.setBalance(balance);\r\n\t\taccount.debit(amount); \r\n\t\t\r\n\t\t//if its less than 0, means that there are insufficient funds\r\n\t\tif ( account.getBalance() < 0 ) {\r\n\t\t\treturn 1; \r\n\t\t} \r\n\t\taccounts[found].setBalance(account.getBalance());\r\n\t\t\r\n\t\t\r\n\t\t//check if the account is a MoneyMarket account, then increment the count of withdrawls\r\n\t\tif ( accounts[found] instanceof MoneyMarket ) {\r\n\t\t\tMoneyMarket moneyAcc = (MoneyMarket) accounts[found];\r\n\t\t\tint numberOfWithdraws = moneyAcc.getWithdrawals() + 1;\r\n\t\t\tmoneyAcc.setWithdrawals(numberOfWithdraws);\r\n\t\t}\r\n\t\t\r\n\t\treturn 0;\r\n\t}",
"@Override\n\tpublic boolean withdraw(int accNo, double money) {\n\t\treturn false;\n\t}",
"public void deposit(double amount){\n\t\tbalance += amount;\n\t}",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"public void deposit(double amount)\n {\n startingBalance += amount;\n }",
"public void withdrawMoney(double amount) {\n\t\tif (amount>=0){\n\t\t\tsetBalance(this.balance - amount);\n\t\t}else{\n\t\t\tSystem.out.println(\"You can not withdraw a negative value!\");\n\t\t}\n\t\t\t\t\n\t}",
"public void subtractCreditTransaction(double withdrawAmount){\n if(!checkAccountOpen()){\n System.out.println(\"Your credit transaction in the amount of -$\" + withdrawAmount +\" has been declined\");\n }\n else {\n this.currentBalance = this.currentBalance - withdrawAmount;\n if(this.currentBalance<0){\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n this.currentBalance = this.currentBalance + withdrawAmount;\n }\n else {\n System.out.println(\"Your credit transaction has been approved!\");\n System.out.println(\"Your current balance is: $\" + currentBalance);\n }\n }\n\n }",
"public double withdraw(double withdrawalAmount) {\n\t\tdouble savingsBalance = getBalance();\n\t\tif ((savingsBalance - withdrawalAmount) >= overdraft) { // Check if balance is less than overdraft limit.\n\t\t\tsuper.withdraw(withdrawalAmount);\n\t\t}\n\t\tif ((savingsBalance - withdrawalAmount) < overdraft) {\n\t\t\tSystem.out.print(\"Cannot execute withdraw action: greater than savings withdraw limit.\\n\");\n\t\t}\n\t\treturn getBalance();\n\t}",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"public void deposit(double value){\r\n balance += value;\r\n}",
"void withdraw(double amount) {\n try {Thread.sleep(10l);} catch (InterruptedException e) {}\r\n balance -= amount;\r\n System.out.println(\"Inside withdraw\"+ balance);\r\n }",
"public abstract String withdrawAmount(double amountToBeWithdrawn);",
"int withdraw(int id, int amount, int accountType) {\n int idCompare; // will contain the ID needed\n double accountBalance = 0;\n String account; // 0 = chequing, 1 = savings\n\n // If the accountType is 0, then it's a Chequing account the user wants to deposit to, if it's 1 then\n // it's savings\n account = accountType == 0 ? \"UserBalanceC\" : \"UserBalanceS\";\n\n // Look into the account number and user balance for the deposit\n String sql = \"SELECT AccountNum, \" + account + \" FROM CashiiDB2\";\n\n try {\n rs = st.executeQuery(sql);\n while (rs.next()) {\n idCompare = rs.getInt(\"AccountNum\"); // grab the id to compare with after\n\n // If the ID turns about to be the one that's needed, get the balance and add the amount needed\n if (idCompare == id) {\n accountBalance = rs.getDouble(account);\n if (accountBalance <= amount)\n return -1;\n else {\n accountBalance -= amount;\n }\n }\n }\n updateAccount(id, accountBalance, account); // update command\n } catch (java.sql.SQLException e) {\n e.printStackTrace();\n }\n\n return 1;\n }",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"public int withdrawCash(int cash, int ubalance)\n {\n if (ubalance <= 0)\n {\n System.out.println(\"cash is not available\");\n return 0;\n }\n else\n {\n ubalance -= cash;\n return ubalance;\n }\n }",
"public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}",
"void preWithdraw(double amount) {\n\t\tSystem.out.println(\"Your account is not saver account.\");\n\t}",
"@Test\n\tpublic void testWithdraw() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);;\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(01, \"acc1\", 00000, 50.00, \"\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tArrayList<Account> expected = new ArrayList<>();\n\t\texpected.add(0, new Account(00000, \"acc1\", true, 949.90, 0002, false));\n\n\t\tif (outContent.toString().contains(\"Withdrawl Successful\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"fail withdrawing $50 + fee\", testResult);\n\t}",
"public void withdrawMoney(double amount, boolean checkingAccount) {\n if (checkingAccount && amount <= checkingBalance) {\n checkingBalance -= amount;\n totalBalance -= amount;\n } else if (!checkingAccount && amount <= savingsBalance) {\n savingsBalance -= amount;\n totalBalance -= amount;\n } else {\n System.out.println(\"Insufficient Funds.\");\n }\n }",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"public boolean withdraw(long id, String password, String currency, double amount);",
"@Override\r\n\tpublic double withdrawlDao(double money) throws EwalletException {\n\t\tif(money<temp.getCustBal()) {\r\n\t\t\ttemp.setCustBal(temp.getCustBal()-money);\r\n\t\t\ttry {\r\n\t\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Amount Withdrawn :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" Low Balance :( \");\r\n\t\t\treturn temp.getCustBal();\r\n\t}",
"public void withdraw (double amount)\n {\n super.withdraw (amount);\n imposeTransactionFee ();\n }",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"private void makeWithdraw() {\n\t\t\r\n\t}",
"@Override\n\tvoid withdraw(double amount) {\n\t\tsuper.balance -= amount - 20;\n\t}",
"@Override\r\n\tpublic boolean withdraw(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tif (balance > amount) {\r\n\t\t\t\t\tbalance = (float) (balance - amount);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthrow new InsufficientBalanceException(\"You'er Balance is insufficient to make this transation !\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\telse {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Test \n\tpublic void test1() {\n\t\taccount.withdraw(1000);\n\t\t//Sample (Expected) Output\n\t\tassertEquals(1000, account.getAmount(),0.01);\n\t}",
"public void withdraw(BigDecimal amount) {\n this.setBalance(this.getBalance().subtract(amount));\n }",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void withdraw(double amount) {\n\t\tif (amount < balance) {\n\t\t\tSystem.out.println(\"Successful withdraw: $\" + amount);\n\t\t\tbalance -= amount;\n\t\t} else {\n\t\t\tSystem.out.println(\"Withdraw Failed: Insufficient balance. The amount of $\" + amount + \" is more than your balance ($\" + balance +\").\");\n\t\t}\n\t}",
"public int depositCash(int cash, int ubalance)\n {\n\n ubalance += cash;\n return ubalance;\n }",
"private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }",
"public boolean withdraw(double amount)\t{\n\t\tbalance = balance - amount;\n\t\tnumWithdraws++;\n\t\treturn true;\n\t}",
"public void decreaseMoneyForReserve(String login,BigDecimal money);",
"void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}",
"public boolean withdrawMoney(int accountNo, float amount) {\n Account account = getAccountByAccountNo(accountNo);\n //check if account has sufficient balance\n if (checkIfEnough(account, amount)) {\n account.setBalance(account.getBalance() - amount);\n saveOrUpdate(account);\n //save transaction to database\n Transaction transaction = new Transaction();\n transaction.setAccountNo(accountNo);\n transaction.setTime(new Timestamp(new Date().getTime()));\n transaction.setType(\"withdraw\");\n transactionRepository.save(transaction);\n return true;\n }\n return false;\n }",
"@Override\n public Account withdraw(int accountNo, int amount) throws AccountNotFoundException, InsufficientBalanceException {\n Account account = getAccount(accountNo);\n if (account == null) {\n return null;\n }\n if ((account.getBalance() + 1000) < amount) {\n throw new InsufficientBalanceException(\"Can't withdraw \" + amount + \" when balance is \" + account.getBalance());\n }\n account.setBalance(account.getBalance() - amount);\n\n Transaction transaction = new Transaction();\n transaction.setAccountNo(accountNo);\n transaction.setDate(\"DD/MM/YYYY\");\n transaction.setAction(\"Withdraw\");\n transaction.setAmount(amount);\n notifyObserver(transaction);\n\n return account;\n }",
"public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void withdraw(double amount) throws InsufficientFundsException {\n if (amount <= balance) {\n balance -= amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo= '\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n } //end if\n else {\n throw new InsufficientFundsException(amount);\n } //end else\n }",
"public void withdraw( double amount ) throws Exception\n\t{\n\t\tif(amount >= 0.0 && amount <= balance)\n\t\t\tbalance -= amount;\n\t\t\n\t\telse\n\t\t\tthrow new Exception(\"Insufficient Balance\");\n\t}",
"boolean withdraw(UUID name, double amount);",
"@PostMapping(value = \"/withdraw\")\n public ResponseEntity<ResponseWrapper> withdraw(@RequestBody AccountWrapper accountWrapper) {\n ResponseWrapper wrapper =new ResponseWrapper();\n UserAccount userAccount = userAccountRepository.findByAccountNumber(accountWrapper.getAccountNumber());\n if(Objects.isNull(userAccount)){\n wrapper.setMessage(\"Account With that account number does not exist\");\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }\n\n if (userAccount.getAmount() < accountWrapper.getAmount()) {\n wrapper.setMessage(\"Insufficent funds in your account \");\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }\n\n Float amount = userAccount.getAmount() - Math.abs(accountWrapper.getAmount());\n userAccount.setAmount(amount);\n\n accountTransactionService.saveTransaction(new AccountTransaction(WITHDRAW,accountWrapper.getAccountNumber(),\"Withdrawing Money\",accountWrapper.getAmount(),userAccount.getUserID()));\n wrapper.setMessage(\"Withdraw amount successfully:\" + accountWrapper.getAmount());\n wrapper.setData(userAccountRepository.save(userAccount));\n\n return new ResponseEntity<>(wrapper, HttpStatus.OK);\n }",
"private void doDeposit() {\n System.out.println(\"How much do you want to deposit?\");\n boolean keepgoing = true;\n int amount = -1;\n while (keepgoing) {\n amount = input.nextInt();\n if (amount > 0) {\n keepgoing = false;\n pickedAccount.deposit(amount);\n }\n }\n System.out.println(\"deposited \" + amount + \" $\");\n }",
"@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void depositMoney(double amount) {\n\t\tbalance = balance + amount;\n\t}",
"public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }",
"public void withdraw (double amount) {\r\n\t\tif(!overDrawn) {\r\n\t\t\tbalance=balance-amount;\r\n\t\t\tif(balance< -1)\r\n\t\t\t{\r\n\t\t\t\toverDrawn = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\telse {\r\n\t\t\tSystem.out.println(\"Negative amount!\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t}",
"public void setWithdrawMoney(BigDecimal withdrawMoney) {\n this.withdrawMoney = withdrawMoney;\n }",
"public int withdrawal(Account account, double amount) {\n int accountPosition = find(account);\n if (accountPosition == -1) {\n return -1;\n }\n double currBal = accounts[accountPosition].getBalance();\n if (currBal < amount) {\n return 1;\n }\n accounts[accountPosition].debit(amount);\n return 0;\n }",
"public boolean withdraw(double amount) {\n if (super.withdraw(amount)) {\n airlineDollars += amount * dollarRate;\n totalSpent += amount;\n claimDollars();\n return true;\n }\n return false;\n }",
"public void withdrawOrDeposit(double amount, boolean isWithdraw){\n if(amount > 0.0) {\n if (isWithdraw) {\n balance -= amount;\n } else {\n balance += amount;\n }\n }\n }",
"public long deposit(long amount) {\n balance += amount;\n return balance;\n }",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public void withdraw(String accountNumber, int amount) {\n\t\tConnection conn;\n\t\tPreparedStatement ps, pp, ll;\n\t\tString url = \"jdbc:mysql://localhost:3306/mars\";\n\t\tString username = \"root\";\n\t\tString password = \"1113\";\n\t\tint lastBalance;\n\t\ttry {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t} catch (ClassNotFoundException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\ttry{\n\t\tconn=DriverManager.getConnection(url, username, password);\n\t\tString sql = \"select balance,userId from \"+this.name+\" where accountNumber=?\";\n\t\tps= (PreparedStatement) conn.prepareStatement(sql);\n\t\tps.setString(1, accountNumber.toString());\n\t\tResultSet rs = ps.executeQuery();\n\t\tint nowBalance = 0;\n\t\tString id = \"\";\n\t\twhile(rs.next()) { \n\t\t\tnowBalance=rs.getInt(\"balance\");\n\t\t\tid = rs.getString(\"userId\");\n\t\t}\n\t\tif (nowBalance<amount) {\n\t\t\tSystem.out.println(\"No Balance\");\n\t\t\treturn;\n\t\t}\n\t\tlastBalance = nowBalance - amount;\n\t\t//System.out.println(lastBalance);\n\t\t\n\t\tString sql1 = \"UPDATE \"+this.name+\" SET balance=? where accountNumber=?\";\n\t\tpp = (PreparedStatement) conn.prepareStatement(sql1);\n\t\tpp.setInt(1, lastBalance);\n\t\tpp.setString(2, accountNumber.toString());\n\t\tpp.executeUpdate();\n\t\t\n\t\tString logs = \"withdraw : \"+ amount+\" / balance: \"+String.valueOf(lastBalance);\n\t\tString sql11 = \"insert into \"+id+\" (log) values (?)\";\n\t\tll = (PreparedStatement) conn.prepareStatement(sql11);\n\t\tll.setString(1, logs);\n\t\tll.executeUpdate();\n\t\tSystem.out.println(\"Ypu got $\"+String.valueOf(amount));\n\t\t\n\t\t}catch (SQLException e) {\n\t\t throw new IllegalStateException(\"Cannot connect the database!\", e);\n\t\t}\n\t\t\n\t}",
"public void withdraw(int amount) throws RejectedException {\n if (amount < 0) {\n throw new RejectedException(\n \"Tried to withdraw negative value, illegal value: \" + amount + \".\" + accountInfo());\n }\n if (balance - amount < 0) {\n throw new RejectedException(\n \"Tried to overdraft, illegal value: \" + amount + \".\" + accountInfo());\n }\n balance -= amount;\n }"
] | [
"0.7677394",
"0.7639708",
"0.7592199",
"0.75583255",
"0.7510291",
"0.7484166",
"0.7479514",
"0.74781024",
"0.74514127",
"0.74493104",
"0.7449128",
"0.7437578",
"0.7425303",
"0.7396155",
"0.7390852",
"0.7367455",
"0.73338825",
"0.73336524",
"0.731724",
"0.73044634",
"0.7257115",
"0.7230672",
"0.72283924",
"0.7213871",
"0.71974736",
"0.71946454",
"0.7187648",
"0.7171983",
"0.71538174",
"0.71421564",
"0.71312636",
"0.71305066",
"0.71305066",
"0.7107007",
"0.71040034",
"0.7101797",
"0.70946485",
"0.7093716",
"0.7085855",
"0.70660657",
"0.70648164",
"0.70633596",
"0.70491374",
"0.70452404",
"0.7042558",
"0.70169735",
"0.7013475",
"0.70132405",
"0.7010936",
"0.7000579",
"0.699927",
"0.6985563",
"0.6974234",
"0.6962078",
"0.69560933",
"0.6955787",
"0.69382197",
"0.69347185",
"0.6933382",
"0.6927539",
"0.6912058",
"0.69077265",
"0.6904042",
"0.6885771",
"0.6883862",
"0.6873597",
"0.68660814",
"0.68578994",
"0.6854871",
"0.6854487",
"0.6852691",
"0.6847549",
"0.6838953",
"0.6838953",
"0.68294394",
"0.6826897",
"0.68234587",
"0.6820613",
"0.68196523",
"0.6819574",
"0.68154293",
"0.6798528",
"0.67980266",
"0.6795205",
"0.67906624",
"0.6766182",
"0.6721619",
"0.6718401",
"0.67113",
"0.6709895",
"0.67091453",
"0.67044765",
"0.67014897",
"0.669367",
"0.6686104",
"0.6684829",
"0.66800165",
"0.6671524",
"0.666885",
"0.6668506"
] | 0.7397701 | 13 |
Deposits money into account | public double depositInto(double amount)
{
_balance += amount;
return _balance;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void deposit(int money) {\n\t\t\n\t}",
"public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }",
"private static void deposite (double amount) {\n double resultDeposit = balance + amount;\r\n System.out.println(\"Deposit successful.\\nCurrent balance: \" + \"$\" + resultDeposit+ \".\");\r\n }",
"public void decreaseMoneyForReserve(String login,BigDecimal money);",
"void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}",
"@Override\r\n\tpublic void deposit(int amount) {\n\t\t\r\n\t}",
"public static void deposit() {\n\t\ttry {\n\t\t\tif (!LoginMgr.isLoggedIn()) {\n\t\t\t\tthrow new NotLoggedInException();\n\t\t\t}\n\n\t\t\t//Scanner s = new Scanner(System.in);\n\t\t\tSystem.out.println(\"Enter account number:\");\n\t\t\tString accNum = \"\";\n\t\t\tif (Quinterac.s.hasNextLine())\n\t\t\t\taccNum = Quinterac.s.nextLine();\n\n\t\t\tif (!ValidAccListMgr.checkAccNumExist(accNum)) {\n\t\t\t\tSystem.out.println(\"Please enter a valid account number\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tSystem.out.println(\"Enter the amount of money to deposit in cents:\");\n\t\t\tint amount = 0;\n\t\t\tif (Quinterac.s.hasNextInt()) amount = Integer.parseInt(Quinterac.s.nextLine());\n\t\t\t\n\t\t\tString modeName = LoginMgr.checkMode();\n\t\t\tif (modeName.equals(\"machine\")) {\n\t\t\t\tatmCheckDepositValid(accNum, amount);\n\t\t\t} else if (modeName.equals(\"agent\")) {\n\t\t\t\tagentCheckDepositValid(accNum, amount);\n\t\t\t}\n\n\t\t} catch (NotLoggedInException e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}",
"public void depositAmount() {\n\t\n\t\ttry {\n\t\t\tlog.log(Level.INFO, \"Please Enter the account number you want to deposit: \");\n\t\t\tint depositAccountNumber = scan.nextInt();\n\t\t\tlong amount;\n\t\t\tlog.log(Level.INFO, \"Please Enter the amount you want to Deposit : \");\n\t\t\tamount = scan.nextLong();\n\t\t\tbankop.deposit(depositAccountNumber,amount);\n\t\t\t\n\t\t}catch(AccountDetailsException | BalanceException message ) {\n\t\t\tlog.log(Level.INFO, message.getMessage());\n\t\t}\n\t\t\n\t}",
"private void deposit() {\n userInput = 0;\n while (userInput <= 0) {\n System.out.printf(\"Din nuværende balance er: %.2f DKK\\n\" +\n \"Indtast ønsket beløb at indsætte: \", balanceConverted);\n\n textMenuKey(false, \"\");\n\n if (userInput <= 0) {\n System.out.println(\"Indtast et gyldigt beløb\");\n }\n }\n\n moneyController(userInput);\n mysql.transactionUpdate(customerNumber, customerName, balance, userInput, \"Deposited\");\n }",
"void deposit(int value)//To deposit money from the account\n {\n balance += value;\n }",
"public void deposit(BigDecimal deposit){\n balance = balance.add(deposit);\n }",
"public void deposit(double value)\r\n {\r\n //TODO need logic to make sure you can't deposit more then you have in cash\r\n subtractCash(value);\r\n savings += value;\r\n }",
"public int deposit(int depositAmmount);",
"public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }",
"public void deposit(double amount)\n {\n balance = balance + amount;\n }",
"void deduct(String name, Integer amount);",
"public void deposit();",
"@Override\n\tpublic boolean desposit(int accNo, double money) {\n\t\treturn false;\n\t}",
"@Override\n\tpublic void deposit() {\n\t\t\n\t}",
"public void deposit(double amount){\n\t\tbalance += amount;\n\t}",
"public void deposit(double amount) {\n balance = balance + amount + 10;\n }",
"public void deposit (int amount) {\n if (amount >= 0) {\n balance = balance + amount;\n valueDeposits = valueDeposits + amount;\n if (balance > maximumBalance) {\n maximumBalance = balance;\n }\n }\n }",
"public void deposit(double deposit){\n accTransactions.add(new Transaction('D', deposit, balance, \"deposit\"));\n balance += deposit;\n }",
"public void debit(double amountDebit){\n\t\tif(amountDebit < 0)\n\t\t\tthrow new IllegalArgumentException();\n\t\t//Think about throw an exception if you don't allow the inhabitant to have an overdraft ! Here we allow it. \n\t\tthis.money= this.money - amountDebit;\n\t}",
"@Override\r\n\tpublic double depositDao(double money) throws EwalletException {\n\t\ttemp.setCustBal(temp.getCustBal()+money);\r\n\t\ttry {\r\n\t\t\ttemp.settDetails(\"Date :\"+tDate+\" Depsoited Amount :\"+money+\" Total Balance :\"+temp.getCustBal());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tdao.updatedetails(temp.getAccNum(),temp);\r\n\t\treturn temp.getCustBal();\r\n\t\t\r\n\t}",
"public void deposit(double value){\r\n balance += value;\r\n}",
"@Override\n public boolean deposit(Account account, BigDecimal amount) {\n return false;\n }",
"public void deposit(double amount) \n\t{\n\t\tbalance += amount;\n\t}",
"protected void deposit(double amount)\n\t{\n\t\tacc_balance+=amount;\n\t}",
"public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}",
"public void deposit (double amount)\n {\n imposeTransactionFee ();\n super.deposit (amount);\n }",
"public void deposit(double amount) {\n this.balance += amount;\n }",
"void depositByCash(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tbalance += amount;\n\t\tSystem.out.println(\"Deposit \" + amount + \" successfully\");\n\t}",
"public void coinDisbursed() {\r\n float coinsHandOut = this.balance; // coinsHandOut ---> balance to get the number of coins while keeping the amount entered\r\n // 100 Namibian Dollar\r\n int hundredDollar = (int)(coinsHandOut / 100.0F);\r\n float remainder = coinsHandOut % 100.0F;\r\n // 50 Namibian Dollar\r\n int fiftyDollar = (int)(remainder / 50.0F);\r\n remainder %= 50.0F;\r\n // 20 Namibian Dollar //\r\n int twentyDollar = (int)(remainder / 20.0F);\r\n remainder %= 20.0F;\r\n // 10 Namibian Dollar //\r\n int tenDollar = (int)(remainder / 10.0F);\r\n remainder %= 10.0F;\r\n // 5 Namibian Dollar //\r\n int fiveDollar = (int)(remainder / 5.0F);\r\n remainder %= 5.0F;\r\n // 1 Namibian Dollar //\r\n int oneDollar = (int)remainder;\r\n remainder %= 1.0F;\r\n // 50 cent --> 50 /100 //\r\n int fiftyCents = (int)((double)remainder / 0.5D);\r\n remainder = (float)((double)remainder % 0.5D);\r\n // 10 cent --> 10 /100\r\n int tenCents = (int)((double)remainder / 0.1D);\r\n remainder = (float)((double)remainder % 0.1D);\r\n // 5 cent --> 5 /100 //\r\n int fiveCents = (int)((double)remainder / 0.05D);\r\n System.out.println(\"\\nDisbursed :\\n\" + hundredDollar + \" x N$100\\n\" + fiftyDollar + \" x N$50\\n\" + twentyDollar + \" x N$20\\n\" + tenDollar + \" x N$10\\n\" + fiveDollar + \" x N$5\\n\" + oneDollar + \" x N$1\\n\" + fiftyCents + \" x 50c\\n\" + tenCents + \" x 10c\\n\" + fiveCents + \" x 5c\");\r\n }",
"public void depreciate(){\r\n float amountN = getAmount();\r\n float reduce = amountN*(rate/100);\r\n amountN = amountN - reduce;\r\n this.amount = amountN;\r\n }",
"public void deposit(double amount)\n {\n startingBalance += amount;\n }",
"public void makeDeposit() {\n deposit();\n }",
"@Override\r\n\tpublic double deductAccountMaintenanceFee() {\n\t\tif (this.getBalance() < 250.0)\r\n\t\t\treturn super.withdraw(250.0);\r\n\t\telse \r\n\t\t\treturn this.getBalance();\r\n\t\t\r\n\t}",
"public void deposit(double amount)\t{\n\t\tbalance = balance + amount;\n\t\tbalance = Math.round(balance * 100.0) / 100.0;\n\t}",
"public void depositMenu(){\n\t\tstate = ATM_State.DEPOSIT;\n\t\tgui.setDisplay(\"Amount to deposit: \\n$\");\t\n\t}",
"boolean deposit(UUID name, double amount);",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void deposit(double amount) {\n\t\tbalance += amount;\n\t}",
"public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }",
"double getMoney();",
"void deposit(double amount){\r\n\t\t//add to the current balance the amount\r\n\t\t setBalance(getBalance() + amount);\r\n\t }",
"public void depositMoney(double amount) {\n\t\tif (amount>=0){\n\t\t\tsetBalance(getBalance() + amount);\n\t\t}else{\n\t\t\tSystem.out.println(\"You can not deposit a negative value!\");\n\t\t}\n\t\t\n\t}",
"public void depositMoney(double amount) {\n\t\tbalance = balance + amount;\n\t}",
"public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }",
"public void deposit(double depositAmmount)\r\n\t{\r\n\t\tif(depositAmmount > 0.0) // it the deposit is valid\r\n\t\t\tbalance = balance + depositAmmount; // add it to the balance\r\n\t}",
"public void deposit (double amount) \r\n {\r\n\r\n balance += amount;\r\n System.out.println (\"Deposit into account shs: \" + account);\r\n System.out.println (\"Standing Amount: \" + amount);\r\n System.out.println (\"Current balance: \" + balance);\r\n System.out.println ();\r\n\r\n }",
"public Person reduceDebt(Float returnedMoney){\n this.debt += returnedMoney;\n return this;\n }",
"public boolean deposit(long id, String password, String currency, double amount);",
"public void takeoutMoney (double amount) {\n if(amount >= 2.0) {\n int numberToRemove = (int) Math.min(getToonie(), amount / 2.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 2.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NToonie -= numberToRemove;\n amount -= 2.0 * numberToRemove;\n }\n if(amount >= 1.0) {\n int numberToRemove = (int) Math.min(getLoonie(), amount / 1.0);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 1.0) {\n coins.remove(j);\n break;\n }\n }\n }\n NLoonie -= numberToRemove;\n amount -= 1.0 * numberToRemove;\n }\n if(amount >= 0.25) {\n int numberToRemove = (int) Math.min(getQuarter(), amount / 0.25);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.25) {\n coins.remove(j);\n break;\n }\n }\n }\n NQuarter -= numberToRemove;\n amount -= 0.25 * numberToRemove;\n }\n if(amount >= 0.1) {\n int numberToRemove = (int) Math.min(getDime(), amount / 0.1);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.1) {\n coins.remove(j);\n break;\n }\n }\n }\n NDime -= numberToRemove;\n amount -= 0.1 * numberToRemove;\n }\n if(amount >= 0.05) {\n int numberToRemove = (int) Math.min(getNickel(), amount / 0.05);\n for(int i = 0; i < numberToRemove; i++) {\n for(int j = 0; j < coins.size(); j++) {\n if(coins.get(j).getValue() == 0.05) {\n coins.remove(j);\n break;\n }\n }\n }\n NNickel -= numberToRemove;\n amount -= 0.05 * numberToRemove;\n }\n }",
"public void dispenseMoney(float withdrawAmount, float totalBills, int[] bill, int[] availableAmount) {\n\t\tint amount, remain;\n\t\tString plural;\n\t\tfor(int i = 0; i < bill.length; i++){\n\t\t\tif (withdrawAmount >= bill[i]){\n\t\t\t\tamount = (int) withdrawAmount / bill[i];\n\t\t\t\tremain = (int) withdrawAmount % (amount * bill[i]);\n\n\t\t\t\tavailableAmount[i] -= amount;\n\t\t\t\ttotalBills -= bill[i] * amount; \n\t\t\t\tplural = ((amount > 1) ? \"s\" : \"\");\n\t\t\t\tSystem.out.println(amount + \" bill\" + plural + \" $\" + bill[i]);\n\n\t\t\t\tif (remain == 0){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\twithdrawAmount = remain;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\t}",
"boolean deposite(double amount);",
"public void debit(float f){\n\t\taccount.debit(f);\n\t\tSystem.out.println(\"\\t- \"+ f + \" euros are debited from \" + this + \" account whose balance is now \" +account);\n\t\t\n\t}",
"public void deposit(long amount) {\n\t\n\tbalance += amount;\n\t\n\tlog += \"Deposit made to this account in the ammount of \"+amount+\" on \"+date+\"\\n\";\n\tlog += log += \" Current balance is \"+balance+\" \\n\";\n\tupdate();\n}",
"public void deposit(double depAmnt){\n try {\n String queryStr = \"update dummybank set amount = ? where accountNo = ?\";\n ps = con.prepareStatement(queryStr);\n ps.setDouble(1,this.amnt + depAmnt );\n ps.setString(2, accNo);\n ps.executeUpdate();\n } catch (SQLException ex) {\n Logger.getLogger(BankDBConnector.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public double deposit(double amount){\n double total=amount;\n if(type.equals(\"TMB\"));total=-0.5;\n currentBalance+=total;\n return currentBalance;\n }",
"public abstract boolean deposit(float amount);",
"@Override\n\tvoid deposit(double amount) {\n\t\tsuper.balance += amount - 20;\n\t}",
"private Account debitAmount(String accountNumber, BigDecimal amt) throws TransferServiceException\n\t{\n\t\tAccount account = repository.findByAccountNumber(accountNumber);\n\t\tisAccountValid(account);\n\t\taccount.setBalance(getBalance(accountNumber).subtract(amt));\n\t\treturn account;\n\t}",
"@Override\r\n\tpublic boolean deopsit(double amount) {\n\t\ttry {\r\n\t\t\tif (accountStatus.equals(AccountStatus.ACTIVE)) {\r\n\t\t\t\tbalance = (float) (balance + amount);\r\n\t\t\t} else {\r\n\t\t\t\tthrow new AccountInactiveException(\"You'er Account is not Active !\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tSystem.err.println(e.getMessage());\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void deposit(int amount)\n {\n setBalance(getBalance()+amount);\n }",
"@Test\n\tpublic void testDeductMoney() {\n\t\tcard.addMoney(500);\n\t\tcard.deductMoney(200);\n\t\tassertEquals(400.0, card.getBalance());\n\t}",
"private void makeDeposit() {\n\t\t\r\n\t}",
"@Override\n public void deposit(double amount) {\n try {\n doDepositing(amount);\n } catch (BankException e) {\n System.out.println(e.getMessage());\n }\n }",
"@Override\n\tpublic void withdraw(int money) {\n\t\t\n\t}",
"@Override\n public void deposit(double amount) {\n double balance = getBalance();\n setBalance(balance+amount);\n }",
"public void claimDollars() {\n if (totalSpent >= 5000) {\n airlineDollars += ( ((totalSpent - (totalSpent % 5000)) / 5000) * 400);\n totalSpent = totalSpent % 5000;\n }\n }",
"void depositByCheque(double amount) {\n\t\tif (isSuspended()) {\n\t\t\tSystem.out.println(\"Account is suspended.\");\n\t\t\treturn;\n\t\t}\n\t\tif (amount <= 0) {\n\t\t\tSystem.out.println(\"Amount must be more than 0.\");\n\t\t\tSystem.out.println(\"Depositing failed.\");\n\t\t\treturn;\n\t\t}\n\t\tcheque += amount;\n\t\tSystem.out.println(\"Deposit cheque \" + amount + \" successfully\");\n\t}",
"public void deposit(double amount)\n {\n balanceChangeLock.lock();\n try\n {\n System.out.print(\"Depositando \" + amount);\n double newBalance = balance + amount;\n System.out.println(\", novo saldo igual a \" + newBalance);\n balance = newBalance;\n sufficientFundsCondition.signalAll();\n }\n finally\n {\n balanceChangeLock.unlock();\n }\n }",
"@Override //nadpisanie - adnotacja, wskazówka\n public int withdraw(int cash) {\n super.balance -=cash;\n return cash;\n }",
"public void deposit(int depositAmount)\r\n {\n this.balance += depositAmount;\r\n System.out.println(\"Deposit of \" + depositAmount + \" made. New Balance is \" + this.balance);\r\n }",
"@Override\r\n\tpublic double calculate(double account, double money) {\n\t\treturn account-money;\r\n\t}",
"@Override\n public void deposit(double amount) {\n super.deposit(amount);\n store_trans(amount);\n }",
"public void deposit(double depositAmount) {\n if (depositAmount < 0) throw new IllegalArgumentException(\"Deposit Amount cannot be negative\");\n balance += depositAmount;\n ++numDeposits;\n }",
"@Override\n protected void withdraw(int request, boolean isOverdraft){\n if(request>0){\n request += SERVICE_FEE;\n }\n //need to change both balances just in case there was a LARGE_DEPOSIT \n //making it so that the 2 balance values differ\n setBalance(getBalance() - request);\n setBalanceAvailable(getBalanceAvailable() - request);\n }",
"void deposit() {\n System.out.println(\"Enter the amount to deposit : \");\n int deposit = scan.nextInt();\n balance += deposit;\n }",
"@Override\n\tpublic void deposit(double d) {\n\t\tsuper.deposit(d);\n\t\tSystem.out.println(\"Checking deposit made: \" + d);\n\t}",
"public void deposit(double amount){\n if (isFrozen == true){\n return;\n }\n if (UserAccount.isAmountValid(amount) == false){\n throw new IllegalArgumentException(\"Amount entered is not possible to be deposited\");\n }\n else{\n balance += amount;\n savingTransactions[arrayLocation]= \"Deposit into savings account of the amount: \" + String.valueOf(amount);\n arrayLocation++;\n }\n }",
"public void deposit (double amount) {\r\n\t\t\r\n\t\tbalance=balance+amount;\r\n\t\tif(balance > 0) {\r\n\t\t\t\r\n\t\t\toverDrawn = false;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void deposit( double amount ) throws Exception\n\t{\n // TODO\n // deposit amount of money, if it is legal/valid amount\n\t\tif(amount >= 0.0)\n\t\t\tbalance += amount;\n\t\telse\n\t\t\tthrow new Exception(\"Invalid Deposite Amount\");\n\t}",
"void deposit (double depositAmount, String userName) {\n\t\tBankAccountRepositoryJdbc bar = new BankAccountRepositoryJdbc();\n\t\tbalance = bar.getBalance(userName);\n\t\t\n\t\ttry {\n\t\t\tif(depositAmount != 0) {\n\t\t\t\tif(depositAmount > 0) {\n\t\t\t\t\tbalance = balance+depositAmount;\n\t\t\t\t\taccount.setBalance(balance);\n\t\t\t\t\taccount.setUsername(userName);\n\t\t\t\t\tbar.updateAccount(account);\n\t\t\t\t} else {\n\t\t\t\t\tthrow new NegativeAmountDepositException (\"You attempted to deposit a negative amount.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (NegativeAmountDepositException e) {\n\t\t\tLOGGER.info(e);\n\t\t}\n\t}",
"public void deposit (int amount){\n if(amount>=3000){\n super.deposit(amount+200);\n } else {\n super.deposit(amount);\n }\n }",
"public int depositCash(int cash, int ubalance)\n {\n\n ubalance += cash;\n return ubalance;\n }",
"public void DeductCharges () {\r\n\r\n\t\tdouble Temp = 0;\r\n\r\n\t\tfor ( Map.Entry<String, Double> CA : _ChargeAmounts.entrySet() ) {\r\n\r\n\t\t\tTemp += CA.getValue();;\r\n\r\n\t\t}\r\n\r\n\t\t_MonthlyChargeAmounts.put( _Tick.getMonthNumber(), Temp );\r\n\r\n\t\t_FundValue -= Temp;\r\n\r\n\t\tSystem.out.println( \"\\t\\t\\t \" + _Name + \" After Charges : \" + _FundValue );\r\n\t}",
"void depos() \r\n{\r\nScanner sc4 = new Scanner(System.in);\r\nSystem.out.print(\"Please enter the amount to deposit:\");\r\nint depos = sc4.nextInt();\r\nmoney[x] = money[x] + depos;\r\nSystem.out.println(\"The Amount \"+depos+\" has been Deposited successfully!\");\r\nSystem.out.println(\"The Current Balance is:\"+money[x]);\r\n}",
"@Override\r\n\tpublic void deposit() {\n\t\tSystem.out.println(\"This Deposit value is from Axisbank class\");\r\n\t\t//super.deposit();\r\n\t}",
"int getMoney();",
"public void payEconomical() {\n if (this.balance >= 2.50) {\n this.balance -= 2.50;\n }\n }",
"double getUnpaidAmount();",
"public void deposit() throws IOException, ClassNotFoundException {\r\n System.out.println(\"Enter an amount to deposit \");\r\n float depositedAmount = (float)this.input.nextDouble();\r\n if (depositedAmount < 5.0F) {\r\n System.out.println(\"enter amount greater or equal to N$ 5\");\r\n this.repeatDeposit(); // Calling the Mentioned Function\r\n }\r\n\r\n this.balance += depositedAmount;\r\n this.transaction = depositedAmount;\r\n System.out.println(\"You have Successfully Deposited: N$\" + this.transaction);\r\n System.out.printf(\"New Balance: N$%.2f\", this.balance);\r\n this.repeatDeposit(); // Calling the Mentioned Function\r\n this.coinDisbursed(); // Calling the Mentioned Function\r\n }",
"public void deposit(double amount) {\n balance += amount;\n \n try {\n \n Class.forName(\"net.ucanaccess.jdbc.UcanaccessDriver\");\n \n // Load Driver\n String connURL=\"jdbc:ucanaccess://c:/Users/Ellen/Documents/CIST2373/ChattBankMDB.mdb\";\n \n // Get Connection\n Connection con = DriverManager.getConnection(connURL);\n \n // Create Statement\n Statement stmt = con.createStatement();\n \n // Create sql string \n String sql = \"Update Accounts set Balance = \"+getBalance()+ \n \" where AcctNo='\"+getAcctNo()+\"'\";\n \n // Check for properly formed sql\n System.out.println(sql);\n \n // Execute Statement\n int n = stmt.executeUpdate(sql);\n if (n == 1)\n System.out.println(\"Update was successful!\");\n else\n System.out.println(\"Update failed!\"); \n \n // Close Connection\n con.close(); \n } //end try\n \n catch (Exception err) {\n System.out.println(\"Error: \" + err);\n } //end catch\n }",
"public int deposit(int amount) {\n\n balance += amount;\n System.out.println(\"--------------------------------------------\\n\" +\n \"* Your new balance is \" + this.balance + \" *\\n\" +\n \"--------------------------------------------\\n\");\n return balance;\n\n }",
"public void debitar(int valor) throws SaldoInsuficienteException{\r\n this.contaCorrente.debitar(valor);\r\n }",
"public void deposit(int amountToDeposit) {\n if (amountToDeposit > 0) {\n balance = balance + amountToDeposit;\n }\n }",
"private void doDeposit() {\n System.out.println(\"How much do you want to deposit?\");\n boolean keepgoing = true;\n int amount = -1;\n while (keepgoing) {\n amount = input.nextInt();\n if (amount > 0) {\n keepgoing = false;\n pickedAccount.deposit(amount);\n }\n }\n System.out.println(\"deposited \" + amount + \" $\");\n }",
"void setExpenses(double amount);"
] | [
"0.7568161",
"0.72843695",
"0.7246718",
"0.7190314",
"0.7119765",
"0.7028102",
"0.6921008",
"0.6867287",
"0.685498",
"0.6854115",
"0.68163395",
"0.68092453",
"0.6788036",
"0.6781404",
"0.6755267",
"0.6753179",
"0.6747139",
"0.6712431",
"0.66882646",
"0.66791886",
"0.6669067",
"0.66590315",
"0.6652054",
"0.66290134",
"0.661537",
"0.6611678",
"0.66070646",
"0.66014993",
"0.6589088",
"0.65606976",
"0.65597296",
"0.65578586",
"0.6550918",
"0.65228456",
"0.6510158",
"0.65016997",
"0.6482216",
"0.647591",
"0.6473903",
"0.6469719",
"0.6468454",
"0.6464095",
"0.6464095",
"0.64553314",
"0.6451414",
"0.64210486",
"0.641862",
"0.64139",
"0.64075947",
"0.64043397",
"0.64040303",
"0.63990945",
"0.6397082",
"0.6386267",
"0.63719296",
"0.6371333",
"0.63704675",
"0.634069",
"0.6330524",
"0.63214016",
"0.6319657",
"0.63169086",
"0.631143",
"0.630916",
"0.63036233",
"0.6287682",
"0.6282244",
"0.6278442",
"0.6275516",
"0.62751126",
"0.62482893",
"0.62449765",
"0.62364113",
"0.62317145",
"0.6212875",
"0.61939555",
"0.6184704",
"0.61809146",
"0.6177391",
"0.61767",
"0.6167999",
"0.61642253",
"0.6163257",
"0.6161338",
"0.61518115",
"0.61487097",
"0.6146068",
"0.6123589",
"0.6122032",
"0.61144525",
"0.61087847",
"0.6106716",
"0.6103541",
"0.6098658",
"0.6082475",
"0.6062079",
"0.605999",
"0.60550606",
"0.6054506",
"0.6054484"
] | 0.6411787 | 48 |
TODO Autogenerated method stub | @Override
public void classroom() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void lab() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void conferenceroom() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"private stendhal() {\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.66708666",
"0.65675074",
"0.65229905",
"0.6481001",
"0.64770633",
"0.64584893",
"0.6413091",
"0.63764185",
"0.6275735",
"0.62541914",
"0.6236919",
"0.6223816",
"0.62017626",
"0.61944294",
"0.61944294",
"0.61920846",
"0.61867654",
"0.6173323",
"0.61328775",
"0.61276996",
"0.6080555",
"0.6076938",
"0.6041293",
"0.6024541",
"0.6019185",
"0.5998426",
"0.5967487",
"0.5967487",
"0.5964935",
"0.59489644",
"0.59404725",
"0.5922823",
"0.5908894",
"0.5903041",
"0.5893847",
"0.5885641",
"0.5883141",
"0.586924",
"0.5856793",
"0.58503157",
"0.58464456",
"0.5823378",
"0.5809384",
"0.58089525",
"0.58065355",
"0.58065355",
"0.5800514",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57912874",
"0.57896614",
"0.5789486",
"0.5786597",
"0.5783299",
"0.5783299",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5773351",
"0.5760369",
"0.5758614",
"0.5758614",
"0.574912",
"0.574912",
"0.574912",
"0.57482654",
"0.5732775",
"0.5732775",
"0.5732775",
"0.57207066",
"0.57149917",
"0.5714821",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57132614",
"0.57115865",
"0.57045746",
"0.5699",
"0.5696016",
"0.5687285",
"0.5677473",
"0.5673346",
"0.56716853",
"0.56688815",
"0.5661065",
"0.5657898",
"0.5654782",
"0.5654782",
"0.5654782",
"0.5654563",
"0.56536144",
"0.5652585",
"0.5649566"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void placementcell() {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
TODO Autogenerated method stub | @Override
public void runMBA() {
} | {
"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 |
// calculate current aspect ratio double dy = (double) this.getHeight() / this.imageHeight; int currentWidth, currentHeight; // logger.debug("PAINT dx: " + dx + " / dy: " + dy + " \t>SCALE by Y"); currentWidth = (int) (this.imageWidth dy); currentHeight = this.getHeight(); return new Dimension(currentWidth, currentHeight); | @Override
public Dimension getPreferredSize() {
return new Dimension((int) (this.getHeight() * 0.8), this.getHeight());
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void getImgSize(){\n imgSizeX = 1080; //mAttacher.getDisplayRect().right - mAttacher.getDisplayRect().left;\n imgSizeY = 888.783f; //mAttacher.getDisplayRect().bottom - mAttacher.getDisplayRect().top;\n }",
"private void refreshDimensions() {\n //tamano del canvas\n targetWidth = canvasWidth;\n targetHeight = canvasHeight;\n//de las imagenes\n sourceWidth = bitmap.getWidth();\n sourceHeight = bitmap.getHeight();\n\n double targetRatio = (double) targetWidth / (double) targetHeight;\n double sourceRatio = (double) sourceWidth / (double) sourceHeight;\n\n targetOffsetX = 0;\n targetOffsetY = 0;\n\n if(sourceRatio > targetRatio)\n {\n int newTargetHeight = (int) (targetWidth / sourceRatio);\n int delta = targetHeight - newTargetHeight;\n targetOffsetY = delta / 2;\n targetHeight = newTargetHeight;\n }\n else if(sourceRatio < targetRatio)\n {\n int newTargetWidth = (int) (targetHeight * sourceRatio);\n int delta = targetWidth - newTargetWidth;\n targetOffsetX = delta / 2;\n targetWidth = newTargetWidth;\n }\n\n puzzleWidth = slidePuzzle.getWidth();\n puzzleHeight = slidePuzzle.getHeight();\n\n targetColumnWidth = targetWidth / puzzleWidth;\n targetRowHeight = targetHeight / puzzleHeight;\n sourceColumnWidth = sourceWidth / puzzleWidth;\n sourceRowHeight = sourceHeight / puzzleHeight;\n }",
"private void updateImageScale() {\r\n\t\t//Check which dimension is larger and store it in this variable.\r\n\t\tint numHexLargestDimension = this.numHexRow;\r\n\t\tif (this.totalHexWidth > this.totalHexHeight) {\r\n\t\t\tnumHexLargestDimension = this.numHexCol;\r\n\t\t}\r\n\t\t\r\n\t\tif (numHexLargestDimension < 35) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 16.5) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 7){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 70) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 22.2) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() \r\n\t\t\t\t\t* (this.numHexCol / 2) > 14.5){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if (numHexLargestDimension < 105) {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 32.6) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 21){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse {\r\n\t\t\tif (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 44.4) {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.LARGE;\r\n\t\t\t} else if (this.zoomer.getZoomScale() * (this.numHexCol / 2) > 28){\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.MEDIUM;\r\n\t\t\t} else {\r\n\t\t\t\tthis.currentImageScale = ImageDrawScales.SMALL;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\n\tpublic int[] getImageScaleDrawing() {\n\t\treturn new int[] {\n\t\t\t\t80, 80\n\t\t};\n\t}",
"protected double computePrefWidth(double aHeight) { return getWidth(); }",
"public double getAspect ()\r\n {\r\n return (double) getLength() / (double) getThickness();\r\n }",
"private float getNewScale() {\n int width = getWidth() - (padding[0] + padding[2]);\n float scaleWidth = (float) width / (cropRect.right - cropRect.left);\n\n int height = getHeight() - (padding[1] + padding[3]);\n float scaleHeight = (float) height / (cropRect.bottom - cropRect.top);\n if (getHeight() > getWidth()) {\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }\n return scaleWidth < scaleHeight ? scaleWidth : scaleHeight;\n }",
"private Image adjust(Image orig) {\r\n \r\n int iw = orig.getWidth(this);\r\n int ih = orig.getHeight(this);\r\n \r\n Insets i = getInsets();\r\n int cw = getSize().width-i.left-i.right; // Canvas width\r\n int ch = getSize().height-i.top-i.bottom; // Canvas height\r\n\r\n if (iw > cw || ih > ch) {\r\n // scale\r\n \r\n double scaleW = 1.0 * cw / iw;\r\n double scaleH = 1.0 * ch / ih;\r\n \r\n if (scaleW < scaleH) {\r\n // Fit width\r\n wx1 = i.left;\r\n wx2 = cw - 1;\r\n \r\n int nH = (int) (ih * scaleW);\r\n\r\n wy1 = (ch - nH) / 2;\r\n wy2 = wy1 + nH - 1;\r\n } else {\r\n // Fit height\r\n \r\n int nW = (int) (iw * scaleH);\r\n\r\n wx1 = (cw - nW) / 2;\r\n wx2 = wx1 + nW - 1;\r\n \r\n wy1 = i.top;\r\n wy2 = ch - 1;\r\n }\r\n /*\r\n System.out.println(\r\n \"ADJUST sCALE: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */ \r\n return orig.getScaledInstance(wx2 - wx1, wy2 - wy1,\r\n Image.SCALE_DEFAULT);\r\n } else {\r\n // center\r\n wx1 = (cw - iw) / 2;\r\n wy1 = (ch - ih) / 2;\r\n wx2 = wx1 + iw - 1;\r\n wy2 = wy1 + ih - 1;\r\n\r\n /*\r\n System.out.println(\r\n \"ADJUST cENTER: \" + wx1 + \"@\" + wy1 + \" => \" + wx2 + \"@\"\r\n + wy2);\r\n */\r\n return orig;\r\n }\r\n\r\n }",
"public Dimension getPreferredSize()\n{ \n Dimension d=new Dimension(gRectangle.width+2*GC_CANVAS_HORIZ_GAP,\n gRectangle.height+2*GC_CANVAS_VERT_GAP);\n return d;\n}",
"private Image getScaledImage(BufferedImage srcImg, int w, int h) {\n\t\tint srcWidth = srcImg.getWidth();\n\t\tint srcHeight = srcImg.getHeight();\n\t\tint diffWidth = w - srcWidth;\n\t\tint diffHeight = h - srcHeight;\n\t\tif (diffWidth < diffHeight) {\n\t\t\tdouble ratio = (double) w / (double) srcWidth;\n\t\t\th = (int) Math.round(srcHeight * ratio);\n\t\t} else {\n\t\t\tdouble ratio = (double) h / (double) srcHeight;\n\t\t\tw = (int) Math.round(srcWidth * ratio);\n\t\t}\n\t\tBufferedImage resizedImg = new BufferedImage(w, h,\n\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g2 = resizedImg.createGraphics();\n\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\n\t\t\t\tRenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\tg2.drawImage(srcImg, 0, 0, w, h, null);\n\t\tg2.dispose();\n\t\treturn resizedImg;\n\t}",
"private Image getScaledImage(Image srcImg, int w, int h){\n BufferedImage resizedImg = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = resizedImg.createGraphics();\n\n g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n g2.drawImage(srcImg, 0, 0, w, h, null);\n g2.dispose();\n\n return resizedImg;\n }",
"protected double computePrefHeight(double aWidth) { return getHeight(); }",
"public float getAspectRatio() {\n\t\treturn this.aspectRatio;\n\t}",
"public abstract BufferedImage scale(Dimension destinationSize);",
"public double getPerimiter(){return (2*height +2*width);}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public Dimension getSize()\n\t{\n\t\treturn new Dimension(image.getWidth(),image.getHeight());\n\t}",
"@Override\n public Dimension getPreferredSize()\n {\n return new Dimension(this.bufferedImage.getWidth(), \n this.bufferedImage.getHeight());\n }",
"public float getAspectRatio()\n\t{\n\t\tif (this._width != 0 && this._height != 0)\n\t\t{\n\t\t\treturn (((float) this._width) / ((float) this._height));\n\t\t}\n\t\treturn 0f;\n\t}",
"private Dimension calculateCanvas() {\n \t\n \tint maxx=50;\n \tint minx=0;\n \tint maxy=50;\n \tint miny=0;\n \t\n \tVector v=Selector.getInstance().getAllEntitiesOnPanel();\n \tfor (int i=0; i<v.size(); i++) {\n \t\tEntity e =(Entity)v.elementAt(i);\n \t\tmaxx=Math.max(maxx,e.getX()+e.getWidth()+20);\n \t\tmaxy=Math.max(maxy,e.getY()+e.getHeight()+20);\n \t\tminx=Math.min(minx,e.getX()-20);\n \t\tminy=Math.min(miny,e.getY()-20);\n \t}\n \treturn new Dimension(maxx-minx,maxy-miny);\n }",
"public abstract int getHeight(int pWidth);",
"private BufferedImage scale(BufferedImage sourceImage) {\n GraphicsEnvironment graphicsEnvironment = GraphicsEnvironment.getLocalGraphicsEnvironment();\n GraphicsDevice graphicsDevice = graphicsEnvironment.getDefaultScreenDevice();\n GraphicsConfiguration graphicsConfiguration = graphicsDevice.getDefaultConfiguration();\n BufferedImage scaledImage = graphicsConfiguration.createCompatibleImage(IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n Graphics2D newGraphicsImage = scaledImage.createGraphics();\n newGraphicsImage.setColor(Color.white);\n newGraphicsImage.fillRect(0, 0, IMAGE_DIMENSION, IMAGE_DIMENSION);\n\n double xScale = (double) IMAGE_DIMENSION / sourceImage.getWidth();\n double yScale = (double) IMAGE_DIMENSION / sourceImage.getHeight();\n AffineTransform affineTransform = AffineTransform.getScaleInstance(xScale,yScale);\n newGraphicsImage.drawRenderedImage(sourceImage, affineTransform);\n newGraphicsImage.dispose();\n\n return scaledImage;\n }",
"private Image getScaledImage(Image sourceImage)\n {\n //create storage for the new image\n BufferedImage resizedImage = new BufferedImage(50, 50,\n BufferedImage.TYPE_INT_ARGB);\n\n //create a graphic from the image\n Graphics2D g2 = resizedImage.createGraphics();\n\n //sets the rendering options\n g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,\n RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\n //copies the source image into the new image\n g2.drawImage(sourceImage, 0, 0, 50, 50, null);\n\n //clean up\n g2.dispose();\n\n //return 50 x 50 image\n return resizedImage;\n }",
"@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t\t\tg2d.translate(this.getWidth() / 2, this.getHeight() / 2);\n\t\t\t\tg2d.translate(-image.getWidth(null) / 2, -image.getHeight(null) / 2);\n\t\t\t\tg2d.drawImage(image, 0, 0, null);\n\t\t\t}",
"private static void copyArea(BufferedImage image, int x, int y, int width, int height, int dx, int dy) {\n/* 158 */ Graphics2D g = (Graphics2D)image.getGraphics();\n/* */ \n/* 160 */ g.drawImage(image.getSubimage(x, y, width, height), x + dx, y + dy, null);\n/* */ }",
"private float getRoughPixelSize() {\n\n\t\tfloat size = 380; // mm\n\t\tfloat pixels = getHeight();\n\t\treturn pixels > 0 ? size / pixels : 0;\n\n\t}",
"private void updateDimensions() {\r\n width = gui.getWidth();\r\n height = gui.getHeight();\r\n yLabelsMargin = (int) gui.getLabelWidth(Integer.toString(((int) maximumDB / 10) * 10), true) + 2;\r\n if (track != null)\r\n scaleXpx = ((float) width - yLabelsMargin) / track.getBufferCapacity();\r\n else\r\n scaleXpx = 1;\r\n scaleYpx = (float) ((height - 1) / (maximumDB - minimumDB));\r\n if (scaleYpx == 0)\r\n scaleYpx = 1;\r\n }",
"public void initSize() {\n WIDTH = 320;\n //WIDTH = 640;\n HEIGHT = 240;\n //HEIGHT = 480;\n SCALE = 2;\n //SCALE = 1;\n }",
"public Dimension getSize ( )\r\n\t{\r\n\t\treturn new Dimension ( BORDER_X*2 + SQUARE_SIZE*size, BORDER_Y*2 + SQUARE_SIZE*size );\r\n\t}",
"@Override\n\tpublic Dimension getPreferredSize() {\n\t\tif (image == null) {\n\t\t\treturn new Dimension(100, 100);\n\t\t} else {\n\t\t\treturn new Dimension(image.getWidth(), image.getHeight());\n\t\t}\n\t}",
"double getArea(){\n return height*width;\n }",
"private void ScaleImage(){\n\t\tBufferedImage resizedImage = new BufferedImage(this.getWidth(), this.getHeight(), BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g2 = resizedImage.createGraphics();\n\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n\t\tg2.drawImage(image, 0, 0, this.getWidth(), this.getHeight(), null);\n\t\tg2.dispose();\n\t\tthis.image = resizedImage;\n\t}",
"public int getImageWidth() {\n\treturn width;\n }",
"public void scaleBitmap(int newWidth, int newHeight) {\n\t\t// Technically since we always keep aspect ratio intact\n\t\t// we should only need to check one dimension.\n\t\t// Need to investigate and fix\n\t\tif ((newWidth > mMaxWidth) || (newHeight > mMaxHeight)) {\n\t\t\tnewWidth = mMaxWidth;\n\t\t\tnewHeight = mMaxHeight;\n\t\t}\n\t\tif ((newWidth < mMinWidth) || (newHeight < mMinHeight)) {\n\t\t\tnewWidth = mMinWidth;\n\t\t\tnewHeight = mMinHeight;\t\t\t\n\t\t}\n\n\t\tif ((newWidth != mExpandWidth) || (newHeight!=mExpandHeight)) {\t\n\t\t\t// NOTE: depending on the image being used, it may be \n\t\t\t// better to keep the original image available and\n\t\t\t// use those bits for resize. Repeated grow/shrink\n\t\t\t// can render some images visually non-appealing\n\t\t\t// see comments at top of file for mScaleFromOriginal\n\t\t\t// try to create a new bitmap\n\t\t\t// If you get a recycled bitmap exception here, check to make sure\n\t\t\t// you are not setting the bitmap both from XML and in code\n\t\t\tBitmap newbits = Bitmap.createScaledBitmap(mScaleFromOriginal ? mOriginal:mImage, newWidth,\n\t\t\t\t\tnewHeight, true);\n\t\t\t// if successful, fix up all the tracking variables\n\t\t\tif (newbits != null) {\n\t\t\t\tif (mImage!=mOriginal) {\n\t\t\t\t\tmImage.recycle();\n\t\t\t\t}\n\t\t\t\tmImage = newbits;\n\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\tmExpandHeight=newHeight;\n\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\n\t\t\t\tmRightBound = mExpandWidth>mViewWidth ? 0 - (mExpandWidth - mViewWidth) : 0;\n\t\t\t\tmBottomBound = mExpandHeight>mViewHeight ? 0 - (mExpandHeight - mViewHeight) : 0;\n\t\t\t}\t\t\t\t\t\t\t\n\t\t}\n\t}",
"public void paint(Graphics graphics)\r\n/* 30: */ {\r\n/* 31:27 */ Graphics2D g = (Graphics2D)graphics;\r\n/* 32:28 */ int height = getHeight();\r\n/* 33:29 */ int width = getWidth();\r\n/* 34: */ }",
"public int getSizeY() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn sizeY;\r\n}",
"public PictureScaler() {\r\n try {\r\n URL url = getClass().getResource(\"images/BB.jpg\");\r\n picture = ImageIO.read(url);\r\n scaleW = (int)(SCALE_FACTOR * picture.getWidth());\r\n scaleH = (int)(SCALE_FACTOR * picture.getHeight());\r\n System.out.println(\"w, h = \" + picture.getWidth() + \", \" + picture.getHeight());\r\n setPreferredSize(new Dimension(PADDING + (5 * (scaleW + PADDING)), \r\n scaleH + (4 * PADDING)));\r\n } catch (Exception e) {\r\n System.out.println(\"Problem reading image file: \" + e);\r\n System.exit(0);\r\n }\r\n }",
"public BufferedImage modifyDimensions(int width, int height){\n\t\t return new BufferedImage((2* width)-1 , (2*height)-1, BufferedImage.TYPE_INT_RGB); \n\t }",
"double getArea() {\n return width * height;\n }",
"public Dimension getPreferredSize() {\r\n if (img == null) {\r\n return new Dimension(100, 100);\r\n } else {\r\n // make sure the window is not two small to be seen\r\n return new Dimension(Math.max(100, img.getWidth(null)),\r\n Math.max(100, img.getHeight(null)));\r\n }\r\n }",
"public void paint(Graphics g) {\n\t\tsuper.paint(g);\r\n\r\n\t\t// System.out.println(\"getimage1\");\r\n\t\tGraphics2D gd = (Graphics2D) g;\r\n\t\tint h = img.getHeight();\r\n\t\tint w = img.getWidth();\r\n\t\tint x1 = 0, x2 = 0, x3 = 0, x4 = 0;\r\n\t\tif (h < 550 && w < 1250) {\r\n\t\t\tx1 = (1250 - w) / 2;\r\n\t\t\tx2 = (550 - h) / 2;\r\n\t\t\tx3 = w;\r\n\t\t\tx4 = h;\r\n\t\t\t\r\n\t\t} else if (h < 550 && w >= 1250) {\r\n\t\t\tx1 = 20;\r\n\t\t\tx2 = (550 - h) / 2;\r\n\t\t\tx3 = 1250;\r\n\t\t\tx4 = (int) (h * (1250.0 / w));\r\n\t\t\tx2 = (550 - x4) / 2;\r\n\t\t\r\n\t\t} else if (h >= 550 && w < 1250) {\r\n\t\t\t\r\n\t\t\tx1=(1250-w)/2;\r\n\t\t\tx2=50;\r\n\t\t\tx3=(int) (w*(550.0/h));\r\n\t\t\tx1=(1250-x3)/2;\r\n\t\t\tx4=550;\r\n\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tx3=(int) (w*(550.0/h));\r\n\t\t\tx4=550;\r\n\t\t\tif(x3>1250)\r\n\t\t\t{\r\n\t\t\t\tx3=1200;\r\n\t\t\t\t\tx4 = (int) (h * (1250.0 / x3));\r\n\t\t\t}\r\n\t\t\tx1 = (1250 - x3) / 2;\r\n\t\t\t\r\n\t\t\tx2 = (550 - x4) / 2;\r\n\t\t\tx2=50;\r\n\t\t\t//.out.println(x2);\r\n\t\t\t\r\n\t\t}\r\n\t\t// System.out.println(y1);\r\n\t\t// gd.drawImage(img, AffineTransform.getScaleInstance(x1, x1), null);\r\n\t\r\n\t\tgd.drawImage(img, x1, x2, x3, x4, null);\r\n\t\t\r\n\t\r\n\t}",
"public void majIHM(){\n this.image.setFitWidth(this.getHeight()-10);\n this.image.setFitHeight(this.getHeight()-10);\n }",
"public int getImageHeight() {\n\treturn height;\n }",
"@Override \r\n public void onWindowFocusChanged(boolean hasFocus) {\n super.onWindowFocusChanged(hasFocus); \r\n //获取ImageView组件的宽高 \r\n imageWidth = image_all.getWidth(); \r\n imageHeight = image_all.getHeight(); \r\n \r\n //计算每次自增自减的值 \r\n addWidth = imageWidth / 5; \r\n addHeight = imageHeight / 5; \r\n }",
"public int getPixelSize() {\n\t\treturn pixelSize;\n\t}",
"static Double computeArea() {\n // Area is height x width\n Double area = height * width;\n return area;\n }",
"public abstract double getBaseHeight();",
"public int getHeight(){ return heightRadius; }",
"public float getEqualizationScale() {\n return Gdx.graphics.getWidth() / WE.getCurrentConfig().getRenderResolutionWidth();\n }",
"public Dimension getSize() { return new Dimension(width,height); }",
"private void calculateHeightRatio() {\n\tif (texHeight != 0) {\n\t heightRatio = ((float) height) / texHeight;\n\t}\n }",
"public void ResizeActionPerformed(ActionEvent evt){\r\n int w = Integer.parseInt(imageWidth.getText());\r\n int h = Integer.parseInt(imageHeight.getText());\r\n drawingPanel.setImageSize(w, h);\r\n }",
"@Override\r\n\tprotected void onSizeChanged(int w, int h, int oldw, int oldh) {\n\t\tfloat xPad = getPaddingLeft() + getPaddingRight();\r\n\t\tfloat yPad = getPaddingTop() + getPaddingBottom();\r\n\t\tdimension = Math.min(w - xPad, (h - yPad) * 2);\r\n\t\tradius = 60;\r\n\t\tinsideLeft = w / 2 - radius;\r\n\t\tinsideRight = w / 2 + radius;\r\n\t\tinsideTop = dimension - getPaddingBottom() - radius;\r\n\t\tinsideBottom = dimension - getPaddingBottom();\r\n\t\t\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension - getPaddingBottom());\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension - getPaddingRight(), dimension/2);\r\n//\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), dimension, dimension);\r\n\t\toutRect = new RectF(getPaddingLeft(), getPaddingTop(), w-getPaddingRight(), h-getPaddingBottom());\r\n\t\tfloat insideRectDownH = dimension-getPaddingBottom()-getPaddingTop()+150;\r\n//\t\tinsideRect = new RectF(50, 300, 320, insideRectDownH);\r\n\t\tinsideRect = new RectF(w/2-radius, dimension-radius, w/2+radius, dimension+radius);\r\n\t}",
"private BufferedImage resize(Image image, int width, int height) {\n \tBufferedImage resized = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\r\n \tGraphics2D g = resized.createGraphics();\r\n \tg.drawImage(image, 0, 0, width, height, null); \r\n \tg.dispose();\r\n \treturn resized;\r\n }",
"@Override\n\tpublic void componentResized(ComponentEvent e) {\n\t\twidthAttitude=e.getComponent().getSize().getWidth()/Width;\n\t\theightAttitude=e.getComponent().getSize().getHeight()/Height;\n\t}",
"private void calculateWidthRatio() {\n\tif (texWidth != 0) {\n\t widthRatio = ((float) width) / texWidth;\n\t}\n }",
"@Override\n\tpublic void mouseWheelMoved(MouseWheelEvent e) {\n\t\tratio += ratio / (-e.getUnitsToScroll() * 10);\n\t\tif (ratio < 50.0 / current_image.getWidth()) {\n\t\t\tratio = 50.0 / current_image.getWidth();\n\t\t}\n\t\tif (ratio < 50.0 / current_image.getHeight()) {\n\t\t\tratio = 50.0 / current_image.getHeight();\n\t\t}\n\t\tint prew = w;\n\t\tint preh = h;\n\t\tw = (int) (current_image.getWidth() * ratio);\n\t\th = (int) (current_image.getHeight() * ratio);\n\t\tif (w < Monitor_Width) { // centers x\n\t\t\tx = (Monitor_Width - w) / 2;\n\t\t} else { // centers around h/2\n\t\t\tx -= (w - prew) / 2;\n\t\t\tif (x > 0)\n\t\t\t\tx = 0;\n\t\t\tif (x < Monitor_Width - w)\n\t\t\t\tx = Monitor_Width - w;\n\t\t}\n\t\tif (h < Monitor_Height) { // centers y\n\t\t\ty = (Monitor_Height - h) / 2;\n\t\t} else { // centers around h/2\n\t\t\ty -= (h - preh) / 2;\n\t\t\tif (y > 0)\n\t\t\t\ty = 0;\n\t\t\tif (y < Monitor_Height - h)\n\t\t\t\ty = Monitor_Height - h;\n\t\t}\n\t}",
"public void updateDimensions() {\n }",
"@Override // com.master.cameralibrary.CameraViewImpl\n public AspectRatio getAspectRatio() {\n return this.mAspectRatio;\n }",
"int getHeight() {return height;}",
"void setInitialImageBoundsFillScreen() {\n\t\tif (mImage != null) {\n\t\t\tif (mViewWidth > 0) {\n\t\t\t\tboolean resize=false;\n\t\t\t\t\n\t\t\t\tint newWidth=mImageWidth;\n\t\t\t\tint newHeight=mImageHeight;\n\t\t\t\n\t\t\t\t// The setting of these max sizes is very arbitrary\n\t\t\t\t// Need to find a better way to determine max size\n\t\t\t\t// to avoid attempts too big a bitmap and throw OOM\n\t\t\t\tif (mMinWidth==-1) { \n\t\t\t\t\t// set minimums so that the largest\n\t\t\t\t\t// direction we always filled (no empty view space)\n\t\t\t\t\t// this maintains initial aspect ratio\n\t\t\t\t\tif (mViewWidth > mViewHeight) {\n\t\t\t\t\t\tmMinWidth = mViewWidth;\n\t\t\t\t\t\tmMinHeight = (int)(mMinWidth/mAspect);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmMinHeight = mViewHeight;\n\t\t\t\t\t\tmMinWidth = (int)(mAspect*mViewHeight);\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t\tmMaxWidth = (int)(mMinWidth * 1.5f);\n\t\t\t\t\tmMaxHeight = (int)(mMinHeight * 1.5f);\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tif (newWidth < mMinWidth) {\n\t\t\t\t\tnewWidth = mMinWidth;\n\t\t\t\t\tnewHeight = (int) (((float) mMinWidth / mImageWidth) * mImageHeight);\n\t\t\t\t\tresize = true;\n\t\t\t\t}\n\t\t\t\tif (newHeight < mMinHeight) {\n\t\t\t\t\tnewHeight = mMinHeight;\n\t\t\t\t\tnewWidth = (int) (((float) mMinHeight / mImageHeight) * mImageWidth);\n\t\t\t\t\tresize = true;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmScrollTop = 0;\n\t\t\t\tmScrollLeft = 0;\n\t\t\t\t\n\t\t\t\t// scale the bitmap\n\t\t\t\tif (resize) {\n\t\t\t\t\tscaleBitmap(newWidth, newHeight);\n\t\t\t\t} else {\n\t\t\t\t\tmExpandWidth=newWidth;\n\t\t\t\t\tmExpandHeight=newHeight;\t\t\t\t\t\n\t\t\t\t\tmResizeFactorX = ((float) newWidth / mImageWidth);\n\t\t\t\t\tmResizeFactorY = ((float) newHeight / mImageHeight);\n\t\t\t\t\tmRightBound = 0 - (mExpandWidth - mViewWidth);\n\t\t\t\t\tmBottomBound = 0 - (mExpandHeight - mViewHeight);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Dimension getSize()\n {\n return new Dimension(300, 150);\n }",
"public Dimension getPreferredSize()\n {\n return new Dimension( FRAME_WIDTH-20, FRAME_HEIGHT-40 );\n }",
"public int getArea(){\n return imageArea;\n }",
"Dimension getCanvasDimension();",
"private ImageSize getImageViewSize(ImageView imageView) {\r\n ImageSize imageSize=new ImageSize();\r\n\r\n DisplayMetrics displayMetrics = imageView.getContext().getResources().getDisplayMetrics();\r\n ViewGroup.LayoutParams lp = imageView.getLayoutParams();\r\n //Get the actual with of the imageView.\r\n int width = imageView.getWidth();\r\n if (width <=0){\r\n //Get the imageView and declare the width of the layout.\r\n width=lp.width;\r\n }\r\n if (width<=0){\r\n //Check the maximum width of the imageView.\r\n width= getImageViewFieldValue(imageView,\"mMaxWidth\");\r\n }\r\n if (width<=0){\r\n width=displayMetrics.widthPixels;\r\n }\r\n //Get the actual height of the imageView.\r\n int height = imageView.getHeight();\r\n\r\n if (height <=0){\r\n //Get the imageView and declare the height of the layout.\r\n height=lp.height;\r\n }\r\n if (height<=0){\r\n //Check the maximum height of the imageView.\r\n height=getImageViewFieldValue(imageView,\"mMaxHeight\");\r\n }\r\n if (height<=0){\r\n height=displayMetrics.heightPixels;\r\n }\r\n imageSize.width=width;\r\n imageSize.height=height;\r\n return imageSize;\r\n }",
"@Override\n\tprotected void updatePitSize() {\n\t\tint pitWidth = (int) (this.getWidth() * RATIO);\n\t\tint pitHeight = (int) (this.getHeight() * RATIO);\n\t\tint dx = (getWidth() - pitWidth) / 2;\n\t\tint dy = (getHeight() - pitHeight) / 2;\n\t\tpit = new RoundRectangle2D.Double(dx, dy, pitWidth, pitHeight, 50, 50);\n\t}",
"abstract int calculatePreferredSize(int axis);",
"private void updateDimensions()\n\t{\n\t\tthis.drawer.setSprite(this.drawer.getSprite().withDimensions(\n\t\t\t\tgetMaster().getDimensions()));\n\t\tthis.lastDimensions = getMaster().getDimensions();\n\t}",
"BufferedImage scaledImage(BufferedImage image, int width, int height) {\r\n\t\tBufferedImage result = new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB);\r\n\t\tGraphics2D g2 = result.createGraphics();\r\n\t\tg2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\r\n\t\t\r\n\t\tdouble sx = (double)width / image.getWidth();\r\n\t\tdouble sy = (double)height / image.getHeight();\r\n\t\tdouble scale = Math.min(sx, sy);\r\n\t\tint x = (int)((width - image.getWidth() * scale) / 2);\r\n\t\tint y = (int)((height - image.getHeight() * scale) / 2);\r\n\t\t// center the image\r\n\t\tg2.drawImage(image, x, y, (int)(image.getWidth() * scale), (int)(image.getHeight() * scale), null);\r\n\t\t\r\n\t\tg2.dispose();\r\n\t\treturn result;\r\n\t}",
"private static Image resize(final Image image, final int width,\r\n final int height) {\r\n final Image scaled = new Image(Display.getDefault(), width, height);\r\n final GC gc = new GC(scaled);\r\n gc.setAntialias(SWT.ON);\r\n gc.setInterpolation(SWT.HIGH);\r\n gc.drawImage(image, 0, 0, image.getBounds().width,\r\n image.getBounds().height, 0, 0, width, height);\r\n gc.dispose();\r\n image.dispose();\r\n return scaled;\r\n }",
"@Override\n public final void paint(float delta) {\n game.graphics.drawImage(\n image,\n centerX - (width / 2),\n centerY - (height / 2),\n scale, 0);\n }",
"@Override\r\n public double perimeter() {\n return (height+width)*2;\r\n }",
"public Point2D.Double getImageCenter();",
"private void updateImageSize(float scale) {\n int w = (int) (mImageWidth * scale);\n int h = (int) (mImageHeight * scale);\n mCanvas.setCoordinateSpaceWidth(w);\n mCanvas.setCoordinateSpaceHeight(h);\n mCanvas.getContext2d().drawImage(ImageElement.as(image.getElement()), 0, 0, w, h);\n }",
"public float getWidth() {\n\treturn widthRatio;\n }",
"@Override\r\n public double area() {\n return height*width;\r\n }",
"@Override\n\tfinal public void scale(double x, double y)\n\t{\n\t\twidth *= x;\n\t\theight *= y;\n\t}",
"protected void resizeImage( Integer width, Integer height){\n \tiv1.setFitWidth(width);\n \tiv1.setFitHeight(height);\n \tiv1.setSmooth(true);\n \tiv1.setCache(true);\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public void setAspectRatio(float aspectRatio) {\n this.aspectRatio = aspectRatio;\n// float radiusX=radius/aspectRatio, radiusY=radius*aspectRatio;\n }",
"@Override\n public int getHeight() {\n return 320;\n }",
"public static BufferedImage imageScale(ImageIcon src, int w, int h) {\r\n int type = BufferedImage.TYPE_INT_RGB;\r\n BufferedImage dst = new BufferedImage(w, h, type);\r\n Graphics2D g2 = dst.createGraphics();\r\n // Fill background for scale to fit.\r\n g2.setBackground(UIManager.getColor(\"Panel.background\"));\r\n g2.clearRect(0, 0, w, h);\r\n double xScale = (double) w / src.getIconWidth();\r\n double yScale = (double) h / src.getIconHeight();\r\n // Scaling options:\r\n // Scale to fit - image just fits in label.\r\n double scale = Math.max(xScale, yScale);\r\n // Scale to fill - image just fills label.\r\n //double scale = Math.max(xScale, yScale);\r\n int width = (int) (scale * src.getIconWidth());\r\n int height = (int) (scale * src.getIconHeight());\r\n int x = (w - width) / 2;\r\n int y = (h - height) / 2;\r\n g2.drawImage(src.getImage(), x, y, width, height, null);\r\n g2.dispose();\r\n return dst;\r\n }",
"public abstract int getNormalizedHeight();",
"public float getPixelSize() {\n\n\t\tfloat pixelSize = 0;\n\t\tfloat zoom = getFloat(ADACDictionary.ZOOM);\n\n\t\t// Get calibration factor (CALB)\n\t\tString calString = extrasMap.get(ExtrasKvp.CALIB_KEY);\n\n\t\t// Some wholebody images have height > width. Typically 1024x512.\n\t\t// Crocodile eats the biggest.\n\t\tshort height = getHeight();\n\t\tshort width = getWidth();\n\t\tshort dim = height > width ? height : width;\n\n\t\tif (dim > 0 && calString != null) {\n\n\t\t\ttry {\n\n\t\t\t\tfloat cal = Float.parseFloat(calString);\n\n\t\t\t\t// Now calculate the pixel size\n\t\t\t\tpixelSize = (1024 * cal) / (dim * zoom);\n\n\t\t\t} catch (NumberFormatException e) {\n\n\t\t\t\tlogger.log(\"Unable to parse calibration factor\");\n\t\t\t\tpixelSize = getRoughPixelSize();\n\n\t\t\t}\n\t\t} else {\n\t\t\tpixelSize = getRoughPixelSize();\n\t\t}\n\n\t\treturn pixelSize;\n\n\t}",
"private Rect getMaxCenteredCropRect() {\n if (!isImageLoaded()) {\n return null;\n }\n if (aspectRatio < 0.0) {\n return getImageRect();\n } else {\n Rect imageRect = getImageRect();\n int imageHeight = imageRect.bottom - imageRect.top,\n imageWidth = imageRect.right - imageRect.left;\n if (imageHeight * aspectRatio <= imageWidth) {\n int padding = (int) ((imageWidth - (imageHeight * aspectRatio)) / 2);\n return new Rect(padding,\n 0,\n (int) ((imageHeight * aspectRatio) + padding),\n imageHeight);\n } else {\n int padding = (int) ((imageHeight - (imageWidth / aspectRatio)) / 2);\n return new Rect(0,\n padding,\n imageWidth,\n (int) ((imageWidth / aspectRatio) + padding));\n }\n }\n }",
"private static AppImage scale(AppImage image) {\n\t\treturn scale(image, GraphicsConfig.getScaleWidth(), GraphicsConfig.getScaleHeight());\n\t}",
"public void doScaling() {\n try {\n int orientation = getExifOrientation(file);\n System.out.println(file.getName());\n //Dimension d = Imaging.getImageSize(file);\n ImageInputStream imageInputStream = ImageIO.createImageInputStream(file);\n // Use a subsampled image from the original, avoids read images too large to fit in memory\n BufferedImage bufferedImage = subsampleImage(imageInputStream, TARGET_WIDTH * 2, TARGET_HEIGHT * 2);\n ImageInformation ii=new ImageInformation(orientation, bufferedImage.getWidth(), bufferedImage.getHeight());\n AffineTransform transform=getExifTransformation(ii);\n bufferedImage=transformImage(bufferedImage, transform); \n Scalr.Mode mode;\n // calculate which side will be largest/smaller\n // this works with any image size\n double scaleX=(TARGET_WIDTH*1.0)/(bufferedImage.getWidth()*1.0);\n double scaleY=(TARGET_HEIGHT*1.0)/(bufferedImage.getHeight()*1.0);\n if (scaleX<scaleY) {\n mode = Scalr.Mode.FIT_TO_WIDTH;\n } else {\n mode = Scalr.Mode.FIT_TO_HEIGHT;\n } \n \n BufferedImage thumbnail = Scalr.resize(bufferedImage,\n Scalr.Method.QUALITY,\n mode, TARGET_WIDTH, TARGET_HEIGHT,\n Scalr.OP_ANTIALIAS);\n BufferedImage combined = new BufferedImage(TARGET_WIDTH, TARGET_HEIGHT, BufferedImage.TYPE_INT_ARGB);\n int x = 0, y = 0;\n if (mode == Scalr.Mode.FIT_TO_HEIGHT) {\n x = (TARGET_WIDTH - thumbnail.getWidth()) / 2;\n }\n if (mode == Scalr.Mode.FIT_TO_WIDTH) {\n y = (TARGET_HEIGHT - thumbnail.getHeight()) / 2;\n }\n Graphics g = combined.getGraphics();\n g.setColor(new java.awt.Color(0.0f, 0.0f, 0.0f, 0.0f));\n g.fillRect(0, 0, combined.getWidth(), combined.getHeight());\n g.drawImage(thumbnail, x, y, null);\n g.dispose();\n //Writes test subsampled image taken from original\n if (saveSubSampled) {\n ImageIO.write(bufferedImage, OUTPUT_EXTENSION, new File(output));\n }\n //Writes thumbnail, created from the subsampled image.\n ImageIO.write(combined, OUTPUT_EXTENSION, new File(output_thumb));\n\n } catch (IOException ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(Scaler.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public abstract double getBaseWidth();",
"private BufferedImage scale(final BufferedImage input,\n \t\tfinal int newWidth, final int newHeight)\n \t{\n \t\tfinal int oldWidth = input.getWidth(), oldHeight = input.getHeight();\n \t\tif (oldWidth == newWidth && oldHeight == newHeight) return input;\n \n \t\tfinal BufferedImage output =\n \t\t\tnew BufferedImage(newWidth, newHeight, input.getType());\n \t\tfinal AffineTransform at = new AffineTransform();\n \t\tat.scale((double) newWidth / oldWidth, (double) newHeight / oldHeight);\n \t\tfinal AffineTransformOp scaleOp =\n \t\t\tnew AffineTransformOp(at, AffineTransformOp.TYPE_BILINEAR);\n \t\treturn scaleOp.filter(input, output);\n \t}",
"@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}",
"@Override\r\n\tpublic double getArea() {\r\n\t\treturn width * height;\r\n\t}",
"public void preparePaint()\n {\n if(! size.equals(getSize())) { // if the size has changed...\n size = getSize();\n fieldImage = fieldView.createImage(size.width, size.height);\n g = fieldImage.getGraphics();\n\n xScale = size.width / gridWidth;\n if(xScale < 1) {\n xScale = GRID_VIEW_SCALING_FACTOR;\n }\n yScale = size.height / gridHeight;\n if(yScale < 1) {\n yScale = GRID_VIEW_SCALING_FACTOR;\n }\n }\n }",
"public native Dimension getDimension() throws MagickException;",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();",
"int getHeight();"
] | [
"0.67353255",
"0.6547496",
"0.65427077",
"0.6340918",
"0.62789005",
"0.62173873",
"0.6203152",
"0.6146469",
"0.6119526",
"0.608037",
"0.60775393",
"0.6072259",
"0.60336834",
"0.5974981",
"0.5948519",
"0.5932999",
"0.59150916",
"0.5905568",
"0.5899941",
"0.589791",
"0.5892463",
"0.58856875",
"0.58573127",
"0.5846195",
"0.5826759",
"0.5821504",
"0.5802083",
"0.57981634",
"0.5781221",
"0.57765186",
"0.5776363",
"0.57430685",
"0.573697",
"0.573572",
"0.5731257",
"0.57215375",
"0.57203144",
"0.57039344",
"0.56944597",
"0.56751734",
"0.5666459",
"0.56586283",
"0.5647361",
"0.5643865",
"0.5605263",
"0.5604026",
"0.55996627",
"0.5591043",
"0.55763066",
"0.55743104",
"0.55729896",
"0.55696523",
"0.5565992",
"0.5564332",
"0.55612326",
"0.55591035",
"0.55589575",
"0.5557904",
"0.5544546",
"0.5540733",
"0.55361986",
"0.5535041",
"0.5531518",
"0.5525503",
"0.5523473",
"0.55198634",
"0.5517705",
"0.5513643",
"0.55120695",
"0.5512036",
"0.5510682",
"0.55077094",
"0.5506477",
"0.5505517",
"0.55048466",
"0.55014426",
"0.5497241",
"0.54958975",
"0.54937726",
"0.5489845",
"0.548287",
"0.5482782",
"0.5476618",
"0.54750127",
"0.546808",
"0.5466121",
"0.54606855",
"0.5452137",
"0.54516685",
"0.54500115",
"0.5448449",
"0.5448449",
"0.54470766",
"0.54456514",
"0.5441179",
"0.5441179",
"0.5441179",
"0.5441179",
"0.5441179",
"0.5441179"
] | 0.6024681 | 13 |
constructor for reference manager. | public ReferenceManager(Path base) {
super(base);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Reference() {\n super();\n }",
"protected LibReference() {\n\t}",
"public ListReferenceBased() {\r\n\t numItems = 0; // declares numItems is 0\r\n\t head = null; // declares head is null\r\n }",
"public IDReferences()\n {\n idReferences = new Hashtable();\n idValidation = new Hashtable();\n }",
"public void setReference(Reference ref)\n {\n this.ref = ref;\n }",
"public Dependency(final Reference reference) {\r\n\tthis(reference.getGroupId(), reference.getArtifactId(), reference.getVersion());\r\n }",
"public ReferenceBasePUSData() {\n\t\tsuper();\n\t}",
"public LiveRef(int paramInt, RMIClientSocketFactory paramRMIClientSocketFactory, RMIServerSocketFactory paramRMIServerSocketFactory) {\n/* 85 */ this(new ObjID(), paramInt, paramRMIClientSocketFactory, paramRMIServerSocketFactory);\n/* */ }",
"public TransactionProcessor(AtomicReference<Store> ref){\r\n this.storeRef = ref;\r\n }",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"public ReferenceSystemMetadata() {\n }",
"Reference_Monitor createReference_Monitor();",
"public void ref() {\n\n\t}",
"public Smart(final List<String> references)\n {\n this.references = references;\n final int size = references != null ? references.size() : 0;\n this.next = new Component[size];\n this.peek = Distributor.UNKNOWN;\n }",
"protected void setRefList( ReferenceList refList )\n {\n _refList = refList;\n }",
"private Reference(IProject project, String id) {\n super();\n mProject = project;\n mId = id;\n }",
"private CodeRef() {\n }",
"private Smart()\n {\n this.references = new ArrayList<>();\n this.next = new Component[0];\n this.peek = Distributor.UNKNOWN;\n }",
"public PropertyRefs(Properties p) {\n props = p;\n }",
"public ReferenceType(Name name) {\n super(name.line, name.byteOffset);\n this.name = name;\n }",
"public UDPClockReference()\n {\n try\n {\n socket = new DatagramSocket(REFERENCE_PORT);\n socket.setSoTimeout(TIMEOUT);\n }\n catch (SocketException e)\n {\n throw new RuntimeException(e);\n }\n }",
"public LiveRef(ObjID paramObjID, int paramInt, RMIClientSocketFactory paramRMIClientSocketFactory, RMIServerSocketFactory paramRMIServerSocketFactory) {\n/* 103 */ this(paramObjID, TCPEndpoint.getLocalEndpoint(paramInt, paramRMIClientSocketFactory, paramRMIServerSocketFactory), true);\n/* */ }",
"public LinksResource() {\n }",
"protected RemoteServer(RemoteRef ref) {\n super(ref);\n }",
"public LiveRef(int paramInt) {\n/* 74 */ this(new ObjID(), paramInt);\n/* */ }",
"public LiveRef(ObjID paramObjID, int paramInt) {\n/* 93 */ this(paramObjID, TCPEndpoint.getLocalEndpoint(paramInt), true);\n/* */ }",
"public LibrarySearch() {\n\t\titems = new ArrayList<Reference>();\n\t}",
"private Sysreferences() {\n\t\tsuper(\"sysreferences\", org.jooq.util.ase.sys.Dbo.DBO);\n\t}",
"public ItemReference alloc();",
"public MainAPI (com.intersys.cache.CacheObject ref) throws com.intersys.objects.CacheException {\n super (ref);\n }",
"public void setReference (SoftReference ref)\r\n {\r\n _reference = ref;\r\n }",
"private void initializeReferences(String inputFilename) {\n\t\tparser = new Parser(inputFilename);\n\t\tlocations = new TreeMap<>();\n\t}",
"public ReferenceHelper getReferenceHelper();",
"private ObjectReference(Builder builder) {\n super(builder);\n }",
"public ExternalReferenceTest(String name) {\n\t\tsuper(name);\n\t}",
"ReferenceLink createReferenceLink();",
"private DataManager() {\n ref = FirebaseStorage.getInstance().getReference();\n }",
"public ReferencesController(ModeController modeController) {\n\t\tsuper();\n\t\tnew ReferencesPreferences(modeController);\n\t\t\n\t\tsetReferencesController(this);\n\t\tsetPreferencesForDocear();\n\t\tthis.modeController = modeController;\n\t\tLogUtils.info(\"starting DocearReferencesController(ModeController)\");\n\n\t\tthis.addPluginDefaults();\n\t\tthis.addMenuEntries();\n\t\tthis.registerListeners();\n\t\t\n\t\tthis.initJabref();\n\t}",
"ReferenceRealization createReferenceRealization();",
"Constructor() {\r\n\t\t \r\n\t }",
"public ClassReference(String descriptor) {\n\t\tthis(CharBuffer.wrap(descriptor));\n\t}",
"public Links() {\n }",
"public ConsommersResource() {\r\n }",
"private Manager() {\n _transportViews = new ArrayList<TransportView>();\n _transportersClient = new ArrayList<TransporterClient>();\n }",
"public SetOnceRef() {\n this(null, false, false);\n }",
"public DependencyManager()\n\t{\n\t\tmap.put(VARIABLES, new ArrayList<>());\n\t\tmap.put(VARSTRATEGY, BASE_STRATEGY);\n\t}",
"public ExternalFileMgrImpl()\r\n \t{\r\n \t\t\r\n \t}",
"public ExplorerManager() {\n init();\n }",
"public MutableReference(T value) {\n this.value = value;\n }",
"public void addReference() {\r\n mReferenced = true;\r\n }",
"private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}",
"public WeakList() {\r\n }",
"private DefaultOrdinalReferenceSystem() {\n ordinalEraSequence = null;\n }",
"public MapReferenceFactory(DbFactoryRegistry registry) {\n super(registry, registry.mapReferenceId);\n }",
"public Library (){\r\n\t\tthis.inverntory = new List();\r\n\t}",
"public LinkQueue(){\n }",
"@SuppressWarnings(\"unchecked\")\n protected AbstractTextureManager() {\n lastAtlasIndex = new ArrayList<Integer>();\n expectedAtlasCount = new ArrayList<Integer>();\n rootDirectories = new ArrayList<String>();\n textures = new HashMap<String, Texture>();\n }",
"public Dependency() \r\n {\r\n }",
"public void testConstructorWithCycledReferences1() throws Exception {\r\n try {\r\n ConfigurationObject object1 = createObject(\"object:ob1\", TYPE_OBJECT);\r\n ConfigurationObject params1 = new DefaultConfigurationObject(\"params\");\r\n params1.addChild(createParamReference(1, \"object:ob1\"));\r\n object1.addChild(params1);\r\n\r\n root.addChild(object1);\r\n\r\n specificationFactory = new ConfigurationObjectSpecificationFactory(root);\r\n fail(\"IllegalReferenceException is expected.\");\r\n } catch (IllegalReferenceException e) {\r\n // ok\r\n }\r\n }",
"private UndoManager() {\n undoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n redoList = new LinkedHashMap<RefactoringSession, LinkedList<UndoItem>>();\n descriptionMap = new IdentityHashMap<LinkedList, String>();\n }",
"private LinkLayer() {\r\n }",
"public Link() {\n }",
"public LibraryCache() {\n\t }",
"void getReference(Configuration c)\n {\n c_ref= c;\n }",
"public CheckpointManager() {\n this(new HashMap<>());\n }",
"private Link() {\n }",
"private mxPropertiesManager()\n\t{\n\t}",
"public JsonPointer() {\n\t\tpathFragments = new LinkedList<>();\n\t}",
"public void setRefId (int refId)\n {\n this.refId = refId;\n }",
"public CacheReference(final Object key, final Object value,\n final ReferenceQueue queue) {\n super(value, queue);\n this.key = key;\n }",
"public FileManager() {\n\t\t\n\t}",
"public DocumentReader ()\n {\n this.instanceStatus = new ServiceInstanceStatus(serviceStatus);\n this.instanceStatus.notifyCreation();\n }",
"public TarefaResource() {\r\n }",
"ReferenceProperty createReferenceProperty();",
"public ReferenceSystemMetadata(final ReferenceIdentifier name) {\n super(name);\n }",
"public Customer() {\n\t\tcustref++;\n\t}",
"public ReferenceRange() {\n\t\tsuper();\n\t\tmRr = CDAFactory.eINSTANCE.createReferenceRange();\n\t\tmRr.setObservationRange(getObsR());\n\t\tmRr.setTypeCode(ActRelationshipType.REFV);\n\t\tthis.setInterpretationCode(ObservationInterpretation.NORMAL);\n\t}",
"private LOCFacade() {\r\n\r\n\t}",
"public DmcNamedObjectNontransportableREF(){\r\n\t\tobject = null;\r\n\t}",
"public Holder() {\n }",
"public ReferenceItemProvider(AdapterFactory adapterFactory) {\n super(adapterFactory);\n }",
"public FileIOManager() {\n\t\tthis.reader = new Reader(this);\n\t\tthis.writer = new Writer(this);\n\t}",
"public CarroResource() {\r\n }",
"public NotificationHistoryManager() {\n }",
"private ResourceManager() {}",
"public BackReference(int i) {\n super(SOME, NONE);\n this.i = i;\n }",
"@Override\r\n\tpublic Ref getRef() {\n\t\treturn ref;\r\n\t}",
"public ClassPathManager() {\n projectCP = new LinkedList<File>();\n buildCP = new LinkedList<File>();\n projectFilesCP = new LinkedList<File>();\n externalFilesCP = new LinkedList<File>();\n extraCP = new LinkedList<File>();\n// systemCP = new LinkedList<File>();\n// openFilesCP = new LinkedList<File>();\n }",
"Reference owner();",
"public LinksBean() {\n }",
"void setReference(String reference);",
"private UnitManager() {\r\n\t\tUM = new UnitMap(); // create an object\r\n\t}",
"private RCProxy() {\n\t\tstate = new DefaultState();\n\t\tSTBListener.instance().addObserver(this);\n\t}",
"public static GuidoLocationListener getReference(){\r\n\t\tif(instance == null)\r\n\t\t\tinstance = new GuidoLocationListener();\r\n\t\treturn instance;\r\n\t}",
"public void setReference(String reference);",
"protected FollowersItem() {\n hashDupA = hashDupB = \"\";\n aw = null;\n }",
"public Memory() {\r\n init();\n ruletables = new RuleTables(this);\n budgetfunctions = new BudgetFunctions(this);\r\n }",
"Variable getRefers();",
"public ProxyableObject()\r\n {\r\n id = new command.GlobalObjectId();\r\n command.ObjectDB.getSingleton().store(id.getLocalObjectId(), this);\r\n \r\n //observable = new ObservabilityObject();\r\n }",
"public ReferenceRemote getReferenceLocal()\n throws RemoteException, IOException {\n refObj = new ReferenceAdapter();\n return refObj;\n }"
] | [
"0.7816663",
"0.7270267",
"0.6897762",
"0.6605437",
"0.64543736",
"0.6376648",
"0.6350971",
"0.6332257",
"0.63290066",
"0.6266715",
"0.6244885",
"0.6205335",
"0.61611897",
"0.6158343",
"0.6146827",
"0.61393464",
"0.6133466",
"0.6122953",
"0.60898036",
"0.6074715",
"0.6061965",
"0.604718",
"0.6038127",
"0.602348",
"0.6023205",
"0.6020479",
"0.60101545",
"0.59958327",
"0.59796256",
"0.59708685",
"0.59665895",
"0.59554857",
"0.59538853",
"0.59277886",
"0.5911939",
"0.59114087",
"0.58839643",
"0.5878455",
"0.587474",
"0.58740264",
"0.5873941",
"0.58662707",
"0.5853599",
"0.5849443",
"0.5834517",
"0.58325654",
"0.58162415",
"0.5811542",
"0.5808355",
"0.57835066",
"0.5763468",
"0.57619756",
"0.57619005",
"0.57564104",
"0.5751736",
"0.5747177",
"0.5738084",
"0.57362515",
"0.57293737",
"0.5719365",
"0.5718548",
"0.5712031",
"0.57097375",
"0.5709346",
"0.5695652",
"0.5690797",
"0.56803966",
"0.5674071",
"0.5660085",
"0.56493646",
"0.56405413",
"0.56394076",
"0.5639052",
"0.5638148",
"0.5635335",
"0.5634235",
"0.56333524",
"0.56317693",
"0.5631582",
"0.5622317",
"0.56220764",
"0.56147844",
"0.56146294",
"0.5610164",
"0.56080526",
"0.56020254",
"0.55913985",
"0.5589227",
"0.5588508",
"0.5582363",
"0.5580246",
"0.5575977",
"0.55724525",
"0.5558906",
"0.5558634",
"0.55564845",
"0.5548783",
"0.5546761",
"0.5544245",
"0.5542767"
] | 0.74818736 | 1 |
Determines if the reference manager contains a given file. | public boolean contains(ReferenceType branch, String name) {
return this.contains(Reference.class, branch.getBaseDir() + name);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean hasFile(final String file);",
"boolean hasFileLoc();",
"boolean hasFileLocation();",
"public boolean hasFile(String fileName) {\n return this.registry.containsKey(fileName);\n }",
"@Override\n public boolean containsFile(IFile file) {\n // TODO Auto-generated method stub\n return childFiles.contains(file);\n }",
"boolean hasFilePath();",
"private boolean contains(File file, String resourceName) {\n try {\n if (!file.exists()) {\n return false;\n }\n\n if (file.isDirectory()) {\n File resource = new File(file, resourceName);\n\n if (resource.exists()) {\n return true;\n }\n }\n else {\n // is the zip file in the cache\n ZipFile zipFile = (ZipFile)zipFiles.get(file);\n if (zipFile == null) {\n zipFile = new ZipFile(file);\n zipFiles.put(file, zipFile);\n }\n ZipEntry entry = zipFile.getEntry(resourceName);\n if (entry != null) {\n return true;\n }\n }\n }\n catch (Exception e) {\n log(\"Ignoring Exception \" + e.getClass().getName() + \": \" + e.getMessage() +\n \" reading resource \" + resourceName + \" from \" + file, Project.MSG_VERBOSE);\n }\n\n return false;\n }",
"public boolean containCache(Integer cacheKey)\n {\n // Check if the cacheKey is in the reference\n if (mLinkedHashMap.containsKey(cacheKey))\n {\n return true;\n }\n\n // Now check if the actual file is exists\n String cacheKeyStr = String.valueOf(cacheKey);\n String existingFilePath = createFilePath(cacheDirectory, cacheKeyStr);\n Boolean isFileExists = new File(existingFilePath).exists();\n if (isFileExists)\n {\n // If the file is found, we have to update the Reference HashMap.\n referenceAdd(cacheKey, existingFilePath);\n\n return true;\n }\n\n return false;\n }",
"boolean hasFileInfo();",
"boolean hasFileInfo();",
"public boolean fileExistance(String fileName) {\n File file = getActivity().getFileStreamPath(fileName);\n return file.exists();\n }",
"public static boolean contains(IResourceDelta delta, IFile file){\r\n\t\tIResourceDelta member = delta.findMember(file.getFullPath());\r\n\t\tif(member==null){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"public boolean searchFile(FileObject file)\n throws IllegalArgumentException;",
"public boolean exists(String filename) {\n return getFile(filename) != null;\n }",
"public boolean exists() {\n return _file.exists();\n }",
"public boolean fileExists(String fileName){\n\t\t\tboolean exists = false;\n\t\t\ttry{\n\t \t FileInputStream fin = openFileInput(fileName);\n\t\t\t\tif(fin == null){\n\t\t\t\t\texists = false;\n\t\t\t\t}else{\n\t\t\t\t\texists = true;\n\t\t\t\t\tfin.close();\n\t\t\t\t}\n\t\t\t}catch (Exception je) {\n\t\t //Log.i(\"ZZ\", \"AppDelegate:fileExists ERROR: \" + je.getMessage()); \n\t\t exists = false;\n\t\t\t}\n\t\t\treturn exists;\n\t\t}",
"boolean hasReference();",
"public boolean exists(File file) {\n return file.exists();\n }",
"@Override\n public boolean exists(File file) {\n\treturn false;\n }",
"public boolean hasLoaded(String filename)\n {\n return this.loadedFiles.containsKey(filename);\n }",
"public boolean existFile(String fileName) {\r\n\t\treturn new File(fileName).exists();\r\n\t}",
"boolean hasCompleteFile();",
"public boolean hasFileAttached()\n throws OculusException;",
"public boolean isContainFile(String input){\n\t\tfor(int i = 0;i<filenames.size();i++){\n\t\t\tif(filenames.get(i).equals(input)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n\tpublic synchronized boolean exists(String key) {\n\t\treturn getFile(key).exists();\n\t}",
"boolean hasInodeFile();",
"boolean hasFileName();",
"boolean hasFileName();",
"boolean hasRetrieveFile();",
"public boolean isExist(String fileName){\n\t\tFile f = new File(fileName);\n\t\treturn f.exists();\n\t}",
"public boolean exists(String key) {\n\t\treturn fileData.containsKey(key);\n\t}",
"private boolean doesFileExist(String qualifiedFileName) throws FileNotFoundException {\n\t\t\n\t\t// First get a path object to where the file is.\n\t\t\n\t\tPath inWhichFolder = Paths.get(qualifiedFileName);\n\t\t\n\t\tboolean isFilePresent = (Files.exists(inWhichFolder) && Files.isReadable(inWhichFolder) && !Files.isDirectory(inWhichFolder));\n\t\t\n\t\tif (!isFilePresent) {\n\t\t\tthrow new FileNotFoundException(String.format(\"The file you specified '%s' does not exist or cannot be found!\", qualifiedFileName));\n\t\t\t\n\t\t}\n\t\t\n\t\t// If we're here then we should have a file that can be opened and read.\n\t\t\n\t\treturn isFilePresent;\n\t\t\n\t}",
"public boolean fExists(){\n \n try(ObjectInputStream ois = new ObjectInputStream(new FileInputStream(file))){\n \n }\n catch (FileNotFoundException e){\n System.out.println(\"File not found\");\n return false;\n }\n catch (IOException e){\n System.out.println(\"Another exception\");\n return false;\n }\n\n return true;\n }",
"@Override\n public boolean contains(final String id) {\n return sidecarFile(id).exists();\n }",
"public boolean exists() {\r\n\t\t// Try file existence: can we find the file in the file system?\r\n\t\ttry {\r\n\t\t\treturn getFile().exists();\r\n\t\t}\r\n\t\tcatch (IOException ex) {\r\n\t\t\t// Fall back to stream existence: can we open the stream?\r\n\t\t\ttry {\r\n\t\t\t\tInputStream is = getInputStream();\r\n\t\t\t\tis.close();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tcatch (Throwable isEx) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"boolean hasSourceFile();",
"public boolean fileFound(){\n\n try{\n\n m_CSVReader = new CSVReader(new FileReader(m_FileName));\n\n } catch (FileNotFoundException e){\n\n System.out.println(\"Input file not found.\");\n\n return false;\n }\n return true;\n }",
"public boolean isFileByFile() {\n return fileByFile;\n }",
"private static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"public boolean accept(File file) {\n if (file.getName().contains(CONTAINS_STRING)) {\n return file.isFile();\n }\n return false;\n }",
"private boolean fileNameExists(String fileName) {\n return inputOutputStream.hexists(Constants.DIR_METADATA_BYTES, fileName.getBytes());\n }",
"boolean hasDocument(String path);",
"public boolean isFileExists(String fileName) {\n return profilesMap.containsKey(fileName);\n }",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"@java.lang.Deprecated boolean hasFile();",
"private static boolean assetHasLocalReference(MD5Key id) {\n \n \t\treturn getLocalReference(id) != null;\n \t}",
"public boolean has(@NonNull String filename, @NonNull String name) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n return prefs != null && prefs.contains(name);\n }",
"public boolean hasFileLocation() {\n return msgCase_ == 9;\n }",
"private boolean existsFile(File testFile) {\n\t\tif (testFile.exists()) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public synchronized boolean fileExist(String fullPath)\n {\n File file = new File(fullPath);\n if (file != null && file.exists() && file.isFile())\n return true;\n else\n return false;\n }",
"protected static boolean containsFileID(double fileID) {\n\n String sql = \"SELECT fileID FROM files\";\n\n try (Connection conn = DatabaseOperations.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n if (fileID == rs.getDouble(\"fileID\")) {\n return true;\n }\n }\n } catch (SQLException e) {\n System.out.println(\"fileIDExists: \" + e.getMessage());\n }\n return false;\n\n }",
"private boolean targetExists(File fileToCheck) {\n\t\tif (!fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Target file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}",
"boolean getWorkfileExists();",
"private boolean fileExists(Path p) {\n\t\treturn Files.exists(p);\n\t}",
"@Override\n\tpublic boolean exists() {\n\t\treturn Files.exists(this.path);\n\t}",
"Boolean has(String extension) {\n File f = new File(baseName + \".\" + extension);\n return f.exists();\n }",
"public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}",
"public final boolean fileExists() {\n\t if ( m_fileStatus == FileStatus.FileExists || m_fileStatus == FileStatus.DirectoryExists)\n\t return true;\n\t return false;\n\t}",
"public static boolean containsFile(File dir) {\n try {\n final boolean[] found = new boolean[1];\n found[0] = false;\n Files.walkFileTree(dir.toPath(), new SimpleFileVisitor<Path>(){\n @Override\n public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException {\n if(Files.isRegularFile(path)){\n found[0] = true;\n return FileVisitResult.TERMINATE;\n }\n return FileVisitResult.CONTINUE;\n }\n });\n return found[0];\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"public boolean hasFile(File folder, String fileName) {\n\t\treturn new File(folder, fileName + EXTENSION).exists();\n\t}",
"public boolean exists() {\n\t\t\n\t\tFile temp = new File(this.path);\n\t\treturn temp.exists();\n\t}",
"public boolean exists() {\n try {\n return open() != null;\n } catch (IOException e) {\n return false;\n }\n }",
"protected boolean resourceExists() {\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tif (workspace == null)\n\t\t\treturn false;\n\t\treturn RodinDB.getTarget(workspace.getRoot(), this.getPath()\n\t\t\t\t.makeRelative(), true) != null;\n\t}",
"public static boolean file_list_exists(String filename) {\n boolean exists = true;\n\n try {\n\n FileInputStream fstream = new FileInputStream(\"textfile.txt\");\n DataInputStream in = new DataInputStream(fstream);\n BufferedReader br = new BufferedReader(new InputStreamReader(in));\n String strLine;\n while ((strLine = br.readLine()) != null) {\n File f = new File(strLine);\n if (f.exists() == false) {\n exists = false;\n }\n }\n in.close();\n } catch (Exception e) {//Catch exception if any\n e.printStackTrace();\n }\n return exists;\n }",
"public boolean exists(String path);",
"public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasFileLoc() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public static boolean isExisted(String fileName) {\n\t\tFile file = new File(fileName);\n\t\treturn file.exists();\n\t}",
"private boolean checkFile(String filename, String[] extensions) {\n \n // flag to indicate the file was found\n boolean foundFile = false;\n \n // iterate through all the extensions\n for (String currentExtension : extensions) {\n \n // check if the file has the current extension\n if (filename.toLowerCase().endsWith(currentExtension)) {\n \n // set flag\n foundFile = true;\n \n // set configuration\n configuration.setChosenFilePattern(currentExtension);\n \n // break iteration\n break;\n }\n }\n \n // create a new file status\n File fileStatus = null;\n \n // check if a reference was found\n if (foundFile) {\n \n // create new instance\n fileStatus = new File(filename);\n \n // check if exists\n if (fileStatus.exists()) {\n \n // add file\n theFile = filename;\n \n // found it!\n return true;\n } else {\n \n // print message about it\n System.out.println(localization.getMessage(\"Error_FileDoesNotExist\", filename));\n \n // not found\n return false;\n }\n \n } else {\n \n // there's no extension, we will add them and see if something\n // is found\n for (String currentExtension : extensions) {\n \n // new file with extension\n fileStatus = new File(filename + currentExtension);\n \n // let's check it\n if (fileStatus.exists()) {\n \n // add file\n theFile = filename + currentExtension;\n \n // add reference\n configuration.setChosenFilePattern(currentExtension);\n \n // found it!\n return true;\n \n }\n \n }\n \n // print message about it\n System.out.println(AraraUtils.wrap(localization.getMessage(\"Error_FileDoesNotExistWithExtensionsList\", filename, getExtensionsList(extensions))));\n \n // file not found\n return false;\n \n }\n \n }",
"public static boolean isExists(File file) {\n\t\tfile = comprobarExtension(file);\n\t\treturn file.exists();\n\t}",
"private boolean sourceExists(File fileToCheck) {\n\t\tif (fileToCheck.exists()) {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" exists.\");\n\t\t\treturn true;\n\t\t} else {\n\t\t\tSystem.out.println(\"Source file \"+fileToCheck.getName()+ \" DOESN'T exist.\");\n\t\t\treturn false;\n\t\t}\n\t}",
"private static boolean isInPrefs( String FileName , Preferences pref ){\n\n int nSavedFiles = SharedData.getintProperty( \"NSavedFiles\",\"\"+NSavedFiles);\n for( int i = 0 ; i< nSavedFiles ; i++ )\n\n if( pref.get( \"File\" + i , NO_SUCH_FILE ).equalsIgnoreCase( FileName ) )\n return true;\n\n return false;\n }",
"public static boolean existsFile(String file) {\n return getFile(file).exists();\n }",
"public boolean isSetFile() {\n return this.File != null;\n }",
"public static boolean exists(final String fileName) {\n return new File(fileName).exists();\n }",
"public boolean exists() {\n return Files.exists(path);\n }",
"@Override\n\tpublic boolean checkExistFile(String aFilePath) {\n\t\treturn eDao.checkExistFile(aFilePath);\n\t}",
"private boolean directoryContainsConfig(File file) {\n return Arrays.asList(file.list()).contains(\"config.properties\");\n }",
"public static boolean exists(final String fileName) {\n\n return FileSystem.getInstance(fileName).exists(fileName);\n }",
"public boolean checkDocument(String fileName) throws IOException;",
"public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }",
"public boolean hasFileInfo() {\n return fileInfoBuilder_ != null || fileInfo_ != null;\n }",
"private boolean addOIDataFileRef(final OIDataFile dataFile) {\n if (logger.isDebugEnabled()) {\n logger.debug(\"addOIDataFileRef: {}\", dataFile);\n }\n return Identifiable.addIdentifiable(dataFile, getOIDataFileList());\n }",
"public boolean isSetFileCont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILECONT$2) != 0;\n }\n }",
"public boolean hasObjectFileKey() {\n return objectFileKey_ != null;\n }",
"public boolean open() {\n try {\n fileStream = new FileReader( this.fileName );\n scanner = new Scanner( fileStream );\n this.found = true;\n } catch ( FileNotFoundException error ) {\n this.found = false;\n System.out.println(error.toString());\n }\n\n return this.found;\n }",
"boolean hasDriveFile();",
"boolean fileIncluded(File file){\n\t\tif(file.getName().length()==0) return false;\n\t\tString lcname = file.getName().trim().toLowerCase();\n\t\treturn ((lcname.endsWith(LC_JAR) ||\n\t\t lcname.endsWith(LC_SVB) ||\n\t\t lcname.endsWith(LC_EXE) ||\n\t\t lcname.endsWith(LC_DAT)) &&\n\t\t (file.lastModified() > OLDEST_DATE));\n\t}",
"private boolean isFileExist() {\n File check_file = getFilesDir();\n File[] file_check_array = check_file.listFiles();\n for (File current : file_check_array) {\n boolean user_file = isValidName(current.getName());\n if (user_file) {\n return true;\n }\n }\n return false;\n }",
"boolean hasRef();",
"public boolean contains(@NonNull String name) {\n SharedPreferences prefs = context.getSharedPreferences(filename, Context.MODE_PRIVATE);\n return prefs != null && prefs.contains(name);\n }",
"public static boolean fileExists(String filename) {\n return new File(filename).exists();\n }",
"boolean fileExists(String path) throws IOException;",
"public static boolean isThisACollection(File linkAsFile) {\n\n if (linkAsFile == null) {\n return false;\n }\n if (! linkAsFile.exists()) {\n return false;\n }\n if (! linkAsFile.isDirectory()) {\n return false;\n }\n if (linkAsFile.isHidden()) {\n return false;\n }\n String linkToLower = linkAsFile.getName().toLowerCase();\n if (linkToLower.contains(\"archive\")\n || linkToLower.contains(\"backup\")\n || linkToLower.equals(\"deploy\")\n || linkToLower.equals(\"dist\")\n || linkToLower.equals(\"icons\")\n || linkToLower.equals(\"jars\")) {\n return false;\n }\n String fileName = linkAsFile.getName();\n if (fileName.equalsIgnoreCase(\"Library\")\n || fileName.equalsIgnoreCase(\"Music\")\n || fileName.equalsIgnoreCase(\"Pictures\")\n || fileName.equalsIgnoreCase(\"PSPub Omni Pack\")\n || fileName.endsWith(\".app\")) {\n return false;\n }\n\n File readMeFile = new File(linkAsFile, NoteIO.README_FILE_NAME);\n if ((! readMeFile.exists()) || (! readMeFile.canRead())) {\n return false;\n }\n\n String line = \"\";\n boolean notenikLineFound = false;\n try {\n FileReader fileReader = new FileReader(readMeFile);\n BufferedReader reader = new BufferedReader(fileReader);\n line = reader.readLine();\n while (line != null && (! notenikLineFound)) {\n int j = line.indexOf(NoteIO.README_LINE_1);\n notenikLineFound = (j >= 0);\n line = reader.readLine();\n }\n } catch(IOException e) {\n // Ignore\n }\n if (! notenikLineFound) {\n return false;\n }\n\n return true;\n }",
"public boolean hasFileInfo() {\n return fieldSetFlags()[15];\n }",
"@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }",
"@java.lang.Override\n public boolean hasFileInfo() {\n return fileInfo_ != null;\n }",
"public boolean isLocalFile() {\n\t\ttry {\n\t\t\tFile localFile = getLocalFile();\n\t\t\treturn localFile != null && localFile.exists();\n\t\t} catch (CoreException e) {\n\t\t\tlogger.debug(\"Unable to determine if file is local\", e);\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isFile(String path);",
"private static boolean hasFile(Artifact artifact) {\n\t\treturn artifact != null && artifact.getFile() != null && artifact.getFile().isFile();\n\t}"
] | [
"0.7459832",
"0.7264013",
"0.7056056",
"0.6904761",
"0.67967033",
"0.6759112",
"0.6603321",
"0.6569889",
"0.65521",
"0.65521",
"0.6518248",
"0.64840657",
"0.64491826",
"0.63814",
"0.6370381",
"0.6355707",
"0.6325607",
"0.629494",
"0.62934077",
"0.6282496",
"0.6274531",
"0.62689567",
"0.62658256",
"0.62654847",
"0.6233467",
"0.6232995",
"0.62281346",
"0.62281346",
"0.6183386",
"0.61415726",
"0.6137919",
"0.61296487",
"0.610597",
"0.6088485",
"0.6086083",
"0.6070201",
"0.6058654",
"0.60513204",
"0.6048878",
"0.6041832",
"0.6038429",
"0.6036859",
"0.60336965",
"0.59968793",
"0.59939927",
"0.5982798",
"0.5976228",
"0.59626764",
"0.5954956",
"0.59469736",
"0.5932171",
"0.5911133",
"0.5901379",
"0.58989394",
"0.58960515",
"0.5892864",
"0.5891052",
"0.58890945",
"0.58858967",
"0.58816195",
"0.5870816",
"0.5867251",
"0.58565456",
"0.5855408",
"0.5854541",
"0.58536536",
"0.5845752",
"0.58419037",
"0.58392227",
"0.58370876",
"0.58053714",
"0.57852066",
"0.5785105",
"0.5782795",
"0.57718605",
"0.576286",
"0.57563305",
"0.5755964",
"0.5744631",
"0.57384616",
"0.57363933",
"0.5734902",
"0.57346517",
"0.5719798",
"0.57190657",
"0.5714838",
"0.5706569",
"0.57036364",
"0.57006955",
"0.5690988",
"0.5681378",
"0.5667385",
"0.56634194",
"0.5658804",
"0.5649626",
"0.564836",
"0.56479883",
"0.56464565",
"0.5644718",
"0.5633882"
] | 0.57217604 | 83 |
Iterates over the references of a certain type within the manager. | public void forEach(ReferenceType type,
BiConsumer<? super String, Reference> action) {
this.forEach(Reference.class, (file, ref) -> {
if (file.startsWith(type.getBaseDir())) {
action.accept(file.replace(type.getBaseDir(), ""), ref);
}
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Pure\n\tprotected TypeReferences getTypeReferences() {\n\t\treturn this.typeReferences;\n\t}",
"private Set getReferencers(Collection references, EReference reference, EClass type) {\n \t\tSet set = new HashSet();\n \t\tif (!references.isEmpty()) {\n \t\t\tfor (Iterator iter = references.iterator(); iter.hasNext(); ) {\n \t\t\t\tSetting setting = (Setting) iter.next();\n \t\t\t\tif (reference == null || reference == setting.getEStructuralFeature()) {\n \t\t\t\t\tEObject referencer = setting.getEObject();\n \t\t\t\t\tif (referencer != null && (type == null || type.isInstance(referencer))) {\n \t\t\t\t\t\tset.add(referencer);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn set;\n \t}",
"public Collection<Reference> getReferences();",
"protected void referencesToSAX (int refType, int useMode, ContentHandler contentHandler)\n throws SAXException\n {\n for (int toDocType = DocType.first; toDocType <= DocType.last; toDocType++)\n if ( DbTable.REF[this.type][toDocType] != null )\n\treferencesToSAX(toDocType, refType, useMode, contentHandler);\n }",
"PSObject getTypeReference();",
"@DerivedProperty\n\t\nSet<CtTypeReference<?>> getReferencedTypes();",
"Variable getRefers();",
"public Iterable<Relationship> getRelationships( RelationshipType... type );",
"private static void checkReferenceTypes(Component component)\n\t{\n\t\tList<ExternalReference> refs = component.getExternalReferences();\n\t\tif (refs != null)\n\t\t{\n\t\t\tfor (ExternalReference ref : refs)\n\t\t\t{\n\t\t\t\tif (ref.getType() == null)\n\t\t\t\t\tref.setType(ExternalReference.Type.OTHER);\n\t\t\t}\n\t\t}\n\t}",
"public IDatatype getReference() { \n\t\treturn myReference;\n\t}",
"TypeManager getTypeManager() {\n return types;\n }",
"public Set getInverseReferencers(EObject referenced, EReference reference, EClass type) {\n \t\treturn getReferencers(getInverseReferences(referenced), reference, type);\n \t}",
"void registerReferencing (ClassType c) {\r\n if (referencing_classes == null) \r\n referencing_classes = new ClassList ();\r\n else if (referencing_classes.contains (c)) \r\n return;\r\n\r\n referencing_classes.add (c);\r\n }",
"public ResultMap<BaseNode> listRelatives(QName type, Direction direction);",
"public ClassReferenceMirror getType() {\n\t\treturn type;\n\t}",
"public List<Ref<? extends Type>> typeVariables();",
"private EClass[] getTypedRelationships(EClass supertype) {\n ArrayList<EClass> list = new ArrayList<EClass>();\n \n for(EClass eClass : ArchimateModelUtils.getRelationsClasses()) {\n if(supertype.isSuperTypeOf(eClass)) {\n list.add(eClass);\n }\n }\n \n return list.toArray(new EClass[list.size()]);\n }",
"@Override\n protected void findReferencedClassNames(final Set<String> refdClassNames) {\n refdClassNames.add(getFullyQualifiedClassName());\n for (final TypeArgument typeArgument : typeArguments) {\n typeArgument.findReferencedClassNames(refdClassNames);\n }\n for (final List<TypeArgument> typeArgumentList : suffixTypeArguments) {\n for (final TypeArgument typeArgument : typeArgumentList) {\n typeArgument.findReferencedClassNames(refdClassNames);\n }\n }\n }",
"public IMemberSet getChildren(IMember type) {\n\t\tString key = type.getHandleIdentifier();\n\t\treturn _map.get(key);\n\t}",
"@Override\n public Iterator<Type> getTypeIterator() {\n // trick to convert List<TypeImpl> to List<Type> with some safety\n Iterator<Type> it = Collections.<Type> unmodifiableList(types).iterator();\n it.next();\n return it;\n }",
"public Collection<UniqueID> getReferenceList() {\n return ObjectGraph.getReferenceList(this.id);\n }",
"public void addRef(String name, int type) throws RemoteException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\trec.count++;\r\n\t}",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships(RelationshipType type, Direction dir) {\n\t\t\treturn null;\n\t\t}",
"<T> void lookupAll(Class<T> type, Collection<T> out);",
"List<PropertySymbol> getAllReferences();",
"protected static boolean checkTypeReferences() {\n Map<Class<?>, LinkedList<Class<?>>> missingTypes = new HashMap<>();\n for (Map.Entry<String, ClassProperties> entry : classToClassProperties.entrySet()) {\n String className = entry.getKey();\n Class<?> c = lookupClass(className);\n Short n = entry.getValue().typeNum;\n if (marshalledTypeNum(n)) {\n Class<?> superclass = getValidSuperclass(c);\n if (superclass != null)\n checkClassPresent(c, superclass, missingTypes);\n LinkedList<Field> fields = getValidClassFields(c);\n for (Field f : fields) {\n Class<?> fieldType = getFieldType(f);\n checkClassPresent(c, fieldType, missingTypes);\n }\n }\n }\n if (missingTypes.size() > 0) {\n for (Map.Entry<Class<?>, LinkedList<Class<?>>> entry : missingTypes.entrySet()) {\n Class<?> c = entry.getKey();\n LinkedList<Class<?>> refs = entry.getValue();\n String s = \"\";\n for (Class<?> ref : refs) {\n if (s != \"\")\n s += \", \";\n s += \"'\" + getSimpleClassName(ref) + \"'\";\n }\n Log.error(\"Missing type '\" + getSimpleClassName(c) + \"' is referred to by type(s) \" + s);\n }\n Log.error(\"Aborting code generation due to missing types\");\n return false;\n }\n else\n return true;\n }",
"public String getRefType() {\n return refType;\n }",
"public interface RuleRefableBase extends org.semanticwb.model.Referensable\r\n{\r\n /**\r\n * Referencia a un objeto de tipo Rule \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_RuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#RuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_hasRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#hasRuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_notInheritRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#notInheritRuleRef\");\r\n public static final org.semanticwb.platform.SemanticProperty swb_andEvalRuleRef=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticProperty(\"http://www.semanticwebbuilder.org/swb4/ontology#andEvalRuleRef\");\r\n /**\r\n * Interfaz que define propiedades para elementos que pueden referencia a reglas \r\n */\r\n public static final org.semanticwb.platform.SemanticClass swb_RuleRefable=org.semanticwb.SWBPlatform.getSemanticMgr().getVocabulary().getSemanticClass(\"http://www.semanticwebbuilder.org/swb4/ontology#RuleRefable\");\r\n\r\n public org.semanticwb.model.GenericIterator<org.semanticwb.model.RuleRef> listRuleRefs();\r\n public boolean hasRuleRef(org.semanticwb.model.RuleRef value);\r\n public org.semanticwb.model.GenericIterator<org.semanticwb.model.RuleRef> listInheritRuleRefs();\r\n\r\n /**\r\n * Adds the RuleRef\r\n * @param value An instance of org.semanticwb.model.RuleRef\r\n */\r\n public void addRuleRef(org.semanticwb.model.RuleRef value);\r\n\r\n /**\r\n * Remove all the values for the property RuleRef\r\n */\r\n public void removeAllRuleRef();\r\n\r\n /**\r\n * Remove a value from the property RuleRef\r\n * @param value An instance of org.semanticwb.model.RuleRef\r\n */\r\n public void removeRuleRef(org.semanticwb.model.RuleRef value);\r\n\r\n/**\r\n* Gets the RuleRef\r\n* @return a instance of org.semanticwb.model.RuleRef\r\n*/\r\n public org.semanticwb.model.RuleRef getRuleRef();\r\n\r\n public boolean isNotInheritRuleRef();\r\n\r\n public void setNotInheritRuleRef(boolean value);\r\n\r\n public boolean isAndEvalRuleRef();\r\n\r\n public void setAndEvalRuleRef(boolean value);\r\n}",
"public ResultMap<BaseNode> listRelatives(QName type, Direction direction, Pagination pagination);",
"public void notifyListeners(Type type) {\n for (WorkspaceListener listener : listeners) {\n listener.update(type);\n }\n }",
"public void resolvePageReferences()\n{\n int count = _pages.size();\n while(count-- > 0)\n getPage(count).resolvePageReferences(this);\n}",
"public void printType() {\n System.out.println(\"Type: \" + objRef.getClass().getName());\n }",
"public abstract <T extends ReferenceAnnotation> List<ReferenceMetadata<T>> getAvailableVersions(Class<T> cls);",
"public Iterator<ODocument> getAllAsList(@Generic(\"T\") final Class<?> type) {\n return getAll(type);\n }",
"public List<Reference> references(String owner, String repo) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/git/refs\", owner, repo)), Reference.class);\n }",
"@Override\n public Set<ModuleReference> findAll() {\n while (hasNextEntry()) {\n scanNextEntry();\n }\n return cachedModules.values().stream().collect(Collectors.toSet());\n }",
"<T> Set<T> lookupAll(Class<T> type);",
"int getRefsCount();",
"int getReferenceKind();",
"public\n java.util.List<org.eclipse.stardust.engine.api.runtime.ProcessInstanceLinkType>\n getAllProcessInstanceLinkTypes()\n throws org.eclipse.stardust.common.error.WorkflowException;",
"private List<Reference> getReferences() {\n logger.debug(\"Get references\");\n\n List<Reference> references = new ArrayList<Reference>();\n\n String query = \"SELECT reference_line, pr.reference_id FROM pride_experiment pe, pride_reference pr, pride_reference_exp_link pl WHERE \" +\n \"pe.accession = ? AND pl.reference_id = pr.reference_id AND pl.experiment_id = pe.experiment_id\";\n\n List<Map<String, Object>> results = jdbcTemplate.queryForList(query, getForegroundExperimentAcc());\n for (Map<String, Object> result : results) {\n List<UserParam> userParams = getUserParams(\"pride_reference_param\", ((Long) result.get(\"reference_id\")).intValue());\n List<CvParam> cvParams = getCvParams(\"pride_reference_param\", ((Long) result.get(\"reference_id\")).intValue());\n references.add(new Reference((String) result.get(\"reference_line\"), new ParamGroup(cvParams, userParams)));\n }\n\n return references;\n }",
"ReferenceKind getKind();",
"Object visitArrayOfReferences(ArrayOfReferencesNode node, Object state);",
"public List<Referee> findAllReferees(){\n\t\treturn refereeRepository.findAll();\n\t}",
"List<SoftObjectReference> getObjects();",
"public Set getNonNavigableInverseReferencers(EObject referenced, EReference reference, EClass type) {\n \t\treturn getReferencers(getNonNavigableInverseReferences(referenced), reference, type);\n \t}",
"private void checkReferences(DataStage dataStage, boolean useSourceType, Object result) {\n final List<TargetInternalReference> references = new ArrayList<>();\n Helpers.collectAllTargetInternalReferences(result, references);\n Map<String, Boolean> cachedReferences = new HashMap<>();\n references.forEach(t -> {\n boolean reset = false;\n if (t.getReference() != null) {\n final Boolean fromCache = cachedReferences.get(t.getReference());\n if(fromCache !=null){\n if(fromCache){\n reset = true;\n }\n }\n else {\n TargetInstance reference = null;\n try {\n final List<String> typesOfReference = kgV3.getTypesOfInstance(t.getReference(), DataStage.IN_PROGRESS, false);\n if (typesOfReference != null) {\n final TranslatorModel<?, ?> referenceTranslatorModel = TranslatorModel.MODELS.stream().filter(m -> m.getV3translator() != null && m.getV3translator().semanticTypes().stream().anyMatch(typesOfReference::contains)).findFirst().orElse(null);\n if (referenceTranslatorModel != null) {\n final String referenceQueryId = typesOfReference.stream().map(type -> referenceTranslatorModel.getV3translator().getQueryIdByType(type)).findFirst().orElse(null);\n reference = translateTargetInstance(dataStage, useSourceType, t, reference, referenceTranslatorModel, referenceQueryId);\n }\n }\n reset = reference == null;\n cachedReferences.put(t.getReference(), reset);\n } catch (WebClientResponseException ignored) {\n logger.error(\"A web client exception occurred - ignoring\");\n }\n }\n }\n if (reset) {\n t.setReference(null);\n }\n });\n }",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships(RelationshipType... types) {\n\t\t\treturn null;\n\t\t}",
"public Set<Node> getChildByType(String type) {\n HashSet<Node> result = new HashSet<Node>();\n Iterable<Relationship> relations = gisNode.getRelationships(Direction.OUTGOING);\n for (Relationship relationship : relations) {\n Node node = relationship.getEndNode();\n if (type.equals(node.getProperty(INeoConstants.PROPERTY_TYPE_NAME, \"\"))) {\n result.add(node);\n }\n }\n return result;\n }",
"private void extractRelatedTriples(Formula context, N3Element.Object ref) {\n\t\tif (ref instanceof Exvar) {\n\t\t\tRDFResource sub = context.get(ref.toString());\n\t\t\tif (sub != null) {\n\t\t\t\trelated.add(sub);\n\t\t\t\tfor (VerbObject obj : sub.verbObjects) {\n\t\t\t\t\textractRelatedTriples(context, obj.object);\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (ref instanceof List) {\n\t\t\tfor (Object o : (List<?>) ref) {\n\t\t\t\tif (o instanceof N3Element.Object) {\n\t\t\t\t\textractRelatedTriples(context, (N3Element.Object) o);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private void findReferencedCells() {\n\t\tfor(int i = 0; i< workbook.getNumberOfSheets();i++) {\n\t\t\tcurrentSheet = workbook.getSheetAt(i);\n\t\t\tIterator <Row> rowIterator = currentSheet.iterator();\n\t\t\twhile(rowIterator.hasNext()){\n\t\t\t\tRow row = rowIterator.next();\n\t\t\t\tIterator<Cell> cellIterator = row.cellIterator();\n\t\t\t\twhile(cellIterator.hasNext()) {\n\t\t\t\t\tCell cell = cellIterator.next();\n\n\t\t\t\t\tif(cell.getCellType()==Cell.CELL_TYPE_FORMULA) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessFormulaReferences(cell);\n\t\t\t\t\t\t} catch (ParsingException e) {\n\t\t\t\t\t\t\t//ignore bad formulas\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcondenseInputCellReferencesFromAllSheets();\n\t\tcountFormulaCellsReferenced();\n\t}",
"TypeReference getTypeReference();",
"public <T> List<T> getDeclarablesByType(Class<T> type) {\n\t\treturn this.declarables.stream()\n\t\t\t\t.filter(type::isInstance)\n\t\t\t\t.map(type::cast)\n\t\t\t\t.collect(Collectors.toList());\n\t}",
"public List<? extends TypeMirror> getTypeMirrors() {\n/* 83 */ return this.types;\n/* */ }",
"java.util.List<org.jetbrains.r.rinterop.RRef> \n getRefsList();",
"void resolveRefs(SymbolTable symbolTable)\n {\n \tEnumeration e = defs.elements();\n\twhile (e.hasMoreElements())\n\t{\n\t Definition d=(Definition) e.nextElement();\n d.resolveRefs(symbolTable); \n\t}\n }",
"@Override\n protected void assignTypes(Multiset<JReferenceType> typesWithReferenceCounts) {\n assignId(program.getJavaScriptObject());\n assignId(program.getTypeJavaLangObject());\n assignId(program.getTypeJavaLangString());\n\n for (JType type : typesWithReferenceCounts) {\n assignId(type);\n }\n }",
"public abstract byte getReferenceKind();",
"public DatabaseReference getRef(String type) {\n return db.getReference(type);\n }",
"java.util.List<? extends org.jetbrains.r.rinterop.RRefOrBuilder> \n getRefsOrBuilderList();",
"public abstract Content getTypeAnnotationLinks(LinkInfo linkInfo);",
"@Override\n protected void assignTypes(Multiset<JReferenceType> typesWithReferenceCounts) {\n assignId(program.getJavaScriptObject());\n assignId(program.getTypeJavaLangObject());\n assignId(program.getTypeJavaLangString());\n\n ImmutableMultiset<JReferenceType> typesOrderedByFrequency =\n Multisets.copyHighestCountFirst(typesWithReferenceCounts);\n for (JType type : typesOrderedByFrequency) {\n assignId(type);\n }\n }",
"String getReferenceType();",
"@Override\n\tpublic List<TypeDocument> findAll() {\n\t\treturn typeDocumentRepository.findAll();\n\t}",
"public List<URI> getType();",
"public List<Reference> references(String owner, String repo, String ref) {\n return apiClient.deserializeAsList(apiClient.get(String.format(\"/repos/%s/%s/git/refs/%s\", owner, repo, ref)), Reference.class);\n }",
"public void rescanRepository() { // recree les liste de classes connues a partir du depot\n // cette methode peut etre invoquee si on sait que le depot a ete modifie\n for (int i=0; i<types.length; i++) {\n classesDisponibles[i] = new HashMap<String, String>();\n scanRepository(types[i], classesDisponibles[i]);\n }\n }",
"private static Object referenceValue(IDatatype type, Object value) {\n if (Reference.TYPE.isAssignableFrom(type)) {\n DisplayNameProvider nameProvider = DisplayNameProvider.getInstance();\n List<AbstractVariable> possibleDecls = ReferenceValuesFinder.findPossibleValues(\n de.uni_hildesheim.sse.qmApp.model.VariabilityModel.Configuration.INFRASTRUCTURE.getConfiguration()\n .getProject(), (Reference) type);\n for (int i = 0; i < possibleDecls.size(); i++) {\n AbstractVariable declaration = possibleDecls.get(i);\n String name = nameProvider.getDisplayName(declaration);\n if (name.equals(value)) {\n value = declaration;\n break;\n }\n }\n } \n return value;\n }",
"@Override\n public Collection<? extends DBSEntityAssociation> getReferences(@NotNull DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }",
"@Override\n public Collection<? extends DBSEntityAssociation> getReferences(@NotNull DBRProgressMonitor monitor) throws DBException {\n return Collections.emptyList();\n }",
"public Iterator<IEventType<T>> getDeepSuperTypes();",
"public Set<TypeDescriptor> getAllRelatedTypes() {\n final var types = getTypeParameters().stream()\n .flatMap(type -> type.getAllRelatedTypes().stream())\n .collect(Collectors.toCollection(HashSet::new));\n\n types.add(this);\n return types;\n }",
"private List<Germplasm> getGermplasmByType(int typeid) {\n\t\tBrowseGermplasmManagerImpl mgr = new BrowseGermplasmManagerImpl();\n\t\treturn (List<Germplasm>) mgr.getGermplasmByType(typeid);\n\t}",
"public void searchClassMemberReferences(String name, SearchIdConsumer consumer);",
"<T> Collection<T> get(Class<T> type, Iterable<Node> nodes);",
"void printObjects(){\r\n\t\tIterator iterator = gc.getIterator();\r\n\t while(iterator.hasNext()){\r\n\t\t GameObject g = iterator.getNext();\r\n\t\t\t if (!(g instanceof Bar))System.out.println(g.toString());\r\n\t\t}\r\n\t}",
"Set<DependencyItem> getIDependOn(Class<?> type);",
"Collection<? extends Object> getHadithReferenceNo();",
"@Override\n\tpublic void verifyReferencedTypes() {\n\t\tbeanType = resolve(getBuilder().getBean());\n\t\tbean = getContext().getModelSet().getBean(beanType, false);\n\t}",
"public Interface_EntityIterator Typed( Standard_Type type) {\n return new Interface_EntityIterator(OCCwrapJavaJNI.Interface_EntityIterator_Typed(swigCPtr, this, Standard_Type.getCPtr(type) , type), true);\n }",
"void readAssociations() {\n // proxy the collections for lazy loading\n Class c = getClass();\n for (Field f : c.getDeclaredFields()) {\n for (Annotation a : f.getAnnotations()) {\n if (a.annotationType().equals(HasMany.class)) {\n HasManyProxy proxyHandler = new HasManyProxy(this, f, (HasMany) a);\n associationProxies.add(proxyHandler);\n Classes.setFieldValue(this, f.getName(), Proxy.newProxyInstance(List.class.getClassLoader(),\n new Class[]{List.class}, proxyHandler));\n } else if (a.annotationType().equals(HasAndBelongsToMany.class)) {\n // TODO implement\n } else if (a.annotationType().equals(HasOne.class)) {\n // TODO implement\n } else if (a.annotationType().equals(BelongsTo.class)) {\n BelongsTo belongsTo = (BelongsTo) a;\n if (!(f.getGenericType() instanceof Class))\n throw new IllegalAnnotationException(\"@BelongsTo can only be applied to non-generic fields\");\n ActiveRecord ar = (ActiveRecord) Classes.newInstance(f.getGenericType());\n String fk = ActiveRecords.foriegnKey(f.getGenericType());\n if (!belongsTo.foreignKey().equals(\"\")) fk = belongsTo.foreignKey();\n System.out.println(\"foriegn key = \" + fk);\n Object fkValue = Classes.getFieldValue(this, fk);\n if (fkValue != null) {\n ar.read(fkValue);\n Classes.setFieldValue(this, f.getName(), ar);\n }\n }\n }\n }\n }",
"public List<E> findAll(Class<E> type){\n transaction.begin();\n List<E> types = entityManager.createQuery(\" from \" + type.getName()).getResultList();\n transaction.commit();\n return types;\n }",
"@Override synchronized public void resolve()\n{\n if (isResolved()) return;\n\n RebaseMain.logD(\"START RESOLVE\");\n for (RebaseJavaFile jf : file_nodes) {\n RebaseMain.logD(\"FILE: \" + jf.getFile().getFileName());\n }\n\n clearResolve();\n\n RebaseJavaTyper jt = new RebaseJavaTyper(base_context);\n RebaseJavaResolver jr = new RebaseJavaResolver(jt);\n jt.assignTypes(this);\n jr.resolveNames(this);\n\n all_types = new HashSet<RebaseJavaType>(jt.getAllTypes());\n\n setResolved(true);\n}",
"public interface Generic extends Reference\n{\n}",
"public final List<Element> getReferences() {\r\n return this.getReferences(true, true);\r\n }",
"public int size() {\r\n return refs.size();\r\n }",
"public Iterator<MaterialType> iterator() {\n\t\treload();\n\t\treturn new IteratorImpl(); \n\t}",
"public void resolvePageReferences()\n {\n int count = _pages.size();\n while (count-- > 0)\n getPage(count).resolvePageReferences(this);\n }",
"public int NbTyped( Standard_Type type) {\n return OCCwrapJavaJNI.Interface_EntityIterator_NbTyped(swigCPtr, this, Standard_Type.getCPtr(type) , type);\n }",
"Table getReferences();",
"protected void referencesToSAX (int toDocType,\n int refType,\n int useMode,\n ContentHandler contentHandler)\n throws SAXException\n {\n final String METHOD_NAME =\n \"referencesToSAX (\" + \n \"int toDocType, \" +\n \"int refType, \" +\n \"int useMode, \" +\n \"ContentHandler contentHandler)\";\n this.logDebug\n (METHOD_NAME + \" 1/2: Started.\" +\n \" toDocType = \" + toDocType +\n \", refType = \" + refType +\n \", useMode = \" + useMode +\n \", contentHandler = \" + contentHandler);\n ServiceSelector documentSelector = null;\n Document toDoc = null;\n try\n {\n documentSelector =\n (ServiceSelector) this.serviceManager.lookup(Document.ROLE + \"Selector\");\n toDoc = (Document) documentSelector.select(DocType.hintFor[toDocType]);\n toDoc.setUseMode(useMode);\n toDoc.setWithPath(this.withPath);\n String[] columns = toDoc.getDbColumns();\n this.ensureDbHelper();\n ResultSet resultSet = this.dbHelper.queryDataOfReferencedDocs\n (this.type, this.id, toDocType, refType, columns);\n if ( resultSet == null )\n {\n this.logDebug(METHOD_NAME + \" 2/2: Done. resultSet = null\");\n return;\n }\n while ( resultSet.next() )\n {\n toDoc.setId(resultSet.getInt(DbColumn.ID));\n toDoc.setLid(resultSet.getString(DbColumn.LID));\n toDoc.setRefId(resultSet.getInt(DbColumn.REF));\n toDoc.toSAX(resultSet, contentHandler, false);\n }\n }\n catch (Exception exception)\n {\n throw new SAXException(exception);\n }\n finally\n {\n if ( toDoc != null ) documentSelector.release(toDoc);\n if ( documentSelector != null ) this.serviceManager.release(documentSelector);\n }\n this.logDebug(METHOD_NAME + \" 2/2: Done\");\n }",
"protected Object lookupRecursive(Class<?> fieldType, javax.naming.Context context,\n NamingEnumeration<Binding> contextNames) throws Exception\n {\n while (contextNames.hasMore())\n {\n Binding contextName = contextNames.nextElement();\n Object value = contextName.getObject();\n if (javax.naming.Context.class.isInstance(value))\n {\n javax.naming.Context subContext = (javax.naming.Context) value;\n return lookupRecursive(fieldType, subContext, subContext.listBindings(\"/\"));\n }\n else\n {\n value = context.lookup(contextName.getName());\n if (fieldType.isInstance(value))\n {\n return value;\n }\n }\n }\n throw new RuntimeException(\"Could not lookup EJB reference for: \" + fieldType);\n }",
"public ResultMap<BaseNode> queryRelatives(QName type, Direction direction, ObjectNode query, Pagination pagination);",
"@Override\n\t\tpublic Iterable<RelationshipType> getRelationshipTypes() {\n\t\t\treturn null;\n\t\t}",
"public interface ReferenceContainer<E> {\n\n /**\n * Returns the kind of this container.\n * @return the kind\n */\n ReferenceKind getKind();\n\n /**\n * Returns whether or not this container is a stub.\n * @return {@code true} if this is a stub, otherwise {@code false}\n */\n default boolean isStub() {\n return getEntity().isPresent() == false;\n }\n\n /**\n * Returns the container entity.\n * @return the container entity, or {@code empty} if this container is a stub\n */\n Optional<E> getEntity();\n\n /**\n * Returns the referred symbols.\n * @return the referred symbols\n */\n List<PropertySymbol> getAllReferences();\n\n /**\n * Returns the mapped container.\n * @param mapper the symbol mapper\n * @return the mapped container\n */\n ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);\n\n /**\n * Returns the entity as {@link List}.\n * @return the symbol list\n * @throws IllegalStateException if this is not a list\n */\n default List<PropertySymbol> asList() {\n throw new IllegalStateException();\n }\n\n /**\n * Returns the entity as {@link Map}.\n * @return the symbol map\n * @throws IllegalStateException if this is not a map\n */\n default Map<String, PropertySymbol> asMap() {\n throw new IllegalStateException();\n }\n }",
"public Iterator getTypes() {\r\n\t\treturn types == null ? EmptyStructures.EMPTY_ITERATOR : new ReadOnlyIterator(types.values());\r\n\t}",
"public Set<CompoundName> getResult() { return references; }",
"public JsonDeserializer<?> _findCustomReferenceDeserializer(ReferenceType type, DeserializationConfig config, BeanDescription beanDesc, TypeDeserializer contentTypeDeserializer, JsonDeserializer<?> contentDeserializer) throws JsonMappingException {\n for (Deserializers d : this._factoryConfig.deserializers()) {\n JsonDeserializer<?> deser = d.findReferenceDeserializer(type, config, beanDesc, contentTypeDeserializer, contentDeserializer);\n if (deser != null) {\n return deser;\n }\n }\n return null;\n }",
"public final void addTrigger (Type type)\n {\n int savedRefCount = _refCount;\n for (Iterator i=type.value().getParameters().iterator(); i.hasNext();)\n if (((TypeParameter)i.next()).addResiduation(this,savedRefCount))\n _refCount++;\n }",
"@Override\n\t\tpublic Iterable<Relationship> getRelationships(Direction direction, RelationshipType... types) {\n\t\t\treturn null;\n\t\t}"
] | [
"0.6317341",
"0.59146684",
"0.5639101",
"0.5606109",
"0.5606089",
"0.54999554",
"0.5444383",
"0.54057103",
"0.5309623",
"0.52740633",
"0.5241461",
"0.5209034",
"0.5171609",
"0.5162048",
"0.5146167",
"0.5127924",
"0.5111239",
"0.5104945",
"0.5085707",
"0.507151",
"0.5070997",
"0.5066762",
"0.50489414",
"0.50459516",
"0.5043695",
"0.50425136",
"0.50307405",
"0.4992081",
"0.4982077",
"0.497572",
"0.49743837",
"0.49599245",
"0.49543363",
"0.4944703",
"0.4925253",
"0.4910135",
"0.48964354",
"0.48901588",
"0.4889639",
"0.4880962",
"0.48806992",
"0.4876066",
"0.4866717",
"0.48588276",
"0.48563257",
"0.48448795",
"0.4841344",
"0.48308173",
"0.48264083",
"0.48055255",
"0.47929347",
"0.47909617",
"0.47897154",
"0.47807994",
"0.47761172",
"0.4775983",
"0.47644424",
"0.4762495",
"0.47570226",
"0.47454435",
"0.47435242",
"0.47268102",
"0.4725273",
"0.47248742",
"0.47213462",
"0.47172344",
"0.47169286",
"0.47131264",
"0.4712874",
"0.4712874",
"0.4711123",
"0.4705839",
"0.46999905",
"0.46953574",
"0.4693832",
"0.4678934",
"0.46679705",
"0.46666202",
"0.46601284",
"0.46592644",
"0.46477446",
"0.4646282",
"0.46423554",
"0.4637028",
"0.46108937",
"0.46096352",
"0.45952675",
"0.4595148",
"0.45891923",
"0.45890558",
"0.45836163",
"0.4583577",
"0.45783782",
"0.45765933",
"0.45746556",
"0.45679244",
"0.45647764",
"0.45605612",
"0.45459983",
"0.45371574"
] | 0.57212836 | 2 |
Returns the content of a form field identified by an XPath expression | public String getFieldContent(String fieldExpression)
throws XPathExpressionException {
Node node = evaluateXPath(inputDoc, fieldExpression);
return node.getTextContent();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String get(String fieldName) {\n\t\tString xpQuery = getXPathQuery(fieldName);\n\t\treturn getFieldUsingXPath(xpQuery);\n\t}",
"private String getFieldUsingXPath(String xpathQuery) {\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.entering(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\tString result = null;\n\t\ttry {\n\t\t\tresult = DOMUtil.value(this.data, xpathQuery, NamespacesConnections.nameSpaceCtx);\n\t\t} catch (XMLException e) {\n\t\t\tlogger.log(Level.SEVERE, Messages.MessageGenericError + \"getFieldUsingXPath\");\n\t\t}\n\t\tif (logger.isLoggable(Level.FINEST)) {\n\t\t\tlogger.exiting(sourceClass, \"getFieldUsingXPath\");\n\t\t}\n\t\treturn result;\n\t}",
"private String getValueFromXPath(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).asText();\n\t}",
"private String getValueFromXPathAndDescendants(HtmlPage appPage, String xPath) throws Exception {\n\t\treturn ((HtmlElement) appPage.getByXPath(xPath).get(0)).getTextContent();\n\t}",
"public SelenideElement searchByUser() {\n return formPageRoot().$(By.xpath(\"//input[@type='text']\"));\n }",
"public String getFieldText(String fieldName);",
"public String getTextFromField(String fieldLabel){\n reporter.info(\"Get text from field \"+fieldLabel);\n return getElementText(LOCATORS.getBy(COMPONENT_NAME,\"FIELD_INPUT_BY_NAME\",fieldLabel),SHORT_TIMEOUT);\n }",
"private static String sEnterSelectRootXpath(String sWhichField) {\n\t\tString sReturn = \"unset\"; \n\t\tswitch (sWhichField) {\n\t\tcase \"Content Type\": //content type on the create content modal\n\t\t\tsReturn = \"//*[text()[contains(.,\\\"\" + sWhichField + \"\\\")]]/ancestor::mat-form-field\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsReturn = \"//*[text()[contains(.,\\\"\" + sWhichField + \"\\\")]]/ancestor::iti-form-field\";\t\t\t\n\t\t}\n\t\t\n\t\treturn sReturn;\n\t}",
"public abstract XPathExpression getExpression();",
"public String getField( String fieldName )\n {\n JTextField field = (JTextField) fields.get(fieldName);\n return field.getText();\n }",
"public String getTextContent(String xpath) {\n\t\t\n\t\tString result = \"\";\n\t\t\n\t\t//-- Process\n\t\ttry {\n\t\t\tresult = (String) this.xpath.evaluate(xpath, this.document, XPathConstants.STRING);\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\treturn result==null?\"\":result;\n\t\t\n\t}",
"WebElement getOrganizationField();",
"public String getFieldText(String fieldName, int index);",
"abstract public String getValue(String fieldname);",
"WebElement getNameField();",
"public XPath getValue()\n {\n return m_valueExpr;\n }",
"public String getText()\n {\n return field.getText();\n }",
"String getXPath();",
"public String getXPath();",
"public static String getXPathValue(FuzzyXMLElement element,String xpath){\r\n\t\ttry {\r\n\t\t\tString value = (String)XPath.getValue(element,xpath);\r\n\t\t\treturn value.trim();\r\n\t\t} catch(Exception ex){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"String getField();",
"public String getTextValue (Node node);",
"org.apache.xmlbeans.impl.xb.xsdschema.SelectorDocument.Selector.Xpath xgetXpath();",
"public String getParseValue(String fieldname, JournalArticle article, String languageID) {\n\t\tString value = \"\";\n\t\ttry {\n\t\t\tcom.liferay.portal.kernel.xml.Document document = SAXReaderUtil.read(article\n\t\t\t\t\t.getContentByLocale(languageID));\n\t\t\tNode node = document.selectSingleNode(\"/root/dynamic-element[@name='\" + fieldname\n\t\t\t\t\t+ \"']/dynamic-content\");\n\t\t\tvalue = node.getText();\n\t\t} catch (Exception e) {\n\n\t\t\t_log.error(e.getMessage());\n\t\t}\n\n\t\treturn value;\n\t}",
"@WebElementLocator(webDesktop = \"//input[@type='email']\",webPhone = \"//input[@type='email']\")\n private static WebElement emailField() {\n return getDriver().findElement(By.xpath(new WebElementLocatorFactory().getLocator(LoginPage.class, \"emailField\")));\n }",
"public String getText() {\r\n\r\n return field.getText();\r\n\r\n }",
"private String getFieldTextValue(final JsonNode rootNode, final String fieldName) {\n JsonNode node = rootNode.get(fieldName);\n return node == null ? null : node.textValue();\n }",
"@Override\n public Object xpathGet(String xpath) {\n if (xpath==null) {\n return null;\n }\n\n try {\n return fetchJXPathContext().getValue(XPath.xpath(xpath));\n } catch (JXPathException e) {\n throw new TypeXPathException(e);\n }\n }",
"public String getXpath() { \n\t\treturn getXpathElement().getValue();\n\t}",
"public String getNameLocator()\r\n\t{\r\n driver.findElement(By.name(\"fname\"));\r\n fName=driver.findElement(By.xpath(\"//input[@placeholder='Firstname']\")).getAttribute(\"placeholder\");\r\n return fName;\r\n\t}",
"String getTextValue();",
"public String getTextFromTextField() {\r\n\t\treturn textField.getText();\r\n\t}",
"public synchronized String getValueOfNode(String path)\n throws ProcessingException {\n String value = null;\n\n path = this.createPath(path); // correct path\n value = DOMUtil.getValueOf(data, path, this.xpathProcessor);\n\n return value;\n }",
"public WebElement returnThisElement(String fieldName) {\n WebElement desiredElement = null;\n switch (fieldName) {\n case \"username\":\n desiredElement = username;\n break;\n case \"email\":\n desiredElement = email;\n break;\n case \"password\":\n desiredElement = password;\n break;\n case \"confirmPassword\":\n desiredElement = confirmPassword;\n break;\n case \"name\":\n desiredElement = name;\n break;\n case \"firstName\":\n desiredElement = firstName;\n break;\n case \"middleName\":\n desiredElement = middleName;\n break;\n case \"lastName\":\n desiredElement = lastName;\n break;\n case \"agreedToPrivacyPolicy\":\n desiredElement = privacy;\n break;\n default:\n throw new IllegalStateException(\"Error: This form field name is invalid: \" + fieldName);\n }\n return desiredElement;\n }",
"String getTooltipContent(WebElement field){\n String tooltip = null;\n String tooltipId = field.getAttribute(\"aria-describedby\");\n By tooltipLocator = By.id(tooltipId);\n WebElement tooltipField = driver.findElement(tooltipLocator);\n tooltip = tooltipField.getText();\n System.out.println(\"** tooltip value: \" + tooltip);\n return tooltip;\n }",
"public XPath getFrom()\n {\n return m_fromMatchPattern;\n }",
"Rule Field() {\n // Push 1 FieldNode onto the value stack\n return Sequence(\n Optional(FieldID()),\n Optional(FieldReq()),\n FieldType(), // pushes FieldType onto the value stack\n Identifier(), // pushes Identifier onto the value stack\n Optional(Sequence(\"= \", ConstValue())),\n //XsdFieldOptions(),\n Optional(ListSeparator()),\n WhiteSpace(),\n actions.pushFieldNode());\n }",
"public String encodeFromXpath(String expression, Document xmlDocument) throws SCNotifyRequestProcessingException {\n\t\tlogger.debug(\"(.) inside encodeFromXpath method of ServiceChannelNotificationProcessBean Class \");\n\t\tNotificationUtil notificationUtil = new NotificationUtil();\n\t\tString fieldVal = null;\n\t\tXPath xPath = XPathFactory.newInstance().newXPath();\n\t\tNodeList nodeList = null;\n\t\ttry {\n\t\t\tnodeList = (NodeList) xPath.compile(expression).evaluate(xmlDocument, XPathConstants.NODESET);\n\t\t\tfor (int i = 0; i < nodeList.getLength(); i++) {\n\t\t\t\tif (nodeList.item(0).getNodeType() != Node.ELEMENT_NODE) {\n\t\t\t\t\tfieldVal = nodeList.item(0).getTextContent().trim();\n\t\t\t\t\tlogger.debug(\".encodedData (StoreID OR CustomerID) : \" + fieldVal);\n\t\t\t\t} else {\n\t\t\t\t\tNode givenNode = nodeList.item(0);\n\t\t\t\t\tfieldVal = notificationUtil.nodeToString(givenNode.getFirstChild()).trim();\n\t\t\t\t\tlogger.debug(\".xmlData : \" + fieldVal);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn fieldVal;\n\t\t} catch (XPathExpressionException e) {\n\t\t\tthrow new SCNotifyRequestProcessingException(\"Unable to compile the xpath expression at index - \"\n\t\t\t\t\t+ \" when evaluating document - \" + xmlDocument.getFirstChild().getNodeName() + \"..\", e);\n\t\t} \n\t}",
"WebElement getLoginIDField();",
"@Override\n\tpublic WebElement $x(String xpath) {\n\t\tList<WebElement> els = this.findElements(By.xpath(xpath));\n\t\tif (els.size() >= 0) {\n\t\t\treturn els.get(0);\n\t\t}\n\t\treturn null;\n\t}",
"Field_decl getField();",
"public void getRawField(String path){\n\t\tString info; // content of each node\n\t\tArrayList<String> fileContent = new ArrayList<>();\n\t\tNodeList documentList = getDocumentsTagsPubmed(path);\n\t\tfor (int s = 0; s < documentList.getLength(); s++) { //transform document nodes in elements\n\t\t\tNode fstNode = documentList.item(s);\n\t\t\tElement element = (Element) fstNode;\n\t\t\tNodeList nodeList2 = element.getElementsByTagName(\"str\");\n\t\t\tfor (int j = 0; j < nodeList2.getLength(); j++) {\n\t\t\t\tNode text = nodeList2.item(j);\n\t\t\t\treadPubmedElements(fileContent,text);\n\t\t\t\tif(fileContent.get(0)!=null){\n\t\t\t\t\t//\tgetWindowSentences(List<String> tokenizedText, T, int window, fileContent.get(0));\n\t\t\t\t\tsaveContenttoFile(fileContent, \"Files\\\\result.txt\");\n\t\t\t\t\tfileContent.removeAll(fileContent);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public String getFieldValue() {\n return this.fieldValue;\n }",
"public java.lang.String getFieldValue() {\n return fieldValue;\n }",
"@Override\n\tprotected String getField(FtrToken token)\n\t{\n\t\tDEPNode node = getNode(token);\n\t\tif (node == null)\treturn null;\n\t\tMatcher m;\n\t\t\n\t\tif (token.isField(JointFtrXml.F_FORM))\n\t\t{\n\t\t\treturn node.form;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_LEMMA))\n\t\t{\n\t\t\treturn node.lemma;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_POS))\n\t\t{\n\t\t\treturn node.pos;\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_DEPREL))\n\t\t{\n\t\t\treturn node.getLabel();\n\t\t}\n\t\telse if (token.isField(JointFtrXml.F_DISTANCE))\n\t\t{\n\t\t\treturn getDistance(node);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_ARGN.matcher(token.field)).find())\n\t\t{\n\t\t\tint idx = l_argns.size() - Integer.parseInt(m.group(1)) - 1;\n\t\t\treturn (idx >= 0) ? l_argns.get(idx) : null;\n\t\t}\n\t\telse if ((m = JointFtrXml.P_PATH.matcher(token.field)).find())\n\t\t{\n\t\t\tString type = m.group(1);\n\t\t\tint dir = Integer.parseInt(m.group(2));\n\t\t\t\n\t\t\treturn getPath(type, dir);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_SUBCAT.matcher(token.field)).find())\n\t\t{\n\t\t\tString type = m.group(1);\n\t\t\tint dir = Integer.parseInt(m.group(2));\n\t\t\t\n\t\t\treturn getSubcat(node, type, dir);\n\t\t}\n\t\telse if ((m = JointFtrXml.P_FEAT.matcher(token.field)).find())\n\t\t{\n\t\t\treturn node.getFeat(m.group(1));\n\t\t}\n\t\telse if ((m = JointFtrXml.P_BOOLEAN.matcher(token.field)).find())\n\t\t{\n\t\t\tDEPNode pred = d_tree.get(i_pred);\n\t\t\tint field = Integer.parseInt(m.group(1));\n\t\t\t\n\t\t\tswitch (field)\n\t\t\t{\n\t\t\tcase 0: return (node.isDependentOf(pred)) ? token.field : null;\n\t\t\tcase 1: return (pred.isDependentOf(node)) ? token.field : null;\n\t\t\tcase 2: return (pred.isDependentOf(d_lca)) ? token.field : null;\n\t\t\tcase 3: return (pred == d_lca) ? token.field : null;\n\t\t\tcase 4: return (node == d_lca) ? token.field : null;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}",
"public String getFieldValue() {\n return TF_Field_Value;\n }",
"public XmlNsForm getElementFormDefault();",
"public String getTextFromSingleNode(String xPathString) throws AxmlDocException {\n\t\tAxmlNode axmlNode;\n\t\tNode node;\n\t\tXPathExpression xPathExpression;\n\n\t\ttry {\n\t\t\txPathExpression = xPath.compile(xPathString);\n\t\t\tnode = (Node) xPathExpression.evaluate(this.decoratedDocument, XPathConstants.NODE);\n\t\t\taxmlNode = new AxmlNode((Element) node);\n\t\t} catch (XPathExpressionException xpe) {\n\t\t\tthrow new AxmlDocException(\n\t\t\t\t\t\"xPath error. Check if your expression is ok and if refer to a only one node element.\");\n\t\t}\n\n\t\tString retorno;\n\n\t\t// Checking handle strategy\n\t\tswitch (this.handleStrategy) {\n\t\tcase LAZY_PERSIST:\n\t\t\tretorno = axmlNode.getTextContent(this.returnType);\n\t\t\tthis.persist();\n\t\t\tbreak;\n\t\tcase LAZY_PERSIST_WITH_EXCLUSION:\n\t\t\tthis.revertMaterializedData();\n\t\t\tretorno = axmlNode.getTextContent(this.returnType);\n\t\t\tthis.persist();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tretorno = axmlNode.getTextContent(this.returnType);\n\t\t}\n\n\t\treturn retorno;\n\t}",
"@Nullable\n\tObject getFieldValue(String field);",
"String getElement();",
"@Test\n public void test028() throws Throwable {\n Form form0 = new Form(\"<([^<]+)>\");\n Form form1 = form0._getVisibleForm(true);\n }",
"@Test\n public void getFieldData() throws Exception\n {\n Document doc = new Document(getMyDir() + \"Field sample - Field with data.docx\");\n\n Field field = doc.getRange().getFields().get(2);\n System.out.println(new String(field.getStart().getFieldData(), StandardCharsets.UTF_8));\n //ExEnd\n }",
"protected void deriveMatchingElementXPath()\n\t{\n\t\tString pcXPath = getParentContainerXPath();\n\t\tString base = pcXPath.substring(0, pcXPath.indexOf(\"[\"));\n\t\t\n\t\tStringBuffer sb = new StringBuffer();\n\t\tsb.append(base);\n\t\tsb.append(\"[\");\n\t\t\n\t\tif (getAttributeMatchExpression().equals(TaskExprType.STARTS_WITH))\n\t\t{\n\t\t\tsb.append(\"starts-with(\");\n\t\t}\n\t\telse if (getAttributeMatchExpression().equals(TaskExprType.CONTAINS))\n\t\t{\n\t\t\tsb.append(\"contains(\");\n\t\t}\n\n\t\tsb.append(getMatchingAttributeName());\n\t\tsb.append(\",'\");\n\t\tsb.append(getMatchingAttributeValue());\n\t\tsb.append(\"')]\");\n\t\t\n\t\t/*\n\t\t * Should look like this:\n\t\t * setMatchingElementXPath(\"//body/div/div[starts-with(@class,'Heading1')]\");\n\t\t */\n\t\tsetMatchingElementXPath(sb.toString());\n\t}",
"String getValueText();",
"String getFormFieldLabel();",
"public String getField(String fieldname, boolean validate) \n\t\t\tthrows InvalidFieldNameException {\n\t\tString result = element.getChildText(fieldname, ns);\n\t\tif (result == null) {\n\t\t\tif (validate) {\n\t\t\t\tif (!table.getWSDL().canReadField(fieldname))\n\t\t\t\t\tthrow new InvalidFieldNameException(fieldname);\n\t\t\t}\n\t\t\treturn null;\n\t\t}\n\t\tif (result.length() == 0) return null;\n\t\treturn result;\t\t\n\t}",
"public String getXPath() {\n/* 114 */ return this.xPath;\n/* */ }",
"XExpression getExpression();",
"public String getFieldValue() {\r\n\t\tString value = textBox.getValue();\r\n\t\t\t\r\n\t\treturn value;\r\n\t}",
"public JTextField getTextField()\n {\n return field;\n }",
"java.lang.String getField1333();",
"public static MemberExpression field(Expression expression, String fieldName) { throw Extensions.todo(); }",
"java.lang.String getField1015();",
"abstract public String getDisplayValue(String fieldname);",
"java.lang.String getField1507();",
"public String getXPath() {\n return xPathStr;\n }",
"java.lang.String getField1017();",
"XPath parseXPath(String xpath) throws SAXPathException;",
"java.lang.String getField1313();",
"private static String getValuesFromDom(Document doc, XPath xpath, String typeAttr) {\t\t\t\t// Function definition to get the value of POP12\n \n\t\tString attrValue = null;\n try {\n XPathExpression xpathExpression = xpath.compile(\"/dwml/data/parameters/\"+typeAttr+\"/value/text()\");\n attrValue = (String) xpathExpression.evaluate(doc, XPathConstants.STRING);\n \n } catch (XPathExpressionException e) {\n e.printStackTrace();\n }\n if(attrValue.equals(null)||attrValue.equals(\"\")){\n \treturn \"NA\";\n }\n return attrValue;\n }",
"java.lang.String getField1310();",
"java.lang.String getField1371();",
"public WebElement getEmailFieldForLogin () {\n\t\treturn driver.findElement(By.id(\"email\"));\n\t}",
"java.lang.String getField1306();",
"public String getValue(final String elementLocator);",
"TextField getTextFieldRootRecherche();",
"java.lang.String getField1470();",
"java.lang.String getField1471();",
"java.lang.String getField1021();",
"@Test\n public void fieldForms() throws Exception {\n Document doc = new Document(getMyDir() + \"Form fields.docx\");\n\n FieldFormCheckBox fieldFormCheckBox = (FieldFormCheckBox) doc.getRange().getFields().get(1);\n Assert.assertEquals(\" FORMCHECKBOX \\u0001\", fieldFormCheckBox.getFieldCode());\n\n FieldFormDropDown fieldFormDropDown = (FieldFormDropDown) doc.getRange().getFields().get(2);\n Assert.assertEquals(\" FORMDROPDOWN \\u0001\", fieldFormDropDown.getFieldCode());\n\n FieldFormText fieldFormText = (FieldFormText) doc.getRange().getFields().get(0);\n Assert.assertEquals(\" FORMTEXT \\u0001\", fieldFormText.getFieldCode());\n //ExEnd\n }",
"java.lang.String getField1155();",
"public Form readForm(String formKey);",
"java.lang.String getField1012();",
"java.lang.String getField1200();",
"java.lang.String getField1107();",
"java.lang.String getField1070();",
"java.lang.String getField1309();",
"java.lang.String getField1571();",
"java.lang.String getField1407();",
"java.lang.String getField1420();",
"java.lang.String getField1411();",
"java.lang.String getField1055();",
"public String getField()\n {\n return field;\n }",
"public String getText(final String elementLocator);",
"java.lang.String getField1120();",
"java.lang.String getField1610();",
"java.lang.String getField1001();",
"java.lang.String getField1410();",
"java.lang.String getField1430();",
"java.lang.String getField1167();"
] | [
"0.6530517",
"0.63672054",
"0.6193307",
"0.61258",
"0.5846615",
"0.58268034",
"0.57504684",
"0.567717",
"0.5501697",
"0.5446219",
"0.5364716",
"0.5349483",
"0.53131497",
"0.53101933",
"0.5300876",
"0.52818966",
"0.52447456",
"0.5233684",
"0.52290493",
"0.5172018",
"0.51598066",
"0.51437163",
"0.51421183",
"0.5121943",
"0.50965136",
"0.5091896",
"0.5077875",
"0.5013254",
"0.49991515",
"0.4991182",
"0.4982732",
"0.49504864",
"0.49479622",
"0.49331072",
"0.4914718",
"0.49072453",
"0.49051487",
"0.49031737",
"0.48944527",
"0.48932856",
"0.48817667",
"0.48815274",
"0.4878273",
"0.48203945",
"0.4812713",
"0.48043233",
"0.47994047",
"0.47969085",
"0.4789514",
"0.47469696",
"0.4729641",
"0.47287005",
"0.47235042",
"0.47207966",
"0.47174042",
"0.47148395",
"0.47145262",
"0.47113717",
"0.47069484",
"0.470374",
"0.46977404",
"0.46717715",
"0.4670261",
"0.46537104",
"0.4646518",
"0.46369976",
"0.4635472",
"0.46353018",
"0.4634777",
"0.4634302",
"0.4634224",
"0.4630249",
"0.4626087",
"0.46243638",
"0.4618817",
"0.46176502",
"0.46165377",
"0.4614259",
"0.4613695",
"0.46133044",
"0.46131483",
"0.4612897",
"0.46108127",
"0.46089834",
"0.4608671",
"0.4608423",
"0.46075207",
"0.46065408",
"0.46061915",
"0.46040067",
"0.46017736",
"0.46015835",
"0.46014994",
"0.46009657",
"0.4599148",
"0.45991015",
"0.45936713",
"0.45926216",
"0.4589918",
"0.45865938"
] | 0.6943544 | 0 |
Adds an error to a form field | public void addFieldError(String fieldExpression, String errorMessage)
throws XPathExpressionException {
Node node = evaluateXPath(validationDoc, fieldExpression);
NamedNodeMap attributes = node.getAttributes();
Attr validAttr = validationDoc.createAttribute("v:valid");
validAttr.setValue("false");
attributes.setNamedItem(validAttr);
Attr alertAttr = validationDoc.createAttribute("v:alert");
alertAttr.setValue(errorMessage);
attributes.setNamedItem(alertAttr);
valid = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addError(String message);",
"public void setFieldError(String field, String error) {\n\t\tif (field.equals(\"name\"))\n\t\t\tnameCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"description\"))\n\t\t\tdescriptionCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"price\"))\n\t\t\tpriceCG.setClassName(\"control-group error\");\n\t}",
"private void addError(String field, String error, Object value) {\n if (errors == null) {\n errors = new LinkedHashMap<String, FieldError>();\n }\n LOG.debug(\"Add field: '{}' error: '{}' value: '{}'\", field, error, value);\n errors.put(field, new FieldError(field, error, value));\n }",
"public void addError(String name, String message)\n\t{\n\t\tvalidationErrors.put(name, message);\n\t}",
"void setCustomValidity(String error);",
"public final void AddError()\n\t{\n\t\terrorCount_++;\n\t\tentryValid_ = false;\n\t}",
"public abstract void setError(String message);",
"public void addError(String sFieldName, String sMessage)\n\t{\n\t\tthis.listErrors.add(new FieldMessage(sFieldName,sMessage));\n\t}",
"private void addErrorMessage(ErrorMessage error) {\n if (error != null && !errors.contains(error)) {\n errors.add(error);\n final int l = error.getErrorLevel();\n if (l > level) {\n level = l;\n }\n }\n }",
"public void addValidationError(ExcelImportException error) {\n\t\tthis.validationErrors.add(error);\n\t}",
"private boolean setErrorIfRequired(Element field, boolean hasValue, String errorKey, Object... translationParams) {\r\n if (hasValue) {\r\n field.setProperty(\"invalid\", true);\r\n field.setProperty(\"errorMessage\", getTranslation(errorKey, translationParams));\r\n return true;\r\n } else {\r\n field.setProperty(\"invalid\", false);\r\n return false;\r\n }\r\n }",
"void setError();",
"public void addError(Throwable t);",
"public void addErrorMessage(ConstraintViolation<?> constraintViolation, Widget widget) {\n\t\tSpanElement msg = DOM.createSpan().cast();\n\t\tmsg.setInnerText(constraintViolation.getMessage());\n\t\tmsg.addClassName(\"help-block\");\n\t\twidget.getElement().getParentElement().appendChild(msg );\n\t}",
"public void putError(String message) {\n errorData.postValue(message);\n }",
"public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }",
"public Builder addError(WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(value);\n onChanged();\n } else {\n errorBuilder_.addMessage(value);\n }\n return this;\n }",
"protected void addError(AeExpressionValidationResult aResult, String aMessage, Object[] aArgs) {\r\n String msg = MessageFormat.format(aMessage, aArgs);\r\n aResult.addError(msg);\r\n }",
"@Override\n public void setError(@Nullable CharSequence error) {\n setErrorEnabled(error != null);\n super.setError(error);\n }",
"void setErrorMessage(String errorMessage);",
"public void error(ValidationType type, String validationName, String content);",
"@Override\n\tpublic void addError(String hdr, String msg) {\n\t\terrors.put(hdr, msg);\n\t}",
"@Override\n protected void addError(Type errorType, int line, int column, String key)\n {\n super.addError(errorType, line, column, this.messages.getString(key));\n }",
"public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000008;\n error_ = value;\n onChanged();\n return this;\n }",
"public Builder addError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(index, value);\n onChanged();\n } else {\n errorBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public Builder setError(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n error_ = value;\n onChanged();\n return this;\n }",
"public void addError(String errorMessage, AbstractPersistedAnalysisJob job) {\r\n getDwrUtil(job.getUserWorkspace().getUsername()).setValue(\"errors\", errorMessage);\r\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"void addError(String message) {\n\t\tif (currentErrors == null) {\r\n\t\t\tcurrentErrors = new ArrayList<String>();\r\n\t\t}\r\n\r\n\t\tcurrentErrors.add(message);\r\n\t}",
"@Test\r\n\tpublic void errorFieldTest() {\r\n\t\tMockito.when(messageSource.getMessage(Mockito.eq(\"register.lastname.empty\"), Mockito.any(), Mockito.any())).thenReturn(\"Empty lastname\");\r\n\t\tErrorField error = validator.validateLastname(\"lastname\", \"\");\r\n\t\tassertNotNull(error);\r\n\t\tassertEquals(\"lastname\", error.getField());\r\n\t\tassertEquals(\"Empty lastname\", error.getMessage());\r\n\t}",
"public Builder addError(\n WorldUps.UErr.Builder builderForValue) {\n if (errorBuilder_ == null) {\n ensureErrorIsMutable();\n error_.add(builderForValue.build());\n onChanged();\n } else {\n errorBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }",
"public void error(String message);",
"final void addError( ParsedElement parsedElement, ResourceKey errorMsg )\n {\n verify( parsedElement, false, errorMsg, EMPTY_ARRAY );\n }",
"public void append(String error) {\n errorMessage.append(error);\n }",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"ValidationError getValidationError();",
"public void showError(String error);",
"public void addErrorMessage(String message) {\n this.success = false;\n this.addMessage(message);\n }",
"public boolean hasFieldErrors();",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorInfo(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorInfo_ = value;\n onChanged();\n return this;\n }",
"public void tomaError( \r\n String error,\r\n InterfaceEdicionDatos<Tipo> editor );",
"abstract void error(String error);",
"public void addError(String response) {\n VBox error = new VBox();\n Text errorText = new Text(response);\n error.getChildren().add(errorText);\n root.setRight(error);\n }",
"@Override\n public HangarMessages addErrorsLoginFailure(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(ERRORS_LOGIN_FAILURE));\n return this;\n }",
"ResponseErrorAssembler addErrorMesage(Message errorMessage);",
"public HangarMessages addErrorsLoginRequired(String property) {\n assertPropertyNotNull(property);\n add(property, new UserMessage(ERRORS_LOGIN_REQUIRED));\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public void setError(String error) {\n\t\tthis.error = error;\n\t}",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000080;\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"private void addError(final SAMValidationError error) {\n if (this.errorsToIgnore.contains(error.getType())) return;\n \n if (this.ignoreWarnings && error.getType().severity == SAMValidationError.Severity.WARNING) return;\n \n this.errorsByType.increment(error.getType());\n if (verbose) {\n out.println(error);\n out.flush();\n if (this.errorsByType.getCount() >= maxVerboseOutput) {\n throw new MaxOutputExceededException();\n }\n }\n }",
"public void addField (String label, String field) {\n addField (label, field, \"\");\n }",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"public void makeError(){\n\t\tisError = true;\n\t}",
"void setErrorAppTag(String errorMessage);",
"private void addGlobalExceptionToPage(Exception exception, BindingResult bindingResult) {\n ObjectError error = new ObjectError(\"globalError\", exception.getMessage());\n bindingResult.addError(error);\n }",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"void errorBox(String title, String message);",
"void setError(@Nullable Exception error) {\n this.error = error;\n }",
"void onValidationFailed();",
"public void setError(java.lang.String error) {\n this.error = error;\n }",
"public Builder setError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.set(index, value);\n onChanged();\n } else {\n errorBuilder_.setMessage(index, value);\n }\n return this;\n }",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"public CisFieldError()\n\t{\n\t\t// required for jaxb\n\t}",
"public void setError(int value) {\n this.error = value;\n }",
"private void updateErrorText()\n {\n mErrorText.clear();\n mErrorText.clearSpans();\n final int length = mTextInputLayout.getText().length();\n if(length >= 0){\n mErrorText.append(String.valueOf(length));\n mErrorText.append(\" / \");\n mErrorText.append(String.valueOf(mMaxLen));\n mErrorText.setSpan(mAlignmentSpan, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n if(hasValidLength()){\n mErrorText.setSpan(mNormalTextAppearance, 0, mErrorText.length(),\n Spanned.SPAN_INCLUSIVE_EXCLUSIVE);\n }\n }\n mCharacterLimit.setText(mErrorText);\n }",
"public void setError(@Nullable ExceptionBean error) {\n this.error = error;\n }",
"public void error();",
"public void addError(\n Context ctx, ShadowExceptionErrorKind error, String message, Type... errorTypes) {\n if (containsUnknown(errorTypes)) return; // Don't add error if it has an unknown type in it.\n\n if (ctx != null) errorList.add(error.getException(message, ctx));\n }",
"public void setErrorMessage(String msg) {\r\n\t\terrorMessage.setText(msg);\r\n\t}",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"java.lang.String getErrorMessage();",
"public Builder addError(\n int index, WorldUps.UErr.Builder builderForValue) {\n if (errorBuilder_ == null) {\n ensureErrorIsMutable();\n error_.add(index, builderForValue.build());\n onChanged();\n } else {\n errorBuilder_.addMessage(index, builderForValue.build());\n }\n return this;\n }",
"public Builder setErr(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n err_ = value;\n onChanged();\n return this;\n }",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"@Override\n\tpublic void error(CharSequence message) {\n\n\t}",
"public void setErrorText(String errorText) {\n this.m_ErrorText = errorText;\n }",
"protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}",
"@Override\r\n\tpublic void displayError(EntityPropertyCode code, String message) {\n\t}",
"public void setError(final XyzError error) {\n this.error = error;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }",
"public Builder setErrorMessage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n errorMessage_ = value;\n onChanged();\n return this;\n }"
] | [
"0.6976759",
"0.6922888",
"0.66773593",
"0.63606745",
"0.63081837",
"0.62268203",
"0.6226642",
"0.61147976",
"0.6094847",
"0.6089832",
"0.59905595",
"0.5903763",
"0.5870808",
"0.5840065",
"0.5834981",
"0.5809798",
"0.5795049",
"0.5774134",
"0.5750926",
"0.5737545",
"0.5735256",
"0.5718245",
"0.5717022",
"0.5715083",
"0.57106787",
"0.56536263",
"0.56439686",
"0.5621951",
"0.5621951",
"0.5621951",
"0.5610695",
"0.56090647",
"0.5590457",
"0.5543828",
"0.55350345",
"0.55245787",
"0.55218387",
"0.5519514",
"0.548563",
"0.5472442",
"0.54630286",
"0.54620075",
"0.54620075",
"0.54620075",
"0.54620075",
"0.5460152",
"0.54259497",
"0.5421385",
"0.5411375",
"0.54096806",
"0.539947",
"0.5379458",
"0.5378139",
"0.5376637",
"0.53704476",
"0.5354756",
"0.5351017",
"0.5350719",
"0.53331167",
"0.53322107",
"0.53202987",
"0.5308691",
"0.5307768",
"0.53053045",
"0.53024834",
"0.52934915",
"0.52847046",
"0.52763927",
"0.52747744",
"0.52724856",
"0.5267785",
"0.5265112",
"0.52483916",
"0.52463675",
"0.5237806",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.52360386",
"0.5234203",
"0.52330196",
"0.5232702",
"0.5231773",
"0.5217777",
"0.5211524",
"0.5188366",
"0.5183976",
"0.5183762",
"0.5183762",
"0.5183762",
"0.5183762",
"0.5183762"
] | 0.7013193 | 0 |
Adds a global error to the form | public void addGlobalError(String errorMessage) {
Node globalErrorsNode = validationDoc.getDocumentElement()
.getElementsByTagName("v:global-errors").item(0);
Element errorNode = validationDoc.createElement("v:global-error");
NamedNodeMap attributes = errorNode.getAttributes();
Attr alertAttr = validationDoc.createAttribute("v:alert");
alertAttr.setValue(errorMessage);
attributes.setNamedItem(alertAttr);
globalErrorsNode.appendChild(errorNode);
valid = false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void addError(String message);",
"private void addGlobalExceptionToPage(Exception exception, BindingResult bindingResult) {\n ObjectError error = new ObjectError(\"globalError\", exception.getMessage());\n bindingResult.addError(error);\n }",
"void setError();",
"public ErrorGUI() {\n\t\terror = new Error();\n\t\t\n\t}",
"public abstract void setError(String message);",
"public final void AddError()\n\t{\n\t\terrorCount_++;\n\t\tentryValid_ = false;\n\t}",
"public void addError(String name, String message)\n\t{\n\t\tvalidationErrors.put(name, message);\n\t}",
"private void addErrorMessage(ErrorMessage error) {\n if (error != null && !errors.contains(error)) {\n errors.add(error);\n final int l = error.getErrorLevel();\n if (l > level) {\n level = l;\n }\n }\n }",
"public void addError(String errorMessage, AbstractPersistedAnalysisJob job) {\r\n getDwrUtil(job.getUserWorkspace().getUsername()).setValue(\"errors\", errorMessage);\r\n }",
"void addError(String message) {\n\t\tif (currentErrors == null) {\r\n\t\t\tcurrentErrors = new ArrayList<String>();\r\n\t\t}\r\n\r\n\t\tcurrentErrors.add(message);\r\n\t}",
"private void setErrorMessage() {\n messageLabel.setText(NbBundle.getMessage(JavaFXPlatformCustomizer.class, \"Customizer_Invalid_Platform_Msg\")); // NOI18N\n }",
"void errorBox(String title, String message);",
"public void validationErr()\r\n\t{\n\t\tSystem.out.println(\"validation err\");\r\n\t}",
"private void addError(String field, String error, Object value) {\n if (errors == null) {\n errors = new LinkedHashMap<String, FieldError>();\n }\n LOG.debug(\"Add field: '{}' error: '{}' value: '{}'\", field, error, value);\n errors.put(field, new FieldError(field, error, value));\n }",
"public void addFieldError(String fieldExpression, String errorMessage)\n\t\t\tthrows XPathExpressionException {\n\t\tNode node = evaluateXPath(validationDoc, fieldExpression);\n\t\tNamedNodeMap attributes = node.getAttributes();\n\t\tAttr validAttr = validationDoc.createAttribute(\"v:valid\");\n\t\tvalidAttr.setValue(\"false\");\n\t\tattributes.setNamedItem(validAttr);\n\t\tAttr alertAttr = validationDoc.createAttribute(\"v:alert\");\n\t\talertAttr.setValue(errorMessage);\n\t\tattributes.setNamedItem(alertAttr);\n\t\tvalid = false;\n\t}",
"public void addValidationError(ExcelImportException error) {\n\t\tthis.validationErrors.add(error);\n\t}",
"public void setFieldError(String field, String error) {\n\t\tif (field.equals(\"name\"))\n\t\t\tnameCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"description\"))\n\t\t\tdescriptionCG.setClassName(\"control-group error\");\n\n\t\telse if (field.equals(\"price\"))\n\t\t\tpriceCG.setClassName(\"control-group error\");\n\t}",
"public void setError() {\n _hasError = true;\n _highlight = HighlightMode.ERROR;\n _error = NodeError.ERROR;\n }",
"void setErrorAppTag(String errorMessage);",
"public void ErrorMessage(String error) {\n \tJOptionPane.showMessageDialog(parent, error);\n }",
"private void setErrorUI() {\n err = new JLabel(\" \");\n err.setBorder(BorderFactory.createMatteBorder(0, 15, 0, 15, new Color(248, 248, 251)));\n err.setFont(new Font(\"Nunito\", Font.PLAIN, 12));\n err.setForeground(new Color(247, 37, 133));\n err.setAlignmentX(Component.CENTER_ALIGNMENT);\n }",
"public void makeError(){\n\t\tisError = true;\n\t}",
"public void showError(String error);",
"void setErrorMessage(String errorMessage);",
"@Override\n\tpublic void addError(String hdr, String msg) {\n\t\terrors.put(hdr, msg);\n\t}",
"public void putError(String message) {\n errorData.postValue(message);\n }",
"public void error();",
"public void showError(String errorMessage);",
"void setCustomValidity(String error);",
"void showError(String errorMessage);",
"public void addError(Throwable t);",
"public void error(String message);",
"void showError(String message);",
"void showError(String message);",
"public static void registerError() {\r\n errorCount++;\r\n }",
"protected void onError(AjaxRequestTarget target, Form form)\n\t{\n\n\t}",
"public void estiloError() {\r\n /**Bea y Jose**/\r\n\t}",
"public void setErrorMsg(String text) {\n this.errorMsg = text;\n }",
"@RequestMapping(\"generalError\")\n\tpublic String error(HttpServletRequest request, HttpServletResponse response, Model model) {\n\t\tString classpath = \"javax.servlet.error\";\n\t\tInteger statusCode = (Integer) request.getAttribute(classpath + \".status_code\");\n\t\tThrowable throwable= (Throwable) request.getAttribute(classpath + \".exception\");\n\t\tString exceptionMessage= getExceptionMessage(throwable, statusCode);\n\t\tString requestUri = (String) request.getAttribute(classpath + \".request_uri\");\n\t\tif (requestUri == null) requestUri = \"Unknown\";\n\t\t\n\t\tString message = MessageFormat.format(\"{0} returned for {1} with message {2}\", statusCode, requestUri, exceptionMessage);\n\t\tmodel.addAttribute(\"errorMessage\", message);\n\t\treturn \"error/general\";\n\t}",
"private void addErrors() {\n this.errors = new ArrayList<>();\n var resources = ResourceBundle.getBundle(ERRORS);\n for (var key : Collections.list(resources.getKeys())) {\n var value = resources.getString(key);\n errors.add(new AbstractMap.SimpleEntry<>(key, value));\n }\n }",
"public ErrorGUI(int num) {\n\t\terror = new Error();\n\t\tthis.generateMessage(num);\n\n\t}",
"ResponseErrorAssembler addErrorMesage(Message errorMessage);",
"public void addErrorMessage(String message) {\n this.success = false;\n this.addMessage(message);\n }",
"public errPopUp(String value) {\n initComponents();\n errorMsg.setText(value);\n this.setVisible(false);\n }",
"void displayUserTakenError(){\n error.setVisible(true);\n }",
"public static void addError(Exception e) {\n errors.push(e);\n }",
"public void setError() {\r\n this.textErrorIndex = textIndex;\r\n }",
"@Override\n public void showError() {\n }",
"@Override\n protected void addError(Type errorType, int line, int column, String key)\n {\n super.addError(errorType, line, column, this.messages.getString(key));\n }",
"public noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors addNewErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors target = null;\r\n target = (noNamespace.ErrordetectiondashletDocument.Errordetectiondashlet.Errors)get_store().add_element_user(ERRORS$4);\r\n return target;\r\n }\r\n }",
"public static void error(String message) {\n FacesContext.getCurrentInstance()\n .addMessage(null,\n new FacesMessage(FacesMessage.SEVERITY_ERROR,\n FacesUtils.getlocalizedString(ResourceBundles.GENERAL, \"error\") + \"!\",\n message));\n }",
"public String formInternalError() \r\n {\r\n return formError(\"500 Internal server error\",\"Server broke\");\r\n }",
"void drawError(String message);",
"public abstract void showErrorBox(Throwable error);",
"final void addError( ParsedElement parsedElement, ResourceKey errorMsg )\n {\n verify( parsedElement, false, errorMsg, EMPTY_ARRAY );\n }",
"public void addError(String sFieldName, String sMessage)\n\t{\n\t\tthis.listErrors.add(new FieldMessage(sFieldName,sMessage));\n\t}",
"public void alertSaveError() {\n\t\tthis.alert(\"ERROR\",\"Save error\",AlertType.ERROR);\n\t}",
"private void ImproperFillOutException() {\n JOptionPane.showMessageDialog(null, \"Fill out the form properly\");\n }",
"public void errorMessage(String text) {\n \t\tErrorMessage msg = new ErrorMessage(this, text);\n \t\tmsg.setAlwaysOnTop(true);\n \t\tmsg.setVisible(true);\n \t\tsetEnabled(false);\n \t}",
"public void unsuccessful()\n {\n inputFundsField.setText(\"An Error Has Occurred\");\n }",
"private void sendToErrorPage(String errorMessage, HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n RequestDispatcher dispatcher = request.getRequestDispatcher(\"/error.jsp\");\n ErrorBean errorBean = new ErrorBean();\n errorBean.setErrorText(errorMessage);\n request.setAttribute(ERROR_ATTRIBUTE_NAME, errorBean);\n dispatcher.forward(request, response);\n }",
"protected abstract void error(String err);",
"public void error(ValidationType type, String validationName, String content);",
"protected void addError(AeExpressionValidationResult aResult, String aMessage, Object[] aArgs) {\r\n String msg = MessageFormat.format(aMessage, aArgs);\r\n aResult.addError(msg);\r\n }",
"public static void error()\r\n {\r\n valid=false;\r\n\r\n }",
"public void errorOccured(String errorMessage, Exception e);",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public void setError(String error) {\n this.error = error;\n }",
"public Builder addError(WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(value);\n onChanged();\n } else {\n errorBuilder_.addMessage(value);\n }\n return this;\n }",
"private void errorMessage(String message) {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tAlertDialog dialog = builder.setMessage(message).setTitle(\"Error\").create();\n \tdialog.show();\n }",
"public CompileError() {\r\n super((JFrame) null, Fi18N.get(\"DIALOG.error.compile.title\"), true);\r\n initComponents();\r\n I18N();\r\n //------------------------------------------------------------\r\n //--- Set <ENTER> and <ESC> actions to controls -------\r\n //------------------------------------------------------------\r\n KeyListener menuKeyListener = new KeyAdapter() {\r\n @Override\r\n public void keyPressed(KeyEvent evt) { // handler\r\n if (evt.getKeyCode() == KeyEvent.VK_ENTER) {\r\n btOkActionPerformed(null);\r\n }\r\n }\r\n };\r\n this.addKeyListener(menuKeyListener);\r\n }",
"private void displayValidationError() {\n\n\t\tif (null != validationErrorTitle) {\n\t\t\tvalidationErrorParent.toFront();\n\t\t\tAppController.showMessage(validationErrorParent, validationErrorMessage, validationErrorTitle,\n\t\t\t\tvalidationErrorType);\n\t\t}\n\n\t\tclearValidationError();\n\t}",
"@Override\n\tpublic void showError(String message) {\n\t\t\n\t}",
"default void addError(final ErrorsType errorsType, final String shortText)\n\t{\n\t\tfinal ErrorType errorType = new ErrorType();\n\t\tif (StringUtils.length(shortText) > NdcwebservicesConstants.SHORT_TEXT_MAX_CHARACTERS)\n\t\t{\n\t\t\terrorType.setShortText(shortText.substring(0, NdcwebservicesConstants.SHORT_TEXT_MAX_CHARACTERS - 1));\n\t\t}\n\t\telse\n\t\t{\n\t\t\terrorType.setShortText(shortText);\n\t\t}\n\t\terrorsType.getError().add(errorType);\n\t}",
"public void setErrorMode(int mode) {}",
"abstract void error(String error);",
"protected void setError(String message) {\n\t\tif (message == null)\n\t\t\tthrow new IllegalArgumentException(\"null error message\");\n\t\tif (hasError()) \n\t\t\tthrow new IllegalStateException(\"An error was already detected.\");\n\t\texpression = null;\n\t\terror = message;\n\t}",
"public Builder addError(\n int index, WorldUps.UErr value) {\n if (errorBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureErrorIsMutable();\n error_.add(index, value);\n onChanged();\n } else {\n errorBuilder_.addMessage(index, value);\n }\n return this;\n }",
"private void action_error(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //assumiamo che l'eccezione sia passata tramite gli attributi della request\n //we assume that the exception has been passed using the request attributes \n Map data=new HashMap();\n \n Exception exception = (Exception) request.getAttribute(\"exception\");\n String message;\n if (exception != null && exception.getMessage() != null) {\n message = exception.getMessage();\n } else {\n message = \"Unknown error\";\n }\n data.put(\"errore\",message);\n FreeMarker.process(\"404error.html\",data, response, getServletContext()); \n }",
"public void tomaError( \r\n String error,\r\n InterfaceEdicionDatos<Tipo> editor );",
"private void action_error(HttpServletRequest request, HttpServletResponse response, String message) {\n\n FailureResult fail = new FailureResult(getServletContext());\n fail.activate(message, request, response);\n }",
"void errorMsg(String msg) {\n Alert errorAlert = new Alert(\"error\", msg, null, AlertType.ERROR);\n errorAlert.setCommandListener(this);\n errorAlert.setTimeout(Alert.FOREVER);\n Display.getDisplay(this).setCurrent(errorAlert);\n }",
"private void err3() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand3.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand3.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand3.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand3.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand3ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand3ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }",
"private void addError(final SAMValidationError error) {\n if (this.errorsToIgnore.contains(error.getType())) return;\n \n if (this.ignoreWarnings && error.getType().severity == SAMValidationError.Severity.WARNING) return;\n \n this.errorsByType.increment(error.getType());\n if (verbose) {\n out.println(error);\n out.flush();\n if (this.errorsByType.getCount() >= maxVerboseOutput) {\n throw new MaxOutputExceededException();\n }\n }\n }",
"@Override\n\tpublic void error(Marker marker, String message) {\n\n\t}",
"public static void setErrorMessage(String text) {\n\t JOptionPane optionPane = new JOptionPane(text,JOptionPane.ERROR_MESSAGE);\n\t JDialog dialog = optionPane.createDialog(\"Erro\");\n\t dialog.setAlwaysOnTop(true);\n\t dialog.setVisible(true);\n\t}",
"@Override\n\tpublic void error(Marker marker, Message msg) {\n\n\t}",
"public void setError(Map error) {\n this.error = error;\n }",
"void displayErrorMessage(String message);",
"public void setErrorGroups(){\n updateMenuGroupError = false;\n deleteMenuGroupError = false;\n createMenuGroupError = false;\n setName(null);\n setType(null);\n }",
"void errorOccurred(@Nonnull String errorMessage);",
"private void error(int error) {\n\t\t//user limit reached error gui\n\t\tif(error == USER_LIMIT_REACHED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Limit Reached\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You have reached the maximum amount of users (\" + users.length + \" users).\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user exists error gui\n\t\telse if(error == USER_EXISTS) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Exists\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" already exists.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user not found error gui\n\t\telse if(error == USER_NOT_FOUND) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: User Not Found\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//command not found error gui\n\t\telse if(error == CMD_NOT_FOUND) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Invalid Command\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The command \" + cmd.getText() + \" does not exist.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already admin error gui\n\t\telse if(error == ALREADY_ADMIN) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Promotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already an admin.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//user is already regular error gui\n\t\telse if(error == ALREADY_REG) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Demotion\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The user \" + user.getText() + \" is already a regular user.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//permissions error gui\n\t\telse if(error == PERMISSIONS) {\n\t\t\tProgramGUI.this.dispose();\n\t\t\tframe = new JFrame(\"Error: Permissions\");\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"You do not have permission.\"));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t\t//card expired gui\n\t\telse if(error == EXPIRED) {\n\t\t\tframe.dispose();\n\t\t\tframe = new JFrame(\"Error: Card Expired\");\n\t\t\tframe.setSize(390, FRAME_HEIGHT);\n\t\t\tframe.setLocationRelativeTo(null);\n\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpanel.setLayout(new GridLayout(2, 1));\n\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10,10,0,10));\n\t\t\tpanel.add(new JLabel(\"The card \" + card.getText() + \" expired on \" + expiry.getText()));\n\t\t\tJButton button = new JButton(\"Return to Main Menu\");\n\t\t\tbutton.addActionListener(new ButtonListener());\n\t\t\tpanel.add(button);\n\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\tframe.setVisible(true);\n\t\t}\n\t}",
"public void addErrorMessage(ConstraintViolation<?> constraintViolation, Widget widget) {\n\t\tSpanElement msg = DOM.createSpan().cast();\n\t\tmsg.setInnerText(constraintViolation.getMessage());\n\t\tmsg.addClassName(\"help-block\");\n\t\twidget.getElement().getParentElement().appendChild(msg );\n\t}",
"private void err4() {\n\t\tString errMessage = CalculatorValue.checkMeasureValue(text_Operand4.getText());\n\t\tif (errMessage != \"\") {\n\t\t\t// System.out.println(errMessage);\n\t\t\tlabel_errOperand4.setText(CalculatorValue.measuredValueErrorMessage);\n\t\t\tif (CalculatorValue.measuredValueIndexofError <= -1)\n\t\t\t\treturn;\n\t\t\tString input = CalculatorValue.measuredValueInput;\n\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.measuredValueIndexofError));\n\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t} else {\n\t\t\terrMessage = CalculatorValue.checkErrorTerm(text_Operand4.getText());\n\t\t\tif (errMessage != \"\") {\n\t\t\t\t// System.out.println(errMessage);\n\t\t\t\tlabel_errOperand4.setText(CalculatorValue.errorTermErrorMessage);\n\t\t\t\tString input = CalculatorValue.errorTermInput;\n\t\t\t\tif (CalculatorValue.errorTermIndexofError <= -1)\n\t\t\t\t\treturn;\n\t\t\t\toperand4ErrPart1.setText(input.substring(0, CalculatorValue.errorTermIndexofError));\n\t\t\t\toperand4ErrPart2.setText(\"\\u21EB\");\n\t\t\t}\n\t\t}\n\t}",
"public errorlogin() {\n initComponents();\n }",
"void error() {\n status = ERROR;\n System.out.println(\"error\");\n stateChanged();\n }",
"@Override\n\tpublic void setWrongError() {\n\t\t\n\t}",
"public void onError(String errorMessage);"
] | [
"0.7159598",
"0.700277",
"0.65986943",
"0.6585175",
"0.6462041",
"0.6450366",
"0.6414776",
"0.6321235",
"0.6262145",
"0.6239897",
"0.6202119",
"0.6182345",
"0.6111637",
"0.6094604",
"0.608633",
"0.6060551",
"0.60516065",
"0.6048425",
"0.6046963",
"0.6046078",
"0.6037578",
"0.60307163",
"0.6026741",
"0.6026485",
"0.60068893",
"0.59997594",
"0.5999321",
"0.59938246",
"0.5975463",
"0.59280175",
"0.5908676",
"0.590341",
"0.5839404",
"0.5839404",
"0.5836152",
"0.58307976",
"0.58306175",
"0.58194655",
"0.58132136",
"0.5810735",
"0.580291",
"0.5802248",
"0.57923234",
"0.57789505",
"0.576999",
"0.5757336",
"0.57528436",
"0.57435745",
"0.5743309",
"0.57403755",
"0.573197",
"0.5718738",
"0.5708741",
"0.56854725",
"0.5685096",
"0.5683077",
"0.56733435",
"0.5669864",
"0.5668654",
"0.56578773",
"0.56497896",
"0.56405467",
"0.56397146",
"0.5625731",
"0.56206405",
"0.56197953",
"0.5612239",
"0.5612239",
"0.5612239",
"0.55993146",
"0.55901015",
"0.5585001",
"0.55847776",
"0.5578131",
"0.5575363",
"0.5562427",
"0.5560227",
"0.5556024",
"0.55502427",
"0.55323917",
"0.55109936",
"0.5491914",
"0.5491866",
"0.54893416",
"0.5488997",
"0.5486604",
"0.54862756",
"0.5484487",
"0.5483346",
"0.5480399",
"0.5479831",
"0.5468152",
"0.5466038",
"0.5463883",
"0.54624945",
"0.5461026",
"0.54559106",
"0.54516757",
"0.5450489",
"0.5448263"
] | 0.7196616 | 0 |
TODO Autogenerated method stub | public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
System.out.println("enter cache size in KB among (1, 2, 4, 8, 16, 32)");
int cacheSize = sc.nextInt();
System.out.println("enter way associative value among(1,2,4,8)");
int wayAssociative = sc.nextInt();
System.out.println("enter cache line size in bytes among(2,4,8,16,32,64)");
int cacheLineSize = sc.nextInt();
sc.close();
long count_hit = 0, count_miss = 0;
long count_hit_2 = 0, count_miss_2 = 0, clockCycle_2 = 0;
long count_hit_4 = 0, count_miss_4 = 0, clockCycle_4 = 0;
long count_hit_8 = 0, count_miss_8 = 0, clockCycle_8 = 0;
int numberOfCacheLines = (int) ((cacheSize * 1024) / cacheLineSize);
ArrayList<String> cacheKeys = new ArrayList<String>(numberOfCacheLines);
ArrayList<String> cacheValues = new ArrayList<String>(numberOfCacheLines);
ArrayList<String> cacheKeys_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_0 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_1 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_2 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_3 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_4 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_5 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_6 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheKeys_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
ArrayList<String> cacheValues_7 = new ArrayList<String>(numberOfCacheLines / wayAssociative);
long clockCycle = 0;
StringBuilder y = new StringBuilder("");
// creating main memory array to store all addresses in a 2d
// array..mapping one
// letter into one width length only..1 to 1 mapping.
// so 2 width is one byte..to get value do block offset*2
String[][] mainMemory = new String[1743][32];
for (int i = 0; i < 1743; i++)
{
for (int j = 0; j < 32; j++)
{
mainMemory[i][j] = "";
}
}
try
{
// read all input files
String instructionAddresses = new String(
Files.readAllBytes(Paths
.get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_addr_trace_hex_project_1.txt")));
String dataSizes = new String(
Files.readAllBytes(Paths
.get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_data_size_project_1.txt")));
String memoryAddresses = new String(
Files.readAllBytes(Paths
.get("/Users/akashmalla/Documents/COEN210_Computer_Architecture/project1/inst_mem_hex_16byte_wide.txt")));
// copy all memory addresses into the 2d mainMemory array
// split into each line of address
String[] memoryAddress = memoryAddresses.split("\\s+");
for (int i = 0; i < 1743; i++)
{
// split address into each letter
String[] oneBit = memoryAddress[i].split("");
int z = -1;
for (int q = oneBit.length - 1; q >= 0; q--)
{
z++;
// store each letter into the array as hex
mainMemory[i][q] = oneBit[z];
}
}
// splitting the instruction addresses into lines
String[] instructionAddress = instructionAddresses.split("\\s+");
// splitting dataSizes to get length of each data
String[] dataSize = dataSizes.split("\\s+");
for (int i = 0; i < instructionAddress.length; i++)
{
try
{
String binaryIs = "";
String binaryOffset = "";
String blockNumber = "";
if (Integer.parseInt(instructionAddress[i], 16) > 15)
{
binaryIs = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));
binaryOffset = binaryIs.substring(binaryIs.length() - 4);
blockNumber = binaryIs.substring(0, binaryIs.length() - 4);
} else
{
blockNumber = "0";
binaryOffset = Integer.toBinaryString(Integer.parseInt(instructionAddress[i], 16));
}
// check if hit or miss for 1 way
if (wayAssociative == 1)
{
if (cacheKeys.contains(blockNumber + "," + binaryOffset))
{
// cache hit situation
count_hit++;
clockCycle++;
}
else
{
// cache miss
count_miss++;
clockCycle += 15;
// replacement for direct mapping.
int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);
int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);
int length = Integer.parseInt(dataSize[i]);
y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);
int p = -1, beta = 0;
for (int alpha = 1; alpha < length; alpha++)
{
if ((alpha + newOffset_StartingPosition) % 31 == 0)
{
newBlockNumber_Value++;
newOffset_StartingPosition = 0;
beta = length - alpha;
if (p < beta)
{
p++;
y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);
}
} else
{
y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);
}
}
y = y.reverse();
// if y is more than one byte then put it in next cache line
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys.add(blockNumber + "," + binaryOffset);
cacheValues.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys.add(blockNumber + "," + binaryOffset);
cacheValues.add(y.toString());
} else
{
// System.out.println("cache is full...");
}
}
}
y.delete(0, y.length());
}
else if (wayAssociative > 1)
{
if (wayAssociative == 2)
{
if (cacheKeys_0.contains(blockNumber + "," + binaryOffset)
|| (cacheKeys_1.contains(blockNumber + "," + binaryOffset)))
{
// cache hit situation
count_hit_2++;
clockCycle_2++;
}
else
{
// cache miss
count_miss_2++;
clockCycle_2 += 15;
// replacement
int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);
int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);
int length = Integer.parseInt(dataSize[i]);
y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);
int p = -1, beta = 0;
for (int alpha = 1; alpha < length; alpha++)
{
if ((alpha + newOffset_StartingPosition) % 31 == 0)
{
newBlockNumber_Value++;
newOffset_StartingPosition = 0;
beta = length - alpha;
if (p < beta)
{
p++;
y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);
}
} else
{
y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);
}
}
y = y.reverse();
if (i % wayAssociative == 0)
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
if (cacheKeys.size() <= numberOfCacheLines)
{
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(yy);
}
}
} else
{
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(y.toString());
}
} else
{
// System.out.println("cache is full...");
}
}
else if (i % wayAssociative == 1)
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(yy);
}
}
{
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(y.toString());
}
}
else
{
// System.out.println("cache is full...");
}
}
}
y.delete(0, y.length());
}
// way =4
if (wayAssociative == 4)
{
if (cacheKeys_0.contains(blockNumber + "," + binaryOffset)
|| cacheKeys_1.contains(blockNumber + "," + binaryOffset)
|| cacheKeys_2.contains(blockNumber + "," + binaryOffset)
|| cacheKeys_3.contains(blockNumber + "," + binaryOffset))
{
// cache hit situation
count_hit_4++;
clockCycle_4++;
}
else
{
// cache miss
count_miss_4++;
clockCycle_4 += 15;
// replacement
int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);
int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);
int length = Integer.parseInt(dataSize[i]);
y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);
int p = -1, beta = 0;
for (int alpha = 1; alpha < length; alpha++)
{
if ((alpha + newOffset_StartingPosition) % 31 == 0)
{
newBlockNumber_Value++;
newOffset_StartingPosition = 0;
beta = length - alpha;
if (p < beta)
{
p++;
y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);
}
} else
{
y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);
}
}
y = y.reverse();
if (cacheKeys.size() <= (numberOfCacheLines))
{
if (i % wayAssociative == 0)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(yy);
}
} else
{
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(y.toString());
}
}
// mod 1
else if (i % wayAssociative == 1)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(yy);
}
} else
{
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(y.toString());
}
}
// mod 2
else if (i % wayAssociative == 2)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_2.add(blockNumber + "," + binaryOffset);
cacheValues_2.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_2.add(blockNumber + "," + binaryOffset);
cacheValues_2.add(y.toString());
} else
{
// System.out.println("cache is full...");
}
}
}
// mmod 3
else if (i % wayAssociative == 3)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_3.add(blockNumber + "," + binaryOffset);
cacheValues_3.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_3.add(blockNumber + "," + binaryOffset);
cacheValues_3.add(y.toString());
}
}
}
}
else
{
// System.out.println("cache is full...");
}
}
y.delete(0, y.length());
}
else if (wayAssociative == 8)
{
if (cacheKeys_0.contains(blockNumber + "," + binaryOffset)
|| (cacheKeys_1.contains(blockNumber + "," + binaryOffset))
|| (cacheKeys_3.contains(blockNumber + "," + binaryOffset))
|| (cacheKeys_3.contains(blockNumber + "," + binaryOffset))
|| cacheKeys_4.contains(blockNumber + "," + binaryOffset)
|| (cacheKeys_5.contains(blockNumber + "," + binaryOffset))
|| (cacheKeys_7.contains(blockNumber + "," + binaryOffset))
|| (cacheKeys_6.contains(blockNumber + "," + binaryOffset)))
{
// cache hit situation
count_hit_8++;
clockCycle_8++;
}
else
{
// cache miss
count_miss_8++;
clockCycle_8 += 15;
// replacement
int newBlockNumber_Value = Integer.parseInt(blockNumber, 2);
int newOffset_StartingPosition = (Integer.parseInt(binaryOffset, 2) * 2);
int length = Integer.parseInt(dataSize[i]);
y.append(mainMemory[newBlockNumber_Value][newOffset_StartingPosition]);
int p = -1, beta = 0;
for (int alpha = 1; alpha < length; alpha++)
{
if ((alpha + newOffset_StartingPosition) % 31 == 0)
{
newBlockNumber_Value++;
newOffset_StartingPosition = 0;
beta = length - alpha;
if (p < beta)
{
p++;
y.append(mainMemory[newBlockNumber_Value][p + newOffset_StartingPosition]);
}
} else
{
y.append(mainMemory[newBlockNumber_Value][alpha + newOffset_StartingPosition]);
}
}
y = y.reverse();
if (cacheKeys.size() <= (numberOfCacheLines))
{
if (i % wayAssociative == 0)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(yy);
}
} else
{
cacheKeys_0.add(blockNumber + "," + binaryOffset);
cacheValues_0.add(y.toString());
}
}
// mod 1
else if (i % wayAssociative == 1)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(yy);
}
} else
{
cacheKeys_1.add(blockNumber + "," + binaryOffset);
cacheValues_1.add(y.toString());
}
}
// mod 2
else if (i % wayAssociative == 2)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_2.add(blockNumber + "," + binaryOffset);
cacheValues_2.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_2.add(blockNumber + "," + binaryOffset);
cacheValues_2.add(y.toString());
} else
{
// System.out.println("cache is full...");
}
}
}
// mmod 3
else if (i % wayAssociative == 3)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_3.add(blockNumber + "," + binaryOffset);
cacheValues_3.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_3.add(blockNumber + "," + binaryOffset);
cacheValues_3.add(y.toString());
}
}
}
// 4
else if (i % wayAssociative == 4)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_4.add(blockNumber + "," + binaryOffset);
cacheValues_4.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_4.add(blockNumber + "," + binaryOffset);
cacheValues_4.add(y.toString());
}
}
}
// 5
else if (i % wayAssociative == 5)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_5.add(blockNumber + "," + binaryOffset);
cacheValues_5.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_5.add(blockNumber + "," + binaryOffset);
cacheValues_5.add(y.toString());
}
}
}
// 6
else if (i % wayAssociative == 6)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_6.add(blockNumber + "," + binaryOffset);
cacheValues_6.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_6.add(blockNumber + "," + binaryOffset);
cacheValues_6.add(y.toString());
}
}
}
// 7
else if (i % wayAssociative == 7)
{
if (y.length() > 4)
{
for (int o = 0; o < y.length(); o = o + 4)
{
String yy = y.substring(o, o + 4);
cacheKeys_7.add(blockNumber + "," + binaryOffset);
cacheValues_7.add(yy);
}
} else
{
if (cacheKeys.size() <= (numberOfCacheLines))
{
cacheKeys_7.add(blockNumber + "," + binaryOffset);
cacheValues_7.add(y.toString());
}
}
}
//
}
else
{
// System.out.println("cache is full...");
}
}
y.delete(0, y.length());
}
}
// 3
} catch (Exception e)
{
e.printStackTrace();
}
}
// to print outputs
if (wayAssociative == 1)
{
long cache_access = count_hit + count_miss;
System.out.println("Total number of cache accesses is " + cache_access);
System.out.println("Total number of clock cycles is " + clockCycle);
System.out.println("Total number of hits " + count_hit);
double hit_ratio = ((double) count_hit) / (count_hit + count_miss) * 100;
System.out.println("cache hit ratio is " + hit_ratio + "%");
double ipc = ((double) instructionAddress.length) / clockCycle;
System.out.println("IPC is " + ipc);
}
else if (wayAssociative == 2)
{
long cache_access = count_hit_2 + count_miss_2;
System.out.println("Total number of cache accesses is " + cache_access);
System.out.println("Total number of clock cycles is " + clockCycle_2);
System.out.println("Total number of hits " + count_hit_2);
double hit_ratio = ((double) count_hit_2) / (count_hit_2 + count_miss_2) * 100;
System.out.println("cache hit ratio is " + hit_ratio + "%");
double ipc = ((double) instructionAddress.length) / clockCycle_2;
System.out.println("IPC is " + ipc);
}
else if (wayAssociative == 4)
{
long cache_access = count_hit_4 + count_miss_4;
System.out.println("Total number of cache accesses is " + cache_access);
System.out.println("Total number of clock cycles is " + clockCycle_4);
System.out.println("Total number of hits " + count_hit_4);
double hit_ratio = ((double) count_hit_4) / (count_hit_4 + count_miss_4) * 100;
System.out.println("cache hit ratio is " + hit_ratio + "%");
double ipc = ((double) instructionAddress.length) / clockCycle_4;
System.out.println("IPC is " + ipc);
} else if (wayAssociative == 8)
{
long cache_access = count_hit_8 + count_miss_8;
System.out.println("Total number of cache accesses is " + cache_access);
System.out.println("Total number of clock cycles is " + clockCycle_8);
System.out.println("Total number of hits " + count_hit_8);
double hit_ratio = ((double) count_hit_8) / (count_hit_8 + count_miss_8) * 100;
System.out.println("cache hit ratio is " + hit_ratio + "%");
double ipc = ((double) instructionAddress.length) / clockCycle_8;
System.out.println("IPC is " + ipc);
}
} catch (Exception e)
{
e.printStackTrace();
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public void perish() {\n \n }",
"@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}",
"@Override\n\tpublic void anular() {\n\n\t}",
"@Override\n\tprotected void getExras() {\n\n\t}",
"@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}",
"@Override\n\tpublic void entrenar() {\n\t\t\n\t}",
"@Override\n\tpublic void nadar() {\n\t\t\n\t}",
"@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}",
"@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}",
"@Override\n\tprotected void interr() {\n\t}",
"@Override\n\tpublic void emprestimo() {\n\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void gravarBd() {\n\t\t\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}",
"@Override\n protected void getExras() {\n }",
"@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}",
"@Override\n\tpublic void nefesAl() {\n\n\t}",
"@Override\n\tpublic void ligar() {\n\t\t\n\t}",
"@Override\n public void func_104112_b() {\n \n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\n\tpublic void nghe() {\n\n\t}",
"@Override\n public void function()\n {\n }",
"@Override\n public void function()\n {\n }",
"public final void mo51373a() {\n }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"@Override\n public void inizializza() {\n\n super.inizializza();\n }",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"@Override\n\tpublic void sacrifier() {\n\t\t\n\t}",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void designBasement() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}",
"public void gored() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tpublic void einkaufen() {\n\t}",
"@Override\n protected void initialize() {\n\n \n }",
"public void mo38117a() {\n }",
"@Override\n\tprotected void getData() {\n\t\t\n\t}",
"Constructor() {\r\n\t\t \r\n\t }",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}",
"@Override\n\tpublic void one() {\n\t\t\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}",
"private stendhal() {\n\t}",
"@Override\n\tprotected void update() {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\t\t\n\t}",
"@Override\n public void init() {\n\n }",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\n\tprotected void initialize() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void init() {\n\t\t\r\n\t}",
"@Override\n\tpublic void debite() {\n\t\t\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"@Override\r\n\tpublic void init() {\n\r\n\t}",
"public contrustor(){\r\n\t}",
"@Override\n\tprotected void initialize() {\n\n\t}",
"@Override\r\n\tpublic void dispase() {\n\r\n\t}",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"public void mo55254a() {\n }",
"@Override\n\tpublic void dtd() {\n\t\t\n\t}",
"@Override\n\tprotected void logic() {\n\n\t}",
"@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}",
"public void mo4359a() {\n }",
"@Override\r\n\tprotected void initialize() {\n\r\n\t}",
"@Override\n public void memoria() {\n \n }",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"private RepositorioAtendimentoPublicoHBM() {\r\t}",
"@Override\n protected void initialize() \n {\n \n }",
"@Override\r\n\tpublic void getProposition() {\n\r\n\t}",
"@Override\n\tpublic void particular1() {\n\t\t\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n\tpublic void init() {\n\n\t}",
"@Override\n protected void prot() {\n }",
"@Override\r\n\tpublic void init()\r\n\t{\n\t}",
"@Override\n\tprotected void initValue()\n\t{\n\n\t}",
"public void mo55254a() {\n }"
] | [
"0.6671074",
"0.6567672",
"0.6523024",
"0.6481211",
"0.6477082",
"0.64591026",
"0.64127725",
"0.63762105",
"0.6276059",
"0.6254286",
"0.623686",
"0.6223679",
"0.6201336",
"0.61950207",
"0.61950207",
"0.61922914",
"0.6186996",
"0.6173591",
"0.61327106",
"0.61285484",
"0.6080161",
"0.6077022",
"0.6041561",
"0.6024072",
"0.6020252",
"0.59984857",
"0.59672105",
"0.59672105",
"0.5965777",
"0.59485507",
"0.5940904",
"0.59239364",
"0.5910017",
"0.5902906",
"0.58946234",
"0.5886006",
"0.58839184",
"0.58691067",
"0.5857751",
"0.58503544",
"0.5847024",
"0.58239377",
"0.5810564",
"0.5810089",
"0.5806823",
"0.5806823",
"0.5800025",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5792378",
"0.5790187",
"0.5789414",
"0.5787092",
"0.57844025",
"0.57844025",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5774479",
"0.5761362",
"0.57596046",
"0.57596046",
"0.575025",
"0.575025",
"0.575025",
"0.5747959",
"0.57337177",
"0.57337177",
"0.57337177",
"0.5721452",
"0.5715831",
"0.57142824",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.57140535",
"0.5711723",
"0.57041645",
"0.56991017",
"0.5696783",
"0.56881124",
"0.56774884",
"0.56734604",
"0.56728",
"0.56696945",
"0.5661323",
"0.5657007",
"0.5655942",
"0.5655942",
"0.5655942",
"0.56549734",
"0.5654792",
"0.5652974",
"0.5650185"
] | 0.0 | -1 |
creates a list of all possible tiles that we can move to | public ArrayList<Coordinate> possibleTiles(Coordinate start) {
HashMap<Coordinate, MapTile> wallMap = World.getMap();
LinkedList<Coordinate> queue = new LinkedList<Coordinate>();
ArrayList<Coordinate> visited = new ArrayList<Coordinate>();
queue.add(start);
while (!queue.isEmpty()) {
Coordinate temp = queue.poll();
for (int i = 0; i < 4; i++) {
Coordinate next = new Coordinate(temp.toString());
switch(i) {
case 0:
next.y--;
break;
case 1:
next.x++;
break;
case 2:
next.y++;
break;
case 3:
next.x--;
break;
}
if (!visited.contains(next) && !wallMap.get(next).isType(MapTile.Type.WALL)) {
queue.add(next);
visited.add(next);
}
}
}
return visited;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<Tile> makeTiles() {\n List<Tile> tiles = new ArrayList<>();\n Board board = (Board) boardManager.getBoard();\n final int numTiles = board.getNumRows() * board.getNumCols();\n for (int tileNum = 0; tileNum != numTiles; tileNum++) {\n tiles.add(new Tile(tileNum + 1, tileNum, 4));\n }\n\n return tiles;\n }",
"List<Tile> getAdjacentTiles();",
"private List<int[]> generatePossibleMoveActions(LabyrinthGameState state) {\n List<Tile> tiles = new ArrayList<>();\n Tile orig = state.getPlayerLoc(Player.values()[playerNum]);\n tiles.add(orig);\n this.calculatePossibleMoves(orig, tiles);\n List<int[]> locations = new ArrayList<>();\n for (Tile spot : tiles) {\n int[] loc = new int[2];\n loc[0] = spot.getX();\n loc[1] = spot.getY();\n locations.add(loc);\n }\n return locations;\n }",
"public Puzzle exPuzzle() {\n List<Tile> tiles = new ArrayList<>(9);\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.D, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.C, Half.x), new Pic(Pattern.C, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.x)));\n tiles.add(new Tile(new Pic(Pattern.A, Half.x), new Pic(Pattern.A, Half.y), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.C, Half.y), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.x), new Pic(Pattern.B, Half.y), new Pic(Pattern.B, Half.x), new Pic(Pattern.A, Half.y)));\n tiles.add(new Tile(new Pic(Pattern.B, Half.y), new Pic(Pattern.A, Half.x), new Pic(Pattern.D, Half.y), new Pic(Pattern.C, Half.y)));\n return new Puzzle(tiles);\n }",
"public void setTiles() {\n\t\tTileStack names = new TileStack();\n\t\tfor(int x=0; x < theBoard.getCols(); x++) {\n\t\t\tfor(int y=0; y < theBoard.getRows(); y++) {\n\t\t\t\tp = new Point(x,y);\n\t\t\t\tif(p.equals(new Point(0,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,0)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,1)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,4)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(0,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(1,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(4,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse if(p.equals(new Point(5,5)))\n\t\t\t\t\ttheBoard.setTile(p, TilesEnums.SEA);\n\n\t\t\t\telse \n\t\t\t\t\ttheBoard.setTile(p, names.pop());\n\t\t\t}\n\t\t}\n\t}",
"public ArrayList<Tile> getAllBoardTiles() {\n\n\t\tArrayList<ArrayList<Tile>> tilesMapValues=new ArrayList<ArrayList<Tile>>(getTilesMap().values()) ;\n\t\tArrayList<Tile> allTiles =new ArrayList<Tile>() ;\n\t\tfor(ArrayList<Tile> tileList : tilesMapValues) {\n\t\t\tallTiles.addAll(tileList);\n\n\t\t}\n\t\treturn allTiles;\n\t}",
"@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }",
"public Tile[] generateTiles() {\n return null;\n }",
"private ArrayList<Tile> getPossibleRedTiles(){\n\t\tArrayList<Tile> toReturn = new ArrayList<>();\n\n\t\tGame game=Game.getInstance();\n\t\tArrayList<Tile> legalTiles= getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tArrayList<Tile> blockedTiles=new ArrayList<Tile>();\n\t\tlegalTiles.removeAll(coloredTilesList);\n\n\t\t//\t\tonly one soldier can move\n\t\tif(game.getTurn().isLastTileRed()) {\n\t\t\tPiece lastPMoved = game.getTurn().getLastPieceMoved();\n\t\t\tArrayList<Tile> possibleTiles=lastPMoved.getPossibleMoves(game.getCurrentPlayerColor());\n\t\t\tpossibleTiles.removeAll(coloredTilesList);\n\t\t\tif(!possibleTiles.isEmpty()) {\n\t\t\t\tfor(Tile t: possibleTiles) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(lastPMoved instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(lastPMoved.getId(), lastPMoved.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tblockedTiles.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpossibleTiles.removeAll(blockedTiles);\n\t\t\t}\n\t\t\ttoReturn = possibleTiles;\n\t\t}\n\t\telse {\n\t\t\tHashMap<Tile, ArrayList<Piece>> tempCollection = new HashMap<>();\n\n\t\t\tfor(Tile t:legalTiles) {\n\t\t\t\tfor(Piece p : getColorPieces(Game.getInstance().getCurrentPlayerColor())){\n\t\t\t\t\tboolean canMove = false;\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.UP_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_RIGHT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(!canMove) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tcanPieceMove(p, t.getLocation(), Directions.DOWN_LEFT);\n\t\t\t\t\t\t} catch (LocationException | IllegalMoveException e) {\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcanMove = true;\n\t\t\t\t\t}\n\t\t\t\t\tif(canMove) {\n\t\t\t\t\t\tArrayList<Piece> pp = null;\n\t\t\t\t\t\tif(!tempCollection.containsKey(t)) {\n\t\t\t\t\t\t\tpp = new ArrayList<>();\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tpp = tempCollection.get(t);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tpp.add(p);\n\t\t\t\t\t\ttempCollection.put(t, pp);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tArrayList<Tile> tilesToRemove = new ArrayList<>();\n\n\t\t\tfor(Tile t : tempCollection.keySet()) {\n\t\t\t\tArrayList<Piece> pieces= tempCollection.get(t);\n\t\t\t\tfor(Piece p : pieces) {\n\t\t\t\t\tPiece tempPiece=null;\n\t\t\t\t\tif(p instanceof Soldier) {\n\t\t\t\t\t\ttempPiece=new Soldier(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}else {\n\t\t\t\t\t\ttempPiece=new Queen(p.getId(), p.getColor(), t.getLocation());\n\t\t\t\t\t}\n\t\t\t\t\tif(tempPiece.getPossibleMoves(game.getCurrentPlayerColor()).isEmpty()) {\n\t\t\t\t\t\tif(!tilesToRemove.contains(t))\n\t\t\t\t\t\t\ttilesToRemove.add(t);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor(Tile t : tilesToRemove) {\n\t\t\t\ttempCollection.remove(t);\n\t\t\t}\n\n\t\t\ttoReturn = new ArrayList<Tile>(tempCollection.keySet());\t\n\t\t}\n\t\treturn toReturn;\n\t}",
"@Override\n protected void generateTiles() {\n }",
"public void initializeTiles(){\r\n tileBoard = new Tile[7][7];\r\n //Create the fixed tiles\r\n //Row 0\r\n tileBoard[0][0] = new Tile(false, true, true, false);\r\n tileBoard[2][0] = new Tile(false, true, true, true);\r\n tileBoard[4][0] = new Tile(false, true, true, true);\r\n tileBoard[6][0] = new Tile(false, false, true, true);\r\n //Row 2\r\n tileBoard[0][2] = new Tile(true, true, true, false);\r\n tileBoard[2][2] = new Tile(true, true, true, false);\r\n tileBoard[4][2] = new Tile(false, true, true, true);\r\n tileBoard[6][2] = new Tile(true, false, true, true);\r\n //Row 4\r\n tileBoard[0][4] = new Tile(true, true, true, false);\r\n tileBoard[2][4] = new Tile(true, true, false, true);\r\n tileBoard[4][4] = new Tile(true, false, true, true);\r\n tileBoard[6][4] = new Tile(true, false, true, true);\r\n //Row 6\r\n tileBoard[0][6] = new Tile(true, true, false, false);\r\n tileBoard[2][6] = new Tile(true, true, false, true);\r\n tileBoard[4][6] = new Tile(true, true, false, true);\r\n tileBoard[6][6] = new Tile(true, false, false, true);\r\n \r\n //Now create the unfixed tiles, plus the extra tile (15 corners, 6 t's, 13 lines)\r\n ArrayList<Tile> tileBag = new ArrayList<Tile>();\r\n Random r = new Random();\r\n for (int x = 0; x < 15; x++){\r\n tileBag.add(new Tile(true, true, false, false));\r\n }\r\n for (int x = 0; x < 6; x++){\r\n tileBag.add(new Tile(true, true, true, false));\r\n }\r\n for (int x = 0; x < 13; x++){\r\n tileBag.add(new Tile(true, false, true, false));\r\n }\r\n //Randomize Orientation\r\n for (int x = 0; x < tileBag.size(); x++){\r\n int rand = r.nextInt(4);\r\n for (int y = 0; y <= rand; y++){\r\n tileBag.get(x).rotateClockwise();\r\n }\r\n }\r\n \r\n for (int x = 0; x < 7; x++){\r\n for (int y = 0; y < 7; y++){\r\n if (tileBoard[x][y] == null){\r\n tileBoard[x][y] = tileBag.remove(r.nextInt(tileBag.size()));\r\n }\r\n }\r\n }\r\n extraTile = tileBag.remove(0);\r\n }",
"private void createTile(){\n for(int i = 0; i < COPY_TILE; i++){\n for(int k = 0; k < DIFF_TILES -2; k++){\n allTiles.add(new Tile(k));\n }\n }\n }",
"private void computeMovableTilesToDisplayToPlayer() {\n \tfor (Entity enemyEntity : allCreaturesOfCurrentRoom) {\n \t\tAIComponent aiComponent = Mappers.aiComponent.get(enemyEntity);\n \t\tif (aiComponent.getSubSystem() != null) {\n \t\t\tboolean handledInSubSystem = aiComponent.getSubSystem().computeMovableTilesToDisplayToPlayer(this, enemyEntity, room);\n \t\t\tif (handledInSubSystem) continue;\n \t\t}\n \t\t\n \tMoveComponent moveCompo = Mappers.moveComponent.get(enemyEntity);\n \tAttackComponent attackCompo = Mappers.attackComponent.get(enemyEntity);\n \t\n \t\t//clear the movable tile\n \t\tmoveCompo.clearMovableTiles();\n \t\tif (attackCompo != null) attackCompo.clearAttackableTiles();\n \t\t\n \t\tmoveCompo.setMoveRemaining(moveCompo.getMoveSpeed());\n \t\t\n \t//Build the movable tiles list\n \t\ttileSearchService.buildMoveTilesSet(enemyEntity, room);\n \t\tif (attackCompo != null) attackTileSearchService.buildAttackTilesSet(enemyEntity, room, false, true);\n \t\tmoveCompo.hideMovableTiles();\n \t\tif (attackCompo != null) attackCompo.hideAttackableTiles();\n \t}\n }",
"public void moveAllTilesToStack()\n {\n for (int i = 0; i < gridColumns; i++)\n {\n for (int j = 0; j < gridRows; j++)\n {\n ArrayList<MahjongSolitaireTile> cellStack = tileGrid[i][j];\n moveTiles(cellStack, stackTiles);\n }\n } \n }",
"public void shuffleTiles() {\n\t\tdo {\n\t\t\tCollections.shuffle(tiles);\n\n\t\t\t// Place the blank tile at the end\n\t\t\ttiles.remove(theBlankTile);\n\t\t\ttiles.add(theBlankTile);\n\n\t\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\t\ttileViews.get(row * gridSize + column).setCurrentTile(\n\t\t\t\t\t\t\ttiles.get(row * gridSize + column));\n\t\t\t\t}\n\t\t\t}\n\t\t} while (!isSolvable());\n\t\tmoveCount = 0;\n\n\t}",
"private Array<Tile>[] walk() {\n float targetY = currentTile.y + 1;\n Vector2 previousTile = new Vector2(currentTile.x, currentTile.y);\n\n Array<Vector2> tiles = new Array<Vector2>();\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n\n while(currentTile.y < targetY) {\n float rnd = random.nextFloat();\n\n if(rnd > 0.75f) { // up\n Array<Tile> grassRow = new Array<Tile>();\n Array<Tile> treeRow = new Array<Tile>();\n\n for(int x = 1; x <= 5; x++) {\n Vector2 vector = new Vector2(x, currentTile.y);\n\n GrassNEW grass = grassPool.obtain();\n grass.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n grassRow.add(grass);\n\n if(!tiles.contains(vector, false)) {\n if(random.nextFloat() > 0.3) {\n TreeNEW tree = treePool.obtain();\n tree.init(vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n treeRow.add(tree);\n }\n } else {\n if(random.nextFloat() > 0.99) {\n Collectible power = new PowerUpSpikes(world, spikesTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(power);\n } else {\n if(random.nextFloat() > 0.5) {\n Coin coin = new Coin(world, coinTexture, vector.x * GameVars.TILE_SIZE, vector.y * GameVars.TILE_SIZE);\n collectibles.add(coin);\n }\n }\n }\n }\n\n currentTile.add(0, 1);\n\n Array<Tile>[] ret = new Array[2];\n ret[0] = grassRow;\n ret[1] = treeRow;\n\n return ret;\n } else if(rnd > 0.375) { // right\n if(currentTile.x < 5 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n } else { // left\n if(currentTile.x > 1 && Math.abs(previousTile.x - currentTile.x) <= 2) {\n currentTile.add(-1, 0);\n tiles.add(new Vector2(currentTile.x, currentTile.y));\n }\n }\n }\n\n return null; // will never happen\n }",
"@Override\n\tprotected void generateTiles() {\n\t}",
"private void createTiles() {\n\t\tint tile_width = bitmap.getWidth() / gridSize;\n\t\tint tile_height = bitmap.getHeight() / gridSize;\n\n\t\tfor (short row = 0; row < gridSize; row++) {\n\t\t\tfor (short column = 0; column < gridSize; column++) {\n\t\t\t\tBitmap bm = Bitmap.createBitmap(bitmap, column * tile_width,\n\t\t\t\t\t\trow * tile_height, tile_width, tile_height);\n\n\t\t\t\t// if final, Tile -> blank\n\t\t\t\tif ((row == gridSize - 1) && (column == gridSize - 1)) {\n\t\t\t\t\tbm = Bitmap.createBitmap(tile_width, tile_height,\n\t\t\t\t\t\t\tbm.getConfig());\n\t\t\t\t\tbm.eraseColor(Color.WHITE);\n\t\t\t\t\ttheBlankTile = new Tile(bm, row, column);\n\t\t\t\t\ttiles.add(theBlankTile);\n\t\t\t\t} else {\n\t\t\t\t\ttiles.add(new Tile(bm, row, column));\n\t\t\t\t}\n\t\t\t} // end column\n\t\t} // end row\n\t\tbitmap.recycle();\n\n\t}",
"public ArrayList<PentagoGame> nextPossibleMoves() {\n ArrayList<PentagoGame> children = new ArrayList<>();\n for(int i = 0; i < 6; i++) { // for each row I can place a piece\n for(int j = 0; j < 6; j++) { // for each column\n for(int k = 0; k < 4; k++ ) { // for each board to rotate\n for(int d = 0; d < 2; d ++) {// for each direction to rotate\n boolean leftRotate = false;\n if(d == 0) {\n leftRotate = true;\n }\n Move move = new Move(i, j, k, leftRotate);\n if(validMove(whosTurn(), move)) {\n PentagoGame tempGame = new PentagoGame(this);\n tempGame.playPiece(whosTurn(), move);\n tempGame.rotateBoard(whosTurn(), move);\n tempGame.turnOver();\n move.setGameState(tempGame);\n move.setUtility(calulateUtility(move));\n // todo\n children.add(tempGame);\n }\n }\n }\n }\n }\n\n return children;\n }",
"public Tile[] generate() {\n Tile[] tiles = generateTiles();\n calculatePathfindingGrid(tiles);\n return tiles;\n }",
"private void organizeTiles(){\n\t\tfor(int i = 1; i <= size * size; i++){\n\t\t\tif(i % size == 0){\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t\trow();\n\t\t\t}else{\n\t\t\t\tadd(tiles[i - 1]);\n\t\t\t}\n\t\t}\n\t}",
"public static void makePieces() {\n\t\tPiece[] pieces = new Piece[35];\n\t\tfor (int i = 0; i < pieces.length; i++) {\n\t\t\tTile t = new Tile(false, true, 0, 0);\n\t\t\tTile f = new Tile(false, false, 0, 0);\n\t\t\tTile[][] tiles = new Tile[6][6];\n\t\t\tswitch (i) {\n\t\t\tcase 0:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, f, t, f, f }, { f, f, f, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, t, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 7:\n\t\t\t\ttiles = new Tile[][] { { f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, t, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 8:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, f, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, t, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 9:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 10:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 11:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, t, f, f, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 12:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 13:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 14:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 15:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 16:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, t, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 17:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 18:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 19:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 20:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 21:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 22:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 23:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, f, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 24:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, t, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 25:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, t, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 26:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 27:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, t, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 28:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, f, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 29:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, f, t, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 30:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, t, t, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 31:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, t, t, t, f, f }, { f, t, f, t, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, f, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 32:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, f, t, f, f }, { f, f, t, t, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 33:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, t, t, f, f, f },\n\t\t\t\t\t\t{ f, t, f, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\tcase 34:\n\t\t\t\ttiles = new Tile[][] { { f, f, f, f, f, f }, { f, f, t, t, f, f }, { f, f, t, f, f, f },\n\t\t\t\t\t\t{ f, t, t, f, f, f }, { f, t, f, f, f, f }, { f, f, f, f, f, f } };\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tpieces[i] = new Piece(tiles);\n\t\t}\n\t\ttry {\n\t\t\tFileOutputStream saveFile = new FileOutputStream(\"pieces.data\");\n\t\t\tObjectOutputStream save = new ObjectOutputStream(saveFile);\n\t\t\tsave.reset();\n\t\t\tsave.writeObject(pieces);\n\t\t\tsave.close();\n\t\t} catch (Exception exc) {\n\t\t\texc.printStackTrace(); // If there was an error, print the info.\n\t\t}\n\t}",
"abstract public List<Move> getPossibleMoves();",
"public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }",
"private void layTiles() {\n board = new Tile[height][width];\n for (int i = 0; i < height; i++) {\n for (int j = 0; j < width; j++) {\n layTile(new Tile(i, j));\n }\n }\n }",
"public void getPossibleMoves() { \n\t\t\tsuper.getPossibleMoves();\n\t\t\tfor (int i = 0; i < Math.abs(xrange); i++) {\n\t\t\t\tif (currentx + xrange - ((int) Math.pow(-1,color)*i) >= 0) { \n\t\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + xrange - ((int) Math.pow(-1,color)*i) ][currenty]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif ( currentx - 1 >= 0 && currenty - 1 >= 0 &&\n\t\t\t\t\tGameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty - 1].isOccupiedByOpponent()) {\t// Diagonol left space occupied\n\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty - 1]);\n\t\t\t}\n\t\t\tif (currentx - 1 >= 0 && currenty + 1 <= 7 &&\n\t\t\t\t\tGameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty + 1].isOccupiedByOpponent()) { \t//Diagonol right space occupied\n\t\t\t\tGameWindow.potentialMoves.add(GameWindow.GridCells[currentx + ((int) Math.pow(-1,color)) ][currenty + 1]);\n\t\t\t}\n\t\t\t\n\t}",
"private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }",
"ArrayList<Move> legalMoves() {\n ArrayList<Move> result = new ArrayList<Move>();\n int f, b;\n Move m;\n for (int i = 1; i < 8; i++) {\n for (int j = 1; j < 8; j++) {\n if (get(i,j).side() == _turn) {\n f = forward(j, i);\n b = backward(j, i);\n c = _col[j];\n r = _row[i];\n m = Move.create(j, i, j - b, i - b);\n addMove(result, m);\n m = Move.create(j, i, j + b, i + b);\n addMove(result, m);\n m = Move.create(j, i, j + f, i - f);\n addMove(result, m);\n m = Move.create(j, i, j - f, i + f);\n addMove(result, m);\n m = Move.create(j, i, j + c, i);\n addMove(result, m);\n m = Move.create(j, i, j - c, i);\n addMove(result, m);\n m = Move.create(j, i, j, i + r);\n addMove(result, m);\n m = Move.create(j, i, j, i - r);\n addMove(result, m);\n } else {\n continue;\n }\n }\n }\n return result;\n }",
"List gen() {\n\tList ret = new ArrayList();\n\n\tlong emptySlots = ~(pieceBits[LIGHT] | pieceBits[DARK]);\n\tif (side == LIGHT) {\n\tlong moves = (pawnBits[LIGHT] >> 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {////// bouger le pion d'une case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 8, theMove, 16);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((keep & 0x0000ff0000000000L) >> 8) & emptySlots;// bouge le pion\n\t\twhile (moves != 0) {//bouger le pion de deux case\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 16, theMove, 24);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x00fefefefefefefeL) >> 9)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {//pion qui mange un autre pion\n\t\tint theMove = getLBit(moves);\n\t\tgenPush(ret, theMove + 9, theMove, 17);\n\t\tmoves &= (moves - 1);\n\t\t}\n\t\tmoves = ((pawnBits[LIGHT] & 0x007f7f7f7f7f7f7fL) >> 7)\n\t\t& pieceBits[DARK];\n\t\twhile (moves != 0) {// manger a droite\n\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove + 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t} else {\n\tlong moves = (pawnBits[DARK] << 8) & emptySlots;\n\tlong keep = moves;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 8, theMove, 16);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((keep & 0xff0000L) << 8) & emptySlots;\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 16, theMove, 24);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x00fefefefefefefeL) << 7)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 7, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\tmoves = ((pawnBits[DARK] & 0x007f7f7f7f7f7f7fL) << 9)\n\t& pieceBits[LIGHT];\n\twhile (moves != 0) {\n\tint theMove = getLBit(moves);\n\tgenPush(ret, theMove - 9, theMove, 17);\n\tmoves &= (moves - 1);\n\t}\n\t}\n\tlong pieces = pieceBits[side] ^ pawnBits[side];\n\twhile (pieces != 0) {\n\tint i = getLBit(pieces);\n\tint p = piece[i];\n\tfor (int j = 0; j < offsets[p]; ++j)\n\tfor (int n = i;;) {\n\tn = mailbox[mailbox64[n] + offset[p][j]];\n\tif (n == -1)\n\tbreak;\n\tif (color[n] != EMPTY) {\n\tif (color[n] == xside)\n\tgenPush(ret, i, n, 1);\n\tbreak;\n\t}\n\tgenPush(ret, i, n, 0);\n\tif (!slide[p])\n\tbreak;\n\t}\n\tpieces &= (pieces - 1);\n\t}\n\n\t/* petit rock */\n\tif (side == LIGHT) {\n\tif (((castle & 1) != 0) && (piece[F1] == EMPTY)\n\t&& (piece[G1] == EMPTY))\n\tgenPush(ret, E1, G1, 2);\n\tif (((castle & 2) != 0) && (piece[D1] == EMPTY)\n\t&& (piece[C1] == EMPTY) && (piece[B1] == EMPTY))\n\tgenPush(ret, E1, C1, 2);\n\t} else {\n\tif (((castle & 4) != 0) && (piece[F8] == EMPTY)\n\t&& (piece[G8] == EMPTY))\n\tgenPush(ret, E8, G8, 2);\n\tif (((castle & 8) != 0) && (piece[D8] == EMPTY)\n\t&& (piece[C8] == EMPTY) && (piece[B8] == EMPTY))\n\tgenPush(ret, E8, C8, 2);\n\t}\n\n\t/* generate en passant moves */\n\tif (ep != -1) {\n\tif (side == LIGHT) {\n\tif (COL(ep) != 0 && color[ep + 7] == LIGHT\n\t&& piece[ep + 7] == PAWN)\n\tgenPush(ret, ep + 7, ep, 21);\n\tif (COL(ep) != 7 && color[ep + 9] == LIGHT\n\t&& piece[ep + 9] == PAWN)\n\tgenPush(ret, ep + 9, ep, 21);\n\t} else {\n\tif (COL(ep) != 0 && color[ep - 9] == DARK\n\t&& piece[ep - 9] == PAWN)\n\tgenPush(ret, ep - 9, ep, 21);\n\tif (COL(ep) != 7 && color[ep - 7] == DARK\n\t&& piece[ep - 7] == PAWN)\n\tgenPush(ret, ep - 7, ep, 21);\n\t}\n\t}\n\treturn ret;\n\t}",
"public SetOfTiles getSetOfTiles();",
"public static TacList<Node> getTilesToMoveTo(Unit unit, BattleMap map) {\n Node[][] moveCosts = PathFind.dijkstraWithHeap(map, unit.getX(), unit.getY(), unit.getSpeed());\n int fromX = Math.max(0, unit.getX() - unit.getSpeed());\n int fromY = Math.max(0, unit.getY() - unit.getSpeed());\n int toX = Math.min(moveCosts.length, unit.getX() + unit.getSpeed() + 1);\n int toY = Math.min(moveCosts.length, unit.getY() + unit.getSpeed() + 1);\n TacList<Node> tiles = new TacList((unit.getSpeed() * 2 + 1) * (unit.getSpeed() * 2 + 1));\n for (int i = fromX; i < toX; i++) {\n for (int j = fromY; j < toY; j++) {\n if (moveCosts[i][j].getDistance() <= unit.getSpeed() && moveCosts[i][j].getDistance() > 0) {\n tiles.add(moveCosts[i][j]);\n }\n }\n }\n return tiles;\n }",
"private void putTilesOnBoard() {\n boolean isWhite = true;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n Tile t = new Tile(isWhite, new Position(x, y));\n t.setOnMouseClicked(e -> {\n if (t.piece != null && this.activeTile == null && this.whitePlayer == t.piece.isWhite()) {\n this.activeTile = t;\n ArrayList<Position> moves = t.piece.getLegalMoves();\n this.highlightAvailableMoves(moves, t.isWhite);\n } else if (t.isHighlighted.getValue() && this.activeTile.piece != null ) {\n movePieces(t);\n } else {\n this.activeTile = null;\n this.clearHighlightedTiles();\n }\n this.updatePieceBoards();\n });\n t.isHighlighted.addListener((o, b, b1) -> {\n if (o.getValue() == true) {\n t.startHighlight();\n } else {\n t.clearHighlight();\n }\n });\n this.board[x][y] = t;\n this.add(this.board[x][y], x, y);\n isWhite = !isWhite;\n }\n isWhite = !isWhite;\n }\n\n }",
"public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }",
"@Override\n public ArrayList<AState> getAllPossibleStates(AState state){\n MazeState s = (MazeState)state;\n ArrayList<AState> moves = new ArrayList<AState> ();\n\n\n int row = s.getState().getRowIndex();\n int col = s.getState().getColumnIndex();\n int [][] matrix = mySearchableMaze.getMazeMatrix();\n\n\n if(row+1 < matrix.length){\n if( matrix[row+1][col]==0 ){\n moves.add(new MazeState(new Position(row+1,col),false,s.getCost()+1));\n\n }\n }\n if(row-1 >= 0 ){\n if( matrix[row-1][col]==0){\n moves.add(new MazeState(new Position(row-1,col),false,s.getCost()+1));\n\n }\n }\n if(col+1 < matrix[0].length ){\n if( matrix[row][col+1]==0 ){\n moves.add(new MazeState(new Position(row,col+1),false,s.getCost()+1));\n\n }\n }\n if(col-1 >= 0 ){\n if( matrix[row][col-1]==0 ){\n moves.add(new MazeState(new Position(row,col-1),false,s.getCost()+1));\n }\n }\n return moves;\n }",
"public void setAdjacent()\r\n {\n \t\r\n adjacentTiles = new Tile[6];\r\n \r\n \r\n //Driver.map[VERT][HOR]\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos > 1) //topleft\r\n {\r\n \ttopLeft = Driver.map[verticalPos + 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \ttopLeft = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length - 2) //top\r\n {\r\n \ttop = Driver.map[verticalPos + 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \ttop = null;\r\n }\r\n \r\n if(verticalPos < Driver.map.length && horizontalPos < Driver.map[0].length) //topright\r\n {\r\n \ttopRight = Driver.map[verticalPos + 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \ttopRight = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos < Driver.map[0].length) //bottomright\r\n {\r\n \tbottomRight = Driver.map[verticalPos - 1][horizontalPos + 1];\r\n }\r\n else\r\n {\r\n \tbottomRight = null;\r\n }\r\n \r\n if(verticalPos > 2) //bottom\r\n {\r\n \tbottom = Driver.map[verticalPos - 2][horizontalPos];\r\n }\r\n else\r\n {\r\n \tbottom = null;\r\n }\r\n \r\n if(verticalPos > 1 && horizontalPos > 1) //botttomLeft\r\n {\r\n \tbottomLeft = Driver.map[verticalPos - 1][horizontalPos - 1];\r\n }\r\n else\r\n {\r\n \tbottomLeft = null;\r\n }\r\n \t\r\n \r\n adjacentTiles[0] = topLeft;\r\n adjacentTiles[1] = top;\r\n adjacentTiles[2] = topRight;\r\n adjacentTiles[3] = bottomRight;\r\n adjacentTiles[4] = bottom;\r\n adjacentTiles[5] = bottomLeft;\r\n \r\n \r\n// System.out.print(\"main tile \" + getHor() + \", \" + getVert() + \" \");\r\n// for(int i = 0; i < adjacentTiles.length; i++)\r\n// {\r\n// \tif( adjacentTiles[i] != null)\r\n// \t\tSystem.out.print(adjacentTiles[i].getHor() + \", \" + adjacentTiles[i].getVert() + \" | \");\r\n// \telse\r\n// \t\tSystem.out.print(\"null \");\r\n// }\r\n// System.out.println();\r\n \r\n }",
"public List<Grid> getPossibleMoves(Grid g){\n\t\tint i=g.row, j=g.col;\n\t\tif(i>=0 && i<data.length && j>=0 && j<data[i].length){\n\t\t\tList<Grid> list=new ArrayList<>();\n\t\t\tif(isFree(i, j-1)) list.add(new Grid(i,j-1));\n\t\t\tif(isFree(i-1, j-1)) list.add(new Grid(i-1,j-1));\n\t\t\tif(isFree(i-1, j)) list.add(new Grid(i-1,j));\n\t\t\tif(isFree(i-1, j+1)) list.add(new Grid(i-1,j+1));\n\t\t\tif(isFree(i, j+1)) list.add(new Grid(i,j+1));\n\t\t\tif(isFree(i+1, j+1)) list.add(new Grid(i+1,j+1));\n\t\t\tif(isFree(i+1, j)) list.add(new Grid(i+1,j));\n\t\t\tif(isFree(i+1, j-1)) list.add(new Grid(i+1,j-1));\n\t\t\treturn list;\n\t\t}\n\t\treturn null;\n\t}",
"public static byte[] getGoalTiles() {\n return GOAL_TILES;\n }",
"public void initBasicBoardTiles() {\n\t\ttry {\n\t\t\tfor(int i = 1 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.BLACK).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.WHITE).build());\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i = 2 ; i <= BOARD_SIZE ; i+=2) {\n\t\t\t\tfor(char c = getColumnLowerBound() ; c <= getColumnUpperBound() ; c+=2) {\n\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, c), PrimaryColor.WHITE).build());\n\t\t\t\t\taddTile(new Tile.Builder(new Location(i, (char) ( c + 1)), PrimaryColor.BLACK).build());\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(LocationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public Iterable<WorldState> neighbors() {\n Queue<WorldState> neighbor = new ArrayDeque<>();\n int xDim = 0, yDim = 0;\n int[][] tiles = new int[_N][_N];\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n tiles[i][j] = _tiles[i][j];\n if (_tiles[i][j] == 0) {\n xDim = i;\n yDim = j;\n }\n }\n }\n\n for (int i = 0; i < _N; i++) {\n for (int j = 0; j < _N; j++) {\n if (Math.abs(i - xDim) + Math.abs(j - yDim) == 1) {\n tiles[i][j] = _tiles[xDim][yDim];\n tiles[xDim][yDim] = _tiles[i][j];\n neighbor.add(new Board(tiles));\n // System.out.println(new Board(tiles));\n tiles[xDim][yDim] = _tiles[xDim][yDim];\n tiles[i][j] = _tiles[i][j];\n }\n }\n }\n return neighbor;\n }",
"public void clearTiles() {\n \tfor (int x = 0; x < (mAbsoluteTileCount.getX()); x++) {\n for (int y = 0; y < (mAbsoluteTileCount.getY()); y++) {\n setTile(0, x, y);\n }\n }\n }",
"public static ArrayList<FloorTile> getEffectedTiles() {\r\n\r\n ArrayList<FloorTile> temp = new ArrayList<>();\r\n for(int i = GameControl.ytile-1; i < GameControl.ytile + 2; i++) {\r\n for(int j = GameControl.xtile-1; j < GameControl.xtile + 2; j++) {\r\n if(i >= 0 && i < board.length && j >= 0 && j < board[0].length) {\r\n temp.add(board[i][j]);\r\n }\r\n }\r\n }\r\n return temp;\r\n }",
"public void fillWithIslandTiles() {\n\t\tthis.addCard(new IslandTile(\"Breakers Bridge\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Bronze Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cliffs of Abandon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Cave of Embers\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Crimson Forest\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Copper Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Coral Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Cave of Shadows\", CardType.TILE, TreasureType.CRYSTAL_OF_FIRE));\n\t\tthis.addCard(new IslandTile(\"Dunes of Deception\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Fool's Landing\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Gold Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Howling Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Iron Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Lost Lagoon\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Misty Marsh\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Observatory\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Phantom Rock\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Silver Gate\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Moon\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Tidal Palace\", CardType.TILE, TreasureType.OCEAN_CHALICE));\n\t\tthis.addCard(new IslandTile(\"Temple of the Sun\", CardType.TILE, TreasureType.EARTH_STONE));\n\t\tthis.addCard(new IslandTile(\"Twilight Hollow\", CardType.TILE, TreasureType.NONE));\n\t\tthis.addCard(new IslandTile(\"Whispering Garden\", CardType.TILE, TreasureType.STATUE_OF_WIND));\n\t\tthis.addCard(new IslandTile(\"Watchtower\", CardType.TILE, TreasureType.NONE));\n\t}",
"public ArrayList<Movable> getProjectiles(){\n\t\tArrayList<Movable> moving = new ArrayList<Movable>(temp);\n\t\ttemp = new ArrayList<Movable>();\n\t\treturn moving;\n\t}",
"private void setAvailableFromLastMove(int large, int smallx) {\n clearAvailable();\n // Make all the tiles at the destination available\n if (large != -1) {\n\n\n for (int i = 0; i < 9; i++) {\n for (int dest = 0; dest < 9; dest++) {\n if (!phaseTwo) {\n if (!done) {\n if (i == large) {\n TileAssignment5 tile = mSmallTiles[large][dest];\n if ((tile.getOwner() == TileAssignment5.Owner.NOTCLICKED))\n addAvailable(tile);\n\n switch (smallx) {\n case 0:\n int a[] = adjacencyList.get(0);\n\n for (int x : a) {\n TileAssignment5 tile1 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n //}\n }\n break;\n case 1:\n int a1[] = adjacencyList.get(1);\n\n for (int x : a1) {\n TileAssignment5 tile2 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n //}\n }\n break;\n case 2:\n int a2[] = adjacencyList.get(2);\n for (int x : a2) {\n TileAssignment5 tile3 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile3)) {\n mAvailable.remove(tile3);\n // }\n }\n break;\n case 3:\n int a3[] = adjacencyList.get(3);\n for (int x : a3) {\n TileAssignment5 tile4 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile4)) {\n mAvailable.remove(tile4);\n // }\n }\n break;\n case 4:\n int a4[] = adjacencyList.get(4);\n for (int x : a4) {\n TileAssignment5 tile5 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile5)) {\n mAvailable.remove(tile5);//}\n\n }\n break;\n case 5:\n int a5[] = adjacencyList.get(5);\n for (int x : a5) {\n TileAssignment5 tile6 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile6)) {\n mAvailable.remove(tile6);//}\n\n }\n break;\n case 6:\n int a6[] = adjacencyList.get(6);\n for (int x : a6) {\n TileAssignment5 tile7 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile7)) {\n mAvailable.remove(tile7);//}\n\n }\n break;\n case 7:\n int a7[] = adjacencyList.get(7);\n for (int x : a7) {\n TileAssignment5 tile8 = mSmallTiles[large][x];\n // if(mAvailable.contains(tile8)) {\n mAvailable.remove(tile8);//}\n\n }\n break;\n case 8:\n int a8[] = adjacencyList.get(8);\n for (int x : a8) {\n TileAssignment5 tile9 = mSmallTiles[large][x];\n //if(mAvailable.contains(tile9)) {\n mAvailable.remove(tile9);//}\n\n }\n break;\n }\n\n } else {\n if (DoneTiles.contains(i)) {\n continue;\n }\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.FREEZED);\n tile.updateDrawableState('a', 0);\n }\n } else { //OnDOnePressed\n if (DoneTiles.contains(i)) {\n continue;\n }\n\n // Log.d(\"Comes \", \"Hereeee\");\n if (i != large) {//Correct answer\n TileAssignment5 tile = mSmallTiles[i][dest];\n tile.setOwner(TileAssignment5.Owner.NOTCLICKED);\n addAvailable(tile);\n tile.updateDrawableState('a', 0);\n //done =false;\n }\n }\n\n\n }else {\n/*\n ileAssignment5 thistile = mSmallTiles[i][dest];\n if(((Button)thistile.getView()).getText().charAt(0)==' '){\n mAvailable.remove(thistile);\n thistile.updateDrawableState('a', 0);\n }\n*/\n\n\n if (i == large) {\n if (dest == smallx) {\n TileAssignment5 tile1 = mSmallTiles[large][dest];\n tile1.setOwner(TileAssignment5.Owner.CLICKED);\n if (mAvailable.contains(tile1)) {\n mAvailable.remove(tile1);\n }\n tile1.updateDrawableState('a', 0);\n\n } else {\n TileAssignment5 tile2 = mSmallTiles[large][dest];\n if (!(tile2.getOwner() == TileAssignment5.Owner.CLICKED)) {\n\n tile2.setOwner(TileAssignment5.Owner.FREEZED);\n }\n if (mAvailable.contains(tile2)) {\n mAvailable.remove(tile2);\n }\n tile2.updateDrawableState('a', 0);\n }\n\n\n } else {\n\n\n TileAssignment5 tile3 = mSmallTiles[i][dest];\n if (!(tile3.getOwner() == TileAssignment5.Owner.CLICKED)) {\n tile3.setOwner(TileAssignment5.Owner.NOTCLICKED);\n }\n // if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n\n if ((!mAvailable.contains(tile3))&&(tile3.getView().toString().charAt(0)!=' ')){\n mAvailable.add(tile3);\n }\n\n\n tile3.updateDrawableState('a', 0);\n\n\n\n TileAssignment5 tile = mSmallTiles[i][dest];\n if(((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' '){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }\n\n\n\n\n\n\n\n\n\n /*\n\n\n\n\n\n\n ileAssignment5 tile = mSmallTiles[i][dest];\n ileAssignment5 tile = mSmallTiles[i][dest];\n try{\n if(((((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(null))||((Button)mSmallTiles[i][dest].getView()).getText().toString().charAt(0)==' ')||(((Button)mSmallTiles[i][dest].getView()).getText().toString().equals(\"\"))){\n // Log.d(\"Yes \", \"it came\");\n if(mAvailable.contains(tile)){\n mAvailable.remove(tile);\n }\n }\n else{\n if(!mAvailable.contains(tile)){\n addAvailable(tile);}\n }}catch (ArrayIndexOutOfBoundsException e){\n\n\n }catch ( StringIndexOutOfBoundsException e){\n\n }\n\n*/\n }\n\n }\n }\n }\n }\n // If there were none available, make all squares available\n if (mAvailable.isEmpty()&&large==-1) {\n setAllAvailable();\n }\n }",
"public void createTiles() {\r\n Session session = sessionService.getCurrentSession();\r\n Campaign campaign = session.getCampaign();\r\n\r\n tilePane.getChildren().clear();\r\n List<Pc> pcs = null;\r\n try {\r\n pcs = characterService.getPlayerCharacters();\r\n } catch (MultiplePlayersException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n if (pcs != null) {\r\n pcs = pcs.stream().filter(pc -> campaign.getPcs().stream().anyMatch(\r\n campaignPc -> campaignPc.getId().equalsIgnoreCase(pc.getId())\r\n )).collect(Collectors.toList());\r\n\r\n for (Pc pc : pcs) {\r\n SortedMap<String, String> items = getTileItems(pc);\r\n Tile tile = new Tile(pc.getId(), pc.getName(), items);\r\n tile.setOnMouseClicked(mouseEvent -> {\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), tile.getObjectId());\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n parentController.updateSession(sessionService.getCurrentSession());\r\n parentController.switchView();\r\n });\r\n tilePane.getChildren().add(tile);\r\n }\r\n }\r\n }",
"public void initTiles() {\n\t\ttileList.add(new Go());\n\n\t\t// Brown properties\n\t\tProperty mediterranean = new Property(\"Mediterranean\");\n\t\tProperty balticAve = new Property(\"Baltic Avenue\");\n\n\t\t// Light blue properties\n\t\tProperty orientalAve = new Property(\"Oriental Avenue\");\n\t\tProperty vermontAve = new Property(\"Vermont Avenue\");\n\t\tProperty connecticutAve = new Property(\"Connecticut Avenue\");\n\n\t\t// Magenta properties\n\t\tProperty stCharles = new Property(\"St. Charles Place\");\n\t\tProperty statesAve = new Property(\"States Avenue\");\n\t\tProperty virginiaAve = new Property(\"Virginia Avenue\");\n\n\t\t// Orange properties\n\t\tProperty stJames = new Property(\"St. James Place\");\n\t\tProperty tennesseeAve = new Property(\"Tennessee Avenue\");\n\t\tProperty newYorkAve = new Property(\"New York Avenue\");\n\n\t\t// Red properties\n\t\tProperty kentuckyAve = new Property(\"Kentucky Avenue\");\n\t\tProperty indianaAve = new Property(\"Indiana Avenue\");\n\t\tProperty illinoisAve = new Property(\"Illinois Avenue\");\n\n\t\t// Yellow Properties\n\t\tProperty atlanticAve = new Property(\"Atlantic Avenue\");\n\t\tProperty ventnorAve = new Property(\"Ventnor Avenue\");\n\t\tProperty marvinGard = new Property(\"Marvin Gardins\");\n\n\t\t// Green Properties\n\t\tProperty pacificAve = new Property(\"Pacific Avenue\");\n\t\tProperty northCar = new Property(\"North Carolina Avenue\");\n\t\tProperty pennsylvannia = new Property(\"Pennsylvania Avenue\");\n\n\t\t// Dark blue properties\n\t\tProperty parkPlace = new Property(\"Park Place\");\n\t\tProperty boardWalk = new Property(\"Boardwalk\");\n\n\t\t// Tax tiles\n\t\tTaxTile incomeTax = new TaxTile(\"Income Tax\", 200);\n\t\tTaxTile luxuryTax = new TaxTile(\"Luxury Tax\", 100);\n\n\t\t// Utilities\n\t\tUtility electric = new Utility(\"Electric Company\");\n\t\tUtility water = new Utility(\"Water Works\");\n\n\t\t// Railroads\n\t\tRailroad reading = new Railroad(\"Reading\");\n\t\tRailroad pennRail = new Railroad(\"Pennsylvania\");\n\t\tRailroad bno = new Railroad(\"B & O\");\n\t\tRailroad shortLine = new Railroad(\"Short Line\");\n\n\t\t// Chance and community chest\n\t\tChance chance = new Chance();\n\t\tCommunity chest = new Community();\n\n\t\t// Adds the properties by color in accordance with their position on the board\n\t\t// adds color + placement of piece to a list of their respective colors\n\t\tbrown.add(1);\n\t\tbrown.add(3);\n\t\trailroads.add(5);\n\t\tlightBlue.add(6);\n\t\tlightBlue.add(8);\n\t\tlightBlue.add(9);\n\t\tmagenta.add(11);\n\t\tutilities.add(12);\n\t\tmagenta.add(13);\n\t\tmagenta.add(14);\n\t\trailroads.add(15);\n\t\torange.add(16);\n\t\torange.add(18);\n\t\torange.add(19);\n\t\tred.add(21);\n\t\tred.add(23);\n\t\tred.add(24);\n\t\trailroads.add(25);\n\t\tyellow.add(26);\n\t\tyellow.add(27);\n\t\tutilities.add(28);\n\t\tyellow.add(29);\n\t\tgreen.add(31);\n\t\tgreen.add(32);\n\t\tgreen.add(34);\n\t\trailroads.add(35);\n\t\tdarkBlue.add(37);\n\t\tdarkBlue.add(39);\n\n\t\t// tileList is the list of tiles of the board where each tile is representative of a place on the board\n\t\t// adds each tile is chronological order beginning of the board \"go\"\n\t\t//this list includes: properties, taxes, railroads, chance, community chest\n\t\t\n\t\ttileList.add(new Go());\n\n\t\ttileList.add(mediterranean);\n\t\ttileList.add(chest);\n\t\ttileList.add(balticAve);\n\t\ttileList.add(incomeTax);\n\t\ttileList.add(reading);\n\t\ttileList.add(orientalAve);\n\t\ttileList.add(chance);\t\n\t\ttileList.add(vermontAve);\n\t\ttileList.add(connecticutAve);\n\n\t\ttileList.add(new Jail());\n\t\t\t\n\t\ttileList.add(stCharles);\n\t\ttileList.add(electric);\t\t\t\n\t\ttileList.add(statesAve);\t\t\t\n\t\ttileList.add(virginiaAve);\n\t\ttileList.add(pennRail);\n\t\ttileList.add(stJames);\t\n\t\ttileList.add(chest);\n\t\ttileList.add(tennesseeAve);\t\t\t\n\t\ttileList.add(newYorkAve);\n\n\t\ttileList.add(new FreeParking());\n\t\t\t\n\t\ttileList.add(kentuckyAve);\t\t\n\t\ttileList.add(chance);\t\n\t\ttileList.add(indianaAve);\t\t\t\n\t\ttileList.add(illinoisAve);\n\t\ttileList.add(bno);\n\t\ttileList.add(atlanticAve);\t\t\t\n\t\ttileList.add(ventnorAve);\n\t\ttileList.add(water);\n\t\ttileList.add(marvinGard);\n\n\t\ttileList.add(new GoToJail());\n\t\t\t\t\t\n\t\ttileList.add(pacificAve);\t\t\t\n\t\ttileList.add(northCar);\n\t\ttileList.add(chest);\t\t\t\n\t\ttileList.add(pennsylvannia);\n\t\ttileList.add(shortLine);\n\t\ttileList.add(chance);\n\t\ttileList.add(parkPlace);\n\t\ttileList.add(luxuryTax);\n\t\ttileList.add(boardWalk);\n\t}",
"public HashSet<int[]> findTiles(int x, int y, Tile[][] board, HashSet<int[]> tilePositions){\n TileType tileType = board[x][y].getType();\n int tileOrientation = board[x][y].getOrientation();\n\n switch(tileType){\n case Crossway:\n switch(tileOrientation){\n case 0:\n //nach oben\n //sind wir in der obersten Zeile oder hat das Tile über diesem nach unten eine Wand oder wurde das Tile über diesem schon angeschaut?\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions) ) {\n tilePositions.add(arrayOfXY(x,y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x - 1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x + 1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 1:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 2:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 3:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1,tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n break;\n }\n break;\n case Way:\n if(tileOrientation == 0 || tileOrientation == 2){\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n }\n else{\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1,tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n }\n break;\n case Edge:\n switch(tileOrientation){\n case 0:\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1,y,tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n break;\n case 1:\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n //nach unten\n if(y!=6 && !neighbourHasWall(0, board[x][y+1]) && !tilePositionsContainsXY(x,y+1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y+1));\n tilePositions.addAll(findTiles(x, y + 1, board, tilePositions));\n }\n break;\n case 2:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach links\n if(x!=0 && !neighbourHasWall(1, board[x-1][y]) && !tilePositionsContainsXY(x-1,y, tilePositions)) {\n tilePositions.add(arrayOfXY(x-1, y));\n tilePositions.addAll(findTiles(x - 1, y, board, tilePositions));\n }\n break;\n case 3:\n //nach oben\n if(y!=0 && !neighbourHasWall(2, board[x][y-1]) && !tilePositionsContainsXY(x,y-1, tilePositions)) {\n tilePositions.add(arrayOfXY(x, y-1));\n tilePositions.addAll(findTiles(x, y - 1, board, tilePositions));\n }\n //nach rechts\n if(x!=6 && !neighbourHasWall(3, board[x+1][y]) && !tilePositionsContainsXY(x+1, y, tilePositions)) {\n tilePositions.add(arrayOfXY(x+1, y));\n tilePositions.addAll(findTiles(x + 1, y, board, tilePositions));\n }\n }\n break;\n }\n return tilePositions;\n }",
"private void drawTiles(Graphics g)\n {\n for (int x = 0; x < 19; x++)\n {\n for (int y = 0; y < 15; y++)\n {\n tileset.getSprite(5, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n switch(board[x][y])\n {\n case 1:\n {\n tileset.getSprite(4, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 2:\n {\n tileset.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n break;\n }\n case 3:\n {\n if (bombs[x][y].getTimeLeft() > 80)\n {\n bombImage.getSprite(0, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 80 && bombs[x][y].getTimeLeft() > 50)\n {\n bombImage.getSprite(1, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 50 && bombs[x][y].getTimeLeft() > 20)\n {\n bombImage.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n if (bombs[x][y].getTimeLeft() <= 20)\n {\n bombImage.getSprite(3, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n //4 is player\n case 5:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(2, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n case 6:\n {\n if (fire[x][y] == null)\n {\n tileset.getSprite(15, 0).draw(x * 32 + jitterX, y * 32 + jitterY);\n }\n break;\n }\n }\n }\n }\n }",
"public List<Tile> getOwnedTiles() {\n return new ArrayList<Tile>(ownedTiles);\n }",
"private void makeGrid(JLabel moves, JLabel remainingBombs) {\r\n this.grid = new Tile[gridSize][gridSize]; \r\n for (int r = 0; r < gridSize; r++) {\r\n for (int c = 0; c < gridSize; c++) {\r\n if (solution[r][c] == 1) {\r\n grid[r][c] = new Tile(r, c, true);\r\n } else {\r\n grid[r][c] = new Tile(r, c, false);\r\n }\r\n final Tile t = grid[r][c];\r\n t.repaint();\r\n handleClicksAndMoves(t, moves, remainingBombs); \r\n }\r\n }\r\n }",
"private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}",
"private Board create5by5Board() {\n Tile[][] tiles;\n Tile t1 = new Tile(0, 5);\n Tile t2 = new Tile(1, 5);\n Tile t3 = new Tile(2, 5);\n Tile t4 = new Tile(3, 5);\n Tile t5 = new Tile(4, 5);\n Tile t6 = new Tile(5, 5);\n Tile t7 = new Tile(6, 5);\n Tile t8 = new Tile(7, 5);\n Tile t9 = new Tile(8, 5);\n Tile t10 = new Tile(9, 5);\n Tile t11 = new Tile(10, 5);\n Tile t12 = new Tile(11, 5);\n Tile t13 = new Tile(12, 5);\n Tile t14 = new Tile(13, 5);\n Tile t15 = new Tile(14, 5);\n Tile t16 = new Tile(15, 5);\n Tile t17 = new Tile(16, 5);\n Tile t18 = new Tile(17, 5);\n Tile t19 = new Tile(18, 5);\n Tile t20 = new Tile(19, 5);\n Tile t21 = new Tile(20, 5);\n Tile t22 = new Tile(21, 5);\n Tile t23 = new Tile(22, 5);\n Tile t24 = new Tile(23, 5);\n Tile t25 = new Tile(24, 5);\n tiles = new Tile[5][5];\n tiles[0][0] = t7;\n tiles[0][1] = t6;\n tiles[0][2] = t2;\n tiles[0][3] = t5;\n tiles[0][4] = t9;\n tiles[1][0] = t3;\n tiles[1][1] = t1;\n tiles[1][2] = t8;\n tiles[1][3] = t4;\n tiles[1][4] = t11;\n tiles[2][0] = t17;\n tiles[2][1] = t18;\n tiles[2][2] = t10;\n tiles[2][3] = t25;\n tiles[2][4] = t20;\n tiles[3][0] = t23;\n tiles[3][1] = t21;\n tiles[3][2] = t12;\n tiles[3][3] = t15;\n tiles[3][4] = t13;\n tiles[4][0] = t22;\n tiles[4][1] = t24;\n tiles[4][2] = t14;\n tiles[4][3] = t16;\n tiles[4][4] = t19;\n return new Board(tiles);\n }",
"public void loadTileImages() {\n // keep looking for tile A,B,C, etc. this makes it\n // easy to drop new tiles in the images/ directory\n tiles = new ArrayList();\n char ch = 'A';\n while (true) {\n String name = \"tile_\" + ch + \".png\";\n File file = new File(\"images/\" + name);\n if (!file.exists()) {\n break;\n }\n tiles.add(loadImage(name));\n ch++;\n }\n }",
"private void layTiles(TiledMapManager mapManager) {\n board = new Tile[height][width];\n for (int row = 0; row < height; row++) {\n for (int col = 0; col < width; col++) {\n TiledMapTile tile = mapManager.getCell(\"TILES\", row, col).getTile();\n String tileType = (String) tile.getProperties().get(\"Type\");\n Tile currentTile;\n switch (tileType) {\n case \"GEAR\":\n boolean clockwise = (boolean) tile.getProperties().get(\"Clockwise\");\n currentTile = new Gear(row, col, clockwise);\n break;\n case \"HOLE\":\n currentTile = new Hole(row, col);\n break;\n case \"DOCK\":\n int number = (Integer) tile.getProperties().get(\"Number\");\n currentTile = new Dock(number, row, col);\n docks.add((Dock) currentTile);\n break;\n case \"CONVEYOR_BELT\":\n currentTile = installConveyorBelt(mapManager, row, col);\n break;\n case \"REPAIR_SITE\":\n currentTile = new RepairSite(row, col);\n break;\n default:\n currentTile = new Tile(row, col);\n break;\n }\n layTile(currentTile);\n }\n }\n Collections.sort(docks);\n }",
"public List<Tile> getTilesAtAbsoluteRect(AbsoluteRectangle rect) {\n List<Tile> tiles = new ArrayList<>();\n int tileWidth = tileMap.getTileWidth();\n int tileHeight = tileMap.getTileHeight();\n int startX = rect.x / tileWidth;\n int startY = rect.y / tileHeight;\n int endX = (int) Math.ceil((rect.x + rect.width) / (float) tileWidth);\n int endY = (int) Math.ceil((rect.y + rect.height) / (float) tileHeight);\n for (int x = startX; x < endX; x++)\n for (int y = startY; y < endY; y++) {\n Tile tile = tileMap.getTile(x, y);\n if (tile != null)\n tiles.add(tile);\n }\n return tiles;\n }",
"private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }",
"protected Tile[] newTiles() {\n int len = getWidthInTiles() * getHeightInTiles();\n Tile[] t = new Tile[ len ];\n for(int i = 0; i < len; i++) {\n t[i] = null;\n }\n return t;\n }",
"protected static LinkedList<Location> generateLocations() {\n int i = 0;\n LinkedList<Location> list = new LinkedList<Location>();\n ClassLoader classLoader = Thread.currentThread().getContextClassLoader();\n ImagePacker gearImgs = new ImagePacker();\n\n try {\n gearImgs.readDirectory(new File(Objects.requireNonNull(classLoader.getResource(\"assets/gear-tiles\")).getPath()));\n } catch (Exception e) {\n e.printStackTrace();\n }\n for (i = 0; i < GEARTILES; i++) {\n list.add(new Location(LocationType.GEAR).withImg(gearImgs.popImg()));\n }\n list.get((int)(Math.random()*list.size())).toggleStartingLoc();\n\n Image waterImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-tile.jpg\")).toString());\n for (i = 0; i < WATERTILES; i++) {\n list.add(new Location(LocationType.WELL).withImg(waterImg));\n }\n\n Image waterFakeImg = new Image(Objects.requireNonNull(classLoader.getResource(\"assets/water/water-fake-tile.jpg\")).toString());\n for (i = 0; i < WATERFAKETILES; i++) {\n list.add(new Location(LocationType.MIRAGE).withImg(waterFakeImg));\n }\n\n //TODO: Finish images\n for (i = 0; i < LANDINGPADTILES; i++) {\n list.add(new Location(LocationType.LANDINGPAD).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/landing-pad.jpg\")).toString())));\n }\n for (i = 0; i < TUNNELTILES; i++) {\n list.add(new Location(LocationType.TUNNEL).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/tunnel.jpg\")).toString())));\n }\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.COMPASS, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/compass-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.PROPELLER, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/propeller-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.ENGINE, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/motor-LR.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.NS).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-UD.jpg\")).toString())));\n list.add(new Clue(Artifact.CRYSTAL, Clue.Orientation.EW).withImg(new Image(Objects.requireNonNull(classLoader.getResource(\"assets/other-tiles/monolith-LR.jpg\")).toString())));\n\n return list;\n }",
"public static List<MapTile> findPath(MovableObject mO, GameObject destination) {\n List<MapTile> openList = new LinkedList<>();\n List<MapTile> closedList = new LinkedList<>();\n List<MapTile> neighbours = new ArrayList<>();\n Point objectTileCoord = mO.getGridCoordinates();\n Point destinationTileCoord = destination.getGridCoordinates();\n MapTile currentTile;\n try {\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n } catch (ArrayIndexOutOfBoundsException e) {\n System.out.print(\"Error while getting current tile for pathfinding. Trying to adapt coords.\");\n if (mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight()) {\n objectTileCoord.y -= 1;\n }\n if (mO.getY() >= MapManager.getWorldHeight() && mO.getX() >= MapManager.getWorldWidth()) {\n objectTileCoord.x -= 1;\n objectTileCoord.y -= 1;\n }\n currentTile = mapGrid.mapGrid[objectTileCoord.x][objectTileCoord.y];\n }\n\n currentTile.setParentMapTile(null);\n currentTile.totalMovementCost = 0;\n openList.add(currentTile);\n\n boolean notDone = true;\n\n while (notDone) {\n neighbours.clear();\n currentTile = getLowestCostTileFromOpenList(openList, currentTile);\n closedList.add(currentTile);\n openList.remove(currentTile);\n\n //ReachedGoal?\n if ((currentTile.xTileCoord == destinationTileCoord.x) && (currentTile.yTileCoord == destinationTileCoord.y)) {\n try {\n return getResultListOfMapTiles(currentTile);\n } catch (Exception e) {\n System.out.println(\"closed list size: \" + closedList.size());\n throw e;\n }\n }\n\n neighbours.addAll(currentTile.getNeighbourTiles());\n neighbours.removeAll(closedList);\n\n for (MapTile mapTile : neighbours) {\n if (openList.contains(mapTile)) {\n // compare total movement costs.\n if (mapTile.totalMovementCost > currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost) {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.getMovementCostToTile(mapTile) + currentTile.totalMovementCost;\n }\n } else {\n mapTile.setParentMapTile(currentTile);\n mapTile.totalMovementCost = currentTile.totalMovementCost + currentTile.getMovementCostToTile(mapTile);\n openList.add(mapTile);\n }\n }\n }\n return null;\n }",
"private static Image[][] getTileBases()\n\t{\n\t\tImage[][] tileBases = new Image[2][4];\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[0][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \".png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t}\n\t\t}\n\t\tfor (int type = 0; type < 4; type++) {\n\t\t\ttry {\n\t\t\t\ttileBases[1][type] = ImageIO.read(new File(tileDirectory\n\t\t\t\t\t\t+ \"tile_\" + tileColours[type] + \"_trans.png\"));\n\t\t\t} catch (IOException ioe) {\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\treturn tileBases;\n\t}",
"public ArrayList<Cell> getPseudoLegalMoves() {\n\n Cell[][] board = Board.getBoard();\n ArrayList<Cell> moves = new ArrayList<Cell>();\n\n //Possible ways to move a knight\n int[][] possibleOffsets = {{-2,-1},{-2,1},{-1,-2},{-1,2},{1,-2},{1,2},{2,1},{2,-1}};\n\n for(int i=0; i<possibleOffsets.length; i++){\n int x = possibleOffsets[i][0] + getRow();\n int y = possibleOffsets[i][1] + getColumn();\n\n //Making sure we dont leave the board\n if(x >= board.length || x < 0\n || y >= board.length || y < 0)\n continue;\n\n //Making sure destination does not contain a friendly piece\n if(Board.containsPieceOfColor(x,y,this.getColor()))\n continue;\n\n moves.add(board[x][y]);\n }\n\n return moves;\n }",
"public ArrayList<FloorTile> getFixedTilesFromBoard() {\r\n ArrayList<FloorTile> fixedTiles = new ArrayList<FloorTile>();\r\n for(int i = 0; i < board.length; i++) {\r\n for (int j = 0; j < board[i].length; j++) {\r\n if (board[i][j].isFixedTile()) {\r\n fixedTiles.add(board[i][j]);\r\n }\r\n }\r\n }\r\n\r\n return fixedTiles;\r\n }",
"List<MineTile> getSurround(int position) {\n int dimension = getDimension();\n int row = position / dimension;\n int col = position % dimension;\n List<MineTile> surround = new ArrayList<>();\n\n if (row != 0 && col != 0) {\n surround.add(getTiles().get(position - dimension - 1));\n }\n if (row != 0 && col != dimension - 1) {\n surround.add(getTiles().get(position - dimension + 1));\n }\n if (row != 0) {\n surround.add(getTiles().get(position - dimension));\n }\n if (row != dimension - 1 && col != 0) {\n surround.add(getTiles().get(position + dimension - 1));\n }\n if (row != dimension - 1 && col != dimension - 1) {\n surround.add(getTiles().get(position + dimension + 1));\n }\n if (row != dimension - 1) {\n surround.add(getTiles().get(position + dimension));\n }\n if (col != 0) {\n surround.add(getTiles().get(position - 1));\n }\n if (col != dimension - 1) {\n surround.add(getTiles().get(position + 1));\n }\n return surround;\n }",
"public List<Move> getAvailableSpaces() {\n List<Move> availableMoves = new ArrayList<>();\n for (int i = 0; i < LENGTH; i++) {\n for (int j = 0; j < LENGTH; j++) {\n Move move = new Move(i, j);\n if (isValidMove(move)) {\n availableMoves.add(move);\n }\n }\n }\n return availableMoves;\n }",
"private void initTiles(){\n\t\ttiles = new Tile[size * size];\n\t\tfor(int i = 0; i < tiles.length; i++){\n\t\t\ttiles[i] = new Tile(KEYS[i]);\n\t\t}\n\t}",
"static List<Move> generateLegalMoves(Position pos) {\n\t\tList<Move> moves = new ArrayList<>();\n\n\t\t// for (int square : pos.pieces) {\n\t\t// \tif (pos.pieces.size() > 32) {\n\t\t// \t\tSystem.out.println(\"problem\" + pos.pieces.size());\n\t\t// \t}\n\t\t// \tif (pos.at(square) != 0 && Piece.isColor(pos.at(square), pos.toMove)) {\n\t\t// \t\tint piece = pos.at(square);\n\t\t// \t\tint name = Piece.name(piece);\n\t\t// \t\tif (name == Piece.Pawn) {\n\t\t// \t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t// \t\t\tif (square + step >= 0 && square + step < 64) {\n\t\t// \t\t\t\t// 1 square\n\t\t// \t\t\t\tif (pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'q'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'b'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'n'));\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step, 'r'));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + step));\n\t\t// \t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// 2 squares\n\t\t// \t\t\t\tif ((square < 16 && pos.toMove == 'w') || square > 47 && pos.toMove == 'b') {\n\t\t// \t\t\t\t\tif (pos.board.squares[square + 2*step] == 0 && pos.board.squares[square + step] == 0) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, square + 2*step));\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t\t// capture\n\t\t// \t\t\t\t// right\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][3] > 0) {\n\t\t// \t\t\t\t\tint target = square + step + 1;\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t} \n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\n\t\t// \t\t\t\t// left\n\t\t// \t\t\t\tif (MoveData.DistanceToEdge[square][2] > 0) {\n\t\t// \t\t\t\t\tint target = square + step - 1;\n\t\t// \t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && square >= 48) || (pos.toMove == 'b' && square <= 15)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'q'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'b'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'n'));\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target, 'r'));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t\telse {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\t\t\t\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t// \t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t// \t\t\t\t\t\t\tmoves.add(new Move(square, target));\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\tfor (int offset : MoveData.KnightOffsets.get(square)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\tif (!Piece.isColor(pos.board.squares[square + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tMove move = new Move(square, square + offset);\n\t\t// \t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t// \t\t\t\t}\t\n\t\t// \t\t\t}\t\t\t\t\t\n\t\t// \t\t}\n\t\t// \t\telse {\n\t\t// \t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t// \t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t// \t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t// \t\t\t\tint maxDist = MoveData.DistanceToEdge[square][dir];\n\t\t// \t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\n\t\t// \t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t// \t\t\t\t\tint squareIdx = square + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t// \t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t// \t\t\t\t\t\tmoves.add(new Move(square, squareIdx));\n\t\t// \t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t// \t\t\t\t\t\t\tbreak;\n\t\t// \t\t\t\t\t\t}\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t\telse {\n\t\t// \t\t\t\t\t\tbreak;\n\t\t// \t\t\t\t\t}\n\t\t// \t\t\t\t}\t\t\t\t\t\t\n\t\t// \t\t\t}\n\t\t// \t\t}\n\t\t// \t}\n\t\t// }\n\n\t\tfor (int i = 0; i < 64; i++) {\n\t\t\tif (pos.board.squares[i] != 0 && Piece.isColor(pos.board.squares[i], pos.toMove)) {\n\t\t\t\tint piece = pos.board.squares[i];\n\t\t\t\tint name = Piece.name(piece);\n\t\t\t\tif (name == Piece.Pawn) {\n\t\t\t\t\tint step = pos.toMove == 'w' ? MoveData.Up : MoveData.Down;\n\t\t\t\t\tif (i + step >= 0 && i + step < 64) {\n\t\t\t\t\t\t// 1 square\n\t\t\t\t\t\tif (pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'q'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'b'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'n'));\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step, 'r'));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + step));\n\t\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// 2 squares\n\t\t\t\t\t\tif ((i < 16 && pos.toMove == 'w') || i > 47 && pos.toMove == 'b') {\n\t\t\t\t\t\t\tif (pos.board.squares[i + 2*step] == 0 && pos.board.squares[i + step] == 0) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, i + 2*step));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t\t// capture\n\t\t\t\t\t\t// right\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][3] > 0) {\n\t\t\t\t\t\t\tint target = i + step + 1;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t} \n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// left\n\t\t\t\t\t\tif (MoveData.DistanceToEdge[i][2] > 0) {\n\t\t\t\t\t\t\tint target = i + step - 1;\n\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[target], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && i >= 48) || (pos.toMove == 'b' && i <= 15)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'q'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'b'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'n'));\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target, 'r'));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse if (target == pos.enPassantTarget) {\n\t\t\t\t\t\t\t\tif ((pos.toMove == 'w' && target > 32) || (pos.toMove == 'b' && target < 24)) {\n\t\t\t\t\t\t\t\t\tmoves.add(new Move(i, target));\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if (name == Piece.Knight) {\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\tfor (int offset : MoveData.KnightOffsets.get(i)) {\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[i + offset], pos.toMove)) {\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tMove move = new Move(i, i + offset);\n\t\t\t\t\t\t\tmoves.add(move);\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\t\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tint dirStart = name == Piece.Bishop ? 4 : 0;\n\t\t\t\t\tint dirEnd = name == Piece.Rook ? 4 : 8;\n\t\t\t\t\tfor (int dir = dirStart; dir < dirEnd; dir++) {\n\t\t\t\t\t\tint maxDist = MoveData.DistanceToEdge[i][dir];\n\t\t\t\t\t\tint dist = name == Piece.King ? Math.min(1, maxDist) : maxDist;\n\t\t\t\t\t\tfor (int steps = 1; steps <= dist; steps++) {\n\t\t\t\t\t\t\tint squareIdx = i + steps * MoveData.Offsets[dir];\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (!Piece.isColor(pos.board.squares[squareIdx], pos.toMove)) {\n\t\t\t\t\t\t\t\tmoves.add(new Move(i, squareIdx));\n\t\t\t\t\t\t\t\tif (Piece.isColor(pos.board.squares[squareIdx], Opposite(pos.toMove))) {\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// castling\t\t\n\t\tif (pos.toMove == 'w' && !underAttack(pos, pos.whiteKing, 'b')) {\t\t\t\n\t\t\tif (pos.castlingRights.whiteKingSide && pos.at(Board.H1) == (Piece.Rook | Piece.White)) {\n\t\t\t\tif (pos.at(Board.F1) == Piece.Empty && pos.at(Board.G1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F1, 'b') && !underAttack(pos, Board.G1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.G1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\tif (pos.castlingRights.whiteQueenSide && pos.at(Board.A1) == (Piece.Rook | Piece.White)) {\t\t\t\t\n\t\t\t\tif (pos.at(Board.B1) == Piece.Empty && pos.at(Board.C1) == Piece.Empty && pos.at(Board.D1) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D1, 'b') && !underAttack(pos, Board.C1, 'b')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E1, Board.C1));\n\t\t\t\t\t}\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\n\t\telse if (pos.toMove == 'b' && !underAttack(pos, pos.blackKing, 'w')){\n\t\t\tif (pos.castlingRights.blackKingSide && pos.at(Board.H8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.F8) == Piece.Empty && pos.at(Board.G8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.F8, 'w') && !underAttack(pos, Board.G8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.G8));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (pos.castlingRights.blackQueenSide && pos.at(Board.A8) == (Piece.Rook | Piece.Black)) {\n\t\t\t\tif (pos.at(Board.B8) == Piece.Empty && pos.at(Board.C8) == Piece.Empty && pos.at(Board.D8) == Piece.Empty) {\n\t\t\t\t\tif (!underAttack(pos, Board.D8, 'w') && !underAttack(pos, Board.C8, 'w')) {\n\t\t\t\t\t\tmoves.add(new Move(Board.E8, Board.C8));\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// filter illegal moves\n\t\tList<Move> legalMoves = new ArrayList<>();\n\t\tchar color = pos.toMove;\n\t\tfor (Move move : moves) {\n\t\t\tpos.makeMove(move);\n\t\t\tif (!kingInCheck(pos, color)) {\n\t\t\t\tlegalMoves.add(move);\n\t\t\t}\t\t\t\n\t\t\tpos.undoMove();\n\t\t}\n\n\t\treturn legalMoves;\n\t}",
"public void printTiles() {\r\n for (int row=0; row<BOARD_MAX_WIDTH; row++) {\r\n for (int col=0; col<BOARD_MAX_WIDTH; col++) {\r\n System.out.print(tiles[row][col]);\r\n }\r\n System.out.println();\r\n }\r\n System.out.println();\r\n }",
"public ArrayList<Tile> getEmptyTiles(){\n\t\tArrayList<Tile> emptyTiles = new ArrayList<Tile>();\n\t\tArrayList<Tile> boardTiles = getAllBoardTiles();\n\t\tfor (Tile tile : boardTiles) {\n\t\t\tif(tile.getPiece()== null && tile.getColor1()== PrimaryColor.BLACK) {\n\t\t\t\temptyTiles.add(tile);\n\t\t\t}\n\t\t}\n\t\treturn emptyTiles;\n\t}",
"public ArrayList<Tile> getTiles(String letters) {\r\n ArrayList<Tile> tiles = new ArrayList<>();\r\n Tile tempTile;\r\n for (int i=0; i<letters.length(); i++) {\r\n tempTile = this.getTile(letters.charAt(i));\r\n\r\n /* if(tempTile.isBlank())\r\n tempTile.setBlankAs(letters.charAt(i));*/\r\n\r\n tiles.add(tempTile);\r\n\r\n }\r\n return tiles;\r\n }",
"private ArrayList<int[][]> possiblePuzzleMoves(int[][] currentPuzzle) {\n ArrayList<int [][]> possibleMoves = new ArrayList<>();\n //find zero\n int zeroRow = 0;\n int zeroCol = 0;\n for(int i = 0; i < currentPuzzle.length; i++) {\n for (int j = 0; j < currentPuzzle[i].length; j++) {\n if(currentPuzzle[i][j] == 0) {\n zeroRow = i;\n zeroCol = j;\n break;\n }\n }\n }\n\n //check if zero isn't in top row\n if(zeroRow > 0) {\n int [][]newPuzzleConfig = copy(currentPuzzle);\n int tileAbove = newPuzzleConfig[zeroRow - 1][zeroCol];\n newPuzzleConfig[zeroRow - 1][zeroCol] = 0;\n newPuzzleConfig[zeroRow][zeroCol] = tileAbove;\n possibleMoves.add(newPuzzleConfig);\n }\n\n //check if zero isn't in bottom row\n if(zeroRow < 2) {\n int [][]newPuzzleConfig = copy(currentPuzzle);\n int tileBelow = newPuzzleConfig[zeroRow + 1][zeroCol];\n newPuzzleConfig[zeroRow + 1][zeroCol] = 0;\n newPuzzleConfig[zeroRow][zeroCol] = tileBelow;\n possibleMoves.add(newPuzzleConfig);\n\n }\n\n //check if zero isn't in left col\n if(zeroCol > 0) {\n int [][]newPuzzleConfig = copy(currentPuzzle);\n int tileToLeft = newPuzzleConfig[zeroRow][zeroCol-1];\n newPuzzleConfig[zeroRow][zeroCol-1] = 0;\n newPuzzleConfig[zeroRow][zeroCol] = tileToLeft;\n possibleMoves.add(newPuzzleConfig);\n }\n\n //check if zero isn't in right col\n if(zeroCol < 2) {\n int [][]newPuzzleConfig = copy(currentPuzzle);\n int tileToRight = newPuzzleConfig[zeroRow][zeroCol+1];\n newPuzzleConfig[zeroRow][zeroCol+1] = 0;\n newPuzzleConfig[zeroRow][zeroCol] = tileToRight;\n possibleMoves.add(newPuzzleConfig);\n }\n return possibleMoves;\n }",
"public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}",
"protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }",
"ArrayList<ArrayList<GamePiece>> makeBoard() {\n ArrayList<ArrayList<GamePiece>> row = new ArrayList<ArrayList<GamePiece>>();\n for (int i = 0; i < this.width; i++) {\n ArrayList<GamePiece> column = new ArrayList<GamePiece>();\n for (int j = 0; j < this.height; j++) {\n GamePiece temp = new GamePiece(i, j);\n column.add(temp);\n nodes.add(temp);\n }\n row.add(column);\n }\n return row;\n }",
"public ArrayList<Move> getPossibleMoves() \n\t{\n\t\tArrayList<Move> possibleMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(int i = - 1; i <= 1; i += 2)\n\t\t{\n\t\t\tfor(int j = -1; j <= 1; j += 2)\n\t\t\t{\n\t\t\t\tLocation currentLoc = new Location(getLoc().getRow() + j, getLoc().getCol() + i);\n\t\t\t\t\n\t\t\t\tif(getBoard().isValid(currentLoc))\n\t\t\t\t{\n\t\t\t\t\tif(getBoard().getPiece(currentLoc) == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tArrayList<Node> move = new ArrayList<Node>();\n\t\t\t\t\t\tmove.add(getNode());\n\t\t\t\t\t\tmove.add(getBoard().getNode(currentLoc));\n\t\t\t\t\t\t\n\t\t\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(ArrayList<Node> move : getNextJumps(getLoc(), new ArrayList<Location>()))\n\t\t{\n\t\t\tif(move.size() > 1)\n\t\t\t{\n\t\t\t\tpossibleMoves.add(new CheckersMove(move, getBoard(), getLoyalty()));\n\t\t\t}\n\t\t}\n\t\t\n\t\tArrayList<Move> jumpMoves = new ArrayList<Move>();\n\t\t\n\t\tfor(Move possibleMove : possibleMoves)\n\t\t{\n\t\t\tif(!possibleMove.getJumped().isEmpty())\n\t\t\t{\n\t\t\t\tjumpMoves.add(possibleMove);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!jumpMoves.isEmpty())\n\t\t{\n\t\t\treturn jumpMoves;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn possibleMoves;\n\t\t}\n\t}",
"private Cell[] allPossibleMoves(Cell source) {\n\t\tCell[] moves = new Cell[2 * Board.BOARD_SIZE - 2]; // Вертикаль и горизонталь, которые бьет ладья\n\t\tint columnIndex = source.getColumn();\n\t\tint rowIndex = source.getRow();\n\t\tint k = 0;\n\t\tfor (int i = 0; i < Board.BOARD_SIZE; i++) {\n\t\t\tif (i != rowIndex) {\n\t\t\t\tmoves[k++] = new Cell(columnIndex, i);\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < Board.BOARD_SIZE; i++) {\n\t\t\tif (i != columnIndex) {\n\t\t\t\tmoves[k++] = new Cell(i, rowIndex);\n\t\t\t}\n\t\t}\n\t\treturn moves;\n\t}",
"public void createList () {\n imageLocs = new ArrayList <Location> ();\n for (int i = xC; i < xLength * getPixelSize() + xC; i+=getPixelSize()) {\n for (int j = yC; j < yLength * getPixelSize() + yC; j+=getPixelSize()) {\n Location loc = new Location (i, j, LocationType.POWERUP, true);\n\n imageLocs.add (loc);\n getGridCache().add(loc);\n \n }\n }\n }",
"public ArrayList<ArrayList<Tile>> getAllMovePaths(Board board) {\n ArrayList<ArrayList<Tile>> result = new ArrayList<>();\n for (int row = 0; row < board.getRows(); row++) {\n for (int col = 0; col < board.getColumns(); col++) {\n if(isValidMove(row,col)){\n result.add(getMovePath(board, row, col));\n }\n }\n }\n return result;\n }",
"public static ArrayList<Tile> doTiles(BufferedImage img, int tileSize) {\n \n allTiles = new ArrayList();\n int propX = tileSize;//img.getWidth() / nTiles;\n int propY = tileSize;//img.getHeight() / nTiles;\n int nTilesX = img.getWidth() / tileSize;\n int nTilesY = img.getHeight() / tileSize;\n \n WritableRaster wr = (WritableRaster) img.getData();\n //First 2 fors: maximum number of tiles watching the image width and height\n for (int i = 0; i < nTilesX; i++) {\n for (int j = 0; j < nTilesY; j++) {\n \t//Making sure we dont go out of bounds\n if (i * propX + propX <= img.getWidth()) {\n if (j * propY + propY <= img.getHeight()) {\n \t//Create the tile image\n WritableRaster tile = (WritableRaster)wr.createChild((i * propX), (j * propY), propX, propY, 0, 0, null);\n BufferedImage buffTile = new BufferedImage(img.getColorModel(), tile, \n img.getColorModel().isAlphaPremultiplied(), null);\n //Create our Tile object with the image and sizes \n Tile t = new Tile(buffTile, i*propX, j*propY);\n //Add the tile to the array of tiles of the image\n allTiles.add(t);\n }\n }\n }\n }\n return allTiles;\n }",
"private ArrayList<Move> generatePossibleMovesFor(Player player) {\n ArrayList<Point> selfStonePlacements = new ArrayList<>();\n ArrayList<Point> opponentStonePlacements = new ArrayList<>();\n for (int x = 0; x < field.length; x++)\n for (int y = 0; y < field[x].length; y++) {\n if (field[x][y] == null)\n continue;\n if (field[x][y] == this.color)\n selfStonePlacements.add(new FieldPoint(x, y));\n if (field[x][y] == opponent.getColor())\n opponentStonePlacements.add(new FieldPoint(x, y));\n }\n\n ArrayList<Move> possibleMoves = new ArrayList<>();\n\n // Check if player is in set phase or only has three stones left\n if (!player.isDoneSetting()) {\n // Every free field is a possible move\n for (Point point : pointsOfMovement) {\n if (opponentStonePlacements.contains(point) || selfStonePlacements.contains(point))\n continue;\n possibleMoves.add(new StoneMove(null, point));\n }\n } else if (player.isDoneSetting() && getCountOfStonesFor(player) > 3) {\n // Move is only possible if the neighbour field of a stone is free\n for (Point point : player == opponent ? opponentStonePlacements : selfStonePlacements) {\n for (Point neighbour : neighbourPoints.get(point)) {\n if (opponentStonePlacements.contains(neighbour) || selfStonePlacements.contains(neighbour))\n continue;\n possibleMoves.add(new StoneMove(point, neighbour));\n }\n }\n } else {\n for (Point point : player == opponent ? opponentStonePlacements : selfStonePlacements) {\n for (Point another : pointsOfMovement) {\n if (opponentStonePlacements.contains(point) || selfStonePlacements.contains(point))\n continue;\n possibleMoves.add(new StoneMove(point, another));\n }\n }\n }\n\n Collections.shuffle(possibleMoves);\n return possibleMoves;\n }",
"@Override\n public ArrayList<xMCTSStringGameState> getPossibleMoves(xMCTSStringGameState gameState)\n {\n\t ArrayList<xMCTSStringGameState> posMoves = new ArrayList<xMCTSStringGameState>();\n\t if (gameStatus(gameState) == xMCTSGame.status.ONGOING) {\n\t \t String activeCard = gameState.toString().substring(gameState.toString().length() - 2, gameState.toString().length());\n\t \t int gridSize = SIZE*2;\n\t for (int i = 0; i < gridSize; i += 2) {\n\t for (int j = 0; j < gridSize; j += 2) {\n\t int pos = i * SIZE + j;\n\t if (gameState.toString().charAt(pos) == '_') {\n\t String temp = gameState.toString().substring(0, pos)\n\t \t\t + activeCard\n\t + gameState.toString().substring(pos + 2,\n\t gameState.toString().length());\n\t posMoves.add(new xMCTSStringGameState(temp, 0.0, 0));\n\t }\n\t }\n\n\t }\n\t }\n\t else {\n\t \t // System.out.println(\"No moves can be made from this state\");\n\t \t// callsFromFullBoards++;\n\t \t// System.out.println(\"There have been \" + callsFromFullBoards + \"attempts to get possible moves from a full board\");\n\t }\n\t return posMoves;\n }",
"private void enableAllTiles() {\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int j = 0; j < 10; j++) {\n\t\t\t\tplayerBoard[j][i].setEnabled(true);\n\t\t\t\tplayerBoard[j][i].setName(j + \"\" + i + \"t\");\n\t\t\t\tplayerBoard[j][i].setForeground(Color.lightGray);\n\t\t\t\tplayerBoard[j][i].setBackground(Color.darkGray);\n\t\t\t}\n\t\t}\n\t}",
"public void fillTheBoard() {\n for (int i = MIN; i <= MAX; i++) {\n for (int j = MIN; j <= MAX; j++) {\n this.getCells()[i][j] = new Tile(i, j, false);\n }\n }\n }",
"private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}",
"public void pullPlayerTiles() {\r\n\t\tRandom r = new Random();\r\n\t\tfor (int i=0; i < 7; i++) {\r\n\t\t\tint random = r.nextInt(Launch.getBoneyard().size());\r\n\t\t\t//System.out.println(\"[debug] random = \"+random);\r\n\t\t\t//System.out.println(\"[debug] index\"+random+\" in BONEYARD = \"+Arrays.toString(Launch.BONEYARD.get(random).getDots()));\r\n\t\t\tif (Utils.isSet(Launch.getBoneyard(), random)) {\r\n\t\t\t\tPLAYER_DOMINOS.add(Launch.getBoneyard().get(random));\r\n\t\t\t\tLaunch.getBoneyard().remove(random);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public int[] getAllPossibleMoves(boolean ignore) {\n int[] validMoves;\n int[] validMovesResized;\n int validMovesIndex = 0;\n int startRow = this.getRow();\n int startCol = this.getCol();\n \n validMoves = new int[28]; // For a bishop, there are a maximum of 14 possible squares it could move to\n\n // First move from the bishops spot up diagonally to the right (ie col++, row++)\n for (int i = startCol+1, j = startRow+1; i<=8 && j<8; i++,j++) {\n validMoves[validMovesIndex] = i; // the col\n validMoves[validMovesIndex + 1] = j; // the row\n validMovesIndex = validMovesIndex + 2;\n }\n\n // Next move from the bishops start spot down diagonally to the right (ie col++, row--)\n for (int i = startCol+1, j = startRow-1; i<=8 && j>0; i++,j--) {\n validMoves[validMovesIndex] = i;\n validMoves[validMovesIndex + 1] = j;\n validMovesIndex = validMovesIndex + 2;\n }\n\n // Next move from the bishops start spot down diagonally to the left (ie col--, row--)\n for (int i = startCol-1, j = startRow-1; i>0 && j>0; i--,j--) {\n validMoves[validMovesIndex] = i;\n validMoves[validMovesIndex + 1] = j;\n validMovesIndex = validMovesIndex + 2;\n }\n // Next move from the bishops start spot up diagonally to the left (ie col--, row++)\n for (int i = startCol-1, j = startRow+1; i>0 && j<=8; i--,j++) {\n validMoves[validMovesIndex] = i;\n validMoves[validMovesIndex + 1] = j;\n validMovesIndex = validMovesIndex + 2;\n }\n \n // depending on the position of the bishop, the final array of possible moves may not have 14 squares\n // although that is the maximum. Create a new array of the actual size and copy into it.\n validMovesResized = Arrays.copyOf(validMoves, validMovesIndex);\n return validMovesResized;\n }",
"public void findValidMoveDirections(){\n\t\t\n\t\tif(currentTile == 2 && (tileRotation == 0 || tileRotation == 180)){ // in vertical I configuration\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: T E,W: F\");\n\t\t}\n\t\telse if(currentTile == 2 && (tileRotation == 90 || tileRotation == 270)){ // in horizontal I configuration\n\t\t\tcanMoveNorth = false; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: F E,W: T\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 3 && tileRotation == 0){ // L rotated 0 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,E: T S,W: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 90){ // L rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W: T S,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 180){ // L rotated 180 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W: T N,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 270){ // L rotated 270 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,E: T N,W: F\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 4 && tileRotation == 0){ // T rotated 0 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W,E: T N: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 90){ // T rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,E: T W: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 180){ // T rotated 180 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W,E: T S: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 270){ // T rotated 270 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W: T E: F\");\n\t\t}\n\t\telse if(currentTile == 5){ //in plus tile\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W,E: T\");\n\t\t}\n\t\t\n\t}",
"public Iterator<MahjongSolitaireTile> getMovingTiles()\n {\n return movingTiles.iterator();\n }",
"private ArrayList<Integer> generateUnitMoves(char myType, int mSpot) {\n //Keep track of character moves (cm)\n ArrayList<Integer> cm = new ArrayList<Integer>();\n int row = mSpot / Cols;\n int col = mSpot % Cols;\n\n //We only need to worry about overstepping the\n //range of colomns. Overstepping rows will\n //be pruned out in \"pruneIllegals\"\n if (myType == 'N') {\n //Get Knight moves\n if (col >= 1) {\n cm.add(new Integer(mSpot - Cols - Cols - 1));\n cm.add(new Integer(mSpot + Cols + Cols - 1));\n }\n if (col < Cols - 1) {\n cm.add(new Integer(mSpot - Cols - Cols + 1));\n cm.add(new Integer(mSpot + Cols + Cols + 1));\n }\n if (col >= 2) {\n cm.add(new Integer(mSpot - Cols - 2));\n cm.add(new Integer(mSpot + Cols - 2));\n }\n if (col < Cols - 1) {\n cm.add(new Integer(mSpot - Cols + 2));\n cm.add(new Integer(mSpot + Cols + 2));\n }\n } else if (myType == 'R') {\n //Rook Moves\n //Get moves along Rows\n for (int i = 0; i < Rows; i++) {\n if (i == row) { continue; }\n cm.add(new Integer((i * Cols) + col));\n }\n\n //Get moves along Cols\n for (int i = 0; i < Cols; i++) {\n if (i == col) { continue; }\n cm.add(new Integer((row * Cols) + i));\n }\n } else if (myType == 'B') {\n //Bishop Moves\n\n //Diagonal movement\n //East movements\n for(int i = 1; i < Cols - col; i++) {\n cm.add(new Integer(mSpot + (i*Cols) + i));\n cm.add(new Integer((mSpot - (i*Cols)) + i));\n }\n //West movements\n for(int i = 1; i <= col; i++) {\n cm.add(new Integer((mSpot + (i*Cols)) - i));\n cm.add(new Integer((mSpot - (i*Cols)) - i));\n }\n } else if (myType == 'P') {\n //Pawn Moves\n if (col >= 1) {\n cm.add(new Integer((mSpot - Cols) - 1));\n }\n if (col < Cols - 1) {\n cm.add(new Integer((mSpot - Cols) + 1));\n }\n } else if (myType == 'Q') {\n //Queen Moves\n\n //Get moves along Rows\n for (int i = 0; i < Rows; i++) {\n if (i == row) { continue; }\n cm.add(new Integer((i * Cols) + col));\n }\n\n //Get moves along Cols\n for (int i = 0; i < Cols; i++) {\n if (i == col) { continue; }\n cm.add(new Integer((row * Cols) + i));\n }\n\n //Diagonal movement\n //East movements\n for(int i = 1; i < Cols - col; i++) {\n cm.add(new Integer(mSpot + (i*Cols) + i));\n cm.add(new Integer((mSpot - (i*Cols)) + i));\n }\n //West movements\n for(int i = 1; i <= col; i++) {\n cm.add(new Integer((mSpot + (i*Cols)) - i));\n cm.add(new Integer((mSpot - (i*Cols)) - i));\n }\n } else if (myType == 'K') {\n //King Movement\n if (col >= 1) {\n cm.add(new Integer((mSpot - Cols) - 1));\n cm.add(new Integer(mSpot - 1));\n cm.add(new Integer((mSpot + Cols) - 1));\n }\n if (col < Cols - 1) {\n cm.add(new Integer((mSpot - Cols) + 1));\n cm.add(new Integer(mSpot + 1));\n cm.add(new Integer((mSpot + Cols) + 1));\n }\n cm.add(new Integer(mSpot - Cols));\n cm.add(new Integer(mSpot + Cols));\n }\n return cm;\n }",
"public abstract ArrayList<Move> possibleMoves(Board board);",
"public Iterable<Board> neighbors() {\n LinkedList<Board> states = new LinkedList<>();\n LinkedList<int[]> neighbors = neighborFinder();\n int[] curr_loc = blankFinder();\n\n for(int[] temp : neighbors){\n tiles[curr_loc[0]][curr_loc[1]] = tiles[temp[0]][temp[1]];\n tiles[temp[0]][temp[1]] = 0;\n states.add(new Board(deepCopy(tiles)));\n tiles[temp[0]][temp[1]] = tiles[curr_loc[0]][curr_loc[1]];\n tiles[curr_loc[0]][curr_loc[1]] = 0;\n\n }\n return states;\n }",
"private void getTiles() {\n for (int i=0; i<rows.size(); i++) {\n LinearLayout row = rows.get(i);\n int count = row.getChildCount();\n for (int j=0; j<count; j++) {\n LinearLayout tile = (LinearLayout) row.getChildAt(j);\n TextView textView = (TextView) tile.getChildAt(1);\n String text = (String) textView.getText();\n String id = \"tile\" + text.replaceAll(\"\\\\s+\",\"\");\n tiles.put(id, tile);\n }\n }\n }",
"public abstract Set<Tile> getNeighbors(Tile tile);",
"private List<Coordinate> getAvailableMoves(ImmutableGameBoard gameBoard) {\n List<Coordinate> availableMoves = new ArrayList<Coordinate>();\n\n for (int x = 0; x < gameBoard.getWidth(); x++) {\n for (int y = 0; y < gameBoard.getHeight(); y++) {\n if(gameBoard.getSquare(x, y) == TicTacToeGame.EMPTY)\n availableMoves.add(new Coordinate(x, y));\n }\n }\n\n return availableMoves;\n }",
"public void clearTiles() {\r\n\r\n for (int i = 0; i < 16; i += 1) {\r\n tiles[i] = 0;\r\n }\r\n boardView.invalidate();\r\n placedShips = 0;\r\n }",
"private void setAllAvailable() {\r\n for (int large = 0; large < 9; large++) {\r\n for (int small = 0; small < 9; small++) {\r\n Tile tile = mSmallTiles[large][small];\r\n if (tile.getOwner() == Tile.Owner.NEITHER)\r\n addAvailable(tile);\r\n }\r\n }\r\n }",
"public LinkedList<Move> getPossibleMoves() {\n\t\tAIPossibleMoves.clear();\n\t\tint xOrigin = 0, yOrigin = 0, xMove1 = 0, xMove2 = 0, yMove1 = 0, yMove2 = 0;\n\t\tMove move = null;\t\n\t\t\tint type = 0;\n\t\t\tfor(Checker checker: model.whitePieces) {\n\t\t\t\t\n\t\t\t\txOrigin = checker.getCurrentXPosition();\n\t\t\t\tyOrigin = checker.getCurrentYPosition();\n\t\t\t\txMove1 = (checker.getCurrentXPosition() - 1);\n\t\t\t\txMove2 = (checker.getCurrentXPosition() + 1);\n\t\t\t\tyMove1 = (checker.getCurrentYPosition() - 1);\n\t\t\t\tyMove2 = (checker.getCurrentYPosition() + 1);\n\t\t\t\ttype = checker.getType();\n\t\t\t\tswitch(type) {\n\t\t\t\tcase 2:\n\n\t\t\t\t\tif((xMove1 < 0) || (yMove1 <0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t\t//System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n \n\t\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t\t// System.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 4:\n\t\t\t\t\t//Moving up and left isMovingRight,IsMovingDown\n\t\t\t\t\tif((xMove1 <0) || (yMove1 < 0)) {\n\t\t\t\t\t\t//continue;\n\t\t\t\t\t} else {\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove1, false, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove1, false, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove1 < 0)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving up and right\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove1, true, false )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove1)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove1,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove1, true, false)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove1);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove1 < 0) || (yMove2 > 7)) {\n\t\t\t\t//\tcontinue;\n\t\t\t\t} else {\n\t\t\t\t\t//moving down and left isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove1, yMove2, false, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove1,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove1,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove1, yMove2, false, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove1, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((xMove2 > 7) || (yMove2 > 7)) {\n\t\t\t\t\t//continue;\n\t\t\t\t} else {\n\t\t\t\t\n\t\t\t\t\t//moving down and right isMovingRight,IsMovingDown\n\t\t\t\t\tif(isMoveValid(xOrigin,yOrigin, xMove2, yMove2, true, true )) {\n\t\t\t\t\t\tif(!isSpaceTaken(xMove2,yMove2)) {\n\t\t\t\t\t\t//\tSystem.out.println(\"Space is not Taken\");\n\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif(isPieceEnemy(xMove2,yMove2,checker,2)) {\n\t\t\t\t\t\t\t\tif(isJumpValid(xOrigin, yOrigin, xMove2, yMove2, true, true)) {\n\t\t\t\t\t\t\t\t\tmove = new Move(xOrigin, yOrigin, xMove2, yMove2);\n\t\t\t\t\t\t\t\t\tAIPossibleMoves.add(move);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tbreak;\t\n\t\t\t\t}\t\n\t\t\t\n\t\t\t}\n\n\t\t\treturn AIPossibleMoves;\n\t\t\t\n\t\t}",
"public ArrayList<ArrayList<Move>> getMoves(int color){//TODO\n \tArrayList<ArrayList<Move>> moves = new ArrayList<ArrayList<Move>>();\n \tboolean jumpsExist = false;\n \t//look for jumps\n \t//search the board for pieces of your color\n for (int i=0; i<8; i++){\n \tfor(int j=0; j<8; j++){\n \t\t//if the piece is the right color\n \t\tif ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){\n// \t\t\tSystem.out.println(\"found a piece you own\");\n \t\t\t//find all jumps of that piece\n \t\t\t//get jumps\n \t\t\tArrayList<ArrayList<Move>> jumps = getJumps(color, i, j);\n \t\t\t//if there are jumps return only the jumps\n \t\t\tif (jumps.isEmpty() == false){\n \t\t\t\tmoves.addAll(jumps);\n \t\t\t\tjumpsExist = true;\n \t\t\t}\n \t\t}\n \t}\n }\n if (jumpsExist == false){\n\t //look for diagonals\n\t \t//search the board for pieces of your color\n\t for (int i=0; i<8; i++){\n\t \tfor(int j=0; j<8; j++){\n\t \t\t//if the piece is the right color\n\t \t\tif ((gameState.getStateOfSquare(i, j) != 0)&&(gameState.getStateOfSquare(i, j)%2 == color)){\n//\t \t\t\tSystem.out.println(\"found a piece you own\");\n\t \t\t\t//get diagonals\n\t \t\t\t//try up right\n\t \t\t\tMove tryMove = new Move(i,j,i+1,j+1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try up left\n\t \t\t\ttryMove = new Move(i,j,i-1,j+1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try down right\n\t \t\t\ttryMove = new Move(i,j,i+1,j-1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t//try down left\n\t \t\t\ttryMove = new Move(i,j,i-1,j-1);\n\t \t\t\tif (attemptMove(tryMove, color)){// if this move is valid add it to moves\n\t \t\t\t\taddMove(tryMove, moves);\n\t \t\t\t}\n\t \t\t\t}\n\t \t\t}\n\t }\n\t }\n if (moves.isEmpty() == true){\n \tnoMoves = true;\n }\n \t\t\t//\n \treturn moves;\n }",
"public void addToNextMoves(GameTile[][] visibleMap) {\r\n\t\t\r\n\t\t//Breadth First Search Code\r\n//\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY, wumpusX, wumpusY);\r\n\r\n\t\tQueue<WumpusState> queue = new LinkedList<WumpusState>();\t\t\t\t//use the queue in the same way\t\r\n\t\tHashMap<String, Boolean> visitedStates = new HashMap<String, Boolean>();\t//add all children to the queue, \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//add all the children to the hash and set values to true.\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//once all the children have been visited, generate children sequentially for the children that already been added \r\n\t\tWumpusState state = new WumpusState(visibleMap, playerX, playerY);\r\n\t\tlong nodesExpanded = 0;\r\n\t\t\r\n\t\tqueue.add(state);\r\n\t\twhile(!queue.isEmpty()) {\r\n\t\t\tWumpusState currentState = queue.remove();\r\n\t\t\tSystem.out.println(currentState.toString());\r\n\t\t\tif(currentState.getPlayerX() == 4 && currentState.getPlayerY() == 1) {\r\n\t\t\t\tnodesExpanded = visitedStates.size();\r\n\t\t\t\tSystem.out.println(\"Nodes Expanded: \"+nodesExpanded);\r\n\t\t\t\tArrayList<AgentAction> actions = currentState.getAllActions();\r\n\t\t\t\tfor(int i=1;i<actions.size(); i++) {\r\n\t\t\t\t\tSystem.out.println(actions.get(i));\r\n\t\t\t\t\tnextMoves.add(actions.get(i));\r\n\t\t\t\t}\r\n\t\t\t\tnextMoves.add(AgentAction.declareVictory);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tif(visitedStates.containsKey(currentState.toString())) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tvisitedStates.put(currentState.toString(), true);\r\n\t\t\t\tWumpusState[] childrenOfCurrentChild = currentState.generateChildrenStates();\r\n\t\t\t\tfor(int j=0; j<childrenOfCurrentChild.length; j++) {\r\n\t\t\t\t\tif(childrenOfCurrentChild[j]!=null) {\r\n\t\t\t\t\t\tqueue.add(childrenOfCurrentChild[j]);\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}",
"public List<Tile> getNeighbors() {\n List<Tile> list = new ArrayList<Tile>();\n\n if (this.tileNorth != null) {\n list.add(this.tileNorth);\n }\n\n if (this.tileEast != null) {\n list.add(this.tileEast);\n }\n\n if (this.tileSouth != null) {\n list.add(this.tileSouth);\n }\n\n if (this.tileWest != null) {\n list.add(this.tileWest);\n }\n\n return list;\n }",
"public final Tile selectComputerMove() {\r\n Tile tile = null;\r\n int count = 0;\r\n String tileName = null;\r\n boolean continueLoop = true;\r\n \r\n // First try to find a winning move\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"0\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0; \r\n }\r\n \r\n // If none found, try to block \"X\"\r\n for (Rail rail : rails) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"X\")) count++;\r\n }\r\n if (count == 2) {\r\n for (Tile t : rail.getTiles()) {\r\n if (t.getText().equals(\"\")) {\r\n tileName = t.getName();\r\n return t;\r\n }\r\n }\r\n }\r\n count = 0;\r\n }\r\n \r\n // If no blocking move, try to play the center which gives \"O\"\r\n // a statistical advantage\r\n if (!tiles[R2C2].isSelected()) {\r\n return tiles[R2C2];\r\n }\r\n \r\n \r\n // If center move is not available, try to find an open corner tile, \r\n // which might set up an winning combination\r\n if (!tiles[R1C1].isSelected()) {\r\n return tiles[R1C1];\r\n } else if (!tiles[R3C3].isSelected()) {\r\n return tiles[R3C3];\r\n } else if (!tiles[R3C1].isSelected()) {\r\n return tiles[R3C1];\r\n } else if (!tiles[R1C3].isSelected()) {\r\n return tiles[R1C3];\r\n }\r\n \r\n // If none found just pick an empty tile at random\r\n if(tileName == null) {\r\n int row = rand.nextInt(3) + 1;\r\n int col = rand.nextInt(3) + 1;\r\n tileName = \"r\" + row + \"c\" + col;\r\n for (Tile btn: tiles) {\r\n if (btn.getName().equals(tileName)) {\r\n tile = btn;\r\n break;\r\n }\r\n }\r\n }\r\n \r\n return tile;\r\n }"
] | [
"0.75853664",
"0.72728044",
"0.7134463",
"0.68748045",
"0.6848434",
"0.68291104",
"0.68217766",
"0.6791472",
"0.6735211",
"0.667555",
"0.6660588",
"0.6647227",
"0.66133446",
"0.66022146",
"0.6599578",
"0.65736717",
"0.6545182",
"0.65394306",
"0.6535913",
"0.6529509",
"0.6502438",
"0.64670384",
"0.64653915",
"0.6423712",
"0.6411501",
"0.6404319",
"0.6377803",
"0.6368414",
"0.6346792",
"0.63445073",
"0.6326837",
"0.63188267",
"0.6318155",
"0.6300309",
"0.62779087",
"0.6271776",
"0.626466",
"0.62544215",
"0.6248143",
"0.6244353",
"0.62393695",
"0.623361",
"0.62321174",
"0.6217903",
"0.6205724",
"0.61941755",
"0.6189877",
"0.6186624",
"0.61666775",
"0.6162322",
"0.6161338",
"0.6157381",
"0.61394465",
"0.61245257",
"0.61187553",
"0.61161727",
"0.6102951",
"0.60989183",
"0.60800534",
"0.60775834",
"0.6061171",
"0.60436994",
"0.6038064",
"0.60333514",
"0.6026331",
"0.599107",
"0.59595",
"0.5958275",
"0.5953342",
"0.5950964",
"0.59477526",
"0.59467816",
"0.594272",
"0.5940047",
"0.59368944",
"0.5931951",
"0.5929328",
"0.592626",
"0.5924011",
"0.5917835",
"0.5917258",
"0.59161884",
"0.5912204",
"0.5907405",
"0.5905315",
"0.59021425",
"0.5895681",
"0.5888508",
"0.5880221",
"0.5879661",
"0.5874742",
"0.5872533",
"0.5863768",
"0.58617294",
"0.5849247",
"0.5847282",
"0.58389455",
"0.58382434",
"0.5832524",
"0.5828093"
] | 0.726712 | 2 |
Updates internal map representation as new tiles are discovered | public void updateMap(HashMap<Coordinate, MapTile> currentView) {
for (Coordinate key : currentView.keySet()) {
if (!map.containsKey(key)) {
MapTile value = currentView.get(key);
map.put(key, value);
if (value.getType() == MapTile.Type.TRAP) {
TrapTile value2 = (TrapTile) value; // downcast to find type
if (value2.getTrap().equals("parcel") && possibleTiles.contains(key)) {
parcelsFound++;
parcels.add(key);
if (parcelsFound == numParcels() && exitFound == true) {
phase = "search";
}
} else if (value2.getTrap().equals("lava")) {
lava.add(key);
} else if (value2.getTrap().equals("health")) {
health.add(key);
} else if (value2.getTrap().equals("water")) {
water.add(key);
}
} else if (value.getType() == MapTile.Type.FINISH) {
exitFound = true;
exit.add(key);
if (parcelsFound == numParcels() && exitFound == true) {
phase = "search";
}
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateMapGrid() {\n char[][] map = controller.getPopulatedMap();\n\t if (mapGrid == null) {\n mapGrid = new MapGrid(map.length, map[0].length, ICON_SIZE);\n }\n mapGrid.insertCharMap(map);\n }",
"private void updateMap() {\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tif (newMap[i][j] instanceof Player) {\n\t\t\t\t\tmap[i][j] = new Player(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof BlankSpace) {\n\t\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmap[i][j] = new Mho(i, j, board);\n\t\t\t\t} else if (newMap[i][j] instanceof Fence) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tprotected void generateMap() {\n\t\t//read map from tmx\n\t\tmap = null;\n\t\tfinal String tmx = \"res/tiles/map.tmx\";\n\t\ttry {\n\t\t\tTMXMapReader mapReader = new TMXMapReader();\n\t\t\tmap = mapReader.readMap(tmx);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tTileLayer layer = (TileLayer)map.getLayer(0);\n\n\t\ttiles = new PropertyTile[layer.getWidth()][layer.getHeight()];\n\t\tfor(int x=0; x<layer.getWidth(); x++) {\n\t\t\tfor(int y=0; y<layer.getHeight(); y++) {\n\t\t\t\tTile tile = layer.getTileAt(x, y);\n\t\t\t\tString type = (String)tile.getProperties().get(\"type\");\n\t\t\t\ttiles[x][y] = new PropertyTile(tile, TileType.valueOf(type.toUpperCase()));\n\t\t\t\ttiles[x][y].setImage(tile.getImage());\n\t\t\t}\n\t\t}\n\t\t\n\t\t//generate animated tiles from river tileset\n\t\tTileSet riverset = map.getTileSets().get(1);\n\t\tList<AnimatedTile> animatedTiles = new ArrayList<>();\n\t\tfor(int i=0; i<5; i++) {\n\t\t\tTile[] frames = new Tile[3];\n\t\t\tIterator<Tile> iterator = riverset.iterator();\n\t\t\twhile(iterator.hasNext()) {\n\t\t\t\tTile tile = iterator.next();\n\t\t\t\tint rtile = Integer.parseInt(tile.getProperties().getProperty(\"tile\"));\n\t\t\t\tint frame = Integer.parseInt(tile.getProperties().getProperty(\"frame\"));\n\t\t\t\tif(rtile == i+1) {\n\t\t\t\t\tframes[frame-1] = tile;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAnimatedTile aTile = new AnimatedTile(frames);\n\t\t\tanimatedTiles.add(aTile);\n\t\t}\n\n\t\t//replace tiles in map with animated tiles\n//\t\tfor(int x=0; x<layer.getWidth(); x++) {\n//\t\t\tfor(int y=0; y<layer.getHeight(); y++) {\n//\t\t\t\tTile tile = layer.getTileAt(x, y);\n//\t\t\t\tif(tile.getProperties().containsKey(\"animated\")) {\n//\t\t\t\t\tint rtile = Integer.parseInt(tile.getProperties().getProperty(\"tile\"));\n//\t\t\t\t\tlayer.setTileAt(x, y, animatedTiles.get(rtile-1));\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t}",
"private void processTilesetMap() {\r\n for (int t = 0; t < this.getTileSetCount(); t++) {\r\n TileSet tileSet = this.getTileSet(t);\r\n this.tilesetNameToIDMap.put(tileSet.name, t);\r\n }\r\n }",
"public void updateMap(TileMap tileMap){\n\t\tthis.tileMap = tileMap;\n\n\t}",
"void updateMap(MapData map);",
"private void refreshMapAndFrame()\n\t{\n\t\tMapAccess.refresh();\n\t\tFrameMap.refresh();\n\t}",
"private void updateAllTiles() {\r\n mEntireBoard.updateDrawableState();\r\n for (int large = 0; large < 9; large++) {\r\n mLargeTiles[large].updateDrawableState();\r\n for (int small = 0; small < 9; small++) {\r\n mSmallTiles[large][small].updateDrawableState();\r\n }\r\n }\r\n }",
"private void fillMap() {\n\t\tObject tile = new Object();\n\t\tfor(int x = 0; x < map.length; x++) {\n\t\t\tfor(int y = 0; y < map.length; y++) {\n\t\t\t\tmap[x][y] = tile;\n\t\t\t}\n\t\t}\n\t}",
"public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}",
"private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}",
"public TiledMap createMap() {\n map_inter = new MapTile[g_logic.MAP_WIDTH][g_logic.MAP_HEIGHT];\n \n //drawing stuff\n tiles = new Texture(Gdx.files.internal(\"packed/terrain.png\"));\n TextureRegion[][] splitTiles = TextureRegion.split(tiles, 54, 54);\n map = new TiledMap();\n MapLayers layers = map.getLayers();\n TiledMapTileLayer new_layer = new TiledMapTileLayer(g_logic.MAP_WIDTH, g_logic.MAP_HEIGHT, g_logic.ISO_WIDTH, g_logic.ISO_HEIGHT);\n \n //actual generation\n for (int x = 0; x < g_logic.MAP_WIDTH; x++) \n {\n for (int y = 0; y < g_logic.MAP_HEIGHT; y++) \n {\n char chara = '.';\n int ty = 0;\n int tx;\n if (x == 0 || x == g_logic.MAP_WIDTH-1)\n {\n tx = 1;\n chara = '#';\n }\n else\n {\n tx = 0; \n chara = '.';\n }\n \n //set up map tiles\n MapTile tile = new MapTile(x, y, tx, ty, chara);\n Gdx.app.log(\"Map gen\", \"Created a map tile @\" + x + \",\" + y + \" \" + tx + \" \" + ty + \" \" + chara);\n \n //put them in the internal map\n putInterMap(tile, x, y);\n \n //set up renderer cells\n TiledMapTileLayer.Cell cell = new TiledMapTileLayer.Cell();\n //y,x\n cell.setTile(new StaticTiledMapTile(splitTiles[tile.getTextureY()][tile.getTextureX()]));\n new_layer.setCell(x, y, cell);\n }\n }\n \n \n float y_off = g_logic.getYOffset();\n new_layer.setOffsetY(y_off);\n layers.add(new_layer);\n \n g_logic.setInterMap(map_inter);\n\n return map;\n }",
"void setMapChanged();",
"public void update() {\n\t\t//Start updting the image\n\t\timg.loadPixels();\n\t\t\n\t\t//for every cell apply a color\n\t\tGridCell[] cells = grid.getCells();\n\t\tfor(int i = 0 ; i < cells.length; i++) {\n\t\t\timg.pixels[i] = cells[i].getMiniMapColor(ignoreDiscovered);\n\t\t}\n\t\t\n\t\t//Now update the image\n\t\timg.updatePixels();\n\t}",
"@Override\n\tprotected void updateTiles() {\n\n\t\tfinal byte tileId = getPlanetType().mainTileId;\n\n\t\tfor (int i = 0; i < tiles.length; i++) {\n\t\t\t// if (random.NextDouble() > 0.95f)\n\t\t\t// tiles[i] = 0;\n\t\t\t// else\n\t\t\ttiles[i] = tileId;\n\t\t}\n\t}",
"public void drawMap() {\r\n\t\tfor (int x = 0; x < map.dimensionsx; x++) {\r\n\t\t\tfor (int y = 0; y < map.dimensionsy; y++) {\r\n\t\t\t\tRectangle rect = new Rectangle(x * scalingFactor, y * scalingFactor, scalingFactor, scalingFactor);\r\n\t\t\t\trect.setStroke(Color.BLACK);\r\n\t\t\t\tif (islandMap[x][y]) {\r\n\t\t\t\t\tImage isl = new Image(\"island.jpg\", 50, 50, true, true);\r\n\t\t\t\t\tislandIV = new ImageView(isl);\r\n\t\t\t\t\tislandIV.setX(x * scalingFactor);\r\n\t\t\t\t\tislandIV.setY(y * scalingFactor);\r\n\t\t\t\t\troot.getChildren().add(islandIV);\r\n\t\t\t\t} else {\r\n\t\t\t\t\trect.setFill(Color.PALETURQUOISE);\r\n\t\t\t\t\troot.getChildren().add(rect);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void repaintMap() {\r\n\t\tpolygonMap.repaint();\r\n\t}",
"public void saveMap(){\n dataBase.updateMap(level);\n }",
"@Override\n\tpublic void updateMemory(Map map) {\n\t\tif(!memory.used)\n\t\t\treset(map);\n\t\tspiral();\n\t}",
"@Override\n protected void generateTiles() {\n }",
"private void updateMap(final PlayerVision vision){\r\n\t\tint i, y, x;\n\t\t\n\t\t// add the current point to the map\n\t\taddToMap(east, north, vision.CurrentPoint);\n\t\t\n\t\t// add everything west to the map\n\t\tfor (i = 0; i < vision.mWest; i++){\n\t\t\tx = east - i - 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.West[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything east to the map\n\t\tfor (i = 0; i < vision.mEast; i++){\n\t\t\tx = east + i + 1;\r\n\t\t\t\n\t\t\taddToMap(x, north, vision.East[i]);\n\t\t}\r\n\t\t\r\n\t\t// add everything north to the map\n\t\tfor (i = 0; i < vision.mNorth; i++){\n\t\t\ty = north + i + 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.North[i]);\n\t\t}\r\n\t\t\n\t\t// add everything south to the map\n\t\tfor (i = 0; i < vision.mSouth; i++){\n\t\t\ty = north - i - 1;\r\n\t\t\t\n\t\t\taddToMap(east, y, vision.South[i]);\n\t\t}\r\n\t\t\n\t}",
"public void notifyMapLoaded();",
"public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }",
"public abstract void recycleMap(Object recycleTag, mapnik.Map m);",
"private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }",
"@Override\n public void notifyMapObservers() {\n for(MapObserver mapObserver : mapObservers){\n // needs all the renderInformation to calculate fogOfWar\n System.out.println(\"player map: \" +playerMap);\n mapObserver.update(this.playerNumber, playerMap.returnRenderInformation(), entities.returnUnitRenderInformation(), entities.returnStructureRenderInformation());\n entities.setMapObserver(mapObserver);\n }\n }",
"public void initMap() {\n\t\tmap = new Map();\n\t\tmap.clear();\n\t\tphase = new Phase();\n\t\tmap.setPhase(phase);\n\t\tmapView = new MapView();\n\t\tphaseView = new PhaseView();\n\t\tworldDomiView = new WorldDominationView();\n\t\tcardExchangeView = new CardExchangeView();\n\t\tphase.addObserver(phaseView);\n\t\tphase.addObserver(cardExchangeView);\n\t\tmap.addObserver(worldDomiView);\n\t\tmap.addObserver(mapView);\n\t}",
"@Override\n\tprotected void generateTiles() {\n\t}",
"public void update() {\n\t\tfor (Entry<String, Integer> entry : countMap.entrySet()) {\n\t\t\tcountMap.put(entry.getKey(), 0);\n\t\t}\n\t\tfor (int i = 0; i < numRows; i++) {\n\t\t\tfor (int j = 0; j < numCols; j++) {\n\t\t\t\tCell c = newGrid[i][j];\n\t\t\t\tc.setRow(i);\n\t\t\t\tc.setCol(j);\n\t\t\t\tblocks[i][j].setFill(c.getColor());\n\t\t\t\tcurrentGrid[i][j] = newGrid[i][j];\n\t\t\t}\n\t\t}\n\t\tempty(newGrid);\n\t}",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"public interface WorldMap {\n /**\n * This constant is used to define that a specific tile is empty.\n */\n int NO_TILE = 0;\n\n /**\n * The amount of tiles that are stored on the world map texture in height.\n */\n int WORLD_MAP_HEIGHT = 1024;\n\n /**\n * The amount of tiles that are stored on the world map texture in width.\n */\n int WORLD_MAP_WIDTH = 1024;\n\n /**\n * Get the origin location of the world map.\n *\n * @return the origin location\n */\n @Nonnull\n Location getMapOrigin();\n\n /**\n * Get the last reported location of the player.\n *\n * @return the player location\n */\n @Nonnull\n Location getPlayerLocation();\n\n /**\n * Get the texture of the world map.\n *\n * @return the world map texture\n */\n @Nonnull\n Texture getWorldMap();\n\n /**\n * Mark a tile as changed. The world map is supposed to update this tile at some later point.\n *\n * @param location the location of the tile that was changed\n */\n void setTileChanged(@Nonnull Location location);\n\n /**\n * Mark the entire map as changed. Once this is done the entire map needs to be updated.\n */\n void setMapChanged();\n\n /**\n * Set the location of the player on the map. This is used in some backend to prioritise the areas updated on the\n * world map.\n *\n * @param location the new location of the map\n */\n void setPlayerLocation(@Nonnull Location location);\n\n /**\n * Set the origin location of the world map. The map will expand starting from this point a specific amount of\n * tiles defined by {@link #WORLD_MAP_HEIGHT} and {@link #WORLD_MAP_WIDTH}.\n * <p/>\n * Changing the origin location automatically clears the map.\n *\n * @param location the new origin location of the map\n */\n void setMapOrigin(@Nonnull Location location);\n\n /**\n * This function causes all map data to be thrown away. The map turned empty.\n */\n void clear();\n\n /**\n * Render the changes to the world map. This does not render anything to the screen and it will not render\n * anything at all mostly. It will update the texture of the world map in case there are updates pending that\n * need to be applied.\n * <p/>\n * This function needs to be called during the render loop.\n *\n * @param container the container of the game\n */\n void render(@Nonnull GameContainer container);\n}",
"public static Tile[][] setUpMap() {\n\n Tile[][] tiles = new Tile[5][9];\n String[][] defaultMapLayout = GameMap.getMapLayout();\n\n for (int i = 0; i < 5; i++) {\n\n for (int j = 0; j < 9; j++) {\n\n String tileType = defaultMapLayout[i][j];\n\n if (tileType.equals(\"P\")) {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"R\")) {\n Tile newTileName = new River();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M1\")) {\n Tile newTileName = new Mountain1();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M2\")) {\n Tile newTileName = new Mountain2();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"M3\")) {\n Tile newTileName = new Mountain3();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"SM\")) {\n Tile newTileName = new SwampMonster();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"O\")) {\n Tile newTileName = new Ocean();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"G\")) {\n Tile newTileName = new Grass();\n tiles[i][j] = newTileName;\n\n } else if (tileType.equals(\"V\")) {\n Tile newTileName = new Volcano();\n tiles[i][j] = newTileName;\n\n }else {\n Tile newTileName = new Plain();\n tiles[i][j] = newTileName;\n newTileName.setOwner(null);\n }\n\n }\n }\n return tiles;\n }",
"public void loadMap() {\n\t\tchests.clear();\r\n\t\t// Load the chests for the map\r\n\t\tchestsLoaded = false;\r\n\t\t// Load data asynchronously\r\n\t\tg.p.getServer().getScheduler().runTaskAsynchronously(g.p, new AsyncLoad());\r\n\t}",
"private void updateMap(){\n mMap.clear();\n // this instruction clears the Map object from the other object, it's needed in orther to display\n //the right current geofences without having the previous ones still on screen\n\n mOptions.setOption(mOptions.getOption().center(circle.getCenter()));\n mOptions.setOption(mOptions.getOption().radius(circle.getRadius()));\n\n\n circle=mMap.addCircle(mOptions.getOption());//i need to add again the user circle object on screen\n\n //TODO have to implement settings\n //set markers based on the return objects of the geoquery\n for (int ix = 0; ix < LOCATIONS.length; ix++) {\n mMap.addMarker(new MarkerOptions()\n .title(LOCATIONS[ix].getExplaination())\n .snippet(\"TODO\")\n .position(LOCATIONS[ix].getPosition()));\n }\n }",
"public void buildMap(){\n map =mapFactory.createMap(level);\n RefLinks.SetMap(map);\n }",
"public void updateMap(boolean animate) {\n\t\tgetContentPane().add(mapContainer);\n\t\trevalidate();\n\t\t\n\t\t// Setting up map\n\t\tint width = mapContainer.getWidth();\n\t\tint height = mapContainer.getHeight();\n\t\tBufferedImage I = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB);\n\t\tGraphics2D g2d = I.createGraphics();\n\t\tg2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t\n\t\t// Setting up map dimensions\n\t\tdouble xM = width*zoom, yM = height*zoom;\n\t\tdouble xL = Math.abs(mapBounds[1]-mapBounds[3]), yL = Math.abs(mapBounds[0]-mapBounds[2]);\n\t\tdouble xI = (xM-(yM-60)*(xL/yL))/2, yI = 30;\n\t\tif(xM/yM < xL/yL) {\n\t\t\txI = 30;\n\t\t\tyI += (yM-(xM-60)*(yL/xL))/2;\n\t\t}\n\t\tdouble yP = yM*yF-yM/zoom/2, xP = xM*xF-xM/zoom/2;\n\t\t\n\t\tg2d.setColor(Color.white);\n\t\tg2d.fillRect(20, 20, width-40, height-40);\n\t\tg2d.setColor(roadColor);\n\t\tg2d.setStroke(new BasicStroke(roadWidth));\n\t\t\n\t\t// Drawing each road\n\t\tint i, n = G.getSize();\n\t\tdouble[] v1, v2;\n\t\tfor(i = 0; i < n; i++) {\n\t\t\tfor(Edge e : G.getEdges(i)) {\t\t\t\t\n\t\t\t\tv1 = V.get(i);\n\t\t\t\tv2 = V.get(e.next);\n\t\t\t\tif(animate)\n\t\t\t\t\tdrawRoad(xM, yM, xL, yL, xI, yI, xP, yP, v1[0], v1[1], v2[0], v2[1], 0, g2d);\n\t\t\t\telse {\n\t\t\t\t\tdrawRoad(xM, yM, xL, yL, xI, yI, xP, yP, v1[0], v1[1], v2[0], v2[1], (int)(v1[2]*v2[2]), g2d);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Drawing each path\n\t\tif(animate) {\n\t\t\tn = P.size()-1;\n\t\t\tfor(i = 0; i < n; i++) {\n\t\t\t\t\n\t\t\t\tv1 = V.get(P.get(i));\n\t\t\t\tv2 = V.get(P.get(i+1));\n\t\t\t\t\n\t\t\t\tdrawRoad(xM, yM, xL, yL, xI, yI, xP, yP, v1[0], v1[1], v2[0], v2[1], 1, g2d);\n\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(10);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmapContainer.setIcon(new ImageIcon(I));\n\t\t\t\trevalidate();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Creating image base\n\t\tg2d.setStroke(new BasicStroke(1));\n\t\tg2d.setColor(Color.lightGray);\n\t\tg2d.fillRect(0, 0, width, 20);\n\t\tg2d.fillRect(0, 0, 20, height);\n\t\tg2d.fillRect(width-20, 0, 20, height);\n\t\tg2d.fillRect(0, height-20, width, 20);\n\t\tg2d.setColor(Color.black);\n\t\tg2d.drawRect(20, 20, width-40, height-40);\n\t\tg2d.setFont(titleFont);\n\t\tg2d.drawString(title, 40, 15);\n\t\tint tw = g2d.getFontMetrics().stringWidth(title);\n\t\tg2d.setFont(subtitleFont);\n\t\tg2d.drawString(subtitle, 50+tw, 15);\n\t\t\n\t\t\n\t\tmapContainer.setIcon(new ImageIcon(I));\n\t\trevalidate();\n\t}",
"boolean updateLabels() {\n \t\tif (mNextLayer.ready)\n \t\t\treturn false;\n \n \t\t// get current tiles\n \t\tboolean changedTiles = mTileLayer.getVisibleTiles(mTileSet);\n \t\tboolean changedPos;\n \n \t\tif (mTileSet.cnt == 0) {\n \t\t\t//log.debug(\"no tiles \"+ mTileSet.getSerial());\n \t\t\treturn false;\n \t\t}\n \n \t\tMapPosition pos = mNextLayer.pos;\n \n \t\tsynchronized (mViewport) {\n \t\t\tchangedPos = mViewport.getMapPosition(pos);\n \t\t\t//mViewport.getMapViewProjection(coords);\n \t\t}\n \n \t\tif (!changedTiles && !changedPos) {\n \t\t\t//log.debug(\"not changed \" + changedTiles + \" \" + changedPos);\n \t\t\treturn false;\n \t\t}\n \n \t\tElementLayers dbg = null;\n \t\t//if (mMap.getDebugSettings().debugLabels)\n \t\t//\tdbg = new ElementLayers();\n \n \t\tint mw = (mMap.getWidth() + Tile.SIZE) / 2;\n \t\tint mh = (mMap.getHeight() + Tile.SIZE) / 2;\n \t\tmSquareRadius = mw * mw + mh * mh;\n \n \t\tMapTile[] tiles = mTileSet.tiles;\n \t\tint zoom = tiles[0].zoomLevel;\n \n \t\t// scale of tiles zoom-level relative to current position\n \t\tdouble scale = pos.scale / (1 << zoom);\n \n \t\tdouble angle = Math.toRadians(pos.angle);\n \t\tfloat cos = (float) Math.cos(angle);\n \t\tfloat sin = (float) Math.sin(angle);\n \n \t\tint maxx = Tile.SIZE << (zoom - 1);\n \n \t\t//if (dbg != null)\n \t\t//\tDebug.addDebugLayers(dbg);\n \n \t\tSymbolLayer sl = mNextLayer.symbolLayer;\n \t\tsl.clearItems();\n \n \t\tmRelabelCnt++;\n \n \t\tdouble tileX = (pos.x * (Tile.SIZE << zoom));\n \t\tdouble tileY = (pos.y * (Tile.SIZE << zoom));\n \n \t\tLabel prevLabels = mLabels;\n \t\tmLabels = null;\n \n \t\tfor (Label l = prevLabels; l != null;) {\n \t\t\tif (l.text.caption) {\n \t\t\t\tl = mPool.releaseAndGetNext(l);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tint diff = l.tile.zoomLevel - zoom;\n \t\t\tif (diff > 1 || diff < -1) {\n \t\t\t\tl = mPool.releaseAndGetNext(l);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tfloat div = FastMath.pow(diff);\n \t\t\tfloat sscale = (float) (pos.scale / (1 << l.tile.zoomLevel));\n \n \t\t\tif (l.width > l.length * sscale) {\n \t\t\t\tl = mPool.releaseAndGetNext(l);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tfloat dx = (float) (l.tile.tileX * Tile.SIZE - tileX * div);\n \t\t\tfloat dy = (float) (l.tile.tileY * Tile.SIZE - tileY * div);\n \n \t\t\tdx = flipLongitude(dx, maxx);\n \n \t\t\tl.move(l.item, dx, dy, sscale);\n \n \t\t\t// set line endpoints relative to view to be able to\n \t\t\t// check intersections with label from other tiles\n \t\t\tfloat w = (l.item.x2 - l.item.x1) / 2f;\n \t\t\tfloat h = (l.item.y2 - l.item.y1) / 2f;\n \t\t\tl.x1 = l.x - w;\n \t\t\tl.y1 = l.y - h;\n \t\t\tl.x2 = l.x + w;\n \t\t\tl.y2 = l.y + h;\n \n \t\t\tif (!wayIsVisible(l)) {\n \t\t\t\tl = mPool.releaseAndGetNext(l);\n \t\t\t\tcontinue;\n \t\t\t}\n \n \t\t\tl.bbox.set(l.x, l.y, l.x1, l.y1,\n \t\t\t l.width + MIN_WAY_DIST,\n \t\t\t l.text.fontHeight + MIN_WAY_DIST);\n \n \t\t\tbyte overlaps = checkOverlap(l);\n \n \t\t\tif (dbg != null)\n \t\t\t\tDebug.addDebugBox(dbg, l, l.item, overlaps, true, sscale);\n \n \t\t\tif (overlaps == 0) {\n \t\t\t\tLabel ll = l;\n \t\t\t\tl = (Label) l.next;\n \n \t\t\t\tll.next = null;\n \t\t\t\taddLabel(ll);\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\tl = mPool.releaseAndGetNext(l);\n \t\t}\n \n \t\tLabel l = null;\n \n \t\t/* add way labels */\n \t\tfor (int i = 0, n = mTileSet.cnt; i < n; i++) {\n \t\t\tMapTile t = tiles[i];\n \t\t\tif (!t.state(MapTile.STATE_READY))\n \t\t\t\tcontinue;\n \n \t\t\tfloat dx = (float) (t.tileX * Tile.SIZE - tileX);\n \t\t\tfloat dy = (float) (t.tileY * Tile.SIZE - tileY);\n \t\t\tdx = flipLongitude(dx, maxx);\n \n \t\t\tfor (TextItem ti = t.labels; ti != null; ti = ti.next) {\n \n \t\t\t\tif (ti.text.caption)\n \t\t\t\t\tcontinue;\n \n \t\t\t\t// acquire a TextItem to add to TextLayer\n \t\t\t\tif (l == null)\n \t\t\t\t\tl = getLabel();\n \n \t\t\t\t// check if path at current scale is long enough for text\n \t\t\t\tif (dbg == null && ti.width > ti.length * scale)\n \t\t\t\t\tcontinue;\n \n \t\t\t\tl.clone(ti);\n \t\t\t\tl.move(ti, dx, dy, (float) scale);\n \n \t\t\t\t// set line endpoints relative to view to be able to\n \t\t\t\t// check intersections with label from other tiles\n \t\t\t\tfloat w = (ti.x2 - ti.x1) / 2f;\n \t\t\t\tfloat h = (ti.y2 - ti.y1) / 2f;\n \t\t\t\tl.bbox = null;\n \t\t\t\tl.x1 = l.x - w;\n \t\t\t\tl.y1 = l.y - h;\n \t\t\t\tl.x2 = l.x + w;\n \t\t\t\tl.y2 = l.y + h;\n \n \t\t\t\tif (!wayIsVisible(l))\n \t\t\t\t\tcontinue;\n \n \t\t\t\tbyte overlaps = -1;\n \n \t\t\t\tif (l.bbox == null)\n \t\t\t\t\tl.bbox = new OBB2D(l.x, l.y, l.x1, l.y1,\n \t\t\t\t\t l.width + MIN_WAY_DIST,\n \t\t\t\t\t l.text.fontHeight + MIN_WAY_DIST);\n \t\t\t\telse\n \t\t\t\t\tl.bbox.set(l.x, l.y, l.x1, l.y1,\n \t\t\t\t\t l.width + MIN_WAY_DIST,\n \t\t\t\t\t l.text.fontHeight + MIN_WAY_DIST);\n \n \t\t\t\tif (dbg == null || ti.width < ti.length * scale)\n \t\t\t\t\toverlaps = checkOverlap(l);\n \n \t\t\t\tif (dbg != null)\n \t\t\t\t\tDebug.addDebugBox(dbg, l, ti, overlaps, false, (float) scale);\n \n \t\t\t\tif (overlaps == 0) {\n \t\t\t\t\taddLabel(l);\n \t\t\t\t\tl.item = TextItem.copy(ti);\n \t\t\t\t\tl.tile = t;\n \t\t\t\t\tl.active = mRelabelCnt;\n \t\t\t\t\tl = null;\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \n \t\t/* add caption */\n \t\tfor (int i = 0, n = mTileSet.cnt; i < n; i++) {\n \t\t\tMapTile t = tiles[i];\n \t\t\tif (!t.state(MapTile.STATE_READY))\n \t\t\t\tcontinue;\n \n \t\t\tfloat dx = (float) (t.tileX * Tile.SIZE - tileX);\n \t\t\tfloat dy = (float) (t.tileY * Tile.SIZE - tileY);\n \t\t\tdx = flipLongitude(dx, maxx);\n \n \t\t\tO: for (TextItem ti = t.labels; ti != null; ti = ti.next) {\n \t\t\t\tif (!ti.text.caption)\n \t\t\t\t\tcontinue;\n \n \t\t\t\t// acquire a TextItem to add to TextLayer\n \t\t\t\tif (l == null)\n \t\t\t\t\tl = getLabel();\n \n \t\t\t\tl.clone(ti);\n \t\t\t\tl.move(ti, dx, dy, (float) scale);\n \t\t\t\tif (!nodeIsVisible(l))\n \t\t\t\t\tcontinue;\n \n \t\t\t\t//l.setAxisAlignedBBox();\n \n \t\t\t\tif (l.bbox == null)\n \t\t\t\t\tl.bbox = new OBB2D();\n \n \t\t\t\tl.bbox.setNormalized(l.x, l.y, cos, -sin,\n \t\t\t\t l.width + MIN_CAPTION_DIST,\n \t\t\t\t l.text.fontHeight + MIN_CAPTION_DIST,\n \t\t\t\t l.text.dy);\n \n \t\t\t\tfor (Label lp = mLabels; lp != null;) {\n \t\t\t\t\tif (l.bbox.overlaps(lp.bbox)) {\n \t\t\t\t\t\tif (l.text.priority < lp.text.priority) {\n \t\t\t\t\t\t\tlp = removeLabel(lp);\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\t\t\tcontinue O;\n \t\t\t\t\t}\n \t\t\t\t\tlp = (Label) lp.next;\n \t\t\t\t}\n \n \t\t\t\taddLabel(l);\n \t\t\t\tl.item = TextItem.copy(ti);\n \t\t\t\tl.tile = t;\n \t\t\t\tl.active = mRelabelCnt;\n \t\t\t\tl = null;\n \t\t\t}\n \t\t}\n \n \t\tfor (Label ti = mLabels; ti != null; ti = (Label) ti.next) {\n \t\t\tif (ti.text.caption) {\n \t\t\t\tif (ti.text.texture != null) {\n \t\t\t\t\tSymbolItem s = SymbolItem.pool.get();\n \t\t\t\t\ts.texRegion = ti.text.texture;\n \t\t\t\t\ts.x = ti.x;\n \t\t\t\t\ts.y = ti.y;\n \t\t\t\t\ts.billboard = true;\n \t\t\t\t\tsl.addSymbol(s);\n \t\t\t\t}\n \t\t\t\tcontinue;\n \t\t\t}\n \t\t\t// flip label upside-down\n \t\t\tif (cos * (ti.x2 - ti.x1) - sin * (ti.y2 - ti.y1) < 0) {\n \t\t\t\tfloat tmp = ti.x1;\n \t\t\t\tti.x1 = ti.x2;\n \t\t\t\tti.x2 = tmp;\n \n \t\t\t\ttmp = ti.y1;\n \t\t\t\tti.y1 = ti.y2;\n \t\t\t\tti.y2 = tmp;\n \t\t\t}\n \t\t}\n \n \t\tfor (int i = 0, n = mTileSet.cnt; i < n; i++) {\n \t\t\tMapTile t = tiles[i];\n \t\t\tif (!t.state(MapTile.STATE_READY))\n \t\t\t\tcontinue;\n \n \t\t\tfloat dx = (float) (t.tileX * Tile.SIZE - tileX);\n \t\t\tfloat dy = (float) (t.tileY * Tile.SIZE - tileY);\n \t\t\tdx = flipLongitude(dx, maxx);\n \n \t\t\tfor (SymbolItem ti = t.symbols; ti != null; ti = ti.next) {\n \t\t\t\tif (ti.texRegion == null)\n \t\t\t\t\tcontinue;\n \n \t\t\t\tSymbolItem s = SymbolItem.pool.get();\n \n \t\t\t\ts.texRegion = ti.texRegion;\n \t\t\t\ts.x = (float) ((dx + ti.x) * scale);\n \t\t\t\ts.y = (float) ((dy + ti.y) * scale);\n \t\t\t\ts.billboard = true;\n \n \t\t\t\tsl.addSymbol(s);\n \t\t\t}\n \t\t}\n \n \t\t// temporary used Label\n \t\tl = (Label) mPool.release(l);\n \n \t\tTextLayer tl = mNextLayer.textLayer;\n \n \t\ttl.labels = mLabels;\n \t\t// draw text to bitmaps and create vertices\n \t\ttl.prepare();\n \t\ttl.labels = null;\n \n \t\t// remove tile locks\n \t\tmTileLayer.releaseTiles(mTileSet);\n \n \t\tmDebugLayer = dbg;\n \t\tmNextLayer.ready = true;\n \n \t\treturn true;\n \t}",
"public void printMap()\n {\n this.mapFrame.paint();\n this.miniMapFrame.paint();\n }",
"@Override\r\n\tpublic void saveMap() {\n\r\n\t}",
"public void rebuild()\n {\n this.tilePropertyPanel.table.clearChildren();\n this.spritePropertyPanel.table.clearChildren();\n this.mapPropertyPanel.removeablePropertyPanel.table.clearChildren();\n if(map.selectedLayer != null)\n {\n this.layerPropertyPanel.setVisible(true);\n this.layerPropertyPanel.layerWidthProperty.value.setText(Integer.toString(map.selectedLayer.width));\n this.layerPropertyPanel.layerHeightProperty.value.setText(Integer.toString(map.selectedLayer.height));\n this.layerPropertyPanel.layerZProperty.value.setText(Float.toString(map.selectedLayer.z));\n }\n else\n this.layerPropertyPanel.setVisible(false);\n if(map.tileMenu.selectedTiles.size == 1)\n {\n if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.TILE)\n {\n Array<PropertyField> tileProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < tileProperties.size; i++)\n this.tilePropertyPanel.table.add(tileProperties.get(i)).padBottom(1).row();\n this.tilePropertyPanel.setVisible(true);\n }\n else if(map.tileMenu.selectedTiles.first().tool == TileMenuTools.SPRITE)\n {\n Array<PropertyField> spriteProperties = map.tileMenu.selectedTiles.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n }\n if(map.selectedSprites.size > 0)\n {\n Array<PropertyField> spriteProperties = map.selectedSprites.first().lockedProperties;\n for (int i = 0; i < spriteProperties.size; i++)\n this.spritePropertyPanel.table.add(spriteProperties.get(i)).padBottom(1).row();\n this.spritePropertyPanel.setVisible(true);\n }\n if(map.selectedSprites.size == 0 && map.tileMenu.selectedTiles.size == 0)\n {\n for(int i = 0; i < mapPropertyPanel.properties.size; i ++)\n {\n this.mapPropertyPanel.removeablePropertyPanel.table.add(mapPropertyPanel.properties.get(i)).padBottom(1).row();\n }\n this.mapPropertyPanel.removeablePropertyPanel.setVisible(true);\n }\n if(this.layerPropertyPanel.isVisible())\n this.layerPropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.layerPropertyPanel.setSize(getWidth(), 0);\n if(this.tilePropertyPanel.isVisible())\n this.tilePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.tilePropertyPanel.setSize(getWidth(), 0);\n if(this.spritePropertyPanel.isVisible())\n this.spritePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.spritePropertyPanel.setSize(getWidth(), 0);\n if(this.mapPropertyPanel.removeablePropertyPanel.isVisible())\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), toolHeight);\n else\n this.mapPropertyPanel.removeablePropertyPanel.setSize(getWidth(), 0);\n\n this.propertyPanel.rebuild();\n this.propertyTable.invalidateHierarchy();\n\n setSize(getWidth(), getHeight()); // refits everything\n }",
"public void updateFromDeserialization() {\n\t\tif (inSerializedState) {\n\t\t\tframes = new KeyFrames();\n\t\t\tfor(Integer key : pixelsMap.keySet()) {\n\t\t\t\tint[][] pixels = pixelsMap.get(key);\n\t\t\t\tDrawFrame image = new DrawFrame(serializedWidth, serializedHeight);\n\t\t\t\tfor(int r = 0; r < serializedHeight; r++) {\n\t\t\t\t\tfor (int c = 0; c < serializedWidth; c++) {\n\t\t\t\t\t\timage.setRGB(c, r, pixels[r][c]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*\n\t\t WritableRaster raster = (WritableRaster) image.getData();\n\t\t raster.setPixels(0,0, serializedWidth, serializedHeight, pixels);\n\t\t image.setData(raster);\n\t\t */\n\t\t\t\tframes.put(key, image);\n\t\t\t}\n\t\t\tinitializeTransientUIComponents();\n\t\t\tinSerializedState = false;\t\n\t\t}\n\t}",
"private void tileViewUpdate(TileView tv) {\n\n\t\tswapTileWithBlank(tv);\n\n\t\t// int i = 0;\n\t\t// for (Tile tile : tiles) {\n\t\t// Log.v(\"log_tag\", \"current location= \" + (i++) + \" \"\n\t\t// + tile.getCurrentLocation());\n\t\t// }\n\n\t}",
"@Override\r\n public final void update() {\r\n\r\n logger.entering(this.getClass().getName(), \"update\");\r\n\r\n setFilterMap();\r\n\r\n logger.exiting(this.getClass().getName(), \"update\");\r\n\r\n }",
"public void updateOpenTiles(){\r\n\t\tthis.openTiles = getOpenTiles() - 1;\r\n\t}",
"public int[] updateMap() {\r\n\t\tint[] isObstacle = super.updateMap();\r\n\t\tsmap.setMap(map);\r\n\t\treturn isObstacle;\r\n\t}",
"protected abstract void updateInfos();",
"@Override\n public void reloadWorkspace() {\n\tDataManager data = (DataManager)app.getDataComponent();\n mapName.setText(data.getMapName());\n bgColorPicker.setValue(Color.web(data.getBackgroundColor()));\n borderColorPicker.setValue(Color.web(data.getBorderColor()));\n //map.setMinSize(data.getMapWidth(), data.getMapHeight());\n //map.setMaxSize(data.getMapWidth(), data.getMapHeight());\n map.setBackground(new Background(new BackgroundFill(Color.web(data.getBackgroundColor()), null, null)));\n \n //map.setBorder(new Border(new BorderStroke(Color.web(data.getBorderColor()), BorderStrokeStyle.SOLID, null, new BorderWidths(data.getBorderWidth()))));\n mapZoomingSlider.setValue(data.getX());\n borderThicknessSlider.setValue(data.getBorderWidth());\n \n for (int p = 0; p<data.getPolygon().size();p++){\n Polygon changePolygon = new Polygon();\n changePolygon = (Polygon) data.getPolygon().get(p);\n changePolygon.setStrokeWidth(data.getBorderWidth());\n changePolygon.setStroke(Color.web(data.getBorderColor()));\n changePolygon.setFill(Color.rgb(data.getSubRegion().get(p).getRed(), data.getSubRegion().get(p).getGreen(), data.getSubRegion().get(p).getBlue()));\n }\n \n imagePane.getChildren().clear();\n for(int i=0;i<data.getImageDetail().size();i++){\n newImage = new Image(\"file:\"+data.getImageDetail().get(i).getPath());\n ImageView iv1 = new ImageView();\n iv1.setImage(newImage);\n iv1.setTranslateX(data.getImageDetail().get(i).getX());\n iv1.setTranslateY(data.getImageDetail().get(i).getY());\n imagePane.getChildren().add(iv1);\n }\n \n group.getChildren().clear();\n for (int k = 0; k<data.getSubRegion().size();k++){\n Polygon polygon = (Polygon) data.getPolygon().get(k);\n group.getChildren().add(polygon);\n }\n subRegionTable.setItems(data.getSubRegion());\n //group.resize(802, 536);\n group.setScaleX(data.getMapZoom());\n group.setScaleY(data.getMapZoom());\n }",
"public void update(GameState gameState) {\n for (int i = 0;i < map.length; i++) {\n for (int j = 0;j < map[0].length;j++) {\n if (map[i][j] == TileType.WATER) {\n continue;\n }\n\n if (map[i][j] == TileType.MY_ANT) {\n map[i][j] = TileType.LAND;\n }\n\n if (gameState.getMap()[i][j] != TileType.UNKNOWN) {\n this.map[i][j] = gameState.getMap()[i][j];\n }\n }\n }\n\n this.myAnts = gameState.getMyAnts();\n this.enemyAnts = gameState.getEnemyAnts();\n this.myHills = gameState.getMyHills();\n this.seenEnemyHills.addAll(gameState.getEnemyHills());\n\n // remove eaten food\n MapUtils mapUtils = new MapUtils(gameSetup);\n Set<Tile> filteredFood = new HashSet<Tile>();\n filteredFood.addAll(seenFood);\n for (Tile foodTile : seenFood) {\n if (mapUtils.isVisible(foodTile, gameState.getMyAnts(), gameSetup.getViewRadius2())\n && getTileType(foodTile) != TileType.FOOD) {\n filteredFood.remove(foodTile);\n }\n }\n\n // add new foods\n filteredFood.addAll(gameState.getFoodTiles());\n this.seenFood = filteredFood;\n\n // explore unseen areas\n Set<Tile> copy = new HashSet<Tile>();\n copy.addAll(unseenTiles);\n for (Tile tile : copy) {\n if (isVisible(tile)) {\n unseenTiles.remove(tile);\n }\n }\n\n // remove fallen defenders\n Set<Tile> defenders = new HashSet<Tile>();\n for (Tile defender : motherlandDefenders) {\n if (myAnts.contains(defender)) {\n defenders.add(defender);\n }\n }\n this.motherlandDefenders = defenders;\n\n // prevent stepping on own hill\n reservedTiles.clear();\n reservedTiles.addAll(gameState.getMyHills());\n\n targetTiles.clear();\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\n public void reloadCachedMappings() {\n }",
"@Override\r\n\tpublic void exportMap() {\n\r\n\t}",
"protected void createMaps() {\n\t\tBlueSchellingCell bCell = new BlueSchellingCell();\n\t\tOrangeSchellingCell oCell = new OrangeSchellingCell();\n\t\tEmptyCell eCell = new EmptyCell();\n\t\tTreeCell tCell = new TreeCell();\n\t\tBurningTreeCell bTCell = new BurningTreeCell();\n\t\tEmptyLandCell eLCell = new EmptyLandCell();\n\n\t\tLiveCell lCell = new LiveCell();\n\t\tDeadCell dCell = new DeadCell();\n\t\tGreenRPSCell gcell = new GreenRPSCell();\n\t\tRedRPSCell rcell = new RedRPSCell();\n\t\tBlueRPSCell blcell = new BlueRPSCell();\n\t\tWhiteRPSCell wcell = new WhiteRPSCell();\n\n\t\tFishCell fCell = new FishCell();\n\t\tSharkCell sCell = new SharkCell();\n\n\t\tAntGroupCell aCell = new AntGroupCell();\n\n\t\tsegregation.put('b', bCell);\n\t\tsegregation.put('o', oCell);\n\t\tsegregation.put('e', eCell);\n\n\t\tgameOfLife.put('l', lCell);\n\t\tgameOfLife.put('d', dCell);\n\n\t\trps.put('g', gcell);\n\t\trps.put('r', rcell);\n\t\trps.put('b', blcell);\n\t\trps.put('w', wcell);\n\n\t\tspreadingWildfire.put('t', tCell);\n\t\tspreadingWildfire.put('b', bTCell);\n\t\tspreadingWildfire.put('e', eLCell);\n\n\t\twaTor.put('f', fCell);\n\t\twaTor.put('s', sCell);\n\t\twaTor.put('e', eCell);\n\n\t\tforagingAnts.put('a', aCell);\n\t\tforagingAnts.put('e', eCell);\n\t\tinitExportMap();\n\n\t\tinitCountMap();\n\t}",
"public void setMap()\n {\n gameManager.setMap( savedFilesFrame.getCurrent_index() );\n }",
"public void updateMarkers(){\n markerMap = new HashMap<>();\n googleMap.clear();\n for (Station station : main.getStations()) {\n float fillLevel = station.getFillLevel();\n float colour = fillLevel * 120;\n Marker marker = googleMap.addMarker(new MarkerOptions().position(station.getLocation()).title(station.getName()).snippet(Integer.toString(station.getOccupancy())).icon(BitmapDescriptorFactory.defaultMarker(colour)));\n marker.setTag(station.getId());\n markerMap.put(station.getId(), marker);\n }\n }",
"public void update() {\n\t\tgetLocation().offsetX(getDirection().getXOffset());\n\t\tgetLocation().offsetY(getDirection().getYOffset());\n\t\t\n\t\tChunk center = World.getMap().getCenterChunk();\n\t\t\n\t\tint localX = (int) (getLocation().getX() - center.getData().getRealX());\n\t\tint localY = (int) (getLocation().getY() - center.getData().getRealY());\n\t\t\n\t\tif(localX < 0 ||localY< 0\n\t\t\t|| localX > 256 || localY > 256) {\n\t\t\t\tWorld.getMap().load(getLocation());\n\t\t}\n\t}",
"public void fillTable() {\n\t\tif (scroll.getWidth() == 0) {\n\t\t\treturn;\n\t\t}\n\t\tboolean showedNew = false;\n\t\tArrayList<Placeable> currentView = new ArrayList<Placeable>();\n\t\tif (viewing == ViewingMode.MATERIAL) {\n\t\t\tif (loadedMats == null)\n\t\t\t\tloadedMats = repo.getAllMats();\n\t\t\tfor (NamedMaterial m: loadedMats) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t}\n\t\telse if (viewing == ViewingMode.PIECE){\n\t\t\tif (loadedPieces == null)\n\t\t\t\tloadedPieces = repo.getAllPieces();\n\t\t\tfor (Piece m: loadedPieces) {\n\t\t\t\tcurrentView.add(m);\n\t\t\t}\n\t\t\tshowedNew = true;\n\t\t}\n\t\t\n\t\ttiles.clearChildren();\n\t\tfloat cellWidth = 64.0f;\n\t\tint numAcross = (int)(scroll.getWidth() / cellWidth);\n\t\tif (numAcross <= 0) {\n\t\t\tnumAcross = 1;\n\t\t}\n\t\tint count = 0;\n\t\tActor tile;\n\t\twhile (count < currentView.size()) {\n\t\t\tfor (int y = 0; y < numAcross; y++) {\n\t\t\t\tif (!showedNew) {\n\t\t\t\t\ttile = new Label(\"New\", TextureOrganizer.getSkin());\n\t\t\t\t\t((Label)tile).setAlignment(Align.center);\n\t\t\t\t\ttile.addListener(new ClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t public void clicked(InputEvent event, float x, float y) {\n\t\t\t\t\t\t\tmakeNew();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tshowedNew = true;\n\t\t\t\t}\n\t\t\t\telse if (count >= currentView.size()) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttile = new ColoredRectActor(currentView.get(count++));\n\t\t\t\t\ttile.addListener(new TileListener((ColoredRectActor)tile));\n\t\t\t\t}\n\t\t\t\ttiles.add(tile).width(cellWidth).height(cellWidth).fill();\n\t\t\t}\n\t\t\tif (count < currentView.size())\n\t\t\t\ttiles.row();\n\t\t}\n\t}",
"public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}",
"public abstract void updateLocations();",
"private void loadAreas() {\r\n\t\tareas = map.getAreas();\r\n\t\tfor (Area area : areas) {\r\n\t\t\tfor (AreaOrMonster monster : area.getChildren()) {\r\n\t\t\t\tmonster.getImageView().setX(monster.getX() * scalingFactor);\r\n\t\t\t\tmonster.getImageView().setY(monster.getY() * scalingFactor);\r\n\t\t\t\troot.getChildren().add(monster.getImageView());\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"private void buildMapArea(MapBuilderBase mapBuilder) {\n\t\tmap = new Tile[width][height];\n\n\t\tthis.name = mapBuilder.buildMap(map);\n\t\tupdateValues();\n\n\t\t// TODO: pathfinding precalculations?\n\n\t\t// Log.debug(\"Calculating path maps...\");\n\t\t// pointGraph = new PointGraph();\n\t\t// for (int x = 0; x < width; x++) {\n\t\t// for (int y = 0; y < height; y++) {\n\t\t// if (getTileAt(x, y).isPassable)\n\t\t// pointGraph.addVertex(new Vertex(new Point(x, y)));\n\t\t// }\n\t\t// }\n\t\t// pointGraph.calculateEdges();\n\t\t// Log.debug(\"done\");\n\t}",
"@Override\r\n\tpublic void onMapElementCreated(MapElement mapElement) {\r\n\t\tfields.put(mapElement, new UIElement(mapElement.getCoord(), UIUtility.getImage(mapElement.getImagePath())));\r\n\r\n\t\tUILogger.log(mapElement + \" changed\");\r\n\r\n\t\t// Notify the GamePanel that its contents need to be repainted\r\n\t\tparent.repaint();\r\n\t\tUILogger.log(\"GamePanel.repaint()\");\r\n\t}",
"@Override\n public void update(){\n getNextPosition();\n checkTileMapCollision();\n setPosition(xtemp, ytemp);\n animation.update();\n }",
"public void updateMapsRecords(){\n\n // The file to save the maps records\n File file= new File(MAPS_FILE_PATH);\n Document document = DocumentHelper.createDocument();\n Element rootElement = document.addElement(\"xml\");\n if(mapsList==null)\n return;\n for(GridMap themap:mapsList){\n rootElement.add(themap.encode());\n }\n FileOperator.fileWriter(file,document);\n }",
"protected void repaint() {\n if (_tile!=null)\n _tile.repaint();\n }",
"private void growMap() {\n\t\tshort chunkId;\n\n\t\t// Fill until full\n\t\twhile (end % STORED_CHUNKS != currChunk % STORED_CHUNKS || end == 0) {\n\t\t\tchunkId = (short) random.nextInt(chunks.length);\n\t\t\tmap[end % STORED_CHUNKS] = chunkId;\n\t\t\tchunks[chunkId].setupToStage(stage, end * MapChunk.WIDTH * tileSize, 0);\n\t\t\tend++;\n\t\t}\n\t}",
"private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }",
"private void fetchTile() {\n\t\t\tif (tile.getRequest().isCancelled() || tile.isFinal()) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tMapSource source = tile.getRequest().getSource();\n\t\t\tProjObj proj = tile.getRequest().getProjection();\n\t\t\tfinal int ppd = tile.getRequest().getPPD();\n\t\t\t\n\t\t\tfor (int fuzzyPPD = ppd/2 ; fuzzyPPD > 1 ; fuzzyPPD /= 2){\t\t\t\t\n\t\t\t\tint ratio = ppd / fuzzyPPD;\n\t\t\t\t\n\t\t\t\t// A tile has 256 pixels on a side.\n\t\t\t\t// Using this method, we can't upscale data to be fuzzy if it's more than 256 times larger \n\t\t\t\t// than the area we are looking to fill. Upscaling data more than 16 times seems unlikely to provide\n\t\t\t\t// any real benefit to the user, so we will quit our search at this point\n\t\t\t\tif (ratio>16) break;\n\t\t\t\t\n\t\t\t\tString tileName = CacheManager.getTileName(\n\t\t\t\t\tsource.getName(), proj, fuzzyPPD,\n\t\t\t\t\ttile.getXtile()/ratio, tile.getYtile()/ratio,\n\t\t\t\t\tsource.hasNumericKeyword());\n\t\t\t\t\n\t\t\t\tBufferedImage tileImage = CacheManager.getTile(source, tileName);\n\t\t\t\t\n\t\t\t\tif (tileImage==null) {\t\t\t\t\t\t\t\t\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint xtileindex = tile.getXtile() % ratio;\n\t\t\t\tint ytileindex = ratio - (tile.getYtile() % ratio) - 1;\n\t\t\t\t\n\t\t\t\tdouble fuzzyxstep = MapRetriever.tiler.getPixelWidth() / ratio;\n\t\t\t\tdouble fuzzyystep = MapRetriever.tiler.getPixelHeight() / ratio;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\ttileImage = tileImage.getSubimage((int)(xtileindex * fuzzyxstep), (int)(ytileindex * fuzzyystep), (int)fuzzyxstep, (int)fuzzyystep);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog(e);\n\t\t\t\t\tlog(\"xtileindex:\"+xtileindex+\" fuzzyxstep:\"+fuzzyxstep+\" ytileindex:\"+ytileindex+\" fuzzyystep:\"+fuzzyystep);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlong outputImageSize = (tileImage.getWidth()*ratio)*(tileImage.getHeight()*ratio);\n\t\t\t\tif (outputImageSize <= 0 || outputImageSize > Integer.MAX_VALUE){\n\t\t\t\t\tlog(\"Scaling tile from \"+fuzzyPPD+\" to \"+ppd+\" will result in image size overflow.\"+\n\t\t\t\t\t\t\t\" Stopping further search for lower PPDs for this tile.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttileImage = CacheManager.scaleImage(tileImage, ratio);\n\t\t\t\t\n\t\t\t\tmyRetriever.fuzzyResponse(tile, tileImage);\n\t\t\t}\t\t\t\t\t\t\n\t\t}",
"private void render() {\n\n // Clear the whole screen\n gc.clearRect(0, 0, canvas.getWidth(), canvas.getHeight());\n\n // Draw the background image\n gc.drawImage(curMap.getMap(), 0,0, canvas.getWidth(), canvas.getHeight());\n\n // Draw Paths\n for(DrawPath p : pathMap.values()) {\n p.draw(gc);\n }\n\n // Draw all of the lines and edges\n\n // Lines\n for(Line l : lineMap.values()) {\n l.draw(gc);\n }\n\n // Points\n for(Point p : pointMap.values()) {\n p.draw(gc);\n }\n\n // Images\n for(Img i : imgMap.values()) {\n i.draw(gc);\n }\n\n // Text\n for(Text t : textMap.values()) {\n t.draw(gc);\n }\n }",
"public void renderTileManager()\n {\n background(background);\n tiles[activeTile].drawGrid();\n tiles[activeTile].drawCellHover();\n createPreview(tiles[activeTile]);\n drawPreviewHover();\n drawPreviews();\n }",
"public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}",
"@Override\n public void displayMapTiles(MapTile[][] grid)\n {\n Platform.runLater(() -> {\n MapView mapArea = gui.getMapArea();\n mapArea.displayMapGrid(grid, -3, -3);\n });\n }",
"@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}",
"public void update_map(Player player) \n\t{\n\t\tfor (int i = 0; i < this.map.length; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.map[i].length;j++) \n\t\t\t{\n\t\t\t\tswitch (map[i][j]) \n\t\t\t\t{\n\t\t\t\tcase GRASS:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase PATH:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase CROSS_ROADS:\n\t\t\t\t\tthis.gc.drawImage(PATH_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase TA:\n\t\t\t\t\tthis.gc.drawImage(TA_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase RESEARCHER:\n\t\t\t\t\tthis.gc.drawImage(RESEARCHER_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase FIRST_YEAR:\n\t\t\t\t\tthis.gc.drawImage(FIRST_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SECOND_YEAR:\n\t\t\t\t\tthis.gc.drawImage(SECOND_YEAR_IMAGE, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase SCORE_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont titleFont = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(titleFont);\n\t\t\t\t\tString text = \"GPA: \" + player.getGPA();\n\t\t\t\t\tthis.gc.fillText(text, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(text, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\tcase TUITION_AREA:\n\t\t\t\t\tthis.gc.drawImage(GRASS_IMAGE, j*64, i*64);\n\t\t\t\t\tFont title = Font.font(\"arial\", FontWeight.EXTRA_BOLD, 25);\n\t\t\t this.gc.setFont(title);\n\t\t\t\t\tString Tuition = \"Tuition: \" + (player.getTuition());\n\t\t\t\t\tthis.gc.fillText(Tuition, j*64, i*64);\n\t\t\t\t\tthis.gc.strokeText(Tuition, j*64, i*64);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void updateBoard() {\r\n\t\tfor(int i = 0, k = 0; i < board.getWidth(); i+=3) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j+=3) {\r\n\t\t\t\t//Check that there are pieces to display\r\n\t\t\t\tif(k < bag.size()) {\r\n\t\t\t\t\tboard.setTile(bag.get(k), i, j);\r\n\t\t\t\t\tk++;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tboard.fillSpace(GridSquare.Type.EMPTY, i, j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void map(){\n this.isMap = true;\n System.out.println(\"Switch to map mode\");\n }",
"public abstract mapnik.Map createMap(Object recycleTag);",
"private void populateMap() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n //database.updateLatLng(\"Gym\", 34.181243783767364, -117.31866795569658);\n\n while (cursor.moveToNext()) {\n double lat = cursor.getDouble(cursor.getColumnIndex(database.COL_LAT));\n double lng = cursor.getDouble(cursor.getColumnIndex(database.COL_LONG));\n int image = database.getImage(cursor.getString(cursor.getColumnIndex(database.COL_LOC)));\n\n //Log.i(\"ROW\", R.drawable.library + \"\");\n LatLng coords = new LatLng(lat, lng);\n\n GroundOverlayOptions overlayOptions = new GroundOverlayOptions()\n .image(BitmapDescriptorFactory.fromResource(image))\n .position(coords, 30f, 30f);\n\n mMap.addGroundOverlay(overlayOptions);\n }\n }",
"public void buildEmptyMap() {\n this.emptyMap = new BufferedImage(this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, BufferedImage.TYPE_INT_RGB);\n final Graphics2D graphics = (Graphics2D) this.emptyMap.getGraphics();\n graphics.drawImage(this.boulderDashModel.getArea().getImage(), 0, 0, this.boulderDashModel.getArea().getDimensionWidth() * zoom, this.boulderDashModel.getArea().getDimensionHeight() * zoom, null);\n }",
"public abstract void createMap();",
"public void reloadMarkers() {\n this.markers.reload();\n }",
"public void indexMap(LWMap map) {\n vueComponentMap.clear();\n removeAll();\n indexAdd(map);\n }",
"private void setupMapView(){\n Log.d(TAG, \"setupMapView: Started\");\n\n view_stage_map = VIEW_MAP_FULL;\n cycleMapView();\n\n }",
"private void calculateMapSize() {\n calculateMapSize(true);\n }",
"public void LoadSecondMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.waterMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.waterMap_grass); // used for IsInGrass\n this.id = 2;\n\n }",
"@Override\r\n public void clear() {\r\n map.clear();\r\n }",
"private void setUpMapIfNeeded() {\n if (map == null) {\n map = fragMap.getMap();\n if (map != null) {\n setUpMap();\n }\n }\n }",
"private void updateMhoLocationList() {\n\n\t\t//clear all the mhos in mhoLocations\n\t\tmhoLocations.clear();\n\n\t\t//add the locations of all the mhos in mhoLocations\n\t\tfor (int i = 1; i < 11; i++)\n\t\t\tfor (int j = 1; j < 11; j++) \n\t\t\t\tif(newMap[i][j] instanceof Mho) {\n\t\t\t\t\tmhoLocations.add(i);\n\t\t\t\t\tmhoLocations.add(j);\n\t\t\t\t}\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n private void newMap() throws IOException, ClassNotFoundException {\r\n this.music_map.clear();\r\n if (needNewMap()) {\r\n if (!save_file.exists()) {\r\n System.out.println(\"DIZIONARIO NON PRESENTE\");\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n\r\n this.setTarget();\r\n\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n } else {\r\n System.out.println(\"DIZIONARIO NON AGGIORNATO\");\r\n if (!UtilFunctions.newDictionaryRequest(this.save_file, this.music_root)) {\r\n System.out.println(\"AGGIORNAMENTO DIZIONARIO RIFIUTATO\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n } else {\r\n System.out.println(\"CREAZIONE NUOVO DIZIONARIO IN CORSO...\");\r\n this.setTarget();\r\n this.recoursiveMapCreation(this.music_root);\r\n this.saveMap();\r\n }\r\n }\r\n } else {\r\n System.out.println(\"DIZIONARIO GIA' PRESENTE\");\r\n FileInputStream f = new FileInputStream(this.save_file);\r\n ObjectInputStream o = new ObjectInputStream(f);\r\n this.music_map.putAll((Map<String, String[]>) o.readObject());\r\n current.set(ProgressDialog.TOTAL.get());\r\n }\r\n }",
"public void loadStartingMap(int up_offset, int down_offset, int left_offset,\n int right_offset) {\n int counter = 0;\n for (int y = 0; y < MAP_HEIGHT; y++) {\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap[counter], true);\n backGroundTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_base[counter], true);\n grassTiles[x][y] = new Tile(x * TILE_SIZE, y * TILE_SIZE,\n Constants.testMap_grass[counter], true);\n counter++;\n }\n }\n\n for (int i = 0; i < up_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustUp();\n }\n }\n for (int i = 0; i < down_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustDown();\n }\n }\n for (int i = 0; i < left_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustLeft();\n }\n }\n for (int i = 0; i < right_offset; i++) {\n for (int j = 0; j < 4; j++) {\n adjustRight();\n }\n }\n\n this.setGrassTileRaw(Constants.testMap_grass); // used for IsInGrass\n this.id = 1;\n }",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"public void enterMap(Map map, int layer, int i, int j) {\n //1. add the tile to the map\n map.addTile( layer, i, j, this);\n }",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"protected void rehash() {\n // TODO: fill this in.\n //double number of maps, k, each time it is called\n\t\t//use MyBetterMap.makeMaps and MyLinearMap.getEntries\n\t\t//collect entries in the table, resize the table, then put the entries back in\n\t\tList<MyLinearMap<K, V>> newmaps = MyBetterMap.makeMaps(maps.size()*2);\n\t\tfor(MyLinearMap<K, V> curr: this.maps) {\n\t\t\tfor(Entry ent: MyLinearMap.getEntries()) {\n\t\t\t\tnewmaps.put(ent.key, ent.value);\n\t\t\t}\n\t\t}\n\t\tthis.maps = newmaps;\n\t\treturn;\n\t}",
"private void getData(){\n mapFStreets = new ArrayList<>();\n mapFAreas = new ArrayList<>();\n mapIcons = new ArrayList<>();\n coastLines = new ArrayList<>();\n //Get a rectangle of the part of the map shown on screen\n bounds.updateBounds(getVisibleRect());\n Rectangle2D windowBounds = bounds.getBounds();\n sorted = zoomLevel >= 5;\n\n coastLines = (Collection<MapFeature>) (Collection<?>) model.getVisibleCoastLines(windowBounds);\n\n Collection < MapData > bigRoads = model.getVisibleBigRoads(windowBounds, sorted);\n mapFStreets = (Collection<MapFeature>)(Collection<?>) bigRoads;\n\n if (drawAttributeManager.isTransport() && zoomLevel > 9)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleLanduse(windowBounds, sorted));\n else if (zoomLevel > 4)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleLanduse(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport() && zoomLevel > 9)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>)model.getVisibleNatural(windowBounds, sorted));\n else if (zoomLevel > 7)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>)model.getVisibleNatural(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport())\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleStreets(windowBounds, sorted));\n else if(zoomLevel > 7)\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleStreets(windowBounds, sorted));\n\n if (drawAttributeManager.isTransport())\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleRailways(windowBounds, sorted));\n else if(zoomLevel > 7) {\n mapFStreets.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleRailways(windowBounds, sorted));\n }\n\n if (drawAttributeManager.isTransport() && zoomLevel > 14)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBuildings(windowBounds, sorted));\n else if(zoomLevel > 10)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBuildings(windowBounds, sorted));\n\n if(zoomLevel > 14)\n mapIcons = (Collection<MapIcon>) (Collection<?>) model.getVisibleIcons(windowBounds);\n\n if (!drawAttributeManager.isTransport())\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBigForests(windowBounds, sorted));\n else {\n if (zoomLevel > 3)\n mapFAreas.addAll((Collection<MapFeature>)(Collection<?>) model.getVisibleBigForests(windowBounds, sorted));\n }\n mapFAreas.addAll((Collection<MapFeature>) (Collection<?>) model.getVisibleBikLakes(windowBounds, sorted));\n\n }",
"protected void drawMap(Canvas canvas) {\n\t\tcanvas.save();\n\t\t\n\t\tif (mImage != null) {\n\t\t\tif (!mImage.isRecycled()) {\n\t\t\t\tcanvas.drawBitmap(mImage, mScrollLeft, mScrollTop, null);\n\t\t\t}\n\t\t}\n\t\tcanvas.restore();\n\t}",
"public void drawMap(ObservableList<Node> root, int scale) {\n\t\tfor (int x=0; x<dimensions; x++) {\n\t\t\tfor (int y=0; y<dimensions; y++) {\n\t\t\t\tRectangle rect = new Rectangle(x*scale, y*scale, scale, scale);\n\t\t\t\trect.setStroke(Color.BLACK);\n\t\t\t\trect.setFill(Color.LIGHTSKYBLUE);\n\t\t\t\troot.add(rect);\n\t\t\t\toceanGrid[x][y] = 0; //empty square\n\t\t\t}\n\t\t}\n\t}",
"public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}",
"private void updateColorMap() {\n //if (colorMap == null) {\n colorMap = ColorUtil.buildColorMap(colorBar.getCurrentColors(),\n null);\n /* } else {\n colorMap = ColorUtil.updateColorMap(colorBar.getCurrentColors(),\n colorMap);\n }*/\n cmapParams.setColorMap(colorMap);\n cmapParams.setColorMapName(null);\n ((AbstractNcEditor) EditorUtil.getActiveEditor()).refresh();\n }",
"private void init() {\n\t\trunning = true;\n\t\timage = new BufferedImage(WIDTH, HEIGHT, BufferedImage.TYPE_INT_RGB);\n\t\tg = (Graphics2D) image.getGraphics();\n\t\ttheMap.loadTiles(\"resizedTiles2.png\");\n\t}"
] | [
"0.6955922",
"0.68676955",
"0.68552285",
"0.68389076",
"0.68201864",
"0.6747051",
"0.64983433",
"0.63660914",
"0.6317468",
"0.6307362",
"0.6248287",
"0.61885726",
"0.61860037",
"0.61785984",
"0.6174015",
"0.61604",
"0.6148205",
"0.6132521",
"0.61158997",
"0.608591",
"0.60687554",
"0.6064361",
"0.6010533",
"0.60012364",
"0.6000768",
"0.5975182",
"0.59745187",
"0.59562165",
"0.5945112",
"0.59364325",
"0.59162575",
"0.59050435",
"0.5904331",
"0.5895877",
"0.5877596",
"0.58598655",
"0.5858004",
"0.5827034",
"0.58108467",
"0.5808796",
"0.5808584",
"0.57962745",
"0.57880497",
"0.57820743",
"0.57800204",
"0.5774889",
"0.5767574",
"0.57670873",
"0.57667506",
"0.57667506",
"0.576608",
"0.57592773",
"0.5755334",
"0.5753392",
"0.57389855",
"0.5729939",
"0.57294244",
"0.5720963",
"0.5715039",
"0.5704096",
"0.57018715",
"0.5697951",
"0.5696612",
"0.56911296",
"0.5673235",
"0.56695503",
"0.5649806",
"0.564646",
"0.56314373",
"0.56247485",
"0.5613554",
"0.560903",
"0.5604217",
"0.56021094",
"0.55931836",
"0.558187",
"0.5577958",
"0.55718035",
"0.5568117",
"0.5565841",
"0.55614656",
"0.5561326",
"0.5559177",
"0.5555852",
"0.55512065",
"0.5550346",
"0.5547912",
"0.55465084",
"0.55460554",
"0.5542928",
"0.55405265",
"0.55347425",
"0.5533842",
"0.5525368",
"0.5514042",
"0.550759",
"0.5506259",
"0.5505466",
"0.5504795",
"0.5502623"
] | 0.60627395 | 22 |
removes one off resources | public void updateResources(Coordinate coord) {
if (parcels.contains(coord)) {
parcels.remove(coord);
} else if (water.contains(coord)) {
water.remove(coord);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void removeResources() {\n\t\tresources.clear();\n\t}",
"void unsetRequiredResources();",
"public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}",
"void delistResource(ExoResource xares) throws RollbackException, SystemException;",
"public void resetResources() {\n sharedResource = new Resources();\n }",
"private void deleteResource() {\n }",
"private void resetResources() {\n resourceManager.resetAllResources();\n resourceManager=ResourceManager.getInstance(getApplicationContext()); //need update resourceManager upon reset\n }",
"public void unsetComparesource()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(COMPARESOURCE$2, 0);\r\n }\r\n }",
"public void freeDragResources()\n\t{\n\t}",
"void handleResourceRemoval(String resourceName) {\n boolean lowestInstanceState = resourceRepository.countAllByAvailableIsTrueAndIsRedundantIsFalse() <= 1\n && resourceRepository.countAllByAvailableIsTrueAndIsRedundantIsTrue() <= 1;\n if (!lowestInstanceState) {\n Optional<Resource> resource = resourceRepository.findByName(resourceName);\n if (resource.isPresent()) {\n resource.get().setAvailable(false);\n resource.get().setMarkedForKill(true);\n resourceRepository.save(resource.get());\n }\n }\n }",
"public void removeResourceCollection()\r\n {\r\n getSemanticObject().removeProperty(swb_resourceCollectionInv);\r\n }",
"public synchronized void removeAll() {\r\n\t\tif (trackedResources == null)\r\n\t\t\treturn;\r\n\t\tPair<IPath, IResourceChangeHandler>[] entries = (Pair<IPath, IResourceChangeHandler>[]) trackedResources.toArray(new Pair[trackedResources.size()]);\r\n\t\tfor (Pair<IPath, IResourceChangeHandler> entry : entries) {\r\n\t\t\tremoveResource(entry.first, entry.second);\r\n\t\t}\r\n\t}",
"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 }",
"private void releaseResources() {\n\t\tstopForeground(true);\n\t\taudioManager.unregisterRemoteControlClient(remoteControlClient);\n\t\taudioManager.unregisterMediaButtonEventReceiver(remoteReceiver);\n\t\t\n\t\tif (mediaPlayer != null){\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.release();\n\t\t\tmediaPlayer = null;\n\t\t}\n\t\t\n\t\tif (wifiLock.isHeld()) {\n\t\t\twifiLock.release();\n\t\t}\n\t}",
"void discardCards(Resources resources);",
"private static void deleteResource(ProjectElement element) {\r\n \t\tResource resource = element.eResource();\r\n \t\tif (resource != null) {\r\n resource.getContents().remove(element);\r\n resource.unload();\r\n } \r\n \t}",
"public synchronized void clearResources()\r\n {\r\n // create a new root, making old tree eligible for GCing\r\n createRootNode();\r\n\r\n // clear all registered objects\r\n unRegisterAll();\r\n }",
"public void cleanUp(){\n for(ShaderProgram sp : shaderlist){\n sp.cleanup();\n }\n }",
"@Override\r\n\tpublic void unsetResource(ResourceType resource) {\n\t\t\r\n\t}",
"public void destroyAllResource() {\r\n\t\ttry {\r\n\t\t\tif(outrs != null){\r\n\t\t\t\toutrs.close();\r\n\t\t\t\toutrs=null;\r\n\t\t\t}\r\n\t\t\tif(outstmt != null ){\r\n\t\t\t\toutstmt.close();\r\n\t\t\t\toutstmt=null;\r\n\t\t\t} \r\n\t\t\tif (dbConnection != null){\r\n\t\t\t\tdbConnection.close();\r\n\t\t\t\tdbConnection=null;\r\n\t\t\t} \r\n\t\t}catch (SQLException ex) {\r\n\t\t}\r\n\t}",
"public void releaseResources();",
"public static void cleanResources() {\n\t\tscanner.close();\n\t\treturn;\n\t}",
"@Override\r\n\tpublic void discard(Resources toDiscard) {\n\t\t\r\n\t}",
"private void cleanupResources() {\n Log.d(TAG, \"Initiating resource cleanup\");\n if (mWorkerThread != null) {\n mWorkerThread.quitSafely();\n try {\n mWorkerThread.join();\n mWorkerThread = null;\n } catch (InterruptedException e) {\n Log.e(TAG, \"Failed to join on mWorkerThread\");\n }\n }\n //mListener = null;//Release later when being finalized\n mDisplayHandler = null;\n mERDHandler = null;\n mContext = null;\n surface = null;\n mIface = null;\n mLocalWfdDevice = null;\n mPeerWfdDevice = null;\n mActionListener = null;\n Log.d(TAG, \"Done with resource cleanup\");\n }",
"public void disposeResources() {\n Arrays.fill(icons, null);\n iconComponent.removeAncestorListener(this);\n }",
"private void cleanResources() {\r\n// return;\r\n placeholder = DEFAULT_PLACEHOLDER;\r\n errorImage = DEFAULT_PLACEHOLDER;\r\n imageUri = null;\r\n tag = null;\r\n imageResourceId = DEFAULT_PLACEHOLDER;\r\n simple = false;\r\n withScaling = false;\r\n widthResId = DEFAULT_PLACEHOLDER;\r\n heigthResId = DEFAULT_PLACEHOLDER;\r\n transformation = null;\r\n callback = null;\r\n fit = false;\r\n centerCrop = false;\r\n centerInside = false;\r\n }",
"void purge();",
"@Override\n \tpublic Representation deleteResource() {\n \t\tString interId = (String) this.getRequestAttributes().get(\"interId\");\n \t\tString srcId = (String) this.getRequestAttributes().get(\"sourceId\");\n \t\t\n \t\t// On s'assure qu'il n'est plus prsent en base de donnes\n \t\n \t\tIntervention inter = Interventions.getInstance().getIntervention(interId);\n \t\tList<Source> sources = inter.getSources();\n \t\tfor (int i = 0; i < sources.size(); i++) {\n \t\t\tif (sources.get(i).getUniqueID().equals(srcId)) {\n \t\t\t\tsources.remove(sources.get(i));\n \t\t\t}\n \t\t}\n \t\t\n \t\treturn null;\n \t}",
"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 }",
"@Override\n\tpublic void releaseAllResources() {\n\t}",
"public \n void clearWarnings() throws ResourceException;",
"public void destroy() {\n\t\tAL10.alDeleteSources(id);\n\t}",
"public void freeResources() {\n borderPane = null;\n }",
"@Override\n\tpublic void unloadResources() {\n\t\ttextureManager.unLoadTextures();\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 }",
"public void cleanup();",
"public void dispose() {\n\t\tSet<IRI> ids = new HashSet<IRI>(getModelIds());\n\t\tfor (IRI id : ids) {\n\t\t\tunlinkModel(id);\n\t\t}\n\t}",
"void unsetSurfaceRefs();",
"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 removeFileInstance()\n {\n this.source = null;\n this.data = null;\n }",
"private void cleanUp() {\n\t\tVisualizerView mVisualizerView = MusicApplication.getInstance()\n\t\t\t\t.getVisualizerView();\n\t\tif (mVisualizerView != null) {\n\t\t\tmVisualizerView.updateVisualizer(new byte[] {});\n\t\t}\n\t\t//\t\tif (mCurrentMediaPlayer != null) {\n\t\t//\t\t\tmCurrentMediaPlayer.reset();\n\t\t//\t\t\t//\t\t\tmCurrentMediaPlayer = null;\n\t\t//\t\t\tsetState(IDLE);\n\t\t//\t\t\tcom.dj.util.Log.i(this.getClass().getSimpleName(),\n\t\t//\t\t\t\t\t\" 歌曲停止,释放资源。mCurrentMediaPlayer: \" + mCurrentMediaPlayer);\n\t\t//\t\t\t//\t\t\tcleanEQ();\n\t\t//\t\t}\n\t}",
"private void disposeAndDeleteAllImages() {\r\n\r\n\t\tPhotoLoadManager.stopImageLoading(true);\r\n\t\tThumbnailStore.cleanupStoreFiles(true, true);\r\n\r\n\t\tPhotoImageCache.disposeAll();\r\n\r\n\t\tExifCache.clear();\r\n\t}",
"public Builder clearResources() {\n resources_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }",
"public synchronized void reset() {\r\n \ttry {\r\n \t\trecreate();\r\n \t} catch (CoreException e) {\r\n \t\tResourcesPlugin.getPlugin().getLog().log(e.getStatus());\r\n \t}\r\n }",
"public void clear(String name) {\n/* 95 */ this.texturesLinear.remove(name);\n/* 96 */ this.texturesNearest.remove(name);\n/* */ }",
"void clearAssets();",
"private void releaseMediaPlayerResources(){\n if(mRingTonePlayer != null){\n mRingTonePlayer.stop();\n mRingTonePlayer.release();\n mRingTonePlayer = null;\n }\n }",
"protected abstract void deAllocateNativeResource();",
"public void clearOffScreenResources() {\n int firstPosition = 0;\n int lastPosition = getItemCount();\n int offScreenKeepInCacheCount = mSpanCount;\n RecyclerView recyclerView = getRecyclerView();\n if (recyclerView != null && recyclerView.getLayoutManager() instanceof LinearLayoutManager) {\n LinearLayoutManager layoutManager = (LinearLayoutManager) recyclerView.getLayoutManager();\n firstPosition = layoutManager.findFirstVisibleItemPosition();\n lastPosition = layoutManager.findLastVisibleItemPosition();\n }\n if (firstPosition == RecyclerView.NO_POSITION || lastPosition == RecyclerView.NO_POSITION) {\n return;\n }\n\n if (sDebug)\n Log.d(TAG, \"clearOffScreenResources:first:\" + firstPosition + \";last:\" + lastPosition);\n\n Iterator<Integer> it = mCachedPageList.iterator();\n while (it.hasNext()) {\n int page = it.next();\n int position = page - 1;\n\n if (position < (firstPosition - offScreenKeepInCacheCount) || position > (lastPosition + offScreenKeepInCacheCount)) {\n // not in range: clear BitmapDrawable cache, recycle Bitmap\n try {\n Map<String, Object> source = getItem(position);\n if (source != null) {\n // clear the cache\n mDataLock.lock();\n source.put(THUMB_IMAGE, null);\n mDataLock.unlock();\n if (sDebug)\n Log.d(TAG, \"remove image cache for page: \" + page + \"; position: \" + position);\n // this page is no longer cached\n it.remove();\n }\n } catch (Exception ignored) {\n }\n } // else in range: do nothing\n }\n // cancel all off screen tasks as well\n for (int i = 0; i < mTaskList.size(); i++) {\n int page = mTaskList.keyAt(i);\n int position = page - 1;\n if (position < (firstPosition - offScreenKeepInCacheCount) || position > (lastPosition + offScreenKeepInCacheCount)) {\n LoadThumbnailTask task = mTaskList.valueAt(i);\n if (null != task) {\n task.cancel(true);\n }\n } // else in range: do nothing\n }\n }",
"public static void kill() {\n Iterator<Recipe> recipes = tj.getServer().recipeIterator();\r\n Recipe recipe;\r\n\r\n while (recipes.hasNext()) {\r\n recipe = recipes.next();\r\n\r\n if (recipe != null && customItems.containsValue(recipe.getResult()))\r\n recipes.remove();\r\n }\r\n\r\n tj = null;\r\n messages = null;\r\n playerDataFolder = null;\r\n players = null;\r\n customItems = null;\r\n }",
"public void discardContent() {\n dispose();\n }",
"public void removeAllUniqueFileIdentifier() {\r\n\t\tBase.removeAll(this.model, this.getResource(), UNIQUEFILEIDENTIFIER);\r\n\t}",
"public void cleanup() {\r\n\t\tsuper.cleanup();\r\n\t\tfor (int i = 0; i < _composites.size(); i++) {\r\n\t\t\t_composites.get(i).cleanup();\t\r\n\t\t}\r\n\t}",
"public void cleanup() {\r\n }",
"@Test\n public void removeResourceTest(){\n ResourceStack stack5 = new ResourceStack(50, 50, 50, 50);\n stack5.removeResource(10, ResourceType.SHIELDS);\n stack5.removeResource(15, ResourceType.SERVANTS);\n stack5.removeResource(20, ResourceType.COINS);\n stack5.removeResource(25, ResourceType.STONES);\n\n assertEquals(40, stack5.getResource(ResourceType.SHIELDS));\n assertEquals(35, stack5.getResource(ResourceType.SERVANTS));\n assertEquals(30, stack5.getResource(ResourceType.COINS));\n assertEquals(25, stack5.getResource(ResourceType.STONES));\n\n stack5.removeResource(40, ResourceType.SHIELDS);\n\n assertEquals(0, stack5.getResource(ResourceType.SHIELDS));\n }",
"public void removeAllOfficialFileWebpage() {\r\n\t\tBase.removeAll(this.model, this.getResource(), OFFICIALFILEWEBPAGE);\r\n\t}",
"public void hardWareResources() {\n\t\tSystem.out.println(\"HadwareResources\");\r\n\t}",
"public void cleanup() {\n\t}",
"@Override\r\n\tpublic void cleanup() {\n\t\t\r\n\t}",
"private void clearMediaAssetFileHolder() { mediaAssetFileHolder_ = null;\n \n }",
"public void cleanup() {\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}",
"protected void applyPendingDeletes ()\n {\n while (!m_aDeleteStack.isEmpty ())\n removeMonitoredFile (m_aDeleteStack.pop ());\n }",
"private void removePolicy(){\n\texcludedPermissions = null;\n\tuncheckedPermissions = null;\n\trolePermissionsTable = null;\n\tremovePolicyFile(true);\n\tremovePolicyFile(false);\n\tremovePolicyContextDirectory();\n\tinitLinkTable();\n\tpolicy = null;\n\twriteOnCommit = true;\n }",
"@Override\n public void cleanup(GL2 gl)\n {\n for(int i = 0; i < 6; i++)\n {\n Integer t_id = (Integer)textureIdMap[i].remove(gl);\n if(t_id != null)\n {\n int tex_id_tmp[] = { t_id.intValue() };\n gl.glDeleteTextures(1, tex_id_tmp, 0);\n }\n }\n }",
"@Override\r\n\tpublic void destory() {\n\t\t\r\n\t}",
"public void removeResource(Resource resource) {\n\t\tif (this.getResources().contains(resource)) {\n\t\t\tthis.getResources().remove(resource);\n\t\t\tresource.setSystem(null);\n\t\t}\n\t}",
"protected void cleanup() throws QTException {\n switch(action) {\n case REMOVE_DRAWING_COMPLETE_PROC:\n MoviePlayer player = (MoviePlayer)needsCleaning[0];\n if (player == null) return;\n Movie movie = player.getMovie();\n movie.removeDrawingCompleteProc();\n player.setGWorld(QDGraphics.scratch);\n needsCleaning[0] = null;\n }\n }",
"@Override\n protected void performCleanup() {\n }",
"private void resetCache () {\n synchronized (this) {\n resourcesCache = null;\n }\n support.firePropertyChange(PROP_RESOURCES, null, null);\n }",
"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 }",
"protected synchronized void clearURLLoader() {\r\n currentLoader = null;\r\n }",
"public void remove(String pResourceName) {\n\t\t\n\t}",
"public void softwareResources() {\n\t\t\r\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}",
"public void freeScenes(){\n\t\t//android.util.Log.d(TAG,\"freeScenes()\");\n\t\tfinal int size = this.scenes.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.scenes.delete(this.scenes.keyAt(index));\n\t\t}\n\t}",
"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 finalize() {\r\n destImage = null;\r\n srcImage = null;\r\n super.finalize();\r\n }",
"protected abstract void disposeResources();",
"@Override\n public <L> void resourcesRemoved(InventoryEvent<L> event) {\n List<Resource<L>> removedResources = event.getPayload();\n for (Resource<L> removedResource : removedResources) {\n if (removedResource.getParent() == null) {\n try {\n log.debugf(\"Removing root resource: %s\", removedResource);\n\n MonitoredEndpoint<EndpointConfiguration> endpoint = event.getSamplingService()\n .getMonitoredEndpoint();\n String endpointTenantId = endpoint.getEndpointConfiguration().getTenantId();\n String tenantIdToUse = (endpointTenantId != null) ? endpointTenantId : config.getTenantId();\n\n // The final URL should be in the form: entity/<resource_canonical_path>\n // for example: entity/t;hawkular/f;myfeed/r;resource_id\n\n CanonicalPath resourceCanonicalPath = CanonicalPath.of()\n .tenant(tenantIdToUse)\n .feed(feedId)\n .resource(removedResource.getID().getIDString())\n .get();\n\n StringBuilder deleteUrl = Util.getContextUrlString(config.getUrl(), config.getInventoryContext());\n deleteUrl.append(\"entity\")\n .append(resourceCanonicalPath.toString());\n\n Request request = httpClientBuilder.buildJsonDeleteRequest(deleteUrl.toString(),\n getTenantHeader(tenantIdToUse));\n\n long start = System.currentTimeMillis(); // we don't store this time in our diagnostics\n Response response = httpClientBuilder.getHttpClient().newCall(request).execute();\n\n try {\n final long duration = System.currentTimeMillis() - start;\n\n if (response.code() != 204 && response.code() != 404) {\n // 204 means successfully deleted, 404 means it didn't exist in the first place.\n // In either case, the resource no longer exists which is what we want;\n // any other response code means it is an error and we didn't remove the resource.\n throw new Exception(\"status-code=[\" + response.code() + \"], reason=[\"\n + response.message() + \"], url=[\" + request.urlString() + \"]\");\n }\n\n log.debugf(\"Took [%d]ms to remove root resource [%s]\", duration, removedResource);\n } finally {\n response.body().close();\n }\n } catch (InterruptedException ie) {\n log.errorFailedToStoreInventoryData(ie);\n Thread.currentThread().interrupt(); // preserve interrupt\n } catch (Exception e) {\n log.errorFailedToStoreInventoryData(e);\n diagnostics.getStorageErrorRate().mark(1);\n }\n\n }\n }\n return;\n }",
"public void removeAllOriginalFilename() {\r\n\t\tBase.removeAll(this.model, this.getResource(), ORIGINALFILENAME);\r\n\t}",
"private void clearRefuse() {\n \n refuse_ = false;\n }",
"public abstract boolean deleteResource(String name);",
"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}",
"protected void deallocate() {\r\n\t\t// create a list of objects ordered by the time of last access\r\n\t\tList<ObjectStatus> timeOrderedObjects = getListOfObjectClassTimeSorted();\r\n\t\twhile (!sizeNormal() && timeOrderedObjects.size() > 0) {\r\n\t\t\t// take the least recently used object and remove it from the list\r\n\t\t\tString currentObjectID = timeOrderedObjects.remove(0).getID();\r\n\t\t\t// kill that object in the ever seen so\r\n\t\t\t// it would be treated as a dead object from now on\r\n\t\t\tkillObject(currentObjectID);\r\n\t\t\tdeallocate(currentObjectID);\r\n\r\n\t\t}\r\n\r\n\t}",
"@Override\n public void removeResources(ResourceType resourceType, int numResource) throws DepotException {\n boolean notExist = true;\n for (SpecialContainer selectedContainer : specialContainers) {\n if (selectedContainer.getType() == resourceType) {\n selectedContainer.remove(numResource);\n notExist = false;\n }\n }\n if (notExist) throw new DepotException(\"Impossible to remove resources, SpecialDepot not active\");\n notifyObserver(new UpdatedSpecialDepotMessage(toReduced()));\n }",
"@Override\n\tpublic void cleanup() {\n\n\t}",
"@Override\n\tpublic void cleanup() {\n\n\t}",
"public void freeCameras(){\n\t\t//android.util.Log.d(TAG,\"freeCameras()\");\n\t\tfinal int size = this.cameras.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.cameras.delete(this.cameras.keyAt(index));\n\t\t}\n\t}",
"private void clearPathIds(){\n synchronized (pathsToBeTraversed) {\n Iterator<Long> iterator = pathsToBeTraversed.iterator();\n while (iterator.hasNext()) {\n Long trackId = iterator.next();\n try {\n namesystem.removeXattr(trackId,\n HdfsServerConstants.XATTR_SATISFY_STORAGE_POLICY);\n } catch (IOException e) {\n LOG.debug(\"Failed to remove sps xattr!\", e);\n }\n iterator.remove();\n }\n }\n }",
"@After\n public void removeEverything() {\n\n ds.delete(uri1);\n ds.delete(uri2);\n ds.delete(uri3);\n\n System.out.println(\"\");\n }",
"public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}",
"public void destory(){\n \n }",
"public void free(){\n\t\t//android.util.Log.d(TAG,\"free()\");\n\t\tthis.freeGeometries();\n\t\tthis.freeLights();\n\t\tthis.freeCameras();\n\t\tthis.freeTextures();\n\t\tthis.freeMaterials();\n\t}",
"public void freeMaterials(){\n\t\t//android.util.Log.d(TAG,\"freeMaterials()\");\n\t\tfinal int size = this.materials.size();\n\t\tfor(int index=0; index < size; index++){\n\t\t\tthis.materials.delete(this.materials.keyAt(index));\n\t\t}\n\t}",
"private void clearOneTest() {\n corpus.clear();\n Factory.deleteResource(corpus);\n Factory.deleteResource(learningApi);\n controller.remove(learningApi);\n controller.cleanup();\n Factory.deleteResource(controller);\n }",
"public void onLowMemory() {\r\n \t\tlog.info(\"On low memory : cleaning tiles - size = \" + cacheOfImages.size());\r\n \t\tArrayList<String> list = new ArrayList<String>(cacheOfImages.keySet());\r\n \t\t// remove first images (as we think they are older)\r\n \t\tfor (int i = 0; i < list.size()/2; i ++) {\r\n \t\t\tBitmap bmp = cacheOfImages.remove(list.get(i));\r\n \t\t\tif(bmp != null){\r\n \t\t\t\tbmp.recycle();\r\n \t\t\t}\r\n \t\t}\r\n \t\tSystem.gc();\r\n \t}",
"public void clear() {\n/* 103 */ this.texturesLinear.clear();\n/* 104 */ this.texturesNearest.clear();\n/* */ }",
"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 void removeFromHashes() {\n getBrowser().getDrbdResHash().remove(getName());\n getBrowser().putDrbdResHash();\n for (final DrbdVolumeInfo dvi : drbdVolumes) {\n removeDrbdVolumeFromHashes(dvi);\n }\n }",
"public void finalize() {\r\n\t\tdestImage = null;\r\n\t\tsrcImage = null;\r\n\t\tsuper.finalize();\r\n\t}"
] | [
"0.80536765",
"0.7898204",
"0.759273",
"0.7309106",
"0.7039271",
"0.6999463",
"0.68135065",
"0.68108773",
"0.67559105",
"0.6613087",
"0.6574354",
"0.6554091",
"0.65440637",
"0.6523029",
"0.6476641",
"0.6443379",
"0.6437158",
"0.64294666",
"0.6356466",
"0.6348698",
"0.63190466",
"0.6295437",
"0.62828285",
"0.6230981",
"0.6209288",
"0.6155829",
"0.6126493",
"0.608728",
"0.60848224",
"0.6077017",
"0.6071794",
"0.60604787",
"0.6048085",
"0.60378474",
"0.6026228",
"0.6021461",
"0.5993802",
"0.5981233",
"0.5977083",
"0.5969136",
"0.5963604",
"0.59634954",
"0.5962412",
"0.59537035",
"0.59534824",
"0.59461224",
"0.5942886",
"0.5931855",
"0.59301955",
"0.59228796",
"0.58977646",
"0.5895808",
"0.5888621",
"0.5888322",
"0.58798146",
"0.5867772",
"0.5864086",
"0.5846755",
"0.58459276",
"0.58431226",
"0.5842945",
"0.5839477",
"0.58358216",
"0.58351594",
"0.5825562",
"0.58200586",
"0.5818315",
"0.5817257",
"0.58150566",
"0.5810857",
"0.5800805",
"0.57975525",
"0.57934713",
"0.57908994",
"0.5782632",
"0.5780735",
"0.57714784",
"0.5764787",
"0.57637995",
"0.57636845",
"0.57547504",
"0.5750127",
"0.5746159",
"0.5744905",
"0.57424206",
"0.5733556",
"0.5731726",
"0.5731726",
"0.5729901",
"0.57281846",
"0.57261735",
"0.5715429",
"0.57143265",
"0.5707599",
"0.5691933",
"0.5689622",
"0.56824404",
"0.5677905",
"0.5669324",
"0.5661765",
"0.56610423"
] | 0.0 | -1 |
Runs around the map, by following walls, looking for exits and required number of parcels | public void explore() {
if(getSpeed() < CAR_MAX_SPEED){ // Need speed to turn and progress toward the exit
applyForwardAcceleration(); // Tough luck if there's a wall in the way
}
if (isFollowingWall) {
// if already been to this tile, stop following the wall
if (travelled.contains(new Coordinate(getPosition()))) {
isFollowingWall = false;
} else {
if(!checkFollowingWall(getOrientation(), map)) {
turnLeft();
} else {
// If wall on left and wall straight ahead, turn right
if(checkWallAhead(getOrientation(), map)) {
if (!checkWallRight(getOrientation(), map)) {
turnRight();
isFollowingWall = true;
} else if (!checkWallLeft(getOrientation(), map)){
turnLeft();
} else {
applyReverseAcceleration();
}
}
}
}
} else {
// Start wall-following (with wall on left) as soon as we see a wall straight ahead
if(checkWallAhead(getOrientation(), map)) {
if (!checkWallRight(getOrientation(), map) && !checkWallLeft(getOrientation(), map)) {
// implementing some randomness so doesn't get stuck in loop
Random rand = new Random();
int n = rand.nextInt(2);
if (n==0) {
turnLeft();
} else {
turnRight();
isFollowingWall = true;
}
} else if (!checkWallRight(getOrientation(), map)) {
turnRight();
isFollowingWall = true;
} else if (!checkWallLeft(getOrientation(), map)){
turnLeft();
} else {
applyReverseAcceleration();
}
}
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n\t\tDisplay.openWorld(\"maps/pasture.map\");\n\n Display.setSize(15, 15);\n Display.setSpeed(7);\n Robot andre = new Wanderer(int i, int j);\n for(int n = 0; n<36; n++) {\n for(int k=0; k<36; k++) {\n andre.wander(); \n }\n explode();\n \n\t\t// TODO Create an instance of a Horse inside the pasture\n\t\t// TODO Have the horse wander for 36 steps with a timer of 7\n\t\t// TODO Have the horse explode()\n\t}\n\n}",
"public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}",
"public static void CheckArea(double wallSize, Scene scene, Group root)\r\n\t{ //check player area\r\n\t\tfor (int a = 0; a < GenerateMaze.rows; a++){ \r\n\t\t\tfor (int b = 0; b < GenerateMaze.columns; b++){\t\t\t\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 0){ //if player is in open\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"Open\"); //debug open\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 1){ //if player is in wall\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2) && camY >=-wallSize/2){\r\n\t\t\t\t\t\tSystem.out.println(\"Wall\");//debug wall\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tCollision.Collide(GameController.camera, wallSize, b, a, false);\r\n\t\t\t\t\t\tSystem.out.println(\"Wall Collided at: \" + b + \", \" + a);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 3){ //if player is at start\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Start\");//debug start\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 9){ //if player is at finish\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Finish, maze completed!\");//debug finish\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t\tFinished = true; //set finish to true\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (camX < 0 && camZ < 0) {\r\n\t\t\tSystem.out.println(\"Player isn't even on map\"); //debug player isn't on map\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Current location: \" + locX + \", \" + locY + \". \"\r\n\t\t\t\t\t+ \"Last Recorded Position: \" + lastLocX + \", \" + lastLocY); //debug player current position in maze\r\n\t\t}\r\n\t}",
"public void doScan() {\n\t\tSystemMapObject[] results = scan();\r\n\t\t// add to its current map.\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\tupdateMowerCords();\r\n\t\t// NorthWest\r\n\t\tif (y + 1 >= this.map.size()) {\r\n\t\t\tthis.map.add(new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(y + 1).add(0, results[7]);\r\n\t\t} else if (x - 1 <= 0) {\r\n\t\t\tthis.map.get(y + 1).add(x, results[7]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x - 1, results[7]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// West\r\n\t\tif (this.map.get(y).size() < 2) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else if (x - 1 < 0) {\r\n\t\t\tthis.map.get(y).add(0, results[6]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x - 1, results[6]);\r\n\t\t}\r\n\t\t// SouthWest\r\n\t\tupdateMowerCords();\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() < 2) {\r\n\t\t\tthis.map.get(y - 1).add(0, results[5]);\r\n\t\t} else if (this.map.get(y - 1).size() <= x - 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[5]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x - 1, results[5]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// North\r\n\t\tif (y + 1 < this.map.size() && x >= this.map.get(y + 1).size()) {\r\n\t\t\tif (x >= this.map.get(y + 1).size()) {\r\n\t\t\t\tthis.map.get(y+1).add(results[0]);\r\n\t\t\t} else {\r\n\t\t\t\tthis.map.get(y + 1).add(x, results[0]);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x, results[0]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// NorthEast\r\n\t\tif (this.map.get(y + 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y + 1).add(results[1]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y + 1).set(x + 1, results[1]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// East\r\n\t\tif (this.map.get(y).size() <= x + 1) {\r\n\t\t\tthis.map.get(y).add(results[2]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y).set(x + 1, results[2]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\r\n\t\t// South\r\n\t\tif (y - 1 < 0) {\r\n\t\t\tthis.map.add(0, new ArrayList<SystemMapObject>());\r\n\t\t\tthis.map.get(0).add(results[4]);\r\n\t\t} else if (x >= this.map.get(y - 1).size()) {\r\n\t\t\tthis.map.get(y - 1).add(results[4]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x, results[4]);\r\n\t\t}\r\n\t\tupdateMowerCords();\r\n\t\t// South East\r\n\t\tif (this.map.get(y - 1).size() <= x + 1) {\r\n\t\t\tthis.map.get(y - 1).add(results[3]);\r\n\t\t} else {\r\n\t\t\tthis.map.get(y - 1).set(x + 1, results[3]);\r\n\t\t}\r\n\r\n\t\tupdateMowerCords();\r\n\t\t// System.out.println(\"This is your X:\" + this.x);\r\n\t\t// System.out.println(\"This is your Y:\" + this.y);\r\n\t\t//\r\n\t\t// System.out.println(toStringInternalMap());\r\n\t\t// System.out.println(\"-------------------------------------------------------------------------------------\");\r\n\r\n\t}",
"public static void main(String[] args) {\n int[][] rooms = new int[4][4];\n int INF = Integer.MAX_VALUE;\n int[] p0 = {INF, -1, 0, INF};\n int[] p1 = {INF, INF, INF, -1};\n int[] p2 = {INF, -1, INF, -1};\n int[] p3 = {0, -1, INF, INF};\n rooms[0] = p0;\n rooms[1] = p1;\n rooms[2] = p2;\n rooms[3] = p3;\n wallsAndGates(rooms);\n\n\n }",
"private void intElementCoordinates() throws InvalidLevelCharacterException, NoGhostSpawnPointException, NoPacmanSpawnPointException, NoItemsException {\n\n\t\tint ps = 0;// player spawn point counter\n\t\tint gs = 0;// ghost spawn point counter\n\t\tint item = 0;// item counter\n\t\t\n\t\t\tfor (int i = 0; i < height; i++) {\n\t\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\t\t// j*MAPDENSITY as x coordinate, i*MAPDENSITY as y\n\t\t\t\t\t// coordinate\n\t\t\t\t\tfloat[] xy = { j * MAPDENSITY, i * MAPDENSITY };\n\t\t\t\t\t// add coordinates in to right category\n\t\t\t\t\tif (mapElementStringArray[i][j].equals(\"X\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Wall(new Vector2f(xy), getWallType(\n\t\t\t\t\t\t\t\ti, j));\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\" \")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new Dot(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tdots.add((Dot)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"P\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PlayerSpawnPoint(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tplayerSpawnPoints.add((PlayerSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\taPlayerSpawnPointRow=i;\n\t\t\t\t\t\taPlayerSpawnPointCol=j;\n\t\t\t\t\t\tps++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"G\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new GhostSpawnPoint(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tghostSpawnPoints.add((GhostSpawnPoint)mapElementArray[i][j]);\n\t\t\t\t\t\tgs++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"B\"))\n\t\t\t\t\t\tmapElementArray[i][j] = new InvisibleWall(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"S\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new SpeedUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tspeedUps.add((SpeedUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else if (mapElementStringArray[i][j].equals(\"T\")){\n\t\t\t\t\t\tmapElementArray[i][j] = new Teleporter(new Vector2f(xy),getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tteleporters.add((Teleporter)mapElementArray[i][j]);\n\t\t\t\t\t}\n\t\t\t\t\telse if (mapElementStringArray[i][j].equals(\"U\")) {\n\t\t\t\t\t\tmapElementArray[i][j] = new PowerUp(new Vector2f(xy), getForksForPacman(i, j), getForksForGhost(i, j));\n\t\t\t\t\t\tpowerUps.add((PowerUp)mapElementArray[i][j]);\n\t\t\t\t\t\titem++;\n\t\t\t\t\t} else\n\t\t\t\t\t\t// thrwo invalidLevelCharacterException\n\t\t\t\t\t\tthrow new InvalidLevelCharacterException(\n\t\t\t\t\t\t\t\tmapElementStringArray[i][j].charAt(0));\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check for PacmanSpawnPoint, GhostSpawnPoint and item exceptions\n\t\t\tif (gs == 0)\n\t\t\t\tthrow new NoGhostSpawnPointException();\n\t\t\tif (ps == 0)\n\t\t\t\tthrow new NoPacmanSpawnPointException();\n\t\t\tif (item == 0)\n\t\t\t\tthrow new NoItemsException();\n\t\t\n\t}",
"public void seekRooms () {\n\t\tint num = 0;//room number\n\t\tfor (int i=0; i<w; i++) {\n\t\t\tfor (int j=0; j<l; j++) {\n\t\t\t\tif (visited[i][j] == 0) {\n\t\t\t\t\tcnt = 0;\n\t\t\t\t\tnum++;//room number start from 1\n\t\t\t\t\tdfs(i,j,num);\n\t\t\t\t\n\t\t\t\t\t//update the number of rooms and max room size\t\t\t\n\t\t\t\t\tmax = Math.max(max, cnt); \n\t\t\t\t\ttotal = num;\n\t\t\t\t\tmap.put(num, cnt);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tfindMaxComb();// find the max size after breaking a wall!!!\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a 10 * 10 map, x axis and y axis start from 0 - 9.\");\n\t\tSystem.out.println(\"There are totally \"+MINE_NUMBER+\" mines, and your task is to find all the mines.\");\n\n\t\t// generate 10*10 grid\n\t\t/*\n\t\t * 0: not mine 1: mine 2: mine found 3: not mine shot\n\t\t * \n\t\t */\n\t\tint[][] map = new int[10][10];\n\t\t// repeated at least 5 times generate 5 mines\n\t\tint i = 0;\n\t\twhile (i < MINE_NUMBER) {\n\t\t\t// generate mines generally\n\t\t\tint x = (int) (Math.random() * 10); // 0-9\n\t\t\tint y = (int) (Math.random() * 10); // 0-9\n\t\t\tif (map[x][y] == 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tmap[x][y] = 1;\n\t\t\ti++;\n\t\t}\n\n\t\t// ready to accept user input\n\t\tScanner input = new Scanner(System.in);\n\t\t// how many mines been found\n\t\tint find = 0;\n\n\t\t// start to accept user input\n\t\twhile (find < MINE_NUMBER) {\n\t\t\tint clickX, clickY;\n\t\t\tSystem.out.println(\"please enter the x axis of mine\");\n\t\t\tclickX = input.nextInt();\n\t\t\tSystem.out.println(\"please enter the y axis of mine \");\n\t\t\tclickY = input.nextInt();\n\n\t\t\tif (map[clickX][clickY] == 1) {\n\t\t\t\tmap[clickX][clickY] = 2;\n\t\t\t\tfind++;\n\t\t\t\tSystem.out.println(\"You find a mine! Now you found \" + find + \" mines and \" + (MINE_NUMBER - find) + \" left!\");\n\n\t\t\t} else if (map[clickX][clickY] == 2) {\n\t\t\t\tSystem.out.println(\"You have found this target, try again!\");\n\t\t\t} else {\n\t\t\t\tmap[clickX][clickY] = 3;\n\t\t\t\tSystem.out.println(\"You miss!\");\n\t\t\t\thint(map, clickX, clickY);\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"You found all the mines! You win!\");\n\t\tinput.close();\n\t}",
"protected void calculatePathfindingGrid(Tile[] tiles) {\n \n if(tiles == null) {\n return;\n }\n \n /**\n * Problem:\n * Because the tile size used by the path finding engine will most likely be\n * different from that of the visual effect size, we have to\n * look at all the visual tiles and judge whether they are blocking of\n * particular kinds of unit.\n * \n * Algorithm:\n * For land, air and sea take a look at the number of blocking/non-blocking\n * tiles there are and if there is over 50% either way then that will be the\n * PathTiles result.\n */\n \n // First get the size of the map in PathTile(s)\n int rows = getActualHeightInTiles();\n int cols = getActualWidthInTiles();\n \n // Calculate the number of tiles to a PathTile\n int tilesPerActualTilesX = getActualTileWidth() / getTileWidth();\n int tilesPerActualTilesY = getActualTileHeight() / getTileHeight();\n int tileCount = tilesPerActualTilesX * tilesPerActualTilesY;\n \n int tileCols = getWidthInTiles();\n \n // Create an array\n mPathTiles = new PathTile[ rows * cols ];\n \n // Iterate through these tiles\n for(int x = 0; x < cols ; x++) {\n for(int y = 0; y < rows; y++) {\n \n // Setup some variables\n int blockSea, blockAir, blockLand;\n blockAir = blockLand = blockSea = 0;\n \n // Figure out the percentage of each block\n for(int tx = 0; tx < tilesPerActualTilesX; tx++) {\n for(int ty = 0; ty < tilesPerActualTilesY; ty++) {\n \n int tileX = (x * tilesPerActualTilesX) + tx;\n int tileY = (y * tilesPerActualTilesY) + ty;\n \n Tile thisTile = tiles[ (tileY * tileCols) + tileX ];\n \n if(thisTile.blockAir()) {\n blockAir++;\n }\n \n if(thisTile.blockLand()) {\n blockLand++;\n }\n \n if(thisTile.blockSea()) {\n blockSea++;\n }\n \n }\n }\n \n // Calculate percentage\n float a,b,c;\n a = (float)blockAir / (float)tileCount;\n b = (float)blockLand / (float)tileCount;\n c = (float)blockSea / (float)tileCount;\n \n // Set the new tile\n mPathTiles[ (y * cols) + x ] = new PathTile( (a >= .5f), (b >= .5f), (c >= .5f) );\n \n // System.out.println(\"Grid \" + ((y * cols) + x) + \" (\" + x + \", \" + y + \") Air: \" + a + \" Land: \" + b + \" Sea: \" + c);\n \n }\n }\n \n }",
"public static void main(String[] args) {\n GridMap map = null;\n try {\n map = GridMap.fromFile(\"map.txt\");\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n if (map == null)\n throw new RuntimeException(\"Unable to obtain discretized map.\");\n\n // Prints map\n System.out.println(\"Map to analyze:\");\n System.out.println(map);\n\n // Executes search\n int[] rowColIni = map.getStart();\n int[] rowColFim = map.getGoal();\n Block initial = new Block(rowColIni[0], rowColIni[1], BlockType.FREE);\n Block target = new Block(rowColFim[0], rowColFim[1], BlockType.FREE);\n GreedySearch search = new GreedySearch(map, initial, target);\n RobotAction[] ans = search.solve();\n\n // Shows answer\n if (ans == null) {\n System.out.println(\"No answer found for this problem.\");\n } else {\n\n Block current = initial;\n System.out.print(\"Answer: \");\n for (RobotAction a : ans) {\n System.out.print(\", \" + a);\n Block next = map.nextBlock(current, a);\n map.setRoute(next.row, next.col);\n current = next;\n }\n\n // Shows map with the route found\n System.out.println();\n System.out.println(\"Route found:\");\n System.out.println(map);\n }\n }",
"private void createMaze(Tile currentTile) {\n\n while (numberOfCellsVisited < CAST_WIDTH * CAST_HEIGHT) {\n\n // Get coordinates of current tile and set as visited\n int currentX = currentTile.getPosition().getX();\n int currentY = currentTile.getPosition().getY();\n tempMap[currentY][currentX].setVisited(true);\n\n // Begin neighbourhood scan\n ArrayList<Integer> neighbours = new ArrayList<>();\n\n // If a neighbour is not visited and its projected position is within bounds, add it to the list of valid neighbours\n // North neighbour\n if (currentY - 1 >= 0) {\n if (!tempMap[currentY - 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(0);\n }\n //Southern neighbour\n if (currentY + 1 < CAST_HEIGHT) { //y index if increased is not greater than height of the chamber\n if (!tempMap[currentY + 1][currentX].isVisited()) //Northern neighbour unvisited\n neighbours.add(1);\n }\n //Eastern neighbour\n if (currentX + 1 < CAST_WIDTH) { //check edge case\n if (!tempMap[currentY][currentX + 1].isVisited()) { //check if visited\n neighbours.add(2);\n }\n }\n //Western neighbour\n if (currentX - 1 >= 0) {\n if (!tempMap[currentY][currentX - 1].isVisited()) {\n neighbours.add(3);\n }\n }\n if (!neighbours.isEmpty()) {\n\n //generate random number between 0 and 3 for direction\n Random rand = new Random();\n boolean randomizer;\n int myDirection;\n do {\n myDirection = rand.nextInt(4);\n randomizer = neighbours.contains(myDirection);\n } while (!randomizer);\n\n //knock down wall\n switch (myDirection) {\n case 0 -> { // North\n tempMap[currentY][currentX].getPathDirection()[0] = true;\n currentTile = tempMap[currentY - 1][currentX];\n }\n case 1 -> { // South\n tempMap[currentY][currentX].getPathDirection()[1] = true;\n currentTile = tempMap[currentY + 1][currentX];\n }\n case 2 -> { // East\n tempMap[currentY][currentX].getPathDirection()[2] = true;\n currentTile = tempMap[currentY][currentX + 1];\n }\n case 3 -> { // West\n tempMap[currentY][currentX].getPathDirection()[3] = true;\n currentTile = tempMap[currentY][currentX - 1];\n }\n }\n\n mapStack.push(currentTile);\n numberOfCellsVisited++;\n } else {\n currentTile = mapStack.pop(); //backtrack\n }\n }\n\n castMaze(tempMap[0][0], -1);\n }",
"private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\t\tpublic void run() {\n\t\t\tshowProgress(false, null);\n\t\t\tboolean canRoute = false;\n\t\t\tfor (FloorInfo floorInfo : floorList) {\n\t\t\t\tArrayList<LocatorGeocodeResult> shelfList = floorInfo\n\t\t\t\t\t\t.getShelfList();\n\t\t\t\tif (shelfList.size() > 0) {\n\t\t\t\t\tStopGraphic points[] = new StopGraphic[shelfList.size()];\n\t\t\t\t\tint index = 1;\n\t\t\t\t\tfor (LocatorGeocodeResult result : shelfList) {\n\t\t\t\t\t\tString address = result.getAddress();\n\t\t\t\t\t\tif (index >= shelfList.size()\n\t\t\t\t\t\t\t\t&& !address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tPoint p = (Point) GeometryEngine.project(\n\t\t\t\t\t\t\t\tresult.getLocation(), wm, egs);\n\t\t\t\t\t\tif (address.equals(floorInfo.getStartPoint())) {\n\t\t\t\t\t\t\tpoints[0] = new StopGraphic(p);\n\n\t\t\t\t\t\t\tSystem.out.println(\"起始点x:\" + p.getX() + \" y:\"\n\t\t\t\t\t\t\t\t\t+ p.getY());\n\n\t\t\t\t\t\t} else if (floorInfo.getEndPoint() != null\n\t\t\t\t\t\t\t\t&& address.equals(floorInfo.getEndPoint())) {\n\t\t\t\t\t\t\tpoints[shelfList.size() - 1] = new StopGraphic(p);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tpoints[index++] = new StopGraphic(p);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t\tif (points[0] != null && points.length >= 2) {\n\t\t\t\t\t\tcanRoute = true;\n\t\t\t\t\t\trouteCount++;\n\t\t\t\t\t}\n\t\t\t\t\tfloorInfo.setPoints(points);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tclearAll();\n\t\t\tif (!canRoute) {\n\t\t\t\tToast.makeText(MapActivity.this, \"没有找到足够的点,无法导航\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t} else {\n\t\t\t\tQueryDirections();\n\t\t\t}\n\t\t}",
"@Override\n\tpublic boolean drive2Exit() throws Exception {\n\t\tint[][] timesVisited = new int[width][height];\n\t\tfor (int i = 0; i < timesVisited.length; i++) {\n\t\t\tfor (int j = 0; j < timesVisited[0].length; j++) {\n\t\t\t\ttimesVisited[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile (robot.isAtExit() == false) {\n\t\t\t/* start a list of potential positions to move to. */\n\t\t\tLinkedList<CardinalDirectionNumVisitsPair> possibleDirections = new LinkedList<CardinalDirectionNumVisitsPair>();\n\t\t\t\n\t\t\t/* get the directions and number of visits to all accessible adjacent spaces. */\n\t\t\tint robotX = robot.getCurrentPosition()[0];\n\t\t\tint robotY = robot.getCurrentPosition()[1];\n\t\t\taddCardinalDirectionNumVisitsPairIfValid(robotX + 1, robotY, CardinalDirection.East, possibleDirections, timesVisited);\n\t\t\taddCardinalDirectionNumVisitsPairIfValid(robotX - 1, robotY, CardinalDirection.West, possibleDirections, timesVisited);\n\t\t\taddCardinalDirectionNumVisitsPairIfValid(robotX, robotY + 1, CardinalDirection.North, possibleDirections, timesVisited);\n\t\t\taddCardinalDirectionNumVisitsPairIfValid(robotX, robotY - 1, CardinalDirection.South, possibleDirections, timesVisited);\n\t\t\t\n\t\t\t/* find the minimum number of visits. */\n\t\t\tint minVisits = Integer.MAX_VALUE;\n\t\t\tfor (CardinalDirectionNumVisitsPair pair : possibleDirections) {\n\t\t\t\tif (pair.numVisits < minVisits) {\n\t\t\t\t\tminVisits = pair.numVisits;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t/* remove all pairs that do NOT have minVisits visits from the list. */\n\t\t\tfor (Iterator<CardinalDirectionNumVisitsPair> iterator = possibleDirections.listIterator(); iterator.hasNext(); ) {\n\t\t\t CardinalDirectionNumVisitsPair pair = iterator.next();\n\t\t\t if (pair.numVisits != minVisits) {\n\t\t\t iterator.remove();\n\t\t\t }\n\t\t\t}\n\t\t\t\n\t\t\t/* the list now contains only spaces that have the minimum number of visits. */\n\t\t\t/* pick randomly from the list. */\n\t\t\tint randomIndex = (int) Math.floor(Math.random() * possibleDirections.size());\n\t\t\tCardinalDirectionNumVisitsPair randomPair = possibleDirections.get(randomIndex);\n\t\t\t\n\t\t\t/* turn to face that direction. */\n\t\t\trobot.turnToDirection(randomPair.cardinalDirection);\n\t\t\t\n\t\t\t/* move. */\n\t\t\trobot.move(1, false);\n\t\t\t\n\t\t\t/* update the numVisits array. */\n\t\t\ttimesVisited[robot.getCurrentPosition()[0]][robot.getCurrentPosition()[1]]++;\n\t\t}\n\t\t\n\t\treturn robot.stepOutOfExit();\n\t}",
"public static void main(String[] args) {\n Tron.init();\n\n //We'll want to keep track of the turn number to make debugging easier.\n int turnNumber = 0;\n\n // Execute loop forever (or until game ends)\n while (true) {\n //Update turn number:\n turnNumber++;\n\n /* Get an integer map of the field. Each int\n * can either be Tron.Tile.EMPTY, Tron.Tile.ME,\n * Tron.Tile.OPPONENT, Tron.Tile.TAKEN_BY_ME,\n * Tron.Tile.TAKEN_BY_OPPONENT, or Tron.Tile.WALL */\n ArrayList<ArrayList<Tron.Tile>> mList = Tron.getMap();\n int[][] m = new int[mList.size()][mList.get(0).size()];\n for (int i = 0; i < mList.size(); i++) {\n for (int j = 0; j < mList.get(i).size(); j++) {\n m[i][j] = mList.get(i).get(j).ordinal();\n }\n }\n\n //Let's figure out where we are:\n int myLocX = 0, myLocY = 0;\n for(int y = 0; y < 16; y++) {\n for(int x = 0; x < 16; x++) {\n //I want to note that this is a little bit of a disgusting way of doing this comparison, and that you should change it later, but Java makes this uglier than C++\n if(Tron.Tile.values()[m[y][x]] == Tron.Tile.ME) {\n myLocX = x;\n myLocY = y;\n }\n }\n }\n\n //Let's find out which directions are safe to go in:\n boolean [] safe = emptyAdjacentSquares(m, myLocX, myLocY);\n\n //Let's look at the counts of empty squares around the possible squares to go to:\n int [] dirEmptyCount = new int[4];\n for(int a = 0; a < 4; a++) {\n if(safe[a]) {\n //Get the location we would be in if we went in a certain direction (specified by a).\n int[] possibleSquare = getLocation(myLocX, myLocY, a);\n //Make sure that square exists:\n if(possibleSquare[0] != -1 && possibleSquare[1] != -1) {\n //Find the squares around that square:\n boolean [] around = emptyAdjacentSquares(m, possibleSquare[0], possibleSquare[1]);\n //Count the number of empty squares around that square and set it in our array:\n dirEmptyCount[a] = 0;\n for(int b = 0; b < 4; b++) if(around[b]) dirEmptyCount[a]++;\n }\n }\n else dirEmptyCount[a] = 5; //Irrelevant, but we must ensure it's as large as possible because we don't want to go there.\n }\n\n //Log some basic information.\n Tron.log(\"-----------------------------------------------------\\nDebug for turn #\" + turnNumber + \":\\n\");\n for(int a = 0; a < 4; a++) Tron.log(\"Direction \" + stringFromDirection(a) + \" is \" + (safe[a] ? \"safe.\\n\" : \"not safe.\\n\"));\n\n /* Send your move. This can be Tron.Direction.NORTH,\n * Tron.Direction.SOUTH, Tron.Direction.EAST, or\n * Tron.Direction.WEST. */\n int minVal = 1000, minValLoc = 0;\n for(int a = 0; a < 4; a++) {\n if(dirEmptyCount[a] < minVal) {\n minVal = dirEmptyCount[a];\n minValLoc = a;\n }\n }\n Tron.sendMove(Tron.Direction.values()[minValLoc]);\n }\n }",
"public static void main(String[] args) {\r\n\t\t//double lat = 36.149 + (0.001 * Math.random());\r\n\t\t//double lon = -86.800 + (0.001 * Math.random());\r\n\t\t\r\n\t\t// Note: The game area must already be set for this to work!\r\n\t\t\r\n\t\t// This puts a land mine in the middle of the parking lot\r\n\t\t// between ISIS and 21st.\r\n\t\tdouble lat = 36.14923059940338;\r\n\t\tdouble lon = -86.79988324642181;\r\n\t\tdouble rad = 5.0;\r\n\t\tLandMine lm = new LandMine(lat, lon, rad);\r\n\t\t//doLandMinePost(lm);\r\n\t\tdoLandMineRemove(lm);\r\n\t}",
"public static void main(String[] args) throws Exception{\n DrawingPanel panel = new DrawingPanel(840, 480);\n Graphics g = panel.getGraphics();\n \n //Test Step 1 - construct mountain map data\n Scanner S = new Scanner(new File(\"Colorado_844x480.dat\"));\n int[][] grid = read(S, 480, 840);\n \n //Test Step 2 - min, max\n int min = findMinValue(grid);\n System.out.println(\"Min value in map: \"+ min);\n \n int max = findMaxValue(grid);\n System.out.println(\"Max value in map: \"+ max);\n \n \n //Test Step 3 - draw the map\n drawMap(g, grid);\n \n //Test Step 4 - draw a greedy path\n \n // 4.1 implement indexOfMinInCol\n int minRow = indexOfMinInCol(grid, 0); // find the smallest value in col 0\n System.out.println(\"Row with lowest val in col 0: \"+ minRow);\n \n // 4.2 use minRow as starting point to draw path\n g.setColor(Color.RED); //can set the color of the 'brush' before drawing, then method doesn't need to worry about it\n int totalChange = drawLowestElevPath(g, grid, minRow); //\n System.out.println(\"Lowest-Elevation-Change Path starting at row \"+minRow+\" gives total change of: \"+totalChange);\n \n //Test Step 5 - draw the best path\n g.setColor(Color.RED);\n int bestRow = indexOfLowestElevPath(g, grid);\n \n //drawMap(g, grid); //use this to get rid of all red lines\n //g.setColor(Color.GREEN); //set brush to green for drawing best path\n //totalChange = drawLowestElevPath(g, grid, bestRow);\n System.out.println(\"The Lowest-Elevation-Change Path starts at row: \"+bestRow+\" and gives a total change\\nof: \"+totalChange);\n }",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n locations.put(0, new Location(0, \"You are sitting infront of a computer learning java\"));\n locations.put(1, new Location(1, \"You are standing at the end of a road\"));\n locations.put(2, new Location(2, \"You are at the top of the hill\"));\n locations.put(3, new Location(3, \"You are inside a building\"));\n locations.put(4, new Location(4, \"You are in a valley beside the stream\"));\n locations.put(5, new Location(5, \"You are in the forest\"));\n\n locations.get(1).addExit(\"W\", 2);\n locations.get(1).addExit(\"E\", 3);\n locations.get(1).addExit(\"S\", 4);\n locations.get(1).addExit(\"N\", 5);\n// locations.get(1).addExit(\"Q\", 0);\n\n locations.get(2).addExit(\"N\", 5);\n// locations.get(2).addExit(\"Q\", 0);\n\n locations.get(3).addExit(\"W\", 1);\n// locations.get(3).addExit(\"Q\", 0);\n\n locations.get(4).addExit(\"N\", 1);\n locations.get(4).addExit(\"W\", 2);\n// locations.get(4).addExit(\"Q\", 0);\n\n locations.get(5).addExit(\"S\", 1);\n// locations.get(5).addExit(\"Q\", 0);\n\n\n\n// System.out.println(locations.containsKey(6));\n int loc = 1;\n while(true){\n System.out.println(locations.get(loc).getDescription());\n if(loc ==0){\n break;\n }\n\n Map<String , Integer> exits = locations.get(loc).getExits();\n System.out.println(\"Available exits are \");\n for(String exit: exits.keySet()) {\n System.out.print(exit + \", \");\n }\n System.out.println();\n String[] str = sc.nextLine().split(\" \");\n String direction = \"\";\n if(str.length == 1){\n direction = str[0].toUpperCase();\n } else{\n for(String s: str){\n if(s.equalsIgnoreCase(\"North\")){\n direction = \"N\";\n }\n if(s.equalsIgnoreCase(\"South\")){\n direction = \"S\";\n }\n if(s.equalsIgnoreCase(\"West\")){\n direction = \"W\";\n }\n if(s.equalsIgnoreCase(\"East\")){\n direction = \"E\";\n }\n }\n }\n\n// String direction = sc.nextLine().toUpperCase();\n\n if(exits.containsKey(direction)){\n loc = exits.get(direction);\n } else{\n System.out.println(\"You cannot go in that direction\");\n }\n\n// else {\n// loc = sc.nextInt();\n// if(locations.containsKey(loc)){\n//\n// } else {\n// System.out.println(\"You cannot go in that direction\");\n// }\n// }\n }\n\n }",
"private void createChamber() {\n\n // Give all tiles coordinates for map and temp map\n int CurrentY = 0;\n for (Tile[] tiles : map) {\n int CurrentX = 0;\n for (Tile tile : tiles) {\n tile.setPosition(new Coordinates(CurrentX, CurrentY));\n tile.setTerrain(Terrain.WALL);\n CurrentX++;\n }\n CurrentY++;\n }\n\n for (int y = 0; y < CAST_HEIGHT; y++) {\n for (int x = 0; x < CAST_WIDTH; x++) {\n tempMap[y][x].setPosition(new Coordinates(x, y));\n }\n }\n\n // Initialize algorithm at starting position (0, 0)\n tempMap[0][0].setVisited(true);\n numberOfCellsVisited = 1; //setting number of cells visited to 1 because I have visited one now!\n mapStack.push(tempMap[0][0]); //Chamber start position\n createMaze(tempMap[0][0]); //Chamber start position\n\n // Reveal top edge, sides, and bottom edge\n for (Tile tile : map[0]) {\n tile.setVisible(true);\n }\n for (Tile[] tiles : map) {\n tiles[0].setVisible(true);\n tiles[CHAMBER_WIDTH].setTerrain(Terrain.WALL);\n tiles[CHAMBER_WIDTH].setVisible(true);\n }\n for (Tile tile : map[CHAMBER_HEIGHT]) {\n tile.setVisible(true);\n }\n\n // Clear bugged walls\n for (int i = 1; i < MAP_HEIGHT - 2; i += 2)\n map[i][MAP_WIDTH - 2].setTerrain(Terrain.EMPTY);\n\n // Randomly make regulated holes in walls to create cycles\n Random rand = new Random(); // Preset rng for performance purposes\n for (int i = 1; i < MAP_HEIGHT - 1; i++) {\n for (int j = 1; j < MAP_WIDTH - 1; j++) {\n Tile tile = map[i][j];\n if (tile.getTerrain().equals(Terrain.WALL)) {\n\n // Neighbourhood Check\n int neighbourCount = 0, index = 0;\n boolean[] neighbourhood = new boolean[]{false, false, false, false}; // validity flags\n\n for (Direction direction : Direction.cardinals) {\n Coordinates targetCoordinates = Utility.locateDirection(tile.getPosition(), direction);\n Tile neighbour = getTileAtCoordinates(targetCoordinates);\n if (neighbour.getTerrain().equals(Terrain.WALL)) {\n neighbourCount++;\n neighbourhood[index] = true;\n }\n index++;\n }\n\n // Corner exclusion test, tests vertical NS and horizontal EW\n boolean isStraight = false;\n if (neighbourhood[0] && neighbourhood[1]) isStraight = true;\n if (neighbourhood[2] && neighbourhood[3]) isStraight = true;\n\n if (neighbourCount == 2 && isStraight) {\n if (rand.nextInt(5) == 4) tile.setTerrain(Terrain.EMPTY);\n }\n }\n }\n }\n\n // Check for enclosed spaces and create openings\n for (int i = 1; i < MAP_HEIGHT - 2; i++) probe(map[i][MAP_WIDTH - 2], Direction.EAST);\n }",
"public static void createMap()\n\t\t\t{\n\t\t\tmap = new Vector<Location>(4);\n\t\n\t\t\tLocation location1 = new Location(\"the southwest room.\",\"You see doors to the north and east.\");\n\t\t\tLocation location2 = new Location(\"the southeast room.\",\"You see doors to the north and west.\");\n\t\t\tLocation location3 = new Location(\"the northwest room.\",\"You see doors to the south and east.\");\n\t\t\tLocation location4 = new Location(\"the northeast room.\",\"You see doors to the south and west.\");\n\n\t\t\tmap.addElement(location1);\n\t\t\tmap.addElement(location2);\n\t\t\tmap.addElement(location3);\n\t\t\tmap.addElement(location4);\n\t\t\t\n\t\t\t// This section defines the exits found in each location and the \n\t\t\t// locations to which they lead.\n\t\t\tlocation1.addExit(new Exit(Exit.north, location3));\n\t\t\tlocation1.addExit(new Exit(Exit.east, location2));\n\t\t\tlocation2.addExit(new Exit(Exit.north, location4));\n\t\t\tlocation2.addExit(new Exit(Exit.west, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.south, location1));\n\t\t\tlocation3.addExit(new Exit(Exit.east, location4));\n\t\t\tlocation4.addExit(new Exit(Exit.west, location3));\n\t\t\tlocation4.addExit(new Exit(Exit.south, location2));\n\t\t\t\n\t\t\tcurrentLocation = location1;\t\t\t\t\n\t\t\t}",
"public void buildMap() {\n // CUBES ENGINE INITIALIZATION MOVED TO APPSTATE METHOD\n // Here we init cubes engine\n CubesTestAssets.registerBlocks();\n CubesSettings blockSettings = CubesTestAssets.getSettings(this.app);\n blockSettings.setBlockSize(5);\n //When blockSize = 5, global coords should be multiplied by 3 \n this.blockScale = 3.0f;\n this.halfBlockStep = 0.5f;\n \n testTerrain = new BlockTerrainControl(CubesTestAssets.getSettings(this.app), new Vector3Int(4, 1, 4));\n testNode = new Node();\n int wallHeight = 3;\n //testTerrain.setBlockArea(new Vector3Int(0, 0, 0), new Vector3Int(32, 1, 64), CubesTestAssets.BLOCK_STONE);\n this.testTerrain.setBlockArea( new Vector3Int(3,0,43), new Vector3Int(10,1,10), CubesTestAssets.BLOCK_STONE); // Zone 1 Floor\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,52), new Vector3Int(10,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,43), new Vector3Int(1,wallHeight,10), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(12,1,46), new Vector3Int(1,wallHeight,4)); // Door A\n \n this.testTerrain.setBlockArea( new Vector3Int(12,0,45), new Vector3Int(13,1,6), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(12,1,45), new Vector3Int(8,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(12,1,50), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea(new Vector3Int(19,0,42), new Vector3Int(6,1,3), CubesTestAssets.BLOCK_STONE); // Zone 2 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(19,1,42), new Vector3Int(1,wallHeight,3), CubesTestAssets.BLOCK_WOOD); //\n this.testTerrain.setBlockArea( new Vector3Int(24,1,42), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); //\n \n this.testTerrain.setBlockArea( new Vector3Int(15,0,26), new Vector3Int(18,1,17), CubesTestAssets.BLOCK_STONE); // Zone 3 Floor\n this.testTerrain.setBlockArea( new Vector3Int(15,1,42), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(18,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(15,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(32,1,26), new Vector3Int(1,wallHeight,17), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(20,1,42), new Vector3Int(4,wallHeight,1)); // Door B\n this.testTerrain.removeBlockArea( new Vector3Int(15,1,27), new Vector3Int(1,wallHeight,6)); // Door C\n \n this.testTerrain.setBlockArea( new Vector3Int(10,0,26), new Vector3Int(5,1,8), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor A\n this.testTerrain.setBlockArea( new Vector3Int(10,1,26), new Vector3Int(5,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,0,18), new Vector3Int(8,1,16), CubesTestAssets.BLOCK_STONE); // Zone 4 Floor B\n this.testTerrain.setBlockArea( new Vector3Int(3,1,18), new Vector3Int(1,wallHeight,16), CubesTestAssets.BLOCK_WOOD); // East Wall\n this.testTerrain.setBlockArea( new Vector3Int(10,1,18), new Vector3Int(1,wallHeight,9), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(3,1,33), new Vector3Int(13,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n \n this.testTerrain.setBlockArea( new Vector3Int(1,0,5), new Vector3Int(26,1,14), CubesTestAssets.BLOCK_STONE); // Zone 5\n this.testTerrain.setBlockArea( new Vector3Int(1,1,18), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // South Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(26,wallHeight,1), CubesTestAssets.BLOCK_WOOD); // North Wall\n this.testTerrain.setBlockArea( new Vector3Int(1,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // West Wall\n this.testTerrain.setBlockArea( new Vector3Int(26,1,5), new Vector3Int(1,wallHeight,14), CubesTestAssets.BLOCK_WOOD); // East Wall\n \n this.testTerrain.removeBlockArea( new Vector3Int(4,1,18), new Vector3Int(6,wallHeight,1)); // Door E\n \n // Populate the world with spawn points\n this.initSpawnPoints();\n \n //Add voxel world/map to collisions\n testTerrain.addChunkListener(new BlockChunkListener(){\n @Override\n public void onSpatialUpdated(BlockChunkControl blockChunk){\n Geometry optimizedGeometry = blockChunk.getOptimizedGeometry_Opaque();\n phyTerrain = optimizedGeometry.getControl(RigidBodyControl.class);\n if(phyTerrain == null){\n phyTerrain = new RigidBodyControl(0);\n optimizedGeometry.addControl(phyTerrain);\n bulletAppState.getPhysicsSpace().add(phyTerrain);\n }\n phyTerrain.setCollisionShape(new MeshCollisionShape(optimizedGeometry.getMesh()));\n }\n });\n \n testNode.addControl(testTerrain);\n rootNode.attachChild(testNode);\n }",
"private void prepare()\n {\n /**build the outer wall actor\n * width of wall: 50\n */\n //top wall\n for(int top = 0; top < 59; top++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + top * 50, 25);\n }\n //down wall\n for(int down = 0; down < 59; down++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25 + down * 50, 675);\n }\n //left wall\n for(int left = 1; left < 13; left++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(25, 25 + left * 50);\n }\n //right wall\n for(int right = 1; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2925, 25 + right * 50);\n }\n \n /**starting point of the cat */\n P1 p1 = new P1();\n addObject(p1, 133, 321);\n p1.setLocation(575, 125);\n \n //attach obsever to the cat\n HealthPointObserver hpObserver = new HealthPointObserver(p1);\n addObject(hpObserver, 800, 100);\n \n \n \n \n \n /**first page\n * x: 25 - 1025\n */\n //starting location\n for(int start = 0; start < 17; start++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(175 + start * 50, 175);\n }\n //page seperator\n for(int right = 1; right < 10; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1025, 25 + right * 50);\n }\n //jumpers\n Wall wall1 = new Wall();\n addObject(wall1, 32, 382);\n wall1.setLocation(175, 625);\n for(int jump = 0; jump < 2; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(275, 575 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(375, 475 + jump * 50);\n }\n for(int jump = 0; jump < 4; jump++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(525, 475 + jump * 50);\n }\n //set thorn\n Thorn thorn1 = new Thorn();\n addObject(thorn1, 32, 382);\n thorn1.setLocation(625, 625);\n Thorn thorn2 = new Thorn();\n addObject(thorn2, 32, 382);\n thorn2.setLocation(775, 625);\n Thorn thorn3 = new Thorn();\n addObject(thorn3, 32, 382);\n thorn3.setLocation(825, 625);\n \n /**second page \n * x: 1025 - 1975\n */\n //steps for left-top area\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 575);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1225 + step * 50, 375);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1075 + step * 50, 275);\n }\n Wall step1 = new Wall();\n addObject(step1, 32, 382);\n step1.setLocation(1225, 175);\n Wall step2 = new Wall();\n addObject(step2, 32, 382);\n step2.setLocation(1775, 125);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1875 + step * 50, 125);\n }\n //area seperator\n for(int right = 3; right < 13; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1325, 25 + right * 50);\n }\n for(int right = 0; right < 8; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + right * 50, 175);\n }\n //steps for right-down area\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 575);\n }\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1375 + step * 50, 475);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1825, step * 50 + 275);\n }\n for(int step = 0; step < 7; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1575 + step * 50, 375);\n }\n for(int step = 0; step < 5; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1775, step * 50 + 425);\n }\n //page seperator\n for(int right = 1; right < 11; right++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(1975, 25 + right * 50);\n }\n //set thorn\n Thorn thorn4 = new Thorn();\n addObject(thorn4, 32, 382);\n thorn4.setLocation(1125, 225);\n Thorn thorn5 = new Thorn();\n addObject(thorn5, 32, 382);\n thorn5.setLocation(1275, 325);\n Thorn thorn6 = new Thorn();\n addObject(thorn6, 32, 382);\n thorn6.setLocation(1875, 325);\n Thorn thorn7 = new Thorn();\n addObject(thorn7, 32, 382);\n thorn7.setLocation(1825, 625);\n Thorn thorn8 = new Thorn();\n addObject(thorn8, 32, 382);\n thorn8.setLocation(1825, 225);\n \n /**third page \n * x: 1975 - 2925\n */\n for(int step = 0; step < 4; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125 + step * 150, 625);\n }\n //jumper\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2025, step * 150 + 225);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2125, step * 150 + 175);\n }\n // Wall jump1 = new Wall();\n //addObject(jump1, 32, 382);\n //jump1.setLocation(2125, 525);\n for(int step = 0; step < 8; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2175, step * 50 + 175);\n }\n //hidden thorn\n Thorn thorn9 = new Thorn();\n addObject(thorn9, 32, 382);\n thorn9.setLocation(2225, 165);\n Wall jump2 = new Wall();\n addObject(jump2, 32, 382);\n jump2.setLocation(2275, 175);\n Wall jump3 = new Wall();\n addObject(jump3, 32, 382);\n jump3.setLocation(2225, 175);\n Wall jump4 = new Wall();\n addObject(jump4, 32, 382);\n jump4.setLocation(2325, 275);\n Wall jump5 = new Wall();\n addObject(jump5, 32, 382);\n jump5.setLocation(2525, 275);\n Wall jump6 = new Wall();\n addObject(jump6, 32, 382);\n jump6.setLocation(2225, 375);\n Wall jump7 = new Wall();\n addObject(jump7, 32, 382);\n jump7.setLocation(2275, 425);\n for(int step = 0; step < 6; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2425 + step * 50, 425);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2625 + step * 50, 375);\n }\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2725 + step * 50, 325);\n }\n Wall jump8 = new Wall();\n addObject(jump8, 32, 382);\n jump8.setLocation(2825, 275);\n for(int step = 0; step < 2; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2825 + step * 50, 125);\n }\n for(int step = 0; step < 3; step++)\n {\n Wall wall = new Wall();\n addObject(wall, 32, 382);\n wall.setLocation(2675, step * 50 + 475);\n }\n //set thorn\n Thorn thorn10 = new Thorn();\n addObject(thorn10, 32, 382);\n thorn10.setLocation(2825, 175);\n Thorn thorn11 = new Thorn();\n addObject(thorn11, 32, 382);\n thorn11.setLocation(2825, 625);\n Thorn thorn12 = new Thorn();\n addObject(thorn12, 32, 382);\n thorn12.setLocation(2775, 275);\n Thorn thorn13 = new Thorn();\n addObject(thorn13, 32, 382);\n thorn13.setLocation(2675, 325);\n Thorn thorn14 = new Thorn();\n addObject(thorn14, 32, 382);\n thorn14.setLocation(2875, 425);\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2025, sharp * 150 + 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2125, sharp * 150 + 225);\n }\n //wheel-thorn\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 225);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2375 + sharp * 200, 275);\n }\n for(int sharp = 0; sharp < 2; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 200, 325);\n }\n //three-limit\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 475);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2275 + sharp * 150, 575);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2225 + sharp * 150, 525);\n }\n for(int sharp = 0; sharp < 3; sharp++)\n {\n Thorn thorn = new Thorn();\n addObject(thorn, 32, 382);\n thorn.setLocation(2325 + sharp * 150, 525);\n }\n }",
"@Test\n\tpublic void testRoomExit()\n\t{\n\t\t// Take one step, essentially just the adj list\n\t\tboard.calcTargets(18, 21, 1);\n\t\tSet<BoardCell> targets= board.getTargets();\n\t\t// Ensure doesn't exit through the wall\n\t\tassertEquals(1, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 21)));\n\t\t// Take two steps\n\t\tboard.calcTargets(18, 21, 2);\n\t\ttargets= board.getTargets();\n\t\tassertEquals(3, targets.size());\n\t\tassertTrue(targets.contains(board.getCellAt(17, 22)));\n\t\tassertTrue(targets.contains(board.getCellAt(16, 21)));\n\t\tassertTrue(targets.contains(board.getCellAt(17, 20)));\n\t}",
"private void reachAllValidPoint(int[][] tempMap, int i, int j) {\n\n\t\ttempMap[i][j] = 0;\n\t\t\n\t\t//moving in edge\n\t\tif (j > 0\n\t\t\t\t&& tempMap[i][j - 1] == 1\n\t\t\t\t&& (mapElementArray[i][j - 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j - 1] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j - 1);\n\t\t}\n\t\tif (j + 1 < width\n\t\t\t\t&& tempMap[i][j + 1] == 1\n\t\t\t\t&& (mapElementArray[i][j + 1] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i][j + 1] instanceof Teleporter || mapElementArray[i][j + 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, j + 1);\n\t\t}\n\t\tif (i - 1 >= 0\n\t\t\t\t&& tempMap[i - 1][j] == 1\n\t\t\t\t&& (mapElementArray[i - 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i - 1][j] instanceof Teleporter || mapElementArray[i][j - 1] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i - 1, j);\n\t\t}\n\t\tif (i + 1 < height\n\t\t\t\t&& tempMap[i + 1][j] == 1\n\t\t\t\t&& (mapElementArray[i + 1][j] instanceof Item\n\t\t\t\t\t\t|| mapElementArray[i + 1][j] instanceof Teleporter || mapElementArray[i + 1][j] instanceof PlayerSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i + 1, j);\n\t\t}\n\t\t\n\t\t//moving at edge, must consider if this point is a RandPaar\n\t\tif (i == 0 && tempMap[height - 1][j] == 1\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[height - 1][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, height - 1, j);\n\t\t} else if (i == height - 1 && tempMap[0][j] == 1\n\t\t\t\t&& !(mapElementArray[0][j] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[0][j] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, 0, j);\n\t\t} else if (j == 0 && tempMap[i][width - 1] == 1\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][width - 1] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, width - 1);\n\t\t} else if (j == width - 1 && tempMap[i][0] == 1\n\t\t\t\t&& !(mapElementArray[i][0] instanceof Wall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof InvisibleWall)\n\t\t\t\t&& !(mapElementArray[i][0] instanceof GhostSpawnPoint)) {\n\t\t\treachAllValidPoint(tempMap, i, 0);\n\t\t}\n\t}",
"public void drawMap() {\n\t\tRoad[] roads = map.getRoads();\r\n\t\tfor (Road r : roads) {\r\n\t\t\tif (r.turn) {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road = true;\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_vert = true;\r\n\t\t\t} else if (r.direction == Direction.NORTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_north = true;\r\n\t\t\telse if (r.direction == Direction.SOUTH)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_south = true;\r\n\t\t\telse if (r.direction == Direction.WEST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_west = true;\r\n\t\t\telse if (r.direction == Direction.EAST)\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].oneway_road_east = true;\r\n\t\t\ttry {\r\n\t\t\t\tcity_squares[r.location.y][r.location.x].updateImage();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n char [][] strtMaze = new char[][]{\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n {'#', '.', '.', '.', '#', '.', '.', '.', '.', '.', '.', '#'},\n {'.', '.', '#', '.', '#', '.', '#', '#', '#', '#', '.', '#'},\n {'#', '#', '#', '.', '#', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '#', '#', '#', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '.', '#', 'F', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '#', '.', '#', '.', '#', '.', '#', '.', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '.', '.', '#', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '.', '#', '#', '#', '.', '#'},\n {'#', '.', '.', '.', '.', '.', '.', '#', '.', '.', '.', '#'},\n {'#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#'},\n };\n //Get start position of person\n int pstartx = 2;\n int pstarty = 0;\n //Get start position of hand\n int hstartx = 3; //If same as pstart(facing north south)\n int hstarty = 0;//If same as pstart (facing east west)\n RecursionOutLab maze1 = new RecursionOutLab();\n maze1.maze(strtMaze, pstartx, pstarty, hstartx, hstarty);\n }",
"@Override\n\tpublic void populateMap(CityWorldGenerator generator, PlatMap platmap) {\n\t\tgetSchematics(generator).populate(generator, platmap);\n\t\t\n\t\t// random fluff!\n\t\tOdds platmapOdds = platmap.getOddsGenerator();\n\t\tShapeProvider shapeProvider = generator.shapeProvider;\n\t\tint waterDepth = ParkLot.getWaterDepth(platmapOdds);\n\t\t\n\t\t// backfill with buildings and parks\n\t\tfor (int x = 0; x < PlatMap.Width; x++) {\n\t\t\tfor (int z = 0; z < PlatMap.Width; z++) {\n\t\t\t\tPlatLot current = platmap.getLot(x, z);\n\t\t\t\tif (current == null) {\n\t\t\t\t\t\n\t\t\t\t\t//TODO I need to come up with a more elegant way of doing this!\n\t\t\t\t\tif (generator.settings.includeBuildings) {\n\n\t\t\t\t\t\t// what to build?\n\t\t\t\t\t\tboolean buildPark = platmapOdds.playOdds(oddsOfParks);\n\t\t\t\t\t\tif (buildPark)\n\t\t\t\t\t\t\tcurrent = getPark(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z, waterDepth);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tcurrent = getBackfillLot(generator, platmap, platmapOdds, platmap.originX + x, platmap.originZ + z);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// see if the previous chunk is the same type\n\t\t\t\t\t\tPlatLot previous = null;\n\t\t\t\t\t\tif (x > 0 && current.isConnectable(platmap.getLot(x - 1, z))) {\n\t\t\t\t\t\t\tprevious = platmap.getLot(x - 1, z);\n\t\t\t\t\t\t} else if (z > 0 && current.isConnectable(platmap.getLot(x, z - 1))) {\n\t\t\t\t\t\t\tprevious = platmap.getLot(x, z - 1);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// if there was a similar previous one then copy it... maybe\n\t\t\t\t\t\tif (previous != null && !shapeProvider.isIsolatedLotAt(platmap.originX + x, platmap.originZ + z, oddsOfIsolatedLots)) {\n\t\t\t\t\t\t\tcurrent.makeConnected(previous);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t// 2 by 2 at a minimum if at all possible\n\t\t\t\t\t\t} else if (!buildPark && x < PlatMap.Width - 1 && z < PlatMap.Width - 1) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// is there room?\n\t\t\t\t\t\t\tPlatLot toEast = platmap.getLot(x + 1, z);\n\t\t\t\t\t\t\tPlatLot toSouth = platmap.getLot(x, z + 1);\n\t\t\t\t\t\t\tPlatLot toSouthEast = platmap.getLot(x + 1, z + 1);\n\t\t\t\t\t\t\tif (toEast == null && toSouth == null && toSouthEast == null) {\n\t\t\t\t\t\t\t\ttoEast = current.newLike(platmap, platmap.originX + x + 1, platmap.originZ + z);\n\t\t\t\t\t\t\t\ttoEast.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x + 1, z, toEast);\n\n\t\t\t\t\t\t\t\ttoSouth = current.newLike(platmap, platmap.originX + x, platmap.originZ + z + 1);\n\t\t\t\t\t\t\t\ttoSouth.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x, z + 1, toSouth);\n\n\t\t\t\t\t\t\t\ttoSouthEast = current.newLike(platmap, platmap.originX + x + 1, platmap.originZ + z + 1);\n\t\t\t\t\t\t\t\ttoSouthEast.makeConnected(current);\n\t\t\t\t\t\t\t\tplatmap.setLot(x + 1, z + 1, toSouthEast);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\t// remember what we did\n\t\t\t\t\tif (current != null)\n\t\t\t\t\t\tplatmap.setLot(x, z, current);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// validate each lot\n\t\tfor (int x = 0; x < PlatMap.Width; x++) {\n\t\t\tfor (int z = 0; z < PlatMap.Width; z++) {\n\t\t\t\tPlatLot current = platmap.getLot(x, z);\n\t\t\t\tif (current != null) {\n\t\t\t\t\tPlatLot replacement = current.validateLot(platmap, x, z);\n\t\t\t\t\tif (replacement != null)\n\t\t\t\t\t\tplatmap.setLot(x, z, replacement);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void main(String[] args) {\n Map map = Experiment.getAverageMapManyHoles();\n ArrayList<AbstractAgent> agents = new ArrayList<>();\n JFrame frame = new JFrame();\n Floor floor = map.getFloors().iterator().next();\n\n MapViewPanel panel = new MapViewPanel(map, agents);\n KeyboardInputListener l = new KeyboardInputListener();\n frame.addKeyListener(l);\n\n MinimalPathOverseer overseer = new MinimalPathOverseer(map);\n panel.setMinimalPathOverseer(overseer);\n for(int i = 0 ; i < overseer.getAmountOfAgents(); i++)\n {\n agents.add(overseer.getAgent(i));\n }\n\n Engine simulationEngine = new Engine(map, agents, panel, 60);\n\n// CoordinatorEvaderKillKillKillEmAll hunter = new CoordinatorEvaderKillKillKillEmAll(simulationEngine,map, floor, map.getEvaderSpawnLocation(), Direction.SOUTH, 5,\n// EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, agents,false);\n// hunter.setViewPort(panel);\n\n //agents.add(new RandomAgent(map, floor, new Vector2D(200.0, 100.0), Direction.NORTH, 5, 100, 120));\n agents.add(new UserAgent(map, floor, new Vector2D(200.0, 320.0), Direction.NORTH, 5, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, l, true));\n //agents.add(new RandomAgent(map, floor, new Vector2D(200.0, 320.0), Direction.NORTH, 5, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE, true));\n// agents.add(new DistanceAgent(map, floor, map.getEvaderSpawnLocation(), Direction.NORTH, EngineConstants.AGENT_RADIUS, EngineConstants.VISION_RANGE, EngineConstants.VISION_ANGLE));\n\n\n frame.getContentPane().add(panel);\n frame.pack();\n frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n frame.setVisible(true);\n Future<Integer> f = simulationEngine.start();\n while (!f.isDone()){\n try{\n Thread.sleep(1000);\n }\n catch (Exception e){\n // lol\n }\n }\n try{\n System.out.printf(\"iterations: %d\", f.get());\n }\n catch (Exception lol){\n lol.printStackTrace();\n }\n\n\n //drawFrame(frame, map, visibilityGraph, null);\n }",
"public void tick() {\n\t\tif (mainRef.player().getPos()[1] <= lastEnd.getPos()[1] + 2000)\r\n\t\t\tloadNextMap();\r\n\r\n\t\tfor (GameObject go : gameObjects)\r\n\t\t\tgo.tick();\r\n\r\n\t\t// Check Player Collision\r\n\t\t// Top-Left\r\n\t\tPointColObj cTL = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Top-Right\r\n\t\tPointColObj cTR = new PointColObj(mainRef.player().getPos()[0] + mainRef.player().getCol()[2],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\t\t// Bottom-Left\r\n\t\tPointColObj cBL = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3]);\r\n\t\t// Bottom-Right\r\n\t\tPointColObj cBR = new PointColObj(\r\n\t\t\t\tmainRef.player().getPos()[0] + mainRef.player().getCol()[2] + mainRef.player().getCol()[0],\r\n\t\t\t\tmainRef.player().getPos()[1] + mainRef.player().getCol()[3] + mainRef.player().getCol()[1]);\r\n\r\n\t\t// Inverse Collision, no part of the player's ColBox should be not\r\n\t\t// colliding...\r\n\t\tif (checkCollisionWith(cTL).size() == 0 || checkCollisionWith(cTR).size() == 0\r\n\t\t\t\t|| checkCollisionWith(cBL).size() == 0 || checkCollisionWith(cBR).size() == 0) {\r\n\t\t\t// If it would have left the bounding box of the floor, reverse the\r\n\t\t\t// player's posiiton\r\n\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t} else\r\n\t\t\tmainRef.player().setMoveBack(false);\r\n\r\n\t\t// Check General Collision\r\n\t\tArrayList<GameObject> allCol = checkCollisionWith(mainRef.player());\r\n\t\tfor (GameObject go : allCol) {\r\n\t\t\tif (go instanceof Tile) {\r\n\t\t\t\tTile gameTile = (Tile) go;\r\n\t\t\t\tif (gameTile.getType() == GameObjectRegistry.TILE_WALL\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_BASE\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_DOOR\r\n\t\t\t\t\t\t|| gameTile.getType() == GameObjectRegistry.TILE_SEWER\r\n\t\t\t\t\t\t|| (gameTile.getType() == GameObjectRegistry.TILE_WATERFALL && gameTile.getVar() == 0)) {\r\n\t\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t} else if (go instanceof LineColObjHor || go instanceof LineColObjVert) {\r\n\t\t\t\tmainRef.player().setMoveBack(true);\r\n\t\t\t\tbreak;\r\n\t\t\t} else if (go instanceof SkillDrop) {\r\n\t\t\t\tSkillDrop d = (SkillDrop) go;\r\n\t\t\t\tmainRef.player().getInv()[d.getVariation()]++;\r\n\t\t\t\tremoveGameObject(go);\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t}",
"@Override\n \tpublic void update() {\n \t\tif (!constructing) {\n \t\t\t// not constructing means the pellet is still traveling through\n \t\t\t// space\n \n \t\t\t// move the pellet\n \t\t\tVector3f.add(pos, vel, pos);\n \n \t\t\t// if it's too old, kill it\n \t\t\tif (Main.timer.getTime() - birthday > 5) {\n \t\t\t\talive = false;\n \t\t\t} else {\n \t\t\t\t// if the pellet is not dead yet, see if it intersected anything\n \n \t\t\t\t// did it hit another pellet?\n \t\t\t\tPellet neighbor_pellet = queryOtherPellets();\n \n \t\t\t\t// did it hit a line or plane?\n \t\t\t\tVector3f closest_point = queryScaffoldGeometry();\n \n \t\t\t\tif (neighbor_pellet != null) {\n \t\t\t\t\talive = false;\n \n\t\t\t\t\tif (neighbor_pellet == current_cycle.lastElement()){\n\t\t\t\t\t\tSystem.out.println(\"shot at same pellet\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\t\n \t\t\t\t\tif (!(neighbor_pellet instanceof PolygonPellet)) {\n \t\t\t\t\t\tMain.all_dead_pellets_in_world.add(neighbor_pellet);\n \t\t\t\t\t\tneighbor_pellet = new PolygonPellet(neighbor_pellet);\n \t\t\t\t\t\tMain.new_pellets_to_add_to_world.add(neighbor_pellet);\n \t\t\t\t\t}\n \n \t\t\t\t\t// if neighbor pellet's class is not PolygonPellet...\n \t\t\t\t\t// neighbor_pellet = new PolygonPellet(neighbor_pellet)\n \t\t\t\t\t// copy the position and stuff from the line/plane\n \t\t\t\t\t// pellet into the new polygon pellet\n \t\t\t\t\t// then go and add it to this cycle\n \t\t\t\t\t// hopefully it changes in the actual array of world\n \t\t\t\t\t// pellets\n \t\t\t\t\t// if not, remove that pellet from all world pelelts and\n \t\t\t\t\t// then add the new one to the end\n \n \t\t\t\t\tcurrent_cycle.add((PolygonPellet) neighbor_pellet);\n \t\t\t\t\tif (current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1)) {\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t\t} else {\n \t\t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t\t}\n \n \t\t\t\t} else if (closest_point != null) {\n \t\t\t\t\tSystem.out.println(\"pellet stuck to some geometry\");\n \t\t\t\t\tconstructing = true;\n \n \t\t\t\t\tpos.set(closest_point);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\tmakeLine();\n \t\t\t\t\t}\n \n \t\t\t\t\tif (current_cycle.size() > 2\n \t\t\t\t\t\t\t&& current_cycle.get(0) == current_cycle\n \t\t\t\t\t\t\t\t\t.get(current_cycle.size() - 1))\n \t\t\t\t\t\tmakePolygon();\n \t\t\t\t} else if (Main.draw_points) {\n \t\t\t\t\t// if it's not dead yet and also didn't hit a\n \t\t\t\t\t// neighboring\n \t\t\t\t\t// pellet, look for nearby points in model\n \t\t\t\t\tint neighbors = queryKdTree(pos.x, pos.y, pos.z, radius);\n \n \t\t\t\t\t// is it near some points?!\n \t\t\t\t\tif (neighbors > 0) {\n \t\t\t\t\t\tconstructing = true;\n \t\t\t\t\t\tsetInPlace();\n \n \t\t\t\t\t\tsnapToCenterOfPoints();\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS)\n \t\t\t\t\t\t\tcurrent_cycle.add(this);\n \n \t\t\t\t\t\tif (CONNECT_TO_PREVIOUS && current_cycle.size() > 1) {\n \t\t\t\t\t\t\tmakeLine();\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \n \t\t\t\tif (current_cycle.size() > 0)\n \t\t\t\t\tcurrent_cycle.get(0).setAsFirstInCycle();\n \n \t\t\t\tif (constructing == true) {\n \t\t\t\t\tActionTracker.newPolygonPellet(this);\n \t\t\t\t}\n \t\t\t}\n \t\t} else {\n \t\t\t// the pellet has stuck... here we just give it a nice growing\n \t\t\t// bubble animation\n \t\t\tif (radius < max_radius) {\n \t\t\t\tradius *= 1.1;\n \t\t\t}\n \t\t}\n \t}",
"private void createMaps() {\r\n\t\tint SIZE = 100;\r\n\t\tint x = 0, y = -1;\r\n\t\tfor (int i = 0; i < SIZE; i++) {\r\n\t\t\tif (i % 10 == 0) {\r\n\t\t\t\tx = 0;\r\n\t\t\t\ty = y + 1;\r\n\t\t\t}\r\n\t\t\tshipStateMap.put(new Point(x, y), 0);\r\n\t\t\tshipTypeMap.put(new Point(x, y), 0);\r\n\t\t\tx++;\r\n\t\t}\r\n\t}",
"public void algorithm() {\n\t\tpoly = data.getPolygon();\n\t\tint ps = poly.size();\n\t\tint iterations = 0;\t\t// if iterations == ps, then we've seen every wall in the maze\n\t\t// the current position\n\t\tpos = data.getNavigatorPos();\n\t\t// the current los\n\t\tlos = data.getLOSPoint();\n\t\t// save the start LOS\n\t\tPoint a = data.getLOSLine().p1;\n\t\tPoint b = data.getLOSLine().p2;\n\t\tPoint prev = null;\n\t\t\n\t\t// pick a direction\n\t\tint direction = 1;\n\t\tif( Math.random() > 0.5 ) {\n\t\t\tdirection = -1;\n\t\t\ta = b;\n\t\t\tb = data.getLOSLine().p1;\n\t\t}\n\t\t// currently, A is the 'previous' point, B is in the direction of the next one\n\t\t\n\t\t// get the index of point B in the polygon\n\t\tint index = -1;\n\t\tfor(int i = 0; i < ps; i++) {\n\t\t\tPoint t = poly.get(i);\n\t\t\tif( t.equals( b ) ) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\twhile( iterations < ps && !Thread.currentThread().isInterrupted() ) {\n\t\t\t\tif( iterations != 0 )\n\t\t\t\t\tsleep( 1000 );\n\t\t\t\titerations++;\n\t\t\t\tdata.resetLinesToDraw();\n\t\t\t\tdata.resetPointsToDraw();\n\t\t\t\tcontroller.repaint();\n\t\t\t\tindex = (index + direction) % ps;\n\t\t\t\tif( index < 0) index += ps;\n\t\t\t\tprev = a;\t// we need this for the concave case\n\t\t\t\ta = b;\n\t\t\t\tb = poly.get(index);\n\t\t\t\t// check if we have a clear line of sight on the ENTIRE next wall:\n\t\t\t\tif( hasLosOnEntireWall(a,b) ) {\n\t\t\t\t\t// move towards the wall we are CURRENTLY facing\n\t\t\t\t\tPoint m = g.getPointOnLine(pos, los, data.getPolygon());\n\t\t\t\t\tupdatePos(m);\n\t\t\t\t}\n\t\t\t\t// check whether we are in the convex or concave case\n\t\t\t\tboolean convex = g.pointsOnSameSideOfLine(pos, b, prev, a);\n\t\n\t\t\t\tif( convex ) {\n\t\t\t\t\tgetLosOnWall(a,b);\n\t\t\t\t\tsleep( 500 );\n\t\t\t\t\tdata.resetLinesToDraw();\n\t\t\t\t\tdata.resetPointsToDraw();\n\t\t\t\t\tcontroller.repaint();\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"CONVEX!\");\n\t\t\t\t\t// extend the prev/a line and get a point on that line\n\t\t\t\t\tPoint target = g.extendPolygonLine(prev, a, poly);\n\t\t\t\t\tPoint p = g.getPointOnLine(a, target, data.getPolygon());\n\t\t\t\t\tmoveToPoint(p, target);\n\t\t\t\t\t\n\t\t\t\t\tArrayList<Point> inTriangle = g.pointsInTriangle(poly, pos, a, b);\n\t\t\t\t\tif( inTriangle == null) {\n\t\t\t\t\t\tupdateLOS( g.getPointOnLine(a, b, data.getPolygon()));\n\t\t\t\t\t\tredrawAndSleep(300);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tArrayList<Point> intersects = new ArrayList<Point>();\n\t\t\t\t\t\tfor(int i = 0, is = inTriangle.size(); i < is; i++)\n\t\t\t\t\t\t\tintersects.add( g.lineIntersect(pos, inTriangle.get(i), a, b));\n\t\t\t\t\t\tg.orderPoints(intersects, a, b);\n\t\t\t\t\t\tupdateLOS( g.getPointOnLine(a, intersects.get(0), data.getPolygon()));\n\t\t\t\t\t}\n\t\t\t\t\t//getLosOnWall(a,b);\n\t\t\t\t}\n\t\t\t\tsleep( 500 );\n\t\t\t}\n\t\t\tcontroller.algorithmDone();\n\t\t} catch( InterruptedException e) {\n\t\t\t// apparently we were interrupted :P so stop\n\t\t}\n\t}",
"public static void main(String[] args) {\n Map map=new Map();\n Actions actions=new Actions();\n Random rnd = new Random();\n int end = rnd.nextInt((110 - 70) + 1) + 70;\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"\\033[36m\"+\" You wake up on a abandoned spaceship. Try to survive.\"+\"\\033[0m\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(\"- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -\");\n System.out.println(map.getMapObject(3,1).getDescriptionObject());\n while(actions.getMoves()<end&&!actions.getEscapePod()){\n if(actions.getMoves()%8==0)\n System.out.println(\"The ship is creeking!\");\n System.out.println(\"x: \"+actions.getX()+\"\\n\" +\n \"y: \"+actions.getY());\n map.printMap(actions.getX(), actions.getY());\n actions.input();\n }\n if(actions.getMoves()>20)\n {\n System.out.println(\"Game Over\");\n }\n else\n {\n System.out.println(\"Mission complete\");\n System.out.println(\"You beat the game in \"+actions.getMoves()+\" moves.\");\n }\n }",
"@Test\r\n\tpublic void testRoomExit()\r\n\t{\r\n\t\t// Take one step, essentially just the adj list\r\n\t\tboard.calcTargets(8, 2, 1);\r\n\t\tSet<BoardCell> targets= board.getTargets();\r\n\t\t// Ensure doesn't exit through the wall\r\n\t\tassertEquals(1, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 2)));\r\n\t\t// Take two steps\r\n\t\tboard.calcTargets(8, 2, 2);\r\n\t\ttargets= board.getTargets();\r\n\t\tassertEquals(3, targets.size());\r\n\t\tassertTrue(targets.contains(board.getCellAt(10, 2)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 3)));\r\n\t\tassertTrue(targets.contains(board.getCellAt(9, 1)));\r\n\t}",
"public static void main(String[] args) {\n double radius = 256.0 / (Math.toRadians(MAX_LON) * 2);\n double maxLat = Math.toDegrees((Math.atan(Math.exp(256.0 / (radius * 2))) - (Math.PI / 4)) * 2);\n System.out.println(radius);\n System.out.println(maxLat);\n for (int i = 0; i <= 20; i++)\n {\n double r = LEVEL_1_RADIUS * Math.pow(2, i);\n MercatorProjector projector = new MercatorProjector(r, MAX_LAT);\n System.out.printf(\"%d :: Width = %f; Height = %f; Radius = %f\\n\", i, projector.getWidth(), projector.getHeight(), r);\n }\n }",
"@Test\n public void tieBreakByMeeples() throws Exception{\n\n islandMap.addTileToMap(606, 0);\n islandMap.addTileToMap(607, 60);\n islandMap.addTileToMap(809,0);\n buildme.build(player1, islandMap,1, 807);\n\n islandMap.addTileToMap(609,60);\n islandMap.addTileToMap(611,0);\n islandMap.addTileToMap(612,60);\n islandMap.addTileToMap(614,0);\n\n buildme.build(player2, islandMap, 1, 610);\n buildme.build(player2, islandMap, 1,815);\n\n Assert.assertEquals(2, final1.tieBreaker(player1,player2));\n }",
"private void begin(){\n for(int i = 0; i < height; i++){ //y\n for(int j = 0; j < width; j++){ //x\n for(int k = 0; k < ids.length; k++){\n if(m.getTileids()[j][i].equals(ids[k])){\n map[j][i] = Handler.memory.getTiles()[k];\n //Handler.debug(\"is tile null: \" + (Handler.memory.getTiles()[k] == null));\n \n k = ids.length;\n }else if(k == (ids.length - 1)){\n Handler.debug(\"something went wrong\", true);\n\n }\n }\n }\n }\n mt.setCleared(clear);\n mt.setMap(map);\n \n \n }",
"private void generateMap(){\n int[] blockStepX = {X_STEP, 0, -X_STEP, -X_STEP, 0, X_STEP};\n int[] blockStepY = {Y_STEP_ONE, Y_STEP_TWO, Y_STEP_ONE, -Y_STEP_ONE, -Y_STEP_TWO, -Y_STEP_ONE};\n int blockSpecialValue = 0;\n int cellSpecial = 0;\n\n mapCells[origin.x/10][origin.y/10] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n cellGrid[0][0][0] = new EschatonCell(new CellPosition(0, 0, 0),\n new Point(origin.x, origin.y), blockSpecialValue);\n\n for (int distanceFromOrigin = 0; distanceFromOrigin < config.getSizeOfMap();\n distanceFromOrigin++){\n\n int[] blockXVals = {origin.x,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x + X_STEP * distanceFromOrigin,\n origin.x,\n origin.x - X_STEP * distanceFromOrigin,\n origin.x - X_STEP * distanceFromOrigin};\n\n int[] blockYVals = {origin.y - Y_STEP_TWO * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y + Y_STEP_TWO * distanceFromOrigin,\n origin.y + Y_STEP_ONE * distanceFromOrigin,\n origin.y - Y_STEP_ONE * distanceFromOrigin};\n\n blockSpecialValue = getRandomNumber(distanceFromOrigin, 0, 0);\n\n for (int block = 0; block < NUMBER_OF_BLOCKS; block ++){\n\n int blockXOrdinal = blockXVals[block];\n int blockYOrdinal = blockYVals[block];\n\n for (int blockSize = 0; blockSize < distanceFromOrigin; blockSize++){\n if(blockSpecialValue == blockSize){\n cellSpecial = getRandomNumber(2, 1, 1);\n }else {\n cellSpecial = 0;\n }\n cellGrid [distanceFromOrigin][block+1][blockSize+1] = makeNewCell(\n new CellPosition(distanceFromOrigin,block+1, blockSize+1),\n new Point(blockXOrdinal + blockStepX[block] * (blockSize + 1),\n blockYOrdinal + blockStepY[block] * (blockSize + 1)), cellSpecial);\n }\n }\n }\n }",
"public Position findWeed() {\n int xVec =0;\n int yVec=0;\n int sum = 0;\n Position move = new Position(0, 0);\n for (int i = 0; i < this.WORLD.getMapSize().getX(); i++) {\n for (int j = 0; j < this.WORLD.getMapSize().getY(); j++) {\n\n //hogweed\n Organism organism = this.WORLD.getOrganism(i, j);\n if(organism!=null){\n Class c = organism.getClass();\n if (c.getSimpleName().equals(\"Parnsip\")) {\n int tmpX = Math.abs(this.position.getX() - i);\n int tmpY = Math.abs(this.position.getY() - j);\n if (!(xVec == 0 && yVec == 0)) {\n int tmpSum = tmpX + tmpY;\n if (sum > tmpSum) {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpSum;\n this.setMove(move, j, i);\n }\n }\n else {\n xVec=tmpX;\n yVec=tmpY;\n sum = tmpX + tmpY;\n this.setMove(move, j, i);\n }\n }\n }\n\n }\n }\n return move;\n }",
"public void run(){\n double PTecoule;\n double PSegment;\n double PMemSeg;\n int j, i;\n double Segment = 0;\n double MemSeg = 0;\n double TEco;\n double TSec;\n \n i = 0;\n\n System.out.println(i);\n Calc.StartTime();\n\n TEco = System.currentTimeMillis() - Calc.GetStartTime() ;\n TSec = Calc.getTimeSec()*60 ;\n PTecoule = 0;\n PMemSeg = 0;\n PSegment = 1;\n Drone = new MapMarkerDot(\"D1\",route.get(0));\n Drone.setColor(Color.green);\n Drone.setBackColor(Color.green);\n Map.addMapMarker(Drone);\n Map.repaint();\n while(((System.currentTimeMillis() - Calc.GetStartTime())/1000 < TSec && i < Calc.getPOI())||((PTecoule-PMemSeg)/PSegment)<1){\n \n try {\n if(PTecoule > (MemSeg+Segment)/Calc.getDistance()){\n i++;\n //System.out.println(\"I'm in pause as Marseillais\");\n \n System.out.println(TEco);\n //Thread.sleep(30000);\n //System.out.println(\"Pause terminated\");\n }\n //this.Map.repaint();\n PTecoule = TEco/TSec;\n MemSeg = 0;\n for(j = 0 ; j <= i ; j++){\n Segment = Calc.CalcDist(route.get(j), route.get(j+1));\n if(j < i) MemSeg = MemSeg + Segment;\n }\n PSegment = Segment / Calc.getDistance();\n PMemSeg = MemSeg / Calc.getDistance();\n TEco = ((System.currentTimeMillis() - Calc.GetStartTime()/*- (30000*i)*/)/1000) ;\n Thread.sleep(500);\n\n Map.removeMapMarker(Drone);\n Drone = new MapMarkerDot(\"D1\",Calc.getCoorDrone(route.get(i), route.get(i+1), (PTecoule-PMemSeg)/PSegment));\n HTTP.putPos(Drone.getCoordinate(), this.id);\n Map.addMapMarker(Drone);\n /*Drone.setLat(Calc.getCoorDrone(route.get(i), route.get(i+1), (PTecoule-PMemSeg)/PSegment).getLat());\n Drone.setLon(Calc.getCoorDrone(route.get(i), route.get(i+1), (PTecoule-PMemSeg)/PSegment).getLon());\n */\n Drone.setColor(Color.green);\n Drone.setBackColor(Color.green);\n Map.repaint();\n \n \n\n } catch (InterruptedException ex) { \n Logger.getLogger(OngDraw.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(ThreadCalc.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n System.out.println(\"Work terminated\");\n }",
"@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }",
"public static void main(String[] args) {\n \n while (true) {\n Map.Initialize(); \n Map.MakeMove(MakeMove());\n }\n \n }",
"@Override\n public void run() {\n \n // For testing\n int maxFrontierLocations = 0;\n int maxOccupied = 0;\n \n while (true) {\n try {\n Thread.sleep(10);\n } catch (InterruptedException e) {\n e.printStackTrace();\n break;\n }\n if (paused){\n continue;\n }\n for (int i = 0; i < robotNames.size(); i++) {\n String name = robotNames.get(i);\n Robot robot = robotController.getRobot(name);\n if (measurementHandlers.get(name).updateMeasurement() == false) {\n continue;\n }\n\n Position robotPosition = measurementHandlers.get(name).getRobotPosition();\n Angle robotAngle = measurementHandlers.get(name).getRobotHeading();\n\n int[]position = {(int)Math.round(robotPosition.getXValue()), (int)Math.round(robotPosition.getYValue())};\n robot.setPosition(position);\n robot.setRobotOrientation((int)Math.round(robotAngle.getValue()));\n\n // Find the location of the robot in the map\n map.resize(robotPosition);\n MapLocation robotLocation = map.findLocationInMap(robotPosition);\n\n Sensor[] sensors = measurementHandlers.get(name).getIRSensorData();\n for(Sensor sensor: sensors){\n boolean tooClose = false;\n \n // Check the distance between the position of the measurement and all the other robots\n for(int j = 0; j < robotNames.size(); j++){\n String otherName = robotNames.get(j);\n int[] otherPositionInt = robotController.getRobot(otherName).getPosition();\n Position otherPosition = new Position(otherPositionInt[0], otherPositionInt[1]);\n if(Position.distanceBetween(otherPosition, sensor.getPosition()) < 10){\n tooClose = true;\n break;\n }\n }\n \n // The measurement is only added to the map if it is at a certain distance to the other robots\n if(!tooClose){\n map.resize(sensor.getPosition());\n MapLocation measurementLocation = map.findLocationInMap(sensor.getPosition());\n if(sensor.isMeasurement()){\n map.addMeasurement(measurementLocation, true);\n }\n \n // Create a measurements indicating no obstacle in the sensors line of sight\n ArrayList<MapLocation> lineOfSight = getLineBetweenPoints(robotLocation, measurementLocation);\n for (MapLocation location : lineOfSight) {\n map.addMeasurement(location, false);\n }\n }\n }\n }\n \n /*\n if (debug) {\n int frontierLocations = map.getFrontierLocations().size();\n if (frontierLocations > maxFrontierLocations) {\n maxFrontierLocations = frontierLocations;\n }\n System.out.println(\"Max frontier locations: \" + maxFrontierLocations);\n \n int cellCount = 0;\n for (int i = map.getBottomRow(); i <= map.getTopRow(); i++) {\n for (int j = map.getLeftColumn(); j <= map.getRightColumn(); j++) {\n MapLocation location = new MapLocation(i, j);\n Cell cell = map.findCell(location);\n if (cell.isOccupied()) {\n cellCount++;\n }\n }\n }\n if (cellCount > maxOccupied) {\n maxOccupied = cellCount;\n }\n System.out.println(\"Max occupied locations: \" + maxOccupied);\n }\n */\n }\n }",
"private void generateMap() {\n\n\t\t//Used to ensure unique locations of each Gameboard element\n\t\tboolean[][] spaceUsed = new boolean[12][12];\n\n\t\t//A running total of fences generated\n\t\tint fencesGenerated = 0;\n\n\t\t//A running total of Mhos generated\n\t\tint mhosGenerated = 0;\n\n\t\t//Fill the board with spaces and spikes on the edge\n\t\tfor (int i = 0; i < 12; i++) {\n\t\t\tfor (int j = 0; j < 12; j++) {\n\t\t\t\tmap[i][j] = new BlankSpace(i, j, board);\n\t\t\t\tif (i == 0 || i == 11 || j ==0 || j == 11) {\n\t\t\t\t\tmap[i][j] = new Fence(i, j, board);\n\t\t\t\t\tspaceUsed[i][j] = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//Generate 20 spikes in unique locations\n\t\twhile (fencesGenerated < 20) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Fence(x, y, board);\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\tfencesGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate 12 mhos in unique locations\n\t\twhile (mhosGenerated < 12) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Mho(x, y, board);\n\n\t\t\t\tmhoLocations.add(x);\n\t\t\t\tmhoLocations.add(y);\n\n\t\t\t\tspaceUsed[x][y] = true;\n\n\t\t\t\tmhosGenerated++;\n\t\t\t}\n\t\t}\n\n\t\t//Generate a player in a unique location\n\t\twhile (true) {\n\t\t\tint x = 1+(int)(Math.random()*10);\n\t\t\tint y = 1+(int)(Math.random()*10);\n\n\t\t\tif(spaceUsed[x][y]==false) {\n\t\t\t\tmap[x][y] = new Player(x, y, board);\n\t\t\t\tplayerLocation[0] = x;\n\t\t\t\tplayerLocation[1] = y;\n\t\t\t\tnewPlayerLocation[0] = x;\n\t\t\t\tnewPlayerLocation[1] = y;\n\t\t\t\tspaceUsed[x][y] = true;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\t\t\tpublic void testRoomEntry()\n\t\t\t{\n\t\t\t\t// two steps from a room two steps away\n\t\t\t\tboard.calcTargets(13, 10, 2);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(14, 9)));\n\t\t\t\t\n\t\t\t\t//Test entering a door when steps are greater than distance to room\n\t\t\t\tboard.calcTargets(8, 7, 8);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 6)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public static void main(String[] args) {\n\t\tList<Integer> maze = readInput();\n\t\t\n\t\t//Process the maze until we escape\n\t\tint steps = 0;\n\t\tint i = 0;\n\t\twhile (i < maze.size()) {\n\t\t\t//Get the current instruction\n\t\t\tInteger currInstruct = maze.get(i);\n\t\t\t//Apply any offsets needed\n\t\t\ti += currInstruct.intValue();\n\t\t\t//Update the index of the current instruction\n\t\t\tmaze.set(i - currInstruct.intValue(), currInstruct.intValue() + 1);\n\t\t\t//Keep a running count of all steps\n\t\t\tsteps++;\n\t\t}\n\t\t\n\t\tSystem.out.println(steps);\n\t}",
"public static void create(int steps) {\n\t\tlocalPlaces = 40;\n\t\toutPlaces = 3;\n\n\t\t// Initial marking: \n\t\tinitPlaces = new int[] {0, 1, 0, 1, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 1, 0, 1, 0, 0, 0};\n\t\ttileInitPlaces = 20;\n\n\t\t// Output mapping:\n\t\tint offs = 0;\n\t\ttOutMap = new OutMap[outPlaces];\n\t\ttOutMap[offs++] = new OutMap(-1, 37);\n\t\ttOutMap[offs++] = new OutMap(-1, 35);\n\t\ttOutMap[offs++] = new OutMap(1, 0);\n\n\t\t// Transitions:\n\t\toffs = 0;\n\t\ttransitions = 24; // (12 aligned to 4) x 2 steps\n\t\ttmap = new Transition[transitions];\n\n\t\t// {0xoi, inp-s, outp-s}\n\t\ttmap[offs++] = new Transition(0x22, 4, 1, 41 /* out */ , 40 /* out */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 4, 12, 9, 5); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 0, 1, 4); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 10, 11, 3); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 7, 10, 2, 8); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 9, 6, 8, 7); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 2, 4, 12); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 13, 20 /* next */ , 18, 14); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 11, 3, 5, 6); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 11, 16, 17, 19); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 18, 16, 11); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 14, 19, 15, 13); // 11: cw_start_eating\n\n\t\ttmap[offs++] = new Transition(0x22, 24, 21, 15 /* prev */ , 17 /* prev */ ); // 0: ccw_take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x22, 24, 32, 29, 25); // 1: take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 20, 21, 24); // 2: ccw_put_left_fork\n\t\ttmap[offs++] = new Transition(0x21, 30, 31, 23); // 3: put_left_fork\n\n\t\ttmap[offs++] = new Transition(0x31, 27, 30, 22, 28); // 4: start_thinking\n\t\ttmap[offs++] = new Transition(0x13, 29, 26, 28, 27); // 5: start_eating\n\t\ttmap[offs++] = new Transition(0x21, 22, 24, 32); // 6: put_right_fork\n\t\ttmap[offs++] = new Transition(0x31, 33, 42 /* out */ , 38, 34); // 7: cw_start_thinking\n\n\t\ttmap[offs++] = new Transition(0x13, 31, 23, 25, 26); // 8: take_left_fork *choice\n\t\ttmap[offs++] = new Transition(0x13, 31, 36, 37, 39); // 9: cw_take_right_fork *choice\n\t\ttmap[offs++] = new Transition(0x21, 38, 36, 31); // 10: cw_put_right_fork\n\t\ttmap[offs++] = new Transition(0x13, 34, 39, 35, 33); // 11: cw_start_eating\n\n\t\tif(PPNDevice.logMessages)\n\t\t\tSystem.out.printf(\"localPlaces: %d\\ntransitions: %d\\n\", localPlaces, transitions);\n\t}",
"static void neighborhood()\r\n { \r\n // Puts the earth in a world and the three different color turtles in that world\r\n earth = new World();\r\n turtle1 = new Turtle(earth);\r\n turtle1.setColor(Color.BLUE);\r\n turtle2 = new Turtle(earth);\r\n turtle2.setColor(Color.RED);\r\n turtle3 = new Turtle(earth);\r\n turtle3.setColor(Color.GREEN);\r\n house(100, 100, turtle1);\r\n house(250, 100, turtle2);\r\n house(400, 100, turtle3);\r\n\r\n }",
"public void setObjectives(TiledMap map)\r\n/* 72: */ {\r\n/* 73: 80 */ this.mission = true;\r\n/* 74: 81 */ for (int x = 0; x < getWidthInTiles(); x++) {\r\n/* 75: 83 */ for (int y = 0; y < getHeightInTiles(); y++)\r\n/* 76: */ {\r\n/* 77: 85 */ this.reach[x][y] = checkTileProperty(x, y, \"reach\", \"true\");\r\n/* 78: 86 */ if (this.reach[x][y] != 0) {\r\n/* 79: 88 */ this.reachablePlaces += 1;\r\n/* 80: */ }\r\n/* 81: 90 */ this.fire[x][y] = checkTileProperty(x, y, \"fire\", \"true\");\r\n/* 82: 91 */ if (this.fire[x][y] != 0) {\r\n/* 83: 93 */ this.burnPlaces += 1;\r\n/* 84: */ }\r\n/* 85: */ }\r\n/* 86: */ }\r\n/* 87: */ }",
"private void drawMap(final Graphics2D theGraphics) {\n for (int y = 0; y < myGrid.length; y++) {\n final int topy = y * SQUARE_SIZE;\n\n for (int x = 0; x < myGrid[y].length; x++) {\n final int leftx = x * SQUARE_SIZE;\n\n switch (myGrid[y][x]) {\n case STREET:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n drawStreetLines(theGraphics, x, y);\n break;\n\n case WALL:\n theGraphics.setPaint(Color.BLACK);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case TRAIL:\n theGraphics.setPaint(Color.YELLOW.darker().darker());\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n\n case LIGHT:\n // draw a circle of appropriate color\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n break;\n \n case CROSSWALK:\n theGraphics.setPaint(Color.LIGHT_GRAY);\n theGraphics.fillRect(leftx, topy, SQUARE_SIZE, SQUARE_SIZE);\n \n drawCrossWalkLines(theGraphics, x, y);\n \n // draw a small circle of appropriate color centered in the square\n theGraphics.setPaint(myLightColor);\n theGraphics.fillOval(leftx + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n topy + (int) (SQUARE_SIZE * CROSSWALK_SCALE),\n SQUARE_SIZE / 2, SQUARE_SIZE / 2);\n break;\n\n default:\n }\n\n drawDebugInfo(theGraphics, x, y);\n }\n }\n }",
"@Test\n\tpublic void hitsFloor() {\n\t\tmodel.addParticle(new Vector(300 - 0.5*model.getBox().getHeight() + 6, 300), 1.0, new Vector(), 10.0);\n\t\t\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\tmodel.advance();\n\t\t\n\t\tStdOut.println(\"\" + model.getParticleAt(0).getPosition().toString());\n\t}",
"public void createMap (int nRooms, Player player) {\n\t\t// Flag representing if the room has been created successfully or not\n\t\tboolean failed = false;\n\t\t// Clear the room array to make a hole new map\n\t\trooms = new ArrayList<Room>();\n\t\t\n\t\t// Set all the positions to be a wall\n\t\tfor(int y = 0; y < SIZE_Y; y++) {\n\t\t\tfor(int x = 0; x < SIZE_X; x++) {\n\t\t\t\tthis.cell[y][x].setReference(\"WALL\"); \n\t\t\t}\n\t\t}\n\n\t\t// Creates rooms with the max number given\n\t\tfor(int i = 0; i < nRooms; i++) {\n\t\t\tfailed = false;\n\t\t\tRoom room = new Room();\n\t\t\troom.setSizeX(rand.nextInt(10) + 3);\n\t\t\troom.setSizeY(rand.nextInt(8) + 3);\n\t\t\troom.setCenterX(rand.nextInt(SIZE_X - room.getSizeX()) + 1);\n\t\t\troom.setCenterY(rand.nextInt(SIZE_Y - room.getSizeY()) + 1);\n\t\t\t\n\t\t\tfor(Room roomTested : rooms) {\n\t\t\t\tif(room.intersects(roomTested)) {\n\t\t\t\t\tfailed = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(!failed) {\n\t\t\t\trooms.add(room);\n\t\t\t\tfor(int y = room.getCenterY(); y < room.getCenterY() + room.getSizeY() && y < SIZE_Y - 1; y++) {\n\t\t\t\t\tfor(int x = room.getCenterX(); x < room.getCenterX() + room.getSizeX() && x < SIZE_X - 1; x++) {\n\t\t\t\t\t\tthis.cell[y][x].setReference(\"FLOOR\"); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Makes the connections between rooms\n\t\tfor(int j = 0; j < rooms.size() - 1; j++ ) {\n\t\t\tthis.makeCorridor(rooms.get(j), rooms.get(j+1));\n\t\t}\n\t\t\n\t\tplayer.Spawn(rooms, this.getMap());\n\t}",
"public void getWalls() {\n\t\tRandomMapGenerator rmg = new RandomMapGenerator();\n\n\t\tboolean[][] cm = rmg.cellmap;\n\n\t\tfor (int x = 0; x < rmg.width; x++) {\n\t\t\tfor (int y = 0; y < rmg.height; y++) {\n\t\t\t\tif (cm[x][y]) {\n\t\t\t\t\twallArray.add(new Wall(x * 12, y * 12, mode));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public int infectNeighbours(Map map);",
"private void generate()\r\n {\r\n mapPieces = myMap.Generate3();\r\n mapWidth = myMap.getMapWidth();\r\n mapHeight = myMap.getMapHeight();\r\n }",
"void toyPlacingfStuff(){\n //nu stiu daca asta ramane\n gettingBackToInitial();\n nearingTheWallBefore();\n parallelToTheWall();\n actualToyPlacing();\n }",
"private void setUpMap() {\n if (points.size()>2) {\n drawCircle();\n }\n\n\n }",
"private void performInsideCheck() {\n if (checkInsideDone) {\n return;\n }\n \n checkInsideDone = true;\n \n final Location playerLoc = World.getPlayer().getLocation();\n final int currX = playerLoc.getScX();\n final int currY = playerLoc.getScY();\n int currZ = playerLoc.getScZ();\n boolean nowOutside = false;\n boolean isInside = false;\n \n for (int i = 0; i < 2; ++i) {\n currZ++;\n if (isInside || parent.isMapAt(currX, currY, currZ)) {\n if (!insideStates[i]) {\n insideStates[i] = true;\n synchronized (unchecked) {\n unchecked.add(Location.getKey(currX, currY, currZ));\n }\n }\n isInside = true;\n } else {\n if (insideStates[i]) {\n insideStates[i] = false;\n nowOutside = true;\n }\n }\n }\n \n /*\n * If one of the values turned from inside to outside, all tiles are added to the list to be checked again.\n */\n if (nowOutside) {\n synchronized (unchecked) {\n unchecked.clear();\n parent.processTiles(this);\n }\n }\n \n World.getWeather().setOutside(!isInside);\n }",
"private void makeMaze() {\n\t\ttry {\n\t\t\tthis.end = ImageIO.read(new File(\"images/tiles/end_locked.png\"));\n\t\t\tint w = getWidth()/gui.getModel().getDifficulty();\n\t\t\tint h = getHeight()/gui.getModel().getDifficulty();\n\t\t\tint difficulty = gui.getModel().getDifficulty();\n\t\t\tmazeImage = new BufferedImage(difficulty*(getWidth()/difficulty), difficulty*(getHeight()/difficulty), BufferedImage.TYPE_INT_RGB);\n\t\t\tGraphics2D g = mazeImage.createGraphics();\n\t\t\tString tile = \"\";\n\t\t\tfor (BaseState s: gui.getModel().getMaze()) {\n\t\t\t\tint x = s.getX(); int y = s.getY();\n\t\t\t\t\n\t\t\t\t// check walls\n\t\t\t\tint numSides = 0;\n\t\t\t\tboolean rightWall = false;\n\t\t\t\tboolean leftWall = false;\n\t\t\t\tboolean topWall = false;\n\t\t\t\tboolean bottomWall = false;\n\t\t\t\tif (s.getRight() == null) rightWall = true;\n\t\t\t\tif (s.getLeft() == null) leftWall = true;\n\t\t\t\tif (s.getUp() == null) topWall = true;\n\t\t\t\tif (s.getDown() == null) bottomWall = true;\n\t\t\t\tif (topWall) numSides++;\n\t\t\t\tif (leftWall) numSides++;\n\t\t\t\tif (bottomWall) numSides++;\n\t\t\t\tif (rightWall) numSides++;\n\t\t\t\t\n\t\t\t\t// find tile type\n\t\t\t\tif (numSides == 3) { // dead end\n\t\t\t\t\tif (!rightWall) tile = \"images/tiles/deadend_left.bmp\";\n\t\t\t\t\telse if (!leftWall) tile = \"images/tiles/deadend_right.bmp\";\n\t\t\t\t\telse if (!topWall) tile = \"images/tiles/deadend_bottom.bmp\";\n\t\t\t\t\telse if (!bottomWall) tile = \"images/tiles/deadend_top.bmp\";\n\t\t\t\t} else if (numSides == 2) { // corner or hall\n\t\t\t\t\t//hall\n\t\t\t\t\tif (rightWall && leftWall) tile = \"images/tiles/hall_vertical.bmp\";\n\t\t\t\t\telse if (topWall && bottomWall) tile = \"images/tiles/hall_horizontal.bmp\";\n\t\t\t\t\t//corner\n\t\t\t\t\telse if (topWall && leftWall) tile = \"images/tiles/corner_top_left.bmp\";\n\t\t\t\t\telse if (topWall && rightWall) tile = \"images/tiles/corner_top_right.bmp\";\n\t\t\t\t\telse if (bottomWall && leftWall) tile = \"images/tiles/corner_bottom_left.bmp\";\n\t\t\t\t\telse if (bottomWall && rightWall) tile = \"images/tiles/corner_bottom_right.bmp\";\n\t\t\t\t} else if (numSides == 1) { // single side\n\t\t\t\t\tif (leftWall) tile = \"images/tiles/wall_left.bmp\";\n\t\t\t\t\telse if (rightWall) tile = \"images/tiles/wall_right.bmp\";\n\t\t\t\t\telse if (topWall) tile = \"images/tiles/wall_top.bmp\";\n\t\t\t\t\telse if (bottomWall) tile = \"images/tiles/wall_bottom.bmp\";\n\t\t\t\t} else { // open\n\t\t\t\t\ttile = \"images/tiles/open.bmp\";\n\t\t\t\t}\n\t\t\t\t// draw tile\n\t\t\t\tg.drawImage(ImageIO.read(new File(tile)), x*w, y*h, w, h, null);\n\t\t\t\t\n\t\t\t\t// check for ending and draw if need be\n\t\t\t\tif (s.getX() == gui.getModel().getDifficulty() - 1 && s.getY() == gui.getModel().getDifficulty() - 1) {\n\t\t\t\t\tg.drawImage(ImageIO.read(new File(\"images/tiles/end_unlocked.png\")), x*w, y*h, w, h, null);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch(IOException e) {System.err.println(\"Images not found.\");}\n\t}",
"@Test\n public void testSolveIrregularBeginAndEndMaze(){\n try {\n //link row 1\n largeMaze.linkPillars(Maze.position(0, 0), Maze.position(1, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(2, 0));\n largeMaze.linkPillars(Maze.position(2, 0), Maze.position(3, 0));\n largeMaze.linkPillars(Maze.position(3, 0), Maze.position(4, 0));\n largeMaze.linkPillars(Maze.position(1, 0), Maze.position(1, 1));\n\n //link row 2\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(2, 1));\n largeMaze.linkPillars(Maze.position(1, 1), Maze.position(1, 2));\n largeMaze.linkPillars(Maze.position(3, 1), Maze.position(4, 1));\n\n //link row 3\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(1, 3));\n largeMaze.linkPillars(Maze.position(1, 2), Maze.position(2, 2));\n\n //link row 4\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(0, 3));\n largeMaze.linkPillars(Maze.position(1, 3), Maze.position(2, 3));\n largeMaze.linkPillars(Maze.position(3, 3), Maze.position(4, 3));\n largeMaze.linkPillars(Maze.position(0, 3), Maze.position(0, 4));\n\n //link row 5\n largeMaze.linkPillars(Maze.position(0, 4), Maze.position(1, 4));\n largeMaze.linkPillars(Maze.position(1, 4), Maze.position(2, 4));\n largeMaze.linkPillars(Maze.position(2, 4), Maze.position(3, 4));\n largeMaze.linkPillars(Maze.position(3, 4), Maze.position(4, 4));\n\n //set beginning and end\n largeMaze.setBegin(Maze.position(1, 0));\n largeMaze.setEnd(Maze.position(3, 4));\n shortestPath = MazeSolver.pStar(largeMaze, 25);\n\n assertEquals(\"<1, 0>\", shortestPath.get(0).getCoordinateString());\n assertEquals(\"<1, 1>\", shortestPath.get(1).getCoordinateString());\n assertEquals(\"<1, 2>\", shortestPath.get(2).getCoordinateString());\n assertEquals(\"<1, 3>\", shortestPath.get(3).getCoordinateString());\n assertEquals(\"<2, 3>\", shortestPath.get(4).getCoordinateString());\n assertEquals(\"<2, 4>\", shortestPath.get(5).getCoordinateString());\n assertEquals(\"<3, 4>\", shortestPath.get(6).getCoordinateString());\n\n assertEquals(7, shortestPath.size());\n\n } catch (Exception e) {\n fail(\"Unexpected exception was thrown while linking pillars.\");\n }\n }",
"public void updateMap(HashMap<Coordinate, MapTile> currentView) {\n\t\t\tfor (Coordinate key : currentView.keySet()) {\n\t\t\t\tif (!map.containsKey(key)) {\n\t\t\t\t\tMapTile value = currentView.get(key);\n\t\t\t\t\tmap.put(key, value);\n\t\t\t\t\tif (value.getType() == MapTile.Type.TRAP) {\n\t\t\t\t\t\tTrapTile value2 = (TrapTile) value; // downcast to find type\n\t\t\t\t\t\tif (value2.getTrap().equals(\"parcel\") && possibleTiles.contains(key)) {\n\t\t\t\t\t\t\tparcelsFound++;\n\t\t\t\t\t\t\tparcels.add(key);\n\t\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\t\tphase = \"search\";\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"lava\")) {\n\t\t\t\t\t\t\tlava.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"health\")) {\n\t\t\t\t\t\t\thealth.add(key);\n\t\t\t\t\t\t} else if (value2.getTrap().equals(\"water\")) {\n\t\t\t\t\t\t\twater.add(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (value.getType() == MapTile.Type.FINISH) {\n\t\t\t\t\t\texitFound = true;\n\t\t\t\t\t\texit.add(key);\n\t\t\t\t\t\tif (parcelsFound == numParcels() && exitFound == true) {\n\t\t\t\t\t\t\tphase = \"search\";\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}",
"private void decorateMountains(int xStart, int xLength, int floor, ArrayList finalListElements, ArrayList states,boolean enemyAddedBefore)\r\n\t {\n\t if (floor < 1)\r\n\t \treturn;\r\n\r\n\t // boolean coins = random.nextInt(3) == 0;\r\n\t boolean rocks = true;\r\n\r\n\t //add an enemy line above the box\r\n\t Random r = new Random();\r\n\t boolean enemyAdded=addEnemyLine(xStart + 1, xLength - 1, floor - 1);\r\n\r\n\t int s = 1;\r\n\t int e = 1;\r\n\r\n\t if(enemyAdded==false && enemyAddedBefore==false)\r\n\t {\r\n\t if (floor - 2 > 0){\r\n\t if ((xLength - e) - (xStart + s) > 0){\r\n\t for(int x = xStart + s; x < xLength- e; x++){\r\n\t \tboolean flag=true;\r\n\t \tfor(int i=0;i<states.size();i++)\r\n\t \t{\r\n\t \t\tElements element=(Elements)finalListElements.get(i);\r\n\t \t\t\tBlockNode state=(BlockNode)states.get(i);\r\n\t \t\t\t\r\n\t \t\t\tint xElement = (int)(initialStraight+state.getX());\r\n\t \t int floorC= (int)state.getY()+1;\r\n\t \t int widthElement=element.getWidth();\r\n\t \t int heigthElement=element.getHeigth()+2;\r\n\t \t \r\n\t \t int widthElementNext=1;\r\n\t \t int heigthElementNext=0;\r\n\t \t \r\n\t \t if(x+(widthElementNext-1)>=xElement && x<xElement+widthElement && (floor-1)-heigthElementNext<=floorC && (floor-1)>= floorC-heigthElement )\r\n\t \t {\r\n\t \t \tflag=false;\r\n\t \t \tbreak;\r\n\t \t }\r\n\t \t \t \t \t\t \t \r\n\t \t } \r\n\t \tif(flag==true)\r\n\t \t{\r\n\t \t\tsetBlock(x, floor - 1, COIN);\r\n\t \t}\r\n\t \r\n\t //COINS++;\r\n\t }\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t s = random.nextInt(4);\r\n\t e = random.nextInt(4);\r\n\t \r\n\t //this fills the set of blocks and the hidden objects inside them\r\n\t /*\r\n\t if (floor - 4 > 0)\r\n\t {\r\n\t if ((xLength - 1 - e) - (xStart + 1 + s) > 2)\r\n\t {\r\n\t for (int x = xStart + 1 + s; x < xLength - 1 - e; x++)\r\n\t {\r\n\t if (rocks)\r\n\t {\r\n\t if (x != xStart + 1 && x != xLength - 2 && random.nextInt(3) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_POWERUP);\r\n\t //BLOCKS_POWER++;\r\n\t }\r\n\t else\r\n\t {\t//the fills a block with a hidden coin\r\n\t setBlock(x, floor - 4, BLOCK_COIN);\r\n\t //BLOCKS_COINS++;\r\n\t }\r\n\t }\r\n\t else if (random.nextInt(4) == 0)\r\n\t {\r\n\t if (random.nextInt(4) == 0)\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (2 + 1 * 16));\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, (byte) (1 + 1 * 16));\r\n\t }\r\n\t }\r\n\t else\r\n\t {\r\n\t setBlock(x, floor - 4, BLOCK_EMPTY);\r\n\t //BLOCKS_EMPTY++;\r\n\t }\r\n\t }\r\n\t }\r\n\t //additionElementToList(\"Block\", 1,(xLength - 1 - e)-(xStart + 1 + s));\r\n\t }\r\n\t \r\n\t }*/\r\n\t }",
"private void constructMaze() {\r\n\t\t\r\n\t\t// manual code to construct a sample maze going cell by cell\r\n\t\tgridSheet[0][0].breakSouthWall();\r\n\t\tgridSheet[1][0].breakEastWall();\r\n\t\tgridSheet[1][1].breakSouthWall();\r\n\t\tgridSheet[2][1].breakWestWall();\r\n\t\tgridSheet[2][0].breakSouthWall();\r\n\t\tgridSheet[2][1].breakEastWall();\r\n\t\tgridSheet[2][2].breakSouthWall();\r\n\t\tgridSheet[3][2].breakSouthWall();\r\n\t\tgridSheet[4][2].breakWestWall();\r\n\t\tgridSheet[4][1].breakNorthWall();\r\n\t\tgridSheet[4][1].breakWestWall();\r\n\t\tgridSheet[2][2].breakEastWall();\r\n\t\tgridSheet[2][3].breakNorthWall();\r\n\t\tgridSheet[1][3].breakWestWall();\r\n\t\tgridSheet[1][3].breakNorthWall();\r\n\t\tgridSheet[0][3].breakWestWall();\r\n\t\tgridSheet[0][2].breakWestWall();\r\n\t\tgridSheet[0][3].breakEastWall();\r\n\t\tgridSheet[0][4].breakSouthWall();\r\n\t\tgridSheet[1][4].breakSouthWall();\r\n\t\tgridSheet[2][4].breakSouthWall();\r\n\t\tgridSheet[3][4].breakWestWall();\r\n\t\tgridSheet[3][4].breakSouthWall();\r\n\t\tgridSheet[4][4].breakWestWall();\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n GridlandMetro ts = new GridlandMetro();\n long rows = s.nextLong();\n long cols = s.nextLong();\n long numTracks = s.nextLong();\n HashMap<Long, List<Pair>> map_t = new HashMap();\n long numLampposts = 0L;\n\n\n for(long j=0; j<numTracks; j+=1L){\n\n long current_row = s.nextLong();\n long c1 = s.nextLong();\n long c2 = s.nextLong();\n if(!map_t.containsKey(current_row))\n map_t.put(current_row, new ArrayList<Pair>());\n map_t.get(current_row).add(ts.new Pair(c1,c2));\n\n }\n\n for(long i=(map_t.keySet().size()+1); i<=rows; i++)\n numLampposts += cols;\n\n for(Long current_key:map_t.keySet()){\n Collections.sort(map_t.get(current_key));\n long current_max = 1L;\n for(int i=0; i<map_t.get(current_key).size(); i++){\n if(current_max < map_t.get(current_key).get(i).start)\n numLampposts += map_t.get(current_key).get(i).start - current_max;\n if(current_max <= map_t.get(current_key).get(i).end)\n current_max = map_t.get(current_key).get(i).end + 1L;\n }\n numLampposts += cols-current_max+1;\n }\n\n\n\n\n System.out.println(numLampposts);\n }",
"public int CalcDistance ( )\r\n\t{\r\n\t\tfor ( int i = 0; i<size; i++ )\r\n\t\t{\r\n\t\t\tfor ( int offR = 0; offR <= size/2; offR++ )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == 0 && maze [offR] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenUp() && maze [offR-1] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR-1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfor ( int offR = size-1; offR >= size/2; offR-- )\r\n\t\t\t{\r\n\t\t\t\tfor ( int c = 0; c <= size/2; c++ )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == 0 && maze [offR] [c].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenLeft() && maze [offR] [c-1].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c-1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfor ( int c = size-1; c >= size/2; c-- )\r\n\t\t\t\t{\r\n\t\t\t\t\tif ( offR == size-1 && maze [offR] [c].isOpenDown() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenDown() && maze [offR+1] [c].isOpenUp() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR+1] [c].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif ( c == size-1 && maze [offR] [c].isOpenRight() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( 1 );\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if ( maze [offR] [c].isOpenRight() && maze [offR] [c+1].isOpenLeft() )\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tmaze [offR] [c].setDistanceToExit( \r\n\t\t\t\t\t\t\t\tMath.min( maze [offR] [c+1].getDistanceToExit()+1,\r\n\t\t\t\t\t\t\t\t\t\t maze [offR] [c].getDistanceToExit() ) );\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 maze [currentRow] [currentCol].getDistanceToExit();\r\n\t}",
"static void fill() {\n int xRef, yRef, height;\n\n while (true) {\n System.out.print(\"Enter reference point: \");\n xRef = scan.nextInt();\n yRef = scan.nextInt();\n scan.nextLine(); // flush\n // calcs\n if ( pointInPgm(xRef, yRef) ) break;\n System.out.println(\"WARNING: reference point is not in terrain.\");\n }\n\n height = pgmInf.img[yRef][xRef];\n System.out.printf(\"Marking all pixels below %d as 0, and others as %d.\\n\", height, (pgmInf.maxValue / 2) );\n fillGt( height );\n System.out.println(\"Done.\");\n }",
"int numOfPillars() {\n // there are one more coordinate line than blocks in each direction\n // since each block must be hinged on a coordinate line on each side\n return (ni+1) * (nj+1);\n }",
"@Test\n public void testSmallPillarNeighbors(){\n //test pillar at (0,0)\n pillar = smallPillarMap.get(Maze.position(0,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,0)\n pillar = smallPillarMap.get(Maze.position(1,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,0)\n pillar = smallPillarMap.get(Maze.position(2,0));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n\n //test pillar at (0,1)\n pillar = smallPillarMap.get(Maze.position(0,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n\n //test pillar at (1,1)\n pillar = smallPillarMap.get(Maze.position(1,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(4, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 0)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (2,1)\n pillar = smallPillarMap.get(Maze.position(2,1));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 0)));\n\n //test pillar at (0,2)\n pillar = smallPillarMap.get(Maze.position(0,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 1)));\n\n //test pillar at (1,2)\n pillar = smallPillarMap.get(Maze.position(1,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(3, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(0, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 1)));\n\n //test pillar at (2,2)\n pillar = smallPillarMap.get(Maze.position(2,2));\n pillarNeighbors = pillar.getNeighbors();\n assertEquals(2, pillarNeighbors.size());\n assertTrue(pillarNeighbors.containsKey(new Pillar(1, 2)));\n assertTrue(pillarNeighbors.containsKey(new Pillar(2, 1)));\n }",
"public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }",
"public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}",
"public void run()\n \t{\n \t\tTerrain t = ExplosionController.getInstance().t;\n \t\twhile (true)\n \t\t{\n \t\t\tsynchronized (collidables) \n \t\t\t{ \n \t\t\t\tfor (int i = collidables.size()-1; i >= 0; i--)\n \t\t\t\t{\n \t\t\t\t\tDrawable d = collidables.get(i);\n \t\t\t\t\t\n \t\t\t\t\td.v.y += GRAVITY;\n \t\t\t\t\t\n \t\t\t\t\td.p.x += d.v.x;\n \t\t\t\t\td.p.y += d.v.y;\n \t\t\t\t\n \t\t\t\t\tint iFromX = (int) (d.p.x / t.segmentWidth);\n \t\t\t\t\tint iFromPreviousX = (int) ((d.p.x-d.v.x) / t.segmentWidth);\n \t\t\t\t\t\n \t\t\t\t\tif(iFromX < 0 || iFromX >= t.points.length-1)\n \t\t\t\t\t{\n \t\t\t\t\t\td.removeFromGLEngine = true;\n \t\t\t\t\t\td.removeFromPhysicsEngine = true;\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tdouble percent = (d.p.x % t.segmentWidth) / t.segmentWidth;\n \t\t\t\t\t\tdouble landYatX = t.points[iFromX] + (t.points[iFromX + 1] - t.points[iFromX]) * percent;\n \t\t\t\t\t\t\n \t\t\t\t\t\tif(d.p.y > landYatX)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tcontinue;\n \t\t\t\t\t\t}\n \t\t\t\n \t\t\t\t\t\tint minIndex = iFromX;\n \t\t\t\t\t\tint maxIndex = iFromPreviousX;\n \t\t\t\t\t\tif(minIndex > maxIndex)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tint temp = minIndex;\n \t\t\t\t\t\t\tminIndex = maxIndex;\n \t\t\t\t\t\t\tmaxIndex = temp;\n \t\t\t\t\t\t}\n \t\t\t\t\t\t\n \t\t\t\t\t\tfor(int s = minIndex; s <= maxIndex; s++)\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tfloat xFromIndex = s*t.segmentWidth;\n \t\t\t\t\t\t\tfloat xFromNextIndex = (s+1)*t.segmentWidth;\n \t\t\t\t\t\t\tfloat[] intersect = lineIntersect(d.p.x-d.v.x, d.p.y-d.v.y, d.p.x, d.p.y, xFromIndex, t.points[s], xFromNextIndex, t.points[s+1], t.previousPoints[s], t.previousPoints[s+1]);\n \t\t\t\t\t\t\tif(intersect != null)\n \t\t\t\t\t\t\t{\n \t\t\t\t\t\t\t\td.intersectTerrain(intersect[0], intersect[1]);\n \t\t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\tif(d.removeFromPhysicsEngine)\n \t\t\t\t\t{\n \t\t\t\t\t\tcollidables.remove(i);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tt.update();\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\tThread.currentThread().sleep(20);\n \t\t\t} \n \t\t\tcatch (InterruptedException e)\n \t\t\t{\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}",
"public void generateTerrain()\n\t{\n\t\tint rand;\n\t\tint starting=(int)(blocksWide*0.45);//Choose the first grass block\n\t\tblocksTall=(int)(blocksWide*0.6);\n\t\tfor(int i=0;i<blocksWide;i++)\n\t\t{\n\t\t\t//Determine whether the next block will go up a level, down a level or stay the same (55% chance of staying the same)\n\t\t\trand=ThreadLocalRandom.current().nextInt(0,3);\t\n\t\t\tif(rand!=0)\n\t\t\t{\n\t\t\t\trand=ThreadLocalRandom.current().nextInt(-1,2);\n\t\t\t}\n\t\t\tif(starting+rand<blocksTall-2 && starting+rand>4)\t//Make sure new position isn't too close to the top or bottom\n\t\t\t{\n\t\t\t\tstarting+=rand;\n\t\t\t}\n\t\t\tgrassy[i]=starting;\n\t\t\tgrassT[i]=ThreadLocalRandom.current().nextInt(0,3);\n\t\t\t//Generate a platform to allow for collision detection\n\t\t\tplatforms.add(new Platform((double)i/blocksWide,(double)starting/blocksTall,1.0/blocksWide,1.0/blocksWide));\n\t\t}\n\t\tplatforms.add(new Platform(0.0,0.0,0.0,0.0));\n\t}",
"public static void main(String[] args) {\n System.out.println(\"-------------------------\");\n //maze.print();\n // int count= obj.getnonVisits();\n // int percent=obj.getSizeTotal();\n // System.out.println(\"Cells: \"+percent+ \" Unvisited:\"+count);\n //if(count>0)\n // System.out.println(\"Percent unvisited: \"+((count*100)/percent)+\"%\");\n }",
"private static int computeUnitsTrappedDynamicProgramming(int[] elevationMap) {\n int[] leftWalls = computeLeftWalls(elevationMap);\n int[] rightWalls = computeRightWalls(elevationMap);\n int units = 0;\n for (int x = 1; x < elevationMap.length; x++) {\n int current = elevationMap[x];\n int tallestLeft = leftWalls[x];\n int tallestRight = rightWalls[x];\n if (tallestLeft > current && tallestRight > current) {\n units += Math.min(tallestLeft, tallestRight) - current;\n }\n }\n return units;\n }",
"private void detectParkingSlot()\r\n\t{\t\t\r\n\t\tPoint PosS = new Point(0,0);\r\n\t\tPoint PosE = new Point(0,0);\r\n\t\t\r\n\t\tdouble sum_F = 0;\r\n\t\tdouble sum_B = 0;\r\n\t\t\r\n\t\tdouble distance_F = 0;\r\n\t\tdouble distance_B = 0;\r\n\t\t\r\n\t\tint SlotID = Pk_counter;\r\n\t\tINavigation.ParkingSlot.ParkingSlotStatus SlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\r\n\t\tshort axe = getHeadingAxe();\r\n\t\t\r\n\t\tfor (int i = 1; i <= 4; i++)\r\n\t\t{\r\n\t\t\tPk_DIST_FS[i] = Pk_DIST_FS[i-1];\r\n\t\t\tsum_F = Pk_DIST_FS[i] + sum_F;\r\n\t\t\t\r\n\t\t\tPk_DIST_BS[i] = Pk_DIST_BS[i-1];\r\n\t\t\tsum_B = Pk_DIST_BS[i] + sum_B;\r\n\t\t}\r\n\t\t\r\n\t\tPk_DIST_FS[0] = frontSensorDistance;\r\n\t\t//distance_F = (sum_F + Pk_DIST_FS[0])/5;\r\n\t\tdistance_F = frontSensorDistance;\r\n\t\t\r\n\t\tPk_DIST_BS[0] = backSideSensorDistance;\r\n\t\t//distance_B = (sum_B + Pk_DIST_BS[0])/5;\r\n\t\tdistance_B = backSideSensorDistance;\r\n\t\t\r\n\t\t//LCD.drawString(\"Dist_F: \" + (distance_F), 0, 6);\r\n\t\t//LCD.drawString(\"Dist_B: \" + (distance_B), 0, 7);\r\n\t\t\r\n\t\t// Saving the begin point of the PS\r\n\t\tif ((distance_F <= TRSH_SG) && (Pk_burstFS == 0))\r\n\t\t{\r\n\t\t\tPk_PosF1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 1;\r\n\t\t\tPk_burstFE = 0;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B <= TRSH_SG) && (Pk_burstRS == 0))\r\n\t\t{\r\n\t\t\tPk_PosR1.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 1;\r\n\t\t\tPk_burstRE = 0;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\t\t\r\n\t\t// Saving the end point of the PS\r\n\t\tif ((distance_F >= TRSH_SG) && (Pk_burstFE == 0))\r\n\t\t{\r\n\t\t\tPk_PosF2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstFS = 0;\r\n\t\t\tPk_burstFE = 1;\r\n\t\t\t//Sound.beep();\r\n\t\t}\r\n\t\t\r\n\t\tif ((distance_B >= TRSH_SG) && (Pk_burstRE == 0))\r\n\t\t{\r\n\t\t\tPk_PosR2.setLocation(this.pose.getX(), this.pose.getY());\r\n\t\t\tPk_burstRS = 0;\r\n\t\t\t//burstRE = 1;\r\n\t\t\t//Sound.twoBeeps();\r\n\t\t}\r\n\t\t\r\n\t\tif (Po_RoundF == 0)\t\t\t// Saving new parking slots\r\n\t\t{\t\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_counter < 10))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_counter] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\tPk_counter ++;\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t\t\r\n\t\t\t\tSound.beepSequence();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\t\t\t\t\t// Updating the old slots\r\n\t\t{\r\n\t\t\tif ((Pk_burstRS == 0) && (Pk_burstRE == 0) && (Pk_update <= Pk_counter))\r\n\t\t\t{\r\n\t\t\t\tPosS.setLocation(((Pk_PosF1.getX() + Pk_PosR1.getX())/2), ((Pk_PosF1.getY() + Pk_PosR1.getY())/2));\r\n\t\t\t\tPosE.setLocation(((Pk_PosF2.getX() + Pk_PosR2.getX())/2), ((Pk_PosF2.getY() + Pk_PosR2.getY())/2));\r\n\t\t\t\t\r\n\t\t\t\t// Evaluation of the slot\r\n\t\t\t\tif (axe == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getX() - PosS.getX()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tif ((PosE.getY() - PosS.getY()) > LGNT_ROBOT)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSlotStatus = ParkingSlotStatus.NOT_SUITABLE_FOR_PARKING;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_slotList[Pk_update] = new INavigation.ParkingSlot(SlotID, PosE, PosS, SlotStatus, 0);\r\n\t\t\t\t\r\n\t\t\t\tif (Pk_update < Pk_counter)\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update ++;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tPk_update = 0;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tPk_burstRE = 1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn; // data are saved in the shared variable\r\n\t}",
"public void buildWall() {\n for (int i = 0; i < worldWidth; i += 1) {\n for (int j = 0; j < worldHeight; j += 1) {\n if (world[i][j].equals(Tileset.NOTHING)\n && isAdjacentFloor(i, j)) {\n world[i][j] = Tileset.WALL;\n }\n }\n }\n }",
"public void render() {\n int pixel = getPixelSize();\n for (int xx = x; xx<x+w; xx += pixel) {\n for (int yy = y; yy<y+h; yy += pixel) {\n Location next = getLocation(xx, yy);\n if (next != null) { // This way if a wall is spawned at the edge it's ok\n next.setColor(color(255,255,255));\n next.setType(LocationType.WALL);\n getGridCache().add(next);\n }\n }\n }\n }",
"public void scatter(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n final int MAXTILE = 160;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos-20) - SCATTERY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos+20) - SCATTERY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos -5;\r\n }\r\n\r\n }",
"private int surroundingLandCheckCity(City city) {\n int numLandTilesSurrounding = 0;\n for (int i = city.getRow() - 1; i < city.getRow() + 2; i++) {\n for (int j = city.getCol() - 1; j < city.getCol() + 2; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) {\n numLandTilesSurrounding++;\n }\n }\n }\n return numLandTilesSurrounding;\n }",
"@Override\n\tpublic void move() {\n\t\tCoordinate currPos = new Coordinate(control.getPosition());\n\t\t\n\t\t// if we have enough packages head to the exit\n\t\tif (control.numParcels() <= control.numParcelsFound()) {\n\t\t\t// if we don't have a path to the exit\n\t\t\tif (control.currentPath == null || !control.isHeadingToFinish) {\t\n\t\t\t\t// find path to exit\n\t\t\t\tArrayList<Coordinate> tempPath = null;\n\t\t\t\t// See if there's a path without needing to go through hazards\n\t\t\t\ttempPath = control.findPath(currPos, control.finish.get(0), control.hazardsMap.keySet());\n\t\t\t\tSet<Coordinate> tempHazards = new HashSet<>(control.hazardsMap.keySet());\n\t\t\t\t// If no path without going through hazards, just go through them\n\t\t\t\tif (tempPath == null || tempPath.size() == 0) {\n\t\t\t\t\tfor (Coordinate coord : control.hazardsMap.keySet()) {\n\t\t\t\t\t\ttempHazards.remove(coord);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If it's a valid map, there should be a path now\n\t\t\t\tcontrol.setPath(control.findPath(currPos, control.finish.get(0), tempHazards));\n\t\n\t\t\t\tcontrol.isHeadingToFinish = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\theadTowardsPackages(currPos);\n\t\t\n\t\texploreUnseenMap(currPos);\n\t\t\n\t\tMapTile currTile = control.getView().get(currPos);\n\t\tboolean isHealth = false;\n\t\tif (currTile.getType() == MapTile.Type.TRAP) {\n\t\t\tTrapTile trap = (TrapTile) currTile;\n\t\t\tif (trap.getTrap().equals(\"health\")) {\n\t\t\t\tisHealth = true;\n\t\t\t}\n\t\t}\n\t\tif (isHealth && (control.getHealth() < HEALTH_TRAP_THRESHOLD)) {\n\t\t\t// do nothing\n\t\t\treturn;\n\t\t} else {\n\t\t\tisHealth = false;\n\t\t\tcontrol.moveTowards(control.dest);\n\t\t}\n\t\t\n\t}",
"public void MakeMaze() {\n\n\t\t// ints for random x , y and direction\n\t\tint rx = 0;\n\t\tint ry = 0;\n\t\tint rd = 0;\n\t\tgenMaze = true;\n\n\t\t// c used to count tries, if there are too many the main loop jumps to\n\t\t// the end of the function\n\t\tint c = 0;\n\n\t\t// fill the map with walls\n\t\tfor (int ix = 0; ix < max_x; ix++) {\n\t\t\tfor (int iy = 0; iy < max_y; iy++) {\n\t\t\t\tmap[ix][iy] = 1;\n\t\t\t}\n\t\t}\n\n\t\t// fill the cell array with unvisited cells\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tcell[ix][iy] = 0;\n\t\t\t}\n\t\t}\n\n\t\t// choose a \"random\" x,y pair. centre of screen used here instead\n\t\trx = maxCells_x / 2;\n\t\try = maxCells_y / 2;\n\n\t\t// mark cell visited\n\t\tcell[rx][ry] = 1;\n\n\t\t// count cells\n\t\tcountCells();\n\n\t\t// start main generator loop\n\t\twhile (visitedCells < totalCells) {\n\n\t\t\tc++;\n\n\t\t\tif (c > magicNumber) {\n\t\t\t\tgenMaze = false;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\trd = rand.nextInt(4);\n\n\t\t\t// dig tunnels\n\n\t\t\t// up\n\n\t\t\tif (genMaze) {\n\t\t\t\tif (rd == 0) { // up\n\t\t\t\t\tif (inRange(rx * CELL_RAD, ry * CELL_RAD - 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry - 1]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry - 1) * CELL_RAD);\n\t\t\t\t\t\try--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 1) { // down\n\t\t\t\t\tif (inRange(rx + CELL_RAD, ry * CELL_RAD + 1) == 1\n\t\t\t\t\t\t\t&& (cell[rx][ry + 1] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, (ry) * CELL_RAD, rx * CELL_RAD,\n\t\t\t\t\t\t\t\t(ry + 1) * CELL_RAD);\n\t\t\t\t\t\try++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (rd == 2) { // left\n\t\t\t\t\tif (inRange((rx * CELL_RAD) - 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx - 1][ry] == 0 || rand.nextInt(7) == 7)) {\n\t\t\t\t\t\tclink(rx * CELL_RAD, ry * CELL_RAD,\n\t\t\t\t\t\t\t\t(rx - 1) * CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx--;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t} else if (rd == 3) { // right\n\t\t\t\t\tif (inRange(rx * CELL_RAD + 1, ry * CELL_RAD) == 1\n\t\t\t\t\t\t\t&& (cell[rx + 1][ry]) == 0 || rand.nextInt(7) == 7) {\n\t\t\t\t\t\tclink((rx) * CELL_RAD, ry * CELL_RAD, (rx + 1)\n\t\t\t\t\t\t\t\t* CELL_RAD, ry * CELL_RAD);\n\t\t\t\t\t\trx++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\trx = rand.nextInt(maxCells_x);\n\t\t\t\t\t\t\try = rand.nextInt(maxCells_y);\n\t\t\t\t\t\t\tif (cell[rx][ry] == 1) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// mark the cell as visited\n\n\t\t\t\tcell[rx][ry] = 1;\n\n\t\t\t\t// place a \"floor\" tile on the map where the maze cell should be\n\t\t\t\tmap[rx * CELL_RAD][ry * CELL_RAD] = 0;\n\n\t\t\t\t// count the cells to establish how many have been visited\n\t\t\t\tcountCells();\n\t\t\t}\n\t\t}\n\n\t\tfor (int ix = 0; ix < maxCells_x; ix++) {\n\t\t\tfor (int iy = 0; iy < maxCells_y; iy++) {\n\t\t\t\tif (cell[ix][iy] == 1) {\n\t\t\t\t\tmap[ix * CELL_RAD][iy * CELL_RAD] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public void update()\n\t{\n\t\t//\tTHE WORLD HAS ENDED DO NOT EXECUTE FURTHER\n\t\tif( end )\n\t\t{\n\t\t\tsafeEnd = true;\n\t\t\treturn;\n\t\t}\n\n\t\t//Plot graphics\n\t\tif(plot){\n\t\t\thealthyFunction.show(infectedFunction, healthyFunction);\n\t\t\tbusFunction.show(infectedFunction, seasFunction, busFunction, colFunction, ellFunction, smpaFunction, lawFunction);\n\t\t\tplot = false;\n\t\t}\n\n\t\t//\tsafe point to manage human/zombie ratios\n\t\t//\tTODO: Modify infect to also switch zombies to humans\n\t\tinfect();\n\t\tgetWell();\n\t\taddFromQueue();\n\n\t\t//\tupdate all entities\n\t\tfor( Zombie z: zombies )\n\t\t{\n\t\t\tz.update(zombiesPaused);\n\t\t}\n\t\tfor( Entity h: humans )\n\t\t{\n\t\t\th.update(humansPaused);\n\t\t}\n\n\t\tif( zc!=zombies.size() || hc!=humans.size() )\n\t\t{\n\t\t\tzc = zombies.size();\n\t\t\thc = humans.size();\n\t\t\tSystem.out.println(zc+\"/\"+hc);\n\t\t}\n\n\t\t//Add points to our functions\n\t\thealthyFunction.add(time,humans.size());\n\t\tinfectedFunction.add(time,zombies.size());\n\t\tseascount = smpacount = ellcount = lawcount = buscount = colcount = 0;\n\t\tfor (int i = 0; i < humans.size(); i++) {\n\t\t\tEntity curr = humans.get(i);\n\t\t\tif (curr instanceof SEAS) {\n\t\t\t\tseascount++;\n\t\t\t} else if (curr instanceof SMPA) {\n\t\t\t\tsmpacount++;\n\t\t\t} else if (curr instanceof Elliot) {\n\t\t\t\tellcount++;\n\t\t\t} else if (curr instanceof Law) {\n\t\t\t\tlawcount++;\n\t\t\t} else if (curr instanceof Business) {\n\t\t\t\tbuscount++;\n\t\t\t} else if (curr instanceof Columbian) {\n\t\t\t\tcolcount++;\n\t\t\t}\n\t\t}\n\t\tbusFunction.add(time, buscount);\n\t\tcolFunction.add(time, colcount);\n\t\tellFunction.add(time, ellcount);\n\t\tlawFunction.add(time, lawcount);\n\t\tsmpaFunction.add(time, smpacount);\n\t\tseasFunction.add(time, seascount);\n\t\ttime++;\n\t}",
"public void heightMap(World world, ActivePlayer player, int radius, int i, int k) {\n \t\tlong start = System.currentTimeMillis();\n \t\tint sStart = MiniMapWidget.scale;\n \t\t\n \t\t/*\n \t\t * Generate the image and apply shading \n \t\t */\n \t\tint tx, tz;\n \t\tint y, id, dy, diff;\n \t\t//Map<Integer, Integer[]> pairs = new HashMap<Integer, Integer[]>();\n \t\tint py = player.getLocation().getBlockY();\n \t\t\n \t\tBufferedImage image = null;\n \t\tif(MiniMapWidget.scale <= 0)\n \t\timage = new BufferedImage(radius*2*16, radius*2*16, BufferedImage.TYPE_INT_RGB);\n \t\telse\n \t\timage = new BufferedImage(radius*2, radius*2, BufferedImage.TYPE_INT_RGB);\n \t\tGraphics gr = image.getGraphics();\n \t\tgr.setColor(transparent);\n \t\t\n \t\tfor (int x = -radius; x < radius; x++)\n \t\t\tfor (int z = -radius; z < radius; z++) {\n \t\t\t\t\n \t\t\t\tif(System.currentTimeMillis()-start > 1000+MiniMapWidget.scale*4 || MiniMapWidget.scale != sStart) {\n \t\t\t\t\tgr.dispose();\n \t\t\t\t\t// TODO Add pathing back\n \t\t\t\t\t//writePath(pairs);\n \t\t\t\t\tgr = this.image.getGraphics();\n \t\t\t\t\tgr.drawImage(image, 0, 0, 256, 256, null);\n \t\t\t\t\tgr.dispose();\n \t\t\t\t\t// Can we help stop the memory leak here?\n \t\t\t\t\timage.flush();\n \t\t\t\t\timage = null;\n \t\t\t\t\treturn;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\ttx = (int) (i + x);\n \t\t\t\ttz = (int) (k + z);\n \t\t\t\t\n \t\t\t\t//MiniMapLocation test = inList(tx, tz);\n \t\t\t\t//if(test != null) {\n \t\t\t\t//int index = test.hashCode();\n \t\t\t\t//Integer[] pair = {(x+MiniMap.radius), (z+MiniMap.radius)};\n \t\t\t\t//pairs.put(index, pair);\n \t\t\t\t//}\n \t\t\t\t\n \t\t\t\ty = getHighestBlockY(world, tx, tz);\n \t\t\t\tid = world.getBlockTypeIdAt(tx, y, tz);\n \t\t\t\t\n \t\t\t\tif(map.isTransparent(id)) {\n \t\t\t\t\tint ly = getHighestNonTransparentBlockY(world, tx, tz);\n \t\t\t\t\tfor(int m=ly; m<y; m++) {\n \t\t\t\t\tint nd = world.getBlockTypeIdAt(tx, m, tz);\n \t\t\t\t\tBufferedImage tile = map.getTexture(nd);\n \t\t\t\t\tgr.drawImage(tile, (x+radius)*16, (z+radius)*16, null);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\tdy = ((y-py)*2 + (y-64));\n \t\t\t\tdiff = getRelativeShading(world, tx, y, tz)*15;\n \t\t\t\t\n \t\t\t\tdy = dy+diff+world.getBlockAt(tx, y+1, tz).getLightLevel()*5;\n \t\t\t\t\n \t\t\t\tif(MiniMapWidget.scale <= 0) {\n \t\t\t\t\n \t\t\t\tBufferedImage tile = map.getTexture(id);\n \t\t\t\t\n \t\t\t\tfor(int m=0; m<16; m++)\n \t\t\t\t\tfor(int n=0; n<16; n++) {\n \t\t\t\t\t\tColor color = new Color(tile.getRGB(m, n));\n \t\t\t\t\t\tint r = color.getRed() + dy;\n \t\t\t\t\t\tif (r > 255)\n \t\t\t\t\t\tr = 255;\n \t\t\t\t\t\tif (r < 0)\n \t\t\t\t\t\tr = 0;\n \t\t\t\t\t\tint g = (color.getGreen() + dy);\n \t\t\t\t\t\tif (g > 255)\n \t\t\t\t\t\tg = 255;\n \t\t\t\t\t\tif (g < 0)\n \t\t\t\t\t\tg = 0;\n \t\t\t\t\t\tint b = color.getBlue() + dy;\n \t\t\t\t\t\tif (b > 255)\n \t\t\t\t\t\tb = 255;\n \t\t\t\t\t\tif (b < 0)\n \t\t\t\t\t\tb = 0;\n \t\t\t\t\t\tcolor = new Color(r, g, b);\n \t\t\t\t\t\ttile.setRGB(m, n, color.getRGB());\n \t\t\t\t\t\tcolor = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tgr.drawImage(tile, (x+radius)*16, (z+radius)*16, null);\n \t\t\t\t} else {\n \t\t\t\t\tColor color = map.getColor(id);\n \t\t\t\t\tint r = color.getRed() + dy;\n \t\t\t\t\tif (r > 255)\n \t\t\t\t\tr = 255;\n \t\t\t\t\tif (r < 0)\n \t\t\t\t\tr = 0;\n \t\t\t\t\tint g = (color.getGreen() + dy);\n \t\t\t\t\tif (g > 255)\n \t\t\t\t\tg = 255;\n \t\t\t\t\tif (g < 0)\n \t\t\t\t\tg = 0;\n \t\t\t\t\tint b = color.getBlue() + dy;\n \t\t\t\t\tif (b > 255)\n \t\t\t\t\tb = 255;\n \t\t\t\t\tif (b < 0)\n \t\t\t\t\tb = 0;\n \t\t\t\t\tcolor = new Color(r, g, b);\n \t\t\t\t\timage.setRGB(x+image.getWidth()/2, z+image.getHeight()/2, color.getRGB());\n \t\t\t\t\tcolor = null;\n \t\t\t\t}\n \t\t\t}\n \t\tgr.dispose();\n \t\ttry {\n \t\t\tFile file = new File(\"test.png\");\n \t\t\tImageIO.write(image, \"png\", file);\n \t\t} catch (Exception e) {\n \t\t\t\n \t\t}\n \t\t// TODO Add pathing back\n \t\t//writePath(pairs);\n \t\tgr = this.image.getGraphics();\n \t\tgr.drawImage(image, 0, 0, 256, 256, null);\n \t\tgr.dispose();\n \t\t// Can we help stop the memory leak here?\n \t\timage.flush();\n \t\timage = null;\n \t}",
"public static void main(String[] args) throws IOException {\n\t\tGridWorld[] workSpace = new GridWorld[50];\r\n\r\n\t\t//create 50 grid worlds to put in the array and within the grid worlds initiate all the cells\r\n\t\tfor(int i = 0; i < 50; i++) {\r\n\t\t\tGridWorld g = new GridWorld(i);\r\n\t\t\tfor(int j = 0; j < gridDimmension; j++) {\r\n\t\t\t\tfor(int k = 0; k < gridDimmension; k++) {\r\n\t\t\t\t\tg.grid[j][k] = new cell();\r\n\t\t\t\t\tg.grid[j][k].setCellCoordinates(j, k);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tworkSpace[i] = g;\r\n\t\t}\r\n\t\t\r\n\t\tRandom rand = new Random();\r\n\r\n\t\t//have to setup the grid world \"maze\" for each grid world in the workspace\r\n\t\tfor(GridWorld g: workSpace) {\r\n\t\t\t//need to visit all 101x101 cells\r\n\t\t\tint x;\r\n\t\t\tint y;\r\n\t\t\twhile(g.counter != (gridDimmension*gridDimmension)) {\r\n\t\t\t\t//if the stack is empty we want to just pick a random unvisited cell and start from there\r\n\t\t\t\tif(g.myStack.isEmpty()) {\r\n\t\t\t\t\t//start by picking a random cell\r\n\t\t\t\t\tcell starter = selectRandomCell(g);\r\n\t\t\t\t\tx = starter.x;\r\n\t\t\t\t\ty = starter.y;\r\n\t\t\t\t\t//if we pick a cell thats already been visited we want to pick another one at random until we find one that hasn't\r\n\t\t\t\t\twhile(g.grid[x][y].visited) {\r\n\t\t\t\t\t\tstarter = selectRandomCell(g);\r\n\t\t\t\t\t\tx = starter.x;\r\n\t\t\t\t\t\ty = starter.y;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//mark the random cell as visited and unblocked\r\n\r\n\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t//increment the counter to show one more cell has been visited\r\n\t\t\t\t\tg.counter++;\r\n\r\n\t\t\t\t\t//select a random neighbor\r\n\t\t\t\t\t//1 = move left, 2 = move right, 3 = go up, 4 = go down\r\n\t\t\t\t\t//x is up and down, y is left or right\r\n\t\t\t\t\twhile(!deadEnd(g, x, y)) {\r\n\t\t\t\t\t\tString options = \"lrud\";\r\n\t\t\t\t\t\tif(y - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('l', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(y + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('r', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x + 1 >=gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('u', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('d', 'q');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tint r;\r\n\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\tr = rand.nextInt(4) + 1;\r\n\t\t\t\t\t\t}while(!randomNeighborChecker(g, x, y, options, r));\r\n\r\n\t\t\t\t\t\t//now that we know which way we are going we can move where we need to go\r\n\t\t\t\t\t\tif(r == 1) {\r\n\t\t\t\t\t\t\ty-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 2) {\r\n\t\t\t\t\t\t\ty+=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 3) {\r\n\t\t\t\t\t\t\tx-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 4) {\r\n\t\t\t\t\t\t\tx+=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//the new coordinates of the cell to work on have been chosen\r\n\t\t\t\t\t\t//with 30% chance mark the cell as blocked, with 70% chance mark the cell as unblocked and add to stack\r\n\t\t\t\t\t\tint blockedNum = rand.nextInt(100);\r\n\t\t\t\t\t\tif(blockedNum <= 30) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(blocked);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t} else if(blockedNum > 70) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t\t\tg.myStack.push(g.grid[x][y]);\r\n\t\t\t\t\t\t\tg.counter++;\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\t//if the stack is not empty we do the same exact process \r\n\t\t\t\t//only difference is we don't choose a random cell we choose the one we popped from the stack\r\n\t\t\t\telse {\r\n\r\n\t\t\t\t\tcell temp = g.myStack.pop();\r\n\t\t\t\t\tx = temp.x;\r\n\t\t\t\t\ty = temp.y;\r\n\r\n\r\n\t\t\t\t\t//select a random neighbor\r\n\t\t\t\t\t//1 = move left, 2 = move right, 3 = go up, 4 = go down\r\n\t\t\t\t\t//x is up and down, y is left or right\r\n\t\t\t\t\twhile(!deadEnd(g, x, y)) {\r\n\t\t\t\t\t\tString options = \"lrud\";\r\n\t\t\t\t\t\tif(y - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('l', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(y + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('r', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x + 1 >= gridDimmension) {\r\n\t\t\t\t\t\t\toptions = options.replace('u', 'q');\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(x - 1 < 0) {\r\n\t\t\t\t\t\t\toptions = options.replace('d', 'q');\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tint r;\r\n\t\t\t\t\t\tdo {\r\n\t\t\t\t\t\t\tr = rand.nextInt(4) + 1;\r\n\t\t\t\t\t\t}while(!randomNeighborChecker(g, x, y, options, r));\r\n\r\n\t\t\t\t\t\t//now that we know which way we are going we can move where we need to go\r\n\t\t\t\t\t\tif(r == 1) {\r\n\t\t\t\t\t\t\ty-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 2) {\r\n\t\t\t\t\t\t\ty+=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 3) {\r\n\t\t\t\t\t\t\tx-=1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(r == 4) {\r\n\t\t\t\t\t\t\tx+=1;\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t//the new coordinates of the cell to work on have been chosen\r\n\t\t\t\t\t\t//with 30% chance mark the cell as blocked, with 70% chance mark the cell as unblocked and add to stack\r\n\t\t\t\t\t\tint blockedNum = rand.nextInt(100);\r\n\t\t\t\t\t\tif(blockedNum <= 30) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(blocked);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t} else if(blockedNum > 70) {\r\n\t\t\t\t\t\t\tg.grid[x][y].setVisited();\r\n\t\t\t\t\t\t\tg.grid[x][y].setStatus(unblocked);\r\n\t\t\t\t\t\t\tg.myStack.push(g.grid[x][y]);\r\n\t\t\t\t\t\t\tg.counter++;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(GridWorld gw: workSpace){\r\n\t\t\t//get goal\r\n\t\t\tcell goal = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\twhile(goal.status == blocked){\r\n\t\t\t\tgoal = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t}\r\n\t\t\tgw.g = goal;\r\n\t\t\t\r\n\t\t\t//get start(s)\r\n\t\t\tgw.s = new cell[numAgents];\r\n\t\t\tfor(int i=0; i<numAgents; i++){\r\n\t\t\t\tcell start = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t\twhile(start.status == blocked || start.equals(goal)){\r\n\t\t\t\t\tstart = gw.grid[rand.nextInt(gridDimmension)][rand.nextInt(gridDimmension)];\r\n\t\t\t\t}\r\n\t\t\t\tgw.s[i] = start;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsaveGrid(gw);\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Done\");\r\n\t}",
"private void buildWalls() {\n for (Position floor : floors) {\n addWall(floor.xCoordinate, floor.yCoordinate);\n }\n }",
"public static void map(int location)\n\t{\n\t\tswitch(location)\n\t\t{\t\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * X # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # X # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 5:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 7:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 8:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 9:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # X * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 10:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * X # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 11:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # X # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\"); break;\n\t\t\tcase 12:\n\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\tSystem.out.print(\" -LEGEND- \\n\");\n\t\t\t\tSystem.out.print(\" X = Current Location \\n\");\t\n\t\t\t\tSystem.out.print(\" # = Wall ############################################ \\n\");\n\t\t\t\tSystem.out.print(\" * = Door # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # X # \\n\");\n\t\t\t\tSystem.out.print(\" ######################## # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############ \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ############### ############### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # ###########***########### \\n\");\n\t\t\t\tSystem.out.print(\" ####################***# # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # # \\n\");\n\t\t\t\tSystem.out.print(\" #########***##### # ######## \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # #### # \\n\");\n\t\t\t\tSystem.out.print(\" ############ # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # * # ###########***########### # # \\n\");\n\t\t\t\tSystem.out.print(\" # ######## # # # ###***######### \\n\");\n\t\t\t\tSystem.out.print(\" # # # ############## # # # # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # * # # * # \\n\");\n\t\t\t\tSystem.out.print(\" # # # ##############***##### # # # \\n\");\n\t\t\t\tSystem.out.print(\" #***# # # # # # ####### \\n\");\n\t\t\t\tSystem.out.print(\" # # # # # # \\n\");\n\t\t\t\tSystem.out.print(\" ################# # # ######### \\n\");\n\t\t\t\tSystem.out.print(\" ############### \\n\");\n\t\t\t\tSystem.out.print(\"[R] Return\\n\");\n\t\t\t\tSystem.out.print(\"\\n______________________________________________________\"\n\t\t\t\t\t+ \"____________________\\n\\n\");\n\t\t}//end switch(location)\n\t\t\n\t}",
"public void setupWorld()\r\n\t{\r\n\t\t//build walls\r\n\t\twall1.add(new PointD(-500, 500));\r\n\t\twall1.add(new PointD(-490, 500));\r\n\t\twall1.add(new PointD(-490, -500));\r\n\t\twall1.add(new PointD(-500, -500));\r\n\r\n\t\twall2.add(new PointD(-500, 500));\r\n\t\twall2.add(new PointD(2000, 500));\r\n\t\twall2.add(new PointD(2000, 490));\r\n\t\twall2.add(new PointD(-500, 490));\r\n\t\t\r\n\t\twall3.add(new PointD(2000, 500));\r\n\t\twall3.add(new PointD(1990, 500));\r\n\t\twall3.add(new PointD(1990, -500));\r\n\t\twall3.add(new PointD(2000, -500));\r\n\r\n\t\twall4.add(new PointD(-500, -500));\r\n\t\twall4.add(new PointD(2000, -500));\r\n\t\twall4.add(new PointD(2000, -490));\r\n\t\twall4.add(new PointD(-500, -490));\r\n\r\n\t\tobjects.add(wall1);\r\n\t\tobjects.add(wall2);\r\n\t\tobjects.add(wall3);\r\n\t\tobjects.add(wall4);\r\n\t\t\r\n\t\t\r\n\t\t//add people\r\n\t\tGameVars.people = people;\r\n\t\tGameVars.aSquare = aSquare;\r\n\t\t\r\n\t\tobjects.add(grandson.boundary);\r\n\t\tpeople.add(grandson);\r\n\t\t\r\n\t\tobjects.add(son.boundary);\r\n\t\tpeople.add(son);\r\n\t\t\r\n\t\tobjects.add(triangle.boundary);\r\n\t\tpeople.add(triangle);\r\n\r\n\t\tobjects.add(wife.boundary);\r\n\t\tpeople.add(wife);\r\n\r\n\t\tobjects.add(runaway.boundary);\r\n\t\tpeople.add(runaway);\r\n\t\t\r\n\t\t\r\n\t\t//set aSquare's position\r\n\t\taSquare.rotate(220);\r\n\t\t\r\n\t}",
"private void detectBombs(int row, int col){\r\n int bombCount = 0; //Amount of bombs nearby\r\n //Check up\r\n if((row-1 >= 0) && row<map.length && col<map[0].length && col>=0 && map[row-1][col].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check down\r\n if((row+1 < map.length) && row>=0&& col<map[0].length && col>=0 && map[row+1][col].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check right\r\n if((col+1 < map[0].length) && col>=0 && row<map.length && row>=0 && map[row][col+1].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check left\r\n if((col-1 >= 0) && col<map[0].length && row<map.length && row>=0 && map[row][col-1].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check up right\r\n if((row-1 >= 0) && row<map.length && (col+1 < map[0].length) && col>=0 && map[row-1][col+1].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check up left\r\n if((row-1 >= 0) && row<map.length && (col-1 >= 0) && col<map[0].length&& map[row-1][col-1].getSafe() == false){\r\n bombCount++;\r\n }\r\n //Check down left\r\n if((row+1 < map.length) && row>=0 && (col-1 >= 0)&& col<map[0].length && map[row+1][col-1].getSafe() == false){\r\n bombCount++;\r\n }\r\n //check down right\r\n if((row+1 < map.length) && row>=0 && (col+1 < map[0].length)&& col>=0 && map[row+1][col+1].getSafe() == false){\r\n bombCount++;\r\n }\r\n if(row>=0 && col>=0 && row<map.length && col<map[0].length && !map[row][col].getVisual().equals(\"F\") && map[row][col].getSafe() == true){\r\n if(bombCount==0){\r\n map[row][col].setVisual(zero);\r\n }\r\n if(bombCount==1){\r\n map[row][col].setVisual(one);\r\n }\r\n if(bombCount==2){\r\n map[row][col].setVisual(two);\r\n }\r\n if(bombCount==3){\r\n map[row][col].setVisual(three);\r\n }\r\n if(bombCount==4){\r\n map[row][col].setVisual(four);\r\n }\r\n if(bombCount==5){\r\n map[row][col].setVisual(five);\r\n }\r\n if(bombCount==6){\r\n map[row][col].setVisual(six);\r\n }\r\n if(bombCount==7){\r\n map[row][col].setVisual(seven);\r\n }\r\n if(bombCount==8){\r\n map[row][col].setVisual(eight);\r\n }\r\n map[row][col].setRevealed(true);\r\n }\r\n\r\n\r\n //return bombCount;\r\n\r\n\r\n }",
"@Test\n public void testNumCellsSpreadingFromInsideGrid() {\n params = new CompletelySpatiallyRandomParams(0, 0.5);\n coloniser = new CompletelySpatiallyRandomColoniser(landCoverType, juvenilePine, juvenileOak,\n juvenileDeciduous, params);\n\n assertEquals(2, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Oak));\n assertEquals(1, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Pine));\n assertEquals(1, coloniser.getNumCellsColonisedFromInsideGrid(LscapeLayer.Deciduous));\n }",
"@Test\n public void TEST_UR_MAP_LENGTH() {\n Object[] objects = loadSave(\"emptyRiver\");\n Map map = (Map) objects[0];\n Player player = (Player) objects[1];\n AI[] opponents = (AI[]) objects[2];\n boolean[] NO_KEYS_PRESSED = {false, false, false, false};\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertFalse(player.hasFinished());\n\n for (int i = 0; i < 60*30; i++) {\n map.stepWorld(player, opponents);\n player.updatePlayer(NO_KEYS_PRESSED, Gdx.graphics.getDeltaTime());\n }\n assertTrue(player.hasFinished());\n }",
"public void update()\n {\n // start from the bottom of the world\n\n for (int y = height - 1; y >= 0; --y)\n {\n // compute offset to this and next line\n\n int thisOffset = y * width;\n \n // are we at top or bottom?\n\n boolean atTop = y == 0;\n boolean atBot = y == height - 1;\n\n // process line in random order\n \n for (int x: xRndIndex[rnd.nextInt(RND_INDEX_CNT)])\n {\n // index of this pixel\n \n int ip = thisOffset + x;\n \n // value of this pixel\n\n int p = pixels[ip];\n\n // don't process inert matter\n\n if (p == AIR || p == ROCK || p == EARTH)\n continue;\n\n // are we on a left or right edge?\n\n boolean atLeft = x == 0;\n boolean atRight = x == width - 1;\n\n // indices of pixels around this particle\n\n int iuc = ip - width;\n int idc = ip + width;\n int idl = idc - 1;\n int idr = idc + 1;\n int il = ip - 1;\n int ir = ip + 1;\n\n // get pixels for each index\n\n int uc = atTop ? ROCK : pixels[iuc];\n int dc = atBot ? ROCK : pixels[idc];\n int dl = atBot || atLeft ? ROCK : pixels[idl];\n int dr = atBot || atRight ? ROCK : pixels[idr];\n int l = atLeft ? ROCK : pixels[il];\n int r = atRight ? ROCK : pixels[ir];\n \n // the following actions propogate elements around the\n // world, they do not conserve matter\n\n // if fire, propogate fire\n\n if (p == FIRE1 || p == FIRE2 || p == FIRE3 || \n p == FIRE4 || p == FIRE5 || p == FIRE6)\n {\n int[] burn = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n\n\n for (int ib: burn)\n {\n int b = pixels[ib];\n\t\t\t\t\t \n\t\t\t\t\t // fire burns plants and oil, makes steam out of water\n\t\t\t\t\t \n if ((b == PLANT || b == OIL || b == COLUMBINE) &&\n rnd.nextInt(FIRE_CHANCE_IN) == 0)\n pixels[ib] = FIRE1;\n else\n if (b == WATER)\n {\n pixels[ib] = STEAM;\n pixels[ip] = STEAM;\n\t\t\t\t\t\t pixels[iuc] = STEAM;\n p = STEAM;\n break;\n }\n }\n // move fire along\n\n if (p == FIRE1)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE2)\n {\n pixels[ip] = FIRE3;\n continue;\n }\n if (p == FIRE3)\n {\n pixels[ip] = FIRE4;\n continue;\n }\n if (p == FIRE4)\n {\n pixels[ip] = FIRE5;\n continue;\n }\n if (p == FIRE5)\n {\n pixels[ip] = FIRE6;\n continue;\n }\n if (p == FIRE6)\n {\n pixels[ip] = AIR;\n continue;\n }\n }\n // if this is steam, evaporate into air\n\n if (p == STEAM)\n { pixels[ip] = AIR;\n continue;\n\t\t\t }\n\n // if this is an everything sucker\n\n if (p == AIR_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n pixels[it] = AIR;\n continue;\n }\n // if this is a water source\n\n if (p == WATER_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(WATER_CHANCE_IN) == 0)\n pixels[it] = WATER;\n continue;\n }\n // if this is a fire source\n\n if (p == OIL_SOURCE)\n {\n int[] targets = {atRight ? ip : ir,\n atLeft ? ip : il,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR)\n pixels[it] = OIL;\n continue;\n }\n // if this is a sand source\n\n if (p == SAND_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == AIR &&\n rnd.nextInt(SAND_CHANCE_IN) == 0)\n pixels[it] = SAND;\n continue;\n }\n // if this is a plant, propogate growth\n\n if (p == PLANT)\n {\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n int[] targets = {atLeft ? ip : il,\n atLeft || atTop ? ip : iul,\n atRight ? ip : ir,\n atRight || atTop ? ip : iur,\n atTop ? ip : iuc,\n atBot ? ip : idc,\n atBot || atLeft ? ip : idl,\n atBot || atRight ? ip : idr,\n };\n\t\t\t\t if (pixels[idl] == PLANT && pixels[idc] == PLANT && \n\t\t\t\t pixels[idr] == PLANT && pixels[ir] == PLANT && \n\t\t\t\t\t pixels[il] == PLANT && pixels[iuc] == WATER)\n\t\t\t\t\t pixels[ip] = COLUMBINE;\n for (int ix: targets)\n if (pixels[ix] == AIR)\n for (int it: targets)\n if (pixels[it] == WATER && rnd.nextInt(PLANT_CHANCE_IN) == 0)\n pixels[it] = PLANT;\n\t\t\t\t continue;\n }\n // if this is a flower\n\n if (p == COLUMBINE)\n\t\t\t {\n\t\t\t continue;\n\t\t\t }\n // if this is a fire source\n\n if (p == FIRE_SOURCE)\n {\n int[] targets = {atLeft ? ip : il,\n atRight ? ip : ir,\n atTop ? ip : iuc,\n atBot ? ip : idc};\n for (int it: targets)\n if (pixels[it] == PLANT || pixels[it] == OIL)\n pixels[it] = FIRE1;\n continue;\n }\n // all actions from this point on conserve matter\n // we only calculate the place to which this particle\n // will move, the the default is to do nothing\n\n int dest = NO_CHANGE;\n \n // if it's a oil\n\n if (p == OIL)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR)\n dest = idc;\n \n // if air on both sides below, pick one\n\n else if (dl == AIR && dr == AIR)\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // if it's water\n\n else if (p == WATER)\n {\n // compute indices for up left and up right\n\n int iul = iuc - 1;\n int iur = iuc + 1;\n\n // get pixels for each index\n\n int ul = atTop || atLeft ? ROCK : pixels[iul];\n int ur = atTop || atRight ? ROCK : pixels[iur];\n\n // if there is sand/earth above, erode that\n\n if (uc == EARTH || uc == SAND)\n dest = iuc; \n\n // if pixles up left and up right sand/water\n\n else if ((ul == EARTH || ul == SAND) && \n (ur == EARTH || ur == SAND))\n dest = rnd.nextBoolean() ? iul : iur;\n\n // if air underneath, go down\n \n else if (dc == AIR || dc == OIL)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == OIL) && (dr == AIR || dr == OIL))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == OIL)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == OIL)\n dest = idr;\n\n // if air on both sides below, pick one\n\n else if ((l == AIR || l == EARTH || l == SAND) &&\n (r == AIR || r == EARTH || r == SAND))\n dest = rnd.nextBoolean() ? il : ir;\n\n // if air only down left, go left\n\n else if (l == AIR || l == EARTH || l == SAND)\n dest = il;\n\n // if air only down right, go right\n\n else if (r == AIR || r == EARTH || r == SAND)\n dest = ir;\n\n // the case where water flows out two pixels\n \n else\n {\n // get items 2 pixels on either side of this one\n\n int ill = ip - 2;\n int irr = ip + 2;\n int ll = x < 2 ? ROCK : pixels[ill];\n int rr = x > width - 3 ? ROCK : pixels[irr];\n\n // if air on both sides, pick one\n\n if (ll == AIR && rr == AIR)\n dest = rnd.nextBoolean() ? irr : ill;\n \n // if air only right right, go right right\n \n else if (rr == AIR)\n dest = irr;\n \n // if air only left left, go left left\n\n else if (ll == AIR)\n dest = ill;\n }\n }\n // all other elements behave like sand\n\n else\n {\n // if air underneath, go down\n \n if (dc == AIR || dc == WATER)\n dest = idc;\n\n // if air on both sides below, pick one\n\n else if ((dl == AIR || dl == WATER) && \n (dr == AIR || dr == WATER))\n dest = rnd.nextBoolean() ? idl : idr;\n\n // if air only down left, go left\n\n else if (dl == AIR || dl == WATER)\n dest = idl;\n\n // if air only down right, go right\n\n else if (dr == AIR || dr == WATER)\n dest = idr;\n }\n // if a change is requried, swap pixles\n\n try\n {\n if (dest != NO_CHANGE)\n {\n if (pixels[ip] == WATER_SOURCE)\n out.println(\"swap1 WS & \" + Element.lookup(pixels[dest]));\n if (pixels[dest] == WATER_SOURCE)\n out.println(\"swap2 WS & \" + Element.lookup(pixels[ip]));\n\n pixels[ip] = pixels[dest];\n pixels[dest] = p;\n }\n }\n catch (Exception ex)\n {\n ex.printStackTrace();\n out.println(\" X: \" + x);\n out.println(\" Y: \" + y);\n out.println(\"Source: \" + Element.lookup(p));\n out.println(\"Source: \" + Element.lookup(pixels[ip]));\n out.println(\" Dest: \" + Element.lookup(pixels[dest]));\n \n }\n }\n }\n }",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"private void setupRooms() {\n\t\tthis.listOfCoordinates = new ArrayList<Coordinates>();\r\n\t\tthis.rooms = new HashMap<String,Room>();\r\n\t\t\r\n\t\tArrayList<Coordinates> spaEntrances = new ArrayList<Coordinates>();\r\n\t\tspaEntrances.add(grid[5][6].getCoord());\r\n\r\n\t\tArrayList<Coordinates> theatreEntrances = new ArrayList<Coordinates>();\r\n\t\ttheatreEntrances.add(grid[13][2].getCoord());\r\n\t\ttheatreEntrances.add(grid[10][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> livingRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tlivingRoomEntrances.add(grid[13][5].getCoord());\r\n\t\tlivingRoomEntrances.add(grid[16][9].getCoord());\r\n\r\n\t\tArrayList<Coordinates> observatoryEntrances = new ArrayList<Coordinates>();\r\n\t\tobservatoryEntrances.add(grid[21][8].getCoord());\r\n\r\n\t\tArrayList<Coordinates> patioEntrances = new ArrayList<Coordinates>();\r\n\t\tpatioEntrances.add(grid[5][10].getCoord());\r\n\t\tpatioEntrances.add(grid[8][12].getCoord());\r\n\t\tpatioEntrances.add(grid[8][16].getCoord());\r\n\t\tpatioEntrances.add(grid[5][18].getCoord());\r\n\r\n\t\t// ...\r\n\t\tArrayList<Coordinates> poolEntrances = new ArrayList<Coordinates>();\r\n\t\tpoolEntrances.add(grid[10][17].getCoord());\r\n\t\tpoolEntrances.add(grid[17][17].getCoord());\r\n\t\tpoolEntrances.add(grid[14][10].getCoord());\r\n\r\n\t\tArrayList<Coordinates> hallEntrances = new ArrayList<Coordinates>();\r\n\t\thallEntrances.add(grid[22][10].getCoord());\r\n\t\thallEntrances.add(grid[18][13].getCoord());\r\n\t\thallEntrances.add(grid[18][14].getCoord());\r\n\r\n\t\tArrayList<Coordinates> kitchenEntrances = new ArrayList<Coordinates>();\r\n\t\tkitchenEntrances.add(grid[6][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> diningRoomEntrances = new ArrayList<Coordinates>();\r\n\t\tdiningRoomEntrances.add(grid[12][18].getCoord());\r\n\t\tdiningRoomEntrances.add(grid[16][21].getCoord());\r\n\r\n\t\tArrayList<Coordinates> guestHouseEntrances = new ArrayList<Coordinates>();\r\n\t\tguestHouseEntrances.add(grid[20][20].getCoord());\r\n\r\n\t\t// setup entrances map\r\n\t\tthis.roomEntrances = new HashMap<Coordinates, Room>();\r\n\t\tfor (LocationCard lc : this.listOfLocationCard) {\r\n\t\t\tString name = lc.getName();\r\n\t\t\tRoom r;\r\n\t\t\tif (name.equals(\"Spa\")) {\r\n\t\t\t\tr = new Room(name, lc, spaEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : spaEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Theatre\")) {\r\n\t\t\t\tr = new Room(name, lc,theatreEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : theatreEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"LivingRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,livingRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : livingRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Observatory\")) {\r\n\t\t\t\tr = new Room(name, lc,observatoryEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : observatoryEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Patio\")) {\r\n\t\t\t\tr = new Room(name,lc, patioEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : patioEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Pool\")) {\r\n\t\t\t\tr = new Room(name,lc,poolEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : poolEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Hall\")) {\r\n\t\t\t\tr = new Room(name, lc,hallEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : hallEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"Kitchen\")) {\r\n\t\t\t\tr = new Room(name, lc,kitchenEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : kitchenEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"DiningRoom\")) {\r\n\t\t\t\tr = new Room(name, lc,diningRoomEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : diningRoomEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t} else if (name.equals(\"GuestHouse\")) {\r\n\t\t\t\tr = new Room(name, lc,guestHouseEntrances);\r\n\t\t\t\tthis.rooms.put(name, r);\r\n\t\t\t\tfor (Coordinates c : guestHouseEntrances) {\r\n\t\t\t\t\tthis.roomEntrances.put(c, r);\r\n\t\t\t\t\tthis.listOfCoordinates.add(c);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"@Test\n\t\t\tpublic void testRoomExit()\n\t\t\t{\n\t\t\t\t// One step from room\n\t\t\t\tboard.calcTargets(13, 14, 1);\n\t\t\t\tSet<BoardCell> targets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(1, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 14)));\n\n\t\t\t\t// Take two steps\n\t\t\t\tboard.calcTargets(13, 14, 2);\n\t\t\t\ttargets= board.getTargets();\n\t\t\t\tboard.clearTargets();\n\t\t\t\tassertEquals(3, targets.size());\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(11, 14)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 13)));\n\t\t\t\tassertTrue(targets.contains(board.getCellAt(12, 15)));\n\t\t\t\t\n\t\t\t\t\n\t\t\t}",
"public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}",
"public static void main(String[] args) throws Exception {\n int n = scn.nextInt();\n int m = scn.nextInt();;\n \n int[][] arr = new int[n][m];\n for(int i= 0; i < arr.length; i++){\n for(int j=0; j < arr[0].length;j++){\n arr[i][j] = scn.nextInt();\n }\n }\n exitPoint(arr,n,m);\n }",
"public static void main (String[] args){\n objetos = new City(\"Field.txt\");\n\t objetos.showThingCounts(true);\n \n \n // Thing a1 = new Thing( objetos, 1, 6);\n// Thing a2 = new Thing( objetos, 1, 7);\n int yRelativa = 0;\n int xRelativa = 0;\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, -i, xRelativa, Direction.WEST);\n }\n for (int i = 1; i < 10; i++) {\n new Wall(objetos, -i, xRelativa+9, Direction.EAST);\n }\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, yRelativa, i, Direction.SOUTH);\n }\n \n for (int i = 0; i < 10; i++) {\n new Wall(objetos, yRelativa-9, i, Direction.NORTH);\n }\n \n //Direction.NORTH, EAST, SOUTH, WEST\n //Definicion de la ubicacion del robot, Ciudad, posicion, Direccion, Numero things en el bolso.\n //ascensor3 = new Robot(City aCity, int aStreet, int anAvenue, Direction aDirection) \n ascensor1 = new Ascensor(objetos, yRelativa,xRelativa, Direction.EAST,0);\n ascensor2 = new Ascensor(objetos, yRelativa,xRelativa+1, Direction.EAST,0);\n //portero = new Ascensor(objetos, yRelativa,xRelativa+2, Direction.EAST,0);\n \n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+2,6);\n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+3,6);\n \n createUsuarioPrimerPiso(objetos, yRelativa, xRelativa+6,6);\n \n// Usuario u1 = new Usuario (objetos, yRelativa, xRelativa+2,6);\n// Usuario u2 = new Usuario (objetos, yRelativa, xRelativa+3,6);\n// Usuario u3 = new Usuario (objetos, yRelativa, xRelativa+4,6);\n// Usuario u4 = new Usuario (objetos, yRelativa, xRelativa+5,6);\n// Usuario u5 = new Usuario (objetos, yRelativa, xRelativa+6,6);\n// Usuario u6 = new Usuario (objetos, yRelativa, xRelativa+7,6);\n// Usuario u7 = new Usuario (objetos, yRelativa, xRelativa+8,6);\n// Usuario u8 = new Usuario (objetos, yRelativa, xRelativa+9,6);\n// Usuario u9 = new Usuario (objetos, yRelativa, xRelativa+10,6);\n// Usuario u10 = new Usuario (objetos, yRelativa, xRelativa+11,6);\n\n cargarPasajeros(ascensor1);\n\n// while(ascensor1.getAvenue()!=xRelativa){\n// ascensor1.move();\n// }\n// //turnRight(ascensor1);\n\n \n\n while (ascensor1.getDirection()!=Direction.NORTH){\n ascensor1.turnLeft();\n }\n //******DESDE ESTE PUNTO (LINEA 160) HASTA LA LINEA 204 SE HACE EL MOVIMIENTO DE UN USUARIO DE MANERA EXPLICITA\n // Los usuarios que usa están contenidos en las líneas (134-143)\n \n// while((ascensor1.getStreet()*-1)!= u1.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n// \n// while (ascensor1.getDirection()!=Direction.NORTH){\n// ascensor1.turnLeft();\n// }\n// \n// while((ascensor1.getStreet()*-1)!= u2.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n// \n// while((ascensor1.getStreet()*-1)!= u3.getPisoDeseado()){\n// ascensor1.move(); \n// }\n// turnRight(ascensor1);\n// ascensor1.move();\n// ascensor1.move();\n// while(ascensor1.canPickThing()==true){\n// ascensor1.move();\n// }\n// if(ascensor1.canPickThing()==false){\n// ascensor1.putThing();\n// }\n// regresarAlOrigen(ascensor1);\n \n //************************\n \n //public synchronized void\n\t //Mover una interseccion en el sentido al cual este apuntando el objeto.\n// for (int i = 0; i < 8; i++) {\n// if(portero.canPickThing()==false){\n// \n// new Thing (objetos, portero.getStreet() , portero.getAvenue());\n// }\n// \n// \n// portero.move();\n// }\n// portero.move();\n// portero.move();\n \n \n \n\n \n \n \n// //Tomando decisiones, Si puedo tomar un Thing\n// boolean puedeTomar = estudiante.canPickThing();\n// \n// //Tomar un Thing\n// if(puedeTomar == true)\n// estudiante.pickThing();\n// \n// //Especifica el numero de Thing que tiene en robot en el bolso\n// int numeroThings = estudiante.countThingsInBackpack();\n// \n// //Poner Thing, se debe validar que tenga things en el bolso\n// estudiante.putThing();\n// \n// //Si el frente esta libre de Wall\n// estudiante.frontIsClear();\n// \n// //Invocando una funcion\n// creacionFuncion(4);\n// \n// //Toman un Thing\n// estudiante.pickThing();\n// \n// \n\t}",
"public void main() {\n\tvor();\n\tvor();\n\tnimm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tnimm();\n\t\n\t/* get hamster to pick up four grains\n\t(continuation of previous code) */\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tnimm();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tnimm();\n\t\n\t/* get hamster to pick up all grains\n\t(continuation of previous code) */\n\t\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tvor();\n\tnimm();\n\tlinksUm();\n\tvor();\n\tnimm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tnimm();\n\tvor();\n\tnimm();\n\tvor();\n\tnimm();\n\tvor();\n\tnimm();\n\tvor();\n\tnimm();\n\t\n\t/* drop all grains in top left corner\n\tand go back to initial position (facing south)\n\t(continuation of previous code) */\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tvor();\n\tgib(); // drop all 11 grains\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tgib();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n\tvor();\n\tvor();\n\tlinksUm();\n\tlinksUm();\n\tlinksUm();\n\tvor();\n}",
"public void step(){\n //System.out.println(\"step\");\n //display();\n Cell[][] copy = new Cell[world.length][world.length];\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n copy [r][c] = new Cell();\n copy[r][c].setState(world[r][c].isAlive());\n }\n }\n\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){ \n int n = getNumberOfLiveNeighbours(r,c);\n if(world[r][c].isAlive()){\n if(n<2||n>3){\n copy[r][c].setState(false);\n }\n }else{\n if(n==3){\n copy[r][c].setState(true);\n }\n }\n }\n }\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n world[r][c].setState(copy[r][c].isAlive());\n }\n }\n }"
] | [
"0.65022105",
"0.61947644",
"0.6092777",
"0.59925866",
"0.5931633",
"0.5928386",
"0.5906917",
"0.5904459",
"0.5903355",
"0.58852917",
"0.5881369",
"0.58790386",
"0.58655083",
"0.58560926",
"0.5838795",
"0.5807973",
"0.57915777",
"0.5789976",
"0.57460004",
"0.5745691",
"0.56844884",
"0.56768405",
"0.5655831",
"0.5651044",
"0.56336784",
"0.5632785",
"0.5630337",
"0.56253123",
"0.5618974",
"0.5607794",
"0.55930793",
"0.55781364",
"0.5555432",
"0.5546582",
"0.5544444",
"0.5541426",
"0.55352813",
"0.5534318",
"0.553311",
"0.5521859",
"0.55019444",
"0.5496549",
"0.54907495",
"0.54841995",
"0.54758745",
"0.5469304",
"0.54691684",
"0.5459714",
"0.5458641",
"0.54582256",
"0.54423106",
"0.5436057",
"0.5434855",
"0.54329294",
"0.543",
"0.5415252",
"0.5409303",
"0.5406143",
"0.53991824",
"0.53943413",
"0.53906333",
"0.5384731",
"0.5384268",
"0.5383342",
"0.5377886",
"0.5377485",
"0.5369233",
"0.53621393",
"0.53604704",
"0.5359237",
"0.5358298",
"0.5356707",
"0.53449464",
"0.5340479",
"0.53377724",
"0.53356415",
"0.5328783",
"0.5328152",
"0.53233033",
"0.5322414",
"0.5320151",
"0.53186554",
"0.5315375",
"0.53115475",
"0.5310041",
"0.5305435",
"0.53027576",
"0.53021795",
"0.5300318",
"0.52981067",
"0.52927476",
"0.5292743",
"0.5292006",
"0.52907777",
"0.5285811",
"0.52854127",
"0.52841216",
"0.52819794",
"0.5278684",
"0.52763855"
] | 0.57990146 | 16 |
Check if you have a wall in front of you! | private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){
switch(orientation){
case EAST:
return checkEast(currentView);
case NORTH:
return checkNorth(currentView);
case SOUTH:
return checkSouth(currentView);
case WEST:
return checkWest(currentView);
default:
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isWall();",
"private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }",
"public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }",
"public boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}",
"private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}",
"private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}",
"private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }",
"boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }",
"protected boolean didHitWall() {\n return hitWall && !SnakeGame.getHasWarpWalls();\n\n }",
"public boolean checkIfBlocked(){\n\t\tsetNextXY();\n\t\t/*if(Physics.hitWall(this, game.wi)){\n\t\t\tblocked=true;\n\t\t}\n\t\telse{\n\t\t\tblocked=false;\n\t\t}\n\t\t*/\n\t\t\n\t\ttry{\n\t\t\tif(game.getController().wallArray[lastX][lastY]||game.getController().wallArray[nextX][nextY]){\n\t\t\t\treturn true;\n\t\t\t}\t\n\t\t}catch(IndexOutOfBoundsException x){\n\t\t\t\n\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"protected boolean isWall2()\n {\n\n if(isTouching(Wall.class)) //&&!isTouching(Door.class))\n return true;\n /*else if(isTouching(Door.class))\n {\n Door d = (Door)getOneIntersectingObject(Door.class);\n if(d.alreadyOpened==false)\n return true;\n else\n return false;\n }*/\n else\n return false;\n }",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}",
"private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }",
"private boolean checkFollowingWall(Coordinate carPos,\n\t\t\t\t\t\t\t\t\t\t WorldSpatial.Direction orientation) {\n\t\t// If it's a traversable trap return false\n\t\tif (map.tileAtRelative(carPos, orientation, -1, 0).isTrap() &&\n\t\t\t!map.tileAtRelative(carPos, orientation, -2, 0).blocking()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return true if there are any blocking tiles in specific range ahead\n\t\tfor (int i = 1; i <= WALL_THRESHOLD; i++) {\n\t\t\tif (map.tileAtRelative(carPos, orientation, -i, 0).blocking()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }",
"private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}",
"public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }",
"private boolean isObjectAPaddle(GObject collider) {\n return (collider == paddle);\n }",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"protected void checkInFront()\n {\n d = (Defender)getOneObjectAtOffset(getImage().getWidth()/4, 0, Defender.class);\n if (d != null )\n {\n\n frontEmpty= false;\n d.takeDamage(damage);\n }\n\n else\n {\n frontEmpty = true;\n }\n }",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"public boolean isWallDetected(Block block, Player player) {\n if (TownyAPI.getInstance().getTownBlock(block.getLocation()) == null) {\n if (player != null) {\n player.sendMessage(ChatColor.RED + \"The wall must be built in claimed territory.\");\n }\n return false; // Exit if it's not within a claimed territory\n }\n\n int count = 0;\n int maxCount = 384;\n boolean checked = false;\n while (count <= maxCount) {\n if (block.getY() + count <= 300) {\n Block targetAbove = block.getWorld().getBlockAt(block.getX(), block.getY() + count, block.getZ());\n if (isValidWallBlock(targetAbove)) return true;\n checked = true;\n }\n\n if (block.getY() - count >= -64) {\n Block targetBelow = block.getWorld().getBlockAt(block.getX(), block.getY() - count, block.getZ());\n if (isValidWallBlock(targetBelow)) return true;\n checked = true;\n }\n\n if(!checked) return false;\n count += 2;\n }\n return false;\n }",
"private boolean isNextToWall(Direction direction){\n switch (direction) {\n case LEFT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isLeftCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case RIGHT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isRightCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case UP:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isUpCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case DOWN:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isDownCollision(wall)) {\n return true;\n }\n }\n return false;\n\n default:\n return false;\n\n }\n }",
"public boolean onGround() {\n return getLocation().getY() <= 0 || (interactingWithY != null && interactingWithY.getLocation().getY() + interactingWithY.size.height <= getLocation().getY());\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}",
"private boolean verticalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(1).getYCoordinate() <= coordinates.get(2).getYCoordinate() && coordinates.get(1).getYCoordinate() <= wallCoordinates.get(2).getYCoordinate();\n }",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"private void updateFrontWall() {\n isFrontWall = (primaryFrame == WALL_FRONT);\n for(int i = 0; i < WALL_FRONT_ALT.length; i++) {\n if (primaryFrame == WALL_FRONT_ALT[i]) isFrontWall = true;\n }\n }",
"private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}",
"public boolean isWall(Position p) {\r\n try {\r\n if (mazeData[p.getX()][p.getY()] == WALL)\r\n return true;\r\n }catch (ArrayIndexOutOfBoundsException e ){}\r\n return false;\r\n }",
"public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }",
"private boolean aboveWall(int yCoord) {\n return (yCoord >= (yStart + ySize));\n }",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"boolean haveAnySpawn();",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeBadRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && ((Wall) simo).getType() == 2);\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 15){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"public boolean isWall(Orientation orientation) {\n\t\tfor(Edge edge : neighbors) {\n\t\t\tif(edge.getDirection() == orientation) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void checkWallCollision(Wall wall) {\n\t\t// check to see if enemy is colliding with wall.\n\t\t// Log.d(TAG,\"Front of character: \" + (x+xSpeed+width) +\n\t\t// \", edge of wall: \" + wall.getX());\n\t\t// check if at wall only when checking isDestroyed (for true value). if\n\t\t// moving and wall is destroyed won't pass first if check and won't ever\n\t\t// get set to atWall\n\t\tif (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed), x\n\t\t\t\t+ width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.moving && !wall.isDestroyed()) {\n\t\t\tLog.d(TAG, \"Enemy x: \" + x);\n\t\t\tint diff = (x + xSpeed) - (wall.getX() + wall.getWidth());\n\t\t\tLog.d(TAG, \"Difference: \" + diff);\n\t\t\tx += xSpeed - diff;\n\t\t\tLog.d(TAG, \"Enemy new x: \" + x);\n\t\t\tLog.d(TAG, \"Edge of wall: \" + (wall.getX() + wall.getWidth()));\n\t\t\tthis.setEnemyState(EnemyState.atWall);\n\t\t} else if (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed),\n\t\t\t\tx + width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.atWall && wall.isDestroyed()) {\n\t\t\tthis.setEnemyState(EnemyState.moving);\n\t\t}\n\t}",
"private boolean doesLineHitWall (Rectangle rect, float x1, float y1, float x2, float y2) {\n\t\tfloat minY = min(y1, y2);\n\t\tif (minY >= rect.y + rect.height + fudge) return false;\n\n\t\t// Does not intersect if maximum y coordinate is above the rectangle.\n\t\tfloat maxY = max(y1, y2);\n\t\tif (maxY < rect.y - fudge) return false;\n\n\t\t// Does not intersect if minimum x coordinate is to the right of the rectangle.\n\t\tfloat minX = min(x1, x2);\n\t\tif (minX >= rect.x + rect.width + fudge) return false;\n\n\t\t// Does not intersect if maximum x coordinate is to the left of the rectangle.\n\t\tfloat maxX = max(x1, x2);\n\t\tif (maxX < rect.x - fudge) return false;\n\n\t\t// And that's good enough, because the robots need to be a bit stupid\n\t\t// when they're near the ends of walls.\n\t\treturn true;\n\t}",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"public Boolean isGameOver(Layout layout) {\n\t\tfor (int i = 0; i < layout.getGameGrid().length; i++) {\n\t\t\tif (layout.getObject(i, 0) instanceof Zombies) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeNemesisRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && (((Wall) simo).getType() == 2||((Wall) simo).getType() == 3));\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 10){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }",
"private boolean birdIsOffscreen() {\r\n return (bird.getYpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() - bird.getRadius() > width);\r\n }",
"boolean invisiWallCollisions(Direction direction, Board board) {\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"Checking whether the actor is colliding with a wall...\");\n\n if (board instanceof MenuBoard) {\n\n if (direction == Direction.LEFT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isLeftCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the LEFT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.RIGHT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isRightCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the RIGHT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.UP) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isTopCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the TOP of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else /* if (dir == Direction.DOWN) */ {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isBottomCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the BOTTOM of the actor, returning.\");\n return true;\n }\n }\n\n }\n }\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There are no walls blocking the actor, returning.\");\n return false;\n }",
"private boolean hasAdjacentWalls(View v){\n\t\tDirection[] allDirections = Direction.values();\n\t\tfor (Direction d : allDirections) {\n\t\t\tif (!v.mayMove(d)) {\n\t\t\t\t//Yes, there is an adjacent wall\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void checkForCollisionWithSelf() {\r\n if (isInSnake(snake[0].row,snake[0].column,true)) {\r\n gameOver();\r\n }\r\n }",
"protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"private void bounceIfWallCollision() {\n \tdouble x = ball.getX();\n \tdouble y = ball.getY();\n \t\n \t// Ball hits side\n \tif (x <= 0 || (x + BALL_RADIUS * 2) >= getWidth()) vx = -vx;\n \t\n \t// Ball hits top\n \tif (y <= 0) vy = -vy;\n }",
"private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\t\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}",
"public boolean isOnGround() {\n return this.sim_pos.getY() <= 2;\n }",
"public boolean isWall(Vertex v, direction dir) {\n\t\treturn g.edgeDoesntExist(v, dir);\n\t}",
"private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }",
"protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }",
"boolean isAllOnDestination(){\n\n if(player.getCurrentX()-player.getDestinationX()!=0 || player.getCurrentY()-player.getDestinationY()!=0)\n return false;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()-item.getDestinationX()!=0 || item.getCurrentY()-item.getDestinationY()!=0)\n return false;\n }\n return true;\n }",
"boolean isBottomCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() + 1 == actor.getY();\n }",
"public boolean hitObject(BasicObject obj){\n if(abs(obj.posX - posX) < obj.wid/ 2 && abs(obj.posY - posY) < obj.hei/ 2){\n return true;\n }\n else{\n return false;\n }\n }",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }",
"public boolean isHeads() {\n return (face == 0);\n }",
"public boolean hasFront();",
"public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }",
"public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"public boolean isMine(int x, int y);",
"public boolean isDead() {\n\t\tint boxX = parentBox.x;\n\t\tint boxY = parentBox.y;\n\t\tint boxLength = parentBox.LENGTH;\n\t\n\t\tif (boxX == x && boxY < y + length && boxY > y) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isInsideFermer(TuioCursor cursor){\n\t\treturn fermer.getGlobalBounds().contains(cursor.getX()*Systeme.screen.x, cursor.getY()*Systeme.screen.y);\n\n\t}",
"public boolean gameOverP1()\n\t{\n\t\tfor(Block b:blocks1)\n\t\t{\n\t\t\tif(b != p1.head)\n\t\t\t{\n\t\t\t\tif(b.posX == p1.head.posX && b.posY == p1.head.posY)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif(p1.head.posX == getW() - 2 || p1.head.posY == getH() - 2)\t//south & east walls\t\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tif(p1.head.posX < 1 || p1.head.posY < 1)\n\t\t\t\t{\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isPressed() {\r\n List<Entity> entities = dungeon.getEntities();\r\n for (Entity e: entities) {\r\n if (e != null && e.getY() == getY() && e.getX() == getX()) {\r\n if (\"Boulder\".equals(e.getClass().getSimpleName()))\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean checkWallCollision(String dir){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t// detects the color of the map, return true if it is blue(wall)\r\n\t\tif(dir.equals(\"up\")){//check wall on top if pacman is moving up\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"down\")){//check wall down if pacman is moving down\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"left\")){//check wall left if pacman is moving left\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"right\")){//check wall right if pacman is moving right\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }",
"public boolean isButtonPushedAtFloor(int floor) {\r\n\r\n return (getNumberOfPeopleWaitingAtFloor(floor) > 0);\r\n }",
"public boolean overlapsWith()\r\n\t{\r\n\t\tboolean alive = false;\r\n\t\tfor (Platforms platform : platforms)\r\n\t\t{\r\n\t\t\tif (getAvatar().getX() == platform.getX() && getAvatar().getY() == platform.getY())\r\n\t\t\t{\r\n\t\t\t\talive = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn alive;\r\n\t}",
"public boolean isInBoundaries() {\n\t return Referee.playfield.isInBoundaries(this);\n }",
"public boolean isGameOver ()\n\t{\n\t\t//Each Wall class uses teh isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t{\n\t\t\tif (w[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//Each SideWall class uses the isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t{\n\t\t\tif (sW[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isAround(Ball ball)\n {\n int delta = 10;\n Rectangle2D rectangle = new Rectangle2D.Double(mPosition.getX() - delta, mPosition.getY() - delta, 2 * delta, 2 * delta);\n \n return rectangle.contains(ball.getPosition());\n }",
"@Override\n public boolean detect() {\n QQRobot.findWindowLocation(RGB_SCREEN);\n if (QQTetris.QQCoord.x != -1) {\n return true;\n } else {\n return false;\n }\n }",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"private boolean isGameOver() {\n return Snake().isTouching(Wall()) || Snake().isTouching(Snake());\n }",
"private boolean checkNearbyVillagers() {\n\t\tIterator<Integer> it = sprites.keySet().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tSprite as = sprites.get(it.next());\n\t\t\tif (as instanceof Villager) {\n\t\t\t\tVillager v = (Villager) as;\n\t\t\t\tif (v.checkTalkable(player.pos, player.direction)) {\n\t\t\t\t\treturn executeTalkableVillager(v);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"private boolean isPushableBoxCollision(Direction direction){\n //checks if theres is box in called direction and if theres nothing behind it so it can be pushed\n //TODO I could do it more efficiently\n for(Box box : boxes){\n switch (direction){\n case DOWN:\n boolean hej = isNothingBehind(Direction.DOWN, box);\n if(player.getDestinationX()==box.getDestinationX() && player.getDestinationY()+DISTANCE == box.getDestinationY() && hej)\n return true;\n break;\n case UP:\n if(player.getDestinationX()==box.getDestinationX() && player.getDestinationY()-DISTANCE == box.getDestinationY() && isNothingBehind(Direction.UP, box))\n return true;\n break;\n\n case LEFT:\n if(player.getDestinationY()==box.getDestinationY() && player.getDestinationX()-DISTANCE == box.getDestinationX() && isNothingBehind(Direction.LEFT, box))\n return true;\n break;\n case RIGHT:\n if(player.getDestinationY()==box.getDestinationY() && player.getDestinationX()+DISTANCE == box.getDestinationX() && isNothingBehind(Direction.RIGHT, box))\n return true;\n break;\n\n }\n }\n return false;\n }"
] | [
"0.7227153",
"0.7049104",
"0.69106144",
"0.6900205",
"0.6897207",
"0.680275",
"0.679865",
"0.6726485",
"0.6714431",
"0.6707391",
"0.66994727",
"0.66743356",
"0.66565865",
"0.665234",
"0.66366166",
"0.6623934",
"0.6622642",
"0.65902823",
"0.6578194",
"0.65777344",
"0.65601844",
"0.65321696",
"0.649729",
"0.6475711",
"0.64582473",
"0.6444731",
"0.6407472",
"0.640258",
"0.64021367",
"0.6393275",
"0.637893",
"0.6364455",
"0.6318686",
"0.6313894",
"0.62880045",
"0.62859553",
"0.62684584",
"0.6252335",
"0.6250301",
"0.6249066",
"0.621493",
"0.6210176",
"0.6200292",
"0.61991906",
"0.6163126",
"0.616024",
"0.61596817",
"0.61492306",
"0.6138289",
"0.61333925",
"0.61231285",
"0.61160904",
"0.60853535",
"0.607313",
"0.6057992",
"0.60571206",
"0.6055952",
"0.60451",
"0.60309213",
"0.6023491",
"0.6004394",
"0.6001096",
"0.599484",
"0.59861887",
"0.5985661",
"0.5982982",
"0.59797275",
"0.5968288",
"0.5968187",
"0.5967478",
"0.59673184",
"0.595927",
"0.59590614",
"0.5957954",
"0.5957172",
"0.5956827",
"0.5956002",
"0.5947531",
"0.59417474",
"0.59412515",
"0.5938438",
"0.5932182",
"0.59248537",
"0.5923231",
"0.59221125",
"0.5917352",
"0.59112865",
"0.59112734",
"0.58943945",
"0.5894348",
"0.5893595",
"0.58906007",
"0.58876115",
"0.58869433",
"0.58837855",
"0.5881603",
"0.58736145",
"0.58708835",
"0.58673704",
"0.58647394"
] | 0.6294072 | 34 |
Check if you have a wall on your right | private boolean checkWallRight(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){
switch(orientation){
case EAST:
return checkSouth(currentView);
case NORTH:
return checkEast(currentView);
case SOUTH:
return checkWest(currentView);
case WEST:
return checkNorth(currentView);
default:
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isWall();",
"private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }",
"public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}",
"private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}",
"public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }",
"private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}",
"protected boolean isWall2()\n {\n\n if(isTouching(Wall.class)) //&&!isTouching(Door.class))\n return true;\n /*else if(isTouching(Door.class))\n {\n Door d = (Door)getOneIntersectingObject(Door.class);\n if(d.alreadyOpened==false)\n return true;\n else\n return false;\n }*/\n else\n return false;\n }",
"private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }",
"public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}",
"public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"public boolean isWallDetected(Block block, Player player) {\n if (TownyAPI.getInstance().getTownBlock(block.getLocation()) == null) {\n if (player != null) {\n player.sendMessage(ChatColor.RED + \"The wall must be built in claimed territory.\");\n }\n return false; // Exit if it's not within a claimed territory\n }\n\n int count = 0;\n int maxCount = 384;\n boolean checked = false;\n while (count <= maxCount) {\n if (block.getY() + count <= 300) {\n Block targetAbove = block.getWorld().getBlockAt(block.getX(), block.getY() + count, block.getZ());\n if (isValidWallBlock(targetAbove)) return true;\n checked = true;\n }\n\n if (block.getY() - count >= -64) {\n Block targetBelow = block.getWorld().getBlockAt(block.getX(), block.getY() - count, block.getZ());\n if (isValidWallBlock(targetBelow)) return true;\n checked = true;\n }\n\n if(!checked) return false;\n count += 2;\n }\n return false;\n }",
"protected boolean didHitWall() {\n return hitWall && !SnakeGame.getHasWarpWalls();\n\n }",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }",
"private boolean isNextToWall(Direction direction){\n switch (direction) {\n case LEFT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isLeftCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case RIGHT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isRightCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case UP:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isUpCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case DOWN:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isDownCollision(wall)) {\n return true;\n }\n }\n return false;\n\n default:\n return false;\n\n }\n }",
"private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }",
"public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"public boolean isWall(Position p) {\r\n try {\r\n if (mazeData[p.getX()][p.getY()] == WALL)\r\n return true;\r\n }catch (ArrayIndexOutOfBoundsException e ){}\r\n return false;\r\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public boolean checkIfBlocked(){\n\t\tsetNextXY();\n\t\t/*if(Physics.hitWall(this, game.wi)){\n\t\t\tblocked=true;\n\t\t}\n\t\telse{\n\t\t\tblocked=false;\n\t\t}\n\t\t*/\n\t\t\n\t\ttry{\n\t\t\tif(game.getController().wallArray[lastX][lastY]||game.getController().wallArray[nextX][nextY]){\n\t\t\t\treturn true;\n\t\t\t}\t\n\t\t}catch(IndexOutOfBoundsException x){\n\t\t\t\n\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"private void checkRightWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() >= BORDER) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t}\n\t}",
"public boolean checkWallCollision(String dir){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t// detects the color of the map, return true if it is blue(wall)\r\n\t\tif(dir.equals(\"up\")){//check wall on top if pacman is moving up\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"down\")){//check wall down if pacman is moving down\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"left\")){//check wall left if pacman is moving left\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"right\")){//check wall right if pacman is moving right\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean checkFollowingWall(Coordinate carPos,\n\t\t\t\t\t\t\t\t\t\t WorldSpatial.Direction orientation) {\n\t\t// If it's a traversable trap return false\n\t\tif (map.tileAtRelative(carPos, orientation, -1, 0).isTrap() &&\n\t\t\t!map.tileAtRelative(carPos, orientation, -2, 0).blocking()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return true if there are any blocking tiles in specific range ahead\n\t\tfor (int i = 1; i <= WALL_THRESHOLD; i++) {\n\t\t\tif (map.tileAtRelative(carPos, orientation, -i, 0).blocking()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }",
"private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\t\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeBadRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && ((Wall) simo).getType() == 2);\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 15){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }",
"public boolean isGameOver ()\n\t{\n\t\t//Each Wall class uses teh isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t{\n\t\t\tif (w[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//Each SideWall class uses the isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t{\n\t\t\tif (sW[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"@SuppressWarnings(\"unchecked\")\n\tpublic boolean canSeeNemesisRobot() {\n\t\tboolean isVisible= false;\n\t\tList<Wall> walls = (List<Wall>) (List<?>) getEngine()\n\t\t\t\t.requestSimObject(simo -> (simo instanceof Wall) && (((Wall) simo).getType() == 2||((Wall) simo).getType() == 3));\n\t\tList<Bounds> bounds = new ArrayList<Bounds>();\n\t\tfor (Wall w : walls) {\n\t\t\tbounds.addAll(w.getBounds());\n\t\t}\n\n\t\t\n\t\tRobot bad = null;\n\t\tList<Robot> objets = (List<Robot>) (List<?>) getEngine().requestSimObject(simo -> (simo instanceof Robot) && (simo != getParent()));\n\n\t\tif (objets.size() == 1) {\n\t\t\tbad = objets.get(0);\n\t\t\t\n\t\t\t//on cr�e donc un cylindre entre les deux positions\n\t\t\t//on pourra afficher le cylindre dans la vue 3D\n\t\t\tCylinder lineOfSight = BorderAndPathGenerator.generateCylinderBetween(bad.getPosition(), Util.rectifi(positionR()));\n\t\t\tlineOfSight.setMaterial(new PhongMaterial(Color.AQUA));\n\n\t\t\t//le robot gentil ne peut pas voire le mauvais robot à plus de 15m \n\t\t\tif(lineOfSight.getHeight() < 10){\n\t\t\t\t\n\t\t\t\tisVisible = BorderAndPathGenerator.intervisibilityBetween(bad.getPosition(), Util.rectifi(positionR()),bounds);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treturn isVisible;\n\t\t} else\n\t\t\treturn false;\n\n\t}",
"private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"public boolean isWall(Orientation orientation) {\n\t\tfor(Edge edge : neighbors) {\n\t\t\tif(edge.getDirection() == orientation) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void checkWallCollision(Wall wall) {\n\t\t// check to see if enemy is colliding with wall.\n\t\t// Log.d(TAG,\"Front of character: \" + (x+xSpeed+width) +\n\t\t// \", edge of wall: \" + wall.getX());\n\t\t// check if at wall only when checking isDestroyed (for true value). if\n\t\t// moving and wall is destroyed won't pass first if check and won't ever\n\t\t// get set to atWall\n\t\tif (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed), x\n\t\t\t\t+ width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.moving && !wall.isDestroyed()) {\n\t\t\tLog.d(TAG, \"Enemy x: \" + x);\n\t\t\tint diff = (x + xSpeed) - (wall.getX() + wall.getWidth());\n\t\t\tLog.d(TAG, \"Difference: \" + diff);\n\t\t\tx += xSpeed - diff;\n\t\t\tLog.d(TAG, \"Enemy new x: \" + x);\n\t\t\tLog.d(TAG, \"Edge of wall: \" + (wall.getX() + wall.getWidth()));\n\t\t\tthis.setEnemyState(EnemyState.atWall);\n\t\t} else if (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed),\n\t\t\t\tx + width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.atWall && wall.isDestroyed()) {\n\t\t\tthis.setEnemyState(EnemyState.moving);\n\t\t}\n\t}",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public static NPCHouse isBox(World worldIn, BlockPos pos, EnumFacing side)\n\t{\n\t\tBlockPos une = pos, unw = pos, use = pos, usw = pos, dne = pos, dnw = pos, dse = pos, dsw = pos;\n\t\tboolean isBuilding = false;\n\t\t\n\t\t//D-U-N-S-W-E\n\t\tassess:\n\t\tswitch(side.getIndex())\n\t\t{\n\t\t\tcase 0:\t//assume ceiling\n\t\t\t\t\t//while not wall && wood, go in direction to find wall\n\t\t\t\t\t//know is ceiling, so we can us a block at least 2 below && can only click ceiling from inside, so one in any Cardinal direction can be assumed as wood for wall checks\n\t\t\t\t\t//move east and west, checking if wall with 2 blocks down and 1 block north (neCorner\n\t\t\t\t\tune = pos.north().east();\n\t\t\t\t\tunw = pos.north().west();\n\t\t\t\t\tuse = pos.south().east();\n\t\t\t\t\tusw = pos.south().west();\n\t\t\t\t\t//make sure all start corners are actually wood, else fail\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//these are clearly not wooden, but we need them to check for walls, when they become wooden, we have found walls\n\t\t\t\t\tdne = une.down();\n\t\t\t\t\tdnw = unw.down();\n\t\t\t\t\tdse = use.down();\n\t\t\t\t\tdsw = usw.down();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//move corners to find walls in order, north, south, east, west\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//We now have the real upper corners of the building, let's find out if we have a floor! :)\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//for some reason it's going past all of them and I've no fucking clue why.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//This should be all of our corners. Let's run another check on every wall and floor just to make sure its' not missing pieces on us. :D\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 1:\t//assume floor\t\n\t\t\t\t\tdne = pos.north().east();\n\t\t\t\t\tdnw = pos.north().west();\n\t\t\t\t\tdse = pos.south().east();\n\t\t\t\t\tdsw = pos.south().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = dne.up();\n\t\t\t\t\tunw = dnw.up();\n\t\t\t\t\tuse = dse.up();\n\t\t\t\t\tusw = dsw.up();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//Start finding Walls in order: N-S-E-W\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Find the Roof!\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\t\t\t\n\t\t\tcase 2: //assume ewWall (North facing side)\n\t\t\t\t\tuse = pos.up().east();\n\t\t\t\t\tusw = pos.up().west();\n\t\t\t\t\tdse = pos.down().east();\n\t\t\t\t\tdsw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = use.north();\n\t\t\t\t\tunw = usw.north();\n\t\t\t\t\tdne = dse.north();\n\t\t\t\t\tdnw = dsw.north();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the North Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 3:\t//assume ewWall (South facing Wall - North wall of room)\n\t\t\t\t\tune = pos.up().east();\n\t\t\t\t\tunw = pos.up().west();\n\t\t\t\t\tdne = pos.down().east();\n\t\t\t\t\tdnw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tuse = une.south();\n\t\t\t\t\tusw = unw.south();\n\t\t\t\t\tdse = dne.south();\n\t\t\t\t\tdsw = dnw.south();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the South Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 4:\t//assume nsWall (West Facing Wall - Eastern wall of room)\n\t\t\t\t\tune = pos.up().north();\n\t\t\t\t\tuse = pos.up().south();\n\t\t\t\t\tdne = pos.down().north();\n\t\t\t\t\tdse = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tunw = une.west();\n\t\t\t\t\tusw = use.west();\n\t\t\t\t\tdnw = dne.west();\n\t\t\t\t\tdsw = dse.west();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move West!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 5:\t//assume nsWall (East Facing Wall - Western wall of room)\n\t\t\t\t\tunw = pos.up().north();\n\t\t\t\t\tusw = pos.up().south();\n\t\t\t\t\tdnw = pos.down().north();\n\t\t\t\t\tdsw = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = unw.east();\n\t\t\t\t\tuse = usw.east();\n\t\t\t\t\tdne = dnw.east();\n\t\t\t\t\tdse = dsw.east();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move East!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t}\n\t\tNPCHouse house =new NPCHouse(unw, une, usw, use, dnw, dne, dsw, dse, isBuilding);\n\t\treturn house;\n\t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"public boolean hasWall(Cell c1, Cell c2) {\n if (c1.getR() == c2.getR()) {\n // Cells are vertically aligned\n\n if (c1.getC() < c2.getC()) {\n // Cell1 : Cell2\n return c1.hasRightWall();\n }\n else if (c2.getC() < c1.getC()) {\n // Cell2 : Cell1\n return c2.hasRightWall();\n }\n }\n else if (c1.getC() == c2.getC()) {\n // Cells are horizontally aligned\n\n if (c1.getR() < c2.getR()) {\n // Cell1\n // Cell2\n return c1.hasBottomWall();\n }\n else if (c2.getR() < c1.getR()) {\n // Cell2\n // Cell1\n return c2.hasBottomWall();\n }\n }\n return true;\n }",
"private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }",
"public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }",
"protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }",
"public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"boolean hasHingeOnRightSide() throws RuntimeException;",
"private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }",
"public void checkIsFrogAtTheEdge() {\n\t\tif (getY()<0 || getY()>800) {\n\t\t\tsetY(FrogPositionY);\t\n\t\t}\n\t\tif (getX()<-20) {\n\t\t\tmove(movementX*2, 0);\n\t\t} else if (getX()>600) {\n\t\t\tmove(-movementX*2, 0);\n\t\t}\n\t\tif (getY()<130 && ! ((getIntersectingObjects(End.class).size() >= 1))) {\n\t\t\tmove(0, movementY*2);\n\t\t\t\n\t\t}\n\t}",
"private boolean doesLineHitWall (Rectangle rect, float x1, float y1, float x2, float y2) {\n\t\tfloat minY = min(y1, y2);\n\t\tif (minY >= rect.y + rect.height + fudge) return false;\n\n\t\t// Does not intersect if maximum y coordinate is above the rectangle.\n\t\tfloat maxY = max(y1, y2);\n\t\tif (maxY < rect.y - fudge) return false;\n\n\t\t// Does not intersect if minimum x coordinate is to the right of the rectangle.\n\t\tfloat minX = min(x1, x2);\n\t\tif (minX >= rect.x + rect.width + fudge) return false;\n\n\t\t// Does not intersect if maximum x coordinate is to the left of the rectangle.\n\t\tfloat maxX = max(x1, x2);\n\t\tif (maxX < rect.x - fudge) return false;\n\n\t\t// And that's good enough, because the robots need to be a bit stupid\n\t\t// when they're near the ends of walls.\n\t\treturn true;\n\t}",
"private boolean verticalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(1).getYCoordinate() <= coordinates.get(2).getYCoordinate() && coordinates.get(1).getYCoordinate() <= wallCoordinates.get(2).getYCoordinate();\n }",
"private boolean checkRightSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int i = x; i < x + len; i += 1) {\n for (int j = y - rightWid; j < y + leftWid + 1; j += 1) {\n if (i >= worldWidth) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean isGameOver() {\n return Snake().isTouching(Wall()) || Snake().isTouching(Snake());\n }",
"private void checkBoundaries() {\n if (!isDestroyed()) {\n float upperEdge = screen.getGameCam().position.y + screen.getGameViewPort().getWorldHeight() / 2;\n float bottomEdge = screen.getGameCam().position.y - screen.getGameViewPort().getWorldHeight() / 2;\n if (bottomEdge <= getY() + getHeight() && getY() <= upperEdge) {\n b2body.setActive(true);\n currentState = b2body.getLinearVelocity().x > 0 ? State.MOVING_RIGHT : State.MOVING_LEFT;\n } else {\n if (b2body.isActive()) { // Was on camera...\n // It's outside bottom edge\n if (bottomEdge > getY() + getHeight()) {\n if(!world.isLocked()) {\n world.destroyBody(b2body);\n }\n currentState = State.FINISHED;\n }\n }\n }\n }\n }",
"private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }",
"private boolean rightCollision(InteractiveObject obj){\n\t\treturn rightUpCollision(obj) || rightDownCollision(obj);\n\t}",
"private boolean checkLeftWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkNorth(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkWest(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkEast(currentView);\n\t\tcase WEST:\n\t\t\treturn checkSouth(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"private static boolean isWallFacingInDirection(int[][] area, int x, int y, Vector2 direction) {\r\n\t\tif(area[x - (int)direction.x][y - (int)direction.y] > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public final boolean checkForDraw() {\r\n boolean result = false;\r\n String player = \"\";\r\n \r\n for (Rail rail : rails) {\r\n if (rail.isWinner()) {\r\n return false;\r\n }\r\n }\r\n \r\n if (tilesPlayed == 9) {\r\n draws++;\r\n // window.getStatusMsg().setText(DRAW_MSG); \r\n result = true;\r\n }\r\n \r\n return result;\r\n }",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }",
"public void handleRightWall(){\n for(int i = 0; i < 15; i ++){\n if(i % 2 == 1 ){\n maze[18][i] = VISIBLESPACE;\n }\n }\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}",
"public boolean isWall(Vertex v, direction dir) {\n\t\treturn g.edgeDoesntExist(v, dir);\n\t}",
"boolean invisiWallCollisions(Direction direction, Board board) {\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"Checking whether the actor is colliding with a wall...\");\n\n if (board instanceof MenuBoard) {\n\n if (direction == Direction.LEFT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isLeftCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the LEFT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.RIGHT) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isRightCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the RIGHT of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else if (direction == Direction.UP) {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isTopCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the TOP of the actor, returning.\");\n return true;\n }\n }\n return false;\n } else /* if (dir == Direction.DOWN) */ {\n for (Wall wall : ((MenuBoard) board).invisiWalls) {\n if (this.isBottomCollision(wall)) {\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There's a wall to the BOTTOM of the actor, returning.\");\n return true;\n }\n }\n\n }\n }\n\n Board.logger.log(Logger.LoggingType.DEBUG, \"wallCollisions\",\n \"There are no walls blocking the actor, returning.\");\n return false;\n }",
"private boolean isInDoor(Entity player){\n Sprite playerSprite= (Sprite) player.getComponent(Sprite.class);\n for(int i = 0; i<Main.colliderWallMap.size(); i++){\n if(Main.colliderWallMap.get(i).intersects(playerSprite.getValue().getX(), playerSprite.getValue().getY(),playerSprite.getValue().getWidth(), playerSprite.getValue().getHeight())){\n return false;\n }\n }\n\n return true;\n }",
"private boolean rightUpCollision(InteractiveObject obj){\n\t\treturn (((obj.getX() - this.getX()) < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"public boolean wallCollision(int x, int y, float newX, float newY){\r\n\t\t\r\n\t\tint wall = 1048575; // in binary is 20 consecutive 1s (2^20 -1)\r\n\t\tint start = 0;\r\n\t\tint numChecks;\r\n\t\tint xDiff = (x * 20) - Math.round(newX);\r\n\t\tint yDiff = (y * 20) - Math.round(newY);\r\n\t\t\r\n\t\t// this shifts the correct objects bounding box by the correct amount. (ie deals with the x-axis)\r\n\t\tif (xDiff > 0){\r\n\t\t\twall = wall >> xDiff;\r\n\t\t} else {\r\n\t\t\twall = wall << (-xDiff);\r\n\t\t}\r\n\t\t\r\n\t\t// this gets correct range in hight to be testsed. (ie deals with the y-axis)\r\n\t\tif (yDiff > 0) {\r\n\t\t\tnumChecks = this.height - yDiff;\r\n\t\t} else {\r\n\t\t\tnumChecks = 20 + yDiff;\r\n\t\t\tstart = - yDiff;\r\n\t\t}\r\n\r\n\t\t// runs through bitMasks to detect collision.\r\n\t\tfor (int i = 0; i < numChecks; i++){\r\n\t\t\t// compare row of \r\n\t\t\tif( ((this.bitMask.bits[start]) & wall) != 0) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// increments the indexes of the bitmasks.\r\n\t\t\tstart++;\r\n\t\t}\r\n\t\t\r\n\t\t// Return false if no collision.\r\n\t\treturn false;\r\n\t}",
"public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }",
"public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }",
"public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }",
"private boolean aboveWall(int yCoord) {\n return (yCoord >= (yStart + ySize));\n }",
"public static Boolean checkBoundary(int x, int y, int f, int i)\n\t{\n\t\tBoolean b = false;\n\t\tswitch( f )\n\t\t{\n\t\t\tcase Entity.UP:\n\t\t\t\tif( y-i>=0 )\n\t\t\t\t\tb = walls[x][y-i];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.RIGHT:\n\t\t\t\tif( x+i<width )\n\t\t\t\t\tb = walls[x+i][y];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.DOWN:\n\t\t\t\tif( y+i<height )\n\t\t\t\t\tb = walls[x][y+i];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t\tcase Entity.LEFT:\n\t\t\t\tif( x-i>=0 )\n\t\t\t\t\tb = walls[x-i][y];\n\t\t\t\telse\n\t\t\t\t\tb = true;\n\t\t\t\tbreak;\n\t\t}\n\n\t\treturn b;\n\t}",
"private boolean rightDownCollision(InteractiveObject obj){\n\t\treturn ((obj.getX() - this.getX() < this.getWidth()) && (obj.getX() > this.getX()) &&\n\t\t\t\t(obj.getY() - this.getY() < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"private boolean birdIsOffscreen() {\r\n return (bird.getYpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() - bird.getRadius() > width);\r\n }",
"boolean isCellRightNeighbor() {\r\n return this.neighbors.contains(new Cell(this.x + 1, this.y));\r\n }",
"boolean isRight() {\r\n\t\tint maxlength;\r\n\t\tmaxlength = Math.max(Math.max(side1, side2), side3);\r\n\t\treturn (maxlength * maxlength == (side1 * side1) + (side2 * side2) + (side3 * side3) - (maxlength * maxlength));\r\n\t}",
"private boolean checkDownSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j > y - len; j -= 1) {\n for (int i = x - rightWid; i < x + leftWid + 1; i += 1) {\n if (j < 0) {\n return false;\n }\n if (i < 0 || i >= worldWidth) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private static Boolean canStillReachEveryCrates(Cells[][] wallBoard, int column, int row)\n\t{\n\t\tif(playerPos.isEmpty())\n\t\t\treturn true;\n\n\t\tBoolean ret = true;\n\n\t\t_PF = new AStarPathFinder(wallBoard);\n\n\t\tfor(Point pos : playerPos)\n\t\t{\n\t\t\tret = (true && _PF.canFindAWay(pcolumn, prow, (int)pos.getX(), (int)pos.getY()));\n\t\t}\n\n\t\treturn ret;\n\t}",
"private void checkLeftWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() <= 0) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t\t\n\t\t\tInvader.setDirectionRight(true);\n\t\t}\n\t}",
"private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"private boolean hasHitBoundry() {\r\n if (snake[HEAD].row < 0 || \r\n snake[HEAD].row >= maxRows ||\r\n snake[HEAD].column < 0 ||\r\n snake[HEAD].column >= maxColumns) {\r\n gameOver();\r\n return true;\r\n }\r\n return false;\r\n }",
"private static boolean checkWin() {\n\t\tfor (int i = 0; i < nRows; i++)\n\t\t\tfor (int j = 0; j < nColumns; j++) {\n\t\t\t\tCell cell = field.getCellAt(i, j);\n\t\t\t\tif (cell.hasMine() && !cell.hasSign())\t // if the cell has a mine\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// but has no flag\n\t\t\t\t\treturn false;\n\t\t\t\tif (cell.getFlag() >= 0 && !cell.getVisiblity()) // if the cell has no\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// mine in it but\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// it is not visible\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\twin = gameOver = true;\n\t\treturn true;\n\t}",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"private boolean hasAdjacentWalls(View v){\n\t\tDirection[] allDirections = Direction.values();\n\t\tfor (Direction d : allDirections) {\n\t\t\tif (!v.mayMove(d)) {\n\t\t\t\t//Yes, there is an adjacent wall\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}"
] | [
"0.76378214",
"0.7490356",
"0.7462261",
"0.7458966",
"0.74344563",
"0.7352427",
"0.7314924",
"0.72780955",
"0.72414684",
"0.72249067",
"0.72187185",
"0.71324503",
"0.7104222",
"0.7049853",
"0.7019081",
"0.70065296",
"0.6998147",
"0.69636744",
"0.6907693",
"0.68296725",
"0.67995363",
"0.67984176",
"0.6773683",
"0.6766273",
"0.6761026",
"0.6746741",
"0.6730874",
"0.6701347",
"0.66716474",
"0.6667782",
"0.6652178",
"0.6652128",
"0.66426563",
"0.66377884",
"0.66374224",
"0.6584937",
"0.65811664",
"0.6565671",
"0.65331364",
"0.6527724",
"0.65255713",
"0.6522599",
"0.651755",
"0.64999145",
"0.6499343",
"0.64947885",
"0.6493778",
"0.6492182",
"0.64867866",
"0.6484321",
"0.6474973",
"0.6469171",
"0.6461031",
"0.6459326",
"0.64417094",
"0.6417525",
"0.64145",
"0.64121234",
"0.64053077",
"0.6403147",
"0.6400613",
"0.6396228",
"0.6394476",
"0.6382247",
"0.6378389",
"0.63543475",
"0.6350417",
"0.6342354",
"0.6342208",
"0.63407224",
"0.6337978",
"0.6336849",
"0.6335192",
"0.63303626",
"0.63302064",
"0.6328865",
"0.6328009",
"0.6327381",
"0.63129854",
"0.63067746",
"0.6301436",
"0.6291008",
"0.62792367",
"0.6277266",
"0.6271117",
"0.6271117",
"0.6246872",
"0.6236875",
"0.6236449",
"0.62345815",
"0.622944",
"0.622274",
"0.6218285",
"0.62166095",
"0.6204218",
"0.61946714",
"0.6180945",
"0.61606133",
"0.61557174",
"0.61556363"
] | 0.67679507 | 23 |
Check if you have a wall on your left | private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){
switch(orientation){
case EAST:
return checkNorth(currentView);
case NORTH:
return checkWest(currentView);
case SOUTH:
return checkEast(currentView);
case WEST:
return checkSouth(currentView);
default:
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }",
"private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}",
"public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}",
"public boolean isWall();",
"private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}",
"private boolean checkLeftWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkNorth(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkWest(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkEast(currentView);\n\t\tcase WEST:\n\t\t\treturn checkSouth(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }",
"public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }",
"private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }",
"private void checkLeftWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() <= 0) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t\t\n\t\t\tInvader.setDirectionRight(true);\n\t\t}\n\t}",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean stepLeft() {\n //it should be wall and maze border check here\n xMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}",
"public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }",
"public boolean hitsWall(Entity e, ICollisionArea box) {\n\t\t// prevent playerfish from leaving the screen\n\t\tif (e instanceof PlayerFish) {\n\t\t\treturn box.isOutside(0, 0, getWidth(), getHeight());\n\t\t} else {\n\t\t\tdouble dw = 2.0 * box.getWidth() + 1;\n\t\t\tdouble dh = 2.0 * box.getHeight() + 1;\n\t\t\treturn box.isOutside(-dw, -dh, getWidth() + dw, getHeight() + dh);\n\t\t}\n\t}",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"void hasLeft();",
"private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }",
"public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"private boolean checkLeftSpace(Position p, int len,\n int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n if (i < 0) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"protected boolean isWall2()\n {\n\n if(isTouching(Wall.class)) //&&!isTouching(Door.class))\n return true;\n /*else if(isTouching(Door.class))\n {\n Door d = (Door)getOneIntersectingObject(Door.class);\n if(d.alreadyOpened==false)\n return true;\n else\n return false;\n }*/\n else\n return false;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"private boolean wall(int cell) {\n\t\treturn cell >= 0 && (cell >= size || DungeonTileSheet.wallStitcheable(Dungeon.level.map[cell]));\n\t}",
"private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean isWall(Position p) {\r\n try {\r\n if (mazeData[p.getX()][p.getY()] == WALL)\r\n return true;\r\n }catch (ArrayIndexOutOfBoundsException e ){}\r\n return false;\r\n }",
"public void checkWallBounce(){\n // Bounce the ball back when it hits the top of screen\n if (getRect().top < 0) {\n reverseYVelocity();\n clearObstacleY(40);\n }\n\n // If the ball hits left wall bounce\n if (getRect().left < 0) {\n reverseXVelocity();\n clearObstacleX(2);\n }\n\n // If the ball hits right wall Velocity\n if (getRect().right > screenX) {\n reverseXVelocity();\n clearObstacleX(screenX - 57);\n }\n }",
"public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"public void checkCollisions(){\n for(int i=bodyParts;i>0;i--){\n if((x[0]==x[i])&&(y[0]==y[i])){\n running=false;\n }\n }\n //head with left border\n if(x[0]<0){\n running=false;\n }\n //head with right border\n if(x[0]>screen_width){\n running=false;\n }\n //head with top border\n if(y[0]<0){\n running=false;\n }\n //head with bottom border\n if(y[0]>screen_height){\n running=false;\n }\n if(!running){\n timer.stop();\n }\n }",
"private boolean isNextToWall(Direction direction){\n switch (direction) {\n case LEFT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isLeftCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case RIGHT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isRightCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case UP:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isUpCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case DOWN:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isDownCollision(wall)) {\n return true;\n }\n }\n return false;\n\n default:\n return false;\n\n }\n }",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"protected boolean didHitWall() {\n return hitWall && !SnakeGame.getHasWarpWalls();\n\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"public void checkWallCollision(Wall wall) {\n\t\t// check to see if enemy is colliding with wall.\n\t\t// Log.d(TAG,\"Front of character: \" + (x+xSpeed+width) +\n\t\t// \", edge of wall: \" + wall.getX());\n\t\t// check if at wall only when checking isDestroyed (for true value). if\n\t\t// moving and wall is destroyed won't pass first if check and won't ever\n\t\t// get set to atWall\n\t\tif (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed), x\n\t\t\t\t+ width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.moving && !wall.isDestroyed()) {\n\t\t\tLog.d(TAG, \"Enemy x: \" + x);\n\t\t\tint diff = (x + xSpeed) - (wall.getX() + wall.getWidth());\n\t\t\tLog.d(TAG, \"Difference: \" + diff);\n\t\t\tx += xSpeed - diff;\n\t\t\tLog.d(TAG, \"Enemy new x: \" + x);\n\t\t\tLog.d(TAG, \"Edge of wall: \" + (wall.getX() + wall.getWidth()));\n\t\t\tthis.setEnemyState(EnemyState.atWall);\n\t\t} else if (Rect.intersects(new Rect(x + xSpeed, y - (height + ySpeed),\n\t\t\t\tx + width + xSpeed, y - ySpeed), wall.getStructure())\n\t\t\t\t&& enemyState == EnemyState.atWall && wall.isDestroyed()) {\n\t\t\tthis.setEnemyState(EnemyState.moving);\n\t\t}\n\t}",
"public boolean isWallDetected(Block block, Player player) {\n if (TownyAPI.getInstance().getTownBlock(block.getLocation()) == null) {\n if (player != null) {\n player.sendMessage(ChatColor.RED + \"The wall must be built in claimed territory.\");\n }\n return false; // Exit if it's not within a claimed territory\n }\n\n int count = 0;\n int maxCount = 384;\n boolean checked = false;\n while (count <= maxCount) {\n if (block.getY() + count <= 300) {\n Block targetAbove = block.getWorld().getBlockAt(block.getX(), block.getY() + count, block.getZ());\n if (isValidWallBlock(targetAbove)) return true;\n checked = true;\n }\n\n if (block.getY() - count >= -64) {\n Block targetBelow = block.getWorld().getBlockAt(block.getX(), block.getY() - count, block.getZ());\n if (isValidWallBlock(targetBelow)) return true;\n checked = true;\n }\n\n if(!checked) return false;\n count += 2;\n }\n return false;\n }",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }",
"boolean reachedLeft() {\n\t\treturn this.x <= 0;\n\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }",
"public boolean checkWallCollision(String dir){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t// detects the color of the map, return true if it is blue(wall)\r\n\t\tif(dir.equals(\"up\")){//check wall on top if pacman is moving up\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"down\")){//check wall down if pacman is moving down\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"left\")){//check wall left if pacman is moving left\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(dir.equals(\"right\")){//check wall right if pacman is moving right\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean isLeftKnown() {\n return left != BeaconColor.UNKNOWN;\n }",
"public static NPCHouse isBox(World worldIn, BlockPos pos, EnumFacing side)\n\t{\n\t\tBlockPos une = pos, unw = pos, use = pos, usw = pos, dne = pos, dnw = pos, dse = pos, dsw = pos;\n\t\tboolean isBuilding = false;\n\t\t\n\t\t//D-U-N-S-W-E\n\t\tassess:\n\t\tswitch(side.getIndex())\n\t\t{\n\t\t\tcase 0:\t//assume ceiling\n\t\t\t\t\t//while not wall && wood, go in direction to find wall\n\t\t\t\t\t//know is ceiling, so we can us a block at least 2 below && can only click ceiling from inside, so one in any Cardinal direction can be assumed as wood for wall checks\n\t\t\t\t\t//move east and west, checking if wall with 2 blocks down and 1 block north (neCorner\n\t\t\t\t\tune = pos.north().east();\n\t\t\t\t\tunw = pos.north().west();\n\t\t\t\t\tuse = pos.south().east();\n\t\t\t\t\tusw = pos.south().west();\n\t\t\t\t\t//make sure all start corners are actually wood, else fail\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//these are clearly not wooden, but we need them to check for walls, when they become wooden, we have found walls\n\t\t\t\t\tdne = une.down();\n\t\t\t\t\tdnw = unw.down();\n\t\t\t\t\tdse = use.down();\n\t\t\t\t\tdsw = usw.down();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//move corners to find walls in order, north, south, east, west\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//We now have the real upper corners of the building, let's find out if we have a floor! :)\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//for some reason it's going past all of them and I've no fucking clue why.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//This should be all of our corners. Let's run another check on every wall and floor just to make sure its' not missing pieces on us. :D\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 1:\t//assume floor\t\n\t\t\t\t\tdne = pos.north().east();\n\t\t\t\t\tdnw = pos.north().west();\n\t\t\t\t\tdse = pos.south().east();\n\t\t\t\t\tdsw = pos.south().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = dne.up();\n\t\t\t\t\tunw = dnw.up();\n\t\t\t\t\tuse = dse.up();\n\t\t\t\t\tusw = dsw.up();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//Start finding Walls in order: N-S-E-W\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Find the Roof!\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\t\t\t\n\t\t\tcase 2: //assume ewWall (North facing side)\n\t\t\t\t\tuse = pos.up().east();\n\t\t\t\t\tusw = pos.up().west();\n\t\t\t\t\tdse = pos.down().east();\n\t\t\t\t\tdsw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = use.north();\n\t\t\t\t\tunw = usw.north();\n\t\t\t\t\tdne = dse.north();\n\t\t\t\t\tdnw = dsw.north();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the North Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 3:\t//assume ewWall (South facing Wall - North wall of room)\n\t\t\t\t\tune = pos.up().east();\n\t\t\t\t\tunw = pos.up().west();\n\t\t\t\t\tdne = pos.down().east();\n\t\t\t\t\tdnw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tuse = une.south();\n\t\t\t\t\tusw = unw.south();\n\t\t\t\t\tdse = dne.south();\n\t\t\t\t\tdsw = dnw.south();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the South Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 4:\t//assume nsWall (West Facing Wall - Eastern wall of room)\n\t\t\t\t\tune = pos.up().north();\n\t\t\t\t\tuse = pos.up().south();\n\t\t\t\t\tdne = pos.down().north();\n\t\t\t\t\tdse = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tunw = une.west();\n\t\t\t\t\tusw = use.west();\n\t\t\t\t\tdnw = dne.west();\n\t\t\t\t\tdsw = dse.west();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move West!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 5:\t//assume nsWall (East Facing Wall - Western wall of room)\n\t\t\t\t\tunw = pos.up().north();\n\t\t\t\t\tusw = pos.up().south();\n\t\t\t\t\tdnw = pos.down().north();\n\t\t\t\t\tdsw = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = unw.east();\n\t\t\t\t\tuse = usw.east();\n\t\t\t\t\tdne = dnw.east();\n\t\t\t\t\tdse = dsw.east();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move East!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t}\n\t\tNPCHouse house =new NPCHouse(unw, une, usw, use, dnw, dne, dsw, dse, isBuilding);\n\t\treturn house;\n\t}",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }",
"public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}",
"public boolean hasLeft() {\r\n\t\treturn left != null;\r\n\t}",
"public boolean checkIfBlocked(){\n\t\tsetNextXY();\n\t\t/*if(Physics.hitWall(this, game.wi)){\n\t\t\tblocked=true;\n\t\t}\n\t\telse{\n\t\t\tblocked=false;\n\t\t}\n\t\t*/\n\t\t\n\t\ttry{\n\t\t\tif(game.getController().wallArray[lastX][lastY]||game.getController().wallArray[nextX][nextY]){\n\t\t\t\treturn true;\n\t\t\t}\t\n\t\t}catch(IndexOutOfBoundsException x){\n\t\t\t\n\t\t\n\t\t}\n\t\treturn false;\n\t\t\n\t}",
"private boolean isNothingBehind(Direction direction, Box box){\n //TODO wall detection not only boxes\n for(Box temp : boxes){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n for(Wall temp : walls){\n switch (direction){\n case DOWN:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()+DISTANCE == temp.getDestinationY())\n return false;\n break;\n case UP:\n if(temp.getDestinationX()==box.getDestinationX() && box.getDestinationY()-DISTANCE == temp.getDestinationY())\n return false;\n break;\n case LEFT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()-DISTANCE == temp.getDestinationX())\n return false;\n break;\n case RIGHT:\n if(temp.getDestinationY()==box.getDestinationY() && box.getDestinationX()+DISTANCE == temp.getDestinationX())\n return false;\n break;\n }\n }\n return true;\n }",
"public boolean hasLeft(){\r\n\t\tif(getLeft()!=null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"private void checkCollision()\n {\n if (gameOverBool==false)\n { \n Actor a = getOneIntersectingObject(Wall.class);\n if (a != null||isAtEdge())\n {\n setImage(\"gone.png\");//laat de helicopter verdwijnen\n //greenfoot.GreenfootSound.stop(\"helisound.wav\");\n World world = getWorld();\n world.addObject(new Explosion(), getX(), getY());\n Greenfoot.playSound(\"heliExplosion.wav\");\n world.addObject( new Gameover(), 600, 300 );\n gameOverBool = true; \n }\n } \n }",
"private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }",
"public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"public boolean isGameOver ()\n\t{\n\t\t//Each Wall class uses teh isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\t\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t{\n\t\t\tif (w[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\t\n\t\t//Each SideWall class uses the isPenetrated () method to check if the\n\t\t//PaperAirplane's vertices have breached the sides of the walls.\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t{\n\t\t\tif (sW[i].isPenetrated (p.getXPoints (), p.getYPoints ()))\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"public boolean isWall(Orientation orientation) {\n\t\tfor(Edge edge : neighbors) {\n\t\t\tif(edge.getDirection() == orientation) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"private void checkRightWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() >= BORDER) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t}\n\t}",
"public boolean fireLeftJet()\r\n\t{\r\n\t\treturn fireJet(new Point(0.3, 0));\r\n\t}",
"public boolean hasWall(Cell c1, Cell c2) {\n if (c1.getR() == c2.getR()) {\n // Cells are vertically aligned\n\n if (c1.getC() < c2.getC()) {\n // Cell1 : Cell2\n return c1.hasRightWall();\n }\n else if (c2.getC() < c1.getC()) {\n // Cell2 : Cell1\n return c2.hasRightWall();\n }\n }\n else if (c1.getC() == c2.getC()) {\n // Cells are horizontally aligned\n\n if (c1.getR() < c2.getR()) {\n // Cell1\n // Cell2\n return c1.hasBottomWall();\n }\n else if (c2.getR() < c1.getR()) {\n // Cell2\n // Cell1\n return c2.hasBottomWall();\n }\n }\n return true;\n }",
"public void checkEdge()\n {\n if(getX() < 10 || getX() > getWorld().getWidth() - 10)\n {\n speed *= -1;\n }\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}",
"private static boolean isWallFacingInDirection(int[][] area, int x, int y, Vector2 direction) {\r\n\t\tif(area[x - (int)direction.x][y - (int)direction.y] > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"private static boolean hasRoomAdjacentLeft(int roomId) {\n\t\treturn _maze.hasRoom(roomId - 1) && roomId % _totalSideRooms != 0;\n\t}",
"private boolean hasLeft ( int pos )\n\t{\n\t\treturn false; // replace this with working code\n\t}",
"private boolean verticalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(1).getYCoordinate() <= coordinates.get(2).getYCoordinate() && coordinates.get(1).getYCoordinate() <= wallCoordinates.get(2).getYCoordinate();\n }",
"public boolean isAdjacentFloor(int x, int y) {\n Position pUp = new Position(x, y + 1);\n Position pDown = new Position(x, y - 1);\n Position pLeft = new Position(x - 1, y);\n Position pRight = new Position(x + 1, y);\n Position pUpLeft = new Position(x - 1, y + 1);\n Position pUpRight = new Position(x + 1, y + 1);\n Position pDownLeft = new Position(x - 1, y - 1);\n Position pDownRight = new Position(x + 1, y - 1);\n if (pUp.y < worldHeight - 1) {\n if (world[pUp.x][pUp.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pDown.y > 0) {\n if (world[pDown.x][pDown.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pLeft.x > 0) {\n if (world[pLeft.x][pLeft.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pRight.x < worldWidth - 1) {\n if (world[pRight.x][pRight.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pUpLeft.y < worldHeight - 1 && pUpLeft.x > 0) {\n if (world[pUpLeft.x][pUpLeft.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pUpRight.y < worldHeight - 1 && pUpRight.x < worldWidth - 1) {\n if (world[pUpRight.x][pUpRight.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pDownLeft.y > 0 && pDownLeft.x > 0) {\n if (world[pDownLeft.x][pDownLeft.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n if (pDownRight.y > 0 && pDownRight.x < worldWidth - 1) {\n if (world[pDownRight.x][pDownRight.y].equals(Tileset.FLOOR)) {\n return true;\n }\n }\n return false;\n }",
"public void handleRightWall(){\n for(int i = 0; i < 15; i ++){\n if(i % 2 == 1 ){\n maze[18][i] = VISIBLESPACE;\n }\n }\n }",
"private void checkBulletWallCollision() {\n\t\tArrayList<Missile> heroMissiles = hero.getMissiles();\n\t\tArrayList<Missile> hero2Missile = computer.getMissiles();\n\n\t\tdouble x1Wall, y1Wall, x2Wall, y2Wall, x1Bullet, y1Bullet, x2Bullet, y2Bullet;\n\t\tboolean left, right, top, bottom;\n\n\t\t// tank 1 bullets and wall collision\n\t\tfor (int i = 0; i < heroMissiles.size(); i++) {\n\t\t\tMissile m1 = heroMissiles.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// tank 2 bullets and wall collision\n\t\tfor (int i = 0; i < hero2Missile.size(); i++) {\n\t\t\tMissile m1 = hero2Missile.get(i);\n\t\t\tif (m1 == null) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tRectangle r2b = m1.getBounds();\n\t\t\tfor (int j = 0; j < wallArray.size(); j++) {\n\t\t\t\tWall w1 = wallArray.get(j);\n\t\t\t\tRectangle r2w = w1.getBounds();\n\n\t\t\t\tx1Wall = r2w.getMinX();\n\t\t\t\ty1Wall = r2w.getMinY();\n\t\t\t\tx2Wall = r2w.getMaxX();\n\t\t\t\ty2Wall = r2w.getMaxY();\n\n\t\t\t\tx1Bullet = r2b.getMinX();\n\t\t\t\ty1Bullet = r2b.getMinY();\n\t\t\t\tx2Bullet = r2b.getMaxX();\n\t\t\t\ty2Bullet = r2b.getMaxY();\n\n\t\t\t\tleft = (x2Bullet < x1Wall);\n\t\t\t\tright = (x2Wall < x1Bullet);\n\t\t\t\ttop = (y2Bullet < y1Wall);\n\t\t\t\tbottom = (y2Wall < y1Bullet);\n\n\t\t\t\tif ((left && !right && top && !bottom) || (!left && right && top && !bottom)\n\t\t\t\t\t\t|| (left && !right && !top && bottom) || (!left && right && !top && bottom)) {\n\t\t\t\t} else if (left && !right && !top && !bottom) {\n\t\t\t\t\tdouble leftDist = x1Wall - x2Bullet;\n\t\t\t\t\tif (leftDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && right && !top && !bottom) {\n\t\t\t\t\tdouble rightDist = x1Bullet - x2Wall;\n\t\t\t\t\tif (rightDist < 2) {\n\t\t\t\t\t\tm1.setAngle(180 - (m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && top && !bottom) {\n\t\t\t\t\tdouble topDist = y1Wall - y2Bullet;\n\t\t\t\t\tif (topDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (!left && !right && !top && bottom) {\n\t\t\t\t\tdouble bottomDist = y1Bullet - y2Wall;\n\t\t\t\t\tif (bottomDist < 2) {\n\t\t\t\t\t\tm1.setAngle(-(m1.getAngle()));\n\t\t\t\t\t\tm1.setReflected(true);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean addHorizontalWall(int x, int y, int len) {\n if(x+len > width || y > height) \n throw new IllegalArgumentException(\"Wall exceeds maze boundary\");\n boolean added = false;\n for(int i = 0; i < len; i++) {\n if(addHorizontalWall(x + i, y)) added = true;\n }\n return added;\n }",
"public static boolean isLeftEdgeCorrect(Cube cube){\n\t\treturn (cube.getSquare (0, 1, 2) == 0 && cube.getSquare(1, 1, 0) == 1);\n\t}",
"private boolean checkWallRight(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean addHorizontalWall(int x, int y) {\n if(x+1 > width || y > height) \n throw new IllegalArgumentException(\"Wall exceeds maze boundary\");\n return walls.add(new Wall(x, y, true));\n }",
"private boolean checkDownSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j > y - len; j -= 1) {\n for (int i = x - rightWid; i < x + leftWid + 1; i += 1) {\n if (j < 0) {\n return false;\n }\n if (i < 0 || i >= worldWidth) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }",
"private boolean doesLineHitWall (Rectangle rect, float x1, float y1, float x2, float y2) {\n\t\tfloat minY = min(y1, y2);\n\t\tif (minY >= rect.y + rect.height + fudge) return false;\n\n\t\t// Does not intersect if maximum y coordinate is above the rectangle.\n\t\tfloat maxY = max(y1, y2);\n\t\tif (maxY < rect.y - fudge) return false;\n\n\t\t// Does not intersect if minimum x coordinate is to the right of the rectangle.\n\t\tfloat minX = min(x1, x2);\n\t\tif (minX >= rect.x + rect.width + fudge) return false;\n\n\t\t// Does not intersect if maximum x coordinate is to the left of the rectangle.\n\t\tfloat maxX = max(x1, x2);\n\t\tif (maxX < rect.x - fudge) return false;\n\n\t\t// And that's good enough, because the robots need to be a bit stupid\n\t\t// when they're near the ends of walls.\n\t\treturn true;\n\t}",
"private boolean checkFollowingWall(Coordinate carPos,\n\t\t\t\t\t\t\t\t\t\t WorldSpatial.Direction orientation) {\n\t\t// If it's a traversable trap return false\n\t\tif (map.tileAtRelative(carPos, orientation, -1, 0).isTrap() &&\n\t\t\t!map.tileAtRelative(carPos, orientation, -2, 0).blocking()) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Return true if there are any blocking tiles in specific range ahead\n\t\tfor (int i = 1; i <= WALL_THRESHOLD; i++) {\n\t\t\tif (map.tileAtRelative(carPos, orientation, -i, 0).blocking()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"boolean hasHingeOnRightSide() throws RuntimeException;",
"public boolean isPointOnTheLeft(Point2d point){\n return direction.y*(point.x-this.point.x)-direction.x*(point.y-this.point.y) < 0;\n }",
"private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\t\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}",
"private boolean isInGameWindow(){\n if (currPos.x > Window.getWidth() || currPos.y > Window.getHeight()){\n return false;\n }\n return true;\n }",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }"
] | [
"0.7761954",
"0.77221394",
"0.7531147",
"0.7459015",
"0.7452816",
"0.7349326",
"0.73058033",
"0.72729427",
"0.7241997",
"0.720392",
"0.7183268",
"0.71089816",
"0.70854825",
"0.7083071",
"0.70622677",
"0.7033246",
"0.6938625",
"0.6930488",
"0.6920729",
"0.69201934",
"0.69085735",
"0.6856689",
"0.68491274",
"0.6804627",
"0.678033",
"0.6763817",
"0.6763226",
"0.6762761",
"0.6748732",
"0.6736291",
"0.6730377",
"0.6709448",
"0.67087704",
"0.6680408",
"0.66780245",
"0.66779506",
"0.66752845",
"0.66471785",
"0.66345614",
"0.6633541",
"0.6615198",
"0.6613089",
"0.66128653",
"0.65946555",
"0.6562893",
"0.6535408",
"0.6516576",
"0.65060604",
"0.64962006",
"0.64739275",
"0.64735836",
"0.646663",
"0.64662147",
"0.6454602",
"0.64533305",
"0.6447208",
"0.6433416",
"0.6428654",
"0.6419747",
"0.64097863",
"0.6407082",
"0.6401597",
"0.6378022",
"0.6369072",
"0.6360759",
"0.63583726",
"0.6351053",
"0.63449854",
"0.6342953",
"0.6342118",
"0.634158",
"0.63323915",
"0.6325376",
"0.6324925",
"0.63102853",
"0.63091445",
"0.63085383",
"0.6307887",
"0.6303092",
"0.6292865",
"0.629113",
"0.62761486",
"0.627369",
"0.6260214",
"0.6258435",
"0.6256559",
"0.6249485",
"0.6248232",
"0.6244232",
"0.6222717",
"0.6221143",
"0.62127733",
"0.6203756",
"0.6197256",
"0.619677",
"0.6194778",
"0.6180634",
"0.616811",
"0.6143595",
"0.61382467"
] | 0.73166746 | 6 |
Check if the wall is on your left hand side given your orientation | private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {
switch(orientation){
case EAST:
return checkNorth(currentView);
case NORTH:
return checkWest(currentView);
case SOUTH:
return checkEast(currentView);
case WEST:
return checkSouth(currentView);
default:
return false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"private boolean checkLeftWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkNorth(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkWest(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkEast(currentView);\n\t\tcase WEST:\n\t\t\treturn checkSouth(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}",
"private boolean hasLeftWall(View v){\n\t\tswitch(this.facingDirection){\n\t\tcase NORTH:\n\t\t\treturn !v.mayMove(Direction.WEST);\n\t\tcase SOUTH:\n\t\t\treturn !v.mayMove(Direction.EAST);\n\t\tcase WEST:\n\t\t\treturn !v.mayMove(Direction.SOUTH);\n\t\tcase EAST:\n\t\t\treturn !v.mayMove(Direction.NORTH);\n\t\tdefault: return false;\n\t\t}\n\t}",
"private boolean collisionWithHorizontalWall() {\n return (xPos + dx > RIGHT_BORDER || xPos + dx < 0);\n }",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"private boolean isBallCollideLeftWall(GOval ball) {\n return ball.getX() <= 0;\n }",
"private void checkLeftWall(Invader invader) {\n\t\t\n\t\tif (invader.getX() <= 0) {\n\t\t\tInvader.setDirectionRight(false);\n\t\t\t\n\t\t\tadvanceInvaders();\n\t\t\t\n\t\t\tInvader.setDirectionRight(true);\n\t\t}\n\t}",
"public boolean isFacingLeft(){\r\n\t\tif(facingLeft == true){\r\n\t\t\treturn true;\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public static boolean isLeftEdgeCorrect(Cube cube){\n\t\treturn (cube.getSquare (0, 1, 2) == 0 && cube.getSquare(1, 1, 0) == 1);\n\t}",
"public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private boolean horizontalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(0).getXCoordinate() <= coordinates.get(1).getXCoordinate() && coordinates.get(0).getXCoordinate() <= wallCoordinates.get(1).getXCoordinate();\n }",
"private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean isWall(Orientation orientation) {\n\t\tfor(Edge edge : neighbors) {\n\t\t\tif(edge.getDirection() == orientation) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private boolean leftDownCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((obj.getY() - this.getY()) < this.getHeight()) && (obj.getY() > this.getY()));\n\t}",
"private boolean checkWallRight(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean liesOnWall() {\n return getBaseParameters().getWorld()[this.getX()][this.getY()] == getBaseParameters().getWall();\n }",
"private boolean nextIsWall()\n {\n return this.getCurrentLevel().getInLevelLocation()[this.getCurrentX()][this.getCurrentY()].isHasWall();\n }",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"public boolean stepLeft() {\n //it should be wall and maze border check here\n xMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public boolean onHorizontalEdge() {\n\t\treturn horizontal != Side.None;\n\t}",
"private boolean leftCollision(InteractiveObject obj){\n\t\treturn leftUpCollision(obj) || leftDownCollision(obj);\n\t}",
"public boolean canMoveForward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n if(wall.getY()-locY<=50 && wall.getY()-locY>=0 && degree>=0 && degree<=150)\n {\n ans=false;\n }\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=180 && degree<=360)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n if(wall.getX()-locX<=50 && wall.getX()-locX>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n degree>=90 && degree<=270 )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean isWall();",
"private boolean checkStatus() {\r\n //\tSystem.out.println(\"Left \" + Left.getX() + \",\" + Left.getY());\r\n \t//System.out.println(\"Head \" + head.getX() + \",\" + head.getY());\r\n \tboolean result = false;\r\n \tif(Left.getX() >= -4 && Left.getX() <= -3.5f) {\r\n \t\t\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= -2 && Left.getX() <= -0.5f) {\r\n \t\tthis.die = 1;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 0 && Left.getX() <= 1.5f) {\r\n \t\tthis.die = 2;\r\n \t\tresult = true;\r\n \t}\r\n \tif(Left.getX() >= 2 && Left.getX() <= 3.5f) {\r\n \t\tthis.die = 3;\r\n \t\tresult = true;\r\n \t}\r\n \treturn result;\r\n }",
"public boolean isHorizontal(){\n return head().getY() == tail().getY();\n }",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}",
"boolean isLeftCollision(Actor actor) {\n return this.getX() - 1 == actor.getX() && this.getY() == actor.getY();\n }",
"private boolean checkLeftSpace(Position p, int len,\n int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n if (i < 0) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private void updateJustTurnedLeft(MyAIController controller, Coordinate pos, WorldSpatial.Direction orientation) {\n\t\t// Check car has moved positions\n\t\tif (controller.getPosition() != previousPosition) {\n\t\t\tif (checkFollowingWall(pos, orientation)) {\n\t\t\t\tstate = ExplorerState.WALL_FOLLOWING;\n\t\t\t}\n\t\t}\n\t}",
"public boolean isWall()\n\t{\n\t\treturn block == Block.HORIZONTAL_WALL || block == Block.VERTICAL_WALL\n\t\t\t\t|| block == Block.BOT_LEFT_TOP_RIGHT_WALL\n\t\t\t\t|| block == Block.BOT_RIGHT_TOP_LEFT_WALL || isGhostGate();\n\t}",
"private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }",
"private boolean leftUpCollision(InteractiveObject obj){\n\t\treturn (((this.getX() - obj.getX()) < obj.getWidth()) && (this.getX() > obj.getX()) &&\n\t\t\t\t((this.getY() - obj.getY()) < obj.getHeight()) && (this.getY() > obj.getY()));\n\t}",
"public boolean isLeft(char dirFacing, Location next)\n\t{\n\t\tLocation left = getLeft(dirFacing);\n\t\treturn left.getX() == next.x && left.getY() == next.y;\n\t}",
"public boolean isLeftKnown() {\n return left != BeaconColor.UNKNOWN;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"void hasLeft();",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean isHorizontal(CoordinateImpl coordinate) { return coordinate.rank == rank;}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private static boolean hasRoomAdjacentLeft(int roomId) {\n\t\treturn _maze.hasRoom(roomId - 1) && roomId % _totalSideRooms != 0;\n\t}",
"public Boolean isHorizontal() {\n return this == EAST || this == WEST;\n }",
"boolean hasHingeOnRightSide() throws RuntimeException;",
"private static boolean isWallFacingInDirection(int[][] area, int x, int y, Vector2 direction) {\r\n\t\tif(area[x - (int)direction.x][y - (int)direction.y] > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}",
"public Bearing getLeftNeighbour() {\n return this == N || this == S ? W : N;\n }",
"private boolean onaryLeft(WAVLNode z) {\n\t if(z.left.rank!=-1) {\r\n\t\t return true;\r\n\t }\r\n\t return false;\r\n }",
"public boolean isLeft() {\n\t\treturn state == State.LEFT;\n\t}",
"public boolean isPointOnTheLeft(Point2d point){\n return direction.y*(point.x-this.point.x)-direction.x*(point.y-this.point.y) < 0;\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"public void moveLeft() {\n if (!this.state.equals(\"onLeftWall\")) {\n this.dir = -1;\n this.xTargetSpeed = this.X_MAX_SPEED;\n }\n }",
"private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"public boolean isWall() {\n return type == CellType.WALL;\n }",
"public void strafeLeft(){\r\n\t\t//Following the camera:\r\n\t\tif(loc[1] > 1)\r\n\t\t{\r\n\t\t\tthis.loc[0] -= Math.sin(Math.toRadians(heading))*distance; \r\n\t\t\tthis.loc[2] -= Math.cos(Math.toRadians(heading))*distance;\r\n\t\t}\r\n\t}",
"public boolean isHorizontal() {\n\t\treturn ( getSlope() == 0.0d );\n\t}",
"private Direction followLeftWall(View v) {\n\t\t//try to find the left wall again at the turning wall corner\n\t\tif(!hasLeftWall(v)){\n\t\t\tturnLeft(v);\n\t\t}\n\t\t//if blocked, see if there is a way to the left. If there is, turn left. Otherwise, turn clockwise.\n\t\twhile(isBlocked(v)){\n\t\t\tif(!hasLeftWall(v)){\n\t\t\t\tturnLeft(v);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tturnClockwise();\n\t\t\t}\n\t\t}\n\t\t//if the square has been visited before and the facing direction was the exit direction,\n\t\t//try a different exit direction.\n\t\tSquare toBeRemoved = null;\n\t\tfor(Square s: visited){\n\t\t\tif(s.equals(current) && (facingDirection == s.getExit())){\n\t\t\t\ttoBeRemoved = s;\n\t\t\t\tturnClockwise();\n\t\t\t\tcaliberated = false; //now we should recaliberate after turning to a new direction.\n\t\t\t}\n\t\t}\n\t\tvisited.remove(toBeRemoved);\n\t\tmemorization(facingDirection);\n\t\treturn facingDirection;\n\t}",
"public boolean fireLeftJet()\r\n\t{\r\n\t\treturn fireJet(new Point(0.3, 0));\r\n\t}",
"public boolean isWall () {\n if (this.equals(SquareType.WALL))\n return true;\n else\n return false;\n }",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"private boolean isBallCollideRightWall(GOval ball) {\n return ball.getX() + 2 * BALL_RADIUS >= getWidth();\n }",
"boolean reachedLeft() {\n\t\treturn this.x <= 0;\n\t}",
"public boolean hasLeft(){\r\n\t\tif(getLeft()!=null) {\r\n\t\t\treturn true;\r\n\t\t}else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"boolean getLeftToRight();",
"public boolean isHorizontal()\r\n\t{\r\n\t\treturn _position==Position.HORIZONTAL;\r\n\t}",
"boolean isRight() {\r\n\t\tint maxlength;\r\n\t\tmaxlength = Math.max(Math.max(side1, side2), side3);\r\n\t\treturn (maxlength * maxlength == (side1 * side1) + (side2 * side2) + (side3 * side3) - (maxlength * maxlength));\r\n\t}",
"public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }",
"public static boolean isLeftBottomCornerCorrect(Cube cube){\n\t\treturn (cube.getSquare (0, 2, 2) == 0 && cube.getSquare(1, 2, 0) == 1 &&\n cube.getSquare(4, 0, 0) == 4);\n\t}",
"public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }",
"protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }",
"public void checkIfAtEdge() {\n\t\tif(x<=0){\n\t\t\tx=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y<=0){\n\t\t\ty=1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(x>=GameSystem.GAME_WIDTH-collisionWidth){\n\t\t\tx=GameSystem.GAME_WIDTH-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\tif(y>=GameSystem.GAME_HEIGHT-collisionWidth){\n\t\t\ty=GameSystem.GAME_HEIGHT-collisionHeight-1;\n\t\t\tatEdge=true;\n\t\t\tmoving=false;\n\t\t}\n\t\telse{\n\t\t\tatEdge=false;\n\t\t}\n\t\t\n\t}",
"public boolean isWall(Position p) {\r\n try {\r\n if (mazeData[p.getX()][p.getY()] == WALL)\r\n return true;\r\n }catch (ArrayIndexOutOfBoundsException e ){}\r\n return false;\r\n }",
"protected boolean isWall2()\n {\n\n if(isTouching(Wall.class)) //&&!isTouching(Door.class))\n return true;\n /*else if(isTouching(Door.class))\n {\n Door d = (Door)getOneIntersectingObject(Door.class);\n if(d.alreadyOpened==false)\n return true;\n else\n return false;\n }*/\n else\n return false;\n }",
"private boolean isNextToWall(Direction direction){\n switch (direction) {\n case LEFT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isLeftCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case RIGHT:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isRightCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case UP:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isUpCollision(wall)) {\n return true;\n }\n }\n return false;\n\n case DOWN:\n for (int i = 0; i < walls.size(); i++) {\n Wall wall = walls.get(i);\n if (player.isDownCollision(wall)) {\n return true;\n }\n }\n return false;\n\n default:\n return false;\n\n }\n }",
"public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}",
"public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }",
"public abstract boolean facingRight();",
"private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"public boolean checkBallOutLeftRight() {\n //if ball is out of left and right\n if (x <= -radius || x >= GameView.width + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"boolean land();",
"public boolean checkWallCollision(){\n\t\tif(Physics.hitWall(this, game.getBrickList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\tif(Physics.hitPlaceHolder(this, game.getPlaceHolderList())!=-1){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"public boolean canMoveBackward()\n {\n boolean ans = true;\n\n Iterator<WallMulti> walls = this.walls.iterator();\n\n while(walls.hasNext ())\n {\n WallMulti wall = walls.next();\n\n if(wall.getType ().equals (\"H\"))\n {\n if(locX>=wall.getX()-15 && locX<=wall.getX()+wall.getLength()+15)\n {\n //tank upper than wall\n if(wall.getY()-locY<=60 && wall.getY()-locY>=0 && degree>=270 && degree<=360)\n {\n ans=false;\n }\n //tank lower than wall\n if(locY-wall.getY()<=8 && locY-wall.getY()>=0 && degree>=0 && degree<=180)\n {\n ans=false;\n }\n }\n }\n\n if(wall.getType ().equals (\"V\"))\n {\n if(locY>=wall.getY()-15 &&locY<=wall.getY()+wall.getLength()+15)\n {\n //tank at the left side of the wall\n if(wall.getX()-locX<=60 && wall.getX()-locX>=0 &&\n (degree>=90 && degree<=270) )\n {\n ans=false;\n }\n //tank at the right side of the wall\n if(locX-wall.getX()<=8 && locX-wall.getX()>=0 &&\n ((degree>=0 && degree<=90)||(degree>=270 && degree<=360)) )\n {\n ans=false;\n }\n }\n }\n }\n return ans;\n }",
"boolean hasSide();",
"public boolean hasLeft() {\r\n\t\treturn left != null;\r\n\t}",
"@Test\n public void testGetHorizontalLeftPillar(){\n Pillar cornerPillar = largePillarMap.get(Maze.position(0,0));\n Pillar edgePillar = largePillarMap.get(Maze.position(4,3));\n Pillar neighbor = largeMaze.getHorizontalPillar(cornerPillar, true);\n assertEquals(1, neighbor.getX());\n assertEquals(0, neighbor.getY());\n\n neighbor = largeMaze.getHorizontalPillar(edgePillar, true);\n assertEquals(null, neighbor);\n }",
"boolean reachedEdge() {\n\t\treturn this.x > parent.width - 30;// screen width including the size of\n\t\t\t\t\t\t\t\t\t\t\t// the image\n\t}",
"public boolean isWalkable() {\n return type != CellType.WALL && isInBoundaries();\n }",
"public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}",
"public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"public boolean isLeftToRight() {\n return leftToRight;\n }",
"private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"private boolean seesWall() {\n\t\treturn getFilteredData() <= WALL_DIST;\n\t}",
"private boolean collisionWithVerticalWall() {\n return (yPos + dy > LOWER_BORDER || yPos + dy < 0);\n }",
"void detectWallCollisions() {\n\t\tif (getCenterX() < getRadius()) {\n\t\t\tsetCenterX(getRadius());\n\t\t\tvx = -vx;\n\t\t} else if (getCenterX() > (getScene().getWidth() - getRadius())) {\n\t\t\tsetCenterX((getScene().getWidth() - getRadius()));\n\t\t\tvx = -vx;\n\t\t}\n\t\tif (getCenterY() < getRadius()) {\n\t\t\tsetCenterY(getRadius());\n\t\t\tvy = -vy;\n\t\t} else if (getCenterY() > (getScene().getHeight() - getRadius())) {\n\t\t\tsetCenterY(getScene().getHeight() - getRadius());\n\t\t\tvy = -vy;\n\t\t}\n\t}",
"public boolean canEnpassantLeft(Piece p) {\n\t\t\n\t\tif( (!(p instanceof Pawn)) || p == null) { //check is piece p is a pawn\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif(p.color == 'w') { //white pawn\n\t\t\tif(p.getX() != 3) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tint row = p.getX();\n\t\t\tint column = p.getY();\n\t\t\tString left_space = Board.convertToFileRank(row, column - 1);\n\t\t\t\n\t\t\t// EnPassant 1 (Left-Diagonal) - white\n\t\t\tif(board.getPiece(left_space) != null && board.getPiece(left_space) instanceof Pawn && board.getPiece(left_space).color != this.color) {\n\t\t\t\tif( ((Pawn)(board.getPiece(left_space))).hasMovedTwo == true ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\t\n\t\t\t} else {\n\t\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else { //black pawn\n\t\t\t\n\t\t\tif(p.getX() != 4) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tint row = p.getX();\n\t\t\tint column = p.getY();\n\t\t\tString left_space = Board.convertToFileRank(row, column - 1);\n\t\t\t\n\t\t\t// EnPassant 1 (Left-Diagonal) - black\n\t\t\tif(board.getPiece(left_space) != null && board.getPiece(left_space) instanceof Pawn && board.getPiece(left_space).color != this.color) {\n\t\t\t\tif( ((Pawn)(board.getPiece(left_space))).hasMovedTwo == true ) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean isWall() {\r\n return getObjectGroup() == ObjectGroup.WALL;\r\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"public boolean isRight () {\r\n\t\tif (((Math.pow(startSide1, 2) + Math.pow(startSide2, 2) == Math.pow(startSide3, 2)) || \r\n\t\t\t(Math.pow(startSide2, 2) + Math.pow(startSide3, 2) == Math.pow(startSide1, 2)) ||\r\n\t\t\t(Math.pow(startSide3, 2) + Math.pow(startSide1, 2) == Math.pow(startSide2, 2)))\r\n\t\t\t&& isTriangle () == true && isEquilateral () == false) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse return false;\r\n\t}"
] | [
"0.79967856",
"0.7887571",
"0.76196456",
"0.75067633",
"0.7490989",
"0.7001556",
"0.69835484",
"0.69478095",
"0.68024886",
"0.67996705",
"0.67904407",
"0.6760078",
"0.6753351",
"0.67026454",
"0.66957706",
"0.669203",
"0.66906273",
"0.6672622",
"0.6626829",
"0.66256034",
"0.6602135",
"0.65989125",
"0.65961975",
"0.65832514",
"0.65828633",
"0.6561361",
"0.6558597",
"0.65470785",
"0.6545538",
"0.6537748",
"0.653666",
"0.6535084",
"0.6529964",
"0.65164816",
"0.65140975",
"0.6508503",
"0.64964384",
"0.6456694",
"0.6437992",
"0.64211434",
"0.64046335",
"0.6401043",
"0.63887405",
"0.63844",
"0.63780916",
"0.6363656",
"0.63615656",
"0.6360256",
"0.63572305",
"0.6351204",
"0.63496125",
"0.6317411",
"0.6315295",
"0.6269343",
"0.6239866",
"0.62391216",
"0.62237006",
"0.6218897",
"0.6216297",
"0.620515",
"0.61934006",
"0.6187772",
"0.6155743",
"0.61526346",
"0.6152195",
"0.61450267",
"0.6126202",
"0.6119127",
"0.61052454",
"0.60951823",
"0.60861933",
"0.60852647",
"0.60614145",
"0.60589325",
"0.60565454",
"0.60540587",
"0.6052682",
"0.60506123",
"0.60487765",
"0.604106",
"0.60347813",
"0.6031045",
"0.6017532",
"0.60170627",
"0.6014837",
"0.60051733",
"0.5999176",
"0.59934354",
"0.59926826",
"0.59822094",
"0.59775984",
"0.5974916",
"0.59642136",
"0.5954662",
"0.5944565",
"0.5927215",
"0.5922507",
"0.5917665",
"0.59030366",
"0.5901386"
] | 0.6401726 | 41 |
/ Checks if a tile is a lava tile | public boolean isLava(MapTile tile) {
if (tile.isType(MapTile.Type.TRAP)) {
TrapTile tile2 = (TrapTile) tile;
if (tile2.getTrap().equals("lava")) {
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean testTiles(EIfcfillareastyletiles type) throws SdaiException;",
"public boolean hasTile(Tile a_tile){\n for(int i = 0; i < playerHand.size(); i++){\n if(playerHand.get(i).getLeft() == a_tile.getLeft() && playerHand.get(i).getRight() == a_tile.getRight()){\n return true;\n }\n }\n return false;\n }",
"boolean isImageTileType();",
"boolean canBuildDome(Tile t);",
"boolean canBuildBlock(Tile t);",
"boolean canMove(Tile t);",
"public boolean hasTiles()\r\n\t{\r\n\t\treturn _tiles.size() != 0;\r\n\t}",
"VolaTile(int x, int y, boolean isSurfaced, Set<VirtualZone> aWatchers, Zone zon) {\n/* 291 */ this.tilex = x;\n/* 292 */ this.tiley = y;\n/* 293 */ this.surfaced = isSurfaced;\n/* 294 */ this.zone = zon;\n/* 295 */ this.watchers = aWatchers;\n/* 296 */ checkTransition();\n/* 297 */ checkIsLava();\n/* */ }",
"boolean checkWin(Tile initialTile);",
"public boolean hasTile(GroundTile tile) {\n return this.editedTiles.contains(tile);\n }",
"boolean isTile(int x, int y, int rotation) {\n return tiles[rotation][dimensions * y + x] == 1;\n }",
"public boolean tileGrass(float xTile, float yTile)\r\n/* 212: */ {\r\n/* 213:236 */ return (tileInBounds(xTile, yTile)) && (this.grass[((int)xTile)][((int)yTile)] != 0);\r\n/* 214: */ }",
"@Test\n public void notOnGroundTest(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0},{0,0}},new byte[][]{{1,0},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,2,2);\n assertFalse(tileMap.isOnGround(cBox));\n }",
"public boolean testTilingscale(EIfcfillareastyletiles type) throws SdaiException;",
"public boolean tileOfHuman (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }",
"private boolean checkTileExists(int x, int y, int zoom) {\n \t int minZoom = 12;\n \t int maxZoom = 16;\n\n \t if ((zoom < minZoom || zoom > maxZoom)) {\n \t return false;\n \t }\n\n \t return true;\n \t }",
"public boolean canKong(int tile) {\n\t\treturn TileAnalyser.in(tile, getTileNumbers())>2;\n\t}",
"public boolean isTileOnMap(int x, int y) {\n\t\treturn getTileAt(x, y) != null;\n\t}",
"public boolean tileAlienPlacable(float xTile, float yTile, BlipModel model)\r\n/* 178: */ {\r\n/* 179:202 */ if (tileWalkable(xTile, yTile))\r\n/* 180: */ {\r\n/* 181:204 */ float blipx = model.getX() - 0.5F;\r\n/* 182:205 */ float blipy = model.getY() - 0.5F;\r\n/* 183:206 */ System.out.println(\"Blip: \" + blipx + \" \" + blipy + \" tile \" + \r\n/* 184:207 */ xTile + \" \" + yTile);\r\n/* 185:208 */ if ((xTile >= blipx - 1.0F) && (xTile <= blipx + 1.0F) && (yTile >= blipy - 1.0F) && \r\n/* 186:209 */ (yTile <= blipy + 1.0F))\r\n/* 187: */ {\r\n/* 188:211 */ System.out.println(\"ALien placable\");\r\n/* 189:212 */ return true;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192:215 */ return false;\r\n/* 193: */ }",
"@Override\n public boolean isTileFriendly(){\n return false;\n }",
"@Test\n public void isONGroundTestTrue(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0}},new byte[][]{{1,1},{1,1},{1,1},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,24,22);\n assertEquals(true, tileMap.isOnGround(cBox));\n }",
"public boolean testTilingpattern(EIfcfillareastyletiles type) throws SdaiException;",
"protected boolean tileCollision(double xa, double ya) { // returns true if there is a collision\n\t\tboolean solid = false;\n\n\t\tfor (int c = 0; c < 4; c++) { // this checks all 4 corners for collision\n\t\t\tdouble xt = ((x - 6 + xa) - c % 2 * 4) / 16; // i honestly don't know hoW this works. It just does. Episode 65.\n\t\t\tdouble yt = ((y - 4 + ya) - c / 2 * 7) / 16;\n\n\t\t\tint ix = (int) Math.ceil(xt); // returns the smallest integer greater than or equal to a number\n\t\t\tint iy = (int) Math.ceil(yt);\n\n\t\t\tif (level.getTile(ix, iy).solid()) solid = true; // this is the important statement for collision detection. It works by looking at the tile you want to go to and seeing if it is solid.\n\t\t}\n\n\t\treturn solid;\n\t}",
"public boolean isRevealed(int tile) {\r\n return (tiles[tile] & 2) != 0;\r\n }",
"public boolean isLava() {\n return this.type == Type.LAVA;\n }",
"public boolean isRun() {\n if (!isValid()) {\n return false;\n }\n else {\n if (tiles.get(0).getColour() == tiles.get(1).getColour()) {\n return true;\n } else {\n return false;\n }\n }\n }",
"public boolean hasShip(int tile) {\r\n return (tiles[tile] & 1) != 0;\r\n }",
"public boolean checkAlienPlacementTile(float x, float y)\r\n/* 471: */ {\r\n/* 472:563 */ if (!tileWalkable(x, y)) {\r\n/* 473:565 */ return false;\r\n/* 474: */ }\r\n/* 475:568 */ AgentModel a = getAgentOnTile(x, y);\r\n/* 476:569 */ if ((a != null) || (((a instanceof DoorModel)) && (!((DoorModel)a).isOpen()))) {\r\n/* 477:571 */ return false;\r\n/* 478: */ }\r\n/* 479:574 */ return true;\r\n/* 480: */ }",
"public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }",
"public boolean tileOfComputer (int row, int col){\n return this.gameBoard[row][col] == 'o';\n }",
"public static boolean insideBounds(GameTile tile) {\n\n if (tile == null) {\n return false;\n } else {\n\n int x = tile.getXCoord();\n int y = tile.getYCoord();\n\n return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS);\n\n }\n\n }",
"public boolean isTileOnMap(IntVector2D v) {\n\t\treturn getTileAt(v) != null;\n\t}",
"public boolean isOnSlopedTile() { return onSlopedTile; }",
"String getTileType();",
"public boolean tileWalkable(float xTile, float yTile)\r\n/* 160: */ {\r\n/* 161:183 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 162:184 */ (this.walkable[((int)xTile)][((int)yTile)] != 0);\r\n/* 163: */ }",
"public boolean hasNeighbor(Tile tile) {\n if (tile == null) {\n return false;\n }\n\n return (this.tileNorth == tile || this.tileEast == tile || this.tileSouth == tile || this.tileEast == tile);\n }",
"public boolean addTile(Tile tile) {\n\n\t\tboolean isSuccess = false;\n\t\tint tileRow = tile.getLocation().getRow();\n\t\tint tileCol = tile.getLocation().getColumn();\n\n\t\tArrayList<Tile> boardRow= null;\n\n\t\tif(tiles.containsKey(tileRow)) {\n\t\t\tboardRow=tiles.get(tileRow);\n\t\t\tif(boardRow == null) {\n\t\t\t\tboardRow = new ArrayList<Tile>(BOARD_SIZE);\n\t\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\t\tboardRow.add(0,null);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tboardRow= new ArrayList<Tile>(BOARD_SIZE);\n\t\t\tfor (int i = 0; i < BOARD_SIZE; i++) {\n\t\t\t\tboardRow.add(0,null);\n\t\t\t}\n\t\t}\n\t\tboardRow.set(tileCol - 'A', tile);\n\t\tthis.tiles.put(tileRow, boardRow);\n\t\tisSuccess = true;\n\n\t\treturn isSuccess;\n\n\t}",
"private boolean isThereLegalTilesNotColored(){\n\n\t\tArrayList<Tile> legalTiles=getAllLegalMoves(Game.getInstance().getCurrentPlayerColor());\n\t\tlegalTiles.removeAll(coloredTilesList);\n\t\tif(legalTiles.isEmpty()) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean isTileAvailable(DisplayTile tile, Direction fromDirection, HashMap<DisplayTile, DisplayTile> chainedTiles) {\n\t\tif (tile == null || chainedTiles.containsKey(tile))\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isRoomTile() && !tile.hasDoor(fromDirection))\n\t\t\treturn false;\n\t\t\t\n\t\tif (tile.hasSuspect() || tile.isRemovedTile())\n\t\t\treturn false;\n\t\t\n\t\tif (tile.isPassage() && tile.getPassageConnection().hasSuspect())\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}",
"public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }",
"public boolean hasTileEntity(int metadata)\r\n/* 259: */ {\r\n/* 260:304 */ return true;\r\n/* 261: */ }",
"public final boolean hasOnePerTileItem(int floorLevel) {\n/* 4849 */ return (this.vitems != null && this.vitems.hasOnePerTileItem(floorLevel));\n/* */ }",
"public boolean isWalkAbleTile(int x, int y) {\n\t\tfor (Entity e : entities) {\n\t\t\tif (e.getX() >> 4 == x && e.getY() >> 4 == y)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean canStandOn(Environment tile)\n {\n if( tile.terrainType == TerrainType.TELETILE )\n return false; // Standing on empty space is pretty hard\n return getMoveCost(tile) < IMPASSABLE;\n }",
"private boolean isCorrect() {\n\t\t// if a single tile is incorrect, return false\n\t\tfor (Tile tile : tiles) {\n\t\t\tif (!tile.isCorrect()) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"private static boolean compareGameDestination(RSTile tile) {\n RSTile game_destination = Game.getDestination();\n if (tile == null || game_destination == null) {\n return false;\n }\n return tile.distanceTo(game_destination) < 1.5;\n }",
"public static boolean canWrap(TileEntity tile) {\n\t\treturn (tile instanceof IStargateAccess) || (tile instanceof IStargateControllerAccess)\n\t\t\t\t|| (tile instanceof INaquadahGeneratorAccess);\n\t}",
"public boolean canPung(int tile) {\n\t\tint[] numbers = getTileNumbers();\n\t\tint instances = TileAnalyser.in(tile, numbers);\n\t\treturn instances>1;\n\t}",
"public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }",
"public boolean isInsideTile(int x, int y){\n\t\treturn (x >= tileX && x <= tileX+tileImage.getWidth() && y >= tileY && y <= tileY+tileImage.getHeight());\n\t}",
"public boolean isProjectile();",
"public boolean isTileSelected() {\n return selectedTile != null;\n }",
"private boolean isTownHallAt(int x, int y, Node dest) {\n\t\tif (x == dest.getX() && y == dest.getY()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (currentState.isUnitAt(x, y)) {\n\t\t\tint unitID = currentState.unitAt(x, y);\n \t\n String unitName = currentState.getUnit(unitID).getTemplateView().getName();\n if(unitName.equalsIgnoreCase(\"Townhall\")) {\n \treturn true;\n }\n\t\t}\n\t\n\t\treturn false;\n\t}",
"public void checkCollisionTile(Entity entity) {\n\t\t\tint entityLeftX = entity.worldX + entity.collisionArea.x;\n\t\t\tint entityRightX = entity.worldX + entity.collisionArea.x + entity.collisionArea.width;\n\t\t\tint entityUpY = entity.worldY + entity.collisionArea.y;\n\t\t\tint entityDownY = entity.worldY + entity.collisionArea.y + entity.collisionArea.height;\n\t\t\t\n\t\t\tint entityLeftCol = entityLeftX/gamePanel.unitSize;\n\t\t\tint entityRightCol = entityRightX/gamePanel.unitSize;\n\t\t\tint entityUpRow = entityUpY/gamePanel.unitSize;\n\t\t\tint entityDownRow = entityDownY/gamePanel.unitSize;\n\t\t\t\n\t\t\tint point1;\n\t\t\tint point2;\n\t\t\t//This point is used for diagonal movement\n\t\t\tint point3;\n\t\t\t\n\t\t\tswitch(entity.direction) {\n\t\t\t\t//Lateral and longitudinal movements\n\t\t\t\tcase \"up\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"down\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"left\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"right\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t//Diagonal Movements\n\t\t\t\tcase \"upleft\":\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\t//Sets the top left and top right point to draw a line which will check for collision\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\t//If either points are touched, turn on collision stopping movement\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"upright\":\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityUpRow = (entityUpY - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\t\n\t\t\t\tcase \"downleft\":\n\t\t\t\t\tentityLeftCol = (entityLeftX - entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityUpRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"downright\":\n\t\t\t\t\tentityDownRow = (entityDownY + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tentityRightCol = (entityRightX + entity.speed) / gamePanel.unitSize;\n\t\t\t\t\tpoint1 = gamePanel.tileSet.mapTileNum[entityLeftCol][entityDownRow];\n\t\t\t\t\tpoint2 = gamePanel.tileSet.mapTileNum[entityRightCol][entityDownRow];\n\t\t\t\t\tpoint3 = gamePanel.tileSet.mapTileNum[entityRightCol][entityUpRow];\n\t\t\t\t\tif(gamePanel.tileSet.tile[point1].collision == true || gamePanel.tileSet.tile[point2].collision == true || gamePanel.tileSet.tile[point3].collision == true) {\n\t\t\t\t\t\tentity.collisionOn = true;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"@Test\n public void testGetTile() {\n assertEquals(7, board3by3.getTile(0, 0).getId());\n }",
"public int getTileType() {\r\n\t\treturn 3;\r\n\t}",
"public static boolean terrain_has_flag(int terr, terrain_flag_id flag){\r\n\t\t\t //\t BV_ISSET(get_tile_type(terr)->flags, flag)\r\n\t\t\t return false;\r\n}",
"public static boolean isEveryTileFilled() {\n for (int i = 0; i < 9; i++) {\n for (int j = 0; j < 9; j++) {\n if (tiles.get(new Coordinates(i, j)).getTextFromTile().getText().equals(\"\")) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean tileBlocked(float xTile, float yTile)\r\n/* 117: */ {\r\n/* 118:131 */ return (!tileInBounds(xTile, yTile)) || (this.blocked[((int)xTile)][((int)yTile)] != 0);\r\n/* 119: */ }",
"private static boolean comparePlayerPosition(RSTile tile) {\n RSTile player_position = Player07.getPosition();\n if (tile == null || player_position == null) {\n return false;\n }\n return tile.equals(player_position);\n }",
"protected boolean selectTile(String player, int coordinate, String area, MBproduction.buildingType build){\n String culture = null;\n boolean AIflag = false;\n boolean placeFlag = false;\n MBproduction.terrainTypeEnum selected;\n String normalizeSelected;\n /*******************************/\n player=player.toLowerCase();\n switch(player.toLowerCase()){\n case\"human\":\n culture = playBoard.humanCulture();\n break;\n case\"ai1\":\n culture = playBoard.AICulture1();\n break;\n case\"ai2\":\n culture = playBoard.AICulture2();\n break;\n default:\n break;\n }\n selected = playBoard.getIndiTerrain(coordinate);\n normalizeSelected = \n selected.toString().substring(0, selected.toString().length()-1);\n switch(culture.toLowerCase()){\n //norse\n case\"norse\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < norseProduction.size(); i ++){\n if (norseProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n norseProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n norseProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < norseCity.size(); i ++){\n if (norseCity.get(i).getIcon() == null){\n norseCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n }\n }\n break;\n default:\n break;\n }\n break;\n //greek \n case\"greek\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < greekProduction.size(); i ++){\n if (greekProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n greekProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n greekProduction.remove(i);\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected); \n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break;\n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < greekCity.size(); i ++){\n if (greekCity.get(i).getIcon() == null){\n greekCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n //egypt\n case\"egypt\":\n switch(area.toLowerCase()){\n case\"production\":\n for (int i = 0; i < egyptProduction.size(); i ++){\n if (egyptProduction.get(i).getName().equalsIgnoreCase(normalizeSelected)){\n egyptProduction.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(selected.getPath())));\n playBoard.updateProductionResourceCube(player, selected);\n playBoard.exileTerrain(selected);\n egyptProduction.remove(i);\n tileSelection.get(coordinate).setEnabled(false);\n stackAI.remove(stackAI.indexOf(coordinate));\n placeFlag = true;AIflag = true;\n break; \n }\n }\n break;\n //!!!!!!!!WARNNING!!!!!!!! NEED TO MODIFY FOR ITERATION II\n case\"city\":\n for (int i = 0; i < egyptCity.size(); i ++){\n if (egyptCity.get(i).getIcon() == null){\n egyptCity.get(i).setIcon(new javax.swing.ImageIcon(\n getClass().getResource(build.getPath())));\n placeFlag = true;\n break;\n } \n }\n break;\n default:\n break;\n }\n break;\n default:\n break;\n }\n if ((!placeFlag)&&(player.equalsIgnoreCase(\"human\"))){\n JOptionPane.showMessageDialog(\n null, \"No suitable tile for \" + player , \"Information\",\n JOptionPane.WARNING_MESSAGE);\n }\n return AIflag; \n }",
"private boolean probe(Tile tile, Direction previousDirection) {\n int currentX = tile.getPosition().getX();\n int currentY = tile.getPosition().getY();\n\n if (tile.getTerrain().equals(Terrain.EMPTY))\n return false;\n else if (currentX == 0 || currentX == MAP_WIDTH - 1 || currentY == 0 || currentY == MAP_HEIGHT - 1) {\n return true; // Check if tile hits edge wall\n } else {\n for (Direction direction : Direction.cardinals) {\n Tile targetTile = getTileAtCoordinates(Utility.locateDirection(tile.getPosition(), direction));\n if (!direction.equals(previousDirection) && targetTile.getTerrain().equals(Terrain.WALL)) {\n if (probe(targetTile, Utility.opposite(direction))) {\n tile.setTerrain(Terrain.EMPTY);\n return false;\n }\n }\n }\n return false;\n }\n }",
"public boolean checkSwitch(int row, int col){\n boolean output = false;\n Tile[] updownleftright = new Tile[4]; //Array which holds the four adjacent tiles\n if (row - 1 >= 0) updownleftright[0] = tiles[row - 1][col];\n else updownleftright[0] = nulltile;\n \n if (row + 1 < sidelength) updownleftright[1] = tiles[row + 1][col];\n else updownleftright[1] = nulltile;\n \n if (col - 1 >= 0) updownleftright[2] = tiles[row][col - 1];\n else updownleftright[2] = nulltile;\n \n if (col + 1 < sidelength) updownleftright[3] = tiles[row][col + 1];\n else updownleftright[3] = nulltile;\n \n for (int i = 0; i < 4; i ++) //Goes through the array and checks to see if any adjacent tile is the blank tile\n {\n if (updownleftright[i].getCurPic() == blankindex){\n tiles[row][col].swap(updownleftright[i]);\n return true;\n }\n }\n return false;\n }",
"public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }",
"public boolean esPared(CoordCasilla cc)\n {\n //Gdx.app.log(\"ES PARED\", \"ANalizando (\"+cc.x+\",\"+cc.y+\")\");\n \n TiledMapTileLayer.Cell casilla=( (TiledMapTileLayer)mapaActual.getLayers().get(\"PAREDES\")).getCell(cc.x,cc.y);\n if(casilla==null)\n return false;\n int idTile=casilla.getTile().getId();\n return idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_1 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_2 && idTile!=Mundo.ID_TILE_MURO_TRANSITABLE_3;\n }",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"boolean isLeaf();",
"public boolean equals(Tile tile){\n\t if(tile.getLocation().equals(location))\n\t\t return true;\n\t else\n\t\t return false;\n\t}",
"boolean isGameFinished() {\n if (tiles.takenTilesNumber() < 3)\n return false;\n Symbol winningSymbol = tiles.getTile(1);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) {\n return true;\n }\n }\n if(tiles.getTile(2).equals(winningSymbol)) {\n if(tiles.getTile(3).equals(winningSymbol)) return true;\n }\n if(tiles.getTile(4).equals(winningSymbol)) {\n if(tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n winningSymbol = tiles.getTile(2);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(8).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(3);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n if (tiles.getTile(6).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n\n\n winningSymbol = tiles.getTile(4);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(5).equals(winningSymbol)) {\n if (tiles.getTile(7).equals(winningSymbol)) return true;\n }\n }\n\n winningSymbol = tiles.getTile(7);\n if (!winningSymbol.equals(Symbol.EMPTY)) {\n if (tiles.getTile(8).equals(winningSymbol)) {\n if (tiles.getTile(9).equals(winningSymbol)) return true;\n }\n }\n return false;\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public boolean isNeighbour(Tile tile){\n int x1 = this.getX();\n int y1 = this.getY();\n\n int x2 = tile.getX();\n int y2 = tile.getY();\n return (x1 == x2 && (Math.abs(y1-y2) == 1)) || (y1 == y2 && (Math.abs(x1-x2) == 1));\n }",
"public void initTiles()\n {\n PropertiesManager props = PropertiesManager.getPropertiesManager(); \n String imgPath = props.getProperty(MahjongSolitairePropertyType.IMG_PATH);\n int spriteTypeID = 0;\n SpriteType sT;\n \n // WE'LL RENDER ALL THE TILES ON TOP OF THE BLANK TILE\n String blankTileFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_IMAGE_NAME);\n BufferedImage blankTileImage = miniGame.loadImageWithColorKey(imgPath + blankTileFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileImage(blankTileImage);\n \n // THIS IS A HIGHLIGHTED BLANK TILE FOR WHEN THE PLAYER SELECTS ONE\n String blankTileSelectedFileName = props.getProperty(MahjongSolitairePropertyType.BLANK_TILE_SELECTED_IMAGE_NAME);\n BufferedImage blankTileSelectedImage = miniGame.loadImageWithColorKey(imgPath + blankTileSelectedFileName, COLOR_KEY);\n ((MahjongSolitairePanel)(miniGame.getCanvas())).setBlankTileSelectedImage(blankTileSelectedImage);\n \n // FIRST THE TYPE A TILES, OF WHICH THERE IS ONLY ONE OF EACH\n // THIS IS ANALOGOUS TO THE SEASON TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeATiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_A_TILES);\n for (int i = 0; i < typeATiles.size(); i++)\n {\n String imgFile = imgPath + typeATiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_A_TYPE);\n spriteTypeID++;\n }\n \n // THEN THE TYPE B TILES, WHICH ALSO ONLY HAVE ONE OF EACH\n // THIS IS ANALOGOUS TO THE FLOWER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeBTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_B_TILES);\n for (int i = 0; i < typeBTiles.size(); i++)\n {\n String imgFile = imgPath + typeBTiles.get(i); \n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID);\n initTile(sT, TILE_B_TYPE);\n spriteTypeID++;\n }\n \n // AND THEN TYPE C, FOR WHICH THERE ARE 4 OF EACH \n // THIS IS ANALOGOUS TO THE CHARACTER AND NUMBER TILES IN FLAVORLESS MAHJONG\n ArrayList<String> typeCTiles = props.getPropertyOptionsList(MahjongSolitairePropertyType.TYPE_C_TILES);\n for (int i = 0; i < typeCTiles.size(); i++)\n {\n String imgFile = imgPath + typeCTiles.get(i);\n sT = initTileSpriteType(imgFile, TILE_SPRITE_TYPE_PREFIX + spriteTypeID); \n for (int j = 0; j < 4; j++)\n {\n initTile(sT, TILE_C_TYPE);\n }\n spriteTypeID++;\n }\n }",
"boolean hasLte();",
"@Test\n public void testTftile() {\n TfTile tile = new TfTile(1);\n assertEquals(R.drawable.tftile_01, tile.getBackground());\n assertEquals(1, tile.getId());\n tile.setId(11);\n assertEquals(R.drawable.tftile_11, tile.getBackground());\n }",
"public boolean tileSand(float xTile, float yTile)\r\n/* 217: */ {\r\n/* 218:241 */ return (tileInBounds(xTile, yTile)) && (this.sand[((int)xTile)][((int)yTile)] != 0);\r\n/* 219: */ }",
"public boolean isTallGrass() {\n return this.type == Type.TALL_GRASS;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"private boolean addTile(int tileRow, int tileCol, Palette.FillColor color, int width, int height) {\n\t\t\tif (tileRow + height > ROWS || tileCol + width > COLS)\n\t\t\t\treturn false;\n\t\t\t\n\t\t\t// check if another tile exists in region\n\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++) {\n\t\t\t\t\tif (m_tileMap[r][c] != '0')\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tboolean added = m_tiles.get(tileRow).add(new Board.Tile(tileCol, color, width, height));\n\t\t\tif (added) {\n\t\t\t\tfor (int r = tileRow; r < tileRow + height; r++) {\n\t\t\t\t\tfor (int c = tileCol; c < tileCol + width; c++)\n\t\t\t\t\t\tm_tileMap[r][c] = '1';\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn added;\n\t\t}",
"public boolean equals(Tile tile) {\n\t\treturn tile.getShape() == shape && tile.getColor() == color;\n\t}",
"boolean isTypeRealSprite(short type)\r\n {\r\n int oil;\r\n for (oil = 0; oil < rhPtr.rhMaxOI; oil++)\r\n {\r\n if (rhPtr.rhOiList[oil].oilOi != -1)\r\n {\r\n if (rhPtr.rhOiList[oil].oilType == type)\r\n {\r\n if ((rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_SPRITES) != 0 && (rhPtr.rhOiList[oil].oilOEFlags & CObjectCommon.OEFLAG_QUICKDISPLAY) == 0)\r\n {\r\n return true;\r\n }\r\n else\r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n }\r\n return true;\r\n }",
"public boolean hasTileEntity(IBlockState state) {\n return true;\n }",
"@Test\n public void isCollidingTestCollision(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{1,1},{1,1},{1,1},{1,1}},new byte[][]{{1,1},{1,1},{1,1},{1,1}}, tilepath);\n Rect cBox = new Rect(24,24,24,24);\n assertTrue(tileMap.isColliding(cBox));\n assertEquals(true, tileMap.isColliding(cBox));\n }",
"public boolean hasSelectedTile()\r\n\t{\r\n\t\treturn (selectedTile != null);\r\n\t}",
"public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}",
"boolean testIsTouchingILoGamePieceBullet(Tester t) {\n return t.checkExpect(bullet9.isTouching(los3), true)\n && t.checkExpect(bullet1.isTouching(los3), false)\n && t.checkExpect(bullet9.isTouching(lob3), false);\n }",
"public boolean tilePlayerPlacable(float xTile, float yTile, int player)\r\n/* 196: */ {\r\n/* 197:220 */ return (tileInBounds(xTile, yTile)) && \r\n/* 198:221 */ (getStartPositionOnTile(player, xTile, yTile));\r\n/* 199: */ }",
"public boolean tileExistAndNotMine(int row, int col) {\r\n // Bounds check\r\n if (row >= 0 && row <= (BOARD_MAX_WIDTH - 1)&& col >= 0 && col <= (BOARD_MAX_HEIGHT - 1)) {\r\n // Mine check\r\n return tiles[row][col] != TILE_MINE;\r\n } else {\r\n return false;\r\n }\r\n }",
"public boolean tileFence(float xTile, float yTile)\r\n/* 202: */ {\r\n/* 203:226 */ return (tileInBounds(xTile, yTile)) && (this.door[((int)xTile)][((int)yTile)] != 0);\r\n/* 204: */ }",
"private boolean isLeafStage(DispatchablePlanMetadata dispatchablePlanMetadata) {\n return dispatchablePlanMetadata.getScannedTables().size() == 1;\n }",
"public void updateLavaTiles() {\n for (Tile tile : getTiles()) {\n Random random = new Random();\n if (tile.getType().matches(\"BurnTile\")) {\n tile.setTexture(\"Volcano_\" + (random.nextInt(4) + 5));\n }\n }\n }",
"private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}",
"boolean testIsTouchingIGamePiece(Tester t) {\n return t.checkExpect(los2.isTouching(ship2), false)\n && t.checkExpect(los3.isTouching(bullet8), true)\n && t.checkExpect(lob2.isTouching(ship2), true)\n && t.checkExpect(lob3.isTouching(ship11), false)\n && t.checkExpect(lob3.isTouching(ship3), true)\n && t.checkExpect(mt.isTouching(ship6), false);\n }",
"private boolean legalMove() {\n\n\t\t// empty landing spot\n\t\tif (tilePath.size() == 0) {\n\t\t\tdebug(\"illegal, empty landing spot\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!mBoard.tileIsEmpty(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, tile not empty\");\n\t\t\treturn false;\n\t\t}\n\n\t\t// start doesn't equal end\n\t\tif (tilePath.get(0).equals(tilePath.get(tilePath.size() - 1))) {\n\t\t\tdebug(\"illegal, start doesn't equal end\");\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}",
"private boolean checkTileImprovementPlan(TileImprovementPlan tip) {\n return validateTileImprovementPlan(tip, getEuropeanAIPlayer());\n }",
"public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }",
"public boolean isGoal() {\n return Arrays.deepEquals(tiles, goal);\n }",
"public boolean tileReachObjectives(float xTile, float yTile)\r\n/* 122: */ {\r\n/* 123:136 */ return (!tileInBounds(xTile, yTile)) || \r\n/* 124:137 */ (this.reach[((int)xTile)][((int)yTile)] != 0);\r\n/* 125: */ }",
"abstract boolean isLeaf();"
] | [
"0.71516657",
"0.6906847",
"0.652675",
"0.6526024",
"0.641775",
"0.6383222",
"0.63409007",
"0.6324246",
"0.6315705",
"0.6298399",
"0.6268818",
"0.6231797",
"0.62259734",
"0.62087846",
"0.61895126",
"0.6176442",
"0.61615044",
"0.61570024",
"0.6110222",
"0.6023917",
"0.5993682",
"0.5985407",
"0.59610605",
"0.59581184",
"0.5941818",
"0.5934758",
"0.59284234",
"0.59279",
"0.5924773",
"0.5906437",
"0.5905489",
"0.5890419",
"0.588237",
"0.586416",
"0.5859983",
"0.58506805",
"0.5847214",
"0.5832641",
"0.5825006",
"0.58213603",
"0.58075786",
"0.5804803",
"0.57976025",
"0.57853425",
"0.57768494",
"0.5767587",
"0.5766919",
"0.5763836",
"0.5758777",
"0.575505",
"0.5738199",
"0.57207865",
"0.5716287",
"0.5714583",
"0.5712863",
"0.5701593",
"0.5698508",
"0.5688597",
"0.5687168",
"0.56791097",
"0.5678113",
"0.5658525",
"0.56547034",
"0.5652052",
"0.5642431",
"0.56368387",
"0.56368387",
"0.56368387",
"0.56368387",
"0.56246537",
"0.5622389",
"0.56186163",
"0.5610742",
"0.56098336",
"0.5606055",
"0.5600028",
"0.5588904",
"0.5575515",
"0.55712247",
"0.55705816",
"0.55564016",
"0.55525583",
"0.5540784",
"0.5530801",
"0.55234885",
"0.55189896",
"0.55093706",
"0.5491836",
"0.54909694",
"0.54907197",
"0.5488613",
"0.54856384",
"0.5485582",
"0.5476722",
"0.54755294",
"0.5465111",
"0.5461401",
"0.54590666",
"0.54561365",
"0.54552925"
] | 0.7541377 | 0 |
Method below just iterates through the list and check in the correct coordinates. i.e. Given your current position is 10,10 checkEast will check up to wallSensitivity amount of tiles to the right. checkWest will check up to wallSensitivity amount of tiles to the left. checkNorth will check up to wallSensitivity amount of tiles to the top. checkSouth will check up to wallSensitivity amount of tiles below. | public boolean checkEast(HashMap<Coordinate, MapTile> currentView){
// Check tiles to my right
Coordinate currentPosition = new Coordinate(getPosition());
for(int i = 0; i <= wallSensitivity; i++){
MapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));
if(tile.isType(MapTile.Type.WALL)){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static ArrayList<int[]> searcherTopLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t}\n\t\treturn MoveList;\n\t}",
"static ArrayList<int[]> searcherBottomRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles bottom right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"static ArrayList<int[]> searcherBottomLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid blacks piece to kill \" + j + \" tiles bottom left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"public boolean checkWest(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"private void performInsideCheck() {\n if (checkInsideDone) {\n return;\n }\n \n checkInsideDone = true;\n \n final Location playerLoc = World.getPlayer().getLocation();\n final int currX = playerLoc.getScX();\n final int currY = playerLoc.getScY();\n int currZ = playerLoc.getScZ();\n boolean nowOutside = false;\n boolean isInside = false;\n \n for (int i = 0; i < 2; ++i) {\n currZ++;\n if (isInside || parent.isMapAt(currX, currY, currZ)) {\n if (!insideStates[i]) {\n insideStates[i] = true;\n synchronized (unchecked) {\n unchecked.add(Location.getKey(currX, currY, currZ));\n }\n }\n isInside = true;\n } else {\n if (insideStates[i]) {\n insideStates[i] = false;\n nowOutside = true;\n }\n }\n }\n \n /*\n * If one of the values turned from inside to outside, all tiles are added to the list to be checked again.\n */\n if (nowOutside) {\n synchronized (unchecked) {\n unchecked.clear();\n parent.processTiles(this);\n }\n }\n \n World.getWeather().setOutside(!isInside);\n }",
"public boolean checkWest(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"protected void checkForWalls(int x, int y, ArrayList<Position> walls) {\n int x1 = x - 1;\n int x2 = x + 2;\n int y1 = y - 1;\n int y2 = y + 2;\n\n if (x == 0) // We want to avoid an OutOfBounds exception\n x1 = x;\n if (x == sizeOfFloor - 1)\n x2 = sizeOfFloor;\n if (y == 0)\n y1 = y;\n if (y == sizeOfFloor - 1)\n y2 = sizeOfFloor;\n\n\n for (int i = x1; i < x2; i++) {\n for (int j = y1; j < y2; j++) {\n if (layout[i][j].getContent() == 'a')\n walls.add(layout[i][j]);\n }\n }\n }",
"static ArrayList<int[]> searcherTopRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t \t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t// Check tiles to my right\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void checkWalls() {\n\t\tcheckSideWalls();\n\t\tcheckTopWall();\n\t\tcheckBottomWall();\n\t}",
"public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }",
"@Test\n\tpublic void eastSWC()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(20, 43);\n\t\td.set(22, 54);\n\t\td.set(26, 33);\n\t\td.set(28, 76);\n\t\td.set(30, 87);\n\t\td.set(1, 44);\n\t\td.set(2, 55);\n\t\td.set(3, 66);\n\t\td.set(4, 77);\n\t\td.set(5, 88);\n\t\td.set(19, 99);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(99);\n\t\tassertTrue(10==test_arr.get(0).getX() && 7==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 6==test_arr.get(1).getY()\n\t\t\t&& 10==test_arr.get(2).getX() && 5==test_arr.get(2).getY()\n\t\t\t&& 10==test_arr.get(3).getX() && 4==test_arr.get(3).getY()\n\t\t\t&& 10==test_arr.get(4).getX() && 3==test_arr.get(4).getY());\n\t}",
"public int check (int a){\n\t\tfor(int i= 0; i<boxes.size();i++){\t//check whether each box touches the wall\n\t\t\tbox k= boxes.get(i);\n\t\t\tif(a==1){\n\t\t\t\tint l= 0;\n\t\t\t\tif(h.getX()-20==k.getX()&&h.getY()==k.getY()){//if the player moving left then meets the box\n\t\t\t\t\titem=boxes.get(i);\n\t\t\t\t\tbox j = new box(item.getX()-20,item.getY());\n\t\t\t\t\tfor(int p=0; p<walls.size();p++){\n\t\t\t\t\t\twall o = walls.get(p);\n\t\t\t\t\t\tif(j.getX()==o.getX()&&j.getY()==o.getY()){// if the box pushed by the player collisions the wall\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int q=0;q<boxes.size();q++){\n\t\t\t\t\t\tbox w = boxes.get(q);\n\t\t\t\t\t\tif(w.getX()==j.getX()&&w.getY()==j.getY()){//check if the box meets another box\n\t\t\t\t\t\t\tl++;\t\t\t\t\t//the box will meet itself too\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(l>=1){\n\t\t\t\t\t\treturn 2;//if it meets another box\n\t\t\t\t\t}\n\t\t\t\t\tboxes.set(i, j);//change the position of the box being pushed\n\t\t\t\t\treturn 3;//the player meets only one box\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(a==2){\n\t\t\t\tint l= 0;\n\t\t\t\tif(h.getX()+20==k.getX()&&h.getY()==k.getY()){//if the player moving right then meets the box\n\t\t\t\t\titem=boxes.get(i);\n\t\t\t\t\tbox j = new box(item.getX()+20,item.getY());\n\t\t\t\t\tfor(int p=0; p<walls.size();p++){\n\t\t\t\t\t\twall o = walls.get(p);\n\t\t\t\t\t\tif(j.getX()==o.getX()&&j.getY()==o.getY()){// if the box pushed by the player collisions the wall\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int q=0;q<boxes.size();q++){\n\t\t\t\t\t\tbox w = boxes.get(q);\n\t\t\t\t\t\tif(w.getX()==j.getX()&&w.getY()==j.getY()){//check if the box meets another box\n\t\t\t\t\t\t\tl++;//the box will meet itself too\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(l>=1){\n\t\t\t\t\t\treturn 2;//if it meets another box\n\t\t\t\t\t}\n\n\t\t\t\t\tboxes.set(i, j);\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(a==3){\n\t\t\t\tint l= 0;\n\t\t\t\tif(h.getX()==k.getX()&&h.getY()-20==k.getY()){//if the player moving up then the boxes meet the wall\n\t\t\t\t\titem=boxes.get(i);\n\t\t\t\t\tbox j = new box(item.getX(),item.getY()-20);\n\t\t\t\t\tfor(int p=0; p<walls.size();p++){\n\t\t\t\t\t\twall o = walls.get(p);\n\t\t\t\t\t\tif(j.getX()==o.getX()&&j.getY()==o.getY()){\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int q=0;q<boxes.size();q++){\n\t\t\t\t\t\tbox w = boxes.get(q);\n\t\t\t\t\t\tif(w.getX()==j.getX()&&w.getY()==j.getY()){\n\t\t\t\t\t\t\tl++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(l>=1){\n\t\t\t\t\t\treturn 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tboxes.set(i, j);\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(a==4){\n\t\t\t\tint l= 0;\n\t\t\t\tif(h.getX()==k.getX()&&h.getY()+20==k.getY()){//if the player moving down then the boxes meet the wall\n\t\t\t\t\titem=boxes.get(i);\n\t\t\t\t\tbox j = new box(item.getX(),item.getY()+20);\n\t\t\t\t\tfor(int p=0; p<walls.size();p++){\n\t\t\t\t\t\twall o = walls.get(p);\n\t\t\t\t\t\tif(j.getX()==o.getX()&&j.getY()==o.getY()){\n\t\t\t\t\t\t\treturn 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tfor(int q=0;q<boxes.size();q++){\n\t\t\t\t\t\tbox w = boxes.get(q);\n\t\t\t\t\t\tif(w.getX()==j.getX()&&w.getY()==j.getY()){\n\t\t\t\t\t\t\tl++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(l>=1){\n\t\t\t\t\t\treturn 2;\n\t\t\t\t\t}\n\n\t\t\t\t\tboxes.set(i, j);\n\t\t\t\t\treturn 3;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn 0;//the player neither meets the box or the wall\n\t}",
"public boolean canMove(int forX , int forY)\n {\n\n\n int tankX = locX + width/2;\n int tankY = locY + height/2;\n\n\n for(WallMulti wall : walls)\n {\n if(wall.getType().equals(\"H\"))\n {\n\n int disStart = (wall.getX()-tankX)*(wall.getX()-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disStart<=700)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disStart)\n return false;\n }\n\n int disEnd = ((wall.getX()+wall.getLength())-tankX)*((wall.getX()+wall.getLength())-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disEnd<=1700)\n {\n int dis2 = ((wall.getX()+wall.getLength())-(tankX+forX))*((wall.getX()+wall.getLength())-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disEnd)\n return false;\n }\n\n if(tankX >= wall.getX() && tankX <= (wall.getX() + wall.getLength()))\n {\n //tank upper than wall\n if( tankY+20 < wall.getY() && wall.getY()-(tankY+40)<=20 )\n {\n if( wall.getY() <= (tankY+20 + forY) )\n {\n return false;\n }\n }\n\n //tank lower than wall\n if( (tankY-35) > wall.getY() && (tankY-35)-wall.getY()<=25 )\n {\n if( wall.getY() >= (tankY - 35 + forY) )\n {\n return false;\n }\n }\n }\n }\n\n if(wall.getType().equals(\"V\"))\n {\n\n int disStart = (wall.getX()-tankX)*(wall.getX()-tankX) + (wall.getY()-tankY)*(wall.getY()-tankY);\n if(disStart<=700)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + (wall.getY()-(tankY+forY))*(wall.getY()-(tankY+forY));\n if(dis2<disStart)\n return false;\n }\n\n int disEnd = (wall.getX()-tankX)*(wall.getX()-tankX) + ((wall.getY()+wall.getLength())-tankY)*((wall.getY()+wall.getLength())-tankY);\n if(disEnd<=3600)\n {\n int dis2 = (wall.getX()-(tankX+forX))*(wall.getX()-(tankX+forX)) + ((wall.getY()+wall.getLength())-(tankY+forY))*((wall.getY()+wall.getLength())-(tankY+forY));\n if(dis2<disEnd)\n return false;\n }\n\n\n if(tankY >= wall.getY() && tankY <= (wall.getY() + wall.getLength()))\n {\n //tank at the left side of the wall\n if( tankX+20 < wall.getX() && wall.getX()-(tankX+40)<=20 )\n {\n if( wall.getX() <= (tankX+20 + forX) )\n {\n return false;\n }\n }\n\n //tank lower than wall\n if( (tankX-35) > wall.getX() && (tankX-35)-wall.getX()<=25 )\n {\n if( wall.getX() >= (tankX - 35 + forX) )\n {\n return false;\n }\n }\n }\n }\n }\n return true;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"static int [][] checkPreventer( int[][]MultiArray,int CurrentX, int CurrentY, int[] ComXY, String CurrentTitle){\n\t\touterloop_TopLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] < 0 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\t\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block bishop's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_TopLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//top right tiles\n\t\touterloop_TopRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] < 0 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t\t}\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_TopRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the bottom left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_TopRightTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\t//bottom left tiles\n\t\touterloop_BottomLeftTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\n\t\t\tif (NewXY[0] < 0 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.2\");\n\t\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\t////System.out.println(\"Outerbreak3.3\");\n\t\t\t\tbreak outerloop_BottomLeftTiles;\n\t\t\t}\n\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t////System.out.println(\"Outerbreak3.4\");\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top right\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomLeftTiles; \n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t//bottom right tiles\n\t\touterloop_BottomRightTiles:\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif (NewXY[0] > 7 || NewXY[1] > 7 ){\n\t\t\t\t//break due to out of bounds\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < aggregateBlacksEXKing(CurrentTitle,ComXY).length ; i++) {\n\t\t\t\tint[] Coordinate = aggregateBlacksEXKing(CurrentTitle,ComXY)[i];\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int[] i: aggregateWhitesForCheck(CurrentTitle, ComXY)){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \n\t\t\t}\n\t\t\tif(Arrays.equals(NewXY,ComXY) && CurrentTitle != \"Black King (E8)\"){\n\t\t\t\t//this if statement is necessary to allow pieces to block rook's line of sight\n\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t}\n\t\t\tfor(int i = 0 ; i < MultiArray.length ; i++) {\n\t\t\t\tif(Arrays.equals(MultiArray[i], NewXY)){\n\t\t\t\t\t//System.out.println(\"White Bishop threatining check from the top left\");\n\t\t\t\t\tMultiArray[i]=null;\t\n\t\t\t\t\tbreak outerloop_BottomRightTiles;\n\t\t\t\t}\t\t \t\t\t \n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MultiArray;\n\t}",
"public static void CheckArea(double wallSize, Scene scene, Group root)\r\n\t{ //check player area\r\n\t\tfor (int a = 0; a < GenerateMaze.rows; a++){ \r\n\t\t\tfor (int b = 0; b < GenerateMaze.columns; b++){\t\t\t\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 0){ //if player is in open\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"Open\"); //debug open\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 1){ //if player is in wall\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2) && camY >=-wallSize/2){\r\n\t\t\t\t\t\tSystem.out.println(\"Wall\");//debug wall\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tCollision.Collide(GameController.camera, wallSize, b, a, false);\r\n\t\t\t\t\t\tSystem.out.println(\"Wall Collided at: \" + b + \", \" + a);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 3){ //if player is at start\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Start\");//debug start\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif (GenerateMaze.maze[a][b] == 9){ //if player is at finish\r\n\t\t\t\t\tif (camX >= (a*wallSize) - (wallSize/2) && camX <= (a*wallSize) + (wallSize/2)\r\n\t\t\t\t\t\t\t&& camZ >= (b*wallSize) - (wallSize/2) && camZ <= (b*wallSize) + (wallSize/2)){\r\n\t\t\t\t\t\tSystem.out.println(\"At Finish, maze completed!\");//debug finish\r\n\t\t\t\t\t\t//set record of positions\r\n\t\t\t\t\t\tlocX = b;\r\n\t\t\t\t\t\tlocY = a;\r\n\t\t\t\t\t\tif (lastLocX != locX) lastLocX = locX;\r\n\t\t\t\t\t\tif (lastLocY != locY) lastLocY = locY;\r\n\t\t\t\t\t\tFinished = true; //set finish to true\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (camX < 0 && camZ < 0) {\r\n\t\t\tSystem.out.println(\"Player isn't even on map\"); //debug player isn't on map\r\n\t\t}\r\n\t\telse{\r\n\t\t\tSystem.out.println(\"Current location: \" + locX + \", \" + locY + \". \"\r\n\t\t\t\t\t+ \"Last Recorded Position: \" + lastLocX + \", \" + lastLocY); //debug player current position in maze\r\n\t\t}\r\n\t}",
"public boolean checkWallCollision(){\r\n\t\tint x;\r\n\t\tint y;\r\n\t\t\r\n\t\tif(pacman.direction.equals(\"up\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y > 0){\r\n\t\t\t\tif(colours[x][y-1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"down\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(y < colours[0].length-1){\r\n\t\t\t\tif(colours[x][y+1].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"left\")){\r\n\t\t\tx = (int) Math.ceil((pacman.xpos-interval)/(interval+0.00));\r\n\t\t\ty = (int) Math.ceil((pacman.ypos-interval)/(interval+0.00));\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x > 0){\r\n\t\t\t\tif(colours[x-1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(pacman.direction.equals(\"right\")){\r\n\t\t\tx = (pacman.xpos-interval)/interval;\r\n\t\t\ty = (pacman.ypos-interval)/interval;\r\n\t\t\t//System.out.println(\"x:\"+x+\" y:\"+y);\r\n\t\t\tif(x < colours.length-1){\r\n\t\t\t\tif(colours[x+1][y].equals(\"0,255,0\")){\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\t\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public ArrayList<Coordinate> getPossibleMoveCoordinate() {\n ChessBoard board = this.getChessBoard(); // get chess board\n ArrayList<Coordinate> coords = new ArrayList<Coordinate>(); // create return ArrayList\n int x, y;\n /*\n several cases\n 2 3\n 1 4\n\n 5 8\n 6 7\n\n */\n // case1\n x = this.x_coordinate - 2;\n y = this.y_coordinate + 1;\n if(x >= 0 && y < board.getHeight()){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case2\n x = this.x_coordinate - 1;\n y = this.y_coordinate + 2;\n if(x >= 0 && y < board.getHeight()){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case3\n x = this.x_coordinate + 1;\n y = this.y_coordinate + 2;\n if(x < board.getWidth() && y < board.getHeight()){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case4\n x = this.x_coordinate + 2;\n y = this.y_coordinate + 1;\n if(x < board.getWidth() && y < board.getHeight()){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case5\n x = this.x_coordinate - 2;\n y = this.y_coordinate - 1;\n if(x >= 0 && y >= 0 ){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case6\n x = this.x_coordinate - 1;\n y = this.y_coordinate - 2;\n if(x >= 0 && y >= 0){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case7\n x = this.x_coordinate + 1;\n y = this.y_coordinate - 2;\n if(x < board.getWidth() && y >= 0){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n // case1\n x = this.x_coordinate + 2;\n y = this.y_coordinate - 1;\n if(x < board.getWidth() && y >= 0){\n addToCoordinatesIfValid(coords, x, y); // add to coords if the piece can move to that coordinate\n }\n\n\n return coords;\n }",
"public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public static void checkSnitchArea(String world, int x, int y, int z, ArrayList<Snitch> snitchList, boolean removeSnitch) {\n\t\ttry {\n\t\t\tsearchChecks = 0l;\n\t\t\t\n\t\t\tint min = 0;\n\t\t\tfindLowerLimit(Search.WORLD, world, 0, snitchList.size() - 1, snitchList);\n\t\t\tint max = snitchList.size()-1;\n\t\t\tfindUpperLimit(Search.WORLD, world, min, snitchList.size() - 1, snitchList);\n\t\t\tfor (Search k : Search.values()) {\n\t\t\t\tmin = findLowerLimit(k, k == Search.WORLD ? world : k == Search.X ? x: z, min, max, snitchList);\n\t\t\t\tif (max < min) return;\n\t\t\t\tmax = findUpperLimit(k, k == Search.WORLD ? world : k == Search.X ? x: z, min, max, snitchList);\n\t\t\t\tif (max < min) return;\n\t\t\t\tif (max - min <= 1) break;\n\t\t\t}\n\t\t\t\n\t\t\tlogger.info(\"Performed \" + searchChecks + \" checks -- final bounds: \" + min + \", \" + max);\n\t\t\tlogger.info(\"Total snitches: \" + snitchList.size() + \" -- searched \" +\n\t\t\t\t\t\tMath.round(((double)(searchChecks + max-min+1) / (double)snitchList.size()) * 10000.0d)/100.0d + \"% of total\");\n\t\n\t\t\tint index = -1;\n\t\t\tdouble sqDistance = Double.MAX_VALUE;\n\t\n\t\t\tfor (int i = min; i <= max; i++) {\n\t\t\t\tSnitch n = snitchList.get(i);\n\t\t\t\tif (n.contains(world, x, y, z)) {\n\t\t\t\t\t// Get closest snitch\n\t\t\t\t\tdouble temp = Minecraft.getMinecraft().thePlayer.getDistanceSq(n.getX(), n.getY(), n.getZ());\n\t\t\t\t\tif (temp < sqDistance) {\n\t\t\t\t\t\tsqDistance = temp;\n\t\t\t\t\t\tindex = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\tif (index != -1) {\n\t\t\t\tsnitchIndex = index;\n\t\t\t\tSnitch n = SV.instance.snitchList.get(index);\n\n\t\t\t\t//Only refresh the cull time if cull time is turned on\n\t\t\t\t//(Having a null raw cull time means its turned off)\n\t\t\t\tif(n.getRawCullTime() != null)\n\t\t\t\t\tn.setRawCullTime(Snitch.changeToDate(672.0));\n\n\t\t\t\tplayerIsInSnitchArea = true;\n\t\t\t\tupdateSnitchName = false;\n\t\t\t\tif (removeSnitch) {\n\t\t\t\t\tSV.instance.snitchList.remove(index);\n\t\t\t\t\tlogger.info(\"Snitch Removed!\");\n\t\t\t\t\tMinecraft.getMinecraft().thePlayer.addChatMessage(new ChatComponentText(\"[\" + SV.MODNAME\n\t\t\t\t\t\t\t+ \"] You have just deleted a Snitch!\"));\n\t\t\t\t} else if (n.getName().equals(\"Unknown\")) {\n\t\t\t\t\tupdateSnitchName = true;\n\t\t\t\t}\n\t\t\t} else if (playerIsInSnitchArea) {\n\t\t\t\tplayerIsInSnitchArea = false;\n\t\t\t\tupdateSnitchName = false;\n\t\t\t\tsnitchIndex = -1;\n\t\t\t\tSVFileIOHandler.saveList();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Failure while checking snitch area!\", e);\n\t\t}\n\t}",
"@Test\n\tpublic void upperLeft1SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 12);\n\t\td.set(1, 23);\n\t\td.set(13, 13);\n\t\td.set(14, 24);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(34);\n\t\tassertTrue(0==test_arr.get(0).getX() && 2==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 1==test_arr.get(1).getY());\n\t}",
"public void scatter(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n final int MAXTILE = 160;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - SCATTERX,2) + Math.pow(yPos - SCATTERY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos-20) - SCATTERY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - SCATTERX,2) + Math.pow((yPos+20) - SCATTERY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos -5;\r\n }\r\n\r\n }",
"public void startGameState(){\n\n ArrayList<Integer> checkeredSpaces = new ArrayList<Integer>(Arrays.asList(1, 3, 5, 7, 8, 10, 12, 14, 17, 19, 21,\n 23, 24, 26, 28, 30, 33, 35, 37, 39, 41, 42, 44, 46, 48,\n 51, 53, 55, 56, 58, 60, 62));\n\n\n\n for(int i =0; i < 63; i++){\n if(!checkeredSpaces.contains(i)){\n //set all black spaces to null on the board\n mCheckerBoard.add(null);\n }\n else if(i < 24){\n //set first three rows to red checkers\n mCheckerBoard.add(new Checker((i/2), true));\n }\n else if(i < 40){\n //set middle two rows to null\n mCheckerBoard.add(null);\n }\n else{\n //set top three row to black checkers\n mCheckerBoard.add(new Checker((i/2), false));\n }\n }\n\n }",
"public Boolean check(int x, int y, String direction, int points) {\r\n\t\tBoolean canPlace = true;\r\n\t\tif (direction.equals(\"horizontal\")) {\r\n\t\t\tif ((y + points) < 11) {\r\n\t\t\t\tfor (int j = 0; j < points; j++) {\r\n\t\t\t\t\tif (randomGrid[x][y + j] != 0 || adjacentShipCheck(x, y + j))\r\n\t\t\t\t\t\tcanPlace = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (int j = 0; j < points; j++) {\r\n\t\t\t\t\tif (randomGrid[x][y - j] != 0 || adjacentShipCheck(x, y - j))\r\n\t\t\t\t\t\tcanPlace = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\r\n\t\t\tif ((x + points) < 9) {\r\n\t\t\t\tfor (int j = 0; j < points; j++) {\r\n\t\t\t\t\tif (randomGrid[x + j][y] != 0 || adjacentShipCheck(x + j, y))\r\n\t\t\t\t\t\tcanPlace = false;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (int j = 0; j < points; j++) {\r\n\t\t\t\t\tif (randomGrid[x - j][y] != 0 || adjacentShipCheck(x - j, y))\r\n\t\t\t\t\t\tcanPlace = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn canPlace;\r\n\r\n\t}",
"public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tint mapIndex = getFloorIndexByName(mMyLocationFloor);\n\t\t\tif (mapIndex > -1) {\n\t\t\t\tsetCheckAt(mapIndex);\n\t\t\t}\n\t\t}",
"private ArrayList<Move> whiteKing(){\n // obtain current co-ordinates\n int x = this.getX();\n int y = this.getY();\n\n // otherwise create a new vector to store legal whiteMoves\n ArrayList<Move> whiteMoves = new ArrayList<Move>();\n\n // set up m to refer to a Move object\n Move theMove = null;\n\n // first legal move is to go from x,y to x,y+1\n if (validNormalMove(x, y + 1)) {\n theMove = new Move(this, x, y, x, y + 1, false);\n if(takeOverCheck(x, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n // legal move is to go from x,y to x,y-1 if x,y-1 is unoccupied (bottom)\n if (validNormalMove(x, y - 1)) {\n theMove = new Move(this, x, y, x, y - 1, false);\n if(takeOverCheck(x, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //left\n // legal move to go left from x,y to x-1, y if x-1,y is unoccupied (left)\n\n if (validNormalMove(x-1, y)) {\n theMove = new Move(this, x, y, x-1, y, false);\n if(takeOverCheck(x-1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n //right\n // legal move to go right from x,y to x+1, y if x+1,y is unoccupied (right)\n\n if (validNormalMove(x+1, y)) {\n theMove = new Move(this, x, y, x+1, y, false);\n\n if(takeOverCheck(x+1, y)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n // legal move to diagonal top right for white king\n if (validNormalMove(x+1, y + 1)) {\n theMove = new Move(this, x, y, x+1, y + 1, false);\n if(takeOverCheck(x+1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom right\n\n if (validNormalMove(x+1, y -1)) {\n theMove = new Move(this, x, y, x+1, y - 1, false);\n if(takeOverCheck(x+1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal bottom left\n if (validNormalMove(x-1, y -1)) {\n theMove = new Move(this, x, y, x-1, y - 1, false);\n if(takeOverCheck(x-1, y-1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n // legal move to diagonal top left\n if (validNormalMove(x-1, y+1)) {\n theMove = new Move(this, x, y, x-1, y + 1, false);\n if(takeOverCheck(x-1, y+1)){\n theMove.setOccupied(true);\n }\n whiteMoves.add(theMove);\n }\n\n\n\n if (whiteMoves.isEmpty())\n return null;\n return whiteMoves;\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"@Test\n\tpublic void westSWC()\n\t{\n\t\t\n\t\tData d = new Data();\n\t\td.set(19, 35);\n\t\td.set(21, 46);\n\t\td.set(23, 89);\n\t\td.set(27, 68);\n\t\td.set(29, 79);\n\t\td.set(1, 34);\n\t\td.set(2, 45);\n\t\td.set(3, 56);\n\t\td.set(4, 67);\n\t\td.set(5, 78);\n\t\td.set(31, 23);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(23);\n\t\tassertTrue(0==test_arr.get(0).getX() && 3==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 4==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 5==test_arr.get(2).getY()\n\t\t\t&& 0==test_arr.get(3).getX() && 6==test_arr.get(3).getY()\n\t\t\t&& 0==test_arr.get(4).getX() && 7==test_arr.get(4).getY());\n\t}",
"public List<Move> validMoves(){\n List<Move> results = new LinkedList<>();\n int kingVal = turn == WHITE ? WHITE_KING : BLACK_KING;\n int kingX = 0, kingY = 0;\n List<Piece> checks = null;\n kingSearch:\n for (int y = 0; y < 8; y++){\n for (int x = 0; x < 8; x++){\n if (board[y][x] == kingVal){\n kingX = x;\n kingY = y;\n checks = inCheck(x,y);\n break kingSearch;\n }\n }\n }\n if (checks.size() > 1){ // must move king\n for (int x = -1; x < 2; x++){\n for (int y = -1; y < 2; y++){\n if (kingX+x >= 0 && kingX + x < 8 && kingY+y >= 0 && kingY+y < 8){\n int val = board[kingY+y][kingX+x];\n if (val == 0 || turn == WHITE && val > WHITE_KING || turn == BLACK && val < BLACK_PAWN){\n // may still be a move into check, must test at end\n results.add(new Move(kingVal, kingX, kingY, kingX+x, kingY+y, val, 0, this));\n }\n }\n }\n }\n } else { // could be in check TODO: split into case of single check and none, identify pin/capture lines\n int queen = turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN;\n int knight = turn == WHITE ? WHITE_KNIGHT : BLACK_KNIGHT;\n int rook = turn == WHITE ? WHITE_ROOK : BLACK_ROOK;\n int bishop = turn == WHITE ? WHITE_BISHOP : BLACK_BISHOP;\n for (int y = 0; y < 8; y++) {\n for (int x = 0; x < 8; x++) {\n int piece = board[y][x];\n if (piece == (turn == WHITE ? WHITE_PAWN : BLACK_PAWN)) { // pawns\n // regular | 2 move\n if (board[y+turn][x] == 0){\n if (y+turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x, y + turn, 0, queen, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, knight, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, rook, this));\n results.add(new Move(piece, x, y, x, y + turn, 0, bishop, this));\n }\n else {\n results.add(new Move(piece, x, y, x, y + turn, 0, 0, this));\n if ((y == (turn == WHITE ? 1 : 6)) && board[y + 2 * turn][x] == 0) { // initial 2 move\n results.add(new Move(piece, x, y, x, y + 2*turn, 0, 0, this));\n }\n }\n }\n // capture\n for (int dx = -1; dx <= 1; dx += 2){\n if (x + dx >= 0 && x + dx < 8) {\n int val = board[y+turn][x+dx];\n if (val > 0 && (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n if (y + turn == 0 || y + turn == 7){ // promotion\n results.add(new Move(piece, x, y, x+dx, y + turn, val, queen, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, knight, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, rook, this));\n results.add(new Move(piece, x, y, x+dx, y + turn, val, bishop, this));\n } else {\n results.add(new Move(piece, x, y, x+dx, y + turn, val, 0, this));\n }\n }\n if (val == 0 && y == (turn == WHITE ? 4 : 3) && x+dx == enPassant){ // en passant\n results.add(new Move(piece, x, y, x+dx, y + turn, 0, 0, this));\n }\n }\n }\n\n } else if (piece == knight) { // knights TODO: lookup table\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -2; dy <= 2; dy += 4){\n if (x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n if (x+dy >= 0 && x + dy < 8 && y + dx >= 0 && y + dx < 8){\n int val = board[y+dx][x+dy];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dy,y+dx,val,0,this));\n }\n }\n }\n }\n } else if (piece == bishop) { // bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == rook) { // rooks\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_QUEEN : BLACK_QUEEN)) { // queens\n // Diagonals - same as bishops\n for (int dx = -1; dx <= 1; dx += 2){\n for (int dy = -1; dy <= 1; dy += 2){\n int i = 1;\n while (x + dx*i >= 0 && x + dx*i < 8 && y + dy*i >= 0 && y + dy*i < 8){\n int val = board[y+dy*i][x+dx*i];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i,y+dy*i,val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n for (int dx = -1; dx <= 1; dx+= 2){\n for (int ax = 0; ax < 2; ax++){\n int i = 1;\n while (ax==0 ? y+dx*i >= 0 && y+dx*i < 8 : x+dx*i >= 0 && x+dx*i < 8){\n int val = board[y+dx*i*(1-ax)][x+dx*i*ax];\n if (val == 0){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n } else {\n if (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN){\n results.add(new Move(piece,x,y,x+dx*i*ax,y+dx*i*(1-ax),val,0,this));\n }\n break;\n }\n i++;\n }\n }\n }\n } else if (piece == (turn == WHITE ? WHITE_KING : BLACK_KING)) { // king\n for (int dx = -1; dx < 2; dx++){\n for (int dy = -1; dy < 2; dy++){\n if ((dx != 0 || dy != 0) && x+dx >= 0 && x + dx < 8 && y + dy >= 0 && y + dy < 8){\n int val = board[y+dy][x+dx];\n if (val == 0 || (turn == WHITE ? val > WHITE_KING : val < BLACK_PAWN)){\n results.add(new Move(piece,x,y,x+dx,y+dy,val,0,this));\n }\n }\n }\n }\n }\n }\n }\n // castle\n if (checks.size() == 0){\n if (turn == WHITE && (castles & 0b11) != 0){//(castles[0] || castles[1])){\n board[0][4] = 0; // remove king to avoid check test collisions with extra king\n if ((castles & WHITE_SHORT) != 0 && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n //if (castles[0] && board[0][5] == 0 && board[0][6] == 0 && inCheck(5,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 6, 0, 0, 0, this));\n }\n if ((castles & WHITE_LONG) != 0 && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 &&\n inCheck(3,0).size() == 0){\n //if (castles[1] && board[0][1] == 0 && board[0][2] == 0 && board[0][3] == 0 && inCheck(3,0).size() == 0){\n results.add(new Move(WHITE_KING, 4, 0, 2, 0, 0, 0, this));\n }\n board[0][4] = WHITE_KING;\n }else if (turn == BLACK && (castles & 0b1100) != 0){//(castles[2] || castles[3])) {\n board[7][4] = 0; // remove king to avoid check test collisions with extra king\n //if (castles[2] && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n if ((castles & BLACK_SHORT) != 0 && board[7][5] == 0 && board[7][6] == 0 && inCheck(5, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 6, 7, 0, 0, this));\n }\n //if (castles[3] && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 && inCheck(3, 7).size() == 0) {\n if ((castles & BLACK_LONG) != 0 && board[7][1] == 0 && board[7][2] == 0 && board[7][3] == 0 &&\n inCheck(3, 7).size() == 0) {\n results.add(new Move(BLACK_KING, 4, 7, 2, 7, 0, 0, this));\n }\n board[7][4] = BLACK_KING;\n }\n }\n }\n List<Move> fullLegal = new LinkedList<>();\n for (Move m : results){\n makeMove(m);\n turn = -turn;\n if (m.piece == WHITE_KING || m.piece == BLACK_KING){\n if (inCheck(m.toX,m.toY).size() == 0){\n fullLegal.add(m);\n }\n }else if (inCheck(kingX,kingY).size() == 0){\n fullLegal.add(m);\n }\n turn = -turn;\n undoMove(m);\n }\n Collections.sort(fullLegal, (o1, o2) -> o2.score - o1.score); // greatest score treated as least so appears first\n return fullLegal;\n }",
"public void findValidMoveDirections(){\n\t\t\n\t\tif(currentTile == 2 && (tileRotation == 0 || tileRotation == 180)){ // in vertical I configuration\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: T E,W: F\");\n\t\t}\n\t\telse if(currentTile == 2 && (tileRotation == 90 || tileRotation == 270)){ // in horizontal I configuration\n\t\t\tcanMoveNorth = false; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S: F E,W: T\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 3 && tileRotation == 0){ // L rotated 0 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,E: T S,W: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 90){ // L rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W: T S,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 180){ // L rotated 180 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W: T N,E: F\");\n\t\t}\n\t\telse if(currentTile == 3 && tileRotation == 270){ // L rotated 270 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,E: T N,W: F\");\n\t\t}\n\t\t\n\t\t\n\t\telse if(currentTile == 4 && tileRotation == 0){ // T rotated 0 degrees\n\t\t\tcanMoveNorth = false; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" S,W,E: T N: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 90){ // T rotated 90 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = false;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,E: T W: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 180){ // T rotated 180 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = false;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,W,E: T S: F\");\n\t\t}\n\t\telse if(currentTile == 4 && tileRotation == 270){ // T rotated 270 degrees\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = false; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W: T E: F\");\n\t\t}\n\t\telse if(currentTile == 5){ //in plus tile\n\t\t\tcanMoveNorth = true; canMoveSouth = true;\n\t\t\tcanMoveEast = true; canMoveWest = true;\n//\t\t\tSystem.out.println(\"Current Tile: \" + currentTile + \" Rotatation: \" + tileRotation +\n//\t\t\t\t\t\" N,S,W,E: T\");\n\t\t}\n\t\t\n\t}",
"@Test\n\tpublic void upperLeft2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 2);\n\t\td.set(1, 3);\n\t\td.set(2, 4);\n\t\td.set(13, 13);\n\t\td.set(15, 14);\n\t\td.set(16, 15);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(5);\n\t\tassertTrue(3==test_arr.get(0).getX() && 0==test_arr.get(0).getY()\n\t\t\t&& 2==test_arr.get(1).getX() && 0==test_arr.get(1).getY()\n\t\t\t&& 1==test_arr.get(2).getX() && 0==test_arr.get(2).getY());\n\t}",
"private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }",
"public static void searchAlgortihm(int x, int y)\n\t{\n\t\tint dx = x;\n\t\tint dy = y;\n\t\tint numMovements = 1; // variable to indicate the distance from the user\n\t\t\n\t\t//check starting position\n\t\tcheckLocation(dx,dy, x, y);\n\n\t\tint minCoords = MAX_COORDS;\n\t\tminCoords *= -1; // max negative value of the grid\n\n\t\t// while - will search through all coordinates until it finds 5 events \n\t\twhile(numMovements < (MAX_COORDS*2)+2 && (closestEvents.size() < 5))\n\t\t{\n\t\t\t//first loop - \n\t\t\tfor(int i = 1; i <= 4; i++)\n\t\t\t{\n\t\t\t\tif(i == 1){ // // moving south-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j-x;\n\t\t\t\t\t\tdx *= -1; // reverse sign\n\t\t\t\t\t\tdy = (numMovements-j)+y;\n\t\t\t\t\t\tif((dx >= minCoords) && (dy <= MAX_COORDS)) // only check the coordinates if they are on the grid\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"1 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 2){ // moving south-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)-x;\n\t\t\t\t\t\tdx *= -1; // change sign\n\t\t\t\t\t\tdy = j-y; \n\t\t\t\t\t\tdy *= -1; // change sign\n\t\t\t\t\t\tif((dx >= minCoords) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"2 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 3){ // moving north-east\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = j+x;\n\t\t\t\t\t\tdy = (numMovements-j)-y;\n\t\t\t\t\t\tdy *= -1;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy >= minCoords))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"3 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}else if(i == 4){ // moving north-west\n\t\t\t\t\tfor(int j = 0; j < numMovements; j++){\n\t\t\t\t\t\tdx = (numMovements-j)+x;\n\t\t\t\t\t\tdy = j+y;\n\t\t\t\t\t\tif((dx <= MAX_COORDS) && (dy <= MAX_COORDS))\n\t\t\t\t\t\t\tcheckLocation(dx, dy, x, y);\n\t\t\t\t\t\t/*else\n\t\t\t\t\t\t\tSystem.out.println(\"4 out of bounds - \" + dx + \",\" + dy);*/\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\n\t\t\t// increment the number of movements, from user coordinate\n\t\t\tnumMovements++;\n\n\t\t} // End of while\n\t}",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\tswitch(orientation){\n\t\tcase EAST:\n\t\t\treturn checkEast(currentView);\n\t\tcase NORTH:\n\t\t\treturn checkNorth(currentView);\n\t\tcase SOUTH:\n\t\t\treturn checkSouth(currentView);\n\t\tcase WEST:\n\t\t\treturn checkWest(currentView);\n\t\tdefault:\n\t\t\treturn false;\n\t\t\n\t\t}\n\t}",
"private boolean checkWallAhead(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public boolean checkWin(int x, int y, int player)\n {\n int[][] area = new int[REGION_SIZE][REGION_SIZE];\n // Copy region of board to do win checking\n for (int i = REGION_START; i <= REGION_STOP; i++) {\n for (int j = REGION_START; j <= REGION_STOP; j++) {\n area[i - REGION_START][j - REGION_START] = getTile(x + i, y + j);\n }\n }\n \n //Check Horizontal\n int count = 0;\n for (int i = 0; i < REGION_SIZE; i++) {\n if (area[4][i] == player) {\n count++;\n } else {\n count = 0;\n }\n if (count == 5) {\n return true;\n }\n }\n //Check Vertical\n count = 0;\n for (int i = 0; i < REGION_SIZE; i++) {\n if (area[i][4] == player) {\n count++;\n } else {\n count = 0;\n }\n if (count == 5) {\n return true;\n }\n }\n //Check Diagonal '/'\n count = 0;\n for (int i = 0; i < REGION_SIZE; i++) {\n if (area[REGION_SIZE - 1 - i][i] == player) {\n count++;\n } else {\n count = 0;\n }\n if (count == 5) {\n return true;\n }\n }\n //Check Diagonal '\\'\n count = 0;\n for (int i = 0; i < REGION_SIZE; i++) {\n if (area[i][i] == player) {\n count++;\n } else {\n count = 0;\n }\n if (count == 5) {\n return true;\n }\n }\n return false;\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public boolean isApplicable(int xCells, int yCells, int tileSize)\n{\n //int actualXCells = m.getOutputImageManager().getMosaic().getFlipH().length;\n //int actualYCells = m.getOutputImageManager().getMosaic().getFlipH()[0].length;\n \n int actualTileSize = (int)cp5.getController(\"sizeOfTiles\").getValue();\n boolean isThereMatch = false;\n \n int actualXCells;\n int actualYCells;\n \n for(int i = 1; i < cp5.getController(\"sizeOfTiles\").getMax()+1; i++)\n {\n actualXCells = (m.getOutputImageManager().getMosaic().getXCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getW()*i)+3;\n actualYCells = (m.getOutputImageManager().getMosaic().getYCanvasSize())/(m.getOutputImageManager().getMosaic().getTiles()[0].getH()*i);\n if(xCells == actualXCells && yCells == actualYCells)\n isThereMatch = true;\n //println(xCells, yCells, i);\n //println(actualXCells,actualYCells, actualTileSize);\n //println(\"\");\n }\n return isThereMatch;\n}",
"@Test\n\tpublic void kingSWC() \n\t{\n\t\tData d = new Data();\n\t\td.set(19, 35);\n\t\td.set(21, 46);\n\t\td.set(23, 89);\n\t\td.set(27, 68);\n\t\td.set(29, 79);\n\t\td.set(0, 34);\n\t\td.set(2, 45);\n\t\td.set(3, 56);\n\t\td.set(4, 67);\n\t\td.set(5, 78);\n\t\td.set(31, 23);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(23);\n\t\tassertTrue(0==test_arr.get(0).getX() && 4==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 5==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 6==test_arr.get(2).getY()\n\t\t\t&& 0==test_arr.get(3).getX() && 7==test_arr.get(3).getY());\n\t}",
"@Test\n public void testGetPawnPositionsAround() {\n assertNotNull(this.board.getPawnPositionsAround(Pawn.ZEN));\n assertNotNull(this.board.getPawnPositionsAround(Pawn.RED));\n assertNotNull(this.board.getPawnPositionsAround(Pawn.RED));\n }",
"@Test\n\tpublic void upperRight1SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 22);\n\t\td.set(1, 33);\n\t\td.set(13, 21);\n\t\td.set(14, 32);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(44);\n\t\tassertTrue(10==test_arr.get(0).getX() && 2==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 1==test_arr.get(1).getY());\n\t}",
"private boolean checkSurroundedByWalls(int x, int y) {\n \n int neighborsCount = 0;\n \n if (x > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x - 1, y) &&\n gameboard.getObjectAtSquare(x - 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (x < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x + 1, y) &&\n gameboard.getObjectAtSquare(x + 1, y, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y > 0) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y - 1) &&\n gameboard.getObjectAtSquare(x, y - 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n if (y < gameboard.getSize()) {\n \n if (!gameboard.checkIfSquareIsEmpty(x, y + 1) &&\n gameboard.getObjectAtSquare(x, y + 1, 0).isType(\"wall\")){\n \n neighborsCount++;\n \n }\n \n }\n \n return neighborsCount == 4;\n \n }",
"private boolean check(boolean isWhite) {\n Tile kingTile = null;\n ArrayList<Position> opponentMoves = new ArrayList<>();\n // find king's tile and populate opponent moves\n for (Tile[] t : this.board) {\n for (Tile tile : t) {\n if (tile.piece instanceof King && tile.piece.isWhite() == isWhite) {\n kingTile = tile;\n }\n if (tile.hasPiece && tile.piece.isWhite() != isWhite) {\n for(Position move : tile.piece.getLegalMoves()) opponentMoves.add(move);\n }\n }\n }\n // compare every position with king's position\n for (Position opponentMove : opponentMoves) {\n if (opponentMove.equals(kingTile.position)) {\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void lowerRight2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 99);\n\t\td.set(1, 110);\n\t\td.set(13, 98);\n\t\td.set(14, 109);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(88);\n\t\tassertTrue(10==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\t}",
"public boolean kingCheck(ArrayList<Piece> pieces) {\r\n boolean check = false;\r\n int[] kingCoords = new int[]{this.getX(), this.getY()};\r\n\r\n for (Piece piece : pieces) {\r\n if (piece.getColor() != this.getColor()) { // If the color does not match the king's color...\r\n for (int[] coordinate : piece.range) {\r\n if (coordinate[0] == kingCoords[0] && coordinate[1] == kingCoords[1]) { // Checks to see if the king is in range of enemy pieces\r\n check = true;\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n return check;\r\n }",
"private void checkEdges() {\n\n //Check for alive cells on right hand side\n for (int y = 0; y < height; y++) {\n if (getCell(this.width - 1, y).isAlive()) {\n grid = increaseWidthRight(grid);\n break;\n }\n }\n\n //Check for alive cells on left side\n for (int y = 0; y < height; y++) {\n if (getCell(0, y).isAlive()) {\n grid = increaseWidthLeft(grid);\n break;\n }\n }\n\n // Check for alive cells at bottom\n for (int x = 0; x < width; x++) {\n if (getCell(x, this.height - 1).isAlive()) {\n grid = increaseHeightBottom(grid);\n break;\n }\n }\n\n //Check for alive cells at top\n for (int x = 0; x < width; x++) {\n if (getCell(x, 0).isAlive()) {\n grid = increaseHeightTop(grid);\n break;\n }\n }\n\n }",
"public void checkAll() {\n for (int i = 0; i < size * size; i++) {\r\n if (flowGrid[i]!=size*size) {\r\n if ((flowGrid[i] != flowGrid[flowGrid[i]]) || i != flowGrid[i]) {\r\n flowGrid[i] = flowGrid[flowGrid[i]];\r\n if (flowGrid[i] < size) {\r\n grid[i / size][i % size] = 2;\r\n }\r\n }\r\n }\r\n }\r\n\r\n }",
"public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }",
"@Test\n public void runContinuousTestCornerAlive() throws Exception {\n Cell[][] f = new Cell[15][15];\n\n /*\n Pattern of starting grid:\n XX...\n X....\n .....\n .....\n .....\n */\n for (int i = 0; i < f.length; i++) {\n for (int j = 0; j < f[i].length; j++) {\n if ((i == 0 && (j == 0 || j == 1)) || (i == 1 && j == 0)) {\n f[i][j] = new Cell(true);\n } else {\n f[i][j] = new Cell(false);\n }\n }\n }\n mainPanel.setCells(f);\n final ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(2);\n executor.schedule(new Runnable() {\n @Override\n public void run() {\n mainPanel.stop();\n }\n }, 2, TimeUnit.SECONDS);\n mainPanel.runContinuous();\n\n /*\n Pattern of resulting grid:\n XX...\n XX...\n .....\n .....\n .....\n */\n boolean[][] c = mainPanel.convertToBoolean(mainPanel.getCells());\n for (int i = 0; i < c.length; i++) {\n for (int j = 0; j < c[i].length; j++) {\n if ((i == 0 && (j == 0 || j == 1)) || (i == 1 && (j == 0 || j == 1))) {\n if (!c[i][j]) {\n fail();\n }\n } else if (c[i][j]) {\n fail();\n }\n }\n }\n }",
"@Test\n\tpublic void lowerRight1SWCSpecial()\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 99);\n\t\td.set(1, 110);\n\t\td.set(13, 98);\n\t\td.set(14, 109);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(88);\n\t\tassertTrue(10==test_arr.get(0).getX() && 8==test_arr.get(0).getY()\n\t\t\t&& 10==test_arr.get(1).getX() && 9==test_arr.get(1).getY());\n\t}",
"public boolean checkSight() {\r\n\t\tint x = (int) (creature.getXlocation()/Tile.TILEWIDTH);\r\n\t\tint y = (int) (creature.getYlocation()/Tile.TILEHEIGHT);\r\n\t\t//Facing Left\r\n\t\tif (creature.getLastDirection() == 1) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y)) {\r\n\t\t\t\treturn true; \r\n\t\t\t}else if (!checkCollision(x-1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y)) {\r\n\t\t\t\t\treturn true; \r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Right\r\n\t\t}else if (creature.getLastDirection() == 3) {\r\n\t\t\tif (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-1)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tif (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Up\r\n\t\t}else if (creature.getLastDirection() == 0) {\r\n\t\t\tif (checkSeesPlayer(x-1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y-1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y-1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else if (checkSeesPlayer(x+2, y-2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t//Facing Down\r\n\t\t}else if (creature.getLastDirection() == 2) {\r\n\t\t\tif (checkSeesPlayer(x-1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x-1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x-1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x-2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}else if (checkSeesPlayer(x+1, y+1)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}else if (!checkCollision(x+1, y+1)) {\r\n\t\t\t\tif (checkSeesPlayer(x+1, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}else if (checkSeesPlayer(x+2, y+2)) {\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public void activateWallLasers(ArrayList<Vector2> wallLaserList) {\n for (Vector2 pos : wallLaserList) {\n String wallName = getObjectNameOnPos(tiledMap, pos);\n if (wallName.contains(\"West\")) {\n pos.sub(1,0);\n activateLasersFromPos(pos, EAST, true);\n }\n else if (wallName.contains(\"South\")) {\n pos.sub(0,1);\n activateLasersFromPos(pos, NORTH, true);\n }\n }\n }",
"@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }",
"public void testBoardAvailablePositions() {\n \tassertTrue(board6.hasAvailablePositionsForTile());\n \tList<PlacementLocation> expected = new ArrayList<PlacementLocation>();\n \tboard6.place(new Placement(Color.RED, 5, 21, Color.RED, 4, 16));\n \tboard6.place(new Placement(Color.RED, 4, 12, Color.RED, 5, 14));\n \tboard6.place(new Placement(Color.RED, 4, 8, Color.RED, 5, 11));\n \tboard6.place(new Placement(Color.RED, 5, 4, Color.RED, 4, 4));\n \tboard6.place(new Placement(Color.RED, 5, 1, Color.RED, 4, 0));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(5, 26))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 20))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(5, 24))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 29))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 30))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(6, 31))));\n \t\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(6, 28))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(5, 23))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 24)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 19))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(3, 15))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(4, 20)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(4, 21))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(5, 27))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(5, 26)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(6, 32))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 33))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 29)), board6.getCell(new Coordinate(7, 34))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 35))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 30)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 36))));\n \texpected.add(new PlacementLocation(board6.getCell(new Coordinate(6, 31)), board6.getCell(new Coordinate(7, 37))));\n \t\n \t\n \tfor (PlacementLocation location : board6.getAvailablePositionsForTile()) {\n \t\tif (!expected.contains(location))\n \t\t\tSystem.out.println(\"expected does not contain location: \" + location);\n \t}\n \tSet<PlacementLocation> locations = board6.getAvailablePositionsForTile();\n \tfor (PlacementLocation location : locations) {\n \t\tSystem.out.println(location);\n \t}\n \tfor (PlacementLocation location : expected) {\n \t\tif (!locations.contains(location))\n \t\t\tSystem.out.println(\"expected2 does not contain location: \" + location);\n \t}\n \t\n \tassertEquals(expected, board6.getAvailablePositionsForTile());\n \t\n \t\n }",
"public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }",
"public void frighten(ArrayList<Wall> listOfWalls, ArrayList<Point> intersections) {\n Random r = new Random();\r\n int targetX = 25;\r\n int targetY = 25;\r\n double minDistance = 5000000000.0; //no distance is greater than this 4head\r\n double upDistance = 500000000.0;\r\n double downDistance = 5000000.0;\r\n double leftDistance = 50000000.0;\r\n double rightDistance = 5000000.0;\r\n\r\n boolean isIntersection = checkIntersection(intersections);\r\n boolean isRightCollision = checkWallCollision(listOfWalls, 2);\r\n boolean isLeftCollision = checkWallCollision(listOfWalls, 3);\r\n boolean isUpCollision = checkWallCollision(listOfWalls,0);\r\n boolean isDownCollision = checkWallCollision(listOfWalls, 1);\r\n\r\n if(isIntersection) {\r\n\r\n if(!isRightCollision && this.direction != 3) {\r\n rightDistance = Math.pow((xPos + 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isLeftCollision && this.direction !=2) {\r\n leftDistance = Math.pow((xPos - 20) - targetX,2) + Math.pow(yPos - targetY,2);\r\n }\r\n if(!isUpCollision && this.direction != 1) {\r\n upDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos-20) - targetY,2);\r\n }\r\n if(!isDownCollision && this.direction != 0) {\r\n downDistance = Math.pow((xPos) - targetX,2) + Math.pow((yPos+20) - targetY,2);\r\n }\r\n if(upDistance <= downDistance && upDistance <= leftDistance && upDistance <= rightDistance) {\r\n this.direction = 0;\r\n }\r\n else if(downDistance <= upDistance && downDistance <= leftDistance && downDistance <= rightDistance) {\r\n this.direction = 1;\r\n }\r\n\r\n else if(rightDistance <= leftDistance && rightDistance <= downDistance && rightDistance <= upDistance) {\r\n this.direction = 2;\r\n }\r\n\r\n else if(leftDistance <= rightDistance && leftDistance <= upDistance && leftDistance <= downDistance) {\r\n this.direction = 3;\r\n }\r\n\r\n\r\n }\r\n\r\n if(this.direction == 0) {\r\n yPos = yPos - 5;\r\n }\r\n if(this.direction ==1) {\r\n yPos = yPos + 5;\r\n }\r\n if(this.direction ==2) {\r\n xPos = xPos + 5;\r\n }\r\n if(this.direction == 3) {\r\n xPos = xPos - 5;\r\n }\r\n }",
"public boolean setBlockByVertical(World world, int x, int y, int z, float yaw, List<ImageBlockData> dataList){\n\n try {\n Plugin plugin = Bukkit.getPluginManager().getPlugin(\"DPCPlugin\");\n new BukkitRunnable() {\n @Override\n public void run() {\n for (ImageBlockData data : dataList){\n // System.out.println(\"yaw : \"+yaw);\n if (yaw < -45.0 && yaw >= -135.0) {\n // System.out.println(\"east\");\n Location loc = new Location(world, x, y - data.z, z + data.x);\n loc.getBlock().setType(data.block);\n } else if (yaw >= 45.0 && yaw < 135.0) {\n // System.out.println(\"west\");\n Location loc = new Location(world, x, y - data.z, z - data.x);\n loc.getBlock().setType(data.block);\n } else if (yaw > -45.0 && yaw < 45.0) {\n // System.out.println(\"south\");\n Location loc = new Location(world, x - data.x, y - data.z, z);\n loc.getBlock().setType(data.block);\n } else {\n // System.out.println(\"north\");\n Location loc = new Location(world, x + data.x, y - data.z, z);\n loc.getBlock().setType(data.block);\n }\n }\n }\n }.runTaskLater(plugin, 0L);\n\n } catch (Exception e){\n e.printStackTrace();\n return false;\n }\n\n\n return true;\n }",
"@Test\n\tpublic void northSWC()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(13, 15);\n\t\td.set(14, 16);\n\t\td.set(15, 3);\n\t\td.set(16, 18);\n\t\td.set(17, 19);\n\t\td.set(1, 4);\n\t\td.set(2, 5);\n\t\td.set(3, 6);\n\t\td.set(4, 7);\n\t\td.set(5, 8);\n\t\td.set(19, 9);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(9);\n\t\tassertTrue(7==test_arr.get(0).getX() && 0==test_arr.get(0).getY()\n\t\t\t&& 6==test_arr.get(1).getX() && 0==test_arr.get(1).getY()\n\t\t\t&& 5==test_arr.get(2).getX() && 0==test_arr.get(2).getY()\n\t\t\t&& 4==test_arr.get(3).getX() && 0==test_arr.get(3).getY()\n\t\t\t&& 3==test_arr.get(4).getX() && 0==test_arr.get(4).getY());\n\t}",
"private boolean checkFollowingWall(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView) {\n\t\t\t\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}",
"@Test\n\tvoid testCheckCoordinates7() {\n\t\tassertTrue(DataChecker.checkCoordinate(-90));\n\t}",
"private int cornerCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n if (coordinates.get(2).getXCoordinate() < wallCoordinates.get(0).getXCoordinate() && coordinates.get(2).getYCoordinate() < wallCoordinates.get(0).getYCoordinate())\n return 0;\n else if (coordinates.get(0).getXCoordinate() > wallCoordinates.get(1).getXCoordinate() && coordinates.get(0).getYCoordinate() < wallCoordinates.get(1).getYCoordinate())\n return 1;\n else if (wallCoordinates.get(2).getXCoordinate() < coordinates.get(0).getXCoordinate() && wallCoordinates.get(2).getYCoordinate() < coordinates.get(0).getYCoordinate())\n return 2;\n else if (coordinates.get(1).getXCoordinate() < wallCoordinates.get(3).getXCoordinate() && coordinates.get(1).getYCoordinate() > wallCoordinates.get(3).getYCoordinate())\n return 3;\n else\n return -1;\n }",
"@Test\n\tvoid testCheckCoordinates6() {\n\t\tassertTrue(DataChecker.checkCoordinate(90));\n\t}",
"@Test\n\tpublic void southSWC()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(32, 103);\n\t\td.set(33, 104);\n\t\td.set(34, 113);\n\t\td.set(35, 106);\n\t\td.set(36, 107);\n\t\td.set(1, 114);\n\t\td.set(2, 115);\n\t\td.set(3, 116);\n\t\td.set(4, 117);\n\t\td.set(5, 118);\n\t\td.set(19, 119);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(119);\n\t\tassertTrue(7==test_arr.get(0).getX() && 10==test_arr.get(0).getY()\n\t\t\t&& 6==test_arr.get(1).getX() && 10==test_arr.get(1).getY()\n\t\t\t&& 5==test_arr.get(2).getX() && 10==test_arr.get(2).getY()\n\t\t\t&& 4==test_arr.get(3).getX() && 10==test_arr.get(3).getY()\n\t\t\t&& 3==test_arr.get(4).getX() && 10==test_arr.get(4).getY());\n\t}",
"void checkForPlayer(boolean checkForBlacks, int i, int j) {\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t//**Check vertical**\\\\\n\t\t// Check upwards\n\t\tfor (int n = j-1; n >= 0; --n) {\n\t\t\tif (!check(i, n, checkForBlacks))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check downwards\n\t\tfor (int n = j+1; n < dimensions.y; ++n) {\n\t\t\tif (!check (i, n, checkForBlacks))\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t//**Check horizontal**\\\\\n\t\t// Check to left\n\t\tfor (int n = i-1; n >=0; --n) {\n\t\t\tif (!check(n, j, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check to right\n\t\tfor (int n = i+1; n < dimensions.x; ++n) {\n\t\t\tif (!check(n, j, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t//**Check diagonals**\\\\\n\t\t// Check North-East\n\t\tfor (int n = 1; i+n < dimensions.x && j-n >= 0; ++n) {\n\t\t\tif (!check(i+n, j-n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check North-West\n\t\tfor (int n = 1; i-n >= 0 && j-n >= 0; ++n) {\n\t\t\tif (!check(i-n, j-n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check South-East\n\t\tfor (int n = 1; i+n < dimensions.x && j+n < dimensions.y; ++n) {\n\t\t\tif (!check(i+n, j+n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tcounter = 0;\n\t\tpossibleFlips.clear();\n\t\t\n\t\t// Check South-West\n\t\tfor (int n = 1; i-n >= 0 && j+n < dimensions.y; ++n) {\n\t\t\tif (!check(i-n, j+n, checkForBlacks))\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\r\n public void getRange(ArrayList<Piece> pieces){\r\n this.range.clear();\r\n int pieceX = this.getX(); int pieceY = this.getY(); // X and Y coordinates for the king piece\r\n\r\n // getPiece: 0 = empty; 1 = same color; 2 = opposite color\r\n //Up\r\n if (this.getPiece(pieceX, pieceY+1, pieces) == 0 || this.getPiece(pieceX, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Up-right\r\n if (this.getPiece(pieceX+1, pieceY+1, pieces) == 0 || this.getPiece(pieceX+1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Right\r\n if (this.getPiece(pieceX+1, pieceY, pieces) == 0 || this.getPiece(pieceX+1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Down-right\r\n if (this.getPiece(pieceX+1, pieceY-1, pieces) == 0 || this.getPiece(pieceX+1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX+1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down\r\n if (this.getPiece(pieceX, pieceY-1, pieces) == 0 || this.getPiece(pieceX, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Down-left\r\n if (this.getPiece(pieceX-1, pieceY-1, pieces) == 0 || this.getPiece(pieceX-1, pieceY-1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY-1}); // Return int[] of tested coordinates\r\n\r\n //Left\r\n if (this.getPiece(pieceX-1, pieceY, pieces) == 0 || this.getPiece(pieceX-1, pieceY, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY}); // Return int[] of tested coordinates\r\n\r\n //Up-left\r\n if (this.getPiece(pieceX-1, pieceY+1, pieces) == 0 || this.getPiece(pieceX-1, pieceY+1, pieces) == 2)\r\n this.range.add(new int[] {pieceX-1, pieceY+1}); // Return int[] of tested coordinates\r\n\r\n //Castling\r\n for (Piece piece : pieces) {\r\n if (piece instanceof Rook) {\r\n if (piece.getColor() == this.getColor()) {\r\n if (validCastling(pieces, (Rook)piece)) {\r\n int targetX = (piece.getX() < getX()) ? (this.getX() - 2) : (this.getX() + 2);\r\n this.range.add(new int[] {targetX, this.getY()});\r\n }\r\n }\r\n }\r\n }\r\n }",
"private static Square[] reachableAdjacentSquares\n (GameBoard board, Square currLoc, int pno, \n int dontCheckMe, int numJumps, boolean adjacentToPlayer) {\n\n // list to store adjacent squares\n List<Square> squareList = new LinkedList<Square>();\n\n // calculate direction bias\n int direction = 0;\n switch (pno) {\n case 0: direction = 86; break;\n case 1: direction = Integer.rotateRight(163,1); break;\n case 2: direction = 171; break;\n case 3: direction = Integer.rotateRight(345, 1); break;\n }\n \n // check each available adajcency\n for ( int i = 0; i < 4; i++ ) {\n \n // calculate the x and y offsets\n int x = ((direction & 8) >> 3) * Integer.signum(direction);\n int y = ((direction & 16) >> 4) * Integer.signum(direction);\n\n // retrieve an adjacent square to compare\n Square checkLoc = board.getSquare(currLoc.getX() + x,\n currLoc.getY() + y);\n\n // modify bits for the next iteration\n direction = Integer.rotateRight(direction,1);\n\n // if check is not an invalid location...\n if ( checkLoc != null ) {\n\n // skip this check if there is a wall in the way\n if ( ( y == 1 && currLoc.getWallBottom() != null) ||\n ( y == -1 && checkLoc.getWallBottom() != null) ||\n ( x == 1 && currLoc.getWallRight() != null ) ||\n ( x == -1 && checkLoc.getWallRight() != null) )\n continue;\n \n // check if there is a player adjacent to where we are\n else if ( adjacentToPlayer && checkLoc.isOccupied() \n && i != dontCheckMe && numJumps < 3 ) {\n // Get the squares from the adjacent player\n Square[] adjToPlayer = reachableAdjacentSquares(board,\n checkLoc, pno, (i+2)%4, numJumps++, adjacentToPlayer);\n // Add the adjacent player's squares to the list\n for ( int j = 0; j < adjToPlayer.length; j++ )\n squareList.add(adjToPlayer[j]);\n } \n\n else\n // add this square to the list\n squareList.add(checkLoc);\n\n adjacentToPlayer = true;\n }\n }\n\n // return the array of adjacent squares\n return squareList.toArray(new Square[squareList.size()]);\n }",
"public static NPCHouse isBox(World worldIn, BlockPos pos, EnumFacing side)\n\t{\n\t\tBlockPos une = pos, unw = pos, use = pos, usw = pos, dne = pos, dnw = pos, dse = pos, dsw = pos;\n\t\tboolean isBuilding = false;\n\t\t\n\t\t//D-U-N-S-W-E\n\t\tassess:\n\t\tswitch(side.getIndex())\n\t\t{\n\t\t\tcase 0:\t//assume ceiling\n\t\t\t\t\t//while not wall && wood, go in direction to find wall\n\t\t\t\t\t//know is ceiling, so we can us a block at least 2 below && can only click ceiling from inside, so one in any Cardinal direction can be assumed as wood for wall checks\n\t\t\t\t\t//move east and west, checking if wall with 2 blocks down and 1 block north (neCorner\n\t\t\t\t\tune = pos.north().east();\n\t\t\t\t\tunw = pos.north().west();\n\t\t\t\t\tuse = pos.south().east();\n\t\t\t\t\tusw = pos.south().west();\n\t\t\t\t\t//make sure all start corners are actually wood, else fail\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//these are clearly not wooden, but we need them to check for walls, when they become wooden, we have found walls\n\t\t\t\t\tdne = une.down();\n\t\t\t\t\tdnw = unw.down();\n\t\t\t\t\tdse = use.down();\n\t\t\t\t\tdsw = usw.down();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//move corners to find walls in order, north, south, east, west\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\t//if we're no longer looking at wood, then it's not a domicile, so fail\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//We now have the real upper corners of the building, let's find out if we have a floor! :)\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//for some reason it's going past all of them and I've no fucking clue why.\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//This should be all of our corners. Let's run another check on every wall and floor just to make sure its' not missing pieces on us. :D\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 1:\t//assume floor\t\n\t\t\t\t\tdne = pos.north().east();\n\t\t\t\t\tdnw = pos.north().west();\n\t\t\t\t\tdse = pos.south().east();\n\t\t\t\t\tdsw = pos.south().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = dne.up();\n\t\t\t\t\tunw = dnw.up();\n\t\t\t\t\tuse = dse.up();\n\t\t\t\t\tusw = dsw.up();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//Start finding Walls in order: N-S-E-W\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Find the Roof!\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\t\t\t\n\t\t\tcase 2: //assume ewWall (North facing side)\n\t\t\t\t\tuse = pos.up().east();\n\t\t\t\t\tusw = pos.up().west();\n\t\t\t\t\tdse = pos.down().east();\n\t\t\t\t\tdsw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = use.north();\n\t\t\t\t\tunw = usw.north();\n\t\t\t\t\tdne = dse.north();\n\t\t\t\t\tdnw = dsw.north();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the North Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 3:\t//assume ewWall (South facing Wall - North wall of room)\n\t\t\t\t\tune = pos.up().east();\n\t\t\t\t\tunw = pos.up().west();\n\t\t\t\t\tdne = pos.down().east();\n\t\t\t\t\tdnw = pos.down().west();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tuse = une.south();\n\t\t\t\t\tusw = unw.south();\n\t\t\t\t\tdse = dne.south();\n\t\t\t\t\tdsw = dnw.south();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, unw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Now we check the Eastern and Western Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we check for the South Wall\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dse) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\t\n\t\t\t\t\tbreak assess;\n\t\t\tcase 4:\t//assume nsWall (West Facing Wall - Eastern wall of room)\n\t\t\t\t\tune = pos.up().north();\n\t\t\t\t\tuse = pos.up().south();\n\t\t\t\t\tdne = pos.down().north();\n\t\t\t\t\tdse = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tunw = une.west();\n\t\t\t\t\tusw = use.west();\n\t\t\t\t\tdnw = dne.west();\n\t\t\t\t\tdsw = dse.west();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, dne)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move West!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\tunw = unw.west();\n\t\t\t\t\t\tusw = usw.west();\n\t\t\t\t\t\tdnw = dnw.west();\n\t\t\t\t\t\tdsw = dsw.west();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t\tcase 5:\t//assume nsWall (East Facing Wall - Western wall of room)\n\t\t\t\t\tunw = pos.up().north();\n\t\t\t\t\tusw = pos.up().south();\n\t\t\t\t\tdnw = pos.down().north();\n\t\t\t\t\tdsw = pos.down().south();\n\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tune = unw.east();\n\t\t\t\t\tuse = usw.east();\n\t\t\t\t\tdne = dnw.east();\n\t\t\t\t\tdse = dsw.east();\n\t\t\t\t\tif((BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\t//First we check the Ceiling and Floor\n\t\t\t\t\t//First, we check Ceiling and Floor\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, usw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.up();\n\t\t\t\t\t\tunw = unw.up();\n\t\t\t\t\t\tuse = use.up();\n\t\t\t\t\t\tusw = usw.up();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, dnw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tdne = dne.down();\n\t\t\t\t\t\tdnw = dnw.down();\n\t\t\t\t\t\tdse = dse.down();\n\t\t\t\t\t\tdsw = dsw.down();\n\t\t\t\t\t}\n\t\t\t\t\t//Next we are gonna check the North and South Walls\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, unw) && BlockHelper.isWooden(worldIn, dnw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.north();\n\t\t\t\t\t\tunw = unw.north();\n\t\t\t\t\t\tdne = dne.north();\n\t\t\t\t\t\tdnw = dnw.north();\n\t\t\t\t\t}\n\t\t\t\t\twhile(!BlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, usw) && BlockHelper.isWooden(worldIn, dsw)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tuse = use.south();\n\t\t\t\t\t\tusw = usw.south();\n\t\t\t\t\t\tdse = dse.south();\n\t\t\t\t\t\tdsw = dsw.south();\n\t\t\t\t\t}\n\t\t\t\t\t//Finally, we move East!\n\t\t\t\t\twhile(!BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse))\n\t\t\t\t\t{\n\t\t\t\t\t\tif(!(BlockHelper.isWooden(worldIn, une) && BlockHelper.isWooden(worldIn, use) && BlockHelper.isWooden(worldIn, dne) && BlockHelper.isWooden(worldIn, dse)))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tisBuilding = false;\n\t\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tune = une.east();\n\t\t\t\t\t\tuse = use.east();\n\t\t\t\t\t\tdne = dne.east();\n\t\t\t\t\t\tdse = dse.east();\n\t\t\t\t\t}\n\t\t\t\t\tif((BlockHelper.isSolidPlatform(worldIn, une, unw, use, usw) && BlockHelper.isSolidPlatform(worldIn, dne, dnw, dse, dsw) && BlockHelper.isSolidEWWall(worldIn, une, unw, dne, dnw) &&\n\t\t\t\t\t\t\tBlockHelper.isSolidEWWall(worldIn, use, usw, dse, dsw) && BlockHelper.isSolidNSWall(worldIn, une, use, dne, dse) && BlockHelper.isSolidNSWall(worldIn, unw, usw, dnw, dsw)))\n\t\t\t\t\t{\n\t\t\t\t\t\tisBuilding = true;\n\t\t\t\t\t\tbreak assess;\n\t\t\t\t\t}\n\t\t\t\t\tisBuilding = false;\n\t\t\t\t\tbreak assess;\n\t\t}\n\t\tNPCHouse house =new NPCHouse(unw, une, usw, use, dnw, dne, dsw, dse, isBuilding);\n\t\treturn house;\n\t}",
"public static int BlockCheckWin(ArrayList<BlockObject> objects)\n\t{\n\t\tint sum = 0;\n\t\t//Checks horizontal\n\t\tsum = BlockSumMatrix(objects);\n\t\t//Return sum if someone won.\n\t\tif(sum == 27 || sum == 30)\n\t\t\treturn sum;\n\t\t\n\t\treturn sum;\n\t}",
"private boolean findChess(int x,int y){\r\n for(Point c:chessList){\r\n if(c!=null&&c.getX()==x&&c.getY()==y)\r\n return true;\r\n }\r\n return false;\r\n }",
"@Test\n\tpublic void lowerLeft2SWCSpecial()\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 112);\n\t\td.set(1, 113);\n\t\td.set(13, 101);\n\t\td.set(14, 102);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(114);\n\t\tassertTrue(2==test_arr.get(0).getX() && 10==test_arr.get(0).getY()\n\t\t\t&& 1==test_arr.get(1).getX() && 10==test_arr.get(1).getY());\n\t}",
"boolean isAllOnDestination(){\n\n if(player.getCurrentX()-player.getDestinationX()!=0 || player.getCurrentY()-player.getDestinationY()!=0)\n return false;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()-item.getDestinationX()!=0 || item.getCurrentY()-item.getDestinationY()!=0)\n return false;\n }\n return true;\n }",
"@Override\n public Map<Direction, List<Coordinate>> getPossibleMoves() {\n\n Map<Direction, List<Coordinate>> moves = new HashMap<>();\n\n Coordinate coordinate = this.getCoordinate();\n int row = coordinate.getRow();\n int col = coordinate.getCol();\n\n //Jumps\n List<Coordinate> jumps = new ArrayList<>();\n\n //\n //\n ////\n int tempRow1 = row - 2;\n int tempCol1 = col - 1;\n Coordinate tempCoordinate1 = new Coordinate(tempRow1, tempCol1);\n if (Board.inBounds(tempCoordinate1)) {\n jumps.add(tempCoordinate1);\n }\n\n ////\n //\n //\n int tempRow2 = row + 2;\n int tempCol2 = col - 1;\n Coordinate tempCoordinate2 = new Coordinate(tempRow2, tempCol2);\n if (Board.inBounds(tempCoordinate2)) {\n jumps.add(tempCoordinate2);\n }\n\n //////\n //\n int tempRow3 = row - 1;\n int tempCol3 = col - 2;\n Coordinate tempCoordinate3 = new Coordinate(tempRow3, tempCol3);\n if (Board.inBounds(tempCoordinate3)) {\n jumps.add(tempCoordinate3);\n }\n\n ///////\n //\n int tempRow4 = row - 1;\n int tempCol4 = col + 2;\n Coordinate tempCoordinate4 = new Coordinate(tempRow4, tempCol4);\n if (Board.inBounds(tempCoordinate4)) {\n jumps.add(tempCoordinate4);\n }\n\n ////\n //\n //\n int tempRow5 = row + 2;\n int tempCol5 = col + 1;\n Coordinate tempCoordinate5 = new Coordinate(tempRow5, tempCol5);\n if (Board.inBounds(tempCoordinate5)) {\n jumps.add(tempCoordinate5);\n }\n\n //\n //\n ////\n int tempRow6 = row - 2;\n int tempCol6 = col + 1;\n Coordinate tempCoordinate6 = new Coordinate(tempRow6, tempCol6);\n if (Board.inBounds(tempCoordinate6)) {\n jumps.add(tempCoordinate6);\n }\n\n //\n //////\n int tempRow7 = row + 1;\n int tempCol7 = col - 2;\n Coordinate tempCoordinate7 = new Coordinate(tempRow7, tempCol7);\n if (Board.inBounds(tempCoordinate7)) {\n jumps.add(tempCoordinate7);\n }\n\n //\n //////\n int tempRow8 = row + 1;\n int tempCol8 = col + 2;\n Coordinate tempCoordinate8 = new Coordinate(tempRow8, tempCol8);\n if (Board.inBounds(tempCoordinate8)) {\n jumps.add(tempCoordinate8);\n }\n\n if (!jumps.isEmpty()) {\n moves.put(Direction.Jump, jumps);\n }\n return moves;\n }",
"public void checkRep() {\n assert(wall.p1().x() >= BOARD_MIN_BOUND && wall.p1().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p1 must be within in the board\";\n assert(wall.p2().x() >= BOARD_MIN_BOUND && wall.p2().x() <= BOARD_MAX_BOUND) :\n \"x coordinate of p2 must be within in the board\";\n assert(wall.p1().y() >= BOARD_MIN_BOUND && wall.p1().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p1 must be within in the board\";\n assert(wall.p2().y() >= BOARD_MIN_BOUND && wall.p2().y() <= BOARD_MAX_BOUND) :\n \"y coordinate of p2 must be within in the board\";\n }",
"public int checkAllertBox() {\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkLeftButtonOnLeft = -0.475f * boxRatio * 0.8f;\n float checkLeftButtonOnRight = -0.075f * boxRatio * 0.8f;\n\n float checkRightButtonOnLeft = 0.075f * boxRatio * 0.8f;\n float checkRightButtonOnRight = 0.475f * boxRatio * 0.8f;\n\n int checkButton = 0;\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 11;\n }\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 21;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n return checkButton;\n }",
"@Test\n\tpublic void upperRight2SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 10);\n\t\td.set(1, 9);\n\t\td.set(15, 21);\n\t\td.set(13, 20);\n\t\td.set(17, 19);\n\t\td.set(6, 8);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(7);\n\t\tassertTrue(7==test_arr.get(0).getX() && 0==test_arr.get(0).getY()\n\t\t\t&& 8==test_arr.get(1).getX() && 0==test_arr.get(1).getY()\n\t\t\t&& 9==test_arr.get(2).getX() && 0==test_arr.get(2).getY());\n\t}",
"void checkerboard(int checkerSquareArea);",
"private boolean checkInsideZone() {\n for (Zone z : shiftZones) {\n if (PolyUtil.containsLocation(userLocation, Arrays.asList(z.getCoords()), true)) {\n return true;\n }\n }\n return false;\n }",
"private boolean checkHorizontalWin(BoardPosition lastPos) {\r\n int i, col, count;\r\n int check = 9;\r\n int row = lastPos.getRow();\r\n\r\n for(i = (xMax-xMax)+2; i < (xMax / 2); i += 2){\r\n count = 0;\r\n for(col = i; col < (i + check); col++){\r\n if(grid[row][col] == lastPos.getPlayer())\r\n count++;\r\n }\r\n if (count == win)\r\n return true;\r\n }\r\n return false;\r\n }",
"private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public void findTheWay(int x, int y) {\n\n Queue<Tile> elements = new LinkedList<Tile>();\n\n if (!getTile(x, y).canTileMove()) {\n System.out.println(\"Impossible to move\");\n return;\n }\n\n elements.add(getTile(x, y));\n getTile(x, y).setVisited(true);\n\n System.out.println(\"The starting tile is \" + getTile(x, y).getX() + \" \" + getTile(x, y).getY());\n\n while (!elements.isEmpty()) {\n Tile current = elements.poll();\n System.out.println(\"Current tile \" + current.getX() + \" \" + current.getY() + \" from the queue\");\n if (current.getX() == MAX && current.getY() == MAX) {\n System.out.println(\"Reached bottom right corner\");\n return;\n }\n\n for (int i = 0; i < ALLX.length; i++) {\n int newX = current.getX() + ALLX[i];\n int newY = current.getY() + ALLY[i];\n\n if (isInside(newX, newY)) {\n if (!getTile(newX, newY).isVisited()) {\n\n getTile(newX, newY).setVisited(true);\n System.out.println(\"Next added tile to the queue is \" + newX + \" \" + newY);\n\n elements.add(getTile(newX, newY));\n }\n }\n }\n }\n\n }",
"static int tryPlantCorners(int check, MapLocation target) throws GameActionException{\n\t\tif (check == 0 || check == 1 || check == 8) {\n\t\t\tif(rc.canMove(Direction.getNorth()))\n\t\t\t\trc.move(Direction.getNorth());\n\t\t\tif (check == 1) \n\t\t\t\ttryPlantTree(Direction.getWest().rotateRightDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 2){\n\t\t\ttryPlantTree(Direction.getEast().rotateLeftDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 7){\n\t\t\ttryPlantTree(Direction.getEast().rotateRightDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 4 || check == 9){\n\t\t\tif (rc.canMove(target))\n\t\t\t\trc.move(target);\n\t\t\treturn check + 1;\n\t\t}\n\t\telse if (check == 3 || check == 5 || check == 6){\n\t\t\tif (rc.canMove(Direction.getSouth()))\n\t\t\t\trc.move(Direction.getSouth());\n\t\t\tif (check == 6)\n\t\t\t\ttryPlantTree(Direction.getWest().rotateLeftDegrees(2), 2, 5);\n\t\t\treturn check + 1;\n\t\t}\n\t\treturn 0;\n\t}",
"boolean testCoords(Tester t) {\n return t.checkExpect(this.p3.xCoord(), 50) && t.checkExpect(this.p4.yCoord(), 600);\n }",
"private int checkCorners(int[] arr, int[] availableMoves) {\n for (int i = 0; i <= 6; i += 6) {\n int sum = arr[i] + arr[i + 1] + arr[i + 2];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) { \n return i;\n } \n }\n\n // Check verticals\n for (int i = 0; i < 3; i+=2) {\n int sum = arr[i] + arr[i + 3] + arr[i + 6];\n System.out.println(sum);\n if (sum == -1 && contains(availableMoves,i)) {\n return i;\n } \n }\n \n return -1;\n }",
"private void checkCollision() {\n\n for(int b = 1; b < snakeLength; b++){\n if(xLength[b] == xLength[0] && yLength[b] == yLength[0]) {\n right = false;\n left = false;\n down = false;\n up = false;\n gameOver = true;\n }\n }\n\n if(right){\n if(xLength[0] >= 825) {\n gameOver = true;\n }\n }\n if(left){\n if(xLength[0] <= 50) {\n gameOver = true;\n }\n }\n if(down){\n if(yLength[0] >= 600) {\n gameOver = true;\n }\n }\n if(up){\n if(yLength[0] <= 100) {\n gameOver = true;\n }\n }\n }",
"public boolean checkAnyPieceCanMove(Player playerInCheck) {\r\n\t\tif (playerInCheck.color == Color.WHITE) {\r\n\t\t\treturn checkAllPieces(white, playerInCheck);\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn checkAllPieces(black, playerInCheck);\r\n\t\t}\r\n\t}",
"@Test\n\tpublic void insideRoomTests() {\n\t\t//Tests middle of room\n\t\tSet<BoardCell> testList = board.getAdjList(3, 11);\n\t\tassertEquals(0, testList.size());\n\t\t//Tests a room space that is next to a walkway space\n\t\ttestList = board.getAdjList(16, 10);\n\t\tassertEquals(0, testList.size());\n\n\t}",
"@Test\n\tpublic void lowerLeft1SWCSpecial()\t\n\t{\n\t\tData d = new Data();\n\t\td.set(5, 100);\n\t\td.set(1, 89);\n\t\td.set(29, 79);\n\t\td.set(8, 78);\n\t\td.set(23, 90);\n\t\td.set(21, 101);\n\t\tArrayList<Coordinate> test_arr = d.shieldWallCapture(67);\n\t\tassertTrue(0==test_arr.get(0).getX() && 7==test_arr.get(0).getY()\n\t\t\t&& 0==test_arr.get(1).getX() && 8==test_arr.get(1).getY()\n\t\t\t&& 0==test_arr.get(2).getX() && 9==test_arr.get(2).getY());\n\t}",
"public void findNeighbours(ArrayList<int[]> visited , Grid curMap) {\r\n\t\tArrayList<int[]> visitd = visited;\r\n\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS cur pos:\" +Arrays.toString(nodePos));\r\n\t\t//for(int j=0; j<visitd.size();j++) {\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +Arrays.toString(visited.get(j)));\r\n\t\t\t//System.out.println(\"FROM FIND NEIGHBOURS getvstd\" +Arrays.toString(visited.get(j)));\r\n\t\t//}\r\n\t\t//System.out.println(\"FROM FIND NEIGHBOURS\" +visited);\r\n\t\tCell left=curMap.getCell(0, 0);\r\n\t\tCell right=curMap.getCell(0, 0);\r\n\t\tCell upper=curMap.getCell(0, 0);\r\n\t\tCell down=curMap.getCell(0, 0);\r\n\t\t//the getStart() method returns x,y coordinates representing the point in x,y axes\r\n\t\t//so if either of [0] or [1] coordinate is zero then we have one less neighbor\r\n\t\tif (nodePos[1]> 0) {\r\n\t\t\tupper=curMap.getCell(nodePos[0], nodePos[1]-1) ; \r\n\t\t}\r\n\t\tif (nodePos[1] < M-1) {\r\n\t\t\tdown=curMap.getCell(nodePos[0], nodePos[1]+1);\r\n\t\t}\r\n\t\tif (nodePos[0] > 0) {\r\n\t\t\tleft=curMap.getCell(nodePos[0] - 1, nodePos[1]);\r\n\t\t}\r\n\t\tif (nodePos[0] < N-1) {\r\n\t\t\tright=curMap.getCell(nodePos[0]+1, nodePos[1]);\r\n\t\t}\r\n\t\t//for(int i=0;i<visitd.size();i++) {\r\n\t\t\t//System.out.println(Arrays.toString(visitd.get(i)));\t\r\n\t\t//}\r\n\t\t\r\n\t\t//check if the neighbor is wall,if its not add to the list\r\n\t\tif(nodePos[1]>0 && !upper.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] - 1}))) {\r\n\t\t\t//Node e=new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1},curMap);\r\n\t\t\t//if(e.getVisited()!=true) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] - 1}, curMap)); // father of the new nodes is this node\r\n\t\t\t//}\r\n\t\t}\r\n\t\tif(nodePos[1]<M-1 &&!down.isWall() && (!exists(visitd,new int[] {nodePos[0], nodePos[1] + 1}))){\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0], nodePos[1] + 1}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]>0 && !left.isWall() && (!exists(visitd,new int[] {nodePos[0] - 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] - 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\tif(nodePos[0]<N-1 && !right.isWall() && (!exists(visitd,new int[] {nodePos[0] + 1, nodePos[1]}))) {\r\n\t\t\tNodeChildren.add(new Node(this , this.N , this.M , new int[] {nodePos[0] + 1, nodePos[1]}, curMap));\r\n\t\t}\r\n\t\t//for(int i=0; i<NodeChildren.size();i++) {\r\n\t\t\t//System.out.println(\"Paidia sth find:\" + Arrays.toString(NodeChildren.get(i).getNodePos()));\r\n\t\t//}\r\n\t\t\t\t\t\t\r\n\t}",
"protected void check_turn(List<CollisionObject> collidables) {\n //Firing rays\n\n //select an area of 180 degrees (pi radians)\n boolean turn = true;\n Vector2 start_point = get_ray_fire_point();\n for (int ray = 0; ray <= number_of_rays; ray++) {\n\n if (turn) {\n ray--;\n float ray_angle = sprite.getRotation() + ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = false;\n } else {\n float ray_angle = sprite.getRotation() - ((ray_angle_range / (number_of_rays / 2)) * ray);\n turn = true;\n }\n\n float ray_angle = ((ray_angle_range / number_of_rays) * ray) + sprite.getRotation();\n\n for (float dist = 0; dist <= ray_range; dist += ray_step_size) {\n\n double tempx = (Math.cos(Math.toRadians(ray_angle)) * dist) + (start_point.x);\n double tempy = (Math.sin(Math.toRadians(ray_angle)) * dist) + (start_point.y);\n //check if there is a collision hull (other than self) at (tempx, tempy)\n for (CollisionObject collideable : collidables) {\n if (collideable.isShown() &&\n ((Obstacle) collideable).getSprite().getY() > sprite.getY() - 200 &&\n ((Obstacle) collideable).getSprite().getY() < sprite.getY() + 200 &&\n ((Obstacle) collideable).getSprite().getX() > sprite.getX() - 200 &&\n ((Obstacle) collideable).getSprite().getX() < sprite.getX() + 200)\n for (Shape2D bound : collideable.getBounds().getShapes()) {\n if (bound.contains((float) tempx, (float) tempy)) {\n // Determines which side the ai should turn to\n if (turn) {\n turn(-1);\n return;\n } else {\n turn(1);\n return;\n }\n\n }\n }\n\n }\n }\n }\n }",
"public String check() {\n\t\tboolean validity = true;\n\t\tboolean completion = true;\n\t\tint rowNumber = 0;\n\t\tint columnNumber = 0;\n\t\t/*\n\t\t * keeps repeating the loop until all the rows and columns are checked\n\t\t * unless validity is false for any row or column\n\t\t * for each row and column, checks for duplicates\n\t\t * if duplicate is found, validity is set to false\n\t\t * and vice versa\n\t\t */\n\t\twhile (validity == true && rowNumber < Utils.SIZE && columnNumber < Utils.SIZE) {\n\t\t\tArrayList<Integer> extractedRowList = rowExtractor(finalGrid[rowNumber]);\n\t\t\tArrayList<Integer> extractedColumnList = columnExtractor(finalGrid, columnNumber);\n\t\t\tif (duplicateCheck(extractedRowList) == true || duplicateCheck(extractedColumnList) == true) {\n\t\t\t\tvalidity = false;\n\t\t\t} else {\n\t\t\t\tvalidity = true;\n\t\t\t}\n\t\t\trowNumber++;\n\t\t\tcolumnNumber++;\n\t\t}\n\t\t//System.out.println(\"row and column validity: \" + validity);\n\t\t/*\n\t\t * if validity is still true then checks if all rows and columns have 9 elements\n\t\t * if any row or column does not have 9 elements, the loop stops as completion is set to false\n\t\t */\n\t\tif (validity == true) {\n\t\t\trowNumber = 0;\n\t\t\tcolumnNumber = 0;\n\t\t\t\n\t\t\twhile (completion == true && rowNumber < Utils.SIZE && columnNumber < Utils.SIZE) {\n\t\t\t\tArrayList<Integer> extractedRowList = rowExtractor(finalGrid[rowNumber]);\n\t\t\t\tArrayList<Integer> extractedColumnList = columnExtractor(finalGrid, columnNumber);\n\t\t\t\tif (completeCheck(extractedRowList) == true && completeCheck(extractedColumnList) == true) {\n\t\t\t\t\tcompletion = true;\n\t\t\t\t} else {\n\t\t\t\t\tcompletion = false;\n\t\t\t\t}\n\t\t\t\trowNumber++;\n\t\t\t\tcolumnNumber++;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(\"row and column completion: \" + completion);\n\t\t/*\n\t\t * only checks the validity of all the 3x3 grids if rows and columns were valid\n\t\t * if there are any duplicates found in any grid, validity becomes false and loop stops\n\t\t * if no duplicates are found within the 3x3 grid, validity is true\n\t\t */\n\t\tint maxRow = 0;\n\t\twhile (validity == true && maxRow < Utils.SIZE) {\n\t\t\tmaxRow = maxRow + 3;\n\t\t\tint maxColumn = 3;\n\t\t\twhile (validity == true && maxColumn <= Utils.SIZE) {\n\t\t\t\tArrayList<Integer> extractedMiniGridList = miniGridExtractor(finalGrid, maxRow, maxColumn);\n\t\t\t\t//System.out.println(extractedMiniGridList);\n\t\t\t\tif (duplicateCheck(extractedMiniGridList) == true) {\n\t\t\t\t\tvalidity = false;\n\t\t\t\t} else {\n\t\t\t\t\tvalidity = true;\n\t\t\t\t}\n\t\t\t\t maxColumn = maxColumn + 3;\n\t\t\t}\n\t\t}\n\t\t/*\n\t\t * if there aren't any duplicates in the entire sudoku grid and no 0 elements, returns Valid\n\t\t * if there aren't any duplicates in the entire sudoku grid but does have 0 elements, returns Incomplete\n\t\t * if there are duplicates, returns Invalid\n\t\t */\n\t\tif (validity == true && completion == true) {\n\t\t\treturn Utils.VALID;\n\t\t} else if (validity == true && completion == false) {\n\t\t\treturn Utils.INCOMPLETE;\n\t\t} else {\n\t\t\treturn Utils.INVALID;\n\t\t}\n\t}",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"private void updateNodes(){\n ArrayList<Node> tempBoard = new ArrayList<>();\n\n for(int i = 0; i < board.size(); i++){\n Node node = new Node(board.get(i).getCoordinates());\n\n tempBoard.add(node);\n }\n\n\n //check each node for number of live nodes next to it to determine next iteration\n for(int i = 0; i < board.size(); i++){\n int liveCount = 0;\n\n Coordinate current = board.get(i).getCoordinates();\n\n Coordinate above = new Coordinate(current.getX(), current.getY() - 1);\n if(searchBoard(above) != -1){\n Node aboveNode = board.get(searchBoard(above));\n if(aboveNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate bellow = new Coordinate(current.getX(), current.getY() + 1);\n if(searchBoard(bellow) != -1){\n Node bellowNode = board.get(searchBoard(bellow));\n if(bellowNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate right = new Coordinate(current.getX() + 1, current.getY());\n if(searchBoard(right) != -1){\n Node rightNode = board.get(searchBoard(right));\n if(rightNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate left = new Coordinate(current.getX() - 1, current.getY());\n if(searchBoard(left) != -1){\n Node leftNode = board.get(searchBoard(left));\n if(leftNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate topLeft = new Coordinate(current.getX() - 1, current.getY() - 1);\n if(searchBoard(topLeft) != -1){\n Node topLeftNode = board.get(searchBoard(topLeft));\n if(topLeftNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate topRight = new Coordinate(current.getX() + 1, current.getY() - 1);\n if(searchBoard(topRight) != -1){\n Node topRightNode = board.get(searchBoard(topRight));\n if(topRightNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate bottomLeft = new Coordinate(current.getX() - 1, current.getY() + 1);\n if(searchBoard(bottomLeft) != -1){\n Node bottomLeftNode = board.get(searchBoard(bottomLeft));\n if(bottomLeftNode.getState()){\n liveCount++;\n }\n }\n\n Coordinate bottomRight = new Coordinate(current.getX() + 1, current.getY() + 1);\n if(searchBoard(bottomRight) != -1){\n Node bottomRightNode = board.get(searchBoard(bottomRight));\n if(bottomRightNode.getState()){\n liveCount++;\n }\n }\n\n //determine if node is alive or dead in next frame\n if(board.get(i).getState()){\n if(liveCount <= 1){\n tempBoard.get(i).setState(false);\n } else if(liveCount >= 3){\n tempBoard.get(i).setState(false);\n } else {\n tempBoard.get(i).setState(true);\n }\n } else {\n if(liveCount == 3){\n tempBoard.get(i).setState(true);\n } else {\n tempBoard.get(i).setState(false);\n }\n }\n }\n\n //update current board with new states\n for(int i = 0; i < tempBoard.size(); i++){\n board.get(i).setState(tempBoard.get(i).getState());\n }\n }"
] | [
"0.67679304",
"0.6480226",
"0.6479381",
"0.641122",
"0.64107513",
"0.6397993",
"0.6378562",
"0.6356656",
"0.63156533",
"0.62809676",
"0.61005104",
"0.6020028",
"0.5922439",
"0.5852548",
"0.58473414",
"0.58017504",
"0.5785433",
"0.5717131",
"0.5701732",
"0.5700232",
"0.56986725",
"0.5630934",
"0.55998164",
"0.5587424",
"0.55616635",
"0.5560787",
"0.5549827",
"0.54911447",
"0.54750705",
"0.5470311",
"0.5454187",
"0.5449651",
"0.5445793",
"0.5443497",
"0.5441096",
"0.5434376",
"0.54128975",
"0.5393373",
"0.53883564",
"0.53780425",
"0.5369084",
"0.535644",
"0.5355895",
"0.5347755",
"0.5341573",
"0.53356147",
"0.5321592",
"0.5318873",
"0.53116095",
"0.5308108",
"0.5303939",
"0.5294585",
"0.52879256",
"0.5286728",
"0.52770257",
"0.52706045",
"0.52685",
"0.5265379",
"0.5255247",
"0.52519774",
"0.52480406",
"0.5245808",
"0.5239868",
"0.52372503",
"0.5234635",
"0.5217139",
"0.5214071",
"0.52139264",
"0.5213189",
"0.5208468",
"0.52076584",
"0.520723",
"0.51968884",
"0.51913655",
"0.51857024",
"0.5183975",
"0.51821536",
"0.51729375",
"0.51691175",
"0.5164226",
"0.5163567",
"0.51628315",
"0.51572365",
"0.51473355",
"0.5142538",
"0.51357245",
"0.5130502",
"0.5124458",
"0.51231",
"0.5113934",
"0.5110944",
"0.51104975",
"0.51072276",
"0.5106579",
"0.51009",
"0.50972974",
"0.5094233",
"0.5093838",
"0.5093157",
"0.50928503"
] | 0.61085963 | 10 |
Check tiles to my left | public boolean checkWest(HashMap<Coordinate,MapTile> currentView){
Coordinate currentPosition = new Coordinate(getPosition());
for(int i = 0; i <= wallSensitivity; i++){
MapTile tile = currentView.get(new Coordinate(currentPosition.x-i, currentPosition.y));
if(tile.isType(MapTile.Type.WALL)){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean canMoveLeft()\n {\n // runs through board row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = 1; column < grid[row].length; column++ ) {\n\n // looks at tile directly to the left of the current tile\n int compare = column-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public void adjustLeft() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x - 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x - 4;\n grassTiles[x][y].x = grassTiles[x][y].x - 4;\n }\n }",
"public boolean checkLeft()\n\t{\n\t\tif(col-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"private int check(int tiles_per_cam_width) {\r\n\t\tif( left_map_scroll >= left_map_width) {\r\n\t\t\ttotal_maps++;\r\n\t\t\tmap[l()].dispose();\r\n\t\t\tleft_map = r();\r\n\t\t\tint random_map = (int)Math.round(2+Math.random()*14);\r\n\t\t\tif( left_map == 1 )\r\n\t\t\t\t_load(r(), random_map );\r\n\t\t\telse //for later\r\n\t\t\t\t_load(r(), random_map );\r\n\t\t\tint left_map_width_return = left_map_width;\r\n\t left_map_scroll -= left_map_width;\r\n\t\t\tleft_map_width = map[l()].\r\n\t\t\t\t\tgetProperties().get(\"width\", Integer.class);\r\n\t\t\tscrollCam( tiles_per_cam_width );\r\n\t\t\treturn left_map_width_return;\r\n\t\t}\r\n\t\tscrollCam( tiles_per_cam_width );\r\n\t\treturn 0;\r\n\t}",
"public boolean moveLEFT() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tfor(i = (rows_size-1) ; i >= 0 ; i--) {\r\n\t\t\tfor( j = 0; j < columns_size; j++) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = j; k >= 0 && isEmpty(i,k-1); k--);\r\n\t\t\t\t\t\tif(k == 0) {\t\r\n\t\t\t\t\t\t\tif( k != j) {\r\n\t\t\t\t\t\t\tgame[i][k] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[i][k-1]) && game[i][k-1].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[i][k-1].setValue(game[i][k-1].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[i][k-1].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[i][k-1].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tif( k != j) {\r\n\t\t\t\t\t\t\t\tgame[i][k] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t}\t\t\r\n\t}\r\n\tFalseFlag();\t\r\n\treturn flag;\r\n\t}",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"private boolean checkLeftSpace(Position p, int len,\n int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n if (i < 0) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"public boolean moveLeft() {\n\t\tif (check(col-1, row)) {\n\t\t\tHiVolts.board.squares[row][col] = 0;\n\t\t\tcol = col - 1;\n\t\t\tHiVolts.board.squares[row][col] = 2;\n\t\t\tsuper.moveLeft();\n\t\t}\n\t\treturn true;\n\t}",
"private void moveShipLeft()\r\n\t\t{\r\n\t\t\t\tboolean moved = true;\r\n \tint currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp != 0)//if unit tries to move onto land\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n\t\t}",
"@Override\r\n\tpublic void moveLeft() {\n\t\tswitch(state) {\r\n\t\tcase 0: case 2:\r\n\t\t\t{\r\n\t\t\t\tboolean ok = true;\r\n\t\t\t\tfor(Case c: cases) {\r\n\t\t\t\t\tif(!grille.isEmpty(c.getX()+x-1, c.getY()+y))\r\n\t\t\t\t\t\tok = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(ok)\r\n\t\t\t\t\t--x;\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t{\r\n\t\t\tint x3 = cases.get(3).getX()-1, y3 = cases.get(3).getY();\r\n\t\t\tif(grille.isEmpty(x+x3, y+y3))\r\n\t\t\t\t--x;\r\n\t\t\t\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 3:\r\n\t\t{\r\n\t\t\tint x0 = cases.get(0).getX()-1, y0 = cases.get(0).getY();\r\n\t\t\tif(grille.isEmpty(x+x0, y+y0))\r\n\t\t\t\t--x;\r\n\t\t}\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault : \r\n\t\t\treturn;\r\n\t\t}\r\n\t}",
"public boolean stepLeft() {\n //it should be wall and maze border check here\n xMaze--;\n printMyPosition();\n return true; // should return true if step was successful\n }",
"public void checkLeftAndRightXs() {\r\n this.leftX = (int) this.enemies.get(0).getCollisionRectangle().getBoundaries().getLeftX();\r\n this.rightX = (int) (this.enemies.get(0).getCollisionRectangle().getBoundaries().getRightX());\r\n for (Enemy e : enemies) {\r\n if (e.getCollisionRectangle().getBoundaries().getLeftX() < this.leftX) {\r\n this.leftX = (int) e.getCollisionRectangle().getBoundaries().getLeftX();\r\n }\r\n if (e.getCollisionRectangle().getBoundaries().getRightX() > this.rightX) {\r\n this.rightX = (int) e.getCollisionRectangle().getBoundaries().getRightX();\r\n }\r\n }\r\n }",
"private boolean canMoveRight()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length ; row++ ) {\n for ( int column = grid[row].length-2; column >=0 ; column-- ) {\n\n // looks at tile directly to the right of the current tile\n int compare = column + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[row][compare] == 0 || grid[row][column] ==\n grid[row][compare] ) {\n return true; \n }\n }\n }\n } \n return false;\n }",
"public void rotateLeft() {\n // I fucked up? Rotations are reversed, just gonna switch em\n// tileLogic = getRotateLeft();\n tileLogic = getRotateRight();\n// rotateLeftTex();\n rotateRightTex();\n }",
"private void moveLeft()\n {\n // runs through row first, column second\n for ( int row = 0; row < grid.length; row++) {\n\n // check is set to false, meaning no combinations have been made\n boolean check = false;\n for ( int column = 1; column < grid[row].length; column++) {\n int compare = column;\n if ( grid[row][compare] != 0 ) {\n\n // loop continues while there are still zero values to the left of a\n // tile\n while ( grid[row][compare-1] == 0 ) {\n\n // switches places of the current tile with the zero tile\n grid[row][compare-1] = grid[row][compare];\n grid[row][compare] = 0;\n compare --;\n\n // if you reach the end of your board, break from the loop\n if ( compare == 0 ){\n break;\n }\n }\n // if a combination was made on the previous loop, set check to false\n if ( check == true ){\n check = false;\n }\n // if a conbination wasn't made on the previous loop and two tiles\n // next to each other have the same value, combine them\n else if ( compare!=0 && grid[row][compare-1] == grid[row][compare]) {\n grid[row][compare-1] = 2*grid[row][compare-1];\n grid[row][compare] = 0;\n\n // sets check to true to indicate a combination was made\n check = true;\n\n // increases your score by the value of the combined tile\n score+= grid[row][compare-1];\n } \n }\n }\n }\n }",
"public boolean isleft(){\n\t\tif (x>0 && x<Framework.width && y<Framework.height )//bullet can in the air(no boundary on the top. )\n\t\t\treturn false; \n\t\telse \n\t\t\treturn true; \n\t}",
"private void wrap() {\n if (myCurrentLeftX % (Grass.TILE_WIDTH * Grass.CYCLE) == 0) {\n if (myLeft) {\n myCowboy.move(Grass.TILE_WIDTH * Grass.CYCLE, 0);\n myCurrentLeftX += (Grass.TILE_WIDTH * Grass.CYCLE);\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i]\n .move(Grass.TILE_WIDTH * Grass.CYCLE, 0);\n }\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i].move(Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n } else {\n myCowboy.move(-(Grass.TILE_WIDTH * Grass.CYCLE), 0);\n myCurrentLeftX -= (Grass.TILE_WIDTH * Grass.CYCLE);\n for (int i = 0; i < myLeftTumbleweeds.length; i++) {\n myLeftTumbleweeds[i].move(-Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n for (int i = 0; i < myRightTumbleweeds.length; i++) {\n myRightTumbleweeds[i].move(-Grass.TILE_WIDTH * Grass.CYCLE,\n 0);\n }\n }\n }\n }",
"public boolean moveUpLeft() {\n\t\tif (check(col-1, row-1)) {\n\t\t\tHiVolts.board.squares[row][col] = 0; // set current location to nothing\n\t\t\tcol = col - 1; // get new x\n\t\t\trow = row - 1; // get new y\n\t\t\tHiVolts.board.squares[row][col] = 2; // set new location to avatar\n\t\t\tsuper.moveUpLeft(); // calls move function in piece\n\t\t}\n\t\treturn true;\n\t}",
"void hasLeft();",
"public void PlayerX(){\n\n if(directionX > 0){//going right\n int tempX = (int) ((x + directionX + bmp.getWidth()) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n else if(directionX < 0){//going left\n int tempX = (int)((x + directionX) / Tile.tileWidth);\n if(!CollisionWithTile(tempX, (int)y / Tile.tileHeight)) {\n x += directionX * speed * time;\n }\n }\n }",
"public void SwipeLeft(){\n\t\tboolean SwipeSuccess = false;\n\t\tfor(int row = 0; row <= 3; row++){\n\t\t\tLinkedList<BlockFor2048> BlocksInRow = new LinkedList<BlockFor2048>();\n\t\t\tLinkedList<BlockFor2048> Checker = new LinkedList<BlockFor2048>();\n\t\t\tfor(int col = 0; col <= 3; col++){\n\t\t\t\tif(this.myBoard[col][row] != null){\n\t\t\t\t\tBlocksInRow.add(this.myBoard[col][row]);\n\t\t\t\t}\n\t\t\t\tChecker.add(this.myBoard[col][row]);\n\t\t\t}\n\t\t\tLinkedList<BlockFor2048> MergedForRow = MergeBlocks(BlocksInRow);\n\n\t\t\twhile (MergedForRow.size() < 4){\n\t\t\t\tMergedForRow.add(null);\n\t\t\t}\n\t\t\tif (! (MergedForRow.equals(Checker)) ){\n\t\t\t\tSwipeSuccess = true;\n\t\t\t}\n\t\t\tfor(int col = 0; col <= 3; col++){\n\t\t\t\tthis.myBoard[col][row] = MergedForRow.pop();\n\t\t\t}\n\t\t}\n\t\tif (SwipeSuccess){\n\t\t\tthis.AddRandom2();\n\t\t}\n\t}",
"public void scrollLeft() {\r\n for(int i = 0; i < grid.getNumRows(); i++) {\r\n for(int j = 0; j < grid.getNumCols(); j++) {\r\n if(grid.getImage(i, j) == avoidImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, avoidImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n } else if(grid.getImage(i, j) == getImg) {\r\n if(j != 0) {\r\n grid.setImage(i, j, null);\r\n grid.setImage(i, j - 1, getImg);\r\n } else {\r\n grid.setImage(i, j, null);\r\n }\r\n }\r\n }\r\n }\r\n \r\n handleCollision(userRow, 1);\r\n }",
"public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}",
"private void upleftcontrol(Map map, int row, int column) throws NotValidCellException {\n try {\n if (map.getCell(row, column).getDice().getColor().equalsColor(map.getCell(row - 1, column - 1).getDice().getColor())) {\n if(!temp.contains(map.getCell(row, column).getDice()))\n temp.add(map.getCell(row, column).getDice());\n if(!temp.contains(map.getCell(row - 1, column - 1).getDice())) {\n temp.add(map.getCell(row - 1, column - 1).getDice());\n visitor(map, row - 1, column - 1);\n }\n }\n } catch (NullPointerException e) {\n // va bene così\n }\n }",
"public boolean moveLeft()\n {\n\tboolean update;\n\tboolean action = false;\n\t\t\n\tdo\n\t{\n update = false;\n\t\t\t\n for (int y=0; y<cases.length-1; y++)\n {\n for (int x=0; x<cases[y].length; x++)\n\t\t{\n boolean merge;\n boolean move;\n\t\t\t\t\t\n do\n {\n merge = merge(cases[x][y+1],cases[x][y]);\n move = move(cases[x][y+1],cases[x][y]);\n\t\t\tupdate = (update || merge || move);\n if(!action && update)\n {\n action = update; \n }\n } while (merge || move);\n }\n }\n } while (update);\n \n return action;\n }",
"public boolean checkSwitch(int row, int col){\n boolean output = false;\n Tile[] updownleftright = new Tile[4]; //Array which holds the four adjacent tiles\n if (row - 1 >= 0) updownleftright[0] = tiles[row - 1][col];\n else updownleftright[0] = nulltile;\n \n if (row + 1 < sidelength) updownleftright[1] = tiles[row + 1][col];\n else updownleftright[1] = nulltile;\n \n if (col - 1 >= 0) updownleftright[2] = tiles[row][col - 1];\n else updownleftright[2] = nulltile;\n \n if (col + 1 < sidelength) updownleftright[3] = tiles[row][col + 1];\n else updownleftright[3] = nulltile;\n \n for (int i = 0; i < 4; i ++) //Goes through the array and checks to see if any adjacent tile is the blank tile\n {\n if (updownleftright[i].getCurPic() == blankindex){\n tiles[row][col].swap(updownleftright[i]);\n return true;\n }\n }\n return false;\n }",
"private void moveUnitLeft()\r\n {\r\n boolean moved = true;\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 1)\r\n {\r\n int currentPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player1.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //if firstPlayer move unit left\r\n if(currentPlayer == 2)\r\n {\r\n int currentPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n if(currentPos == 0)\r\n {\r\n int mapTemp = mapPieces[0][mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(mapWidth - 1);\r\n }\r\n else\r\n {\r\n int temp1 = currentPos % mapWidth;\r\n if(temp1 == 0)\r\n {\r\n int mapTemp = mapPieces[0][currentPos + mapWidth - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos + mapWidth - 1);\r\n }//end if\r\n else\r\n {\r\n int mapTemp = mapPieces[0][currentPos - 1];\r\n if(mapTemp == 0 || mapTemp == 14)//if unit tries to move into sea\r\n moved = false;\r\n else\r\n worldPanel.player2.units[currentUnit - 1].setPosition(currentPos - 1);\r\n }//end else\r\n }//end else\r\n }//end if\r\n\r\n //set up new player once unit has moved\r\n playerMoved(currentPlayer,currentUnit,moved);\r\n\r\n //set up new mapPosition if player moved\r\n if(moved == true)\r\n setMapPos();\r\n }",
"public void left () {\n Grid<Actor> gr = getGrid();\n if (gr == null)\n return;\n Location loc = getLocation();\n Location next = loc.getAdjacentLocation(Location.WEST);\n if (canMove(next)) {\n moveTo(next);\n }\n }",
"private boolean leftBoundsReached(float delta) {\n return (textureRegionBounds2.x - (delta * speed)) <= 0;\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"private void downleftcontrol(Map map, int row, int column) throws NotValidCellException {\n try {\n if (map.getCell(row, column).getDice().getColor().equalsColor(map.getCell(row + 1, column - 1).getDice().getColor())) {\n if(!temp.contains(map.getCell(row, column).getDice()))\n temp.add(map.getCell(row, column).getDice());\n if(!temp.contains(map.getCell(row + 1, column - 1).getDice())) {\n temp.add(map.getCell(row + 1, column - 1).getDice());\n visitor(map, row + 1, column - 1);\n }\n }\n } catch (NullPointerException e) {\n // va bene così\n }\n }",
"public boolean lastHitLeft()\n\t{\n\t\treturn lastBorderHit[0];\n\t}",
"private int left(int row, int column, char check, char[][] leftBoard, ArrayList<Point> traversedPoints)\n\t{\n\t\tif (column == 0 || traversedPoints.contains(new Point(column - 1, row)))\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\telse if (leftBoard[column - 1][row] != ' ' && leftBoard[column - 1][row] != check)\n\t\t{\n\t\t\treturn -1;\n\t\t}\n\t\treturn column - 1;\n\t}",
"final protected boolean moveHorizontal(int[][] blockIdMap, int xPixelsMoved)\n {\n int gridX; //Entity x position converted to block index\n int gridYTop; //Entity y position converted to block index\n int gridYBottom; //Entity y position plus height converted to block index\n int idOfBlockAbove; //Id of the block at the top of the entity\n int idOfBlockBelow; //Id of the block at the bottom of the entity\n\n //Calculate the y index for the blocks above and below, subtract one to avoid getting stuck\n gridYTop = (boundingBox.y / Block.BLOCK_HEIGHT);\n gridYBottom = (boundingBox.y + boundingBox.height - 1) / Block.BLOCK_HEIGHT;\n\n //Attempt to move left with respect for block collisions\n if (xPixelsMoved < 0)\n {\n //Calculate x index for the block space that will be moved into\n gridX = (boundingBox.x + xPixelsMoved) / Block.BLOCK_WIDTH;\n\n //Attempting to move off left side of map\n if (gridX < 0 || boundingBox.x <= 0)\n {\n boundingBox.x = 0;\n return true;\n }\n else if (gridYTop < 0 || gridYBottom >= blockIdMap[0].length) //Above or below map, horizontal movement safe\n {\n boundingBox.x += xPixelsMoved;\n return false;\n }\n\n //Retrieve the indexes of the blocks just above and below the entity\n idOfBlockAbove = blockIdMap[gridX][gridYTop];\n idOfBlockBelow = blockIdMap[gridX][gridYBottom];\n\n //If either index is not 0 or 100, and is a solid block, then collision\n if ((idOfBlockAbove % 100 != 0 && (idOfBlockAbove / 100) >= 1)\n || (idOfBlockBelow % 100 != 0 && (idOfBlockBelow / 100) >= 1))\n {\n //Move up against the right side of the block to the left\n boundingBox.x = (gridX * Block.BLOCK_WIDTH) + Block.BLOCK_WIDTH;\n return true;\n }\n }\n else if (xPixelsMoved > 0) //Attempt to move right with respect for block collisions\n {\n //Calculate x index for the block space that will be moved into\n gridX = (boundingBox.x + boundingBox.width + xPixelsMoved) / Block.BLOCK_WIDTH;\n\n //Attempting to move off right side of map\n if (gridX >= blockIdMap.length)\n {\n boundingBox.x = (blockIdMap.length * Block.BLOCK_WIDTH) - boundingBox.width;\n return true;\n }\n else if (gridYTop < 0 || gridYBottom >= blockIdMap[0].length) //Above or below map, horizontal movement safe\n {\n boundingBox.x += xPixelsMoved;\n return false;\n }\n\n //Retrieve the indexes of the blocks just above and below the entity\n idOfBlockAbove = blockIdMap[gridX][gridYTop];\n idOfBlockBelow = blockIdMap[gridX][gridYBottom];\n\n //If either index is not 0 or 100, and is a solid block, then collision\n if ((idOfBlockAbove % 100 != 0 && (idOfBlockAbove / 100) >= 1)\n || (idOfBlockBelow % 100 != 0 && (idOfBlockBelow / 100) >= 1))\n {\n //Move up against the left side of the block to the right\n boundingBox.x = (gridX * Block.BLOCK_WIDTH) - boundingBox.width;\n return true;\n }\n }\n\n //No collision\n boundingBox.x += xPixelsMoved;\n return false;\n }",
"private int movesLeft() {\n\t\treturn movesLeft.size() - 1; // don't count quit\n\t}",
"private boolean slideLeft()\n {\n if (blankCol == SIZE - 1) {\n return false;\n }\n board[blankRow][blankCol] = board[blankRow][blankCol + 1];\n board[blankRow][blankCol + 1] = 0;\n blankCol += 1;\n return true;\n }",
"public boolean moveLeft() {\r\n\t\tif (this.x <= 0 == true) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tthis.x -= 5;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t}",
"private boolean checkDownSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j > y - len; j -= 1) {\n for (int i = x - rightWid; i < x + leftWid + 1; i += 1) {\n if (j < 0) {\n return false;\n }\n if (i < 0 || i >= worldWidth) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public void checkScreenCollisionLeftRight() {\n if (x <= radius || x >= GameView.width - radius) {\n speedX *= -1;\n if (x < radius) {\n x = (int) radius;\n }\n if (x > GameView.width - radius) {\n x = (int) (GameView.width - radius);\n }\n }\n }",
"void findLeft(Board board) {\n if (tile.getColPos() != 0) {\n Tile leftTile = board.getTileObjByPosition(tile.getRowPos(), tile.getColPos() - 1);\n if (leftTile != null) {\n if (RailroadInk.areConnectedNeighbours(tile.getPlacementStr(), leftTile.getPlacementStr())) {\n Node leftNode;\n if ((leftTile.graphId > 0) || ((leftTile.graphId == -1) && (leftTile.leftId == graphId))) {\n leftNode = nodeMap.get(leftTile.pos);\n } else {\n leftNode = new Node(leftTile);\n if (leftTile.name.equals(\"B2\")) {\n leftTile.rightId = graphId;\n }\n nodeMap.put(leftTile.pos, leftNode);\n }\n\n // Update the connection relationship.\n this.left = leftNode;\n leftNode.right = this;\n if (this.tile.name.equals(\"B2\")) {\n this.tile.leftId = graphId;\n }\n\n if ((!leftTile.name.equals(\"B2\")) && (leftNode.up == null)) {\n leftNode.findUp(board);\n }\n if ((!leftTile.name.equals(\"B2\")) && (leftNode.down == null)) {\n leftNode.findDown(board);\n }\n if (leftNode.left == null) {\n leftNode.findLeft(board);\n }\n }\n }\n }\n }",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"private void checkHorizontal() {\n\n for(int i = 0; i < stateArray.length; i++) {\n for (int j = 0; j < 2; j++){ // iterate only twice, because winning row\n \t // can be either 0-1-2-(3) or (0)-1-2-3\n if (check3Horizontal(i, j)){\n maskResultArray[stateArray[i][j]] = 1;\n maskArray[i][j] = 1;\n maskArray[i][j+1] = 1;\n maskArray[i][j+2] = 1;\n }\n\n }\n }\n\n }",
"protected void left() {\n move(positionX - 1, positionY);\n orientation = BattleGrid.RIGHT_ANGLE * 2;\n }",
"private void revealTiles() {\n\n for (int i = 0; i < minefield.getRows(); i++) {\n for (int j = 0; j < minefield.getCols(); j++) {\n if (minefield.getMinefield()[i][j].isRevealed()\n && !minefield.getMinefield()[i][j].isMined()) {\n tileLabel[i][j].setText(\"<html><b>\" + minefield.getMinefield()[i][j].getMinedNeighbours() + \"</html></b>\");\n tile[i][j].setBackground(new Color(208, 237, 243));\n switch (tileLabel[i][j].getText()) {\n case \"<html><b>0</html></b>\":\n tileLabel[i][j].setText(\"\");\n break;\n case \"<html><b>1</html></b>\":\n tileLabel[i][j].setForeground(Color.blue);\n break;\n case \"<html><b>2</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 100, 0));\n break;\n case \"<html><b>3</html></b>\":\n tileLabel[i][j].setForeground(Color.red);\n break;\n case \"<html><b>4</html></b>\":\n tileLabel[i][j].setForeground(new Color(75, 0, 130));\n break;\n case \"<html><b>5</html></b>\":\n tileLabel[i][j].setForeground(new Color(130, 0, 0));\n break;\n case \"<html><b>6</html></b>\":\n tileLabel[i][j].setForeground(new Color(0, 153, 153));\n break;\n case \"<html><b>7</html></b>\":\n tileLabel[i][j].setForeground(Color.black);\n break;\n case \"<html><b>8</html></b>\":\n tileLabel[i][j].setForeground(Color.darkGray);\n break;\n }\n }\n }\n }\n frame.repaint();\n }",
"private boolean wrongPositioning(int x, int y, LoadedMap map) {\n boolean ans = false;\n if(hasAbove(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))){\n ans = true;\n }else if (hasBelow(x, y, map)&&(hasLeft(x, y, map)||hasRight(x, y, map))) {\n ans = true;\n }\n return ans;\n }",
"boolean checkWin(Tile initialTile);",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void moveLeft()\n {\n if (!this.search_zone.isLeftBorder(this.x_position))\n {\n this.x_position = (this.x_position - 1);\n }\n }",
"static public Boolean slideTile(int row, int col, FloorTile newTile) {\r\n FloorTile oldTile1 = newTile;\r\n FloorTile oldTile2;\r\n boolean isNotFixed = true;\r\n if(row == 0 || row == board.length-1){//determine that the columns will be changed\r\n for (int i = 0; i < board.length; i++) {//check if there are any fixed or frozen tiles in the col\r\n if(board[i][col].isFixedTile() || board[i][col].isFrozen){\r\n isNotFixed = false;\r\n }\r\n }\r\n //move the tiles\r\n if(row == 0 && isNotFixed) {\r\n\r\n for(int i = 0; i < board.length; i++) {\r\n oldTile2 = board[i][col];\r\n board[i][col] = oldTile1;\r\n oldTile1 = oldTile2;\r\n }\r\n }else if(isNotFixed) {\r\n\r\n for(int i = board.length-1; i >= 0; i--) {\r\n oldTile2 = board[i][col];\r\n board[i][col] = oldTile1;\r\n oldTile1 = oldTile2;\r\n }\r\n }else {\r\n return false;\r\n }\r\n }else {//determine that the rows will be changed\r\n\r\n for (int i = 0; i < board[row].length; i++) {\r\n if(board[row][i].isFixedTile() || board[i][col].isFrozen){\r\n isNotFixed = false;\r\n }\r\n }\r\n\r\n if(col == 0 && isNotFixed) {\r\n for(int i = 0; i < board[row].length; i++) {\r\n oldTile2 = board[row][i];\r\n board[row][i] = oldTile1;\r\n oldTile1 = oldTile2;\r\n }\r\n\r\n }else if(isNotFixed) {\r\n for(int i = board[row].length-1; i >= 0; i--) {\r\n oldTile2 = board[row][i];\r\n board[row][i] = oldTile1;\r\n oldTile1 = oldTile2;\r\n }\r\n }else {\r\n return false;\r\n }\r\n\r\n }\r\n //if a player was standing on that tile it will be relocated to a new tile\r\n for(int i = 0; i < numOfPlayers; i++) {\r\n if(oldTile1 == players[i].getPosition()) {\r\n players[i].updateGetBackTiles(players[i].getPosition());\r\n players[i].setPosition(newTile);\r\n }\r\n }\r\n oldTile1.isFrozen = false;\r\n oldTile1.isOnFire = false;\r\n oldTile1.isFrozenForTheNextNTurns = 0;\r\n oldTile1.isOnFireForTheNextNTurns = 0;\r\n silkBag.add(oldTile1);\r\n return true;\r\n }",
"public boolean moveLeft() {\n if (position.isLinked(position.getWest())) {\n position.getGameObjects().remove(this.type);\n position = position.getWest();\n position.getGameObjects().add(this.type);\n return true;\n }\n return false;\n }",
"public boolean addBoardTile(Tile t, int xpos, int ypos) {\n \tTile leftTile = null;\n \tTile rightTile = null;\n \tif (ypos != 1) {\n \t\t// Aka if the tile isn't at the leftmost side\n \t\tleftTile = boardTiles.get(new Point(xpos - 1, ypos));\n \t} \t\n \tif (ypos != BoardController.BOARDSIZE) {\n \t\t// Aka if the tile isn't at the rightmost side\n \t\trightTile = boardTiles.get(new Point(xpos + 1, ypos));\n \t}\n \t\n \tif (leftTile != null && rightTile != null) {\n \t\t// Tile placed on the board between two existing melds\n \t\t// NOTE: If the tile is moved a space to the left or right, and that space is \n \t\t// not occupied, and there is another existing meld beside that space,\n \t\t// then the two melds are the meld it was moved beside and itself\n \t\tMeld leftMeld = findMeld(leftTile);\n \t\tMeld rightMeld = findMeld(rightTile);\n \t\t\n \t\t// First check if either meld is the single tile being moved\n \t\tif (leftMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(rightMeld.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (rightMeld.getTiles().contains(t)) {\n \t\t\t// Treat as adding only that tile\n \t\t\tif(leftMeld.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse if (leftMeld.addRightside(t)) {\n \t\t\tif(combineMeld(leftMeld, rightMeld)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t \t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\t\tcontroller.updateView();\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\telse {\n \t\t\t\tleftMeld.removeFromMeld(t);\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\treturn false;\n \t}\n \t\n \telse if (leftTile == null && rightTile == null) {\n \t\t// Tile is placed on the board as the start of a new meld!\n \t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tremoveHandTile(t);\n\t\t\t}\n\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n\t\t\tcontroller.updateView();\n\t\t\treturn true;\n \t}\n \t\n \telse if(leftTile != null) {\n \t\t// Tile is added to the end of an existing meld\n \t\t// OR tile is moved to the right and the left tile is itself!\n \t\t\n \t\tif (leftTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(leftTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(leftTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(leftTile).setMeld(t, 0)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(leftTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addRightside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"2\");\n \t\t\treturn false;\n \t\t}\n \t}\n \t\n \telse if(rightTile != null) {\n \t\tif (rightTile.equals(t)) {\n \t\t\tif (findMeld(t).getSize() == 1) {\n \t\t\t\tmelds.remove(findMeld(t));\n \t\t\t}\n \t\t\telse {\n \t\t\t\tfindMeld(t).removeFromMeld(t);\n \t\t\t}\n \t\t\tmelds.add(new Meld(t));\n \t\tif (boardTiles.containsValue(t)) {\n \t\t\tremoveBoardTile(t);\n \t\t\t}\n \t\t\telse {\n \t\t\t\tremoveHandTile(t);\n \t\t\t}\n \t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t}\n \t\t\n \t\tif(rightTile.getID() > 9) {\n \t\t\t// First tile of meld to add to is a joker\n \t\t\tif (findMeld(rightTile).getSize() == 2) {\n \t\t\t\t// Just the joker and another tile in the meld\n \t\t\t\t// Can change the joker's value now to reflect the newly\n \t\t\t\t// added tile\n \t\t\t\tif(findMeld(rightTile).setMeld(t, 1)) {\n \t\t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t \t\t\tcontroller.updateView();\n \t\t\t\t\treturn true;\n \t\t\t\t}\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\t\n \t\tMeld meldToAddTo = findMeld(rightTile);\n \t\tif (meldToAddTo != null) {\n \t\t\tif(meldToAddTo.addLeftside(t)) {\n \t\t\t\tif (boardTiles.containsValue(t)) {\n \t\t\t\t\tremoveBoardTile(t);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tremoveHandTile(t);\n \t\t\t\t}\n \t\t\t\tboardTiles.put(new Point(xpos, ypos), t);\n \t\t\tcontroller.updateView();\n \t\t\treturn true;\n \t\t\t}\n \t\t\tSystem.out.print(\"We get here >:\");\n \t\t\tSystem.out.print(t.getValue());\n \t\t\tSystem.out.print(t.getColour().getName());\n \t\t\t\n \t\t\tSystem.out.println(rightTile.getValue());\n \t\t\tSystem.out.println(rightTile.getColour().getName());\n \t\t\treturn false;\n \t\t}\n \t\telse {\n \t\t\t// The tile that was already on the board is\n \t\t\t// somehow not found in any meld. Should not\n \t\t\t// reach here!\n \t\t\tSystem.out.println(\"3\");\n \t\t\treturn false;\n \t\t}\n \t}\n \telse {\n \t\t// Should not reach here, throw an error if it does\n \t\tSystem.out.println(\"4\");\n \t\treturn false;\n \t}\n }",
"private float checkHorizontal(Point2D.Float position, int firepower, boolean pierce, int blockWidth) {\r\n float value = position.x; // Start at the origin tile\r\n\r\n outer: for (int i = 1; i <= firepower; i++) {\r\n // Expand one tile at a time\r\n value += blockWidth;\r\n\r\n // Check this tile for wall collision\r\n for (int index = 0; index < GameObjectCollection.tileObjects.size(); index++) {\r\n TileObject obj = GameObjectCollection.tileObjects.get(index);\r\n if (obj.collider.contains(value, position.y)) {\r\n if (!obj.isBreakable()) {\r\n // Hard wall found, move value back to the tile before\r\n value -= blockWidth;\r\n }\r\n\r\n // Stop checking for tile objects after the first breakable is found\r\n if (!pierce) {\r\n break outer;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return value;\r\n }",
"public boolean isLegalStep(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\tPlayer white = currentGame.getWhitePlayer();\n\t\tint[] toCheckPos = new int[2];\n\t\tint[] existingPos = new int[2];\n\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\ttoCheckPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t} else {\n\t\t\ttoCheckPos[0] = curPos.getBlackPosition().getTile().getColumn();\n\t\t\ttoCheckPos[1] = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\texistingPos[0] = curPos.getWhitePosition().getTile().getColumn();\n\t\t\texistingPos[1] = curPos.getWhitePosition().getTile().getRow();\n\t\t}\n\t\t//0 = column, 1 = row\n\t\tif(dir == MoveDirection.North) {\n\t\t\tif(toCheckPos[1] == 1) return false;\n\t\t\tif(toCheckPos[1] - 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), -1, 0);\n\t\t} else if(dir == MoveDirection.South) {\n\t\t\tif(toCheckPos[1] == 9) return false;\n\t\t\tif(toCheckPos[1] + 1 == existingPos[1] && toCheckPos[0] == existingPos[0]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 1, 0);\n\t\t} else if(dir == MoveDirection.East) {\n\t\t\tif(toCheckPos[0] == 9) return false;\n\t\t\tif(toCheckPos[0] + 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, 1);\n\t\t} else if(dir == MoveDirection.West) {\n\t\t\tif(toCheckPos[0] == 1) return false;\n\t\t\tif(toCheckPos[0] - 1 == existingPos[0] && toCheckPos[1] == existingPos[1]) return false;\n\t\t\treturn QuoridorController.noWallBlock(curPos.getPlayerToMove(), 0, -1);\n\t\t}\n\t\t\n\t\treturn false;\r\n }",
"public void turnLeft(int ticks){\n\t\tposition = (position + ticks)%40;\n\t\tcount++;\n\t\tcheckTurn(ticks);\n\t}",
"private void checkMoves(Tile t, MouseEvent e, ImageView img)\n {\n for(Tile tile : gb.getTiles())\n {\n tile.setStyle(null);\n tile.setOnMouseClicked(null);\n }\n ArrayList<Move> moves = t.getPiece().availableMoves(gb);\n for(Move m : moves)\n {\n gb.getTile(m.getX(),m.getY()).setStyle(\"-fx-background-color: #98FB98;\");\n gb.getTile(m.getX(),m.getY()).setOnMouseClicked(ev -> {\n if(ev.getTarget().getClass() == Tile.class)\n {\n movePiece(e,ev,t,img,moves);\n }\n else\n {\n ImageView img1 = (ImageView) ev.getTarget();\n Tile t2 = (Tile) img1.getParent();\n if(t2.isOccupied())\n {\n if(t2.getPiece().getClass() == King.class)\n {\n gb.setBlackKing(false);\n if(gameLogic.game(mainPane,gb.isBlackKing()))\n {\n cleanUp();\n }\n else {\n Platform.exit();\n }\n }\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n\n }\n else\n {\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n }\n cleanUpTile(moves);\n ev.consume();\n e.consume();\n }\n });\n }\n e.consume();\n }",
"private boolean hasLeft ( int pos )\n\t{\n\t\treturn false; // replace this with working code\n\t}",
"private boolean checkUpSpace(Position p,\n int len, int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int j = y; j < y + len; j += 1) {\n for (int i = x - leftWid; i < x + rightWid + 1; i += 1) {\n if (j >= worldHeight) {\n return false;\n }\n if (i < 0 || i >= worldWidth) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private void checkInFront(Tile[][] chessBoard,int pawnX,int pawnY, char pawnColor) {\r\n\t\tint direction;\r\n\t\tBoolean extraStep = false;\r\n\t\tif (pawnColor =='w') {\r\n\t\t\tdirection = 1;\r\n\t\t\tif (pawnY == 1){\r\n\t\t\t\textraStep = true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t\tif (pawnY == 6) {\r\n\t\t\t\textraStep = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (extraStep) {\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY, direction);\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY, 2*direction);\r\n\t\t} else {\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY,direction);\r\n\t\t}\r\n\t}",
"public void startGameState(){\n\n ArrayList<Integer> checkeredSpaces = new ArrayList<Integer>(Arrays.asList(1, 3, 5, 7, 8, 10, 12, 14, 17, 19, 21,\n 23, 24, 26, 28, 30, 33, 35, 37, 39, 41, 42, 44, 46, 48,\n 51, 53, 55, 56, 58, 60, 62));\n\n\n\n for(int i =0; i < 63; i++){\n if(!checkeredSpaces.contains(i)){\n //set all black spaces to null on the board\n mCheckerBoard.add(null);\n }\n else if(i < 24){\n //set first three rows to red checkers\n mCheckerBoard.add(new Checker((i/2), true));\n }\n else if(i < 40){\n //set middle two rows to null\n mCheckerBoard.add(null);\n }\n else{\n //set top three row to black checkers\n mCheckerBoard.add(new Checker((i/2), false));\n }\n }\n\n }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public void checkLeftCollision(FloatRect x){\r\n if((int)rect1.left < x.left ) {\r\n centerX -= 6;\r\n }\r\n }",
"public boolean left() {\r\n if( col <= 0 ) return false;\r\n --col;\r\n return true;\r\n }",
"private void addLeftBlock(Position p, TETile te,\n int len, int leftWid, int rightWid) {\n\n int x = p.x;\n int y = p.y;\n for (int i = x; i > x - len; i -= 1) {\n for (int j = y - leftWid; j < y + rightWid + 1; j += 1) {\n world[i][j] = te;\n }\n }\n }",
"public void adjustRight() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].x = tiles[x][y].x + 4;\n backGroundTiles[x][y].x = backGroundTiles[x][y].x + 4;\n grassTiles[x][y].x = grassTiles[x][y].x + 4;\n }\n\n }",
"@Override\n\tpublic boolean moveLeft() {\n\t\tboolean rs = super.moveLeft();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t}",
"public void moveTileLeft(float delta) {\n if (x > destinationX + COMBAT_MOVEMENT_SPEED * delta) speedX = -COMBAT_MOVEMENT_SPEED;\n else {\n speedX = (destinationX - x) / delta;\n isMoving = false;\n isMovingLeft = false;\n }\n direction = Direction.LEFT;\n }",
"private boolean checkHorizontal(int move)\n\t{\n\t\tPiece moveColor = board[6 - columns[move]][move];\n\t\tint i = move;\n\t\tint idx = 1;\n\t\tint lineCount = 1;\n\t\tboolean left, right;\n\t\tleft = right = true;\n\n\t\tfor (; idx < 4; idx++)\n\t\t{\n\t\t\tif (!left || (i - idx) < 0 || board[6 - columns[move]][i - idx] == null)\n\t\t\t{\n\t\t\t\tleft = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (moveColor.equals(board[6 - columns[move]][i - idx]))\n\t\t\t\t{\n\t\t\t\t\tlineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tleft = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!right || (i + idx) > 6 || board[6 - columns[move]][i + idx] == null)\n\t\t\t{\n\t\t\t\tright = false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tif (moveColor.equals(board[6 - columns[move]][i + idx]))\n\t\t\t\t{\n\t\t\t\t\tlineCount++;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tright = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (lineCount > 3)\n\t\t\t{\n\t\t\t\twon = true;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if (!left && !right)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void shiftDownTiles(boolean isBorder, int shiftAmount){\n List<Tile> listOfTilesToUpdate = new ArrayList<Tile>();\n int floorRowIndex;\n if(isBorder){\n floorRowIndex=this.board.gridHeight-2;\n } else {\n floorRowIndex=this.board.gridHeight-1;\n }\n\n\n //update all existing tiles y coordinates with shifted y coordinates\n //only shift tile above the row that is being removed\n for(int rowIndex=0; rowIndex<this.rowToBeRemovedIndex; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n if(this.board.getTile(colIndex,rowIndex)!=null){ //tile exist at coordinates\n if(isBorder){\n if(rowIndex<=floorRowIndex){ //Stop at floor wall\n int leftWallIndex=0;\n int rightWallIndex=this.board.gridWidth-1;\n if(colIndex>leftWallIndex && colIndex<rightWallIndex){ //Ignore the the left and right walls\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n } else {\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n }\n }\n\n //Clear Board Grid. Set every element in 2D array to null.\n for(int rowIndex=0; rowIndex<this.board.gridHeight; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n Tile tile = this.board.getTile(colIndex, rowIndex);\n this.board.removeTile(tile);\n }\n }\n\n //add back tetris border\n if(this.includeTetrisBorder) {\n addBorder();\n }\n\n //Insert new tiles\n for(Tile newTile : listOfTilesToUpdate){\n this.board.placeTile(newTile);\n }\n }",
"void check(){\n if(!data.up.isEmpty()){\r\n if(data.floor == data.up.get(0)){\r\n data.up.remove(0);\r\n data.state = 0;\r\n data.statePrv = 1;\r\n data.isMoving = false;\r\n }\r\n }\r\n if(!data.down.isEmpty()){\r\n if(data.floor == data.down.get(0)){\r\n data.down.remove(0);\r\n data.state = 0;\r\n data.statePrv = -1;\r\n data.isMoving = false;\r\n }\r\n }\r\n }",
"private boolean checkRightSpace(Position p, int len,\n int leftWid, int rightWid) {\n int x = p.x;\n int y = p.y;\n for (int i = x; i < x + len; i += 1) {\n for (int j = y - rightWid; j < y + leftWid + 1; j += 1) {\n if (i >= worldWidth) {\n return false;\n }\n if (j < 0 || j >= worldHeight) {\n return false;\n }\n if (!world[i][j].equals(Tileset.NOTHING)) {\n return false;\n }\n }\n }\n return true;\n }",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Integer checkLeft()\r\n\t{\r\n\t\treturn this.X - 1;\r\n\t}",
"private boolean movingLeft() {\n return this.velocity.sameDirection(Vector2D.X_UNIT.opposite());\n }",
"private void handleLeft() {\r\n\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getCurrentPosition().getX()-1);\r\n\t\t// if User reaches the end of the board reset position\r\n\t\tif(controller.getCurrentPosition().getX()==-1) {\r\n\t\t\tcontroller.getCurrentPosition().realocate((controller.getCurrentPosition().getY()), controller.getNumberColumns()-1);\r\n\t\t}\r\n\t\t// remove the pseudo Class from all nodes so that only the cell that was pressed last looks 'pressed'\r\n\t\tfor (Node n : controller.getGridBoard().getChildren()) {\r\n\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), false);\r\n\t\t\tif (GridPane.getColumnIndex(n) == controller.getCurrentPosition().getX() && GridPane.getRowIndex(n) == controller.getCurrentPosition().getY()) {\r\n\t\t\t\t((StackPane) n).pseudoClassStateChanged(PseudoClass.getPseudoClass(\"pressed\"), true);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }",
"private static int leftScore(char piece, State state, int row, int col) {\n\t\tif(col != 0 && state.getGrid()[row][col-1] == piece) {\n\t\t\treturn NEXT_TO;\n\t\t}\n\t\telse {\n\t\t\treturn ZERO;\n\t\t}\n\t}",
"public boolean isLegalJump(MoveDirection dir){\r\n GamePosition curPos = currentGame.getCurrentPosition();\n\t\t\tPlayer white = currentGame.getWhitePlayer();\n\t\t\tint whiteCol = curPos.getWhitePosition().getTile().getColumn();\n\t\t\tint whiteRow = curPos.getWhitePosition().getTile().getRow();\n\t\t\tint blackCol = curPos.getBlackPosition().getTile().getColumn();\n\t\t\tint blackRow = curPos.getBlackPosition().getTile().getRow();\n\t\t\t\n\t\t\tint rChange = 0, cChange = 0;\n\t\t\tif(dir == MoveDirection.North) rChange = -2;\n\t\t\telse if(dir == MoveDirection.South) rChange = 2;\n\t\t\telse if(dir == MoveDirection.East) cChange = 2;\n\t\t\telse if(dir == MoveDirection.West) cChange = -2;\n\t\t\telse return false;\n\t\t\t\n\t\t\tif(curPos.getPlayerToMove().equals(white)) {\n\t\t\t\t\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || blackCol != (whiteCol + (cChange / 2) ) ) return false;\n\t\t\t\t\twhiteCol += cChange;\n\t\t\t\t\tif(whiteCol < 1 || whiteCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (whiteCol -cChange) + tmp;\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == whiteRow || w.getTargetTile().getRow() == whiteRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || blackRow != (whiteRow + (rChange / 2) ) ) return false;\n\t\t\t\t\twhiteRow += rChange;\n\t\t\t\t\tif(whiteRow < 1 || whiteRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (whiteRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == whiteCol || w.getTargetTile().getColumn() == whiteCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t} else {\n\n\t\t\t\t//Moving left or right wall check\n\t\t\t\tif(cChange != 0) {\n\t\t\t\t\tif(blackRow != whiteRow || whiteCol != (blackCol + (cChange / 2) ) ) return false;\n\t\t\t\t\tblackCol += cChange;\n\t\t\t\t\tif(blackCol < 1 || blackCol > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Vertical) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//If left- check col -1, -2. If right- check col +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(cChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkCol = (blackCol -cChange) + tmp;\n\n\t\t\t\t\t\t\tif((w.getTargetTile().getColumn() == checkCol ||w.getTargetTile().getColumn() == checkCol + 1) && \n\t\t\t\t\t\t\t (w.getTargetTile().getRow() == blackRow || w.getTargetTile().getRow() == blackRow - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Horizontal Wall can't block right/left path\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//Moving up or down wall check\n\t\t\t\telse if(rChange != 0) {\n\t\t\t\t\tif(blackCol != whiteCol || whiteRow != (blackRow + (rChange / 2) ) ) return false;\n\t\t\t\t\tblackRow += rChange;\n\t\t\t\t\tif(blackRow < 1 || blackRow > 9) return false;\n\t\t\t\t\tfor(WallMove w : QuoridorController.getWalls()) {\n\t\t\t\t\t\tif(w.getWallDirection() == Direction.Horizontal) {\n\t\t\t\t\t\t\t//If up- check row -1, -2. If down- check row +0, +1\n\t\t\t\t\t\t\tint tmp;\n\t\t\t\t\t\t\tif(rChange < 0) tmp = -2;\n\t\t\t\t\t\t\telse tmp = 0;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tint checkRow = (blackRow -rChange) + tmp;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif((w.getTargetTile().getRow() == checkRow || w.getTargetTile().getRow() == checkRow + 1)\n\t\t\t\t\t\t\t\t&& (w.getTargetTile().getColumn() == blackCol || w.getTargetTile().getColumn() == blackCol - 1)) {\n\t\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//Vertical Wall can't block up/down path\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif((blackRow == whiteRow) && (blackCol == whiteCol)) return false;\n\t\t\t}\n\t\t\treturn true;\r\n }",
"public boolean tileFence(float xTile, float yTile)\r\n/* 202: */ {\r\n/* 203:226 */ return (tileInBounds(xTile, yTile)) && (this.door[((int)xTile)][((int)yTile)] != 0);\r\n/* 204: */ }",
"@Override\n public void checkMousePressOnSprites(MiniGame game, int x, int y)\n {\n // FIGURE OUT THE CELL IN THE GRID\n int col = calculateGridCellColumn(x);\n int row = calculateGridCellRow(y);\n \n // DISABLE THE STATS DIALOG IF IT IS OPEN\n if (game.getGUIDialogs().get(STATS_DIALOG_TYPE).getState().equals(VISIBLE_STATE))\n {\n game.getGUIDialogs().get(STATS_DIALOG_TYPE).setState(INVISIBLE_STATE);\n return;\n }\n \n // CHECK THE TOP OF THE STACK AT col, row\n ArrayList<MahjongSolitaireTile> tileStack = tileGrid[col][row];\n if (tileStack.size() > 0)\n {\n // GET AND TRY TO SELECT THE TOP TILE IN THAT CELL, IF THERE IS ONE\n MahjongSolitaireTile testTile = tileStack.get(tileStack.size()-1);\n if (testTile.containsPoint(x, y))\n selectTile(testTile);\n }\n }",
"boolean reachedLeft() {\n\t\treturn this.x <= 0;\n\t}",
"@Test\n public void testGetHorizontalLeftPillar(){\n Pillar cornerPillar = largePillarMap.get(Maze.position(0,0));\n Pillar edgePillar = largePillarMap.get(Maze.position(4,3));\n Pillar neighbor = largeMaze.getHorizontalPillar(cornerPillar, true);\n assertEquals(1, neighbor.getX());\n assertEquals(0, neighbor.getY());\n\n neighbor = largeMaze.getHorizontalPillar(edgePillar, true);\n assertEquals(null, neighbor);\n }",
"private void LeftRightLeft() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"public boolean itemonfloor(){\n\t\tint XI = 0;\n\t\tint YI = 0;\n\t\tint Xyou = 1;\n\t\tint Yyou = 1;\n\t\tfor(int i = 0 ; i < this.Items.length;i++){\n\t\t\tfor(int p = 0; p < this.Items.length;p++){\n\t\t\t\tif(this.Items[i][p] != null && this.position[i][p] == 1){\n\t\t\t\t\tYI = i;\n\t\t\t\t\tXI = p;\n\t\t\t\t\tYyou = i;\n\t\t\t\t\tXyou = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}//end of outter for\n\t\tif(YI==Yyou && XI==Xyou){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"void checkCol() {\n Player player = gm.getP();\n int widthPlayer = (int) player.getImg().getWidth();\n int heightPlayer = (int) player.getImg().getHeight();\n Bullet dummyBuullet = new Bullet();\n int widthBullet = (int) dummyBuullet.getImg().getWidth();\n int heightBullet = (int) dummyBuullet.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n // the bullet must be an enemy bullet\n if (bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the bullet location is inside the rectangle of player\n if ( Math.abs( bullet.getX() - player.getX() ) < widthPlayer / 2\n && Math.abs( bullet.getY() - player.getY() ) < heightPlayer / 2 ) {\n // 1) destroy the bullet\n // 2) decrease the life of a player\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n bullet.setActive(false);\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n break;\n }\n }\n }\n // 2'nd case\n // the enemy is hit with player bullet\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n for (Bullet bullet : gm.getBulletList()) {\n if (!bullet.isEnemyBullet() && bullet.isActive()) {\n // the condition when the player bullet location is inside the rectangle of enemy\n if (Math.abs(enemy.getX() - bullet.getX()) < (widthBullet / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - bullet.getY()) < (heightBullet / 2 + heightEnemy / 2)) {\n // 1) destroy the player bullet\n // 2) destroy the enemy\n if (destroyedEnemy % 3 == 0 && destroyedEnemy != 0) onlyOnce = 0;\n destroyedEnemy++;\n gm.increaseScore();\n enemy.setActive(false);\n\n\n if(enemy.hTitanium()) {\n gm.getTitaniumList()[gm.getTitaniumIndex()].setX(enemy.getX());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setY(enemy.getY());\n gm.getTitaniumList()[gm.getTitaniumIndex()].setActive(true);\n gm.increaseTitaniumIndex();\n }\n\n if(enemy.hBonus()) {\n \tgm.getBonusList()[gm.getBonusIndex()].setX(enemy.getX());\n \tgm.getBonusList()[gm.getBonusIndex()].setY(enemy.getY());\n \tgm.getBonusList()[gm.getBonusIndex()].setActive(true);\n \tgm.increaseBonusIndex();\n }\n bullet.setActive(false);\n break;\n }\n }\n }\n }\n }\n\n // 3'rd case\n // the player collided with enemy ship\n for (Enemy enemy : gm.getEnemyList()) {\n if (enemy.isActive()) {\n int widthEnemy = (int) enemy.getImg().getWidth();\n int heightEnemy = (int) enemy.getImg().getHeight();\n // the condition when the enemy rectangle is inside the rectangle of player\n if (Math.abs(enemy.getX() - player.getX()) < (widthPlayer / 2 + widthEnemy / 2)\n && Math.abs(enemy.getY() - player.getY()) < (heightPlayer / 2 + heightEnemy / 2)) {\n // 1) destroy the enemy\n // 2) decrease the player's life\n if(gm.getP().getHasShield() == false)player.decreaseLife();\n gm.getP().setHasShield(false);\n if(gm.getP().getCurDirection() == 0){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipLeft4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if(gm.getP().getCurDirection() == 1){\n try (FileInputStream inputStream = new FileInputStream(\"MediaFiles/spaceshipRight4.png\")) {\n gm.getP().setImg(new Image(inputStream)) ;\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n enemy.setActive(false);\n\n break;\n }\n }\n }\n\n for (Bonus bonus : gm.getBonusList()) {\n if (bonus.isActive()) {\n int widthBonus = (int) bonus.getImg().getWidth();\n int heightBonus = (int) bonus.getImg().getHeight();\n if (Math.abs(bonus.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(bonus.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n bonus.setActive(false);\n if (bonus.getType() == 1) {\n if (player.getLives() < player.getMaxLives()) {\n player.setLives(player.getLives() + 1);\n }\n }\n else{\n superAttack = 1;\n }\n }\n }\n }\n\n for (Titanium titanium : gm.getTitaniumList()) {\n if (titanium.isActive()) {\n int widthBonus = (int) titanium.getImg().getWidth();\n int heightBonus = (int) titanium.getImg().getHeight();\n if (Math.abs(titanium.getX() - player.getX()) < (widthPlayer / 2 + widthBonus / 2)\n && Math.abs(titanium.getY() - player.getY()) < (heightPlayer / 2 + heightBonus / 2)) {\n titanium.setActive(false);\n gm.getP().increaseTitanium();\n }\n }\n }\n\n }",
"public int checkAllertBox() {\n mouseX = (float) ((currentPos.x * 1.0f - window.getWidth() / 2f) / (window.getWidth() / 2f));\n mouseY = (float) ((currentPos.y * 1.0f - window.getHeight() / 2f) / (window.getHeight() / 2f));\n\n float checkLeftButtonOnLeft = -0.475f * boxRatio * 0.8f;\n float checkLeftButtonOnRight = -0.075f * boxRatio * 0.8f;\n\n float checkRightButtonOnLeft = 0.075f * boxRatio * 0.8f;\n float checkRightButtonOnRight = 0.475f * boxRatio * 0.8f;\n\n int checkButton = 0;\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 11;\n }\n\n if (checkLeftButtonOnLeft < mouseX && mouseX < checkLeftButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 12;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f) {\n checkButton = 21;\n }\n\n if (checkRightButtonOnLeft < mouseX && mouseX < checkRightButtonOnRight && mouseY > -0.079f && mouseY < -0.003f && isLeftButtonPressed()) {\n checkButton = 22;\n }\n\n return checkButton;\n }",
"void left() {\n startAnimation(leftSubCubes(), Axis.X, Direction.ANTICLOCKWISE);\n leftCubeSwap();\n }",
"public void sideCheck() {\n /*Be careful when creating tiles, especially ones that allow Sonic's bottom and middle sensors to intersect \n the same tile*/\n mLCollide = false;\n mRCollide = false;\n if(grounded) {\n if(groundSpeed > 0) {\n sideCollision(middleRight);\n }\n else if(groundSpeed < 0) {\n sideCollision(middleLeft);\n } \n }\n else if(!grounded) {\n if(xSpeed < 0) {\n sideCollision(middleLeft);\n }\n else if(xSpeed > 0) {\n sideCollision(middleRight);\n }\n }\n }",
"@Test\n\tpublic void leftRightWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(24,58);\n\t\td.set(9,68);\n\t\td.set(9,57);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(57);\n\t\tassertTrue(2==test_arr.get(0).getX() && 5==test_arr.get(0).getY()); \n\t}",
"public boolean moveLeft() \r\n\t{\r\n\t\tboolean moved = false;\r\n\t\tif ( maze [currentRow] [currentCol].isOpenLeft() )\r\n\t\t{\r\n\t\t\tmaze [currentRow] [currentCol].removeWalker(Direction.LEFT);\r\n\t\t\tif ( currentCol-1 < 0 || maze [currentRow] [currentCol-1].isOpenRight() )\r\n\t\t\t{\r\n\t\t\t\tcurrentCol--;\r\n\t\t\t\tmoved = true;\r\n\t\t\t}\r\n\t\t\tif ( currentCol >= 0 )\r\n\t\t\t\tmaze [currentRow] [currentCol].InsertWalker();\r\n\t\t}\r\n\t\tSystem.out.println( \"Move Left: \" + moved );\r\n\t\treturn moved;\r\n\t}",
"private boolean seeNextFloorX(Position target) {\n if (target.x == position.x) {\n return false;\n }\n if (target.x > position.x) {\n\n return world[position.x + 1][position.y].equals(Tileset.FLOOR);\n }\n if (target.x < position.x) {\n return world[position.x - 1][position.y].equals(Tileset.FLOOR);\n }\n return false;\n }",
"private int attack1Horizontal() { //yatay tekli atak fonksiyonu\r\n int status = -1;\r\n\r\n for (int i = row - 1; i >= 0; --i) {\r\n for (int j = 0; j < column; ++j) {\r\n if (gameCells[i][j].getCell() == 'O') {\r\n if (isLegal(i, j - 1)){\r\n status = j - 1;\r\n return status;\r\n }\r\n else if(isLegal(i,j+1)){\r\n status = j+1;\r\n return status;\r\n } \r\n }\r\n }\r\n }\r\n return status;\r\n }",
"public boolean validRook (int startRow, int startColumn, int endRow, int endColumn, Tile[][] board) {\n\t\t\n\t\tint distanceMovedUpDown =endRow-startRow; \n\t\tint distanceMovedLeftRight = endColumn-startColumn;\n\n\t\tif (distanceMovedUpDown !=0 && distanceMovedLeftRight != 0) { //have to stay in the same column or row to be valid\n\t\t\treturn false;\n\t\t}\n\n\n\t\tif (startRow == endRow) { //moving left or right \n\t\t\tif (Math.abs(distanceMovedLeftRight) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedLeftRight > 0) {//moving to the right \n\t\t\t\t\tint x=startColumn + 1;\n\t\t\t\t\twhile (x < endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedLeftRight < 0) {//moving to the left\n\t\t\t\t\tint x = startColumn -1;\n\t\t\t\t\twhile (x > endColumn) {\n\t\t\t\t\t\tif (board[startRow][x].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\treturn true;\n\n\t\t}\n\t\tif (startColumn == endColumn) { //moving up or down\n\t\t\tif (Math.abs(distanceMovedUpDown) > 1) { //checking if there's pieces btwn start and end if moving more than 1\n\t\t\t\tif (distanceMovedUpDown > 0) {//moving up the array\n\t\t\t\t\tint x=startRow + 1;\n\t\t\t\t\twhile (x < endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\tif (distanceMovedUpDown < 0) {//moving down the array\n\t\t\t\t\tint x = startRow -1;\n\t\t\t\t\twhile (x > endRow) {\n\t\t\t\t\t\tif (board[x][startColumn].getOccupyingPiece() != null) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx--;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\n\t}",
"private void LeftLeftRight() {\n \tRobot.cubebase.stopall();\n \twhile (true) \n \t{\n \t\t//first.take cube down and lift to high\n \t\tif (Robot.autotime.get()<1) {\n\t\t\t\tRobot.drivebase.run(.53, -.53);\n\t\t\t}\n \t\tif (Robot.autotime.get()>=1) {\n\t\t\t\tRobot.drivebase.Stop();\n\t\t\t\tbreak;\n\t\t\t}\n \t\t\n \t\n \t}\n \t}",
"private boolean checkWallLeft(WorldSpatial.Direction orientation, HashMap<Coordinate, MapTile> currentView){\n\t\t\tswitch(orientation){\n\t\t\tcase EAST:\n\t\t\t\treturn checkNorth(currentView);\n\t\t\tcase NORTH:\n\t\t\t\treturn checkWest(currentView);\n\t\t\tcase SOUTH:\n\t\t\t\treturn checkEast(currentView);\n\t\t\tcase WEST:\n\t\t\t\treturn checkSouth(currentView);\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}",
"public void refreshLeft();",
"public void handleRightWall(){\n for(int i = 0; i < 15; i ++){\n if(i % 2 == 1 ){\n maze[18][i] = VISIBLESPACE;\n }\n }\n }",
"private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }",
"public void left(){\n\t\tmoveX=-1;\n\t\tmoveY=0;\n\t}",
"public boolean[][] getRotateLeft() {\n boolean[][] out = new boolean[size][size];\n for(int y = 0; y < size; y++)\n for(int x = 0; x < size; x++)\n out[x][y] = tileLogic[size - y - 1][x];\n return out;\n }"
] | [
"0.7333483",
"0.6978368",
"0.6929845",
"0.69127554",
"0.6839184",
"0.6803477",
"0.67504114",
"0.6676041",
"0.66317695",
"0.66090035",
"0.6582108",
"0.65718466",
"0.65587926",
"0.6546327",
"0.65321934",
"0.64595634",
"0.6448624",
"0.64451975",
"0.6401906",
"0.63804126",
"0.63768625",
"0.63704944",
"0.6316209",
"0.6293431",
"0.62928617",
"0.62706435",
"0.62440723",
"0.62326163",
"0.6221385",
"0.62200093",
"0.621967",
"0.62075317",
"0.6188949",
"0.61875445",
"0.61820465",
"0.61693573",
"0.616103",
"0.61355615",
"0.61052716",
"0.60959005",
"0.6094327",
"0.60935986",
"0.6086211",
"0.60832363",
"0.6073621",
"0.6073379",
"0.6073051",
"0.60691994",
"0.6057338",
"0.604067",
"0.60398495",
"0.60310376",
"0.6025621",
"0.60220027",
"0.59947574",
"0.59923387",
"0.5991437",
"0.5981321",
"0.59783626",
"0.59728795",
"0.5971594",
"0.59698486",
"0.59620124",
"0.5957941",
"0.5956092",
"0.595319",
"0.59507036",
"0.5946696",
"0.5942836",
"0.59384847",
"0.59374607",
"0.59365916",
"0.5934969",
"0.5932769",
"0.5931415",
"0.59058654",
"0.5905448",
"0.59027016",
"0.59005815",
"0.58990824",
"0.5897603",
"0.5896886",
"0.58939266",
"0.588722",
"0.5884289",
"0.588315",
"0.58818",
"0.5878018",
"0.58728844",
"0.5866714",
"0.58537227",
"0.58524203",
"0.585213",
"0.5848849",
"0.5844522",
"0.5839281",
"0.58373",
"0.5834538",
"0.583037",
"0.5816758",
"0.5814841"
] | 0.0 | -1 |
Check tiles to towards the top | public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){
Coordinate currentPosition = new Coordinate(getPosition());
for(int i = 0; i <= wallSensitivity; i++){
MapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));
if(tile.isType(MapTile.Type.WALL)){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }",
"private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }",
"@Override\n public void tileOnTop(CoverFlowOpenGL view, int position) {\n }",
"public void checkScreenCollisionTopBottom() {\n if (y <= radius || y >= GameView.height - radius) {\n speedY *= -1;\n if (y < radius) {\n y = (int) radius;\n }\n if (y > GameView.height - radius) {\n y = (int) (GameView.height - radius);\n }\n }\n }",
"public boolean offScreen() {\r\n\t\treturn (this.getY() < -TREE_HEIGHT || this.getY() > 1000); \r\n\t}",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"public void updateTopBorder(){\n\n\n //Go up until reach maximum border height and then go down, so zig zag, maximum will increase when score increases.\n //Every 100 points insert random blocks\n\n for (int i = 0; i < topborder.size(); i++){\n topborder.get(i).update();\n\n //Remove top border if off map and replace by adding a new one\n if (topborder.get(i).getX()<-25){\n topborder.remove(i);\n\n //Retrieves the last element in the array list\n if (topborder.get(topborder.size()-1).getHeight()>=maxBorderHeight){\n top = false;\n }\n if (topborder.get(topborder.size()-1).getHeight()<=minBorderHeight){\n top = true;\n }\n\n //New border will have a larger height, else smaller height\n if (top){\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()+1));\n }\n else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()-1));\n }\n }\n }\n\n }",
"private boolean snapToTop(int flingDelta) {\n if (mHasEverTouchedTheTop) {\n // Only when first interacting with QuickContacts should QuickContacts snap to the top\n // of the screen. After this, QuickContacts can be placed most anywhere on the screen.\n return false;\n }\n final int requiredScroll = -getScroll_ignoreOversizedHeaderForSnapping() + mTransparentStartHeight;\n if (-getScroll_ignoreOversizedHeaderForSnapping() - flingDelta < 0\n && -getScroll_ignoreOversizedHeaderForSnapping() - flingDelta > -mTransparentStartHeight\n && requiredScroll != 0) {\n // We finish scrolling above the empty starting height, and aren't projected\n // to fling past the top of the Window, so elastically snap the empty space shut.\n mScroller.forceFinished(true);\n smoothScrollBy(requiredScroll);\n return true;\n }\n return false;\n }",
"public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }",
"public void topLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(19,12);\n\t\td.set(1,23);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(23);\n\t\tassertTrue(1==test_arr.get(0).getX() && 1==test_arr.get(0).getY());\n\n\t}",
"public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}",
"void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }",
"boolean isTopCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() - 1 == actor.getY();\n }",
"boolean checkWin(Tile initialTile);",
"public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}",
"private int hopsToTop(Block nextBlock, State goal, int blkLoc) {\n\t\tint idx = 0;\n\t\tfor(int i=0; i<stacksNum; i++){\n\t\t\tidx =1;\t//reset for every stack\n\t\t\tStack<Block> s =this.getStack(i);\n\t\t\tIterator<Block> iter = s.iterator();\n\t\t\twhile (iter.hasNext()) {\n\t\t\t\tif(iter.next().getCh() != nextBlock.getCh()){\n\t\t\t\t\tidx++;\n\t\t\t\t}else{\n\t\t\t\t\treturn s.size()-idx+1;\t\t//as counted from bottom to top, hops will be subtracted\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t} \n\t\treturn idx;\n\t}",
"public short fitsOnBeginning(Tile tile);",
"private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }",
"void top() {\n startAnimation(topSubCubes(), Axis.Y, Direction.CLOCKWISE);\n topCubeSwap();\n }",
"Tile getPosition();",
"private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }",
"private void checkInFront(Tile[][] chessBoard,int pawnX,int pawnY, char pawnColor) {\r\n\t\tint direction;\r\n\t\tBoolean extraStep = false;\r\n\t\tif (pawnColor =='w') {\r\n\t\t\tdirection = 1;\r\n\t\t\tif (pawnY == 1){\r\n\t\t\t\textraStep = true;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tdirection = -1;\r\n\t\t\tif (pawnY == 6) {\r\n\t\t\t\textraStep = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (extraStep) {\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY, direction);\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY, 2*direction);\r\n\t\t} else {\r\n\t\t\tcheckMove(chessBoard, pawnX, pawnY,direction);\r\n\t\t}\r\n\t}",
"void topInv() {\n startAnimation(topSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n topCubeSwap();\n topCubeSwap();\n topCubeSwap();\n }",
"private static int topHelper(int [][] aggHoriz, int start, int maxm) {\r\n int h = aggHoriz.length;\r\n for (int i = start; i < h - margin / 2; i++) {\r\n if (aggHoriz[i][0] - Math.min(aggHoriz[i - 1][0], aggHoriz[i - 2][0]) > 20\r\n && aggHoriz[i][0] > maxm) {\r\n int result = i;\r\n int found = aggHoriz[i][0];\r\n for (int j = i + 1; j < h; j++) {\r\n if (aggHoriz[j][0] < aggHoriz[j - 1][0]) {\r\n return result;\r\n } else if (aggHoriz[j][0] > found) {\r\n found = aggHoriz[j][0];\r\n result = j;\r\n }\r\n }\r\n return i;\r\n }\r\n }\r\n return 0;\r\n }",
"Layer getTopMostVisible();",
"public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }",
"private void resetStateForGridTop() {\n // Reset mItemTops and mItemBottoms\n final int colCount = mColCount;\n if ((mItemTops == null || mItemTops.length != colCount) && colCount != COLUMN_COUNT_AUTO) {\n mItemTops = new int[colCount];\n mItemBottoms = new int[colCount];\n }\n if (mItemTops != null && mItemBottoms != null) {\n final int top = getPaddingTop();\n Arrays.fill(mItemTops, top);\n Arrays.fill(mItemBottoms, top);\n }\n\n // Reset the first visible position in the grid to be item 0\n mFirstPosition = 0;\n mRestoreOffset = 0;\n }",
"private boolean hasDrawableTop(Drawable[] drawables){\n\n //returns true if drawables[TOP] is not null\n //TOP = 1, which is the position of drawableTop iin drawables array\n return drawables[TOP] != null;\n\n }",
"private void positionMinimap(){\n\t\tif(debutX<0)//si mon debutX est negatif(ca veut dire que je suis sorti de mon terrain (ter))\n\t\t\tdebutX=0;\n\t\tif(debutX>ter.length)//si debutX est plus grand que la taille de mon terrain(ter).\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY<0)\n\t\t\tdebutY=0;\n\t\tif(debutY>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\tif(debutX+100>ter.length)\n\t\t\tdebutX=ter.length-100;\n\t\tif(debutY+100>ter.length)\n\t\t\tdebutY=ter.length-100;\n\t\t//cette fonction est appelee uniquement si le terrain est strictement Superieur a 100\n\t\t// Donc je sais que ma fin se situe 100 cases apres.\n\t\tfinX=debutX+100;\n\t\tfinY=debutY+100;\n\t}",
"@Test\n\tpublic void topLeftHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(24,2);\n\t\td.set(1,3);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(3);\n\t\tassertTrue(1==test_arr.get(0).getX() && 0==test_arr.get(0).getY());\n\t}",
"public boolean checkNorth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y+i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"@Test\n public void testIsTop() {\n for (final Border border : Border.values()) {\n if (border.toString().contains(\"TOP\") || border.toString().contains(\"ALL\")) {\n Assert.assertTrue(border.isTop());\n } else {\n Assert.assertFalse(border.isTop());\n }\n }\n }",
"private void checkPreviousSquare(){\n\t\t\n\t\tif(!frontIsClear()){\n\t\t\tfaceBackwards();\n\t\t\tmove();\n\t\t\tif(!beepersPresent()){\n\t\t\t\tfaceBackwards();\n\t\t\t\tmove();\n\t\t\t\tputBeeper();\n\t\t\t} else {\n\t\t\t\tfaceBackwards();\n\t\t\t\tmove();\n\t\t\t}\n\t\t}\n\t}",
"boolean canBeOnTop(Box b2) {\n\t\t\tif(b2 == null)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\tif(this.width < b2.width && this.height < b2.height && this.depth < b2.depth)\n\t\t\t\treturn true;\n\t\t\t\n\t\t\treturn false;\n\t\t}",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n\tpublic void topRightHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(17,10);\n\t\td.set(4,9);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(9);\n\t\tassertTrue(9==test_arr.get(0).getX() && 0==test_arr.get(0).getY());\n\n\t}",
"private void checkOffset() {\n\t\tfloat CurZ=mApplications.get(CurIndex).getZ();\r\n\t\tfloat diff=0;\r\n\t\tfloat offset=ApplicationInfo.getOffset();\r\n\t\tLog.d(TAG, \"checkOffset: \"+ApplicationInfo.Destination);\r\n\t\tif(ApplicationInfo.IsScrolling)\r\n\t\t{\r\n\t\t\tif(offset > 0 && CurZ < Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=diff;\r\n\t\t\t}\r\n\t\t\telse if(offset < 0 && CurZ > Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=-diff;\r\n\t\t\t}\r\n\t\t\tApplicationInfo.setOffset(offset);\r\n\t\t\treturn ;\r\n\t\t}\r\n \t\tswitch(ApplicationInfo.Destination)\r\n \t\t{\r\n \t\tcase Constants.TO_BACK:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.originPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_BACKWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FORWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FRONT:\r\n \t\t\tif((diff=glview.floorby2(Constants.disapearedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tApplicationInfo.setOffset(offset);\r\n\t}",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"private void shiftBottomToTop(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesBottomToTop(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesBottomToTop(colNum);\n }",
"private void checkMoves(Tile t, MouseEvent e, ImageView img)\n {\n for(Tile tile : gb.getTiles())\n {\n tile.setStyle(null);\n tile.setOnMouseClicked(null);\n }\n ArrayList<Move> moves = t.getPiece().availableMoves(gb);\n for(Move m : moves)\n {\n gb.getTile(m.getX(),m.getY()).setStyle(\"-fx-background-color: #98FB98;\");\n gb.getTile(m.getX(),m.getY()).setOnMouseClicked(ev -> {\n if(ev.getTarget().getClass() == Tile.class)\n {\n movePiece(e,ev,t,img,moves);\n }\n else\n {\n ImageView img1 = (ImageView) ev.getTarget();\n Tile t2 = (Tile) img1.getParent();\n if(t2.isOccupied())\n {\n if(t2.getPiece().getClass() == King.class)\n {\n gb.setBlackKing(false);\n if(gameLogic.game(mainPane,gb.isBlackKing()))\n {\n cleanUp();\n }\n else {\n Platform.exit();\n }\n }\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n\n }\n else\n {\n t2.setImage(null);\n t2.setImage(img.getImage().getUrl());\n t.setImage(null);\n t2.setPiece(t.getPiece());\n t.setPiece(null);\n }\n cleanUpTile(moves);\n ev.consume();\n e.consume();\n }\n });\n }\n e.consume();\n }",
"public void checkTopCollision(FloatRect x){\r\n if((int)rect1.top<= (int)x.top-x.height ){\r\n collide=true;\r\n collidedTop=true;\r\n }\r\n }",
"private boolean checkMovePrevious(PositionTracker tracker) {\n\t\t \n\t\t if(tracker.getExactRow() == 0) { //initiate if statement\n\t\t\t if(tracker.getExactColumn() == 0) //initiate if statement\n\t\t\t\t return false; //returns the value false\n\t\t }\n\t\t \n\t\t return true; //returns the boolean value true\n\t }",
"public void checkScroll()\n {\n if (player.getY() <= 300)\n {\n removeObject (startingPlatform);\n scrollEverything();\n score += 5;\n counter.setValue (score);\n }\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"public void undoLastMove()\n {\n if (inProgress() && stackTiles.size() > 1)\n {\n // TAKE THE TOP 2 TILES\n MahjongSolitaireTile topTile = stackTiles.remove(stackTiles.size()-1);\n MahjongSolitaireTile nextToTopTile = stackTiles.remove(stackTiles.size() - 1);\n \n // SET THEIR DESTINATIONS\n float boundaryLeft = miniGame.getBoundaryLeft();\n float boundaryTop = miniGame.getBoundaryTop();\n \n // FIRST TILE 1\n int col = topTile.getGridColumn();\n int row = topTile.getGridRow();\n int z = tileGrid[col][row].size();\n float targetX = this.calculateTileXInGrid(col, z);\n float targetY = this.calculateTileYInGrid(row, z);\n topTile.setTarget(targetX, targetY);\n movingTiles.add(topTile);\n topTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(topTile);\n \n // AND THEN TILE 2\n col = nextToTopTile.getGridColumn();\n row = nextToTopTile.getGridRow();\n z = tileGrid[col][row].size();\n targetX = this.calculateTileXInGrid(col, z);\n targetY = this.calculateTileYInGrid(row, z);\n nextToTopTile.setTarget(targetX, targetY);\n movingTiles.add(nextToTopTile);\n nextToTopTile.startMovingToTarget(MAX_TILE_VELOCITY);\n tileGrid[col][row].add(nextToTopTile);\n \n // PLAY THE AUDIO CUE\n miniGame.getAudio().play(MahjongSolitairePropertyType.UNDO_AUDIO_CUE.toString(), false); \n }\n }",
"private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }",
"public int getTop(){\n\t\treturn platformHitbox.y;\n\t}",
"public void PutTopDown()\n\t{\n\t\tif(isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top down\");\n\t\t\tisStateTop=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already down\");\n\t\t}\n\t}",
"public void PutTopUp()\n\t{\n\t\tif(!isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top up\");\n\t\t\tisStateTop=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already up\");\n\t\t}\n\t}",
"static ArrayList<int[]> searcherTopLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t}\n\t\treturn MoveList;\n\t}",
"private void shiftTopToBottom(int colNum, int rowNum, FloorTile tile, int rotation) {\n shiftTilesTopToBottom(colNum, rowNum, tile, rotation);\n shiftPlayerPiecesTopToBottom(colNum);\n }",
"@Test\n public void notOnGroundTest(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0},{0,0}},new byte[][]{{1,0},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,2,2);\n assertFalse(tileMap.isOnGround(cBox));\n }",
"public void moveUp()\n {\n if (!this.search_zone.isTopBorder(this.y_position))\n {\n this.y_position = (this.y_position - 1);\n }\n }",
"public void setBoundingBoxTop(double value) {\n this.boundingBoxTop = value;\n }",
"@Test\n\tpublic void topRightVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(20,22);\n\t\td.set(8,33);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(33);\n\t\tassertTrue(10==test_arr.get(0).getX() && 1==test_arr.get(0).getY());\n\n\t}",
"private void checkBoundaries() {\n Position moveTo = pos.copy();\n boolean move = false;\n float minZoom = getZoomToFit();\n float maxZoom = minZoom * 3;\n if (maxZoom < getZoomToFill()) maxZoom = getZoomToFill();\n \n if (pos.zoom < minZoom) {\n moveTo = new Position(minZoom, 0, 0);\n move = true;\n } else { \n if (pos.zoom > maxZoom) {\n moveTo.zoom = maxZoom;\n \n float viewXcenter = 0.5f * getWidth();\n float viewYcenter = 0.5f * getHeight();\n double centerXcontentBefore = getContentX(viewXcenter, pos);\n double centerYcontentBefore = getContentY(viewYcenter, pos);\n moveTo.x = (float) (viewXcenter - centerXcontentBefore * maxZoom - 0.5f * getWidth());\n moveTo.y = (float) (viewYcenter - centerYcontentBefore * maxZoom - 0.5f * getHeight());\n \n move = true;\n }\n \n RectF imageBounds = new RectF();\n float zoomedWidth = (flippedDimensions() ? contentWorkHeight : contentWorkWidth) * moveTo.zoom;\n float zoomedHeight = (flippedDimensions() ? contentWorkWidth : contentWorkHeight) * moveTo.zoom;\n imageBounds.left = -0.5f * zoomedWidth + moveTo.x;\n imageBounds.right = 0.5f * zoomedWidth + moveTo.x;\n imageBounds.top = -0.5f * zoomedHeight + moveTo.y;\n imageBounds.bottom = 0.5f * zoomedHeight + moveTo.y;\n \n if (debug) Log.w(TAG, \"checkBoundaries() current image bounds: \" + imageBounds.left + \"x\" + imageBounds.top + \" -> \" + imageBounds.right + \"x\" + imageBounds.bottom);\n \n // adjust offset to fit in boundaries\n RectF offsetBounds = new RectF();\n if (imageBounds.width() - getWidth() > 0) {\n offsetBounds.left = -0.5f * (imageBounds.width() - getWidth());\n offsetBounds.right = 0.5f * (imageBounds.width() - getWidth());\n }\n if (imageBounds.height() - getHeight() > 0) {\n offsetBounds.top = -0.5f * (imageBounds.height() - getHeight());\n offsetBounds.bottom = 0.5f * (imageBounds.height() - getHeight());\n }\n if (imageBounds.centerX() < offsetBounds.left) { \n moveTo.x = offsetBounds.left; \n move = true;\n } else if (imageBounds.centerX() > offsetBounds.right) {\n moveTo.x = offsetBounds.right;\n move = true;\n } \n \n if (imageBounds.centerY() < offsetBounds.top) { \n moveTo.y = offsetBounds.top; \n move = true; \n } else if (imageBounds.centerY() > offsetBounds.bottom) { \n moveTo.y = offsetBounds.bottom; \n move = true; \n }\n }\n \n if (move) {\n final Position finalMoveTo = moveTo;\n move(new Move() {\n Position startPos = new Position(pos);\n Position toPos = finalMoveTo;\n long durationMs = 200;\n public boolean handleMove(Position result, long currentTime, long startedAt) {\n if (currentTime - startedAt > durationMs) {\n result.set(toPos);\n return false;\n }\n \n double remainingProgress = 1.0 - (1.0 * (currentTime - startedAt) / durationMs);\n result.zoom = (float) (toPos.zoom + (startPos.zoom - toPos.zoom) * remainingProgress); \n result.x = (float) (toPos.x + (startPos.x - toPos.x) * remainingProgress);\n result.y = (float) (toPos.y + (startPos.y - toPos.y) * remainingProgress);\n return true;\n }\n });\n }\n if (debug) Log.i(TAG, \"checkBoundaries() \" + (move ? \"moveTo: \" + moveTo : \"ok\"));\n \n }",
"Point getTopXY();",
"static ArrayList<int[]> searcherTopRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY - j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] < 0){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles top right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t \t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"@Test\n public void blackOnBarGettingBack() {\n\n game.move(Location.R1, Location.R3);\n game.move(Location.R3, Location.R4);\n game.nextTurn();\n assertTrue(game.move(Location.R6, Location.R4));\n assertEquals(1, game.getCount(Location.B_BAR));\n assertEquals(Color.RED, game.getColor(Location.R4));\n\n assertTrue(game.move(Location.R6, Location.R5));\n game.nextTurn();\n assertFalse(game.move(Location.R1, Location.R2));\n assertTrue(game.move(Location.B_BAR, Location.R3));\n assertTrue(game.move(Location.R1, Location.R5));\n }",
"@Test\n public void testGetVerticalPillarAbove(){\n Pillar pillar = largePillarMap.get(Maze.position(0,0));\n Pillar edgePillar = largePillarMap.get(Maze.position(4,4));\n Pillar neighbor = largeMaze.getVerticalPillar(pillar, true);\n assertEquals(0, neighbor.getX());\n assertEquals(1, neighbor.getY());\n\n neighbor = largeMaze.getVerticalPillar(edgePillar, true);\n assertEquals(null, neighbor);\n }",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"public float getY(){\n return hitBox.top;\n }",
"@Override\n public int getMinTileY() {\n return convertYToTileY(getMinY());\n }",
"private boolean seeNextFloorX(Position target) {\n if (target.x == position.x) {\n return false;\n }\n if (target.x > position.x) {\n\n return world[position.x + 1][position.y].equals(Tileset.FLOOR);\n }\n if (target.x < position.x) {\n return world[position.x - 1][position.y].equals(Tileset.FLOOR);\n }\n return false;\n }",
"public int checkColsTopBottom(Skyscraper[][] matrix, int[] topView, int[] bottomView) {\n PriorityQueue<Integer> bottomQueue = new PriorityQueue<>();\n int[] seenHeights = new int[topView.length];\n int cantConflicts = 0;\n\n for (int j = 0; j < topView.length; j++) {\n int max = 0, counterSeen = 0;\n for (int i = 0; i < topView.length; i++) {\n int currHeight = matrix[i][j].getHeight();\n if (currHeight > max) {\n counterSeen++;\n max = currHeight;\n }\n if (bottomView[j] != 0) {\n updateQueueWithVisibleBuildings(bottomQueue, currHeight);\n }\n }\n if (bottomView[j] != 0) {\n if (bottomQueue.size() != bottomView[j]) {\n cantConflicts++;\n }\n }\n if (topView[j] != 0) {\n if (counterSeen != topView[j]) {\n cantConflicts++;\n }\n }\n while (!bottomQueue.isEmpty()) {\n bottomQueue.poll();\n }\n for (int k = 0; k < seenHeights.length; k++) {\n seenHeights[k] = 0;\n }\n }\n return cantConflicts;\n }",
"public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }",
"private void shiftPlayerPiecesBottomToTop(int colNum) {\n for (int i = 0; i < playerPiecePositions.length; i++) {\n Position pos = playerPiecePositions[i];\n if (pos.getColNum() == colNum) {\n playerPiecePositions[i] = nextPositionBottomToTop(pos);\n playerPieces[i].addPreviousPlayerPosition(pos);\n }\n }\n }",
"boolean isPlaced();",
"private boolean moveUP() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\tfor(i = 0 ; i < rows_size; i++) {\r\n\t\t\tfor( j = 0; j < columns_size; j++) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = i; k >= 0 && isEmpty(k-1,j); k--);\r\n\t\t\t\t\t\tif(k == 0) {\r\n\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[k-1][j]) && game[k-1][j].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setValue(game[k-1][j].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[k-1][j].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[k-1][j].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\t\tgame[k][j] = new Cell2048 (game[i][j]);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tFalseFlag();\r\n\t\treturn flag;\r\n\t}",
"private boolean isTopUpRegion(int regionID){\n\t\t\n\t\tif(regionID<=rCols)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}",
"private boolean topDrawableHit(TextView textView, int drawableHeight, float x, float y){\n\n\n\n int xmin = textView.getPaddingLeft();\n int xmax = textView.getWidth() - textView.getPaddingRight();\n int ymin = textView.getPaddingTop();\n int ymax = textView.getPaddingTop() + drawableHeight;\n\n //x should be between xmin and xmax, y should be between ymin and ymax\n return x > xmin && x <xmax && y > ymin && y < ymax ;\n }",
"public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}",
"public int getTopY() {\n\t\treturn 0;\r\n\t}",
"public void checkCameraLimits()\n {\n //Daca camera ar vrea sa mearga prea in stanga sau prea in dreapta (Analog si pe verticala) ea e oprita (practic cand se intampla acest lucru Itemul asupra caruia se incearca centrarea nu mai e in centrul camerei )\n\n if(xOffset < 0 )\n xOffset = 0;\n else if( xOffset > refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth())\n xOffset =refLinks.GetMap().getWidth()* Tile.TILE_WIDTH - refLinks.GetWidth();\n if(yOffset<0)\n yOffset = 0;\n if(yOffset > refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight())\n {\n yOffset = refLinks.GetMap().getHeight()*Tile.TILE_HEIGHT - refLinks.GetHeight();\n }\n }",
"@Test\n public void testAroundPlayerPositions() {\n IntStream.iterate(0, i -> i + 1).limit(LevelImpl.LEVEL_MAX).forEach(k -> {\n terrain = terrainFactory.create(level.getBlocksNumber());\n final List<Position> safePosition = new ArrayList<>();\n safePosition.add(TerrainFactoryImpl.PLAYER_POSITION);\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE,\n TerrainFactoryImpl.PLAYER_POSITION.getY()));\n safePosition.add(new Position(TerrainFactoryImpl.PLAYER_POSITION.getX(), \n TerrainFactoryImpl.PLAYER_POSITION.getY() + TerrainFactoryImpl.CELL_DIMENSION * ScreenToolUtils.SCALE));\n /*use assertFalse because they have already been removed*/\n assertFalse(terrain.getFreeTiles().stream().map(i -> i.getPosition()).collect(Collectors.toList()).containsAll(safePosition));\n level.levelUp();\n });\n }",
"public void onTopUp();",
"public void setYTop(int top) {\n this.yTop = top;\n }",
"public boolean tileReachable(float tx, float ty, AgentModel selectedAgent)\r\n/* 243: */ {\r\n/* 244:271 */ float x = selectedAgent.getX() - 0.5F;\r\n/* 245:272 */ float y = selectedAgent.getY() - 0.5F;\r\n/* 246:274 */ switch ((int)selectedAgent.getAngle())\r\n/* 247: */ {\r\n/* 248: */ case 0: \r\n/* 249:277 */ if ((y - 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 250:279 */ return true;\r\n/* 251: */ }\r\n/* 252: */ break;\r\n/* 253: */ case 90: \r\n/* 254:283 */ if ((x + 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 255:285 */ return true;\r\n/* 256: */ }\r\n/* 257: */ break;\r\n/* 258: */ case 180: \r\n/* 259:289 */ if ((y + 1.0F == ty) && (tx >= x - 1.0F) && (tx <= x + 1.0F)) {\r\n/* 260:291 */ return true;\r\n/* 261: */ }\r\n/* 262: */ break;\r\n/* 263: */ case 270: \r\n/* 264:295 */ if ((x - 1.0F == tx) && (ty >= y - 1.0F) && (ty <= y + 1.0F)) {\r\n/* 265:298 */ return true;\r\n/* 266: */ }\r\n/* 267: */ break;\r\n/* 268: */ }\r\n/* 269:303 */ return false;\r\n/* 270: */ }",
"public void moveTileBack()\n {\n if(!(activeTile-1 < 0) && activeTile > 0)\n {\n Tile tmpTile = tiles[activeTile];\n PImage tmpPreview = previews[activeTile];\n PImage tmpPreviewGradients = previewGradients[activeTile];\n boolean tmpPreviewHover = previewHover[activeTile];\n \n tiles[activeTile-1].setStartColor(tmpTile.getStartColor());\n tiles[activeTile-1].setEndColor(tmpTile.getEndColor());\n tmpTile.setStartColor(tiles[activeTile-1].getStartColor());\n tmpTile.setEndColor(tiles[activeTile-1].getEndColor());\n \n tiles[activeTile-1].setTileLevel(tiles[activeTile-1].getTileLevel()+1);\n tiles[activeTile] = tiles[activeTile-1];\n previews[activeTile] = previews[activeTile-1];\n previewGradients[activeTile] = previewGradients[activeTile-1];\n previewHover[activeTile] = previewHover[activeTile-1];\n \n \n tmpTile.setTileLevel(tmpTile.getTileLevel()-1);\n tiles[activeTile-1] = tmpTile;\n tiles[activeTile-1].setStartColor(tiles[activeTile-1].getStartColor());\n previews[activeTile-1] = tmpPreview;\n previewGradients[activeTile-1] = tmpPreviewGradients;\n previewHover[activeTile-1] = tmpPreviewHover;\n \n activeTile -= 1;\n createPreviewGradients();\n }\n }",
"private void shiftTilesBottomToTop(int colNum, int rowNum, FloorTile tile, int rotation) {\n tile.rotate(rotation);\n for (int i = 0; i < nRows - 1; i++) {\n board[i][colNum] = board[i + 1][colNum];\n if (activeEffects.get(new Position(i + 1, colNum)) != null) {\n activeEffects.put(new Position(i, colNum), activeEffects.get(new Position(i + 1, colNum)));\n activeEffects.remove(new Position(i + 1, colNum));\n }\n }\n board[rowNum - 1][colNum] = tile;\n }",
"@Override\n public boolean isGoodForTop()\n {\n return false;\n }",
"int getTileGridYOffset(Long id) throws RemoteException;",
"private void swapTileWithBlank(TileView tv) {\n\t\tTile tile = tv.getCurrentTile();\n\n\t\tTileView theBlankTileView = tileViews\n\t\t\t\t.get(computeLocationValue(theBlankTile.getCurrentLocation()));\n\n//\t\tLog.v(\"log_tag\", \"Tile Row= \" + tile.getCurrentLocation().getRow()\n//\t\t\t\t+ \" Tile Column= \" + tile.getCurrentLocation().getColumn());\n//\t\tLog.v(\"log_tag\", \"theBlankTile Row= \"\n//\t\t\t\t+ theBlankTile.getCurrentLocation().getRow() + \" theBlankTile Column= \"\n//\t\t\t\t+ theBlankTile.getCurrentLocation().getColumn());\n\n\t\tif (tile.getCurrentLocation().isAdjacent(\n\t\t\t\ttheBlankTile.getCurrentLocation())) {\n\n\t\t\t// Animate tile movement\n\t\t\tif (tile.getCurrentLocation().getColumn() < theBlankTile\n\t\t\t\t\t.getCurrentLocation().getColumn()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// LEFT\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.left_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getColumn() > theBlankTile\n\t\t\t\t\t.getCurrentLocation().getColumn()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// RIGHT\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.right_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getRow() < theBlankTile\n\t\t\t\t\t.getCurrentLocation().getRow()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// UP\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.up_animation));\n\n\t\t\t} else if (tile.getCurrentLocation().getRow() > theBlankTile\n\t\t\t\t\t.getCurrentLocation().getRow()) {\n\t\t\t\ttheBlankTileView.bringToFront();\n\t\t\t\t// DOWN\n\t\t\t\ttheBlankTileView.startAnimation(AnimationUtils.loadAnimation(\n\t\t\t\t\t\tthis.context, R.anim.down_animation));\n\t\t\t}\n\t\t\ttheBlankTileView.setCurrentTile(tile);\n\t\t\ttv.setCurrentTile(theBlankTile);\n\n\t\t\tmoveCount++;\n\n\t\t\tmoveTextView.setText(\"Moves : \" + moveCount);\n\t\t}\n\n\t\tif (isCorrect()) {\n\t\t\t((Activity) context).showDialog(PuzzleActivity.DIALOG_COMPLETED_ID);\n\t\t}\n\n\t}",
"public short fitsAtTheEnd(Tile tile);",
"public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }",
"public static boolean isCornersOnTopLayer(Cube cube){\n\t\tif(countSquaresOnFace(cube, 4, 5) > 1) return true;\n\t\tfor(int i = 0; i <3; i++){\n\t\t\tif(cube.getSquare(i, 0, 0) == 4 || cube.getSquare(i, 0, 2) == 4) return true;\n\t\t}\n\t\treturn false;\n\t}",
"private void boxCorners() {\n\t\tint tileTL = Track.getTiles()[(int) ((x + bounds.x) / Tile.TILEWIDTH)][(int) ((y + bounds.y)/ Tile.TILEHEIGHT)];\n\t\tint tileTR = Track.getTiles()[(int) ((x + bounds.x + bounds.width) / Tile.TILEWIDTH)][(int) ((y + bounds.y)/ Tile.TILEHEIGHT)];\n\t\tint tileBL = Track.getTiles()[(int) ((x + bounds.x) / Tile.TILEWIDTH)][(int) ((y + bounds.y + bounds.height)/ Tile.TILEHEIGHT)];\n\t\tint tileBR = Track.getTiles()[(int) ((x + bounds.x + bounds.width) / Tile.TILEWIDTH)][(int) ((y + bounds.y + bounds.height)/ Tile.TILEHEIGHT)];\n\t\tif(vector[0] == 0 && ((tileTL == 2 && tileTR == 3 && tileBL == 5 && tileBR == 4)||\n\t\t\t\t(tileTL == 21 && tileTR == 22 && tileBL == 24 && tileBR == 23) || \n\t\t\t\t(SettingsNdAudio.isHandicap() && tileTL == 25 && tileTR == 26 && tileBL == 28 && tileBR == 27) ||\n\t\t\t\t(SettingsNdAudio.isHandicap() && tileTL == 29 && tileTR == 30 && tileBL == 32 && tileBR == 31)\n\t\t\t\t)) {\n\t\t\tif(!hasReset) {\n\t\t\t\tticker = 0;\n\t\t\t\thasReset = true;\n\t\t\t}\n\t\t\tif(GameState.getGameActive() == 0) {\n\t\t\t\tGameState.setGameActive(2);\n\t\t\t}else if(GameState.getGameActive() == 4) {\n\t\t\t\tif(GameState.getLevel() + 1 < 10) {\n\t\t\t\t\tGameState.setLevel(GameState.getLevel() + 1);\n\t\t\t\t\tGameState newLv = new GameState(handler, GameState.getLevel());\n\t\t\t\t\tState.setState(newLv);\n\t\t\t\t} else\n\t\t\t\t\tGameState.setGameActive(2);\n\t\t\t}\n\t\t}\n\t}",
"public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t// Check tiles to my right\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"private void shiftTilesTopToBottom(int colNum, int rowNum, FloorTile tile, int rotation) {\n tile.rotate(rotation);\n for (int i = nRows - 1; i != 0; i--) {\n board[i][colNum] = board[i - 1][colNum];\n if (activeEffects.get(new Position(i - 1, colNum)) != null) {\n activeEffects.put(new Position(i, colNum), activeEffects.get(new Position(i - 1, colNum)));\n activeEffects.remove(new Position(i - 1, colNum));\n }\n }\n board[rowNum + 1][colNum] = tile;\n }",
"public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"@Test\n public void testGetVerticalPillarBelow(){\n Pillar pillar = largePillarMap.get(Maze.position(0,0));\n Pillar edgePillar = largePillarMap.get(Maze.position(4,4));\n Pillar neighbor = largeMaze.getVerticalPillar(pillar, false);\n assertEquals(null, neighbor);\n\n neighbor = largeMaze.getVerticalPillar(edgePillar, false);\n assertEquals(4, neighbor.getX());\n assertEquals(3, neighbor.getY());\n }",
"int getMinTileY(Long id) throws RemoteException;",
"private void moveTiles(ArrayList<MahjongSolitaireTile> from, ArrayList<MahjongSolitaireTile> to)\n {\n // GO THROUGH ALL THE TILES, TOP TO BOTTOM\n for (int i = from.size()-1; i >= 0; i--)\n {\n MahjongSolitaireTile tile = from.remove(i);\n \n // ONLY ADD IT IF IT'S NOT THERE ALREADY\n if (!to.contains(tile))\n to.add(tile);\n } \n }",
"@Test\n\tpublic void bottomLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(31,100);\n\t\td.set(1,89);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(89);\n\t\tassertTrue(0==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}",
"public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t\t// Check tiles to my right\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public void updateTopBorder(){\n if (player.getScore()%50 ==0){\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n (int)(rand.nextDouble()*maxBorderHeight)+1 ));\n }\n //update top border\n for (int i=0; i<topBorders.size(); i++){\n topBorders.get(i).update();\n //if border off screen -> remove\n if (topBorders.get(i).getX()<-20){\n topBorders.remove(i);\n //calculate topdown which determines the direction of border (up or down)\n if (topBorders.get(topBorders.size()-1).getHeight()>=maxBorderHeight){\n topDown = false;\n }\n if (topBorders.get(topBorders.size()-1).getHeight()<=minBorderHeight){\n topDown = true;\n }\n //new border added will have larger height\n if (topDown){\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n topBorders.get(topBorders.size()-1).getHeight()+1));\n }\n //new border added will have smaller height\n else {\n topBorders.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n topBorders.get(topBorders.size()-1).getX()+20,\n 0,\n topBorders.get(topBorders.size()-1).getHeight()-1));\n }\n }\n }\n }",
"private void fly() {\n\t\tint xTarget = 12 *Board.TILE_D;\r\n\t\tint yTarget = 12 * Board.TILE_D;\r\n\t\tif(centerX - xTarget >0) {\r\n\t\t\tcenterX--;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterX++;\r\n\t\t}\r\n\t\tif(centerY - yTarget > 0) {\r\n\t\t\tcenterY --;\r\n\t\t}\r\n\t\telse {\r\n\t\t\tcenterY ++;\r\n\t\t}\r\n\t}"
] | [
"0.661871",
"0.6542988",
"0.64154565",
"0.60840994",
"0.6061309",
"0.60298",
"0.60119087",
"0.59092236",
"0.5900632",
"0.5870859",
"0.5817988",
"0.5809258",
"0.58082235",
"0.5792411",
"0.57745385",
"0.5772713",
"0.57345104",
"0.5733943",
"0.5731036",
"0.5728317",
"0.5702268",
"0.56990534",
"0.56744903",
"0.56734854",
"0.5661827",
"0.5655173",
"0.56513333",
"0.5640433",
"0.56331533",
"0.56330425",
"0.5621931",
"0.56137764",
"0.5597948",
"0.5597094",
"0.55834603",
"0.5565555",
"0.55473566",
"0.553818",
"0.55287683",
"0.55281025",
"0.55270755",
"0.55168617",
"0.55134606",
"0.55128556",
"0.5507117",
"0.5498247",
"0.5496133",
"0.54929173",
"0.5492008",
"0.54892373",
"0.54842067",
"0.54551",
"0.54510456",
"0.5449634",
"0.5436325",
"0.54264504",
"0.542581",
"0.5416397",
"0.5398869",
"0.5397192",
"0.53945076",
"0.53926224",
"0.53909504",
"0.53890145",
"0.5384442",
"0.5375469",
"0.537382",
"0.53734773",
"0.5370159",
"0.53639704",
"0.5363418",
"0.5362453",
"0.53601056",
"0.53599143",
"0.53492904",
"0.5346866",
"0.5343289",
"0.53394735",
"0.5338077",
"0.5336251",
"0.5335881",
"0.5331075",
"0.5320941",
"0.5313839",
"0.53136456",
"0.53084797",
"0.53084654",
"0.53069526",
"0.530598",
"0.5304295",
"0.53001714",
"0.5298958",
"0.5292867",
"0.529063",
"0.5285598",
"0.52791893",
"0.52750486",
"0.52725923",
"0.52699655",
"0.5269766"
] | 0.55852115 | 34 |
Check tiles towards the bottom | public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){
Coordinate currentPosition = new Coordinate(getPosition());
for(int i = 0; i <= wallSensitivity; i++){
MapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));
if(tile.isType(MapTile.Type.WALL)){
return true;
}
}
return false;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void bottomTopCheck() {\n bLCollide = false;\n bRCollide = false;\n tLCollide = false;\n tRCollide = false;\n if(grounded) {\n bottomCollision(); \n }\n else if(!grounded) {\n if(ySpeed > 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n bottomCollision(); \n }\n else if(ySpeed < 0 || Math.abs(xSpeed) > Math.abs(ySpeed)) {\n topCollision();\n }\n }\n }",
"public boolean checkBallOutTopBottom() {\n //if ball is out of top and bottom\n if (y <= -radius || y >= GameView.height + radius) {\n out = true;\n return true;\n }\n return false;\n }",
"private boolean hasReachedBottom() {\n\t\tfor (Segment s:this.getHorizontalProjection().getShapeSegments()){\n\t\t\t\n\t\t\tHeightProfile hs = this.grid.heightAt(s);\n\t\t\t\n\t\t\tfor (int h : hs){\n\t\t\t\t\n\t\t\t\tif (this.bottomLeft.getY() <= h){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public short fitsAtTheEnd(Tile tile);",
"public void checkTileMapCollision() {\t\t\t// Works for both x and y directions. Only going to use the x-component for now but leaves room for future expansion.\n\n\t\tcurrCol = (int)x / tileSize;\n\t\tcurrRow = (int)y / tileSize;\n\n\t\txdest = x + dx;\n\t\tydest = y + dy;\n\n\t\txtemp = x;\n\t\tytemp = y;\n\n\t\tcalculateCorners(x, ydest);\n\t\tif (dy < 0) { \t\t\t// upwards\n\t\t\tif (topLeft || topRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tytemp = currRow * tileSize + height / 2;\t\t\t// Set just below where we bumped our head.\n\t\t\t} else {\n\t\t\t\tytemp += dy;\t\t// Otherwise keep going.\n\t\t\t}\n\t\t}\n\t\tif (dy > 0) { \t\t\t// downwards\n\t\t\tif (bottomLeft || bottomRight) {\n\t\t\t\tdy = 0;\n\t\t\t\tfalling = false;\n\t\t\t\tytemp = (currRow + 1) * tileSize - height / 2;\n\t\t\t} else {\n\t\t\t\tytemp += dy;\n\t\t\t}\n\t\t}\n\n\t\tcalculateCorners(xdest, y);\n\t\tif (dx < 0) { \t\t\t// left\n\t\t\tif (topLeft || bottomLeft) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = currCol * tileSize + width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\t\tif (dx > 0) { \t\t\t// right\n\t\t\tif (topRight || bottomRight) {\n\t\t\t\tdx = 0;\n\t\t\t\txtemp = (currCol + 1) * tileSize - width / 2;\n\t\t\t} else {\n\t\t\t\txtemp += dx;\n\t\t\t}\n\t\t}\n\n\t\tif(!falling) {\n\t\t\tcalculateCorners(x, ydest + 1);\t\t\t// Have to check the ground 1 pixel below us and make sure we haven't fallen off a cliff\n\t\t\tif(!bottomLeft && !bottomRight) {\n\t\t\t\tfalling = true;\n\t\t\t}\n\t\t}\n\n\t}",
"public void checkScreenCollisionTopBottom() {\n if (y <= radius || y >= GameView.height - radius) {\n speedY *= -1;\n if (y < radius) {\n y = (int) radius;\n }\n if (y > GameView.height - radius) {\n y = (int) (GameView.height - radius);\n }\n }\n }",
"private boolean canMoveDown()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = grid.length-2; row >=0; row-- ) {\n // looks at tile directly below the current tile\n int compare = row + 1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean canMoveDownIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY+this.height==6)//wall\n checker=false;\n\n if(this.topLeftY+this.height<6){//not hitting bottom wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {// go through game pieces\n if(this.topLeftY< b.getGamePieces()[i].topLeftY){//only checking pieces on bottom of this.\n if(this.topLeftY+this.height==b.getGamePieces()[i].topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n }\n }return checker;\n\n }",
"private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }",
"public boolean tileFinish(float xTile, float yTile)\r\n/* 166: */ {\r\n/* 167:189 */ return (tileInBounds(xTile, yTile)) && (this.finish[((int)xTile)][((int)yTile)] != 0);\r\n/* 168: */ }",
"public boolean offScreen() {\r\n\t\treturn (this.getY() < -TREE_HEIGHT || this.getY() > 1000); \r\n\t}",
"boolean finished() {\n\t\treturn y > (parent.height);//in this case it will be the bottom corner of the canvas\n\t}",
"private float checkVertical(Point2D.Float position, int firepower, boolean pierce, int blockHeight) {\r\n float value = position.y; // Start at the origin tile\r\n\r\n outer: for (int i = 1; i <= firepower; i++) {\r\n // Expand one tile at a time\r\n value += blockHeight;\r\n\r\n // Check this tile for wall collision\r\n for (int index = 0; index < GameObjectCollection.tileObjects.size(); index++) {\r\n TileObject obj = GameObjectCollection.tileObjects.get(index);\r\n if (obj.collider.contains(position.x, value)) {\r\n if (!obj.isBreakable()) {\r\n // Hard wall found, move value back to the tile before\r\n value -= blockHeight;\r\n }\r\n\r\n // Stop checking for tile objects after the first breakable is found\r\n if (!pierce) {\r\n break outer;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return value;\r\n }",
"private boolean canMoveUp()\n {\n // runs through column first, row second\n for ( int column = 0; column < grid[0].length ; column++ ) {\n for ( int row = 1; row < grid.length; row++ ) {\n // looks at tile directly above the current tile\n int compare = row-1;\n if ( grid[row][column] != 0 ) {\n if ( grid[compare][column] == 0 || grid[row][column] ==\n grid[compare][column] ) {\n return true;\n }\n }\n }\n } \n return false;\n }",
"public boolean reachBorder() {\n // check up\n if (direction == 12) {\n if (this.getY() < speed) {\n return true;\n }\n }\n //check down\n if (direction == 6) {\n if (this.getY() + this.getHeight() + speed > GameUtility.GameUtility.MAP_HEIGHT) {\n return true;\n }\n\n }\n //check left\n if (direction == 9) {\n if (this.getX() < speed) {\n return true;\n }\n }\n //check right\n if (direction == 3) {\n if (this.getX()\n + this.getWidth() + speed > GameUtility.GameUtility.MAP_WIDTH) {\n return true;\n }\n }\n return false;\n\n }",
"public boolean borderAhead () {\r\n if ( myDirection == NORTH ) {\r\n return getY() == 0;\r\n } else if ( myDirection == EAST ) {\r\n return getX() == getWorld().getWidth() - 1;\r\n } else if ( myDirection == SOUTH ) {\r\n return getY() == getWorld().getHeight() - 1;\r\n } else { // if ( myDirection == WEST ) {\r\n return getX() == 0;\r\n }\r\n }",
"@Override\n public int getNumYTiles() {\n return getMaxTileY() - getMinTileY() + 1;\n }",
"private Location[] overrunBottom () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == ONE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), myCanvasBounds.getHeight());\n nextCenter = new Location(getX(), 0);\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = getHeading();\n if (getHeading() > ONE_QUARTER_TURN_DEGREES) {\n angle = -(HALF_TURN_DEGREES - getHeading());\n }\n angle = Math.toRadians(angle);\n nextLocation =\n new Location(getX() + (myCanvasBounds.getHeight() - getY()) / Math.tan(angle),\n myCanvasBounds.getHeight());\n nextCenter = new Location(getX() + (myCanvasBounds.getHeight() - getY()) / Math.tan(angle),\n 0);\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n return new Location[] { nextLocation, nextCenter };\n }",
"public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}",
"public boolean checkSouth(HashMap<Coordinate,MapTile> currentView){\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x, currentPosition.y-i));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public boolean percolates() {\n for (int i = 0; i < size; i++) {\r\n if (flowGrid[size * (size - 1) + i] < size) { // if any of the bottom row points at any of the index in the top row\r\n return true;\r\n }\r\n }\r\n return false;\r\n }",
"public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t\t// Check tiles to my right\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}",
"public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t// Check tiles to my right\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}",
"public void adjustDown() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y + 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y + 4;\n grassTiles[x][y].y = grassTiles[x][y].y + 4;\n }\n }",
"@Test\n\tpublic void bottomLeftVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(31,100);\n\t\td.set(1,89);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(89);\n\t\tassertTrue(0==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}",
"public synchronized void moveDown(){\n if (!this.isAtBottom()){\n for (int j = 1; j < 25; j++){\n for (int i = 1; i < 13; i++){\n if (this.movable[i][j]){\n this.map[i][j - 1] = this.map[i][j];\n this.movable[i][j - 1] = this.movable[i][j];\n this.colors[i][j - 1] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n\n }\n }\n }\n }\n this.piecePositionY--;\n repaint();\n }",
"private void shiftDownTiles(boolean isBorder, int shiftAmount){\n List<Tile> listOfTilesToUpdate = new ArrayList<Tile>();\n int floorRowIndex;\n if(isBorder){\n floorRowIndex=this.board.gridHeight-2;\n } else {\n floorRowIndex=this.board.gridHeight-1;\n }\n\n\n //update all existing tiles y coordinates with shifted y coordinates\n //only shift tile above the row that is being removed\n for(int rowIndex=0; rowIndex<this.rowToBeRemovedIndex; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n if(this.board.getTile(colIndex,rowIndex)!=null){ //tile exist at coordinates\n if(isBorder){\n if(rowIndex<=floorRowIndex){ //Stop at floor wall\n int leftWallIndex=0;\n int rightWallIndex=this.board.gridWidth-1;\n if(colIndex>leftWallIndex && colIndex<rightWallIndex){ //Ignore the the left and right walls\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n } else {\n Tile tile = this.board.getTile(colIndex,rowIndex);\n tile.rowIndex+=shiftAmount;\n tile.setCoordinates(tile.columnIndex,tile.rowIndex);\n listOfTilesToUpdate.add(tile);\n }\n }\n }\n }\n\n //Clear Board Grid. Set every element in 2D array to null.\n for(int rowIndex=0; rowIndex<this.board.gridHeight; rowIndex++){\n for(int colIndex=0; colIndex<this.board.gridWidth; colIndex++){\n Tile tile = this.board.getTile(colIndex, rowIndex);\n this.board.removeTile(tile);\n }\n }\n\n //add back tetris border\n if(this.includeTetrisBorder) {\n addBorder();\n }\n\n //Insert new tiles\n for(Tile newTile : listOfTilesToUpdate){\n this.board.placeTile(newTile);\n }\n }",
"private int end_round() {\n if(gameClock.displayTime() <= 0) {\n return 2;\n }\n \n for(target t : targets) {\n if(!t.is_hit()) return 0;\n }\n \n return 1;\n }",
"public int getActualTileHeight() {\n return 32;\n }",
"public int getBottom(){\n\t\treturn platformHitbox.y+height;\n\t}",
"private boolean hasDrawableBottom(Drawable[] drawables){\n\n //returns true if drawables[BOTTOM] is not null\n //BOTTOM = 3, which is the position of drawableTop iin drawables array\n return drawables[BOTTOM] != null;\n\n }",
"void bottom() {\n startAnimation(bottomSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n bottomCubeSwap();\n }",
"boolean testBottomText(Tester t) {\n return t.checkExpect(new NBullets(10).bottomText(),\n new TextImage(\"Bullets left: 10, ships destroyed: 0\", 15, Color.BLACK))\n && t.checkExpect(new NBullets(this.mt, this.los1, 5, 42, 0).bottomText(),\n new TextImage(\"Bullets left: 5, ships destroyed: 42\", 15, Color.BLACK));\n }",
"@Test(timeout=2000)\n public void fullBoardMatch() {\n ThreesBoard board = new ThreesBoard(); \n \n for (int i = 0; i < ThreesBoard.ROWS; i++) {\n for (int j = 0; j < ThreesBoard.COLUMNS; j++) {\n board.set_tile(i, j, 1); \n }\n }\n board.set_tile(0, 0, 2);\n ThreesController threes = new ThreesController(board);\n threes.move_up();\n assertTrue(threes.getBoard().get_tile(0, 0).getValue() == 3);\n assertTrue(threes.getBoard().get_tile(1, 0).getValue() == 1);\n assertTrue(threes.getBoard().get_tile(2, 0).getValue() == 1);\n }",
"public boolean fireBottomJet()\r\n\t{\r\n\t\treturn fireJet(new Point(0, 0.3));\r\n\t}",
"@Test\n\tpublic void bottomRightVertWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(30,110);\n\t\td.set(12,99);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(99);\n\t\tassertTrue(10==test_arr.get(0).getX() && 9==test_arr.get(0).getY());\n\n\t}",
"boolean isBottomCollision(Actor actor) {\n return this.getX() == actor.getX() && this.getY() + 1 == actor.getY();\n }",
"public boolean canMoveUpIn(GameBoard b) {\n boolean checker = true;\n\n if(this.topLeftY==0) //wall\n checker = false;\n\n if(this.topLeftY>0){//not hitting top wall\n for (int i = 0; i < b.getNumGamePieces(); i++) {//go through game pieces\n if(b.getGamePieces()[i].topLeftY< this.topLeftY){//only checking pieces on above of this.\n if(b.getGamePieces()[i].topLeftY + b.getGamePieces()[i].height == this.topLeftY){//checking if y-axis line up\n if(this.topLeftX>=b.getGamePieces()[i].topLeftX){\n if(b.getGamePieces()[i].topLeftX+ b.getGamePieces()[i].width>this.topLeftX){//checking if x blocks\n checker=false;//then cant move\n break;\n }\n }\n }\n }\n\n\n }\n }return checker;\n\n }",
"public boolean checkUp()\n\t{\n\t\tif(row-1>=0)\n\t\t\treturn true;\n\t\treturn false;\n\t}",
"@Test\n public void testCompareAfter() {\n Tile t7 = new Tile(6, 3);\n assertEquals(6, board3by3.compareAfter(t7));\n }",
"private boolean checkVerticalWin(BoardPosition lastPos){\r\n int i, row, count;\r\n int check = 5;\r\n int col = lastPos.getColumn();\r\n\r\n for(i = (yMax-yMax)+1; i < (yMax-yMax+5); i++){\r\n count = 0;\r\n for(row = i; row < (i + check); row++){\r\n if(grid[row][col] == lastPos.getPlayer())\r\n count++;\r\n }\r\n if (count == win)\r\n return true;\r\n }\r\n return false;\r\n }",
"public boolean tileInBounds(float xTile, float yTile)\r\n/* 111: */ {\r\n/* 112:124 */ return (xTile >= 0.0F) && (xTile < getWidthInTiles()) && (yTile >= 0.0F) && (\r\n/* 113:125 */ yTile < getHeightInTiles());\r\n/* 114: */ }",
"@Test\n\tpublic void bottomRightHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(36,120);\n\t\td.set(4,119);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(119);\n\t\tassertTrue(9==test_arr.get(0).getX() && 10==test_arr.get(0).getY());\n\n\t}",
"public void updateBottomBorder(){\n if (player.getScore()%40 ==0){\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(),R.drawable.brick),\n botBorders.get(botBorders.size()-1).getX()+20,\n (int)(rand.nextDouble()*maxBorderHeight)+HEIGHT-maxBorderHeight));\n }\n //update bottom border\n for (int i =0; i<botBorders.size(); i++){\n botBorders.get(i).update();\n if (botBorders.get(i).getX()<-20) {\n botBorders.remove(i);\n if (botBorders.get(botBorders.size() - 1).getY() <= HEIGHT- maxBorderHeight) {\n botDown = true ;\n }\n if (botBorders.get(botBorders.size() - 1).getY() >= HEIGHT- minBorderHeight) {\n botDown = false;\n }\n if (botDown) {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() + 1));\n } else {\n botBorders.add(new BotBorder(BitmapFactory.decodeResource(getResources(), R.drawable.brick),\n botBorders.get(botBorders.size() - 1).getX() + 20,\n botBorders.get(botBorders.size() - 1).getY() - 1));\n }\n }\n }\n }",
"public void updateTopBorder(){\n\n\n //Go up until reach maximum border height and then go down, so zig zag, maximum will increase when score increases.\n //Every 100 points insert random blocks\n\n for (int i = 0; i < topborder.size(); i++){\n topborder.get(i).update();\n\n //Remove top border if off map and replace by adding a new one\n if (topborder.get(i).getX()<-25){\n topborder.remove(i);\n\n //Retrieves the last element in the array list\n if (topborder.get(topborder.size()-1).getHeight()>=maxBorderHeight){\n top = false;\n }\n if (topborder.get(topborder.size()-1).getHeight()<=minBorderHeight){\n top = true;\n }\n\n //New border will have a larger height, else smaller height\n if (top){\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()+1));\n }\n else {\n topborder.add(new TopBorder(BitmapFactory.decodeResource(getResources(),R.drawable.newborder), topborder.get(topborder.size()-1).getX()+25, 0, topborder.get(topborder.size()-1).getHeight()-1));\n }\n }\n }\n\n }",
"public boolean percolates() {\n\t\tint top = uf.find(0);\n\t\tint bottom = uf.find(size * size + 1);\n\t\treturn top == bottom;\n\t}",
"public boolean isBoardFull() {\n\t\t// REPLACE NEXT LINE WITH YOUR IMPLEMENTATION\n\t\tint boardSize = getBoardSize();\n\t\t\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\n\t\t\t\tif (isSpotBlank(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t\t\n\t}",
"boolean isCellBelowNeighbor() {\r\n return this.neighbors.contains(new Cell(this.x, this.y + 1));\r\n }",
"private boolean bottomDrawableHit(TextView textView, int drawableHeight, float x, float y){\n\n\n int xmin = textView.getPaddingLeft();\n int xmax = textView.getWidth() - textView.getPaddingRight();\n int ymax = textView.getHeight() - textView.getPaddingBottom();\n int ymin = ymax - drawableHeight;\n\n\n //x should be between xmin and xmax, y should be between ymin and ymax\n return x > xmin && x <xmax && y > ymin && y < ymax ;\n\n }",
"private void checkEdges() {\n\n //Check for alive cells on right hand side\n for (int y = 0; y < height; y++) {\n if (getCell(this.width - 1, y).isAlive()) {\n grid = increaseWidthRight(grid);\n break;\n }\n }\n\n //Check for alive cells on left side\n for (int y = 0; y < height; y++) {\n if (getCell(0, y).isAlive()) {\n grid = increaseWidthLeft(grid);\n break;\n }\n }\n\n // Check for alive cells at bottom\n for (int x = 0; x < width; x++) {\n if (getCell(x, this.height - 1).isAlive()) {\n grid = increaseHeightBottom(grid);\n break;\n }\n }\n\n //Check for alive cells at top\n for (int x = 0; x < width; x++) {\n if (getCell(x, 0).isAlive()) {\n grid = increaseHeightTop(grid);\n break;\n }\n }\n\n }",
"private void recheckTileCollisions() {\n\t\tint len = regTiles.size();\n\t\tfor(int i = 0; i < len; i ++) {\n\t\t\tRegTile tile = regTiles.get(i);\n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(OverlapTester.overlapRectangles(player.bounds, tile.bounds)) {\n\t\t\t\t\t//check-x cols and fix\n\t\t\t\t\tif(player.position.x > tile.position.x - tile.bounds.width/2 && player.position.x < tile.position.x + tile.bounds.width/2 && player.position.y < tile.position.y + tile.bounds.height/2 && player.position.y > tile.position.y - tile.bounds.height/2) {\n\t\t\t\t\t\tif(player.position.x < tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x - 1;\n\t\t\t\t\t\t} else if(player.position.x > tile.position.x) {\n\t\t\t\t\t\t\tplayer.position.x = tile.position.x + 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} \n\t\t\t\t}\n\t\t\t} catch (Exception e) {}\n\t\t}\n\t}",
"public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}",
"@Override\n protected boolean isFinished() {\n return (Math.abs(hpIntake.getWristPosition()) - HatchPanelIntake.positions[position.ordinal()] < Math.PI/12);\n }",
"private boolean seeNextFloorX(Position target) {\n if (target.x == position.x) {\n return false;\n }\n if (target.x > position.x) {\n\n return world[position.x + 1][position.y].equals(Tileset.FLOOR);\n }\n if (target.x < position.x) {\n return world[position.x - 1][position.y].equals(Tileset.FLOOR);\n }\n return false;\n }",
"static ArrayList<int[]> searcherBottomLeftTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\n\t\t\tNewXY[0] = CurrentX - j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] < 0 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid blacks piece to kill \" + j + \" tiles bottom left of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"private void snapToBottom(int flingDelta) {\n if (mHasEverTouchedTheTop) {\n // If QuickContacts has touched the top of the screen previously, then we\n // will less aggressively snap to the bottom of the screen.\n final float predictedScrollPastTop = -getScroll() + mTransparentStartHeight - flingDelta;\n final boolean isLandscape = getResources()\n .getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE;\n if (isLandscape) {\n // In landscape orientation, we dismiss the QC once it goes below the starting\n // starting offset that is used when QC starts in collapsed mode.\n if (predictedScrollPastTop > mTransparentStartHeight) {\n scrollOffBottom();\n }\n } else {\n // In portrait orientation, we dismiss the QC once it goes below\n // mIntermediateHeaderHeight within the bottom of the screen.\n final float heightMinusHeader = getHeight() - mIntermediateHeaderHeight;\n if (predictedScrollPastTop > heightMinusHeader) {\n scrollOffBottom();\n }\n }\n return;\n }\n if (-getScroll() - flingDelta > 0) {\n scrollOffBottom();\n }\n }",
"public int CheckForClear(){\n int endState = -1;\n //check top\n for (int i = 0; i < 6; i++){\n if(this.gameBoard[i] != 0){\n endState = -1;\n break;\n }\n else{\n endState = 0;\n }\n }\n //check bottom\n if (endState == -1){\n for (int i = 7; i < 13; i++){\n if (this.gameBoard[i] != 0){\n endState = -1;\n break;\n }\n else{\n endState = 1;\n }\n }\n }\n return endState;\n }",
"public boolean checkForAdjacentHextiles(int x, int y, int radius, HexGrid hexGrid) {\r\n\t\t//System.out.println(\"x:\" + x + \" y: \" + y);\r\n\t\tint maxIndex = radius;\r\n\t\tint minIndex = radius * -1;\r\n\t\tboolean result = false;\r\n\t\t//System.out.println(\"x = \" + maxIndex + \"; y = \" + minIndex );\r\n\t\t//System.out.println(\"maxIndex = \" + maxIndex + \"; minIndex = \" + minIndex );\r\n\t\t// Top and bottom require the same calculations whether x is even or odd\r\n\t\t\r\n\t\t// Check if there exist a hextile above the one we are trying to place\r\n\t\tif ((y > minIndex) && (hexGrid.getHex(x, y - 1) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x, y - 1).getHextile(), Config.IncompleteRoadwayDirection.TOP)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if there exist a hextile below the one we are trying to place\r\n\t\tif ((y < maxIndex) && (hexGrid.getHex(x, y + 1) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x, y + 1).getHextile(), Config.IncompleteRoadwayDirection.BOTTOM)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if there exist a hextile above-right to the one we are trying to place\r\n\t\tif ((x < maxIndex) && (y > minIndex) && (hexGrid.getHex(x + 1, y - 1) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x + 1, y - 1).getHextile(), Config.IncompleteRoadwayDirection.TOP_RIGHT)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if there exist a hextile below-right to the one we are trying to place\r\n\t\tif ((x < maxIndex) && (hexGrid.getHex(x + 1, y) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x + 1, y).getHextile(), Config.IncompleteRoadwayDirection.BOTTOM_RIGHT)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if there exist a hextile below-left to the one we are trying to place\r\n\t\tif ((x > minIndex) && (y < maxIndex) && (hexGrid.getHex(x - 1, y + 1) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x - 1, y + 1).getHextile(), Config.IncompleteRoadwayDirection.BOTTOM_LEFT)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Check if there exist a hextile above-left to the one we are trying to place\r\n\t\tif ((x > minIndex) && (hexGrid.getHex(x - 1, y) != null)) {\r\n\t\t\tif (hexGrid.getHex(x, y).getHextile().connectTo(hexGrid.getHex(x - 1, y).getHextile(), Config.IncompleteRoadwayDirection.TOP_LEFT)) {\r\n\t\t\t\tresult = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\r\n\t}",
"private void checkBoundaries() {\n Position moveTo = pos.copy();\n boolean move = false;\n float minZoom = getZoomToFit();\n float maxZoom = minZoom * 3;\n if (maxZoom < getZoomToFill()) maxZoom = getZoomToFill();\n \n if (pos.zoom < minZoom) {\n moveTo = new Position(minZoom, 0, 0);\n move = true;\n } else { \n if (pos.zoom > maxZoom) {\n moveTo.zoom = maxZoom;\n \n float viewXcenter = 0.5f * getWidth();\n float viewYcenter = 0.5f * getHeight();\n double centerXcontentBefore = getContentX(viewXcenter, pos);\n double centerYcontentBefore = getContentY(viewYcenter, pos);\n moveTo.x = (float) (viewXcenter - centerXcontentBefore * maxZoom - 0.5f * getWidth());\n moveTo.y = (float) (viewYcenter - centerYcontentBefore * maxZoom - 0.5f * getHeight());\n \n move = true;\n }\n \n RectF imageBounds = new RectF();\n float zoomedWidth = (flippedDimensions() ? contentWorkHeight : contentWorkWidth) * moveTo.zoom;\n float zoomedHeight = (flippedDimensions() ? contentWorkWidth : contentWorkHeight) * moveTo.zoom;\n imageBounds.left = -0.5f * zoomedWidth + moveTo.x;\n imageBounds.right = 0.5f * zoomedWidth + moveTo.x;\n imageBounds.top = -0.5f * zoomedHeight + moveTo.y;\n imageBounds.bottom = 0.5f * zoomedHeight + moveTo.y;\n \n if (debug) Log.w(TAG, \"checkBoundaries() current image bounds: \" + imageBounds.left + \"x\" + imageBounds.top + \" -> \" + imageBounds.right + \"x\" + imageBounds.bottom);\n \n // adjust offset to fit in boundaries\n RectF offsetBounds = new RectF();\n if (imageBounds.width() - getWidth() > 0) {\n offsetBounds.left = -0.5f * (imageBounds.width() - getWidth());\n offsetBounds.right = 0.5f * (imageBounds.width() - getWidth());\n }\n if (imageBounds.height() - getHeight() > 0) {\n offsetBounds.top = -0.5f * (imageBounds.height() - getHeight());\n offsetBounds.bottom = 0.5f * (imageBounds.height() - getHeight());\n }\n if (imageBounds.centerX() < offsetBounds.left) { \n moveTo.x = offsetBounds.left; \n move = true;\n } else if (imageBounds.centerX() > offsetBounds.right) {\n moveTo.x = offsetBounds.right;\n move = true;\n } \n \n if (imageBounds.centerY() < offsetBounds.top) { \n moveTo.y = offsetBounds.top; \n move = true; \n } else if (imageBounds.centerY() > offsetBounds.bottom) { \n moveTo.y = offsetBounds.bottom; \n move = true; \n }\n }\n \n if (move) {\n final Position finalMoveTo = moveTo;\n move(new Move() {\n Position startPos = new Position(pos);\n Position toPos = finalMoveTo;\n long durationMs = 200;\n public boolean handleMove(Position result, long currentTime, long startedAt) {\n if (currentTime - startedAt > durationMs) {\n result.set(toPos);\n return false;\n }\n \n double remainingProgress = 1.0 - (1.0 * (currentTime - startedAt) / durationMs);\n result.zoom = (float) (toPos.zoom + (startPos.zoom - toPos.zoom) * remainingProgress); \n result.x = (float) (toPos.x + (startPos.x - toPos.x) * remainingProgress);\n result.y = (float) (toPos.y + (startPos.y - toPos.y) * remainingProgress);\n return true;\n }\n });\n }\n if (debug) Log.i(TAG, \"checkBoundaries() \" + (move ? \"moveTo: \" + moveTo : \"ok\"));\n \n }",
"@Override\n public boolean isGoodForBottom()\n {\n return false;\n }",
"public void adjustUp() {\n\n for (int y = 0; y < MAP_HEIGHT; y++)\n for (int x = 0; x < MAP_WIDTH; x++) {\n tiles[x][y].y = tiles[x][y].y - 4;\n backGroundTiles[x][y].y = backGroundTiles[x][y].y - 4;\n grassTiles[x][y].y = grassTiles[x][y].y - 4;\n }\n }",
"private boolean verticalCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n return wallCoordinates.get(1).getYCoordinate() <= coordinates.get(2).getYCoordinate() && coordinates.get(1).getYCoordinate() <= wallCoordinates.get(2).getYCoordinate();\n }",
"static ArrayList<int[]> searcherBottomRightTiles(ArrayList<int[]> MoveList,int CurrentX, int CurrentY){\n\t\t\n\t\tfor(int j = 1; j <=7 ; j++){\n\t\t\tint [] NewXY = new int[2];\t\n\t\t\tNewXY[0] = CurrentX + j;\n\t\t\tNewXY[1] = CurrentY + j;\n\t\t\t\n\t\t\tif(NewXY[0] > 7 || NewXY[1] > 7){\n\t\t\t\treturn MoveList;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int [] i: aggregateBlacks()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a valid black piece to kill \" + j + \" tiles bottom right of this bishop\");\n\t\t\t\t\tMoveList.add(NewXY);;\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t \t\t\t\t\n\t\t\t}\n\t\t\tfor(int [] i: aggregateWhites()){\n\t\t\t\tint[] Coordinate = i;\n\t\t\t\tif(Arrays.equals(Coordinate, NewXY)){\n\t\t\t\t\t//System.out.println(\"We have found a white piece \" + j + \" tiles top of this Queen\");\n\t\t\t\t\treturn MoveList;\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\tMoveList.add(NewXY);\n\t\t\t}\n\t\treturn MoveList;\n\t\t}",
"public boolean isGoal() {\n boolean result = false; \n for (int i = 0; i < this.N; i++) {\n for (int j = 0; j < this.N; j++) {\n int idx = (i * this.N) + (j + 1);\n if (idx != N * N - 1 && tiles[i][j] != idx) {\n return false;\n } \n if (idx == N * N - 1) {\n if (tiles[N - 1][N - 1] == 0) return true;\n return false;\n }\n }\n }\n return result;\n }",
"private boolean thereispath(Move m, Tile tile, Integer integer, Graph g, Board B) {\n\n boolean result = true;\n boolean result1 = true;\n\n int start_dest_C = tile.COLUMN;\n int start_dest_R = tile.ROW;\n\n int move_column = m.getX();\n int move_row = m.getY();\n\n int TEMP = 0;\n int TEMP_ID = 0;\n int TEMP_ID_F = tile.id;\n int TEMP_ID_FIRST = tile.id;\n\n int final_dest_R = (integer / B.width);\n int final_dest_C = (integer % B.width);\n\n //System.out.println(\"* \" + tile.toString() + \" \" + integer + \" \" + m.toString());\n\n // Y ROW - X COLUMN\n\n for (int i = 0; i != 2; i++) {\n\n TEMP_ID_FIRST = tile.id;\n\n // possibility 1\n if (i == 0) {\n\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result != false; c++) {\n\n if (c == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n // System.out.println(\"OK\");\n\n } else {\n\n result = false;\n\n // System.out.println(\"NOPE\");\n\n\n }\n }\n\n for (int r = 0; r != Math.abs(move_row) && result != false; r++) {\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n // System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n\n } else {\n\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == true) {\n return true;\n }\n\n\n }\n\n TEMP_ID = 0;\n\n if (i == 1) {\n\n result = true;\n\n start_dest_C = tile.COLUMN;\n start_dest_R = tile.ROW;\n // first move row\n for (int r = 0; r != Math.abs(move_row) && result1 != false; r++) {\n\n if (r == 0) {\n TEMP_ID_FIRST = tile.id;\n\n } else {\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n }\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_row / Math.abs(move_row);\n\n //System.out.println(\"1R:\" + TEMP);\n\n //System.out.println(start_dest_R + \" - > \" + (start_dest_R + TEMP));\n\n start_dest_R += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n\n //System.out.println(TEMP_ID_FIRST + \" = \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n\n //System.out.println(\"NOPE\");\n\n result = false;\n\n }\n\n\n }\n\n // first move columns\n for (int c = 0; c != Math.abs(move_column) && result1 != false; c++) {\n\n\n TEMP_ID_FIRST = B.a.get(start_dest_R).get(start_dest_C).id;\n\n TEMP = move_column / Math.abs(move_column);\n\n //System.out.println(\"1C:\" + TEMP);\n\n //System.out.println(\" \" + TEMP_ID_FIRST + \" - > \" + (start_dest_C + TEMP));\n\n start_dest_C += TEMP;\n\n TEMP_ID = B.a.get(start_dest_R).get(start_dest_C).id;\n\n //System.out.println(TEMP_ID_FIRST + \" and \" + TEMP_ID);\n\n if (g.adj.get(TEMP_ID_FIRST).contains(TEMP_ID)) {\n\n //System.out.println(\"OK\");\n\n } else {\n result = false;\n\n //System.out.println(\"NOPE\");\n\n\n }\n }\n\n if (result == false) {\n return false;\n\n }\n\n\n }\n\n\n }\n\n\n return true;\n }",
"public void checkScroll()\n {\n if (player.getY() <= 300)\n {\n removeObject (startingPlatform);\n scrollEverything();\n score += 5;\n counter.setValue (score);\n }\n }",
"private boolean moveDOWN() {\r\n\t\tint i,j,k;\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tfor(i = (rows_size-1) ; i >= 0 ; i--) {\r\n\t\t\tfor( j = (columns_size -1); j >= 0; j--) {\r\n\t\t\t\tif( !isEmpty(i,j) ) {\r\n\t\t\t\t\tfor(k = i; k < rows_size && isEmpty(k+1,j); k++);\r\n\t\t\t\t\tif(k == (rows_size-1)) {\r\n\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tif(game[i][j].isEqual(game[k+1][j]) && game[k+1][j].getFlag() == false) {\r\n\t\t\t\t\t\t\t\tgame[k+1][j].setValue(game[k+1][j].getValue()*2);\r\n\t\t\t\t\t\t\t\tgame[k+1][j].setFlag(true);\r\n\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\tscore += game[k+1][j].getValue();\r\n\t\t\t\t\t\t\t\t--takenCells;\r\n\t\t\t\t\t\t\t\t++freeCells;\r\n\t\t\t\t\t\t\t\tflag = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t\tif(k != i) {\r\n\t\t\t\t\t\t\t\t\tgame[k][j] = new Cell2048(game[i][j]);\r\n\t\t\t\t\t\t\t\t\tgame[i][j].setValue(0);\r\n\t\t\t\t\t\t\t\t\tflag = true;\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t}\r\n\tFalseFlag();\r\n\treturn flag;\r\n\t}",
"private boolean hitSides() {\n if (b.numY + 60 >= BOX_HEIGHT || (b.numY - 60 <= 0)) {\n return true;\n } else {\n return false;\n }\n }",
"boolean isAllOnDestination(){\n\n if(player.getCurrentX()-player.getDestinationX()!=0 || player.getCurrentY()-player.getDestinationY()!=0)\n return false;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()-item.getDestinationX()!=0 || item.getCurrentY()-item.getDestinationY()!=0)\n return false;\n }\n return true;\n }",
"public boolean checkDown()\n\t{\n\t\tif(row+1<=22)\n\t\t\treturn true;\n\t\treturn false;\n\t\t\t\n\t}",
"@Test\n public void notOnGroundTest(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0},{0,0}},new byte[][]{{1,0},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,2,2);\n assertFalse(tileMap.isOnGround(cBox));\n }",
"protected void checkEdges(){\n if (getX() > getWorld().getBackground().getWidth() + getImage().getWidth()){\n world.monsterAdded();\n getWorld().removeObject(this);\n world.decreaseLives();\n }\n }",
"@Test\n\tpublic void bottomLeftHorizWhiteCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(32,112);\n\t\td.set(1,113);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(113);\n\t\tassertTrue(1==test_arr.get(0).getX() && 10==test_arr.get(0).getY());\n\n\t}",
"@Override\n\tpublic boolean testMove(int xEnd, int yEnd, board b){\n return (xEnd == x - 1 && yEnd == y - 1) || (xEnd == x - 1 && yEnd == y) || (xEnd == x - 1 && yEnd == y + 1) || (xEnd == x && yEnd == y - 1) || (xEnd == x && yEnd == y + 1) || (xEnd == x + 1 && yEnd == y - 1) || (xEnd == x + 1 && yEnd == y) || (xEnd == x + 1 && yEnd == y + 1);\n\t}",
"private Location[] overrunsTop () {\n Location nextLocation;\n Location nextCenter;\n \n // exact calculation for exact 90 degree heading directions (don't want trig functions\n // handling this)\n if (getHeading() == THREE_QUARTER_TURN_DEGREES) {\n nextLocation = new Location(getX(), 0);\n nextCenter = new Location(getX(), myCanvasBounds.getHeight());\n return new Location[] { nextLocation, nextCenter };\n }\n \n double angle = FULL_TURN_DEGREES - getHeading();\n if (getHeading() < THREE_QUARTER_TURN_DEGREES) {\n angle = -(getHeading() - HALF_TURN_DEGREES);\n }\n angle = Math.toRadians(angle);\n nextLocation = new Location(getX() + getY() / Math.tan(angle), 0);\n nextCenter = new Location(getX() + getY() / Math.tan(angle),\n myCanvasBounds.getHeight());\n \n // eliminates race condition - if next location overruns left/right AND top/bottom it checks\n // to see which is overrun first and corrects\n if (nextLocation.getX() > myCanvasBounds.getWidth())\n // right\n return overrunRight();\n else if (nextLocation.getX() < 0) // left\n return overrunLeft();\n \n return new Location[] { nextLocation, nextCenter };\n }",
"@Test\n public void isONGroundTestTrue(){\n TileMap tileMap = new TileMap(24, 24, new byte[][]{{0,0}},new byte[][]{{1,1},{1,1},{1,1},{1,1}}, tilepath);\n Rect cBox = new Rect(2,2,24,22);\n assertEquals(true, tileMap.isOnGround(cBox));\n }",
"private boolean m(){\r\n int m = countColors - maxSat;\r\n if (m <= TH){\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }",
"public boolean percolates() {\n // bottom row (grid[n - 1][0] ... grid[n - 1][n - 1])\n for (int j = 1; j <= size; j++) {\n // StdOut.println(\"j: \"+j+\" isOpen: \"+ isOpen(size, j) +\n // \" isFull: \" + isFull(size, j));\n if (isFull(size, j)) {\n return true;\n }\n }\n return false;\n }",
"@Test\n\tpublic void upDownBlackCapture()\n\t{\n\t\tData d=new Data();\n\t\td.set(21,48);\n\t\td.set(27,70);\n\t\tArrayList<Coordinate> test_arr=d.pieceLost(70);\n\t\tassertTrue(3==test_arr.get(0).getX() && 5==test_arr.get(0).getY());\n\n\t}",
"private boolean didBallHitFloor() {\n \tdouble y = ball.getY();\n \t\n \treturn (y + BALL_RADIUS * 2) <= HEIGHT;\n }",
"public void addTileAtTheEnd(Tile tile);",
"public void checkwarp(){\n\t\tif(pacman.ypos > (colours[0].length*interval)-2){\r\n\t\t\tpacman.ypos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.xpos > (colours.length*interval)-2){\r\n\t\t\tpacman.xpos = interval+2;\r\n\t\t}\r\n\t\telse if(pacman.ypos < interval+2){\r\n\t\t\tpacman.ypos = (colours[0].length*interval)-2;\r\n\t\t}\r\n\t\telse if(pacman.xpos < interval+2){\r\n\t\t\tpacman.xpos = (colours.length*interval)-2;\r\n\t\t}\r\n\t\t\r\n\t}",
"public short fitsOnBeginning(Tile tile);",
"public boolean checkSwitch(int row, int col){\n boolean output = false;\n Tile[] updownleftright = new Tile[4]; //Array which holds the four adjacent tiles\n if (row - 1 >= 0) updownleftright[0] = tiles[row - 1][col];\n else updownleftright[0] = nulltile;\n \n if (row + 1 < sidelength) updownleftright[1] = tiles[row + 1][col];\n else updownleftright[1] = nulltile;\n \n if (col - 1 >= 0) updownleftright[2] = tiles[row][col - 1];\n else updownleftright[2] = nulltile;\n \n if (col + 1 < sidelength) updownleftright[3] = tiles[row][col + 1];\n else updownleftright[3] = nulltile;\n \n for (int i = 0; i < 4; i ++) //Goes through the array and checks to see if any adjacent tile is the blank tile\n {\n if (updownleftright[i].getCurPic() == blankindex){\n tiles[row][col].swap(updownleftright[i]);\n return true;\n }\n }\n return false;\n }",
"public int checkColsTopBottom(Skyscraper[][] matrix, int[] topView, int[] bottomView) {\n PriorityQueue<Integer> bottomQueue = new PriorityQueue<>();\n int[] seenHeights = new int[topView.length];\n int cantConflicts = 0;\n\n for (int j = 0; j < topView.length; j++) {\n int max = 0, counterSeen = 0;\n for (int i = 0; i < topView.length; i++) {\n int currHeight = matrix[i][j].getHeight();\n if (currHeight > max) {\n counterSeen++;\n max = currHeight;\n }\n if (bottomView[j] != 0) {\n updateQueueWithVisibleBuildings(bottomQueue, currHeight);\n }\n }\n if (bottomView[j] != 0) {\n if (bottomQueue.size() != bottomView[j]) {\n cantConflicts++;\n }\n }\n if (topView[j] != 0) {\n if (counterSeen != topView[j]) {\n cantConflicts++;\n }\n }\n while (!bottomQueue.isEmpty()) {\n bottomQueue.poll();\n }\n for (int k = 0; k < seenHeights.length; k++) {\n seenHeights[k] = 0;\n }\n }\n return cantConflicts;\n }",
"public boolean isGoal() {\n for (int row = 0; row < N; ++row) {\n for (int col = 0; col < N; ++col) {\n final int goalValue;\n if (row == N - 1 && col == N - 1) {\n goalValue = 0;\n }\n else {\n goalValue = N * row + col + 1;\n }\n if (tiles[row][col] != goalValue) {\n return false;\n }\n }\n }\n return true;\n }",
"public Integer checkUp()\r\n\t{\r\n\t\treturn this.Y - 1;\r\n\t}",
"public boolean endOfBoard() {\n\t return (y == 0 || y == Board.SIZE - 1);\n\t}",
"private boolean hitMyPaddle() {\n if (b.numX - 60 <= 0) {\n if ((b.numY <= (this.touchedY + 260)) && (b.numY >= (this.touchedY - 260))) {\n } else {\n this.wentOffWall();\n }\n return true;\n } else {\n return false;\n }\n }",
"boolean checkWin(Tile initialTile);",
"public void i() {\n float f2;\n float f3 = 0.0f;\n RectF b2 = b(getDisplayMatrix());\n q.a(this.e, \"checkMatrixBounds cur rect: \" + b2.toString() + \" width: \" + b2.width() + \" height: \" + b2.height());\n if (b2 != null && getDrawable() != null) {\n float height = b2.height();\n float width = b2.width();\n int i2 = this.j;\n if (height <= ((float) i2)) {\n q.a(this.e, \"+1111111111111+: height<=cropperHeight\");\n switch (n.a[this.L.ordinal()]) {\n case 1:\n f2 = -b2.top;\n break;\n case 2:\n f2 = (((float) i2) - height) - b2.top;\n break;\n default:\n f2 = (((((float) i2) - height) / 2.0f) - b2.top) + ((float) getTopBottomGap());\n break;\n }\n } else if (b2.top > ((float) getTopBottomGap())) {\n f2 = (-b2.top) + ((float) getTopBottomGap());\n q.a(this.e, \"+2222222222222+: \" + b2.top + \" \" + getTopBottomGap());\n } else if (b2.bottom < ((float) (getTopBottomGap() + i2))) {\n f2 = ((float) (getTopBottomGap() + i2)) - b2.bottom;\n q.a(this.e, \"+333333333333333+: \" + i2 + \" \" + getTopBottomGap() + \" \" + b2.bottom);\n } else {\n f2 = 0.0f;\n }\n int i3 = this.i;\n if (width <= ((float) i3)) {\n switch (n.a[this.L.ordinal()]) {\n case 1:\n f3 = -b2.left;\n break;\n case 2:\n f3 = (((float) i3) - width) - b2.left;\n break;\n default:\n f3 = (((((float) i3) - width) / 2.0f) - b2.left) + ((float) getLeftRightGap());\n break;\n }\n } else if (b2.left > ((float) getLeftRightGap())) {\n f3 = (-b2.left) + ((float) getLeftRightGap());\n } else if (b2.right < ((float) (getLeftRightGap() + i3))) {\n f3 = ((float) (getLeftRightGap() + i3)) - b2.right;\n }\n q.a(this.e, \"correct: \" + f3 + Token.SEPARATOR + f2);\n this.x.postTranslate(f3, f2);\n }\n }",
"private boolean isLastMoveRochade()\r\n\t{\r\n\t\tMove lastMove = getLastMove();\r\n\t\tif (lastMove == null) return false;\r\n\t\tPiece king = lastMove.to.piece;\r\n\t\tif (!(king instanceof King)) return false;\r\n\t\t\r\n\t\tint y = king.getColor().equals(Color.WHITE) ? 0 : 7;\r\n\t\tif (lastMove.to.coordinate.y != y) return false;\r\n\t\t\r\n\t\tint xDiffAbs = Math.abs(lastMove.to.coordinate.x - lastMove.from.coordinate.x); \r\n\t\treturn xDiffAbs == 2;\r\n\t}",
"private void checkStench(int top, int left, int bottom, int right) {\n\t\tif (top > height - 1) {\n\t\t\ttop = height - 1;\n\t\t}\n\t\tif (bottom < 0) {\n\t\t\tbottom = 0;\n\t\t}\n\t\tif (left < 0) {\n\t\t\tleft = 0;\n\t\t}\n\t\tif (right > width - 1) {\n\t\t\tright = width - 1;\n\t\t}\n\t\tboolean stench = false;\n\t\tfor (int i = bottom; i <= top; i++) {\n\t\t\tfor (int j = left; j <= right; j++) {\n\t\t\t\tstench = false;\n\t\t\t\tif (i > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i - 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (i < width - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i + 1, j));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j > 0) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j - 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (j < height - 1) {\n\t\t\t\t\tSet s = (Set) agentPositions.get(new Point(i, j + 1));\n\t\t\t\t\tfor (Iterator it = s.iterator(); it.hasNext(); ) {\n\t\t\t\t\t\tif (it.next() instanceof Wumpus) {\n\t\t\t\t\t\t\tstench = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (stench) {\n\t\t\t\t\tif (!checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\taddImage(i, j, STENCH_FILE, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (checkImage(i, j, STENCH_FILE)) {\n\t\t\t\t\t\tremoveImage(i, j, STENCH_FILE);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}",
"void loopy() {\n if (position.y < -50) {\n position.y = Constants.height + 50;\n } else\n if (position.y > Constants.height + 50) {\n position.y = -50;\n }\n if (position.x< -50) {\n position.x = Constants.width +50;\n } else if (position.x > Constants.width + 50) {\n position.x = -50;\n }\n }",
"public boolean isFull() {\n if(this.top==(size - 1)) {\n return true;\n }\n return false;\n }",
"public int getTileHeight() {\n return 8;\n }",
"public int getYBottom() {\n return getYTop() + getYWidth();\n }",
"@Override\n public void update() {\n super.update();\n\n //check if ball is out\n checkBallOutTopBottom();\n checkBallOutLeftRight();\n }",
"private void revealAround() {\n if (xTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile - 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile - 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile - 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile - 1][yTile].setRevealed(true);\n }\n }\n if (yTile - 1 >= 0 && !References.GetMainTileActorMap()[xTile][yTile - 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile - 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile - 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile - 1].setRevealed(true);\n }\n }\n if (xTile + 1 < Parameters.NUM_X_TILES && !References.GetMainTileActorMap()[xTile + 1][yTile].isRevealed()) {\n References.GetMainTileActorMap()[xTile + 1][yTile].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile + 1][yTile].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile + 1][yTile].setRevealed(true);\n }\n }\n if (yTile + 1 < Parameters.NUM_Y_TILES && !References.GetMainTileActorMap()[xTile][yTile + 1].isRevealed()) {\n References.GetMainTileActorMap()[xTile][yTile + 1].setRevealed(true);\n\n if (References.GetMainTileActorMap()[xTile][yTile + 1].itContainsMonster()) {\n References.GetMonsterActorMap()[xTile][yTile + 1].setRevealed(true);\n }\n }\n }"
] | [
"0.6592975",
"0.6575199",
"0.6549407",
"0.6345004",
"0.6247037",
"0.6214236",
"0.61049867",
"0.6038011",
"0.60150504",
"0.59821683",
"0.59590465",
"0.59503675",
"0.5921564",
"0.5919305",
"0.5894885",
"0.5890772",
"0.58769464",
"0.58638775",
"0.58560365",
"0.58393145",
"0.5827024",
"0.58085054",
"0.580711",
"0.57849336",
"0.5731668",
"0.5731374",
"0.57307255",
"0.57286423",
"0.5715015",
"0.571161",
"0.5710387",
"0.5705396",
"0.57036996",
"0.5692481",
"0.5691768",
"0.56913024",
"0.5686536",
"0.5685008",
"0.56846577",
"0.56812304",
"0.568112",
"0.56793386",
"0.567721",
"0.56745636",
"0.5673863",
"0.5660479",
"0.5658493",
"0.56466377",
"0.56431526",
"0.5642799",
"0.5635546",
"0.5633594",
"0.5626154",
"0.56205434",
"0.5617083",
"0.5611981",
"0.56119543",
"0.5611571",
"0.5607869",
"0.56013584",
"0.5592115",
"0.55906004",
"0.55829775",
"0.5572626",
"0.55611205",
"0.555798",
"0.5556206",
"0.55553895",
"0.5550193",
"0.55420405",
"0.5540064",
"0.5536512",
"0.553531",
"0.5530768",
"0.55258673",
"0.5520391",
"0.5520274",
"0.55187297",
"0.55170745",
"0.5516408",
"0.551473",
"0.55132747",
"0.55054426",
"0.55035776",
"0.55035144",
"0.54959095",
"0.5494473",
"0.5491422",
"0.54811317",
"0.54780376",
"0.547693",
"0.54730266",
"0.5468447",
"0.54643995",
"0.5459355",
"0.545743",
"0.54542685",
"0.54521763",
"0.5451866",
"0.5443238"
] | 0.58340895 | 20 |
TODO Autogenerated method stub | @Override
public void afterInit() {
} | {
"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 |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.