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 boolean seLanceSurServiteurProprietaire() { return false; }
{ "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 List<Role> findAll() { return this.roleMapper.findQueryAll(); }
{ "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 List<Role> findByName(String name) { return this.roleMapper.findQueryByName(name); }
{ "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 saveRole(Role role) { this.roleMapper.insert(role); }
{ "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 Role findById(int id) { return this.roleMapper.selectByPrimaryKey(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 public void updateRole(Role role) { this.roleMapper.updateByPrimaryKey(role); }
{ "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 deleteRole(int id) { this.roleMapper.deleteByPrimaryKey(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
Starting a new Intent
public void onClick(View arg0) { Intent nextScreen = new Intent(getApplicationContext(), ActivityTwo.class); //Sending data to another Activity nextScreen.putExtra("name_input", inputName.getText().toString()); nextScreen.putExtra("email_input", inputEmail.getText().toString()); Log.e("n", inputName.getText() + "." + inputEmail.getText()); startActivity(nextScreen); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void startNewActivity(Intent intent);", "private void startNewAcitivity(Intent intent, ActivityOptionsCompat options) {\n ActivityCompat.startActivity(this, intent, options.toBundle());\n }", "@Override\n public void startActivity(Intent intent) {\n startActivity(intent, null);\n }", "private void openNewActivity() {\n Intent intent = new Intent(this, NewNoteActivity.class);\n startActivityForResult(intent, SECOND_ACTIVITY_REQUEST);\n }", "@Override\n public void onClick(View view) {\n\n startActivity(getIntent());\n }", "public void nextIntent(){\n \t\n \tIntent y=new Intent();\n \ty.setClass(MainActivity.this, Dashboard.class);\n \t\n \tstartActivity(y);\n \t\n \t\n}", "@Override\n public void run() {\n startActivity(intent);\n }", "public void openNewActivity(){\n Intent intent = new Intent(this, InventoryDisplay.class);\n startActivity(intent);\n }", "public void Volgende(Intent intent){\r\n\r\n startActivity(intent);\r\n\r\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "private void launchStartMinglingActivity() {\n\t\tIntent startMinglingActivity = new Intent(this,\n\t\t\t\tStartMinglingActivity.class);\n\t\tstartActivity(startMinglingActivity);\n\t}", "public void onClick(View v) {\n\n\n\n startActivity(myIntent);\n }", "@Override\n public void onClick(View view) {\n startActivity(new Intent(StartActivity.this, MainActivity.class));\n }", "@Override\n\t\tpublic void onClick(View v)\n\t\t{\n\t\t\tIntent intent=new Intent();\n\t\t\tintent.setClass(MainActivity.this, SecondActivity.class);\n\t\t\tintent.putExtra(\"str\", \"Intent Demo\");\n\t\t\t//startActivity(intent);\n\t\t\tstartActivityForResult(intent, REQUEST_CODE);\n\t\t}", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n }", "@Override\n\tpublic void onNewIntent(Intent intent) {\n\t\tsetIntent(intent);\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(LaunchActivity.this, MainActivity.class);\n startActivity(intent);\n }", "private void startMainActivity() {\n Intent intent = new Intent(this, MyActivity.class);\n startActivity(intent);\n }", "protected abstract Intent createOne();", "public void startIntent(View view) {\n Intent addToDoIntent = new Intent(ToDoListActivity.this, AddToDoActivity.class);\n startActivityForResult(addToDoIntent, TODO_ADDED);\n }", "void start(Intent intent, IntentFilter filter, IIntentCallback callback, IEclipseContext context);", "public void onClick2(View v) {\n\n\n PackageManager pm = getPackageManager();\n Intent intent = pm.getLaunchIntentForPackage(\"com.lee.test\");\n\n if (intent != null) {\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }else {\n Toast.makeText(MainActivity.this,\"空intent\",Toast.LENGTH_SHORT).show();\n }\n\n\n }", "@Override\n public void onNewIntent(Intent intent) {\n setIntent(intent);\n handleIntent(intent);\n }", "public void startNewActivity(Context context, String packageName) {\n Intent intent = context.getPackageManager().getLaunchIntentForPackage(packageName);\n if (intent != null) {\n /* We found the activity now start the activity */\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intent);\n } else {\n /* Bring user to the market or let them choose an app? */\n intent = new Intent(Intent.ACTION_VIEW);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n intent.setData(Uri.parse(\"market://details?id=\" + packageName));\n context.startActivity(intent);\n }\n }", "private void startActivity(Class destination)\n {\n Intent intent = new Intent(MainActivity.this, destination);\n startActivity(intent);\n }", "public static void startUrself(Activity context) {\n\t\tIntent newActivity = new Intent(context, MainActivity.class);\n\t\tnewActivity.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\tcontext.startActivity(newActivity);\n\t\tcontext.finish();\n\t}", "private void superStartActivity(Intent intent, Bundle options) {\n super.startActivity(intent, options);\n }", "public void toBeam(){\n Intent intent = new Intent(this, Beam.class);\n startActivity(intent);\n }", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "@Override\n public void onClick(View view) {\n Intent intent = MainActivity.newIntent(getActivity(), mMonitor.getId());\n startActivity(intent);\n\n }", "void openActivity() {\n Intent intent = new Intent(\"myaction\");\n Bundle bundle = new Bundle();\n bundle.putString(\"name\", \"hui\");\n intent.putExtras(bundle);\n startActivityForResult(intent, 1);\n }", "public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(NowPlaying.this, classDestination);\n // starting new activity\n startActivity(intent);\n }", "void gotoMainIntent() {\r\n // Intenting to start the activity \"main\".\r\n Intent mainIntent = new Intent(this, Main.class);\r\n this.startActivity(mainIntent);\r\n this.finish(); // Splash screen is done now... Needed, otherwise when closing the main activity will result\r\n // in coming back to the splashscreen.\r\n }", "@Override\n public void onClick(View view) {\n int LAUNCH_SECOND_ACTIVITY = 1;\n Intent intent = new Intent(StartActivity.this, AboutActivity.class);\n startActivityForResult(intent, LAUNCH_SECOND_ACTIVITY);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(FxService.this, MainActivity.class);\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "protected void startMainActivity() {\n Intent i = new Intent(this, MainActivity.class);\n startActivity(i);\n }", "public void onNewIntent(Intent intent) {\n }", "private void openActivity() {\n }", "void mstrange(){\n Intent i = new Intent(context,Pengembalian.class);\n context.startActivity(i);\n }", "private void openNewActivity(Class<RegisterActivity> class_argument) {\r\n Intent intent = new Intent(this, class_argument);\r\n startActivity(intent);\r\n }", "@Override\n public void onClick(View view) {\n Intent intent = new Intent(MainActivity.this, TriggerActivity.class);\n startActivity(intent);\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmContext.startActivity(intent);\n\t\t\t\t}", "@Override\n public void startNewActivity(Bundle bundle, Class newClass) {\n if (newClass == DashboardActivity.class) {\n startActivity(DashboardActivity.getIntent(mContext));\n finish();\n }\n\n }", "@Override\n\t public void onClick(View v) {\n\t \t try{\n\t \t\t PackageManager pm = getPackageManager();\n\t \t\t Intent intent = pm.getLaunchIntentForPackage(\"com.getpebble.android\");\n\t \t\t startActivity(intent);\n\t \t }finally{;}\n\t }", "@Override\r\n public void onNewIntent(Intent intent){\r\n super.onNewIntent(intent);\r\n\r\n //changes the intent returned by getIntent()\r\n setIntent(intent);\r\n }", "public void launchBasic(View view){\n Intent basic = new Intent(MainActivity.this,BasicActivity.class);\n startActivity(basic);\n }", "@Override\n\tpublic void startActivityForResult(Intent intent, int requestCode) {\n\t\tsuper.startActivityForResult(intent, requestCode);\n\t}", "@Override\n public void onNewIntent(Intent intent) {\n }", "private void startControlRobotActivity(){\n Intent intent = new Intent(this, ControlRobotActivity.class );\n startActivity(intent);\n finish();\n }", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "@Override\n protected void onNewIntent(Intent intent){\n handleIntent(intent);\n }", "@Override\n public void onClick(View view) {\n // Create a new intent\n Intent new_release_intent = new Intent(VietPopActivity.this, MainActivity.class);\n new_release_intent.putExtra(\"uniqueid\",\"from_viet\");\n // Start the new activity\n startActivity(new_release_intent);\n }", "@Override\n\tprotected void positiveResult(String command) {\n\t\tstartActivity(new Intent(this, FifthActivity.class));\n\t}", "@Override\n public void onClick(View view) {\n Intent sleepIntent = new Intent(MainActivity.this, Sleep_Playlist.class);\n // Start the new activity\n startActivity(sleepIntent);\n }", "private void launchTask() {\n switch (buttonPressed) {\n case 1: // Launch task 1\n Intent i = new Intent(this, TaskActivity1.class);\n startActivity(i);\n break;\n case 2: // Launch task 2\n Intent j = new Intent(this, TaskActivity2.class);\n startActivity(j);\n }\n }", "@Override\r\n public void onNewIntent(Intent intent){\r\n \t\r\n \tthis.activateExamBoard(intent);\r\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "Intent createNewIntent(Class cls);", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tsetIntent(intent);\n\t}", "public boolean openCreateGoal(){\n Intent intent = new Intent(this, GoalNewActivity.class);\n startActivity(intent);\n return true;\n }", "public void openCreateAccount(){\n Intent intent = new Intent(this, createAccountActivity.class);\n startActivity(intent);\n }", "public static void startActivity(Context context) {\n Intent homeIntent = new Intent(context, RequestActivity.class);\n context.startActivity(homeIntent);\n }", "private void goToMain(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void iniciarActivity() {\n\n Intent intent = new Intent(ActivityA.this, ActivityB.class);\n startActivity(intent);\n }", "private void goToMain(){\n Intent intent = new Intent(getBaseContext(), MainActivity.class);\n startActivity(intent);\n }", "private void goSomewhere() {\n\n Intent intent = new Intent();\n intent.setClassName(Home.this,this.tip.getTipIntent());\n startActivity(intent);\n }", "private void startActivity() {\n if (checkGooglePlayServices()) {\n mActivity.startActivity(IntentUtils.newIntent(mActivity, FeedActivity.class));\n mActivity.finish();\n }\n }", "@Override\n protected void onNewIntent(Intent intent) {\n }", "public void openActivity(){\n Intent intent = new Intent();\n if(bopenLogin)\n {\n intent = new Intent(Splashscreen.this, Login.class);\n }\n else\n {\n intent = new Intent(Splashscreen.this, MainActivity.class);\n }\n startActivity(intent);\n finish();\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }", "private void launchDeepLinkActivity(Intent intent) {\n LogUtils.LOGE(\"***> Here\", \"launchDeepLinkActivity:\" + intent);\n Intent newIntent = new Intent(intent).setClass(this, ParseDeepLinkActivity.class);\n startActivity(newIntent);\n }", "@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n// QPManager.startRecordActivity(MainActivity.this);\n }", "private void launchOtherTransaction(){\n Intent intent = new Intent(this, MainActivity.class);\n startActivity(intent);\n }", "public void startCreateTripActivity() {\r\n\t\t\r\n\t\t// TODO - fill in here\r\n Intent intent = new Intent(this, CreateTripActivity.class);\r\n startActivityForResult(intent, CREATE_CODE);\r\n\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(getApplicationContext(),\tLauncher.class));\n\t\t\t}", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent irss = new Intent(man_lamar.this,ITCutiesReaderAppActivity.class);\n\t\t\t\tstartActivity(irss);\n\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent i=new Intent(getApplicationContext(),MainActivity.class);\r\n\t\t\t\t\tstartActivity(i);\r\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent\tin=new Intent(Intent.ACTION_VIEW,Uri.parse(uri2));\n\t\t\t\tstartActivity(in);\n\t\t\t\t\n\t\t\t}", "public void openFirstActivity(View view) {\n Intent openFirstActivity=new Intent(getApplicationContext(), FirstActivity.class);\n startActivity(openFirstActivity);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,MyActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tstartActivity(new Intent(MainActivity.this,\n\t\t\t\t\t\tcom.itcuties.android.apps.MainActivity.class));\n\n\t\t\t}", "protected void activityStart(String act){\r\n Class c = Constants.getClass(act);\r\n if(c!=null){\r\n startActivity(new Intent(Main.this, c ));\r\n }\r\n }", "private void openMainActivity(int pos) {\n Intent i = new Intent(Launcher.this, MainActivity.class);\n i.putExtra(\"division\", pos);\n startActivity(i);\n }", "@Override\n public void onClick(View arg0) {\n Intent i = new Intent(getApplicationContext(), sh1.class);\n startActivity(i);\n }", "@Override\n public void onClick(View view) {\n Intent intent = ClassActivity.newIntent(getActivity(), mClass.getId());\n getActivity().startActivity( intent );\n }", "@Override\n\tprotected void onNewIntent(Intent intent) {\n\t\tsuper.onNewIntent(intent);\n\t\tToast.makeText(MainActivity.this, \"player\", Toast.LENGTH_SHORT).show();\n\t}", "public void startAddActivity() {\n Intent addMemberIntent = new Intent(getContext(), MemberAddActivity.class);\n startActivityForResult(addMemberIntent, ADD_MEMBER_REQUEST_CODE);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent light = new Intent(MainActivity.this,Light.class);\n\t\t\t\tstartActivity(light);\n\t\t\t}", "public void onClick(View arg0) {\n Intent nextScreen = new Intent(NewClass.this, ListClass.class);\r\n\r\n String name = inputName.getText().toString();\r\n String num = inputNum.getText().toString();\r\n int newNum = Integer.parseInt(num);\r\n ListClass.items.add(new Class(name,newNum));\r\n Log.i(TAG, \"Before startActivity\");\r\n // starting new activity\r\n startActivity(nextScreen);\r\n Log.i(TAG, \"After startActivity\");\r\n\r\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(Intent.ACTION_CALL_BUTTON);\n //intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }", "void mChapie(){\n Intent i = new Intent(context,Peminjaman.class);\n context.startActivity(i);\n\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent(MainActivity.this, MainActivity01.class);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent in = new Intent(getApplicationContext(),MainActivity.class);\n\t\t\t\tstartActivity(in);\n\t\t\t}", "private void openMainActivity()\n {\n // Create the required intent, i.e. a description of MainActivity.\n Intent intent = new Intent(this, MainActivity.class);\n\n // Start the intent.\n startActivity(intent);\n\n // Call this Activity's finish() method.\n finish();\n }", "@Override\n\t\tpublic void onClick(View arg0) {\n\t\t\tIntent intent = new Intent(MainActivity.this, MainActivity2.class);\n\t\t\tstartActivity(intent);\n\t\t}", "@Override\n public void onClick(View view) {\n // Create a new intent to open the {@link inflatorsActivity}\n Intent inflatorsIntent = new Intent(MainActivity.this, inflatorsActivity.class);\n // Start the new activity\n startActivity(inflatorsIntent);\n }", "@Override\n public void run() {\n Intent i = new Intent(ActivityTestStart.this, ActivityTestList.class);\n startActivity(i);\n finish();\n }" ]
[ "0.8284751", "0.75490785", "0.7505843", "0.7477715", "0.7227833", "0.7227295", "0.7190018", "0.71341217", "0.70691866", "0.70667887", "0.70667887", "0.70445263", "0.7011311", "0.7004684", "0.69984794", "0.6995166", "0.6955471", "0.69399333", "0.6939175", "0.69113314", "0.69011307", "0.6877923", "0.6874803", "0.68594253", "0.68450975", "0.68213475", "0.68090487", "0.6793593", "0.6791884", "0.67861307", "0.6777894", "0.6771491", "0.6764672", "0.6762829", "0.6734847", "0.6732586", "0.6713717", "0.6713717", "0.6707547", "0.6703298", "0.6702373", "0.67006356", "0.6686023", "0.6676654", "0.66739714", "0.6672912", "0.6669092", "0.6667654", "0.6664232", "0.66566527", "0.66464114", "0.66422296", "0.66397274", "0.6636249", "0.6633446", "0.66291416", "0.6615179", "0.66128093", "0.6609345", "0.66021544", "0.659551", "0.658837", "0.6586902", "0.65849626", "0.6574799", "0.6569387", "0.65686584", "0.6566123", "0.6565869", "0.65591455", "0.6556752", "0.6542831", "0.6539837", "0.65282834", "0.6522814", "0.651839", "0.6513901", "0.651247", "0.65009767", "0.6500892", "0.64870065", "0.6482116", "0.64813507", "0.6478972", "0.6477159", "0.6470573", "0.6467513", "0.64628065", "0.6462771", "0.6462437", "0.6459382", "0.64547646", "0.6454342", "0.64528394", "0.64510477", "0.6448589", "0.6446526", "0.6444373", "0.6430695", "0.6422731", "0.6421355" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.activity_one, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}", "@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); if (id == R.id.action_settings) { return true; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.7904975", "0.78056985", "0.77671826", "0.77275974", "0.7632173", "0.7622138", "0.75856143", "0.7531176", "0.7488386", "0.74576557", "0.74576557", "0.74391466", "0.7422802", "0.7403698", "0.7392229", "0.73873955", "0.73796785", "0.737091", "0.73627585", "0.7356357", "0.73460615", "0.73415256", "0.73305213", "0.7329754", "0.7326127", "0.731949", "0.73171073", "0.7314056", "0.7304481", "0.7304481", "0.73022866", "0.72986156", "0.7293808", "0.7287263", "0.72836643", "0.72815806", "0.72789687", "0.72602886", "0.72602886", "0.72602886", "0.7259816", "0.7259814", "0.72502047", "0.7225156", "0.7219905", "0.7217096", "0.72046524", "0.72012514", "0.7201042", "0.71939653", "0.71857035", "0.71786326", "0.7169012", "0.7167622", "0.7154164", "0.71538347", "0.7136608", "0.7135137", "0.7135137", "0.7129952", "0.7129347", "0.71241516", "0.7123588", "0.7123425", "0.71223265", "0.71175927", "0.71175927", "0.71175927", "0.71175927", "0.71171945", "0.71171755", "0.71165764", "0.7114952", "0.71124375", "0.7109778", "0.7109144", "0.7105842", "0.71002746", "0.70984215", "0.7096018", "0.709392", "0.709392", "0.70864546", "0.7083677", "0.708144", "0.70804363", "0.70738995", "0.7068429", "0.7061805", "0.7060801", "0.7060423", "0.7051581", "0.7037953", "0.7037953", "0.70359737", "0.7035605", "0.7035605", "0.7033388", "0.70312315", "0.7029681", "0.70192695" ]
0.0
-1
Create a new empty XMLDocument.
public static XMLDocument create() { return new XMLDocument(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public XMLDocument ()\r\n\t{\r\n\t\tthis (DEFAULT_XML_VERSION, true);\r\n\t}", "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 XMLDocument() {\r\n xml = new StringBuilder();\r\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 Document newDocument() {\n\t\treturn new org.apache.xerces.dom.DocumentImpl();\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 WalkerDocument newDocument() { return newDocument((IOptions)null); }", "Object create(Document doc) throws IOException, SAXException, ParserConfigurationException;", "public static void initXMLdoc() throws Exception {\n\tDocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n DocumentBuilder builder = factory.newDocumentBuilder();\n DOMImplementation impl = builder.getDOMImplementation();\n\n\tdoc = impl.createDocument(null,null,null);\n }", "public XMLBuilder()\n\t{\n\t\tthis(\"\");\n\t}", "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 XmlDocumentDefinition() {\n }", "public void createEmptyDocument()\n throws IOException, SAXException {\n URL url = WPVSCapabilitiesDocument.class.getResource( XML_TEMPLATE );\n if ( url == null ) {\n throw new IOException( \"The resource '\" + XML_TEMPLATE + \" could not be found.\" );\n }\n load( url );\n }", "public DocumentBuilder() {\n this.document = new Document();\n }", "@Nonnull\r\n private static Document _createDummyPayload () {\n final Document aXMLDoc = XMLFactory.newDocument ();\r\n final Node aRoot = aXMLDoc.appendChild (aXMLDoc.createElement (\"test\"));\r\n aRoot.appendChild (aXMLDoc.createTextNode (\"Text content\"));\r\n return aXMLDoc;\r\n }", "public Doc newDocument(String documentElementName) {\n return new Doc(documentElementName);\n }", "public DocumentBuilder newDocumentBuilder()\n throws ParserConfigurationException {\n return(new DocumentBuilderImpl(this.isNamespaceAware(),\n this.isValidating()));\n }", "private Document createXMLDocumentStructure() {\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder builder = null;\r\n\t\ttry {\r\n\t\t\tbuilder = dbf.newDocumentBuilder();\r\n\t\t} catch (ParserConfigurationException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t// Creates the Document\r\n\t\tDocument serviceDoc = builder.newDocument();\r\n\t\t/*\r\n\t\t * Create the XML Tree\r\n\t\t */\r\n\t\tElement root = serviceDoc.createElement(\"service\");\r\n\r\n\t\tserviceDoc.appendChild(root);\r\n\t\treturn serviceDoc;\r\n\t}", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "DocumentRoot createDocumentRoot();", "public Document createDefaultDocument()\n {\n return new MoeSyntaxDocument(projectResolver, documentListener);\n }", "public static Document createDocument( StringNode root )\r\n\t\tthrows ParserConfigurationException\r\n\t{\r\n \tDocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();\r\n Document doc = docBuilder.newDocument();\r\n String name = root.getName();\r\n Element element = doc.createElement( name );\r\n doc.appendChild( element );\r\n addElement( doc, element, root );\r\n return doc;\r\n\t}", "public MyDocument() {\r\n }", "public XMLDocument (double version)\r\n\t{\r\n\t\tthis (version, true);\r\n\t}", "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 static Document createNewDocument(String rootName, Version version) {\r\n try {\r\n DocumentBuilder db = DocumentBuilderFactory.newInstance()\r\n .newDocumentBuilder();\r\n Document doc = db.newDocument();\r\n Node root = doc.createElement(rootName);\r\n if (version != null) {\r\n addAttr(doc, root, \"version\", version);\r\n }\r\n\r\n doc.appendChild(root);\r\n return doc;\r\n } catch (Exception e) {\r\n logger.log(Level.SEVERE, \"exception\", e);\r\n }\r\n\r\n return null;\r\n }", "public OpenOfficeXMLDocumentParser() {\r\n }", "public Document() {\n }", "public void openBlankXmlFile() {\n\t\t\n\t\t// the root of the xmlElement tree\n\t\trootNode = new XmlNode(this);\n\t\tXmlElement rootField = rootNode.getXmlElement();\n\t\t\n\t\trootField.setName(\"rootElement\", true);\n\t\t\n\t\tXmlNode newNode = new XmlNode(rootNode, this);// make a new default-type field\n\t\trootNode.addChild(newNode);\n\t}", "public static final XMLPath createRoot() {\r\n return new XMLPath();\r\n }", "public XmlElement() {\n }", "protected Document createDefaultModel() {\n return new PlainDocument();\n }", "private XmlFactory() {\r\n /* no-op */\r\n }", "public DocumentManipulator() {\n\t\ttry {\n\t\t\tthis.document = XMLUtils.buildDocument();\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SAXException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ParserConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t//-- Init Xpath\n\t\tinit();\n\t}", "public XMLMessage(Document document) {\n setDocument(document);\n }", "public static Element newRootElement()\n {\n Element element = null;\n \n try\n {\n javax.xml.parsers.DocumentBuilderFactory factory =\n javax.xml.parsers.DocumentBuilderFactory.newInstance();\n \n javax.xml.parsers.DocumentBuilder builder =\n factory.newDocumentBuilder();\n \n Document document = builder.newDocument();\n Element holder = document.createElement(\"root\");\n document.appendChild(holder);\n element = document.getDocumentElement();\n }\n catch(Exception ex) { ex.printStackTrace(); }\n \n return element;\n }", "public static DocumentBuilder getXMLBuilder() {\n\n return getXMLBuilder( false, true, false, false, false, false, false, null );\n }", "private Doc(String documentElementName) {\n e = d.createElement(documentElementName);\n d.appendChild(e);\n }", "protected RCPOMDocument() {\n\t}", "protected Element createDocument() {\r\n // create the dom tree\r\n DocumentBuilder builder = getDocumentBuilder();\r\n Document doc = builder.newDocument();\r\n Element rootElement = doc.createElement(TESTSUITES);\r\n doc.appendChild(rootElement);\r\n\r\n generatedId = 0;\r\n\r\n // get all files and add them to the document\r\n File[] files = getFiles();\r\n for (int i = 0; i < files.length; i++) {\r\n File file = files[i];\r\n try {\r\n if(file.length()>0) {\r\n Document testsuiteDoc\r\n = builder.parse(\"file:///\" + file.getAbsolutePath());\r\n Element elem = testsuiteDoc.getDocumentElement();\r\n // make sure that this is REALLY a testsuite.\r\n if (TESTSUITE.equals(elem.getNodeName())) {\r\n addTestSuite(rootElement, elem);\r\n generatedId++;\r\n } else {\r\n }\r\n } else {\r\n }\r\n } catch (SAXException e) {\r\n // a testcase might have failed and write a zero-length document,\r\n // It has already failed, but hey.... mm. just put a warning\r\n } catch (IOException e) {\r\n }\r\n }\r\n return rootElement;\r\n }", "public JCYDocument() {}", "public DOMParser() { ; }", "private static DocumentBuilder instantiateParser()\n throws IOException {\n\n DocumentBuilder parser = null;\n\n try {\n DocumentBuilderFactory fac = DocumentBuilderFactory.newInstance();\n fac.setNamespaceAware( true );\n fac.setValidating( false );\n fac.setIgnoringElementContentWhitespace( false );\n parser = fac.newDocumentBuilder();\n return parser;\n } catch ( ParserConfigurationException e ) {\n throw new IOException( \"Unable to initialize DocumentBuilder: \" + e.getMessage() );\n }\n }", "public static DocumentBuilder createDocumentBuilder() {\n\t\treturn createDocumentBuilder(DefaultEntityResolver.getInstance());\n\t}", "public ModDocument() {\r\n\t\tsuper();\r\n\t}", "private Document initialize() {\r\n Document doc = null;\r\n try {\r\n File file = new File(\"./evidence.xml\");\r\n DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();\r\n doc = docBuilder.parse(file);\r\n doc.getDocumentElement().normalize();\r\n } catch (ParserConfigurationException | IOException | SAXException e) {\r\n System.err.println(\"Parser failed parse file:\"+e.getMessage());\r\n }\r\n return doc;\r\n }", "public WalkerDocument newDocument(DocumentTag adapter) { return newDocument(adapter, null); }", "Document toXml() throws ParserConfigurationException, TransformerException, IOException;", "public DocumentBuilderFactory createDocumentBuilderFactory() throws FactoryConfigurationError {\n return DocumentBuilderFactory.newInstance();\n }", "public static Document createDocument(final Element element) {\n\t\tfinal DOMImplementation domImplementation = element.getOwnerDocument().getImplementation(); //get the DOM implementation used to create the document\n\t\t//create a new document corresponding to the element\n\t\t//TODO bring over the doctype, if needed\n\t\tfinal Document document = domImplementation.createDocument(element.getNamespaceURI(), element.getNodeName(), null);\n\t\tfinal Node importedNode = document.importNode(element, true); //import the element into our new document\n\t\tdocument.replaceChild(importedNode, document.getDocumentElement()); //set the element clone as the document element of the new document\n\t\treturn document; //return the document we created\n\t}", "public XMLElement() {\n this(new Properties(), false, true, true);\n }", "public Document getAsXMLDOM () {\r\n\r\n //code description\r\n\r\n return document;\r\n\r\n }", "public XMLDocument (double version, boolean standalone)\r\n\t{\r\n\t\tprolog = new Vector<Object> (2);\r\n\t\tStringBuffer versionStr = new StringBuffer ();\r\n\t\tversionStr.append (\"<?xml version=\\\"\");\r\n\t\tversionStr.append (version);\r\n\t\tversionStr.append (\"\\\" standalone=\\\"\");\r\n\t\tif (standalone)\r\n\t\t\tversionStr.append (\"yes\\\"?>\");\r\n\t\telse\r\n\t\t\tversionStr.append (\"no\\\"?>\\n\");\r\n\t\tthis.versionDecl = versionStr.toString ();\r\n\t\t/**\r\n * FIXME: ECS currently does not do any ordering of attributes. Although\r\n * about 99% of the time, this has no problems, in the initial XML\r\n * declaration, it can be a problem in certain frameworks (e.g.\r\n * Cocoon/Xerces/Xalan). So instead of adding an element here, we have\r\n * to store this first command in a String and add it to the output at\r\n * output time.\r\n */\r\n\t\t/**\r\n * PI versionDecl = new PI().setTarget(\"xml\"); if (standalone)\r\n * versionDecl.addInstruction(\"standalone\", \"yes\"); else\r\n * versionDecl.addInstruction(\"standalone\", \"no\");\r\n * versionDecl.setVersion(version); prolog.addElement(versionDecl);\r\n */\r\n\t}", "public XML xml() {\n return new XMLDocument(new Xembler(this.dirs).domQuietly());\n }", "private Element createXmlElementForUndefined(Undefined undefined, Document xmlDocument, Constraint constraint) {\n\t\tElement element = xmlDocument.createElement(XML_UNDEFINED);\n\t\treturn element;\n\t}", "public abstract WalkerDocument newDocument(IOptions options);", "public DocumentBuilderFactoryImpl() {\n super();\n }", "public XMPDocumentBuilder() throws XmpSchemaException {\n\t\tnsMap = new NSMapping();\n\t}", "private void createRootNode()\r\n {\r\n root = new Node(\"root\", null);\r\n Node.clear();\r\n }", "protected static org.w3c.dom.Document setUpXML(String nodeName)\n throws ParserConfigurationException\n {\n //try\n //{\n DocumentBuilderFactory myFactory = DocumentBuilderFactory.newInstance();\n DocumentBuilder myDocBuilder = myFactory.newDocumentBuilder();\n DOMImplementation myDOMImpl = myDocBuilder.getDOMImplementation();\n // resultDocument = myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", \"PDFResult\", null);\n org.w3c.dom.Document resultDocument =\n myDOMImpl.createDocument(\"at.ac.tuwien.dbai.pdfwrap\", nodeName, null);\n return resultDocument;\n //}\n //catch (ParserConfigurationException e)\n //{\n // e.printStackTrace();\n // return null;\n //}\n\n }", "public TrecWebDocument() {\r\n try {\r\n startTag = XML_START_TAG.getBytes(\"utf-8\");\r\n endTag = XML_END_TAG.getBytes(\"utf-8\");\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public DoubleDocument () {\r\n\t}", "public static Document newDocument(final String xmlContent, boolean useNamespaces) throws IOException, SAXException, ParserConfigurationException, XMLException {\n\t\tfinal ByteArrayInputStream in = new ByteArrayInputStream(xmlContent.getBytes());\n\t\treturn XMLHelper.parse(in, useNamespaces);\n\t}", "@Override\n\tpublic Element newInstance() {\n\t\treturn null;\n\t}", "public static Document removeEmptyXmlns(Document input)\r\n throws SAXException, ParserConfigurationException, IOException {\r\n String s = xmlToString(input);\r\n s = s.replace(EMPTY_XMLNS, EMPTY_STRING);\r\n Document output = stringToDom(s);\r\n return output;\r\n }", "public static Document copy(Node xml)\r\n throws SAXException,\r\n IOException,\r\n TransformerConfigurationException,\r\n TransformerException \r\n {\r\n return XMLUtil.getOwnerDocument(copy(xml, (Node)null));\r\n }", "public Document()\n {\n index = 0;\n words = 0;\n sentences = 0;\n syllables = 0;\n }", "public Document getXML() {\n\t\treturn null;\n\t}", "public ConferenceInfoDocument()\n\t\tthrows XMLException\n\t{\n\t\ttry {\n\t\t\tdocument = XMLUtils.createDocument();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tlogger.error(\"Failed to create a new document.\", e);\n\t\t\tthrow (new XMLException(e.getMessage()));\n\t\t}\n\n\t\tconferenceInfo = document.createElementNS(NAMESPACE, CONFERENCE_INFO_ELEMENT_NAME);\n\t\tdocument.appendChild(conferenceInfo);\n\n\t\tsetVersion(1);\n\n\t\tconferenceDescription = document.createElement(CONFERENCE_DESCRIPTION_ELEMENT_NAME);\n\t\tconferenceInfo.appendChild(conferenceDescription);\n\n\t\tconferenceState = document.createElement(CONFERENCE_STATE_ELEMENT_NAME);\n\t\tconferenceInfo.appendChild(conferenceState);\n\t\tsetUserCount(0);\n\n\t\tusers = document.createElement(USERS_ELEMENT_NAME);\n\t\tconferenceInfo.appendChild(users);\n\t}", "public void startDocument() {\n\t\t\tif (isVerbose()) {\n\t\t\t\tlogInfo(\"start\", \"\");\n\t\t\t\tindent();\n\t\t\t}\n\n\t\t\t_attributes.clear();\n\t\t\t_root = null;\n\t\t}", "public static XML getDefaultXML() {\r\n try {\r\n return (XML) Class.forName(defaultXMLName).newInstance();\r\n }\r\n catch (InstantiationException | IllegalAccessException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n return null;\r\n }", "public HtmlTree()\n {\n // do nothing\n }", "public WalkerDocument newDocument(String path) throws HtmlWalkerException { return newDocument(path, null); }", "protected Document() {/* intentionally empty block */}", "private DOMs() {\n }", "public XMLUtils() {\r\n\t\tsuper();\r\n\t}", "public GongDomObject() throws ParserConfigurationException {\r\n super();\r\n \r\n // Remove the previous anchor\r\n Document document = getDocument();\r\n document.removeChild(document.getDocumentElement());\r\n \r\n // Create the default anchor element\r\n anchor = document.createElementNS(XmlConstants.NAMESPACE_URI, getTag().toString());\r\n document.appendChild(anchor);\r\n }", "public Documento() {\n\n\t}", "private XmlHelper() {}", "public static PSMLDocument createDocument(Profile profile) {\n return getService().createDocument(profile);\n }", "protected synchronized DocumentBuilder getDocumentBuilder() throws ParserConfigurationException {\r\n if (documentBuilder != null) {\r\n return documentBuilder;\r\n } else {\r\n // create the document builder\r\n DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\r\n factory.setNamespaceAware(true);\r\n this.documentBuilder = factory.newDocumentBuilder();\r\n return this.documentBuilder;\r\n }\r\n }", "public static Document createJdomDoc(String xmlString) {\n\t\ttry {\n\t\t\tSAXBuilder builder = new SAXBuilder();\n\t\t\tDocument doc = builder.build(new ByteArrayInputStream(xmlString.getBytes()));\n\t\t\treturn doc;\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (JDOMException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn null;\n\t}", "public DocumentEvent() {}", "public DocumentMutation empty();", "public DocumentWrapper(XmlNode doc, String baseURI, Configuration config) {\n //System.err.println(\"Creating DocumentWrapper for \" +node);\n this.node = doc;\n this.parent = null;\n this.index = 0;\n //super(doc, null, 0);\n if (doc.get_NodeType().Value != XmlNodeType.Document) {\n throw new IllegalArgumentException(\"Node must be a DOM Document\");\n }\n node = doc;\n nodeKind = Type.DOCUMENT;\n this.baseURI = baseURI;\n docWrapper = this;\n\n// // Find out if this is a level-3 DOM implementation\n// Method[] methods = doc.getClass().getMethods();\n// for (int i=0; i<methods.length; i++) {\n// if (methods[i].getName().equals(\"isSameNode\")) {\n// level3 = true;\n// break;\n// }\n// }\n //System.err.println(\"Setting configuration\");\n setConfiguration(config);\n }", "public static Document newDocument(final URI uri, boolean useNamespaces) throws IOException, XMLException {\n\t\tString scheme = uri.getScheme();\n\t\tif(scheme==null || scheme.equals(\"file\") || scheme.equals(\"\")){\n\t\t\treturn newDocument(new File(uri), useNamespaces);\n\t\t}else{\n\t\t\treturn newDocument(uri.toURL(), useNamespaces);\n\t\t}\n\t}", "private XMLUtil()\n {\n }", "DOMType() {\n // Constructs an empty type node\n }", "@Deprecated\n\tpublic LuceneDocument() {\n\t\tthis(null);\n\t}", "public static Document getNamespaceNOTAwareDocument(Document inputDocument) {\r\n return bytesToXml(doc2bytes(inputDocument), false);\r\n }", "public abstract WalkerDocument newDocument(DocumentTag adapter, IOptions options);", "public void newDocument();", "public SimpleDocReader() { }", "protected Document createDefaultModel()\n\t{\n\t\treturn new IntegerDocument();\n\t}", "public Document saveAsXML() {\n\tDocument xmldoc= new DocumentImpl();\n\tElement root = createFeaturesElement(xmldoc);\n\txmldoc.appendChild(root);\n\treturn xmldoc;\n }", "public SearchDocument() {\n super();\n }", "public static Document getDocument(byte xml[])\n {\n return XMLTools.getDocument(xml, false);\n }", "public void makeEmpty()\n {\n root = nil;\n }" ]
[ "0.7686627", "0.74794424", "0.7392169", "0.7233471", "0.7224613", "0.7203745", "0.70458335", "0.6759438", "0.6756132", "0.6728604", "0.6728463", "0.6695243", "0.6694668", "0.66597337", "0.6633381", "0.661932", "0.6591662", "0.6456157", "0.64000875", "0.64000875", "0.64000875", "0.64000875", "0.6390411", "0.63851655", "0.6362426", "0.6247406", "0.6239882", "0.6230382", "0.622995", "0.6208798", "0.619863", "0.61365813", "0.6131716", "0.61303884", "0.61137277", "0.6107232", "0.60929793", "0.60215056", "0.6018148", "0.6000517", "0.5964264", "0.5940492", "0.5906098", "0.58975095", "0.58970976", "0.5891949", "0.58694655", "0.5859412", "0.5849528", "0.5844429", "0.5836931", "0.578782", "0.5777372", "0.57729316", "0.5770596", "0.57613415", "0.576035", "0.5748579", "0.57223797", "0.5700439", "0.56862664", "0.56634575", "0.5646147", "0.5635172", "0.5618734", "0.56104124", "0.560618", "0.5585714", "0.5583948", "0.5549253", "0.55300725", "0.5527325", "0.55255276", "0.5522314", "0.55182415", "0.55161875", "0.55151886", "0.55145556", "0.5509865", "0.5506028", "0.5489863", "0.5472754", "0.5467195", "0.54476875", "0.54419684", "0.5441808", "0.5436772", "0.54206395", "0.5417697", "0.5416474", "0.54151297", "0.54064834", "0.53966737", "0.5385809", "0.5385802", "0.5384795", "0.5371232", "0.53686893", "0.5360544", "0.5342718" ]
0.8059295
0
TODO Autogenerated method stub
public String echo(String str) { return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String no(String str) { return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String echo(String str) { return str; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public String no(String str) { return str; }
{ "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: replace ASCII for "You Won"
public static void win(){ System.out.println("\n" + getAnsiGreen() + "██╗░░░██╗░█████╗░██╗░░░██╗░░░░██╗░░░░░░░██╗░█████╗░███╗░░██╗░░░\n" + "╚██╗░██╔╝██╔══██╗██║░░░██║░░░░██║░░██╗░░██║██╔══██╗████╗░██║░░░\n" + "░╚████╔╝░██║░░██║██║░░░██║░░░░╚██╗████╗██╔╝██║░░██║██╔██╗██║░░░\n" + "░░╚██╔╝░░██║░░██║██║░░░██║░░░░░████╔═████║░██║░░██║██║╚████║░░░\n" + "░░░██║░░░╚█████╔╝╚██████╔╝░░░░░╚██╔╝░╚██╔╝░╚█████╔╝██║░╚███║██╗\n" + "░░░╚═╝░░░░╚════╝░░╚═════╝░░░░░░░╚═╝░░░╚═╝░░░╚════╝░╚═╝░░╚══╝╚═╝\n" + "\n" + "░█████╗░░█████╗░███╗░░██╗░██████╗░██████╗░░█████╗░████████╗░██████╗██╗██╗\n" + "██╔══██╗██╔══██╗████╗░██║██╔════╝░██╔══██╗██╔══██╗╚══██╔══╝██╔════╝██║██║\n" + "██║░░╚═╝██║░░██║██╔██╗██║██║░░██╗░██████╔╝███████║░░░██║░░░╚█████╗░██║██║\n" + "██║░░██╗██║░░██║██║╚████║██║░░╚██╗██╔══██╗██╔══██║░░░██║░░░░╚═══██╗╚═╝╚═╝\n" + "╚█████╔╝╚█████╔╝██║░╚███║╚██████╔╝██║░░██║██║░░██║░░░██║░░░██████╔╝██╗██╗\n" + "░╚════╝░░╚════╝░╚═╝░░╚══╝░╚═════╝░╚═╝░░╚═╝╚═╝░░╚═╝░░░╚═╝░░░╚═════╝░╚═╝╚═╝" + getAnsiReset()); try { TimeUnit.SECONDS.sleep(1); System.out.println("You feel movement in your belly..."); startNewOrQuitGame(); } catch (InterruptedException e) { System.out.println("Something wrong with the Game!!!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String playerWon() {\n\t\tString message = \"Congratulations \"+name+ \"! \";\n\t\tRandom rand = new Random();\n\t\tswitch(rand.nextInt(3)) {\n\t\t\tcase 0:\n\t\t\t\tmessage+=\"Can you stop now? You're too good at this!\";\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tmessage+=\"You OBLITERATED the opponent!\";\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tmessage+=\"You sent them to the Shadow Realm\";\n\t\t}\n\t\treturn message;\n\t}", "public String whoWon()\n { \n String win=\"\";\n if (player1Hand.isEmpty())\n {\n win=(\"player 2 wins!\");\n }\n \n if(player2Hand.isEmpty())\n {\n win=(\"player 1 wins\");\n } \n \n return win;\n }", "public String talkNiceWords() {\n\t\treturn \"How are you\";\n\t}", "public String getWinner(){\n\t\tswitch (hatGewonnen) {\n\t\tcase \"Spieler O\":\n\t\t\treturn \"o\";\n\t\tcase \"Spieler X\":\n\t\t\treturn \"x\";\n\t\tdefault:\n\t\t\treturn \"\";\n\t\t}\n\t}", "@Override\r\n\tpublic String say() {\n\t\tif(livingBy==LivingBy.CAT) {\r\n\t\t\treturn \"Me ow\";\r\n\t\t}else if(livingBy==LivingBy.ROOSTER) {\r\n\t\t\treturn \"Cock-a-doodle-doo\";\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\treturn \"Woof, woof\";\r\n\t\t}\r\n\t\t\r\n\t}", "private void popUpWin(String whoWon) {\r\n\t\tJOptionPane.showMessageDialog(gameView, \"Congrats \" + whoWon + \" WINS! Go to the Options Pane to start a New Game!\", \"WIN!\",\r\n\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\r\n\t}", "public String getWinner()\n\t{\n\n\n\n\n\n\n\n\n\n\n\n\n\t\treturn \"\";\n\t}", "private void showWon( String mark ) {\n\tJOptionPane.showMessageDialog( null, mark + \" won!\" );\t\n }", "static private void TalkTo() {\n if (BSChristiansen.getCurrentRoom() == currentRoom) {\n System.out.println(BSChristiansen.getDescription() + \", yet he still gives you good advice:\\n\");\n System.out.println(BSChristiansen.getDialog(0));\n System.out.println(\"\");\n woundedSurvivor();\n } else if (mysteriousCrab.getCurrentRoom() == currentRoom && inventory.getInventory().containsKey(\"Shroom\")) {\n System.out.println(mysteriousCrab.getDescription() + \"\\n\" + mysteriousCrab.getDialog(0));\n } else {\n System.out.println(\"There is nobody to communicate with in this Room\");\n }\n\n }", "@Override\r\n public String ask() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n word = \"Do you like the Story?\";\r\n System.out.println(word);\r\n return word;\r\n }", "private void gameWonDialog() {\n Toast makeText;\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.game_won), Toast.LENGTH_LONG);\n makeText.show();\n makeText = Toast.makeText(this.getContext(), getResources().getString(R.string.final_score) + score, Toast.LENGTH_LONG);\n makeText.show();\n }", "static String look(Player player) {\n String stuff = player.getLocation().whatStuff();\n if (!stuff.equals(\"\")) {\n if(player.getLocation().contains(\"Charlie McDowell\")){\n return \"-You hear the sound of typing echoing throughout room...\\n\" +\n \"Charlie Bot: Oh my word is that...is that ME? It seems that the mysterious intruder was\\n\" +\n \"simply a robotic copy of myself. On the other hand, I see the transmitter, 525!\\n\" +\n \"However, it appears that it has fallen into the intruder's clutches.\\n\" +\n \"More specifically, it seems to be in his back pocket.\\n\" +\n \"Great. He looks like an ordinary human, but I would brace yourself for battle, 525.\\n\\n\" +\n \"He hasn't noticed you...arm yourself and attempt to take the transmitter from him.\\n\\n\" +\n \"-You see:\\n\" + stuff;\n } else {\n return \"-You see:\\n\" + stuff;\n }\n } else {\n return \"The room is empty.\";\n }\n }", "public void playerWon()\r\n {\r\n \r\n }", "public boolean isWon() {\r\n\t\tif (winner(CROSS) || winner(NOUGHT))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "void win() {\n if (_game.isWon()) {\n showMessage(\"Congratulations you win!!\", \"WIN\", \"plain\");\n }\n }", "public void announceWinner() {\r\n Piece winer;\r\n if (_board.piecesContiguous(_board.turn().opposite())) {\r\n winer = _board.turn().opposite();\r\n } else {\r\n winer = _board.turn();\r\n }\r\n if (winer == WP) {\r\n _command.announce(\"White wins.\", \"Game Over\");\r\n System.out.println(\"White wins.\");\r\n } else {\r\n _command.announce(\"Black wins.\", \"Game Over\");\r\n System.out.println(\"Black wins.\");\r\n }\r\n }", "String getWinner();", "public String speak() {\n return \"WOOF\";\n }", "public String winCondition() {\r\n\t\tif (hasOneOfEach()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught one of each type of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasFiveOfTwo()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught two each of five types of Pokémon!\";\r\n\t\t}\r\n\t\tif (hasTwoOfFive()) {\r\n\t\t\treturn \"Congratulations! You've won the Safari Game! You caught five each of two types Pokémon!\";\r\n\t\t}\r\n\t\treturn \"You did not win yet! Keep trying!\";\r\n\t}", "private void announceWinner() {\n // FIXME\n if (_board.turn() == Piece.WP) {\n System.out.println(\"Black wins.\");\n } else {\n System.out.println(\"White wins.\");\n }\n }", "public void printVictoryMessage() { //main playing method\r\n System.out.println(\"Congrats \" + name + \" you won!!!\");\r\n }", "protected boolean processSayTell(String username, String titles, int gameNumber, String message){return false;}", "void bot_check_on_user() { // using Watson Speech-to-Text and text-to-Speech functions\r\n String output;\r\n String input;\r\n output: \"Are you okay?\";\r\n input = get voice input;\r\n if (input = \"Yes I’m okay.\") {} // nothing to do\r\n else if (input = \"A bit unwell.\") {\r\n output = \"Please list your symptoms.\";\r\n String symptoms;\r\n symptoms = get voice input;\r\n CFR_check(symptoms);\r\n }\r\n else if (input = …(no sound)) {\r\n CFR_check(\"No response, might be unconscious.\");\r\n else output : \"Please repeat.\";\r\n }", "@Override\n public boolean controleerWoord(String woord) {\n return true;\n }", "public void win()\r\n\t{\r\n\t\tmWon = true;\r\n\t}", "public void notifyTurn(String name) {\n if(name.equals(username) && !(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's your turn!\");\n } else if(!(client.getPlayer() instanceof ComputerPlayer)) {\n JOptionPane.showMessageDialog(frame, \"It's \" + name + \"'s turn!\");\n }\n inventoryArea.append(\"\\n\\nIt's \" + name + \"'s turn\");\n }", "@Override\n public String speak()\n {\n return \"Neigh\";\n }", "public char isWon() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n wonBoards[y][x] = spaces[y][x].isWon().getWinner();\n }\n }\n return isWonButForChars();\n }", "public String getWinner(){\n if(whiteWins && blackWins){\n return \"ITS A DRAW\";\n } else if(whiteWins){\n return \"WHITE WINS\";\n } else if(blackWins){\n return \"BLACK WINS\";\n } else {\n return \"NO WINNER\";\n }\n }", "@Override\r\n public String speak() {\r\n String word = \"\";\r\n Time.getInstance().time += 1;\r\n if (Time.getInstance().time == 1) {\r\n word = \"One day Neznaika decided to become an artist.\";\r\n }\r\n if (Time.getInstance().time == 101) {\r\n word = \"This story happened once day with Neznaika.\";\r\n }\r\n if (Time.getInstance().time == 201) {\r\n word = \"One day Neznaika wanted to become a musician.\";\r\n }\r\n if (Time.getInstance().time == 401) {\r\n word = \"One day Neznaika wanted to become a poet.\";\r\n }\r\n System.out.println(word);\r\n return word;\r\n }", "@Override\n public String getMessage() {\n return \" ** I'm a friendly ENEMY! **\";\n }", "@Override\n\tpublic void talk() {\n\t\tSystem.out.println(\"黄种人-说\");\n\t}", "public boolean saidYes(boolean onQuit) {\r\n\r\n System.out.print(\" (Y/N) \");\r\n \r\n\t\tchar responce = Keyboard.readChar();\r\n responce = Character.toLowerCase(responce);\r\n\r\n\t\tswitch (responce) {\r\n case 'y':\r\n return true;\r\n\r\n case 'q':\r\n case 'e':\r\n\r\n // Is the user is being asked to quit?\r\n if (onQuit) {\r\n return true;\r\n\t\t\t\t}\r\n\r\n endGameSwitch = true;\r\n return false;\r\n\r\n default:\r\n return false;\r\n }\r\n\t}", "static String pickup(Player player, String what) {\n if (player.getLocation().contains(what)) {\n Thing thing = player.pickup(what);\n \n //doesn't let you pick up things where McDowell is, and doesn't let you pickup McDowell\n if (thing != null && !player.getLocation().contains(\"Charlie McDowell\") && !what.equals(\"Charlie McDowell\")) {\n return \"-You have picked up the \" + thing;\n } else if(player.getLocation().contains(\"Charlie McDowell\") && !what.equals(\"Charlie McDowell\")){\n return \"-Charlie Bot: The transmitter is currently in McDowell's possession. You can't safely\\n\" +\n \"retrieve it without him noticing, 525. You'll have to use something to take it from him\\n\" +\n \"by force.\";\n } else if(what.equals(\"Charlie McDowell\") || what.equals(\"charlie mcdowell\")){ //you can't pickup McDowell\n return \"-Charlie Bot: You can't just shove the professor into your bag and call it a day, 525.\\n\" +\n \"Nice try though.\";\n } else {\n return \"-Your bag is full, 525. You need to drop something else first.\";\n }\n } else {\n return \"-Charlie Bot: There doesn't seem to be any \" + what + \" in the room, 525.\";\n }\n }", "public void talking(){\n System.out.println(\"PetOwner : *says something*\");\n }", "public String sayYes(){\n return \"Yes\";\n }", "public void showWonMessage() {\n\t\tsetStatusBar(WIN_MSG);\n\t}", "public void otherSentence()\n {\n // Receive the string from the other player\n if (other == 1)\n {\n record.append(\"Red: \" + theClientChat.recvString() + \"\\n\");\n }\n else\n {\n record.append(\"Yellow: \" + theClientChat.recvString() + \"\\n\");\n }\n }", "public String attackTo(PlayerToken trg){\n\t\tString outcome = super.attackTo(trg);\n\t\t//if attack on Trap, lose:\n\t\tif(trg instanceof Trap){\n\t\t\toutcome = new String(\"won\");\n\t\t}\n\t\treturn outcome;\n\t}", "public boolean hasWon() {\n\t\tfor (int i = 0; i < wordToGuess.length(); i++) {\n\t\t\tchar letter = wordToGuess.charAt(i);\n\t\t\tif (!guessesMade.contains(letter)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "public String Winner() {\r\n if(Main.player1.SuaVida()==0)\r\n return \"player2\";\r\n else\r\n return \"player1\";\r\n }", "private String greeting() {\n\t\tanswerUser = null;\n\t\tquestionBot.put(owner.id(), WELCOME);\n\n\t\treturn buildMessage(\"Olá, \" + owner.firstName() + \"! \" + WELCOME);\n\t}", "public static void announceWinner() {\n\t\tArrayList<String> data = new ArrayList<String>();\n\n\t\tfor (int index = 0; index < LotteryDatabase.lotteryDatabase.size(); index++) {\n\t\t\tLotteryDatabase lotteryData = LotteryDatabase.lotteryDatabase.get(index);\n\t\t\tfor (int i = 0; i < lotteryData.getTicketsPurchased(); i++) {\n\t\t\t\tdata.add(lotteryData.getPlayerName());\n\t\t\t}\n\t\t}\n\t\tif (data.isEmpty()) {\n\t\t\tAnnouncement.announce(\"No one has entered the lottery.\", ServerConstants.RED_COL);\n\t\t\treturn;\n\t\t}\n\t\tString lotteryWinnerName = data.get(Misc.random(data.size() - 1));\n\t\tAnnouncement.announce(\"<img=27><col=a36718> \" + lotteryWinnerName + \" has won the lottery worth \" + getTotalPotString() + \" with \" + getWinningPercentage(lotteryWinnerName)\n\t\t + \"% chance of winning!\");\n\t\tPlayer winner = Misc.getPlayerByName(lotteryWinnerName);\n\t\tif (winner != null) {\n\t\t\twinner.getPA().sendScreenshot(\"Lottery \" + getTotalPotString(), 2);\n\t\t}\n\t\tNpc npc = NpcHandler.npcs[lotteryNpcIndex];\n\t\tnpc.forceChat(\"Congratulations \" + lotteryWinnerName + \" has won the lottery worth \" + getTotalPotString() + \"!\");\n\t\tItemAssistant.addItemReward(null, lotteryWinnerName, ServerConstants.getMainCurrencyId(), getTotalPotNumber(), false, -1);\n\t\tint moneySink = getTotalPotNumber() / 85;\n\t\tmoneySink *= COMMISION_PERCENTAGE;\n\t\tCoinEconomyTracker.addSinkList(null, \"LOTTERY \" + moneySink);\n\t\ttotalTicketsPurchased = 0;\n\t\tLotteryDatabase.lotteryDatabase.clear();\n\t}", "private String bossReject(){\n return \"我覺得你們需要重做,因為跟我想的不一樣\";\n }", "public synchronized void sendOk() {\r\n\t\tbeginMessage();\r\n\t\tsend(ServerConst.ANS + ServerConst.ANS_YES);\r\n\t\tendMessage();\r\n\t}", "public boolean oWins() {\n\t\tif (checkWinner(LETTER_O) == 1)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "private void decideWinner() {\n String winnerAnnouncement;\n if(player1Choice.equalsIgnoreCase(\"rock\") && player2Choice.equalsIgnoreCase(\"scissors\")) {\n winnerAnnouncement = \"Player: ROCK vs Computer: SCISSORS ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"scissors\") && player2Choice.equalsIgnoreCase(\"rock\")) {\n winnerAnnouncement = \"Player: SCISSORS vs Computer: ROCK ----- COMPUTER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"paper\") && player2Choice.equalsIgnoreCase(\"rock\")) {\n winnerAnnouncement = \"Player: PAPER vs Computer: ROCK ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"rock\") && player2Choice.equalsIgnoreCase(\"paper\")) {\n winnerAnnouncement = \"Player: ROCK vs Computer: PAPER ----- COMPUTER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"scissors\") && player2Choice.equalsIgnoreCase(\"paper\")) {\n winnerAnnouncement = \"Player: SCISSORS vs Computer: PAPER ----- PLAYER WINS\";\n } else if(player1Choice.equalsIgnoreCase(\"paper\") && player2Choice.equalsIgnoreCase(\"scissors\")) {\n winnerAnnouncement = \"Player: PAPER vs Computer: SCISSORS ----- COMPUTER WINS\";\n } else {\n winnerAnnouncement = \"Its a TIE ---- EVERYONE IS A LOSER\";\n }\n // Print out who won in this format: \"Player: ROCK vs Computer: SCISSORS ----- PLAYER WINS\"\n System.out.println(winnerAnnouncement);\n }", "private String getWinner() {\n\t\treturn winner;\n\t}", "private void challengeHandler() {\n String word = txtWord.getText().toString();\n String nextWord;\n if (word.length() >= 4 && dictionary.isWord(word)){\n endGame(true, word + \" is a valid word\");\n } else {\n nextWord = dictionary.getAnyWordStartingWith(word);\n if (nextWord != null){\n endGame(false, word + \" is a prefix of word \\\"\" + nextWord + \"\\\"\");\n } else {\n endGame(true, word + \" is not a prefix of any word\");\n }\n }\n }", "public String getWho() {\t\n\t\tString[] whoArray = new String[]{\n\t\t\t\t\"That's none of your business.\",\n\t\t\t\t\"I don't need this question in my life\",\n\t\t\t\t\"Bleep bloop I'm not a bot you're a bot.\",\n\t\t\t\t\"That ugly guy with no hair, missing his front teeth, and a bloody nose who kept badgering you all friday night.\",\n\t\t\t\t\"Yo Mama, who is so fat, I took a picture of her last Christmas and it's still printing.\",\n\t\t\t\t\"Yo Mama, who is so fat that when she got on the scale it said, \\\"I need your weight not your phone number.\\\"\",\n\t\t\t\t\"Yo Dad. So yeah, me.\",\n\t\t\t\t\"Your best friend, Bozo who once had an intruder broke into her house, he ran downstairs, dialed 9-1-1 on the microwave, and couldn't find the \\\"CALL\\\" button.\",\n\t\t\t\t\"Good question, even Dora can't explore that one!\"\n\t\t};\n\t\tRandom random = new Random();\n\t\tint index = random.nextInt(whoArray.length);\n\t\treturn whoArray[index];\t\n\t}", "private void showStat() {\n\t\tSystem.out.println(\"=============================\");\n\t\tSystem.out.println(\"Your won! Congrates!\");\n\t\tSystem.out.println(\"The word is:\");\n\t\tSystem.out.println(\"->\\t\" + this.word.toString().replaceAll(\" \", \"\"));\n\t\tSystem.out.println(\"Your found the word with \" \n\t\t\t\t+ this.numOfWrongGuess + \" wrong guesses.\");\n\t}", "public void speak()\n\t {\n\t \tSystem.out.printf(\"%s chants: Four legs good, Two legs BETTER\\n\", this.getName());\n\t }", "private void computerTurn() {\n String text = txtWord.getText().toString();\n String nextWord;\n if (text.length() >= 4 && dictionary.isWord(text)){\n endGame(false, text + \" is a valid word\");\n return;\n } else {\n nextWord = dictionary.getGoodWordStartingWith(text);\n if (nextWord == null){\n endGame(false, text + \" is not a prefix of any word\");\n return;\n } else {\n addTextToGame(nextWord.charAt(text.length()));\n }\n }\n userTurn = true;\n txtLabel.setText(USER_TURN);\n }", "@Override\n\tpublic void compete() {\n\t\tSystem.out.println(\"Pawan is competing as a swimming Athlete \");\n\t\t\n\t}", "public abstract void sendConfirmationMessage(Player player);", "void gameWon(Piece piece);", "public void revealAnswer()\n\t{\n\t\t//check if game over\n\t\tif(hangmanGame.gameOver() == true){\n\t\t\t//if game over, get answer\n\t\t\tSystem.out.println( \"The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t//check if game won\n\t\tif(hangmanGame.gameWon() == true){\n\t\t\t//if game won, get answer and say \"You win!\"\n\t\t\tSystem.out.println( \"You win! The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t//check if game over and game lost\n\t\tif(hangmanGame.gameOver()==true && hangmanGame.gameWon()==false){\n\t\t\t//if game over and game lost, say \"Sorry, you lose.\"\n\t\t\tSystem.out.println( \"Sorry, you lose. The word was: \" + hangmanGame.getAnswer());\n\t\t}\n\t\t\n\t}", "void printWinner(String winner) throws IOException;", "@Override\n\tpublic void getWomanResult(Woman woman) {\n\t\tSystem.out.println(\"Å®ÈËʧ°Ü\");\n\t}", "@Override\n\tpublic void msgAtKitchen() {\n\t\t\n\t}", "public boolean gameWon(){\n\t\tArrayList<Character> checkLetter = new ArrayList<Character>();\r\n\t\t\r\n\t\tfor(int i=0; i<correctList.size(); i++){\r\n\t\t\tfor(int j=0; j<gameLetter.length; j++){\r\n\t\t\t\tif(correctList.get(i)==gameLetter[j])\r\n\t\t\t\t\tcheckLetter.add(gameLetter[j]);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(checkLetter.size()==gameLetter.length)\r\n\t\t\treturn true;\r\n\t\telse return false;\r\n\t}", "private void peliLoppuuUfojenTuhoamiseen() {\n if (tuhotut == Ufolkm) {\n ingame = false;\n Loppusanat = \"STEVE HOLT!\";\n }\n }", "public void who(String name)\n\t{\n\t\tsendRaw(\"WHO :\" + name);\n\t}", "public String greet(String someone) {\n\t\treturn String.format(\"Hello How are you, %s!\", someone);\n\t}", "void checkWinner() {\n\t}", "public void thankYouVet(){\n System.out.println(\"PetOwner says ... thank you Vet!\");\n }", "@Override\n public void showPlayerWon() {\n if (isEnglish) {\n Toast.makeText(this, WIN, Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, WIN_CHINESE, Toast.LENGTH_SHORT).show();\n }\n\n\n //Set visibility for replayButton to visible\n replayButton.setVisibility(View.VISIBLE);\n retryButton.setVisibility(View.VISIBLE);\n scoreboardButton.setVisibility(View.VISIBLE);\n }", "@Override\n\tpublic void cry() {\n\t\tSystem.out.println(\"黄种人-哭\");\n\t}", "protected boolean processPersonalTell(String username, String titles, String message){return false;}", "@Override\n\tpublic void chi(String xingming) {\n\t\tSystem.out.println(\"我喜欢吃棒棒糖\");\n\t}", "public void winMessage() {\r\n\t\tSystem.out.print(\"\\n\\nCongratulations! You've won the game! :D\");\r\n\t\tSystem.exit(0);\r\n\t}", "java.lang.String getMoodMessage();", "public String greet() {\n return (\"\\n | | _ _ _| / \\\\ _ \\n\"\n + \" |/\\\\|(_)| (_| \\\\__/|_) \\n\"\n + \" | \\n\\n\"\n + \"Welcome, what would you like to do today?\");\n }", "public void youWinByAbandonment() {\n try {\n if (getClientInterface() != null)\n getClientInterface().gameEndedByAbandonment(\"YOU WON BECAUSE YOUR OPPONENTS HAVE ABANDONED!!\");\n }\n catch (RemoteException e) {\n System.out.println(\"remote sending ended by abandonment error\");\n }\n }", "public void doSayGoodBye(){\n try {\n UtilityMethods.print(\"Hope you have enjoyed the day...\");\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage());\n }\n }", "@Override\r\n\tpublic String eat() {\n\t\treturn \"eats rats\";\r\n\t}", "public void tellPlayerResult(int winner) {\n\t}", "protected void ifWon(){\n canvas.add(titleBorder);\n canvas.add(titleBox);\n Image wonText = new Image(205, 400, \"124-hw4/BreakoutText/wonText.png\");\n canvas.add(wonText);\n }", "String askName(boolean W,ChessGame G);", "boolean hasHangmogName();", "@Override\n public String speak()\n {\n return \"peep\";\n }", "@Override\n\tpublic void talk(String s) {\n\t\tString[] stuff=s.split(\" \");\n\t\tString talkString=\"\";\n\t\tfor (String string : stuff) {\n\t\t\tfor (int i = 0; i < string.length(); i++) {\n\t\t\t\tif(i<string.length()/2) {\n\t\t\t\t\ttalkString+=\"o\";\n\t\t\t\t}else {\n\t\t\t\ttalkString+=\"i\";\n\t\t\t\t}\n\t\t\t}\n\t\t\ttalkString+=\"nk \";\n\t\t}\n\t\tSystem.out.println(talkString);\n\t}", "public void talk(){\n\t\tSystem.out.println(this.name+\"が話す\");\n\t}", "@Override\n\tpublic String hablar() {\n\t\treturn \"Hola, soy un Buitre y sť volar\";\n\t}", "void printWinner() {\n }", "@Override\n\tpublic String getBye() {\n\t\treturn \"Say Good bye VietNam!\";\n\t}", "public String interact() {\n return suara;\n }", "public void quest() {\n if ((int) (Math.random() * 100) > 50) {\n addStrangeCharacter();\n System.out.println(\"You found the npc to talk with\");\n if ((int) (Math.random() * 75) > 50) {\n addStrangeCharacter();\n System.out.println(\"And you beat the baws\");\n } else {\n System.out.println(\"And he baws owned you\");\n }\n } else {\n System.out.println(\"You couldn't even find the npc, lol n00b\");\n }\n }", "private void testString() {\n\t\tMessage message = Message.createMessage(getId(), \"Triggers\");\n\t\tmessage.setPayload(\"Gimme a break, man!\");\n\t\tsend(message);\n\t}", "public boolean gameWon() {\n\t\tfor (int i = 0; i < gameBoard.length; i++) {\n\t\t for (int j = 0; j < gameBoard.length; j++) {\n\t\t \tif (gameBoard[i][j] == 'M' || gameBoard[i][j] == 'I') {\n\t\t \t\treturn false;\n\t\t \t}\n\t\t }\n\t\t}\n\t\treturn true;\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "private void checkEasterEgg (String word) {\r\n if (word.startsWith (\"IMAC\") || word.equals (\"APPLE\") || word.equals (\"KATZ\") || word.startsWith (\"IPOD\") || word.startsWith (\"IPHONE\")\r\n || word.startsWith (\"MAC\") && !word.startsWith (\"MACR\") && !word.startsWith (\"MACE\")) {\r\n JOptionPane.showMessageDialog (null, \"The word you have entered cannot be recognized\\nSince we are nice, we will add it for you anyways.\",\r\n \"Woah There!\", JOptionPane.INFORMATION_MESSAGE);\r\n }\r\n }", "public String sounds(){\n return (\"Moooooo :o\");\n }", "private void confirmationAlert() {\n\t\tAlert confirm = new Alert( AlertType.CONFIRMATION, \"You Will Not Be Able To Change Your Name\\nAfter You Press 'OK'.\");\n\t\tconfirm.setHeaderText(\"Are You Sure?\");\n confirm.setTitle(\"Confirm Name\");\n confirm.showAndWait().ifPresent(response -> {\n if (response == ButtonType.OK) {\n \tbackground.remove( pointer );\n \tkeyStrokes = keyStrokes.replace(\" \", \"-\");\n\t\t\t\tinsertNewHiScore();\n\t\t\t\tnewHighScore = false;\n }\n });\n\t}", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "boolean hasSendPlayerName();", "public void monsterSound(){\n System.out.println(\"\\n\\nYou hear gutteral moans and the shambling of a creature nearby.\\n\\n\");\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "public String interact() {\n return \"Nguiikk!\";\n }" ]
[ "0.7256649", "0.6793429", "0.6605679", "0.6416092", "0.63626665", "0.6357015", "0.6340972", "0.62792706", "0.62739533", "0.62239724", "0.6209301", "0.61754894", "0.6170276", "0.6162046", "0.6160853", "0.6107212", "0.6090106", "0.60861033", "0.608148", "0.6078412", "0.60078436", "0.6005554", "0.6001464", "0.5984372", "0.59772336", "0.5959771", "0.59585524", "0.59571475", "0.59260404", "0.59241545", "0.5922169", "0.59096646", "0.5900706", "0.5890815", "0.5833976", "0.58262175", "0.5813105", "0.5795031", "0.5770142", "0.5746742", "0.5746241", "0.5739012", "0.5737339", "0.5733919", "0.5732675", "0.5728208", "0.5725912", "0.5720298", "0.57172996", "0.57044184", "0.56894475", "0.567955", "0.56760055", "0.56730545", "0.56715024", "0.56714857", "0.56633496", "0.5658602", "0.56550467", "0.56549364", "0.564887", "0.5644149", "0.56430495", "0.5642425", "0.56268954", "0.56159115", "0.5613136", "0.56022966", "0.5599392", "0.55826867", "0.55756307", "0.5564959", "0.5561689", "0.55547035", "0.555453", "0.5551103", "0.55499333", "0.5546893", "0.55426", "0.5537107", "0.5528074", "0.55248916", "0.55230933", "0.551917", "0.5519168", "0.55186105", "0.5512257", "0.55057794", "0.5502341", "0.5493722", "0.548797", "0.54869926", "0.5486643", "0.5486634", "0.54843754", "0.547999", "0.5474434", "0.5473094", "0.54720646", "0.5469586", "0.5461665" ]
0.0
-1
Interactivly reports the progress of a projectload operation.
public interface LoaderProgressMonitor { /** * Called by the <code>ProjectManager</code> when a project-load operation is about to begin. * * @param libraryCount the number of libraries expected to load */ public void beginLoad(int libraryCount); /** * Called when a library is about to be loaded by the <code>ProjectManager</code>. * * @param libraryFilename the filename of the library about to be loaded */ public void loadingLibrary(String libraryFilename); /** * Called immediately following a library load. */ public void libraryLoaded(); /** * Called when the project-load operation is complete. */ public void done(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showQueuingBuildProgress();", "void showProgress();", "void startProgress();", "public void progressMade();", "void progress(int pUnitsCompleted);", "private void updateTaskActivityLabel()\r\n {\r\n setLabelValue(\"Tile Downloads \" + myActiveQueryCounter.intValue());\r\n setProgress(myDoneQueryCounter.doubleValue() / myTotalSinceLastAllDoneCounter.doubleValue());\r\n }", "public static void printDoneLoading() {\n System.out.println(Message.DONE_LOADING);\n }", "public void run() {\r\n ouputProgressModel.setPogressStarted(true);\r\n try {\r\n for (int i = 0; i <= 100; i += 10) {\r\n // pause the thread\r\n Thread.sleep(PROCCESS_SLEEP_LENGTH);\r\n // update the percent value\r\n ouputProgressModel.setPercentComplete(i);\r\n SessionRenderer.render(\"progressExample\");\r\n }\r\n }\r\n catch (InterruptedException e) { }\r\n ouputProgressModel.setPogressStarted(false);\r\n }", "private void updateProgressBar() {\n\t\tdouble current = model.scannedCounter;\n\t\tdouble total = model.fileCounter;\n\t\tdouble percentage = (double)(current/total);\n\t\t\n\t\t//Update Progress indicators\n\t\ttxtNumCompleted.setText((int) current + \" of \" + (int) total + \" Completed (\" + Math.round(percentage*100) + \"%)\");\n\t\tprogressBar.setProgress(percentage);\n\t}", "public void progressTheGame() {\r\n gameProgress = GameState.values()[this.gameProgress.ordinal()+1];\r\n }", "private String calculateProgressStatus(BigDecimal projectId) {\r\n log.debug(\"calculateProgressStatus.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n TaskDao taskDao = new TaskDao();\r\n List<Tasks> tasks = taskDao.getTasksByProjectId(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n\r\n Date currentDate = new Date();\r\n double remainDayForLoc = 0f;\r\n double remainDayForTestCase = 0f;\r\n double remainDayForPage = 0f;\r\n double remainDayeForSheet = 0f;\r\n\r\n double remainWork = 0;\r\n double workCapability = 0;\r\n\r\n // total remain work (convert to one unit)\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().longValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().longValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().longValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().longValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().longValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().longValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().longValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().longValue();\r\n }\r\n\r\n }\r\n\r\n remainWork = ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT))\r\n - ((totalCurrentLoc * Constant.LOC_WEIGHT) + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT));\r\n log.debug(\"remainWork = \" + remainWork);\r\n \r\n // total capable work (convert to one unit)\r\n\r\n for (int i = 0; i < tasks.size(); i++) {\r\n Language language = languageDao.getLanguageById(tasks.get(i).getSizeunit());\r\n if (language.getSizeUnit().toUpperCase().equals(Constant.LOC.toUpperCase())) {\r\n if (!tasks.get(i).getStatusid().equals(new BigDecimal(Constant.CLOSED_STATUS_ID))) {\r\n if (tasks.get(i).getPlanDate().after(currentDate)) {\r\n remainDayForLoc += ((tasks.get(i).getPlanDate().getTime() - currentDate.getTime()) / (1000f * 60f * 60f * 24f));\r\n }\r\n }\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().equals(Constant.TESTCASE.toUpperCase())) {\r\n if (!tasks.get(i).getStatusid().equals(new BigDecimal(Constant.CLOSED_STATUS_ID))) {\r\n if (tasks.get(i).getPlanDate().after(currentDate)) {\r\n remainDayForTestCase += ((tasks.get(i).getPlanDate().getTime() - currentDate.getTime()) / (1000f * 60f * 60f * 24f));\r\n }\r\n }\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().equals(Constant.PAGE_WORD.toUpperCase())) {\r\n if (!tasks.get(i).getStatusid().equals(new BigDecimal(Constant.CLOSED_STATUS_ID))) {\r\n if (tasks.get(i).getPlanDate().after(currentDate)) {\r\n remainDayForPage += ((tasks.get(i).getPlanDate().getTime() - currentDate.getTime()) / (1000f * 60f * 60f * 24f));\r\n }\r\n }\r\n }\r\n if (language.getSizeUnit().toUpperCase().equals(Constant.SHEET_EXCEL.toUpperCase())) {\r\n if (!tasks.get(i).getStatusid().equals(new BigDecimal(Constant.CLOSED_STATUS_ID))) {\r\n if (tasks.get(i).getPlanDate().after(currentDate)) {\r\n remainDayeForSheet += ((tasks.get(i).getPlanDate().getTime() - currentDate.getTime()) / (1000f * 60f * 60f * 24f));\r\n }\r\n }\r\n }\r\n }\r\n\r\n workCapability = remainDayForLoc * Constant.LOC_PER_DAY * Constant.LOC_WEIGHT + remainDayForTestCase\r\n * Constant.TESTCASE_PER_DAY * Constant.TESTCASE_WEIGHT + remainDayForPage * Constant.PAGE_PER_DAY\r\n * Constant.PAGE_WEIGHT + remainDayeForSheet * Constant.PAGE_PER_DAY * Constant.PAGE_PER_DAY;\r\n \r\n // deviation is 10%\r\n double deviation = workCapability / 10f;\r\n \r\n log.debug(\"calculateProgressStatus.END\");\r\n if (remainWork > (workCapability + deviation)) {\r\n return Constant.BAD_STATUS;\r\n } else if (remainWork < (workCapability - deviation))\r\n return Constant.GOOD_STATUS;\r\n else\r\n return Constant.NORMAL_STATUS;\r\n }", "private void updateProgress(int progress) {\n if (myHost != null) {\n myHost.updateProgress(progress);\n } else {\n System.out.println(\"Progress: \" + progress + \"%\");\n }\n }", "void showTarProgressMessage(String msg);", "public void displayProgress(String message) {\n }", "public void onProgressUpdate(int numRouleau,String prochain);", "public int getProgress();", "@Override\n public void showProgress() {\n\n }", "public void setStateToInProgress() {\n progressBar.setIndeterminate(true);\n progressBarLabel.setText(\"Simulation is in progress...\");\n openFolderButton.setVisible(false);\n }", "private void updateProgress(String progressLabel, int progress) {\n if (myHost != null) {\n myHost.updateProgress(progressLabel, progress);\n } else {\n System.out.println(progressLabel + \" \" + progress + \"%\");\n }\n }", "@Override\n public void showProgressSync() {\n }", "public ResultStatus getExecutionProgressStatus();", "@Override\n\tprotected void updateOtherProgress() {\n\t\t\n\t\ttempList.clear();\n\t\titeration++;\n\t\tJMetalLogger.logger.info(iteration + \" iteration...\");\n\t\t\n//\t\ttry {\n//\t\t\tnew SolutionListOutput(getPopulation()).printObjectivesToFile(\"results/media/FUN\"+iteration+\".tsv\");\n//\t\t} catch (IOException e) {\n//\t\t\te.printStackTrace();\n//\t\t}\n\t}", "String progressMessage();", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "public void reportProgress(long bytesTransferred);", "public Long getProgressDone();", "@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }", "public void updateProgress( int pagesPrinted );", "void showModalProgress();", "@Override\r\n\tprotected void progressFinished() {\n\t}", "private void progressStuff() {\n cd = new ConnectionDetector(getActivity());\n parser = new JSONParser();\n progress = new ProgressDialog(getActivity());\n progress.setMessage(getResources().getString(R.string.loading));\n progress.setIndeterminate(false);\n progress.setCancelable(true);\n // progress.show();\n }", "String getProgressString();", "@NlsContexts.ProgressText\n String getIndexingProgressText();", "void execute(DetailedProgressListener listener);", "@Override\n public void progress(FileStatus status) {\n progressReporter.progress();\n }", "void projectComplete( String key ) {\n developer.projects.add( projectInProgress );\n projectInProgress = null;\n }", "protected void updateProgress(Progress prog) {\r\n \t// if this is called then ensure the no tasks msg is not also displayed\r\n \tshowNoTaskMsg(false);\r\n \t\r\n\t\tint done = prog.getWork();\r\n\t\tString status = getStatusDesc(prog);\r\n\r\n\t\tfinal ProgressUIControl progressUIControl = findOrCreateUIControl(prog);\r\n\t\tprogressUIControl.showMsg(status);\r\n\t\tprogressUIControl.showPercent(done);\r\n\t\t\r\n\t\tif (prog.isFinished() && !progressUIControl.isFinishNotified) {\r\n\t\t\tLog.i(TAG, \"Job finished:\"+prog.getJobName());\r\n\t\t\tprogressUIControl.isFinishNotified = true;\r\n\t\t\tjobFinished(prog);\r\n\t\t}\r\n }", "void setProgress(int progress);", "void setProgress(int progress);", "private void showProgressNotification() {\n if (isCollectingBugReport()) {\n mNotificationManager.notify(\n BUGREPORT_IN_PROGRESS_NOTIF_ID, buildProgressNotification());\n }\n }", "public void updateProgress() {\r\n\t\tfireTableDataChanged();\r\n\t}", "public void run() {\n\t\t\tArrayList<GoobiScriptResult> templist = new ArrayList<>(resultList);\n for (GoobiScriptResult gsr : templist) {\n\t\t\t\tif (gsr.getResultType() == GoobiScriptResultType.WAITING && gsr.getCommand().equals(command)) {\n\t\t\t\t\tProcess p = ProcessManager.getProcessById(gsr.getProcessId());\n\t\t\t\t\tgsr.setProcessTitle(p.getTitel());\n\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.RUNNING);\n\t\t\t\t\tgsr.updateTimestamp();\n\t p.setProjekt(project);\n\t p.setProjectId(project.getId());\n\t try {\n\t\t\t\t\t\tProcessManager.saveProcess(p);\n\t\t\t\t\t\tHelper.addMessageToProcessLog(p.getId(), LogType.DEBUG, \"Project '\" + project + \"' assigned using GoobiScript.\", username);\n\t logger.info(\"Project '\" + project + \"' assigned using GoobiScript for process with ID \" + p.getId());\n\t gsr.setResultMessage(\"Project '\" + project + \"' assigned successfully.\");\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t} catch (DAOException e) {\n\t\t\t\t\t\tgsr.setResultMessage(\"Problem assigning new project: \" + e.getMessage());\n\t\t\t\t\t\tgsr.setResultType(GoobiScriptResultType.OK);\n\t\t\t\t\t}\n\t gsr.updateTimestamp();\n\t\t\t\t}\n\t\t\t}\n\t\t}", "void onShowProgress();", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Retrieving workouts list...\");\n this.progressDialog.show();\n }", "private double calculatePercentProgress(BigDecimal projectId) {\r\n log.debug(\"calculatePercentProgress.START\");\r\n ModuleDao moduleDao = new ModuleDao();\r\n LanguageDao languageDao = new LanguageDao();\r\n List<Module> modules = moduleDao.getModuleByProject(projectId);\r\n double totalCurrentLoc = 0;\r\n double totalCurrentPage = 0;\r\n double totalCurrentTestCase = 0;\r\n double totalCurrentSheet = 0;\r\n\r\n double totalPlannedLoc = 0;\r\n double totalPlannedPage = 0;\r\n double totalPlannedTestCase = 0;\r\n double totalPlannedSheet = 0;\r\n for (int i = 0; i < modules.size(); i++) {\r\n Language language = languageDao.getLanguageById(modules.get(i).getPlannedSizeUnitId());\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.LOC.toUpperCase())) {\r\n totalCurrentLoc += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedLoc += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.TESTCASE.toUpperCase())) {\r\n totalCurrentTestCase += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedTestCase += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.PAGE_WORD.toUpperCase())) {\r\n totalCurrentPage += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedPage += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n if (language.getSizeUnit().toUpperCase().contains(Constant.SHEET_EXCEL.toUpperCase())) {\r\n totalCurrentSheet += modules.get(i).getActualSize().doubleValue();\r\n totalPlannedSheet += modules.get(i).getPlannedSize().doubleValue();\r\n }\r\n\r\n }\r\n\r\n double percentProgress = ((totalCurrentLoc * Constant.LOC_WEIGHT)\r\n + (totalCurrentTestCase * Constant.TESTCASE_WEIGHT) + (totalCurrentPage * Constant.PAGE_WEIGHT) + (totalCurrentSheet * Constant.PAGE_WEIGHT))\r\n / ((totalPlannedLoc * Constant.LOC_WEIGHT) + (totalPlannedTestCase * Constant.TESTCASE_WEIGHT)\r\n + (totalPlannedPage * Constant.PAGE_WEIGHT) + (totalPlannedSheet * Constant.PAGE_WEIGHT)) * 100;\r\n\r\n return Math.round(percentProgress * 100.0) / 100.0;\r\n }", "@Override\n\tpublic void showProgress() {\n\t\twaitDialog(true);\n\t}", "public static void printLoadingFile() {\n System.out.println(Message.LOADING_FILE);\n }", "public int getProgress() {\n long d = executable.getParent().getEstimatedDuration();\n if(d<0) return -1;\n \n int num = (int)((System.currentTimeMillis()-startTime)*100/d);\n if(num>=100) num=99;\n return num;\n }", "public boolean loadProgress() {\n return false;\n }", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "@Override\n public void run() {\n for (int i = 0; i<100 ; i++) {\n pb.setProgress(i/1000.0);\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "protected void updateProgress(Integer progress) {\n // Note to self: We don't bother updating the local \"job\" batch data\n batchService.updateBatchJobProgress(jobContext.getInstanceId(), progress);\n }", "public String getProgress() {\n return this.progress;\n }", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }", "@Override\r\n\tpublic void propertyChange(PropertyChangeEvent evt) {\t\t\r\n\r\n\t\tProgressEvent event = ProgressEvent.getEvent(evt.getPropertyName());\r\n\t\t\r\n\t\tif( event == ProgressEvent.ONTOLOGY_LOADED ) {\r\n\t\t\t// The algorithm has been completed, update the report text area.\r\n\t\t\tprogressBar.setIndeterminate(false);\r\n\t\t\tprogressBar.setValue(100);\r\n\t\t\treport.append(treeBuilder.getReport());\r\n\t\t\tcancelButton.setEnabled(false);\r\n\t\t\tokButton.setEnabled(true);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.CLEAR_LOG ) {\r\n\t\t\treport.setText(\"\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\telse if( event == ProgressEvent.APPEND_LINE ) {\r\n\t\t\treport.append((String)evt.getNewValue() + \"\\n\");\r\n\t\t}\r\n\t\t\r\n\t}", "public boolean hasProgress();", "public void setProgress(String progress) {\n this.progress = progress;\n }", "@Override\n public void onProgress(\n UploadTask.TaskSnapshot taskSnapshot) {\n double progress\n = (100.0\n * taskSnapshot.getBytesTransferred()\n / taskSnapshot.getTotalByteCount());\n progressDialog.setMessage(\n \"Uploaded \"\n + (int) progress + \"%\");\n }", "@Override\n public void onProgress(\n UploadTask.TaskSnapshot taskSnapshot) {\n double progress\n = (100.0\n * taskSnapshot.getBytesTransferred()\n / taskSnapshot.getTotalByteCount());\n progressDialog.setMessage(\n \"Uploaded \"\n + (int) progress + \"%\");\n }", "@SuppressWarnings(\"deprecation\")\n\tpublic void execute() throws BuildException {\n // Create a new build listener for parsing events\n Connection conn = getConnection();\n DbProgressListener listener = new DbProgressListener(conn, buildId, getProgressTargets(), dbTable);\n\n // Add the event listeners to the project\n project.addBuildListener(listener);\n\n // Add a thread to poll the database\n if (pollingEnabled) {\n polling = new DbStatusThread(conn);\n polling.setInterval(pollingInterval * 1000);\n polling.start();\n }\n }", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "@Override public void onInitProgress(int pctComplete) {\n publishProgress(Integer.valueOf(pctComplete));\n }", "public void propertyChange(PropertyChangeEvent evt)\n {\n //if (\"progress\" == evt.getPropertyName())\n if (\"progress\".equalsIgnoreCase( evt.getPropertyName()))\n {\n int progress = (Integer) evt.getNewValue();\n System.out.println(String.format(\"Completed %d%% of task.\\n\", task.getProgress()));\n jLabelRegion.setText(progress+\"%\");\n System.out.println(\"valeur:\"+progress);\n }\n }", "@Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n double progress = (100.0 * taskSnapshot.getBytesTransferred()) / taskSnapshot.getTotalByteCount();\n progressDialog.setMessage(\"Uploaded \" + ((int) progress) + \"%...\");\n }", "@Override\n\tpublic void progress(int arg0) {\n\t\tm_progress = arg0 / 10;\n\t\t//Main.log(TAG, \"progress : \" + m_progress + \"%\");\n\t}", "@Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n double progress = (100.0 * taskSnapshot.getBytesTransferred() / taskSnapshot.getTotalByteCount());\n progressDialog.setMessage(\"Uploaded \" + (int) progress + \"%\");\n }", "@Override\n public void onProgress(float percent, SpeedTestReport report) {\n System.out.println(\"[PROGRESS] progress : \" + percent + \"%\");\n System.out.println(\"[PROGRESS] rate in octet/s : \" + report.getTransferRateOctet());\n System.out.println(\"[PROGRESS] rate in bit/s : \" + report.getTransferRateBit());\n }", "public void crack_progress(Cracker cracker);", "public void run() {\n GenerationDetail detail = ga.getDetail();\n generationLabel.setText(String.valueOf(detail.getGeneration()+1));\n averageFitnessLabel.setText(String.valueOf(detail.getAverageFitness()));\n maxFitnessLabel.setText(String.valueOf(detail .getMaxFitness()));\n minFitnessLabel.setText(String.valueOf(detail.getMinFitness()));\n progressBar.setValue(100 * (detail.getGeneration())/ Integer.valueOf(times-1));\n }", "void onProgress(long bytesTransferred);", "public static void countLoading(Enum herbEnum){\n System.out.println(finishedLoading++ + \" Loaded asset: \"+herbEnum.toString());\n }", "public void updateProgressMessage() {\n pb.setMax(frames);\n int rendered = getNumFramesRendered(this, projectName);\n pb.setProgress(Math.min(pb.getMax(), rendered));\n int n = pb.getMax();\n int ratio = (rendered * 100) / n;\n String temp = String.format(\"Progress: %d / %d (%d%%)\", rendered, n, ratio);\n progressMessage.setText(temp);\n }", "@Override\n public synchronized void jobProgress(JobProgress progress)\n {\n switch (progress.getJobStatusCode())\n {\n case QUEUED:\n logger.log(Level.INFO, \"Queued Job ID: {0}\", progress.getJobId());\n break;\n case RUNNING:\n logger.log(Level.INFO, \"Running Job ID: {0}\", progress.getJobId());\n break;\n case FINISHED_OK: \n logger.log(Level.INFO, \"Completed Succesfully Job ID: {0}\", progress.getJobId()); \n finished = true;\n break;\n case FINISHED_ERROR:\n logger.log(Level.INFO, \"Completed Unsuccesfully Job ID: {0}\", progress.getJobId());\n finished = true;\n break;\n case ABORTED:\n logger.log(Level.INFO, \"Aborted Job ID: {0}\", progress.getJobId());\n finished = true;\n break;\n }\n }", "@Override\n\t\t\t\t\t\tpublic void onLoading(long count, long current) {\n\t\t\t\t\t\t\tsuper.onLoading(count, current);\n\t\t\t\t\t\t\tprocess_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\tint process = (int) (current*100/count);\n\t\t\t\t\t\t\tprocess_tv.setText(\"下载进度:\"+process+\"%\");\n\t\t\t\t\t\t}", "public void updateProgress(Land land){\n String wiltedString = \"[ wilted ]\";\n StringBuilder progressBar = new StringBuilder();\n String percentageCompleted = \"\";\n int finalStatus = land.getCurrentStatus();\n\n if (land.getCropName() != null){\n Crop crop = cropDAO.retrieveCrop(land.getCropName());\n double timeToGrow = crop.getTime();\n\n Date plantTime = land.getPlantTime();\n Date finishedTime = land.getFinishedTime();\n Date witherTime = land.getWitherTime();\n Date timeNow = new Date();\n\n int timeAfterWilt = (int) (timeNow.getTime() - witherTime.getTime());\n int timeAfterFinished = (int) (timeNow.getTime() - finishedTime.getTime());\n// double timeElapsed =(double) (timeNow.getTime() - plantTime.getTime());\n double timeElapsed =(double) ((timeNow.getTime() - plantTime.getTime()) / 60000);\n\n if (timeAfterWilt > 0){ //withered\n land.setCurrentStatus(-1);\n finalStatus = -1;\n progressBar = new StringBuilder(wiltedString);\n } else if (timeAfterFinished > 0 ){\n land.setCurrentStatus(2);\n finalStatus = 2;\n progressBar = new StringBuilder(\"[##########]\");\n percentageCompleted = \"100%\";\n } else {\n double percentage = (timeElapsed / timeToGrow )* 100;\n int intPercentage = (int) percentage;\n percentageCompleted = intPercentage + \"%\";\n progressBar = new StringBuilder(\"[\");\n int display = intPercentage/10 ;\n for (int i =1; i<= 10; i++){\n if (i <= display){\n progressBar.append(\"#\");\n } else {\n progressBar.append(\"-\");\n }\n }\n progressBar.append(\"]\");\n }\n }\n\n String finalProgressBar = progressBar + \" \"+ percentageCompleted;\n land.setProgressBar(finalProgressBar);\n\n Connection conn = controller.getConnection();\n PreparedStatement stmt = null;\n String sql = \"UPDATE magnet.land SET currentStatus = ?, progressBar = ? WHERE owner = ? AND plotNumber = ?;\";\n\n try {\n stmt = conn.prepareStatement(sql);\n stmt.setInt(1, finalStatus);\n stmt.setString(2, finalProgressBar);\n stmt.setString(3, land.getOwner());\n stmt.setInt(4, land.getPlotNumber());\n stmt.executeUpdate();\n\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "void reportJobTaskProgress(final String jobTaskId, final int estimatedPercentageCompleted) throws JobReportingException;", "boolean hasProgress();", "boolean hasProgress();", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "public void run()\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(mAPICallManager.getTasksCount()==0) showActionBarProgress(false);\n\t\t\t\t\t\t}", "@Override\n\tprotected void done() {\n\t\t//close the monitor \n\t\tprogressMonitorReporter.closeMonitor();\n\t\t\n\t\t//Inform application that operation isn't being in progress. \n\t\tapplicationInteractor.setOperationInProgress(false);\n\t}", "public interface PrintProgress extends Printable\n{\n\t/** Set printer job.\n\t *\n\t *\t@param\tprinterJob\tThe printer job used for printing.\n\t */\n\n\tpublic void setPrinterJob( PrinterJob printerJob );\n\n\t/** Set page format.\n\t *\n\t *\t@param\tpageFormat\tThe page format used for printing.\n\t */\n\n\tpublic void setPageFormat( PageFormat pageFormat );\n\n\t/** Enable or disable print progress.\n\t *\n\t *\t@param\tonOff\tTrue to enable print progress, false to disable.\n\t */\n\n\tpublic void setProgress( boolean onOff );\n\n\t/** Update the print progress display with pages printed.\n\t *\n\t *\t@param\tpagesPrinted\tThe number of pages printed.\n\t */\n\n\tpublic void updateProgress( int pagesPrinted );\n\n\t/** Close progress dialog. */\n\n\tpublic void closeProgress();\n}", "@Override\n public void onProgress(UploadTask.TaskSnapshot taskSnapshot) {\n double progress = (100.0 * taskSnapshot.getBytesTransferred()) / taskSnapshot.getTotalByteCount();\n progressDialog.setMessage(\"Uploaded \" + ((int) progress) + \"%...\");\n }", "@Nullable\n @NlsContexts.ProgressText\n String getIndexingProgressText();", "public void onProgress(int pos);", "private void setProgress(String what)\n {\n if (progressBar != null)\n {\n double elapsed = (System.currentTimeMillis() - startMs) / 1000.;\n String etl = String.format(\"Elapsed: %4.0f\", elapsed);\n progressBar.setEstTime(etl);\n progressBar.setWorkingOn(what);\n progressBar.setProgress(-1);\n }\n }", "private int getCompleteProgress()\n {\n int complete = (int)(getProgress() * 100);\n \n if (complete >= 100)\n complete = 100;\n \n return complete;\n }", "public void done(Integer percentDone) {\n if (percentDone == 100) {\n mApp.updateDialogProgress(percentDone, \"Finishing..\");\n } else {\n mApp.updateDialogProgress(percentDone, \"Uploading: \" + percentDone + \"%\");\n }\n }", "public void setProgress(int value);", "public int progress() {\n return _progress;\n }", "public void run() {\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = Msg_SetProgress;\n\t\t\t\tmHandler.sendMessage(msg);\n\t\t\t}", "public void updateGameProgression() {\n \tif (players.size() == 0) {\n \t\tSystem.out.println(\"Game over\");\n \t\tgameOver.set(true);\n \t}\n \tif (goal.checkGoalCompleted().get()) {\n \t\tdungeonCompleted.set(true);\n \t} else {\n \t\tdungeonCompleted.set(false);\n \t}\n }", "private static void updateCounters() {\n\t\tongoingProjectsLabel.setText(\"Ongoing Projects (\" + portfolio.getOngoingCount() + \")\");\n\t\tfinishedProjectsLabel.setText(\"Finished Projects (\" + portfolio.getFinishedCount() + \")\");\n\t}", "protected void onProgressUpdate(String... progress) {\n\t\t\t\t\t\t// Set progress percentage\n\t\t\t\t\t\tprgDialog.setProgress(Integer.parseInt(progress[0]));\n\t\t\t\t\t}", "@Override\n\tpublic void execute()\n\t{\n\t\tintake.set(percentage);\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\taProgressDialog = new ProgressDialog(TargetProducts.this);\n\t\t\taProgressDialog.setMessage(\"Loading Report...\");\n\t\t\taProgressDialog.setIndeterminate(true);\n\t\t\taProgressDialog.setCanceledOnTouchOutside(true);\n\t\t\taProgressDialog.show();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\taProgressDialog = new ProgressDialog(TargetProducts.this);\n\t\t\taProgressDialog.setMessage(\"Loading Report...\");\n\t\t\taProgressDialog.setIndeterminate(true);\n\t\t\taProgressDialog.setCanceledOnTouchOutside(true);\n\t\t\taProgressDialog.show();\n\t\t}", "public abstract void onProgress(short percentage, long downloadedSoFar);", "public void run() {\n updateSyncStats();\n\n double d = uploadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveUploads() == 0)\n {\n // Hide KB/s when not active uploads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n uploadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_uploads\"));\n } else {\n String s = Format.formatDecimal(d);\n uploadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_uploads_active\", s));\n }\n d = downloadCounter.calculateCurrentKBS();\n if (getController().getTransferManager().countActiveDownloads() == 0)\n {\n // Hide KB/s when no active downloads\n d = 0;\n }\n if (Double.compare(d, 0) == 0) {\n downloadsLine.setNormalLabelText(Translation\n .getTranslation(\"status_tab.files_downloads\"));\n } else {\n String s = Format.formatDecimal(d);\n downloadsLine.setNormalLabelText(Translation.getTranslation(\n \"status_tab.files_downloads_active\", s));\n }\n }", "private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }" ]
[ "0.65772694", "0.646532", "0.64047873", "0.62746656", "0.6225883", "0.620174", "0.6180402", "0.604914", "0.6046313", "0.6037346", "0.6015516", "0.59811157", "0.59541655", "0.593004", "0.5916275", "0.5914423", "0.58950716", "0.58864033", "0.5860315", "0.5855475", "0.5848848", "0.5832536", "0.58232665", "0.581144", "0.5803537", "0.57852256", "0.5773169", "0.57512933", "0.57211286", "0.57196766", "0.5717394", "0.5706762", "0.569923", "0.5694711", "0.56584704", "0.56574786", "0.5657408", "0.5651337", "0.5651337", "0.5630733", "0.55660325", "0.5561194", "0.55568993", "0.5553693", "0.5549516", "0.55493915", "0.5546552", "0.5536943", "0.5534335", "0.5532921", "0.55191225", "0.5506325", "0.5503514", "0.55022645", "0.5501906", "0.5494755", "0.5493913", "0.5484895", "0.5484895", "0.5474095", "0.54709554", "0.5465793", "0.5463156", "0.5455511", "0.545288", "0.54356605", "0.5433157", "0.5426817", "0.5425814", "0.54257154", "0.54205316", "0.5416644", "0.54048413", "0.5398893", "0.53988624", "0.53951234", "0.53889036", "0.53889036", "0.53823763", "0.53823763", "0.5375012", "0.5374104", "0.53724694", "0.5371426", "0.5363768", "0.53536564", "0.535361", "0.5353503", "0.53492874", "0.5346799", "0.53422487", "0.5327385", "0.5326768", "0.53149545", "0.53081554", "0.5301747", "0.5301747", "0.53002447", "0.5299516", "0.5299095" ]
0.618207
6
Called by the ProjectManager when a projectload operation is about to begin.
public void beginLoad(int libraryCount);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public void load() {\r\n try {\r\n project = ProjectAccessor.findFromTitle(title, conn);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "public void load() {\n handleLoad(false, false);\n }", "private void loadProjects() {\n\t\tprojectsList.clear();\n\t\t\n\t\tArrayList<Job> projects = jdbc.getProjects();\n\t\tfor (Job j : projects) {\n\t\t\tprojectsList.addElement(j.jobname);\n\t\t}\n\t}", "@Override\n protected void onStartLoading() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n if (mResult != null) // If we currently have a result available, deliver it immediately.\n deliverResult(mResult);\n\n if (isReload() || mResult == null)\n forceLoad();\n }\n });\n }", "public void notifyNewProject(URI project) {\n\t\tDebug.log(\"Loading uninitialized project \", project);\n\t\tnotifyNewProjectFiles(new File(project));\n\t}", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "public interface LoaderProgressMonitor {\n\n /**\n * Called by the <code>ProjectManager</code> when a project-load operation is about to begin.\n * \n * @param libraryCount the number of libraries expected to load\n */\n public void beginLoad(int libraryCount);\n\n /**\n * Called when a library is about to be loaded by the <code>ProjectManager</code>.\n * \n * @param libraryFilename the filename of the library about to be loaded\n */\n public void loadingLibrary(String libraryFilename);\n\n /**\n * Called immediately following a library load.\n */\n public void libraryLoaded();\n\n /**\n * Called when the project-load operation is complete.\n */\n public void done();\n\n}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "protected void onStartLoading() { forceLoad();}", "public void loadIntoNW() throws LoadException {\n\t\tloadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), null);\n\t\trun();\n\t\tif (getException() != null) {\n\t\t\tthrow getException();\n\t\t}\n\t}", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "public void load() {\n\t}", "public void load() {\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "@Override\n\t protected void onPreExecute() {\n\t }", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "@Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }", "@Override\n protected void onStartLoading() {\n if (mTaskData != null) {\n // Delivers any previously loaded data immediately\n deliverResult(mTaskData);\n } else {\n // Force a new load\n forceLoad();\n }\n }", "@Override\n\tprotected void onStartLoading() {\n\t\tif (mData != null) {\n\t\t\tdeliverResult(mData);\n\t\t}\n\t\t// Now we're in start state so we need to monitor for data changes.\n\t\t// To do that we start to observer the data\n\t\t// Register for changes which is Loader dependent\n\t\tregisterObserver();\n\t\t// Now if we're in the started state and content is changes we have\n\t\t// a flag that we can check with the method takeContentChanged()\n\t\t// and force the load\t\t\t\t\t\n\t\tif (takeContentChanged() || mData == null) {\n\t\t\tforceLoad();\n\t\t}\n\t}", "public abstract void loaded();", "public void doProjectOpen() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_OPEN, null);\r\n\t}", "public void projectOpened() {\n initToolWindow();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "public static void SelfCallForLoading() {\n\t}", "public void cloudLoad (int stateKey, GPGAppStateConflictHandler conflictHandler, GPGAppStateLoadResultHandler resultHandler) {\n\n\t\t// get the model\n\t\tfinal GPGAppStateModel model = GPGManager.sharedInstance().getApplicationModel().getAppState();\n\n\t\t// start the load request\n\t\tmodel.load(NSNumber.valueOf(stateKey), resultHandler, conflictHandler);\n\t}", "public void load(final FinishedLoading callback) {\n final InjectorManager self = this;\n (new Thread(() -> {\n // load all the components into memory and initialize them\n self.loadAndWait();\n\n // check if we should fire the callback\n if (callback != null) {\n callback.trigger();\n }\n\n // TODO: is this thread ever killed?\n })).start();\n }", "private void loadingPhase() {\n try { Thread.sleep(10000); } catch(InterruptedException e) { return; }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n }", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "@Override\r\n\tpublic void load() {\n\r\n\t}", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "@Override\n public void load() {\n }", "@Override\n protected void onStartLoading() {\n\n forceLoad();\n }", "public void onLoad() {\n\t}", "public void loadStatus (){\n\t}", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "@Override\n\tprotected void onPreExecute() {\t\t\n\t\t// setup dialog\n\t\tif (dialog!=null){\n\t\t\tdialog.setProgress(0);\n\t\t\tdialog.setMessage(\"Initialized\");\n\t\t}\n\t\t\n\t\tif (callback!=null){\n\t\t\tcallback.onTaskUpdate(null, 0);\n\t\t}\n\t}", "@Override\n protected void onStartLoading() {\n forceLoad();\n\n }", "@Override\n public void load() {\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t}", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t}", "public void doLoadInThread() {\n selectFiles(fileChooser.getSelectedFiles(),\n fileChooser.getCurrentDirectory());\n }", "private void loadProjects() {\n observableProjects.clear();\n dateFind.setValue(null);\n observableProjects.addAll(getProject());\n table.setItems(observableProjects);\n\n ControllersDataFactory.getLink().delete(CalendarController.class);\n }", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "public void onStartLoading() {\n Cursor cursor = this.mCursor;\n if (cursor != null) {\n deliverResult(cursor);\n }\n if (takeContentChanged() || this.mCursor == null) {\n forceLoad();\n }\n }", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n public void onInitializeTasks() {\n }", "public void onLoadComplete() {\n\t\t\r\n\t}", "public void onStartLoading() {\n if (this.mCursor != null) {\n deliverResult(this.mCursor);\n }\n if (takeContentChanged() || this.mCursor == null) {\n forceLoad();\n }\n }", "public void onStartLoading() {\n if (this.mCursor != null) {\n deliverResult(this.mCursor);\n }\n if (takeContentChanged() || this.mCursor == null) {\n forceLoad();\n }\n }", "void projectComplete( String key ) {\n developer.projects.add( projectInProgress );\n projectInProgress = null;\n }", "public void doLoad() {\n UI.clearText();\n UI.println(\"Loading...\");\n\n waveform = WaveformLoader.doLoad();\n\n this.displayWaveform();\n\n UI.println(\"Loading completed!\");\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "protected void onPreExecute() {\n\t\t}", "public void loadProject(String arg) throws IOException {\n Project newProject = Project.readProject(arg);\n newProject.setConfiguration(project.getConfiguration());\n project = newProject;\n projectLoadedFromFile = true;\n }", "@Override\n\t\t\tpublic void onPreExecute() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t protected void onPreExecute() {\n\t\t\t InitializeUI();\n\t\t }", "private static void load(){\n }", "public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"notsupplied\", \"2\", false, new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tbuildUi();\n\t\t\t}\n\t\t});\n\t}", "public CreateProjectPanel() {\n isFinished = true;\n }", "public void run() {\n\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// initialize tooltip for a new folder\r\n\t\t\t\t_photoGalleryTooltip.reset(true);\r\n\r\n\t\t\t\tfinal double galleryPosition = getCachedGalleryPosition();\r\n\r\n\t\t\t\t_galleryMT20.setupItems(0, galleryPosition, _restoredSelection);\r\n\r\n\t\t\t\t_restoredSelection = null;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * update status info\r\n\t\t\t\t */\r\n\t\t\t\tfinal long timeDiff = System.currentTimeMillis() - _workerStart;\r\n\t\t\t\tfinal String timeDiffText = NLS.bind(\r\n\t\t\t\t\t\tMessages.Pic_Dir_Status_Loaded,\r\n\t\t\t\t\t\tnew Object[] { Long.toString(timeDiff), Integer.toString(_allPhotos.length) });\r\n\r\n\t\t\t\tsetStatusMessage(timeDiffText);\r\n\t\t\t}", "public static void load() {\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ProjectView().init();\r\n\t\t\t}", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tloadingAlert.show();\n\t\t}", "public void onStart(LoadScenarioInfo loadScenarioInfo){\n }", "public void loadSpinner(){\n selectedProjectPrefs = mainActivity.getSharedPreferences(\n \"selectedProjectName\", mainActivity.MODE_PRIVATE);\n selectedProjectName = selectedProjectPrefs.getString(\"selectedProjectName\", \"\");\n\n projectListPrefs = mainActivity.getSharedPreferences(\n \"projectList\", mainActivity.MODE_PRIVATE);\n if (!projectListPrefs.contains(\"projectList\"))\n {\n addProject();\n }\n HashSet<String> defaultSet = new HashSet<>();\n projectList = new ArrayList<>(projectListPrefs.getStringSet(\"projectList\", defaultSet));\n\n Spinner projectsSpinner = mainActivity.findViewById(R.id.projects_spinner);\n ArrayAdapter<String> projectsArrayAdapter = new ArrayAdapter<>(\n this.mainActivity, android.R.layout.simple_spinner_item, projectList);\n projectsArrayAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n projectsSpinner.setAdapter(projectsArrayAdapter);\n projectsSpinner.setSelection(projectsArrayAdapter.getPosition(selectedProjectName));\n }", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "public void run()\r\n {\n setErrors(0);\r\n if (!setStatus(\"INITIALIZING\"))\r\n {\r\n return;\r\n }\r\n\r\n String _dirAnalysis = _file.getParent();\r\n String _baseName = FileUtil.getBaseName(_file);\r\n File dirWork = new File(_dirAnalysis, _baseName + \".import.work\");\r\n File workFile = new File(dirWork.getAbsolutePath(), _file.getName());\r\n\r\n boolean completeStatus = false;\r\n try\r\n {\r\n if (!dirWork.exists() && !dirWork.mkdir())\r\n {\r\n getLogger().error(\"Failed create working folder \"+dirWork.getAbsolutePath()+\".\");\r\n return;\r\n }\r\n\r\n try\r\n {\r\n FileUtils.copyFile(_file, workFile);\r\n }\r\n catch (IOException x)\r\n {\r\n getLogger().error(\"Failed to move Mascot result file to working folder as \"+workFile.getAbsolutePath(), x);\r\n return;\r\n }\r\n\r\n // let's import the .dat file\r\n super.run();\r\n if (getErrors() == 0)\r\n {\r\n\r\n if (!workFile.delete())\r\n {\r\n getLogger().error(\"Failed to delete \" + workFile.getAbsolutePath());\r\n return;\r\n }\r\n else if (!dirWork.delete())\r\n {\r\n getLogger().error(\"Failed to delete \" + dirWork.getAbsolutePath());\r\n return;\r\n }\r\n else\r\n {\r\n setStatus(TaskStatus.complete);\r\n }\r\n completeStatus = true;\r\n }\r\n }\r\n catch (Exception e)\r\n {\r\n getLogger().error(\"MS2 import failed\", e);\r\n }\r\n finally\r\n {\r\n if (!completeStatus)\r\n {\r\n setStatus(TaskStatus.error);\r\n }\r\n if (workFile.exists())\r\n {\r\n workFile.delete();\r\n }\r\n }\r\n }", "public void load() ;", "@Override\r\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t}", "@Override\n\tpublic void onInitialize() {\n\t\titemregistry.registeritems();\n\t\tentityregister.registerEntityAttribute();\n\t\tSystem.out.println(\"Project Azure: Starting up...\");\n\n\t}", "@Override\r\n\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\r\n\t\t}", "public void setUploading()\n {\n jPanel4.setVisible(false);\n th.start();\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "@Override\n protected void onPreExecute() {\n\n }", "public abstract boolean isLoadCompleted();", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n protected void onPreExecute()\n {\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\texecutor.execute(new Task(ReadingDataModel.Event.INIT_LOAD));\n\t\tinitBookNote();\n\t}" ]
[ "0.67270297", "0.6287888", "0.62465835", "0.61984974", "0.61036336", "0.60905993", "0.6089438", "0.6068156", "0.6065765", "0.59947425", "0.59811836", "0.59754294", "0.59506017", "0.5865112", "0.5855218", "0.5852592", "0.5836091", "0.58278924", "0.58183044", "0.57848614", "0.57848614", "0.5770063", "0.5755642", "0.5754052", "0.57519406", "0.5733213", "0.5733213", "0.5731187", "0.57279223", "0.57264704", "0.57177097", "0.5716002", "0.56979173", "0.56977713", "0.569765", "0.56966907", "0.56950235", "0.5691943", "0.56782615", "0.56750834", "0.56695014", "0.5666385", "0.56386167", "0.56367505", "0.5635828", "0.56296164", "0.55960476", "0.5596004", "0.5586974", "0.5573008", "0.5570121", "0.55647165", "0.5553902", "0.5553373", "0.5550416", "0.5550416", "0.5550416", "0.55451185", "0.55343646", "0.5525354", "0.5525354", "0.55242276", "0.55217475", "0.552114", "0.552114", "0.5519403", "0.5507833", "0.5506765", "0.5505614", "0.5502891", "0.55006015", "0.54996854", "0.5498012", "0.5479588", "0.54746604", "0.54695755", "0.5469496", "0.5464207", "0.5459838", "0.5457452", "0.54498446", "0.54433155", "0.5442933", "0.54408956", "0.5436328", "0.5436231", "0.5433576", "0.5433576", "0.5433576", "0.5433576", "0.54325044", "0.54321676", "0.54321676", "0.54321676", "0.54321676", "0.54321676", "0.54321676", "0.54321676", "0.54321676", "0.5422955" ]
0.5878942
13
Called when a library is about to be loaded by the ProjectManager.
public void loadingLibrary(String libraryFilename);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void libraryLoaded();", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "public void beginLoad(int libraryCount);", "public static void load()\n {\n\n try {\n System.loadLibrary(\"gnustl_shared\");\n System.loadLibrary(\"log\");\n System.loadLibrary(composeLibName(\"PocoFoundation\"));\n System.loadLibrary(composeLibName(\"PocoXML\"));\n System.loadLibrary(composeLibName(\"PocoJSON\"));\n System.loadLibrary(composeLibName(\"PocoUtil\"));\n System.loadLibrary(composeLibName(\"PocoData\"));\n System.loadLibrary(composeLibName(\"PocoDataSQLite\"));\n System.loadLibrary(\"HRFusion\");\n }\n catch(Error e)\n {\n Log.e(LOG_TAG, e.getMessage());\n throw e;\n }\n }", "private void initialize() {\r\n\t\t//For the library model\r\n\t\tEObject eObject=ModelPersisterHelper.modelLoader();\r\n\t\tLibrary library=null;\r\n\t\tif(eObject instanceof Library){\r\n\t\t\tlibrary=(Library)eObject;\r\n\t\t}\r\n\t\tinvisibleRoot = new TreeParent(\"\");\r\n\t\tinvisibleRoot.addChild(library);\r\n\t}", "public void startLibrary();", "public void loadLibrary(String str) {\n _lancet.com_ss_android_ugc_aweme_lancet_launch_LoadSoLancet_loadLibrary(str);\n }", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "public void addFromLibrary() {\n btAddFromLibrary().push();\n }", "private NativeLibraryLoader() {\n }", "public interface LoaderProgressMonitor {\n\n /**\n * Called by the <code>ProjectManager</code> when a project-load operation is about to begin.\n * \n * @param libraryCount the number of libraries expected to load\n */\n public void beginLoad(int libraryCount);\n\n /**\n * Called when a library is about to be loaded by the <code>ProjectManager</code>.\n * \n * @param libraryFilename the filename of the library about to be loaded\n */\n public void loadingLibrary(String libraryFilename);\n\n /**\n * Called immediately following a library load.\n */\n public void libraryLoaded();\n\n /**\n * Called when the project-load operation is complete.\n */\n public void done();\n\n}", "public static void init() {\r\n load();\r\n registerEventListener();\r\n }", "public static void getALibrary()\n \t{\n \t\tProject.pmActive = true;\n \n \t\t// find a list of files (libraries) in the repository\n \t\tString dirName = Project.getRepositoryLocation();\n \t\tFile dir = new File(dirName);\n \t\tFile [] filesInDir = dir.listFiles();\n \t\tif (filesInDir == null && dirName.length() == 0)\n \t\t{\n \t\t\tJob.getUserInterface().showInformationMessage(\"No repository location is set. Use the 'Project Management' Preferences to set it.\", \"Warning\");\n \t\t\treturn;\n \t\t}\n \n \t\t// choose one and read it in\n \t\tnew LibraryDialog(filesInDir);\n \t}", "public interface Loader {\n void loadLibrary(String str) throws Exception;\n\n void loadLibraryFromPath(String str) throws Exception;\n }", "public void onModuleLoad() {\n\t\tMaps.loadMapsApi(\"notsupplied\", \"2\", false, new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tbuildUi();\n\t\t\t}\n\t\t});\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "public static final boolean libraryLoaded(){\n return PS3_Library.loaded();\n }", "@Override\n public void onCoreInitFinished() {\n }", "@Override\n public void onCoreInitFinished() {\n }", "@Override\n public void onCoreInitFinished() {\n }", "public static void addLibrary(ILibrary library) {\n \t\tLIBRARIES.add(library);\n \t}", "private void initModuleLibraries() {\r\n // local path in the temporarily directory for this module\r\n String localTmpPath = \"soundModule\";\r\n\r\n // path to jar\r\n String jarPath = System.getProperty(\"user.dir\") + File.separator\r\n + \"modules\" + File.separator + \"soundModule.jar\";\r\n\r\n // extract the jar files for sound module\r\n try {\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\", \"jl1.0.jar\");\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\",\r\n \"mp3spi1.9.4.jar\");\r\n JarUtil.extractFileFromJar(jarPath, localTmpPath, \"lib\",\r\n \"tritonus_share-0.3.6.jar\");\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n\r\n // add this path in the library path...\r\n JarUtil.setLibraryPath(localTmpPath);\r\n\r\n // load jars from that temporarily directory (sound required jars)\r\n JarUtil.loadJar(localTmpPath, \"tritonus_share-0.3.6.jar\");\r\n JarUtil.loadJar(localTmpPath, \"mp3spi1.9.4.jar\");\r\n JarUtil.loadJar(localTmpPath, \"jl1.0.jar\");\r\n }", "protected void pluginInitialize() {}", "public Library() {\r\n initComponents();\r\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n //Init grandparent\n ls = LibrarySingleton.librarySingleton();\n this.grandparent = LibrarySingleton.getParent_instance();\n \n }", "private static void init() {\n __lib = new JnaGmpLib();\n }", "public static final void loadLibrary(String dll_path, String dll_name) { \n PS3_Library.loadLibrary(dll_path, dll_name);\n }", "public abstract void onInit();", "@Override\n public void onEnable() {\n // Config\n getConfig().options().copyDefaults(true);\n saveConfig();\n\n // Get and load the libraries\n LIBRARIES = new LibraryHandler(this);\n\n // Evo-inflector\n LIBRARIES.addMavenLibrary(LibraryHandler.MAVEN_CENTRAL, Depends.ORG_ATTEO, Depends.EVO, Depends.EVO_VER);\n\n if (Setting.MONGODB_PERSISTENCE) {\n LIBRARIES.addMavenLibrary(LibraryHandler.MAVEN_CENTRAL, Depends.ORG_MONGO, Depends.MONGODB,\n Depends.MONGODB_VER);\n }\n\n // Enable\n new DGGame(this);\n }", "@Override\n\tprotected void GenerateImportLibrary(String LibName) {\n\n\t}", "private void onOK() {\n addLibros();\n dispose();\n }", "public void onModuleLoad() {\n\t\tbentoService = (BentoServiceAsync)GWT.create(BentoService.class);\n\t\tRegistry.register(\"bentoService\", bentoService);\n\n\t\tHistory.addHistoryListener(this);\n\t\tHistory.fireCurrentHistoryState();\n\t}", "public static void load() {\n }", "private void ImportLibrary(){\n for(int i = 0; i < refact.size(); i++){\n if(refact.get(i).contains(\"import\")){\n for(String library : libraries){\n refact.add(i, library + \"\\r\");\n }\n break;\n }\n }\n\n\n }", "public boolean isLoaded() {\n\t\treturn lib != null;\n\t}", "public abstract void loaded();", "private static void load(){\n }", "public void onModuleLoad() {\r\n\t\tboolean sensor = true;\r\n\r\n\t\t// load all the libs for use\r\n\t\tArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();\r\n\t\tloadLibraries.add(LoadLibrary.ADSENSE);\r\n\t\tloadLibraries.add(LoadLibrary.DRAWING);\r\n\t\tloadLibraries.add(LoadLibrary.GEOMETRY);\r\n\t\tloadLibraries.add(LoadLibrary.PANORAMIO);\r\n\t\tloadLibraries.add(LoadLibrary.PLACES);\r\n\r\n\t\tRunnable onLoad = new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// ajout du label de compte rendu\r\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}\r\n\r\n\t\t};\r\n\r\n\t\tLoadApi.go(onLoad, loadLibraries, sensor);\r\n\t}", "public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}", "public void onInitializeComplete() {\n }", "void setUpLibraryDependency(@NotNull Module module,\n @NotNull IdeModifiableModelsProvider modelsProvider,\n @NotNull String libraryName,\n @NotNull DependencyScope scope,\n @NotNull File artifactPath,\n @NotNull File[] binaryPaths,\n boolean exported) {\n String prefix = GradleConstants.SYSTEM_ID.getReadableName() + \": \";\n libraryName = libraryName.isEmpty() || StringUtil.startsWith(libraryName, prefix) ? libraryName : prefix + libraryName;\n\n LibraryFilePaths libraryFilePaths = LibraryFilePaths.getInstance(module.getProject());\n File sourceJarPath = libraryFilePaths.findSourceJarPath(libraryName, artifactPath);\n File javadocJarPath = libraryFilePaths.findJavadocJarPath(libraryName, artifactPath);\n boolean newLibrary = false;\n Library library = modelsProvider.getLibraryByName(libraryName);\n if (library == null || !isLibraryValid(modelsProvider.getModifiableLibraryModel(library), binaryPaths, javadocJarPath, sourceJarPath)) {\n if (library != null) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(library.getName() + \" not valid after sync.\");\n }\n modelsProvider.removeLibrary(library);\n }\n library = modelsProvider.createLibrary(libraryName);\n newLibrary = true;\n }\n\n if (newLibrary) {\n updateLibraryRootTypePaths(library, CLASSES, modelsProvider, binaryPaths);\n\n // It is common that the same dependency is used by more than one module. Here we update the \"sources\" and \"documentation\" paths if they\n // were not set before.\n\n // Example:\n // In a multi-project project, there are 2 modules: 'app'' (an Android app) and 'util' (a Java lib.) Both of them depend on Guava. Since\n // Android artifacts do not support source attachments, the 'app' module may not indicate where to find the sources for Guava, but the\n // 'util' method can, since it is a plain Java module.\n // If the 'Guava' library was already defined when setting up 'app', it won't have source attachments. When setting up 'util' we may\n // have source attachments, but the library may have been already created. Here we just add the \"source\" paths if they were not already\n // set.\n if (sourceJarPath != null) {\n updateLibraryRootTypePaths(library, SOURCES, modelsProvider, sourceJarPath);\n }\n if (javadocJarPath != null) {\n updateLibraryRootTypePaths(library, JavadocOrderRootType.getInstance(), modelsProvider, javadocJarPath);\n }\n\n // Add external annotations.\n // TODO: Add this to the model instead!\n for (File binaryPath : binaryPaths) {\n String pathName = binaryPath.getPath();\n if (pathName.endsWith(FD_RES) && pathName.length() > FD_RES.length() &&\n pathName.charAt(pathName.length() - FD_RES.length() - 1) == separatorChar) {\n File annotations = new File(pathName.substring(0, pathName.length() - FD_RES.length()), FN_ANNOTATIONS_ZIP);\n if (annotations.isFile()) {\n updateLibraryRootTypePaths(library, AnnotationOrderRootType.getInstance(), modelsProvider, annotations);\n }\n }\n else if ((libraryName.startsWith(ANDROIDX_ANNOTATIONS_ARTIFACT, prefix.length()) ||\n libraryName.startsWith(ANNOTATIONS_LIB_ARTIFACT, prefix.length())) &&\n pathName.endsWith(DOT_JAR)) {\n // The support annotations is a Java library, not an Android library, so it's not distributed as an AAR\n // with its own external annotations. However, there are a few that we want to make available in the\n // IDE (for example, code completion on @VisibleForTesting(otherwise = |), so we bundle these in the\n // platform annotations zip file instead. We'll also need to add this as a root here.\n File annotations = new File(pathName.substring(0, pathName.length() - DOT_JAR.length()) + \"-\" + FN_ANNOTATIONS_ZIP);\n if (annotations.isFile()) {\n updateLibraryRootTypePaths(library, AnnotationOrderRootType.getInstance(), modelsProvider, annotations);\n }\n }\n }\n }\n\n addLibraryAsDependency(library, libraryName, scope, module, modelsProvider, exported);\n }", "public static void loadLibrary() {\n PathUtils.setPrivateDataDirectorySuffix(PRIVATE_DATA_DIRECTORY_SUFFIX);\n try {\n LibraryLoader libraryLoader = LibraryLoader.get(LibraryProcessType.PROCESS_WEBVIEW);\n libraryLoader.loadNow();\n // Switch the command line implementation from Java to native.\n // It's okay for the WebView to do this before initialization because we have\n // setup the JNI bindings by this point.\n libraryLoader.switchCommandLineForWebView();\n } catch (ProcessInitException e) {\n throw new RuntimeException(\"Cannot load WebView\", e);\n }\n }", "public void setup(LdBookCB cb);", "void injectorClassLoader() {\n\t\t//To get the package name\n\t\tString pkgName = context.getPackageName();\n\t\t//To get the context\n\t\tContext contextImpl = ((ContextWrapper) context).getBaseContext();\n\t\t//Access to the Activity of the main thread\n\t\tObject activityThread = null;\n\t\ttry {\n\t\t\tactivityThread = Reflection.getField(contextImpl, \"mMainThread\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//Get package container\n\t\tMap mPackages = null;\n\t\ttry {\n\t\t\tmPackages = (Map) Reflection.getField(activityThread, \"mPackages\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//To obtain a weak reference object, the standard reflection\n\t\tWeakReference weakReference = (WeakReference) mPackages.get(pkgName);\n\t\tif (weakReference == null) {\n\t\t\tlog.e(\"loadedApk is null\");\n\t\t} else {\n\t\t\t//Get apk need to be loaded\n\t\t\tObject loadedApk = weakReference.get();\n\t\t\t\n\t\t\tif (loadedApk == null) {\n\t\t\t\tlog.e(\"loadedApk is null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (appClassLoader == null) {\n\t\t\t\t//Access to the original class loader\n\t\t\t\tClassLoader old = null;\n\t\t\t\ttry {\n\t\t\t\t\told = (ClassLoader) Reflection.getField(loadedApk,\n\t\t\t\t\t\t\t\"mClassLoader\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t//According to the default class loader instantiate a plug-in class loader\n\t\t\t\tappClassLoader = new SyknetAppClassLoader(old, this);\n\t\t\t}\n\t\t\t//Replace the new plug-in loader loader by default\n\t\t\ttry {\n\t\t\t\tReflection.setField(loadedApk, \"mClassLoader\", appClassLoader);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "protected LibReference() {\n\t}", "public Library (){\r\n\t\tthis.inverntory = new List();\r\n\t}", "@Override\n public void onModuleLoad() {\n }", "public static void initialize() {\n\n GUIResources.addResourcesFromClasspath();\n _initialize();\n\n }", "public void load(final FinishedLoading callback) {\n final InjectorManager self = this;\n (new Thread(() -> {\n // load all the components into memory and initialize them\n self.loadAndWait();\n\n // check if we should fire the callback\n if (callback != null) {\n callback.trigger();\n }\n\n // TODO: is this thread ever killed?\n })).start();\n }", "@Override\n\tpublic void libraryStateChanged(boolean updating) {\n\t\t\n\t}", "@Override\n\tpublic void libraryStateChanged(boolean updating) {\n\t\t\n\t}", "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public void initClassLoader() {\n FileClassLoadingService classLoader = new FileClassLoadingService();\n\n // init from preferences...\n Domain classLoaderDomain = getPreferenceDomain().getSubdomain(\n FileClassLoadingService.class);\n\n Collection details = classLoaderDomain.getPreferences();\n if (details.size() > 0) {\n\n // transform preference to file...\n Transformer transformer = new Transformer() {\n\n public Object transform(Object object) {\n DomainPreference pref = (DomainPreference) object;\n return new File(pref.getKey());\n }\n };\n\n classLoader.setPathFiles(CollectionUtils.collect(details, transformer));\n }\n\n this.modelerClassLoader = classLoader;\n }", "public abstract void init(ResourceLoader loader);", "private final void init() {\n\t\tam = new nativeAssetManager();\n\t\tam.addDefaultAssets();\n\t}", "public void onModuleLoad() {\n\t\tGWT.setUncaughtExceptionHandler(new GWT.UncaughtExceptionHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onUncaughtException(Throwable e) {\n\t\t\t\tThrowable unwrapped = getExceptionToDisplay(e);\n\t\t\t\tAppClientFactory.printSevereLogger(\"Exception Caught !! \"+unwrapped.getMessage());\n\t\t\t}\n\t\t});\n\t\t\n\t\tDelayedBindRegistry.bind(appInjector);\n\t\tAppClientFactory.setAppGinjector(appInjector);\n\t\t ArrayList<LoadLibrary> loadLibraries = new ArrayList<LoadApi.LoadLibrary>();\n\t\t loadLibraries.add(LoadLibrary.ADSENSE);\n\t\t loadLibraries.add(LoadLibrary.DRAWING);\n\t\t loadLibraries.add(LoadLibrary.GEOMETRY);\n\t\t loadLibraries.add(LoadLibrary.PANORAMIO);\n\t\t loadLibraries.add(LoadLibrary.PLACES);\n\t\t loadLibraries.add(LoadLibrary.WEATHER);\n\t\t loadLibraries.add(LoadLibrary.VISUALIZATION);\n\t\t \n\t\t \n\t\tString device = BrowserAgent.returnFormFactorWithSizeView();\n\t\tString size[] = device.split(\"-\");\n\n\t\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\t\tappInjector.getPlaceManager().revealCurrentPlace();\n\t\t\t\t\tAppClientFactory.setProtocol(getHttpOrHttpsProtocol());\n\t\t\t\t\tregisterWindowEvents();\n\t\t\t\t}\n\t\t\t});\n\t\t\tAppClientFactory.setAppGinjector(appInjector);\n\n\t\tgetloggersStatus();\n\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 767px) {\" + PlayerStyleBundle.INSTANCE.getPlayerMobileStyle().getText() + \"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\" + PlayerStyleBundle.INSTANCE.getPlayerTabletStyle().getText() + \"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 550px) {\" + PlayerSmallMobileBundle.INSTANCE.getPlayerSmallMobile().getText() + \"}\");\n\t\tPlayerStyleBundle.INSTANCE.getPlayerStyleResource().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px){\"+SearchCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) and (orientation:portrait){\"+SearchCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) and (orientation:landscape){\"+SearchCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+SearchCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+SearchCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+SearchCBundle.INSTANCE.getResponsive5Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (min-width: 768px){\"+SearchCBundle.INSTANCE.getResponsive6Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 1200px){\"+SearchCBundle.INSTANCE.getResponsive7Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+SearchCBundle.INSTANCE.getResponsive8Style().getText()+\"}\");\n\n\t\tSearchCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\t\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+LoginPopUpCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+LoginPopUpCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+LoginPopUpCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px){\"+LoginPopUpCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 1200px){\"+LoginPopUpCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (max-width: 767px) {\"+LoginPopUpCBundle.INSTANCE.getResponsive5Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media screen and (min-width: 768px) {\"+LoginPopUpCBundle.INSTANCE.getResponsive6Style().getText()+\"}\");\n\n\t\tLoginPopUpCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+AnalyticsTabCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+AnalyticsTabCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tAnalyticsTabCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 240px) and (max-width: 319px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 320px) and (max-width: 479px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive2Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive3Style().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 992px){\"+ResourcePlayerCBundle.INSTANCE.getResponsive4Style().getText()+\"}\");\n\n\t\tResourcePlayerCBundle.INSTANCE.css().ensureInjected();\n\t\n\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+CollectionSummaryIndividualCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+CollectionSummaryIndividualCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tCollectionSummaryIndividualCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (max-width: 767px) {\"+CollectionPlaySummaryCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 768px) and (max-width: 991px) {\"+CollectionPlaySummaryCBundle.INSTANCE.getResponsive1Style().getText()+\"}\");\n\t\t\n\t\tCollectionPlaySummaryCBundle.INSTANCE.css().ensureInjected();\n\t\t\n\t\tStyleInjector.injectAtEnd(\"@media (min-width: 480px) and (max-width: 767px){\"+FolderContainerCBundle.INSTANCE.getResponsiveStyle().getText()+\"}\");\n\t\tFolderContainerCBundle.INSTANCE.css().ensureInjected();\n\t}", "public static void addFilterLibrary(String libraryPath) {\n if (mLogVerbose) {\n String str = TAG;\n StringBuilder stringBuilder = new StringBuilder();\n stringBuilder.append(\"Adding filter library \");\n stringBuilder.append(libraryPath);\n Log.v(str, stringBuilder.toString());\n }\n synchronized (mClassLoaderGuard) {\n if (!mLibraries.contains(libraryPath)) {\n mLibraries.add(libraryPath);\n mCurrentClassLoader = new PathClassLoader(libraryPath, mCurrentClassLoader);\n } else if (mLogVerbose) {\n Log.v(TAG, \"Library already added\");\n }\n }\n }", "public void onLoad() {\n\t}", "public void onModuleLoad() {\n\n\t\tJsonpRequestBuilder requestBuilder = new JsonpRequestBuilder();\n\t\t// requestBuilder.setTimeout(10000);\n//\t\trequestBuilder.requestObject(SERVER_URL, new Jazz10RequestCallback());\n\n\t}", "public LibraryBuilder() {\n\t\tthis.addToLibrary = new MyMusicLibrary();\n\t\tthis.addToArtiLibrary = new MyArtistLibrary();\n\t}", "@Override\n\tpublic void onInitialize() {\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n mPluginMgr = PluginManager.getInstance(this);\n mPluginMgr.setLoaderListener(getPluginPackageName(), this);\n super.onCreate(savedInstanceState);\n mSavedInstanceState = savedInstanceState;\n load();\n\n }", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "protected void onInit() {\n\t}", "public static void loadLibrary(final String libName) throws Exception {\n\t\tif (LOADED_LIB_SET.contains(libName)) {\n\t\t\treturn;\n\t\t}\n\n\t\tString libFileName = System.mapLibraryName(libName);\n\t\tString tempName = removeExtension(libFileName);\n\t\tString ext = getExtension(libFileName);\n\n\t\tPath tempPath = Files.createTempFile(tempName, ext);\n\t\tFile tempFile = tempPath.toFile();\n\n\t\ttry (InputStream is = NativeLoader.class.getClassLoader().getResourceAsStream(libFileName)) {\n\t\t\tFiles.copy(is, tempPath, StandardCopyOption.REPLACE_EXISTING);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\ttempFile.delete();\n\n\t\t\tthrow e;\n\t\t}\n\n\t\ttry {\n\t\t\tSystem.load(tempPath.toAbsolutePath().toString());\n\n\t\t\tLOADED_LIB_SET.add(libName);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\ttempFile.delete();\n\n\t\t\tthrow e;\n\t\t}\n\n\t\tif (FileSystems.getDefault().supportedFileAttributeViews().contains(\"posix\")) {\n\t\t\t// Assume POSIX compliant file system, library can be deleted after loading.\n\t\t\ttempFile.delete();\n\t\t}\n\t\telse {\n\t\t\ttempFile.deleteOnExit();\n\t\t}\n\t}", "public void setLibrary(Library library2) {\r\n\t\tthis.library = library2;\r\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "public final void init() {\n onInit();\n }", "@Override\n protected void pluginInitialize() {\n // init();\n }", "@Override\n public void load() {\n }", "public void load() {\n }", "@Override\n\tpublic void onLoad() {\n\t\tdescription = this.getDescription();\n\t\tpluginConfiguration = this.getConfig();\n\t\tLogHelper.initLogger(\"BukkitWebby\", \"Minecraft\");\n\t}", "@Override\n\tpublic void onInit(RobotAPI arg0) {\n\n\t}", "private static void setupLibrary() {\r\n /*\r\n * For using over http:// and https://\r\n */\r\n DAVRepositoryFactory.setup();\r\n /*\r\n * For using over svn:// and svn+xxx://\r\n */\r\n SVNRepositoryFactoryImpl.setup();\r\n\r\n /*\r\n * For using over file:///\r\n */\r\n FSRepositoryFactory.setup();\r\n }", "public void handleLoadPackage(final LoadPackageParam lpparam) throws Throwable {\n \tloadPreferences();\n\n \t// This method is called once per package, so we only want to apply hooks to Waze.\n if (WAZE_PACKAGE.equals(lpparam.packageName)) {\n this.hookWazeRequestAudioFocus(lpparam.classLoader);\n this.hookWazeReleaseAudioFocus(lpparam.classLoader);\n }\n }", "public void load() {\n handleLoad(false, false);\n }", "private void init() throws ClassNotFoundException{\n }", "@Subscribe\n public void load(FMLInitializationEvent event) {\n Log.printFinest(\"container Load event\");\n\n // core checks\n if (!CoreTransformer.created) {\n printDebugDataAndCrash(CoreTransformer.class.getSimpleName() + \" is not being created!\");\n }\n\n if (!CoreTransformer.lightningHookApplied) {\n printDebugDataAndCrash(\"Unable to install a lightning hook!\");\n }\n\n if (!CoreTransformer.gameDataHookApplied) {\n printDebugDataAndCrash(\"Unable to install gamedata hooks!\");\n }\n\n if (MonnefCorePlugin.debugEnv && MonnefCorePlugin.jaffasEnv) {\n try {\n Log.printInfo(\"calling item dumping procedure\");\n ObfuscationHelper.dumpUsedItemsToConfig();\n Log.printInfo(\"item dumping procedure finished\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n FMLCommonHandler.instance().bus().register(new CoreTickHandler());\n\n MinecraftForge.EVENT_BUS.register(new WolfFoodRegistry());\n\n MonnefCorePlugin.initialized = true;\n MonnefCorePlugin.Log.printInfo(\"Final checks passed.\");\n }", "@Override\r\n\tpublic void onInit() throws Exception {\n\t\t\r\n\t}", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "@Override\n\tpublic void init(BundleContext context, DependencyManager manager)\n\t\t\tthrows Exception {\n\t\t\n\t}", "public void initialize() {\n this.loadDownloadList();\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n addListener();\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "private void initialize() {\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "public void load() {\n\t}", "void onLoaderLoading();", "private void initialize() {\n\t}", "protected void initialize() {}", "protected void initialize() {}", "void postInit();", "void postInit();", "public void onModuleLoad() {\r\n // Create ClientFactory using deferred binding so we can replace with different impls in gwt.xml\r\n ClientFactory clientFactory = GWT.create(ClientFactory.class);\r\n clientFactory.getApp().run(RootLayoutPanel.get());\r\n }", "protected void sequence_Library(ISerializationContext context, Library semanticObject) {\n\t\tgenericSequencer.createSequence(context, semanticObject);\n\t}", "public void addLib(String lib) {\r\n\t\tgetLibs().add(lib);\r\n\t}" ]
[ "0.8155331", "0.6763771", "0.67326945", "0.62439704", "0.6200241", "0.6143318", "0.6014281", "0.60075504", "0.5999982", "0.59465396", "0.59185505", "0.5799465", "0.57960004", "0.5785939", "0.57784104", "0.57233703", "0.5705768", "0.5694737", "0.56735873", "0.56735873", "0.5672679", "0.56600267", "0.5632716", "0.56292427", "0.55876756", "0.5583971", "0.55653286", "0.55541664", "0.55529666", "0.5542138", "0.5534474", "0.55227876", "0.55204856", "0.5514527", "0.55129385", "0.5510232", "0.5510007", "0.5503419", "0.54989696", "0.54988015", "0.549161", "0.54736435", "0.54675764", "0.5449655", "0.54405993", "0.54269093", "0.5417616", "0.54164255", "0.54096484", "0.5395385", "0.5395385", "0.53945076", "0.53903383", "0.53735775", "0.5364574", "0.5358909", "0.5358217", "0.5344103", "0.5341466", "0.53335017", "0.53314316", "0.5323774", "0.5321773", "0.5320155", "0.5317019", "0.53168297", "0.53157794", "0.5303765", "0.5292232", "0.52806646", "0.527533", "0.527411", "0.52639437", "0.5258219", "0.5245858", "0.5242061", "0.5240982", "0.5236548", "0.52346164", "0.5232799", "0.52321184", "0.5230898", "0.52281284", "0.52223146", "0.52144396", "0.52116394", "0.52116394", "0.5208459", "0.52034086", "0.52034086", "0.5199067", "0.51888067", "0.51859146", "0.5182916", "0.5182916", "0.5182845", "0.5182845", "0.51809067", "0.51783115", "0.51781607" ]
0.74890476
1
Called immediately following a library load.
public void libraryLoaded();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void beginLoad(int libraryCount);", "public void loadingLibrary(String libraryFilename);", "public static void SelfCallForLoading() {\n\t}", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "protected void initialize() { \tthePrintSystem.printWithTimestamp(getClass().getName()); \n\tthis.isDone = false;\n\t\n\ttheLoader.setSetpoint(1.5);\n\t\n }", "private static void load(){\n }", "public static void load() {\n }", "public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}", "private void initialize() {\n\t}", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "private void initialize() {\n\t\t\n\t}", "private void initialize() {\n }", "public static void load()\n {\n\n try {\n System.loadLibrary(\"gnustl_shared\");\n System.loadLibrary(\"log\");\n System.loadLibrary(composeLibName(\"PocoFoundation\"));\n System.loadLibrary(composeLibName(\"PocoXML\"));\n System.loadLibrary(composeLibName(\"PocoJSON\"));\n System.loadLibrary(composeLibName(\"PocoUtil\"));\n System.loadLibrary(composeLibName(\"PocoData\"));\n System.loadLibrary(composeLibName(\"PocoDataSQLite\"));\n System.loadLibrary(\"HRFusion\");\n }\n catch(Error e)\n {\n Log.e(LOG_TAG, e.getMessage());\n throw e;\n }\n }", "public void load() {\n handleLoad(false, false);\n }", "void postInit();", "void postInit();", "public void onLoad() {\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "public abstract void loaded();", "public void load() {\n\t}", "protected void initialize() {}", "protected void initialize() {}", "public abstract void postInit();", "@Override\n public void load() {\n }", "private NativeLibraryLoader() {\n }", "public void load() {\n }", "public void initialize() {\r\n }", "void preInit();", "void preInit();", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "public void postInit() {\n }", "protected abstract void initialize();", "@Override\r\n\tpublic void load() {\n\r\n\t}", "protected void initialize()\n\t{\n\t}", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "protected void onFirstUse() {}", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "private void Initialize()\n {\n\n }", "private void initDataLoader() {\n\t}", "@Override\n\tprotected void initHook() {\n\t}", "public abstract void initialize();", "public abstract void initialize();", "public abstract void initialize();", "protected void initialize() {\n\t}", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "protected void onStartLoading() { forceLoad();}", "private void startUp () {\n NativeMethodBroker.loadLibrary(false);\n try {\n start_up();\n } catch (UnsatisfiedLinkError e) {\n try {\n NativeMethodBroker.loadLibrary(true);\n NativeMethodBroker.traceln(AX_PROGRESS, \"There apparently were problems \" +\n \"in initially loading JavaContainer.dll. \" +\n \"It appears to be ok now. Error message \" +\n \"was \" + e.getMessage());\n start_up();\n } catch (UnsatisfiedLinkError e2) {\n NativeMethodBroker.traceln(AX_ERROR, fatalErrorMessage +\n \" Error message was: \" + e2.getMessage());\n // Really should exit here.\n // System.exit(-1);\n }\n }\n }", "@Override\n public void autonomousInit() {\n \n }", "public void initialize() {\n }", "protected void initialize()\r\n {\n }", "public void initialize () {\n }", "public void initialize() {\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public void autonomousInit() {\n \n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "protected void initialize() {\n\n\t}", "public void startLibrary();", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "public static void load() {\n load(false);\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n public void onCoreInitFinished() {\n }", "public void initialize() {\n // TODO\n }", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "@Override\n\tprotected void isLoaded() throws Error \n\t{\n\t\t\n\t}", "public void loaded(){\n\t\tloaded=true;\n\t}", "public void initialize() {\n this.loadDownloadList();\n }", "@Override\n\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "public void initialize () {\n\n }", "@Override\r\n public void loadAfter(@NonNull LoadParams params, @NonNull LoadCallback callback) {\n }" ]
[ "0.76486266", "0.6889358", "0.686541", "0.682418", "0.66646034", "0.6603834", "0.6588665", "0.64688104", "0.64384717", "0.64344096", "0.6398261", "0.6395468", "0.6383349", "0.6354639", "0.62920606", "0.6278027", "0.62599564", "0.62599564", "0.62530893", "0.6239779", "0.6216295", "0.620764", "0.61934435", "0.61934435", "0.615463", "0.61441976", "0.6144017", "0.6140615", "0.6120748", "0.6114883", "0.6114883", "0.61106354", "0.61106354", "0.61106354", "0.6110302", "0.61076355", "0.6102171", "0.6098788", "0.6098003", "0.6088276", "0.6088276", "0.608", "0.60695356", "0.60695356", "0.6068639", "0.6062825", "0.6062825", "0.6056525", "0.6055602", "0.604762", "0.6038451", "0.6038451", "0.6038451", "0.603209", "0.60309917", "0.60309917", "0.60209554", "0.60170424", "0.6015437", "0.6015363", "0.6013068", "0.6010968", "0.600798", "0.599227", "0.59842867", "0.59842867", "0.59815645", "0.59757495", "0.59757495", "0.5973512", "0.5972058", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59703714", "0.59655756", "0.59643626", "0.59627616", "0.59584844", "0.5958447", "0.59485114", "0.59466267", "0.5943086", "0.5940558", "0.59403574", "0.5933569" ]
0.78916186
0
Called when the projectload operation is complete.
public void done();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadTheProject() {\n\t\tProjectHandler.openProject(mFilePath);\n }", "public void load() {\r\n try {\r\n project = ProjectAccessor.findFromTitle(title, conn);\r\n } catch (SQLException e) {\r\n e.printStackTrace();\r\n }\r\n }", "void projectComplete( String key ) {\n developer.projects.add( projectInProgress );\n projectInProgress = null;\n }", "private void loadProjects() {\n\t\tprojectsList.clear();\n\t\t\n\t\tArrayList<Job> projects = jdbc.getProjects();\n\t\tfor (Job j : projects) {\n\t\t\tprojectsList.addElement(j.jobname);\n\t\t}\n\t}", "public void onLoadComplete() {\n\t\t\r\n\t}", "public void load() {\n handleLoad(false, false);\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "public void load() {\n\t}", "@Override\r\n\t\t\tpublic void onMapLoadFinish() {\n\t\t\t}", "void projectFound( String key ){\n projectInProgress = new Project();\n }", "public void load() {\n }", "public void load() {\r\n\t\t\r\n\t\t//-- Clean\r\n\t\tthis.repositories.clear();\r\n\t\t\r\n\t\tloadInternal();\r\n\t\tloadExternalRepositories();\r\n\t\t\r\n\t}", "private void completeLoad() {\n if (boardFragment == null) {\n FragmentManager fm = getSupportFragmentManager();\n boardFragment = (BoardFragment) fm.findFragmentById(android.R.id.content);\n }\n boardFragment.setData(posts, threadLinks);\n\n setProgressBarIndeterminateVisibility(false);\n if (refreshItem != null) {\n refreshItem.setVisible(true);\n }\n }", "@Override\n public void onUploadFinish() {\n currentContent = this.loadContent(currentPath);\n populateContentListView(currentContent);\n }", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "@Override\r\n\tpublic void load() {\n\t}", "@Override\n public void load() {\n }", "@Override\r\n\tpublic void load() {\n\r\n\t}", "@Override\n public void load() {\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "void projectsComplete( String key ) {\n //do nothing\n }", "public void notifyNewProject(URI project) {\n\t\tDebug.log(\"Loading uninitialized project \", project);\n\t\tnotifyNewProjectFiles(new File(project));\n\t}", "public static void load() {\n }", "public void initializationComplete() {\n System.out.println(\"CPM Initialization Complete\");\n mInitCompleteTime = System.currentTimeMillis();\n }", "public abstract void loaded();", "void loadingFinished(ProductModel pm)\r\n {\r\n // System.out.println(\"--- Loading finished: \" + pm.getId());\r\n synchronized (loadedDbProducts) {\r\n loadedDbProducts.add(pm);\r\n }\r\n }", "public void load() ;", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tprotected void load() {\n\t\t\n\t}", "@Override\n\tpublic void complete()\n\t{\n\t}", "private static void load(){\n }", "public void load(final FinishedLoading callback) {\n final InjectorManager self = this;\n (new Thread(() -> {\n // load all the components into memory and initialize them\n self.loadAndWait();\n\n // check if we should fire the callback\n if (callback != null) {\n callback.trigger();\n }\n\n // TODO: is this thread ever killed?\n })).start();\n }", "public static void printDoneLoading() {\n System.out.println(Message.DONE_LOADING);\n }", "public void doLoad() {\n UI.clearText();\n UI.println(\"Loading...\");\n\n waveform = WaveformLoader.doLoad();\n\n this.displayWaveform();\n\n UI.println(\"Loading completed!\");\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "void onLoaderFinished();", "private void loadProjects() {\n observableProjects.clear();\n dateFind.setValue(null);\n observableProjects.addAll(getProject());\n table.setItems(observableProjects);\n\n ControllersDataFactory.getLink().delete(CalendarController.class);\n }", "@Override\r\n\tpublic void complete() {\n\r\n\t}", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "public interface LoaderProgressMonitor {\n\n /**\n * Called by the <code>ProjectManager</code> when a project-load operation is about to begin.\n * \n * @param libraryCount the number of libraries expected to load\n */\n public void beginLoad(int libraryCount);\n\n /**\n * Called when a library is about to be loaded by the <code>ProjectManager</code>.\n * \n * @param libraryFilename the filename of the library about to be loaded\n */\n public void loadingLibrary(String libraryFilename);\n\n /**\n * Called immediately following a library load.\n */\n public void libraryLoaded();\n\n /**\n * Called when the project-load operation is complete.\n */\n public void done();\n\n}", "private void loadProject()\n\t{\n\t\t\n\t\tint fileChooserReturnValue =\n\t\t\twindowTemplate\n\t\t\t\t.getFileChooser()\n\t\t\t\t.showOpenDialog(windowTemplate);\n\t\t\n\t\tif(fileChooserReturnValue == JFileChooser.APPROVE_OPTION) {\n\t\t\t// Delete the current cards\n\t\t\tdeleteAllCards();\n\t\t\t\n\t\t\t// Get the file that the user selected\n\t\t\tFile file = windowTemplate.getFileChooser().getSelectedFile();\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Open the input streams\n\t\t\t\tFileInputStream fileInput = new FileInputStream(file.getAbsolutePath());\n\t\t\t\tObjectInputStream objectInput = new ObjectInputStream(fileInput);\n\t\t\t\t\n\t\t\t\t// Get ready to save the cards\n\t\t\t\tArrayList<Card> newCards = new ArrayList<Card>();\n\t\t\t\t\n\t\t\t\t// Get the objects\n\t\t\t\ttry {\n\t\t\t\t\t\n\t\t\t\t\tObject inputObject = objectInput.readObject();\n\t\t\t\t\t\n\t\t\t\t\twhile(inputObject instanceof Card) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Add the card\n\t\t\t\t\t\tnewCards.add((Card) inputObject);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Read the next object\n\t\t\t\t\t\tinputObject = objectInput.readObject();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t} catch(EOFException e2) {\n\t\t\t\t\t\n\t\t\t\t\t// We've reached the end of the file, time to add the new project\n\t\t\t\t\taddCards(newCards);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Close the input streams\n\t\t\t\tobjectInput.close();\n\t\t\t\tfileInput.close();\n\t\t\t\t\n\t\t\t\t// Update the title of the frame to reflect the current project\n\t\t\t\twindowTemplate.setTitle(file.getName());\n\t\t\t\t\n\t\t\t} catch (ClassNotFoundException | IOException e1) {\n\t\t\t\tJOptionPane.showMessageDialog(windowTemplate, \"Could not open the file.\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void onLoad() {\n\t}", "private void loadingPhase() {\n try { Thread.sleep(10000); } catch(InterruptedException e) { return; }\n ClickObserver.getInstance().setTerrainFlag(\"\");\n }", "@FxThread\n private void onFinishLoading() {\n pluginSystem.getPlugins().stream()\n .filter(EditorPlugin.class::isInstance)\n .map(EditorPlugin.class::cast)\n .forEach(editorPlugin -> editorPlugin.onFinishLoading(pluginSystem));\n }", "private void reloadProject()\n {\n unloadProject();\n\n if (!projectDirectory.exists()) {\n displayError(DIRECTORY_DOES_NOT_EXIST_MESSAGE, null);\n return;\n }\n\n if (!projectDirectory.isDirectory()) {\n displayError(NOT_A_DIRECTORY_MESSAGE, null);\n return;\n }\n\n if (!ProjectReader.isValidProjectDirectory(projectDirectory)) {\n displayError(PROJECT_NOT_FOUND_MESSAGE, null);\n return;\n }\n\n try {\n project = ProjectReader.read(projectDirectory);\n projectBuilder = new ProjectBuilder(project);\n projectSettingsPanel = new ProjectSettingsPanel(projectBuilder);\n projectSettingsContainer.add(projectSettingsPanel, BorderLayout.PAGE_START);\n projectSettingsContainer.add(new JPanel(), BorderLayout.CENTER);\n } catch (Throwable t) {\n displayError(UNABLE_TO_LOAD_PROJECT_MESSAGE, t);\n return;\n }\n\n preferences.put(PREF_PROJECT_DIRECTORY, projectDirectory.toString());\n try { preferences.sync(); } catch (BackingStoreException e) { e.printStackTrace(); }\n\n generateButton.setEnabled(true);\n\n pack();\n }", "public void reload() {\n if ( _build_file != null ) {\n openBuildFile( _build_file );\n }\n }", "public void loadProject(String arg) throws IOException {\n Project newProject = Project.readProject(arg);\n newProject.setConfiguration(project.getConfiguration());\n project = newProject;\n projectLoadedFromFile = true;\n }", "public void load() throws IOException {\r\n\t\tFile file = new File(projectDir, TERN_PROJECT);\r\n\t\tif (file.exists()) {\r\n\t\t\tJSONParser parser = new JSONParser();\r\n\t\t\ttry {\r\n\t\t\t\tJSONObject result = (JSONObject) parser.parse(new FileReader(\r\n\t\t\t\t\t\tfile));\r\n\t\t\t\tsuper.putAll(result);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void projectClosed() {\n finaliseToolWindow();\n this.project = null;\n }", "public void beginLoad(int libraryCount);", "public abstract boolean isLoadCompleted();", "public void completeProject(ProjectWasCompleted evt) throws InvalidProjectCommandException{\n validator.validate(this);\n this.closedDate = Optional.of(new Date());\n state = ProjectState.COMPLETED;\n UpdateProperties(evt.getProperties());\n ArrayList<Event> events = new ArrayList<Event>();\n events.add(new ProjectWasCompleted(this, evt.getProperties()));\n }", "public void loadIntoNW() throws LoadException {\n\t\tloadProgress = new LoadProgress2(targetModel.getFileSet().getRoot(), null);\n\t\trun();\n\t\tif (getException() != null) {\n\t\t\tthrow getException();\n\t\t}\n\t}", "public void startLoading() {\n projects.clear();\n processContainer.setVisibility(View.VISIBLE);\n progressSpinner.setVisibility(View.VISIBLE);\n progressText.setVisibility(View.VISIBLE);\n progressText.setText(\"Getting Items...\"); // Text updated using SetProgress()\n listView.setVisibility(View.GONE);\n }", "public void run() {\n \t\t\t\t\tCaesarJContentOutlinePage.updateAll(projectProperties);\n \t\t\t\t\tCaesarHierarchyView.updateAll(projectProperties);\n \t\t\t\t}", "private void loadRecords() {\r\n\t\tpanContent.updateContent();\r\n\t}", "public void complete() {\n\t}", "public void load();", "public void load();", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "public void populate(IProject project) throws InvocationTargetException;", "public CreateProjectPanel() {\n isFinished = true;\n }", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "protected void run() {\n\t\ttry {\n\t\t\tFileSet fileSet = targetModel.getFileSet();\n\t\t\tsetPhaseLength(phases.length);\n\t\t\tsetPhase(0);\n\t\t\tprintln(\"loading \" + fileSet.getCdt() + \" ... \");\n\t\t\ttry {\n\t\t\t\tparser.setParseQuotedStrings(fileSet.getParseQuotedStrings());\n\t\t\t\tparser.setResource(fileSet.getCdt());\n\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\n\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\tsetPhase(1);\n\t\t\t\tparseCDT(tempTable);\n\t\t\t} catch (LoadException e) {\n\t\t\t\tthrow e;\n\t\t\t} catch (Exception e) {\n\t\t\t\t// this should never happen!\n\t\t\t\tLogBuffer.println(\"TVModel.ResourceLoader.run() : while parsing cdt got error \" + e.getMessage());\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new LoadException(\"Error Parsing CDT: \" + e, LoadException.CDTPARSE);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\n\t\t\tsetPhase(2);\n\t\t\tif (targetModel.getArrayHeaderInfo().getIndex(\"AID\") != -1) {\n\t\t\t\tprintln(\"parsing atr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getAtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tsetPhase(3);\n\t\t\t\t\tparseATR(tempTable);\n\t\t\t\t\ttargetModel.hashAIDs();\n\t\t\t\t\ttargetModel.hashATRs();\n\t\t\t\t\ttargetModel.aidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tprintln(\"error parsing ATR: \" + e.getMessage());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"ignoring array tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.aidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.aidFound(false);\n\t\t\t}\n\t\t\t\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(4);\n\t\t\tif (targetModel.getGeneHeaderInfo().getIndex(\"GID\") != -1) {\n\t\t\t\tprintln(\"parsing gtr\");\n\t\t\t\ttry {\n\t\t\t\t\tparser.setResource(fileSet.getGtr());\n\t\t\t\t\tparser.setProgressTrackable(this);\n\t\t\t\t\tRectData tempTable = parser.loadIntoTable();\n\t\t\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\t\t\tsetPhase(5);\n\t\t\t\t\tparseGTR(tempTable);\n\t\t\t\t\ttargetModel.hashGIDs();\n\t\t\t\t\ttargetModel.hashGTRs();\n\t\t\t\t\ttargetModel.gidFound(true);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tprintln(\"error parsing GTR: \" + e.getMessage());\n\t\t\t\t\tprintln(\"ignoring gene tree.\");\n\t\t\t\t\tsetHadProblem(true);\n\t\t\t\t\ttargetModel.gidFound(false);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\ttargetModel.gidFound(false);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(6);\n\n\t\t\ttry {\n\t\t\t\tprintln(\"parsing jtv config file\");\n\t\t\t\tString xmlFile = targetModel.getFileSet().getJtv();\n\t\t\t\t\n\t\t\t\tXmlConfig documentConfig;\n\t\t\t\tif (xmlFile.startsWith(\"http:\")) {\n\t\t\t\t\tdocumentConfig = new XmlConfig(new URL(xmlFile), \"DocumentConfig\");\n\t\t\t\t} else {\n\t\t\t\t\tdocumentConfig = new XmlConfig(xmlFile, \"DocumentConfig\");\n\t\t\t\t}\n\t\t\t\ttargetModel.setDocumentConfig(documentConfig);\n\t\t\t} catch (Exception e) {\n\t\t\t\ttargetModel.setDocumentConfig(null);\n\t\t\t\tprintln(\"Got exception \" + e);\n\t\t\t\tsetHadProblem(true);\n\t\t\t}\n\t\t\tif (loadProgress.getCanceled()) return;\n\t\t\tsetPhase(7);\n\t\t\tif (getException() == null) {\n\t\t\t\t/*\t\n\t\t\t\tif (!fileLoader.getCompleted()) {\n\t\t\t\t\tthrow new LoadException(\"Parse not Completed\", LoadException.INTPARSE);\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"f had no exceptoin set\");\n\t\t\t\t*/\n\t\t\t} else {\n\t\t\t\tthrow getException();\n\t\t\t}\n\t\t\ttargetModel.setLoaded(true);\n\t\t\t//\tActionEvent(this, 0, \"none\",0);\n\t\t} catch (java.lang.OutOfMemoryError ex) {\n\t\t\t\t\t\t\tJPanel temp = new JPanel();\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"Out of memory, allocate more RAM\"));\n\t\t\t\t\t\t\ttemp. add(new JLabel(\"see Chapter 3 of Help->Documentation... for Out of Memory\"));\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(parent, temp);\n\t\t} catch (LoadException e) {\n\t\t\tsetException(e);\n\t\t\tprintln(\"error parsing File: \" + e.getMessage());\n\t\t\tprintln(\"parse cannot succeed. please fix.\");\n\t\t\tsetHadProblem(true);\n\t\t}\n\t\tsetFinished(true);\n\t}", "@Override\n\t\tpublic void onCompleted() {\n\t\t}", "public void cloudLoad (int stateKey, GPGAppStateConflictHandler conflictHandler, GPGAppStateLoadResultHandler resultHandler) {\n\n\t\t// get the model\n\t\tfinal GPGAppStateModel model = GPGManager.sharedInstance().getApplicationModel().getAppState();\n\n\t\t// start the load request\n\t\tmodel.load(NSNumber.valueOf(stateKey), resultHandler, conflictHandler);\n\t}", "public void doLoadInThread() {\n selectFiles(fileChooser.getSelectedFiles(),\n fileChooser.getCurrentDirectory());\n }", "private void load() {\r\n\t\tswitch (this.stepPanel.getStep()) {\r\n\t\tcase StepPanel.STEP_HOST_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_HOST_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_STOP_GRAPH:\r\n\t\t\tloadGraph(StepPanel.STEP_STOP_GRAPH);\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_CRITICAL_PAIRS:\r\n\t\t\tloadPairs();\r\n\t\t\tbreak;\r\n\t\tcase StepPanel.STEP_FINISH:\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public void libraryLoaded();", "@Override\n\t\t\t\t\t\t\t\t\tpublic void downLoadBegin() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "public void onLoadComplete(){\n\t\tif (listener != null){\n\t\t\thandler.post(new Runnable() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tlistener.onLoadComplete();\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@SuppressWarnings(\"deprecation\")\n\tpublic void execute() throws BuildException {\n // Create a new build listener for parsing events\n Connection conn = getConnection();\n DbProgressListener listener = new DbProgressListener(conn, buildId, getProgressTargets(), dbTable);\n\n // Add the event listeners to the project\n project.addBuildListener(listener);\n\n // Add a thread to poll the database\n if (pollingEnabled) {\n polling = new DbStatusThread(conn);\n polling.setInterval(pollingInterval * 1000);\n polling.start();\n }\n }", "@Override\n\t\tprotected void onPostExecute(Void result) {\n\t\t\tToast.makeText(context, \"Capture completed!\", Toast.LENGTH_SHORT).show();\n\t\t\tloadingAlert.dismiss();\n\t\t\t((SpectroActivity)spectroFragment.getActivity()).updateLibraryFiles();\n\t\t}", "private void load() { \n\t\tmannschaft_name.setText(helper.getTeamName(mannschaftId));\n\t\tmannschaft_kuerzel.setText(helper.getTeamKuerzel(mannschaftId));\t\t \n\t}", "void minecraftChunkLoaded() {\n\t\tthis.lastLoadingTime = System.currentTimeMillis();\n\t}", "@Override\n public void run() {\n ArticleHeaders.loadData(getApplicationContext());\n CustomerHeaders.loadData(getApplicationContext());\n OrderReasons.loadData(getApplicationContext());\n }", "public void loadFromDatabase(){\r\n /**\r\n * Open the file streams to the three files\r\n * Recover the state of data structures\r\n * Close the file streams\r\n */\r\n\r\n try{\r\n //Recover the state of unfinished set from unfinished.dat\r\n unfinishedFileInputStream = new FileInputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetInputStream = new ObjectInputStream(unfinishedFileInputStream);\r\n unfinished = (Set<Task>)unfinishedSetInputStream.readObject();\r\n unfinishedSetInputStream.close();\r\n unfinishedFileInputStream.close();\r\n\r\n //Recover the state of finished list from finished.dat\r\n finishedFileInputStream = new FileInputStream(FINISHED_FILE_PATH);\r\n finishedListInputStream = new ObjectInputStream(finishedFileInputStream);\r\n finished = (ArrayList<Task>)finishedListInputStream.readObject();\r\n finishedListInputStream.close();\r\n finishedFileInputStream.close();\r\n\r\n //Recover the state of activities list from activities.dat\r\n activitiesFileInputStream = new FileInputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListInputStream = new ObjectInputStream(activitiesFileInputStream);\r\n activities = (ArrayList<Activity>)activitiesListInputStream.readObject();\r\n activitiesListInputStream.close();\r\n activitiesFileInputStream.close();\r\n\r\n generateWeeklySchedule();\r\n }\r\n catch(Exception e){\r\n System.out.println(e.getMessage());\r\n }\r\n }", "@Override\n public void onComplete(String typeName, ClassLoader classLoader, JavaModule module, boolean loaded) {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tGPSLogData saved = GPSLogData.loadFile(mCarData.sel_vehicleid);\n\t\t\t\tif (saved != null) {\n\t\t\t\t\tLog.v(TAG, \"GPSLogData loaded for \" + mCarData.sel_vehicleid);\n\t\t\t\t\tlogData = saved;\n\t\t\t\t\tdataSetChanged();\n\t\t\t\t}\n\t\t\t\thideProgressOverlay();\n\t\t\t}", "@Override\r\n\tpublic boolean performFinish() {\n\t\tfinal String projectName = projectPage.getProjectName();\r\n\r\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\r\n\t\t\tpublic void run(IProgressMonitor monitor)\r\n\t\t\t\t\tthrows InvocationTargetException {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// create the project\r\n\t\t\t\t\tdoFinish(projectName, monitor);\r\n\t\t\t\t} catch (CoreException e) {\r\n\t\t\t\t\tthrow new InvocationTargetException(e);\r\n\t\t\t\t} finally {\r\n\t\t\t\t\tmonitor.done();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t\ttry {\r\n\t\t\tgetContainer().run(true, false, op);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\treturn false;\r\n\t\t} catch (InvocationTargetException e) {\r\n\t\t\tThrowable realException = e.getTargetException();\r\n\t\t\tMessageDialog.openError(getShell(), \"工程创建错误\", realException\r\n\t\t\t\t\t.getMessage());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean performFinish() {\n\t\tfinal String containerName = page.getContainerName();\n\t\tfinal String fileName = \"aaaaaa.txt\";\n\t\t\n\t\tProjectUtils projectUtils = new ProjectUtils();\n\t\tIProject proj = projectUtils.getProject(selection);\n\n\t\t\n\t\tProjectRelationsDefsDao projectRelationsDefsDao = new ProjectRelationsDefsDao(proj.getLocation().toString()+\"/.vespene/vespenedb\");\n\t\tprojectRelationsDefsDao.deleteRelationsDefs( page.getSelectTableName() );\n\t\tprojectRelationsDefsDao.persistRelationsDefs( page.getCustomRelations() );\n\t\t\n\t\tProjectTemplatesDao projectTemplatesDao = new ProjectTemplatesDao(proj.getLocation().toString()+\"/.vespene/vespenedb\");\n\t\tprojectTemplatesDao.updateTemplatesProject( page.getTemplatesOutputPathList() );\n\t\t\n\t\t\n\t\tfinal String selectedTableName = page.getSelectTableName().toUpperCase();\n\t\tfinal List<Template> templateList = projectTemplatesDao.loadTemplatesProject();\n\t\tfinal PojoConfig pojoConfig = new PojoConfig();\n\t\tIRunnableWithProgress op = new IRunnableWithProgress() {\n\t\t\tpublic void run(IProgressMonitor monitor) throws InvocationTargetException {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tdoFinish(pojoConfig, containerName, selectedTableName, templateList , monitor);\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\tthrow new InvocationTargetException(e);\n\t\t\t\t} finally {\n\t\t\t\t\tmonitor.done();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\ttry {\n\t\t\tgetContainer().run(true, false, op);\n\t\t} catch (InterruptedException e) {\n\t\t\treturn false;\n\t\t} catch (InvocationTargetException e) {\n\t\t\tThrowable realException = e.getTargetException();\n\t\t\tMessageDialog.openError(getShell(), \"Error\", realException.getMessage());\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "@Override\n public void runTask() {\n PortugueseDistrictImportAuxiliaryServices aux = PortugueseDistrictImportAuxiliaryServices.getInstance();\n aux.executeTask(this);\n }", "@Override\n protected void onStartLoading() {\n Utils.postToMainLoop(new Runnable() {\n @Override\n public void run() {\n if (mResult != null) // If we currently have a result available, deliver it immediately.\n deliverResult(mResult);\n\n if (isReload() || mResult == null)\n forceLoad();\n }\n });\n }", "public void projectOpened() {\n initToolWindow();\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public void doProjectOpen() {\r\n\t\tthis.observerList.notifyObservers(GNotification.PROJECT_OPEN, null);\r\n\t}", "private void initializeProject() {\n newProject.setInputHandler(getProject().getInputHandler());\n \n Iterator iter = getBuildListeners();\n while (iter.hasNext()) {\n newProject.addBuildListener((BuildListener) iter.next());\n }\n \n if (output != null) {\n File outfile = null;\n if (dir != null) {\n outfile = FILE_UTILS.resolveFile(dir, output);\n } else {\n outfile = getProject().resolveFile(output);\n }\n try {\n out = new PrintStream(new FileOutputStream(outfile));\n DefaultLogger logger = new DefaultLogger();\n logger.setMessageOutputLevel(Project.MSG_INFO);\n logger.setOutputPrintStream(out);\n logger.setErrorPrintStream(out);\n newProject.addBuildListener(logger);\n } catch (IOException ex) {\n log(\"Ant: Can't set output to \" + output);\n }\n }\n-\n- getProject().initSubProject(newProject);\n-\n // set user-defined properties\n getProject().copyUserProperties(newProject);\n \n if (!inheritAll) {\n // set Java built-in properties separately,\n // b/c we won't inherit them.\n newProject.setSystemProperties();\n \n } else {\n // set all properties from calling project\n addAlmostAll(getProject().getProperties());\n }\n \n Enumeration e = propertySets.elements();\n while (e.hasMoreElements()) {\n PropertySet ps = (PropertySet) e.nextElement();\n addAlmostAll(ps.getProperties());\n }\n }", "@Override\r\n public void tasksFinished()\r\n {\n }", "private void onFullyLoaded() {\n info(\"onFullyLoaded()\");\n cancelProgress();\n\n //Fully loaded, start detection.\n ZiapApplication.getInstance().startDetection();\n\n Intent intent = new Intent(LoadingActivity.this, MainActivity.class);\n if (getIntent().getStringExtra(\"testname\") != null)\n intent.putExtra(\"testname\", getIntent().getStringExtra(\"testname\"));\n startActivity(intent);\n finish();\n }", "private UnloadTestModelLoader() {\n registerProject(\"a\");\n registerProject(\"e\");\n registerProject(\"b\", \"e\");\n registerProject(\"c\");\n registerProject(\"d\");\n registerProject(\"f\");\n registerProject(\"p1\", \"a\", \"b\");\n registerProject(\"p2\", \"b\", \"c\");\n registerProject(\"p3\", \"b\", \"d\");\n registerProject(\"p4\", \"d\");\n }", "public void run() {\n\t\t\t\tif (_uiContainer.isDisposed()) {\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// initialize tooltip for a new folder\r\n\t\t\t\t_photoGalleryTooltip.reset(true);\r\n\r\n\t\t\t\tfinal double galleryPosition = getCachedGalleryPosition();\r\n\r\n\t\t\t\t_galleryMT20.setupItems(0, galleryPosition, _restoredSelection);\r\n\r\n\t\t\t\t_restoredSelection = null;\r\n\r\n\t\t\t\t/*\r\n\t\t\t\t * update status info\r\n\t\t\t\t */\r\n\t\t\t\tfinal long timeDiff = System.currentTimeMillis() - _workerStart;\r\n\t\t\t\tfinal String timeDiffText = NLS.bind(\r\n\t\t\t\t\t\tMessages.Pic_Dir_Status_Loaded,\r\n\t\t\t\t\t\tnew Object[] { Long.toString(timeDiff), Integer.toString(_allPhotos.length) });\r\n\r\n\t\t\t\tsetStatusMessage(timeDiffText);\r\n\t\t\t}", "private void LoadContent()\n {\n \n }", "public static void load() {\n load(false);\n }", "private void importAll() {\n\t\tfinal JFileChooser chooser = new JFileChooser(System.getProperty(\"user.home\"));\n\t\tint returnVal = chooser.showOpenDialog(null);\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\n\t\t\tFile file = chooser.getSelectedFile();\n\t\t\tdeserializeFile(file);\n\t\t\t // imported the projects for this application from a file, so update what should be persisted on close\n\t\t\tupdatePersistence();\n\t\t}\n\t}", "protected void loadAndSetProject() {\n final ApplicationMetadata meta = getSpeedmentApplicationMetadata();\n final Project project;\n \n if (meta != null) {\n project = DocumentTranscoder.load(meta.getMetadata());\n } else {\n final Map<String, Object> data = new ConcurrentHashMap<>();\n data.put(HasName.NAME, \"Project\");\n project = new ProjectImpl(data);\n }\n\n // Apply overidden item (if any) for all ConfigEntities of a given class\n withsAll.forEach(t2 -> {\n final Class<? extends Document> clazz = t2.get0();\n @SuppressWarnings(\"unchecked\")\n final Consumer<Document> consumer = (Consumer<Document>) t2.get1();\n DocumentDbUtil.traverseOver(project)\n .filter(clazz::isInstance)\n .map(Document.class::cast)\n .forEachOrdered(consumer::accept);\n });\n\n // Apply a named overidden item (if any) for all Entities of a given class\n withsNamed.forEach(t3 -> {\n final Class<? extends Document> clazz = t3.get0();\n final String name = t3.get1();\n\n @SuppressWarnings(\"unchecked\")\n final Consumer<Document> consumer = (Consumer<Document>) t3.get2();\n\n DocumentDbUtil.traverseOver(project)\n .filter(clazz::isInstance)\n .filter(HasName.class::isInstance)\n .map(HasName.class::cast)\n .filter(c -> name.equals(relativeName(c, Project.class, DATABASE_NAME)))\n .forEachOrdered(consumer::accept);\n });\n\n speedment.getProjectComponent().setProject(project);\n }" ]
[ "0.6687317", "0.6361321", "0.6301702", "0.6297967", "0.62805784", "0.62766665", "0.62481064", "0.619739", "0.6190389", "0.61541075", "0.61519533", "0.6011193", "0.5993665", "0.5925484", "0.5922448", "0.5906359", "0.58966726", "0.58874995", "0.5803968", "0.57893187", "0.5759111", "0.57477504", "0.57449096", "0.5728328", "0.57259506", "0.57248193", "0.5721771", "0.57044524", "0.57044524", "0.57044524", "0.56951284", "0.5691251", "0.56897706", "0.5685935", "0.5685003", "0.5681955", "0.5681955", "0.5679954", "0.5673408", "0.56700915", "0.5667418", "0.5650316", "0.56443286", "0.56065905", "0.5605515", "0.55947626", "0.55865663", "0.5578312", "0.5574028", "0.55643636", "0.55624163", "0.554777", "0.5545778", "0.5535226", "0.552903", "0.5527107", "0.5526583", "0.5522605", "0.5517095", "0.54903024", "0.54797", "0.5472523", "0.5472523", "0.5467635", "0.5460581", "0.5449728", "0.5444994", "0.54403144", "0.5433986", "0.54269576", "0.54244196", "0.5417555", "0.54124767", "0.54089785", "0.53852755", "0.5379463", "0.5367154", "0.5364537", "0.5361227", "0.535714", "0.53538215", "0.5353355", "0.5352655", "0.534892", "0.5341135", "0.53363794", "0.53192633", "0.53098834", "0.52989364", "0.5297481", "0.52974474", "0.5284271", "0.52838427", "0.5282403", "0.52787477", "0.5274994", "0.5274682", "0.5272067", "0.5257225", "0.5255627", "0.5254449" ]
0.0
-1
Sets the container activity to the activity passed as a parameter.
public void setContainerActivity(Activity containerActivity) { this.containerActivity = containerActivity; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setActivity(AppCompatActivity activity) {\n this.activity = activity;\n }", "@Override\n\tpublic void setActivity(Activity pAcitivity) {\n\n\t}", "public void setActivity(Activity activity) {\n if (activity != null) {\n service = (BleTrackerService) activity.getApplicationContext();\n }\n }", "public synchronized void startActivity(final Activity activity) {\r\n\t// FIXME: temp hack for Slide curtains\r\n\tif (activity.getName().equals(\"Curtains\")) {\r\n\t\ttry {\r\n\t\t\tString response = Request.Post(\"https://\" + slideHost + \"/rpc/Slide.SetPos\").bodyString(\"{\\\"pos\\\": 1}\", ContentType.APPLICATION_JSON).execute().returnContent().asString();\r\n\t\t\tSystem.out.println(\"Slide response: \" + response);\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn;\r\n\t}\r\n if (this.isActive(activity)) {\r\n throw new IllegalStateException(\"Activity already active\");\r\n }\r\n if (this.activeActivity != null) {\r\n // Another activity is currently active, so stop that one first.\r\n // TODO: Don't turn off / turn on overlapping devices, but only change channels where needed.\r\n this.stopActivity(this.activeActivity);\r\n }\r\n final PyhActivity oldValue = this.createPyhActivity(activity);\r\n this.activeActivity = activity;\r\n if (activity.getModules().getPhilipsHue() != null) {\r\n this.taskExecutor.execute(() -> this.activateHueModule(activity.getModules().getPhilipsHue()));\r\n }\r\n if (activity.getModules().getInfraRed() != null) {\r\n this.taskExecutor.execute(() -> this.activateIrModule(activity.getModules().getInfraRed()));\r\n }\r\n final PyhActivity newValue = this.createPyhActivity(activity);\r\n this.eventPublisher.publishEvent(new ActivityChangedEvent(oldValue, newValue));\r\n }", "SetupTask(KaldiActivity activity) {\n this.activityReference = new WeakReference<>(activity);\n }", "public void setActivity(Activity activity) {\n lastNeuron().setActivity(activity);\n }", "private void setTopActivity(final Activity activity) {\n if (mActivityList.contains(activity)) {\n if (!mActivityList.getFirst().equals(activity)) {\n mActivityList.remove(activity);\n mActivityList.addFirst(activity);\n }\n } else {\n mActivityList.addFirst(activity);\n }\n }", "public void setAct(Activity act) {\r\n\t\tthis.act = act;\r\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tthis.activity = activity;\n\t\tsuper.onAttach(activity);\n\t}", "@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tthis.mActivity = activity;\r\n\t}", "public void setActivityReference(@NonNull NotepadActivity activity)\n\t{\n\t\tthis.activity = activity;\n\t}", "public void setActivity(BaseActivity act)\n {\n this.activity = act;\n\n if (act == null) {\n //dismiss the dialog if there is no\n //activity associated with this task\n dismissProgressDialog();\n }\n else\n {\n //activity is being attached to the background thread.\n //Check if the task is already completed\n if (taskCompleted && getStatus().equals(AsyncTask.Status.FINISHED)\n && updateOnActivityAttach) {\n \tif (!isCancelled()) {\n\t //yes, notify about completion of task\n\t notifyTaskCompletion(null);\n \t}\n \telse {\n \t\tnotifyTaskCancelled(null);\n \t}\n }\n else\n {\n //no, display the progress dialog indicating the\n //background task is still running.\n showProgressDialog();\n }\n }\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tparentActivity=activity;\n\t}", "public final void setTest_Activity(ugs.proxies.Test test_activity)\n\t{\n\t\tsetTest_Activity(getContext(), test_activity);\n\t}", "public Installer on(@NonNull Activity activity) {\n rootView = (ViewGroup) activity.findViewById(android.R.id.content);\n return this;\n }", "public S(Activity activity){\n\t\tthis.activity = activity;\n\t\t\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\n\t\tcontext = activity;\n\t}", "@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t\tmActivity = activity;\r\n\t\tstartAppAd = new StartAppAd(activity);\r\n\t}", "public void setSessionActivity(PendingIntent param1) {\n }", "@Override\n\tpublic void setActivity(Activity activity)\n\t{\n\t\tsuper.setActivity(activity);\n\n\t\tif (hasPropertyAndNotNull(TiC.PROPERTY_SEARCH)) {\n\t\t\tfinal TiViewProxy search = (TiViewProxy) getProperty(TiC.PROPERTY_SEARCH);\n\t\t\tsearch.setActivity(activity);\n\t\t}\n\n\t\tfor (TableViewSectionProxy section : this.sections) {\n\t\t\tsection.setActivity(activity);\n\t\t}\n\t}", "public final void setActivity_Interview(ugs.proxies.Interview activity_interview)\n\t{\n\t\tsetActivity_Interview(getContext(), activity_interview);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tcontext = activity;\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.context = activity;\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tmContext = getActivity();\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n mContext = getActivity();\n }", "@Override\n public void setLatestActivity(IActivity activity) {\n }", "public void setActivity(Activity addnew) {\n\tthis.addActivity(addnew);\n\t\t\n\t}", "@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n act = (BaseActivity) activity;\r\n\r\n }", "public void setContext(FragmentActivity activity) {\n mInflater = LayoutInflater.from(activity);\n\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n if (callbackManager != null) callbackManager.setActivity(activity);\n }", "MGLifecycleActivityConfig(AppCompatActivity activity) {\n this.activity = activity;\n }", "void intentPass(Activity activity, Class classname) {\n Intent i = new Intent(activity, classname);\n i.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(i);\n enterAnimation();\n }", "Builder(Activity activity) {\n this.context = activity;\n }", "@Override\n\tpublic void initContext(Activity act) {\n\t\tthis._activity = act;\n\t}", "public void createActivity(Activity activity) {\n\t\t\n\t}", "public final void setActivity_Interview(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Interview activity_interview)\n\t{\n\t\tif (activity_interview == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Activity_Interview.toString(), activity_interview.getMendixObject().getId());\n\t}", "public void changeWindowTo(Class activity){\n Intent guestActivity = new Intent(this,activity);\n startActivity(guestActivity);\n }", "protected abstract Activity getActivity(final T androidComponent);", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tif (getActivity() == null)\n\t\t\tcontext = activity;\n\t\telse\n\t\t\tcontext = getActivity();\n\n\t}", "private static void redirectActivity(Activity activity, Class aClass) {\n Intent intent = new Intent(activity, aClass);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n activity.startActivity(intent);\n }", "public LigTvAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "@Override\n\tpublic Activity updateActivity(Activity activity) {\n\t\treturn activity;\n\t\t\n\t}", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n mContext = activity;\n mActionBar = ((AppCompatActivity) activity).getSupportActionBar();\n }", "public void init(Activity activity) {\n setActivity(activity);\n initCispaConnection();\n }", "public final void setTest_Activity(com.mendix.systemwideinterfaces.core.IContext context, ugs.proxies.Test test_activity)\n\t{\n\t\tif (test_activity == null)\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), null);\n\t\telse\n\t\t\tgetMendixObject().setValue(context, MemberNames.Test_Activity.toString(), test_activity.getMendixObject().getId());\n\t}", "public void setActivityRoot(ActivityRoot activityRoot) {\r\n this.activityRoot = activityRoot;\r\n }", "@Override\r\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\r\n\t}", "void setActivityStore(ActivityStore activityStore) {\n this.activityStore = activityStore;\n }", "public synchronized void setCurrentActivity(String currentActivity) {\n this.currentActivity = currentActivity;\n currentProgress.set(0);\n }", "public void startActivity(Activity activity, final String activityName, final Bundle extras)\n {\n EngagementActivityManager.getInstance().setCurrentActivity(activity, activityName);\n sendEngagementCommand(new Runnable()\n {\n @Override\n public void run()\n {\n try\n {\n mEngagementService.startActivity(activityName, extras);\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n });\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t}", "public static void start(Activity act, Class<?> class1) {\n\t\tact.startActivity(new Intent(act.getApplicationContext(), class1));\n\t}", "@Override\r\n public void onAttach(Activity activity) {\n super.onAttach(activity);\r\n\r\n }", "protected abstract ActivityComponent setupComponent();", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n }", "public static void startActivity(Context context, Class activity) {\n Intent thisIntent = new Intent(context, activity);\n context.startActivity(thisIntent);\n }", "Activity activity();", "public CanliSkorAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public SabahAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n this.vsMain = (VsMainActivity) activity;\n }", "public void setCharitableActivity(CharitableActivity charitableActivity) {\r\n this.charitableActivity = charitableActivity;\r\n }", "private void openActivity() {\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n\n //Log.d(\"DEBUGAPP\", TAG + \" onAttach\");\n\n if (activity instanceof MainActivity) {\n mainActivity = (MainActivity) activity;\n }\n }", "public GalleryChangedPresenter(Activity activity) {\n mContext = activity;\n this.mActivity = activity;\n }", "public SplitScreenEffect(Activity activity, ViewGroup container){\n this.activity = activity;\n this.container = container;\n this.interpolator = new AccelerateDecelerateInterpolator();\n }", "private void setupChosenActivity() {\n String activity = Utils.capitalise(Sport.values()[0].toString());\n Intent intent = getIntent();\n\n if (intent.hasExtra(ACTIVITY_TO_RECORD)) {\n activity = Utils.capitalise(intent.getStringExtra(ACTIVITY_TO_RECORD));\n }\n\n activityView.setText(activity);\n }", "private void initiateActivity() {\r\n\t\tif (application == null) {\r\n\t\t\tthis.application = SmartApplication.REF_SMART_APPLICATION;\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tif (application.attachedCrashHandler)\r\n\t\t\t\tCrashReportHandler.attach(this);\r\n\t\t} catch (Throwable e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\tfinish();\r\n\t\t}\r\n\r\n\t\tif (setLayoutView() != null) {\r\n\t\t\tsetContentView(setLayoutView());\r\n\t\t} else {\r\n\t\t\tsetContentView(setLayoutId());\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onAttach(Activity activity)\n {\n super.onAttach(activity);\n mActivity = (PlayerActivity) activity;\n\n // Create and execute the background task.\n mTask = new PlayerBackgroundTask();\n mTask.execute();\n }", "public void from(IXActivity from);", "public void setActivityType(ActivityType activity, UsertypeType type) {\n\t\tactivity.setUsertype(type);\n\t}", "public void switchActivity(Class<?> destinationActivity) {\n startActivity(new Intent(this, destinationActivity));\n }", "public SporxAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public final void setActivityName(java.lang.String activityname)\n\t{\n\t\tsetActivityName(getContext(), activityname);\n\t}", "public FotomacAsyncTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "public JavaScriptInterface(TActivity activity) {\n mActivity = activity;\n }", "private void mystartActivity(Class c){\n Intent intent = new Intent(this,c);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(intent);\n }", "protected void activityStart(String act){\r\n Class c = Constants.getClass(act);\r\n if(c!=null){\r\n startActivity(new Intent(Main.this, c ));\r\n }\r\n }", "public void push(Object activity);", "public void setContainer(RuntimeContainer container)\n {\n this.container = container;\n }", "@Override\n public void needReloain(Activity activity) {\n }", "public void activityCreated(Context ctx){\n //set Activity context - in this case there is only MainActivity\n mActivityContext = ctx;\n }", "@Override\n\tpublic void onAttach(Activity activity) {\n\t\tsuper.onAttach(activity);\n\t\tmParentActivty = (AccountActivity) activity;\n\t}", "public void m10301a(ActivityDTO activityDTO) {\n if (activityDTO != null) {\n this.f8976d = activityDTO;\n }\n this.f8974b.getAsyncTaskQueue().m13740a(new C19901(this), new String[0]);\n }", "public void setActivity(InCallActivity inCallActivity) {\n if (inCallActivity == null) {\n throw new IllegalArgumentException(\"registerActivity cannot be called with null\");\n }\n if (mInCallActivity != null && mInCallActivity != inCallActivity) {\n Log.w(this, \"Setting a second activity before destroying the first.\");\n }\n updateActivity(inCallActivity);\n }", "void changeWindowTo(Class activity,TypesManager.obsType _type){\n Intent guestActivity = new Intent(this,activity);\n guestActivity.putExtra(\"obsType\",_type.getValue());\n startActivity(guestActivity);\n }", "public interface ActivityAware<E> {\r\n E getContextActivity();\r\n}", "void inject(MainActivity activity);", "protected void changeActivity() {\n\t\tIntent intent = new Intent();\r\n\t\tintent.setClass(this,MainActivity.class);\r\n\t\t//intent.putExtra(\"padapter\", MainActivity.selectedLevel);\r\n\t\t\r\n\t\tstartActivity(intent);\r\n\t}", "public void gotoActivity(Context context, Class<?> cla, Bundle bundle) {\n Intent intent = new Intent(context, cla);\n intent.putExtras(bundle);\n startActivity(intent);\n overridePendingTransition(R.anim.slide_in_left, R.anim.push_left_out);\n }", "public void setManager(ActivityManager manager) {\n this.manager = manager;\n }", "void startNewActivity(Intent intent);", "public HaberTurkAsynTask(Activity activity) {\n this.activity = activity;\n context = activity;\n }", "private void initInjectedView(Activity activity) {\n\t\tinitInjectedView(activity,activity.getWindow().getDecorView());\n\t}", "public SongGridAdapter(Activity activity) {\n this.activity = activity;\n }", "public SplitScreenEffect(Activity activity, ViewGroup container, int animationDuration){\n this.activity = activity;\n this.container = container;\n this.animationDuration = animationDuration;\n this.interpolator = new AccelerateDecelerateInterpolator();\n }", "@Override\n public void onAttach(Activity activity) {\n super.onAttach(activity);\n context=activity;\n userPreferences = new UserPreferences(context);\n jobManager = new JobManager(context);\n }", "public void switchActivity(Class<?> destinationActivity, Bundle bundle) {\n Intent intent = new Intent(this, destinationActivity);\n if (bundle != null)\n intent.putExtras(bundle);\n startActivity(intent);\n }" ]
[ "0.7257742", "0.6995419", "0.69088614", "0.64524114", "0.62611556", "0.62273026", "0.62111926", "0.619809", "0.61946374", "0.61434835", "0.6112844", "0.60303", "0.6016124", "0.6002177", "0.59999347", "0.5982458", "0.5951747", "0.5947598", "0.593311", "0.5910106", "0.59077054", "0.5902198", "0.5899084", "0.58952045", "0.5863017", "0.5825892", "0.58201045", "0.58163285", "0.5788706", "0.57824755", "0.5765135", "0.57530797", "0.5736035", "0.5686171", "0.568408", "0.56656677", "0.5661925", "0.5652716", "0.5630397", "0.557674", "0.5571415", "0.5559799", "0.55551565", "0.55483985", "0.55294067", "0.55284506", "0.55097014", "0.545744", "0.5450747", "0.5427718", "0.5424773", "0.5424773", "0.5424773", "0.542032", "0.5412548", "0.5407295", "0.54063123", "0.54063123", "0.53962654", "0.537655", "0.5373736", "0.53653574", "0.53542936", "0.5350059", "0.5348025", "0.5346096", "0.5344661", "0.53338194", "0.53025043", "0.5290693", "0.5283811", "0.5283297", "0.5279454", "0.5266067", "0.5259557", "0.5255771", "0.5252714", "0.52412015", "0.522264", "0.52125907", "0.51904505", "0.5180983", "0.51737684", "0.51632935", "0.51592904", "0.51582867", "0.5154592", "0.5147023", "0.5146347", "0.51315063", "0.51300883", "0.51199496", "0.51181716", "0.5117392", "0.5115325", "0.51050925", "0.51014465", "0.5090481", "0.507658", "0.5062526" ]
0.82270736
0
This method is used to set the view for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View v = inflater.inflate(R.layout.fragment_share_flickr, container, false); WebView myWebView = v.findViewById(R.id.flickrWebView); myWebView.setWebViewClient(new WebViewClient()); myWebView.loadUrl(flickrUrl); return v; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void setView(View view) {\n\n\t}", "public void setView(View view);", "void setView(View v);", "public void setView(View view) {\n\t\tthis.view = view;\n\t}", "@Override\n\tprotected void setUpView() {\n\t\tsuper.setUpView();\n\t\tsetChatFragmentListener(this);\n\t}", "@Override protected void initViews() {\n\t\tsetFragments(F_PopularFragment.newInstance(T_HomeActivity.this), F_TimelineFragment.newInstance(T_HomeActivity.this));\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_setting, container, false);\n initView();\n initFloatWindow();\n return mView;\n }", "public void setupView() {\n PagerAdapter mPagerAdapter = new ScreenSlidePagerAdapter(getSupportFragmentManager());\n viewPager.setAdapter(mPagerAdapter);\n viewPager.setCurrentItem(0);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n Log.v(\"MeInfoEdit\",\"onCreateView\");\n if(view==null){\n view =inflater.inflate(R.layout.fragment_me_info_edit, container, false);\n }\n ((MainActivity)getActivity()).unBindDrawer();\n ViewGroup.LayoutParams params = new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT);\n swipLayout=new SwipLayout(getContext());\n swipLayout.setLayoutParams(params);\n swipLayout.setBackgroundColor(Color.TRANSPARENT);\n swipLayout.removeAllViews();\n swipLayout.addView(view);\n if(CoreApplication.newInstance().getRoot()!=null){\n Log.v(\"MeinfoEdit\",\"rootView not null\");\n }\n swipLayout.setParentView(getTargetFragment().getView()).setFragment(MeInfoEdit.this);\n return swipLayout;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tower_parameter, container, false);\n bind = ButterKnife.bind(this,view);\n EventBus.getDefault().register(this);\n initRecycleView();\n initView();\n initRotationAngle();\n initHookup();\n return view;\n }", "@Override\n public void initView() {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_near_peoples, container, false);\n getActivity().setTitle(\"Share Card\");\n initUI();\n\n return view;\n }", "@Override\n\tprotected void setView() {\n\t\tsetContentView(R.layout.activity_main);\n\t}", "private void setViews() {\n\n }", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initView() {\n\t\t\r\n\t}", "@Override\n public void initView() {\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_wheretogo, container, false);\n ids();\n setup();\n click();\n return view;\n }", "private void setViewFragment(Fragment fragment) {\n currentFragment = fragment;\n FragmentManager manager = getFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n transaction.replace(R.id.container, fragment);\n transaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_seller_edit_profile, container, false);\n ButterKnife.bind(this, view);\n NetworkUtils.grantPermession(getActivity());\n initViews();\n return view;\n }", "@Override\n\tpublic void setCustomView(View view) {\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.pickupboy_booking_fragment, container, false);\n mActivity = getActivity();\n userBookingFragment = this;\n initViews();\n getBundle();\n // manageHeaderView();\n setupTabIcons();\n setListener();\n setFragment(new FragementPickUpNewBooking());\n\n return view;\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initView();\n }", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initView() {\n\t\t\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n if (view == null) {\n view = inflater.inflate(R.layout.fragment_select_type, container, false);\n ButterKnife.bind(this, view);\n initView();\n }\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_guest, container, false);\n return super.onCreateView(inflater, container, savedInstanceState);\n }", "@Override\n public void prepareView() {\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_tv, container, false);\n pb = view.findViewById(R.id.pb);\n pb.setVisibility(View.VISIBLE);\n setRecyclerView(view);\n\n return view;\n }", "public void setView(CMView _view) {\n mView = _view;\n }", "protected void setView(@NonNull T view) {\n mView = view;\n }", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView() {\n\t\t\n\t}", "@Override\n\tprotected void initView()\n\t{\n\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_settings, container, false);\n\n settings = Settings.getInstance(view.getContext());\n initGui();\n initToolbarTitle();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_feedback, container, false);\n self = getActivity();\n initUI(view);\n initControlUI();\n initData();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_blank, container, false);\n\n setRecyclerView(view);\n setup(view);\n setFirebaseUser();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_share_picture_tab, container, false);\n\n imageView = v.findViewById(R.id.imageViewShare);\n editText = v.findViewById(R.id.editTextShare);\n button = v.findViewById(R.id.buttonShare);\n\n imageView.setOnClickListener(this);\n button.setOnClickListener(this);\n return v;\n }", "@Nullable\n @Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.frag_post_prayer_video, container, false);\n setCustomDesign();\n setCustomClickListeners();\n return rootView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_video, container, false);\n unbinder = ButterKnife.bind(this, view);\n initView();\n initData();\n return view;\n }", "public void setView(View v)\n {\n\tthis.view = v;\n\tif (this.view != null)\n\t{\n\t addActionListeners();\n\t}\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n mView = inflater.inflate(R.layout.fragment_tab_tracking_sovilocation, container, false);\r\n\r\n setup(mView);\r\n GetData(true,\"\");\r\n\r\n return mView;\r\n }", "@Override\n protected void initView()\n {\n ed_name = findView(R.id.ed_name);\n ed_bank = findView(R.id.ed_bank);\n ed_bank_card = findView(R.id.ed_bank_card);\n ed_bank_name = findView(R.id.ed_bank_name);\n btn_submit = findView(R.id.btn_submit);\n findView(R.id.ib_back).setOnClickListener(this);\n Toolbar toolbar = findView(R.id.toolbar);\n setSupportActionBar(toolbar);\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n\n mTextView = view.findViewById(R.id.minefragment_textView);\n mTextView.setText(mParam1 + \"_fragment\");\n\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_vicky, container, false);\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_viewer, container, false);\n initComponents(view);\n return view;\n }", "@Override\r\n\tpublic void addView(View v) {\r\n\t\tview = v;\r\n\t}", "@Override\n\tpublic void initView() {\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_submit_problem, container, false);\n ButterKnife.bind(this, view);\n this.context = getActivity();\n init();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_mine, container, false);\n mContext = getActivity();\n ButterKnife.bind(this, view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_set, container, false);\n\n unbinder = ButterKnife.bind(this, view);\n// Toolbar toolbar = (Toolbar)view.findViewById(R.id.fragment_set_toolbar);\n// ((AppCompatActivity)getActivity()).setSupportActionBar(toolbar);\n// setHasOptionsMenu(true);\n return view;\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_settings, container, false);\n\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_site_progress_add, container, false);\n setHasOptionsMenu(true);\n ButterKnife.bind(this, view);\n\n initializeUI();\n bindData();\n return view;\n }", "@Override\n\tpublic View onCreateView(LayoutInflater inflater, ViewGroup container,\n\t\t\tBundle savedInstanceState) {\n\t\tView view = (View) inflater.inflate(R.layout.fragment_setting, container, false);\n\t\tViewInjectUtil.inject(this, view);\n\t\tSharedPreferenceUtil.setPrefBoolean(getActivity(), Constants.VOICE, false);\n\t\treturn view;\n\t}", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment06_7, container, false);\n initView(view);\n setLegend();\n setXAxis();\n setYAxis();\n setData();\n return view;\n }", "private void initView() {\n\n }", "private void setContentView(View view) {\n mContentView = view;\n }", "private void setupView() {\n view.setName(advertisement.getTitle());\n view.setPrice(advertisement.getPrice());\n view.setDescription(advertisement.getDescription());\n view.setDate(advertisement.getDatePublished());\n view.setTags(advertisement.getTags());\n setCondition();\n if (advertisement.getImageUrl() != null) { //the url here is null right after upload\n view.setImageUrl(advertisement.getImageUrl());\n }\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_share_picture_tab, container, false);\n\n // view auf die UI Components referenzieren und initialisieren\n imgShare = view.findViewById(R.id.imgShare);\n edtDescription = view.findViewById(R.id.edtDescription);\n btnShareImage = view.findViewById(R.id.btnShareImage);\n\n // OnClickListener erstellen mit Verweis implents der Klasse\n imgShare.setOnClickListener(SharePictureTab.this);\n btnShareImage.setOnClickListener(SharePictureTab.this);\n\n return view;\n }", "private void setupViews(View view) {\n FragmentManager manager = getChildFragmentManager();\n sportsSpinner = (ColoredSpinnerFragment)\n manager.findFragmentById(R.id.sportsSpinnerFragment);\n\n logOut = view.findViewById(R.id.signout);\n\n logOut.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FirebaseAuth.getInstance().signOut();\n }\n });\n backgroundPicture = view.findViewById(R.id.profile_background);\n usernameText = view.findViewById(R.id.userName);\n expText = view.findViewById(R.id.exp_search);\n followersText = view.findViewById(R.id.followers);\n tierText = view.findViewById(R.id.following);\n sportsmanshipBar = view.findViewById(R.id.ratingBar);\n profilePicture = view.findViewById(R.id.profilePic);\n badgeRecycler = view.findViewById(R.id.profileBadgeRecycler);\n }", "@Override\n public View onCreateView(final LayoutInflater inflater, final ViewGroup container, final Bundle savedInstanceState) {\n View fragmentView = inflater.inflate(R.layout.fragment_my, container, false);\n TextView mTitle = (TextView) fragmentView.findViewById(R.id.title);\n TextView mDescription = (TextView) fragmentView.findViewById(R.id.description);\n TextView state = (TextView) fragmentView.findViewById(R.id.place);\n TextView scroll = (TextView) fragmentView.findViewById(R.id.scroll);\n mTitle.setText(t);\n mDescription.setText(te);\n state.setText(pl);\n scroll.setText(sc);\n fragmentView.setOnClickListener(new View.OnClickListener() {\n\n @Override\n public void onClick(final View view) {\n if (listener != null) {\n listener.onClick(view);\n }\n }\n\n });\n return fragmentView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_settings, container, false);\n initViews();\n return view;\n\n }", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState\n ) {\n // Inflate the layout for this fragment\n return inflater.inflate(R.layout.fragment_plant_selection, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n getLocationPermission();\n return inflater.inflate(R.layout.centrum_fragment, container, false);\n\n\n }", "@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {\n fragmentView = inflater.inflate(R.layout.fragment_workout_details, container, false);\n ButterKnife.bind(this, fragmentView);\n\n return fragmentView;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_home_tab, container, false);\n nw = (RecyclerView) view.findViewById(R.id.new_list);\n pw = (RecyclerView) view.findViewById(R.id.popular_list);\n ns = (RecyclerView) view.findViewById(R.id.new_writer_list);\n ps = (RecyclerView) view.findViewById(R.id.popular_writer_list);\n setHasOptionsMenu(true);\n getActivity().invalidateOptionsMenu();\n listSetup(nw);\n listSetup(pw);\n listSetup(ns);\n listSetup(ps);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_yzm, container, false);\n initView(view);\n return view;\n }", "@Override\r\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\r\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_endgame_tab, container, false);\r\n getSpinnerValues(view);\r\n sets(view);\r\n return view;\r\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState)\n {\n\n\n view = inflater.inflate(R.layout.fragment_earning_fragmant, container, false);\n ini(view);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_preference, container, false);\n context = getActivity();\n userSessionManager = new UserSessionManager(context);\n initview(view);\n setuptoolbar();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_allrisk2, container, false);\n ButterKnife.bind(this,view);\n // mStepView next registration step\n \n\n mStepView.go(currentStep, true);\n userPreferences = new UserPreferences(getContext());\n itemtypeSpinner();\n init();\n\n setViewActions();\n showDatePicker();\n\n return view;\n }", "@Override\n\tpublic void setCustomView(View view, LayoutParams layoutParams) {\n\t\t\n\t}", "@Override\n public View onCreateView(\n LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_selection, container, false);\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_invite_request, container, false);\n initialiseVariables();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n myview = inflater.inflate(R.layout.fragment_my, container, false);\n logout_tv = myview.findViewById(R.id.logout);\n\n initDatas(myview);\n return myview;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v= inflater.inflate(R.layout.fragment_dashboard, container, false);\n\n\n tv_header = (TextView) v.findViewById(R.id.tv_headersettings);\n typeface = Typeface.createFromAsset(getContext().getAssets(), \"Billabong.ttf\");\n tv_mail = (TextView) v.findViewById(R.id.tv_usermail);\n tv_name = (TextView) v.findViewById(R.id.tv_username);\n image_pp = (ImageView) v.findViewById(R.id.img_userpp);\n// btn_setname = (Button) v.findViewById(R.id.btn_setusername);\n btn_setpsw = (Button) v.findViewById(R.id.btn_setuserpsw);\n// ll_setter=(LinearLayout) v.findViewById(R.id.ll_setter);\n// btn_setname.setOnClickListener(this);\n btn_setpsw.setOnClickListener(this);\n progressBar = (ProgressBar) v.findViewById(R.id.progressBar);\n tv_header.setTypeface(typeface);\n\n\n setprofile();\n\n\n\n\n\n return v;\n\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_pm25, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_profil, container, false);\n findView();\n initView();\n initListener();\n\n AndroidNetworking.initialize(getContext());\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_home, container, false);\n\n globalContext = this.getContext();\n globalFragmentActivity = this.getActivity();\n\n setUI(view);\n SharedPreferencesService.initialize(globalContext);\n setListeners();\n initializeFragment();\n initializeAdBanner();\n showWelcomeDialogIfFirstTime();\n return view;\n }", "public void setView(final String view) \n {\n\tthis.view = view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n view = inflater.inflate(R.layout.fragment_about_us, container, false);\n initialise(view);\n //setListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_mainpage_, container, false);\n initUI(v);\n clickEvents();\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View inflate = inflater.inflate(R.layout.fragment_me, container, false);\n activity = getActivity();\n initView(inflate);\n return inflate;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_play, container, false);\n ButterKnife.bind(this, view);\n getReferences();\n setupUI();\n beginPlay();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_main, container, false);\n initUI(view);\n initData();\n setEventBus(this, true);\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n\n View view = inflater.inflate(R.layout.fragment_fragment4, container, false);\n\n frameLayout = view.findViewById(R.id.frame_fragment4);\n frameLayout.setBackgroundColor(MainActivity.FRAMELAYOUT_NUMBER);\n\n arrayList = new ArrayList<>();\n addMenu();\n\n typefaceUtil = new TypefaceUtil(getContext());\n fontNumber = MainActivity.FONT_NUMBER;\n tvTitle = view.findViewById(R.id.tv_fragment4_title);\n tvTitle.setTypeface(typefaceUtil.getTypeface(fontNumber));\n\n recyclerView = (RecyclerView) view.findViewById(R.id.rv_frg4);\n LinearLayoutManager mLinearManager = new LinearLayoutManager(getActivity());\n recyclerView.setLayoutManager(mLinearManager);\n mAdapter = new MyAdapter_Setting(getActivity(), arrayList);\n recyclerView.setAdapter(mAdapter);\n\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_tv_show, container, false);\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n getChildFragmentManager()\n .beginTransaction()\n .add(R.id.container_wifi_presenter, WifiMainFragment.newInstance(), Constant.TAG_WIFI_FRAGMENT)\n .commit();\n\n // declare var to register to broadcast receiver\n mWifiReciever = new ScanWifiBroadcastReceiver(this);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n view = inflater.inflate(R.layout.fragment_month, container, false);\n ButterKnife.bind(this,view);\n getActivity().setTitle(\"Ramadan Timing\");\n\n initViews();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.add_address_form_fragment, container, false);\n ((MainActivity) getActivity()).setTxtInActionBarTitle(getResources().getString(R.string.add_new_address));\n\n BottomBarButtonClickState buttonClickState = (BottomBarButtonClickState) Activity;\n buttonClickState.MyProfileButton();\n\n initView(v);\n\n\n return v;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_project_collection, container, false);\n ButterKnife.bind(this, view);\n fragment = this;\n initView();\n getCollectionType();\n // getCategoryList();\n initBroadcastReceiver();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_overview, container, false);\n\n initOverviewComponents(view);\n registerListeners();\n initTagListener();\n return view;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_offer, container, false);\n context = getActivity();\n initView(view);\n return view;\n }", "@Override\n\tpublic void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\tinitBar();\n\t\tmSettingManagerItem.setOnClickListener(this);\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_settings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n return inflater.inflate(R.layout.fragment_settings, container, false);\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n v = inflater.inflate(R.layout.fragment_self_defense, container, false);\n return v;\n }" ]
[ "0.739553", "0.7232601", "0.6988817", "0.69428277", "0.6936557", "0.6895232", "0.687074", "0.687074", "0.68545496", "0.683112", "0.68256176", "0.6789276", "0.6776948", "0.6774826", "0.67737204", "0.67708963", "0.6762644", "0.6762644", "0.6750703", "0.6737912", "0.67282367", "0.6716022", "0.67136663", "0.67061377", "0.6703671", "0.670044", "0.670044", "0.6693952", "0.6693252", "0.6670814", "0.6663086", "0.66587186", "0.665711", "0.6656341", "0.6656341", "0.6646152", "0.66457504", "0.66403085", "0.6627461", "0.6624701", "0.6620995", "0.66206735", "0.6619493", "0.6614541", "0.6612141", "0.6609954", "0.6602851", "0.66027004", "0.6598512", "0.6594186", "0.6589204", "0.6588315", "0.6587671", "0.6581136", "0.65808207", "0.6570274", "0.6568964", "0.6567766", "0.6559321", "0.6549011", "0.6546553", "0.6543343", "0.654195", "0.6541404", "0.6538716", "0.6532536", "0.6530894", "0.6528145", "0.6527714", "0.65275836", "0.6527574", "0.6526819", "0.6521325", "0.6520477", "0.6519806", "0.65141624", "0.65115696", "0.6511545", "0.651018", "0.6508769", "0.650495", "0.65017974", "0.6500166", "0.6496034", "0.64946085", "0.6494051", "0.6493893", "0.64911115", "0.6490773", "0.6486595", "0.6484686", "0.64837307", "0.6483595", "0.64834124", "0.6481438", "0.64801246", "0.64747965", "0.6471111", "0.6470339", "0.6470339", "0.6469433" ]
0.0
-1
Setter for the url
public void setFlickrUrl(String url) { this.flickrUrl = url; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUrl(String url);", "public void setUrl(String url);", "public void setURL(String url);", "public void setUrl(URL url)\n {\n this.url = url;\n }", "public void setUrl(String url) {\n if(url != null && !url.endsWith(\"/\")){\n url += \"/\";\n }\n this.url = url;\n }", "public void setURL(String _url) { url = _url; }", "public void setUrl(Uri url) {\n this.urlString = url.toString();\n }", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl( String url )\n {\n this.url = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t\tthis.handleConfig(\"url\", url);\n\t}", "public void setUrl(String url){\n\t\t_url=url;\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public final GetHTTP setUrl(final String url) {\n properties.put(URL_PROPERTY, url);\n return this;\n }", "@Override\n public void setUrl(String url) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Directory manager \" + directoryManager);\n }\n try {\n super.setUrl(directoryManager.replacePath(url));\n } catch (Exception e) {\n LOGGER.error(\"Exception thrown when setting URL \", e);\n throw new IllegalStateException(e);\n }\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void setUrl(String url) {\r\n this.url = url;\r\n }", "public void changeUrl() {\n url();\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "@Override\r\n public String getURL() {\n return url;\r\n }", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\r\n\t\tthis.url = url;\r\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = utf8URLencode(url);\n\t}", "public void setUrl(String url) {\n this.url = url;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n copyOnWrite();\n instance.setUrl(value);\n return this;\n }", "public native final void setUrl(String url)/*-{\n this.url = url;\n }-*/;", "public void setUrl(String url)\n {\n this.url = url;\n }", "public void setUrl (java.lang.String url) {\r\n\t\tthis.url = url;\r\n\t}", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(String Url) {\n this.Url = Url;\n }", "public void setUrl(java.lang.String url) {\n this.url = url;\n }", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public void setUrl(String url) {\n\t\tthis.url = url;\n\t}", "public final void setUrl(final String url) {\n if (StringUtils.isNotBlank(url)) {\n this.url = url.replaceAll(\" \", \"%20\");\n }\n }", "public void setHTTP_URL(String url) {\r\n\t\ttry {\r\n\t\t\tURL u = new URL(url);\r\n\t\t\tu.toURI();\r\n\t\t} catch (MalformedURLException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\tthis.settings.setProperty(\"HTTP_URL\", url);\r\n\t\tthis.saveChanges();\r\n\t}", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000002;\n url_ = value;\n }", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "private void setUrl(\n java.lang.String value) {\n value.getClass();\n bitField0_ |= 0x00000001;\n url_ = value;\n }", "public final native void setUrl(String url) /*-{\n this.setUrl(url);\n }-*/;", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "public void setURL(String url) {\n\t\tthis.url = url;\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public void setUrl(String url) {\r\n hc.setUrl(url);\r\n }", "public void setURL(java.lang.CharSequence value) {\n this.URL = value;\n }", "public String getUrl() { return url; }", "public sparqles.avro.discovery.DGETInfo.Builder setURL(java.lang.CharSequence value) {\n validate(fields()[2], value);\n this.URL = value;\n fieldSetFlags()[2] = true;\n return this; \n }", "public String getUrl(){\n \treturn url;\n }", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public void setUrl(String url){\n this.URL3 = url;\n }", "public String getURL() { return url; }", "public void setUrl(String url) {\n\t\tthis.url = url == null ? null : url.trim();\n\t}", "@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }", "@JsonProperty(\"url\")\n public void setUrl(String url) {\n this.url = url;\n }", "public String getURL() {\r\n return url;\r\n }", "public void setURL(String URL) {\n mURL = URL;\n }", "public void setServerUrl(String newUrl) {\n if(newUrl == null){\n return;\n }\n props.setProperty(\"url\", newUrl);\n saveProps();\n }", "public void setUrl(String url, OgemaHttpRequest req) {\n\t\tgetData(req).setUrl(url);\n\t}", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\r\n this.url = url == null ? null : url.trim();\r\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String url) {\n this.url = url == null ? null : url.trim();\n }", "public void setUrl(String tmp) {\n this.url = tmp;\n }", "public String url() {\n return this.url;\n }", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "public String getURL() {\n return url;\n }", "@Test\n void setUrl() {\n g.setUrl(url);\n assertEquals(url, g.getUrl(), \"URL mismatch\");\n }", "public void setServer(URL url) {\n\n\t}", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }" ]
[ "0.7862011", "0.7862011", "0.7834139", "0.77817094", "0.77564514", "0.77242255", "0.7707359", "0.7699195", "0.7427088", "0.7427088", "0.7424005", "0.74227196", "0.7416929", "0.7401524", "0.73729646", "0.73233163", "0.73233163", "0.73233163", "0.72976625", "0.729692", "0.729692", "0.72877204", "0.72722566", "0.72503316", "0.72503316", "0.7239413", "0.7239413", "0.7239413", "0.7239413", "0.7239413", "0.7239413", "0.7239413", "0.7239413", "0.7236081", "0.72273076", "0.7221834", "0.7221834", "0.719482", "0.7194099", "0.7177272", "0.7144506", "0.71434206", "0.7139839", "0.7137516", "0.7137516", "0.7137516", "0.7137516", "0.7125656", "0.7108701", "0.7095731", "0.7082714", "0.7079933", "0.704625", "0.7045686", "0.7026761", "0.70166093", "0.70166093", "0.7013962", "0.7003201", "0.69872344", "0.6968878", "0.6955698", "0.6953195", "0.6940733", "0.69145405", "0.69101256", "0.69087994", "0.68949336", "0.68892664", "0.68892664", "0.6888133", "0.6875658", "0.686385", "0.68445945", "0.6825216", "0.6825216", "0.6825216", "0.6822954", "0.6822954", "0.6822954", "0.6822954", "0.6822954", "0.6822954", "0.6822954", "0.6822954", "0.6820231", "0.6815657", "0.67800695", "0.677776", "0.6768964", "0.6762377", "0.67599076", "0.67599076", "0.67599076", "0.67599076", "0.67599076", "0.67599076", "0.67599076", "0.6755295", "0.6746223", "0.6746223" ]
0.0
-1
Setter for the new title
public void setTitle(String title) { this.title = title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void SetTitle(String newTitle){ title = newTitle; }", "public void setTitle(String title) { this.title = title; }", "public void setTitle(String newTitle)\r\n {\r\n title = newTitle;\r\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "protected void setTitle(String title) {\n this.title = title;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(Title title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title){\n this.title = title;\n }", "public void doSetTitle(String newTitle) \n {\n this.title = newTitle;\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "public void setTitle(String title) {\r\n this.title = title;\r\n }", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "@Override\r\n\t\tpublic void setTitle(String title)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n this.title = title;\n }", "public void setTitle(String title){\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\r\n\t\tthis.title = title;\r\n\t}", "public void setTitle(String title) {\n\tthis.title = title;\n}", "public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title; \n\t}", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title);", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle( String title ) {\n\t\t_title = title;\n\t}", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(final String title)\n {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "void setTitle(java.lang.String title);", "@Override\r\n\tvoid setTitle(String s) {\n\t\tsuper.title=s;\r\n\t}", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(final String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void getTitle(String title) {\n\t\t\r\n\t}", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.TITLE);\n\t}", "public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\r\n if (title != null) {\r\n this.title = title;\r\n }\r\n else{\r\n System.out.println(\"Not a valid title\");\r\n }\r\n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);", "private void setWindowTitle(String title) {\n this.title = title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "private void setTitle(String userTitle){\n title = userTitle;\n }", "public void setTitle(java.lang.String title)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(TITLE$2);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(TITLE$2);\n }\n target.setStringValue(title);\n }\n }", "public void setTitle(String t)\n {\n title = t;\n }", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}" ]
[ "0.8746112", "0.86697155", "0.8621771", "0.86126024", "0.86024845", "0.8598794", "0.8598794", "0.8593509", "0.859107", "0.8588293", "0.85796636", "0.85678804", "0.85666186", "0.85664374", "0.8561814", "0.8561814", "0.85523605", "0.85435283", "0.8540112", "0.85330874", "0.85330874", "0.85330874", "0.8529493", "0.85243875", "0.85243875", "0.85243875", "0.85243875", "0.8502147", "0.84994066", "0.84994066", "0.84994066", "0.84994066", "0.84994066", "0.84977055", "0.8494153", "0.84807533", "0.8475691", "0.8459675", "0.8445701", "0.84413844", "0.84413844", "0.84413844", "0.8438896", "0.8423948", "0.84005797", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8399766", "0.8393683", "0.83921814", "0.839006", "0.8375601", "0.8357176", "0.83546114", "0.8349438", "0.8349438", "0.8349438", "0.8335384", "0.83282405", "0.8321355", "0.8310532", "0.8280274", "0.8279539", "0.827681", "0.81867987", "0.81867987", "0.81867987", "0.81867987", "0.81867987", "0.816425", "0.81502324", "0.813019", "0.8116896", "0.8112988", "0.8105333", "0.80434555", "0.8033888" ]
0.8487794
51
Setter for the image to populate
public void setImage(Bitmap image) { this.image = image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setPic() {\n }", "public void setImage(Image img) {\r\n this.img = img;\r\n }", "public void setImage(Image itemImg) \n {\n img = itemImg;\n }", "void setImage(String image);", "public void setImg(){\n if(PicSingleton.getInstance().getPicToShape() != null){\n\n mResultImg.setImageDrawable(PicSingleton.getInstance().getPicShaped());\n }\n }", "public void setImage(Image image) {\n this.image = image;\n }", "public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public void setImage(String image){\n this.image = image;\n }", "public void setImage(String _image)\n {\n this.image = _image;\n }", "void setImage(PImage img) {\n _img = img;\n }", "private void setImage(Bitmap image) {\n }", "public void setImage(Image newImage)\n {\n if (newImage == null)\n {\n setFill(null);\n }\n else\n {\n setFill(new ImageFill(newImage));\n }\n }", "public void setImage(byte[] value) {\n this.image = ((byte[]) value);\n }", "private void setImageDynamic(){\n questionsClass.setQuestions(currentQuestionIndex);\n String movieName = questionsClass.getPhotoName();\n ImageView ReferenceToMovieImage = findViewById(R.id.Movie);\n int imageResource = getResources().getIdentifier(movieName, null, getPackageName());\n Drawable img = getResources().getDrawable(imageResource);\n ReferenceToMovieImage.setImageDrawable(img);\n }", "void setImage(IViewModel image);", "public void setProfileImg() {\n }", "public Builder setImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n image_ = value;\n onChanged();\n return this;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "void lSetImage(Image img);", "private void setPhotoAttcher() {\n\n }", "void setImageProperty() {\n\t\t imgView.setImageResource(R.drawable.weathericon);\n\t\tMatrix matrix = new Matrix();\n\t\trotate += 30;\n\t\tif (rotate == 360) {\n\t\t\trotate = 0;\n\t\t}\n\t\tfloat centerX = imgView.getWidth() / 2;\n\t\tfloat centerY = imgView.getHeight() / 2;\n\t\tmatrix.setRotate(rotate, centerX, centerY);\n\t\t//matrix.setTranslate(10, 20);\n\t\timgView.setImageMatrix(matrix); \n\t\t//ScaleType type = ScaleType.\n\t\t\n\t\t//imgView.setScaleType(scaleType);\n\t \n\t}", "public void setImage(String Image) {\n this.Image = Image;\n }", "private void setImage() throws FileNotFoundException {\n\t\timage = new Image(new FileInputStream(path));\n\t}", "private void setPic() {\n int targetW = imageIV.getWidth();\n int targetH = imageIV.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageIV.setImageBitmap(bitmap);\n }", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "public void setImage(Drawable image){\n\t\tmImage = image;\n\t}", "public void changeImage() {\r\n this.image = ColourDoor.image2;\r\n }", "public void setImg(String img) {\n this.img = img;\n }", "void setImageFromFile(File imageFile);", "public void setImage(Image image) {\n this.image = image;\n width = image.getWidth();\n height = image.getHeight();\n }", "void setImage(BufferedImage i);", "public void setImage(String file){ \n try {\n image = ImageIO.read(new File(file));\n } catch (IOException ex) {\n Logger.getLogger(GridSquarePanel.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n\t\t/* Associate the Bitmap to the ImageView */\n mImageView.setImageBitmap(bitmap);\n mTextView.setText(mCurrentPhotoPath);\n\n // SendImage(mCurrentPhotoPath);\n\n // AsyncCallWS task = new AsyncCallWS();\n // Call execute\n // task.execute();\n }", "private void setPic() {\n int targetW = img_clip.getWidth();\n int targetH = img_clip.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n img_clip.setImageBitmap(bitmap);\n }", "private void setPic() {\n int targetW = imageView.getWidth();\n int targetH = imageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n imageView.setImageBitmap(bitmap);\n imageView.invalidate();\n }", "public void setImage(String tmp) {\n this.image = tmp;\n }", "private void setPic() {\n int targetW = mainImageView.getWidth();\n int targetH = mainImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n// bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mainImageView.setImageBitmap(bitmap);\n\n// bmOptions.inBitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n// mainImageView.setImageBitmap(bmOptions.inBitmap);\n }", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "public void setImage(String image) {\n\t\t this.image = image;\n\t}", "void setImage(Bitmap bitmap);", "public void setImage (Product product) {\n\t\t//TODO beh�ver hj�lp. hur s�tter jag mha referens till objektet bilden?\n\t\tpictureLbl.setText(\"\");\n\t\t//picLbl.setIcon(product.getImageName());\n\t\tpictureLbl.repaint();\n\t}", "void setImagePath(String path);", "private void setPic() {\n\t\tint targetW = Constant.sRealWidth;\n\t\tint targetH = Constant.sRealHeight;\n\n\t\t/* Get the size of the image */\n\t\tBitmapFactory.Options bmOptions = new BitmapFactory.Options();\n\t\tbmOptions.inJustDecodeBounds = true;\n\t\tBitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\tint photoW = bmOptions.outWidth;\n\t\tint photoH = bmOptions.outHeight;\n\t\t\n\t\t/* Figure out which way needs to be reduced less */\n\t\tint scaleFactor = 1;\n\t\tif ((targetW > 0) || (targetH > 0)) {\n\t\t\tscaleFactor = Math.min(photoW/targetW, photoH/targetH);\t\n\t\t}\n\n\t\t/* Set bitmap options to scale the image decode target */\n\t\tbmOptions.inJustDecodeBounds = false;\n\t\tbmOptions.inSampleSize = scaleFactor;\n\t\tbmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n\t\tBitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\t\t\n\t\tint rotate = ViewUtils.handleRotateBitmap(mCurrentPhotoPath);\n\t\tif (rotate != 0) {\n\t\t\tbitmap = ViewUtils.rotaingBitmap(\n\t\t\t\t\trotate, bitmap);\n\t\t}\n\t\t/* Associate the Bitmap to the ImageView */\n\t\tmPictureView.setImageBitmap(bitmap);\n\t}", "@Override\n\tpublic void init() {\n\t\tthis.image = Helper.getImageFromAssets(AssetConstants.IMG_ROAD_NORMAL);\n\t}", "void setImage(Layer layer, Image image);", "void setImageResource(String imageResource) throws IOException;", "private void setPic() {\n int targetW = mImageView.getWidth();\n int targetH = mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW / targetW, photoH / targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n// Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void setImage(byte[] image) {\n this.image = image;\n }", "public void setImage(byte[] image) {\n this.image = image;\n }", "private void setImage() {\r\n\t\ttry{\r\n\r\n\t\t\twinMessage = ImageIO.read(new File(\"obstacles/win.gif\"));\r\n\t\t\tcoin = ImageIO.read(new File(\"obstacles/Coin.gif\"));\r\n\t\t\toverMessage = ImageIO.read(new File(\"obstacles/over.gif\"));\r\n\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tSystem.err.println(\"Image file not found\");\r\n\t\t}\r\n\r\n\t}", "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "private void setImage() {\n BitmapFactory.Options options = new BitmapFactory.Options();\n Bitmap originalBm = BitmapFactory.decodeFile(tempFile.getAbsolutePath(), options);\n // Log.d(TAG, \"setImage : \" + tempFile.getAbsolutePath());\n\n myImage.setImageBitmap(originalBm);\n\n /**\n * tempFile 사용 후 null 처리를 해줘야 합니다.\n * (resultCode != RESULT_OK) 일 때 tempFile 을 삭제하기 때문에\n * 기존에 데이터가 남아 있게 되면 원치 않은 삭제가 이뤄집니다.\n */\n System.out.println(\"setImage : \" + tempFile.getAbsolutePath());\n fileSource = tempFile.getAbsolutePath();\n myImageSource = fileSource;\n check++;\n tempFile = null;\n\n }", "public void setImage(Context ctx, String image)\n {\n }", "public void setImage(String path) {\n\t\tthis.path = path;\n\t\tgetImage().set(new Image(path));\n\t}", "@Generated\n @Selector(\"setImage:\")\n public native void setImage(@Nullable UIImage value);", "private void setPic() {\n int targetW =20;// mImageView.getWidth();\n int targetH =20;// mImageView.getHeight();\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;//设置仅加载位图边界信息(相当于位图的信息,但没有加载位图)\n\n //返回为NULL,即不会返回bitmap,但可以返回bitmap的横像素和纵像素还有图片类型\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n mImageView.setImageBitmap(bitmap);\n }", "public void setImage(String imageName)\n {\n if (imageName == null)\n {\n setImage((Image) null);\n }\n else\n {\n setImage(new Image(imageName));\n }\n }", "private void setStudentImage() {\n ImagePicker.create(this)\n .single()\n .origin(images)\n .imageTitle(\"Tap to select student profile\") // image selection title\n .start(REQUEST_CODE_PICKER); // start image picker activity with request code\n }", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "void setImageFromURL(String imageURL);", "public void setImage(String ref){\n\t ImageIcon ii = new ImageIcon(this.getClass().getResource(ref));\n\t image = ii.getImage();\n\t}", "public abstract void setImageFormat(String format);", "public void setImage(BufferedImage i) {\n // Paint image object\n paint = true;\n image = i;\n this.repaint();\n }", "private void setPic()\n {\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n int scaleFactor = Math.min(photoW/384, photoH/512);\n\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n\n Bitmap bitmap = BitmapFactory.decodeFile(currentPhotoPath, bmOptions);\n imageCapture.setImageBitmap(bitmap);\n }", "public void setImage(String userId){\n\t\tImageIcon icon = new ImageIcon(\"image/\" + userId + \".png\");\n\t\ticon.setImage(icon.getImage().getScaledInstance(icon.getIconWidth(),\n\t\ticon.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tplayerImage = icon.getImage();\n\t\tpaint(this.getGraphics());\n\t}", "public void setImageName(String name) {\n imageToInsert = name;\n}", "void setImage(BufferedImage valueImage, BufferedImage BackImage);", "public void setImage(String image) {\n\t\tif(image!=null)\n\t\t\tthis.image = image;\n\t}", "private void setPic() {\n int targetW =200;\n int targetH = 300;\n\n\n\t\t/* Get the size of the image */\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n\t\t/* Figure out which way needs to be reduced less */\n int scaleFactor = 1;\n if ((targetW > 0) || (targetH > 0)) {\n scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n }\n\n\t\t/* Set bitmap options to scale the image decode target */\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n\t\t/* Decode the JPEG file into a Bitmap */\n bitmap1 = BitmapFactory.decodeFile(mCurrentPhotoPath, bmOptions);\n\n Log.e(\"bitmap\", \"\" + bitmap1);\n mAdapter = new MyAdapter(Goonlineactivity2.this,TITLES,ICONS,NAME,EMAIL,PROFILE); // Creating the Adapter of MyAdapter class(which we are going to see in a bit)\n // And passing the titles,icons,header view name, header view email,\n // and header view profile picture\n\n mRecyclerView.setAdapter(mAdapter);\n //profile11.setImageBitmap(bitmap1);\n\n \t\t/* Associate the Bitmap to the ImageView */\n\n }", "void setImageFromSpec(ImageProvider spec);", "public void setImage(BufferedImage image) {\n\t\tdisplayImage = image;\n\t\tinitBbox();\n\t}", "public void testGetSetImageImage() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE\n\t\ttestNormal.setImage(testImage);\n\t\tassertEquals(testNormal.getImage(), testImage);\n\t}", "@Override\r\n\tpublic void init() {\n\t\timg = new ImageClass();\r\n\t\timg.Init(imgPath);\r\n\t}", "private void setImageOnGUI() {\n\n // Capture position and set to the ImageView\n if (AppConstants.fullScreenBitmap != null) {\n fullScreenSnap.setImageBitmap(AppConstants.fullScreenBitmap);\n }\n\n }", "public void setIcon(Image i) {icon = i;}", "public void set(RenderedImage im) {\n this.im = im;\n ic.set(im);\n }", "public void changeImage(){\n if(getImage()==storeItemImg) setImage(selected);\n else setImage(storeItemImg);\n }", "Builder addImage(ImageObject value);", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "private void setImage(ActorType type) {\n switch (type) {\n case TREE: image = new Image(\"src/res/images/tree.png\"); break;\n case GOLDENTREE: image = new Image(\"src/res/images/gold-tree.png\"); break;\n case STOCKPILE: image = new Image(\"src/res/images/cherries.png\"); break;\n case HOARD: image = new Image(\"src/res/images/hoard.png\"); break;\n case PAD: image = new Image(\"src/res/images/pad.png\"); break;\n case FENCE: image = new Image(\"src/res/images/fence.png\"); break;\n case SIGNUP: image = new Image(\"src/res/images/up.png\"); break;\n case SIGNDOWN: image = new Image(\"src/res/images/down.png\"); break;\n case SIGNLEFT: image = new Image(\"src/res/images/left.png\"); break;\n case SIGNRIGHT: image = new Image(\"src/res/images/right.png\"); break;\n case POOL: image = new Image(\"src/res/images/pool.png\"); break;\n case GATHERER: image = new Image(\"src/res/images/gatherer.png\"); break;\n case THIEF: image = new Image(\"src/res/images/thief.png\"); break;\n default: System.err.println(\"error: no preset image for this actor type: \"+type.toString());\n }\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "private void initImage() {\n this.image = (BufferedImage)this.createImage(DisplayPanel.COLS, DisplayPanel.ROWS);\n this.r.setRect(0, 0, DisplayPanel.ROWS, DisplayPanel.COLS);\n this.paint = new TexturePaint(this.image,\n this.r);\n }", "private void initialize() {\n setImageResource(R.drawable.content);\n }", "public void setpImage(String pImage) {\n this.pImage = pImage;\n }", "private void imageInitiation() {\n ImageIcon doggyImage = new ImageIcon(\"./data/dog1.jpg\");\n JLabel dogImage = new JLabel(doggyImage);\n dogImage.setSize(700,500);\n this.add(dogImage);\n }", "public void setImage(final Image image) {\r\n getView().setImage(image);\r\n getView().setFitWidth(this.getDimension().getWidth());\r\n getView().setPreserveRatio(true);\r\n getView().setViewport(new Rectangle2D(0, 0, this.getDimension().getWidth(), this.getDimension().getHeight()));\r\n }", "private void setPic() {\n int targetW = 210;\n int targetH = 320;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n int photoW = bmOptions.outWidth;\n int photoH = bmOptions.outHeight;\n\n // Determine how much to scale down the image\n int scaleFactor = Math.min(photoW/targetW, photoH/targetH);\n\n // Decode the image file into a Bitmap sized to fill the View\n bmOptions.inJustDecodeBounds = false;\n bmOptions.inSampleSize = scaleFactor;\n bmOptions.inPurgeable = true;\n\n Bitmap bitmap = BitmapFactory.decodeFile(previewPhotoPath, bmOptions);\n bitmap = RotateBitmap(bitmap,270);\n preview.setImageBitmap(bitmap);\n }", "public String getImage() { return image; }", "public void setImageData(byte[] imageData) {\n if (tile != null) {\n tile.setImageData(imageData);\n } else {\n this.data = imageData;\n }\n }", "public void setTempImage()\n {\n URL url = this.getClass().getResource(lastselection.getImage());\n\t\tImage image = Toolkit.getDefaultToolkit().getImage(url);\n\t\ttempImage = new PImage(image);\n\t\ttempImage.setBounds(0,0,65,170);\n\t\ttempImage.setTransparency(0);\n\t\tlayer.addChild(tempImage);\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "public Image() {\n\t\tsuper();\n\t\taddNewAttributeList(NEW_ATTRIBUTES);\n\t\taddNewResourceList(NEW_RESOURCES);\n\t}", "Builder addImage(String value);", "@Override\n public String GetImagePart() {\n return \"coal\";\n }", "public String getImg(){\n return img;\n }", "protected void onReloadImage() {\n String url = DataProvider.SCREEN + DataProvider.SCREEN_INDEX + mScreenId + \"&time=\" + System.currentTimeMillis();\n image.setUrl(url); //just to avoid caching\n loadTree();\n }", "void setImage(TokenEntry entry, @NonNull String newImage);" ]
[ "0.7712312", "0.7569654", "0.75192314", "0.74638706", "0.73976064", "0.730385", "0.7297783", "0.7251356", "0.71551645", "0.71329117", "0.7122619", "0.7021542", "0.69893944", "0.6984418", "0.6976462", "0.69722456", "0.6959346", "0.69414157", "0.6916975", "0.6916975", "0.69125354", "0.6908305", "0.6895042", "0.6880165", "0.68763024", "0.68754464", "0.68643755", "0.68580997", "0.68486905", "0.68327886", "0.6828935", "0.6810459", "0.68085796", "0.68030113", "0.6800099", "0.67759204", "0.67644227", "0.67341447", "0.6730083", "0.6729917", "0.67121994", "0.67093354", "0.6707306", "0.66970515", "0.6693215", "0.6671048", "0.6664245", "0.6663663", "0.66587824", "0.6648929", "0.66455775", "0.66455775", "0.66244566", "0.661755", "0.6615457", "0.66016847", "0.65987223", "0.6595608", "0.65742826", "0.6572333", "0.6570072", "0.6566051", "0.6561008", "0.65606844", "0.6557831", "0.65572983", "0.65409374", "0.6525923", "0.65127087", "0.6507549", "0.65067345", "0.6495964", "0.6485303", "0.6483783", "0.6467102", "0.6451187", "0.6443922", "0.64025956", "0.6386873", "0.6385277", "0.63714564", "0.6370054", "0.63617736", "0.6353119", "0.6346126", "0.63455796", "0.63176745", "0.62963146", "0.6286822", "0.62794715", "0.627072", "0.6260825", "0.62557817", "0.62552077", "0.6242663", "0.62413394", "0.6224275", "0.6222332", "0.62125987", "0.620275" ]
0.6778941
35
GEtter for the url
public String getFlickrUrl() { return flickrUrl; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "protected abstract String getUrl();", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "public abstract String getUrl();", "String url();", "public abstract String getURL();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "Uri getUrl();", "URL getUrl();", "public String getURL();", "@Override\r\n\tpublic void getUrl() {\n\r\n\t}", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "@Override\r\n public String getURL() {\n return url;\r\n }", "public String getUrl(){\n \treturn url;\n }", "String getRequestURL();", "@Nullable\n public abstract String url();", "String getRequestedUrl();", "String getQueryRequestUrl();", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getURL()\n {\n return getURL(\"http\");\n }", "public abstract RestURL getURL();", "public String getUrl() { return url; }", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "String getUri();", "private String getUrlPlanet() {\n return this.url + this.resource;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return url_;\n }", "abstract String getUri();", "@Override\n public StringBuffer getRequestURL() {\n //StringBuffer requestURL = super.getRequestURL();\n //System.out.println(\"URL: \" + requestURL.toString());\n return this.requestURL;\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "@Override\n public String getUrl() {\n StringBuilder sb = new StringBuilder(baseUrl);\n if (mUrlParams.size() > 0) {\n sb.append(\"?\");\n for (String key : mUrlParams.keySet()) {\n sb.append(key);\n sb.append(\"=\");\n sb.append(mUrlParams.get(key));\n sb.append(\"&\");\n }\n }\n String result = sb.substring(0, sb.length() - 1);\n return result;\n }", "String getUri( );", "String getServerUrl();", "java.lang.String getUri();", "java.lang.String getUri();", "public java.lang.String getUrl(){\r\n return this.url;\r\n }", "String getURI();", "String getURI();", "String getURI();", "private String getUrlPlanetSearch() {\n return this.url + this.resource + this.resourceSearch;\n }", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "public String getURL() {\n\t\treturn RequestConstants.BASE_IMAGE_URL+_url;\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "@Override\r\n public String getUrl()\r\n {\n return null;\r\n }", "public static String UrlToHit(){\n\t\treturn BaseURL;\n\t}", "public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }", "public String getURL() { return url; }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "public HttpUrl url() {\n return url;\n }", "public java.lang.String getUrl() {\n return url;\n }", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUri();", "@Api(1.2)\n @NonNull\n public String url() {\n return mRequest.buildOkRequest().url().toString();\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl() {\r\n return url;\r\n }", "public String getUrl()\n {\n return url;\n }", "public String getURL() {\r\n\t\treturn dURL.toString();\r\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public UriDt getUrl() { \n\t\tif (myUrl == null) {\n\t\t\tmyUrl = new UriDt();\n\t\t}\n\t\treturn myUrl;\n\t}", "public StringBuffer getRequestURL() {\n return new StringBuffer(url);\n }", "private String getOriginUrl() {\n Uri.Builder builder = url.buildUpon();\n for (Param p : queryParams) {\n builder.appendQueryParameter(p.key, p.value);\n }\n return builder.build().toString();\n }", "public String getUrl() {\n\t\t\treturn url;\n\t\t}", "public String url() {\n return this.url;\n }", "public String getUrl() {\n return url;\n }", "public String getUrl() {\n return url;\n }", "public String getSearchUrl();", "public String getURL() {\r\n return url;\r\n }", "public String getURL() {\r\n\t\treturn url;\r\n\t}", "String getJoinUrl();", "@Override\r\n\tprotected String getUrl() {\n\t\treturn urlWS + \"/ConsultarIndiceEjecucionAnio\";\r\n\t}" ]
[ "0.75031734", "0.75031734", "0.75031734", "0.75031734", "0.75031734", "0.75031734", "0.74427575", "0.7370809", "0.7346101", "0.72795665", "0.7272304", "0.72666186", "0.725702", "0.725702", "0.725702", "0.725702", "0.725702", "0.71838194", "0.71281457", "0.7120552", "0.7111002", "0.7110764", "0.7110764", "0.7110764", "0.7110764", "0.7099136", "0.70883834", "0.7077482", "0.7050905", "0.6995118", "0.69788665", "0.69311714", "0.6910214", "0.6905273", "0.68869966", "0.6878897", "0.68626636", "0.68614215", "0.6849652", "0.6849652", "0.6823352", "0.6823352", "0.6785877", "0.6784646", "0.6782008", "0.67757386", "0.6761743", "0.6752219", "0.673687", "0.673687", "0.6714786", "0.67145175", "0.67145175", "0.67145175", "0.67065376", "0.67038876", "0.6682572", "0.66701055", "0.66701055", "0.6665923", "0.66648847", "0.6662929", "0.66626817", "0.6661406", "0.6653881", "0.6641948", "0.6620872", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66067016", "0.66056293", "0.660473", "0.6584972", "0.6584972", "0.6584972", "0.6584972", "0.6584972", "0.6584972", "0.6584972", "0.65788937", "0.65669477", "0.656614", "0.656614", "0.656614", "0.65652794", "0.65613025", "0.65554625", "0.6526885", "0.65105164", "0.65105164", "0.6507645", "0.6498017", "0.6474405", "0.64705855", "0.6464132" ]
0.0
-1
getter for the current title of this item
public String getTitle() { return title; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTitle()\n {\n return (this.title);\n }", "public String getItemTitle() {\n\t return this.itemTitle;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n\t\treturn this.title;\n\t}", "public String getTitle() {\n return titleName;\n }", "public String getTitle()\r\n {\r\n return this.title;\r\n }", "public String getTitle() \r\n\t{\r\n\t\treturn this.title;\r\n\t}", "public String getTitle() {\r\n return this.title;\r\n }", "public java.lang.Object getTitle() {\n return title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n\t\treturn this.Title; \n\t}", "public String getTitle(){\n\t\treturn this.title;\n\t}", "String getTitle() {\n\t\treturn this.mTitle;\n\t}", "private String getTitle() {\n return title;\n }", "public java.lang.String getTitle()\n {\n return this.title;\n }", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public String getTitle() {\r\n\t\treturn title;\r\n\t}", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\n\t\treturn title;\n\t}", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle() {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public String getTitle()\r\n {\r\n return title;\r\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle() {\n return title;\n }", "public String getTitle()\n {\n return m_title;\n }", "public String getTitle() {\r\n return _title;\r\n }", "public java.lang.String getTitle() {\n return title;\n }", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n\t{\n\t\treturn title;\n\t}", "public String getTitle()\n {\n return title;\n }", "public String getTitle() {\n return this.title;\n }", "public String getTitle() {\n \t\treturn title;\n \t}" ]
[ "0.81728727", "0.8089713", "0.80501825", "0.80501825", "0.80501825", "0.8037147", "0.8026247", "0.801344", "0.80097586", "0.800453", "0.80027694", "0.80027694", "0.80027694", "0.80027694", "0.80027694", "0.7988582", "0.7978284", "0.79782236", "0.79654497", "0.79627746", "0.7960806", "0.7960806", "0.7960806", "0.7960806", "0.7960806", "0.7960806", "0.7960806", "0.7952729", "0.7952729", "0.7952729", "0.7947182", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79454345", "0.79423577", "0.79423577", "0.79423577", "0.79423577", "0.79423577", "0.79423577", "0.79423577", "0.7935131", "0.7935131", "0.7932971", "0.7932032", "0.7932032", "0.7928218", "0.79281807", "0.792341", "0.79182065", "0.79182065", "0.79180545", "0.79049677", "0.79000187" ]
0.0
-1
Getter for the current bitmap attached tothis item
public Bitmap getImage() { return image; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Bitmap getBitmap() {\n\t\treturn mBitmap;\n\t}", "public Bitmap getBitmap() {\n\t\treturn this.initialBitmap;\r\n\t}", "public Bitmap getBitmap(){\n return bitmap;\n }", "public Bitmap getBitmapIn() {\r\n\t\treturn bitmapIn;\r\n\t}", "public BitmapField getBitmapField() {\n\t\treturn bitmapField;\n\t}", "public Bitmap getImage(){\n return images[currentFrame];\n }", "public javax.activation.DataHandler getPicture() {\r\n return localPicture;\r\n }", "public Drawable getImage(){\n\t\treturn mImage;\n\t}", "public ImageIcon getCurrentImage() {\n\t\t\treturn this.currentImage;\n\t}", "Bitmap getThumbnail() {\n\t\treturn this.mThumbnail;\n\t}", "public ColorImage getCurrentImage() {\n try {\n return currentImage.peek();\n } catch (EmptyStackException e) {\n return null;\n }\n }", "@Override\r\n\tpublic Image getImg() {\n\t\treturn img.getImage();\r\n\t}", "private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }", "public BufferedImage getCurrentImage(){\n\t\treturn getCurrentImage(System.currentTimeMillis()-lastUpdate);\n\t}", "public ImageArray getCurrentImage() {\n return currentIm;\n }", "Bitmap getBitmap(){\n Bitmap bm = frame;\n frame = null;\n return bm;\n }", "public Bitmap getAvatarBitmap() {\n return mAvatarBitMap;\n }", "public Bitmap mo8781b() {\n if (this.f1291g) {\n return this.f1287c;\n }\n return this.f1286b;\n }", "public Integer getImageResource(){\n return mImageResource;\n }", "public Drawable getDrawable() {\n return mDrawable;\n }", "public ImageInfo getImage() {\n return image;\n }", "public Image getInstanceImage() {\r\n return this.image;\r\n }", "public BufferedImage image(){\n\t\treturn shotPic;\n\t}", "public Bitmap get() {\n Throwable throwable2222222;\n Object object;\n block4: {\n boolean bl2 = this.zali;\n if (bl2) return this.zalh;\n Object object2 = this.zalg;\n Object object3 = new ParcelFileDescriptor.AutoCloseInputStream(object2);\n object = new DataInputStream((InputStream)object3);\n int n10 = ((DataInputStream)object).readInt();\n object3 = new byte[n10];\n int n11 = ((DataInputStream)object).readInt();\n int n12 = ((DataInputStream)object).readInt();\n String string2 = ((DataInputStream)object).readUTF();\n string2 = Bitmap.Config.valueOf((String)string2);\n ((DataInputStream)object).read((byte[])object3);\n {\n catch (Throwable throwable2222222) {\n break block4;\n }\n catch (IOException iOException) {}\n {\n String string3 = \"Could not read from parcel file descriptor\";\n object2 = new IllegalStateException(string3, iOException);\n throw object2;\n }\n }\n BitmapTeleporter.zaa((Closeable)object);\n object = ByteBuffer.wrap((byte[])object3);\n object3 = Bitmap.createBitmap((int)n11, (int)n12, (Bitmap.Config)string2);\n object3.copyPixelsFromBuffer((Buffer)object);\n this.zalh = object3;\n this.zali = bl2 = true;\n return this.zalh;\n }\n BitmapTeleporter.zaa((Closeable)object);\n throw throwable2222222;\n }", "public Rectangle getImage() {\n\t\treturn image;\n\t}", "public Drawable getDrawable() {\n return this.wotCharacter.getDrawable(this);\n }", "public PImage getImg() {\n \treturn img;\n }", "public xPIC getPic() {\r\n return pic_;\r\n }", "@Override\n\tpublic final Image getImage() {\n\t\treturn this.getSprite().getImage();\n\t}", "public ImageIcon getImage() {\n\t\treturn this.image;\n\t}", "public BufferedImage getImage() {\n\t\treturn this.image;\n\t}", "public ImageIcon getImage(){\n\t\treturn this.image;\n\t}", "public static Bitmap GetDealSpriteBitmap()\r\n\t{\r\n\t\t// Load background desktop image from resouce\r\n\t\tBitmap image = null;\r\n\t\tif(CGameHelper.m_GameContext != null)\r\n\t\t{\r\n\t\t\tResources res = CGameHelper.m_GameContext.getResources();\r\n\t\t\tif(res == null)\r\n\t\t\t\treturn image; \r\n\r\n\t\t\tif(m_DealSpriteBitmap == null)\r\n\t\t\t{\r\n\t\t\t\tm_DealSpriteBitmap = BitmapFactory.decodeResource(res, R.drawable.face);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\timage = m_DealSpriteBitmap;\r\n\t\t} \r\n\t\treturn image;\r\n\t}", "public PImage getImage() {\n return this.image;\n }", "public Image getImage() {\r\n\t\treturn image;\r\n\t}", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "public Image getImage() {\n\t\treturn image;\n\t}", "public Image getImage() {\n\t\treturn image;\n\t}", "public BufferedImage getImage() {\t\r\n\t\treturn this.image;\t\t\t\r\n\t}", "@Override\n\t\t\t\t\tpublic Drawable getDrawable() {\n\t\t\t\t\t\treturn getWeightDrawable(id,width,height);\n\t\t\t\t\t}", "public ImageReference imageReference() {\n return this.imageReference;\n }", "public String getImage() {\n return this.Image;\n }", "public BufferedImage getImage()\r\n\t{\r\n\t\treturn mImageBuffer;\r\n\t}", "public Image getImage() {\n\t\treturn image;\r\n\t}", "public BufferedImage getImage() {\n\t\tTelaInterna ti = ( TelaInterna )contentPane.getSelectedFrame();\n\t\tBufferedImage img;\n\t\timg = ti.getImage();\n\t\treturn img;\n\t}", "public BufferedImage getDrawable(){\n\t\tif(this.isOilContamination()){\n\t\t\treturn this.myFlyweight.getDeadDrawable();\n\t\t}\n\t\t//check direction -- such a horrible way to write a method\n\t\t//redundant checking and ugh.... design this away please...........................\n\t\tif(this.getDirection().getX() > 0 && !this.myFlyweight.getMovingBackAnimationSequence().isEmpty()){\n\t\t\treturn this.myFlyweight.getMovingBackAnimationSequence().get(animationFrame);\n\t\t}\n\t\treturn this.myFlyweight.getAnimationSequence().get(animationFrame);\n\t}", "public Image getBufferedBasicAvatar() {\n return bufferedBasicAvatar;\n }", "public Image getImage() {\r\n return image;\r\n }", "public Drawable getDrawable()\n\t {\n\t return drawable;\n\t }", "public Texture getCurrentFrame(){\n\t\treturn images[currentFrame];\n\t}", "public String getpImage() {\n return pImage;\n }", "public Image getImage() {\n return image;\n }", "public Picture picture() {\n return new Picture(current);\n }", "public Image getImage() {\n return image;\n }", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "public Image getPic() {\n return pic;\n }", "public java.lang.String getIdleImage() {\n return localIdleImage;\n }", "public String getImage() {\n\t\treturn image;\n\t}", "public String getImage() {\n\t\treturn image;\n\t}", "public ImageIcon image() {\n return image;\n }", "public Image getImage()\n {\n if (fill instanceof ImageFill)\n {\n return ((ImageFill) fill).getImage();\n }\n else\n {\n return null;\n }\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "public ImageIcon getImage()\n {\n return image;\n }", "public Bitmap getB(String name){\n\t\treturn BitmapFactory.decodeResource(activity.getResources(),\n\t\t\t\tactivity.getResources().getIdentifier(name, \"drawable\", activity.getPackageName()));\n\t\t\n\t}", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "public Rectangle getCurrentRectangle() {\n return this.wotCharacter.getDrawable(this).getRectangle();\n }", "public BufferedImage getImage() {\n\t\t return img;\n\t}", "public BufferedImage getImage() {\n return image;\n }", "public float getIMG(){\n return profile.getImg();\n }", "public BufferedImage getBackgroundImage(){\n\t\treturn currentBackgroundImage;\n\t}", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public javafx.scene.image.Image getImage() {\n return super.getImage();\n }", "public final ImageProcessor getImage() {\r\n return image;\r\n }", "byte[] getCurrentPixel() {\n byte[] pixel = new byte[2];\n\n pixel[0] = ((byte) cursor.getX());\n pixel[1] = ((byte) cursor.getY());\n\n for (byte b : pixel) {\n\n if (b >= axisLength || b < 0) {\n return null;\n }\n }\n return pixel;\n }", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public Uri getImageURI() {\n return mImageURI;\n }", "public Bitmap decodeImage() {\n\t\treturn image == null ? null : image.decodeBitmap();\n\t}", "public BufferedImage getPlan()\n { \n return imgPlan;\n }", "public int getmImageResourceId() {\n return mImageResourceId;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public String getImage() {\n return image;\n }", "public YuiImage getSelectedImg() {\r\n\t\treturn selectedImg;\r\n\t}", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public Picture picture() {\n return pic;\n }", "@Override\n\tpublic Drawable getDrawable() {\n\t\tDrawable drawable = null;\n \n if (mDrawable != null) {\n drawable = mDrawable;\n } else if (mContentUri != null) {\n Bitmap bitmap = null;\n try {\n InputStream is = mContext.getContentResolver().openInputStream(\n mContentUri);\n bitmap = BitmapFactory.decodeStream(is);\n drawable = new BitmapDrawable(mContext.getResources(), bitmap);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),\n drawable.getIntrinsicHeight());\n is.close();\n } catch (Exception e) {\n Log.e(\"sms\", \"Failed to loaded content \" + mContentUri, e);\n }\n } else {\n try {\n drawable = mContext.getResources().getDrawable(mResourceId);\n drawable.setBounds(0, 0, drawable.getIntrinsicWidth(),\n drawable.getIntrinsicHeight());\n } catch (Exception e) {\n Log.e(\"sms\", \"Unable to find resource: \" + mResourceId);\n } \n }\n\n return drawable;\n\t}", "public Object get() {\r\n\treturn bgclip;\r\n }", "public Sprite getCurrentSprite() {\n\t\tif (this.getVx() <= 0) {\n\t\t\treturn getImages()[0];\n\t\t}\n\t\treturn getImages()[1];\n\t}", "public ImageView getId_image_item_shown() {\n return mHolder.id_image_item_shown;\n }", "public String getImage()\n {\n return image;\n }", "public com.google.protobuf.ByteString getPicture() {\n return picture_;\n }", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public String getImg() {\n return img;\n }", "public boolean isActiveImage() {\r\n return this.activeImage;\r\n }", "public String getImage() {\n return image;\n }", "public double getIm() {\r\n return im;\r\n }" ]
[ "0.79816943", "0.77339816", "0.73809534", "0.7274738", "0.70133793", "0.69696504", "0.68799126", "0.659283", "0.6582918", "0.65115714", "0.6462053", "0.6445036", "0.6416703", "0.6407196", "0.6406306", "0.6377476", "0.63489795", "0.63069946", "0.6303447", "0.6243934", "0.6236492", "0.6231515", "0.6198124", "0.61541593", "0.61417377", "0.6138915", "0.61377615", "0.6116351", "0.61061007", "0.60995835", "0.6098504", "0.6096383", "0.6074762", "0.6067593", "0.6062559", "0.6050811", "0.605062", "0.605062", "0.60446316", "0.6038918", "0.6037089", "0.6033377", "0.60304946", "0.602636", "0.60106057", "0.60035837", "0.59998655", "0.597959", "0.5955062", "0.5932053", "0.5921574", "0.5918878", "0.59031624", "0.589853", "0.58966357", "0.5896449", "0.5893526", "0.5893222", "0.5893222", "0.58756727", "0.58622974", "0.5850453", "0.5838577", "0.58365667", "0.5836477", "0.58354473", "0.58279395", "0.58250725", "0.5822826", "0.5812967", "0.5803254", "0.5802335", "0.5802335", "0.5802335", "0.5797337", "0.5793904", "0.5790959", "0.5788982", "0.5786043", "0.5785501", "0.57828724", "0.57796586", "0.57796586", "0.57796586", "0.57796586", "0.57781017", "0.57623976", "0.57528", "0.5751336", "0.5750121", "0.5747013", "0.57446545", "0.57440704", "0.57335526", "0.57233065", "0.57233065", "0.57233065", "0.57066405", "0.57031363", "0.56983936" ]
0.70030284
5
Constructor para objetos de la clase EmbarcacionAMotor.
public EmbarcacionAMotor(String matricula, double eslora, int anoFabricacion, Persona persona, int potenciaCV) { super(matricula, eslora, anoFabricacion, persona); this.potenciaCV = potenciaCV; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DarAyudaAcceso() {\r\n }", "public Alojamiento() {\r\n\t}", "public Odontologo() {\n }", "private MApi() {}", "private CameraExecutors() {\n }", "public Corso() {\n\n }", "public AfiliadoVista() {\r\n }", "public CorreoElectronico() {\n }", "public FiltroMicrorregiao() {\r\n }", "public Principal() {\n initComponents();\n empresaControlador = new EmpresaControlador();\n clienteControlador = new ClienteControlador();\n vehiculoControlador = new VehiculoControlador();\n servicioControlador = new ServicioControlador();\n archivoObjeto = new ArchivoObjeto(\"/home/diego/UPS/56/ProgramacionAplicada/Parqueadero/src/archivo/ClienteArchivo.obj\");// Ruta Absolojuta\n archivosBinarios = new ArchivosBinarios();\n archivosBinariosAleatorio = new ArchivosBinariosAleatorio(\"ServicioArchivo.dat\");//Ruta relativa\n }", "public MPaciente() {\r\n\t}", "public FiltroRaEncerramentoComando() {\r\n }", "private BaseDatos() {\n }", "public solicitudControlador() {\n }", "public Carrera(){\n }", "public Curso() {\r\n }", "public AgenteEstAleatorio() {\r\n }", "public AvaliacaoRisco() {\n }", "public Manusia() {}", "private RepositorioOrdemServicoHBM() {\n\n\t}", "public VideoMetadataMediator() {\n // Initialize the VideoServiceProxy.\n mVideoServiceProxy = new RestAdapter\n .Builder()\n .setEndpoint(SERVER_URL)\n .build()\n .create(VideoServiceProxy.class);\n }", "public Respuesta() {\n }", "public Coloca_imagen(){\n \n \n }", "public OmsUsuario() {\n\t}", "public Archivo() {\n fos = null;\n oos = null;\n fis = null;\n ois = null;\n }", "public ControladorPrueba() {\r\n }", "public Caso_de_uso () {\n }", "private QuadradoPerfeito() {\n }", "public Aanbieder() {\r\n\t\t}", "public Arquero(){\n this.vida = 75;\n this.danioAUnidad = 15;\n this.danioAEdificio = 10;\n this.rangoAtaque = 3;\n this.estadoAccion = new EstadoDisponible();\n }", "public AnalizadorAccesosAServidor()\n {\n // initialise instance variables\n archivoLog = new ArrayList<>();\n }", "private CameraManager() {\n }", "public empresaDAO(){\r\n \r\n }", "public AssetsService() {\r\n }", "public BurbujaInmaculada(){\n\t\tthis.afectador = new AfectadorPorTurnos(2, new EfectoBurbujaInmaculada());\n\t}", "public ControladorUsuario() {\n }", "public Libro() {\r\n }", "public AFMV() {\r\n }", "public Ctacliente() {\n\t}", "public PacienteDAO(){ \n }", "public EpAssetsDAOImpl() {\n super();\n }", "private YahooMeteoRetriever() {\r\n\t\tsuper();\r\n\t}", "private ObjectRepository() {\n\t}", "public ControllerEnfermaria() {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Conexion(){\n \n }", "public ATM() {\n usuarioAutenticado = false; // al principio, el usuario no está autenticado\n numeroCuentaActual = 0; // al principio, no hay número de cuenta\n pantalla = new Pantalla(); // crea la pantalla\n teclado = new Teclado(); // crea el teclado\n dispensadorEfectivo = new DispensadorEfectivo(); // crea el dispensador de efectivo\n ranuraDeposito = new RanuraDeposito(); // crea la ranura de depósito\n baseDatosBanco = new BaseDatosBanco(); // crea la base de datos de información de cuentas\n }", "public AsosiyOyna() {\n initComponents();\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public DownloadImageService() {\n\n super(\"DownloadImageService\");\n }", "public OnibusDAO() {}", "public AjusteSaldoAFavorRespuesta() {\n\t}", "public Magazzino() {\r\n }", "public Funcionario() {\r\n\t\t\r\n\t}", "private Mediator() {\n }", "public Corrida(){\n\n }", "private ImageDownloader(){ \t\n \n }", "public BrowseOffenceAMClient() {\r\n }", "public TurnoVOClient() {\r\n }", "public FlickrPhoto() {\r\n }", "protected Asignatura()\r\n\t{}", "public UploadManager() {\n }", "public ShowVideoResponse() {\n }", "private MovieManager() {}", "private JDBCMiddler(String controlador, String url, String usuario, String clave) {\n this.controlador = controlador;\n this.url = url;\n this.usuario = usuario;\n this.clave = clave;\n }", "public MSACWrapperSdk() {}", "public ServiciosLogin() {\r\n }", "public VentanaPrincipal() throws IOException {\n initComponents();\n buscador = new Busqueda();\n }", "public EmoticonBO()\n {}", "public LocalResidenciaColaborador() {\n //ORM\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "public ABTemaPropioController(){\n }", "public Preventivo() {\n\n }", "public ImagenLogica(){\n this.objImagen=new Imagen();\n //Creacion de rutas\n this.creaRutaImgPerfil();\n this.crearRutaImgPublicacion();\n \n }", "private APIClient() {\n }", "public AdsManager()\n\t{\n\t\t\n\t}", "protected GaConnector() {\n }", "public ModuliHandler() {\n\t}", "private Marinator() {\n }", "private Marinator() {\n }", "public PersistenciaCMT() {\n\n }", "public Funcionaria(){\n\n }", "public Recursos() {\n }", "public RequestDatosUsuario(){\r\n\t\tsuper();\r\n\t}", "public HALeaseManagementModule() {\n\n }", "public AbstractRetriever() {\n }", "public ControladorCatalogoServicios() {\r\n }", "public InventarioControlador() {\n }", "public Maestro()\r\n\t{\r\n\t\tint i;\r\n\t\tint hora = 0;\r\n\t\tint minutos = 0;\r\n\t\tint segundos = 0;\r\n\t\tint milisegundos = 0;\r\n\t\tthis.reloj = new Reloj(\"Reloj Servidor\",hora,minutos,segundos,milisegundos);\r\n\t\tthis.reloj.start();\r\n\r\n\t\tthis.s_BD = new Sincronizador_BD(this.Conect);\r\n\t\tthis.s_BD.start();\r\n\t}", "public LicenciaController() {\n }", "public ControladorCatalogoEstado() {\r\n }", "public ControladorCoche() {\n\t}", "private DittaAutonoleggio(){\n \n }", "public LecturaPorEvento() \r\n {\r\n }", "public JefeAvion() {\r\n\t\tsuper(2000, 2, new ImageIcon(url), 1275, 636);\r\n\t\trn = new Random();\r\n\t\tx = 400 - defaultWidth/2;\r\n\t\ty = - defaultHeight;\r\n\t\tdelay = 2;\r\n\t\tint cantTorretasDobles = 8;\r\n\t\tint cantTorretasSimples = 3;\r\n\t\tint cantTorretasInvisibles = 12;\r\n\t\tint cantTorretasGrandes = 6;\r\n\t\t\r\n\t\tString boundsDouble = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasDobles.txt\";\r\n\t\tString boundsSimple = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasSimples.txt\";\r\n\t\tString boundsInvisible = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasInvisibles.txt\";\r\n\t\tString boundsGrande = \"/ProyectoX/img/Enemigo/JefeAvion/posicionesTorretasGrandes.txt\";\r\n\t\t\r\n\t\tinit = System.currentTimeMillis();\r\n\t\tcargarArchivoTorretas(boundsDouble, new FabricaTorretasDobles(), cantTorretasDobles);\r\n\t\tcargarArchivoTorretas(boundsSimple, new FabricaTorretasSimples(), cantTorretasSimples);\r\n\t\tcargarArchivoTorretas(boundsInvisible,new FabricaTorretasInvisibles(), cantTorretasInvisibles);\r\n\t\tcargarArchivoTorretas(boundsGrande,new FabricaTorretasGrandes(), cantTorretasGrandes);\r\n\t\tpuntaje = 500;\r\n\t\tsetearParametrosDefecto(2000, 2, 1275, 636);\r\n\t\t\r\n\t\t\r\n\t}", "private ControleurAcceuil(){ }", "private AnagramService() {\n\t}", "public AmazonFPSAsyncClient(String awsAccessKeyId, String awsSecretAccessKey,\n AmazonFPSConfig config, ExecutorService executor) throws AmazonFPSException {\n super(awsAccessKeyId, awsSecretAccessKey, config);\n this.executor = executor;\n }", "public mService() {\n super(\"fetchImageService\");\n }", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}" ]
[ "0.62939006", "0.6028434", "0.5860561", "0.57544756", "0.57390743", "0.573505", "0.5711594", "0.5607863", "0.56045705", "0.5590637", "0.55672497", "0.55618906", "0.55582327", "0.5541402", "0.5532722", "0.5532313", "0.5521923", "0.55213183", "0.5499306", "0.5473174", "0.54560363", "0.5453706", "0.54510456", "0.54255563", "0.5419961", "0.54191315", "0.5400051", "0.53880036", "0.53861004", "0.53800464", "0.53789854", "0.5377644", "0.53650016", "0.5359171", "0.5355983", "0.5348055", "0.5341154", "0.53350025", "0.5334709", "0.5319486", "0.5318662", "0.53172374", "0.53137916", "0.5313756", "0.5306949", "0.52964514", "0.5283847", "0.5282688", "0.5280003", "0.5279363", "0.52758145", "0.5266689", "0.52626413", "0.5262407", "0.5259537", "0.52582544", "0.525803", "0.5256556", "0.5254116", "0.5249494", "0.524248", "0.52348137", "0.5233538", "0.5230669", "0.5228186", "0.52273685", "0.5220205", "0.52198225", "0.521421", "0.52097976", "0.5198051", "0.5189735", "0.51895654", "0.5189556", "0.51850814", "0.5183851", "0.5174875", "0.5169935", "0.5161192", "0.5161192", "0.51600057", "0.5156342", "0.51535124", "0.5147861", "0.5137691", "0.5134588", "0.5132272", "0.5127005", "0.5121633", "0.51206446", "0.5118717", "0.5117838", "0.51169825", "0.511381", "0.5108927", "0.51087993", "0.5107688", "0.51017445", "0.50970644", "0.5096794" ]
0.6114165
1
Devuelve el Coeficiente Bernua.
public int getCoeficienteBernua() { return potenciaCV; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void faiBagnetto() {\n System.out.println(\"Scrivere 1 per Bagno lungo, al costo di 150 Tam\\nSeleziona 2 per Bagno corto, al costo di 70 Tam\\nSeleziona 3 per Bide', al costo di 40 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiVita += 50;\n puntiFelicita -= 30;\n soldiTam -= 150;\n }\n case 2 -> {\n puntiVita += 30;\n puntiFelicita -= 15;\n soldiTam -= 70;\n }\n case 3 -> {\n puntiVita += 10;\n puntiFelicita -= 5;\n soldiTam -= 40;\n }\n }\n checkStato();\n }", "public Coup coupAJouer();", "public ComponenteCosto getComponenteCosto()\r\n/* 68: */ {\r\n/* 69: 91 */ return this.componenteCosto;\r\n/* 70: */ }", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "public fechBalance() {\n initComponents(); \n \n bd=new coneccionBD();\n acum1=0;\n acum2=0;\n acum3=0;\n acum4=0;\n acum5=0;\n padreNivel=\"\";\n }", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public double getCustoAluguel(){\n return 2 * cilindradas;\n }", "private void BScreate() {\n\n\t\tint sum=0;//全枝数のカウント\n\t\tfor(int i=0;i<banknode;i++) sum+=Bank.get(i).deg;\n\n\t\t//e,d,nの決定\n\t\tif(NW==\"BA\"){\n\t\tfor(int i=0;i<banknode;i++) {\n\t\t\tBank.get(i).totalassets=E*((double)Bank.get(i).deg/(double)sum);\n\t\t\tBank.get(i).n=Bank.get(i).totalassets*Bank.get(i).CAR;\n\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t}\n\t\t}\n\n\t\tif(NW==\"CM\"){\n\t\t\tfor(int i=0;i<banknode;i++){\n\t\t\t\tBank.get(i).totalassets=E/banknode;\n\t\t\t\tBank.get(i).n=Bank.get(i).totalassets*asyCAR;\n\t\t\t\tBank.get(i).forcelev=megaCAR;\n\t\t\t\tBank.get(i).d=Bank.get(i).totalassets-Bank.get(i).n;\n\t\t\t\tBank.get(i).buffer=Bank.get(i).totalassets;\n\t\t\t}\n\n\t\t}\n\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "@Override\n public void llenardeposito(){\n this.setCombustible(getTankfuel());\n }", "@Override\n\tpublic int getBancoCobrador() {\n\t\t// TODO Auto-generated method stub\n\t\treturn super.getBancoCobrador();\n\t}", "public void calculoSalarioBruto(){\n salarioBruto = hrTrabalhada * valorHr;\n }", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public CTematicaBienestar() {\r\n\t}", "public String getCusBak() {\r\n return cusBak;\r\n }", "public CuentaBancaria (Double saldo, Integer cbu, Cliente cliente) {\n\t\tthis.saldo=saldo;\n\t\tthis.cbu=cbu;\n\t\tthis.cliente=cliente;\n\t}", "public beli_kredit() {\n initComponents();\n koneksitoko();\n }", "public void rafraichirCouleurBoutons(int c){\n\t\tif(c == tabObjet.length-1){\n\t\t\tdroite.setForeground(Color.black); //on n'affiche pas le bouton suivant pour la derniere planete\n\t\t}else{\n\t\t\tdroite.setForeground(Color.white); //on affiche le bouton suivant pour les autres planetes\n\t\t}\n\t\tif( c == 0){\n\t\t\tgauche.setForeground(Color.black); //on n'affiche pas le bouton precedent pour la premiere planete\n\t\t}else{\n\t\t\tgauche.setForeground(Color.white); //on affiche le bouton precedent pour les autres planetes\n\t\t}\n\t\tif(tableauValidation[c] == 1){\n\t\t\tconf2.setForeground(Color.green); //vert si c'est valide\n\t\t}else{\n\t\t\tconf2.setForeground(Color.white); //sinon blanc\n\t\t}\n\t}", "@Override\n\tpublic double CalcularFuel() {\n\t\tdouble consumo=this.getCargaActual()*30+2*numEje;\n\t\treturn consumo;\n\t}", "@Override\n\t\tpublic void afectarPorSuperficieNubosa(float coeficiente) {\n\t\t}", "@Override\n\t\tpublic void afectarPorSuperficieNubosa(float coeficiente) {\n\t\t}", "@Override\n\t\tpublic void afectarPorSuperficieNubosa(float coeficiente) {\n\t\t}", "@Override\n protected String elaboraBody() {\n String text = CostBio.VUOTO;\n int numCognomi = mappaCognomi.size();\n int numVoci = Bio.count();\n int taglioVoci = Pref.getInt(CostBio.TAGLIO_NOMI_ELENCO);\n\n text += A_CAPO;\n text += \"==Cognomi==\";\n text += A_CAPO;\n text += \"Elenco dei \";\n text += LibWiki.setBold(LibNum.format(numCognomi));\n text += \" cognomi '''differenti''' utilizzati nelle \";\n text += LibWiki.setBold(LibNum.format(numVoci));\n text += \" voci biografiche con occorrenze maggiori di \";\n text += LibWiki.setBold(taglioVoci);\n text += A_CAPO;\n text += creaElenco();\n text += A_CAPO;\n\n return text;\n }", "public double getCuota() {\n return cuota;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public CarteCaisseCommunaute() {\n super();\n }", "public ContaBancaria() {\n }", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "public CouleurFeu suivant() {\r\n // on choisit ici un algo très basique (je l'avais d'abord fait\r\n // en utisant la liste des valeurs, mais ça n'est pas très lisible.\r\n switch (this) {\r\n case VERT:\r\n return ORANGE;\r\n case ORANGE:\r\n return ROUGE;\r\n case ROUGE:\r\n return VERT;\r\n default:\r\n throw new RuntimeException(\"couleur inconnue ?? (impossible normalement)\");\r\n }\r\n }", "public BigDecimal getCOVERING_ACC_BR() {\r\n return COVERING_ACC_BR;\r\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "PrimitivaComunicacion(String simbolo){\r\n this.simbolo = simbolo;\r\n }", "public Electrodomestico() {\r\n this.color = Colores.BLANCO;\r\n this.consumoEnergetico = Letra.F;\r\n this.precioBase = precioDefecto;\r\n this.peso = pesoDefecto;\r\n }", "public void daiGioco() {\n System.out.println(\"Scrivere 1 per giocare al PC, al costo di 200 Tam\\nSeleziona 2 per a Calcio, al costo di 100 Tam\\nSeleziona 3 per Disegnare, al costo di 50 Tam\");\n\n switch (creaturaIn.nextInt()) {\n case 1 -> {\n puntiFelicita += 60;\n puntiVita -= 30;\n soldiTam -= 200;\n }\n case 2 -> {\n puntiFelicita += 40;\n puntiVita -= 20;\n soldiTam -= 100;\n }\n case 3 -> {\n puntiFelicita += 30;\n puntiVita -= 10;\n soldiTam -= 50;\n }\n }\n checkStato();\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public Integer getCedula() {return cedula;}", "@Override public int conocerMonto(){\n\treturn 120;\n }", "public Conway(AutomataCelular ac,int fila,int columna){\r\n super(ac,fila,columna);\r\n estadoActual=VIVA;\r\n //decida();\r\n estadoSiguiente=VIVA;\r\n edad=0;\r\n automata.setElemento(fila,columna,(Elemento)this); \r\n color=Color.blue;\r\n }", "@Override\n\tpublic BigDecimal getCosteEjecucion() {\n\t\treturn model.getCosteEjecucion();\n\t}", "@Override\r\n\tpublic double getTMB() {\r\n\t\tif (isAdultoJovem()) {\r\n\t\t\treturn 15.3 * anamnese.getPesoUsual() + 679;\r\n\t\t}\r\n\t\tif (isAdulto()) {\r\n\t\t\treturn 11.6 * anamnese.getPesoUsual() + 879;\r\n\t\t}\r\n\t\tif (isIdoso()) {\r\n\t\t\treturn 13.5 * anamnese.getPesoUsual() + 487;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}", "public String getCouleur() {\n return this.COULEUR;\n }", "public String getCouleur() {\n return this.COULEUR;\n }", "int obtenerCapital(){\n int capital, valorPropiedades = 0, numEdificaciones = 0;\n \n //Calculamos el valor de todas las propiedades del jugador.\n for(TituloPropiedad propiedad: this.propiedades){\n \n //Obtenemos el número de edificacionesque tiene el titulo de propiedad. cada hotel equivale a cuatro casas mas coste edificación.\n numEdificaciones = propiedad.getCasilla().getNumCasas() + propiedad.getCasilla().getNumHoteles();\n \n //Valor total de la propiedad\n valorPropiedades = valorPropiedades + propiedad.getAlquilerBase() +(numEdificaciones * propiedad.getPrecioEdificar());\n \n if(propiedad.isHipotecada())\n valorPropiedades = valorPropiedades - propiedad.getHipotecaBase();\n }\n \n capital = valorPropiedades + this.saldo;\n \n return capital;\n }", "public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }", "@Override\n public void compraProducto(String nombre, int cantidad) {\n\n }", "public grupobbva.pe.com.EnlaceBBVA.Cabecera getCabecera() {\r\n return cabecera;\r\n }", "public Salle getBureau() {\n return bureau;\n }", "public Tequisquiapan()\n {\n nivel = new Counter(\"Barrio Tequisquiapan: \");\n \n nivel.setValue(5);\n hombre.escenario=5;\n\n casa5.creaCasa(4);\n addObject(casa5, 2, 3);\n \n arbol2.creaArbol(2);\n addObject(arbol2, 20, 3);\n arbol3.creaArbol(3);\n addObject(arbol3, 20, 16); \n \n addObject(letrero5, 15, 8);\n\n addObject(hombre, 11, 1);\n \n arbol4.creaArbol(4);\n addObject(arbol4, 20, 20);\n arbol5.creaArbol(5);\n addObject(arbol5, 3, 17);\n \n fuente2.creaAfuera(6);\n addObject(fuente2, 11, 19);\n \n lampara1.creaAfuera(2);\n addObject(lampara1, 8, 14);\n lampara2.creaAfuera(1);\n addObject(lampara2, 8, 7);\n \n addObject(nivel, 5, 0);\n addObject(atras, 20, 2); \n }", "@Override\n\tpublic double mencariGajiKotor() {\n\t\treturn super.mencariGajiKotor()+mencariBonus();\n\t}", "public Cafetera(int maximo) {\n\t\t super();\n\t\t this._capacidadMaxima=maximo;\n\t\t this.cantidadActual=maximo;\n\t }", "public Conway(AutomataCelular ac,int fila, int columna)\n {\n super(ac,fila,columna);\n automata = ac;\n this.fila = fila;\n this.columna= columna;\n color=Color.blue;\n estadoActual='v';\n }", "public Bonus (){\n\t\tsuper (); \n\t\t//TODO [CORRECCION] Tiene una clase Config, utilizarla para estos valores fijos.\n\t\tthis.tiempoDeVida = Config.BONUS_VIDA; // cantidad de turnos\n\t\tPosicion posicion = new Posicion(randX.nextInt(), randY.nextInt());\n\t\tTamanio tamanio = new Tamanio(Config.BONUS_ANCHO, Config.BONUS_ALTO);\n\t\tthis.setPosicion(posicion);\n\t\tthis.setTamanio(tamanio);\n\t}", "public ConsumoViaCep() {\n initComponents();\n }", "@Override\r\n public void ingresarCapacidad(){\r\n double capacidad = Math.pow(alto, 3);\r\n int capacidadInt = Double.valueOf(capacidad).intValue();\r\n super.capacidad = capacidadInt;\r\n super.cantidadRestante = capacidadInt;\r\n System.out.println(capacidadInt);\r\n }", "public void setComponenteCosto(ComponenteCosto componenteCosto)\r\n/* 73: */ {\r\n/* 74: 95 */ this.componenteCosto = componenteCosto;\r\n/* 75: */ }", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public void billeBarre() { \t\t\t\t\t\t\t\t\t\t\t\n\t\tint contact = 0;\n\n\t\t// Décomposition de la bille\n\t\t// 2 3 4\n\t\t// 1 5\n\t\t// 8 7 6 \n\n\t\t// Étude des contacts avec les 8 points de la bille\n\t\t// Contact GaucheHaut de la bille\n\n\t\t// Contact haut de la bille\n\t\tint[] p = billeEnCours.MH();\n\t\tif (p[1] <= barreEnCours.bas() && p[1] >= barreEnCours.haut() && p[0] <= barreEnCours.droite() && p[0] >= barreEnCours.gauche()) {\n\t\t\tcontact = 3;\n\t\t}\n\n\t\t// Contact bas de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.MB();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 7;\n\t\t\t}\n\t\t}\n\n\t\t// Contact droite de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.DM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 5;\n\t\t\t}\n\t\t}\n\n\t\t// Contact gauche de la bille\n\t\tif (contact == 0) {\n\t\t\tp = billeEnCours.GM();\n\t\t\tif (((p[1] <= barreEnCours.bas()) && (p[1] >= barreEnCours.haut())) && ((p[0] <= barreEnCours.droite()) && (p[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 1;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 2;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteHaut de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DH();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 4;\n\t\t\t}\n\t\t}\n\n\t\t// Contact GaucheBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.GB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 8;\n\t\t\t}\n\t\t}\n\n\t\t// Contact DroiteBas de la bille\n\t\tif (contact == 0) {\n\t\t\tdouble[] q = billeEnCours.DB();\n\t\t\tif (((q[1] <= barreEnCours.bas()) && (q[1] >= barreEnCours.haut())) && ((q[0] <= barreEnCours.droite()) && (q[0] >= barreEnCours.gauche()))) {\n\t\t\t\tcontact = 6;\n\t\t\t}\n\t\t}\n\n\t\t// Mise à jour de la vitesse \n\n\t\t// Rencontre d'un coin\n\t\tif ((((contact == 2) || (contact == 4))) || ((contact == 8) || (contact == 6))) {\n\t\t\tbilleEnCours.demiTour();\n\t\t}\n\n\t\t// Contact Classique\n\t\t// Gauche - Droite\n\t\tif ((contact == 1) || (contact == 5)) {\n\t\t\tint[] nv = {- billeEnCours.renvoyerVitesse()[0], billeEnCours.renvoyerVitesse()[1]};\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\n\n\t\t// Haut - Bas : Déviation de la balle\n\t\tif ((contact == 3) || (contact == 7)) {\n\t\t\tint[] nv = new int[] {1,1};\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4 && billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0], - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] <= barreEnCours.renvoyerPosition()[0] - barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] - 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tif (billeEnCours.renvoyerPosition()[0] >= barreEnCours.renvoyerPosition()[0] + barreEnCours.renvoyerLargeur()/4) {\n\t\t\t\tnv = new int[] {billeEnCours.renvoyerVitesse()[0] + 1, - billeEnCours.renvoyerVitesse()[1]};\n\t\t\t}\n\t\t\tbilleEnCours.changeVitesse(nv);\n\t\t}\t\t\t\n\n\n\t}", "public int getDatossolicitudBfclasificacionConvenio() {\n return datossolicitudBfclasificacionConvenio;\n }", "public IFactura() {\n initComponents();\n Fecha();\n PrepararTabla();\n Productos();\n Clientes();\n NFct();\n TxtDescuento.setText(\"\"+0);\n Subtotal();\n IVA();\n }", "public float getBusC() {\r\n return costs.get(Transports.BUS);\r\n }", "public frmTaquilla() {\n initComponents();\n \n objSalaSecundaria.setCapacidad(250);\n objSalaSecundaria.setPrecioEntrada(180.0);//esto equivale a asignar los valores a través de de los metodos set\n libres1.setText(\"LIBRES \" + objSalaCentral.getCapacidad());\n }", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}", "public BilanComptable() {\n initComponents();\n \n \n \n }", "public int getCedula() {\n return cedula;\n }", "@Override\n\t\tpublic void afectarPorPantano(double coeficiente) {\n\t\t}", "int getCedula();", "public CorteCaja() {\n initComponents();\n this.setResizable(false);\n fecha = fecha();\n consultaventas();\n consultacambios();\n CulsultaApartados();\n this.setResizable(false);\n LblSubTotal.setText(Double.toString(subtotal));\n LblParesVendidos.setText(Integer.toString(pares));\n LblCambiosRealizados.setText(Integer.toString(ii));\n LblEfectivo.setText(Double.toString(efectivo));\n LblApartados.setText(Double.toString(apartar));\n LblNumApartados.setText(Integer.toString(apartados));\n\n }", "public Comercial(String nombre ,int edad,double salario,double comision){\r\n\t\tsuper(nombre,edad,salario);\r\n\t\tthis.Comision=comision;\r\n\t}", "public Boleta(){\r\n\t\tsuper();\r\n\t}", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "@Override\n public double getCost() {\n\t return 13;\n }", "public int getBloco() {\r\n\t\treturn bloco;\r\n\t}", "public BitacoraHotelera() {\n initComponents();\n tabla();\n this.setTitle(\"BITACORA DEL ÁREA DE HOTELERIA\");\n }", "@Override\n\t\tpublic void afectarPorSuperficieRocosa(float coeficiente) {\n\t\t}", "private void asignaNombre() {\r\n\r\n\t\tswitch (this.getNumero()) {\r\n\r\n\t\tcase 1:\r\n\t\t\tthis.setNombre(\"As de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.setNombre(\"Dos de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.setNombre(\"Tres de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.setNombre(\"Cuatro de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 5:\r\n\t\t\tthis.setNombre(\"Cinco de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 6:\r\n\t\t\tthis.setNombre(\"Seis de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 7:\r\n\t\t\tthis.setNombre(\"Siete de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 10:\r\n\t\t\tthis.setNombre(\"Diez de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 11:\r\n\t\t\tthis.setNombre(\"Once de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\tcase 12:\r\n\t\t\tthis.setNombre(\"Doce de \" + this.getPalo());\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public Cab() {\r\n fare = 50;\r\n }", "protected Double getCAProfessionnel() {\n List<Facture> facturesProfessionnel = this.factureProfessionnelList;\n Double ca = 0.0; \n for(Facture f : facturesProfessionnel )\n ca = ca + f.getTotalHT();\n \n return ca ; \n \n }", "public FacturaCompra cashOnDelivery(String userName,TipoMoneda tipoMoneda);", "@Override\r\n\tdouble getBonificacao() {\n\t\treturn 0;\r\n\t}", "public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }", "public CheeseConnoisseur() {\n this.name = \"Louis Pastuer\";\n this.hold = null;\n this.money = 20;\n }", "@Override\n\tpublic String getCouleur() {\n\t\treturn null;\n\t}", "private void AtulizaBanco(String cod, int matricula, double valor, int qte) {\n try {\n venda.Atualizar(cod, matricula, valor);\n Produto.ProdAtualizarQte(cod, qte);\n } catch (Exception ex) {\n Logger.getLogger(ViewCaixa.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public double darCosto(){\n return costo;\n }", "public void affichage() {\n if (blanc){\n System.out.print(\"Cb\");\n }\n else{\n System.out.print(\"Cn\");\n }\t\t\n }", "public long getCosto() {\n return costo;\n }", "public CadastroComplemento() {\n initComponents();\n \n }", "public void affiche () {\r\n\t\tSystem.out.println(\"Nom du porteur du compte: \" + this.porteur);\r\n\t\tSystem.out.println(\"numéro du compte: \" + this.IBAN);\r\n\t\tSystem.out.println(\"Solde du compte: \" + this.solde);\r\n\t}", "public Conta(String numero, String agencia) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = 0.0;\n }", "public ContribuintesIndividuais() {\n super();\n this.dependentes=0;\n this.nifs = new ArrayList<String>();\n this.coeffiscal=0;\n this.codigos = new ArrayList<String>();\n this.numFilhos = 0;\n }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void afectarPorTormentaPsionica(double coeficiente) {\n\t\t\t\n\t\t}", "public bebedor(String nombre)\n {\n // initialise instance variables\n this.nombre = nombre;\n alcoholimetro = 0;\n }", "public String getCouleur() {\n\t\treturn this.couleur;\n\t}" ]
[ "0.6969201", "0.67273194", "0.6518776", "0.6513558", "0.64950204", "0.64885753", "0.64531636", "0.6417601", "0.63390356", "0.6321697", "0.6231333", "0.6209136", "0.6204379", "0.6201271", "0.6200333", "0.6185585", "0.61711985", "0.61358666", "0.6130241", "0.61235064", "0.61096567", "0.61096567", "0.61096567", "0.60976577", "0.606793", "0.6031538", "0.600425", "0.6000493", "0.59939605", "0.59924775", "0.5991333", "0.59587896", "0.5954164", "0.59528273", "0.5940754", "0.59323263", "0.5924825", "0.5921876", "0.59188515", "0.5916274", "0.5913766", "0.59131485", "0.59080064", "0.5907804", "0.5907804", "0.5887806", "0.5887692", "0.5878587", "0.5876889", "0.58764327", "0.5874889", "0.58740515", "0.58731294", "0.58690363", "0.58672947", "0.58520955", "0.584825", "0.5846805", "0.5844245", "0.58422905", "0.58411187", "0.58402026", "0.58400935", "0.5837072", "0.58334804", "0.58313555", "0.58296084", "0.58291256", "0.58276075", "0.58263534", "0.58239985", "0.58225423", "0.58225363", "0.5809845", "0.5808741", "0.58026016", "0.579114", "0.57907397", "0.57901543", "0.5789273", "0.57892036", "0.5787968", "0.5787014", "0.5778473", "0.57745874", "0.5773043", "0.57728225", "0.5771808", "0.5767478", "0.5764699", "0.57630664", "0.57630354", "0.57591784", "0.5754366", "0.5752928", "0.5750371", "0.5750371", "0.5750371", "0.575007", "0.57454437" ]
0.7482796
0
Devuelve la informacion de la entrada.
@Override public String toString() { String aDevolver= ""; aDevolver += super.toString(); aDevolver += "potenciaCV: " + potenciaCV + "\n"; return aDevolver; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void carregaInformacoes() {\n Pessoa pessoa = (Pessoa) getIntent().getExtras().getSerializable(\"pessoa\");\n edtNome.setText(pessoa.getNome());\n edtEmail.setText(pessoa.getEmail());\n edtTelefone.setText(pessoa.getTelefone());\n edtIdade.setText(pessoa.getIdade());\n edtCPF.setText(pessoa.getCpf());\n }", "private void mostrarInformacionP(){\n System.out.println(\"Nombre: \"+this.nombre);\n System.out.println(\"Sexo: \"+ this.sexo);\n System.out.println(\"Edad: \" + edad);\n\n }", "@Override\n public String descripcion() {\n return \"Viaje incentivo que te envia la empresa \" + empresa;\n }", "public void presenta_Estudiante(){\r\n System.out.println(\"Universidad Técnica Particular de Loja\\nInforme Semestral\\nEstudiante: \"+nombre+\r\n \"\\nAsignatura: \"+nAsignatura+\"\\nNota 1 Bimestre: \"+nota1B+\"\\nNota 2 Bimestre: \"+nota2B+\r\n \"\\nPromedio: \"+promedio()+\"\\nEstado de la Materia: \"+estado());\r\n }", "@Override\n public String getInformacionInstruccion() {\n\treturn \"comando desconocido\";\n }", "public String verDatos(){\n return \"Ataque: \"+ataque+\"\\nDefensa: \"+defensa+\"\\nPunteria: \"+punteria;\n }", "@Override\n public void afficher() {\n super.afficher();\n System.out.println(\"Sexe : \" + getSexe());\n System.out.println(\"Numéro de sécurité sociale : \" + getNumeroSecuriteSociale());\n System.out.println(\"Date de naissance : \" + getDateDeNaissance().format(DateTimeFormatter.ofLocalizedDate(FormatStyle.LONG)));\n System.out.println(\"Commentaires : \" + getCommentaires());\n this.adresse.afficher();\n }", "public String dameDescripcion(){\n return \"Este empleado tiene un id = \"+getId()+\" con un sueldo de \"+getSueldo();\n }", "public String getInformacion() {\n\t\treturn informacion;\n\t}", "public String infoCompletaEmpleado(Empleado empleadoEncontrado){\n String info = \"\";\n info += \"Nombre: \" + empleadoEncontrado.getNombre() + \"\\n\" +\n \"Identificacion: \" + empleadoEncontrado.getIdentificacion() + \"\\n\" +\n \"Facultad: \" + empleadoEncontrado.getFacultad() + \"\\n\" +\n \"Edad: \" + empleadoEncontrado.getEdad() + \"\\n\" +\n \"Sexo: \" + empleadoEncontrado.getSexo() + \"\\n\" +\n \"Fecha de nacimiento (DD/MM/AAAA): \" + empleadoEncontrado.getFechaDeNacimiento() + \"\\n\" + \n \"Estatura (cm): \" + empleadoEncontrado.getEstatura() + \"\\n\" +\n \"Peso: \" + empleadoEncontrado.getPeso() + \"\\n\"+\n \"Enfermedades: \" + \"\\n\"+empleadoEncontrado.getCadenaFactoresRiesgo() + \"\\n\" +\n \"Sintomas Covid: \" +\"\\n\"+ empleadoEncontrado.getCovid() + \"\\n\";\n return info;\n }", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public String toString(){ \r\n return \"Nome: \" + this.nome + \"\\nEmail: \" + this.email +\r\n \"\\nEndereço: \" + this.endereco + \"\\nId: \" + this.id + \"\\n\"; \r\n }", "public void status() {\n System.out.println(\"Nome: \" + this.getNome());\n System.out.println(\"Data de Nascimento: \" + this.getDataNasc());\n System.out.println(\"Peso: \" + this.getPeso());\n System.out.println(\"Altura: \" + this.getAltura());\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn \" id=\" + id + \", nome=\" + nome + \", dat_nasc=\"\r\n\t\t\t\t+ dat_nasc + \", salario=\" + salario + \" \\n \";\r\n\t}", "public void mostrarDatos() {\r\n System.out.println(\"El nombre del cliente es: \" + this.getNombre());\r\n System.out.println(\"El primer apellido es: \" + this.getPrimerApellido());\r\n System.out.println(\"El segundo apellido es: \" + this.getSegundoApellido());\r\n System.out.println(\"La edad es: \" + this.getEdad());\r\n }", "public String info(){\r\n String info =\"\";\r\n info += \"id karyawan : \" + this.idkaryawan + \"\\n\";\r\n info += \"Nama karyawan : \" + this.namakaryawan + \"\\n\";\r\n return info;\r\n }", "@Override\n\tpublic String info() {\n\t\treturn String.valueOf(super.getDonnee());\n\t}", "public void desplegarInformacion() { //\n\n System.out.println(nombre);\n System.out.println(apellido);\n\n }", "@Override\n public String toString() {\n return \"Id del Libro: \"+id+\" Nombre del Libro: \"+nombre+\" Disponibilidad: \"+disponibilidad;\n }", "@Override\n public String toString(){\n return Nombre + \", \" + Clave + \", de \" + horario + \", \" + Maestro;\n }", "public String showInfoMedi(){\n\t\tString msg = \"\";\n\n\t\tmsg += \"NOMBRE DE LA MEDICINA: \"+name+\"\\n\";\n\t\tmsg += \"LA DOSIS: \"+dose+\"\\n\";\n\t\tmsg += \"COSTO POR DOSIS: \"+doseCost+\"\\n\";\n\t\tmsg += \"FRECUENCIA QUE ESTA DEBE SER APLICADA: \"+frecuency+\"\\n\";\n\n\t\treturn msg;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"CODIGO: \" +codigo+ \" NOME: \"+nome+\" DIA: \"+dataInicio+\" HORA:\"+horaInicio+\" LOCAL:\"+local;\n\t}", "@Override\n\tpublic String getInforme() {\n\t\treturn \"INFORME COMERCIAL 3: REPORTE SEMANAL VENTAS\" + \"\\n\" + reporteSemanal.getInformeFinancieroEspecial();\n\t}", "@Override\npublic String toString() {// PARA MOSTRAR LOS DATOS DE ESTA CLASE\n// TODO Auto-generated method stub\nreturn MuestraCualquiera();\n}", "@Override\n\tpublic String dohvatiKontakt() {\n\t\treturn \"Naziv tvrtke: \" + naziv + \", mail: \" + getEmail() + \", tel: \" + getTelefon() + \", web: \" + web;\n\t}", "public String info() {\n\t\t\tString instrumentsString = \" \";\n\t\t\tfor(Instruments i : Instruments.values()){\n\t\t\t\tinstrumentsString +=i.toString() + \"\\n\";\n\t\t\t}\n\t\t\treturn (\"База данных представляет из себя набор старцев(обьектов Olders),\" +\"\\n\"+\n \"каждый из которых имеет поля :\" +\"\\n\"+\n \"id(уникальный идентификатор)\" +\"\\n\"+\n \"name(имя старца)\" +\"\\n\"+\n \"userid(уникальный идентификатор пользователя, который является его владельцем)\" +\"\\n\"+\n \"dateofinit-дата инициализация старца\");\n\t\t}", "@Override\n public String toString() {\n return this.codigo + \" - \" + this.descricao + \" - \" + this.campoDeInteresse;\n }", "@Override\r\n\tpublic String toString() {\n\t\treturn \"Titre : \"+_titre+\" Auteur: \"+_auteur+\" NbEcoutes : \"+_nbEcoutes;\r\n\t}", "@Override\n\tpublic void mostrarinfo(String nombreclase) {\n\t\tsuper.mostrarinfo(nombreclase);\n\t\tSystem.out.println(\"Corte : \" + corte);\n\t\tSystem.out.println(\"Sexo :\" + sexo);\n\t}", "@Override//sobrescribir metodo\n public String getDescripcion(){\n return hamburguesa.getDescripcion()+\" + lechuga\";//retorna descripcion del oobj hamburguesa y le agrega +lechuga\n }", "public void SolicitarDatos() {\n\t\t\r\n\t\tSystem.out.println(\"nombre:\");\r\n\t\tSystem.out.println(\"apellido\");\r\n\t\tSystem.out.println(\"numCedula\");\r\n\t\t\r\n\t}", "@Override\r\n public String toString() {\r\n \r\n DateFormat data = DateFormat.getDateInstance();\r\n return \"Nome: \" + getNome()+ \" \\nCPF: \" + getCpf() + \" \\nTelefone: \"\r\n + getTelefone() + \" \\nData de Nascimento : \" + data.format(getDataNasc())\r\n + \" \\nSexo: \" + getSexo();\r\n }", "public String obtenerDetalles(){\r\n return \"Nombre: \" + this.nombre + \", sueldo = \" + this.sueldo;\r\n }", "public String visualizzaCampo(){\n\t\tString info= new String(\"Nome: \"+ nome +\"\\n\" +\"Descrizione: \" + descrizione+ \"\\n\"+ \"Obbligatoria: \" + obbligatorio +\"\\n\");\n\t\treturn info;\n\t}", "@Override\n public String toString() {\n return getDescricao();\n }", "@Override\n\t\t\tpublic String toString() {\n\t\t\t\treturn nome;\n\t\t\t}", "@Override\r\n public String toString() {\n return this.descripcion;\r\n }", "public void mostrarPersona(){\r\n System.out.println(\"Nombre: \" + persona.getNombre());\r\n System.out.println(\"Cedula: \" + persona.getCedula());\r\n }", "private String validarEntradas()\n { \n return Utilitarios.validarEntradas(campoNomeAC, campoEnderecoAC, campoBairroAC, campoCidadeAC, campoUfAC, campoCepAC, campoTelefoneAC, campoEmailAC);\n }", "public void PoblarINFO(String llamado) {//C.P.M Aqui llega como argumento llamado\r\n try {\r\n rs = modelo.Obteninfo();//C.P.M Mandamos a poblar la informacion de negocio\r\n if (llamado.equals(\"\")) {//C.P.M si el llamado llega vacio es que viene de la interface\r\n while (rs.next()) {//C.P.M recorremos el resultado para obtener los datos\r\n vista.jTNombreempresa.setText(rs.getString(1));//C.P.M los datos los enviamos a la vista de la interface\r\n vista.jTDireccion.setText(rs.getString(2));\r\n vista.jTTelefono.setText(rs.getString(3));\r\n vista.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n if (llamado.equals(\"factura\")) {//C.P.M de lo contrario es llamado de factura y los valores se van a la vista de vactura \r\n while (rs.next()) {//C.P.M recorremos el resultado \r\n vistafactura.jTNombreempresa.setText(rs.getString(1));//C.P.M enviamos los datos a la vista de factura\r\n vistafactura.jTDireccion.setText(rs.getString(2));\r\n vistafactura.jTTelefono.setText(rs.getString(3));\r\n vistafactura.jTRFC.setText(rs.getString(4));\r\n }\r\n }\r\n } catch (SQLException ex) {//C.P.M Notificamos a el usuario si ocurre algun error\r\n JOptionPane.showMessageDialog(null,\"Ocurio un error al intentar consultar la informacion del negocio\");\r\n }\r\n }", "public void informarTeclaPressionada( Tecla t );", "@Override\n\tpublic String toString() {\n\t\treturn this.nombre + \" \" + this.apellidos + \" (ID empleado - \" + this.id + \")\";\n\t}", "public Informations() {\n initComponents();\n \n Affichage();\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.nome + \" (\" + this.funcao + \") - \" + this.biografia + \" - \" + this.email + \" - \" + this.foto + \" - \"\n\t\t\t\t+ this.formacao + \" - \" + this.unidade + \" - \" + this.data;\n\t}", "@Override\n\tpublic String toString() {\n\t\t\n\t\treturn String.format(\"%s/%s, %s, %s, status: %s\",getNome(),getIdentificacao(),getEmail(),getCelular(),status);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn Id +\" \"+ AdiSoyadi +\" \"+ eposta;\n\t}", "@Override\n public String toString() {\n return \"Empleado{\" + \"nombre=\" + nombre + \", edad=\" + edad + \", salario=\" + salario + '}';\n }", "public String toString() {\r\n return nom + \" \" + dateEmbauche;\r\n }", "private void freundDetailsAnzeigen() throws Exception {\n Freund foundFriend = eingabeZumSuchen();\n\n System.out.println(\"Name: \" + foundFriend.getName());\n System.out.println(\"Handy: \" + foundFriend.getHandy());\n System.out.println(\"Telefon: \" + foundFriend.getTelefon());\n System.out.println(\"Adresse: \" + foundFriend.getAdresse());\n System.out.println(\"Geburtstag: \" + foundFriend.getGeburtstag());\n System.out.println(\"Schluessel: \" + foundFriend.getSchluessel());\n\n auswahlAnzeigen();\n }", "@Override\n\t\t\t\tpublic void onEntrada(Object entrada, View view) {\n\t\t\t\t\tif (entrada != null) \n\t\t\t\t\t{\n\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\tTextView TxtDNI1 = (TextView) view.findViewById(R.id.textViewDNI);\n\t\t\t\t\t\tTxtDNI1.setText(((Lista_entrada_ControlAcceso) entrada).get_IdFuncionario()); \n\n\t\t\t\t\t\tTextView TxtPlaca1 = (TextView) view.findViewById(R.id.textView_Placa);\n\t\t\t\t\t\tTxtPlaca1.setText(((Lista_entrada_ControlAcceso) entrada).get_Patente()); \n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtCod1 = (TextView) view.findViewById(R.id.textView_Cod); \n\t\t\t\t\t\tTxtCod1.setText(((Lista_entrada_ControlAcceso) entrada).get_CodError());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtFecha1= (TextView) view.findViewById(R.id.textView_Fecha); \n\t\t\t\t\t\tTxtFecha1.setText(((Lista_entrada_ControlAcceso) entrada).get_Fecha());\n\t\t\t\t\t\t\n\t\t\t\t\t\tTextView TxtHora1 = (TextView) view.findViewById(R.id.textView_Nivel); \n\t\t\t\t\t\tTxtHora1.setText(((Lista_entrada_ControlAcceso) entrada).get_Hora());\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Toast.makeText(mContext,cadenaNueva, Toast.LENGTH_LONG).show();\n\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\r\n\tprotected String requestText() {\n\t\tConsultarIndiceEjecucionAnioRequest consultarIndiceEjecucionAnioRequest = new ConsultarIndiceEjecucionAnioRequest();\r\n\t\tconsultarIndiceEjecucionAnioRequest.setPeriodo(periodo);\r\n\t\tString request = JSONHelper.serializar(consultarIndiceEjecucionAnioRequest);\r\n\t\treturn request;\r\n\t}", "@Override\n public String toString(){\n\n return \"\\n\\n\"+super.toString()+\",\" + \"Dni: \"+ this.dni +\",\"+ \" Nombre: \"+this.Nombre+\",\"+\" ciudad: \"\n +\", \"+\"Ubicacion: \"+this.ubicacion+\", \"+\"Tarjeta de Crédito: \"+this.tarjetaCredito+\", \"+\n \"\\nProductos en Venta{\"+this.productosEnVenta+\"}\"+\", \" + \"\\nProductos Vendidos{\"+this.productosVendidos+\"}\"+\n \", \"+\"\\nProductos Comprados{\"+this.productosComprados+\"}\";\n }", "public void mostrarEstadistica() {\n\t\tHerramientas.println(estadistica);\n\t}", "public String getLasagna(){\n return \"ID: \"+this.ID+\"\\nNombre: \"+this.nombre+\"\\nTipo: \"+this.tipo+\"\\nPrecio: \"+this.precio; //Devuelve todos los datos de la lasagna\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Nombre: \"+this.nombre+\" Cantidad: \"+this.cantidad+\" \"+this.unidadMedida;\n\t}", "@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}", "@Override\n\tpublic String describirActividades() {\n\t\treturn (\"Soy el secretario, recibo documentos, atiendo llamadas telefónicas y atiendo visitas\");\n\t}", "@Override\r\n\tpublic String toString() {\r\n\t\tString entregado;\r\n\t\tif (this.dataDeDevolucao == null)\r\n\t\t\tentregado = \"Emprestimo em andamento\";\r\n\t\telse\r\n\t\t\tentregado = this.dataDevolucaoStr;\r\n\t\treturn \"EMPRESTIMO - De: \" + this.emprestimoid.getNomeDonoItem() + \", Para: \"\r\n\t\t\t\t+ this.emprestimoid.getNomeRequerenteItem() + \", \" + this.emprestimoid.getNomeItem() + \", \"\r\n\t\t\t\t+ this.dataInicialEmprestimoStr + \", \" + this.numeroDiasParaEmprestimo + \" dias, ENTREGA: \" + entregado;\r\n\t}", "private void accionIngresar() {\n\n\t\tString fieldCodigo = this.textCodigo.getText();\n\t\tString fieldNombre = this.textNombre.getText();\n\t\tString fieldDescripcion = this.textDescripcion.getText();\n\t\tString fieldTelefono = this.textTelefono.getText();\n\n\t\t// Si alguno es vacío, mostramos una ventana de mensaje\n\t\tif (fieldNombre.equals(\"\") || fieldCodigo.equals(\"\") || fieldDescripcion.equals(\"\") || fieldTelefono.equals(\"\")) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Debe completar todos los datos marcados con (*).\", \"Datos incompletos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn; }\n\t\t\n\t\t// Controlo el maximo de caracteres\n\t\tif (fieldCodigo.length() > 5) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El código puede contener máximo 5 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldNombre.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El nombre puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldDescripcion.length() > 100) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"La descripción puede contener máximo 100 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t} else if (fieldTelefono.length() > 20) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El teléfono puede contener máximo 20 caracteres\", \"Datos inválidos!\",\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Controlo que el fenomeno no exista ya\n\t\t\n\t\tboolean existe;\n\t\t\n\t\ttry{\n\t\t\texiste = ClienteGeoPosUy.ExisteFenomeno(fieldNombre);\n\t\t} catch (Exception e){\n\t\t\tJOptionPane.showMessageDialog(frame, \"Error de conexión con el servidor. Intente más tarde.\",\n\t\t\t\t\t\"Error de conexión!\", JOptionPane.WARNING_MESSAGE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (existe) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"Ya existe un fenómeno con ese nombre\",\n\t\t\t\t\t\"Fenómeno existente!\", JOptionPane.WARNING_MESSAGE);\n\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Si todo va bien lo doy de alta\n\t\t\n\t\tboolean almacenado = false;\n\t\ttry {\n\t\t\talmacenado = ClienteGeoPosUy.crearFenomeno(fieldCodigo, fieldNombre, fieldDescripcion, fieldTelefono);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (almacenado) {\n\t\t\tJOptionPane.showMessageDialog(frame, \"El fenómeno ha sido registrado con éxito.\",\n\t\t\t\t\t\"Cliente Registrado!\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\n\t\t\t// cerramos la ventanta\n\t\t\tthis.frame.dispose();\n\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tJOptionPane.showMessageDialog(frame, \"Hubo un error al almacenar. Intente nuevamente más tarde\",\n\t\t\t\t\t\"Error al registrar!\", JOptionPane.ERROR_MESSAGE);\n\t\t}\n\t\t\n\t\t\n}", "@Override\n\tpublic void display() {\n\t\tSystem.out.println(\"Pasos dados por \" + a.nombre + \" \" + a.distancia + \" m = \" + pasosActividad + \" / Pasos en total = \" + pasosTotal);\n\t}", "public void acutualizarInfo(){\n String pibId = String.valueOf(comentario.getId());\n labelId.setText(\"#\" + pibId);\n\n String autor = comentario.getAutor().toString();\n labelAutor.setText(autor);\n\n String fecha = comentario.getFechaCreacion().toString();\n labelFecha.setText(fecha);\n \n String contenido = comentario.getContenido();\n textAreaContenido.setText(contenido);\n \n String likes = ((Integer)comentario.totalLikes()).toString();\n labelLikes.setText(likes);\n \n Collection<Comentario> comments = socialNetwork.searchSubComentarios(comentario);\n panelSubComentarios.loadItems(comments, 15);\n \n if(comentario.isSubcomentario()){\n jButton4.setEnabled(true);\n }\n else{\n jButton4.setEnabled(false);\n }\n }", "@Override\r\n\tpublic void getInfo() {\n\t\tSystem.out.println(\"=== 선생 정보 ===\");\r\n\t\tsuper.getInfo();\r\n\t\tSystem.out.println(\"과목 : \" + text);\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn this.nome;\r\n\t}", "public String toString () {\n return nom + \" \" + dateEmbauche;\n }", "void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"------------------------\\n\"\r\n\t\t\t\t+ this.getCognome() + \", \" + this.getNome() + \"\\n\" +\r\n\t\t\t\t\"mail: \" + this.getEmail() + \"\\n\" + \r\n\t\t\t\t\"tel: \" + this.getNumeroTelefono() + \"\\n\" +\r\n\t\t\t\t\"------------------------\";\r\n\t}", "public java.lang.String getEntidad() {\n return entidad;\n }", "public String mensagemDeRegistros(){//METODO QUE DIZ INICIO E FIM DOS REGISTROS LISTADOS\r\n\t\treturn dao.getMensagemNavegacao();\r\n\t}", "public void agregarDatosClienteText(){\n try{\n \n if(codigoCliente== null){\n return; //para que nos mantenga siempre en el imput\n } \n \n ClienteDao clienteDao = new ClienteDaoImp();\n //obtenemos la instancia de Cliente en Base a su codigo\n this.cliente = clienteDao.obtenerClientePorCodigo(codigoCliente);\n \n if(cliente != null){\n codigoCliente = null;\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodCliente\");\n //Mensaje de confirmacion de exito de la operacion \n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO,\"Correcto\", \"Cliente agregado correctamente!\");\n FacesContext.getCurrentInstance().addMessage(null, message); \n }else{\n codigoCliente = null;\n RequestContext.getCurrentInstance().update(\"frmFactura:inputCodCliente\");\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_ERROR,\"Error\", \"Cliente No encontrado con ese codigo\");\n FacesContext.getCurrentInstance().addMessage(null, message); \n }\n \n //codigoCliente = null; \n }catch(Exception e){\n e.printStackTrace();\n } \n }", "@Override\n\tpublic String toString() {\n\t\treturn this.getsTenkhoanquy() + \" : \" + this.fSotienconlai\n\t\t\t\t+ this.sLoaitiente;\n\t}", "@Override\n\tpublic String exibirDados() {\n\t\ttoString();\n\t\tString message = toString() + \"\\nimc: \" + calculaImc();\n\t\treturn message;\n\t}", "public String toString() {\n\t\treturn this.titel + \" \" + this.name + \" (\" + this.mail + \")\";\n\t}", "public String toString() {\n\t\treturn tipo + \" : \" + descripcion;\n\t}", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public void affiche () {\r\n\t\tSystem.out.println(\"Nom du porteur du compte: \" + this.porteur);\r\n\t\tSystem.out.println(\"numéro du compte: \" + this.IBAN);\r\n\t\tSystem.out.println(\"Solde du compte: \" + this.solde);\r\n\t}", "public EncabezadoRespuesta entradaAsistencia(AsistenciaDTO asistencia) {\n\t\t//Primero generamos el identificador unico de la transaccion\n\t\t\t\tString uid = GUIDGenerator.generateGUID(asistencia);\n\t\t\t\t//Mandamos a log el objeto de entrada\n\t\t\t\tLogHandler.debug(uid, this.getClass(), \"entradaAsistencia - Datos Entrada: \" + asistencia);\n\t\t\t\t//Variable de resultado\n\t\t\t\tEncabezadoRespuesta respuesta = new EncabezadoRespuesta();\n\t\t try {\n\t\t \tif (asistencia.getIdEmpleado() == null) {\n\t\t \t\tthrow new ExcepcionesCuadrillas(\"Es necesario el id del empleado.\");\n\t\t \t}\n\t\t \tif (asistencia.getUsuarioAlta() == null || asistencia.getUsuarioAlta().trim().isEmpty()) {\n\t\t \t\tthrow new ExcepcionesCuadrillas(\"Es necesario el usuario.\");\n\t\t \t}\n\t\t \tAsistenciaDAO dao = new AsistenciaDAO();\n\t\t \trespuesta = dao.entradaAsistencia(uid, asistencia);\n\n\t\t } catch (ExcepcionesCuadrillas ex) {\n\t\t\t\t\tLogHandler.error(uid, this.getClass(), \"entradaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t\trespuesta.setUid(uid);\n\t\t\t\t\trespuesta.setEstatus(false);\n\t\t\t\t\trespuesta.setMensajeFuncional(ex.getMessage());\n\t\t\t\t\trespuesta.setMensajeTecnico(ex.getMessage());\n\t\t\t\t}\n\t\t\t\tcatch (Exception ex) {\n\t\t\t\t\tLogHandler.error(uid, this.getClass(), \"entradaAsistencia - Error: \" + ex.getMessage(), ex);\n\t\t\t\t\trespuesta.setUid(uid);\n\t\t\t\t\trespuesta.setEstatus(false);\n\t\t\t\t\trespuesta.setMensajeFuncional(ex.getMessage());\n\t\t\t\t\trespuesta.setMensajeTecnico(ex.getMessage());\n\t\t\t\t}\n\t\t\t\tLogHandler.debug(uid, this.getClass(), \"entradaAsistencia - Datos Salida: \" + respuesta);\n\t\t\t\treturn respuesta;\n\t}", "private String formulerMonNom() {\n\t return \"Je m'appelle \" + this.nom; // appel de la propriété nom\n\t }", "@Override\n public String toString() {\n return nome + placa;\n }", "@Override\r\n\tpublic void entregarDinero() {\n\t\tSystem.out.println(\"Total de dinero entrgado\");\r\n\t}", "public String pedirDato() \r\n\t{\r\n\t\treturn (JOptionPane.showInputDialog(null,\"Ingrese un dato\",\"Titulo del InputDialog\",JOptionPane.INFORMATION_MESSAGE));\r\n\t}", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public void cambioEstadAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAvaluo()) || \"\".equals(mBRadicacion.Radi.getEstadoAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.CambioEstRad(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"La informacion ha sido guardada correctamente\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').hide()\");\r\n ListSeguimiento = Seg.ConsulSeguimAvaluos(mBsesion.codigoMiSesion());//VARIABLES DE SESION\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".cambioEstadAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "@Override\r\n public String toString() {\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n \r\n return (\r\n \"\\n\" +\r\n \"Codigo tour: \" + this.getCodigoIdentificacion() + \"\\n\" +\r\n \"Nombre Comercial: \" + this.getNombreComercial() + \"\\n\" +\r\n \"Lugar de salida: \" + this.getLugarPartida() + \"\\n\" +\r\n \"Fecha de salida: \" + sdf.format(this.getFechaSalida()) + \"\\n\" +\r\n \"Fecha de regreso: \" + sdf.format(this.getFechaRegreso()) + \"\\n\" +\r\n \"Precio: \" + String.format(\"$ %(,.0f\", this.getPrecio()) + \"\\n\" +\r\n \"Estadía (días): \" + this.calcularEstadia() + \"\\n\" +\r\n \"Costo: \" + String.format(\"$ %(,.0f\", this.calcularPrecio()) + \"\\n\" +\r\n \"Nombre empresa: \" + this.getNombreEmpresa() + \"\\n\" +\r\n \"Tipo de empresa: \" + this.getTipo() + \"\\n\" +\r\n \"Viajero frecuente:\" + (this.isViajeroFrecuente() ? \"Si\\n\" : \"No\\n\")\r\n );\r\n }", "@Override\r\n public String toString() {\r\n return \"Equipamento{\" + \"nome=\" + nome + \", cliente=\" + cliente + '}';\r\n }", "public void consultaDinero(){\r\n System.out.println(this.getMonto());\r\n }", "public String cambiarEstado() {\n\t\ttry {\n\t\t\tMensaje.crearMensajeINFO(managergest.cambioEstadoItem(getOfertadelsita().getOferId()));\n\t\t\tgetListaOferta().clear();\n\t\t\tgetListaOferta().addAll(managergest.findAllofertasOrdenadas());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"\";\n\t}", "@Override\n\tpublic String toString () {\n\t\treturn tituloCD + \" - Autor/Artista: \" + autorCD;\n\t}", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "public String getContrasena() {return contrasena;}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"nombre:%s, direccion: %s, telefono: %s\", nombre_banco, direccion, telefono);\n\t}", "@Override\n\tpublic void attaquer() {\n\t\tSystem.out.println(\"Je suis \" + this.nom + \", j'ai \" + this.age + \" ans et je cueille le gui !\");\n\t}", "public void formatarDadosEntidade(){\n\t\tcodigoMunicipioOrigem = Util.completarStringZeroEsquerda(codigoMunicipioOrigem, 10);\n\t\tcodigoClasseConsumo = Util.completarStringZeroEsquerda(codigoClasseConsumo, 2);\n\n\t}", "@Override\n\tpublic String getDescription() {\n\t\treturn \"Transfereix vida a l'enemic\";\n\t}", "public void mostrarDados() {\n txtId.setText(\"\" + lista.get(indice).getId());\n txtNome.setText(lista.get(indice).getNome());\n txtEmail.setText(lista.get(indice).getEmail());\n txtSenha.setText(lista.get(indice).getSenha());\n preencheTabela();\n }", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "@Override\n\tpublic String getInformeVendedor() {\n\t\treturn \"Informe trimestre 3\";\n\t}", "private void yas(){\n System.out.println(namn);\n \n try{\n String fraga = \"SELECT TEXT FROM INLAGG WHERE RUBRIK = 'Borttappad strumpa'\";\n String XD = db.fetchSingle(fraga);\n System.out.println(XD);\n txtInlagg.append(XD);\n }\n catch(InfException e){\n JOptionPane.showMessageDialog(null, \"Kunde ej hämta inlägg\");\n }\n }", "@Override\n\tpublic String toString() {\n\t\tString description = \"Client n°\"+num+\" : [\"+super.toString()+\"]\";\n\t\tif(fournisseur) {\n\t\t\tdescription +=\"\\n\\t\\trole suplementaire : fournisseur\";\n\t\t}\n\t\treturn description;\n\t}", "public void printAnnuNom() \n {\n System.out.println(\"Annuaire de \"+nomAnnuaire);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tString chaine = \"\\t * Transaction * \\t\\n\";\r\n\t\tchaine = chaine + \"[somme : \"+ this.somme + \"] \";\r\n\t\tchaine = chaine + \"[payeur : \"+ this.payeur + \"] \";\r\n\t\tchaine = chaine + \"[receveur :\"+ this.receveur + \"] \";\r\n\t\treturn chaine;\r\n\t}" ]
[ "0.7329119", "0.72088814", "0.70796794", "0.7013138", "0.6878093", "0.6826161", "0.6819203", "0.68036073", "0.67254364", "0.6712577", "0.668846", "0.6558647", "0.65095943", "0.64897686", "0.64707273", "0.6469215", "0.64449483", "0.644492", "0.6426964", "0.6421699", "0.64171803", "0.63626933", "0.635039", "0.63487244", "0.633694", "0.6332549", "0.63205343", "0.6309665", "0.6304037", "0.6298784", "0.62889004", "0.62777305", "0.62675244", "0.62557334", "0.6229578", "0.622837", "0.62248015", "0.6222782", "0.6214975", "0.62023133", "0.6201128", "0.6196841", "0.6186408", "0.61835235", "0.616424", "0.61572146", "0.61504513", "0.61483", "0.61450726", "0.6140306", "0.6127388", "0.60905427", "0.6088811", "0.60848844", "0.6080171", "0.6077139", "0.6077139", "0.60747313", "0.60708714", "0.6066121", "0.60649765", "0.60604763", "0.60512763", "0.6050684", "0.6044806", "0.60364157", "0.60318905", "0.6022201", "0.600736", "0.6003809", "0.60030675", "0.6002853", "0.60018873", "0.6000651", "0.598596", "0.5980793", "0.5974771", "0.5966317", "0.5965804", "0.5965181", "0.59598213", "0.5957125", "0.5956374", "0.59489125", "0.59486884", "0.5945093", "0.59367526", "0.5932127", "0.5929072", "0.5926717", "0.59256506", "0.59242463", "0.5923397", "0.59186465", "0.59044147", "0.59039855", "0.590216", "0.5901758", "0.5893934", "0.58882356", "0.58857965" ]
0.0
-1
If key is a String, we can use it as it is, otherwise, serialize to byte[] and encode in base64
private String serializeKey(String topic, K key) { if (key instanceof String) { return (String) key; } if (keySchema instanceof PulsarKafkaSchema) { ((PulsarKafkaSchema<K>) keySchema).setTopic(topic); } byte[] keyBytes = keySchema.encode(key); return Base64.getEncoder().encodeToString(keyBytes); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String base64Encode(final byte[] key) {\n return Base64.encode(key);\n }", "@SuppressWarnings(\"unused\")\n private static String getKeyString(Key key)\n {\n return Base64.encode(key.getEncoded());\n }", "public String base64Encode(String str) throws StoreFactoryException;", "public String encodeKey() {\n byte[] keyByte = secretKey.getEncoded();\n return Base64.getEncoder().encodeToString(keyByte);\n }", "public JsonWriter key(Binary key) {\n startKey();\n\n if (key == null) {\n throw new IllegalArgumentException(\"Expected map key, but got null.\");\n }\n\n writer.write('\\\"');\n writer.write(key.toBase64());\n writer.write('\\\"');\n writer.write(':');\n return this;\n }", "public static byte[] encryptBase64(final byte[] input, final PublicKey key) throws DattackSecurityException {\n return Base64.getEncoder().encode(execEncryptionOperation(input, Cipher.ENCRYPT_MODE, key));\n }", "static String convertToBase64(byte[] image){\n return !Objects.isNull(image)\n ? Base64.getEncoder().encodeToString(image)\n : \"\";\n }", "private String encode(APIKey apiKey) {\n if (!signer.sign(apiKey)) {\n return null;\n }\n\n String json = apiKey.toJson();\n String base64 = new String(Base64.getEncoder().encode(json.getBytes()));\n return String.format(\"%s.%s\", base64, apiKey.getApiKeySignature());\n }", "private static String encodeBase64(String stringToEncode){\r\n\t\treturn Base64.getEncoder().encodeToString(stringToEncode.getBytes());\t\r\n\t}", "default String codificarBase64(String contenido) {\n\t\tbyte[] encoded = Base64.getEncoder().encode(contenido.getBytes(StandardCharsets.UTF_8));\n\t\treturn new String(encoded);\n\t}", "private static void setPropertyBytes(String key, byte[] value)\r\n/* 105: */ throws IOException\r\n/* 106: */ {\r\n/* 107:100 */ setProperty(key, Base64Utils.base64Encode(value));\r\n/* 108: */ }", "private static void showKeysInBase64(KeyPair keyPair) {\r\n\r\n\t\tfinal byte[] encodedPrivateKey = keyPair.getPrivate().getEncoded();\r\n\t\tfinal byte[] encodedPublicKey = keyPair.getPublic().getEncoded();\r\n\t\tSystem.out.printf(\"encoded private key length[%3d], encoded public key length[%3d]%n\", encodedPrivateKey.length,\r\n\t\t\t\tencodedPublicKey.length);\r\n\t\tfinal String base64Priv = Base64.getUrlEncoder().encodeToString(encodedPrivateKey);\r\n\t\tfinal String base64Pub = Base64.getUrlEncoder().encodeToString(encodedPublicKey);\r\n\t\tSystem.out.printf(\"private key changed to Base64 (length[%3d]):%n [%s]%n\", base64Priv.length(), base64Priv);\r\n\t\tSystem.out.printf(\"public key changed to Base64 (length[%3d]):%n [%s]%n\", base64Pub.length(), base64Pub);\r\n\t}", "public static String getEncodedKey(final String key)\n {\n String encodedKey = key;\n \n try {\n final int ontEnd = key.indexOf(ONT_SEPARATOR);\n if (ontEnd != -1) { \n final String prefix = key.substring(0, ontEnd + 1);\n final String name = key.substring(ontEnd + 1, key.length());\n final String encodedName = java.net.URLEncoder.encode(name, \"UTF-8\");\n if (name != encodedName) {\n encodedKey = prefix + encodedName;\n if (DEBUG.RDF) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n } else {\n encodedKey = java.net.URLEncoder.encode(key, \"UTF-8\");\n if (DEBUG.RDF && encodedKey != key) Log.debug(\"encoded \" + Util.tags(key) + \" to \" + Util.tags(encodedKey));\n }\n }\n catch (java.io.UnsupportedEncodingException e) {\n Log.warn(\"encoding key \" + Util.tags(key), e); \n }\n \n return encodedKey;\n }", "private static byte[] getPropertyBytes(String key)\r\n/* 98: */ throws IOException\r\n/* 99: */ {\r\n/* 100: 95 */ String value = getProperty(key);\r\n/* 101: 96 */ return value == null ? new byte[0] : Base64Utils.base64Decode(value);\r\n/* 102: */ }", "private static String encodeToBase64(byte[] data) {\n return Base64.encodeToString(data, BASE64_EFLAGS);\n }", "public static String encrypt(String input) {\n\t\tBase64.Encoder encoder = Base64.getMimeEncoder();\n String message = input;\n String key = encoder.encodeToString(message.getBytes());\n return key;\n\t}", "private Base64(){}", "public CodePointIterator base64Encode() {\n return base64Encode(Base64Alphabet.STANDARD, true);\n }", "@Override\n public void setKey(byte[] key) {\n }", "public String encodePassword(String normalPassword, String key);", "public String encode() {\n return encodeToBase64(encKey.getEncoded()) + \":\" + encodeToBase64(macKey.getEncoded());\n }", "public static String encB64(byte[] data) {\n return Base64.encodeToString(data,Base64.DEFAULT);\n }", "public static byte[] base64Decode(final String key) {\n return Base64.decode(key);\n }", "public static byte[] base642Byte(String base64Key) throws IOException {\n BASE64Decoder decoder = new BASE64Decoder();\n return decoder.decodeBuffer(base64Key);\n }", "public static String encode(String inString, String type, String Key) throws Exception{\r\n\t\tStringBuilder encodedString = new StringBuilder();\r\n\t\tString thisString;\r\n\t\tencodedString.append(\"<encrypted type=\" + type + \" key=\");\r\n\t\tif(type==\"Caesar\"){\r\n\t\t\tencodedString.append(Integer.toHexString(Integer.parseInt(Key)) + \"> \");\r\n\t\t\tchar[] alphabet ={'a','b','c','d','e','f','g','h','i','j','k','l','m',\r\n\t\t\t\t\t'n','o','p','q','r','s','t','u','v','w','x','y','z','å','ä','ö','A','B',\r\n\t\t\t\t\t'C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U',\r\n\t\t\t\t\t'V','W','X','Y','Z','Å','Ä','Ö','0','1','2','3','4','5','6','7','8','9',\r\n\t\t\t\t\t'!','?',')','(','=','>','<','/','&','%','#','@','$','[',']'};\r\n\t\t\tfor(int i = 0; i < inString.length(); i++){\r\n\t\t\t\tchar a = inString.charAt(i);\r\n\t\t\t\tint used = 0;\r\n\t\t\t\tfor(char b: alphabet){\r\n\t\t\t\t\tif(b==a){\r\n\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\tthisString = String.format(\"%02x\",(int)alphabet[(indexOf(alphabet,b)\r\n\t\t\t\t\t\t\t\t\t+Integer.parseInt(Key))%alphabet.length]);\r\n\t\t\t\t\t\t\tencodedString.append(thisString);\r\n\t\t\t\t\t\t\tused = 1;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}catch(Exception c){\r\n\t\t\t\t\t\t\tSystem.out.print(c.getMessage());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(used==0){\r\n\t\t\t\t\tthisString = String.format(\"%02x\", (int)a);\r\n\t\t\t\t\tencodedString.append(thisString);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\telse if(type==\"AES\"){\r\n\t\t\tfor(int i = 0; i<Key.length();i++){\r\n\t\t\t\tencodedString.append(String.format(\"%02x\", (int)Key.charAt(i)));\r\n\t\t\t}\r\n\t\t\tencodedString.append(\">\");\r\n\t\t\tencodedString.append(\" \");\r\n\t\t\tbyte[] keyContent = Base64.getDecoder().decode(Key);\r\n\t\t\tSecretKeySpec AESkey = new SecretKeySpec(keyContent,0,keyContent.length, \"AES\");\r\n\t\t\tSystem.out.println(keyContent);\r\n\t\t\t\r\n\t\t\tCipher AEScipher = Cipher.getInstance(\"AES\");\r\n\t\t\tAEScipher.init(Cipher.ENCRYPT_MODE, AESkey);\r\n\t\t\tbyte[] cipherData = AEScipher.doFinal(inString.getBytes());\r\n\t\t\tfor(byte b: cipherData){\r\n\t\t\t\tencodedString.append(String.format(\"%02x\", b));\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new Exception(\"Unknown encryption\");\r\n\t\t}\r\n\t\tencodedString.append(\" </encrypted> \");\r\n\t\treturn encodedString.toString();\r\n\t\t\r\n\t}", "public byte[] encode(String S) {\n byte[] SBytes = S.getBytes();\n byte[] result = new byte[SBytes.length];\n int j=0;\n int reset=0;\n for(int i=0;i<SBytes.length;i++){\n result[i]=(byte)(SBytes[i]+key[i-key.length*reset]);\n j++;\n if(j==key.length) {\n j = 0;\n reset++;\n }\n }\n return result;\n }", "byte[] getEncoded() {\n return hmacKey.getEncoded();\n }", "byte[] getKey();", "private void checkStringKey(Key key) {\n m_logger.debug(\"checkByteArrKey start key:\" + key.toString());\n if(m_cache != null){\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n }\n if (m_checked){\n m_logger.debug(\"checkByteArrKey end.\");\n \treturn;\n }\n if (key instanceof String) {\n if (!(m_cache instanceof StringMap)) {\n \tm_logger.debug(\"Cache HashCode:\" + m_cache.hashCode());\n throw new RuntimeException(\"Wrong map/set for String key\");\n }\n }\n m_checked = true;\n m_logger.debug(\"checkByteArrKey end.\");\n }", "private static String encodeWritable(Writable obj) throws IOException {\n DataOutputBuffer buf = new DataOutputBuffer();\n obj.write(buf);\n Base64 encoder = new Base64(0, null, true);\n byte[] raw = new byte[buf.getLength()];\n System.arraycopy(buf.getData(), 0, raw, 0, buf.getLength());\n return encoder.encodeToString(raw);\n }", "java.lang.String getEncoded();", "public static String base64Encode(byte[] input) {\n return DatatypeConverter.printBase64Binary(input);\n }", "private String encodeBase64(String msg) {\n\t\tbyte[] bytesEncoded = Base64.encodeBase64(msg.getBytes());\n\t\t//System.out.println(\"encoded value is \" + new String(bytesEncoded));\n\n\t\treturn new String(bytesEncoded);\n\t}", "public static byte[] getEncryptRawKey() {\n\n try {\n /*byte[] bytes64Key = App.RealmEncryptionKey.getBytes(\"UTF-8\");\n KeyGenerator kgen = KeyGenerator.getInstance(\"AES\");\n SecureRandom sr = SecureRandom.getInstance(\"SHA1PRNG\");\n sr.setSeed(bytes64Key);\n kgen.init(128, sr);\n SecretKey skey = kgen.generateKey();\n byte[] raw = skey.getEncoded();*/\n\n byte[] key = new BigInteger(App.RealmEncryptionKey, 16).toByteArray();\n return key;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "private byte[] encode(byte[] msg) {\r\n\t\treturn Base64.encode(msg);\r\n\t}", "public void setKeyBytes(byte[] key){\n\t\t\n\t\tsetKey(new String(key));\n\t}", "private String encrypt(SecretKey key, String value) {\n\t\ttry {\n\n\t\t\tCipher cipher = Cipher.getInstance(\"AES\");\n\t\t\tcipher.init(Cipher.ENCRYPT_MODE, key);\n\n\t\t\tbyte[] encrypted = cipher.doFinal(value.getBytes());\n\t\t\treturn Base64.encodeBase64String(encrypted);\n\t\t} catch (InvalidKeyException | NoSuchAlgorithmException | BadPaddingException | IllegalBlockSizeException\n\t\t\t\t| NoSuchPaddingException ex) {\n\t\t\tSystem.out.println(ex.getMessage());\n\t\t}\n\n\t\treturn null;\n\t}", "public abstract byte[] getEncoded();", "public abstract byte[] encode () throws IOException;", "public void setKeyEncode(byte[] keys) {\n\t\ttry {\n\t\t\tthis.key = (SecretKey) new SecretKeySpec(keys, algorithm);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "String encryption(Long key, String encryptionContent);", "String encrypt(String input) {\n\t\treturn BaseEncoding.base64().encode(input.getBytes());\n\t}", "public byte[] doEncoding(byte[] bArr) {\r\n return bArr == null ? null : Base64.encodeBase64(bArr);\r\n }", "static String base64encode(byte[] bytes)\n {\n StringBuilder builder = new StringBuilder(((bytes.length + 2)/ 3) * 4);\n for (int i = 0; i < bytes.length; i += 3)\n {\n byte b0 = bytes[i];\n byte b1 = i < bytes.length - 1 ? bytes[i + 1] : 0;\n byte b2 = i < bytes.length - 2 ? bytes[i + 2] : 0;\n builder.append(BASE64_CHARS[(b0 & 0xFF) >> 2]);\n builder.append(BASE64_CHARS[((b0 & 0x03) << 4) | ((b1 & 0xF0) >> 4)]);\n builder.append(i < bytes.length - 1 ? BASE64_CHARS[((b1 & 0x0F) << 2) | ((b2 & 0xC0) >> 6)] : \"=\");\n builder.append(i < bytes.length - 2 ? BASE64_CHARS[b2 & 0x3F] : \"=\");\n }\n return builder.toString();\n }", "public static String byteToBase64(byte[] data){\n BASE64Encoder endecoder = new BASE64Encoder();\n return endecoder.encode(data);\n }", "public static byte[] convertToByteArray(String key)\n\t{\n\t byte[] b = new byte[key.length()/2];\n\t\n\t for(int i=0, bStepper=0; i<key.length()+2; i+=2)\n\t if(i !=0)\n\t b[bStepper++]=((byte) Integer.parseInt((key.charAt(i-2)+\"\"+key.charAt(i-1)), 16));\n\t\n\t return b;\n\t}", "public static String base64Encode(String str) {\n sun.misc.BASE64Encoder encoder = new sun.misc.BASE64Encoder();\n byte[] bytes = str.getBytes();\n return encoder.encode(bytes);\n\n }", "@Override\n\tpublic void Encrypt(Object key) {\n\n\t}", "private byte[] toBytes(String obj){\n return Base64.getDecoder().decode(obj);\n }", "private String encode(String str) {\n verifyNotNull(str, ERROR_MESSAGE);\n byte[] bytes = str.getBytes();\n return Base64.getEncoder()\n .withoutPadding()\n .encodeToString(bytes);\n }", "public byte[] get(byte[] key);", "public static String toBase64(byte[] data)\n {\n return Base64.encodeToString(data, Base64.NO_WRAP);\n }", "private static String descifrarBase64(String arg) {\n Base64.Decoder decoder = Base64.getDecoder();\n byte[] decodedByteArray = decoder.decode(arg);\n\n return new String(decodedByteArray);\n }", "public boolean put(byte[] key, byte[] value) throws Exception;", "public String toUrlSafe() {\n// try {\n //todo: key encoder\n return Base64.getEncoder().encodeToString(new Gson().toJson(this).getBytes());\n// return URLEncoder.encode(\"\", UTF_8.name());\n// return URLEncoder.encode(TextFormat.printToString(toPb()), UTF_8.name());\n// } catch (UnsupportedEncodingException e) {\n// throw new IllegalStateException(\"Unexpected encoding exception\", e);\n// }\n }", "public Base64StringKeyGenerator(Base64.Encoder encoder) {\n this(encoder, DEFAULT_KEY_LENGTH);\n }", "public static String base64EncodeString(String input) throws Exception\n {\n return base64Encode(input.getBytes(\"UTF-8\"));\n }", "private void encode(){\r\n \r\n StringBuilder sb = new StringBuilder();\r\n \r\n /*\r\n *if a character code is >126 after adding the encryption key, subtract \r\n *95 to wrap\r\n */\r\n for(int i = 0; i < message.length(); i++){\r\n if(message.charAt(i) + key > 126){\r\n int wrappedKey = message.charAt(i) + key - 95;\r\n \r\n sb.append((char) wrappedKey);\r\n \r\n /*\r\n *if a character code ins't > 126 after adding the encryption key\r\n */\r\n } else{\r\n int wrappedKey = message.charAt(i) + key;\r\n sb.append( (char) wrappedKey);\r\n }\r\n }\r\n /*\r\n *case coded message to a string\r\n */\r\n codedMessage = sb.toString();\r\n }", "private static String extractBase64EncodedKey(String pemKey) throws GeneralSecurityException\n {\n Matcher matcher = KEY_PATTERN.matcher(pemKey);\n if (matcher.find())\n {\n return matcher.group(1).replaceAll(\"\\\\s\", \"\");\n }\n else\n {\n throw new GeneralSecurityException(\"Invalid private key format\");\n }\n }", "public Base64StringKeyGenerator() {\n this(DEFAULT_KEY_LENGTH);\n }", "default String normalizeKey(String key) {\r\n\t\treturn key.intern();\r\n\t}", "private String byteToBase64(final byte[] bytes) {\n String str = DatatypeConverter.printBase64Binary(bytes);\n return str;\n }", "protected String keyToString(Object rawKey)\n {\n if (rawKey instanceof String) {\n return (String) rawKey;\n }\n return String.valueOf(rawKey);\n }", "private String exportkey() {\n\n\t\ttry {\n\t\t\tbyte[] keyBytes = serversharedkey.getEncoded();\n\t\t\tString encodedKey = new String(Base64.encodeBase64(keyBytes), \"UTF-8\");\n\t\t\tFile file = new File(\"serversharedKey\");\n\t\t\t//System.out.println(\"The server Private key: \" + encodedKey);\n\t\t\tPrintWriter writer = new PrintWriter(file, \"UTF-8\");\n\t\t\twriter.println(encodedKey);\n\t\t\twriter.close();\n\n\t\t\treturn encodedKey;\n\n\t\t} catch (UnsupportedEncodingException | FileNotFoundException ex) {\n\t\t\tLogger.getLogger(ClientTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\treturn null;\n\t}", "public static String base64Encode(byte[] bytes)\n {\n return DatatypeConverter.printBase64Binary(bytes);\n }", "public SecretKey getKeyFromString(String keyString){\n byte[] decodedKey = DatatypeConverter.parseBase64Binary(keyString);\n SecretKey key = new SecretKeySpec(decodedKey, 0, decodedKey.length, \"AES\");\n return key;\n }", "public byte[] getKeyBytes(){\n\t\t\n\t\tif(this.key == null) return null;\n\t\treturn getKey().getBytes();\n\t}", "public SessionKey (String keyString) {\n byte[] keyByte = Base64.getDecoder().decode(keyString.getBytes());\n //Decodes a Base64 encoded String into a byte array\n int keyLength = keyByte.length;\n this.secretKey = new SecretKeySpec(keyByte, 0, keyLength, \"AES\");\n //Construct secret key from the given byte array.\n }", "public Base64StringKeyGenerator(int keyLength) {\n this(Base64.getEncoder(), keyLength);\n }", "private Base64(){\n\t}", "public StringBuilder encodeKey(StringBuilder key, long seed) {\n\t\tif (getStringBuilder()!=null && isNumber(key,false)) {\n\t\t\tint sVar = ((int) (seed % 200));\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString str = \"\";\n\t\t\tint\tval = 0;\n\t\t\tint idx = 0;\n\t\t\tint end = 0;\n\t\t\tchar[] characters = new char[getStringBuilder().length()];\n\t\t\tgetStringBuilder().getChars(0, getStringBuilder().length(), characters, 0);\n\t\t\tfor (int p = 0; p < characters.length; p++) {\n\t\t\t\tidx = p % key.length();\n\t\t\t\tend = idx + 3;\n\t\t\t\tif (end > key.length()) {\n\t\t\t\t\tend = key.length();\n\t\t\t\t}\n\t\t\t\tval = (Character.valueOf(characters[p]) + ((Integer.parseInt(key.substring(idx,end))) / 2) + sVar);\n\t\t\t\tstr = \"\" + val;\n\t\t\t\twhile (str.length() < 3) {\n\t\t\t\t\tstr = \"0\" + str;\n\t\t\t\t}\n\t\t\t\ts.append(str);\n\t\t\t}\n\t\t\tsetStringBuilder(s);\n\t\t\tcompress(getCharCompressForKey(key,seed));\n\t\t}\n\t\treturn getStringBuilder();\n\t}", "public String encrypt(String key, byte[] data) throws IOException, InvalidCipherTextException {\n if (!data.equals(\"\")) {\n\n InputStream inData = new ByteArrayInputStream(data);\n ByteArrayOutputStream outData = new ByteArrayOutputStream();\n encrypt(key, inData, outData);\n\n byte[] byt = outData.toByteArray();\n\n return new String(org.bouncycastle.util.encoders.Base64.encode(byt));\n }\n return null;\n }", "public static String encodeTobase64(Bitmap image){\n if(image != null) {\n Bitmap image2 = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n image2.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n\n Log.d(\"Image Log:\", imageEncoded);\n return imageEncoded;\n }\n else{\n return \"\";\n }\n }", "public static String buildCacheKey(String... keyParts) {\n // Ignore blank keyPart\n String joinedKeyStr =\n Stream.of(keyParts)\n .filter(s -> !StringUtils.isBlank(s))\n .collect(Collectors.joining(\",\"));\n\n return Base64.getEncoder().encodeToString(joinedKeyStr.getBytes());\n }", "@Test\n public void testEncodeDecodeBase64() {\n ///////////////////////////////\n // plaintext=\"Text to convert.\";\n plaintext=\"ABCDEFGHIJKLMNOPQRSTUPVWYZ123456789\";\n /////////////////////////////////\n System.out.println(\"Convert following text: \"+plaintext);\n \n System.out.println(\"::encodeBase64::\");\n \n byte[] plaindata = plaintext.getBytes();\n byte[] tmp = Base64Encoder.encodeBase64(plaindata);\n this.storeEncoding=new String(tmp);\n System.out.println(storeEncoding);\n System.out.println(\"::decodeBase64::\");\n byte[] base64Message = this.storeEncoding.getBytes();\n byte[] expResult = plaindata;\n byte[] result = Base64Encoder.decodeBase64(base64Message);\n String decodedText=new String(result);\n System.out.println(\"Decoded Text: \"+decodedText);\n assertArrayEquals(expResult, result);\n }", "public interface JsonKey {\n\n String CLASS = \"class\";\n String DATA = \"data\";\n String EKS = \"eks\";\n String ID = \"id\";\n String LEVEL = \"level\";\n String MESSAGE = \"message\";\n String METHOD = \"method\";\n String REQUEST_MESSAGE_ID = \"msgId\";\n String STACKTRACE = \"stacktrace\";\n String VER = \"ver\";\n String OK = \"ok\";\n String LOG_LEVEL = \"logLevel\";\n String ERROR = \"error\";\n String EMPTY_STRING = \"\";\n String RESPONSE = \"response\";\n String ADDRESS = \"address\";\n String KEY = \"key\";\n String ERROR_MSG = \"error_msg\";\n String ATTRIBUTE = \"attribute\";\n String ERRORS = \"errors\";\n String SUCCESS = \"success\";\n\n String CERTIFICATE = \"certificate\";\n String RECIPIENT_NAME = \"recipientName\";\n String COURSE_NAME = \"courseName\";\n String NAME = \"name\";\n String HTML_TEMPLATE = \"htmlTemplate\";\n String TAG = \"tag\";\n String ISSUER = \"issuer\";\n String URL = \"url\";\n String SIGNATORY_LIST = \"signatoryList\";\n String DESIGNATION = \"designation\";\n String SIGNATORY_IMAGE = \"image\";\n\n String DOMAIN_URL = \"sunbird_cert_domain_url\";\n String ASSESSED_DOMAIN = \"ASSESSED_DOMAIN\";\n String BADGE_URL = \"BADGE_URL\";\n String ISSUER_URL = \"ISSUER_URL\";\n String TEMPLATE_URL = \"TEMPLATE_URL\";\n String CONTEXT = \"CONTEXT\";\n String VERIFICATION_TYPE = \"VERIFICATION_TYPE\";\n String SIGNATORY_EXTENSION = \"SIGNATORY_EXTENSION\";\n String RECIPIENT_EMAIl = \"recipientEmail\";\n String RECIPIENT_PHONE = \"recipientPhone\";\n String RECIPIENT_ID = \"recipientId\";\n String VALID_FROM = \"validFrom\";\n String EXPIRY = \"expiry\";\n String OLD_ID = \"oldId\";\n String PUBLIC_KEY = \"publicKey\";\n String DESCRIPTION = \"description\";\n String LOGO = \"logo\";\n String ISSUE_DATE = \"issueDate\";\n String USER = \"user\";\n String CERTIFICATE_NAME = \"name\";\n\n String CONTAINER_NAME = \"CONTAINER_NAME\";\n String CLOUD_STORAGE_TYPE = \"CLOUD_STORAGE_TYPE\";\n String CLOUD_UPLOAD_RETRY_COUNT = \"CLOUD_UPLOAD_RETRY_COUNT\";\n String AZURE_STORAGE_SECRET = \"AZURE_STORAGE_SECRET\";\n String AZURE_STORAGE_KEY = \"AZURE_STORAGE_KEY\";\n String ACCESS_CODE_LENGTH = \"ACCESS_CODE_LENGTH\";\n String ORG_ID = \"orgId\";\n String KEYS = \"keys\";\n String ENC_SERVICE_URL = \"sunbird_cert_enc_service_url\";\n String SIGN_HEALTH_CHECK_URL = \"SIGN_HEALTH_CHECK_URL\";\n String SIGN_URL = \"SIGN_URL\";\n String SIGN_VERIFY_URL = \"SIGN_VERIFY_URL\";\n String SIGN_CREATOR = \"SIGN_CREATOR\";\n String SIGN = \"sign\";\n String VERIFY = \"verify\";\n String KEY_ID = \"keyId\";\n String JSON_URL = \"jsonUrl\";\n String PDF_URL = \"pdfUrl\";\n String UNIQUE_ID = \"id\";\n String GENERATE_CERT = \"generateCert\";\n String PUBLIC_KEY_URL = \"PUBLIC_KEY_URL\";\n String GET_SIGN_URL = \"getSignUrl\";\n String SIGNED_URL = \"signedUrl\";\n\n String ACCESS_CODE = \"accessCode\";\n String JSON_DATA = \"jsonData\";\n String SLUG = \"sunbird_cert_slug\";\n}", "private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }", "public static String Encrypt(String inputText, String key) {\n String retVal = \"\";\n try {\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n byte[] keyBytes = new byte[16];\n byte[] b = key.getBytes();\n int len = b.length;\n if (len > keyBytes.length) {\n len = keyBytes.length;\n }\n System.arraycopy(b, 0, keyBytes, 0, len);\n SecretKeySpec keySpec = new SecretKeySpec(keyBytes, \"AES\");\n IvParameterSpec ivSpec = new IvParameterSpec(keyBytes);\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n BASE64Encoder _64e = new BASE64Encoder();\n byte[] encryptedData = cipher.doFinal(inputText.getBytes());\n retVal = _64e.encode(encryptedData);\n\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return retVal;\n }", "public byte[] emit(String key) \n {\n return super.emit(key); \n }", "public static String encrypt(byte[] plaintext, byte key) {\n for (int i = 0; i < plaintext.length; i++) {\n plaintext[i] = (byte) (plaintext[i] ^ key);\n }\n return Base64.getEncoder().encodeToString(plaintext);\n }", "protected abstract byte[] encode(Object o) throws EncoderException;", "static byte[] base64ToByteArray(String s) {\r\n byte[] alphaToInt = base64ToInt;\r\n int sLen = s.length();\r\n int numGroups = sLen/4;\r\n if (4*numGroups != sLen)\r\n throw new IllegalArgumentException(\r\n \"String length must be a multiple of four.\");\r\n int missingBytesInLastGroup = 0;\r\n int numFullGroups = numGroups;\r\n if (sLen != 0) {\r\n if (s.charAt(sLen-1) == '=') {\r\n missingBytesInLastGroup++;\r\n numFullGroups--;\r\n }\r\n if (s.charAt(sLen-2) == '=')\r\n missingBytesInLastGroup++;\r\n }\r\n byte[] result = new byte[3*numGroups - missingBytesInLastGroup];\r\n\r\n // Translate all full groups from base64 to byte array elements\r\n int inCursor = 0, outCursor = 0;\r\n for (int i=0; i<numFullGroups; i++) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch3 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n result[outCursor++] = (byte) ((ch2 << 6) | ch3);\r\n }\r\n\r\n // Translate partial group, if present\r\n if (missingBytesInLastGroup != 0) {\r\n int ch0 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n int ch1 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch0 << 2) | (ch1 >> 4));\r\n\r\n if (missingBytesInLastGroup == 1) {\r\n int ch2 = base64toInt(s.charAt(inCursor++), alphaToInt);\r\n result[outCursor++] = (byte) ((ch1 << 4) | (ch2 >> 2));\r\n }\r\n }\r\n // assert inCursor == s.length()-missingBytesInLastGroup;\r\n // assert outCursor == result.length;\r\n return result;\r\n }", "public static String encode(byte[] input)\r\n {\r\n return (input == null ? null : Base64.encode(input, 0, input.length));\r\n }", "public static String encrypt(String seed, String plain) throws Exception {\r\nbyte[] rawKey = getRawKey(seed.getBytes());\r\nbyte[] encrypted = encrypt(rawKey, plain.getBytes());\r\nreturn Base64.encodeToString(encrypted, Base64.DEFAULT);\r\n}", "public com.google.protobuf.ByteString\n getKeyBytes() {\n java.lang.Object ref = key_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static String bitmapEncodeTobase64(Bitmap image) {\n Bitmap immage = image;\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n immage.compress(Bitmap.CompressFormat.PNG, 100, baos);\n byte[] b = baos.toByteArray();\n String imageEncoded = Base64.encodeToString(b, Base64.DEFAULT);\n return imageEncoded;\n }", "com.google.protobuf.ByteString\n getPubkeyBytes();", "public byte[] getBytes(){\n\t\treturn m_EncKeyValue;\n\t}", "com.google.protobuf.ByteString getKeyBytes();", "com.google.protobuf.ByteString getKeyBytes();", "public com.google.protobuf.ByteString\n getKeyBytes() {\n Object ref = key_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n key_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public byte[] encode(byte[] bytes) throws ClientException {\n ByteArrayOutputStream out = new ByteArrayOutputStream(4096);\n try {\n out.write(0);// flag位\n BytesUtils.writeInt(rsaKeyID, out);\n byte[] data = bytes;\n byte[] key = aesKey;\n byte[] sign = SecurityUtils.md5Sign(merge(data, key));\n BytesUtils.writeWithLength(SecurityUtils.aesEncode(key, data), out);\n BytesUtils.writeWithLength(SecurityUtils.rsaEncode(this.rsaPubKey, key), out);\n BytesUtils.writeWithLength(sign, out);\n } catch (Exception e) {\n // 加密请求数据时发生了错误\n throw new ClientException(ClientException.EX_INVALID_REQ,\n \"An error occurred when encryption request data\", e);\n }\n return out.toByteArray();\n }", "protected abstract SingleKeyVersionDataExtractor<DATA> generateDataKeyAsString () ;", "OpenSSLKey mo134201a();", "protected String rebuildEncryptedJwt(Jwt jwt, Key publicKey) {\n return buildJwtString(jwt.getClaimsSet(), publicKey);\n }", "public static byte[] encode(String key, byte[] data) {\n\t //.locals 11\n\t //.parameter \"key\"\n\t //.parameter \"data\"\n\t\t//.local v0, dataLen:I\n\t //.local v2, keyData:[B\n\t\t//.local v4, result:[B\n\t\t//.local v3, keyXor:B\n\t \n\t //.prologue\n\t //const/4 v10, 0x1\n\t\t//const/4 v9, 0x0\n\t\t//.line 5\n\t //invoke-virtual {p0}, Ljava/lang/String;->getBytes()[B \n\t //move-result-object v2\n\t byte[] keyData = key.getBytes();\n\t //.line 7\n\t //.local v2, keyData:[B\n\t //array-length v0, p1\n\t int dataLen = data.length;\n\t //.line 8\n\t //.local v0, dataLen:I\n\t //array-length v7, v2\n\t //add-int/2addr v7, v0\n\t //new-array v4, v7, [B\n\t byte[] result = new byte[keyData.length + dataLen];\n\t //.line 10\n\t //.local v4, result:[B\n\t //aget-byte v3, v2, v9\n\t byte keyXor = keyData[0];\n\t //.line 13\n\t //.local v3, keyXor:B\n\t \n\t //const/4 v1, 0x0\n\t //.local v1, i:I\n\t //:goto_0\n\t //if-lt v1, v0, :cond_0\n\t for (int i = 0;i < dataLen; i++) {\n\t \t//goto :cond_0;\n\t\n\t \t//.line 14\n\t //.end local v5 #resultLength:I\n\t \t//:cond_0\n\t //aget-byte v7, p1, v1\n\t //xor-int/2addr v7, v3\n\t //int-to-byte v7, v7\n\t //aput-byte v7, v4, v1\n\t result[i] = (byte)(data[i]^keyXor);\n\t //.line 15\n\t //aget-byte v3, v4, v1\n\t keyXor = result[i];\n\t //.line 13\n\t //add-int/lit8 v1, v1, 0x1\n\t //goto :goto_0\n\t }\n\t \n\t \n\n\t\t//.local v0, dataLen:I\n\t //.local v2, keyData:[B\n\t\t//.local v4, result:[B\n\t\t//.local v3, keyXor:B\n\t \n\t //.line 17\n\t //const/4 v1, 0x0\n\t //:goto_1;\n\t //array-length v7, v2\n\t //if-lt v1, v7, :cond_1\n\t for (int i = 0; i < keyData.length; i++) {\n\t \t//goto :cond_1;\n\t \t//.line 18\n\t //:cond_1\n\t //add-int v7, v1, v0\n\t \t//aget-byte v8, v2, v1\n\t \t//xor-int/2addr v8, v3\n\t \t//int-to-byte v8, v8\n\t //aput-byte v8, v4, v7\n\t \tresult[i + dataLen] = (byte) (keyData[i] ^ keyXor);\n\t //.line 19\n\t //add-int v7, v1, v0\n\t //aget-byte v3, v4, v7\n\t keyXor = result[i + dataLen];\n\t //.line 17\n\t //add-int/lit8 v1, v1, 0x1\n\t //goto :goto_1\n\t }\n\t\n\t //.line 22\n\t //array-length v5, v4\n\t int resultLength = result.length;\n\t //.line 24\n\t //.local v5, resultLength:I\n\t //const/4 v1, 0x0\n\t //:goto_2\n\t //shr-int/lit8 v7, v5, 0x1\n\t //if-lt v1, v7, :cond_2\n\t for (int i = 0; i < (resultLength >> 1); i++) {\n\t \t//goto :cond_2;\n\t \t\n\t \t//.line 25\n\t //.restart local v5 #resultLength:I\n\t //:cond_2\n\t //aget-byte v6, v4, v1\n\t byte tmp = result[i];\n\t //.line 26\n\t //.local v6, tmp:B\n\t //sub-int v7, v5, v1\n\t //sub-int/2addr v7, v10\n\t //aget-byte v7, v4, v7\n\t //aput-byte v7, v4, v1\n\t result[i] = result[resultLength - i - 1];\n\t //.line 27\n\t //sub-int v7, v5, v1\n\t //sub-int/2addr v7, v10\n\t //aput-byte v6, v4, v7\n\t result[resultLength - i - 1] = tmp;\n\t //.line 24\n\t //add-int/lit8 v1, v1, 0x1\n\t //goto :goto_2\n\t }\n\t \n\t //.line 30\n\t //aget-byte v3, v2, v9\n\t keyXor = keyData[0];\n\t //.line 31\n\t //const/4 v1, 0x0\n\t //:goto_3\n\t //if-lt v1, v5, :cond_3\n\t for (int i=0; i < resultLength; i++) {\n\t \t//goto :cond_3;\n\t \t//.line 32\n\t //.end local v6 #tmp:B\n\t //:cond_3\n\t //aget-byte v7, v4, v1\n\t //xor-int/2addr v7, v3\n\t //int-to-byte v7, v7\n\t //aput-byte v7, v4, v1\n\t result[i] = (byte)(result[i] ^ keyXor);\n\t //.line 33\n\t //aget-byte v3, v4, v1\n\t keyXor = result[i];\n\t //.line 31\n\t //add-int/lit8 v1, v1, 0x1\n\t //goto :goto_3\n\t }\n\t\n\t //.line 36\n\t //return-object v4\n\t return result;\n\t}", "public static String encrypt(byte[] plaintext, byte key) {\n\t\tfor (int i = 0; i < plaintext.length; i++) {\n\t\t\tplaintext[i] = (byte) (plaintext[i] ^ key);\n\t\t}\n\t\treturn Base64.getEncoder().encodeToString(plaintext);\n\t}", "public static String encrypt(byte[] plaintext, byte key) {\n\t\tfor (int i = 0; i < plaintext.length; i++) {\n\t\t\tplaintext[i] = (byte) (plaintext[i] ^ key);\n\t\t}\n\t\treturn Base64.getEncoder().encodeToString(plaintext);\n\t}", "private String encodeBytesFromBuffer(int howMany) {\n String result;\n\n if (innerStreamHasMoreData) {\n howMany = howMany - howMany % 3;\n }\n\n if (howMany == 0) {\n return \"\";\n }\n\n byte[] encodeBuffer = new byte[howMany];\n System.arraycopy(buffer, 0, encodeBuffer, 0, howMany);\n result = Base64.encodeToString(encodeBuffer);\n\n bytesInBuffer -= howMany;\n if (bytesInBuffer != 0) {\n System.arraycopy(buffer, howMany, buffer, 0, bytesInBuffer);\n }\n\n return result;\n }", "String encode(File message, File key,File crypted);" ]
[ "0.7374658", "0.72808266", "0.6584598", "0.6433538", "0.6287129", "0.6222778", "0.6215567", "0.6214279", "0.6193711", "0.6179385", "0.6163838", "0.6125658", "0.61130756", "0.6091788", "0.6065", "0.6021291", "0.5992438", "0.598568", "0.5984483", "0.5981032", "0.5967611", "0.59457386", "0.5945552", "0.5939208", "0.5931412", "0.5930145", "0.5908654", "0.5865494", "0.5858122", "0.5857325", "0.5849895", "0.5847131", "0.58012503", "0.57929105", "0.5786435", "0.57851815", "0.5765437", "0.5752071", "0.5750665", "0.5737824", "0.5734506", "0.57161003", "0.5707111", "0.56970304", "0.5668556", "0.56670684", "0.5664527", "0.566084", "0.5652013", "0.5635204", "0.56341124", "0.56185347", "0.561027", "0.5597828", "0.5594691", "0.55939627", "0.55779886", "0.55724037", "0.5565122", "0.55609906", "0.55606854", "0.55497247", "0.5549043", "0.55485004", "0.55316687", "0.55308187", "0.55301946", "0.5524316", "0.5522803", "0.5517856", "0.5514462", "0.54939353", "0.5493095", "0.54763955", "0.54631054", "0.54505086", "0.54411083", "0.5430131", "0.5426529", "0.541736", "0.5411972", "0.5408867", "0.5375993", "0.5359545", "0.5354228", "0.535116", "0.534711", "0.5345192", "0.5343948", "0.5343948", "0.5341237", "0.5339426", "0.53358966", "0.5322718", "0.5309744", "0.530267", "0.5302582", "0.5302582", "0.5302058", "0.52895933" ]
0.64776504
3
return info about short var declarations
public HashMap<Node, List<Node>> getShortDeclInfo() { return shortDeclInfo; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getVarDeclare();", "public short readVarShort() throws IOException {\n return readVarShort(7);\n }", "public java.lang.CharSequence getVar17() {\n return var17;\n }", "String getDeclare();", "public java.lang.CharSequence getVar17() {\n return var17;\n }", "public java.lang.CharSequence getVar117() {\n return var117;\n }", "static boolean VarDetails(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarDetails\")) return false;\n if (!nextTokenIs(b, \"\", OP_ASSIGN, K_EXTERNAL)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = VarValueAssignment(b, l + 1);\n if (!r) r = ExternalVarPart(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public java.lang.CharSequence getVar117() {\n return var117;\n }", "@Override String opStr() { return \"var\"; }", "String getVariableDefinition();", "public java.lang.CharSequence getVar134() {\n return var134;\n }", "public java.lang.CharSequence getVar134() {\n return var134;\n }", "public java.lang.CharSequence getVar279() {\n return var279;\n }", "public List<SingleVarDecl> getSingleVarDecls()\n {\n return singleVarDecls;\n }", "public boolean hasVar42() {\n return fieldSetFlags()[43];\n }", "public java.lang.CharSequence getVar153() {\n return var153;\n }", "public java.lang.CharSequence getVar153() {\n return var153;\n }", "public java.lang.CharSequence getVar279() {\n return var279;\n }", "public boolean hasVar273() {\n return fieldSetFlags()[274];\n }", "void mo35722a(C14235h hVar);", "public boolean hasVar17() {\n return fieldSetFlags()[18];\n }", "public LocalDebugInfo[] locals();", "public final void mo51379c(C19400e eVar) {\n C7573i.m23587b(eVar, \"shortInfo\");\n }", "public java.lang.CharSequence getVar161() {\n return var161;\n }", "public boolean hasVar123() {\n return fieldSetFlags()[124];\n }", "public boolean hasVar176() {\n return fieldSetFlags()[177];\n }", "public java.lang.CharSequence getVar161() {\n return var161;\n }", "public boolean hasVar23() {\n return fieldSetFlags()[24];\n }", "public java.lang.CharSequence getVar287() {\n return var287;\n }", "public java.lang.CharSequence getVar287() {\n return var287;\n }", "public boolean hasVar11() {\n return fieldSetFlags()[12];\n }", "public java.lang.CharSequence getVar243() {\n return var243;\n }", "public java.lang.CharSequence getVar71() {\n return var71;\n }", "public boolean hasVar21() {\n return fieldSetFlags()[22];\n }", "public java.lang.CharSequence getVar81() {\n return var81;\n }", "public java.lang.CharSequence getVar243() {\n return var243;\n }", "public boolean hasVar120() {\n return fieldSetFlags()[121];\n }", "public java.lang.CharSequence getVar207() {\n return var207;\n }", "public java.lang.CharSequence getVar81() {\n return var81;\n }", "public boolean hasVar292() {\n return fieldSetFlags()[293];\n }", "public java.lang.CharSequence getVar44() {\n return var44;\n }", "public java.lang.CharSequence getVar207() {\n return var207;\n }", "public final void mo51375a(C19400e eVar) {\n C7573i.m23587b(eVar, \"shortInfo\");\n }", "public java.lang.CharSequence getVar53() {\n return var53;\n }", "public String variable()\n\t{\n\t\treturn _var;\n\t}", "public boolean hasVar211() {\n return fieldSetFlags()[212];\n }", "public java.lang.CharSequence getVar71() {\n return var71;\n }", "public java.lang.CharSequence getVar44() {\n return var44;\n }", "public boolean hasVar101() {\n return fieldSetFlags()[102];\n }", "org.tribuo.protos.core.VariableInfoProto getInfo(int index);", "public java.lang.CharSequence getVar288() {\n return var288;\n }", "public String visit(VarDeclaration n, String ourclass) {\n String type, name;\n type = n.f0.accept(this, null);\n name = n.f1.accept(this, null);\n if(!ourclass.contains(\" \")){ //class members variables\n vcounter ++;\n integer++;\n variable x = new variable(type, name, vcounter, integer);\n ClassMembers cm = st.cmgetST(ourclass);\n if(cm.checkSameVar(x)){\n System.out.println(\"Variable already exists\");\n return null;\n }\n cm.var.add(x);\n st.cmputST(ourclass, cm);\n }\n else{ //method's variables\n integer++;\n variable x = new variable(type, name, integer);\n String[] parts = ourclass.split(\" \");\n String classname = parts[0]; \n String methodname = parts[1];\n ClassMembers cm=st.cmgetST(classname);\n Method m=cm.meth.get(methodname);\n m.localvars.add(x);\n cm.meth.put(methodname, m);\n st.cmputST(classname, cm);\n }\n return null; \n }", "public java.lang.CharSequence getVar53() {\n return var53;\n }", "public boolean hasVar132() {\n return fieldSetFlags()[133];\n }", "public java.lang.CharSequence getVar170() {\n return var170;\n }", "public java.lang.CharSequence getVar179() {\n return var179;\n }", "boolean hasVarSrc();", "public String getShortName() {\n/* 118 */ return this.shortname;\n/* */ }", "public boolean hasVar1() {\n return fieldSetFlags()[2];\n }", "public java.lang.Short getVariableType() {\r\n return variableType;\r\n }", "public boolean hasVar117() {\n return fieldSetFlags()[118];\n }", "public boolean hasVar121() {\n return fieldSetFlags()[122];\n }", "int realnVars();", "void mo7351a(C1655s sVar);", "public java.lang.CharSequence getVar179() {\n return var179;\n }", "public java.lang.CharSequence getVar170() {\n return var170;\n }", "public boolean hasVar231() {\n return fieldSetFlags()[232];\n }", "public java.lang.CharSequence getVar288() {\n return var288;\n }", "private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}", "public String getDeclaration() {\n\t\tStringBuilder sb = new StringBuilder(\"\");\n\t\tsb.append(myName+\" \"+myType);\n\t\tfor(String arg : myArgs) {\n\t\t\tsb.append(\" \" + arg);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public java.lang.Integer getVar51() {\n return var51;\n }", "public boolean hasVar41() {\n return fieldSetFlags()[42];\n }", "public VariableMeta getMeta();", "public boolean hasVar272() {\n return fieldSetFlags()[273];\n }", "private static void displayVariables() {\n Iterator i = dvm.getVariableNames().iterator();\n Object temp;\n while(i.hasNext()){\n temp = i.next();\n System.out.print(temp + \": \" + dvm.getValue(temp.toString()) + \"\\n\");\n }\n }", "public final void mo51377b(C19400e eVar) {\n C7573i.m23587b(eVar, \"shortInfo\");\n }", "public boolean hasVar112() {\n return fieldSetFlags()[113];\n }", "@Override\n \tpublic void logVarUsed(String var) {\n \t\tSystem.out.println(\"\\tVariable used: \" + var);\n \t}", "public short get_short() {\n return local_short;\n }", "public boolean hasVar34() {\n return fieldSetFlags()[35];\n }", "public abstract String getShortDirective();", "String getSourceVariablePart();", "@Override\n public VariableInfo[] getVariableInfo( TagData data ) {\n // loop through and expose all attributes\n List<VariableInfo> vars = new ArrayList<VariableInfo>();\n\n try {\n String clazz = data.getAttributeString( \"className\" );\n\n if ( clazz == null ) {\n clazz = Constants.class.getName();\n }\n\n Class<?> c = Class.forName( clazz );\n\n // if no var specified, get all\n if ( data.getAttributeString( \"var\" ) == null ) {\n Field[] fields = c.getDeclaredFields();\n\n AccessibleObject.setAccessible( fields, true );\n\n for ( int i = 0; i < fields.length; i++ ) {\n vars.add( new VariableInfo( fields[i].getName(), \"java.lang.String\", true, VariableInfo.AT_END ) );\n }\n } else {\n String var = data.getAttributeString( \"var\" );\n vars.add( new VariableInfo( c.getField( var ).getName(), \"java.lang.String\", true, VariableInfo.AT_END ) );\n }\n } catch ( Exception cnf ) {\n log.error( cnf.getMessage() );\n cnf.printStackTrace();\n }\n\n return vars.toArray( new VariableInfo[] {} );\n }", "public boolean hasVar51() {\n return fieldSetFlags()[52];\n }", "void mo61496a(C43469a aVar, C43471c cVar);", "void mo123342a(C48857t tVar);", "public String getShortDes() {\n return shortDes;\n }", "private static boolean VarDecl_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarDecl_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = MarklogicAnnotation(b, l + 1);\n if (!r) r = CompatibilityAnnotation(b, l + 1);\n if (!r) r = Annotation(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean hasVar12() {\n return fieldSetFlags()[13];\n }", "public boolean hasVar213() {\n return fieldSetFlags()[214];\n }", "public boolean hasVar173() {\n return fieldSetFlags()[174];\n }", "void mo12648a(C3676k kVar);", "public java.lang.Integer getVar51() {\n return var51;\n }", "public boolean hasVar124() {\n return fieldSetFlags()[125];\n }", "public boolean hasVar16() {\n return fieldSetFlags()[17];\n }", "public boolean hasVar161() {\n return fieldSetFlags()[162];\n }", "public java.lang.Boolean getVar173() {\n return var173;\n }", "public java.lang.Boolean getVar173() {\n return var173;\n }", "public java.lang.CharSequence getVar72() {\n return var72;\n }", "public String variableValues() {\n\t\tif (name.values().size()==0)\n\t\t\treturn \"Symbol table is empty\";\n\t\tString s = \"Variable values\\n\";\n\t\tfor (NameSSA n : name.values()) {\n\t\t\tVariable v = var.get(n.current());\n\t\t\tif (v.isConstant())\n\t\t\t\ts += n.current() + \":\" + v.constantNumber();\n\t\t\telse \n\t\t\t\ts += n.current() + \":\" + \" unknown\";\n\t\t\ts+=\" \";\n\t\t}\n\t\treturn s;\n\t}" ]
[ "0.7094033", "0.6066823", "0.59848887", "0.5983754", "0.5963295", "0.59140366", "0.58881307", "0.58871806", "0.5859164", "0.5789366", "0.5670779", "0.56656724", "0.5664548", "0.5661256", "0.5625599", "0.5616446", "0.56033593", "0.55947506", "0.5587537", "0.5580795", "0.5554016", "0.5552714", "0.55502856", "0.55317324", "0.5523095", "0.55217636", "0.54974043", "0.549341", "0.5489162", "0.54864216", "0.5481195", "0.5468262", "0.54647636", "0.54602545", "0.54559183", "0.5455241", "0.5453416", "0.5453368", "0.5445874", "0.544541", "0.5439815", "0.5428151", "0.541934", "0.5410424", "0.5407829", "0.54037523", "0.54032356", "0.5402577", "0.539998", "0.5398677", "0.53929734", "0.5389721", "0.53888613", "0.53869194", "0.53868896", "0.53849435", "0.53844017", "0.53829914", "0.53826153", "0.5381023", "0.5380369", "0.53732467", "0.5361998", "0.5361403", "0.5356091", "0.53538805", "0.5353493", "0.53522825", "0.53503346", "0.5347072", "0.5341393", "0.5333202", "0.5331254", "0.5330727", "0.5327322", "0.532418", "0.5322765", "0.532127", "0.5320571", "0.5318321", "0.5315189", "0.53134334", "0.5312417", "0.53122413", "0.53074694", "0.53062785", "0.5306166", "0.53050345", "0.530126", "0.52938414", "0.52895063", "0.5287203", "0.52871156", "0.52869266", "0.5285792", "0.52827394", "0.5282351", "0.5279765", "0.5276455", "0.5274164" ]
0.630588
1
return list of names used in program
public List<String> getNames() { return names; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic StringList getNames() {\n\t\tStringList ss = new StringList();\n\t\tss.add(\"java\");\n\t\treturn ss;\n\t}", "public String[] getNames() {\n\t\tString[] names = new String[functions.size()];\n\t\tint index = 0;\n\t\tfor (Enumeration en = functions.keys(); en.hasMoreElements(); index++) {\n\t\t\tnames[index] = (String) en.nextElement();\n\t\t}\n\t\treturn names;\n\t}", "public ArrayList<String> getCurrentVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values())\n\t\t\tnames.add(n.current());\n\t\treturn names;\n\t}", "Iterable<String> getRegisteredNames();", "public static String[] names() {\n return ListableValuesHelper.names(LogicalFragmentBenchmarked.values());\n }", "Collection<String> names();", "public String[] getAllProcessNames() {\n return getProcessNames(this.getProcesses());\n }", "public List<String> appNames() {\n PackageManager pm = getPackageManager();\n List<ApplicationInfo> allPackages = pm.getInstalledApplications(PackageManager.GET_META_DATA);\n List<String> bubbles = new ArrayList<>();\n\n for (ApplicationInfo apInfo : allPackages) {\n if (apInfo.className != null) {\n bubbles.add(apInfo.className);\n }\n }\n\n return bubbles;\n }", "public Set<String> getApplicationNames() {\n ImmutableSet.Builder<String> names = ImmutableSet.builder();\n File[] files = appsDir.listFiles(File::isDirectory);\n if (files != null) {\n for (File file : files) {\n names.add(file.getName());\n }\n }\n return names.build();\n }", "public Collection<String> getNamesOfPackagesInstalled() {\n\teval(\"cellfun(@(x) x.name, pkg('list'), 'UniformOutput', false);\");\n\treturn getStringCellFromAns();\n }", "public static String[] getRuntimeParNames() {\r\n\t\tObject[] ks = runtimePars.keySet().toArray();\r\n\t\tString[] pn = new String[ks.length];\r\n\t\tfor (int i = 0; i < ks.length; i++)\r\n\t\t\tpn[i] = (String) ks[i];\r\n\t\treturn StringExt.sort(pn);\r\n\t}", "public ArrayList<String> getAllVarNames() {\n\t\tArrayList<String> names = new ArrayList<String>();\n\t\tfor (NameSSA n : name.values()){\n\t\t\tString root = n.name();\n\t\t\tfor (int i=0;i<=n.cpt;i++)\n\t\t\t\tnames.add(root+\"_\"+i);\n\t\t}\n\t\treturn names;\n\t}", "public abstract String[] names() throws TrippiException;", "private ArrayList<String> getNames() {\n\t\tNameDialog n = new NameDialog();\n\t\tnameList = new ArrayList<String>();\n\t\ttry {\n\t\t\tnameList = n.getNames(inputs[1]);\n\t\t}catch(GameException ex) {\n\t\t\tview.close();\n\t\t\tmenuStage.show();\n\t\t}\n\t\treturn nameList;\n\t}", "public String[] getModuleNames() {\r\n String[] names = new String[modules.size()];\r\n Iterator it = modules.iterator();\r\n int i=0;\r\n while (it.hasNext()) {\r\n names[i++] = (String)it.next();\r\n }\r\n return names;\r\n }", "public List<String> mo29954a() {\n return Collections.singletonList(\"com.oppo.launcher\");\n }", "public String[] uses() { return new String[0]; }", "public String[] getTags() {\n WindowManager wm = TopManager.getDefault().getWindowManager();\n Workspace[] wss = wm.getWorkspaces();\n if (!namesInitialized) {\n namesInitialized = true;\n initializeNamesMap(wss);\n }\n // exclude browsing, running and debugging workspaces\n java.util.Vector tagList = new java.util.Vector ();\n for (int i = wss.length; --i >= 0; ) {\n String name = wss[i].getName();\n if (!(\"Browsing\".equals (name) || \"Running\".equals (name) || \"Debugging\".equals (name))) { // NOI18N\n tagList.add(name);\n }\n }\n // XXX(-tdt)\n // tagList.add(NbBundle.getBundle(WorkspaceEditor.class).getString(\"VALUE_WORKSPACE_NONE\"));\n String[] names = new String [tagList.size()];\n for (int i=0, n=tagList.size(); i<n; i++)\n names[i] = (String)namesMap.get(tagList.get(i));\n return names;\n }", "public List<String> getMainVariableNames(TOSCAPlan plan) {\n\t\tList<String> names = new ArrayList<String>();\n\t\tNodeList childNodes = plan.getBpelProcessVariablesElement().getChildNodes();\n\t\tfor (int i = 0; i < childNodes.getLength(); i++) {\n\t\t\tNode child = childNodes.item(i);\n\t\t\tif (child.getNodeType() == Node.ELEMENT_NODE) {\n\t\t\t\tString varName = child.getAttributes().getNamedItem(\"name\").getNodeValue();\n\t\t\t\tnames.add(varName);\n\t\t\t}\n\t\t}\n\t\treturn names;\n\t}", "public String[] getLocalNames() {\r\n\t\treturn names.toArray(new String[0]);\r\n\t}", "public String[] getProcessNames() {\n List<String> st = new ArrayList<>();\n for (AProcess p : processes) {\n st.add(p.getName());\n }\n return st.toArray(new String[st.size()]);\n }", "public List<String> getNames(VariantContext variantContext);", "public static List<String> m57031a(Context context) {\n ArrayList arrayList = new ArrayList();\n if (C17095a.m85219b(C6969H.m41409d(\"G7A97DA0A8031BB39EA07835C\"), false)) {\n return arrayList;\n }\n try {\n for (ApplicationInfo applicationInfo : context.getPackageManager().getInstalledApplications(128)) {\n arrayList.add(applicationInfo.loadLabel(context.getPackageManager()).toString());\n }\n } catch (Exception unused) {\n }\n return arrayList;\n }", "public String[] getNames() {\r\n\t\treturn this.context.getNames();\r\n\t}", "public List<String> getLoggerNames();", "Iterable<String> getModuleNames();", "@Override\r\n\tpublic String[] names() {\n\t\treturn new String[] {\"lifesteal\"};\r\n\t}", "public String[] getOutputNames()\n\t{\n\t\treturn _outputNames;\n\t}", "@DISPID(10) //= 0xa. The runtime will prefer the VTID if present\r\n @VTID(17)\r\n java.lang.String[] getNames();", "public final ArrayList<String> GetStringsForCurrentTypeAndSystem()\n {\n return GetStringsForCurrentTypeAndSystem(false);\n }", "private String[] getFileNames() {\n\t\tFile directory = new File(this.getClass().getClassLoader()\n\t\t\t\t.getResource(\"data\").getFile());\n\t\tList<String> fileNames = new ArrayList<String>();\n\n\t\tfor (File file : directory.listFiles())\n\t\t\tfileNames.add(file.getName());\n\n\t\treturn fileNames.toArray(new String[fileNames.size()]);\n\t}", "private ArrayList<String> getCritterOptionsMenu() {\n\t\tArrayList<String> items = new ArrayList<String>();\n\t\tArrayList<Class<Critter>> critters = getCritterClasses(this.getClass().getPackage());\n\t\tfor (Class<Critter> c:critters){\n\t\t\titems.add(c.getSimpleName());\n\t\t}\n\t\treturn items;\n\t}", "public void printName()\n\t{\n\t\tArrayList<Robot> ar=new ArrayList<Robot>();\n\t\tIterator<Robot> it;\n\t\tint i=1;//started index\n\t\t\n\t\tar.addAll(robotHM.values());//adding all\n\t\tCollections.sort(ar);//sort by names\n\t\tit=ar.iterator();\n\t\twhile (it.hasNext())\n\t\t{\n\t\t\tSystem.out.println(i+\". \"+it.next().getName());\n\t\t\ti++;\n\t\t}\n\t}", "public String[] listObjectNames();", "public String getProgramName()\r\n \t{\r\n \t\treturn m_program.m_csSimpleName;\r\n \t}", "private String[] getPackageNames() {\n return mContext.getPackageManager().getPackagesForUid(Binder.getCallingUid());\n }", "private String[] getProgramFromFile(String filename) {\n\t\tString program = \"\";\n\t\ttry (BufferedReader br = new BufferedReader(new FileReader(filename))) {\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tprogram += line;\n\t\t\t\tprogram += \" \";\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn getTokens(program);\n\t}", "public static List<String> getNames() {\n return Collections.unmodifiableList(widgetNames);\n }", "@DISPID(14) //= 0xe. The runtime will prefer the VTID if present\r\n @VTID(21)\r\n java.lang.String[] getNamesU();", "public static String allCommands() \n {\n String commandWords = \"\";\n for(CommandWord command : CommandWord.values()) {\n commandWords += command + \" \";\n }\n return commandWords;\n }", "@Override\n public List<String> call() {\n List<String> nameList = null;\n nameList = doScan(basePackage, new ArrayList<>());\n\n return nameList;\n }", "List<String> getExecutionEnvironmentNames();", "public List<String> getActiveSetNames()\n {\n List<String> names = New.list(myActiveSetConfig.getSetNames());\n names.remove(USER_ACTIVATED_SET_NAME);\n return names;\n }", "public void grabNames()\n \t{\n \t\tfor(Registry.Entry e : this)\n \t\t{\n \t\t\tthis.grabNames(e);\n \t\t}\n \t}", "@Override\n public java.lang.Object getNames() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.NAMES_);\n return (java.lang.Object)retnValue;\n }", "public static ArrayList<String> getReglesNoms() throws IOException{\n return ctrl_Persistencia.llistaFitxers(\"@../../Dades\",\"regles\");\n }", "List<String> getSystemPackages();", "public static String[] showAddressBookName()\n\t{\n\t\tFile file=new File(ConstantValue.PATH);\n\t\treturn file.list();\n\t}", "public static void main(String[] args) {\n List<String> names = new ArrayList<>();\n\n }", "public static List<String> getPrinterServiceNameList() {\n\n // get list of all print services\n PrintService[] services = PrinterJob.lookupPrintServices();\n List<String> list = new ArrayList<>();\n\n for (PrintService service : services) {\n list.add(service.getName());\n }\n return list;\n }", "char[] getName();", "public ArrayList<String> getAllRunningApp() {\n\t\tArrayList<String> apps = new ArrayList<String>();\n\t\tActivityManager activityManager = (ActivityManager)getSystemService(ACTIVITY_SERVICE);\n\t\tList<RunningAppProcessInfo> runningAppProcesses = activityManager.getRunningAppProcesses();\n\t\t\n\t\tfor (RunningAppProcessInfo runningAppProcessInfo : hgf)\n\t\t{\n\t\t apps.add(runningAppProcessInfo.processName);\n\t\t}\n\t\treturn apps;\n\t}", "@Override\r\n\tpublic List<String> agentAllName() {\n\t\treturn agentMapper.agentAllName();\r\n\t}", "public List<String> getAllNames() {\n\t\tList<String> names = new ArrayList<>();\n\t\tfor(PhoneBookEntry entry : entries.values()) {\n\t\t\tnames.add(entry.getName());\n\t\t}\n\t\tCollections.sort(names);\n\t\treturn Collections.unmodifiableList(names);\n\t}", "public static void main(String[] args) {\n\t\tString names[]= {\"Java\",\"C\",\"Path\",\"Java\",\"javaScript\",\"C\"};\r\n\t\t\r\n\t\tSet<String> store = new HashSet<String>();\r\n\t\t\r\n\t\t\r\n\t\tfor(String name: names) {\r\n\t\t\t\r\n\t\t\tif(store.add(name)==false) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(name);\r\n\t\t\t}\r\n\t\t\t\r\n\t\r\n\t\t\t\t\r\n\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t}", "String getSymbolicName();", "private static List<String> getNamedOutputsList(JobContext job) {\r\n\t\tList<String> names = new ArrayList<String>();\r\n\t\tStringTokenizer st = new StringTokenizer(\r\n\t\t\t\tjob.getConfiguration().get(MULTIPLE_OUTPUTS, \"\"), \" \");\r\n\t\twhile (st.hasMoreTokens()) {\r\n\t\t\tnames.add(st.nextToken());\r\n\t\t}\r\n\t\treturn names;\r\n\t}", "public static Enumeration getNames() \n {\n return frequency.keys();\n }", "public Set<String> getNames() {\n\t\t//\t\tArrayList<String> names = new ArrayList<String>();\n\t\t//\t\tfor (NameSSA n : name.values())\n\t\t//\t\t\tnames.add(n.current());\n\t\treturn name.keySet();\n\t}", "Collection<String> getUsernames();", "public Set<String> loadAllSubstanceNames();", "@Nonnull List<String> getNameList();", "public List<String> getPluginNames() {\n\t\tList<String> pluginNames = new ArrayList<String>();\n\t\tfor (Plugin plugin : pluginManager.getPlugins(Plugin.class)) {\n\t\t\tif (StringUtils.isEmpty(plugin.getName())) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tpluginNames.add(plugin.getName().trim());\n\t\t}\n\t\treturn pluginNames;\n\t}", "public void iterateProgramList(final String programName);", "String getExternalToolName();", "public List<String> stringy() {\n\t\t\tList<String> temp = new ArrayList<>();\n\t\t\t// add all the file names\n\t\t\ttemp.addAll(getFileNames());\n\t\t\t// add all the directories [indicated by a \"-\"]\n\t\t\tfor (DirectoryObjects t : subdirectories) {\n\t\t\t\ttemp.add(t.name);\n\t\t\t}\n\n\t\t\treturn temp;\n\t\t}", "public static String[] getLangNames() {\r\n\t\tHashMap<String, String> ges = getLangs();\r\n\r\n\t\tString[] names = new String[ges.size()];\r\n\t\tint i = 0;\r\n\t\t// add all\r\n\t\tfor (String key : ges.keySet()) {\r\n\t\t\tnames[i] = ges.get(key);\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public List<? extends Name> getAllNames() {\n\t\treturn null;\n\t}", "ArrayList<String> getWorkspaceNames() {\n ArrayList<String> result = new ArrayList<String>();\n for (WorkspaceInfo ws : getCatalog().getWorkspaces()) {\n result.add(ws.getName());\n }\n Collections.sort(result);\n result.add(0, \"*\");\n return result;\n }", "public String[] getNames(){\n \t\tString[] outStrings = new String[otherNames.length+1];\n \t\toutStrings[0] = this.name;\n\t\tfor(int i=1;i<otherNames.length;i++)\n \t\t\toutStrings[i] = this.otherNames[i-1];\n \t\treturn outStrings;\n \t}", "public static String[] getlistofUser() {\n\t\tString[] names = new String[workers.size()];\n\t\tfor (int i = 0; i < names.length; i++)\n\t\t\tnames[i] = workers.get(i).getUser();\n\t\treturn names;\n\t}", "public void printAllRecipeNames() {\r\n for (Recipe currentRecipe : listOfRecipes) {\r\n System.out.println(currentRecipe.getRecipeName());\r\n }\r\n }", "public String[] getNames() {\n Enumeration namesEnum = keys();\n String[] namesArray = new String[size()];\n for (int i = 0; i < size(); i++) {\n namesArray[i] = (String) namesEnum.nextElement();\n }\n return namesArray;\n }", "public synchronized String[] getOutputNames() {\n String[] names = new String[buffers.length];\n\n for (int i = 0; i < buffers.length; i++) {\n names[i] = buffers[i].getName();\n if (names[i] == null) {\n throw new IllegalStateException(\"BUFFER IS BROKEN\");\n }\n }\n\n return names;\n }", "public ArrayList<String> get_name_code_Smells() {\n\t\tArrayList<String> keys = new ArrayList<String>();\n\t\tkeys.addAll(getCode_Smells().keySet());\n\t\treturn keys;\n\t}", "public List<String> getPatternNames() {\n List<String> nameList = new LinkedList<String>();\r\n for(Pattern pattern : patterns) {\r\n nameList.add(pattern.getName());\r\n }\r\n Collections.sort(nameList, new Comparator<String>() {\r\n public int compare(String name1, String name2) {\r\n return name1.compareToIgnoreCase(name2);\r\n }\r\n });\r\n return nameList;\r\n }", "public final ArrayList<String> getNames() {\r\n\t\tArrayList<String> names = new ArrayList<String>();\r\n\r\n\t\t// for every workout in our workoutList\r\n\t\tfor (Workout i : workoutList) {\r\n\t\t\t// get the name and add it to our ArrayList names\r\n\t\t\tnames.add(i.getName());\r\n\t\t}\r\n\r\n\t\treturn names;\r\n\t}", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "public String getName(){\n StringBuilder name = new StringBuilder();\n for (int value : names) {\n name.append(\"> \").append(strings.get(value));\n }\n return name.toString();\n }", "@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 ArrayList<String> listarProgramas();", "String getBundleSymbolicName();", "private static String optionsListing() {\n\t\tString result = \"\\nUsage: java -jar comtor.jar -dir dirname\\n\\n\";\n\t\tresult += \"Options:\\n\";\n\t\t\n\t\tresult += \"-dir dirname\\t\\tSpecified the pathname of the directory in which COMTOR will \"; \n\t\tresult += \"search for Java source code\\n\\t\\t\\tfiles (packaged and non-packaged).\\n\\n\";\n\t\t\n\t\tresult += \"-help | --help\\t\\tThis help message\\n\";\n\t\tresult += \"\\n\\n\";\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n NameGenerator n = new NameGenerator(true);\n // System.out.println(\"Random Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newName());\n // }\n // System.out.println();\n // System.out.println(\"Planet Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newPlanetName());\n // }\n for (int i = 0; i < 10; i++) {\n System.out.println();\n String system = n.newName();\n System.out.printf(\"System: %s, Planets:%n\", system);\n for (String p: n.planetNames(5, system)) {\n System.out.println(p);\n }\n }\n // System.out.println();\n // System.out.println(\"Human Names:\");\n // for (int i = 0; i < 10; i++) {\n // System.out.println(n.newHumanName());\n // }\n\n }", "public String[] getAllThemeNames() {\n\tjava.util.List names = resources.getStringList(\"themelist\");\n\treturn (String[]) names.toArray(new String[names.size()]);\n }", "public String getSystemName();", "public static String[] getNames() {\n String[] res = new String[crossbows.length];\n for (int i = 0; i < crossbows.length; i++) {\n res[i] = (String)crossbows[i][2];\n }\n return res;\n }", "java.util.List<java.lang.String>\n getFileNamesList();", "public List<Provider> getProName() {\n\t\treturn userDao.getProName();\r\n\t}", "public List<String> getOptionsNames();", "public String getBundleSymbolicName();", "@SuppressWarnings(\"checkstyle:avoidinlineconditionals\")\n private static void setUpNameList() {\n List<String> names = new ArrayList<>();\n String verb;\n String noun;\n for (int i = 0; i < NUMBER_OF_NAMES; i++) {\n verb = GenerationHelper.randomElement(verbs);\n noun = GenerationHelper.randomElement(nouns);\n String taskName = verb;\n taskName += \"aeiou\".contains(noun.subSequence(0, 1)) ? \" an \" : \" a \";\n taskName += noun;\n names.add(Character.toUpperCase(taskName.charAt(0)) + taskName.substring(1));\n }\n taskNames = new String[names.size()];\n names.toArray(taskNames);\n }", "private static String[] getModelNames() {\n\t\treturn getConfiguration().getString(MODELS).split(\"\\\\|\");\n\t}", "public static synchronized String[] getModeNames() {\n\n\tString names[] = new String[registryModes.size()];\n\n\tint i = 0;\n\n for (Enumeration e = registryModes.keys(); e.hasMoreElements();) {\n CaselessStringKey key = (CaselessStringKey)e.nextElement();\n\n\t names[i++] = key.getName();\n\t}\n\n\tif (i <= 0)\n\t return null;\n\n\treturn names;\n }", "Set<String> getNames();", "public ArrayList<String> getNames(){\r\n \t\tArrayList<String> names = new ArrayList<String>();\r\n \t\tfor (Enumeration<Tag> temp = tags.elements(); temp.hasMoreElements();) \r\n \t\t\tnames.add(temp.nextElement().getName());\r\n \t\treturn names;\r\n \t}", "public Set<String> getEnteringFunctionNames() {\n Set<String> results = new HashSet<>();\n Set<CFANode> visited = new HashSet<>();\n Queue<CFANode> waitlist = new ArrayDeque<>();\n waitlist.offer(this);\n while (!waitlist.isEmpty()) {\n CFANode current = waitlist.poll();\n if (visited.add(current)) {\n if (current.getFunctionName()\n .equals(CFASingleLoopTransformation.ARTIFICIAL_PROGRAM_COUNTER_FUNCTION_NAME)) {\n waitlist.addAll(CFAUtils.allPredecessorsOf(current).toList());\n } else {\n results.add(current.getFunctionName());\n }\n }\n }\n return results;\n }", "public String[] getJARNames() {\n return jarNames.toArray(new String[0]);\n }", "private String[] getProcessNames(Stream<ProcessHandle> processHandle) {\n List<Optional<String>> opReturns = new ArrayList<>();\n\n // sort through the process handles and add them to the opReturns list\n processHandle.forEach(process -> opReturns.add(process.info().command()));\n\n List<String> returns = new ArrayList<>();\n\n // stream the names from an Optional<String> list into an array\n opReturns.stream().map(OptionWrapper.pass(Optional<String>::get)).forEach(returns::add);\n\n return returns.toArray(new String[returns.size()]);\n }", "public void loadNames() {\n\t\tloadNames(false);\n\t}", "java.util.List<java.lang.String>\n getFileNamesList();" ]
[ "0.65261567", "0.6453516", "0.6451515", "0.643032", "0.64107484", "0.6407416", "0.63258296", "0.63247633", "0.63230056", "0.6312923", "0.6311217", "0.6290219", "0.626065", "0.62326926", "0.61797535", "0.617907", "0.6152725", "0.6133006", "0.6128734", "0.6112028", "0.6092378", "0.6059771", "0.6041864", "0.60318613", "0.6027983", "0.60224974", "0.60087883", "0.5999542", "0.59755915", "0.5951964", "0.59322244", "0.5921644", "0.5921116", "0.5895172", "0.5891505", "0.58798164", "0.58765626", "0.5876161", "0.58690715", "0.58499247", "0.5826191", "0.58157766", "0.5814852", "0.5814474", "0.5798077", "0.5793323", "0.57882696", "0.57856303", "0.57756114", "0.577169", "0.576115", "0.5740602", "0.5733813", "0.57226616", "0.5718561", "0.5711609", "0.5702156", "0.57008535", "0.5697692", "0.56714743", "0.5666805", "0.5662897", "0.5643788", "0.5638829", "0.5625501", "0.5621786", "0.56108016", "0.56100416", "0.56097865", "0.5606775", "0.56040597", "0.55989426", "0.5593958", "0.55917853", "0.55892396", "0.5586786", "0.5584459", "0.5584348", "0.55825865", "0.5578686", "0.5576991", "0.55764955", "0.55683756", "0.5561919", "0.55609584", "0.5555155", "0.5551507", "0.55325466", "0.55281466", "0.55233413", "0.55197287", "0.55171376", "0.5509695", "0.5509054", "0.5508582", "0.55022424", "0.55010587", "0.54997545", "0.5496702", "0.5490161", "0.54874766" ]
0.0
-1
Symbol Table related methods
public void newScope() { Map<String, Type> scope = new HashMap<String, Type>(); scopes.push(scope); Map<String, Type> typeScope = new HashMap<String, Type>(); typeScopes.push(typeScope); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "public SymbolTable getSymbolTable() {\n return this.symbolTable;\n }", "public void setSymbolTable(SymbolTable st) {\n\t this.st = st;\n\t }", "public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "public SymbolTable() {\n\t\tclassScope = new Hashtable<String, Values>();\n\t\tsubScope = new Hashtable<String, Values>();\n\t\tcurrScope = classScope;\n\t\tsubArgIdx = 0;\n\t\tsubVarIdx = 0;\n\t\tclassStaticIdx = 0;\n\t\tclassFieldIdx = 0;\n\t}", "public SymbolTableEntry(){\n\t}", "public SymbolTable()\r\n {\r\n // Create the tables stack and add the top level\r\n tables = new ArrayDeque<HashMap<String,T>>();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts = new ArrayDeque<Integer>();\r\n counts.add( 0 );\r\n }", "public SymbolTable() {\n scopes = new ArrayList<>();\n currentScopeLevel = NO_SCOPE;\n }", "public static SymbolTable getInstance() { return instance ; }", "@Override\n\tpublic void buildSymbolTable(STableI table, Stack<STableI> stStack, int entryLoc, int tableLoc)\n\t\t\tthrows CompileTimeError {\n\t\t\n\t}", "public SymbolTable(){\r\n\t\tthis(INIT_CAPACITY);\r\n\t}", "public SymTable\ngetSymTable();", "SymTable() {\n\t\tmap = new HashMap<String, Sym>();\n\t\tlist.add(map);\n\t}", "public HashMap<String, Fraction> getSymbolTable() {\n\n\t\treturn symbolTable;\n\t}", "private void buildSymbolTables() {\n new SymbolsTableBuilder(data).read(this);//.dump();\n }", "long getSymbol();", "private SequentialSearchSymbolTable() {\n\t\t\tkeySet = new ArrayList<>();\n\t\t\tvalueSet = new ArrayList<>();\n\t\t\tsize = 0;\n\t\t}", "private SymbolData[]\n\t\t\tmakeSymbolMap(Map<StandardSymbolData, JsName> symbolTable) {\n\t\tfinal Set<String> nameUsed = new HashSet<String>();\n\t\tfinal Map<JsName, Integer> nameToFragment = new HashMap<JsName, Integer>();\n\t\tfor (int i = 0; i < jsProgram.getFragmentCount(); i++) {\n\t\t\tfinal Integer fragId = i;\n\t\t\tnew JsVisitor() {\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsForIn x, JsContext ctx) {\n\t\t\t\t\tif (x.getIterVarName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getIterVarName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsFunction x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsLabel x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameOf x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameRef x, JsContext ctx) {\n\t\t\t\t\t// Obviously this isn't even that accurate. Some of them are\n\t\t\t\t\t// variable names, some of the are property. At least this\n\t\t\t\t\t// this give us a safe approximation. Ideally we need\n\t\t\t\t\t// the code removal passes to remove stuff in the scope\n\t\t\t\t\t// objects.\n\t\t\t\t\tif (x.isResolved()) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsParameter x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsVars.JsVar x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t// alcina - add classlits to name/fragment\n\t\t\t\t\tif (x.getName().getIdent().startsWith(\n\t\t\t\t\t\t\t\"com_google_gwt_lang_ClassLiteralHolder_\")) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.accept(jsProgram.getFragmentBlock(i));\n\t\t}\n\t\t// TODO(acleung): This is a temp fix. Once we know this is safe. We\n\t\t// new to rewrite it to avoid extra ArrayList creations.\n\t\t// Or we should just consider serializing it as an ArrayList if\n\t\t// it is that much trouble to determine the true size.\n\t\tList<SymbolData> result = new ArrayList<SymbolData>();\n\t\tfor (Map.Entry<StandardSymbolData, JsName> entry : symbolTable\n\t\t\t\t.entrySet()) {\n\t\t\tStandardSymbolData symbolData = entry.getKey();\n\t\t\tsymbolData.setSymbolName(entry.getValue().getShortIdent());\n\t\t\tInteger fragNum = nameToFragment.get(entry.getValue());\n\t\t\tif (fragNum != null) {\n\t\t\t\tsymbolData.setFragmentNumber(fragNum);\n\t\t\t}\n\t\t\tif (nameUsed.contains(entry.getValue().getIdent())\n\t\t\t\t\t|| entry.getKey().isClass()) {\n\t\t\t\tresult.add(symbolData);\n\t\t\t}\n\t\t}\n\t\treturn result.toArray(new SymbolData[result.size()]);\n\t}", "public abstract String getSymbol();", "public BSTSymbolTable()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "String getSymbol();", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "public SymbolTable(int size) {\n table = new Hashtable<String, SymbolTableEntry>(size);\n }", "public void setSymbolTable(HashMap<String, Fraction> table) {\n\n\t\tthis.symbolTable = table;\n\t}", "public void nameAnalysis(SymTable symTab) { }", "public String getSymbol() {\n }", "public SymTab(){\n \tclasses = new HashMap<String, ClassNode>();\n \tmethods = new HashMap<String, MethodNode>();\n }", "private static ElfType32.Elf32_Sym parseSymbolTable(byte[] header){\n\t\tElf32_Sym sym = new Elf32_Sym();\n\t\tsym.st_name = Utils.copyBytes(header, 0, 4);\n\t\tsym.st_value = Utils.copyBytes(header, 4, 4);\n\t\tsym.st_size = Utils.copyBytes(header, 8, 4);\n\t\tsym.st_info = header[12];\n\t\t//FIXME 这里有一个问题,就是这个字段读出来的值始终是0\n\t\tsym.st_other = header[13];\n\t\tsym.st_shndx = Utils.copyBytes(header, 14, 2);\n\t\treturn sym;\n\t}", "public Symbol(Hashtable symbols,String name,int value,int type) {\n\tthis.name = name;\n\tthis.value = value;\n\tthis.type = type;\n\tmdefs = new Vector();\n\tif (symbols != null) symbols.put(name,this);\n }", "public Symbol getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public interface BasicST<Key, Value> {\n /**\n * Returns {@code true} if this symbol table is empty, and {@code false} otherwise.\n *\n * @return {@code true} if this symbol table is empty, and {@code false} otherwise.\n */\n public boolean isEmpty();\n\n /**\n * Returns the number of key-value pairs in this symbol table.\n *\n * @return the number of key-value pairs in this symbol table.\n */\n public int size();\n\n /**\n * Inserts the {@code key} and {@code value} pair into this symbol table.\n *\n * @param key the key.\n * @param value the value.\n */\n public void put(Key key, Value value);\n\n /**\n * Returns the value associated with {@code key} in this symbol table, or {@code null}.\n *\n * @param key the key.\n * @return the value associated with {@code key} in this symbol table, or {@code null}.\n */\n public Value get(Key key);\n\n /**\n * Returns {@code true} if this symbol table contains {@code key}, and {@code false} otherwise.\n *\n * @param key the key.\n * @return {@code true} if this symbol table contains {@code key}, and {@code false} otherwise.\n */\n public boolean contains(Key key);\n\n /**\n * Deletes {@code key} and the associated value from this symbol table.\n *\n * @param key the key.\n */\n public void delete(Key key);\n\n /**\n * Returns all the keys in this symbol table.\n *\n * @return all the keys in this symbol table.\n */\n public Iterable<Key> keys();\n}", "public SymbolTable(Program program) {\n tableValid = true;\n this.parentSymbolTable = null;\n this.entries = new HashMap<>();\n SymbolTableBuilder stb = new SymbolTableBuilder(program, this);\n if (!stb.isBuildSuccessful()) {\n tableValid = false;\n }\n }", "public static Set<Symbol> getSymbols(SymbolTable st) {\n Set<Symbol> ret = new LinkedHashSet<Symbol>();\n if (st == null) {\n return ret;\n }\n for (IDExpression key : getTable(st).keySet()) {\n if (key instanceof Identifier) {\n Symbol symbol = ((Identifier)key).getSymbol();\n if (symbol != null) {\n ret.add(symbol);\n }\n }\n }\n return ret;\n }", "String symbol();", "@Override\n public String getSymbol() {\n return SYMBOL;\n }", "public SymbolTable(SymbolTable parentST, String id) {\n\t\tthis.scopeName = id;\n this.parentSymbolTable = parentST;\n this.entries = new HashMap<>();\n this.methodEntries = new HashMap<>();\n }", "public void generate (java.util.Hashtable symbolTable, com.sun.tools.corba.se.idl.SymtabEntry entry)\n {\n this.symbolTable = symbolTable;\n this.entry = entry;\n init ();\n\n openStream ();\n if (stream == null)\n return;\n writeHeading ();\n writeBody ();\n writeClosing ();\n closeStream ();\n }", "public void dumpTable() {\n Enumeration elements = table.elements();\n while (elements.hasMoreElements()){\n SymbolTableEntry printEntry = (SymbolTableEntry) elements.nextElement();\n printName(printEntry);\n }\n }", "public String getSymbol( )\n {\n return symbol;\n }", "public String getSymbol(){\n return this.symbol;\n }", "protected static Map<IDExpression, Declaration>\n getTable(SymbolTable symtab) {\n // This looks ugly but inevitable since interface cannot have a\n // protected method and we do not want to expose this method to public.\n if (symtab instanceof ClassDeclaration) {\n return ((ClassDeclaration)symtab).getTable();\n } else if (symtab instanceof CompoundStatement) {\n return ((CompoundStatement)symtab).getTable();\n } else if (symtab instanceof DoLoop) {\n return ((DoLoop)symtab).getTable();\n } else if (symtab instanceof ExceptionHandler) {\n return ((ExceptionHandler)symtab).getTable();\n } else if (symtab instanceof ForLoop) {\n return ((ForLoop)symtab).getTable();\n } else if (symtab instanceof LinkageSpecification) {\n return ((LinkageSpecification)symtab).getTable();\n } else if (symtab instanceof Namespace) {\n return ((Namespace)symtab).getTable();\n } else if (symtab instanceof Procedure) {\n return ((Procedure)symtab).getTable();\n } else if (symtab instanceof TranslationUnit) {\n return ((TranslationUnit)symtab).getTable();\n } else if (symtab instanceof WhileLoop) {\n return ((WhileLoop)symtab).getTable();\n } else {\n throw new InternalError(\"[ERROR] Unknown SymbolTable type.\");\n }\n }", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "public String getSymbol() {\r\n\t\treturn symbol;\r\n\t}", "@Override\r\n public void linkToSymbol(HashMap<Symbol, SymbolTableEntry> table) {\r\n // link id1\r\n if (id1 != null) {\r\n ste1 = linkIdToSTE(id1, table);\r\n }\r\n // link id3\r\n if (id3 != null) {\r\n ste3 = linkIdToSTE(id3, table);\r\n }\r\n }", "public void addToSymbolsTable(Token t) {\n\t\tif (!t.hasError()\n && (t.getType().equals(\"Constante\") || (t.getType().equals(\"Cadena\")))\n && !reservedWords.containsKey(t.getToken())\n && !symbolsTable.contains(t.getToken())\n ) {\n\n\t\t\tsymbolsTable.add(t);\n\t\t\t//System.out.println(\"[V] Token added line: \" + line + \" TokenType: \"\n\t\t\t//\t\t+ t.getType() + \" Token: \" + t.getToken());\n\t\t} else {\n\t\t\t//System.out.println(\"[X] Token NOT added to the symbol table. line: \"\n\t\t\t//\t\t+ line + \" TokenType: \" + t.getType() + \" Token: \"\n\t\t\t//\t\t+ t.getToken());\n\t\t}\n\n\t}", "public Symbol getSymbol() {\n\n return this.symbol;\n }", "public List<Symbol> internals() {\n\t\tList<Table.Entry<Symbol, List<Entry<T>>>> entries = table.toList();\n\t\tList<Entry<T>> internals = new ArrayList<Entry<T>>();\n\t\t\n\t\tfor (Table.Entry<Symbol, List<Entry<T>>> entry : entries) {\n\t\t\tinternals.addAll(entry.value);\n\t\t}\n\t\t\n\t\tCollections.sort(internals, new EntryComparator());\n\n\t\tList<Symbol> ret = new ArrayList<Symbol>(internals.size());\n\t\tfor (Entry<T> entry : internals) {\n\t\t\tret.add(entry.symbol);\n\t\t}\n\t\treturn ret;\n\t}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 525,\n FQN=\"llvm::Module::getValueSymbolTable\", NM=\"_ZN4llvm6Module19getValueSymbolTableEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZN4llvm6Module19getValueSymbolTableEv\")\n //</editor-fold>\n public ValueSymbolTable /*&*/ getValueSymbolTable() {\n return /*Deref*/ValSymTab;\n }", "private void createSymbolTable( Grammar grammar, State state, List<Action> tshifts, List<Action> ntshifts)\n {\n state.stackOps = new StackOp[ tshifts.size()];\n for( int i=0; i<state.stackOps.length; i++)\n {\n StackOp shift = new StackOp();\n state.stackOps[ i] = shift;\n \n int[] symbol = tshifts.get( i).symbols;\n if ( symbol.length == 2)\n {\n shift.low = symbol[ 0];\n shift.high = symbol[ 1];\n }\n else if ( symbol.length == 1)\n {\n shift.low = symbol[ 0];\n shift.high = symbol[ 0];\n }\n }\n }", "public String getSymbol() {\n return this.symbol ;\n }", "@Override\n\t\tpublic void inAListExpr(AListExpr node) {\n\t\t\ttry {\t\n\t\t\t\t if(node.getExpr().toString().contains(\"String\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"String\"));\n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"Bool\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Bool\"));\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t if(node.getExpr().toString().contains(\"Int\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Int\"));\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"IO\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"IO\"));\n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"Error\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Error\"));\n\t\t\t\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"void\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"void\"));\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t}catch(SemanticException e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "java.lang.String getSymbolTuple();", "public interface Symbol {\r\n String getFullId();\r\n String getId(); // scoped to parent id\r\n String getFullParentId();\r\n String getDescriptiveName();\r\n String getHRef(String preDir);\r\n String getFileLocation();\r\n\r\n Type getType();\r\n\r\n enum Type {\r\n Dir,File,Other\r\n }\r\n}", "public String getSymbol() {\n\t\treturn symbol;\n\t}", "public String getSymbol() {\n return symbol;\n }", "@Override public String symbol() {\n return symbol;\n }", "public String getSymbol() {\n return symbol;\n }", "public int getSymbolTableSize() {\n\t\treturn symbolTableSize;\n\t}", "private Token symbol(TOKEN_TYPE t){\t\n\t\tntk++;\n\t\treturn new Token(t, yytext(), yyline+1, yycolumn+1); // yytext() é o lexema\n\t}", "protected EnumSyntax[] getEnumValueTable() {\n/* 206 */ return (EnumSyntax[])myEnumValueTable;\n/* */ }", "public boolean isEnabled(SymbolTable symbolTable);", "public interface WriteableSymbolTable extends SymbolTable {\n\n /**\n * Return the id of the mapping for the given symbol or add the symbol as a new mapping and\n * return the newly assigned id\n * @param symbol\n * @return\n */\n int getOrAdd(String symbol);\n\n /**\n * This puts the given mapping in with the specified id; you cannot use this to overwrite mappings.\n * If you call this and it tries to do that, it will throw an IllegalArgumentException. Overwriting\n * mappings should be done via `remove()` then `getOrAdd()`. This is only useful in small circumstances\n * where you need to ensure that the mappings between two tables are the same.\n * @param symbol\n * @param id the next mapping assigned by this symbol table will be updated to respect this\n */\n void put(String symbol, int id);\n\n}", "com.google.protobuf.ByteString\n getSymbolBytes();", "void define(Symbol sym);", "protected char getSymbol(){\r\n\t\treturn this.symbol;\r\n\t}", "public String getTentSymbol(){ return tentSymbol;}", "@Converted(kind = Converted.Kind.AUTO,\n source = \"${LLVM_SRC}/llvm/include/llvm/IR/Module.h\", line = 523,\n FQN=\"llvm::Module::getValueSymbolTable\", NM=\"_ZNK4llvm6Module19getValueSymbolTableEv\",\n cmd=\"jclank.sh -java-options=${SPUTNIK}/modules/org.llvm.ir/llvmToClangType ${LLVM_SRC}/llvm/lib/IR/AsmWriter.cpp -nm=_ZNK4llvm6Module19getValueSymbolTableEv\")\n //</editor-fold>\n public /*const*/ ValueSymbolTable /*&*/ getValueSymbolTable$Const() /*const*/ {\n return /*Deref*/ValSymTab;\n }", "public SymbolTable(int capacity){\r\n\t\tN = 0;\r\n\t\tM = capacity;\r\n\t\tkeys = new String[M];\r\n\t\tvals = new Character[M];\r\n\t}", "abstract public SemSym nameAnalysis(SymTable symTab);", "private static void afftabSymb() { \r\n\t\tSystem.out.println(\" code categorie type info\");\r\n\t\tSystem.out.println(\" |--------------|--------------|-------|----\");\r\n\t\tfor (int i = 1; i <= it; i++) {\r\n\t\t\tif (i == bc) {\r\n\t\t\t\tSystem.out.print(\"bc=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else if (i == it) {\r\n\t\t\t\tSystem.out.print(\"it=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else\r\n\t\t\t\tEcriture.ecrireInt(i, 6);\r\n\t\t\tif (tabSymb[i] == null)\r\n\t\t\t\tSystem.out.println(\" référence NULL\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" \" + tabSymb[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public char getSymbol() {\n return symbol;\n }", "public void setSymbol(Symbol symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t}", "ISymbolStreamComp getSymbolStream();", "@Override\r\n\tpublic String toString() {\r\n\t\treturn getSymbol().toString();\r\n\t}", "char getSymbol();", "public SymbolTable copy() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\treturn st;\n\t}", "public abstract Result symbolize(Symbolizer sym, ArrayList<LocalSymbol> locals);", "@Override\n\t public Set<Symbol> getSymbols() {\n\t return Collections.unmodifiableSet(symbols);\n\t }", "public void setSymbol(String symbol) {\n this.symbol = symbol;\n }", "public String getSymbolName() {\n return this.name;\n }", "public SymbolTable(File symbolDataFile) throws FileNotFoundException\n {\n symbolPairs = new ArrayIndexList<SymbolPair>();\n Scanner fileScan = new Scanner(symbolDataFile);\n String[] splitLine;\n while (fileScan.hasNextLine())\n {\n /* http://stackoverflow.com/questions/5067942/what-is-the-best-way-to-extract-the-first-word-from-a-string-in-java\n First word = ticker symbol, rest of line = company name\n */\n splitLine = fileScan.nextLine().split(\" \", 2);\n symbolPairs.add(symbolPairs.size(), (new SymbolPair(splitLine[0], splitLine[1].trim())));\n }\n }", "java.lang.String getSymbolId();", "private Map<Symbol, Entry<T>> getInternalTable() {\n\t\tif (internalTable == null) {\n\t\t\t// Iterate table [external -> (internal, value) list] and build new map [internal -> (external, value)]\n\t\t\tinternalTable = new HashMap<Symbol, Entry<T>>();\n\t\t\tList<Table.Entry<Symbol, List<Entry<T>>>> entries = table.toList();\n\t\t\tfor (Table.Entry<Symbol, List<Entry<T>>> entry : entries) {\n\t\t\t\tfor (Entry<T> internals : entry.value) {\n\t\t\t\t\tinternalTable.put(internals.symbol, new Entry<T>(entry.key /* external symbol */, internals.value, internals.index));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn internalTable;\n\t}", "public long[] getSymbolCounts() {\n\t\treturn symbolCounts;\n\t}", "public SymbolTableEntry getEntry(String id){\n return table.get(id);\n }", "private void setupTokenHashTable() {\n this.tokenHashTable = new Hashtable<>();\n \t\n /* Identifier Token */\n this.getTokenHashTable().put(1001, \"idTK\");\n this.getTokenHashTable().put(1002, \"integerTK\");\n \t\n /* Operators and Delimiters */\n this.getTokenHashTable().put(1003, \"equalsTK\");\n this.getTokenHashTable().put(1004, \"lessThanTK\");\n this.getTokenHashTable().put(1005, \"greaterThanTK\");\n this.getTokenHashTable().put(1006, \"compareEqualTK\");\n this.getTokenHashTable().put(1007, \"colonTK\");\n this.getTokenHashTable().put(1008, \"plusTK\");\n this.getTokenHashTable().put(1009, \"minusTK\");\n this.getTokenHashTable().put(1010, \"multiplyTK\");\n this.getTokenHashTable().put(1011, \"divideTK\");\n this.getTokenHashTable().put(1012, \"modulusTK\");\n this.getTokenHashTable().put(1013, \"periodTK\");\n this.getTokenHashTable().put(1014, \"leftParenTK\");\n this.getTokenHashTable().put(1015, \"rightParenTK\");\n this.getTokenHashTable().put(1016, \"commaTK\");\n this.getTokenHashTable().put(1017, \"leftBraceTK\");\n this.getTokenHashTable().put(1018, \"rightBraceTK\");\n this.getTokenHashTable().put(1019, \"semicolonTK\");\n this.getTokenHashTable().put(1020, \"leftBracketTK\");\n this.getTokenHashTable().put(1021, \"rightBracketTK\");\n \n /* Extra Tokens */\n this.getTokenHashTable().put(1022, \"EofTK\");\n this.getTokenHashTable().put(-2, \"Invalid Character\");\n this.getTokenHashTable().put(-3, \"Invalid Comment\");\n }", "public String getSymbol() {\n return symbol.get();\n }", "Character getSymbol(Environment environment);", "public SymbolChecking(){\n\t\t\ttop=null;\n\t\t\tlength=0;\n\t\t}", "public SymbolTable getSubSymbolTable() {\n return (unit != null) ? unit.getStaticFieldLog() : null;\n }", "public interface ITerminalSymbols {\n\n\tint TokenNameWHITESPACE = 1000;\n\tint TokenNameCOMMENT_LINE = 1001;\n\tint TokenNameCOMMENT_BLOCK = 1002;\n\tint TokenNameCOMMENT_JAVADOC = 1003;\n\n\tint TokenNameIdentifier = 5;\n\tint TokenNameabstract = 98;\n\n /**\n * \"assert\" token (added in J2SE 1.4).\n */\n\tint TokenNameassert = 118;\n\tint TokenNameboolean = 18;\n\tint TokenNamebreak = 119;\n\tint TokenNamebyte = 19;\n\tint TokenNamecase = 211;\n\tint TokenNamecatch = 225;\n\tint TokenNamechar = 20;\n\tint TokenNameclass = 165;\n\tint TokenNamecontinue = 120;\n\tint TokenNamedefault = 212;\n\tint TokenNamedo = 121;\n\tint TokenNamedouble = 21;\n\tint TokenNameelse = 213;\n\tint TokenNameextends = 243;\n\tint TokenNamefalse = 37;\n\tint TokenNamefinal = 99;\n\tint TokenNamefinally = 226;\n\tint TokenNamefloat = 22;\n\tint TokenNamefor = 122;\n\tint TokenNameif = 123;\n\tint TokenNameimplements = 268;\n\tint TokenNameimport = 191;\n\tint TokenNameinstanceof = 65;\n\tint TokenNameint = 23;\n\tint TokenNameinterface = 180;\n\tint TokenNamelong = 24;\n\tint TokenNamenative = 100;\n\tint TokenNamenew = 32;\n\tint TokenNamenull = 38;\n\tint TokenNamepackage = 214;\n\tint TokenNameprivate = 101;\n\tint TokenNameprotected = 102;\n\tint TokenNamepublic = 103;\n\tint TokenNamereturn = 124;\n\tint TokenNameshort = 25;\n\tint TokenNamestatic = 94;\n\tint TokenNamestrictfp = 104;\n\tint TokenNamesuper = 33;\n\tint TokenNameswitch = 125;\n\tint TokenNamesynchronized = 85;\n\tint TokenNamethis = 34;\n\tint TokenNamethrow = 126;\n\tint TokenNamethrows = 227;\n\tint TokenNametransient = 105;\n\tint TokenNametrue = 39;\n\tint TokenNametry = 127;\n\tint TokenNamevoid = 26;\n\tint TokenNamevolatile = 106;\n\tint TokenNamewhile = 117;\n\tint TokenNameIntegerLiteral = 40;\n\tint TokenNameLongLiteral = 41;\n\tint TokenNameFloatingPointLiteral = 42;\n\tint TokenNameDoubleLiteral = 43;\n\tint TokenNameCharacterLiteral = 44;\n\tint TokenNameStringLiteral = 45;\n\tint TokenNamePLUS_PLUS = 1;\n\tint TokenNameMINUS_MINUS = 2;\n\tint TokenNameEQUAL_EQUAL = 35;\n\tint TokenNameLESS_EQUAL = 66;\n\tint TokenNameGREATER_EQUAL = 67;\n\tint TokenNameNOT_EQUAL = 36;\n\tint TokenNameLEFT_SHIFT = 14;\n\tint TokenNameRIGHT_SHIFT = 11;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT = 12;\n\tint TokenNamePLUS_EQUAL = 168;\n\tint TokenNameMINUS_EQUAL = 169;\n\tint TokenNameMULTIPLY_EQUAL = 170;\n\tint TokenNameDIVIDE_EQUAL = 171;\n\tint TokenNameAND_EQUAL = 172;\n\tint TokenNameOR_EQUAL = 173;\n\tint TokenNameXOR_EQUAL = 174;\n\tint TokenNameREMAINDER_EQUAL = 175;\n\tint TokenNameLEFT_SHIFT_EQUAL = 176;\n\tint TokenNameRIGHT_SHIFT_EQUAL = 177;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178;\n\tint TokenNameOR_OR = 80;\n\tint TokenNameAND_AND = 79;\n\tint TokenNamePLUS = 3;\n\tint TokenNameMINUS = 4;\n\tint TokenNameNOT = 71;\n\tint TokenNameREMAINDER = 9;\n\tint TokenNameXOR = 63;\n\tint TokenNameAND = 62;\n\tint TokenNameMULTIPLY = 8;\n\tint TokenNameOR = 70;\n\tint TokenNameTWIDDLE = 72;\n\tint TokenNameDIVIDE = 10;\n\tint TokenNameGREATER = 68;\n\tint TokenNameLESS = 69;\n\tint TokenNameLPAREN = 7;\n\tint TokenNameRPAREN = 86;\n\tint TokenNameLBRACE = 110;\n\tint TokenNameRBRACE = 95;\n\tint TokenNameLBRACKET = 15;\n\tint TokenNameRBRACKET = 166;\n\tint TokenNameSEMICOLON = 64;\n\tint TokenNameQUESTION = 81;\n\tint TokenNameCOLON = 154;\n\tint TokenNameCOMMA = 90;\n\tint TokenNameDOT = 6;\n\tint TokenNameEQUAL = 167;\n\tint TokenNameEOF = 158;\n\tint TokenNameERROR = 309;\n\n /**\n * \"enum\" keyword (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameenum = 400;\n\n /**\n * \"@\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameAT = 401;\n\n /**\n * \"...\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameELLIPSIS = 402;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNameconst = 403;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNamegoto = 404; // goto not found in Java ? :)\n\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameARROW = 405;\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameCOLON_COLON = 406;\n\t\n\t\n}", "boolean hasSymbol();", "boolean hasSymbol();", "public Symbol getBaseSymbol() {\n return base;\n }", "public static void buildSymTable(CommonTree tree) {\n\t\tListIterator<?> tmp = tree.getChildren().listIterator();\n\t\tArrayList<CommonTree> elements = new ArrayList<CommonTree>();\n\t\twhile (tmp.hasNext())\n\t\t\telements.add((CommonTree) tmp.next()); /* Any type errors found here! */\n\t\tListIterator<CommonTree> iter = elements.listIterator();//= tree.getChildren().listIterator();\n\t\t//end type checking//\n\n\n\t\twhile(iter.hasNext()) {\n\t\t\tCommonTree element = iter.next();//this does go here \n\n\t\t\tif (element.getChildCount() == 2 && element.getText().equalsIgnoreCase(\"DECL\")){\n\t\t\t\tsymTable.insertSymbol(new Symbol(element.getChild(1).getText(),element.getChild(0).getText()));\n\t\t\t\t//System.out.println(\"Left: \" + element.getChild(0).getText());\n\t\t\t\t//System.out.println(\"Right: \" + element.getChild(1).getText());\n\t\t\t}\n\t\t\telse if (element.getChildCount() == 1){\n\t\t\t\t//System.out.println(\"Dest: \" + element.getChild(0).getText());\n\n\t\t\t}\n\t\t\telse if(element.getChildCount() == 0){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbuildSymTable(element);\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n public void define(Symbol symbol) {\n }", "@Override\n public void define(Symbol symbol) {\n }", "public Object clone() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\tst.save = (Stack<HashMap<String, ?>>) save.clone();\n\t\treturn st;\n\t}", "abstract String junctionSymbol();", "public IStationCodeTable getStationCodeTable();", "public ATExpression base_tableExpression();" ]
[ "0.7818436", "0.7664437", "0.7605204", "0.7589264", "0.745587", "0.73832047", "0.7373048", "0.7272642", "0.7131122", "0.7075995", "0.6996624", "0.6988119", "0.6986946", "0.6982295", "0.6971095", "0.6831453", "0.68199474", "0.68127024", "0.6769686", "0.672819", "0.6723037", "0.6690792", "0.66654086", "0.665907", "0.66041565", "0.6559552", "0.6557207", "0.65485847", "0.6546256", "0.6484269", "0.64450413", "0.6378756", "0.6353373", "0.6332132", "0.6306681", "0.62931365", "0.6264247", "0.6261448", "0.6234396", "0.6220364", "0.62199426", "0.62063456", "0.62063456", "0.6199954", "0.6180623", "0.6171067", "0.61541796", "0.61280245", "0.6121513", "0.61153597", "0.61141413", "0.61116314", "0.61101055", "0.61093205", "0.610241", "0.6091706", "0.60549337", "0.60450006", "0.60217816", "0.60198724", "0.6014522", "0.60138035", "0.60098803", "0.600238", "0.59748524", "0.59672254", "0.5942854", "0.5941169", "0.59367484", "0.5895051", "0.58816147", "0.5859367", "0.5845625", "0.58399194", "0.5821869", "0.5821658", "0.58137393", "0.5806192", "0.5801919", "0.57975596", "0.57943743", "0.57786727", "0.5768787", "0.5743277", "0.574122", "0.572872", "0.57278764", "0.5721364", "0.5702509", "0.5701827", "0.5698219", "0.5691483", "0.5691483", "0.5685817", "0.5671561", "0.5669624", "0.5669624", "0.5659438", "0.56593084", "0.56552345", "0.56550175" ]
0.0
-1
check for flag before dumping symbol table
public void unScope() { if (dump) { dumpSymTable(); } scopes.pop(); typeScopes.pop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void buildSymbolTables() {\n new SymbolsTableBuilder(data).read(this);//.dump();\n }", "public boolean isSmapDumped();", "public void dump()\r\n {\r\n dump(true);\r\n }", "public void dumpTable() {\n Enumeration elements = table.elements();\n while (elements.hasMoreElements()){\n SymbolTableEntry printEntry = (SymbolTableEntry) elements.nextElement();\n printName(printEntry);\n }\n }", "boolean hasSymbol();", "boolean hasSymbol();", "public void setSymbolTable(SymbolTable st) {\n\t this.st = st;\n\t }", "boolean hasBbgSymbol();", "public boolean isEnabled(SymbolTable symbolTable);", "private void switchOnFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS]|= (1<<flag);\r\n\t}", "static void _printAllFlagNames(Object c_, StringBuffer sb_,\r\n StringBuffer sb2_)\r\n {\r\n if (c_ instanceof Component) {\r\n if (htComponentFlags == null) {\r\n htComponentFlags = new Hashtable();\r\n htComponentFlags.put(\"Enabled\", htComponentFlags);\r\n htComponentFlags.put(\"Garbage\", htComponentFlags);\r\n htComponentFlags.put(\"GarbageDisplay\", htComponentFlags);\r\n htComponentFlags.put(\"Trace\", htComponentFlags);\r\n htComponentFlags.put(\"Debug\", htComponentFlags);\r\n htComponentFlags.put(\"EventExport\", htComponentFlags);\r\n htComponentFlags.put(\"ErrorNotice\", htComponentFlags);\r\n }\r\n }\r\n else if (c_ instanceof Port) {\r\n if (htPortFlags == null) {\r\n htPortFlags = new Hashtable();\r\n htPortFlags.put(\"EventExport\", htPortFlags);\r\n htPortFlags.put(\"SendTrace\", htPortFlags);\r\n htPortFlags.put(\"DataTrace\", htPortFlags);\r\n }\r\n }\r\n PropertyDescriptor[] pds_ =\r\n drcl.comp.Util.getAllPropertyDescriptors(c_);\r\n if (pds_ == null) return;\r\n Vector v_ = new Vector();\r\n for (int i=0; i<pds_.length; i++) {\r\n PropertyDescriptor pd_ = pds_[i];\r\n if (pd_.getWriteMethod() == null) continue;\r\n Method read_ = pd_.getReadMethod();\r\n String name_ = pd_.getDisplayName();\r\n if (read_ == null) continue;\r\n if (!name_.endsWith(\"Enabled\")) continue;\r\n name_ = name_.substring(0,1).toUpperCase() + name_.substring(1);\r\n if (!read_.getName().equals(\"is\" + name_)) continue;\r\n if (!read_.getReturnType().equals(boolean.class)) continue;\r\n if (!name_.equals(\"Enabled\"))\r\n name_ = name_.substring(0, name_.length()-7);\r\n if (c_ instanceof Component && htComponentFlags.containsKey(name_)\r\n || c_ instanceof Port && htPortFlags.containsKey(name_))\r\n continue;\r\n try {\r\n if (((Boolean)read_.invoke(c_, null)).booleanValue())\r\n sb_.append(name_ + \" \");\r\n else if (sb2_ != null)\r\n sb2_.append(name_ + \" \");\r\n }\r\n catch (Exception e_)\r\n {}\r\n }\r\n }", "public static boolean isSymbolLookupEnabled() {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\treturn prefs.getBoolean(GHIDRA_SYMBOL_LOOKUP_ENABLED);\n\t}", "boolean hasMappings() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00ef in method: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.icu.impl.coll.CollationDataBuilder.hasMappings():boolean\");\n }", "boolean hasSymbolId();", "private boolean isFlagSet(short r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00f2 in method: android.location.GpsClock.isFlagSet(short):boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.isFlagSet(short):boolean\");\n }", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "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 interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "@Override\n\tpublic void dump() {\n\t\t\n\t}", "private boolean existsSymbol(String symbol) {\r\n\t\treturn ts.containsKey(symbol.hashCode());\r\n\t}", "@Override\n public void saveSymbol(SecuritySymbols symbol) {\n\n }", "public void dump(java.io.PrintStream out) {\n for (int i=0; i<registers.length; ++i) {\n if (registers[i] == null) continue;\n out.print(i+\": \"+registers[i]+\" \");\n }\n out.println();\n }", "static void m7753b() {\n f8029a = false;\n }", "public boolean isSetSymbol() {\r\n return EncodingUtils.testBit(__isset_bitfield, __SYMBOL_ISSET_ID);\r\n }", "private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void generate (java.util.Hashtable symbolTable, com.sun.tools.corba.se.idl.SymtabEntry entry)\n {\n this.symbolTable = symbolTable;\n this.entry = entry;\n init ();\n\n openStream ();\n if (stream == null)\n return;\n writeHeading ();\n writeBody ();\n writeClosing ();\n closeStream ();\n }", "boolean isReserved();", "public boolean getSaveBytecode();", "public boolean hasSymbol() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "String getSpareFlag();", "@Override\n\tpublic void buildSymbolTable(STableI table, Stack<STableI> stStack, int entryLoc, int tableLoc)\n\t\t\tthrows CompileTimeError {\n\t\t\n\t}", "Character symbolStackWrite();", "public boolean hasSymbol() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "boolean hasSymbolTuple();", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "public static final boolean isDebugInfo() { return true; }", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "public boolean lookup(SymbolTableEntry entry) {\n return table.containsKey(entry.getName());\n }", "public void processLabel(StreamTokenizer st) {\n\t\tif(symtab.searchLabel(st.sval)) {\r\n\t\t\r\n\t\t\tSystem.out.println(st.sval);\r\n\t\t\tSystem.out.println(\"Error: Duplicate Label declaration\");\r\n\t\t}\r\n\t\t//otherwise, insert <st.sval,locctr> into symtab.\r\n\t\telse {\r\n\t\t\tsLocctr = Integer.toHexString(locctr.intValue());\r\n \t\tif (sLocctr.length() == 1) {\r\n \t\t\t\r\n \t\t\tsymtab.setKeyVal(new Key(st.sval,\"000\" + Integer.toHexString(locctr.intValue()),symtab), \"000\" + Integer.toHexString(locctr.intValue()));\r\n \t\t\t\r\n \t\t}\r\n \t\telse if (sLocctr.length() == 2) {\r\n \t\t\tsymtab.setKeyVal(new Key(st.sval,\"00\" + Integer.toHexString(locctr.intValue()),symtab), \"00\" + Integer.toHexString(locctr.intValue()));\r\n \t\t}\r\n \t\telse if (sLocctr.length() == 3 ) {\r\n \t\t\tsymtab.setKeyVal(new Key(st.sval,\"0\" + Integer.toHexString(locctr.intValue()),symtab), \"0\" + Integer.toHexString(locctr.intValue()));\r\n \t\t}\r\n \t\telse {\r\n \t\t\tsymtab.setKeyVal(new Key(st.sval,\"\" + Integer.toHexString(locctr.intValue()),symtab), \"\" + Integer.toHexString(locctr.intValue()));\r\n \t\t}\r\n\t\t}\r\n\t\t/*\r\n\t\ttry {\r\n\t\t\tmyWriter.write(st.sval);\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\t\t*/\r\n\t\tlabelDone = true;\r\n\t}", "void isPrintable(boolean b) {\n\t\tm.isPrintable=b;\n\t}", "public void setDump(boolean dump) {\n isDump = dump;\n }", "public void dump() {\n\t\tfor(Symbol s: assignments.keySet()) {\n\t\t\tSystem.out.println(s.toString() + \" = \" + assignments.get(s));\n\t\t}\t\n\t}", "static void m7752a() {\n f8029a = true;\n }", "public static void setSymbolLookupEnabled(boolean enabled) {\n\t\tIPreferenceStore prefs = Activator.getDefault().getPreferenceStore();\n\t\tprefs.setValue(GHIDRA_SYMBOL_LOOKUP_ENABLED, enabled);\n\t}", "boolean k2h_set_bumup_debug_signal_user1();", "public abstract void mo32005dK(boolean z);", "@Override\n\t\tpublic void outABoolExpr(ABoolExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "static void vectorTable() {\r\n\t\tUS.ASM(\"b 0xf8\"); // jump to reset method (0x100 - 8 - 0)\r\n\t\tUS.ASM(\"b 0x7f4\"); // undefined instruction (0x800 - 8 - 4)\r\n\t\tUS.ASM(\"b 0x1f0\"); // jump to supervisor call (0x200 - 8 - 8)\r\n\t\tUS.ASM(\"b 0x8ec\"); // prefetch abort, stop here (0x900 - 8 - 0xc)\r\n\t\tUS.ASM(\"b 0x9e8\"); // data abort, stop here (0xa00 - 8 - 0x10)\r\n\t\tUS.ASM(\"b -8\"); // not used, stop here\r\n\t\tUS.ASM(\"b 0x3e0\"); // jump to IRQ interrupt (0x400 - 8 - 0x18)\r\n\t\tUS.ASM(\"b -8\"); // FIQ, stop here\r\n\t}", "public void dump();", "public SymbolChecking(){\n\t\t\ttop=null;\n\t\t\tlength=0;\n\t\t}", "public SymbolTable getSymbolTable() {\n return this.symbolTable;\n }", "boolean hasFlag();", "public /* synthetic */ void mo14082b(Boolean bool) throws Exception {\n m17130I();\n }", "private void switchOffFlag(int flag) {\r\n\t\tsim40.memory[Simulator.STATUS_ADDRESS] = ~(~sim40.memory[Simulator.STATUS_ADDRESS] | (1<<flag));\r\n\t}", "@Override\n\tpublic boolean isDebugEnabled(Marker marker) {\n\t\treturn false;\n\t}", "public boolean isSmapSuppressed();", "void smem_visualize_store(PrintWriter return_val) throws SoarException\n {\n try\n {\n smem_visualize_store_safe(return_val);\n }\n catch(SQLException e)\n {\n throw new SoarException(e);\n }\n }", "@Test\n public void testGetCoinTypeList() throws Exception {\n\n Map<Long,VirtualCoin> map;\n map = CacheHelper.getObj(CacheKey.VIRTUAL_COIN_ALL_KEY);\n Boolean flag = false;\n if (map == null){\n flag = true;\n }\n System.out.println(\"sdafds = \" + flag );\n }", "public Boolean isTerminal(String symbol){\n boolean terminal=false;\n for(Simbolo s:ejemplo.getMapa().values()){\n if(s.getValor().equals(symbol))\n terminal=s.isTerminal();\n }\n return terminal;\n }", "public void dump()\r\n {\r\n dump(null);\r\n }", "@Override\n\tpublic boolean removeSymbolSpecial(Symbol sym) {\n\t\ttry (LockHold hold = program.trace.lockWrite()) {\n\t\t\tAbstractDBTraceSymbol dbSym = symbolManager.getSymbolByID(sym.getID());\n\t\t\tif (sym != dbSym) {\n\t\t\t\tthrow new IllegalArgumentException(\"The given symbol is not part of this trace\");\n\t\t\t}\n\t\t\tif (dbSym.getSymbolType() != SymbolType.FUNCTION) {\n\t\t\t\treturn dbSym.delete();\n\t\t\t}\n\t\t\tAddress address = dbSym.getAddress();\n\t\t\tCollection<? extends TraceLabelSymbol> at =\n\t\t\t\tsymbolManager.labels().getAt(program.snap, null, address, false);\n\t\t\tString name;\n\t\t\tTraceNamespaceSymbol parent;\n\t\t\tSourceType source;\n\t\t\tif (at.isEmpty()) {\n\t\t\t\tif (dbSym.getSource() == SourceType.DEFAULT) {\n\t\t\t\t\treturn false; // Can't remove default function symbol\n\t\t\t\t}\n\t\t\t\tname = SymbolUtilities.getDefaultFunctionName(address);\n\t\t\t\tparent = global;\n\t\t\t\tsource = SourceType.DEFAULT;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Absorb another symbol\n\t\t\t\tTraceLabelSymbol primary = at.iterator().next();\n\t\t\t\tname = primary.getName();\n\t\t\t\tparent = primary.getParentNamespace();\n\t\t\t\tsource = primary.getSource();\n\t\t\t\t// TODO: Notify reference manager of symbol removal?\n\t\t\t\t// TODO: Should probably do this in delete, not here...\n\t\t\t\tprimary.delete();\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tdbSym.setNameAndNamespace(name, parent, source);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcatch (DuplicateNameException | InvalidInputException | CircularDependencyException e) {\n\t\t\t\t// TODO: Original catches Exception and returns false. Why?\n\t\t\t\tthrow new AssertionError(e);\n\t\t\t}\n\t\t}\n\t}", "private void m145780j() {\n String str;\n if (!this.f119477j.mo115499a() && !this.f119478k) {\n if ((this.f119477j.f119578d & 536870912) != 0) {\n str = \"WAL\";\n } else {\n str = \"PERSIST\";\n }\n m145773d(str);\n }\n }", "void mo1492b(boolean z);", "void dumpIR_debug(CodeGenEnv cenv){\n try {\n\n System.out.println(\"--- dump \" + class_.name.str + \"--- IR ----\");\n System.out.println(\"struct_typeRef: \");Thread.sleep(10);\n cenv.DumpIR( struct_typeRef );\n\n\n\n System.out.println(\"\\n---constructor: \");Thread.sleep(10);\n cenv.DumpIR(constructorFun);\n\n System.out.println(\"constructor initializer: \");Thread.sleep(10);\n cenv.DumpIR(constructor_initval_fun);\n\n System.out.println(\"\\n----class method: \");\n for (var i:classMethod.members){\n System.out.println(\"method: \" + i.funSymbol.str);Thread.sleep(10);\n cenv.DumpIR(i.funRef);\n }\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public SymbolTableEntry(){\n\t}", "public boolean hasData(int aSym);", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "public boolean isSprinting ( ) {\n\t\treturn extract ( handle -> handle.isSprinting ( ) );\n\t}", "void mo21071b(boolean z);", "private void putSymbol(String symbol, String type, String eqn){\n System.out.println(symbol+ \" \"+ type + \" \"+ eqn);\n }", "public boolean dumpNode ()\r\n {\r\n return dumpNode(0);\r\n }", "abstract public void _dump(Dump d);", "void hasStables(boolean hasStables);", "public boolean writeMemory() {\n return App.memory.setMemory(0, Memory.convertBSToBoolArr(script.machineCode));\n }", "public final void mo91723e(boolean z) {\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void dumpState() {\n\t\tif (_Debug) {\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> BEGIN - dumpState\");\n\n\t\t\tSystem.out.println(\" ::--> Set : \" + mCombination);\n\n\t\t\tif (mConditions != null) {\n\t\t\t\tSystem.out.println(\" ::--> [\" + mConditions.size() + \"]\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\n\t\t\t\tfor (int i = 0; i < mConditions.size(); i++) {\n\t\t\t\t\tSeqCondition cond = mConditions.get(i);\n\n\t\t\t\t\tcond.dumpState();\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\" NULL\");\n\t\t\t\tSystem.out.println(\" ::----------------::\");\n\t\t\t}\n\n\t\t\tSystem.out.println(\" :: SeqConditionSet --> END - dumpState\");\n\t\t}\n\t}", "public static void extraDump (StringBuilder b, String tab, \n Map.Entry <String, VersionedValue> entry, State self)\n {\n b.append (String.format (\"%s %s=[%d]%s\\n\", tab, entry.getKey (), entry.getValue ().getVersion (), entry.getValue ().getValue ()));\n }", "@Test\n\tpublic void statePrint_test()\n\t{\n\t\tb.set(0,0, 'x');\n\t\tb.set(0,1, 'o');\n\t\tb.set(0,2, 'x');\n\t\tb.set(1,0, 'o');\n\t\tb.set(1,1, 'x');\n\t\tb.statePrint();\n\t\tassertTrue(out.toString().contains(\"x|o|x\\n------\\no|x| \\n------\\n | | \\n\"));\n\t}", "public boolean contains_switch(String symbol);", "private SymbolData[]\n\t\t\tmakeSymbolMap(Map<StandardSymbolData, JsName> symbolTable) {\n\t\tfinal Set<String> nameUsed = new HashSet<String>();\n\t\tfinal Map<JsName, Integer> nameToFragment = new HashMap<JsName, Integer>();\n\t\tfor (int i = 0; i < jsProgram.getFragmentCount(); i++) {\n\t\t\tfinal Integer fragId = i;\n\t\t\tnew JsVisitor() {\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsForIn x, JsContext ctx) {\n\t\t\t\t\tif (x.getIterVarName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getIterVarName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsFunction x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsLabel x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameOf x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameRef x, JsContext ctx) {\n\t\t\t\t\t// Obviously this isn't even that accurate. Some of them are\n\t\t\t\t\t// variable names, some of the are property. At least this\n\t\t\t\t\t// this give us a safe approximation. Ideally we need\n\t\t\t\t\t// the code removal passes to remove stuff in the scope\n\t\t\t\t\t// objects.\n\t\t\t\t\tif (x.isResolved()) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsParameter x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsVars.JsVar x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t// alcina - add classlits to name/fragment\n\t\t\t\t\tif (x.getName().getIdent().startsWith(\n\t\t\t\t\t\t\t\"com_google_gwt_lang_ClassLiteralHolder_\")) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.accept(jsProgram.getFragmentBlock(i));\n\t\t}\n\t\t// TODO(acleung): This is a temp fix. Once we know this is safe. We\n\t\t// new to rewrite it to avoid extra ArrayList creations.\n\t\t// Or we should just consider serializing it as an ArrayList if\n\t\t// it is that much trouble to determine the true size.\n\t\tList<SymbolData> result = new ArrayList<SymbolData>();\n\t\tfor (Map.Entry<StandardSymbolData, JsName> entry : symbolTable\n\t\t\t\t.entrySet()) {\n\t\t\tStandardSymbolData symbolData = entry.getKey();\n\t\t\tsymbolData.setSymbolName(entry.getValue().getShortIdent());\n\t\t\tInteger fragNum = nameToFragment.get(entry.getValue());\n\t\t\tif (fragNum != null) {\n\t\t\t\tsymbolData.setFragmentNumber(fragNum);\n\t\t\t}\n\t\t\tif (nameUsed.contains(entry.getValue().getIdent())\n\t\t\t\t\t|| entry.getKey().isClass()) {\n\t\t\t\tresult.add(symbolData);\n\t\t\t}\n\t\t}\n\t\treturn result.toArray(new SymbolData[result.size()]);\n\t}", "public boolean getSendsAllParametersAsDump() \n {\n return true; \n }", "public abstract void mo32006dL(boolean z);", "public void dump(){\n int address = 0;\n String lastline = new String(\"junk\");\n String nextline;\n boolean star = false, needNewline = false;\n for (int i = 0; i < memory.length; i+=8){\n nextline = buildLine(i);\n if (! lastline.equals(nextline)){\n star = false;\n if (needNewline) System.out.println(); \n System.out.print(Tools.pad(Integer.toHexString(address), 4, \"0\",\n Direction.RIGHT) + \":\\t\");\n System.out.print(nextline); \n needNewline = true;\n } \n\t\t\telse if (lastline.equals(nextline) && (star == false)){\n System.out.println(\" *\");\n needNewline = false;\n star = true;\n } \n address = address + 32;\n lastline = nextline;\n }\n System.out.println();\n }", "boolean hasSig();", "public boolean isSetPdb()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(PDB$28) != 0;\r\n }\r\n }", "private boolean isNoService() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNoService():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isNoService():boolean\");\n }", "public boolean hasBbgSymbol() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "protected void updateFlags() {\n USE_CANNY = USE_CANNY && mainInterface.DEBUG_FRAME;\n DEBUG_PREP_FRAME = DEBUG_PREP_FRAME && mainInterface.DEBUG_FRAME;\n DEBUG_CONTOURS = DEBUG_CONTOURS && mainInterface.DEBUG_FRAME;\n DEBUG_POLY = DEBUG_POLY && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKERS = DEBUG_DRAW_MARKERS && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_MARKER_ID = DEBUG_DRAW_MARKER_ID && mainInterface.DEBUG_FRAME;\n DEBUG_DRAW_SAMPLING = DEBUG_DRAW_SAMPLING && mainInterface.DEBUG_FRAME;\n }", "protected boolean func_70814_o() { return true; }", "private /* synthetic */ void m57187h() {\n this.f41189e = true;\n }", "public boolean hasBbgSymbol() {\n return ((bitField0_ & 0x00000400) == 0x00000400);\n }", "public boolean hasSymbolId() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public void dump() {\n Log.e(TAG, \"dump: size=\" + mMap.size());\n for (String k : mMap.keySet()) {\n Log.e(TAG, \"dump: \" + k + \"=\" + mMap.get(k));\n }\n }", "public static void normalDebug(){\n enableVerbos = false;\n }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void IsInUse() {\n\t\tSystem.out.println(\"Table being cleaned, cannot be used.\");\n\t}", "boolean hasRetainFlag();", "private void setBooleanFlags (short flags){\n\t\tthis.flags = flags;\n\t\tflagResetNeeded = false;\n\t\tpartOfAPairedAlignment = isPartOfAPairedAlignment();\n\t\taProperPairedAlignment = isAProperPairedAlignment();\n\t\tunmapped = isUnmapped();\n\t\tmateUnMapped = isMateUnMapped();\n\t\treverseStrand = isReverseStrand();\n\t\tmateReverseStrand = isMateReverseStrand();\n\t\tfirstPair = isFirstPair();\n\t\tsecondPair = isSecondPair();\n\t\tnotAPrimaryAlignment = isNotAPrimaryAlignment();\n\t\tfailedQC = failedQC();\n\t\taDuplicate = isADuplicate();\n\t\t\n\t}", "private boolean isInService() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.isInService():boolean\");\n }", "protected void dumpr() {\n println(Arrays.toString(register));\n println(\"Compare register: \" + compareRegister);\n println(\"StackRegister: \" + stackRegister);\n }" ]
[ "0.59500796", "0.58723265", "0.5820843", "0.57278764", "0.5656895", "0.5656895", "0.5616391", "0.5607751", "0.5569996", "0.54136723", "0.53736764", "0.5371946", "0.53597623", "0.53525966", "0.5310941", "0.5301758", "0.52486384", "0.52377266", "0.51519763", "0.5149736", "0.5149588", "0.51268274", "0.51057786", "0.5103764", "0.51011676", "0.5082199", "0.5055198", "0.50250375", "0.49994183", "0.49961773", "0.49863487", "0.49823818", "0.49774903", "0.49748436", "0.49600044", "0.4959268", "0.4949961", "0.4937881", "0.4935165", "0.49241236", "0.49201363", "0.49172568", "0.4907694", "0.48937428", "0.48928875", "0.4889005", "0.488714", "0.48866677", "0.48861718", "0.4881626", "0.48667464", "0.48602325", "0.4860022", "0.48490483", "0.4842551", "0.48419082", "0.48401845", "0.48373097", "0.483467", "0.48218185", "0.48208848", "0.48054504", "0.4800604", "0.47999567", "0.47958943", "0.4793", "0.4791998", "0.47865495", "0.47850257", "0.4770487", "0.47642446", "0.47625723", "0.47624898", "0.47600827", "0.47575215", "0.47574514", "0.4751552", "0.47472104", "0.4746071", "0.47444463", "0.47439292", "0.4743598", "0.47411636", "0.47250968", "0.4716436", "0.47142166", "0.47103786", "0.46968007", "0.46938196", "0.46911642", "0.4689522", "0.46891463", "0.46823722", "0.46804133", "0.46793035", "0.46761167", "0.46759915", "0.4674435", "0.46737754", "0.4671037", "0.46679404" ]
0.0
-1
gets id from AIdExp
public String getId(Node node) { String id = ""; if (node instanceof AIdExp) { AIdExp idNode = (AIdExp) node; id = idNode.getId().getText(); } return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getAoisId();", "int getAId();", "java.lang.String getID();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "int getAid();", "Identifier getId();", "String getIdNumber();", "Object getId();", "String getID();", "String getID();", "String getID();", "String getID();", "String mo10312id();", "public String getaId() {\n return aId;\n }", "String idProvider();", "public abstract java.lang.Long getAcma_id();", "String getIdentityId();", "String getExistingId();", "public int getAId() {\n return aId_;\n }", "public void obtenerID();", "Integer getID();", "Integer getID();", "java.lang.String getIdentifier();", "Short getId();", "public Integer getaId() {\r\n return aId;\r\n }", "public int getAId() {\n return instance.getAId();\n }", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();" ]
[ "0.8005345", "0.7598331", "0.7383261", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7230529", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7188522", "0.7184477", "0.7158742", "0.7152113", "0.71133685", "0.70774055", "0.70774055", "0.70774055", "0.70774055", "0.7039745", "0.6996448", "0.69410837", "0.6892708", "0.6858577", "0.68376946", "0.6814793", "0.6808601", "0.6743313", "0.6743313", "0.67249674", "0.67183465", "0.67036146", "0.6692137", "0.66791576", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062", "0.6670062" ]
0.7200679
22
/ / var declaration blank identifiers are not added to symbol table
public void caseAVarDecStmt(AVarDecStmt node) { inAVarDecStmt(node); outAVarDecStmt(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void initFunDecl() {\n\t\t_localVarID = 0;\r\n\t\t_labelID = 0;\r\n\t\t_tempVarID = 32;\r\n\t\t_lsymtable.clear();\r\n\t}", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "public SymbolTable() {\n\t\tclassScope = new Hashtable<String, Values>();\n\t\tsubScope = new Hashtable<String, Values>();\n\t\tcurrScope = classScope;\n\t\tsubArgIdx = 0;\n\t\tsubVarIdx = 0;\n\t\tclassStaticIdx = 0;\n\t\tclassFieldIdx = 0;\n\t}", "private SymbolData[]\n\t\t\tmakeSymbolMap(Map<StandardSymbolData, JsName> symbolTable) {\n\t\tfinal Set<String> nameUsed = new HashSet<String>();\n\t\tfinal Map<JsName, Integer> nameToFragment = new HashMap<JsName, Integer>();\n\t\tfor (int i = 0; i < jsProgram.getFragmentCount(); i++) {\n\t\t\tfinal Integer fragId = i;\n\t\t\tnew JsVisitor() {\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsForIn x, JsContext ctx) {\n\t\t\t\t\tif (x.getIterVarName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getIterVarName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsFunction x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsLabel x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameOf x, JsContext ctx) {\n\t\t\t\t\tif (x.getName() != null) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsNameRef x, JsContext ctx) {\n\t\t\t\t\t// Obviously this isn't even that accurate. Some of them are\n\t\t\t\t\t// variable names, some of the are property. At least this\n\t\t\t\t\t// this give us a safe approximation. Ideally we need\n\t\t\t\t\t// the code removal passes to remove stuff in the scope\n\t\t\t\t\t// objects.\n\t\t\t\t\tif (x.isResolved()) {\n\t\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsParameter x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void endVisit(JsVars.JsVar x, JsContext ctx) {\n\t\t\t\t\tnameUsed.add(x.getName().getIdent());\n\t\t\t\t\t// alcina - add classlits to name/fragment\n\t\t\t\t\tif (x.getName().getIdent().startsWith(\n\t\t\t\t\t\t\t\"com_google_gwt_lang_ClassLiteralHolder_\")) {\n\t\t\t\t\t\tnameToFragment.put(x.getName(), fragId);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}.accept(jsProgram.getFragmentBlock(i));\n\t\t}\n\t\t// TODO(acleung): This is a temp fix. Once we know this is safe. We\n\t\t// new to rewrite it to avoid extra ArrayList creations.\n\t\t// Or we should just consider serializing it as an ArrayList if\n\t\t// it is that much trouble to determine the true size.\n\t\tList<SymbolData> result = new ArrayList<SymbolData>();\n\t\tfor (Map.Entry<StandardSymbolData, JsName> entry : symbolTable\n\t\t\t\t.entrySet()) {\n\t\t\tStandardSymbolData symbolData = entry.getKey();\n\t\t\tsymbolData.setSymbolName(entry.getValue().getShortIdent());\n\t\t\tInteger fragNum = nameToFragment.get(entry.getValue());\n\t\t\tif (fragNum != null) {\n\t\t\t\tsymbolData.setFragmentNumber(fragNum);\n\t\t\t}\n\t\t\tif (nameUsed.contains(entry.getValue().getIdent())\n\t\t\t\t\t|| entry.getKey().isClass()) {\n\t\t\t\tresult.add(symbolData);\n\t\t\t}\n\t\t}\n\t\treturn result.toArray(new SymbolData[result.size()]);\n\t}", "public SymbolTable() {\n scopes = new ArrayList<>();\n currentScopeLevel = NO_SCOPE;\n }", "void define(Symbol sym);", "@Override\n public void define(Symbol symbol) {\n }", "@Override\n public void define(Symbol symbol) {\n }", "public DetachedVarSymbol(long flags, Name name, Type type, Symbol owner) {\n super(flags, name, type, owner);\n this.decl = null;\n }", "public void nameAnalysisNoReturn(SymTable workingSymTable) throws EmptySymTableException {\n idSym = workingSymTable.lookupGlobal(myStrVal);\n if (idSym == null) {\n //found\n (new ErrMsg()).fatal(myLineNum, myCharNum, \"Undeclared Identifier\");\n } \n }", "public void setSymbolTable(SymbolTable st) {\n\t this.st = st;\n\t }", "public interface Symbols {\n /* terminals */\n public static final int BAG = 68;\n public static final int RETRIEVE = 93;\n public static final int AS = 34;\n public static final int TIMES = 13;\n public static final int LCURLY = 54;\n public static final int TYPE = 58;\n public static final int LEAVESBY = 91;\n public static final int LOWEREQUALS = 33;\n public static final int LAZY_FAILURE = 97;\n public static final int CLOSEUNIQUEBY = 90;\n public static final int NAME = 7;\n public static final int ENUM = 70;\n public static final int FORSOME = 41;\n public static final int CATCH = 114;\n public static final int DATEPREC = 109;\n public static final int COMMA = 29;\n public static final int VIRTUAL = 99;\n public static final int RANDOM = 110;\n public static final int DOUBLE_LITERAL = 4;\n public static final int SUM = 48;\n public static final int THROW = 116;\n public static final int JOIN = 28;\n public static final int RPAREN = 19;\n public static final int ON_NAVIGATE = 106;\n public static final int STRUCT = 69;\n public static final int NOT_MATCH_STRING = 23;\n public static final int LPAREN = 18;\n public static final int NOW = 108;\n public static final int INTEGER_LITERAL = 2;\n public static final int NOT = 24;\n public static final int VIEW = 98;\n public static final int INSTANCE = 73;\n public static final int DIFFERENT = 21;\n public static final int DATE_LITERAL = 6;\n public static final int MIN = 43;\n public static final int THEN = 65;\n public static final int EXTERNAL = 67;\n public static final int RECORD = 57;\n public static final int SEROID = 120;\n public static final int REVERSE = 107;\n public static final int ON_UPDATE = 103;\n public static final int LOWER = 31;\n public static final int INSERTCOPY = 83;\n public static final int BOOLEAN_LITERAL = 5;\n public static final int TEMPORAL = 80;\n public static final int CLASS = 71;\n public static final int SEED = 101;\n public static final int IMPLEMENT = 95;\n public static final int MODULO = 17;\n public static final int UNIQUEREF = 47;\n public static final int PLUS = 10;\n public static final int FORALL = 42;\n public static final int DIVIDE = 14;\n public static final int EXISTS = 49;\n public static final int GREATEREQUALS = 32;\n public static final int WHILE = 84;\n public static final int UNION = 16;\n public static final int DELETE = 77;\n public static final int EXTENDS = 72;\n public static final int MODULE = 53;\n public static final int INTERFACE = 117;\n public static final int ASSIGN = 61;\n public static final int RSQUARE = 52;\n public static final int FOR = 86;\n public static final int DO = 85;\n public static final int SCHEMADEF = 96;\n public static final int MATCH_STRING = 22;\n public static final int GREATER = 30;\n public static final int RANGEAS = 119;\n public static final int MAX = 44;\n public static final int RETURN = 60;\n public static final int TRY = 113;\n public static final int ELSE = 66;\n public static final int DOTDOT = 50;\n public static final int BREAK = 87;\n public static final int DOT = 26;\n public static final int PERMANENT = 79;\n public static final int AVG = 45;\n public static final int TRANSACTION_ABORT = 112;\n public static final int STRING_LITERAL = 3;\n public static final int EOF = 0;\n public static final int SEMICOLON = 8;\n public static final int INTERSECT = 15;\n public static final int LSQUARE = 51;\n public static final int WHERE = 27;\n public static final int COUNT = 25;\n public static final int LOCAL = 81;\n public static final int IMPORT = 56;\n public static final int IS = 59;\n public static final int UNIQUE = 46;\n public static final int IN = 36;\n public static final int OR = 39;\n public static final int error = 1;\n public static final int HYPHEN = 11;\n public static final int LEAVESUNIQUEBY = 92;\n public static final int FINALLY = 115;\n public static final int CONTINUE = 88;\n public static final int INSTANCEOF = 74;\n public static final int IF = 64;\n public static final int CONTAINS = 37;\n public static final int COLON = 9;\n public static final int SUBTRACT = 12;\n public static final int CREATE = 78;\n public static final int DEREF = 62;\n public static final int FOREACH = 63;\n public static final int REF = 75;\n public static final int ON_DELETE = 104;\n public static final int DESEROID = 121;\n public static final int CLOSEBY = 89;\n public static final int RENAME = 122;\n public static final int UPDATE = 94;\n public static final int INSERT = 82;\n public static final int OBJECTS = 100;\n public static final int AND = 40;\n public static final int SESSION = 76;\n public static final int ON_RETRIEVE = 102;\n public static final int GROUPAS = 35;\n public static final int ON_NEW = 105;\n public static final int ORDERBY = 38;\n public static final int DISTINCT = 118;\n public static final int RCURLY = 55;\n public static final int EQUALS = 20;\n public static final int TRANSACTION_CAPABLE = 111;\n}", "private void declareLocals() {\r\n\t\t// declare locals\r\n\t\tfor(Local local: method.retrieveActiveBody().getLocals()) {\r\n\t\t\tString cType = null;\r\n\t\t\t// null types need special treatment, we don't output them\r\n\t\t\t// we also won't generate statements that use a nullType\r\n\t\t\t// as a target.\r\n\t\t\tif(local.getType() instanceof NullType) {\r\n\t\t\t\tcType = \"java_lang_Object*\";\r\n\t\t\t} else {\r\n\t\t\t\tcType = CTypes.toCType(local.getType());\r\n\t\t\t}\r\n\t\t\twriter.wl(cType + \" \" + local.getName() + \" = 0;\");\r\n\t\t}\r\n\t\twriter.wl(\"java_lang_Object* _exception = 0;\");\r\n\t}", "public static Set<Symbol> getVariableSymbols(SymbolTable st) {\n Set<Symbol> ret = getSymbols(st);\n Iterator<Symbol> iter = ret.iterator();\n while (iter.hasNext()) {\n Symbol symbol = iter.next();\n if (symbol instanceof Procedure ||\n symbol instanceof ProcedureDeclarator) {\n iter.remove();\n }\n }\n return ret;\n }", "private HashSet < Symbol > getUsedSymbols ()\n {\n HashSet < Symbol > symbols = new HashSet < Symbol > ();\n for ( LeafNode l : this.regexNode.getTokenNodes () )\n {\n if ( l instanceof TokenNode )\n {\n TokenNode t = ( TokenNode ) l;\n symbols.add ( new DefaultSymbol ( t.getName () ) );\n }\n }\n return symbols;\n }", "private Constants$TraceNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "@Override public void enterFunc_decl(MicroParser.Func_declContext ctx) {\n\t\tif(ctx.getText().compareTo(\"END\") != 0){\n\t\t\tString txt = ctx.getText().split(\"BEGIN\")[0];\n\t\t\ttxt = txt.split(\"INT|FLOAT|VOID|STRING\")[1];\n\t\t\ttxt = txt.split(\"\\\\(\")[0];\n\t\t\t//Set new SymbolTable scope\n\t\t\tst.next = new SymbolTable(txt);\n\t\t\tst = st.next;\n\t\t}\n\t}", "private void onSymbol(final Attributes attributes) throws SAXException\r\n\t{\r\n\t\tString name = attributes.getValue(\"name\");\r\n\t\tint size = getInt(attributes, \"size\", 1);\r\n\t\tString loc = attributes.getValue(\"loc\");\r\n\t\tString decl = attributes.getValue(\"decl\");\r\n\r\n SymbolOwnership ownership = readOwnership(decl);\r\n\t\t\r\n\t\tif(loc == null)\r\n\t\t{\r\n\t\t\tthrow new SAXException(\"Symbol declaration missing 'loc' location information\");\r\n\t\t}\r\n\t\tif(\"rom\".equals(loc))\r\n\t\t{\r\n\t\t\tRomLocation rom = new RomLocation(name, ownership);\r\n\t\t\tif(!\"none\".equals(decl))\r\n\t\t\t{\r\n\t\t\t\tm_model.registerExternalMethod(rom);\r\n\t\t\t}\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tint page = readPage(loc);\r\n\r\n\t\tm_variable = new Variable(name, ownership, page, size);\r\n\t\tm_model.addVariable(m_variable);\r\n\t}", "@Override\r\n\tpublic Object visitVarDec(VarDec varDec, Object arg) throws Exception {\r\n\t\tString ident = varDec.identToken.getText();\r\n\t\tcheck(symbolTable.insert(ident, varDec) == true, \"redeclare VarDec\", varDec);\r\n\t\treturn null;\r\n\t}", "public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "public void actionVAR_DECL(Node<TokenAttributes> node) {\n String tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"globalVarCtoJava.tmap\");\n List<Node<TokenAttributes>> nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n } else {\n tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"arrayCtoJava.tmap\");\n nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n }\n }\n }", "public void masterDeclaration();", "@Override\n public String visit(VariableDeclarationExpr n, Object arg) {\n return null;\n }", "@Override String opStr() { return \"var\"; }", "public SymbolChecking(){\n\t\t\ttop=null;\n\t\t\tlength=0;\n\t\t}", "static void insTablaS(){\r\n\t\tObj aux2=aux;\r\n\t\twhile(aux2.next!=null){\r\n\t\t\taux2=aux2.next;\r\n\t\t}\r\n\t\taux2.next=topScope.locals;\r\n\t\ttopScope.locals=aux;\r\n\t\taux=null;\r\n\t}", "@Override\n public String visit(VariableDeclarator n, Object arg) {\n return null;\n }", "@Test\n\tpublic void testMakeSureVarVariablesCanShadowLetVariables()\n\t{\n\t\tString[] code = {\n\t\t\t\"let a = 1;\",\n\t\t \"let b = 2;\",\n\t\t \"var c = 3;\",\n\n\t\t \"function sup(a) {\",\n\t\t \"var b = 4;\",\n\t\t \"let c = 5;\",\n\t\t \"let d = 6;\",\n\t\t \"if (false) {\",\n\t\t \"var d = 7;\",\n\t\t \"}\",\n\t\t \"return b + c + a + d;\",\n\t\t \"}\",\n\n\t\t \"sup();\"\n\t\t};\n\t\t\n\t\tth.addError(1, 5, \"'a' is defined but never used.\");\n\t th.addError(2, 5, \"'b' is defined but never used.\");\n\t th.addError(3, 5, \"'c' is defined but never used.\");\n\t th.addError(9, 5, \"'d' has already been declared.\");\n\t\tth.test(code, new LinterOptions().set(\"esnext\", true).set(\"unused\", true).set(\"undef\", true).set(\"funcscope\", true));\n\t}", "@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}", "@Override\n\tpublic Integer visitGlobal_var_decl(ClangParser.Global_var_declContext ctx)\n {\n \treturn null;\n }", "@Override\n public Void visit(FunctionDeclaration nd, Void v) {\n if (!nd.hasDeclareKeyword()) {\n decls.add(nd.getId());\n }\n return null;\n }", "@Override\n\tpublic void visitXdef(Xsymbol p) {\n\n\t}", "public SymbolTableEntry(){\n\t}", "public void nameAnalysis(SymTable symTab) { }", "public interface ITerminalSymbols {\n\n\tint TokenNameWHITESPACE = 1000;\n\tint TokenNameCOMMENT_LINE = 1001;\n\tint TokenNameCOMMENT_BLOCK = 1002;\n\tint TokenNameCOMMENT_JAVADOC = 1003;\n\n\tint TokenNameIdentifier = 5;\n\tint TokenNameabstract = 98;\n\n /**\n * \"assert\" token (added in J2SE 1.4).\n */\n\tint TokenNameassert = 118;\n\tint TokenNameboolean = 18;\n\tint TokenNamebreak = 119;\n\tint TokenNamebyte = 19;\n\tint TokenNamecase = 211;\n\tint TokenNamecatch = 225;\n\tint TokenNamechar = 20;\n\tint TokenNameclass = 165;\n\tint TokenNamecontinue = 120;\n\tint TokenNamedefault = 212;\n\tint TokenNamedo = 121;\n\tint TokenNamedouble = 21;\n\tint TokenNameelse = 213;\n\tint TokenNameextends = 243;\n\tint TokenNamefalse = 37;\n\tint TokenNamefinal = 99;\n\tint TokenNamefinally = 226;\n\tint TokenNamefloat = 22;\n\tint TokenNamefor = 122;\n\tint TokenNameif = 123;\n\tint TokenNameimplements = 268;\n\tint TokenNameimport = 191;\n\tint TokenNameinstanceof = 65;\n\tint TokenNameint = 23;\n\tint TokenNameinterface = 180;\n\tint TokenNamelong = 24;\n\tint TokenNamenative = 100;\n\tint TokenNamenew = 32;\n\tint TokenNamenull = 38;\n\tint TokenNamepackage = 214;\n\tint TokenNameprivate = 101;\n\tint TokenNameprotected = 102;\n\tint TokenNamepublic = 103;\n\tint TokenNamereturn = 124;\n\tint TokenNameshort = 25;\n\tint TokenNamestatic = 94;\n\tint TokenNamestrictfp = 104;\n\tint TokenNamesuper = 33;\n\tint TokenNameswitch = 125;\n\tint TokenNamesynchronized = 85;\n\tint TokenNamethis = 34;\n\tint TokenNamethrow = 126;\n\tint TokenNamethrows = 227;\n\tint TokenNametransient = 105;\n\tint TokenNametrue = 39;\n\tint TokenNametry = 127;\n\tint TokenNamevoid = 26;\n\tint TokenNamevolatile = 106;\n\tint TokenNamewhile = 117;\n\tint TokenNameIntegerLiteral = 40;\n\tint TokenNameLongLiteral = 41;\n\tint TokenNameFloatingPointLiteral = 42;\n\tint TokenNameDoubleLiteral = 43;\n\tint TokenNameCharacterLiteral = 44;\n\tint TokenNameStringLiteral = 45;\n\tint TokenNamePLUS_PLUS = 1;\n\tint TokenNameMINUS_MINUS = 2;\n\tint TokenNameEQUAL_EQUAL = 35;\n\tint TokenNameLESS_EQUAL = 66;\n\tint TokenNameGREATER_EQUAL = 67;\n\tint TokenNameNOT_EQUAL = 36;\n\tint TokenNameLEFT_SHIFT = 14;\n\tint TokenNameRIGHT_SHIFT = 11;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT = 12;\n\tint TokenNamePLUS_EQUAL = 168;\n\tint TokenNameMINUS_EQUAL = 169;\n\tint TokenNameMULTIPLY_EQUAL = 170;\n\tint TokenNameDIVIDE_EQUAL = 171;\n\tint TokenNameAND_EQUAL = 172;\n\tint TokenNameOR_EQUAL = 173;\n\tint TokenNameXOR_EQUAL = 174;\n\tint TokenNameREMAINDER_EQUAL = 175;\n\tint TokenNameLEFT_SHIFT_EQUAL = 176;\n\tint TokenNameRIGHT_SHIFT_EQUAL = 177;\n\tint TokenNameUNSIGNED_RIGHT_SHIFT_EQUAL = 178;\n\tint TokenNameOR_OR = 80;\n\tint TokenNameAND_AND = 79;\n\tint TokenNamePLUS = 3;\n\tint TokenNameMINUS = 4;\n\tint TokenNameNOT = 71;\n\tint TokenNameREMAINDER = 9;\n\tint TokenNameXOR = 63;\n\tint TokenNameAND = 62;\n\tint TokenNameMULTIPLY = 8;\n\tint TokenNameOR = 70;\n\tint TokenNameTWIDDLE = 72;\n\tint TokenNameDIVIDE = 10;\n\tint TokenNameGREATER = 68;\n\tint TokenNameLESS = 69;\n\tint TokenNameLPAREN = 7;\n\tint TokenNameRPAREN = 86;\n\tint TokenNameLBRACE = 110;\n\tint TokenNameRBRACE = 95;\n\tint TokenNameLBRACKET = 15;\n\tint TokenNameRBRACKET = 166;\n\tint TokenNameSEMICOLON = 64;\n\tint TokenNameQUESTION = 81;\n\tint TokenNameCOLON = 154;\n\tint TokenNameCOMMA = 90;\n\tint TokenNameDOT = 6;\n\tint TokenNameEQUAL = 167;\n\tint TokenNameEOF = 158;\n\tint TokenNameERROR = 309;\n\n /**\n * \"enum\" keyword (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameenum = 400;\n\n /**\n * \"@\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameAT = 401;\n\n /**\n * \"...\" token (added in J2SE 1.5).\n * @since 3.0\n */\n\tint TokenNameELLIPSIS = 402;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNameconst = 403;\n\n\t/**\n\t * @since 3.1\n\t */\n\tint TokenNamegoto = 404; // goto not found in Java ? :)\n\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameARROW = 405;\n\t/**\n\t * @since 3.10\n\t */\n\tint TokenNameCOLON_COLON = 406;\n\t\n\t\n}", "public void nameAnalysis(SymTable symTab) {\n nameAnalysis(symTab, symTab);\n\t// declListSize = 0;\n }", "public void identification () {\n if (!(symtab.containsKey(name)))\n System.out.println(\"TPL Identification: \"+name+\" not declared (read).\");\n }", "private Constants$CounterNames() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.mName = var3_1;\n }", "private void initInstanceVars() {\n\t\tglobalSymTab = new Hashtable<String,ClassDecl>();\n\t\tcurrentClass = null;\n\t}", "String getVarDeclare();", "protected void visitVariableDeclInfoAfterAddedToScope(VariableDeclInfo declInfo) {\n // Deliberately empty - to be optionally overridden by subclasses.\n }", "VarDecl createVarDecl();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "void mo23492a(C9072a0 a0Var);", "public void genInitialSPOffset() {\n addFirstInstruction(new ADDSP(methodTableSize + nbVar));\n addFirstComment(\"ADDSP : method table size : \" + methodTableSize + \", nb of var \" + nbVar);\n }", "public SymTab(){\n \tclasses = new HashMap<String, ClassNode>();\n \tmethods = new HashMap<String, MethodNode>();\n }", "void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "public Object clone() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\tst.save = (Stack<HashMap<String, ?>>) save.clone();\n\t\treturn st;\n\t}", "private Symbol(String label)\n {\n this.label = label;\n this.numArgs = 0;\n }", "protected static void removeSymbols(SymbolTable table, Declaration decl) {\n Map<IDExpression, Declaration> symbol_table = getTable(table);\n List<IDExpression> names = decl.getDeclaredIDs();\n for (int i = 0; i < names.size(); i++) {\n IDExpression id = names.get(i);\n if (symbol_table.remove(id) == null) {\n PrintTools.printlnStatus(0,\n \"[WARNING] Attempt to remove a non-existing symbol\",\n \"\\\"\", id, \"\\\"\", \"in\", table.getClass());\n }\n }\n }", "String symbol();", "@Override\n public Void VisitTopNode(TopNode node) {\n for (FunctionDclNode FuncDecl : node.getFunctionDeclarations()) {\n symbolTable.currentScope().define(FuncDecl.getVariable(), FuncDecl.getLineNumber());\n }\n //symbolTable.currentScope().define(new Variable(ValueType.VOID, \"print\", true));\n //Visit all function declarations\n for (FunctionDclNode funcDecl : node.getFunctionDeclarations())\n visit(funcDecl);\n symbolTable.pushScope(ScopeType.LOCAL);\n if (node.getStatements() != null)\n visit(node.getStatements());\n symbolTable.popScope();\n return null;\n }", "private DSLGrammarMap buildDummyGrammarMap() {\n DSLGrammarMap grammarMap = new DSLGrammarMap();\n {\n FunctionSymbol f = grammarMap.mkFunctionSymbol(\"f\", \"int\");\n f.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol g = grammarMap.mkFunctionSymbol(\"g\", \"int\");\n g.addParameter(\"int\", \"x1\");\n }\n {\n FunctionSymbol eq = grammarMap.mkFunctionSymbol(\"eq\", \"bool\");\n eq.addParameter(\"Poly\", \"x1\");\n eq.addParameter(\"Poly\", \"x2\");\n }\n return grammarMap;\n }", "public SymbolTable()\r\n {\r\n // Create the tables stack and add the top level\r\n tables = new ArrayDeque<HashMap<String,T>>();\r\n tables.add( new HashMap<String,T>() );\r\n \r\n // Ditto with the counts\r\n counts = new ArrayDeque<Integer>();\r\n counts.add( 0 );\r\n }", "SymTable() {\n\t\tmap = new HashMap<String, Sym>();\n\t\tlist.add(map);\n\t}", "private void BlockDeclarationInstantiation(Collection<Declaration> declarations,\n StatementVisitor mv) {\n // stack: [env] -> [env, envRec]\n mv.dup();\n mv.invoke(Methods.LexicalEnvironment_getEnvRec);\n \n for (Declaration d : declarations) {\n for (String dn : BoundNames(d)) {\n if (IsConstantDeclaration(d)) {\n mv.dup();\n mv.aconst(dn);\n // FIXME: spec bug (CreateImmutableBinding concrete method of `env`)\n mv.invoke(Methods.EnvironmentRecord_createImmutableBinding);\n } else {\n mv.dup();\n mv.aconst(dn);\n mv.iconst(false);\n // FIXME: spec bug (CreateMutableBinding concrete method of `env`)\n mv.invoke(Methods.EnvironmentRecord_createMutableBinding);\n }\n }\n }\n \n // stack: [env, envRec] -> [envRec, env]\n mv.swap();\n \n for (Declaration d : declarations) {\n if (d instanceof FunctionDeclaration) {\n FunctionDeclaration f = (FunctionDeclaration) d;\n codegen.compile(f);\n String fn = BoundName(f);\n \n // stack: [envRec, env] -> [envRec, env, envRec, realm, env, fd]\n mv.dup2();\n mv.loadExecutionContext();\n mv.swap();\n mv.invokestatic(codegen.getClassName(), codegen.methodName(f) + \"_rti\",\n Type.getMethodDescriptor(Types.RuntimeInfo$Function));\n \n // stack: [envRec, env, envRec, realm, env, fd] -> [envRec, env, envRec, fo]\n mv.invoke(Methods.ScriptRuntime_InstantiateFunctionObject);\n \n // stack: [envRec, env, envRec, fn, fo] -> [envRec, env]\n mv.aconst(fn);\n mv.swap();\n mv.invoke(Methods.EnvironmentRecord_initialiseBinding);\n } else if (d instanceof GeneratorDeclaration) {\n GeneratorDeclaration f = (GeneratorDeclaration) d;\n codegen.compile(f);\n String fn = BoundName(f);\n \n // stack: [envRec, env] -> [envRec, env, envRec, realm, env, fd]\n mv.dup2();\n mv.loadExecutionContext();\n mv.swap();\n mv.invokestatic(codegen.getClassName(), codegen.methodName(f) + \"_rti\",\n Type.getMethodDescriptor(Types.RuntimeInfo$Function));\n \n // stack: [envRec, env, envRec, realm, env, fd] -> [envRec, env, envRec, fo]\n mv.invoke(Methods.ScriptRuntime_InstantiateGeneratorObject);\n \n // stack: [envRec, env, envRec, fn, fo] -> [envRec, env]\n mv.aconst(fn);\n mv.swap();\n mv.invoke(Methods.EnvironmentRecord_initialiseBinding);\n }\n }\n \n // stack: [envRec, env] -> [env]\n mv.swap();\n mv.pop();\n }", "private static void init () {\r\n\t\t// make sure they all have non-null entries\r\n\t\tName undef = new Name(\"undef\", 'u');\r\n\t\tArrays.fill(op_names, undef);\r\n\t\tArrays.fill(fn_names, undef);\r\n\t\tArrays.fill(cfn_names, undef);\r\n\t\tArrays.fill(rs_names, undef);\r\n\t\tArrays.fill(rt_names, undef);\r\n\r\n\t\tfor (int n = 0; n < 32; n++)\r\n\t\t\treg_nums[n] = \"$\".concat(Integer.toString(n));\r\n\r\n\t\top_names[OP_SPECIAL] = new Name(\"**spec\");\r\n\t\top_names[OP_REGIMM] = new Name(\"**regimm\");\r\n\t\top_names[OP_J] = new Name(\"j\", 'J');\r\n\t\top_names[OP_JAL] = new Name(\"jal\", 'J');\r\n\t\top_names[OP_BEQ] = new Name(\"beq\", 'r');\r\n\t\top_names[OP_BNE] = new Name(\"bne\", 'r');\r\n\t\top_names[OP_BLEZ] = new Name(\"blez\", 'r');\r\n\t\top_names[OP_BGTZ] = new Name(\"bgtz\", 'r');\r\n\t\top_names[OP_ADDIU] = new Name(\"addiu\", 'b');\r\n\t\top_names[OP_SLTI] = new Name(\"slti\", 'b');\r\n\t\top_names[OP_SLTIU] = new Name(\"sltiu\", 'b');\r\n\t\top_names[OP_ANDI] = new Name(\"andi\", 'b');\r\n\t\top_names[OP_ORI] = new Name(\"ori\", 'b');\r\n\t\top_names[OP_XORI] = new Name(\"xori\", 'b');\r\n\t\top_names[OP_LUI] = new Name(\"lui\", 'I');\r\n\t\top_names[OP_COP1] = new Name(\"**cop1\");\r\n\t\top_names[OP_SPEC2] = new Name(\"**spec2\");\r\n\t\top_names[OP_LB] = new Name(\"lb\", 'l');\r\n\t\top_names[OP_LH] = new Name(\"lh\", 'l');\r\n\t\top_names[OP_LWL] = new Name(\"lwl\", 'l');\r\n\t\top_names[OP_LW] = new Name(\"lw\", 'l');\r\n\t\top_names[OP_LBU] = new Name(\"lbu\", 'l');\r\n\t\top_names[OP_LHU] = new Name(\"lhu\", 'l');\r\n\t\top_names[OP_LWR] = new Name(\"lwr\", 'l');\r\n\t\top_names[OP_SB] = new Name(\"sb\", 's');\r\n\t\top_names[OP_SH] = new Name(\"sh\", 's');\r\n\t\top_names[OP_SWL] = new Name(\"swl\", 's');\r\n\t\top_names[OP_SW] = new Name(\"sw\", 's');\r\n\t\top_names[OP_SWR] = new Name(\"swr\", 's');\r\n\t\top_names[OP_LWC1] = new Name(\"lwc1\", 'L');\r\n\t\top_names[OP_SWC1] = new Name(\"swc1\", 'S');\r\n\r\n\t\tfn_names[FN_SLL] = new Name(\"sll\");\r\n\t\tfn_names[FN_SRL] = new Name(\"srl\");\r\n\t\tfn_names[FN_SRA] = new Name(\"sra\");\r\n\t\tfn_names[FN_SLLV] = new Name(\"sllv\");\r\n\t\tfn_names[FN_SRLV] = new Name(\"srlv\");\r\n\t\tfn_names[FN_SRAV] = new Name(\"srav\");\r\n\t\tfn_names[FN_JR] = new Name(\"jr\", 'j');\r\n\t\tfn_names[FN_JALR] = new Name(\"jalr\", 'j');\r\n\t\tfn_names[FN_MOVN] = new Name(\"movn\", 'u');\r\n\t\tfn_names[FN_SYSCALL] = new Name(\"**sys\");\r\n\t\tfn_names[FN_BREAK] = new Name(\"**break\");\r\n\t\tfn_names[FN_MFHI] = new Name(\"mfhi\");\r\n\t\tfn_names[FN_MFLO] = new Name(\"mflo\");\r\n\t\tfn_names[FN_MULT] = new Name(\"mult\");\r\n\t\tfn_names[FN_MULTU] = new Name(\"multu\");\r\n\t\tfn_names[FN_DIV] = new Name(\"div\");\r\n\t\tfn_names[FN_DIVU] = new Name(\"divu\");\r\n\t\tfn_names[FN_ADDU] = new Name(\"addu\", 'B');\r\n\t\tfn_names[FN_SUBU] = new Name(\"subu\", 'B');\r\n\t\tfn_names[FN_AND] = new Name(\"and\", 'B');\r\n\t\tfn_names[FN_OR] = new Name(\"or\", 'B');\r\n\t\tfn_names[FN_XOR] = new Name(\"xor\", 'B');\r\n\t\tfn_names[FN_NOR] = new Name(\"nor\", 'B');\r\n\t\tfn_names[FN_SLT] = new Name(\"slt\", 'B');\r\n\t\tfn_names[FN_SLTU] = new Name(\"sltu\", 'B');\r\n\r\n\t\trs_names[RS_MF] = new Name(\"mfc1\", '6');\r\n\t\trs_names[RS_CF] = new Name(\"cfc1\", '4');\r\n\t\trs_names[RS_MT] = new Name(\"mtc1\", '5');\r\n\t\trs_names[RS_CT] = new Name(\"ctc1\");\r\n\t\trs_names[RS_BC] = new Name(\"bc1\");\r\n\t\trs_names[RS_FMT_SINGLE] = new Name(\"**fmts\");\r\n\t\trs_names[RS_FMT_DOUBLE] = new Name(\"**fmtd\");\r\n\t\trs_names[RS_FMT_WORD] = new Name(\"**fmtw\");\r\n\r\n\t\tcfn_names[CFN_ADD_D] = new Name(\"add\", '3');\r\n\t\tcfn_names[CFN_SUB_D] = new Name(\"sub\", '3');\r\n\t\tcfn_names[CFN_MUL_D] = new Name(\"mul\", '3');\r\n\t\tcfn_names[CFN_DIV_D] = new Name(\"div\", '3');\r\n\t\tcfn_names[CFN_MOV_D] = new Name(\"mov\", '2'); // 2?\r\n\t\tcfn_names[CFN_NEG_D] = new Name(\"neg\", '2');\r\n\t\tcfn_names[CFN_CVTS] = new Name(\"cvts\", '2'); // all type 2\r\n\t\tcfn_names[CFN_CVTD] = new Name(\"cvtd\", '2');\r\n\t\tcfn_names[CFN_CVTW] = new Name(\"cvtw\", '2');\r\n\t\tcfn_names[CFN_FC_ULT] = new Name(\"ult\", 'c');\r\n\t\tcfn_names[CFN_FC_EQ] = new Name(\"eq\", 'c'); // all type c\r\n\t\tcfn_names[CFN_FC_LT] = new Name(\"lt\", 'c');\r\n\t\tcfn_names[CFN_FC_LE] = new Name(\"le\", 'c');\r\n\r\n\t\trt_names[RT_BLTZ] = new Name(\"bltz\", 'v');\r\n\t\trt_names[RT_BGEZ] = new Name(\"bgez\", 'v');\r\n\t\trt_names[RT_BLTZAL] = new Name(\"bltzal\", 'v');\r\n\t\trt_names[RT_BGEZAL] = new Name(\"bgezal\", 'v');\r\n\t}", "final void makeNonRecursive() { this.unboundedBoundSymbols = null; }", "public static void DSISyncDip(String symbol) {\n\t}", "VariableDeclaration createVariableDeclaration();", "public SymbolTable copy() {\n\t\tSymbolTable st = new SymbolTable();\n\t\tst.var = (HashMap<String, Variable>) var.clone();\n\t\tst.name = new HashMap<String, NameSSA>();\n\t\tfor (String n : name.keySet()) {\n\t\t\tst.name.put(n, (NameSSA) name.get(n).clone());\n\t\t}\n\t\treturn st;\n\t}", "@Override\n\tpublic long getDynamicSymbolID(Address addr) {\n\t\treturn 0;\n\t}", "private SequentialSearchSymbolTable() {\n\t\t\tkeySet = new ArrayList<>();\n\t\t\tvalueSet = new ArrayList<>();\n\t\t\tsize = 0;\n\t\t}", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "@Test\n\tpublic void testDeclaration(){\n\t\tVariable x = new Variable(\"x\");\n\t\tStatement decl = f.createDeclNode(x);\n\t\tassertEquals(decl.textRepresentation(), \"var x;\");\n\t\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tdecl.accept(v);\n\t\tassertEquals(\"declaration test1 fail\", v.numCount, 0);\n\t\tassertEquals(\"declaration test2 fail\", v.infixCount, 0);\n\t\tassertEquals(\"declaration test3 fail\", v.decCount, 1);\n\t\tassertEquals(\"declaration test4 fail\", v.seqCount, 0);\n\t\tassertEquals(\"declaration test5 fail\", v.assignCount, 0);\n\t\tassertEquals(\"declaration test6 fail\", v.varCount, 0);\n\t\tassertEquals(\"declaration test7 fail\", v.strCount, 0);\n\t\tassertEquals(\"declaration test8 fail\", v.prefixCount, 0);\n\n\t}", "public ScopedSymbol(String name){\r\n\t\tthis(name, Access.PUBLIC);\r\n\t}", "public abstract Result symbolize(Symbolizer sym, ArrayList<LocalSymbol> locals);", "private void buildSymbolTables() {\n new SymbolsTableBuilder(data).read(this);//.dump();\n }", "public Arginfo visit(VarDeclaration n, Arginfo argu) {\n Arginfo _ret=null;\n \n \n \n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n \n if(!argu.methodname.equals(\"\")){\n \t globalmap.put(n.f1.f0.tokenImage,prectr++);\n }\n \n return _ret;\n }", "public void setSymbol(Symbol symbol) {\r\n\t\tthis.symbol = symbol;\r\n\t}", "public void nameAnalysis(SymTable symTab) {\n SemSym sym = symTab.lookupGlobal(myStrVal);\n if (sym == null) {\n ErrMsg.fatal(myLineNum, myCharNum, \"Undeclared identifier\");\n } else {\n link(sym);\n }\n }", "public void var_decl(VarDeclList vd, Integer lg) {\n if (lexer.token == Symbol.FLOAT || lexer.token == Symbol.INT) {\n String temp = lexer.getStringValue();\n lexer.nextToken();\n IdList list = id_list(lg);\n ArrayList<Ident> iter = list.getIdList();\n \n //entra aqui se nenhuma variavel declarada em id_list já existe\n for(Ident x: iter){\n switch(lg) {\n case 1:\n symbolTable.putInGlobal(x.getName(), new Type(temp, false));\n break;\n case 2:\n symbolTable.putInLocal(x.getName(), temp);\n break;\n }\n }\n vd.addDecl(new VarDecl(temp, list));\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Missing end of declaration at variable declaration\");\n }\n lexer.nextToken();\n }\n }", "public void buildSymbols() \n {\n scalars = new ArrayList <ScalarSymbol>();\n arrays = new ArrayList <ArraySymbol>();\n Stack <String> symbols = new Stack <String>();\n StringTokenizer st = new StringTokenizer(expr, delims, true); \n String token = \"\";\n \n while (st.hasMoreTokens())\n {\n token = st.nextToken();\n if ((token.charAt(0) >= 'a' && token.charAt(0) <= 'z') || (token.charAt(0) >= 'A' && token.charAt(0) <= 'Z' || token.equals(\"[\")))\n symbols.push(token); \n }\n while(!symbols.isEmpty())\n {\n token = symbols.pop();\n if (token.equals(\"[\"))\n {\n token = symbols.pop();\n ArraySymbol aSymbol = new ArraySymbol(token);\n if(arrays.indexOf(aSymbol) == -1)\n arrays.add(aSymbol);\n }\n else \n {\n ScalarSymbol sSymbol = new ScalarSymbol(token);\n if (scalars.indexOf(sSymbol) == -1)\n scalars.add(sSymbol);\n }\n }\n System.out.println(arrays);\n System.out.println(scalars);\n }", "private static ElfType32.Elf32_Sym parseSymbolTable(byte[] header){\n\t\tElf32_Sym sym = new Elf32_Sym();\n\t\tsym.st_name = Utils.copyBytes(header, 0, 4);\n\t\tsym.st_value = Utils.copyBytes(header, 4, 4);\n\t\tsym.st_size = Utils.copyBytes(header, 8, 4);\n\t\tsym.st_info = header[12];\n\t\t//FIXME 这里有一个问题,就是这个字段读出来的值始终是0\n\t\tsym.st_other = header[13];\n\t\tsym.st_shndx = Utils.copyBytes(header, 14, 2);\n\t\treturn sym;\n\t}", "@Override\n public String semanticChecker(SymbolTable table){\n \tSymbolTable top = table;\n \tSymbolTable test;\n \twhile(top.ascend() != null){\n \t top = top.ascend();\n \t}\n \ttest = null;\n \n \t//check if variable exist\n \tif(top.locate(name) != null || (test = table.locate(name)) != null){\n \t return \"semantic error\"; //syntaxError\n \t}\n \n \t//create new entry\n \ttable.newEntry(type, name);\n \n \treturn type; //yeah baby!\n }", "private void decls() throws IOException\n {\n type();\n match(Tag.ID);\n match(';');\n }", "@Override\n public Object visitVarSingleDeclarationAST(MiParser.VarSingleDeclarationASTContext ctx) {\n int tipo =(int) visit(ctx.typeDenoter());\n tabla.insertar(ctx.IDENT().getSymbol(),tipo,ctx);\n return null;\n }", "private Token symbol(TOKEN_TYPE t){\t\n\t\tntk++;\n\t\treturn new Token(t, yytext(), yyline+1, yycolumn+1); // yytext() é o lexema\n\t}", "public void setSymbol(String symbol) {\n this.symbol = symbol;\n }", "public LocalDebugInfo[] locals();", "final public Token IdentifierOrReserved() throws ParseException {\n /*@bgen(jjtree) IdentifierOrReserved */\n SimpleNode jjtn000 = new SimpleNode(JJTIDENTIFIERORRESERVED);\n boolean jjtc000 = true;\n jjtree.openNodeScope(jjtn000);Token t1;\n log.trace(\"Entering IdentifierOrReserved\");\n try {\n switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {\n case DEFINE:\n t1 = jj_consume_token(DEFINE);\n break;\n case LOAD:\n t1 = jj_consume_token(LOAD);\n break;\n case FILTER:\n t1 = jj_consume_token(FILTER);\n break;\n case FOREACH:\n t1 = jj_consume_token(FOREACH);\n break;\n case MATCHES:\n t1 = jj_consume_token(MATCHES);\n break;\n case ORDER:\n t1 = jj_consume_token(ORDER);\n break;\n case ARRANGE:\n t1 = jj_consume_token(ARRANGE);\n break;\n case DISTINCT:\n t1 = jj_consume_token(DISTINCT);\n break;\n case COGROUP:\n t1 = jj_consume_token(COGROUP);\n break;\n case JOIN:\n t1 = jj_consume_token(JOIN);\n break;\n case CROSS:\n t1 = jj_consume_token(CROSS);\n break;\n case UNION:\n t1 = jj_consume_token(UNION);\n break;\n case SPLIT:\n t1 = jj_consume_token(SPLIT);\n break;\n case INTO:\n t1 = jj_consume_token(INTO);\n break;\n case IF:\n t1 = jj_consume_token(IF);\n break;\n case ALL:\n t1 = jj_consume_token(ALL);\n break;\n case ANY:\n t1 = jj_consume_token(ANY);\n break;\n case AS:\n t1 = jj_consume_token(AS);\n break;\n case BY:\n t1 = jj_consume_token(BY);\n break;\n case USING:\n t1 = jj_consume_token(USING);\n break;\n case INNER:\n t1 = jj_consume_token(INNER);\n break;\n case OUTER:\n t1 = jj_consume_token(OUTER);\n break;\n case PARALLEL:\n t1 = jj_consume_token(PARALLEL);\n break;\n case GROUP:\n t1 = jj_consume_token(GROUP);\n break;\n case AND:\n t1 = jj_consume_token(AND);\n break;\n case OR:\n t1 = jj_consume_token(OR);\n break;\n case NOT:\n t1 = jj_consume_token(NOT);\n break;\n case GENERATE:\n t1 = jj_consume_token(GENERATE);\n break;\n case FLATTEN:\n t1 = jj_consume_token(FLATTEN);\n break;\n case EVAL:\n t1 = jj_consume_token(EVAL);\n break;\n case ASC:\n t1 = jj_consume_token(ASC);\n break;\n case DESC:\n t1 = jj_consume_token(DESC);\n break;\n case INT:\n t1 = jj_consume_token(INT);\n break;\n case LONG:\n t1 = jj_consume_token(LONG);\n break;\n case FLOAT:\n t1 = jj_consume_token(FLOAT);\n break;\n case DOUBLE:\n t1 = jj_consume_token(DOUBLE);\n break;\n case CHARARRAY:\n t1 = jj_consume_token(CHARARRAY);\n break;\n case BYTEARRAY:\n t1 = jj_consume_token(BYTEARRAY);\n break;\n case BAG:\n t1 = jj_consume_token(BAG);\n break;\n case TUPLE:\n t1 = jj_consume_token(TUPLE);\n break;\n case MAP:\n t1 = jj_consume_token(MAP);\n break;\n case IS:\n t1 = jj_consume_token(IS);\n break;\n case NULL:\n t1 = jj_consume_token(NULL);\n break;\n case STREAM:\n t1 = jj_consume_token(STREAM);\n break;\n case THROUGH:\n t1 = jj_consume_token(THROUGH);\n break;\n case STORE:\n t1 = jj_consume_token(STORE);\n break;\n case SHIP:\n t1 = jj_consume_token(SHIP);\n break;\n case CACHE:\n t1 = jj_consume_token(CACHE);\n break;\n case INPUT:\n t1 = jj_consume_token(INPUT);\n break;\n case OUTPUT:\n t1 = jj_consume_token(OUTPUT);\n break;\n case ERROR:\n t1 = jj_consume_token(ERROR);\n break;\n case STDIN:\n t1 = jj_consume_token(STDIN);\n break;\n case STDOUT:\n t1 = jj_consume_token(STDOUT);\n break;\n case LIMIT:\n t1 = jj_consume_token(LIMIT);\n break;\n case SAMPLE:\n t1 = jj_consume_token(SAMPLE);\n break;\n case IDENTIFIER:\n t1 = jj_consume_token(IDENTIFIER);\n break;\n default:\n jj_la1[7] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\n jjtree.closeNodeScope(jjtn000, true);\n jjtc000 = false;\n {if (true) return t1;}\n } finally {\n if (jjtc000) {\n jjtree.closeNodeScope(jjtn000, true);\n }\n }\n throw new Error(\"Missing return statement in function\");\n }", "public SemSym nameAnalysis(SymTable symTab) {\n String name = myId.name();\n boolean badDecl = false;\n SemSym sym = null;\n \n if (myType instanceof VoidNode) {\n ErrMsg.fatal(myId.lineNum(), myId.charNum(), \n \"Non-function declared void\");\n badDecl = true; \n }\n \n if (symTab.lookupLocal(name) != null) {\n ErrMsg.fatal(myId.lineNum(), myId.charNum(), \n \"Multiply declared identifier\");\n badDecl = true;\n }\n \n if (!badDecl) { // insert into symbol table\n try {\n sym = new SemSym(myType.type());\n symTab.addDecl(name, sym);\n myId.link(sym);\n } catch (DuplicateSymException ex) {\n System.err.println(\"Unexpected DuplicateSymException \" +\n \" in VarDeclNode.nameAnalysis\");\n System.exit(-1);\n } catch (EmptySymTableException ex) {\n System.err.println(\"Unexpected EmptySymTableException \" +\n \" in VarDeclNode.nameAnalysis\");\n System.exit(-1);\n }\n }\n \n return sym;\n }", "String getDeclare();", "public SymbolTable(){\r\n\t\tthis(INIT_CAPACITY);\r\n\t}", "public final void mo91715d() {\n }", "public void fixupVariables(List<QName> vars, int globalsSize)\n {\n // no-op\n }", "public BSTSymbolTable()\r\n\t{\r\n\t\tdata = new IterativeBinarySearchTree<Entry>();\r\n\t}", "long getSymbol();", "public interface IDynamicSymbol extends IFunctionSymbol\n{\n IScriptPartId getScriptPart();\n IGosuClass getGosuClass();\n}", "@Override\n public String visit(InitializerDeclaration n, Object arg) {\n return null;\n }", "public void resetLocals()\n {\n maxLocalSize = 0;\n localCnt = localIntCnt = localDoubleCnt = localStringCnt = localItemCnt = 0;\n locals = lastLocal = new LocalVariable(null, null, null);\n }", "void mo35722a(C14235h hVar);", "public static Set<Symbol> getSymbols(SymbolTable st) {\n Set<Symbol> ret = new LinkedHashSet<Symbol>();\n if (st == null) {\n return ret;\n }\n for (IDExpression key : getTable(st).keySet()) {\n if (key instanceof Identifier) {\n Symbol symbol = ((Identifier)key).getSymbol();\n if (symbol != null) {\n ret.add(symbol);\n }\n }\n }\n return ret;\n }", "String getSymbol();", "fileInfo(){\n\t\tsymbol = new node[MAXLINECOUNT + 2];\n\t\tother = null; // allocated later!\n\t}", "public void nameAnalysis(SymTable symTab, SymTable globalTab) {\n for (DeclNode node : myDecls) {\n if (node instanceof VarDeclNode) {\n ((VarDeclNode)node).nameAnalysis(symTab, globalTab);\n\t\t// declListSize += 4;\n } else {\n node.nameAnalysis(symTab);\n }\n }\n }", "@Override\r\n public NonTerminalSymbol getNonTerminalSymbol() {\n return null;\r\n }", "R visitFreeVariable(Formula f, String name);", "@Override\n public Object visitVariableList(LitmusX86Parser.VariableListContext ctx) {\n return null;\n }", "public void compileClassVarDec() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\t\tString type, kind, name;\n\t\ttokenType = jTokenizer.tokenType();\n\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\n\t\tElement parentXML = document.createElement(\"classVarDec\");\n\t\tele = createXMLnode(\"keyword\");\n\t\tkind = jTokenizer.returnTokenVal();\n\n\t\t// Mapping a jack keyword to a vm keyword\n\t\tif (kind.equals(\"var\")) {\n\t\t\tkind = \"local\";\n\t\t} else if (kind.equals(\"arg\")) {\n\t\t\tkind = \"argument\";\n\t\t} else if (kind.equals(\"field\")) {\n\t\t\tkind = \"this\";\n\t\t}\n\t\tparentXML.appendChild(ele);\n\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\t\ttype = jTokenizer.returnTokenVal();\n\t\tele = createXMLnode(tokenType);\n\t\tparentXML.appendChild(ele);\n\n\t\tjTokenizer.advance();\n\t\twhile (!jTokenizer.returnTokenVal(tokenType).equals(\";\")) {\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\ttoken = jTokenizer.returnTokenVal(tokenType);\n\t\t\tele = createXMLnode(tokenType);\n\t\t\tparentXML.appendChild(ele);\n\t\t\tjTokenizer.advance();\n\t\t\tif (tokenType.equals(\"identifier\")) {\n\t\t\t\t// Adding the variable to the symbol table\n\t\t\t\tsymTable.define(token, type, kind);\n\t\t\t}\n\t\t}\n\n\t\t// The ending symbol of the line (;)\n\t\tele = createXMLnode(\"symbol\");\n\t\tparentXML.appendChild(ele);\n\t\troot.appendChild(parentXML);\n\t}", "@Test\n\tpublic void constructorWithSymbolHasTheSymbolWiredCorrectly() {\n\t\tDummyUnit unit = new DummyUnit(SYMBOL);\n\t\tassertEquals(SYMBOL, unit.getSymbol());\n\t}" ]
[ "0.6745909", "0.66019887", "0.6498203", "0.6394332", "0.6218612", "0.6178978", "0.61615485", "0.61615485", "0.6150682", "0.60024214", "0.5954159", "0.59478027", "0.58889073", "0.5884506", "0.58284235", "0.58226806", "0.580553", "0.58032495", "0.57858366", "0.5777892", "0.57738066", "0.5736543", "0.5731038", "0.5696817", "0.5690312", "0.5678614", "0.56719863", "0.5665308", "0.56614983", "0.56466764", "0.5639112", "0.56373763", "0.56351894", "0.56189954", "0.55985165", "0.5553288", "0.5530747", "0.55297405", "0.551306", "0.55086464", "0.548894", "0.54842573", "0.54688716", "0.5465827", "0.5454276", "0.54368156", "0.5436357", "0.54253054", "0.54248315", "0.5402143", "0.5396296", "0.53780276", "0.537463", "0.5374138", "0.53731364", "0.53677934", "0.5367755", "0.536708", "0.5366726", "0.53626156", "0.5358609", "0.5349461", "0.53442997", "0.5343352", "0.5341362", "0.5332821", "0.5330784", "0.5319926", "0.5319076", "0.53027743", "0.5287963", "0.5264568", "0.52625686", "0.5254599", "0.52529144", "0.5252666", "0.52470267", "0.5245559", "0.52403235", "0.52289623", "0.5227163", "0.52258146", "0.5224703", "0.522425", "0.5223322", "0.5199346", "0.5194014", "0.51930434", "0.51915973", "0.5191082", "0.5169191", "0.5167109", "0.51642656", "0.51637584", "0.5162115", "0.5160755", "0.51600254", "0.5153469", "0.51524705", "0.515156", "0.5149909" ]
0.0
-1
var decl where type is not explicitly stated
public void outAVarDecStmt(AVarDecStmt node) { List<PExp> ids = node.getId(); List<PExp> values = node.getVal(); PType typeNode = node.getType(); if (typeNode == null) { for (int i=0; i<ids.size(); i++) { Node idNode = ids.get(i); if (idNode instanceof AIdExp) { String id = getId(idNode); Node valueNode = values.get(i); Type t = typemap.get(valueNode); if (t==null) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Attempted to assign void value to variable."); } if (t instanceof FunctionType) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Attempted to assign function as value."); } //System.out.println(id + t.toString()); declInScope(id, t); typemap.put(idNode,t); } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResolvedReferenceTypeDeclaration declaringType();", "public TYPE SemantMe() {\n\t\tSYM_TABLE sym_table = SYM_TABLE.getInstance();\n\t\t\n\t\t// Lookup the name\n\t\tTYPE t = sym_table.find(this.type);\n\t\t// Check it\n\t\tif (t == null || !t.isTypeName())\n\t\t {\n\t\t\t// Code bug -- type given does not exist in table or just is not a name a of a type\n\t\t\treport_error();\n\t\t }\n\t\t\t// Its fine, declare it\n\t\treturn new TYPE_VAR_DEC(t.name,this.name);\n }", "VariableDeclaration createVariableDeclaration();", "Declaration checkDec(Block block, int index, Kind type, String name) {\n\t\t\tPLPASTNode node = block.declarationsAndStatements(index);\n\t\t\tassertEquals(VariableDeclaration.class, node.getClass());\n\t\t\tVariableDeclaration dec = (VariableDeclaration) node;\n\t\t\tassertEquals(type, dec.type);\n\t\t\tassertEquals(name, dec.name);\n\t\t\treturn dec;\n\t\t}", "private Type type()\r\n {\r\n Type t = new Type();\r\n\r\n t.ident = nextToken;\r\n t.type = basicType();\r\n if (t.type == Keyword.NONESY)\r\n {\r\n unresolved.add(t.ident.string = qualident());\r\n }\r\n else\r\n t.ident.string = null;\r\n\r\n t.dim = bracketsOpt();\r\n\r\n return t;\r\n }", "public TypeVarWithoutInitializerElements getTypeVarWithoutInitializerAccess() {\r\n\t\treturn pTypeVarWithoutInitializer;\r\n\t}", "public DetachedVarSymbol(long flags, Name name, Type type, Symbol owner) {\n super(flags, name, type, owner);\n this.decl = null;\n }", "Type_use getType_use();", "@Override\r\n\tpublic TypeBinding literalType(BlockScope scope) {\n\t\treturn null;\r\n\t}", "declaration getDeclaration();", "TypeDecl createTypeDecl();", "String getDeclare();", "Decl getWhole();", "@Override\n public String visit(VariableDeclarationExpr n, Object arg) {\n return null;\n }", "public String visit(TypeDeclaration n, String argu) {\n n.f0.accept(this, null);\n return null; \n }", "public static ParameterExpression variable(Class type) { throw Extensions.todo(); }", "public void var_decl(VarDeclList vd, Integer lg) {\n if (lexer.token == Symbol.FLOAT || lexer.token == Symbol.INT) {\n String temp = lexer.getStringValue();\n lexer.nextToken();\n IdList list = id_list(lg);\n ArrayList<Ident> iter = list.getIdList();\n \n //entra aqui se nenhuma variavel declarada em id_list já existe\n for(Ident x: iter){\n switch(lg) {\n case 1:\n symbolTable.putInGlobal(x.getName(), new Type(temp, false));\n break;\n case 2:\n symbolTable.putInLocal(x.getName(), temp);\n break;\n }\n }\n vd.addDecl(new VarDecl(temp, list));\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Missing end of declaration at variable declaration\");\n }\n lexer.nextToken();\n }\n }", "public T caseTypeDeclaration(TypeDeclaration object)\n {\n return null;\n }", "public LocalDecl createLocalDecl(Position pos, Flags flags, Name name, Type type) {\n LocalDef def = xts.localDef(pos, flags, Types.ref(type), name);\n return createLocalDecl(pos, def);\n }", "public String typeOf() { return null; }", "public void caseATypeDecStmt(ATypeDecStmt node)\n {\n // ignore declarations with blank identifier\n if (node.getExp() instanceof AIdExp) {\n String id = getId(node.getExp());\n if (! (node.getType() instanceof AStructType)) {\n Type type = getAliasType(id, node.getType());\n declInTypeScope(id, type);\n \n }\n else {\n structName = id;\n Type type = getType(node.getType());\n declInTypeScope(id, type);\n structName = \"\";\n }\n // TODO: deal with alias of alias\n //update fixed. Check AliasType's boolean field for info.\n \n\t }\n\t}", "@Override\n\tpublic void check(Block curScope, Library lib) {\n\t\tSystem.out.println(\"here typename\"+name+ \" \"+lineNum);\n\t\tPascalDecl d2 = curScope.findDecl(name,this);\n\t\t \n\t\t\n\t\t\n\t\t\n\t\n\n\n\t}", "protected LightweightTypeReference getTypeForVariableDeclaration(XExpression expr) {\n\t\tfinal IResolvedTypes resolvedTypes = getResolvedTypes(expr);\n\t\tLightweightTypeReference actualType = resolvedTypes.getActualType(expr);\n\t\tif (actualType.isPrimitiveVoid()) {\n\t\t\tLightweightTypeReference expectedType = resolvedTypes.getExpectedType(expr);\n\t\t\tif (expectedType == null) {\n\t\t\t\texpectedType = resolvedTypes.getExpectedReturnType(expr);\n\t\t\t\tif (expectedType == null) {\n\t\t\t\t\texpectedType = resolvedTypes.getReturnType(expr);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (expectedType != null && !expectedType.isPrimitiveVoid()) {\n\t\t\t\tactualType = expectedType;\n\t\t\t}\n\t\t}\n\t\treturn actualType;\n\t}", "void unsetType();", "public Type visit(VarDecl n) {\n\t\tn.t.accept(this);\n\t\tn.i.accept(this);\n\t\treturn null;\n\t}", "public TypeDefinition tdef(String n){\n TypeDefinition rc = isType(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "TypedObjectDecl createTypedObjectDecl();", "public LocalDecl createLocalDecl(Position pos, Flags flags, Name name, Type type, Expr init) {\n LocalDef def = xts.localDef(pos, flags, Types.ref(type), name);\n return createLocalDecl(pos, def, init);\n }", "InputDecl createInputDecl();", "public StatementType getStatementType()\n\t{\n\t\treturn StatementType.VARIABLE_DECLARATION_STATEMENT;\n\t}", "@Override\n\tpublic Object visitType(Type type) {\n\t\treturn null;\n\t}", "public VarTypeNative getFieldVarType();", "VarDecl createVarDecl();", "public final Declaration var_type_u() throws RecognitionException {\n Declaration decl = null;\n\n\n CommonTree i1 = null;\n CommonTree i2 = null;\n CommonTree i = null;\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:568:5: ( BOOL | FLOAT | INT | ^( DD i1= INT_CONST i2= INT_CONST ) | ^( CM (i= INT_CONST )+ ) | ^( SET ^( DD i1= INT_CONST i2= INT_CONST ) ) | ^( SET ^( CM (i= INT_CONST )+ ) ) )\n int alt39 = 7;\n switch (input.LA(1)) {\n case BOOL: {\n alt39 = 1;\n }\n break;\n case FLOAT: {\n alt39 = 2;\n }\n break;\n case INT: {\n alt39 = 3;\n }\n break;\n case DD: {\n alt39 = 4;\n }\n break;\n case CM: {\n alt39 = 5;\n }\n break;\n case SET: {\n switch (input.LA(2)) {\n case DOWN: {\n switch (input.LA(3)) {\n case DD: {\n alt39 = 6;\n }\n break;\n case CM: {\n alt39 = 7;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 39, 7, input);\n\n throw nvae;\n\n }\n\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 39, 6, input);\n\n throw nvae;\n\n }\n\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 39, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt39) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:568:9: BOOL\n {\n match(input, BOOL, FOLLOW_BOOL_in_var_type_u1534);\n\n\n decl = DBool.me;\n\n\n }\n break;\n case 2:\n // parser/flatzinc/FlatzincFullExtWalker.g:572:9: FLOAT\n {\n match(input, FLOAT, FOLLOW_FLOAT_in_var_type_u1550);\n\n\n decl = DFloat.me;\n\n\n }\n break;\n case 3:\n // parser/flatzinc/FlatzincFullExtWalker.g:576:9: INT\n {\n match(input, INT, FOLLOW_INT_in_var_type_u1566);\n\n\n decl = DInt.me;\n\n\n }\n break;\n case 4:\n // parser/flatzinc/FlatzincFullExtWalker.g:580:9: ^( DD i1= INT_CONST i2= INT_CONST )\n {\n match(input, DD, FOLLOW_DD_in_var_type_u1583);\n\n match(input, Token.DOWN, null);\n i1 = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1587);\n\n i2 = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1591);\n\n match(input, Token.UP, null);\n\n\n decl = new DInt2(EInt.make((i1 != null ? i1.getText() : null)), EInt.make((i2 != null ? i2.getText() : null)));\n\n\n }\n break;\n case 5:\n // parser/flatzinc/FlatzincFullExtWalker.g:590:5: ^( CM (i= INT_CONST )+ )\n {\n\n ArrayList<EInt> values = new ArrayList();\n\n\n match(input, CM, FOLLOW_CM_in_var_type_u1626);\n\n match(input, Token.DOWN, null);\n // parser/flatzinc/FlatzincFullExtWalker.g:593:14: (i= INT_CONST )+\n int cnt37 = 0;\n loop37:\n do {\n int alt37 = 2;\n switch (input.LA(1)) {\n case INT_CONST: {\n alt37 = 1;\n }\n break;\n\n }\n\n switch (alt37) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:593:15: i= INT_CONST\n {\n i = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1631);\n\n values.add(EInt.make((i != null ? i.getText() : null)));\n\n }\n break;\n\n default:\n if (cnt37 >= 1) break loop37;\n EarlyExitException eee =\n new EarlyExitException(37, input);\n throw eee;\n }\n cnt37++;\n } while (true);\n\n\n match(input, Token.UP, null);\n\n\n decl = new DManyInt(values);\n\n\n }\n break;\n case 6:\n // parser/flatzinc/FlatzincFullExtWalker.g:597:9: ^( SET ^( DD i1= INT_CONST i2= INT_CONST ) )\n {\n match(input, SET, FOLLOW_SET_in_var_type_u1652);\n\n match(input, Token.DOWN, null);\n match(input, DD, FOLLOW_DD_in_var_type_u1655);\n\n match(input, Token.DOWN, null);\n i1 = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1659);\n\n i2 = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1663);\n\n match(input, Token.UP, null);\n\n\n match(input, Token.UP, null);\n\n\n decl = new DSet(new DInt2(EInt.make((i1 != null ? i1.getText() : null)), EInt.make((i2 != null ? i2.getText() : null))));\n\n\n }\n break;\n case 7:\n // parser/flatzinc/FlatzincFullExtWalker.g:602:5: ^( SET ^( CM (i= INT_CONST )+ ) )\n {\n\n ArrayList<EInt> values = new ArrayList();\n\n\n match(input, SET, FOLLOW_SET_in_var_type_u1693);\n\n match(input, Token.DOWN, null);\n match(input, CM, FOLLOW_CM_in_var_type_u1696);\n\n match(input, Token.DOWN, null);\n // parser/flatzinc/FlatzincFullExtWalker.g:605:19: (i= INT_CONST )+\n int cnt38 = 0;\n loop38:\n do {\n int alt38 = 2;\n switch (input.LA(1)) {\n case INT_CONST: {\n alt38 = 1;\n }\n break;\n\n }\n\n switch (alt38) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:605:20: i= INT_CONST\n {\n i = (CommonTree) match(input, INT_CONST, FOLLOW_INT_CONST_in_var_type_u1701);\n\n values.add(EInt.make((i != null ? i.getText() : null)));\n\n }\n break;\n\n default:\n if (cnt38 >= 1) break loop38;\n EarlyExitException eee =\n new EarlyExitException(38, input);\n throw eee;\n }\n cnt38++;\n } while (true);\n\n\n match(input, Token.UP, null);\n\n\n match(input, Token.UP, null);\n\n\n decl = new DSet(new DManyInt(values));\n\n\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return decl;\n }", "private void localVariableDeclaration(Modifier modify, Scope scope, Vector queue)\r\n {\r\n if (nextSymbol == Keyword.FINALSY)\r\n {\r\n modify.add(nextSymbol.value);\r\n lookAhead();\r\n }\r\n\r\n modify.check(modify.fields | modify.access);\r\n Type t = type();\r\n\r\n variableDeclarators(modify, t, scope, queue);\r\n }", "private static TypeToken<?> typeVariable() {\n\t\tParameterizedType t = (ParameterizedType)TypeToken.of(Identity.class).getSupertype(StreamElement.class).getType();\n\t\treturn TypeToken.of(t.getActualTypeArguments()[0]);\n\t}", "public boolean typeCheck(){\n\treturn myDeclList.typeCheck();\n }", "public VariableIF createVariable(VariableDecl decl);", "@Override\n public String visit(VariableDeclarator n, Object arg) {\n return null;\n }", "public VariType visit(TypeDeclaration n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t return _ret;\n\t }", "public T caseVariableDeclaration(VariableDeclaration object)\r\n {\r\n return null;\r\n }", "String getVarDeclare();", "type getType();", "public /*@Nullable*/ VariableTree getDeclaration() {\n return decl;\n }", "@Override\n\tpublic Integer visitGlobal_var_decl(ClangParser.Global_var_declContext ctx)\n {\n \treturn null;\n }", "public static ParameterExpression variable(Class type, String name) { throw Extensions.todo(); }", "TypeLiteralExp createTypeLiteralExp();", "public Tipo visitDeclSimple(DECAFParser.DeclSimpleContext ctx){\r\n\t\tString nameType=ctx.varType().getText();\r\n\t\t\r\n\t\tif(nameType.startsWith(\"s\")){\r\n\t\t\tnameType=nameType.replace(\"struct\", \"\");\r\n\t\t\tnameType=nameType.replace(\" \", \"\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tif(tipoActual==null){\r\n\t\t\t\taddComment(\"varname: \"+ctx.ID().getText()+\"-position: \"+position);\r\n\t\t\t\tTipo found=tablaSimbolos.searchTipo(nameType);\r\n\t\t\t\tif(found==null){\r\n\t\t\t\t\ttablaSimbolos.addError(\"Type: \"+nameType+\" non existent (Line: \"+ctx.start.getLine()+\")\");\r\n\t\t\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t\t\t}\r\n\t\t\t\tif(tablaSimbolos.entry(new VarDec(ctx.ID().getText(),found,0,position)).getNombre().equals(\"error\")){\r\n\t\t\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t\t\t}\r\n\t\t\t\t//actualizar la posicion\r\n\t\t\t\tposition+=found.getByteSize();\r\n\t\t\t\t\r\n\t\t\t\treturn tablaSimbolos.correct();\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tTipo found=tablaSimbolos.searchTipo(nameType);\r\n\t\t\t\tif(found==null){\r\n\t\t\t\t\ttablaSimbolos.addError(\"Type\"+nameType+\" non existent (Line: \"+ctx.start.getLine()+\")\");\r\n\t\t\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t\t\t}\r\n\t\t\t\tif(tipoActual.addAtrib(new VarDec(ctx.ID().getText(),found,0,position))){\r\n\t\t\t\t\t//actualizar la posicion\r\n\t\t\t\t\t//position+=found.getByteSize();\r\n\t\t\t\t\treturn tablaSimbolos.correct();\r\n\t\t\t\t}\r\n\t\t\t\ttablaSimbolos.addError(\"Atribute \"+ctx.ID().getText()+\" alredy exits (Line: \"+ctx.start.getLine()+\")\");\r\n\t\t\t\treturn tablaSimbolos.incorrect();\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\t\r\n\t\t\ttablaSimbolos.addError(e.getMessage());\r\n\t\t\treturn tablaSimbolos.correct();\r\n\t\t}\r\n\t}", "@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }", "TypeRef getType();", "private ASTVariableDeclaratorId getDeclaration(ASTLocalVariableDeclaration node) {\n ASTType type = node.getTypeNode();\n if (type != null) {\n if (MAP_CLASSES.keySet().contains(type.getTypeImage())) {\n return node.getFirstDescendantOfType(ASTVariableDeclaratorId.class);\n }\n }\n return null;\n }", "abstract public Type type();", "public abstract jq_Type getDeclaredType();", "private Symbol.VariableSymbol varSymFromString(String name, String type) {\n Symbol.TypeSymbol typeSymbol = TypeUtils.typeFromStr(type);\n return new Symbol.VariableSymbol(name, typeSymbol);\n }", "DType getType();", "public final Declaration var_type() throws RecognitionException {\n Declaration decl = null;\n\n\n Declaration d = null;\n\n\n try {\n // parser/flatzinc/FlatzincFullExtWalker.g:553:5: ( ^( ARRVAR (d= index_set )+ d= var_type_u ) | ^( AVAR d= var_type_u ) )\n int alt36 = 2;\n switch (input.LA(1)) {\n case ARRVAR: {\n alt36 = 1;\n }\n break;\n case AVAR: {\n alt36 = 2;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 36, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt36) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:554:5: ^( ARRVAR (d= index_set )+ d= var_type_u )\n {\n\n List<Declaration> decls = new ArrayList();\n\n\n match(input, ARRVAR, FOLLOW_ARRVAR_in_var_type1469);\n\n match(input, Token.DOWN, null);\n // parser/flatzinc/FlatzincFullExtWalker.g:557:14: (d= index_set )+\n int cnt35 = 0;\n loop35:\n do {\n int alt35 = 2;\n switch (input.LA(1)) {\n case INDEX: {\n alt35 = 1;\n }\n break;\n\n }\n\n switch (alt35) {\n case 1:\n // parser/flatzinc/FlatzincFullExtWalker.g:557:15: d= index_set\n {\n pushFollow(FOLLOW_index_set_in_var_type1474);\n d = index_set();\n\n state._fsp--;\n\n\n decls.add(d);\n\n }\n break;\n\n default:\n if (cnt35 >= 1) break loop35;\n EarlyExitException eee =\n new EarlyExitException(35, input);\n throw eee;\n }\n cnt35++;\n } while (true);\n\n\n pushFollow(FOLLOW_var_type_u_in_var_type1481);\n d = var_type_u();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n decl = new DArray(decls, d);\n\n\n }\n break;\n case 2:\n // parser/flatzinc/FlatzincFullExtWalker.g:561:9: ^( AVAR d= var_type_u )\n {\n match(input, AVAR, FOLLOW_AVAR_in_var_type1499);\n\n match(input, Token.DOWN, null);\n pushFollow(FOLLOW_var_type_u_in_var_type1503);\n d = var_type_u();\n\n state._fsp--;\n\n\n match(input, Token.UP, null);\n\n\n decl = d;\n\n\n }\n break;\n\n }\n } catch (RecognitionException re) {\n reportError(re);\n recover(input, re);\n } finally {\n // do for sure before leaving\n }\n return decl;\n }", "DOMType() {\n // Constructs an empty type node\n }", "@Override\n public ClassTree declaration() {\n return null;\n }", "public T caseTypeDeclaration(TypeDeclaration object) {\n\t\treturn null;\n\t}", "@Override\n\tpublic Void visit(ClauseVarType clause, Void ctx) {\n\t\treturn null;\n\t}", "public VarTypeNativeImpl(TypeNativeImpl typeDec)\n {\n this.typeDec = typeDec;\n }", "static Identifier makeTypeCons(final QualifiedName name) {\r\n if (name == null) {\r\n return null;\r\n } else {\r\n return new Identifier(Category.TYPE_CONSTRUCTOR, name);\r\n }\r\n }", "Decl getPart();", "public T caseVariableDeclarationWithoutInitCS(VariableDeclarationWithoutInitCS object) {\r\n return null;\r\n }", "private Keyword basicType()\r\n {\r\n Keyword x = Keyword.NONESY;\r\n\r\n if (typeKW.contains(nextSymbol))\r\n {\r\n x = nextSymbol;\r\n lookAhead();\r\n }\r\n\r\n return x;\r\n }", "void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "public void any_type() {\n if (var_type()) {\n return;\n }\n if (lexer.token != Symbol.VOID) {\n error.signal(\"Wrong type\");\n }\n lexer.nextToken();\n }", "@Test\n public void shouldNotParseXXXXXXTYPE() {\n printTest(\"shouldNotParseXXXXXXTYPE()\");\n String typeString = \"XXXXXXTYPE\";\n String content = typeString;\n\n DdlTokenStream tokens = getTokens(content);\n\n DataType dType = null;\n try {\n dType = parser.parse(tokens);\n } catch (ParsingException e) {\n // Expect exception\n }\n\n Assert.assertNull(\"DataType should NOT have been found for Type = \" + typeString, dType);\n }", "@Override\n public Void visit(IVariableDeclaration stmt, Set<String> overallContext) {\n overallContext.add(stmt.getType().getName());\n return null;\n }", "private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}", "public T caseVariableDeclarationWithoutInitListCS(VariableDeclarationWithoutInitListCS object) {\r\n return null;\r\n }", "public MType visit(VarDeclaration n, MType argu) {\n \t//如果f0对应的变量类型未被声明过,则报未定义错\n \tMType _ret = n.f0.accept(this, argu);\n \tif (_ret != null) {\n \t\tif (((MClasses) Mainclass.my_classes).getClassByName(_ret.getName()) == null)\n \t\t\tConsole.UndefinedClass(n.f1.f0.beginLine, _ret.getName());\n \t}\n \t\n\t return _ret;\n\t}", "public void visit(BinCITypesDefStatement x) {\n }", "private static boolean VarDecl_1_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"VarDecl_1_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = MarklogicAnnotation(b, l + 1);\n if (!r) r = CompatibilityAnnotation(b, l + 1);\n if (!r) r = Annotation(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public String visit(VarType n, Object arg) {\n return null;\n }", "@Override\n public Boolean visitDeclaration(FormScriptGrammarParser.DeclarationContext ctx) {\n DataType dataType = DataType.valueOf(ctx.type.getText());\n if (declaredVariables.get(ctx.name.getText()) != null) { // if variable already declared\n throw new IllegalArgumentException(\"Error at line: \" + ctx.name.getLine() + \":\" + ctx.name.getCharPositionInLine()\n + \" variable \" + ctx.name.getText() + \" was already previously declared!\");\n// return false; //if we wanted to return the NOTOK/false result recursively, this would be here instead of the throw\n }\n declaredVariables.put(ctx.name.getText(), dataType);\n return true;\n }", "public MType visit(TypeDeclaration n, MType argu) {\n \tMType _ret=null;\n \tn.f0.accept(this, argu);\n \treturn _ret;\n }", "DeclRule createDeclRule();", "VarsDeclRule createVarsDeclRule();", "public LocalDecl createLocalDecl(Position pos, Flags flags, Name name, Expr init) {\n if (init.type().isVoid()) {\n System.err.println(\"ERROR: ForLoopOptimizer.createLocalDecl: creating void local assignment for \" +init+ \" at \" +pos);\n }\n return createLocalDecl(pos, flags, name, init.type(), init);\n }", "public List<Ref<? extends Type>> typeVariables();", "void emptyType(ComplexTypeSG type) throws SAXException;", "public Type visit(Formal n) {\n\t\tn.t.accept(this);\n\t\tn.i.accept(this);\n\t\treturn null;\n\t}", "public DecFunNode(String id, Node type) {\n\tthis(id);\n\tfunType = type;\n\tthis.generics = new ArrayList<GenericTypeNode>();\n\tthis.genericInst = false;\n }", "String getDest_typ();", "static boolean finalConstVarVoidOrType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"finalConstVarVoidOrType\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = finalConstVarVoidOrType_0(b, l + 1);\n if (!r) r = finalConstVarVoidOrType_1(b, l + 1);\n if (!r) r = finalConstVarVoidOrType_2(b, l + 1);\n if (!r) r = finalConstVarVoidOrType_3(b, l + 1);\n if (!r) r = finalConstVarVoidOrType_4(b, l + 1);\n if (!r) r = type(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "private MCTypeReference<? extends MCTypeSymbol> initTypeRef(ASTPort node, StringBuilder typeName, ASTType astType) {\n if (node.getType().get() instanceof ASTRange) {\n return initTypeRefASTRange(node, typeName, (ASTRange) astType);\n }\n else if (node.getType().get() instanceof ASTRanges) {\n return initTypeRefASTRanges(node, typeName, (ASTRanges) astType);\n }\n Log.debug(node.getName().isPresent() ? node.getName().get() : \"unnamed port\" + \" \" + astType.toString(), \"info\");\n return initTypeRefGeneralType(node, typeName, astType);\n }", "OutputDecl createOutputDecl();", "abstract public Type getType();", "public boolean visit(\n \t\tTypeDeclaration localTypeDeclaration,\n \t\tBlockScope scope) {\n \t\treturn false;\n \t}", "@Override\n public Type verifyType(DecacCompiler compiler) throws ContextualError {\n //Fait\n \t//si le type existe dans l'enveloppe des types, on met à jour l'enrichissement \n \t//sinon, on lève une erreur contextuelle\n this.name = compiler.getSymbolTable().create(this.name.getName());\n \tif(compiler.getEnvTypes().get(this.name)!=null)\n \t{\n \t\t//enrichissement def & type\n \t\tthis.setDefinition(compiler.getEnvTypes().get(this.name));\n \t\tType type= compiler.getEnvTypes().get(this.name).getType();\n \t\tthis.setType(type);\n \t\treturn type;\n \t}\n \telse\n \t{\n \t\tthrow new ContextualError(\"type non défini\",this.getLocation());\n \t}\n }", "public LocalDecl createLocalDecl(Position pos, LocalDef def, Expr init) {\n return xnf.LocalDecl( pos.markCompilerGenerated(), \n xnf.FlagsNode(pos, def.flags()),\n xnf.CanonicalTypeNode(pos, def.type().get()), \n xnf.Id(pos, def.name()),\n init ).localDef(def);\n }", "LocalSimpleType getSimpleType();", "public interface TypeContext {\n Type getReturnType();\n\n Type getThisType();\n\n void setThisType(Type thisType);\n\n void setReturnType(Type returnType);\n\n VarRef lookupVar(String varUse);\n\n void putVar(String varName, Type type, NQJVarDecl var);\n\n //\n // CHANGE: Introduce separate field storage to enable field shadowing while\n // disallowing variable shadowing.\n //\n\n /**\n * Gets a reference to a field previous stored to the context.\n *\n * @param fieldUse The name of the field to retrieve.\n * @return A reference to the requested field.\n */\n VarRef lookupField(String fieldUse);\n\n /**\n * Stores a field into the context.\n *\n * @param fieldName The name of the field to store.\n * @param type The type of the field to store.\n * @param field The AST declaration of the field to store.\n */\n void putField(String fieldName, Type type, NQJVarDecl field);\n\n TypeContext copy();\n\n /**\n * Variable declaration and type wrapper class.\n */\n class VarRef {\n final NQJVarDecl decl;\n final Type type;\n\n public VarRef(Type type, NQJVarDecl decl) {\n this.decl = decl;\n this.type = type;\n }\n }\n}", "public boolean var_type() {\n if (lexer.token != Symbol.FLOAT && lexer.token != Symbol.INT) {\n return false;\n }\n lexer.nextToken();\n return true;\n }", "private void addDefinitionAsType(DefinitionDec dec, Type type) {\n Type typeOfSet = getTypeOfSetType(type);\n if (typeOfSet != null) {\n MathVarDec vd = null;\n Exp w = null;\n Exp o = null;\n if (dec.getDefinition() instanceof SetExp) {\n SetExp se = (SetExp) (dec.getDefinition());\n vd = se.getVar();\n w = se.getWhere();\n o = se.getBody();\n }\n TypeEntry te =\n new TypeEntry(table.getCurrentScope(), dec.getName(),\n typeOfSet, vd, w, o);\n table.addDefinitionTypeToScope(te);\n }\n }", "TypeDef createTypeDef();", "public void setDeclaration(VariableTree decl) {\n this.decl = decl;\n }", "@Override\r\n\tpublic void visit(VariableDeclaration variableDeclaration) {\n\r\n\t}", "TypeDec getTarget();" ]
[ "0.6101641", "0.6082024", "0.57735926", "0.5767387", "0.57594633", "0.5743018", "0.5714231", "0.56713253", "0.5564044", "0.5505601", "0.5498392", "0.54652923", "0.5444801", "0.5427154", "0.5353571", "0.5353133", "0.5348026", "0.53349954", "0.5334529", "0.5318606", "0.5291241", "0.52831966", "0.52754796", "0.5267622", "0.5262062", "0.52608746", "0.52544457", "0.52358437", "0.522772", "0.52088815", "0.5204362", "0.52042574", "0.5186751", "0.51836795", "0.5178194", "0.5175934", "0.5175366", "0.51663494", "0.5158149", "0.51414007", "0.512777", "0.5124255", "0.5124041", "0.51238", "0.51223445", "0.5117564", "0.51133", "0.5109286", "0.51090187", "0.5107695", "0.510569", "0.5104422", "0.5101205", "0.50972563", "0.50906575", "0.50902593", "0.5076512", "0.5070476", "0.502114", "0.50182825", "0.5009106", "0.5008089", "0.4999814", "0.49974447", "0.4987619", "0.49829093", "0.49823", "0.49756482", "0.49585813", "0.49575385", "0.4954875", "0.49369782", "0.49240464", "0.49176866", "0.4914631", "0.49139103", "0.49061823", "0.49058792", "0.49035326", "0.49025935", "0.49012575", "0.48972458", "0.48966807", "0.4893954", "0.48896646", "0.48884442", "0.4880915", "0.4878581", "0.48784706", "0.48724753", "0.4871969", "0.486234", "0.48482615", "0.48429832", "0.48395476", "0.48388755", "0.4835901", "0.48310852", "0.48210225", "0.48206407" ]
0.4897462
81
/ / type declaration
public void caseATypeDecStmt(ATypeDecStmt node) { // ignore declarations with blank identifier if (node.getExp() instanceof AIdExp) { String id = getId(node.getExp()); if (! (node.getType() instanceof AStructType)) { Type type = getAliasType(id, node.getType()); declInTypeScope(id, type); } else { structName = id; Type type = getType(node.getType()); declInTypeScope(id, type); structName = ""; } // TODO: deal with alias of alias //update fixed. Check AliasType's boolean field for info. } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract public Type type();", "Type() {\n }", "public static $type () {\n }", "public ReocType() \r\n {\r\n super();\r\n }", "type getType();", "@Override\r\n\tpublic void visit(TypedefDefinition typedefDefinition) {\n\r\n\t}", "private Type type()\r\n {\r\n Type t = new Type();\r\n\r\n t.ident = nextToken;\r\n t.type = basicType();\r\n if (t.type == Keyword.NONESY)\r\n {\r\n unresolved.add(t.ident.string = qualident());\r\n }\r\n else\r\n t.ident.string = null;\r\n\r\n t.dim = bracketsOpt();\r\n\r\n return t;\r\n }", "@Override\n\tpublic int getType() {\n\t\treturn 1;\n\t}", "public $type $name () {\n }", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "int getType();", "public String type();", "TypeDefinition createTypeDefinition();", "Type_use getType_use();", "public Type() {\n super();\n }", "public interface FType {\n boolean isPointer();\n boolean isDimension();\n String getCanonicalText();\n FTypeParamValue getKind();\n}", "abstract public String getType();", "Type type();", "Type type();", "TypeRef getType();", "protected GEDCOMType() {/* intentionally empty block */}", "TypeDef createTypeDef();", "DOMType() {\n // Constructs an empty type node\n }", "public TypeCheck() {\n\tsuper();\n\tinst = this;\n\tnew rcc.tc.PrepTypeDeclaration();\n }", "@Override\n\tpublic void type() {\n\t\t\n\t}", "abstract public Type getType();", "@Override\n public int getType() {\n return 0x1c;\n }", "TypeDecl createTypeDecl();", "private PTypeRefSkel() {}", "public int getType() {\n\t\treturn 1;\r\n\t}", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "public abstract String getType();", "@Override\r\n\tpublic String typeV() {\n\t\treturn hio.TyreType();\r\n\t}", "public int getType() { return type; }", "public int getType() { return type; }", "public InsulinType(){\n super();\n }", "protected abstract String getType();", "public abstract int getType();", "public abstract int getType();", "public abstract int getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "public interface Type {\n}", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public int getType() {\n/* 50 */ return this.type;\n/* */ }", "public TypeUtils() {\n\t}", "public GO_RecordType() {\n }" ]
[ "0.65862596", "0.65815187", "0.64175516", "0.6374658", "0.6333711", "0.62961024", "0.6271565", "0.61827", "0.6129517", "0.6124955", "0.6124955", "0.6124955", "0.6124955", "0.6124955", "0.6124955", "0.6124955", "0.6124955", "0.61154133", "0.61091727", "0.6079623", "0.6070441", "0.6052929", "0.60097134", "0.6001108", "0.6001108", "0.5999655", "0.59939224", "0.59862924", "0.598347", "0.598295", "0.59638673", "0.59543467", "0.59383315", "0.5935223", "0.59162146", "0.5915473", "0.59085655", "0.59085655", "0.59085655", "0.59085655", "0.59085655", "0.59085655", "0.59085655", "0.59085655", "0.590197", "0.5892352", "0.5892352", "0.58894587", "0.58870065", "0.5882288", "0.5882288", "0.5882288", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.58822083", "0.5878902", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.5857105", "0.58045375", "0.57964474", "0.5786477" ]
0.0
-1
/ HELPER FUNCTIONS / returns true if two types are boolean, false otherwise
public boolean areBoolean(Type typeone, Type typetwo){ if (areSameType(typeone, typetwo)) { typeone = removeAlias(typeone); typetwo = removeAlias(typetwo); } if(typeone instanceof BooleanType && typetwo instanceof BooleanType) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isBoolean();", "boolean hasBool();", "boolean booleanOf();", "public Boolean asBoolean();", "boolean hasBoolValue();", "boolean isEBoolean();", "@Override\n public Node typeCheck() {\n if (!(FOOLlib.isSubtype(left.typeCheck(), new BoolTypeNode()) &&\n FOOLlib.isSubtype(right.typeCheck(), new BoolTypeNode()))) {\n if(operator.equals(\"and\") || operator.equals(\"&&\")) {\n System.out.println(\"Non boolean in AND\");\n }\n else {\n System.out.println(\"Non boolean in OR\");\n }\n System.exit(0);\n }\n //se i tipi sono corretti restituisco bool\n return new BoolTypeNode();\n }", "abstract public boolean getAsBoolean();", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default boolean asBool() {\n \n return notSupportedCast(BasicTypeID.BOOL);\n }", "public void testCompareBoolean() {\n\t\tboolean one = true;\n\t\tboolean two = false;\n\t\t//false ist kleiner wie true\n\t\tassertTrue(comp.compareBoolean(two, one) == -1);\n\t\tassertTrue(comp.compareBoolean(one, one) == 0);\n\t\tassertTrue(comp.compareBoolean(two, two) == 0);\n\t\tassertTrue(comp.compareBoolean(one, two) == 1);\n\t}", "boolean result_is_boolean(DiagnosticChain diagnostics, Map<Object, Object> context);", "boolean isValidBoolean(boolean value);", "protected boolean convertToBoolean(Object value) {\n if (value == null) {\n return false;\n }\n else if (value instanceof Boolean) {\n return (Boolean)value;\n }\n else if (value instanceof Number) {\n return isNumberTrue((Number)value);\n }\n else if (value instanceof String) {\n String stringValue = (String)value;\n if (\"true\".equals(stringValue)) {\n return true;\n }\n else if (\"false\".equals(stringValue)) {\n return false;\n }\n else if (NumberUtils.isCreatable(stringValue)) {\n Number number = NumberUtils.createNumber(stringValue);\n return isNumberTrue(number);\n }\n else {\n return stringValue.length() > 0;\n }\n }\n else if (value instanceof Collection) {\n return ((Collection) value).size() > 0;\n }\n return false;\n }", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "BooleanValue createBooleanValue();", "public abstract boolean isTypeCorrect();", "@Override\n public boolean isMaybeAnyBool() {\n checkNotPolymorphicOrUnknown();\n return (flags & BOOL) == BOOL;\n }", "public boolean isBoolean() {\n return this.data instanceof Boolean;\n }", "public boolean isBool() {\n return bool;\n }", "public Value restrictToBool() {\n checkNotPolymorphicOrUnknown();\n if (isMaybeAnyBool())\n return theBoolAny;\n else if (isMaybeTrueButNotFalse())\n return theBoolTrue;\n else if (isMaybeFalseButNotTrue())\n return theBoolFalse;\n else\n return theNone;\n }", "boolean getBoolValue();", "boolean getBoolValue();", "static public boolean asBoolean(Object a) throws Exception {\r\n\t\tif (a instanceof JSObject)\r\n\t\t\ta = ((JSObject) a).valueOf();\r\n\t\t\r\n\t\t// js types\r\n\t\tif (a instanceof Boolean)\r\n\t\t\treturn (Boolean) a;\r\n\t\tif (a instanceof Double)\r\n\t\t\treturn (Double) a != 0;\r\n\t\tif (a instanceof String)\r\n\t\t\treturn ((String) a).length() > 0;\r\n\t\tif (a == null)\r\n\t\t\treturn false;\r\n\t\tif (a instanceof JSNull)\r\n\t\t\treturn false;\r\n\t\tif (a instanceof JSObject)\r\n\t\t\treturn true;\r\n\t\t\r\n\t\t// java types\r\n\t\tif (a instanceof Number)\r\n\t\t\treturn ((Number) a).doubleValue() > 0;\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean isRequiresTaxCertificate() \n{\nObject oo = get_Value(COLUMNNAME_RequiresTaxCertificate);\nif (oo != null) \n{\n if (oo instanceof Boolean) return ((Boolean)oo).booleanValue();\n return \"Y\".equals(oo);\n}\nreturn false;\n}", "public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }", "public boolean areSameType(Type typeone, Type typetwo){\n if(areBinaryAlias(typeone,typetwo)) return true;\n else if (typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel;\n Type typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer)) return false;\n else return true;\n }\n /* areComparable takes care of the basic types except boolean*/\n else if(areComparable(typeone,typetwo)) return true;\n else if (typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n /* compare every field in the two structs */\n \n /* if slices, compare their underlying types */\n else if (typeone instanceof SliceType && typetwo instanceof SliceType){\n Type typel,typer;\n SliceType lefta = (SliceType) typeone;\n SliceType righta = (SliceType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(areSameType(typel,typer)) return true;\n else return false;\n }\n /* function return type might be null */\n else if (typeone==null && typetwo==null) {\n return true;\n }\n /* otherwise, return false */\n else {\n return false;\n }\n }", "public interface Truth {\n\n /**\n * This method has to be implemented to know whether the\n * object implementing this interface should be treated\n * as a Boolean.TRUE value or Boolean.FALSE\n *\n * This interface has been created in order to\n * make it easier to interact with Groovy collections\n * and participate of the Groovy truth\n *\n * @return the boolean representation of the current type\n */\n public Boolean asBoolean();\n\n}", "public static boolean bVal( Boolean value ) {\n return value != null && value; \n }", "private boolean getBooleanValue(Element element, String tagName)\n {\n String value = getValue(element,tagName).trim();\n try\n {\n return Integer.parseInt(value) != 0;\n }\n catch (NumberFormatException exception)\n {\n return value.equalsIgnoreCase(\"true\")\n || value.equalsIgnoreCase(\"on\")\n || value.equalsIgnoreCase(\"yes\");\n }\n }", "@OperationMeta(name = Constants.EQUALITY, opType = OperationType.INFIX)\n public static boolean equals(boolean b1, boolean b2) {\n return b1 == b2;\n }", "static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }", "public static Object logicAnd(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2)) {\n\t\t\treturn ((Boolean) val1) && ((Boolean) val2);\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in logicAnd\");\n\t}", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "public abstract boolean read_boolean();", "public static boolean isTrue(Object value) {\n\t\treturn isBool(value) && (Boolean) value;\n\t}", "public boolean isBoolean() {\n return false;\n }", "private static boolean isBoolean(String value) {\n boolean status = false;\n value = value.trim();\n if (value.equals(\"true\") || value.equals(\"false\")) {\n return true;\n }\n\n return status;\n }", "@Override\n\tpublic String visitBoolExpr(BoolExprContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tif (childrenNo == 3 )\n\t\t{\n\t\t\tParseTree n=ctx.getChild(1);\t\t\t\n\t\t\tif (!(n instanceof TerminalNode)) return visit(n); //( boolExpr ) \n\t\t\telse if(n.equals(ctx.COMP())) {\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); //|arExpr COMP arExpr\n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \n\t\t\t\tif(!((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))) throw new RuntimeException(\"you can only compare integer types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.EQ()){\t\t\t\t\t\t\t\t\t\t\t//|arExpr EQ arExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0)); \n\t\t\t\tString secondOpType=visit(ctx.getChild(2)); \t\t\t\t\n\t\t\t\tif(!(((firstOpType.equals(\"int\"))&&(secondOpType.equals(\"int\")))||((firstOpType.equals(\"char\"))&&(secondOpType.equals(\"char\"))))) throw new RuntimeException(\"you can only use\"\n\t\t\t\t\t\t+ \"\\\"==\\\" operator on integer or character types\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}else if(n==ctx.AND()||n==ctx.OR()){ //|boolExpr (AND|OR)boolExpr\n\t\t\t\tString firstOpType=visit(ctx.getChild(0));\n\t\t\t\tString secondOpType=visit(ctx.getChild(2));\n\t\t\t\tif(!(firstOpType.equals(\"boolean\"))&&(secondOpType.equals(\"boolean\"))) throw new RuntimeException(\"you can only use boolean operators on boolean expressions\");\n\t\t\t\treturn \"boolean\";\n\t\t\t}\n\t\t} else if (childrenNo == 2 ) { //|NOT boolExpr\n\t\t\tString exprType=visit(ctx.getChild(1));\n\t\t\tif (!exprType.equals(\"boolean\")) throw new RuntimeException(\"NOT operator works only with boolean expresssions\");\n\t\t\t\treturn \"boolean\";\n\t\t}else {\t\t\t\t\t\t\t\t//|(ID|property|BOOLEANLIT|arrIdExpr|methodCall)\n\t\t\tParseTree n=ctx.getChild(0);\n\t\t\tif (n instanceof TerminalNode) {\t\t\t\t\n\t\t\t\tif (n==ctx.BOOLEANLIT()) return \"boolean\";\n\t\t\t\telse if(n==ctx.ID()){\n\t\t\t\t\tString key=visitTerminal((TerminalNode)n);\n\t\t\t\t\tRecord id= table.lookup(key);\n\t\t\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\t\t\treturn id.getReturnType();\n\t\t\t\t\t\n\t\t\t\t}\t\t\t \n\t\t\t}else {\n\t\t\t\tString type=visit(ctx.getChild(0));\n\t\t\t\treturn type;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn null; //for debug\n\t}", "public static void main(String[] args) {\n String str1 = \"true\";\n String str2 = \"false\";\n\n boolean b1 = Boolean.valueOf(str1);\n boolean b2 = Boolean.valueOf(str2);\n\n System.out.println(b1);\n System.out.println(b2);\n }", "public static Boolean toBoolean(Object o, byte type) throws ExecException {\n try {\n switch (type) {\n case NULL:\n return null;\n case BOOLEAN:\n return (Boolean) o;\n case BYTE:\n return Boolean.valueOf(((Byte) o).byteValue() != 0);\n case INTEGER:\n return Boolean.valueOf(((Integer) o).intValue() != 0);\n case LONG:\n return Boolean.valueOf(((Long) o).longValue() != 0L);\n case BIGINTEGER:\n return Boolean.valueOf(!BigInteger.ZERO.equals(((BigInteger) o)));\n case BIGDECIMAL:\n return Boolean.valueOf(((BigDecimal) o).signum() != 0);\n case FLOAT:\n return Boolean.valueOf(((Float) o).floatValue() != 0.0F);\n case DOUBLE:\n return Boolean.valueOf(((Double) o).doubleValue() != 0.0D);\n case BYTEARRAY:\n String str = ((DataByteArray) o).toString();\n if (str.equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n } else if (str.equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n } else {\n return null;\n }\n case CHARARRAY:\n if (((String) o).equalsIgnoreCase(\"true\")) {\n return Boolean.TRUE;\n } else if (((String) o).equalsIgnoreCase(\"false\")) {\n return Boolean.FALSE;\n } else {\n return null;\n }\n case DATETIME:\n case MAP:\n case INTERNALMAP:\n case TUPLE:\n case BAG:\n case UNKNOWN:\n default:\n int errCode = 1071;\n String msg = \"Cannot convert a \" + findTypeName(o) + \" to a Boolean\";\n throw new ExecException(msg, errCode, PigException.INPUT);\n }\n } catch (ClassCastException cce) {\n throw cce;\n } catch (ExecException ee) {\n throw ee;\n } catch (NumberFormatException nfe) {\n int errCode = 1074;\n String msg = \"Problem with formatting. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.INPUT, nfe);\n } catch (Exception e) {\n int errCode = 2054;\n String msg = \"Internal error. Could not convert \" + o + \" to Float.\";\n throw new ExecException(msg, errCode, PigException.BUG);\n }\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean isValue();", "boolean isChecked();", "boolean isChecked();", "public static boolean is_boolean(String s) {\n\t return (s.equalsIgnoreCase(\"true\") || s.equalsIgnoreCase(\"T\") || s.equalsIgnoreCase(\"false\") || s.equalsIgnoreCase(\"F\"));\n }", "BoolOperation createBoolOperation();", "boolean isAlwaysTrue();", "Boolean isPassed();", "public boolean booleanValue(Map<Prop, Object> map) {\n assert type == Boolean.class;\n Object o = map.get(this);\n return this.<Boolean>typeValue(o);\n }", "public boolean booleanValue() {\n if (originalValue instanceof Boolean) {\n return (Boolean) originalValue;\n } else if (originalValue instanceof Number) {\n return ((Number) originalValue).intValue() != 0;\n } else {\n throw new CellValueCastException();\n }\n }", "private boolean processTrueOrFalse() throws HsqlException {\n\n String sToken = tokenizer.getSimpleToken();\n\n if (sToken.equals(Token.T_TRUE)) {\n return true;\n } else if (sToken.equals(Token.T_FALSE)) {\n return false;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, sToken);\n }\n }", "private static boolean validateBoolean(String boolString) {\n if (boolString.equals(\"true\") || boolString.equals(\"false\") \n || boolString.equals(\"1\") || boolString.equals(\"0\")) {\n return true;\n } else {\n return false;\n }\n }", "BooleanExpression createBooleanExpression();", "BooleanExpression createBooleanExpression();", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "boolean isSimpleValue();" ]
[ "0.7285062", "0.7004743", "0.69397", "0.68943554", "0.6851016", "0.67508316", "0.66582024", "0.6653383", "0.64624995", "0.64436764", "0.64433193", "0.64317393", "0.64054465", "0.6391214", "0.6391214", "0.6391214", "0.6391214", "0.6381519", "0.6289485", "0.6284794", "0.6255366", "0.6248391", "0.6243952", "0.6243952", "0.62421703", "0.6236874", "0.622997", "0.6164947", "0.6129548", "0.6063923", "0.6062923", "0.6053277", "0.60108185", "0.6005892", "0.59937346", "0.596003", "0.59568375", "0.59536535", "0.59491557", "0.59332806", "0.59300476", "0.59218514", "0.59211695", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5897524", "0.5889053", "0.5885668", "0.5885668", "0.5880589", "0.5879716", "0.5872769", "0.58702564", "0.5863917", "0.5855446", "0.58554024", "0.5854877", "0.5839645", "0.5839645", "0.582562", "0.5825406" ]
0.75904363
0
/ returns true if two types are comparable, false otherwise
public boolean areComparable(Type typeone, Type typetwo){ /* first check the basic types */ if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true; /* structs are comparable if they correspond to the same type declaration and the fields are comparable */ else if(typeone instanceof StructType && typetwo instanceof StructType){ String name1 = ((StructType)typeone).getStructName(); String name2 = ((StructType)typetwo).getStructName(); if (name1==name2 || (name1.equals(name2) && name1.equals(""))) { StructType lefts = (StructType) typeone; StructType rights = (StructType) typetwo; List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields(); List<Map.Entry<List<String>,Type>> rightlist = rights.getFields(); if (leftlist.size()!=rightlist.size()) { return false; } for(int i=0; i<leftlist.size(); i++){ Type typel = leftlist.get(i).getValue(); Type typer = rightlist.get(i).getValue(); if(!areComparable(typel,typer)) { return false; } } return true; } else { return false; } } /* finally, if they are arrays, check that the underlying type is comparable */ else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){ Type typel,typer; ArrayType lefta = (ArrayType) typeone; ArrayType righta = (ArrayType) typetwo; typel = lefta.getType(); typer = righta.getType(); if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false; else return true; } else if (typeone instanceof AliasType && typetwo instanceof AliasType) { AliasType left = (AliasType) typeone; AliasType right = (AliasType) typetwo; if (left.getAliasName()==right.getAliasName()) { return true; } else { return false; } } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isComparable();", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "public boolean compareTo(T t);", "boolean compare(Object targetOne, Object targetTwo);", "public boolean comparable(DataTypeDescriptor compareWithDTD, boolean forEquals) {\r\n TypeId compareWithTypeID = compareWithDTD.getTypeId();\r\n int compareWithJDBCTypeId = compareWithTypeID.getJDBCTypeId();\r\n\r\n // Incomparable types include:\r\n // XML (SQL/XML[2003] spec, section 4.2.2)\r\n // ref types\r\n if (!typeId.isComparable() || !compareWithTypeID.isComparable())\r\n return false;\r\n \r\n // if the two types are equal, they should be comparable\r\n if (typeId.equals(compareWithTypeID))\r\n return true;\r\n \r\n //If this DTD is not user defined type but the DTD to be compared with \r\n //is user defined type, then let the other DTD decide what should be the\r\n //outcome of the comparable method.\r\n if (!(typeId.isUserDefinedTypeId()) && \r\n (compareWithTypeID.isUserDefinedTypeId()))\r\n return compareWithDTD.comparable(this, forEquals);\r\n\r\n //Numeric types are comparable to numeric types\r\n if (typeId.isNumericTypeId())\r\n return (compareWithTypeID.isNumericTypeId());\r\n\r\n //CHAR, VARCHAR and LONGVARCHAR are comparable to strings, boolean, \r\n //DATE/TIME/TIMESTAMP and to comparable user types\r\n if (typeId.isStringTypeId()) {\r\n if((compareWithTypeID.isDateTimeTimeStampTypeID() ||\r\n compareWithTypeID.isBooleanTypeId()))\r\n return true;\r\n //If both the types are string types, then we need to make sure\r\n //they have the same collation set on them\r\n if (compareWithTypeID.isStringTypeId() && typeId.isStringTypeId()) {\r\n return true; // TODO: compareCollationInfo(compareWithDTD);\r\n } \r\n else\r\n return false; //can't be compared\r\n }\r\n\r\n //Are comparable to other bit types and comparable user types\r\n if (typeId.isBitTypeId()) \r\n return (compareWithTypeID.isBitTypeId()); \r\n\r\n //Booleans are comparable to Boolean, string, and to \r\n //comparable user types. As part of the work on DERYB-887,\r\n //I removed the comparability of booleans to numerics; I don't\r\n //understand the previous statement about comparable user types.\r\n //I suspect that is wrong and should be addressed when we\r\n //re-enable UDTs (see DERBY-651).\r\n if (typeId.isBooleanTypeId())\r\n return (compareWithTypeID.getSQLTypeName().equals(typeId.getSQLTypeName()) ||\r\n compareWithTypeID.isStringTypeId()); \r\n\r\n //Dates are comparable to dates, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.DATE)\r\n if (compareWithJDBCTypeId == Types.DATE || \r\n compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Times are comparable to times, strings and to comparable\r\n //user types.\r\n if (typeId.getJDBCTypeId() == Types.TIME)\r\n if (compareWithJDBCTypeId == Types.TIME || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n //Timestamps are comparable to timestamps, strings and to\r\n //comparable user types.\r\n if (typeId.getJDBCTypeId() == Types.TIMESTAMP)\r\n if (compareWithJDBCTypeId == Types.TIMESTAMP || \r\n compareWithJDBCTypeId == Types.DATE || \r\n compareWithTypeID.isStringTypeId())\r\n return true;\r\n else\r\n return false;\r\n\r\n return false;\r\n }", "public boolean a(Comparable<?> comparable) {\n return true;\n }", "public boolean a(Comparable<?> comparable) {\n return false;\n }", "public boolean compareType(Node n1, Node n2)\n {\n boolean compare= false;\n if (n1 instanceof Ipv4 && n2 instanceof Ipv4)\n {\n if (((Ipv4) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv4 && n2 instanceof Ipv6)\n {\n if (((Ipv4) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv4)\n {\n if (((Ipv6) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv6)\n {\n if (((Ipv6) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n return compare;\n }", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "private boolean isFieldTypeComparable(int fiLHSFldType,int fiRHSFldType)\n {\n boolean lboolResult=false;\n if(fiLHSFldType==fiRHSFldType)\n {\n lboolResult=true;\n }\n switch(fiLHSFldType)\n {\n case DataConst.BIT:\n case DataConst.DECIMAL:\n case DataConst.FLOAT:\n case DataConst.NUMERIC:\n case DataConst.REAL:\n case DataConst.BIGINT:\n case DataConst.DOUBLE:\n case DataConst.INTEGER:\n case DataConst.SMALLINT:\n case DataConst.TINYINT:\n {\n if(fiRHSFldType== DataConst.BIT || fiRHSFldType==DataConst.BIGINT ||\n fiRHSFldType== DataConst.DECIMAL || fiRHSFldType==DataConst.DOUBLE ||\n fiRHSFldType== DataConst.FLOAT || fiRHSFldType==DataConst.INTEGER ||\n fiRHSFldType== DataConst.NUMERIC || fiRHSFldType==DataConst.SMALLINT ||\n fiRHSFldType== DataConst.REAL || fiRHSFldType==DataConst.TINYINT )\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.DATE:\n case DataConst.TIMESTAMP:\n {\n if(fiRHSFldType== DataConst.DATE || fiRHSFldType==DataConst.TIMESTAMP)\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.CHAR:\n case DataConst.VARCHAR:\n case DataConst.LONGVARCHAR:\n {\n if(fiRHSFldType== DataConst.CHAR || fiRHSFldType==DataConst.LONGVARCHAR ||\n fiRHSFldType== DataConst.VARCHAR )\n {\n lboolResult=true;\n }\n }\n break;\n default:\n lboolResult=false;\n }\n return lboolResult;\n }", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "public boolean cmp_new(Type other){\n if (this.dimension < other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "boolean canBeCompared(short controlType, short testType);", "@Override\n public abstract boolean isAssignableBy(ResolvedType other);", "public boolean areSameType(Type typeone, Type typetwo){\n if(areBinaryAlias(typeone,typetwo)) return true;\n else if (typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel;\n Type typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer)) return false;\n else return true;\n }\n /* areComparable takes care of the basic types except boolean*/\n else if(areComparable(typeone,typetwo)) return true;\n else if (typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n /* compare every field in the two structs */\n \n /* if slices, compare their underlying types */\n else if (typeone instanceof SliceType && typetwo instanceof SliceType){\n Type typel,typer;\n SliceType lefta = (SliceType) typeone;\n SliceType righta = (SliceType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(areSameType(typel,typer)) return true;\n else return false;\n }\n /* function return type might be null */\n else if (typeone==null && typetwo==null) {\n return true;\n }\n /* otherwise, return false */\n else {\n return false;\n }\n }", "public interface Comparable {\n\n\n boolean better(Comparable other);\n}", "private boolean less(Comparable a, Comparable b) {\n return a.compareTo(b) < 0;\n }", "boolean canEqual(Object obj);", "public boolean typeConformsTo(PBmmSchema schema, String type1, String type2) {\n List<String> typeList1, typeList2;\n typeList1 = BmmDefinitions.typeNameAsFlatList(type1);\n typeList2 = BmmDefinitions.typeNameAsFlatList(type2);\n int index = 0;\n\n while (index < typeList1.size() && index < typeList2.size() &&\n schema.hasClassOrPrimitiveDefinition(typeList1.get(index)) &&\n schema.hasClassOrPrimitiveDefinition(typeList2.get(index))) {\n String typePart1 = typeList1.get(index);\n String typePart2 = typeList2.get(index);\n if (!(type1.equalsIgnoreCase(typePart2) || isAncestor(schema, typePart1, typePart2))) {\n return false;\n }\n index++;\n\n }\n return true;\n }", "public boolean isAssignable(Class<?> type);", "public boolean assignableTo(Type other) throws LookupException;", "public static boolean compatibleClasses (Class<?>[] lhs, Class<?>[] rhs)\n {\n if (lhs.length != rhs.length) {\n return false;\n }\n \n for (int i = 0; i < lhs.length; ++i) {\n if (rhs[i] == null || rhs[i].equals(Void.TYPE)) {\n if (lhs[i].isPrimitive()) {\n return false;\n } else {\n continue;\n }\n }\n \n if (!lhs[i].isAssignableFrom(rhs[i])) {\n Class<?> lhsPrimEquiv = primitiveEquivalentOf(lhs[i]);\n Class<?> rhsPrimEquiv = primitiveEquivalentOf(rhs[i]);\n if (!primitiveIsAssignableFrom(lhsPrimEquiv, rhsPrimEquiv)) {\n return false;\n }\n }\n }\n \n return true;\n }", "protected static boolean less(Comparable a, Comparable b) {\n\t\treturn a.compareTo(b) < 0;\r\n\t}", "public static Object gt(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) > 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) > 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in gt\");\n\t}", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "public static Object le(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) <= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) <= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in le\");\n\t}", "public static boolean typesAreEquivalent(int sourceType, int destType) {\n boolean result = false;\n if (sourceType == destType) {\n result = true;\n }\n if (sourceType == Types.DECIMAL && destType == Types.NUMERIC) {\n result = true;\n }\n if (sourceType == Types.NUMERIC && destType == Types.DECIMAL) {\n result = true;\n }\n if (sourceType == Types.BOOLEAN && destType == Types.BIT) {\n result = true;\n }\n if (sourceType == Types.BIT && destType == Types.BOOLEAN) {\n result = true;\n }\n return result;\n }", "public static boolean isDatatypeCompatibleWithDatatype(Datatype datatype1, Datatype datatype2){\n\t\tboolean[][] compatibilityMatrix = new boolean[][]{\r\n\t\t\t{true, true, false, false, false, false, false},\r\n\t\t\t{true, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, false, false, true, false, false, false},\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true }\r\n\t\t};\r\n\t\treturn compatibilityMatrix[datatype1.ordinal()][datatype2.ordinal()];\r\n\t}", "int compare(T o1, T o2);", "public boolean equal_types( TypeInterface t ) {\n\t\tif( t instanceof TyArray ) {\r\n\t\t TyArray ta = (TyArray) t ;\r\n\t\t return ta.elementCount == elementCount\r\n\t\t && getElementType().equal_types( ta.getElementType() ) ; }\r\n\t\telse return false ; }", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "public static boolean subtypeOf(Node a, Node b) {\n\t\tif ((a instanceof BoolType) && (b instanceof IntType)) return true;\n\t\telse if ((a instanceof IntType) && (b instanceof IntType)) return true;\n\t\telse if ((a instanceof VoidType) && (b instanceof VoidType)) return true;\n\t\telse if ((a instanceof BoolType) && (b instanceof BoolType)) return true;\n\t\telse if ((a instanceof NullType) && (b instanceof ClassType)) return true;\n\t\telse if ((a instanceof ClassType) && (b instanceof ClassType)) {\n\t\t\tSet<String> SuperA = ((ClassType) a).getSuperList(true);\n\t\t\tSet<String> SuperB = ((ClassType) b).getSuperList(true);\n\t\t\tSet<String> intersection = new HashSet<>(SuperA);\n\t\t\tintersection.retainAll(SuperB);\n\t\t\tif (!intersection.isEmpty()) return true;\n\t\t}\n\t\treturn false;\n\t}", "public interface Comparable {\r\n\t/**\r\n\t * Compare this object with rhs.\r\n\t * \r\n\t * @param rhs\r\n\t * the second Comparable.\r\n\t * @return 0 if two objects are equal; less than zero if this object is\r\n\t * smaller; greater than zero if this object is larger.\r\n\t */\r\n\tint compareTo(Comparable rhs);\r\n}", "boolean test() {\n int comp = this._col1.value().compareTo(this._col2.value());\n if (comp < 0 && (this.compRep & LT) != 0\n || comp > 0 && (this.compRep & GT) != 0\n || comp == 0 && (this.compRep & EQ) != 0) {\n return true;\n }\n return false;\n }", "public boolean isBetter(T t1, T t2);", "@Test\n public void testCompareToLess() {\n assertTrue(o1.compareTo(o_test) < 0);\n }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "public static boolean compareObject(Object o1, Object o2)\n {\n if (o1 instanceof List<?> && o2 instanceof List<?>)\n {\n List l1 = (List<Object>) o1;\n List l2 = (List<Object>) o2;\n if(l1.size() != l2.size()) return false;\n return compareList(l1,l2);\n }\n else return EqualsBuilder.reflectionEquals(o1,o2);\n\n }", "@Override\n @ZenCodeType.Method\n @ZenCodeType.Operator(ZenCodeType.OperatorType.COMPARE)\n default int compareTo(@NotNull IData other) {\n \n return notSupportedOperator(OperatorType.COMPARE);\n }", "public static boolean preEq(Object a, Object b) {\n\t\treturn a != null && b != null && a.getClass().equals(b.getClass());\n\t}", "public static boolean IsA(VariableType type1, VariableType type2, SymbolTable symbolTable) {\n\t\t// TODO Auto-generated method stub\n\t\tif(type1.type==FourType.Boolean || type1.type==FourType.Integer || type1.type==FourType.IntegerArray)\n\t\t\treturn type1.type==type2.type;\n\t\tif(type1.type==FourType.Object)\n\t\t{\n\t\t\tif(type2.type!=FourType.Object)\n\t\t\t\treturn false;\n\t\t\tif(type1.name==type2.name)\n\t\t\t\treturn true;\n\t\t\tClassItem classItem=symbolTable.SearchClass(type1.name);\n\t\t\tif(classItem==null)\n\t\t\t\treturn false;\n\t\t\treturn IsA(new VariableType(FourType.Object,classItem.parentName),type2,symbolTable);\n\t\t}\n\t\treturn false;\n\t}", "@Test\r\n public void testReflexiveForEqual() throws Exception {\n\r\n EmployeeImpl emp1 = new EmployeeImpl(\"7993389\", \"[email protected]\");\r\n EmployeeImpl emp2 = new EmployeeImpl(\"7993389\", \"[email protected]\");\r\n\r\n Assert.assertTrue(\"Comparable implementation is incorrect\", emp1.compareTo(emp2) == 0);\r\n Assert.assertTrue(\"Comparable implementation is incorrect\", emp1.compareTo(emp2) == emp2.compareTo(emp1));\r\n }", "@Override\n public int compare( PlanNode o1,\n PlanNode o2 ) {\n if (o1.getType() == type) {\n if (o2.getType() == type) {\n return comparator.compare(o1, o2);\n }\n return -1;\n }\n return o2.getType() == type ? 1 : 0;\n }", "public static boolean areSame(AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return t1.toString().equals(t2.toString());\n }", "int compareTo(Object o);", "public static int compare(Object o1, Object o2) {\n\n byte dt1 = findType(o1);\n byte dt2 = findType(o2);\n return compare(o1, o2, dt1, dt2);\n }", "int compareTo(Object obj);", "public boolean compTwo(int type1, int type2, int no1, int no2) {\n if (type1 != type2) {\r\n return true;\r\n } else if (no1 > no2) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean equals(Object o) { return compareTo(o) == 0; }", "public boolean typeStrictlyConformsTo(PBmmSchema schema, String type1, String type2) {\n return typeSameAs(type1,type2) || typeConformsTo(schema, type1, type2);\n }", "private int handleIncomparablePrimitives(Object x, Object y) {\n int xCost = getPrimitiveValueCost(x);\n int yCost = getPrimitiveValueCost(y);\n int res = Integer.compare(xCost, yCost);\n return ascending ? res : -res;\n }", "public static boolean areSameWithBoxing(Class<?> a, Class<?> b) {\n Optional<PrimitiveBoxed> pmmlPrimitiveBoxed = getKiePMMLPrimitiveBoxed(a);\n return pmmlPrimitiveBoxed.filter(kiePMMLPrimitiveBoxed -> a.equals(b) || kiePMMLPrimitiveBoxed.isSameWithBoxing(b)).isPresent();\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate int compare(AnyType lhs, AnyType rhs) {\n\t\tif (cmp == null)\n\t\t\treturn ((Comparable<? super AnyType>) lhs).compareTo(rhs); // safe to ignore warning\n\t\t// We won't test your code on non-Comparable types if we didn't supply a Comparator\n\n\t\treturn cmp.compare(lhs, rhs);\n\t}", "public boolean equals(Object other) {\n return super.equals(other) &&\n requiredPrimitiveType == ((AtomicSequenceConverter)other).requiredPrimitiveType;\n }", "private static boolean compareHelper(String version, String constraint, int type) {\n // check that a constraint was provided...\n if (constraint == null)\n return true;\n\n // ...and a version too\n // FIXME: this originally returned false, but I think it should\n // return true, since we always match if the contstraint is\n // unbound (null) ... is that right?\n if (version == null)\n return true;\n\n // setup tokenizers\n StringTokenizer vtok = new StringTokenizer(version, \".\");\n StringTokenizer ctok = new StringTokenizer(constraint, \".\");\n\n while (vtok.hasMoreTokens()) {\n // if there's nothing left in the constraint, then this means\n // we didn't match, unless this is the greater-than function\n if (!ctok.hasMoreTokens()) {\n if (type == COMPARE_GREATER)\n return true;\n else\n return false;\n }\n\n // get the next constraint token...\n String c = ctok.nextToken();\n\n // ...and if it's a + then it's done and we match\n if (c.equals(\"+\"))\n return true;\n String v = vtok.nextToken();\n\n // if it's a * then we always match, otherwise...\n if (!c.equals(\"*\")) {\n // if it's a match then we just keep going, otherwise...\n if (!v.equals(c)) {\n // if we're matching on equality, then we failed\n if (type == COMPARE_EQUAL)\n return false;\n\n // convert both tokens to integers...\n int cint = Integer.valueOf(c).intValue();\n int vint = Integer.valueOf(v).intValue();\n\n // ...and do the right kind of comparison\n if (type == COMPARE_LESS)\n return vint <= cint;\n else\n return vint >= cint;\n }\n }\n }\n\n // if we got here, then we've finished the processing the version,\n // so see if there's anything more in the constrant, which would\n // mean we didn't match unless we're doing less-than\n if (ctok.hasMoreTokens()) {\n if (type == COMPARE_LESS)\n return true;\n else\n return false;\n }\n\n // we got through everything, so the constraint is met\n return true;\n }", "public void testAssignableFrom() throws Exception {\n System.out.println(Object.class.isAssignableFrom(String.class));// true\r\n System.out.println(Serializable.class.isAssignableFrom(ArrayList.class));// true\r\n System.out.println(Map.class.isAssignableFrom(Serializable.class));// false\r\n }", "public static Object ge(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) >= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) >= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in ge\");\n\t}", "BooleanExpression lteq(ComparableExpression<? extends T> expr);", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public interface Comparable\n{\n\t/**\n\t * Returns a number representing the ordering relationship that\n\t * the object has with the given object.\n\t * A negative number indicates that the object is \"smaller\" than\n\t * the parameter, a positive number means it is \"larger\" and zero\n\t * indicates that the objects are equal.\n\t */\n\tint compareTo(Object o);\n\n\t/**\n\t * Returns true if this object is equal to the given object.\n\t */\n\tboolean equals(Object o);\n}", "public boolean areOrdered(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\t\t\ttypeone = removeAlias(typeone);\n//\t\t\ttypetwo = removeAlias(typetwo);\n//\t\t}\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n else return false;\n }", "@Test\r\n public void testCompareTo() {\r\n Articulo art = new Articulo();\r\n art.setCantidadVendidos(3);\r\n articuloPrueba.setCantidadVendidos(3);\r\n int expResult = 0;\r\n int result = art.compareTo(articuloPrueba);\r\n assertEquals(expResult, result);\r\n }", "public static int compare(Object input1, Object input2) {\n\t\tif (input1.getClass().equals(Integer.class) && input2.getClass().equals(Integer.class)) {\n\t\t\treturn compareInt((Integer) input1, (Integer) input2);\n\n\t\t\t// if object is string\n\t\t} else if (input1.getClass().equals(String.class) && input2.getClass().equals(String.class)) {\n\t\t\treturn compareString((String) input1, (String) input2);\n\n\t\t\t// if object is date\n\t\t} else if (input1.getClass().equals(Date.class) && input2.getClass().equals(Date.class)) {\n\t\t\treturn compareDate((Date) input1, (Date) input2);\n\n\t\t\t// if object is big decimal\n\t\t} else if (input1.getClass().equals(BigDecimal.class) && input2.getClass().equals(BigDecimal.class)) {\n\t\t\treturn compareBigDecimal((BigDecimal) input1, (BigDecimal) input2);\n\t\t\t\n\t\t} else {\n\t\t\tSystem.err.println(\"no object match\");\n\t\t\treturn 0;\n\t\t}\n\n\t}", "public abstract boolean isAssignable();", "private static boolean isErased(Types types, AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return types.isSameType(\n types.erasure(t1.getUnderlyingType()), t2.getUnderlyingType());\n }", "boolean canMerge(T x);", "int compareTo(Comparable rhs);", "@Test\r\n public void testCompareTo2() {\r\n SimpleDate d1 = new SimpleDate(\"3/1/2013\");\r\n SimpleDate d2 = new SimpleDate(\"8/21/2000\");\r\n assertFalse(d1.compareTo(d2) < 0);\r\n }", "private static boolean lt(Comparable lhs, Comparable rhs) \n {\n return lhs.compareTo(rhs) < 0;\n }", "public abstract boolean isTypeCorrect();", "public abstract void compare();", "static <T> boolean argEquals(T a1,boolean a2, T b1,boolean b2) {\n return\n Null.equals(a1, b1) && //\n a2==b2; //\n }", "int compare(T t1, T t2);", "public boolean typeSameAs(String type1, String type2) {\n return BmmDefinitions.typeNameAsFlatList(type1).toString().equalsIgnoreCase(BmmDefinitions.typeNameAsFlatList(type2).toString());\n }", "private int compare(T a, T b) {\r\n\t\tint r = -1;\r\n\t\tif (a instanceof Comparable) {\r\n\t\t\tr = ((Comparable) a).compareTo(b);\r\n\t\t}\r\n\t\treturn r;\r\n\t}", "public boolean compare(Arbre a){\n\t\tif(symbole == a.symbole){\n\t\t\tBinaire k = (Binaire)a;\n\t\t\treturn gauche.compare(k.gauche) && droit.compare(k.droit);\n\t\t}\n\t\treturn false;\n\t}", "public boolean isSameWithBoxing(Class<?> c) {\n return c.equals(primitive) || c.equals(boxed);\n }", "public boolean compareElements(Object element1, Object element2, AbstractSession session) {\n if (element1.getClass() != element2.getClass()) {\n return false;\n }\n return this.getObjectBuilder(element1, session).compareObjects(element1, element2, session);\n }", "public abstract boolean equals(Object other);", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "private static boolean less(Comparable p, Comparable q) {\n return p.compareTo(q) < 0;\n }", "private static <T> boolean isSorted(Comparable<T>[] a) {\n\t\tfor(int i=1; i<a.length; i++) {\r\n\t\t\tif(less(a[i],a[i-1]))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean compare(Money money){\n\t\tboolean result = this.moneyType.equalsIgnoreCase(money.moneyType);\n\t\tif(result == false)\n\t\t\treturn result;\n\t\tint ret = this.price.compareTo(money.price);\n\t\tif(ret == 0){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "@Override\n\tpublic int compareTo(CompType o) {\n\t\treturn (i<o.i ? -1 : (i == o.i ? 0 : 1));\n\t}", "public boolean isCompatible() {\n if (this == ANY) {\n return true;\n }\n Arch arch = getCurrentArch();\n return this == arch;\n }", "public abstract int compare(final T l1, final T l2);", "public static int compare(Object obj1, Object obj2) throws UnsupportedException{\n\t\tint result = EQUAL;\n\t\tboolean isResultSet = false;\n\t\tif(obj1 == null && obj2!= null){\n\t\t\tif(obj2 instanceof String){\n\t\t\t\tobj1 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = LESS;\n\t\t\t}\n\t\t} else if(obj1!=null && obj2== null){\n\t\t\tif(obj1 instanceof String){\n\t\t\t\tobj2 = EMPTY;\n\t\t\t} else {\n\t\t\t\tisResultSet = true;\n\t\t\t\tresult = GREATER;\n\t\t\t}\n\t\t}\n\t\tif(isResultSet){\n\t\t\treturn result;\n\t\t}\n\t\t\n\t\t//Check that 2 objects are the same class\n\t\tif(obj1.getClass() != obj2.getClass()){\n\t\t\tthrow new ClassCastException(\"Objects to compare are not the same class\");\n\t\t}\n\t\t\n\t\tif(obj1 instanceof String){\n\t\t\tresult = ((String)obj1).compareTo((String)obj2);\n\t\t} else if(obj1 instanceof DateUtil){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else if(obj1 instanceof BigDecimal){\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}else{\n\t\t\tthrow new UnsupportedException(\"Comparison method is not implemeted for this class\" + obj1.getClass().getName());\n\t\t}\n\t\treturn result;\n\t}", "@Override\n @SuppressWarnings(\"unchecked\")\n public Boolean apply(final T value)\n {\n final R left = evaluateChild(0, value);\n final R right = evaluateChild(1, value);\n\n if (right instanceof EmptySetExpression)\n {\n return Boolean.FALSE;\n }\n\n if (!_typeValidator.test(left) || !_typeValidator.test(right))\n {\n throw QueryEvaluationException.of(\n Errors.COMPARISON.INAPPLICABLE,\n StringUtils.getClassName(left),\n StringUtils.getClassName(right)\n );\n }\n\n if (left instanceof Number && right instanceof Number)\n {\n return new BigDecimal(left.toString()).compareTo(new BigDecimal(right.toString())) >= 0;\n }\n\n if (DateTimeConverter.isDateTime(left) || DateTimeConverter.isDateTime(right))\n {\n return DateTimeConverter.toInstantMapper().apply(left).compareTo(DateTimeConverter.toInstantMapper().apply(right)) >= 0;\n }\n\n if (left instanceof Comparable && right instanceof Comparable)\n {\n final Comparable<R> leftComparable = (Comparable<R>) left;\n return leftComparable.compareTo(right) >= 0;\n }\n\n throw QueryParsingException.of(Errors.COMPARISON.INAPPLICABLE, StringUtils.getClassName(left), StringUtils.getClassName(right));\n }", "boolean replacementfor(Type o);", "@Test\n public void testCompareTo() {\n System.out.println(\"compareTo\");\n Conductor o = null;\n Conductor instance = null;\n int expResult = 0;\n int result = instance.compareTo(o);\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public boolean is( Type type ) {\n return this.type == type;\n }", "protected abstract int doCompare(Object o1, Object o2);", "@Test\n public void equalsWithDifferentTypes() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"keyName\");\n AttributeKey<Date> key2 = new AttributeKey<Date>(Date.class, \"keyName\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "private boolean comps(int a, int b){\n\t\tthis.comparisons.add(new Integer[]{a, b});\n\t\treturn true;\n\t}", "final public boolean equals (Object other)\n {\n\treturn compareTo (other) == 0;\n }", "private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValues(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the images.\n comparison = compareImages(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the children.\n return compareChildren(node1, node2);\n }", "private boolean iflt(PyObject x, PyObject y) {\n \n if (this.compare == null) {\n /* NOTE: we rely on the fact here that the sorting algorithm\n only ever checks whether k<0, i.e., whether x<y. So we\n invoke the rich comparison function with _lt ('<'), and\n return -1 when it returns true and 0 when it returns\n false. */\n return x._lt(y).__nonzero__();\n }\n \n PyObject ret = this.compare.__call__(x, y);\n \n if (ret instanceof PyInteger) {\n int v = ((PyInteger)ret).getValue();\n return v < 0;\n }\n throw Py.TypeError(\"comparision function must return int\");\n }", "public boolean isSubclassOf(ClassReference other) {\n\t\t//TODO: Review this code thoroughly, it hasn't been looked at in a while\n\t\tif (this.equals(other) || this.equals(NULL) || other.equals(NULL)) {\n\t\t\treturn true;\n\t\t}\n\t\tboolean isPrimitive = (primitive != Primitive.REFERENCE && other.primitive != Primitive.REFERENCE);\n\t\tboolean isReference = (primitive == Primitive.REFERENCE && other.primitive == Primitive.REFERENCE);\n\t\tif (isPrimitive && isReference) {\n\t\t\treturn false;\n\t\t} else if (isPrimitive) {\n\t\t\tif (other.primitive == Primitive.INT && INT_TYPES.contains(primitive)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} else if (isReference) {\n\t\t\tQueue<ClassReference> tests = new LinkedList<>();\n\t\t\ttests.add(this);\n\t\t\twhile (!tests.isEmpty()) {\n\t\t\t\tClassReference test = tests.poll();\n\t\t\t\tif (!test.equals(OBJECT)) {\n\t\t\t\t\tJavaClass testClass = ClassStore.findClass(test);\n\t\t\t\t\tif (testClass != null) {\n\t\t\t\t\t\tClassReference superType = testClass.superType;\n\t\t\t\t\t\tif (superType.equals(other)) {\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttests.add(superType);\n\t\t\t\t\t\tfor (ClassReference interfaceType : testClass.interfaces) {\n\t\t\t\t\t\t\tif (interfaceType.equals(other)) {\n\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttests.add(interfaceType);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}" ]
[ "0.79483765", "0.69917625", "0.6731263", "0.6636794", "0.65950185", "0.65766835", "0.64507395", "0.6373992", "0.63520306", "0.6349435", "0.63450783", "0.63400376", "0.62203187", "0.6185249", "0.61627275", "0.613902", "0.60480624", "0.6012301", "0.59678227", "0.59653807", "0.5938344", "0.587174", "0.587145", "0.5866598", "0.5834657", "0.5829954", "0.5789971", "0.5783224", "0.57808095", "0.5774189", "0.57593554", "0.57531154", "0.5709309", "0.5708487", "0.57053155", "0.5696729", "0.5688751", "0.5662447", "0.5649469", "0.56471217", "0.5638434", "0.56382835", "0.5635186", "0.56282973", "0.5617232", "0.56171113", "0.56074", "0.5606679", "0.56064326", "0.56058997", "0.5591956", "0.559118", "0.55871445", "0.5586671", "0.55790645", "0.55595016", "0.55525565", "0.55488837", "0.5548543", "0.5539393", "0.55385", "0.55335665", "0.55309516", "0.55286705", "0.5527229", "0.5504946", "0.54980445", "0.5479654", "0.5474298", "0.5465975", "0.5461139", "0.5455799", "0.54554754", "0.5422152", "0.542007", "0.5415887", "0.54025203", "0.5391299", "0.5384388", "0.5380251", "0.5369735", "0.53601843", "0.5349385", "0.5346959", "0.53452563", "0.5344863", "0.5339251", "0.5337898", "0.5333945", "0.5325576", "0.5321996", "0.5320064", "0.53198355", "0.53194267", "0.53143656", "0.5312863", "0.53075314", "0.5301982", "0.5297344", "0.5296944" ]
0.7645306
1
/ returns true if two types are ordered, false otherise
public boolean areOrdered(Type typeone, Type typetwo){ /* if they are both the same alias type, get the underlying type */ if(areBinaryAlias(typeone,typetwo)){ typeone = removeAlias(typeone); typetwo = removeAlias(typetwo); }//if exactly one is an alias, get it's underlying type // else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) // || !(typeone instanceof AliasType) && typetwo instanceof AliasType ) { // typeone = removeAlias(typeone); // typetwo = removeAlias(typetwo); // } if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isOrdered();", "boolean isOrdered();", "boolean isIsOrdered();", "boolean isOrderable();", "protected boolean isOrdered(Class type) {\n return List.class.isAssignableFrom(type)\n || \"java.util.LinkedHashSet\".equals(type.getName());\n }", "@objid (\"fcf73d01-d406-41e9-9490-067237966153\")\n boolean isIsOrdered();", "boolean isOrderCertain();", "boolean areSorted();", "public boolean areComparable(Type typeone, Type typetwo){\n /* first check the basic types */\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n /* structs are comparable if they correspond to the same type declaration and the fields are comparable */\n\n else if(typeone instanceof StructType && typetwo instanceof StructType){\n \n String name1 = ((StructType)typeone).getStructName();\n String name2 = ((StructType)typetwo).getStructName();\n if (name1==name2 || (name1.equals(name2) && name1.equals(\"\"))) {\n StructType lefts = (StructType) typeone;\n StructType rights = (StructType) typetwo;\n List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields();\n List<Map.Entry<List<String>,Type>> rightlist = rights.getFields();\n if (leftlist.size()!=rightlist.size()) {\n return false;\n }\n for(int i=0; i<leftlist.size(); i++){\n Type typel = leftlist.get(i).getValue();\n Type typer = rightlist.get(i).getValue();\n if(!areComparable(typel,typer)) {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n /* finally, if they are arrays, check that the underlying type is comparable */\n else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel,typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false;\n else return true;\n }\n else if (typeone instanceof AliasType && typetwo instanceof AliasType) {\n AliasType left = (AliasType) typeone;\n AliasType right = (AliasType) typetwo;\n if (left.getAliasName()==right.getAliasName()) {\n return true;\n }\n else {\n return false;\n }\n\n }\n else return false;\n }", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "boolean isComparable();", "boolean isSortResult();", "public boolean inOrder(Data other){\n\t\treturn data.compareTo(other.getData()) <= 0; \n\t}", "public boolean compTwo(int type1, int type2, int no1, int no2) {\n if (type1 != type2) {\r\n return true;\r\n } else if (no1 > no2) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean isOrdered() {\n return mOrdered;\n }", "public Boolean order(LA param1, LA param2) {\n return param1.equals(this.meet(param1, param2));\n }", "public boolean hasORDERTYPE() {\n return fieldSetFlags()[0];\n }", "boolean hasOrderByDataItem();", "public boolean isSorted(){\n\tfor (int i = 0; i < (_size - 2); i++){\n\t if (_data[i].compareTo(_data[i + 1]) > 0){\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }", "public boolean cmp_new(Type other){\n if (this.dimension < other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "public boolean getAlwaysOrdered();", "boolean isSetUnordered();", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "boolean hasOrderSize();", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "boolean compare(Object targetOne, Object targetTwo);", "@Override\n public boolean equals(Object other) {\n return this == other || (other instanceof TdOrder && hashCode() == other.hashCode());\n }", "boolean getUnordered();", "boolean canBeCompared(short controlType, short testType);", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "boolean isAscending();", "boolean isOrderedOn(ColumnReference[] crs, boolean permuteOrdering, Vector fbtVector)\n\t{\n\t\t/* RESOLVE - DistinctNodes are ordered on their RCLs.\n\t\t * Walk RCL to see if cr is 1st non-constant column in the\n\t\t * ordered result.\n\t\t */\n\t\treturn false;\n\t}", "static public boolean orderedsetEquals(List source, List arg) {\n\t\tif ( source.size() != arg.size() ) {\n\t\t\treturn false;\n\t\t}\n\t\tIterator it1 = source.iterator();\n\t\tIterator it2 = arg.iterator();\n\t\twhile ( it1.hasNext() ) {\n\t\t\tObject elem1 = it1.next();\n\t\t\tObject elem2 = it2.next();\n\t\t\tif ( elem1 instanceof Integer ) {\n\t\t\t\tif ( ((Integer)elem1).intValue() != ((Integer)elem2).intValue() ) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ( elem1 instanceof Float ) {\n\t\t\t\t\tif ( ((Float)elem1).floatValue() != ((Float)elem2).floatValue() ) {\n\t\t\t\t\t\treturn false;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif ( elem1 instanceof Boolean ) {\n\t\t\t\t\t\tif ( ((Boolean)elem1).booleanValue() != ((Boolean)elem2).booleanValue() ) {\n\t\t\t\t\t\t\treturn false;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif ( !elem1.equals(elem2) ) {\n\t\t\t\t\t\t\treturn false;\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\treturn true;\n\t}", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "@Override\n public boolean isCallbackOrderingPrereq(OFType type, String name) {\n return false;\n }", "boolean ordered() {\n\t\treturn (this.left == null || (this.value > this.left.max().value && this.left.ordered()))\n\t\t\t\t&& (this.right == null || (this.value < this.right.min().value && this.right.ordered()));\n\t}", "private static boolean isErased(Types types, AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return types.isSameType(\n types.erasure(t1.getUnderlyingType()), t2.getUnderlyingType());\n }", "private static <T extends Comparable <? super T>> boolean isSorted (List <T> list){\r\n\t\tT prev = list.get(0); // 1\r\n\t\tfor (T item : list){ //n\r\n\t\t\tif (item.compareTo(prev) < 0) return false;\r\n\t\t\tprev = item;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private static <T> boolean isSorted(Comparable<T>[] a) {\n\t\tfor(int i=1; i<a.length; i++) {\r\n\t\t\tif(less(a[i],a[i-1]))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\treturn false;\n\t}", "boolean isSortAscending();", "public boolean typeConformsTo(PBmmSchema schema, String type1, String type2) {\n List<String> typeList1, typeList2;\n typeList1 = BmmDefinitions.typeNameAsFlatList(type1);\n typeList2 = BmmDefinitions.typeNameAsFlatList(type2);\n int index = 0;\n\n while (index < typeList1.size() && index < typeList2.size() &&\n schema.hasClassOrPrimitiveDefinition(typeList1.get(index)) &&\n schema.hasClassOrPrimitiveDefinition(typeList2.get(index))) {\n String typePart1 = typeList1.get(index);\n String typePart2 = typeList2.get(index);\n if (!(type1.equalsIgnoreCase(typePart2) || isAncestor(schema, typePart1, typePart2))) {\n return false;\n }\n index++;\n\n }\n return true;\n }", "public boolean compareElements(Object element1, Object element2, AbstractSession session) {\n if (element1.getClass() != element2.getClass()) {\n return false;\n }\n return this.getObjectBuilder(element1, session).compareObjects(element1, element2, session);\n }", "@Override\n public int compare( PlanNode o1,\n PlanNode o2 ) {\n if (o1.getType() == type) {\n if (o2.getType() == type) {\n return comparator.compare(o1, o2);\n }\n return -1;\n }\n return o2.getType() == type ? 1 : 0;\n }", "boolean isZOrderable();", "private boolean match(Type t, Type original) {\n\t\t\t\treturn original.getSort() == Type.METHOD && original.getSort() == t.getSort();\n\t\t\t}", "private boolean relationshipDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getRelationshipDefs(), typesDef.getRelationshipDefs());\n }", "private static boolean compareList(List<Object> l1, List<Object> l2)\n {\n int count=0;\n for (Object o : l1)\n {\n Object temp = o;\n for (Object otemp : l2)\n {\n if (EqualsBuilder.reflectionEquals(temp, otemp))\n {\n count++;\n }\n }\n\n }\n\n if(count == l1.size()) return true;\n return false;\n\n }", "private boolean areCorrectlyOrdered( int i0, int i1 )\n {\n int n = commonLength( i0, i1 );\n \tif( text[i0+n] == STOP ){\n \t // The sortest string is first, this is as it should be.\n \t return true;\n \t}\n \tif( text[i1+n] == STOP ){\n \t // The sortest string is last, this is not good.\n \t return false;\n \t}\n \treturn (text[i0+n]<text[i1+n]);\n }", "@Override\n\t\tpublic boolean isCallbackOrderingPrereq(OFType type, String name) {\n\t\t\treturn false;\n\t\t}", "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/* */ }", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean areSameType(Type typeone, Type typetwo){\n if(areBinaryAlias(typeone,typetwo)) return true;\n else if (typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel;\n Type typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer)) return false;\n else return true;\n }\n /* areComparable takes care of the basic types except boolean*/\n else if(areComparable(typeone,typetwo)) return true;\n else if (typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n /* compare every field in the two structs */\n \n /* if slices, compare their underlying types */\n else if (typeone instanceof SliceType && typetwo instanceof SliceType){\n Type typel,typer;\n SliceType lefta = (SliceType) typeone;\n SliceType righta = (SliceType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(areSameType(typel,typer)) return true;\n else return false;\n }\n /* function return type might be null */\n else if (typeone==null && typetwo==null) {\n return true;\n }\n /* otherwise, return false */\n else {\n return false;\n }\n }", "@Override\r\n\tprotected boolean prerequisites() {\n\t\treturn _player1.getClient().getPlayer().getWrappedObject().getPosition()\r\n\t\t\t\t.equals(_player2.getClient().getPlayer().getWrappedObject().getPosition());\r\n\t}", "public boolean compareType(Node n1, Node n2)\n {\n boolean compare= false;\n if (n1 instanceof Ipv4 && n2 instanceof Ipv4)\n {\n if (((Ipv4) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv4 && n2 instanceof Ipv6)\n {\n if (((Ipv4) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv4)\n {\n if (((Ipv6) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv6)\n {\n if (((Ipv6) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n return compare;\n }", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "boolean hasMoveSortNo();", "boolean hasSortNo();", "public static boolean IsA(VariableType type1, VariableType type2, SymbolTable symbolTable) {\n\t\t// TODO Auto-generated method stub\n\t\tif(type1.type==FourType.Boolean || type1.type==FourType.Integer || type1.type==FourType.IntegerArray)\n\t\t\treturn type1.type==type2.type;\n\t\tif(type1.type==FourType.Object)\n\t\t{\n\t\t\tif(type2.type!=FourType.Object)\n\t\t\t\treturn false;\n\t\t\tif(type1.name==type2.name)\n\t\t\t\treturn true;\n\t\t\tClassItem classItem=symbolTable.SearchClass(type1.name);\n\t\t\tif(classItem==null)\n\t\t\t\treturn false;\n\t\t\treturn IsA(new VariableType(FourType.Object,classItem.parentName),type2,symbolTable);\n\t\t}\n\t\treturn false;\n\t}", "boolean overlap(AbstractNote other) {\n return this.type == other.type &&\n this.octave == other.octave;\n }", "private boolean matchModes(QName m1, QName m2) {\n/* 133 */ return ((null == m1 && null == m2) || (null != m1 && null != m2 && m1.equals(m2)));\n/* */ }", "boolean hasOrderId();", "boolean hasOrderId();", "public boolean requiresPropertyOrdering()\n/* */ {\n/* 377 */ return false;\n/* */ }", "private static boolean shouldStop(AnnotatedTypeMirror sup, AnnotatedTypeMirror sub) {\n // Check if it's the same type\n // if sup is primitive, but not sub\n if (sup.getKind().isPrimitive() && !sub.getKind().isPrimitive()) {\n /// XXX shouldn't this be \"return false\"?\n return true;\n }\n if (sup.getKind().isPrimitive() && sub.getKind().isPrimitive()) {\n return sup.getKind() == sub.getKind();\n }\n // if both are declared\n if (sup.getKind() == TypeKind.DECLARED && sub.getKind() == TypeKind.DECLARED) {\n AnnotatedDeclaredType supdt = (AnnotatedDeclaredType) sup;\n AnnotatedDeclaredType subdt = (AnnotatedDeclaredType) sub;\n\n // Check if it's the same name\n if (!supdt.getUnderlyingType().asElement().equals(\n subdt.getUnderlyingType().asElement()))\n return false;\n\n return true;\n }\n\n if (sup.getKind() == TypeKind.ARRAY && sub.getKind() == TypeKind.ARRAY) {\n AnnotatedArrayType supat = (AnnotatedArrayType) sup;\n AnnotatedArrayType subat = (AnnotatedArrayType) sub;\n return shouldStop(supat.getComponentType(), subat.getComponentType());\n }\n // horrible horrible hack\n // Types.isSameType() doesn't work for type variables or wildcards\n return sup.getUnderlyingType().toString().equals(sub.getUnderlyingType().toString());\n }", "private boolean entityDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getEntityDefs(), typesDef.getEntityDefs());\n }", "boolean matches(@NotNull List<OrderConstraintsType> orderConstraints);", "private boolean checkIdentity(Order otherOrder) {\n\t\treturn getId() != otherOrder.getId();\n\t}", "@Override\n public boolean isCallbackOrderingPostreq(OFType type, String name) {\n return false;\n }", "@Override\n public boolean isCallbackOrderingPostreq(OFType type, String name) {\n return false;\n }", "public boolean typeSameAs(String type1, String type2) {\n return BmmDefinitions.typeNameAsFlatList(type1).toString().equalsIgnoreCase(BmmDefinitions.typeNameAsFlatList(type2).toString());\n }", "boolean hasIsEquivalent();", "@Override\n\tpublic boolean PlaceOrder(Order order) {\n\t\treturn false;\n\t}", "public boolean compare(Object object) {\n if (object instanceof IBond) {\n Bond bond = (Bond) object;\n for (IAtom atom : atoms) {\n if (!bond.contains(atom)) {\n return false;\n }\n }\n\n // not important ??!!\n //if (order==bond.order)\n // return false;\n\n return true;\n }\n return false;\n }", "public boolean isAmbiguous() {\n return positionMap.size() > 1;\n }", "public boolean orderedEquals( Deck otherDeck ) {\n if (this.cards.length == otherDeck.cards.length) {\n for (int i = 0; i < this.cards.length; i++ ) {\n if (!this.cards[i].equals(otherDeck.cards[i])) {\n return false;\n }\n }\n return true;\n }\n return false;\n }", "public boolean supportsReverseComparison() {\n return true;\n }", "protected boolean isOrdered(PBFTServerMessage m){\n\n long nextPrePrepareSEQ = getStateLog().getNextPrePrepareSEQ();\n\n if(m != null && m.getSequenceNumber() != null){\n\n long seqn = m.getSequenceNumber();\n\n if(m instanceof PBFTPrePrepare){\n return seqn == nextPrePrepareSEQ;\n }\n }\n\n return false;\n\n }", "private static boolean isSorted() {\n for (int i=0; i<stack.size()-1; i++)\n if (stack.get(i)<stack.get(i+1)) return false;\n\n return true;\n }", "@Override\n\tpublic boolean isCallbackOrderingPostreq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPostreq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPostreq(OFType type, String name) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isCallbackOrderingPostreq(OFType type, String name) {\n\t\treturn false;\n\t}", "private static boolean isSorted(Comparable[] a) {\n for (int i = 1; i < a.length; i++)\n if (less(a[i], a[i-1])) return false;\n return true;\n }", "private static boolean checkOrderList() {\n if (size != MainGUI.orderList.size()) {\n size = MainGUI.orderList.size();\n return true;\n }\n\n return false;\n }", "public boolean compareObjects(Object object1, Object object2, AbstractSession session) {\n Object firstCollection = getRealCollectionAttributeValueFromObject(object1, session);\n Object secondCollection = getRealCollectionAttributeValueFromObject(object2, session);\n ContainerPolicy containerPolicy = getContainerPolicy();\n\n if (containerPolicy.sizeFor(firstCollection) != containerPolicy.sizeFor(secondCollection)) {\n return false;\n }\n\n if (containerPolicy.sizeFor(firstCollection) == 0) {\n return true;\n }\n Object iterFirst = containerPolicy.iteratorFor(firstCollection);\n Object iterSecond = containerPolicy.iteratorFor(secondCollection);\n\n //loop through the elements in both collections and compare elements at the\n //same index. This ensures that a change to order registers as a change.\n while (containerPolicy.hasNext(iterFirst)) {\n //fetch the next object from the first iterator.\n Object firstAggregateObject = containerPolicy.next(iterFirst, session);\n Object secondAggregateObject = containerPolicy.next(iterSecond, session);\n\n //fetch the next object from the second iterator.\n //matched object found, break to outer FOR loop\t\t\t\n if (!getReferenceDescriptor().getObjectBuilder().compareObjects(firstAggregateObject, secondAggregateObject, session)) {\n return false;\n }\n }\n return true;\n }", "@Override\n\tpublic boolean isCallbackOrderingPrereq(org.projectfloodlight.openflow.protocol.OFType type, String name) {\n\t\treturn false;\n\t}", "boolean isPermutationSorting(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tchar[] s1Arr = s1.toCharArray();\n\t\tchar[] s2Arr = s2.toCharArray();\n\t\tjava.util.Arrays.sort(s1Arr);\n\t\tjava.util.Arrays.sort(s2Arr);\n\n\t\tString newS1 = new String(s1Arr);\n\t\tString newS2 = new String(s2Arr);\n\t\tif(newS1.equals(newS2)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isFieldTypeComparable(int fiLHSFldType,int fiRHSFldType)\n {\n boolean lboolResult=false;\n if(fiLHSFldType==fiRHSFldType)\n {\n lboolResult=true;\n }\n switch(fiLHSFldType)\n {\n case DataConst.BIT:\n case DataConst.DECIMAL:\n case DataConst.FLOAT:\n case DataConst.NUMERIC:\n case DataConst.REAL:\n case DataConst.BIGINT:\n case DataConst.DOUBLE:\n case DataConst.INTEGER:\n case DataConst.SMALLINT:\n case DataConst.TINYINT:\n {\n if(fiRHSFldType== DataConst.BIT || fiRHSFldType==DataConst.BIGINT ||\n fiRHSFldType== DataConst.DECIMAL || fiRHSFldType==DataConst.DOUBLE ||\n fiRHSFldType== DataConst.FLOAT || fiRHSFldType==DataConst.INTEGER ||\n fiRHSFldType== DataConst.NUMERIC || fiRHSFldType==DataConst.SMALLINT ||\n fiRHSFldType== DataConst.REAL || fiRHSFldType==DataConst.TINYINT )\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.DATE:\n case DataConst.TIMESTAMP:\n {\n if(fiRHSFldType== DataConst.DATE || fiRHSFldType==DataConst.TIMESTAMP)\n {\n lboolResult=true;\n }\n }\n break;\n case DataConst.CHAR:\n case DataConst.VARCHAR:\n case DataConst.LONGVARCHAR:\n {\n if(fiRHSFldType== DataConst.CHAR || fiRHSFldType==DataConst.LONGVARCHAR ||\n fiRHSFldType== DataConst.VARCHAR )\n {\n lboolResult=true;\n }\n }\n break;\n default:\n lboolResult=false;\n }\n return lboolResult;\n }", "public void validateListIsSorted(LinkedList<String> tableData2, String order) {\n\n\t\tLinkedList<String> sortedData = new LinkedList<>(tableData2);\n\t\tLinkedList<String> sortedData1 = new LinkedList<>(tableData2);\n\t\tif (order.equalsIgnoreCase(\"asc\"))\n\t\t{\n\t\t\tCollections.sort(sortedData);\n\t\t\tlogger.info(\"List data in ascending order :- \"+sortedData);\n\t\t}\n\t\telse if (order.equalsIgnoreCase(\"desc\")) {\n\t\t\tCollections.sort(sortedData1);\n\t\t\tsortedData.clear();\n\t\t\tfor (int yy = sortedData1.size() - 1; yy >= 0; yy--) {\n\t\t\t\tsortedData.add(sortedData1.get(yy).toString());\n\t\t\t}\n\t\t\tlogger.info(\"List data in descending order :- \"+sortedData);\n\t\t}\n\t\tfor (int i = 0; i < tableData2.size(); i++) {\n\t\t\tVerify.verifyEquals(sortedData.get(i), tableData2.get(i));\n\t\t}\n\n\t}", "public boolean checkDif2Level(GroupSP g1, GroupSP g2) {\n\t\tfor (Node n1 : g1.lstSP) {\n\t\t\tfor (Node n2 : g2.lstSP) {\n\t\t\t\tif (!StringUtil.isNullOrEmpty(n1.productCode) && !StringUtil.isNullOrEmpty(n2.productCode) && n1.productCode.equals(n2.productCode)) {\n\t\t\t\t\treturn false;\n\t\t\t\t} else if (StringUtil.isNullOrEmpty(n1.productCode) && StringUtil.isNullOrEmpty(n2.productCode)) {//type\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }", "public boolean Compare(int num1 , int num2){\n\tboolean ntb ;\n\tint nti ;\n\n\tntb = false ;\n\tnti = num2 + 1 ;\n\tif (num1 < num2) ntb = false ;\n\telse if (!(num1 < nti)) ntb = false ;\n\telse ntb = true ;\n\treturn ntb ;\n }" ]
[ "0.7498105", "0.7498105", "0.7322665", "0.71453923", "0.7106108", "0.7007547", "0.6805451", "0.64931566", "0.6450074", "0.64094734", "0.63165945", "0.6207528", "0.61136705", "0.6062747", "0.6060735", "0.60593915", "0.6004733", "0.59187037", "0.5887292", "0.58745116", "0.5858807", "0.5857506", "0.58069015", "0.5790385", "0.57783514", "0.5772522", "0.5772071", "0.5761959", "0.57577574", "0.5755194", "0.5748261", "0.57137287", "0.5660144", "0.564749", "0.56260306", "0.56260306", "0.5619817", "0.5607282", "0.56060284", "0.559839", "0.5590148", "0.5590148", "0.5590148", "0.5590148", "0.55888677", "0.5577983", "0.5570727", "0.5567444", "0.55434376", "0.55341023", "0.5533257", "0.55261827", "0.5509172", "0.5506179", "0.5482801", "0.5464263", "0.5460792", "0.54543644", "0.54373723", "0.54312634", "0.54251075", "0.54220927", "0.54210925", "0.54082066", "0.5389048", "0.5384491", "0.5384491", "0.53831637", "0.5371092", "0.5369262", "0.53623325", "0.5356432", "0.5354658", "0.5354658", "0.5354121", "0.5339109", "0.5325856", "0.53107", "0.5310283", "0.53100884", "0.53058636", "0.53054154", "0.5305404", "0.53033406", "0.53033406", "0.53033406", "0.53033406", "0.530125", "0.52978104", "0.52968603", "0.5296616", "0.5274268", "0.5265399", "0.52593714", "0.5252038", "0.5251266", "0.5251266", "0.5251266", "0.5251266", "0.5251266" ]
0.7529769
0
/ returns true if two types are numeric, false otherwise
public boolean areNumeric(Type typeone, Type typetwo){ /* if they are both the same alias type, get the underlying type */ if(areBinaryAlias(typeone,typetwo)){ typeone = removeAlias(typeone); typetwo = removeAlias(typetwo); }//if exactly one is an alias, get it's underlying type // else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) // || !(typeone instanceof AliasType) && typetwo instanceof AliasType ) { // typeone = removeAlias(typeone); // typetwo = removeAlias(typetwo); //} if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract boolean isNumeric();", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "public static boolean numeric(Type p) {\n\t\tif (p == Type.Char || p == Type.Int || p == Type.Float) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}", "private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}", "public boolean isNumeric() {\n\t\tif (this instanceof Integer) {\n\t\t\treturn true;\n\t\t} else if (this instanceof Array) {\n\t\t\treturn ((Array) this).getElementType().isNumeric();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}", "public static boolean checkIfNumeric(Object toBeChecked)\r\n\t{\r\n\t\ttry {\r\n\t\t\tDouble.parseDouble((String) toBeChecked);\r\n\t\t\treturn true;\r\n\t\t} catch (ClassCastException e) {\r\n\t\t\treturn true;\r\n\t\t} catch (NumberFormatException e) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean isNumeric(String str)\n\t{\n\t\ttry\n\t\t{\n\t\t\tdouble d = Double.parseDouble(str);\n\t\t}\n\t\tcatch (NumberFormatException nfe)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isNumeric(String str) {\n try {\n Double.parseDouble(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public boolean isNumeric() {\n\t\treturn numeric;\n\t}", "public boolean isDouble();", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "public static boolean isNumeric(Object number) {\n\t\treturn isNumericClass(number.getClass());\n\t}", "public boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "@Test\n public void isNumericNegetive() {\n Boolean bool = Utils.isNumeric(\"123a\");\n Assert.assertEquals(false, bool);\n }", "boolean isNumeric() {\r\n\t\treturn isNumeric;\r\n\t}", "private boolean isNumber(String s) {\n\t\ttry {\n\t\t\tDouble.parseDouble(s);\n\t\t} catch (NumberFormatException nfe) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private static boolean checkIfIsDouble(String num) {\n try {\n Double.parseDouble(num);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "public static boolean isNumber(String text) {\n try {\n Double.parseDouble(text);\n return true;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "boolean hasDouble();", "protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }", "public static boolean isNumeric(String num) {\n\t\ttry {\n\t\t\tdouble d = Double.parseDouble(num);\n\t\t} catch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "@Test\n public void isNumeric() {\n Boolean bool = Utils.isNumeric(\"123\");\n Assert.assertEquals(true, bool);\n }", "public static boolean isNumericClass(Class numberClass) {\n\t\tboolean isNumericClass = false;\n\t\tif (ArrayUtils.contains(numericTypes, numberClass)\n\t\t\t\t|| ArrayUtils.contains(numericClasses, numberClass)) {\n\t\t\tisNumericClass = true;\n\t\t}\n\t\treturn isNumericClass;\n\t}", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }", "public static boolean isNumeric(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "private static boolean isNumeric(String str) {\n // The regular expression can match all numbers, including negative numbers\n Pattern pattern = Pattern.compile(\"-?[0-9]+(\\\\.[0-9]+)?\");\n String bigStr;\n try {\n bigStr = new BigDecimal(str).toString();\n } catch (Exception e) {\n return false;\n }\n // matcher是全匹配\n Matcher isNum = pattern.matcher(bigStr);\n return isNum.matches();\n }", "public static boolean isNumber(String token) {\n boolean toret = true;\n\n try {\n Double.parseDouble(token);\n }\n catch(Exception e)\n {\n toret = false;\n }\n\n return toret;\n }", "public boolean isNumber(String key)\n {\n return getDouble(key, Double.MAX_VALUE) != Double.MAX_VALUE;\n }", "boolean hasNumber();", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public boolean isColumnNumeric(int position) {\n\n if (columns[position] instanceof NumericColumn) {\n return true;\n }\n\n Column col = columns[position];\n int numRows = col.getNumRows();\n\n for (int row = 0; row < numRows; row++) {\n\n try {\n Double.valueOf(col.getString(row));\n } catch (Exception e) {\n return false;\n }\n }\n\n return true;\n }", "public static boolean ComprobarNumero(String str) {\n try {\n double d = Double.parseDouble(str);\n return true;\n } catch (NumberFormatException nfe) {\n \treturn false;\n }\n }", "private boolean checkIfObjectIsDecimal(Object[] values)\n\t{\n\t\tfor (Object o : values)\n\t\t{\n\t\t\tif (o != null)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tDouble.parseDouble(o.toString());\n\t\t\t\t//\treturn true;\n\t\t\t\t}\n\t\t\t\tcatch (NumberFormatException e)\n\t\t\t\t{\n\t\t\t\t\t// it's text :)\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static boolean existsExplicitNumericConversion(final TypeSpec from,\n final TypeSpec to, final Value fromValue) {\n if (from.isANum() && !existsImplicitNumericConversion(from, to)) {\n return true;\n }\n\n if (from.isANum() && (to.isANum() || (to.isAny()))) {\n return true;\n }\n\n if ((from.isVector() || from.isMatrix() || from.isList() || from\n .isString()) && to.isANum()) {\n return true;\n }\n\n return false;\n }", "public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "public boolean isNumberValue()\n {\n return getFieldType().equalsIgnoreCase(TYPE_NUMBER);\n }", "public boolean isNumber(String str) {\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n\t}", "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "public static boolean isNumericInternational(String str)\n {\n try\n {\n double d = Double.parseDouble(str);\n }\n catch(NumberFormatException nfe)\n {\n return false;\n }\n return true;\n }", "public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }", "public static boolean isNumeric(String str) {\n try {\n Integer d = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "Boolean isNumeric(PrintWriter out, String strNum);", "public static boolean isNumeric(String strNum) {\n if (strNum == null) {\n return false;\n }\n try {\n Integer d = Integer.parseInt(strNum);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "public static boolean isNumericString(String value) {\n\t try {\n\t\t if (Double.parseDouble(value) > 0) {\n\t\t return true;\n\t\t }\n\t } catch (NumberFormatException nfe) {\n\t return false;\n\t }\n\t return false;\n\t}", "private boolean isDouble(String str)\r\n {\r\n try\r\n {\r\n double i = Double.parseDouble(str);\r\n } catch (NumberFormatException nfe)\r\n {\r\n MyLogger.log(Level.INFO, LOG_CLASS_NAME + \"Non numeric value. Value was: {0}\", str);\r\n return false;\r\n }\r\n return true;\r\n }", "public void testGetNumericValue2() {\n ValueString vs = new ValueString(\"2.8\");\n\n assertEquals(\"2.8\", vs.getString());\n assertEquals(2.8D, vs.getNumber(), 0.0D);\n assertNull(vs.getDate()); // will fail parsing\n assertEquals(false, vs.getBoolean());\n assertEquals(0, vs.getInteger());\n assertEquals(2.8D, vs.getBigNumber().doubleValue(), 0.1D);\n }", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "boolean isNumber(Formula pTt);", "private boolean handleTernaryNumeric(ExprTernary node, Type ifTrue,\n\t\tType ifFalse) {\n\t\tif (ifTrue.anyOf(Base.CHAR, Base.INT, Base.DOUBLE, Base.UNKNOWN)\n\t\t\t&& ifFalse.anyOf(Base.CHAR, Base.INT, Base.DOUBLE, Base.UNKNOWN)) {\n\t\t\t// go with the broadest type\n\t\t\tif (ifTrue.anyOf(Base.DOUBLE)) {\n\t\t\t\tnode.setType(ifTrue);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (ifFalse.anyOf(Base.DOUBLE)) {\n\t\t\t\tnode.setType(ifFalse);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (ifTrue.anyOf(Base.INT)) {\n\t\t\t\tnode.setType(ifTrue);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (ifFalse.anyOf(Base.INT)) {\n\t\t\t\tnode.setType(ifFalse);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (ifTrue.anyOf(Base.CHAR)) {\n\t\t\t\tnode.setType(ifTrue);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tif (ifFalse.anyOf(Base.CHAR)) {\n\t\t\t\tnode.setType(ifFalse);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public boolean areIntegral(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }", "private boolean stringIsNumeric(String str) {\n\t\tfor(char c : str.toCharArray()) {\n\t\t\tif(!Character.isDigit(c)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "boolean hasNumb();", "static boolean isDouble(String str) {\n\t\n\t\ttry {\n\t\t\tDouble.parseDouble(str);\n\t\t} \n\t\tcatch (NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public static boolean isNumberRatio(Object val) throws BaseException\n {\n \tif(val instanceof Number && (NumberUtil.toDouble(val) >= 0 && NumberUtil.toDouble(val) <= 100))\n \t{\n \t return true;\n \t}\n \treturn false;\n }", "public boolean isDouble() {\n return this.data instanceof Double;\n }", "public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}", "public static boolean isNumericRegex(String str)\n {\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public static boolean isNumeric(String strNum) {\r\n if (strNum == null) {\r\n return true;\r\n }\r\n try {\r\n Integer.parseInt(strNum);\r\n } catch (NumberFormatException nfe) {\r\n return true;\r\n }\r\n return false;\r\n }", "boolean hasNum2();", "public static boolean IsNumber(double par_Number) {\n return true;\n }", "private void validate(Adouble val) {\r\n Assertions.assertEquals(val.aonType(), Atype.DOUBLE);\r\n Assertions.assertEquals(val, val);\r\n Assertions.assertEquals(val, Adouble.valueOf(val.toDouble()));\r\n Assertions.assertEquals(val.hashCode(), Adouble.valueOf(val.toDouble()).hashCode());\r\n Assertions.assertTrue(val.isNumber());\r\n }", "public static boolean isNumeric(String string) { \r\n\t\ttry { \r\n\t\t\tint testNumber = Integer.parseInt(string); \r\n\t\t} catch(NumberFormatException e) { \r\n\t\t\treturn false; \r\n\t\t} \r\n\t\t\r\n\t\treturn true; \r\n\t}", "private boolean isFieldNumeric( String fsComponent, String fsField )\n {\n try\n {\n VSMetaQuery loVsmq =\n AMSDataObject.constructMetaQueryFromMetaInfoTable( fsComponent, getSession() ) ;\n\n VSMetaColumn loColumn = loVsmq.getMetaColumn( fsField ) ;\n\n /*\n * Versata returns true if the data type is Yes/No\n * In that case we return false\n */\n if ( loColumn.getColumnType() == DataConst.BIT )\n {\n return false ;\n } /* end if ( loColumn.getColumnType() == DataConst.BIT ) */\n else\n {\n return loColumn.isNumberType() ;\n } /* end else */\n } /* end try */\n catch ( Exception loEx )\n {\n return false ;\n } /* end catch */\n }", "private boolean isNumeric(String s)\n {\n for (int i = 0; i < s.length(); ++i)\n {\n if (!Character.isDigit(s.charAt(i)))\n {\n return false;\n }\n }\n return true;\n }", "public static Boolean isNumeric(String text)\n {\n //This checks for negative numbers...\n if (text.startsWith(\"-\"))\n {\n text = text.substring(1, text.length());\n }\n\n for (char c : text.toCharArray())\n {\n if (!Character.isDigit(c))\n {\n return false;\n }\n }\n return true;\n }", "public static boolean isDouble(String strNum) {\n try {\n double d = Double.parseDouble(strNum);\n } catch (NumberFormatException | NullPointerException nfe) {\n System.out.println(\"Invalid data format\");\n log.error(nfe);\n return false;\n }\n return true;\n }", "public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }", "public static boolean isNumeric(char num) {\n\t\treturn isNumeric(String.valueOf(num));\n\t}", "private boolean isNumber(String number){\n\t\ttry{\r\n\t\t\tFloat.parseFloat(number);\r\n\t\t}catch(Exception e){\r\n\t\t\treturn false;// if the user input is not number it throws flase\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static Object isNaN(Context cx, Scriptable thisObj,\n Object[] args, Function funObj)\n {\n if (args.length < 1)\n return Boolean.TRUE;\n double d = ScriptRuntime.toNumber(args[0]);\n return (d != d) ? Boolean.TRUE : Boolean.FALSE;\n }", "private boolean isValidDouble(String text) {\r\n \ttry {\r\n \t\tDouble value = Double.valueOf(text);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "public boolean compareAverages(Average<? extends Number> other){\n\t\tif(this.computeAverage().compareTo(other.computeAverage()) == 0){ //Double.compareTo() returns 0 if two Doubles have the same v\n\t\t\treturn true;\n\t\t}\n\t\telse\n\t\t\treturn false;\n\t}", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean hasFloat();", "public static boolean isNumberPositive(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) > 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}", "private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static Object ge(Object val1, Object val2) {\n\t\tif (isFloat(val1) && isFloat(val2)) {\n\t\t\treturn ((BigDecimal) val1).compareTo((BigDecimal) val2) >= 0;\n\t\t} else if (isInt(val1) && isInt(val2)) {\n\t\t\treturn ((BigInteger) val1).compareTo((BigInteger) val2) >= 0;\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in ge\");\n\t}", "protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}", "public static boolean isNumberNegative(Object val) throws BaseException\n{\n\tif(val instanceof Number && NumberUtil.toDouble(val) < 0 )\n\t{\n\t return true;\n\t}\n\treturn false;\n}", "public static boolean compareNumerics(Parser parser, ResultValue resOp1, ResultValue resOp2, String operator)\r\n {\r\n \tdouble val1 = Numeric.getDoubleValue(resOp1.value);\r\n \tdouble val2 = Numeric.getDoubleValue(resOp2.value);\r\n \t\r\n \t\r\n \t\r\n \tswitch(operator)\r\n \t{\r\n \t\tcase \">=\" :\r\n \t\t\tif(val1 >= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse \r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \">\" :\r\n \t\t\tif(val1 > val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<=\" :\r\n \t\t\tif(val1 <= val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"<\" :\r\n \t\t\tif(val1 < val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"!=\" :\r\n \t\t\tif(val1 != val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tcase \"==\" :\r\n \t\t\tif(val1 == val2)\r\n \t\t\t\treturn true;\r\n \t\t\telse\r\n \t\t\t\treturn false;\r\n \t\t\r\n \t\tdefault :\r\n \t\t\tSystem.out.println(\"Error in compare Numerics, \" + operator + \" is not valid\");\r\n \t\t\treturn false;\r\n \t\t\r\n \t\t\t\r\n \t\t\r\n \t}\r\n }", "public static boolean isDoubleValid (String str) {\r\n try {Double.parseDouble(str);} catch (NumberFormatException e) {return false;}\r\n return true;\r\n }", "public boolean isInteger();" ]
[ "0.7807263", "0.7497534", "0.7133108", "0.69479674", "0.69386786", "0.69364303", "0.69131327", "0.6845127", "0.67326725", "0.6684591", "0.6678283", "0.6600142", "0.6595435", "0.65432054", "0.6541718", "0.6538465", "0.65196514", "0.65174747", "0.65143543", "0.6487125", "0.6469481", "0.6423592", "0.64148843", "0.6379935", "0.63731086", "0.637135", "0.6368782", "0.6347192", "0.6339581", "0.6311404", "0.6298004", "0.62814546", "0.6267664", "0.6247267", "0.6242607", "0.62349135", "0.62044346", "0.6195475", "0.61857414", "0.617759", "0.6167914", "0.616519", "0.61517304", "0.61270255", "0.61098486", "0.60907924", "0.60886693", "0.6080701", "0.6043047", "0.60406154", "0.6035748", "0.60267645", "0.59950024", "0.5992575", "0.59888136", "0.5985658", "0.59819716", "0.5976609", "0.59706384", "0.59682643", "0.5953642", "0.59480137", "0.5921071", "0.5920503", "0.5920503", "0.5920503", "0.5919929", "0.591912", "0.5907961", "0.58959705", "0.5895921", "0.5895854", "0.5892544", "0.58714783", "0.5868171", "0.58660334", "0.5859117", "0.585117", "0.5839861", "0.5835645", "0.5834", "0.5820594", "0.57927865", "0.5791155", "0.57682586", "0.5761607", "0.57587713", "0.5754995", "0.57414174", "0.5731449", "0.57184666", "0.5717013", "0.5714099", "0.5705964", "0.56854963", "0.5677025", "0.56683636", "0.5658486", "0.5654785", "0.56511396" ]
0.7502118
1
/ returns true if two types are integral, false otherwise
public boolean areIntegral(Type typeone, Type typetwo){ /* if they are both the same alias type, get the underlying type */ if(areBinaryAlias(typeone,typetwo)){ typeone = removeAlias(typeone); typetwo = removeAlias(typetwo); } if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true; else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final boolean isIntegral() {\n return this.equals(BYTE)\n || this.equals(CODE)\n || this.equals(SHORT)\n || this.equals(INT)\n || this.equals(LONG)\n || this.equals(UBYTE)\n || this.equals(UINT)\n || this.equals(ULONG)\n || this.equals(USHORT);\n }", "public boolean isInteger();", "public static boolean isIntegral(Object number) {\n\t\treturn isIntegralClass(number.getClass());\n\t}", "public boolean areNumeric(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\ttypeone = removeAlias(typeone);\n//\ttypetwo = removeAlias(typetwo);\n//}\n \t\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "public boolean isInt() {\n return this.data instanceof Integer;\n }", "boolean hasIntValue();", "boolean hasInt();", "boolean hasPrimitive();", "public abstract boolean isNumeric();", "boolean hasIntSize();", "public boolean isInteger() {\n return false;\n }", "public static boolean isInt(Object value) {\n\t\treturn value instanceof BigInteger;\n\t}", "public static boolean isIntegralClass(Class nClazz) {\n\t\tif (!isNumericClass(nClazz))\n\t\t\tthrow new IllegalArgumentException(\"NaN Class: \" + nClazz);\n\t\tif (nClazz.isPrimitive())\n\t\t\tnClazz = ClassUtils.primitiveToWrapper(nClazz);\n\t\treturn ArrayUtils.contains(integralClasses, nClazz);\n\t}", "private static boolean isPrimitiveType(DetailAST ast) {\n boolean result = false;\n final DetailAST parameterType = ast.findFirstToken(TokenTypes.TYPE);\n final DetailAST identToken = parameterType.getFirstChild();\n\n if (identToken != null) {\n switch (identToken.getType()) {\n case TokenTypes.LITERAL_BOOLEAN:\n case TokenTypes.LITERAL_INT:\n case TokenTypes.LITERAL_LONG:\n case TokenTypes.LITERAL_SHORT:\n case TokenTypes.LITERAL_BYTE:\n case TokenTypes.LITERAL_CHAR:\n case TokenTypes.LITERAL_VOID:\n case TokenTypes.LITERAL_DOUBLE:\n case TokenTypes.LITERAL_FLOAT:\n result = !isArrayOrElipsis(parameterType);\n break;\n default:\n }\n }\n return result;\n }", "boolean isInt(TextField input);", "boolean hasNumber();", "boolean hasNum();", "boolean hasNum();", "boolean hasNum();", "public static boolean isIntEquivalent( double value ){\n return Math.floor( value ) == value;\n }", "boolean hasNum2();", "public boolean isIntType(Class<?> type) {\n\t\tif (this.isSimpleField(type)) {\n\t\t\tString typename = type.getName().toLowerCase();\n\t\t\tif (typename.startsWith(\"java.lang\")) {\n\t\t\t\ttypename = typename.substring(10);\n\t\t\t}\n\t\t\treturn (INT_FIELDS.indexOf(typename) >= 0);\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isNumeric() {\n return this.isInteger() || this.isDecimal() || this.isDouble();\n }", "boolean hasNumb();", "public boolean isNumeric() {\n\t\tif (this instanceof Integer) {\n\t\t\treturn true;\n\t\t} else if (this instanceof Array) {\n\t\t\treturn ((Array) this).getElementType().isNumeric();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static boolean integerType(FileInputStream f){\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", true);\n }\n CToken t = new CToken();\n\n t = getUsePeek(f);\n \n String[] types = {\"char\",\"short\",\"int\",\"long\"};\n \n //unsigned (optional)\n if(t.token.equals(\"unsigned\")){\n CScanner.needToUsePeekedToken = false; //consumed token\n t = CScanner.getNextToken(f); //get and check next token\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n if(!Arrays.asList(types).contains(t.token)){\n System.err.format(\"Syntax Error: In rule IntegerType unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n }\n else if(!Arrays.asList(types).contains(t.token)){\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", false);\n }\n return false;\n } // char | short | int | long\n \n CScanner.needToUsePeekedToken = false;\n if(observer != null){\n observer.parser.setCurrentRule(\"integerType\", false);\n }\n return true;\n }", "public boolean hasInteger32() {\n return result.hasInteger32();\n }", "static boolean isInteger(char c) {\n\t\t\tswitch (c) {\n\t\t\t\tcase DECIMAL_INTEGER:\n\t\t\t\tcase OCTAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER:\n\t\t\t\tcase HEXADECIMAL_INTEGER_UPPER:\n\t\t\t\t\treturn true;\n\t\t\t\tdefault:\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}", "public static boolean numeric(Type p) {\n\t\tif (p == Type.Char || p == Type.Int || p == Type.Float) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean ll_isPrimitiveType(int typeCode) {\n return !ll_isRefType(typeCode);\n }", "public static boolean IS_INTEGER(String t) {\n\n return (t.equals(Feature.INTEGER));\n }", "boolean hasI10();", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "public static boolean isNumberType(byte t) {\n switch (t) {\n case INTEGER: return true ;\n case LONG: return true ;\n case FLOAT: return true ;\n case DOUBLE: return true ;\n case BIGINTEGER: return true ;\n case BIGDECIMAL: return true ;\n default: return false ;\n }\n }", "private boolean check_int_only(Question q)\n\t{\n\t\tNode val = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='num_value_int_only']/value\");\n\t\treturn val.getText().equals(\"1\") ? true : false;\n\t}", "private boolean isInt(String num) {\n boolean isInt;\n try {\n Integer.parseInt(num);\n isInt = true;\n } catch (Exception e) {\n isInt = false;\n }\n return isInt;\n }", "public void testInferNumber1a() throws Exception {\n assertType(\"10 \", 0, 2, \"java.lang.Integer\");\n }", "@Test\n public void testIsValidInteger() {\n System.out.println(\"isValidInteger\");\n String integer = \"6.8\";\n boolean expResult = false;\n boolean result = ValidVariables.isValidInteger(integer);\n assertEquals(expResult, result);\n }", "public static boolean isInteger(Symbol symbol) {\n return (symbol != null && isInteger(symbol.getTypeSpecifiers()));\n }", "boolean hasSurrogateType();", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "@Override\n public boolean isPrimitive() {\n return true;\n }", "@Test\n public void integral_isCorrect() {\n }", "public static boolean typesAreEquivalent(int sourceType, int destType) {\n boolean result = false;\n if (sourceType == destType) {\n result = true;\n }\n if (sourceType == Types.DECIMAL && destType == Types.NUMERIC) {\n result = true;\n }\n if (sourceType == Types.NUMERIC && destType == Types.DECIMAL) {\n result = true;\n }\n if (sourceType == Types.BOOLEAN && destType == Types.BIT) {\n result = true;\n }\n if (sourceType == Types.BIT && destType == Types.BOOLEAN) {\n result = true;\n }\n return result;\n }", "private static void assertEqualsExactType(int a, int b) {\n Assert.assertEquals(a, b);\n }", "private static void assertEqualsExactType(int a, int b) {\n Assert.assertEquals(a, b);\n }", "public static boolean existsExplicitNumericConversion(final TypeSpec from,\n final TypeSpec to, final Value fromValue) {\n if (from.isANum() && !existsImplicitNumericConversion(from, to)) {\n return true;\n }\n\n if (from.isANum() && (to.isANum() || (to.isAny()))) {\n return true;\n }\n\n if ((from.isVector() || from.isMatrix() || from.isList() || from\n .isString()) && to.isANum()) {\n return true;\n }\n\n return false;\n }", "public boolean isAnInt(String str) {\r\n \ttry {\r\n \t\tInteger.parseInt(str);\r\n \t} catch (NumberFormatException e) {\r\n \t\treturn false;\r\n \t}\r\n \treturn true;\r\n }", "boolean hasNum1();", "@Override\n public boolean isMaybeAnyNum() {\n checkNotPolymorphicOrUnknown();\n return (flags & NUM) == NUM;\n }", "public boolean isPrimitive(Class paramClass) {\n/* 113 */ if (paramClass == null) {\n/* 114 */ throw new IllegalArgumentException();\n/* */ }\n/* */ \n/* 117 */ return paramClass.isPrimitive();\n/* */ }", "boolean hasI16();", "private boolean isNumber(Object o) {\n\t\tif(o instanceof String) return isNumber((String) o);\n\t\telse if(o instanceof Double) return true;\n\t\telse return false;\n\t}", "default boolean isPrimitive() {\n return false;\n }", "public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}", "@Test\n\tpublic void testPropertyIntegralType() {\n\t\tfinal Base base = context.mock(Base.class);\n\t\tcontext.checking(new PropertyEnabledExpectations() {\n\t\t\t{\n\t\t\t\tallowingProperty(base).isValid();\n\t\t\t\twill(returnValue(true));\n\t\t\t}\n\t\t});\n\n\t\tassertTrue(\"Initial value was not set\", base.isValid());\n\t\tbase.setValid(false);\n\t\tassertFalse(\"Value didn't change\", base.isValid());\n\t}", "public boolean isAnInt(char charac) {\r\n \treturn isAnInt(Character.toString(charac));\r\n }", "private boolean isInteger(String element) {\r\n try {\r\n Integer.valueOf(element);\r\n } catch (NumberFormatException e) {\r\n return false;\r\n }\r\n return true;\r\n }", "public static boolean same_int(int a, int b){\n if(a == b) {\n return true;\n } else {\n return false;\n }\n }", "private boolean isInt(String str) { \n\t try { \n\t int d = Integer.parseInt(str); \n\t } catch(NumberFormatException nfe) { \n\t return false; \n\t } \n\t return true; \n\t}", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "protected <T> boolean isPrimitiveOrWrapper(Class<T> entity) {\n\t\tboolean b = ClassUtils.isPrimitiveOrWrapper(entity);\n\t\tif (b)\n\t\t\treturn true;\n\t\tClass<?> tempClass = ClassUtils.resolvePrimitiveClassName(entity.getName());\n\t\tif (tempClass != null)\n\t\t\treturn true;\n\t\tif (entity == String.class)\n\t\t\treturn true;\n\t\treturn false;\n\t}", "private boolean isInteger(String a) {\n try \n {\n Integer.parseInt(a);\n return true;\n }\n catch(Exception e) {\n return false;\n }\n }", "public boolean hasInteger64() {\n return result.hasInteger64();\n }", "public boolean hasInteger16() {\n return result.hasInteger16();\n }", "@Test\n public void testTypeOf() throws ValueDoesNotMatchTypeException {\n TestEvaluationContext context = new TestEvaluationContext();\n DecisionVariableDeclaration decl = new DecisionVariableDeclaration(\"x\", IntegerType.TYPE, null);\n ConstantValue c0 = new ConstantValue(ValueFactory.createValue(IntegerType.TYPE, 0));\n ConstraintSyntaxTree cst = new OCLFeatureCall(\n new Variable(decl), IntegerType.LESS_EQUALS_INTEGER_INTEGER.getName(), c0);\n EvaluationAccessor cValue = Utils.createValue(ConstraintType.TYPE, context, cst);\n Utils.testTypeOf(context, ConstraintType.TYPE_OF, cValue);\n cValue.release();\n }", "boolean hasShort();", "@Test\n public void isNumeric() {\n Boolean bool = Utils.isNumeric(\"123\");\n Assert.assertEquals(true, bool);\n }", "public static boolean isValid(String args[]){\n \n if(args.length < 2){\n System.out.println(\"Not enough arguments detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n \n Scanner scanin = new Scanner(args[0]);\n Scanner scanin2 = new Scanner(args[1]);\n\t \n if(!scanin.hasNextInt() || !scanin2.hasNextInt()){\n System.out.println(\"Invalid argument type detected. Please enter two\"\n + \" integer arguments.\");\n return false;\n }\n\t else\n return true;\n }", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "public boolean isInteger(String x){\n try{\n Integer.parseInt(x);\n \n }\n catch(NumberFormatException e){\n return false;\n }\n return true;\n }", "public static boolean primitiveIsAssignableFrom (Class<?> lhs, Class<?> rhs)\n {\n if (lhs == null || rhs == null) {\n return false;\n }\n if (!(lhs.isPrimitive() && rhs.isPrimitive())) {\n return false;\n }\n if (lhs.equals(rhs)) {\n return true;\n }\n Set<Class<?>> wideningSet = _primitiveWideningsMap.get(rhs);\n if (wideningSet == null) {\n return false;\n }\n return wideningSet.contains(lhs);\n }", "private static int numCompare(Number value1, Number value2) {\n\t\tif (value1 instanceof Double || value2 instanceof Double) {\n\t\t\treturn Double.compare(\n\t\t\t\t\t(value1).doubleValue(),\n\t\t\t\t\t(value2).doubleValue()\n\t\t\t);\n\t\t}\n\t\treturn Integer.compare(\n\t\t\t\t(Integer)value1,\n\t\t\t\t(Integer)value2\n\t\t);\n\t}", "@Test\n void shouldReturnPrimitiveTypeOnly() {\n assertThat(TypeVisitor.gatherAllTypes(int.class), contains(int.class));\n assertThat(TypeVisitor.gatherAllTypes(double.class), contains(double.class));\n assertThat(TypeVisitor.gatherAllTypes(char.class), contains(char.class));\n }", "public static synchronized boolean isPrimitive(Class<?> key){\n\t\treturn ClassRegistry.primitives.containsKey(key);\n\t}", "public boolean isInt(String value) {\n try {\n Integer.parseInt(value);\n return true;\n } catch (Exception e) {\n return false;\n }\n }", "static boolean bigint_eq(bigint a, bigint b)\n {\n if (a.bigint_sign != b.bigint_sign)\n return false;\n else if (a.bigint_len != b.bigint_len)\n return false;\n else\n {\n for (int i = 0; i < a.bigint_len; i++)\n if (a.bigint_chiffres[i] != b.bigint_chiffres[i])\n return false;\n return true;\n }\n }", "public boolean isInt(String text)\r\n {\r\n try\r\n {\r\n int ans = Integer.parseInt(text);\r\n return true;\r\n }\r\n catch(NumberFormatException e)\r\n {\r\n return false;\r\n }\r\n }", "private boolean checkInteger(byte buffer[], int sindex, int findex)\n {\n \t\t// 첫 글자를 체크한다. (+, -가 올수 있다.)\n \t\tbyte b = buffer[sindex];\n \t\tif ((b < 48) || (b > 57)) {\n \t\t\tif (b != 45)\n \t\t\t\tif (b != 43) return false;\n \t\t}\n \t\tfor (int i=sindex+1; i<findex; i++) {\n \tif ((buffer[i] < 48) || (buffer[i] > 57)) return false;\n \t\t}// end of for\n \t\treturn true;\n \t}", "boolean equals( BigInt number );", "public boolean isInteger(String input){\r\n try{\r\n Integer.parseInt(input);\r\n } catch (NumberFormatException e){\r\n return false;\r\n } catch (NullPointerException e){\r\n return false;\r\n }\r\n return true;\r\n }", "public static boolean areSameWithBoxing(Class<?> a, Class<?> b) {\n Optional<PrimitiveBoxed> pmmlPrimitiveBoxed = getKiePMMLPrimitiveBoxed(a);\n return pmmlPrimitiveBoxed.filter(kiePMMLPrimitiveBoxed -> a.equals(b) || kiePMMLPrimitiveBoxed.isSameWithBoxing(b)).isPresent();\n }", "public boolean makes10(int a, int b) {\n return (a == 10 || b == 10 || a + b == 10);\n}", "public boolean isPrimitive() {\n return false;\n }", "public boolean isKnownPrimitive() {\r\n return id > 0 && type != null;\r\n }", "public boolean isMaybePrimitive() {\n checkNotPolymorphicOrUnknown();\n return (flags & PRIMITIVE) != 0 || num != null || str != null;\n }", "public abstract boolean isTypeCorrect();", "public static boolean esNumerico (int tipoSQL) {\n\t \n\t switch (tipoSQL) {\n\t \tcase Types.BIGINT :\n\t \tcase Types.DECIMAL :\n\t \tcase Types.DOUBLE :\n\t \tcase Types.FLOAT :\n\t \tcase Types.INTEGER :\n\t \tcase Types.NUMERIC :\n\t \tcase Types.REAL :\n\t \tcase Types.SMALLINT :\n\t \tcase Types.TINYINT :\n\t \t return true;\n\t }\n\t return false;\n\t}", "public static boolean isASN1_Integer(Object supposedInteger) {\n\t\t//null is no Integer\n\t\tif(supposedInteger == null) {\n\t\t\treturn false;\n\t\t}\n\t\t//Integer, Long, and BigInteger are considered Integers\n\t\tif(supposedInteger instanceof Integer) {\n\t\t\treturn true;\n\t\t}\n\t\telse if(supposedInteger instanceof Long) {\n\t\t\treturn true;\n\t\t}\n\t\telse if(supposedInteger instanceof BigInteger) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void isNumericNegetive() {\n Boolean bool = Utils.isNumeric(\"123a\");\n Assert.assertEquals(false, bool);\n }", "public static boolean isINT(final String token) {\n\t\t// Check for empty or 1-size strings.\n\t\tif (token.length() < 2)\n\t\t\treturn false;\n\n\t\t// verify all chars are 0-9.\n\t\tfor (int i = 0; i < token.length(); i++) {\n\t\t\tif (!digits.contains(Character.toString(token.charAt(i)))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\t// Passes all tests!\n\t\treturn true;\n\t}", "@Test\r\n public void testPrimitive()\r\n {\r\n test(int.class);\r\n }", "public static boolean isNumeric(Object number) {\n\t\treturn isNumericClass(number.getClass());\n\t}", "boolean isZero();", "@Override\r\n public boolean equals(Object o) {\r\n if (o instanceof IntToInt) {\r\n return ((IntToInt) o).getA() == getA() && ((IntToInt) o).getB() == getB();\r\n }\r\n return false;\r\n }", "@Override\r\n public boolean checkElements(SequenceConstructionExpression owner) {\r\n SequenceRange self = this.getSelf();\r\n Expression rangeLower = self.getRangeLower();\r\n Expression rangeUpper = self.getRangeUpper();\r\n ElementReference rangeLowerType = rangeLower == null? null: rangeLower.getType();\r\n ElementReference rangeUpperType = rangeUpper == null? null: rangeUpper.getType();\r\n return (rangeLowerType == null || rangeLowerType.getImpl().isInteger()) && \r\n (rangeUpperType == null || rangeUpperType.getImpl().isInteger());\r\n }", "@Override\n\tpublic boolean isPrimitiveTypeExpected() {\n\t\treturn false;\n\t}", "private static boolean isValue(long x) {\n return x >= 0L; // 1\n }", "public static void testOfDoubleNumberIsInteger(){\n\t\tSystem.out.println(\"please enter a double number: \");\n\t\tScanner scann=new Scanner(System.in);\n\t\tdouble x=scann.nextDouble();\n\t\tif(x%1==0)\n\t\t\tSystem.out.println(\"The number you have enterd it's not a double \");\n\t\telse\n\t\t\tSystem.out.println(\"The number you have entered it's double\");\n\t}", "public static boolean isInteger(String s) {\n\t try { \n\t Integer.parseInt(s); \n\t } catch(NumberFormatException e) { \n\t return false; \n\t }\n\t return true;\n\t}" ]
[ "0.74770796", "0.7186571", "0.6540409", "0.64458275", "0.6340505", "0.6339662", "0.63363034", "0.62614226", "0.6125856", "0.6096058", "0.6061567", "0.5957259", "0.59371674", "0.5890819", "0.58877313", "0.5873356", "0.58208865", "0.58208865", "0.58208865", "0.57829136", "0.5766752", "0.57481396", "0.56952393", "0.5664455", "0.56629217", "0.56256497", "0.5599961", "0.55998933", "0.5581613", "0.5579692", "0.5556418", "0.5555814", "0.554565", "0.5534605", "0.54851043", "0.5480876", "0.54720545", "0.5460681", "0.54485416", "0.54462683", "0.54243875", "0.5414155", "0.54134893", "0.54085004", "0.53776497", "0.53776497", "0.536819", "0.5367547", "0.53663576", "0.5356163", "0.5321412", "0.53202885", "0.5308135", "0.5305989", "0.5290833", "0.52762103", "0.52730906", "0.52493185", "0.5243957", "0.52403104", "0.5227895", "0.522218", "0.5209325", "0.5202718", "0.51989686", "0.51968455", "0.5187645", "0.5177088", "0.51728284", "0.5169786", "0.51558274", "0.5155697", "0.5155282", "0.5153955", "0.5148208", "0.5140215", "0.5128561", "0.51250255", "0.51212883", "0.51146495", "0.51131016", "0.51078147", "0.5102008", "0.51016164", "0.51009554", "0.5098853", "0.50928164", "0.50882554", "0.5085158", "0.5083225", "0.5070063", "0.50677764", "0.50572884", "0.50549513", "0.5047132", "0.5045135", "0.5036675", "0.5035007", "0.5024207", "0.50239307" ]
0.74602705
1
/ returns true if the two types are the same, false otherwise
public boolean areSameType(Type typeone, Type typetwo){ if(areBinaryAlias(typeone,typetwo)) return true; else if (typeone instanceof ArrayType && typetwo instanceof ArrayType){ Type typel; Type typer; ArrayType lefta = (ArrayType) typeone; ArrayType righta = (ArrayType) typetwo; typel = lefta.getType(); typer = righta.getType(); if(!areComparable(typel,typer)) return false; else return true; } /* areComparable takes care of the basic types except boolean*/ else if(areComparable(typeone,typetwo)) return true; else if (typeone instanceof BooleanType && typetwo instanceof BooleanType) return true; /* compare every field in the two structs */ /* if slices, compare their underlying types */ else if (typeone instanceof SliceType && typetwo instanceof SliceType){ Type typel,typer; SliceType lefta = (SliceType) typeone; SliceType righta = (SliceType) typetwo; typel = lefta.getType(); typer = righta.getType(); if(areSameType(typel,typer)) return true; else return false; } /* function return type might be null */ else if (typeone==null && typetwo==null) { return true; } /* otherwise, return false */ else { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "public static boolean areSame(AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return t1.toString().equals(t2.toString());\n }", "public boolean typeSameAs(String type1, String type2) {\n return BmmDefinitions.typeNameAsFlatList(type1).toString().equalsIgnoreCase(BmmDefinitions.typeNameAsFlatList(type2).toString());\n }", "public abstract boolean isTypeCorrect();", "public static boolean typesAreEquivalent(int sourceType, int destType) {\n boolean result = false;\n if (sourceType == destType) {\n result = true;\n }\n if (sourceType == Types.DECIMAL && destType == Types.NUMERIC) {\n result = true;\n }\n if (sourceType == Types.NUMERIC && destType == Types.DECIMAL) {\n result = true;\n }\n if (sourceType == Types.BOOLEAN && destType == Types.BIT) {\n result = true;\n }\n if (sourceType == Types.BIT && destType == Types.BOOLEAN) {\n result = true;\n }\n return result;\n }", "private static boolean isErased(Types types, AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return types.isSameType(\n types.erasure(t1.getUnderlyingType()), t2.getUnderlyingType());\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public boolean is( Type type ) {\n return this.type == type;\n }", "public boolean typeStrictlyConformsTo(PBmmSchema schema, String type1, String type2) {\n return typeSameAs(type1,type2) || typeConformsTo(schema, type1, type2);\n }", "@Test\n public void testEquals() {\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n assertEquals(\"Expected bool types are equal\", typeBool, typeBool2);\n assertNotSame(\"Expected bool and boolean are not equal\", typeBool, typeBoolean);\n }", "public boolean equivalent(DataType dataType) {\n return equals(dataType);\n }", "public static boolean IsA(VariableType type1, VariableType type2, SymbolTable symbolTable) {\n\t\t// TODO Auto-generated method stub\n\t\tif(type1.type==FourType.Boolean || type1.type==FourType.Integer || type1.type==FourType.IntegerArray)\n\t\t\treturn type1.type==type2.type;\n\t\tif(type1.type==FourType.Object)\n\t\t{\n\t\t\tif(type2.type!=FourType.Object)\n\t\t\t\treturn false;\n\t\t\tif(type1.name==type2.name)\n\t\t\t\treturn true;\n\t\t\tClassItem classItem=symbolTable.SearchClass(type1.name);\n\t\t\tif(classItem==null)\n\t\t\t\treturn false;\n\t\t\treturn IsA(new VariableType(FourType.Object,classItem.parentName),type2,symbolTable);\n\t\t}\n\t\treturn false;\n\t}", "public boolean areComparable(Type typeone, Type typetwo){\n /* first check the basic types */\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n /* structs are comparable if they correspond to the same type declaration and the fields are comparable */\n\n else if(typeone instanceof StructType && typetwo instanceof StructType){\n \n String name1 = ((StructType)typeone).getStructName();\n String name2 = ((StructType)typetwo).getStructName();\n if (name1==name2 || (name1.equals(name2) && name1.equals(\"\"))) {\n StructType lefts = (StructType) typeone;\n StructType rights = (StructType) typetwo;\n List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields();\n List<Map.Entry<List<String>,Type>> rightlist = rights.getFields();\n if (leftlist.size()!=rightlist.size()) {\n return false;\n }\n for(int i=0; i<leftlist.size(); i++){\n Type typel = leftlist.get(i).getValue();\n Type typer = rightlist.get(i).getValue();\n if(!areComparable(typel,typer)) {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n /* finally, if they are arrays, check that the underlying type is comparable */\n else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel,typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false;\n else return true;\n }\n else if (typeone instanceof AliasType && typetwo instanceof AliasType) {\n AliasType left = (AliasType) typeone;\n AliasType right = (AliasType) typetwo;\n if (left.getAliasName()==right.getAliasName()) {\n return true;\n }\n else {\n return false;\n }\n\n }\n else return false;\n }", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "public static boolean areSameWithBoxing(Class<?> a, Class<?> b) {\n Optional<PrimitiveBoxed> pmmlPrimitiveBoxed = getKiePMMLPrimitiveBoxed(a);\n return pmmlPrimitiveBoxed.filter(kiePMMLPrimitiveBoxed -> a.equals(b) || kiePMMLPrimitiveBoxed.isSameWithBoxing(b)).isPresent();\n }", "public boolean typeConformsTo(PBmmSchema schema, String type1, String type2) {\n List<String> typeList1, typeList2;\n typeList1 = BmmDefinitions.typeNameAsFlatList(type1);\n typeList2 = BmmDefinitions.typeNameAsFlatList(type2);\n int index = 0;\n\n while (index < typeList1.size() && index < typeList2.size() &&\n schema.hasClassOrPrimitiveDefinition(typeList1.get(index)) &&\n schema.hasClassOrPrimitiveDefinition(typeList2.get(index))) {\n String typePart1 = typeList1.get(index);\n String typePart2 = typeList2.get(index);\n if (!(type1.equalsIgnoreCase(typePart2) || isAncestor(schema, typePart1, typePart2))) {\n return false;\n }\n index++;\n\n }\n return true;\n }", "public boolean compareType(Node n1, Node n2)\n {\n boolean compare= false;\n if (n1 instanceof Ipv4 && n2 instanceof Ipv4)\n {\n if (((Ipv4) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv4 && n2 instanceof Ipv6)\n {\n if (((Ipv4) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv4)\n {\n if (((Ipv6) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv6)\n {\n if (((Ipv6) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n return compare;\n }", "@Test\n public void testEquality() {\n Map<ColumnType, ColumnType> typeMap = new HashMap<ColumnType, ColumnType>();\n ColumnType typeBool = new ColumnType(-7, \"bool\");\n ColumnType typeBoolean = new ColumnType(16, \"boolean\");\n ColumnType typeBool2 = new ColumnType(-7, \"bool\");\n typeMap.put(typeBool, typeBool2);\n typeMap.put(typeBoolean, typeBool2);\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBool));\n assertEquals(\"Expected bool types are equal\", typeBool, typeMap.get(typeBoolean));\n }", "public boolean equal_types( TypeInterface t ) {\n\t\tif( t instanceof TyArray ) {\r\n\t\t TyArray ta = (TyArray) t ;\r\n\t\t return ta.elementCount == elementCount\r\n\t\t && getElementType().equal_types( ta.getElementType() ) ; }\r\n\t\telse return false ; }", "boolean hasSameAs();", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "@Test\n public void equalsWithDifferentTypes() throws Exception {\n AttributeKey<Number> key1 = new AttributeKey<Number>(Number.class, \"keyName\");\n AttributeKey<Date> key2 = new AttributeKey<Date>(Date.class, \"keyName\");\n\n assertThat(key1.equals(key2), is(false));\n assertThat(key2.equals(key1), is(false));\n }", "public boolean isIdentical(Remote obj1, Remote obj2)\n {\n\torg.omg.CORBA.Object corbaObj1 = (org.omg.CORBA.Object)obj1;\n\torg.omg.CORBA.Object corbaObj2 = (org.omg.CORBA.Object)obj2;\n\n\treturn corbaObj1._is_equivalent(corbaObj2);\n }", "public boolean areOrdered(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\t\t\ttypeone = removeAlias(typeone);\n//\t\t\ttypetwo = removeAlias(typetwo);\n//\t\t}\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n else return false;\n }", "@Override\n public boolean isSameType(Type t) {\n if (t instanceof FuncType) {\n final FuncType other = (FuncType) t;\n return ret.isSameType(other.ret)\n && Arrays.equals(params, other.params);\n }\n return false;\n }", "public void testType() {\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tInteger).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6))).oclIsTypeOf(tReal).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tPersonFQ).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(\"foo\"))).oclIsTypeOf(tOclString).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(true))).oclIsTypeOf(tBoolean).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tReal).isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(6.0))).oclIsTypeOf(tInteger).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p2))).oclIsTypeOf(tCompany).not().isTrue() );\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(false))).oclIsTypeOf(tAny).not().isTrue() ); //differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0.0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(0))).oclIsTypeOf(tAny).not().isTrue() ); // differs\n assertTrue( ((OclAny)(Ocl.getOclRepresentationFor(p1))).oclIsTypeOf(tObject).not().isTrue() ); // differs\n }", "public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;", "public boolean sameType(FilterCondition fc) {\n return fc.getClass() == getClass();\n }", "public boolean isSameWithBoxing(Class<?> c) {\n return c.equals(primitive) || c.equals(boxed);\n }", "public static boolean isSameObject(Object a, Object b) {\n return Builtins.isSameObject(a, b);\n }", "public abstract boolean isSameType(final Inhabitant inhabitant);", "public static boolean isJDBCTypeEquivalent(int existingType, int jdbcTypeId) {\r\n // Any type matches itself.\r\n if (existingType == jdbcTypeId)\r\n return true;\r\n\r\n // To a numeric type\r\n if (isNumericType(existingType)) {\r\n if (isNumericType(jdbcTypeId))\r\n return true;\r\n\r\n if (isCharacterType(jdbcTypeId))\r\n return true;\r\n\r\n return false;\r\n }\r\n\r\n // To character type.\r\n if (isCharacterType(existingType)) {\r\n\r\n if (isCharacterType(jdbcTypeId))\r\n return true;\r\n\r\n if (isNumericType(jdbcTypeId))\r\n return true;\r\n\r\n\r\n switch (jdbcTypeId) {\r\n case Types.DATE:\r\n case Types.TIME:\r\n case Types.TIMESTAMP:\r\n return true;\r\n default:\r\n break;\r\n }\r\n \r\n return false;\r\n\r\n }\r\n\r\n // To binary type\r\n if (isBinaryType(existingType)) {\r\n\r\n if (isBinaryType(jdbcTypeId))\r\n return true;\r\n\r\n return false;\r\n }\r\n\r\n // To DATE, TIME\r\n if (existingType == Types.DATE || existingType == Types.TIME) {\r\n if (isCharacterType(jdbcTypeId))\r\n return true;\r\n\r\n if (jdbcTypeId == Types.TIMESTAMP)\r\n return true;\r\n\r\n return false;\r\n }\r\n\r\n // To TIMESTAMP\r\n if (existingType == Types.TIMESTAMP) {\r\n if (isCharacterType(jdbcTypeId))\r\n return true;\r\n\r\n if (jdbcTypeId == Types.DATE)\r\n return true;\r\n\r\n return false;\r\n }\r\n\r\n // To CLOB\r\n if (existingType == Types.CLOB && isCharacterType(jdbcTypeId))\r\n return true;\r\n\r\n return false;\r\n }", "boolean canBeCompared(short controlType, short testType);", "public boolean areBoolean(Type typeone, Type typetwo){\n if (areSameType(typeone, typetwo)) {\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if(typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n else return false;\n }", "public boolean cmp(Type other){\n if (this.dimension != other.dimension) return false;\n if (this.type != type.CLASS && this.type.equals(other.type)) return true;\n// System.out.println(\"this: \" + this.type);\n// System.out.println(\"other: \" + other.type);\n if (this.type == type.CLASS && other.type == type.CLASS && this.class_id.equals(other.class_id)) return true;\n return false;\n }", "private boolean equal(Fragment left, Fragment right) {\n return (left != null && right != null && left.getClass().getName().equalsIgnoreCase(right.getClass().getName()));\n }", "private boolean compare(ValueType first, ValueType second) {\r\n // TODO\r\n return false;\r\n }", "public static boolean isDatatypeCompatibleWithDatatype(Datatype datatype1, Datatype datatype2){\n\t\tboolean[][] compatibilityMatrix = new boolean[][]{\r\n\t\t\t{true, true, false, false, false, false, false},\r\n\t\t\t{true, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, false, false, true, false, false, false},\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true }\r\n\t\t};\r\n\t\treturn compatibilityMatrix[datatype1.ordinal()][datatype2.ordinal()];\r\n\t}", "boolean hasSurrogateType();", "private boolean isType(String type, Object value) {\n boolean ret = false;\n String val = String.valueOf(value).toUpperCase();\n if (val.equals(\"NULL\")) {\n ret = true;\n } else if (val.contains(\"BASE64\")) {\n ret = true;\n } else {\n if (type.equals(\"NULL\") && value instanceof JSONObject) ret = true;\n if (type.equals(\"TEXT\") && value instanceof String) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Integer) ret = true;\n if (type.equals(\"INTEGER\") && value instanceof Long) ret = true;\n if (type.equals(\"REAL\") && value instanceof Float) ret = true;\n if (type.equals(\"BLOB\") && value instanceof Blob) ret = true;\n }\n return ret;\n }", "static boolean test(Type t0)\r\n {\r\n String s0 = Types.stringFor(t0);\r\n TypeParser typeParser = TypeParsers.create();\r\n typeParser.addTypeVariableName(\"E\");\r\n Type t1 = null;\r\n try\r\n {\r\n t1 = typeParser.parse(s0);\r\n } \r\n catch (ClassNotFoundException e)\r\n {\r\n fail(e.getMessage());\r\n }\r\n \r\n String message = \"\";\r\n message += \"Input \" + s0 + \"\\n\";\r\n message += \"should be \" + t0 + \"\\n\";\r\n message += \"was parsed to \" + t1 + \"\\n\";\r\n \r\n boolean passed = TypesEquivalent.areEquivalent(t0, t1);\r\n if (!passed || DEBUG)\r\n {\r\n PrintStream ps = System.out;\r\n if (!passed)\r\n {\r\n ps = System.err;\r\n }\r\n String detailedMessage = \"\";\r\n detailedMessage += \"Input \" + s0 + \"\\n\";\r\n detailedMessage += \"should be \" + t0 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t0) + \")\" + \"\\n\";\r\n detailedMessage += \"was parsed to \" + t1 + \" \" \r\n + \"(Detailed: \" + Types.debugStringFor(t1) + \")\" + \"\\n\";\r\n ps.print(detailedMessage);\r\n }\r\n assertTrue(message, passed);\r\n return passed;\r\n }", "@Test\n public void testEqualsReturnsFalseOnWrongArgType() {\n boolean equals = record.equals(\"Not a record\");\n\n assertThat(equals, is(false));\n }", "boolean replacementfor(Type o);", "public final boolean isEqualTo (Type type)\n {\n if (this == type)\n return true;\n\n if (!(type instanceof TypeTerm))\n return false;\n\n TypeTerm typeTerm = (TypeTerm)type;\n \n if (kind() != typeTerm.kind() || name() != typeTerm.name() || arity() != typeTerm.arity())\n return false;\n\n for (int i=arity(); i-->0;)\n if (!argument(i).isEqualTo(typeTerm.argument(i)))\n return false;\n\n return true;\n }", "public static Object equals(Object val1, Object val2) {\n\t\tif (isBool(val1) && isBool(val2) || isFloat(val1) && isFloat(val2)\n\t\t\t\t|| isInt(val1) && isInt(val2) || isString(val1)\n\t\t\t\t&& isString(val2)) {\n\t\t\treturn val1.equals(val2);\n\t\t} else if (isString(val1) && isInt(val2) || isInt(val1)\n\t\t\t\t&& isString(val2)) {\n\t\t\tif (getIntValue(val1) == getIntValue(val2)) {\n\t\t\t\treturn true;\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tthrow new OrccRuntimeException(\"type mismatch in equals\");\n\t}", "public boolean isEqual(FusableBooks record1, FusableBooks record2) {\n\t\treturn sim.calculate(record1.getBookName(), record2.getBookName()) == 1.0;\n\t}", "public boolean areIntegral(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "protected boolean sameActorTypes(FieldActorDescriptor[] xactors)\n {\n // Compare all the other objects in the array to the first argument's\n // class type.\n\n Class type = xactors[0].getClass();\n\n for(int i=1; i<xactors.length; i++)\n {\n if(!type.isInstance(xactors[i]))\n return false;\n }\n\n return true;\n }", "private boolean methodEqueals(Method m1, Method m2) {\n\t\tif (m1.getName() == m2.getName()) {\n\t\t\tif (!m1.getReturnType().equals(m2.getReturnType()))\n\t\t\t\treturn false;\n\t\t\tClass<?>[] params1 = m1.getParameterTypes();\n\t\t\tClass<?>[] params2 = m2.getParameterTypes();\n\t\t\tif (params1.length == params2.length) {\n\t\t\t\tfor (int i = 0; i < params1.length; i++) {\n\t\t\t\t\tif (params1[i] != params2[i])\n\t\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean checkTypes() {\n\t\treturn false;\n\t}", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\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 }", "private static boolean isOriginalTsType(TsType type) {\n if (type instanceof TsType.BasicType) {\n TsType.BasicType basicType = (TsType.BasicType)type;\n return !(basicType.name.equals(\"null\") || basicType.name.equals(\"undefined\"));\n }\n return true;\n }" ]
[ "0.76051337", "0.7388881", "0.7350811", "0.71771157", "0.7070146", "0.6841972", "0.6785268", "0.6756964", "0.66334254", "0.65871966", "0.6585567", "0.65846986", "0.6582939", "0.65164745", "0.65052027", "0.64993423", "0.6490041", "0.64759755", "0.64687294", "0.64520395", "0.64454305", "0.634854", "0.63458073", "0.6342296", "0.6337809", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.631648", "0.6314874", "0.6233915", "0.62267816", "0.6223853", "0.6215988", "0.621193", "0.6199766", "0.61954826", "0.6155076", "0.61483526", "0.6132203", "0.6101188", "0.60943186", "0.60821235", "0.6063779", "0.6054145", "0.60465544", "0.60439885", "0.6035768", "0.6035626", "0.60267925", "0.6018651", "0.6011321", "0.60078573", "0.6003538", "0.5970586", "0.5961472", "0.595874", "0.5939587", "0.5931978", "0.5929487", "0.59212255", "0.5915416" ]
0.7448163
1
/ returns true if the two types are the same alias, false otherwise
public boolean areBinaryAlias(Type tone, Type ttwo){ if(tone instanceof AliasType && ttwo instanceof AliasType){ AliasType aliasone = (AliasType) tone; AliasType aliastwo = (AliasType) ttwo; if (aliasone.getAliasName().equals(aliastwo.getAliasName())) return true; else return false; } else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean type_alias(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"type_alias\")) return false;\n if (!nextTokenIs(b, KEYWORD_TYPE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TYPE_ALIAS, null);\n r = consumeToken(b, KEYWORD_TYPE);\n p = r; // pin = 1\n r = r && report_error_(b, type_name(b, l + 1));\n r = p && report_error_(b, consumeToken(b, EQ)) && r;\n r = p && report_error_(b, model_field_type_and_attrs(b, l + 1)) && r;\n r = p && report_error_(b, type_alias_4(b, l + 1)) && r;\n r = p && consumeToken(b, EOL) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "private boolean areSameType(String s1, String s2) {\n\t\treturn((isMatrix(s1) && isMatrix(s2)) || (isOperator(s1) && isOperator(s2)) || (isNumber(s1) && isNumber(s2)));\n\t}", "private boolean compatibleNodeTypes(AxiomTreeNode t1, AxiomTreeNode t2) {\n if (!t1.getNodeType().equals(t2.getNodeType())) {\n return false;\n }\n \n switch (t1.getNodeType()) {\n case CARD:\n int label1 = (Integer) t1.getLabel();\n int label2 = (Integer) t2.getLabel();\n return (label1 == label2);\n \t\n case OWLOBJECT:\n OWLObject o1 = (OWLObject) t1.getLabel();\n OWLObject o2 = (OWLObject) t2.getLabel();\n //System.out.println(o1.getClass());\n //System.out.println(o2.getClass());\n //Check for datatypes - then check datatype to see match. Else, return true if compatible.\n if(o1.getClass() == o2.getClass())\n {\n \tif(!o1.getDatatypesInSignature().isEmpty())\n \t{\n \t\t//Need to check if built in first. First check is convenience, datatypes should match\n \t\t//If one is built in, so should other. If neither is built in, this is also a viable match\n \t\t//If not equal and at least one is built in, its not a match.\n \t\tOWLDatatype dt1 = (OWLDatatype) o1.getDatatypesInSignature().toArray()[0];\n \t\t\tOWLDatatype dt2 = (OWLDatatype) o2.getDatatypesInSignature().toArray()[0];\n \t\t\t//System.out.println(\"DT1: \" + dt1);\n \t\t\t//System.out.println(\"DT2: \" + dt2);\n \t\tif(dt1.equals(dt2) && dt1.isBuiltIn())\n \t\t{\t\n \t\t\t//System.out.println(\"Standard state\");\n \t\t\t//System.out.println(o1.equals(o2));\n \t\t\treturn o1.equals(o2);\n \t\t}\n \t\telse if(!dt1.isBuiltIn() && !dt2.isBuiltIn())\n \t\t{\n \t\t\t//System.out.println(\"Unique state\");\n \t\t\treturn true;\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//System.out.println(\"Rejection state\");\n \t\t\treturn false;\n \t\t}\n \n \t}\n \telse\n \t{\n \t\treturn true;\n \t}\n }\n else\n {\n \treturn false;\n }\n }\n return false;\n }", "public boolean areOrdered(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\t\t\ttypeone = removeAlias(typeone);\n//\t\t\ttypetwo = removeAlias(typetwo);\n//\t\t}\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n else return false;\n }", "public static boolean areSame(AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return t1.toString().equals(t2.toString());\n }", "public boolean typeSameAs(String type1, String type2) {\n return BmmDefinitions.typeNameAsFlatList(type1).toString().equalsIgnoreCase(BmmDefinitions.typeNameAsFlatList(type2).toString());\n }", "public boolean areSameType(Type typeone, Type typetwo){\n if(areBinaryAlias(typeone,typetwo)) return true;\n else if (typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel;\n Type typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer)) return false;\n else return true;\n }\n /* areComparable takes care of the basic types except boolean*/\n else if(areComparable(typeone,typetwo)) return true;\n else if (typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n /* compare every field in the two structs */\n \n /* if slices, compare their underlying types */\n else if (typeone instanceof SliceType && typetwo instanceof SliceType){\n Type typel,typer;\n SliceType lefta = (SliceType) typeone;\n SliceType righta = (SliceType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(areSameType(typel,typer)) return true;\n else return false;\n }\n /* function return type might be null */\n else if (typeone==null && typetwo==null) {\n return true;\n }\n /* otherwise, return false */\n else {\n return false;\n }\n }", "private static boolean functionTypeAlias_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_1_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && componentName(b, l + 1);\n r = r && functionTypeAlias_1_3(b, l + 1);\n r = r && consumeToken(b, EQ);\n r = r && type(b, l + 1);\n r = r && functionTypeAlias_1_6(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean areIntegral(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "public boolean typeStringsEqual(String uti1, String uti2);", "public boolean hasAlias() {\n return fieldSetFlags()[4];\n }", "public boolean equivalentInteractions(InteractionObject first, InteractionObject second) {\n\t\tboolean result = \n\t\t\tfirst.getType() == second.getType() &&\n\t\t\tfirst.getIndex() == second.getIndex();\n\t\treturn result;\n\t}", "public boolean uniSameAs(Type other, TypeFixer fixer) throws LookupException;", "public static boolean typesAreEquivalent(int sourceType, int destType) {\n boolean result = false;\n if (sourceType == destType) {\n result = true;\n }\n if (sourceType == Types.DECIMAL && destType == Types.NUMERIC) {\n result = true;\n }\n if (sourceType == Types.NUMERIC && destType == Types.DECIMAL) {\n result = true;\n }\n if (sourceType == Types.BOOLEAN && destType == Types.BIT) {\n result = true;\n }\n if (sourceType == Types.BIT && destType == Types.BOOLEAN) {\n result = true;\n }\n return result;\n }", "@Override\n public abstract boolean isAssignableBy(TypeUsage other);", "public static boolean IsA(VariableType type1, VariableType type2, SymbolTable symbolTable) {\n\t\t// TODO Auto-generated method stub\n\t\tif(type1.type==FourType.Boolean || type1.type==FourType.Integer || type1.type==FourType.IntegerArray)\n\t\t\treturn type1.type==type2.type;\n\t\tif(type1.type==FourType.Object)\n\t\t{\n\t\t\tif(type2.type!=FourType.Object)\n\t\t\t\treturn false;\n\t\t\tif(type1.name==type2.name)\n\t\t\t\treturn true;\n\t\t\tClassItem classItem=symbolTable.SearchClass(type1.name);\n\t\t\tif(classItem==null)\n\t\t\t\treturn false;\n\t\t\treturn IsA(new VariableType(FourType.Object,classItem.parentName),type2,symbolTable);\n\t\t}\n\t\treturn false;\n\t}", "public boolean areNumeric(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\ttypeone = removeAlias(typeone);\n//\ttypetwo = removeAlias(typetwo);\n//}\n \t\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "private static boolean isErased(Types types, AnnotatedTypeMirror t1, AnnotatedTypeMirror t2) {\n return types.isSameType(\n types.erasure(t1.getUnderlyingType()), t2.getUnderlyingType());\n }", "public static void mayAlias(Object a, Object b) {\n\t}", "public boolean equivalent(DataType dataType) {\n return equals(dataType);\n }", "private boolean isSameColumnKeyComponent(ByteBuffer[] components1, ByteBuffer[] components2) {\n\t\tfor (int i = columnAliasNames.length - 1; i >= 0; i--) {\n\t\t\tif (!components1[i].equals(components2[i]))\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public abstract boolean isTypeCorrect();", "public static boolean functionTypeAlias(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias\")) return false;\n if (!nextTokenIs(b, \"<function type alias>\", AT, TYPEDEF)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, FUNCTION_TYPE_ALIAS, \"<function type alias>\");\n r = functionTypeAlias_0(b, l + 1);\n if (!r) r = functionTypeAlias_1(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "private boolean samePosition(ITarget t1, ITarget t2) {\n assert t1.getTag() == t2.getTag() : \"Programmer error; tags must match.\";\n switch (t1.getTag()) {\n case JPL_MINOR_BODY:\n case MPC_MINOR_PLANET:\n case NAMED:\n\n // SUPER SUPER SKETCHY\n // The .equals logic in NonSiderealTarget actually does what we want here, at\n // least according to the old implementation here. So we'll leave it for now.\n // This will be easier with the new model.\n return t1.equals(t2);\n\n case SIDEREAL:\n final HmsDegTarget hms1 = (HmsDegTarget) t1;\n final HmsDegTarget hms2 = (HmsDegTarget) t2;\n return hasSameCoordinates(hms1, hms2) &&\n hasSameProperMotion(hms1, hms2) &&\n hasSameTrackingDetails(hms1, hms2);\n\n default:\n throw new Error(\"Unpossible target tag: \" + t1.getTag());\n }\n }", "public boolean areComparable(Type typeone, Type typetwo){\n /* first check the basic types */\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof BooleanType && typetwo instanceof BooleanType) ||(typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n /* structs are comparable if they correspond to the same type declaration and the fields are comparable */\n\n else if(typeone instanceof StructType && typetwo instanceof StructType){\n \n String name1 = ((StructType)typeone).getStructName();\n String name2 = ((StructType)typetwo).getStructName();\n if (name1==name2 || (name1.equals(name2) && name1.equals(\"\"))) {\n StructType lefts = (StructType) typeone;\n StructType rights = (StructType) typetwo;\n List<Map.Entry<List<String>,Type>> leftlist = lefts.getFields();\n List<Map.Entry<List<String>,Type>> rightlist = rights.getFields();\n if (leftlist.size()!=rightlist.size()) {\n return false;\n }\n for(int i=0; i<leftlist.size(); i++){\n Type typel = leftlist.get(i).getValue();\n Type typer = rightlist.get(i).getValue();\n if(!areComparable(typel,typer)) {\n return false;\n }\n }\n return true;\n }\n else {\n return false;\n }\n }\n /* finally, if they are arrays, check that the underlying type is comparable */\n else if(typeone instanceof ArrayType && typetwo instanceof ArrayType){\n Type typel,typer;\n ArrayType lefta = (ArrayType) typeone;\n ArrayType righta = (ArrayType) typetwo;\n typel = lefta.getType();\n typer = righta.getType();\n if(!areComparable(typel,typer) || !(lefta.getSize().equals(righta.getSize()))) return false;\n else return true;\n }\n else if (typeone instanceof AliasType && typetwo instanceof AliasType) {\n AliasType left = (AliasType) typeone;\n AliasType right = (AliasType) typetwo;\n if (left.getAliasName()==right.getAliasName()) {\n return true;\n }\n else {\n return false;\n }\n\n }\n else return false;\n }", "public boolean shortNameEquals(IdentifierResolver ts) {\n\t\treturn shortName.equals(ts.shortName);\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}", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "public boolean isEqual(Object objectname1, Object objectname2, Class<?> voClass) {\n\t\treturn false;\n\t}", "public boolean typeConformsTo(PBmmSchema schema, String type1, String type2) {\n List<String> typeList1, typeList2;\n typeList1 = BmmDefinitions.typeNameAsFlatList(type1);\n typeList2 = BmmDefinitions.typeNameAsFlatList(type2);\n int index = 0;\n\n while (index < typeList1.size() && index < typeList2.size() &&\n schema.hasClassOrPrimitiveDefinition(typeList1.get(index)) &&\n schema.hasClassOrPrimitiveDefinition(typeList2.get(index))) {\n String typePart1 = typeList1.get(index);\n String typePart2 = typeList2.get(index);\n if (!(type1.equalsIgnoreCase(typePart2) || isAncestor(schema, typePart1, typePart2))) {\n return false;\n }\n index++;\n\n }\n return true;\n }", "@Override\n public boolean isStrongFormSynonymous(String link1, String link2){\n if(link1 == null || link2 == null) {\n return false;\n }\n\n Set<String> synonyms1 = new HashSet<>();\n Set<String> synonyms2 = new HashSet<>();\n\n synonyms1.addAll(linker.getUris(link1));\n synonyms2.addAll(linker.getUris(link2));\n\n // remove empty strings to avoid false positives\n synonyms1.remove(\"\");\n synonyms2.remove(\"\");\n\n for(String s : linker.getUris(link2)){\n if(synonyms1.contains(s)) return true;\n }\n for(String s : linker.getUris(link1)){\n if(synonyms2.contains(s)) return true;\n }\n\n return false;\n }", "public boolean isSame(Schema other) {\n if (this.varNameToExpressionMap.size() != other.varNameToExpressionMap.size()) {\n return false;\n }\n if (!this.varNameToExpressionMap.keySet().equals(other.varNameToExpressionMap.keySet())) {\n return false;\n }\n for (var key : varNameToExpressionMap.keySet()) {\n if (varNameToExpressionMap.get(key).getDataType() !=\n other.varNameToExpressionMap.get(key).getDataType()) {\n return false;\n }\n }\n return true;\n }", "boolean hasSameAs();", "public boolean match(MindObject other){\n return other.isSubtypeOf(this) || isSubtypeOf(other);\n }", "boolean canBeCompared(short controlType, short testType);", "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 boolean isEquivalentForVariableAndArrayDeclaration(Type t) {\n if (t.isPointer()) {\n return getPointedType().isEquivalentForVariableAndArrayDeclaration(t.getPointedType());\n } \n else {\n // Qualified or other type\n return false;\n }\n }", "public boolean isAliasSeries() {\n if (this.getExpression() != null) {\n if (this.getExpression().isSourceForAliasSeries()) {\n return true;\n }\n }\n return false;\n }", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "boolean hasType();", "public static boolean isDatatypeCompatibleWithDatatype(Datatype datatype1, Datatype datatype2){\n\t\tboolean[][] compatibilityMatrix = new boolean[][]{\r\n\t\t\t{true, true, false, false, false, false, false},\r\n\t\t\t{true, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, false, false, true, false, false, false},\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true },\r\n\t\t\t{false, true, true, false, true, true, true }\r\n\t\t};\r\n\t\treturn compatibilityMatrix[datatype1.ordinal()][datatype2.ordinal()];\r\n\t}", "private static boolean functionTypeAlias_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_0_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && functionPrefix(b, l + 1);\n r = r && functionTypeAlias_0_3(b, l + 1);\n r = r && formalParameterList(b, l + 1);\n r = r && functionTypeAlias_0_5(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean areBoolean(Type typeone, Type typetwo){\n if (areSameType(typeone, typetwo)) {\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if(typeone instanceof BooleanType && typetwo instanceof BooleanType) return true;\n else return false;\n }", "public boolean compareType(Node n1, Node n2)\n {\n boolean compare= false;\n if (n1 instanceof Ipv4 && n2 instanceof Ipv4)\n {\n if (((Ipv4) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv4 && n2 instanceof Ipv6)\n {\n if (((Ipv4) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv4)\n {\n if (((Ipv6) n1).getType().equals(((Ipv4) n2).getType()))\n compare= true;\n }\n else if (n1 instanceof Ipv6 && n2 instanceof Ipv6)\n {\n if (((Ipv6) n1).getType().equals(((Ipv6) n2).getType()))\n compare= true;\n }\n return compare;\n }", "public boolean is( Type type ) {\n return this.type == type;\n }", "Type1Equivalent getType1Equivalent();", "private boolean relationshipDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getRelationshipDefs(), typesDef.getRelationshipDefs());\n }", "public static boolean areCorrespondingTypeVariables(Elements elements, AnnotatedTypeVariable type1, AnnotatedTypeVariable type2) {\n final TypeParameterElement type1ParamElem = (TypeParameterElement) type1.getUnderlyingType().asElement();\n final TypeParameterElement type2ParamElem = (TypeParameterElement) type2.getUnderlyingType().asElement();\n\n\n if (type1ParamElem.getGenericElement() instanceof ExecutableElement\n && type2ParamElem.getGenericElement() instanceof ExecutableElement) {\n final ExecutableElement type1Executable = (ExecutableElement) type1ParamElem.getGenericElement();\n final ExecutableElement type2Executable = (ExecutableElement) type2ParamElem.getGenericElement();\n\n final TypeElement type1Class = (TypeElement) type1Executable.getEnclosingElement();\n final TypeElement type2Class = (TypeElement) type2Executable.getEnclosingElement();\n\n boolean methodIsOverriden = elements.overrides(type1Executable, type2Executable, type1Class)\n || elements.overrides(type2Executable, type1Executable, type2Class);\n if (methodIsOverriden) {\n boolean haveSameIndex = type1Executable.getTypeParameters().indexOf(type1ParamElem) ==\n type2Executable.getTypeParameters().indexOf(type2ParamElem);\n return haveSameIndex;\n }\n }\n\n return false;\n }", "private boolean equal(Fragment left, Fragment right) {\n return (left != null && right != null && left.getClass().getName().equalsIgnoreCase(right.getClass().getName()));\n }", "private Boolean areCompatible(Class a, Class b) {\n return (a.isAssignableFrom(b) || b.isAssignableFrom(a));\n }", "private boolean matchModes(QName m1, QName m2) {\n/* 133 */ return ((null == m1 && null == m2) || (null != m1 && null != m2 && m1.equals(m2)));\n/* */ }", "private boolean entityDefsMatch(AtlasTypesDef typesDef) {\n return compareLists(this.getEntityDefs(), typesDef.getEntityDefs());\n }", "public boolean isAmbiguous() {\n return positionMap.size() > 1;\n }", "private boolean rangeEquals(Object [] b1, Object [] b2, int length)\n /*! #end !*/\n {\n for (int i = 0; i < length; i++)\n {\n if (!Intrinsics.equalsKType(b1[i], b2[i]))\n {\n return false;\n }\n }\n\n return true;\n }", "@Override\n public boolean isSameType(Type t) {\n if (t instanceof FuncType) {\n final FuncType other = (FuncType) t;\n return ret.isSameType(other.ret)\n && Arrays.equals(params, other.params);\n }\n return false;\n }", "protected Object needsAnAlias(Object original)\n {\n return JMXObjectNameFix.needsAnAlias(original);\n }", "public boolean typeStrictlyConformsTo(PBmmSchema schema, String type1, String type2) {\n return typeSameAs(type1,type2) || typeConformsTo(schema, type1, type2);\n }", "public boolean equal_types( TypeInterface t ) {\n\t\tif( t instanceof TyArray ) {\r\n\t\t TyArray ta = (TyArray) t ;\r\n\t\t return ta.elementCount == elementCount\r\n\t\t && getElementType().equal_types( ta.getElementType() ) ; }\r\n\t\telse return false ; }", "public boolean isEquivalentTo(Type other) {\n if (other instanceof MethodType) {\n return sameSignature((MethodType)other);\n }\n return false;\n }", "public boolean assignableTo(Type other) throws LookupException;" ]
[ "0.6716481", "0.6716034", "0.66839325", "0.66458905", "0.64975774", "0.6484966", "0.64166194", "0.6361646", "0.6262348", "0.62400264", "0.6237537", "0.6213056", "0.6069168", "0.6003582", "0.59944195", "0.5986199", "0.59732187", "0.59628296", "0.5880139", "0.5874731", "0.58416426", "0.58248067", "0.58013624", "0.57628274", "0.5758434", "0.57352257", "0.5720221", "0.57008725", "0.56660193", "0.5656979", "0.5642093", "0.56327385", "0.5624951", "0.56158864", "0.558911", "0.55610406", "0.5557218", "0.5546056", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.55353004", "0.5515697", "0.551212", "0.5508432", "0.5507342", "0.54787844", "0.54708314", "0.546816", "0.5464694", "0.5461278", "0.54603857", "0.54342705", "0.54180944", "0.54170376", "0.54134965", "0.54098624", "0.5408419", "0.540386", "0.5403432", "0.54031575", "0.53904563" ]
0.6166873
12
/ returns the underlying type of a type
public Type removeAlias(Type t){ while(t instanceof AliasType){ AliasType aliast = (AliasType) t; t = aliast.getType(); } return t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "Type getType();", "public Type getType();", "Type type();", "Type type();", "type getType();", "public Class getType();", "public Class getType();", "abstract public Type getType();", "TypeRef getType();", "public abstract Type getType();", "@NotNull\n abstract public Type getType();", "Class<?> getType();", "Class<?> getType();", "Class<?> getType();", "Class<T> getType();", "Class<T> getType();", "public abstract Type getGeneralizedType(Type type);", "public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }", "protected abstract Class<T> getType();", "public abstract Type getSpecializedType(Type type);", "public IType getType();", "DType getType();", "public Type getType() {\n @SuppressWarnings(\"deprecation\")\n Type result = Type.valueOf(type_);\n return result == null ? Type.UNRECOGNIZED : result;\n }", "public SoyType getType() {\n return getTypeWrapper().getType();\n }", "Class<?> type();", "public Type getType() {\n return referentType;\n }", "Class<S> getType();", "public TypeMirror getType() {\n return type;\n }", "public JavaType getType() { return _type; }", "abstract public Type type();", "protected Class<T> getType ()\n\t{\n\t\treturn type;\n\t}", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "Coding getType();", "@Override\n\tpublic T getType() {\n\t\treturn this.type;\n\t}", "public Class<T> getType() {\n return type;\n }", "public final Type getType(){\r\n return type;\r\n }", "public Class<?> getType(){\n\t\treturn type;\n\t}", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "public Type toType() {\n return type;\n }", "public Object getType()\r\n {\r\n\treturn type;\r\n }", "public Type getType() {\n\t\treturn type;\n\t}", "public Type getType() {\n\t\treturn type;\n\t}", "public Type getType () {\n\t\treturn type;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.8071676", "0.7977564", "0.78574747", "0.78574747", "0.7801359", "0.77417505", "0.7679445", "0.7678796", "0.7674538", "0.7640365", "0.7542747", "0.7516248", "0.7516248", "0.7516248", "0.74667203", "0.74667203", "0.7336129", "0.73360044", "0.7313908", "0.72566545", "0.72278446", "0.72162914", "0.71908206", "0.7131876", "0.70931214", "0.70681256", "0.7052189", "0.7045168", "0.70341265", "0.70271355", "0.7024475", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6995337", "0.6964164", "0.69630086", "0.6953829", "0.6950714", "0.69501144", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6940163", "0.6939546", "0.6924764", "0.69090647", "0.69090647", "0.69065493", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536", "0.6870536" ]
0.0
-1
/ STATEMENT TYPING / 2.4 Return Statements
public void outAReturnStmt(AReturnStmt node) throws TypeException{ PExp exp = node.getExp(); if(exp==null){ if (!(funcReturnType == null)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Empty return statement in a non-void function."); } else { Type exptype = typemap.get(exp); if (!areSameType(exptype,funcReturnType)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Return type and enclosing function type do not match."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ReturnStmt returnStmt() {\n Expr myExpr = null;\n \n lexer.nextToken();\n \n if (isFunction) myExpr = expr();\n \n return new ReturnStmt(myExpr); \n }", "private void return_(ReturnStmt stmt) {\n Value op = immediate(stmt, (Immediate) stmt.getOp());\n Value value = narrowFromI32Value(function.getType().getReturnType(), op);\n function.add(new Ret(value));\n }", "static int type_of_ret(String passed){\n\t\treturn 1;\n\t}", "private boolean User_Input() {\r\n \r\n if ( Get_Now_Token_Tpye() == VOID\r\n || Get_Now_Token_Tpye() == INT\r\n || Get_Now_Token_Tpye() == FLOAT\r\n || Get_Now_Token_Tpye() == CHAR\r\n || Get_Now_Token_Tpye() == STRING\r\n || Get_Now_Token_Tpye() == BOOL ) { \r\n // 先不要拿\r\n if ( Definition() ) { // 如果是 Definition()\r\n System.out.print( \"> \" ) ;\r\n Print_Definition() ;\r\n return true ;\r\n } // if()\r\n else { // 不是 Definition()\r\n Print_Error( Get_Error_Token(), Get_Error_Type(), Get_Error_Token_No_Id() ) ;\r\n return false ;\r\n } // else()\r\n } // if()\r\n else if ( Statement() ) { // 如果是 Statement()\r\n \r\n System.out.print( \"> \" ) ;\r\n \r\n if ( Return_ListAllVariables() ) { // 印出所有全域變數 // 由小到大\r\n Print_ListAllVariables() ;\r\n } // if()\r\n else if ( Return_ListAllFunctions() ) { // 印出所有 Function 名稱 // 由小到大\r\n Print_ListAllFunctions() ;\r\n } // else if()\r\n else if ( Return_ListVariable() ) { // 印出一個 已定義的變數 以及型別\r\n Print_ListVariable() ;\r\n } // else if()\r\n else if ( Return_ListFunction() ) { // 印出一個 已定義的 Function\r\n Print_ListFunction() ;\r\n } // else if()\r\n \r\n if ( !Return_Done() ) { // 如果不是 Done();\r\n Print_Statement() ;\r\n } // if()\r\n \r\n return true ;\r\n } // else if()\r\n else { // 都不是\r\n Print_Error( Get_Error_Token(), Get_Error_Type(), Get_Error_Token_No_Id() ) ;\r\n return false ;\r\n } // else()\r\n \r\n }", "Variable getReturn();", "private void parseReturnStatement() {\n check(Token.RETURN);\n\n if (EXPR_STARTERS.contains(nextToken.kind)) {\n Struct type = parseExpr().type;\n if (!(type.assignableTo(currentMethod.type))) {\n error(\"Invalid expression type in return statement\");\n }\n } else {\n if (currentMethod.type != SymbolTable.STRUCT_NONE) {\n error(\"Missing return value in return statement\");\n }\n }\n\n check(Token.SEMICOLON);\n\n code.put(Code.OP_EXIT);\n code.put(Code.OP_RETURN);\n }", "public abstract Code vreturn();", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "ReturnStatement createReturnStatement();", "public ReturnStmt return_stmt() {\n if (lexer.token != Symbol.RETURN) {\n error.signal(\"Missing RETURN keyword at return statement\");\n }\n lexer.nextToken();\n Expr e = expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after return statement\");\n }\n lexer.nextToken();\n return new ReturnStmt(e);\n }", "private static String checkReturn(String code) {\n if (!code.contains(\"return\")) {\n long numberOfSemiColons = code.chars().filter(c -> c == ';').count();\n if (numberOfSemiColons <= 1 && !code.contains(\"throw\")) {\n return \"return \".concat(code);\n }\n }\n return code;\n }", "private boolean isReturnStatement()\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(theCurrentToken.TokenType == TokenType.RETURN)\n\t\t{\n\t\t\tisValid = true;\n\t\t\tSystem.out.println(\"Return!\");\n\t\t}\t\n\t\t\n\t\treturn isValid;\n\t}", "@Override \n\tpublic String visitMethod(MethodContext ctx){\n\t\ttable.enterScope();\n\t\tString declaredRetType=visit(ctx.getChild(0));\n\t\tvisit(ctx.getChild(7));\t\t\n\t\tString retType=visit(ctx.getChild(8));\n\t\tif(!declaredRetType.equals(retType))throw new RuntimeException(\"Method must return \"+ declaredRetType);\n\t\ttable.exitScope();\n\t\treturn declaredRetType;\n\t}", "public static void typeCheckReturn(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "protected abstract String statementType();", "@Override\n\tpublic String visitReturnSt(ReturnStContext ctx){\n\t\treturn visit(ctx.getChild(1));\n\t}", "static int type_of_stc(String passed){\n\t\treturn 1;\n\t}", "public interface\nReturnStmt extends Stmt\n{\n\n/** ReturnStmt (##3)\n * Build return statement that terminates the execution of\n * current subprogram under construction.\n * @param pReturnValue return value of function subprogram.\n * If the subprogram has no return value, it is null.\n * @return the subtree of the built statement\n * with statement body operator opReturn.\n **/\n// Constructor (##3)\n// ReturnStmt( Exp pReturnValue );\n\n/** getReturnValue Get the return value expression of return statement.\n * setReturnValue Set the return value expression of this statement.\n * \"this\" should be a return statement build by buildReturnStmt.\n**/\nExp\ngetReturnValue();\npublic void\nsetReturnValue(Exp pReturnValue);\n\n\n}", "String getReturnType();", "static void perform_ret(String passed){\n\t\tint type = type_of_ret(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\treturn_unconditionally(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "static int ReturnType(int e, int f) {\n return (e + f); //return statementm\n }", "java.lang.String getResult();", "@Override\n public String visit(ReturnStmt n, Object arg) {\n return null;\n }", "public int methodName (...) {\r\n // method body with a return statement\r\n}", "private ParseTree parseReturnStatement() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.RETURN);\n ParseTree expression = null;\n if (!peekImplicitSemiColon()) {\n expression = parseExpression();\n }\n eatPossiblyImplicitSemiColon();\n return new ReturnStatementTree(getTreeLocation(start), expression);\n }", "java.lang.String getLastrunresult();", "protected void validate_return(java.lang.String[] param){\r\n \r\n }", "boolean getVarReturn();", "static int type_of_out(String passed){\n\t\treturn 1;\n\t}", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "@Override\r\n\tpublic void visit(ReturnStmtNode returnStatement) {\n\t\texecPathStack.pushFrame();\r\n\t\t\r\n\t\t//Register\r\n\t\tcurOperation.addReturnStmt(returnStatement);\r\n\t\t\r\n\t\t//For later use, we set the function as semantics of this return stmt\r\n\t\treturnStatement.setSemantics(curOperation);\r\n\t\t\r\n\t\tExprNode result = returnStatement.getResult();\r\n\t\t\r\n\t\tif(result!=null){\r\n\t\t\t//Analyze the expression\r\n\t\t\tanalyzeExpression(result);\r\n\t\t\t\r\n\t\t\t//Void function? No return expression allowed!\r\n\t\t\tif(curOperation.getReturnType()==BASIC.VOID)\r\n\t\t\t\tthrow Problem.ofType(ProblemId.RETURNING_VALUE_IN_VOID_METHOD).at(returnStatement)\r\n\t\t\t\t\t\t\t.raiseUnrecoverable();\r\n\t\t\t\t\r\n\t\t\t//Check if the return type is correct\r\n\t\t\tif(!result.getInferedType().canImplicitCastTo(curOperation.getReturnType())){\r\n\t\t\t\tthrow Problem.ofType(ProblemId.TYPE_ERROR_INCOMPATIBLE_RETURN_TYPE).at(returnStatement)\r\n\t\t\t\t\t\t\t.details(curOperation.getReturnType().getFullName(),result.getInferedType().getFullName())\r\n\t\t\t\t\t\t\t.raiseUnrecoverable();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\r\n\t\t} else {\r\n\t\t\t//Void return\r\n\t\t\tif(curOperation.getReturnType()!=BASIC.VOID)\r\n\t\t\t\tthrow Problem.ofType(ProblemId.RETURN_WITHOUT_VALUE).at(returnStatement)\r\n\t\t\t\t\t\t\t.raiseUnrecoverable();\r\n\t\t}\r\n\r\n\t}", "private void compileReturnHelper() throws IOException {\n printToken(); // prints 'return'\n getNextToken();\n if (!Objects.equals(currentToken, SEMICOLON)) compileExpression();\n printToken();\n }", "public int getFunctionType() {\n/* 60 */ return 4;\n/* */ }", "public Snippet visit(ReturnStatement n, Snippet argu) {\n\t\t Snippet _ret = new Snippet(\"\", \"\", null, false);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f1 = n.nodeOptional.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t \n\t \t\t\n\t \t\t\t/* ArrayINITCODE */\n\t\tif (arrayInitializer) {\n\t\t\tif(f1 == null){\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) +arrayInitializerBlock + \" null /*POSSIBLE ERROR*/\\n\";\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) +arrayInitializerBlock + f1.returnTemp\n\t\t\t\t+ \";\\n\";\t\n\t\t\t}\n\t\t\t\n\t\t} else {\n\t\t\t// End of ARRAYINITCODE\n\t\t\tif (f1 == null) {\n\t\t\t\t_ret.returnTemp = \"return\" + \";\";\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) + _ret.returnTemp\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t} else {\n\t\t\t\t_ret.returnTemp = \"return \" + f1.returnTemp + \";\";\n\t\t\t\ttPlasmaCode += generateTabs(blockDepth) + _ret.returnTemp\n\t\t\t\t\t\t+ \"\\n\";\n\t\t\t}\n\n\t\t}\n\t \t\t\n\t \t\treturn _ret;\n\t }", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "public Type getReturnType() {\n/* 227 */ return Type.getReturnType(this.desc);\n/* */ }", "public ReturnStatement(TextFile body) {\r\n\r\n\t\tToken current = body.getNonWSToken(false); //get variable name\r\n\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\tif (current.getType() == TokenType.IDENTIFIER)\r\n\t\t\t{\r\n\t\t\t\tvariableName =current.getText();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"ERROR: IDENTIFIER token expected after RETURN while parsing line \"+ body.getReport()+ \". Token \" + current.getText() + \" of type \" + current.getType() + \"found instead.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tcurrent = body.getNonWSToken(false); //Peel off ; only check to make sure it was the right symbol\r\n\r\n\t\tif(current != null)\r\n\t\t{\r\n\t\t\tif (!current.getText().equals(\";\"))\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"ERROR: ; symbol expected after RETURN STATEMENT while parsing line \"+ body.getReport()+ \". Token \" + current.getText() + \" of type \" + current.getType() + \"found instead.\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private Stmt stmt(){\n \n switch(lexer.token){\n case IDENT:\n \n if (symbolTable.get(lexer.getStringValue()) instanceof Procedure) \n return procedureCall();\n \n //can´t be a function\n else if (symbolTable.get(lexer.getStringValue()) instanceof Function)\n lexer.error(\"Function was expected \\n\");\n \n //assignstmt\n else \n return assignstmt();\n \n case BEGIN:\n return cmpstmt();\n case IF:\n return ifstmt();\n case WHILE:\n return whilestmt();\n case WRITE:\n return writestmt();\n case WRITELN:\n return writelnstmt();\n case READ:\n return readstmt();\n case RETURN:\n return returnStmt();\n default:\n lexer.error(\"missing statment\\n\");\n }\n \n return null;\n }", "Type getReturnType () { return return_type; }", "Exp\ngetReturnValue();", "static int type_of_rp(String passed){\n\t\treturn 1;\n\t}", "void compileReturn() {\n tagBracketPrinter(RETURN_TAG, OPEN_TAG_BRACKET);\n try {\n compileReturnHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(RETURN_TAG, CLOSE_TAG_BRACKET);\n }", "private static String checkCode(String code, String returnClass) {\n if (!returnClass.equals(void.class.getName()))\n code = checkReturn(code);\n code = checkSemiColon(code);\n return code;\n }", "public aql k()\r\n/* 114: */ {\r\n/* 115:126 */ return aql.b;\r\n/* 116: */ }", "public int withreturn (){\n int num1 = 555;\n return num1;\n //\n }", "static int type_of_rc(String passed){\n\t\treturn 1;\n\t}", "@Override\r\n\tpublic Object visitReturnStatement(ReturnStatement returnStatement,\r\n\t\t\tObject arg) throws Exception {\r\n//\t\treturn returnStatement.expression.visit(this, arg);\r\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\r\n\t}", "public int readProblemType() {\n\t\t\t\t\tSystem.out.printf(\"What type of arithmetic problem do you want to study:\\n 1:+ \\n 2:* \\n 3:- \\n 4:/ \\n 5:Random \");\n\t\t\t\t\tint j = 0;\n\t\t\t\t\tj = resp.nextInt();\n\t\t\t\t\tswitch (j) {\n\t\t case 1: j = 1; \n\t\t break;\n\t\t case 2: j = 2;\n\t\t break;\n\t\t case 3: j = 3;\n\t\t break;\n\t\t case 4: j = 4;\n\t\t break;\n\t\t case 5: j= 5;\n\t\t \t\tbreak;}\n\t\t return j;\n\t\t\t\t\t\n\t}", "static int type_of_rpe(String passed){\n\t\treturn 1;\n\t}", "private boolean returnStatementAfterTypeCheckCodeFragment() {\n\t\tStatementExtractor statementExtractor = new StatementExtractor();\r\n\t\tList<Statement> allReturnStatementsWithinTypeCheckCodeFragment = statementExtractor.getReturnStatements(typeCheckCodeFragment);\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionWithinTypeCheckCodeFragment = new ArrayList<ReturnStatement>();\r\n\t\tfor(Statement statement : allReturnStatementsWithinTypeCheckCodeFragment) {\r\n\t\t\tReturnStatement returnStatement = (ReturnStatement)statement;\r\n\t\t\tif(returnStatement.getExpression() != null)\r\n\t\t\t\treturnStatementsHavingExpressionWithinTypeCheckCodeFragment.add(returnStatement);\r\n\t\t}\r\n\t\tif(returnStatementsHavingExpressionWithinTypeCheckCodeFragment.isEmpty())\r\n\t\t\treturn false;\r\n\t\t//get all return statements having an expression within method body\r\n\t\tList<Statement> allReturnStatementsWithinTypeCheckMethod = statementExtractor.getReturnStatements(typeCheckMethod.getBody());\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionWithinTypeCheckMethod = new ArrayList<ReturnStatement>();\r\n\t\tfor(Statement statement : allReturnStatementsWithinTypeCheckMethod) {\r\n\t\t\tReturnStatement returnStatement = (ReturnStatement)statement;\r\n\t\t\tif(returnStatement.getExpression() != null)\r\n\t\t\t\treturnStatementsHavingExpressionWithinTypeCheckMethod.add(returnStatement);\r\n\t\t}\r\n\t\tList<ReturnStatement> returnStatementsHavingExpressionOutsideTypeCheckMethod = new ArrayList<ReturnStatement>();\r\n\t\treturnStatementsHavingExpressionOutsideTypeCheckMethod.addAll(returnStatementsHavingExpressionWithinTypeCheckMethod);\r\n\t\treturnStatementsHavingExpressionOutsideTypeCheckMethod.removeAll(returnStatementsHavingExpressionWithinTypeCheckCodeFragment);\r\n\t\tfor(ReturnStatement returnStatement : returnStatementsHavingExpressionOutsideTypeCheckMethod) {\r\n\t\t\tif(returnStatement.getStartPosition() > typeCheckCodeFragment.getStartPosition()+typeCheckCodeFragment.getLength())\r\n\t\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public Statement getElseStm();", "public abstract int[] getReturnTypes();", "static int type_of_sphl(String passed){\n\t\treturn 1;\n\t}", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "@Override\n\tpublic String visitExpression(ExpressionContext ctx) {\n\t\tif(ctx.getChildCount() == 3){\n\t\t\treturn visit(ctx.getChild(1));\n\t\t}\n\t\tParseTree cur = ctx.getChild(0);\n\t\tif(!(cur instanceof TerminalNode)){\n\t\t\treturn visit(cur);\n\t\t}\n\t\telse if(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\treturn id.getReturnType();\n\t\t}\n\t\telse if (cur==ctx.BOOLEANLIT()) return \"boolean\";\n\t\telse if (cur==ctx.STRING()) return \"String\";\n\t\treturn null;\n\t}", "public final JavaliParser.returnStmt_return returnStmt() throws RecognitionException {\n\t\tJavaliParser.returnStmt_return retval = new JavaliParser.returnStmt_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken string_literal74=null;\n\t\tToken char_literal76=null;\n\t\tParserRuleReturnScope expr75 =null;\n\n\t\tObject string_literal74_tree=null;\n\t\tObject char_literal76_tree=null;\n\t\tRewriteRuleTokenStream stream_97=new RewriteRuleTokenStream(adaptor,\"token 97\");\n\t\tRewriteRuleTokenStream stream_77=new RewriteRuleTokenStream(adaptor,\"token 77\");\n\t\tRewriteRuleSubtreeStream stream_expr=new RewriteRuleSubtreeStream(adaptor,\"rule expr\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:2: ( 'return' ( expr )? ';' -> ^( ReturnStmt ( expr )? ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:5: 'return' ( expr )? ';'\n\t\t\t{\n\t\t\tstring_literal74=(Token)match(input,97,FOLLOW_97_in_returnStmt1298); \n\t\t\tstream_97.add(string_literal74);\n\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:14: ( expr )?\n\t\t\tint alt22=2;\n\t\t\tint LA22_0 = input.LA(1);\n\t\t\tif ( (LA22_0==BooleanLiteral||LA22_0==DecimalNumber||LA22_0==FloatNumber||LA22_0==HexNumber||LA22_0==Identifier||LA22_0==65||LA22_0==69||LA22_0==72||LA22_0==74||LA22_0==94||LA22_0==98) ) {\n\t\t\t\talt22=1;\n\t\t\t}\n\t\t\tswitch (alt22) {\n\t\t\t\tcase 1 :\n\t\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:396:14: expr\n\t\t\t\t\t{\n\t\t\t\t\tpushFollow(FOLLOW_expr_in_returnStmt1300);\n\t\t\t\t\texpr75=expr();\n\t\t\t\t\tstate._fsp--;\n\n\t\t\t\t\tstream_expr.add(expr75.getTree());\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\n\t\t\t}\n\n\t\t\tchar_literal76=(Token)match(input,77,FOLLOW_77_in_returnStmt1303); \n\t\t\tstream_77.add(char_literal76);\n\n\t\t\t// AST REWRITE\n\t\t\t// elements: expr\n\t\t\t// token labels: \n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t// 397:3: -> ^( ReturnStmt ( expr )? )\n\t\t\t{\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:397:6: ^( ReturnStmt ( expr )? )\n\t\t\t\t{\n\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(ReturnStmt, \"ReturnStmt\"), root_1);\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:397:20: ( expr )?\n\t\t\t\tif ( stream_expr.hasNext() ) {\n\t\t\t\t\tadaptor.addChild(root_1, stream_expr.nextTree());\n\t\t\t\t}\n\t\t\t\tstream_expr.reset();\n\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "public String food()//method that returns a value (string value)\r\n\t\r\n\t{\r\n\t\t\r\n\t\treturn \"(Dog!)\" + \"Sausage\";//the return value of the method\r\n\t\t\r\n\t}", "public T getRawResult()\n/* */ {\n/* 744 */ return null;\n/* */ }", "static int type_of_rpo(String passed){\n\t\treturn 1;\n\t}", "public vx i()\r\n/* 185: */ {\r\n/* 186:212 */ return vx.a;\r\n/* 187: */ }", "static int type_of_jpe(String passed){\n\t\treturn 1;\n\t}", "@Override\n\t/**\n\t * returns a String \"no\" because a class does not have a data or return type\n\t * \n\t * @return \"no\"\n\t */\n\tpublic String getReturnType() {\n\t\treturn \"no\";\n\t}", "static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}", "public Element compileReturn() {\n\t\tElement ele = null;\n\t\tString token, tokenType;\n\n\t\tElement returnParent = document.createElement(\"returnStatement\");\n\n\t\t// return keyword\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\treturnParent.appendChild(ele);\n\n\t\tjTokenizer.advance();\n\t\ttoken = jTokenizer.returnTokenVal();\n\n\t\t// Return can either just be nothing or a variable/expression etc.\n\t\tif (token.equals(\";\")) {\n\t\t\t// Empty return, pushing 0 on stack\n\t\t\twriter.writePush(\"constant\", 0);\n\n\t\t\ttokenType = jTokenizer.tokenType();\n\t\t\tele = createXMLnode(tokenType);\n\t\t\treturnParent.appendChild(ele);\n\n\t\t\twriter.writeReturn();\n\t\t\treturn returnParent;\n\t\t} \n\t\t\n\t\t//Push the expression onto the stack\n\t\telse {\n\t\t\treturnParent.appendChild(compileExpression());\n\t\t}\n\n\t\t// ;\n\t\tjTokenizer.advance();\n\t\ttokenType = jTokenizer.tokenType();\n\t\tele = createXMLnode(tokenType);\n\t\treturnParent.appendChild(ele);\n\t\t\n\t\t//Write return statement\n\t\twriter.writeReturn();\n\n\t\treturn returnParent;\n\t}", "static int type_of_dad(String passed){\n\t\treturn 1;\n\t}", "public boolean getReturn();", "@Override\n\t/**\n\t * does nothing for classes as they do not have return types or data types\n\t */\n\tpublic void setReturnType(String s) {\n\n\t}", "public String methodReturn() {\n\t\t\n\t\treturn \"Executing a method which returns a String Text\";\n\t}", "public void writeReturn() {\n writer.println(\"@LCL\");\n writer.println(\"D=M\");\n writer.println(\"@R13\");\n writer.println(\"M=D\");\n\n //RET = *(FRAME - 5)\n writer.println(\"@5\");\n writer.println(\"D=A\");\n writer.println(\"@R13\");\n writer.println(\"A=M-D\"); //A-REG => MEM(LCL-5) => 312\n writer.println(\"D=M\"); //D-REG => 9\n writer.println(\"@R14\");\n writer.println(\"M=D\"); //R14 = 9\n\n //*ARG = POP();\n decStackPtr();\n writer.println(\"A=M\");\n writer.println(\"D=M\"); //store result in d reg.\n\n writer.println(\"@ARG\"); //@2\n writer.println(\"A=M\"); //A-REG = RAM[2]\n writer.println(\"M=D\"); //ram[A-reg] = D\n \n //SP = ARG+1\n writer.println(\"@ARG\");\n writer.println(\"D=M\");\n writer.println(\"@SP\");\n writer.println(\"M=D+1\");\n\n //That = *(FRAME-1)\n pushSymbol(1, \"THAT\");\n\n //THIS = *(FRAME-2)\n pushSymbol(2, \"THIS\");\n\n //ARG\n pushSymbol(3, \"ARG\");\n\n //LCL\n pushSymbol(4, \"LCL\");\n\n //goto ret\n writer.println(\"@R14\"); //This was the problem!! had R13 instead of 14!\n writer.println(\"A=M\");\n writer.println(\"0;JMP\");\n \n }", "public boolean visit(ReturnStatement returnStatement) {\n\t\tASTNode parent = returnStatement.getParent();\r\n\t\tStatement statementBeforeReturn = null;\r\n\t\tif(parent instanceof Block){\r\n\t\t\tBlock block = (Block)parent;\r\n\t\t\t@SuppressWarnings(\"unchecked\")\r\n\t\t\tList<Statement> statements = block.statements();\r\n\t\t\tint stSize = statements.size();\r\n\t\t\tint returnPos = 0;\r\n\t\t\tfor(int i=0; i<stSize; i++){\r\n\t\t\t\tObject statement = statements.get(i);\r\n\t\t\t\t//System.out.println(\"Statement...\");\r\n\t\t\t\t//System.out.println(statement);\r\n\t\t\t\tif(statement instanceof ReturnStatement){\r\n\t\t\t\t\treturnPos = i-1;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(returnPos>0){\r\n\t\t\t\tstatementBeforeReturn = (Statement) statements.get(returnPos);\r\n\t\t\t}else{\r\n\t\t\t\tstatementBeforeReturn = (Statement) statements.get(0);\r\n\t\t\t\t/*if(Statement.METHOD_INVOCATION == statementBeforeReturn.getNodeType()){\r\n\t\t\t\t\t\r\n\t\t\t\t}*/\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else if(parent instanceof IfStatement){\r\n\t\t\tstatementBeforeReturn = (IfStatement) parent;\r\n\t\t\t//System.out.println(\"statementBeforeReturn: \"+statementBeforeReturn);\r\n\t\t} else{\r\n\t\t\tSystem.out.println(\"Unknown statement !!!\");\r\n\t\t}\r\n\t\tMethodLogInspectionResult result = new MethodLogInspectionResult();\r\n\t\tresults.add(result);\r\n\t\tif(currentPackage!=null){\r\n\t\t\tresult.setPackageName(currentPackage.getName().getFullyQualifiedName());\r\n\t\t}\r\n\t\tresult.setClassName(currentClassName);\r\n\t\tresult.setMethodName(currentMethodName);\r\n\t\t// check first statement\r\n\t\tString expectedFormat = currentClassName + \"#\" + currentMethodName + \":end\";\r\n\t\tif (statementBeforeReturn instanceof IfStatement) {\r\n\t\t\tLogInspectionResult r = LogStatementUtils.isLevelCheckedLogStatement((IfStatement) statementBeforeReturn,\r\n\t\t\t\t\texpectedFormat);\r\n\t\t\tresult.setLogInspectionResult(r);\r\n\t\t} else if (statementBeforeReturn instanceof ExpressionStatement) {\r\n\t\t\tLogInspectionResult r = LogStatementUtils.isLogStatement((ExpressionStatement) statementBeforeReturn,\r\n\t\t\t\t\texpectedFormat);\r\n\t\t\tresult.setLogInspectionResult(r);\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public int a() {\r\n/* 63 */ return 4;\r\n/* */ }", "static int type_of_sta(String passed){\n\t\treturn 1;\n\t}", "static int type_of_xthl(String passed){\n\t\treturn 1;\n\t}", "public int getType() {\n/* 50 */ return this.type;\n/* */ }", "static int type_of_ral(String passed){\n\t\treturn 1;\n\t}", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "public String returnType() {\n return this.data.returnType();\n }", "public Node typeCheck () {\n\tif (declist!=null) \n\t for (Node dec:declist)\n\t\tdec.typeCheck();\n if ( !(FOOLlib.isSubtype(body.typeCheck(),type)) ){\n System.out.println(\"Wrong return type for function \"+id);\n System.exit(0);\n } \n return null;\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public int g()\r\n/* 601: */ {\r\n/* 602:645 */ return 0;\r\n/* 603: */ }", "public static boolean returnStatement(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"returnStatement\",true);\n }\n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (!t.token.equals(\"return\")) {\n return false;\n }\n \n CScanner.needToUsePeekedToken = false;\n\n if (!expression(f)) {\n System.err.format(\"Syntax Error: In rule ReturnStatement unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n }\n if(observer != null){\n observer.parser.setCurrentRule(\"returnStatement\",true);\n }\n \n t = getUsePeek(f);\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule ReturnStatement unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0);\n } //need semicolon\n if(observer != null){\n observer.parser.setCurrentRule(\"returnStatement\", false);\n }\n return true;\n }", "V result() throws Exception;", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "static int size_of_ret(String passed){\n\t\treturn 1;\n\t}", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public abstract String getResult();", "public void a(eq ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public int k() {\r\n/* 55 */ return 9;\r\n/* */ }", "public Integer getIsSuccessInSolving()\n/* */ {\n/* 207 */ return this.isSuccessInSolving;\n/* */ }", "public int p_()\r\n/* 463: */ {\r\n/* 464:477 */ return 64;\r\n/* 465: */ }", "public Object visit(ASTReturnStatement node, Object data) {\n \n ASTExpression expr = (ASTExpression) node.getFirstChildOfType( ASTExpression.class );\n \n if ( expr == null ) {\n return NumericConstants.ONE;\n }\n \n List andNodes = expr.findChildrenOfType( ASTConditionalAndExpression.class );\n List orNodes = expr.findChildrenOfType( ASTConditionalOrExpression.class );\n int boolCompReturn = andNodes.size() + orNodes.size();\n \n if ( boolCompReturn > 0 ) {\n return new Integer( boolCompReturn );\n }\n return NumericConstants.ONE;\n }", "public abstract String mo11611b();", "public Statement getThenStm();", "public abstract String mo10149a();", "private Keyword basicType()\r\n {\r\n Keyword x = Keyword.NONESY;\r\n\r\n if (typeKW.contains(nextSymbol))\r\n {\r\n x = nextSymbol;\r\n lookAhead();\r\n }\r\n\r\n return x;\r\n }" ]
[ "0.67595667", "0.64426696", "0.64371943", "0.6357254", "0.6355253", "0.62446356", "0.6178148", "0.6112761", "0.6062034", "0.59931546", "0.59628344", "0.594863", "0.592644", "0.5925886", "0.5923401", "0.5902201", "0.5897562", "0.58820415", "0.58773834", "0.5872696", "0.58530533", "0.5838869", "0.5833449", "0.58312744", "0.58112055", "0.5807302", "0.5801645", "0.5768675", "0.57668275", "0.5706977", "0.5704368", "0.5702473", "0.5694633", "0.56863207", "0.56774294", "0.56756645", "0.56749994", "0.5659346", "0.5612752", "0.55961263", "0.5591892", "0.5564546", "0.5563114", "0.55629474", "0.55621576", "0.5553751", "0.55501753", "0.55440474", "0.5540127", "0.5537145", "0.55335444", "0.5527906", "0.5496896", "0.5494104", "0.5493372", "0.5493372", "0.5492504", "0.5492504", "0.5484141", "0.54695684", "0.546943", "0.5468594", "0.54684824", "0.54652417", "0.546293", "0.5460995", "0.54592776", "0.5459204", "0.54459924", "0.5443087", "0.54430753", "0.5440517", "0.54369396", "0.54328746", "0.54309714", "0.5428306", "0.54240525", "0.5423338", "0.5420537", "0.5417094", "0.5416208", "0.54132324", "0.54132056", "0.541226", "0.5399514", "0.53987736", "0.53964704", "0.5391932", "0.537131", "0.53701407", "0.53699684", "0.53627956", "0.53587765", "0.53531045", "0.5352525", "0.5352203", "0.5348276", "0.534806", "0.53478974", "0.53473336" ]
0.56091064
39
/ 2.5 Short Declaration Statements
public void caseAShortDeclStmt(AShortDeclStmt node) { inAShortDeclStmt(node); { List<PExp> copy = new ArrayList<PExp>(node.getR()); for(PExp e : copy) { e.apply(this); } } outAShortDeclStmt(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void masterDeclaration();", "void declaration() {\n\t\tString theToken = currentToken();\r\n\r\n\t\tif (theToken.equals(\"int\") || theToken.equals(\"void\")) {\r\n\t\t\ttypeSpeci();\r\n\t\t\taccept(\"ID\");\r\n\t\t\ttheToken = currentToken();\r\n\t\t\tif (theToken.equals(\";\") || theToken.equals(\"[\"))\r\n\t\t\t\tvarDec();\r\n\r\n\t\t\t// if int ID ( param ) compoundStatment\r\n\t\t\telse if (theToken.equals(\"(\"))\r\n\t\t\t\tfunDec();\r\n\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn;\r\n\t}", "void m1864a() {\r\n }", "public static void main(String []args){\n\n//byte i; // declaration\n//i = 20; //initialization\n//System.out.println(i); // utilization\n\n//short i; // declaration\n//i = 30; //initialization\n//System.out.println(i); // utilization\n\n//long i; // declaration\n//i = 78945612; //initialization\n//System.out.println(i); // utilization\n\n//float i; // declaration\n//i = 10.789456f; //initialization\n//System.out.println(i); // utilization\n\n//double i; // declaration\n//i = 10.789456123321654; //initialization\n//System.out.println(i); // utilization\n\n//char i; // declaration\n//i = 'n'; //initialization\n//System.out.println(i); // utilization\n\nboolean i; // declaration\ni = true; //initialization\nSystem.out.println(i); // utilization\n\n\n}", "public void m23075a() {\n }", "void mo57277b();", "public void mo9233aH() {\n }", "void mo41083a();", "public void mo44053a() {\n }", "void mo28306a();", "void mo80452a();", "public void mo2740a() {\n }", "void mo28194a();", "public int a_(int paramInt)\r\n/* 166: */ {\r\n/* 167:189 */ return 0;\r\n/* 168: */ }", "void mo17021c();", "public void a(eq ☃) {}\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* */ public int k() {\r\n/* 55 */ return 9;\r\n/* */ }", "void mo28195a(C5670a aVar, boolean z);", "void mo54405a();", "void mo72113b();", "void mo12143a();", "void mo23492a(C9072a0 a0Var);", "public void mo97908d() {\n }", "public static void main(String[] args) {\n\t\t\n\n\tchar singleLetter='c';\n\t\n\t//boolean new=true; do not use keyword to name your variables \n\t\n\t//int 1num=100; //error\n\t int num1=100;\n\t \n\t boolean boo_=true;\n\t double $price=2.99;\n\t //byte <b=1; --> error\n\t \n\t //Preferences\n\t /*\n\t * Follow camel casing\n\t * Java Classes should start with upper case and follow camel casing\n\t * Variables and methods in Java should start with lowercase and follow camel casing \n\t */\n\t \n\t short ThisIsMyShortNumber=10;\n\t System.out.println(ThisIsMyShortNumber);\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t\n\t}", "void mo18320a(C7251a aVar);", "void mo12634a();", "void mo17012c();", "void mo17023d();", "void mo7351a(C1655s sVar);", "public void mo12930a() {\n }", "public void mo56167c() {\n }", "void mo72111a();", "void mo57278c();", "void m8367a();", "public void mo6944a() {\n }", "void mo80457c();", "public interface C14016a {\n void abU(String str);\n\n void cHM();\n\n void cHO();\n\n /* renamed from: mh */\n void mo26249mh(boolean z);\n }", "void mo35722a(C14235h hVar);", "String invade(short s) {\n\t\treturn \"a few\";\n\t}", "void mo21073d();", "void mo12648a(C3676k kVar);", "public void mo1403c() {\n }", "void mo38026a();", "void mo13368a();", "public void mo21779D() {\n }", "void mo98969a();", "public static void main(String[] args) {\n\t\tbyte a = 1;\n\t\t\n\t\t//16 -bit = 32 -bit\n\t\tshort b = 1;\n\t\t\n\t\t\n\t\tint c = 1;\n\t\t\n\t\t// byte d = c; // NOT SAFE = what if c become 1.000.000 ??? \n\t\t\n\t\t// short s = c; // NOT SAFE\n\t\t\n\t\t\n\t}", "public void mo38117a() {\n }", "void mo7350a();", "void mo23489a(C9067a aVar);", "public void int1_m() {\n\t\t\n\t}", "public void mo1957a(short s) throws cf {\r\n mo1986b(m10266c((int) s));\r\n }", "C2841w mo7234g();", "void mo17013d();", "public void mo23438b() {\n }", "@Test\n public void testDeclarationAndConventionConflict2() {\n testSame(\"/** @constructor */ function Foo() { /** @protected */ this.length_ = 1;\\n}\\n\");\n }", "void mo72114c();", "void mo41086b();", "public void mo21879u() {\n }", "public void mo97906c() {\n }", "void mo21499a(C8325a aVar);", "String getDeclare();", "public int a() {\r\n/* 63 */ return 4;\r\n/* */ }", "void mo18322a(C7252b bVar);", "public static void main(String[] args) {\n\n\t\t\n\t\tbyte b=3;\n\t\tshort s=34;\n\t\tint i=125;\n\t\t\n\t}", "public boolean A_()\r\n/* 21: */ {\r\n/* 22:138 */ return true;\r\n/* 23: */ }", "public void mo23813b() {\n }", "private CacheBuilder$OneWeigher() {\n void var2_-1;\n void var1_-1;\n }", "public void mo21877s() {\n }", "void mo57275a();", "void mo88521a();", "void mo119581a();", "public void mo3749d() {\n }", "public int a_(int paramInt)\r\n/* 594: */ {\r\n/* 595:636 */ return 0;\r\n/* 596: */ }", "void mo86a(C0163d c0163d);", "public void mo8738a() {\n }", "void mo80455b();", "public static void main(String[] args) {\n short i=10;\n short j=10;\n short k=10+10;\n byte apples = 5;\n short oranges = 10;\n int bananas = apples + oranges;\n\n }", "void mo2311a();", "public void mo5099c() {\n }", "public void mo9137b() {\n }", "public void mo5074b(short s) {\n this.f3707a = s;\n }", "public void mo5097b() {\n }", "void mo69874a();", "void mo2090a(C0455b bVar);", "void mo1637a();", "void mo119582b();", "void mo50320a(C18924b bVar);", "public int p_()\r\n/* 96: */ {\r\n/* 97:117 */ return 64;\r\n/* 98: */ }", "public interface sym {\n /* terminals */\n public static final int SHORT = 47;\n public static final int ANDEQ = 94;\n public static final int IMPLEMENTS = 4;\n public static final int CONST = 27;\n public static final int BITNOT = 68;\n public static final int STRICTFP = 35;\n public static final int NOTEQ = 74;\n public static final int PLUSEQ = 90;\n public static final int RBRACK = 60;\n public static final int CATCH = 20;\n public static final int COMMA = 62;\n public static final int RBRACE = 58;\n public static final int THROW = 22;\n public static final int RPAREN = 56;\n public static final int LBRACK = 59;\n public static final int ANDAND = 75;\n public static final int NUMERO = 101;\n public static final int OROR = 76;\n public static final int DOUBLE = 51;\n public static final int LBRACE = 57;\n public static final int TRANSIENT = 32;\n public static final int LPAREN = 55;\n public static final int XOREQ = 96;\n public static final int PROTECTED = 37;\n public static final int FALSE = 54;\n public static final int NOT = 67;\n public static final int COMENTARIO = 102;\n public static final int FINAL = 29;\n public static final int FLOAT = 49;\n public static final int URSHIFTEQ = 45;\n public static final int PACKAGE = 25;\n public static final int MOD = 86;\n public static final int CLASS = 2;\n public static final int SUPER = 34;\n public static final int ABSTRACT = 28;\n public static final int TRUE = 53;\n public static final int NATIVE = 30;\n public static final int PLUS = 79;\n public static final int LONG = 50;\n public static final int QUESTION = 69;\n public static final int WHILE = 17;\n public static final int EQUAL = 64;\n public static final int EXTENDS = 3;\n public static final int INTERFACE = 5;\n public static final int CHAR = 46;\n public static final int BOOLEAN = 44;\n public static final int SWITCH = 16;\n public static final int DO = 11;\n public static final int FOR = 14;\n public static final int RSHIFTEQ = 99;\n public static final int GREATER = 65;\n public static final int DIV = 82;\n public static final int VOID = 40;\n public static final int MULT = 81;\n public static final int PUBLIC = 36;\n public static final int RETURN = 15;\n public static final int ELSE = 13;\n public static final int TRY = 19;\n public static final int GTEQ = 73;\n public static final int BREAK = 7;\n public static final int DOT = 63;\n public static final int INT = 48;\n public static final int THROWS = 23;\n public static final int EQEQ = 71;\n public static final int NULL = 41;\n public static final int EOF = 0;\n public static final int SEMICOLON = 61;\n public static final int THIS = 42;\n public static final int DEFAULT = 10;\n public static final int MULTEQ = 92;\n public static final int IMPORT = 24;\n public static final int MINUS = 80;\n public static final int LTEQ = 72;\n public static final int OR = 84;\n public static final int URSHIFT = 89;\n public static final int error = 1;\n public static final int SYNCHRONIZED = 31;\n public static final int DIVEQ = 93;\n public static final int LSHIFTEQ = 98;\n public static final int FINALLY = 21;\n public static final int CONTINUE = 9;\n public static final int IF = 12;\n public static final int INSTANCEOF = 43;\n public static final int ID = 100;\n public static final int MODEQ = 97;\n public static final int MINUSMINUS = 78;\n public static final int COLON = 70;\n public static final int ASSERT = 18;\n public static final int OREQ = 95;\n public static final int VOLATILE = 33;\n public static final int PLUSPLUS = 77;\n public static final int CASE = 8;\n public static final int NEW = 6;\n public static final int RSHIFT = 88;\n public static final int STRING = 52;\n public static final int LESS = 66;\n public static final int BYTE = 26;\n public static final int AND = 83;\n public static final int PRIVATE = 38;\n public static final int STATIC = 39;\n public static final int LSHIFT = 87;\n public static final int XOR = 85;\n public static final int MINUSEQ = 91;\n}", "void mo3311a();", "void mo107676a(C45111a aVar);", "public abstract void mo9804a(int i, C3706s0 s0Var);", "void mo22249a();", "public void mo38281a(short s) {\n this.f27039b = s;\n }", "public void mo2198g(C0317d dVar) {\n }", "void mo7441d(C0933b bVar);", "void mo21072c();", "public void mo21787L() {\n }", "void mo67920a();", "public void mo21792Q() {\n }", "void mo37810a();" ]
[ "0.62743837", "0.597415", "0.5967448", "0.59028095", "0.58996105", "0.5894643", "0.58438754", "0.5834794", "0.5830677", "0.5807933", "0.5784055", "0.57600904", "0.57573646", "0.57558525", "0.57530016", "0.574201", "0.5726908", "0.5723443", "0.5719146", "0.57152253", "0.57130796", "0.57060707", "0.57059824", "0.5681382", "0.56775063", "0.56766397", "0.56756485", "0.5668613", "0.5663619", "0.5658391", "0.56571597", "0.56540614", "0.564825", "0.56463885", "0.5642101", "0.5636816", "0.56362176", "0.56287295", "0.5619475", "0.5611032", "0.5607845", "0.5604426", "0.55982566", "0.5596864", "0.5596705", "0.5591818", "0.5588244", "0.5583816", "0.5583673", "0.55818015", "0.55746716", "0.5572682", "0.5570442", "0.5566757", "0.55655915", "0.55566746", "0.5551305", "0.5549508", "0.55460393", "0.554314", "0.5542594", "0.5537442", "0.55362326", "0.55357563", "0.5533002", "0.5532484", "0.5528511", "0.55234927", "0.5522163", "0.5521352", "0.5520707", "0.55191696", "0.5518908", "0.5518269", "0.5516498", "0.5509437", "0.55055434", "0.55026084", "0.5492608", "0.5491775", "0.5491627", "0.54902226", "0.54897445", "0.54889786", "0.5484905", "0.5480411", "0.54764855", "0.54759634", "0.5473791", "0.5471587", "0.5471546", "0.5467551", "0.5466694", "0.5465424", "0.54652935", "0.5461913", "0.5461464", "0.54595476", "0.54581994", "0.545719", "0.5457044" ]
0.0
-1
check init statements separately
public void outAShortDeclStmt(AShortDeclStmt node) throws TypeException{ // keep track of new variables List<Node> newVars = new ArrayList<Node>(); List<String> leftVars = new ArrayList<String>(); int newVarCount = 0; LinkedList<PExp> leftlist = node.getL(); LinkedList<PExp> rightlist = node.getR(); ListIterator<PExp> iterl = leftlist.listIterator(0); ListIterator<PExp> iterr = rightlist.listIterator(0); while(iterl.hasNext() && iterr.hasNext()){ PExp leftexp = iterl.next(); PExp rightexp = iterr.next(); Type exptype; java.lang.String idname; // MODIFIED if(leftexp instanceof AIdExp){ AIdExp idexp = (AIdExp) leftexp; TId id = idexp.getId(); idname = id.getText(); if (leftVars.contains(idname)) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Repeated variable " + idname + " on left."); } leftVars.add(idname); Map<String, Type> scope = getScope(); Map<String, Type> typeScope = getScope(); if (!scope.containsKey(idname) && !typeScope.containsKey(idname)) { newVars.add(leftexp); newVarCount++; Type t = typemap.get(rightexp); if (t==null) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Attempted to assign void value to variable " + idname + "."); } if (t instanceof FunctionType) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Attempted to assign function as value " + idname + "."); } declInScope(idname, t); } else { exptype = lookUpVarType(idname, golite.weeder.LineNumber.getLineNumber(node)); if(!(exptype == null)){ Type righttype = typemap.get(rightexp); if(! (areSameType(exptype,righttype))){ throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Types on left and right don't match for short declaration statment at: " + idname + "."); } } } } } if (newVarCount==0) { throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] No new variables on left."); } shortDeclInfo.put(node, newVars); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract boolean init();", "public boolean init() {\n\t\treturn true;\n\t}", "abstract public boolean init();", "public abstract boolean init();", "public boolean init() {\n\r\n return true;\r\n }", "private void checkInitialization()\r\n\t{\r\n\t\tif ( !initialized )\r\n\t\t{\r\n\t\t\tthrow new SecurityException( \"Calculator is not properly initialized.\" );\r\n\t\t}//end if\r\n\t}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n\n\t}", "private void init() {\n }", "public static void init() {\n\t\t\n\t}", "private void _init() {\n }", "@Test\n\tpublic void testInit() {\n\t\t/*\n\t\t * This test is just use to initialize everything and ensure a better\n\t\t * performance measure for all the other tests.\n\t\t */\n\t}", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayBag object is not initialized \" +\n \"properly.\");\n }", "public boolean init();", "boolean init();", "private void init() {\n\n\n\n }", "public void init() {}", "public void init() {}", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"VectorStack object is not initialized \" +\n \"properly.\");\n }", "public static void init() {\n }", "public static void init() {\n }", "protected void _init(){}", "public static void init() {}", "public void init() {\r\n\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t\n\t}", "public void init() {\n\t\t}", "public void init() {\n\t\t\n\t}", "public static void init() {\n\n }", "static void init() {}", "public void init()\r\n {\r\n ;\r\n }", "protected void init() {\n\t}", "protected void init() {\n\t}", "protected void initVars() {}", "public void init(){}", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "protected abstract void init();", "public void init() { }", "public void init() { }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "protected void init() {\n }", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "private void checkInitialization()\n {\n if (!initialized)\n throw new SecurityException(\"ArrayQueue object is corrupt.\");\n }", "@Before\n\tpublic void init() {\n\t}", "public void init()\n {\n }", "public void init() {\r\n // nothing to do\r\n }", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "void initBeforeParsing() {\r\n }", "protected void checkInitialized() {\n \tcheckState(this.breeder!=null && this.threads!=null, \"Local state was not correctly set after being deserialized.\");\n }", "public void init() {\n System.out.println(name + \": Call explicit init()\");\n }", "@Before\n public void init() {\n }", "abstract public void init();", "private void initialize() {\n\t\t\n\t}", "@Before\n @Override\n public void init() {\n }", "private void initialize() {\n\t}", "public void init()\n { \t\n }", "boolean initialize() {\n // for now do nothing\n return true;\n }", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void init() {\n\n }", "public void init() {\n\n }", "protected void init(){\n }", "@Stub\n\tpublic void init()\n\t{\n\t\t//\n\t}", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "public abstract void init();", "@PostConstruct\n protected void checkInitialization() {\n ValidationUtility.checkNotNullNorEmpty(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n ValidationUtility.checkNotNullElements(profileTaskCheckers, \"profileTaskCheckers\",\n ProfileActionConfigurationException.class);\n }", "public void init(){\r\n\t\t\r\n\t}", "private void initialize() {\n }", "public void init2() {\n\t}", "public void init2() {\n }", "public void init2() {\n }" ]
[ "0.7191491", "0.7130437", "0.7125388", "0.70419335", "0.6883576", "0.6872347", "0.6836142", "0.6836142", "0.6836142", "0.6836142", "0.6821059", "0.6812856", "0.68078715", "0.6776118", "0.6754382", "0.67461187", "0.67436624", "0.674146", "0.6733211", "0.67073977", "0.67073977", "0.66992974", "0.6698972", "0.6698972", "0.6697738", "0.66943765", "0.6671038", "0.66580296", "0.66556007", "0.66556007", "0.66556007", "0.66421443", "0.66421443", "0.66421443", "0.66411096", "0.6628058", "0.6619756", "0.66171783", "0.6593703", "0.6577623", "0.6556587", "0.6556587", "0.653813", "0.65329474", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.6532267", "0.65068704", "0.65068704", "0.65028065", "0.65028065", "0.65028065", "0.65028065", "0.64937854", "0.6492823", "0.6492823", "0.6475659", "0.6470629", "0.64686155", "0.6452394", "0.6450746", "0.6431836", "0.6403594", "0.6401227", "0.6398667", "0.6397546", "0.6393922", "0.6389757", "0.63809043", "0.6370648", "0.63458765", "0.6336038", "0.63357854", "0.6327346", "0.6327346", "0.6327083", "0.63229585", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6316402", "0.6310373", "0.63088167", "0.630578", "0.6299644", "0.62974954", "0.62974954" ]
0.0
-1
/ 2.7 Assignment Statements
public void outAAssignEqStmt(AAssignEqStmt node) throws TypeException{ LinkedList<PExp> leftlist = node.getL(); LinkedList<PExp> rightlist = node.getR(); Iterator<PExp> iteratorone = leftlist.iterator(); Iterator<PExp> iteratortwo = rightlist.iterator(); while(iteratorone.hasNext() && iteratortwo.hasNext()){ PExp expone = iteratorone.next(); PExp exptwo = iteratortwo.next(); Type typeone = typemap.get(expone); Type typetwo = typemap.get(exptwo); if (!(expone instanceof ABlankExp) && !areSameType(typeone,typetwo)) { dumpSymTable(); throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Types on left and right don't match for assignment statement."); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void assignment() {\n\n\t\t\t}", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "public boolean isAssignment() {\n\t\treturn true;\n\t}", "public static void main(String[] args) {\n\t\tint a;\n\t\tSystem.out.println(a = 5);\n\t\tSystem.out.println(a);\n\t\tint b = a = 6;\n\t\tSystem.out.println(b);\n\t\tint c=b=a=7;\n\t\t\n\t\ta = 1;\n\t\ta += 2;\n\t\tSystem.out.println(a);\n\t\tint n = 45678;\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\n\t}", "private void assignIntoGrade() {\n }", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public static boolean assignment(FileInputStream f) {\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n \n CToken t = new CToken();\n t = getUsePeek(f);\n\n if (!t.token.equals(\"let\")) {\n return false;\n }\n CScanner.needToUsePeekedToken = false;\n\n if (!descriptor(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n t = getUsePeek(f);\n\n if (!t.token.equals(\"=\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n\n CScanner.needToUsePeekedToken = false;\n \n if (!expression(f)) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", true);\n }\n if (CScanner.needToUsePeekedToken) {\n t = CScanner.peekedToken;\n } //we peeked before this call, so use it\n else {\n t = CScanner.getNextToken(f);\n if(observer != null){\n observer.parser.setCurrentToken(t);\n }\n } //get token\n\n if (!t.token.equals(\";\")) {\n System.err.format(\"Syntax Error: In rule Assignment unexpected token \\\"%s\\\" of type %s on line %d.\\n\", t.token, t.type, t.lineNum);\n System.exit(0); \n }\n if(observer != null){\n observer.parser.setCurrentRule(\"assignment\", false);\n }\n return true;\n }", "public void getAssignment() {\n \n }", "Assignment createAssignment();", "Assignment createAssignment();", "public final void assignment() throws RecognitionException {\n CommonTree IDENT14=null;\n Object e =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:3: ( ^( '=' IDENT e= expression ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:5: ^( '=' IDENT e= expression )\n {\n match(input,38,FOLLOW_38_in_assignment524); \n\n match(input, Token.DOWN, null); \n IDENT14=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_assignment526); \n\n pushFollow(FOLLOW_expression_in_assignment530);\n e=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n \n localScope.set((IDENT14!=null?IDENT14.getText():null), e); \n lastAssignmentResult = e;\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "CDAssignStatement(CDExpression destination, CDExpression source) {\n _destination = destination;\n _source = source;\n }", "assign_op getAssign_op();", "public Object VisitAssignmentStatement(ASTAssignmentStatement assignstatement) {\n TypeClass lhstc = (TypeClass) assignstatement.variable().Accept(this);\n TypeClass rhstc = (TypeClass) assignstatement.value().Accept(this);\n Type lhs = lhstc.type();\n Type rhs = rhstc.type();\n \n if (lhs != rhs) {\n CompError.message(assignstatement.line(), \"Lefthand side and righthand \"\n + \"side of an assignment statement must match.\");\n //////System.out.println(\"lhs: \" + lhs + \" rhs: \" + rhs);\n }\n return bt.assignmentStatement(lhstc.value(), rhstc.value());\n }", "public void visit (AssignmentStatement aStmt)\n {\n // Bind memory in the hash table\n fMemory.put (aStmt.getVariableName (), aStmt.getVariableValue ());\n }", "@Test\n\tpublic void testAddAssignment() {\n\t}", "public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }", "public abstract void createAssignment(int p);", "protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}", "AssignmentRule createAssignmentRule();", "@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}", "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }", "private void processAssignment(String line) {\n\t\t//TODO: fill\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "abstract void assignOne();", "public AssignStmt assign_stmt() {\n AssignExpr ae = assign_expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after assignment\");\n }\n lexer.nextToken();\n\n return new AssignStmt(ae);\n }", "public Code visitAssignmentNode(StatementNode.AssignmentNode node) {\n beginGen(\"Assignment\");\n /* Generate code to evaluate the expression */\n Code code = new Code();\n /* Generate the code to load the address of the variable */\n for(int i= 0; i < node.getExps().size(); i++) {\n \tExpNode exp = node.getExps().get(i);\n \tcode.append(exp.genCode(this));\n }\n for(int i = node.getLValues().size() - 1; i >= 0; i--) {\n \tExpNode lValue = node.getLValues().get(i);\n \tcode.append(lValue.genCode(this));\n \tcode.genStore(lValue.getType());\n }\n endGen(\"Assignment\");\n return code;\n }", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "public String visit(AssignmentStatement n, String s) {\n n.f0.accept(this, null);\n n.f2.accept(this, null);\n return null;\n }", "@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }", "protected IExpressionValue assignment(List<Entity> declaredStates, List<Entity> possibleStates) \r\n\t\t\t\t\tthrows InvalidProbabilityRangeException, \r\n\t\t\t\t\t\t TableFunctionMalformedException,\r\n\t\t\t\t\t\t SomeStateUndeclaredException{\r\n\t\t\r\n\t\t// prepare a representation of a cell inside the temporary table\r\n\t\tTempTableProbabilityCell currentCell = new TempTableProbabilityCell(null, null);\r\n\t\t\r\n\t\t// SCAN FOR IDENTIFIER\r\n\t\tscan();\r\n\t\tString userDefinedVariableName = null;\t// this will become non-null if there is an unknown state declared (unknown states will become user-defined variables)\r\n\t\tif (token == 'x') {\r\n\t\t\tif (this.node != null) {\r\n\t\t\t\t// Consistency check C09\r\n\t\t\t\t// Remember declared states, so we can check later if all states was declared\r\n\t\t\t\tEntity possibleValue = null;\r\n\t\t\t\tint index = this.node.getPossibleValueIndex(this.noCaseChangeValue);\r\n\t\t\t\tif (index < 0) {\r\n\t\t\t\t\t// unknown states will be considered as a new variable that user has declared\r\n\t\t\t\t\tuserDefinedVariableName = this.noCaseChangeValue;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tpossibleValue = possibleStates.get(index);\r\n\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t//throw new TableFunctionMalformedException(e.getMessage());\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(this.node.toString(), e);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (possibleValue == null) {\r\n\t\t\t\t\t\tthrow new TableFunctionMalformedException(getNode().toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdeclaredStates.add(possibleValue);\r\n\t\t\t\t\tcurrentCell.setPossibleValue(possibleValue);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\texpected(\"Identifier\");\r\n\t\t}\r\n\r\n\t\t// LOOK FOR = OPERATOR\r\n\t\tmatch('=');\r\n\r\n\t\t// consistency check C09\r\n\t\t// ret verifies the sum of all declared states' probability (must be 1)\r\n\t\t// boolean hasUnknownValue shows if some ret was negative or NaN.\r\n\t\tIExpressionValue ret = expression();\t\r\n\t\tif (ret == null) {\r\n\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonDeclaredVarStateAssignment\"));\r\n\t\t}\r\n\t\tfloat retValue = 0;\t// initialize with a value which will not impact consistency check (the one that checks if sum is 1)\r\n\t\tif (userDefinedVariableName == null) {\r\n\t\t\t// this is a state of current node, so store the probability in order to calculate consistency later\r\n\t\t\tif (!ret.isNumeric()) {\r\n\t\t\t\t// state of nodes must be probabilities (numbers)\r\n\t\t\t\tthrow new TableFunctionMalformedException(getResource().getString(\"NonNumericProbAssignment\"));\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tretValue = Float.parseFloat(ret.getValue());\r\n\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\tretValue = Float.NaN;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// this is a user-defined value\r\n\t\t\t// store it in the scope of current if-clause\r\n\t\t\tthis.currentHeader.addUserDefinedVariable(userDefinedVariableName, ret);\r\n\t\t}\r\n\t\tboolean hasUnknownValue = Float.isNaN(retValue);\r\n\t\t\r\n\t\t// add cell to header\r\n\t\tcurrentCell.setProbability(ret);\r\n\t\tif (currentCell.getPossibleValue() != null && currentCell.getPossibleValue() != null) {\r\n\t\t\tthis.currentHeader.addCell(currentCell);\r\n\t\t}\r\n\t\t// Debug.println(\"Adding cell: \" + currentCell.getPossibleValue().getName() + \" = \" + ret.toString());\r\n\r\n\t\t// consistency check C09\r\n\t\t// a single state shall never have negative prob \r\n\t\tif ( isToNormalize()\r\n\t\t\t\t&& ((retValue < 0.0) \r\n//\t\t\t\t\t\t|| (1.0 < retValue)\r\n\t\t\t\t\t\t)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\t\r\n\t\t// LOOK FOR , (OPTIONAL)\r\n\t\tif (look == ',') {\r\n\t\t\tmatch(',');\r\n\t\t\tif (look != this.kwcode[this.lookup(\"IF\")]) {\r\n\t\t\t\tIExpressionValue temp = assignment(declaredStates, possibleStates);\r\n\t\t\t\tfloat tempValue = Float.NaN;\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttempValue = Float.parseFloat(temp.getValue());\r\n\t\t\t\t} catch (NumberFormatException e) {\r\n\t\t\t\t\ttempValue = Float.NaN;\r\n\t\t\t\t}\r\n\t\t\t\thasUnknownValue = hasUnknownValue || (Float.isNaN(tempValue));\r\n\t\t\t\tif (hasUnknownValue) {\r\n\t\t\t\t\tretValue = Float.NaN;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tretValue += tempValue;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\t// this is an if-clause after assignment.\r\n\t\t\t\t// we should finish assignment (assignments in same block of if-clauses must be always before the if clause)\r\n\t\t\t\t// if assignment and if-clause happens in same block, assingments must be only for user-defined variables\r\n\t\t\t\tif (!currentHeader.getCellList().isEmpty()) {\r\n\t\t\t\t\t// user-defined variables are not added to cellList. Assignments to states of variables are added to cell list.\r\n\t\t\t\t\t// if this is not empty, then there were assignments to states of variables, so this is invalid.\r\n\t\t\t\t\tthrow new SomeStateUndeclaredException(getResource().getString(\"NonUserDefinedVariablesFoundBeforeIfClause\"));\r\n\t\t\t\t}\r\n\t\t\t\t// let the upper clause actually handle the if=clause\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// Debug.println(\"Returned expression value = \" + retValue);\r\n\t\tif (isToNormalize() && (retValue < 0)) {\r\n\t\t\tthrow new InvalidProbabilityRangeException(getNode().toString());\r\n\t\t}\r\n\t\treturn new SimpleProbabilityValue(retValue);\r\n\t}", "abstract void assign(int i);", "VarAssignment createVarAssignment();", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }", "@Test\n\tpublic void updateAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\n\t\ttest_am.setName(\"Not As Hard Assignment\");\n\t\ttest_am.setEnabled(false);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am.getName());\n\t\t\n\t\tid = assign_hand.saveOrUpdate(test_am);\n\t\tAssignmentMsg test_am2 = assign_hand.getAssignment(id);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am2.getName());\n\t\tassertEquals(false,test_am2.isEnabled());\n\n\t}", "public static boolean AssignmentStatement(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"AssignmentStatement\")) return false;\n if (!nextTokenIs(b, IDENTIFIER)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeTokens(b, 0, IDENTIFIER, ASSIGN);\n r = r && FunctionInvocation(b, l + 1);\n exit_section_(b, m, ASSIGNMENT_STATEMENT, r);\n return r;\n }", "public String visit(AssignmentStatement n, LLVMRedux argu) throws Exception {\n String Identifier = n.f0.accept(this, argu);\n String storeArg1 = u.decodeIdentifier(Identifier);\n String type = u.getIdentifierType(Identifier);\n String storeArg2 = n.f2.accept(this, argu);\n u.println(\"store \"+u.javaTypeToLLVMType(type)+\" \"+storeArg2+\", \"+u.pointer(u.javaTypeToLLVMType(type))+\" \"+storeArg1);\n return storeArg1;\n }", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tint x = 3;\n\n\t\tx += 4; // x = x + 4;\n\n\t\tshort s = 4;\n\t\t// s = s + 5;\n\t\ts += 5;\n\n\t\tint a, b, c;\n\t\ta = b = c = 5;\n\n\t\tSystem.out.println(\"x = \" + x);\n\t\tSystem.out.println(\"s = \" + s);\n\n\t\tSystem.out.println(\"a = \" + a + \", b = \" + b + \", c = \" + c);\n\n\t\tSystem.out.println(3 == 4);\n\t\tSystem.out.println(3 != 4);\n\t}", "@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }", "public static void main(String[] args) {\n\t\tassignmentOperations();\n\t\t \n\t}", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "public void reassignIfNeeded() {\n\t}", "private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }", "public final void rule__SimpleStmt__AssAssignment_1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:16685:1: ( ( ruleAssignment ) )\r\n // InternalGo.g:16686:2: ( ruleAssignment )\r\n {\r\n // InternalGo.g:16686:2: ( ruleAssignment )\r\n // InternalGo.g:16687:3: ruleAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getSimpleStmtAccess().getAssAssignmentParserRuleCall_1_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getSimpleStmtAccess().getAssAssignmentParserRuleCall_1_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void visit(AssignmentOperator n) {\n n.f0.accept(this);\n }", "@Test\n\tpublic void learning() {\n\t\t\tint a = 13;\n\t\t\tint b = 14;\n\t\t\t\n\t\t\ta = a+b;//13+14 =27\n\t\t\tb = a-b;//27-14 =13\n\t\t\ta = a-b;//27-13\n\t\t\tSystem.out.println(\"Swap:B= \"+b+\"Swap:A=\"+a);\n\t\t\t\n\t\t\t\n//\t\t\tswap variable two numbers\n\t\t\t\t\tint c = 13;\n\t\t\t\t\tint d = 14;\n\t\t\t\t\t\n\t\t\t\t\tint temp = c;//13\n\t\t\t\t\tc = d;//14\n\t\t\t\t\td = temp;//13\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Swap:D= \"+d+\"Swap:C=\"+c);\n\t\t\t\t\t\n\t\t\t\t\t//Ternary operator\n\t\t\t\t\t\n\t\t\t\t\tint q = -2;\n\t\t\t\t\t//String result = (q>0)?\"Positive\": \"Negative\";\n\t\t\t\t\tString result = (q>0)?\"Positive\": (q<0)?\"Negative\": \"Zero\";\n\t\t\t\t\tSystem.out.println(result);\n\t\t\t\t\t\n\t\t\t\t\t\n\t}", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "@Test\n\tpublic void testAssignGrade4() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "public Assignment getOperatorAssignment_2() { return cOperatorAssignment_2; }", "public Stmt createAssignment(Position pos, Expr target, Operator op, Expr source) {\n return createAssignment(createAssign(pos, target, op, source));\n }", "public VariType visit(AssignmentStatement n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t MethodTable methodtable = (MethodTable)argu;\n\t Vari vari = methodtable.getvari(n.f0.f0.tokenImage);\n\t if(vari == null) {\n\t \t ClassTable classtable = methodtable.classtable;\n\t \t vari = classtable.getvari(n.f0.f0.tokenImage);\n\t \t if(vari == null) {\n\t \t\t PrintError.errorexist = true;\n\t\t \t String emsg = \"undefined variable \\\"\"+n.f0.f0.tokenImage+\"\\\"\";\n\t \t\t PrintError.print(emsg, n.f0.f0.beginLine, n.f0.f0.beginColumn, 1);\n\t \t\t return _ret;\n\t \t }\n\t }\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(VariType.isTheSameType(methodtable.toptable, vari.vari_type, t2) == false) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"assignstatement does not have matched types, one has type \"+vari.vari_type.type+\" , the other one has type \"+t2.type;\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t \t return _ret;\n\t }\n\t if(t2.type == \"Array\"){\n\t \t vari.init = true;\n\t \t if(t2.ifintegerliteral == true) {\n\t \t\t vari.alen = t2.integerliteral;\n\t \t }\n\t }\n\t n.f3.accept(this, argu);\n\t return _ret;\n\t }", "public void assignValueToVariable(HashMap<String, String> assignment) throws\r\n\t\t\tIllegalOperationException,TypeNotSupportedException, IncompatibleTypeException{\r\n\t\tMap.Entry<String, String> data = assignment.entrySet().iterator().next();\r\n\t\tString variableName = data.getKey();\r\n\t\tString valueName = data.getValue();\r\n\t\tVariable lastAppearanceOfVar = findVariable(variableName);//we'll search a variable named variableName\r\n\t\tif(lastAppearanceOfVar==null||lastAppearanceOfVar.isFinal()){//did'nt find variableName\\ found final\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}else {\r\n\t\t\t//if we did find a declared variable named variableName:\r\n\t\t\tif (lastAppearanceOfVar.compatibleWith(valueName)) {//if value's type's illegal -> exception\r\n\t\t\t\t//if we're trying, in a scope other than globalScope, to declare a variable by assigning it\r\n\t\t\t\t// with an uninitialised global variable:\r\n\t\t\t\tif((lastAppearanceOfVar.isGlobal()&&!lastAppearanceOfVar.isInitialized())&&!scopeType\r\n\t\t\t\t\t\t.equals(\"global\")){\r\n\t\t\t\t\t//we'll check if lastAppearanceOfVar was initialised in this scope (else it's illegal):\r\n\t\t\t\t\tassignUninitialisedGlobalVar(lastAppearanceOfVar, valueName);\r\n\t\t\t\t}else{ //else, the assignment's legal and we'll mark lastAppearanceOfVar as initialised:\r\n\t\t\t\t\tlastAppearanceOfVar.initialize();\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tassignWithReference(valueName, lastAppearanceOfVar);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final JavaliParser.assignmentTail_return assignmentTail(Object lhs) throws RecognitionException {\n\t\tJavaliParser.assignmentTail_return retval = new JavaliParser.assignmentTail_return();\n\t\tretval.start = input.LT(1);\n\n\t\tObject root_0 = null;\n\n\t\tToken eq=null;\n\t\tParserRuleReturnScope rightExpr =null;\n\n\t\tObject eq_tree=null;\n\t\tRewriteRuleTokenStream stream_80=new RewriteRuleTokenStream(adaptor,\"token 80\");\n\t\tRewriteRuleSubtreeStream stream_assignmentRHS=new RewriteRuleSubtreeStream(adaptor,\"rule assignmentRHS\");\n\n\t\ttry {\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:2: (eq= '=' rightExpr= assignmentRHS -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS ) )\n\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:343:4: eq= '=' rightExpr= assignmentRHS\n\t\t\t{\n\t\t\teq=(Token)match(input,80,FOLLOW_80_in_assignmentTail929); \n\t\t\tstream_80.add(eq);\n\n\t\t\tpushFollow(FOLLOW_assignmentRHS_in_assignmentTail933);\n\t\t\trightExpr=assignmentRHS();\n\t\t\tstate._fsp--;\n\n\t\t\tstream_assignmentRHS.add(rightExpr.getTree());\n\t\t\t// AST REWRITE\n\t\t\t// elements: assignmentRHS\n\t\t\t// token labels: \n\t\t\t// rule labels: retval\n\t\t\t// token list labels: \n\t\t\t// rule list labels: \n\t\t\t// wildcard labels: \n\t\t\tretval.tree = root_0;\n\t\t\tRewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.getTree():null);\n\n\t\t\troot_0 = (Object)adaptor.nil();\n\t\t\t// 344:3: -> ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t{\n\t\t\t\t// /home/luca/svn-repos/cd_students/2015ss/master/CD2_A1/src/cd/parser/Javali.g:344:6: ^( Assign[$eq, \\\"Assign\\\"] assignmentRHS )\n\t\t\t\t{\n\t\t\t\tObject root_1 = (Object)adaptor.nil();\n\t\t\t\troot_1 = (Object)adaptor.becomeRoot((Object)adaptor.create(Assign, eq, \"Assign\"), root_1);\n\t\t\t\tadaptor.addChild(root_1, lhs );\n\t\t\t\tadaptor.addChild(root_1, stream_assignmentRHS.nextTree());\n\t\t\t\tadaptor.addChild(root_0, root_1);\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tretval.tree = root_0;\n\n\t\t\t}\n\n\t\t\tretval.stop = input.LT(-1);\n\n\t\t\tretval.tree = (Object)adaptor.rulePostProcessing(root_0);\n\t\t\tadaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n\t\t}\n\n\t\tcatch (RecognitionException re) {\n\t\t\treportError(re);\n\t\t\tthrow re;\n\t\t}\n\n\t\tfinally {\n\t\t\t// do for sure before leaving\n\t\t}\n\t\treturn retval;\n\t}", "@Override\n\tpublic String visitAssignst(AssignstContext ctx) {\n\t\tParseTree cur = ctx.getChild(0);\n\t\tString left = null;\n\t\tString right = null;\n\t\tif(cur == ctx.ID()){\n\t\t\tString key=visitTerminal((TerminalNode)cur);\n\t\t\tRecord id= table.lookup(key);\n\t\t\tif (id==null) throw new RuntimeException(\"Identifier \"+key+\" is not declared\");\t\t\t\t\t\n\t\t\tleft = id.getReturnType();\n\t\t}\n\t\telse {left = visit(cur);}\n\t\tright = visit(ctx.getChild(2));\n\t\tif(right.equals(left)){\t\t\t\n\t\t\treturn right;\t\t\t\n\t\t}\n\t\telse throw new RuntimeException(\"Not the same type in left and right of Assign\");\n\t}", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "public static boolean assignment(PsiBuilder builder_, int level_) {\n if (!recursion_guard_(builder_, level_, \"assignment\")) return false;\n boolean result_ = false;\n boolean pinned_ = false;\n Marker marker_ = enter_section_(builder_, level_, _NONE_, \"<assignment>\");\n result_ = object_path(builder_, level_ + 1);\n result_ = result_ && consumeToken(builder_, ASSIGNMENT_OPERATOR);\n pinned_ = result_; // pin = 2\n result_ = result_ && assignment_2(builder_, level_ + 1);\n exit_section_(builder_, level_, marker_, ASSIGNMENT, result_, pinned_, null);\n return result_ || pinned_;\n }", "public IncrementableAssignment() {\n super(false);\n }", "private String processStatement() {\n StringBuilder result = new StringBuilder();\n //If the line is an instantiation or assignment statement\n if(line.contains(\"=\")) {\n //We get the parts of string before and after the '=' sign.\n String[] parts = line.split(\"=\");\n //Now we get the first and second part in separate strings.\n String firstPart = parts[0].trim();\n String secondPart = parts[1].trim();\n //Remove unnecessary spaces from the first part of the line.\n firstPart = removeUnnecessarySpaces(firstPart);\n //Split the parts further into single words.\n String[] firstPartWords = firstPart.split(\"\\\\s+\");\n\n //Now, process the first part of the line\n for(int i=0; i<firstPartWords.length; i++) {\n String word = firstPartWords[i];\n //Boolean value to check if this word is the last word\n boolean isLast = i==firstPartWords.length-1;\n //Now process each word\n processWordInFirstPart(word, result, isLast);\n }\n\n //Boolean value to check if this statement has anything to\n //do with objects. If secondPart contains 'new'.\n boolean relatedWithObject = secondPart.contains(\"new \");\n //Now adjust the value of secondPart for assigning.\n secondPart = secondPart.replace(\"new\", \"\");\n secondPart = secondPart.trim();\n\n //Now we have the result after processing the first part of\n //this statement.\n //If there are no spaces in the firstPart string, then this\n //is an assignment statement.\n if(firstPart.indexOf(' ')==-1) {\n if(relatedWithObject) {\n //If the second part of the string contains square and not round\n //brackets, this is not an object but an array.\n if(!secondPart.contains(\"(\") && secondPart.contains(\"[\"))\n result.insert(0,\"The array \").append(\" is initialized to value \").\n append(secondPart);\n //Else, this is obviously an object.\n else\n result.insert(0, \"The object \").append(\" is initialized to value \").\n append(secondPart);\n }\n else {\n //Now, we format the assignment statement.\n //Since there can be more than one assignments in the same\n //line, we add all the parts.\n //Here, \\u2190 is the left arrow in UTF-8.\n char arrow = '\\u2190';\n parts = line.split(\"\\\\s+\");\n result = new StringBuilder();\n for(String part : parts) {\n if(part.equals(\"=\")) {\n result.append(arrow).append(\" \");\n }\n else {\n result.append(part).append(\" \");\n }\n }\n }\n }\n //If this statement is not an assignment statement, then this\n //is an initialization statement.\n else {\n if(relatedWithObject) {\n result.append(\" is created with value \").append(secondPart).append(\".\");\n }\n //If the second part (the value) has something to do\n //with arrays, and not objects.\n else if(hasArrayAsMajorValue(secondPart)) {\n //Then process the second part according to array values.\n result.append(\" is instantiated to value in \").append(processArrayValue(secondPart));\n }\n else {\n result.append(\" is instantiated to value \").append(secondPart).append(\".\");\n }\n }\n }\n //If line does not contain \"=\" sign.\n else {\n //Incrementing statement.\n if(line.contains(\"++\")) {\n int index = line.indexOf('+');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Incremented.\");\n }\n //Decrementing statement.\n else if(line.contains(\"--\")) {\n int index = line.indexOf('-');\n String variable = line.substring(0,index);\n result.append(\"Variable \").append(variable).append(\" is Decremented.\");\n }\n //If line has a dot operator, it means this line calls a function.\n else if(line.contains(\".\")) {\n String[] parts = line.split(\"\\\\.\");\n String object = parts[0].trim();\n String method = parts[1].trim();\n result.append(\"The function \").append(method).append(\" from object \").\n append(object).append(\" is called.\");\n if(parts.length>2) {\n result = new StringBuilder();\n result.append(removeUnnecessarySpaces(line)).append(\" is performed respectively.\");\n }\n }\n //If the line contains a bracket, it is calling a member method.\n else if(line.contains(\"(\")) {\n result.append(\"The member method \").append(line).append(\" is called.\");\n }\n else {\n String[] words = line.split(\"\\\\s+\");\n for(int i=0; i<words.length; i++) {\n String word = words[i];\n boolean isLast = i==words.length-1;\n processWordInFirstPart(word, result, isLast);\n }\n result.append(\" is declared.\");\n }\n }\n return result.toString();\n }", "@Override\n public CodeFragment visitAssignmentStat(AlangParser.AssignmentStatContext ctx) {\n String name = ctx.ID().getText();\n if (!variableExists(name)) {\n this.addError(ctx, name, \"Assignment to undeclared variable\");\n return new CodeFragment(\"\");\n }\n\n Variable v = this.globals.get(name);\n v.setValue(ctx.global_expression().getText());\n v.setHasValue();\n\n return new CodeFragment(\"\");\n }", "public AssignAST(String name, AST right) {\n\t\tthis.left = new SymbolAST(name);\n\t\tthis.right = right;\n\t}", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "void visit(final Assignment assignment);", "public void assignment(Node n_parent) {\r\n System.out.println(\":: assignment:\"+n_parent.getData());\r\n if(token.get(lookAheadPossition).contains(\"ident(\")){\r\n System.out.println(\":: assignment::if::1\");\r\n String identifier=\"\";\r\n System.out.println(\":: assignment::if::2\");\r\n identifier = token.get(lookAheadPossition).substring(6, token.get(lookAheadPossition).length() - 1);\r\n System.out.println(\":: assignment::if -id \"+identifier);\r\n String type=\"\";\r\n type = (String) symbolTable.get(identifier);\r\n type = type.toLowerCase();\r\n System.out.println(\":: assignment::if -type \"+type);\r\n\r\n n_parent.setChildren(identifier+\":\"+type);\r\n this.CheckError(token.get(lookAheadPossition));\r\n this.CheckError(\"ASGN\");\r\n this.restAssignment(n_parent);\r\n }\r\n }", "public static BinaryExpression addAssignChecked(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final EObject ruleAssignment() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Enumerator lv_operator_1_0 = null;\r\n\r\n EObject lv_expression_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2335:28: ( ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:1: ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:1: ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:2: ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:2: ( ( ruleFQN ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2337:1: ( ruleFQN )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2337:1: ( ruleFQN )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2338:3: ruleFQN\r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tif (current==null) {\r\n \t current = createModelElement(grammarAccess.getAssignmentRule());\r\n \t }\r\n \r\n }\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getVarRefVariableCrossReference_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleFQN_in_ruleAssignment5365);\r\n ruleFQN();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2351:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2352:1: (lv_operator_1_0= ruleAssignmentOperator )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2352:1: (lv_operator_1_0= ruleAssignmentOperator )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2353:3: lv_operator_1_0= ruleAssignmentOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getOperatorAssignmentOperatorEnumRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleAssignmentOperator_in_ruleAssignment5386);\r\n lv_operator_1_0=ruleAssignmentOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getAssignmentRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_1_0, \r\n \t\t\"AssignmentOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2369:2: ( (lv_expression_2_0= ruleExpression ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2370:1: (lv_expression_2_0= ruleExpression )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2370:1: (lv_expression_2_0= ruleExpression )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2371:3: lv_expression_2_0= ruleExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getExpressionExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExpression_in_ruleAssignment5407);\r\n lv_expression_2_0=ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getAssignmentRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"expression\",\r\n \t\tlv_expression_2_0, \r\n \t\t\"Expression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n public Void visit(AssignmentExpression nd, SuccessorInfo i) {\n if (\"&&=\".equals(nd.getOperator()) || \"||=\".equals(nd.getOperator()) || \"??=\".equals(nd.getOperator())) {\n if (\"&&=\".equals(nd.getOperator())) {\n // from lhs to rhs on truthy. from lhs to false-branch on falsy.\n visitWithSuccessors(nd.getLeft(), First.of(nd.getRight()), i.getSuccessors(false));\n } else if (\"||=\".equals(nd.getOperator())) {\n // from lhs to true-branch on truthy. from lhs to rhs on falsy.\n visitWithSuccessors(nd.getLeft(), i.getSuccessors(true), First.of(nd.getRight()));\n } else { // \"??=\"\n // the union of the above - truthyness is unknown.\n visitWithSuccessors(nd.getLeft(), union(First.of(nd.getRight()), i.getAllSuccessors()));\n }\n \n visitWithSuccessors(nd.getRight(), nd); // from right to assignment.\n\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n } else {\n visitAssign(nd, nd.getLeft(), nd.getRight());\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n }\n return null;\n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "public void setDirectAssignmentString(String directAssignmentString1) {\r\n this.directAssignmentString = directAssignmentString1;\r\n }", "public static void check18 (IR.Node node){\n if (node == null) return; \n if (node instanceof AssignmentStatement){\n if ((((AssignmentStatement)node).assignExpr) != null){\n String s1 = ((AssignmentStatement)node).loc.getType(); \n String s2 = ((AssignmentStatement)node).assignExpr.getType();\n if (!(s1.equals(\"any\") || s2.equals(\"any\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(((AssignmentStatement)node).assignExpr.getType()))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n }\n\n }\n if ((((AssignmentStatement)node).op.type == Op.Type.minusequals) || (((AssignmentStatement)node).op.type == Op.Type.plusequals)){\n String s1 = ((AssignmentStatement)node).loc.getType(); \n String s2 = ((AssignmentStatement)node).assignExpr.getType();\n if (!(s1.equals(\"any\") || s2.equals(\"any\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"int\"))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n if (!(((AssignmentStatement)node).assignExpr.getType().equals(\"int\"))){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n }\n }\n if ((((AssignmentStatement)node).op.type == Op.Type.increment) || (((AssignmentStatement)node).op.type == Op.Type.decrement)){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"int\"))){\n if (!(((AssignmentStatement)node).loc.getType().equals(\"any\"))){\n throw new IllegalStateException (\"Bad assignment.\");\n } \n }\n }\n }\n if (node instanceof ForStatement){\n if (((ForStatement)node).initLoc == null || ((ForStatement)node).initExpr == null){\n throw new IllegalStateException (\"Bad assignment.\"); \n }\n if (!(((ForStatement)node).initLoc.getType().equals(((ForStatement)node).initExpr.getType()))){\n throw new IllegalStateException (\"Bad assignment.\"); \n } \n }\n List <IR.Node> children = node.getChildren(); \n if (children == null) return; \n\n for (int child=0; child<children.size(); child++){\n check18 (children.get(child)); \n }\n }", "@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private void checkAssignment(Assignment node) {\n String nodeName = node.name.name;\n boolean error = false;\n\n // check whether assignment would cause a loop\n if (node.value instanceof ConstantReference) {\n ConstantReference reference = ((ConstantReference) node.value);\n if (reference.name.equals(nodeName)) {\n node.setError(\"You can't assign a constant to itself.\");\n error = true;\n } else {\n isCircularReference(reference);\n }\n }\n // if assignment is an operation, check the operation\n if (node.value instanceof Operation) {\n checkOperation((Operation) node.value);\n }\n\n // if no error has been found add it to symboltable.\n if (!error) {\n symboltable.put(nodeName, node.value);\n }\n }", "@Test\n\tpublic void testAssignGrade2() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor2\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertFalse(grade.equals(new Integer(90)));\n\t}", "@Test\n\tpublic void testAssignGrade() {\n\t\tthis.admin.createClass(\"Class1\", 2017, \"Instructor1\", 20);\n\t\tthis.instructor.addHomework(\"Instructor1\", \"Class1\", 2017, \"HW1\");\n\t\tthis.student.submitHomework(\"Student1\", \"HW1\", \"Solution\", \"Class1\", 2017);\n\t\tthis.instructor.assignGrade(\"Instructor1\", \"Class1\", 2017, \"HW1\", \"Student1\", 90);\n\t\tInteger grade = this.instructor.getGrade(\"Class1\", 2017, \"HW1\", \"Student1\");\n\t\tassertTrue(grade.equals(new Integer(90)));\n\t}", "public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:517:2: ( ( '=' ) )\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n {\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n // InternalDroneScript.g:519:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private AssignNode parseStatementIdentifier(Token identifier) {\n\t\tswitch (tokenReader.getCurrent().getType()) {\n\t\tcase ASSIGN:\n\t\t\ttokenReader.moveNext();\n\t\t\treturn new AssignNode(identifier, parserExpression.parse());\n\t\tcase ASSIGN_MINUS: case ASSIGN_PLUS:\n\t\t\treturn new AssignNode(identifier, new BinaryOperationNode(tokenReader.getCurrentAndMoveNext(), new VarNode(identifier), parserExpression.parse()));\n\t\tcase INCR: case DECR:\n\t\t\tToken oneToken = new Token(TokenType.NUMBER, \"1\", tokenReader.getCurrent().getIndex(), tokenReader.getCurrent().getRow(), tokenReader.getCurrent().getColumn());\n\t\t\tConstantNode one = new ConstantNode(oneToken);\n\t\t\treturn new AssignNode(identifier, new BinaryOperationNode(tokenReader.getCurrentAndMoveNext(), new VarNode(identifier), one));\n\t\tdefault:\n\t\t\tthrow new FunwapException(\"Invalid statement.\", tokenReader.getCurrent());\n\t\t}\n\t}", "@Test\r\n public void testAssignWeight() {\r\n System.out.println(\"assignWeight\");\r\n double notExpResult = 0.0;\r\n double result = weightAssignment.assignWeight();\r\n assertNotEquals(result, notExpResult, 0.0);\r\n }", "@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }", "public static void main(String[] args) {\n\t\t// +=:\n\t\tint a=9;\n\t\t//\ta = a+3; //12\n\t\t\n\t\t\ta += 3; // a = a+3 \n\t\t\n\t\t\tSystem.out.println(a); //12\n\t\t\n\t\tint b = \ta += 5 ; // a=17\n\t\t\t//\t\t17 \n\t\tSystem.out.println(b); \n\t\t// a=17 , b= 17 \n\t\t\n\t\t\n\t\tint c = a += b ; // a= 34, c=34 , b=17\n\t\t//\t\t 17 += 17 = 34\n\t\tSystem.out.println(c);\n\t\t\n\t\tint d = a += c; // a= 68, d=68, c= 34, b=17\n\t\t\t\t//34+=34\n\t\tSystem.out.println(d);\n\t\t\n\t\t\n\t\tint e = (d+=b) * 2;\n\t\t//\t\t (68+17) *2\n\t\t//\t\t 85 *2 = 170\n\t\t\n\t\tSystem.out.println(e); // d = 85, b 17, e= 170, c=34\n\t\tSystem.out.println(d); // 85\n\t\tSystem.out.println(c); // 34\n\t\tSystem.out.println(b); //17\n\t\t\n\t\t// d= 85 , b=17, e = 170, c= 34\n\t\tint f = b += d * 2;\t\t\n\t\t// b += 170;\n\t\t//\t 17 +=170 ==> 187\n\t\t\n\t\tSystem.out.println(f);\n\t\t// b= 187\n\t\t\n\n\t// -=: \n\t\t\n\t\tint g = 101;\n\t\tint h = g -= 1; // g = 100, h=100\n\t//\t\t\t101 -=1 ==> 100\t\n\t\tSystem.out.println(h); \n\t\t\n\t\t\n\t\tint i = g+=h+5 ; // g=205, i=205, h=100;\n\t\t//\t\t100+=100 + 5 ==> 205\n\t\tSystem.out.println(i);\n\t\t\n\t\tint j = h+= g % i ; // h =100 , j= 100;\n\t\t//\t\t100 += 205 % 205\n\t\t//\t\t100 += 0 \n\t\tSystem.out.println(j);\n\t\t\n\t\t\n\t\tint k = j -= h * 2 % 5; // j= 100\n\t\t//\t\tj -= 200 % 5\n\t\t// 100 -= 0 \n\t\tSystem.out.println(k);\n\t\t\n\t\t\n\t// *=:\t\n\t\tint A = 100;\n\t\tA *= 200; // A = A*200\n\t\tSystem.out.println(A);\n\t\t//A = 20000;\n\t\t\n\t\tint B = 100;\n\t\t\tB *= 100 / 10;\n\t//\t\tB *=100 / 10\n\t\t\n\t\t\tSystem.out.println(B); // B=1000\n\t\t\t\n\t\tB *= B - 1000; \n\t\t//\tB *= 1000 -1000 = 0\n\t\tSystem.out.println(B);\n\t\t\n\t\t\n\t// /=:\n\t\tint C = 1000;\n\t\t\tC /= 5;\n\t\t\tSystem.out.println(C);\n\t\t\t\n\t\tint D =10;\t \n\t\t\t\n\t//\tC /= D-10; denominator can't be zero\n\t\tSystem.out.println(C); // C =200\n\t\t\n\t\tC /=D+10; // C /20 ==> 200/20 ==>10\n\t\tSystem.out.println(C );\n\t\t\n\t\t\n\t// %=:\n\t\tint z = 10%3;// ==> 10/3 =3. ... remainder: 10 - 3*3 =1\n\t\t\n\t\t\n\t\t\n\t\tint E = 10;\n\t\tE %= 2; // E = 10%2\n\t\tSystem.out.println(E);\n\t\t\n\t\tint F = 100;\n\t\t\tF %=2; // F = F%2; ==>0\n\t\tSystem.out.println(F); // if it's 0 it means it's even number\n\t\t\n\t\t\n\t\tSystem.out.println(-100%3);\n\t\tSystem.out.println( 10.5% 3 ); \n\t\t//\t\t\t\t10.5 /3 = 3 reminder: 10.5 - 3*3 = 1.5\n\t\t\n\t\t\n\t\tint J = 300;\n\t\tint K =10;\n\t\t\n\t\t J += J %= K ;\n\t\t// j += 0\n\t\t// 300 +=0 ==>300\n\t\t\n\t\tSystem.out.println(J); // 300\n\t\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public void setLHS(String lhs)\n {\n this.lhs = lhs;\n }", "private static AssignExpr retrieveAssignExpression(Expression expression) {\n return expression.asAssignExpr();\n }", "public static void main(String[] args) \n\t{\n\t\tExample e1 = Example.getExample();\n\t\tExample e2 = Example.getExample();\n\n\t\t//System.out.println(e1 = e2); // o/p:--- Example@15db9742\n\t//\tSystem.out.println(e1 = = e2);\t// CE: illegal start of expression\n\n\t\tSystem.out.println(e1 == e2);\t//o/p :--- true\n\n\t\n\t}", "public static void main(String[] args) {\n int a = 123;\r\n int b = 526;\r\n\r\n System.out.println(a);\r\n System.out.println(b);\r\n\r\n int temp;\r\n temp = a;\r\n a = b;\r\n b = temp;\r\n\r\n System.out.println(a);\r\n System.out.println(b);\r\n\r\n // other solution from howotodoinjava.com\r\n int x = 100;\r\n int y = 200;\r\n System.out.println(\"x original: \" + x);\r\n System.out.println(\"y original: \" + y);\r\n\r\n x = x + y;\r\n y = x - y;\r\n x = x - y;\r\n\r\n System.out.println(\"x = \" + x + \" and y = \" + y);\r\n }", "public Arginfo visit(AssignmentStatement n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n \n String classname=argu.classname;\n String methodname=argu.methodname;\n String strtofind=n.f0.f0.tokenImage;\n if(globalmap.containsKey(strtofind)){\n \t System.out.print(\"\\tMOVE TEMP \"+globalmap.get(strtofind)+\" \");\n }\n else{\n \t System.out.print(\"\\tHSTORE TEMP 0 \"+classpos(strtofind,classname)+\" \");\n }\n \n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n return _ret;\n }", "@Override\n public Expression assign(String var, Expression expression) {\n return new Minus(getExpression1().assign(var, expression), getExpression2().assign(var, expression));\n }", "@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}", "public static void main(String[] args){\n int students;//declare once and we can keep reusing it\n students = 50; //assign value\n System.out.println(students);\n System.out.println(students);\n students = 70;//reassigning value\n System.out.println(students);\n\n\n students = 111;\n students = 125;\n System.out.println(students);\n\n int teachers;\n teachers = 2;\n int mentors;\n mentors = 25;\n System.out.print(\"Number of Teachers:\");\n System.out.println(teachers);//2\n System.out.print(\"Mentors:\");\n System.out.println(mentors);\n System.out.println(students);\n\n\n\n\n\n\n\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "public KSMemberBaseAssignment assignment() {\n return assignment;\n }", "@Test\r\n public void testToString() {\r\n System.out.println(\"toString\");\r\n Assignment instance = new Assignment();\r\n String expResult = \":=\";\r\n String result = instance.toString();\r\n assertEquals(expResult, result);\r\n }", "public abstract boolean setValue(Value value, boolean asAssignment);", "abstract void assignZero();", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "public T caseAssignStatement(AssignStatement object) {\n\t\treturn null;\n\t}", "public final void ruleOpSingleAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:299:2: ( ( '=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:301:1: '='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n match(input,11,FOLLOW_11_in_ruleOpSingleAssign580); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public AssignStatement(Element element) {\n super(element);\n }" ]
[ "0.7534801", "0.6672506", "0.6610759", "0.64522094", "0.63870823", "0.6326239", "0.62973696", "0.62903196", "0.6261572", "0.6261572", "0.6249823", "0.62346137", "0.62268746", "0.6218402", "0.6212996", "0.61845076", "0.618397", "0.6183423", "0.6173839", "0.6158609", "0.61579144", "0.610568", "0.6105082", "0.60880274", "0.6069147", "0.6067266", "0.6057213", "0.60422283", "0.5990329", "0.59792936", "0.59723485", "0.5945433", "0.5942488", "0.59271675", "0.589965", "0.5826582", "0.5802447", "0.5799678", "0.57672065", "0.57572657", "0.5749577", "0.57322496", "0.5696707", "0.56837684", "0.5682166", "0.56791186", "0.5673422", "0.56417495", "0.56252646", "0.56195545", "0.561436", "0.5612743", "0.56013584", "0.5596134", "0.5591821", "0.5586089", "0.5579916", "0.5574989", "0.5568726", "0.55582774", "0.55549353", "0.5546433", "0.55361956", "0.55325204", "0.5530718", "0.55271846", "0.55235386", "0.55219084", "0.5520635", "0.5520278", "0.5519161", "0.5515627", "0.54985636", "0.549793", "0.54969966", "0.5484576", "0.548172", "0.5478267", "0.5467272", "0.54547197", "0.5425225", "0.54194117", "0.5419006", "0.54169804", "0.5416519", "0.5414599", "0.5404556", "0.5404395", "0.5400781", "0.5379368", "0.53664154", "0.53619117", "0.536025", "0.5353505", "0.53443265", "0.53417844", "0.53336066", "0.53300965", "0.53248745", "0.5315567", "0.5308763" ]
0.0
-1
/ 2.8 OpAssignment Statements
public void outAAmpCaretEqStmt(AAmpCaretEqStmt node) throws TypeException{ PExp l = node.getL(); PExp r = node.getR(); Type typel = typemap.get(l); Type typer = typemap.get(r); if(areIntegral(typel,typer)) typemap.put(node,typel); else throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Attempt to use bit clear statement on two incompatible types."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "assign_op getAssign_op();", "private void assignment() {\n\n\t\t\t}", "@Test\n\tpublic void testAssignment(){\n\t\tVariable x = new Variable(\"x\");\n\t\tOperator plus = new Operator(\"+\");\n\t\tExpression one = f.createNumNode(1);\n\t\tExpression two = f.createNumNode(2);\n\t\tExpression exp = f.createInfixNode(plus, one, two);\n\t\tStatement assign = f.createAssignNode(x,exp);\n\t\tassertEquals(assign.textRepresentation(), \"x = 1 + 2;\");\n\t\n\t\tASTNodeCountVisitor v = new ASTNodeCountVisitor();\n\t\tassign.accept(v);\n\t\tassertEquals(\"assignment test1 fail\", v.numCount, 2);\n\t\tassertEquals(\"assignment test2 fail\", v.infixCount, 1);\n\t\tassertEquals(\"assignment test3 fail\", v.assignCount, 1);\n\t}", "@Override\n public Operator visitAssign(Assign operator)\n {\n throw new AssertionError();\n }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\r\n\tpublic Object visit(YoyooAssignmentOperator node, Object data) {\r\n\t\tassignOptMark = new OperatorMark(node.first_token.image);\r\n\t\treturn null;\r\n\t}", "public JCExpressionStatement makeAssignment(JCExpression lhs, JCExpression rhs) {\n return treeMaker.Exec(treeMaker.Assign(lhs, rhs));\n }", "CDAssignStatement(CDExpression destination, CDExpression source) {\n _destination = destination;\n _source = source;\n }", "public void visit(AssignmentOperator n) {\n n.f0.accept(this);\n }", "public Stmt createAssignment(Position pos, Expr target, Operator op, Expr source) {\n return createAssignment(createAssign(pos, target, op, source));\n }", "public static BinaryExpression assign(Expression left, Expression right) { throw Extensions.todo(); }", "public JCExpressionStatement makeAssignment(Tag tag, String varname, JCExpression exp1, JCExpression exp2) {\n return treeMaker.Exec(treeMaker.Assign(treeMaker.Ident(getNameFromString(varname)), treeMaker.Binary(tag, exp1, exp2)));\n }", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "@Override\n public void visit(VariableAssignNode variableAssignNode) {\n }", "@Override\n public void visitAssignment(AssignmentExpression assignmentExpression) {\n assignmentExpression.interpret(context);\n }", "protected Assign assign(Position pos, Expr e, Assign.Operator asgn, Expr val) throws SemanticException {\n Assign a = (Assign) xnf.Assign(pos, e, asgn, val).type(e.type());\n if (a instanceof FieldAssign) {\n assert (e instanceof Field);\n assert ((Field) e).fieldInstance() != null;\n a = ((FieldAssign) a).fieldInstance(((Field)e).fieldInstance());\n } else if (a instanceof SettableAssign) {\n assert (e instanceof X10Call);\n X10Call call = (X10Call) e;\n List<Expr> args = CollectionUtil.append(Collections.singletonList(val), call.arguments());\n X10Call n = xnf.X10Call(pos, call.target(), nf.Id(pos, SettableAssign.SET), call.typeArguments(), args);\n n = (X10Call) n.del().disambiguate(this).typeCheck(this).checkConstants(this);\n X10MethodInstance smi = n.methodInstance();\n X10MethodInstance ami = call.methodInstance();\n // List<Type> aTypes = new ArrayList<Type>(ami.formalTypes());\n // aTypes.add(0, ami.returnType()); // rhs goes before index\n // MethodInstance smi = xts.findMethod(ami.container(),\n // xts.MethodMatcher(ami.container(), SET, aTypes, context));\n a = ((SettableAssign) a).methodInstance(smi);\n a = ((SettableAssign) a).applyMethodInstance(ami);\n }\n return a;\n }", "Syntax.Node ParseAssignment(Token t, Syntax.NodeVar left) throws Exception{\n while (true){\n if(t.type==TokenType.ASSIGNMENT_OPERATOR){\n var right = ParseExpression();\n return new Syntax.AssignmentNode(\":=\", left, right);\n }\n else {\n lexer.putBack(t);\n break;\n //throw new Exception(\"Error in ParseAssignment!!! can't assign it \");\n }\n }\n throw new Exception(\"Error in ParseAssignment!!! \");\n\n }", "@Override\n\tpublic Object visitStatement_Assign(Statement_Assign statement_Assign, Object arg) throws Exception {\n\t\tif(statement_Assign.lhs.getTypeName().isType(Type.INTEGER) ||statement_Assign.lhs.getTypeName().isType(Type.BOOLEAN) ){\n\t\t\tstatement_Assign.e.visit(this, arg);\t\t\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t}\n\t\telse if(statement_Assign.lhs.getTypeName().isType(Type.IMAGE)){\n\t\t\t//if(statement_Assign.lhs.isCartesian){\n\t\t\t\tmv.visitFieldInsn(GETSTATIC, className, statement_Assign.lhs.name, ImageSupport.ImageDesc);\n\t\t\t\tmv.visitInsn(DUP);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getX\", ImageSupport.getXSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 3);\n\t\t\t\tmv.visitMethodInsn(INVOKESTATIC, ImageSupport.className, \"getY\", ImageSupport.getYSig, false);\n\t\t\t\tmv.visitIntInsn(ISTORE, 4);\t\t\t\t\n\t\t\t//}\n\t\t\t\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 1);\n\t\t\tLabel l1 = new Label();\n\t\t\tmv.visitLabel(l1);\n\t\t\tLabel l2 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l2);\n\t\t\tLabel l3 = new Label();\n\t\t\tmv.visitLabel(l3);\n\t\t\tmv.visitLineNumber(11, l3);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\tmv.visitInsn(ICONST_0);\n\t\t\tmv.visitVarInsn(ISTORE, 2);\n\t\t\tLabel l4 = new Label();\n\t\t\tmv.visitLabel(l4);\n\t\t\tLabel l5 = new Label();\n\t\t\tmv.visitJumpInsn(GOTO, l5);\n\t\t\tLabel l6 = new Label();\n\t\t\tmv.visitLabel(l6);\n\t\t\tmv.visitFrame(Opcodes.F_APPEND,1, new Object[] {Opcodes.INTEGER}, 0, null);\n\t\t\t\n\t\t\tstatement_Assign.e.visit(this, arg);\n\t\t\tstatement_Assign.lhs.visit(this, arg);\n\t\t\t\n\t\t\tmv.visitIincInsn(2, 1);\n\t\t\tmv.visitLabel(l5);\n\t\t\tmv.visitFrame(Opcodes.F_SAME, 0, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 2);\n\t\t\tmv.visitIntInsn(ILOAD, 4); // Y MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l6);\n\t\t\tLabel l7 = new Label();\n\t\t\tmv.visitLabel(l7);\n\t\t\tmv.visitIincInsn(1, 1);\n\t\t\tmv.visitLabel(l2);\n\t\t\tmv.visitFrame(Opcodes.F_CHOP,1, null, 0, null);\n\t\t\tmv.visitVarInsn(ILOAD, 1);\n\t\t\tmv.visitIntInsn(ILOAD, 3); // X MAX VALUE\n\t\t\tmv.visitJumpInsn(IF_ICMPLT, l3);\n\t\t}\n\t\treturn null;\n\t}", "@FunctionalInterface\n\tpublic interface Assignment<V> {\n\t\tV set(Program p,V v);\n\t}", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public String visit(AssignmentStatement n, LLVMRedux argu) throws Exception {\n String Identifier = n.f0.accept(this, argu);\n String storeArg1 = u.decodeIdentifier(Identifier);\n String type = u.getIdentifierType(Identifier);\n String storeArg2 = n.f2.accept(this, argu);\n u.println(\"store \"+u.javaTypeToLLVMType(type)+\" \"+storeArg2+\", \"+u.pointer(u.javaTypeToLLVMType(type))+\" \"+storeArg1);\n return storeArg1;\n }", "@Override\n public Integer visitAssign(CalculatorParser.AssignContext ctx) {\n String id = ctx.ID().getText(); // id is left-hand side of '='\n int value = visit(ctx.expr()); // compute value of expression on right\n memory.put(id, value); // store it in memory\n return value;\n }", "public interface AssignmentNode extends StackOperationNode {\n\n TemporaryVariableName getValueName();\n\n}", "VarAssignment createVarAssignment();", "public Code visitAssignmentNode(StatementNode.AssignmentNode node) {\n beginGen(\"Assignment\");\n /* Generate code to evaluate the expression */\n Code code = new Code();\n /* Generate the code to load the address of the variable */\n for(int i= 0; i < node.getExps().size(); i++) {\n \tExpNode exp = node.getExps().get(i);\n \tcode.append(exp.genCode(this));\n }\n for(int i = node.getLValues().size() - 1; i >= 0; i--) {\n \tExpNode lValue = node.getLValues().get(i);\n \tcode.append(lValue.genCode(this));\n \tcode.genStore(lValue.getType());\n }\n endGen(\"Assignment\");\n return code;\n }", "public Assignment getOperatorAssignment_2() { return cOperatorAssignment_2; }", "@Override\n public void visit(final OpAssign opAssign) {\n if (LOG.isDebugEnabled()) {\n LOG.debug(\"Starting visiting OpAssign\");\n }\n addOp(OpAssign.assign(rewriteOp1(opAssign), opAssign.getVarExprList()));\n }", "private void assign(DefinitionStmt stmt) {\n \n soot.Value rightOp = stmt.getRightOp();\n Value result;\n \n if (rightOp instanceof Immediate) {\n Immediate immediate = (Immediate) rightOp;\n result = immediate(stmt, immediate);\n } else if (rightOp instanceof ThisRef) {\n result = function.getParameterRef(1);\n } else if (rightOp instanceof ParameterRef) {\n ParameterRef ref = (ParameterRef) rightOp;\n int index = (sootMethod.isStatic() ? 1 : 2) + ref.getIndex();\n Value p = new VariableRef(\"p\" + index, getType(ref.getType()));\n result = widenToI32Value(p, isUnsigned(ref.getType()));\n } else if (rightOp instanceof CaughtExceptionRef) {\n result = call(BC_EXCEPTION_CLEAR, env);\n } else if (rightOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) rightOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n if (ref.getType() instanceof NullType) {\n // The base value is always null. Do a null check which will\n // always throw NPE.\n checkNull(stmt, base);\n return;\n } else {\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n result = call(getArrayLoad(ref.getType()), base, index);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n }\n } else if (rightOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) rightOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR, OBJECT_PTR));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new GetField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env, base);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) rightOp;\n FunctionRef fn = Intrinsics.getIntrinsic(sootMethod, stmt);\n if (fn == null) {\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_getter\", \n new FunctionType(getType(ref.getType()), ENV_PTR));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new GetStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n }\n result = call(fn, env);\n result = widenToI32Value(result, isUnsigned(ref.getType()));\n } else if (rightOp instanceof Expr) {\n if (rightOp instanceof BinopExpr) {\n BinopExpr expr = (BinopExpr) rightOp;\n Type rightType = getLocalType(expr.getType());\n Variable resultVar = function.newVariable(rightType);\n result = resultVar.ref();\n Value op1 = immediate(stmt, (Immediate) expr.getOp1());\n Value op2 = immediate(stmt, (Immediate) expr.getOp2());\n if (rightOp instanceof AddExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Add(resultVar, op1, op2));\n } else {\n function.add(new Fadd(resultVar, op1, op2));\n }\n } else if (rightOp instanceof AndExpr) {\n function.add(new And(resultVar, op1, op2));\n } else if (rightOp instanceof CmpExpr) {\n Variable t1 = function.newVariable(I1);\n Variable t2 = function.newVariable(I1);\n Variable t3 = function.newVariable(resultVar.getType());\n Variable t4 = function.newVariable(resultVar.getType());\n function.add(new Icmp(t1, Condition.slt, op1, op2));\n function.add(new Icmp(t2, Condition.sgt, op1, op2));\n function.add(new Zext(t3, new VariableRef(t1), resultVar.getType()));\n function.add(new Zext(t4, new VariableRef(t2), resultVar.getType()));\n function.add(new Sub(resultVar, new VariableRef(t4), new VariableRef(t3)));\n } else if (rightOp instanceof DivExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LDIV : IDIV;\n result = call(f, env, op1, op2);\n } else {\n // float or double\n function.add(new Fdiv(resultVar, op1, op2));\n }\n } else if (rightOp instanceof MulExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Mul(resultVar, op1, op2));\n } else {\n function.add(new Fmul(resultVar, op1, op2));\n }\n } else if (rightOp instanceof OrExpr) {\n function.add(new Or(resultVar, op1, op2));\n } else if (rightOp instanceof RemExpr) {\n if (rightType instanceof IntegerType) {\n FunctionRef f = rightType == I64 ? LREM : IREM;\n result = call(f, env, op1, op2);\n } else {\n FunctionRef f = rightType == DOUBLE ? DREM : FREM;\n result = call(f, env, op1, op2);\n }\n } else if (rightOp instanceof ShlExpr || rightOp instanceof ShrExpr || rightOp instanceof UshrExpr) {\n IntegerType type = (IntegerType) op1.getType();\n int bits = type.getBits();\n Variable t = function.newVariable(op2.getType());\n function.add(new And(t, op2, new IntegerConstant(bits - 1, (IntegerType) op2.getType())));\n Value shift = t.ref();\n if (((IntegerType) shift.getType()).getBits() < bits) {\n Variable tmp = function.newVariable(type);\n function.add(new Zext(tmp, shift, type));\n shift = tmp.ref();\n }\n if (rightOp instanceof ShlExpr) {\n function.add(new Shl(resultVar, op1, shift));\n } else if (rightOp instanceof ShrExpr) {\n function.add(new Ashr(resultVar, op1, shift));\n } else {\n function.add(new Lshr(resultVar, op1, shift));\n }\n } else if (rightOp instanceof SubExpr) {\n if (rightType instanceof IntegerType) {\n function.add(new Sub(resultVar, op1, op2));\n } else {\n function.add(new Fsub(resultVar, op1, op2));\n }\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof XorExpr) {\n function.add(new Xor(resultVar, op1, op2));\n } else if (rightOp instanceof CmplExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPL : DCMPL;\n function.add(new Call(resultVar, f, op1, op2));\n } else if (rightOp instanceof CmpgExpr) {\n FunctionRef f = op1.getType() == FLOAT ? FCMPG : DCMPG;\n function.add(new Call(resultVar, f, op1, op2));\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else if (rightOp instanceof CastExpr) {\n Value op = immediate(stmt, (Immediate) ((CastExpr) rightOp).getOp());\n soot.Type sootTargetType = ((CastExpr) rightOp).getCastType();\n soot.Type sootSourceType = ((CastExpr) rightOp).getOp().getType();\n if (sootTargetType instanceof PrimType) {\n Type targetType = getType(sootTargetType);\n Type sourceType = getType(sootSourceType);\n if (targetType instanceof IntegerType && sourceType instanceof IntegerType) {\n // op is at least I32 and has already been widened if source type had fewer bits then I32\n IntegerType toType = (IntegerType) targetType;\n IntegerType fromType = (IntegerType) op.getType();\n Variable v = function.newVariable(toType);\n if (fromType.getBits() < toType.getBits()) {\n // Widening\n if (isUnsigned(sootSourceType)) {\n function.add(new Zext(v, op, toType));\n } else {\n function.add(new Sext(v, op, toType));\n }\n } else if (fromType.getBits() == toType.getBits()) {\n function.add(new Bitcast(v, op, toType));\n } else {\n // Narrow\n function.add(new Trunc(v, op, toType));\n }\n result = widenToI32Value(v.ref(), isUnsigned(sootTargetType));\n } else if (targetType instanceof FloatingPointType && sourceType instanceof IntegerType) {\n // we always to a signed conversion since if op is char it has already been zero extended to I32\n Variable v = function.newVariable(targetType);\n function.add(new Sitofp(v, op, targetType));\n result = v.ref();\n } else if (targetType instanceof FloatingPointType && sourceType instanceof FloatingPointType) {\n Variable v = function.newVariable(targetType);\n if (targetType == FLOAT && sourceType == DOUBLE) {\n function.add(new Fptrunc(v, op, targetType));\n } else if (targetType == DOUBLE && sourceType == FLOAT) {\n function.add(new Fpext(v, op, targetType));\n } else {\n function.add(new Bitcast(v, op, targetType));\n }\n result = v.ref();\n } else {\n // F2I, F2L, D2I, D2L\n FunctionRef f = null;\n if (targetType == I32 && sourceType == FLOAT) {\n f = F2I;\n } else if (targetType == I64 && sourceType == FLOAT) {\n f = F2L;\n } else if (targetType == I32 && sourceType == DOUBLE) {\n f = D2I;\n } else if (targetType == I64 && sourceType == DOUBLE) {\n f = D2L;\n } else {\n throw new IllegalArgumentException();\n }\n Variable v = function.newVariable(targetType);\n function.add(new Call(v, f, op));\n result = v.ref();\n }\n } else {\n if (sootTargetType instanceof soot.ArrayType \n && ((soot.ArrayType) sootTargetType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) sootTargetType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(CHECKCAST_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(sootTargetType);\n Trampoline trampoline = new Checkcast(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n }\n } else if (rightOp instanceof InstanceOfExpr) {\n Value op = immediate(stmt, (Immediate) ((InstanceOfExpr) rightOp).getOp());\n soot.Type checkType = ((InstanceOfExpr) rightOp).getCheckType();\n if (checkType instanceof soot.ArrayType \n && ((soot.ArrayType) checkType).getElementType() instanceof PrimType) {\n soot.Type primType = ((soot.ArrayType) checkType).getElementType();\n GlobalRef arrayClassPtr = new GlobalRef(\"array_\" + getDescriptor(primType), CLASS_PTR);\n Variable arrayClass = function.newVariable(CLASS_PTR);\n function.add(new Load(arrayClass, arrayClassPtr));\n result = call(INSTANCEOF_PRIM_ARRAY, env, arrayClass.ref(), op);\n } else {\n String targetClassName = getInternalName(checkType);\n Trampoline trampoline = new Instanceof(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, op);\n }\n } else if (rightOp instanceof NewExpr) {\n String targetClassName = getInternalName(((NewExpr) rightOp).getBaseType());\n FunctionRef fn = null;\n if (targetClassName.equals(this.className)) {\n fn = FunctionBuilder.allocator(sootMethod.getDeclaringClass()).ref();\n } else {\n Trampoline trampoline = new New(this.className, targetClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n result = call(fn, env);\n } else if (rightOp instanceof NewArrayExpr) {\n NewArrayExpr expr = (NewArrayExpr) rightOp;\n Value size = immediate(stmt, (Immediate) expr.getSize());\n if (expr.getBaseType() instanceof PrimType) {\n result = call(getNewArray(expr.getBaseType()), env, size);\n } else {\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Anewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, size);\n }\n } else if (rightOp instanceof NewMultiArrayExpr) {\n NewMultiArrayExpr expr = (NewMultiArrayExpr) rightOp;\n if (expr.getBaseType().numDimensions == 1 && expr.getBaseType().getElementType() instanceof PrimType) {\n Value size = immediate(stmt, (Immediate) expr.getSize(0));\n result = call(getNewArray(expr.getBaseType().getElementType()), env, size);\n } else {\n for (int i = 0; i < expr.getSizeCount(); i++) {\n Value size = immediate(stmt, (Immediate) expr.getSize(i));\n Variable ptr = function.newVariable(new PointerType(I32));\n function.add(new Getelementptr(ptr, dims.ref(), 0, i));\n function.add(new Store(size, ptr.ref()));\n }\n Variable dimsI32 = function.newVariable(new PointerType(I32));\n function.add(new Bitcast(dimsI32, dims.ref(), dimsI32.getType()));\n String targetClassName = getInternalName(expr.getType());\n Trampoline trampoline = new Multianewarray(this.className, targetClassName);\n trampolines.add(trampoline);\n result = call(trampoline.getFunctionRef(), env, new IntegerConstant(expr.getSizeCount()), dimsI32.ref());\n }\n } else if (rightOp instanceof InvokeExpr) {\n result = invokeExpr(stmt, (InvokeExpr) rightOp);\n } else if (rightOp instanceof LengthExpr) {\n Value op = immediate(stmt, (Immediate) ((LengthExpr) rightOp).getOp());\n checkNull(stmt, op);\n Variable v = function.newVariable(I32);\n function.add(new Call(v, ARRAY_LENGTH, op));\n result = v.ref();\n } else if (rightOp instanceof NegExpr) {\n NegExpr expr = (NegExpr) rightOp;\n Value op = immediate(stmt, (Immediate) expr.getOp());\n Type rightType = op.getType();\n Variable v = function.newVariable(op.getType());\n if (rightType instanceof IntegerType) {\n function.add(new Sub(v, new IntegerConstant(0, (IntegerType) rightType), op));\n } else {\n function.add(new Fmul(v, new FloatingPointConstant(-1.0, (FloatingPointType) rightType), op));\n }\n result = v.ref();\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n } else {\n throw new IllegalArgumentException(\"Unknown type for rightOp: \" + rightOp.getClass());\n }\n \n soot.Value leftOp = stmt.getLeftOp();\n \n if (leftOp instanceof Local) {\n Local local = (Local) leftOp;\n VariableRef v = new VariableRef(local.getName(), new PointerType(getLocalType(leftOp.getType())));\n function.add(new Store(result, v, !sootMethod.getActiveBody().getTraps().isEmpty()));\n } else {\n Type leftType = getType(leftOp.getType());\n Value narrowedResult = narrowFromI32Value(leftType, result);\n if (leftOp instanceof ArrayRef) {\n ArrayRef ref = (ArrayRef) leftOp;\n VariableRef base = (VariableRef) immediate(stmt, (Immediate) ref.getBase());\n Value index = immediate(stmt, (Immediate) ref.getIndex());\n checkNull(stmt, base);\n checkBounds(stmt, base, index);\n if (leftOp.getType() instanceof RefLikeType) {\n call(BC_SET_OBJECT_ARRAY_ELEMENT, env, base, index, narrowedResult);\n } else {\n call(getArrayStore(leftOp.getType()), base, index, narrowedResult);\n }\n } else if (leftOp instanceof InstanceFieldRef) {\n InstanceFieldRef ref = (InstanceFieldRef) leftOp;\n Value base = immediate(stmt, (Immediate) ref.getBase());\n checkNull(stmt, base);\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, OBJECT_PTR, getType(ref.getType())));\n } else {\n soot.Type runtimeType = ref.getBase().getType();\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n String runtimeClassName = runtimeType == NullType.v() ? targetClassName : getInternalName(runtimeType);\n Trampoline trampoline = new PutField(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()), runtimeClassName);\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, base, narrowedResult);\n } else if (leftOp instanceof StaticFieldRef) {\n StaticFieldRef ref = (StaticFieldRef) leftOp;\n FunctionRef fn = null;\n if (canAccessDirectly(ref)) {\n fn = new FunctionRef(mangleField(ref.getFieldRef()) + \"_setter\", \n new FunctionType(VOID, ENV_PTR, getType(ref.getType())));\n } else {\n String targetClassName = getInternalName(ref.getFieldRef().declaringClass());\n Trampoline trampoline = new PutStatic(this.className, targetClassName, \n ref.getFieldRef().name(), getDescriptor(ref.getFieldRef().type()));\n trampolines.add(trampoline);\n fn = trampoline.getFunctionRef();\n }\n call(fn, env, narrowedResult);\n } else {\n throw new IllegalArgumentException(\"Unknown type for leftOp: \" + leftOp.getClass());\n }\n }\n }", "public Assign createAssign(Position pos, Expr target, Operator op, Expr source) {\n return (Assign) xnf.Assign(pos, target, op, source).type(target.type());\n }", "public void visit (AssignmentStatement aStmt)\n {\n // Bind memory in the hash table\n fMemory.put (aStmt.getVariableName (), aStmt.getVariableValue ());\n }", "public AssignStatement(Element element) {\n super(element);\n }", "public LlvmValue visit(Assign n){\n\t\t\n\t\tSystem.out.format(\"assign********\\n\");\n\t\t\n\t\tLlvmValue rhs = n.exp.accept(this);\n\t\tLlvmRegister returns;\n\t\t//Nesta parte, para retornarmos o tipo certo, tivemos que converter todos os parametros do tipo\n\t\t//[ A x iB] para ponteiros. o Assembly reclamava quando tinha algum store ou algo do genero com tipos\n\t\t// diferentes\n\t\tif(rhs.type.toString().contains(\"x i\")){\n\t\t\t//System.out.format(\"expressao de rhs envolve arrays. fazendo casting...\\n\");\n\t\t\t\n\t\t\t//Fazer bitcast\n\t\t\tif(rhs.type.toString().contains(\" x i32\")){\n\t\t\t\treturns = new LlvmRegister(LlvmPrimitiveType.I32PTR);\n\t\t\t}else if(rhs.type.toString().contains(\" x i8\")){\n\t\t\t\treturns = new LlvmRegister(new LlvmPointer(LlvmPrimitiveType.I8));\n\t\t\t//Esse else eh meio inutil, mas pelo fato de eu querer usar elseif, deixei ele aqui mesmo.\n\t\t\t}else{\n\t\t\t\treturns = new LlvmRegister(rhs.type);\n\t\t\t}\n\t\t\t\n\t\t\tassembler.add(new LlvmBitcast(returns, rhs, returns.type));\n\t\t\tassembler.add(new LlvmStore(returns, n.var.accept(this)));\n\t\t}else{\n\t\t\t//Caso o tipo ja esteja ok, soh damos store com o rhs mesmo.\n\t\t\tassembler.add(new LlvmStore(rhs, n.var.accept(this)));\n\t\t}\n\t\treturn null;\n\t}", "public interface AttributeAssignmentExpression extends EObject {\r\n\r\n\tObject toProlog(String type, String variableName, String entityName);\r\n\r\n\tString toPrologExecution();\r\n}", "abstract void assign(int i);", "public final void ruleOpSingleAssign() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:517:2: ( ( '=' ) )\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n {\r\n // InternalDroneScript.g:518:2: ( '=' )\r\n // InternalDroneScript.g:519:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n match(input,13,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public abstract void assign(Object value) throws IllegalStateException, InterruptedException;", "public abstract boolean setValue(Value value, boolean asAssignment);", "public AssignAST(String name, AST right) {\n\t\tthis.left = new SymbolAST(name);\n\t\tthis.right = right;\n\t}", "public AssignStmt assign_stmt() {\n AssignExpr ae = assign_expr();\n if (lexer.token != Symbol.SEMICOLON) {\n error.signal(\"Semicolon expected after assignment\");\n }\n lexer.nextToken();\n\n return new AssignStmt(ae);\n }", "public static BinaryExpression powerAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public final void mMULTIPLY_ASSIGN() throws RecognitionException {\n try {\n int _type = MULTIPLY_ASSIGN;\n // /Users/benjamincoe/HackWars/C.g:232:2: ( '*=' )\n // /Users/benjamincoe/HackWars/C.g:232:4: '*='\n {\n match(\"*=\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "@Override\n\tpublic void visit(AssignNode node) {\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\t/**\n\t\t * Verificam fiii si construim perechea Variabila, Valoare pentru a fi\n\t\t * inserata in HahMap-ul din Evaluator\n\t\t */\n\t\tVariable x = null;\n\t\tValue i = null;\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(1).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(1).getName());\n\t\t}\n\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\tx = new Variable(node.getChild(0).getName());\n\t\t} else {\n\t\t\ti = new Value(node.getChild(0).getName());\n\t\t}\n\t\tEvaluator.variables.put(x.getName(), i.getName());\n\t\tnode.setName(i.getName());\n\t}", "abstract void assignZero();", "public Object VisitAssignmentStatement(ASTAssignmentStatement assignstatement) {\n TypeClass lhstc = (TypeClass) assignstatement.variable().Accept(this);\n TypeClass rhstc = (TypeClass) assignstatement.value().Accept(this);\n Type lhs = lhstc.type();\n Type rhs = rhstc.type();\n \n if (lhs != rhs) {\n CompError.message(assignstatement.line(), \"Lefthand side and righthand \"\n + \"side of an assignment statement must match.\");\n //////System.out.println(\"lhs: \" + lhs + \" rhs: \" + rhs);\n }\n return bt.assignmentStatement(lhstc.value(), rhstc.value());\n }", "public final void assignment() throws RecognitionException {\n CommonTree IDENT14=null;\n Object e =null;\n\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:3: ( ^( '=' IDENT e= expression ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:315:5: ^( '=' IDENT e= expression )\n {\n match(input,38,FOLLOW_38_in_assignment524); \n\n match(input, Token.DOWN, null); \n IDENT14=(CommonTree)match(input,IDENT,FOLLOW_IDENT_in_assignment526); \n\n pushFollow(FOLLOW_expression_in_assignment530);\n e=expression();\n\n state._fsp--;\n\n\n match(input, Token.UP, null); \n\n\n \n localScope.set((IDENT14!=null?IDENT14.getText():null), e); \n lastAssignmentResult = e;\n \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return ;\n }", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public IncrementableAssignment() {\n super(false);\n }", "private Expr visitLocalAssign(LocalAssign n) throws SemanticException { \n Position pos = n.position();\n if (n.operator() == Assign.ASSIGN) return n;\n X10Binary_c.Operator op = n.operator().binaryOperator();\n Local left = (Local) n.left();\n Expr right = n.right();\n Type R = left.type();\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos, left, op, right).type(R));\n return assign(pos, left, Assign.ASSIGN, val);\n }", "@Override\n\tpublic Object visit(ASTAssign node, Object data) {\n\t\tnode.jjtGetChild(0).jjtAccept(this, data);\n\t\tSystem.out.print(\" := \");\n\t\tnode.jjtGetChild(1).jjtAccept(this, data);\n\t\treturn null;\n\t}", "@Override\n public ExprType analyzeAssign(AnalyzeInfo info, ExprGenerator value)\n {\n ExprGenerator objGen = ((ExprPro) _objExpr).getGenerator();\n objGen.analyze(info);\n\n value.analyze(info);\n\n // php/3a6e, php/39o3\n // objGen.analyzeSetReference(info);\n objGen.analyzeSetModified(info);\n\n return ExprType.VALUE;\n }", "public static BinaryExpression addAssignChecked(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public abstract void assign(ParameterVector pv) throws SolverException;", "@Override\n public Void visit(AssignmentExpression nd, SuccessorInfo i) {\n if (\"&&=\".equals(nd.getOperator()) || \"||=\".equals(nd.getOperator()) || \"??=\".equals(nd.getOperator())) {\n if (\"&&=\".equals(nd.getOperator())) {\n // from lhs to rhs on truthy. from lhs to false-branch on falsy.\n visitWithSuccessors(nd.getLeft(), First.of(nd.getRight()), i.getSuccessors(false));\n } else if (\"||=\".equals(nd.getOperator())) {\n // from lhs to true-branch on truthy. from lhs to rhs on falsy.\n visitWithSuccessors(nd.getLeft(), i.getSuccessors(true), First.of(nd.getRight()));\n } else { // \"??=\"\n // the union of the above - truthyness is unknown.\n visitWithSuccessors(nd.getLeft(), union(First.of(nd.getRight()), i.getAllSuccessors()));\n }\n \n visitWithSuccessors(nd.getRight(), nd); // from right to assignment.\n\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n } else {\n visitAssign(nd, nd.getLeft(), nd.getRight());\n writeSuccessors(nd, i.getGuardedSuccessors(nd));\n }\n return null;\n }", "public VariType visit(AssignmentStatement n, Table argu) {\n\t VariType _ret=null;\n\t n.f0.accept(this, argu);\n\t MethodTable methodtable = (MethodTable)argu;\n\t Vari vari = methodtable.getvari(n.f0.f0.tokenImage);\n\t if(vari == null) {\n\t \t ClassTable classtable = methodtable.classtable;\n\t \t vari = classtable.getvari(n.f0.f0.tokenImage);\n\t \t if(vari == null) {\n\t \t\t PrintError.errorexist = true;\n\t\t \t String emsg = \"undefined variable \\\"\"+n.f0.f0.tokenImage+\"\\\"\";\n\t \t\t PrintError.print(emsg, n.f0.f0.beginLine, n.f0.f0.beginColumn, 1);\n\t \t\t return _ret;\n\t \t }\n\t }\n\t n.f1.accept(this, argu);\n\t VariType t2 = n.f2.accept(this, argu);\n\t if(VariType.isTheSameType(methodtable.toptable, vari.vari_type, t2) == false) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"assignstatement does not have matched types, one has type \"+vari.vari_type.type+\" , the other one has type \"+t2.type;\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1);\n\t \t return _ret;\n\t }\n\t if(t2.type == \"Array\"){\n\t \t vari.init = true;\n\t \t if(t2.ifintegerliteral == true) {\n\t \t\t vari.alen = t2.integerliteral;\n\t \t }\n\t }\n\t n.f3.accept(this, argu);\n\t return _ret;\n\t }", "public static DecisionOperator<IntVar> assign() {\n return DecisionOperator.int_eq;\n }", "protected void sequence_AssignmentStatement(ISerializationContext context, AssignmentStatement semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE));\n\t\t\tif (transientValues.isValueTransient(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, EntitiesPackage.Literals.STATEMENT__EXPR));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getAssigneeFieldIDTerminalRuleCall_0_0_1(), semanticObject.eGet(EntitiesPackage.Literals.ASSIGNMENT_STATEMENT__ASSIGNEE, false));\n\t\tfeeder.accept(grammarAccess.getAssignmentStatementAccess().getExprExpressionParserRuleCall_2_0(), semanticObject.getExpr());\n\t\tfeeder.finish();\n\t}", "public void assign() {\n\t\tfinal RandomAccess<U> accessor = img.randomAccess();\n\t\tfinal V output = function.createOutput();\n\t\tINPUT input = null;\n\t\twhile (iter.hasNext()) {\n\t\t\tinput = iter.next(input);\n\t\t\tboolean proceed = (condition == null) || (condition.isTrue(input));\n\t\t\tif (proceed) {\n\t\t\t\tfunction.compute(input, output);\n\t\t\t\taccessor.setPosition(iter.getCurrentPoint());\n\t\t\t\taccessor.get().setReal(output.getRealDouble());\n\t\t\t\taccessor.get().setImaginary(output.getImaginaryDouble());\n\t\t\t\t// FIXME\n\t\t\t\t// Note - for real datasets this imaginary assignment may waste cpu\n\t\t\t\t// cycles. Perhaps it can get optimized away by the JIT. But maybe not\n\t\t\t\t// since the type is not really known because this class is really\n\t\t\t\t// constructed from a raw type. We'd need to test how the JIT handles\n\t\t\t\t// this situation. Note that in past incarnations this class used\n\t\t\t\t// assigner classes. The complex version set R & I but the real\n\t\t\t\t// version just set R. We could adopt that approach once again.\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testAssignment() {\n try {\n Lexer lexer = new Lexer(new StringReader(\"n = 0;\"));\n Parser parser = new Parser(lexer);\n RootNode node = parser.program();\n AssignNode assignment = (AssignNode) node.get(0);\n assertTrue(assignment.getClass() == AssignNode.class);\n } catch (IOException e) {\n fail(e.getMessage());\n }\n }", "public Snippet visit(ArrayAssignment n, Snippet argu) {\n\t Snippet _ret=new Snippet(\"\",\"\",null,false);\n\t Snippet f0 = n.identifier.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\t Snippet f2 = n.identifierList.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t Snippet f6 = n.identifier1.accept(this, argu);\n\t n.nodeToken4.accept(this, argu);\n\t n.nodeToken5.accept(this, argu);\n\t String arrayIDToSetValue = f0.returnTemp;\n\t\t\tString valueToChangeToo = f6.returnTemp;\n\t\t\tString place = \"\";\n\t\t\tSymbol sym = getIdentifier(f0.returnTemp, currentBlock, currentClassName);\n\t\t\tX10ReferenceArray arr = (X10ReferenceArray)sym.symbolType;\n\t\t\t\n\t\t\tString temp = generateTabs(blockDepth)+f0.returnTemp+\"[\"+f2.returnTemp+\"] = \"+f6.returnTemp+\";\";//programClassName+\".\"+ arr.arrayElementType.typeName.toUpperCase() +\"SetValue\"+\"(\"+arrayIDToSetValue+\",\"+ identifierList.get(0)+\",\"+valueToChangeToo+\");\";\n\t\t\t_ret.returnTemp = temp;\n\t\t\ttPlasmaCode+=_ret.returnTemp+\"\\n\";\n\t return _ret;\n\t }", "abstract void assignOne();", "public void load(String operand, Integer value) throws Exception{\n if (operand.equals(\"=\")){\n dataMemory.setData(0, value);\n }else if (operand.equals(\" \")){\n Integer newValue = dataMemory.getData(value);\n dataMemory.setData(0, newValue);\n }else if (operand.equals(\"*\")){\n Integer newDirection = dataMemory.getData(value);\n Integer newValue = dataMemory.getData(newDirection);\n dataMemory.setData(0, newValue);\n }else{\n throw new IllegalArgumentException(\"No valid operand\");\n }\n }", "public IncrementableAssignment(Literal lit) {\n super(lit, false);\n variableOrdering.add(lit.variable());\n }", "protected Expr visitSettableAssign(SettableAssign n) throws SemanticException {\n Position pos = n.position();\n MethodInstance mi = n.methodInstance();\n List<Expr> args = new ArrayList<Expr>(n.index());\n if (n.operator() == Assign.ASSIGN) {\n // FIXME: this changes the order of evaluation, (a,i,v) -> (a,v,i)!\n args.add(0, n.right());\n return xnf.Call(pos, n.array(), xnf.Id(pos, mi.name()),\n args).methodInstance(mi).type(mi.returnType());\n }\n X10Binary_c.Operator op = n.operator().binaryOperator();\n X10Call left = (X10Call) n.left();\n MethodInstance ami = left.methodInstance();\n List<Formal> parms = new ArrayList<Formal>();\n Name xn = Name.make(\"x\");\n LocalDef xDef = xts.localDef(pos, xts.Final(), Types.ref(mi.container()), xn);\n Formal x = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, mi.container()), xnf.Id(pos, xn)).localDef(xDef);\n parms.add(x);\n List<Expr> idx1 = new ArrayList<Expr>();\n int i = 0;\n for (Type t : ami.formalTypes()) {\n Name yn = Name.make(\"y\"+i);\n LocalDef yDef = xts.localDef(pos, xts.Final(), Types.ref(t), yn);\n Formal y = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, t), xnf.Id(pos, yn)).localDef(yDef);\n parms.add(y);\n idx1.add(xnf.Local(pos, xnf.Id(pos, yn)).localInstance(yDef.asInstance()).type(t));\n i++;\n }\n Name zn = Name.make(\"z\");\n Type T = mi.formalTypes().get(0);\n assert (xts.isSubtype(ami.returnType(), T, context()));\n LocalDef zDef = xts.localDef(pos, xts.Final(), Types.ref(T), zn);\n Formal z = xnf.Formal(pos, xnf.FlagsNode(pos, xts.Final()),\n xnf.CanonicalTypeNode(pos, T), xnf.Id(pos, zn)).localDef(zDef);\n parms.add(z);\n Expr val = visitBinary((X10Binary_c) xnf.Binary(pos,\n xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T),\n op, xnf.Local(pos, xnf.Id(pos, zn)).localInstance(zDef.asInstance()).type(T)).type(T));\n List<Expr> args1 = new ArrayList<Expr>(idx1);\n args1.add(0, val);\n Type ret = mi.returnType();\n Expr res = xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, mi.name()), args1).methodInstance(mi).type(ret);\n // Have to create the appropriate node in case someone defines a set():void\n Block block = ret.isVoid() ?\n xnf.Block(pos, xnf.Eval(pos, res), xnf.Return(pos, xnf.Call(pos,\n xnf.Local(pos, xnf.Id(pos, xn)).localInstance(xDef.asInstance()).type(mi.container()),\n xnf.Id(pos, ami.name()), idx1).methodInstance(ami).type(T))) :\n xnf.Block(pos, xnf.Return(pos, res));\n Closure c = synth.makeClosure(pos, T, parms, block, context());\n X10MethodInstance ci = c.closureDef().asType().applyMethod();\n args.add(0, n.array());\n args.add(n.right());\n return xnf.ClosureCall(pos, c, args).closureInstance(ci).type(ret);\n }", "public AssignExpr assign_expr() {\n if (lexer.token != Symbol.IDENT) {\n error.signal(\"Expecting identifier at assign expression\");\n }\n \n String type = symbolTable.getVariable(lexer.getStringValue());\n if(type == null){\n error.show(\"Tried to assign a value to a variable (\"+lexer.getStringValue()+\") that hasn't been declared.\");\n } else {\n if(type.equals(\"STRING\")){\n error.show(\"Tried to assign a value to a declared string variable (\"+lexer.getStringValue()+\")\");\n }\n }\n \n Ident id = new Ident(lexer.getStringValue());\n \n lexer.nextToken();\n if (lexer.token != Symbol.ASSIGN) {\n error.signal(\"Expecting assign symbol at assign expression\");\n }\n lexer.nextToken();\n Expr e = expr();\n\n if(type != null && type.toLowerCase().equals(\"int\") && e.getType(symbolTable) != null && e.getType(symbolTable).toLowerCase().equals(\"float\"))\n error.show(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n else if (type != null && e.getType(symbolTable) != null && !type.equals(e.getType(symbolTable)))\n error.warning(\"Trying to assign a \"+e.getType(symbolTable)+\" to a \"+type);\n \n return new AssignExpr(id, e);\n }", "@Override\n public CodeFragment visitBlockAsgn(AlangParser.BlockAsgnContext ctx) {\n String name = ctx.ID().getText();\n if (!variableExists(name)) {\n this.addError(ctx, name, \"Assignment to undeclared variable\");\n return new CodeFragment(\"\");\n }\n\n CodeFragment result = new CodeFragment();\n CodeFragment expr = visit(ctx.expression());\n\n result.addCode(expr);\n\n Variable v = this.getVariable(name);\n v.setHasValue();\n\n int arity = ctx.index_to_array().size();\n\n if (v.arity > 0) {\n if (!checkArityAssignment(v, arity)) {\n this.addError(ctx, name, \"Bad assignment to array\");\n return new CodeFragment(\"\");\n }\n }\n\n if (arity == 0) {\n result.addCode(String.format(\"store %s %s, %s* %s\\n\", v.llvmtype, expr.getRegister(), v.llvmtype, v.reg));\n } else {\n /* in case we assign to array */\n int pointers = ctx.index_to_array().size();\n ArrayList<String> registers = new ArrayList<String>();\n for (int i = 0; i < arity; i++) {\n CodeFragment index = visit(ctx.index_to_array(i).expression());\n result.addCode(index);\n registers.add(index.getRegister());\n }\n\n CodeFragment ptr = this.getPointerToArray(v, registers);\n result.addCode(ptr);\n\n ST store = this.group.getInstanceOf(\"store\");\n store.add(\"type\", v.llvmtype);\n store.add(\"reg\", expr.getRegister());\n store.add(\"where\", ptr.getRegister());\n result.addCode(store.render() + \"\\n\");\n }\n\n return result;\n }", "public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1);\n }", "public final void ruleOpSingleAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:299:2: ( ( '=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:300:1: ( '=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:301:1: '='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n match(input,11,FOLLOW_11_in_ruleOpSingleAssign580); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpSingleAssignAccess().getEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private Operation expression(Scope scope, Vector queue)\r\n {\r\n Operation root = expression1(scope, queue);\r\n\r\n if (assign.contains(nextSymbol))\r\n {\r\n Operation op = new Operation();\r\n\r\n op.left = root;\r\n\r\n op.operator = assignmentOperator();\r\n op.right = expression(scope, queue);\r\n\r\n root = op;\r\n }\r\n\r\n return root;\r\n }", "public void reAssign(Object o) {\n\t}", "public static void main(String[] args) {\n\t\tint a;\n\t\tSystem.out.println(a = 5);\n\t\tSystem.out.println(a);\n\t\tint b = a = 6;\n\t\tSystem.out.println(b);\n\t\tint c=b=a=7;\n\t\t\n\t\ta = 1;\n\t\ta += 2;\n\t\tSystem.out.println(a);\n\t\tint n = 45678;\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\t\tSystem.out.println(n/=10);\n\n\t}", "@Override\n public Expression assign(String var, Expression expression) {\n return new Minus(getExpression1().assign(var, expression), getExpression2().assign(var, expression));\n }", "public static BinaryExpression powerAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "private Term parseAssign(final boolean required) throws ParseException {\n Term t1 = parseConditional(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '=') {\n Term t2 = parseAssign(true);\n if (t1 instanceof Term.Ref && ((Term.Ref) t1).getVariable() != null) {\n t1 = new Term.Assign(t1, t2);\n } else {\n reportError(\"Variable expected on the left side of assignment '='.\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "public void setOperandA(int val);", "Assignment createAssignment();", "Assignment createAssignment();", "private AssignNode parseStatementIdentifier(Token identifier) {\n\t\tswitch (tokenReader.getCurrent().getType()) {\n\t\tcase ASSIGN:\n\t\t\ttokenReader.moveNext();\n\t\t\treturn new AssignNode(identifier, parserExpression.parse());\n\t\tcase ASSIGN_MINUS: case ASSIGN_PLUS:\n\t\t\treturn new AssignNode(identifier, new BinaryOperationNode(tokenReader.getCurrentAndMoveNext(), new VarNode(identifier), parserExpression.parse()));\n\t\tcase INCR: case DECR:\n\t\t\tToken oneToken = new Token(TokenType.NUMBER, \"1\", tokenReader.getCurrent().getIndex(), tokenReader.getCurrent().getRow(), tokenReader.getCurrent().getColumn());\n\t\t\tConstantNode one = new ConstantNode(oneToken);\n\t\t\treturn new AssignNode(identifier, new BinaryOperationNode(tokenReader.getCurrentAndMoveNext(), new VarNode(identifier), one));\n\t\tdefault:\n\t\t\tthrow new FunwapException(\"Invalid statement.\", tokenReader.getCurrent());\n\t\t}\n\t}", "public static BinaryExpression andAssign(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "public abstract void createAssignment(int p);", "@Test\r\n public void test1(){\r\n Exp one = new NumericLiteral(1);\r\n Exp three = new NumericLiteral(3);\r\n Exp exp = new PlusExp(one, three);\r\n Stmt decl = new DeclStmt(\"x\");\r\n Stmt assign = new Assignment(\"x\", exp);\r\n Stmt seq = new Sequence(decl, assign);\r\n assertEquals(seq.text(), \"var x; x = 1 + 3\");\r\n }", "@Test\r\n public void testApplyTo() throws Exception {\r\n// System.out.println(\"applyTo\");\r\n// Expression leftOperand = new Literal(new Value(\"B1\"));\r\n// Expression rightOperand = new Literal(new Value(5));\r\n// Assignment instance = new Assignment();\r\n// Value expResult = new Value(5);\r\n// Value result = instance.applyTo(leftOperand, rightOperand);\r\n// assertEquals(expResult.toText(), result.toText());\r\n }", "@Override\r\n\tpublic Instruction lexParse(String[] words, LexicalParser lexParser) {\r\n\t\tif (words.length!=3) return null;\r\n\t\t\r\n\t\tif (!words[1].equals(\"=\")) return null;\r\n\t\t\r\n\t\trhs=TermParser.parse(words[2]);\r\n\t\tif (rhs==null) return null;\r\n\t\t\r\n\t\tTerm var=TermParser.parse(words[0]);\r\n\t\tif (var==null) return null;\r\n\t\t\r\n\t\treturn new SimpleAssignment(words[0], rhs);\r\n\t}", "public final void ruleOpMultiAssign() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:329:2: ( ( '+=' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:330:1: ( '+=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:331:1: '+='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n match(input,12,FOLLOW_12_in_ruleOpMultiAssign642); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private BDDState handleAssignment(CAssignment assignment, CFANode successor, CFAEdge edge)\n throws UnsupportedCodeException {\n CExpression lhs = assignment.getLeftHandSide();\n\n final String varName;\n if (lhs instanceof CIdExpression) {\n varName = ((CIdExpression) lhs).getDeclaration().getQualifiedName();\n } else {\n varName = functionName + \"::\" + lhs;\n }\n\n final CType targetType = lhs.getExpressionType();\n\n // next line is a shortcut, not necessary\n if (!precision.isTracking(MemoryLocation.fromQualifiedName(varName), targetType, successor)) {\n return state;\n }\n\n BDDState newState = state;\n CRightHandSide rhs = assignment.getRightHandSide();\n if (rhs instanceof CExpression exp) {\n final Partition partition = varClass.getPartitionForEdge(edge);\n\n if (isUsedInExpression(varName, exp)) {\n // make tmp for assignment,\n // this is done to handle assignments like \"a = !a;\" as \"tmp = !a; a = tmp;\"\n String tmpVarName = predmgr.getTmpVariableForPartition(partition);\n final Region[] tmp =\n predmgr.createPredicateWithoutPrecisionCheck(\n tmpVarName, bvComputer.getBitsize(partition, targetType));\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(partition, exp, targetType, location, precision);\n newState = newState.addAssignment(tmp, regRHS);\n\n // delete var, make tmp equal to (new) var, then delete tmp\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n newState = newState.addAssignment(var, tmp);\n newState = newState.forget(tmp);\n\n } else {\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bvComputer.getBitsize(partition, targetType),\n precision);\n newState = newState.forget(var);\n final CFANode location = successor;\n\n // make region for RIGHT SIDE and build equality of var and region\n final Region[] regRHS =\n bvComputer.evaluateVectorExpression(\n partition, (CExpression) rhs, targetType, location, precision);\n newState = newState.addAssignment(var, regRHS);\n }\n return newState;\n\n } else if (rhs instanceof CFunctionCallExpression) {\n // handle params of functionCall, maybe there is a sideeffect\n newState =\n handleExternalFunctionCall(\n newState, successor, ((CFunctionCallExpression) rhs).getParameterExpressions());\n\n // call of external function: we know nothing, so we delete the value of the var\n // TODO can we assume, that malloc returns something !=0?\n // are there some \"save functions\"?\n\n final Region[] var =\n predmgr.createPredicate(\n scopeVar(lhs),\n targetType,\n successor,\n bitsize,\n precision); // is default bitsize enough?\n newState = newState.forget(var);\n\n return newState;\n\n } else {\n throw new AssertionError(\"unhandled assignment: \" + edge.getRawStatement());\n }\n }", "public final void rule__OpMultiAssign__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:2499:1: ( ( '+=' ) | ( '-=' ) | ( '*=' ) | ( '/=' ) | ( '%=' ) | ( ( rule__OpMultiAssign__Group_5__0 ) ) | ( ( rule__OpMultiAssign__Group_6__0 ) ) )\r\n int alt7=7;\r\n switch ( input.LA(1) ) {\r\n case 16:\r\n {\r\n alt7=1;\r\n }\r\n break;\r\n case 17:\r\n {\r\n alt7=2;\r\n }\r\n break;\r\n case 18:\r\n {\r\n alt7=3;\r\n }\r\n break;\r\n case 19:\r\n {\r\n alt7=4;\r\n }\r\n break;\r\n case 20:\r\n {\r\n alt7=5;\r\n }\r\n break;\r\n case 27:\r\n {\r\n alt7=6;\r\n }\r\n break;\r\n case 26:\r\n {\r\n alt7=7;\r\n }\r\n break;\r\n default:\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 7, 0, input);\r\n\r\n throw nvae;\r\n }\r\n\r\n switch (alt7) {\r\n case 1 :\r\n // InternalDroneScript.g:2500:2: ( '+=' )\r\n {\r\n // InternalDroneScript.g:2500:2: ( '+=' )\r\n // InternalDroneScript.g:2501:3: '+='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); \r\n }\r\n match(input,16,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPlusSignEqualsSignKeyword_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalDroneScript.g:2506:2: ( '-=' )\r\n {\r\n // InternalDroneScript.g:2506:2: ( '-=' )\r\n // InternalDroneScript.g:2507:3: '-='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); \r\n }\r\n match(input,17,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getHyphenMinusEqualsSignKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 3 :\r\n // InternalDroneScript.g:2512:2: ( '*=' )\r\n {\r\n // InternalDroneScript.g:2512:2: ( '*=' )\r\n // InternalDroneScript.g:2513:3: '*='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); \r\n }\r\n match(input,18,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getAsteriskEqualsSignKeyword_2()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 4 :\r\n // InternalDroneScript.g:2518:2: ( '/=' )\r\n {\r\n // InternalDroneScript.g:2518:2: ( '/=' )\r\n // InternalDroneScript.g:2519:3: '/='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); \r\n }\r\n match(input,19,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getSolidusEqualsSignKeyword_3()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 5 :\r\n // InternalDroneScript.g:2524:2: ( '%=' )\r\n {\r\n // InternalDroneScript.g:2524:2: ( '%=' )\r\n // InternalDroneScript.g:2525:3: '%='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); \r\n }\r\n match(input,20,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getPercentSignEqualsSignKeyword_4()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 6 :\r\n // InternalDroneScript.g:2530:2: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n {\r\n // InternalDroneScript.g:2530:2: ( ( rule__OpMultiAssign__Group_5__0 ) )\r\n // InternalDroneScript.g:2531:3: ( rule__OpMultiAssign__Group_5__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n // InternalDroneScript.g:2532:3: ( rule__OpMultiAssign__Group_5__0 )\r\n // InternalDroneScript.g:2532:4: rule__OpMultiAssign__Group_5__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OpMultiAssign__Group_5__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_5()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 7 :\r\n // InternalDroneScript.g:2536:2: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n {\r\n // InternalDroneScript.g:2536:2: ( ( rule__OpMultiAssign__Group_6__0 ) )\r\n // InternalDroneScript.g:2537:3: ( rule__OpMultiAssign__Group_6__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n // InternalDroneScript.g:2538:3: ( rule__OpMultiAssign__Group_6__0 )\r\n // InternalDroneScript.g:2538:4: rule__OpMultiAssign__Group_6__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__OpMultiAssign__Group_6__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getOpMultiAssignAccess().getGroup_6()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Arginfo visit(AssignmentStatement n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n \n String classname=argu.classname;\n String methodname=argu.methodname;\n String strtofind=n.f0.f0.tokenImage;\n if(globalmap.containsKey(strtofind)){\n \t System.out.print(\"\\tMOVE TEMP \"+globalmap.get(strtofind)+\" \");\n }\n else{\n \t System.out.print(\"\\tHSTORE TEMP 0 \"+classpos(strtofind,classname)+\" \");\n }\n \n n.f1.accept(this, argu);\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n return _ret;\n }", "void assignOperators(Object rgID, List<Object> operIDs);", "public final void rule__Assignment__AsopAlternatives_2_0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:3794:1: ( ( RULE_ASSING_OP ) | ( '=' ) )\r\n int alt26=2;\r\n int LA26_0 = input.LA(1);\r\n\r\n if ( (LA26_0==RULE_ASSING_OP) ) {\r\n alt26=1;\r\n }\r\n else if ( (LA26_0==44) ) {\r\n alt26=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 26, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt26) {\r\n case 1 :\r\n // InternalGo.g:3795:2: ( RULE_ASSING_OP )\r\n {\r\n // InternalGo.g:3795:2: ( RULE_ASSING_OP )\r\n // InternalGo.g:3796:3: RULE_ASSING_OP\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAssignmentAccess().getAsopASSING_OPTerminalRuleCall_2_0_0()); \r\n }\r\n match(input,RULE_ASSING_OP,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAssignmentAccess().getAsopASSING_OPTerminalRuleCall_2_0_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalGo.g:3801:2: ( '=' )\r\n {\r\n // InternalGo.g:3801:2: ( '=' )\r\n // InternalGo.g:3802:3: '='\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getAssignmentAccess().getAsopEqualsSignKeyword_2_0_1()); \r\n }\r\n match(input,44,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getAssignmentAccess().getAsopEqualsSignKeyword_2_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static BinaryExpression leftShiftAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "public String visit(ArrayAssignmentStatement n, LLVMRedux argu) throws Exception {\n String storeArg1 = u.arrayAssignment(n.f0.accept(this,argu),n.f2.accept(this,argu));\n //if identifier's type is boolean array, zext i1 f5 to i8 and then store to the f1 result\n if(u.getRegType(storeArg1).equals(\"boolean[]\")){\n String zext = u.getReg();\n u.println(zext+\" = zext i1 \"+ n.f5.accept(this, argu)+\" to i8\");\n u.println(\"store \"+u.dereference(u.javaTypeToLLVMType(u.getRegType(storeArg1)))+\" \"+zext+\", \"+(u.javaTypeToLLVMType(u.getRegType(storeArg1)))+\" \"+storeArg1);\n }else{\n u.println(\"store \"+u.dereference(u.javaTypeToLLVMType(u.getRegType(storeArg1)))+\" \"+n.f5.accept(this, argu)+\", \"+(u.javaTypeToLLVMType(u.getRegType(storeArg1)))+\" \"+storeArg1);\n }\n\n\n\n return null;\n }", "public void SetRhs(IStatement s) {args[1] = s;}", "AssignmentRule createAssignmentRule();", "@Override //function was implemented as abstract in super class\n public void Set(Instruction toCopy){\n Extra temp = (Extra) toCopy; //downcast for valid assignment\n this.Price = temp.Price;\n this.Allergens = temp.Allergens;\n this.Notes = new String(temp.Notes);\n this.Density = temp.Density;\n this.Topping = new String(temp.Topping);\n this.Vegetarian = temp.Vegetarian;\n }", "public static BinaryExpression multiplyAssign(Expression expression0, Expression expression1, Method method) {\n return makeBinary(ExpressionType.MultiplyAssign, expression0, expression1, false, method);\n }", "public String visit(AssignmentStatement n, String s) {\n n.f0.accept(this, null);\n n.f2.accept(this, null);\n return null;\n }", "public static BinaryExpression addAssign(Expression expression0, Expression expression1, Method method, LambdaExpression lambdaExpression0, LambdaExpression lambdaExpression1) { throw Extensions.todo(); }", "public final EObject ruleAssignment() throws RecognitionException {\r\n EObject current = null;\r\n\r\n Enumerator lv_operator_1_0 = null;\r\n\r\n EObject lv_expression_2_0 = null;\r\n\r\n\r\n enterRule(); \r\n \r\n try {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2335:28: ( ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:1: ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:1: ( ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:2: ( ( ruleFQN ) ) ( (lv_operator_1_0= ruleAssignmentOperator ) ) ( (lv_expression_2_0= ruleExpression ) )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2336:2: ( ( ruleFQN ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2337:1: ( ruleFQN )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2337:1: ( ruleFQN )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2338:3: ruleFQN\r\n {\r\n if ( state.backtracking==0 ) {\r\n\r\n \t\t\tif (current==null) {\r\n \t current = createModelElement(grammarAccess.getAssignmentRule());\r\n \t }\r\n \r\n }\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getVarRefVariableCrossReference_0_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleFQN_in_ruleAssignment5365);\r\n ruleFQN();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n \r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2351:2: ( (lv_operator_1_0= ruleAssignmentOperator ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2352:1: (lv_operator_1_0= ruleAssignmentOperator )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2352:1: (lv_operator_1_0= ruleAssignmentOperator )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2353:3: lv_operator_1_0= ruleAssignmentOperator\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getOperatorAssignmentOperatorEnumRuleCall_1_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleAssignmentOperator_in_ruleAssignment5386);\r\n lv_operator_1_0=ruleAssignmentOperator();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getAssignmentRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"operator\",\r\n \t\tlv_operator_1_0, \r\n \t\t\"AssignmentOperator\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2369:2: ( (lv_expression_2_0= ruleExpression ) )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2370:1: (lv_expression_2_0= ruleExpression )\r\n {\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2370:1: (lv_expression_2_0= ruleExpression )\r\n // ../org.yakindu.sct.model.stext/src-gen/org/yakindu/sct/model/stext/parser/antlr/internal/InternalSText.g:2371:3: lv_expression_2_0= ruleExpression\r\n {\r\n if ( state.backtracking==0 ) {\r\n \r\n \t newCompositeNode(grammarAccess.getAssignmentAccess().getExpressionExpressionParserRuleCall_2_0()); \r\n \t \r\n }\r\n pushFollow(FOLLOW_ruleExpression_in_ruleAssignment5407);\r\n lv_expression_2_0=ruleExpression();\r\n\r\n state._fsp--;\r\n if (state.failed) return current;\r\n if ( state.backtracking==0 ) {\r\n\r\n \t if (current==null) {\r\n \t current = createModelElementForParent(grammarAccess.getAssignmentRule());\r\n \t }\r\n \t\tset(\r\n \t\t\tcurrent, \r\n \t\t\t\"expression\",\r\n \t\tlv_expression_2_0, \r\n \t\t\"Expression\");\r\n \t afterParserOrEnumRuleCall();\r\n \t \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n leaveRule(); \r\n }\r\n }\r\n \r\n catch (RecognitionException re) { \r\n recover(input,re); \r\n appendSkippedTokens();\r\n } \r\n finally {\r\n }\r\n return current;\r\n }", "@Override\n public String visit(AssignExpr n, Object arg) {\n return null;\n }", "public static BinaryExpression andAssign(Expression expression0, Expression expression1, Method method) { throw Extensions.todo(); }", "@Override\r\n\tpublic Object visitAssignmentStatement(\r\n\t\t\tAssignmentStatement assignmentStatement, Object arg)\r\n\t\t\tthrows Exception {\r\n\t\tString lvType = (String) assignmentStatement.lvalue.visit(this, arg);\r\n\t\tString exprType = (String) assignmentStatement.expression.visit(this, arg);\r\n\t\tif(lvType.equals(intType) || lvType.equals(booleanType) || lvType.equals(stringType)) {\r\n\t\t\tcheck(lvType.equals(exprType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t} else if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\tif (exprType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/List\")) {\r\n\t\t\t\tcheck(exprType.equals(lvType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t} else if (!exprType.equals(emptyList)) {\r\n\t\t\t\tString elementType = lvType.substring(lvType.indexOf(\"<\") + 1, lvType.lastIndexOf(\">\"));\r\n\t\t\t\tString listType = \"Ljava/util/ArrayList<\" + elementType + \">;\";\r\n\t\t\t\tcheck(exprType.equals(listType), \"uncompatible assignment type\", assignmentStatement);\r\n\t\t\t}\r\n\t\t} else {//if (lvType.substring(0, lvType.indexOf(\"<\")).equals(\"Ljava/util/Map$Entry\")){\r\n\t\t\tthrow new UnsupportedOperationException(\"Map is not support yet\");\r\n\t\t}\t\t\r\n\t\treturn null;\t\t\r\n\t}", "public final void rule__XAssignment__ValueAssignment_0_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:17396:1: ( ( ruleXAssignment ) )\r\n // InternalDroneScript.g:17397:2: ( ruleXAssignment )\r\n {\r\n // InternalDroneScript.g:17397:2: ( ruleXAssignment )\r\n // InternalDroneScript.g:17398:3: ruleXAssignment\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n pushFollow(FOLLOW_2);\r\n ruleXAssignment();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXAssignmentAccess().getValueXAssignmentParserRuleCall_0_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }" ]
[ "0.7210354", "0.69945985", "0.67361134", "0.66470355", "0.6579454", "0.64852005", "0.64803755", "0.6459971", "0.6437303", "0.6419684", "0.63994354", "0.63533723", "0.63489443", "0.63414764", "0.6323411", "0.6287235", "0.62545973", "0.6195921", "0.6162595", "0.6137918", "0.61309874", "0.61060774", "0.6103911", "0.6094766", "0.6094704", "0.6086988", "0.60795355", "0.6014037", "0.6004315", "0.5989329", "0.5985802", "0.59648967", "0.5931933", "0.5925249", "0.59152", "0.58856016", "0.5876293", "0.5847149", "0.58386165", "0.5825751", "0.5818899", "0.5818439", "0.58154637", "0.5815462", "0.5798687", "0.57963246", "0.5789061", "0.5770659", "0.5748196", "0.57425773", "0.5740688", "0.57373196", "0.57352", "0.5734289", "0.57095236", "0.57042384", "0.5695408", "0.5687128", "0.5683933", "0.5682404", "0.5674863", "0.566993", "0.5663401", "0.564471", "0.56367296", "0.5624962", "0.56097114", "0.5601996", "0.5593424", "0.5590397", "0.5576189", "0.55761534", "0.5574892", "0.5551266", "0.5541747", "0.5541747", "0.55287355", "0.5527128", "0.5526461", "0.551271", "0.54968303", "0.54935527", "0.54904026", "0.5483877", "0.5477753", "0.54736316", "0.5471075", "0.54683834", "0.5455698", "0.54556614", "0.5446726", "0.5441832", "0.5426546", "0.5423558", "0.5420891", "0.54176867", "0.54169464", "0.54107773", "0.53991795", "0.53948855", "0.53938824" ]
0.0
-1
/ 2.10 Print Statements
public void outAPrintStmt(APrintStmt node) throws TypeException{ LinkedList<PExp> explist = node.getExp(); for(PExp exp : explist){ Type exptype = typemap.get(exp); exptype = removeAlias(exptype); if(!(exptype instanceof IntType || exptype instanceof BooleanType || exptype instanceof Float64Type || exptype instanceof StringType || exptype instanceof RuneType)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Print of non-basic type."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void printStatement() {\n\t\t\n\t}", "public void print();", "public void print();", "public void print();", "public void print();", "@Override\n\t\t\tpublic void print() {\n\t\t\t\t\n\t\t\t}", "void print();", "void print();", "void print();", "void print();", "void print();", "@Override\n\tpublic void print() {\n\t\t\n\t}", "public String print();", "@Override\n\t\tpublic void print() {\n\n\t\t}", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "@Override\r\n\tpublic void print() {\n\t}", "@Override\r\n\t\t\tpublic void print() {\n\t\t\t\t\r\n\t\t\t}", "@VisibleForTesting\n void print();", "@Override\n\tpublic void print() {\n\n\t}", "void print() {\n\t\n\t}", "public static void print() {\r\n\t\tSystem.out.println(\"1: Push\");\r\n\t\tSystem.out.println(\"2: Pop\");\r\n\t\tSystem.out.println(\"3: Peek\");\r\n\t\tSystem.out.println(\"4: Get size\");\r\n\t\tSystem.out.println(\"5: Check if empty\");\r\n\t\tSystem.out.println(\"6: Exit\");\r\n\t\tSystem.out.println(\"====================================================================\");\r\n\t}", "void print() {\r\n\t\tOperations.print(lexemes, tokens);\r\n\t}", "PrintStatement createPrintStatement();", "public void print () {\n }", "@Override\n public void print(int n) {\n for (int i = 0; i < n; i++) {\n System.out.print(' ');\n }\n System.out.print(\" #{Built-in Procedure \");\n symbol.print(0);\n for (int i = 0; i < n; i++) {\n System.out.print(' ');\n }\n System.out.print('}');\n System.out.println();\n }", "public void print() {\n print$$dsl$guidsl$guigs();\n System.out.print( \" eqn =\" + eqn );\n }", "public void print()\n {\n System.out.println();\n System.out.println(\"Ticket to \" + destination +\n \" Price : \" + price + \" pence \" + \n \" Issued \" + issueDateTime);\n System.out.println();\n }", "public void print() {\r\n\t\t System.out.println(toString());\r\n\t }", "@Override\n public void print() {\n }", "public void println();", "private void print() {\n printInputMessage();\n printFrequencyTable();\n printCodeTable();\n printEncodedMessage();\n }", "public void oddPrinter()\n {\n oddPrinter(0);\n }", "abstract void print();", "private static void print(String p) {\n\t\tSystem.out.println(PREFIX + p);\n\t}", "public static void print() {\r\n System.out.println();\r\n }", "public void print() {\n\t\tSystem.out.println(\"针式打印机打印了\");\n\t\t\n\t}", "public void printResults() {\n\t System.out.println(\"BP\\tBR\\tBF\\tWP\\tWR\\tWF\");\n\t System.out.print(NF.format(boundaryPrecision) + \"\\t\" + NF.format(boundaryRecall) + \"\\t\" + NF.format(boundaryF1()) + \"\\t\");\n\t System.out.print(NF.format(chunkPrecision) + \"\\t\" + NF.format(chunkRecall) + \"\\t\" + NF.format(chunkF1()));\n\t System.out.println();\n }", "private void print(String s) {\n\t\tif (_verbose) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "public void print() {\n btprint(c);\n }", "@Override\n\tpublic void print(int indent) {\n\t}", "public abstract void print();", "public void printYourself(){\n\t}", "public String print(int format);", "private void print() {\r\n // Print number of survivors and zombies\r\n System.out.println(\"We have \" + survivors.length + \" survivors trying to make it to safety (\" + childNum\r\n + \" children, \" + teacherNum + \" teachers, \" + soldierNum + \" soldiers)\");\r\n System.out.println(\"But there are \" + zombies.length + \" zombies waiting for them (\" + cInfectedNum\r\n + \" common infected, \" + tankNum + \" tanks)\");\r\n }", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"\\nMSc. student:\\n\");\n\t\tsuper.print();\n\t}", "public void print() {\n\t\tSystem.out.println(toString());\n\t}", "public static void printAll() {\n\t\tint i=0;\n\t\twhile(i%2==0) {\n\t\t\ti+=2;\n\t\t\tSystem.out.print(i+\" \");\n\t\t\tif(i==100) break;\n\t\t}\n\t}", "public void print(int tabOrder);", "public void print() { /* FILL IN */ }", "public void print()\r\n\t{\r\n\t\tSystem.out.println(\"Method name: \" + name);\r\n\t\tSystem.out.println(\"Return type: \" + returnType);\r\n\t\tSystem.out.println(\"Modifiers: \" + modifiers);\r\n\r\n\t\tif(exceptions != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Exceptions: \" + exceptions[0]);\r\n\t\t\tfor(int i = 1; i < exceptions.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\", \" + exceptions[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Exceptions: none\");\r\n\t\t}\r\n\r\n\t\tif(parameters != null)\r\n\t\t{\r\n\t\t\tSystem.out.print(\"Parameters: \" + parameters[0]);\r\n\t\t\tfor(int i = 1; i < parameters.length; i++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\", \" + parameters[i]);\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Parameters: none\");\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t}", "public String print(){\r\n\t\t\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.companyName, \r\n\t\t\t\tthis.numberOfRailCars, \r\n\t\t\t\tthis.destinationCity);\r\n\t}", "private void parsePrintStatement() {\n check(Token.PRINT);\n check(Token.LPAR);\n\n Struct type = parseExpr().type;\n if (type != SymbolTable.STRUCT_INT\n && type != SymbolTable.STRUCT_CHAR) {\n error(\"Illegal expression type in print statement\");\n }\n\n if (nextToken.kind == Token.COMMA) {\n check(Token.COMMA);\n check(Token.NUMBER);\n code.load(new Operand(token.value));\n } else {\n code.load(new Operand(0));\n }\n if (type == SymbolTable.STRUCT_INT) {\n code.put(Code.OP_PRINT);\n } else {\n code.put(Code.OP_BPRINT);\n }\n\n check(Token.RPAR);\n check(Token.SEMICOLON);\n }", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "public String print(){\r\n\t\treturn String.format(\"%9d\\t%-5s\\t\\t%-3d\\t\\t%-15s\",\r\n\t\t\t\tthis.trackNumber, \r\n\t\t\t\tthis.engineNumber, \r\n\t\t\t\tthis.numRailCars, \r\n\t\t\t\tthis.destCity);\r\n\t\t}", "public void print() {\n System.out.println(toString());\n }", "public void print() {\n\t\tPrinter.print(doPrint());\n\t}", "public void print() {\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\">> print()\");\n\t\t}\n\t\tSystem.out.println(p + \"/\" + q);\n\t\tif(log.isTraceEnabled()) {\n\t\t\tlog.info(\"<< print()\");\n\t\t}\n\t}", "private void print(String text) {\n\t\tSystem.out.println(text);\n\t}", "public void print()\n {\n for (int i=0; i<list.length; i++)\n System.out.println(i + \":\\t\" + list[i]);\n }", "public void print() {\n\t\tSystem.out.println(name + \" -- \" + rating + \" -- \" + phoneNumber);\n\t}", "public void print() {\r\n\r\n\t\tfor (int row=0; row<10; row++) \r\n\t\t{\r\n\t\t\tfor (int col=0; col<10; col++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(\"\\t\"+nums[row][col]); //separated by tabs\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public void println() { System.out.println( toString() ); }", "public void print() {\n System.out.println();\n for (int level = 0; level < 4; level++) {\n System.out.print(\" Z = \" + level + \" \");\n }\n System.out.println();\n for (int row = 3; row >= 0; row--) {\n for (int level = 0; level < 4; level++) {\n for (int column = 0; column < 4; column++) {\n System.out.print(get(column, row, level));\n System.out.print(\" \");\n }\n System.out.print(\" \");\n }\n System.out.println();\n }\n System.out.println();\n }", "public void print(){\r\n System.out.println(toString());\r\n }", "void printout() {\n\t\tprintstatus = idle;\n\t\tanyprinted = false;\n\t\tfor (printoldline = printnewline = 1;;) {\n\t\t\tif (printoldline > oldinfo.maxLine) {\n\t\t\t\tnewconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (printnewline > newinfo.maxLine) {\n\t\t\t\toldconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (newinfo.other[printnewline] < 0) {\n\t\t\t\tif (oldinfo.other[printoldline] < 0)\n\t\t\t\t\tshowchange();\n\t\t\t\telse\n\t\t\t\t\tshowinsert();\n\t\t\t} else if (oldinfo.other[printoldline] < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse if (oldinfo.other[printoldline] == printnewline)\n\t\t\t\tshowsame();\n\t\t\telse\n\t\t\t\tshowmove();\n\t\t}\n\t\tif (anyprinted == true)\n\t\t\tprintln(\">>>> End of differences.\");\n\t\telse\n\t\t\tprintln(\">>>> Files are identical.\");\n\t}", "public void print() {\r\n\t\tSystem.out.print(getUID());\r\n\t\tSystem.out.print(getTITLE());\r\n\t\tSystem.out.print(getNOOFCOPIES());\r\n\t}", "public void print() {\n int n = getSeq().size();\n int m = n / printLength;\n for (int i = 0; i < m; i++) {\n printLine(i * printLength, printLength);\n }\n printLine(n - n % printLength, n % printLength);\n System.out.println();\n }", "public void print() {\r\n System.out.print( getPlayer1Id() + \", \" );\r\n System.out.print( getPlayer2Id() + \", \");\r\n System.out.print(getDateYear() + \"-\" + getDateMonth() + \"-\" + getDateDay() + \", \");\r\n System.out.print( getTournament() + \", \");\r\n System.out.print(score + \", \");\r\n System.out.print(\"Winner: \" + winner);\r\n System.out.println();\r\n }", "public void println()\n\t{\n\t\tSystem.out.println();\n\t}", "void printSpecification(PrintStream ps);", "private void print(String toBeWritten)\n\t\t{ pw.print(getIndentString() + toBeWritten); }", "void printMST();", "public void printRecipt(){\n\n }", "public void print(){\r\n\t\tSystem.out.println(\"Size of each block:\\t\\t\" + this.blockSize);\r\n\t\tSystem.out.println(\"Total Number of Inodes:\\t\\t\" + this.inodeCount);\r\n\t\tSystem.out.println(\"Total Number of Blocks:\\t\\t\" + this.blocksCount);\r\n\t\tSystem.out.println(\"Number of Free Blocks:\\t\\t\" + this.freeBlocksCount);\r\n\t\tSystem.out.println(\"Number of Free Inodes:\\t\\t\" + this.freeInodesCount);\r\n\t\tSystem.out.println(\"First Data Block:\\t\\t\" + this.firstDataBlock);\r\n\t\tSystem.out.println(\"Last Written Date and Time:\\t\" + GeneralUtils.getDateFromLong(this.wTime));\r\n\t\tSystem.out.println(\"First Inode:\\t\\t\\t\" + this.firstInode);\r\n\t\tSystem.out.println(\"Inode Size:\\t\\t\\t\" + this.inodeSize);\r\n\t}", "void format(Printer printer);", "void printInfo() {\n\t\tdouble salary=120000;\n\t System.out.println(salary);\n\t\tSystem.out.println(name+\" \"+age);\n\t}", "public void print() {\n \tfor (int i=0; i < this.table.height; i++) {\n \t\tfor (int j=0; j < this.table.width; j++) {\n \t\t\tString tmp = \"e\";\n \t\t\tif(this.table.field[i][j].head != null) {\n \t\t\t\ttmp = \"\";\n \t\t\t\tswitch (this.table.field[i][j].head.direction) {\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\ttmp+=\"^\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 2:\n\t\t\t\t\t\ttmp+=\">\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\ttmp+=\"V\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 4:\n\t\t\t\t\t\ttmp+=\"<\";\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \t\t\t}\n \t\t\telse if(this.table.field[i][j].obj != null) {\n \t\t\t\ttmp = this.table.field[i][j].obj.name;\n \t\t\t}\n \t\t\tSystem.out.print(\" \" + tmp);\n \t\t}\n \t\t\tSystem.out.println(\"\");\n \t}\n }", "public void print(){\t\t\r\n\t\tSystem.out.println(\"===\\nCommit \" + id +\"\\n\"+ Time + \"\\n\" + message + \"\\n\");\r\n\t}", "public static void main(String[] args) {\nprint();\n\t}", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "void printInfo();", "@Override\n public String visit(PrintStmt n) {\n /*\n * PRINT t3\n *\n * move $a0, $t3\n * jal _print\n */\n String simpleExp = n.f1.accept(this);\n this.save_a0v0(null);\n Global.outputString += \"move $a0, \" + simpleExp + '\\n' + \"jal _print\\n\";\n this.load_a0v0(null);\n return null;\n }", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "public void print()\n {\n System.out.println(\"Course: \" + title + \" \" + codeNumber);\n \n module1.print();\n module2.print();\n module3.print();\n module4.print();\n \n System.out.println(\"Final mark: \" + finalMark + \".\");\n }", "public Arginfo visit(PrintStatement n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n n.f1.accept(this, argu);\n System.out.println(\"PRINT \");\n n.f2.accept(this, argu);\n n.f3.accept(this, argu);\n n.f4.accept(this, argu);\n return _ret;\n }", "public void println(String printbuffer) {\n\t\tSystem.out.println(printbuffer);\n\t}", "abstract public void printInfo();", "void dump() {\n\t\tSystem.out.print(\"I am: \" + (territoryID));\n\t\tSystem.out.print(\"\\tNeighbour of:\");\n\n\t}", "@Override\n public void print() {\n System.out.println(\"Hello World Old Style!!\");\n }", "private void print( org.antlr.v4.tool.Grammar grammar, ParseTree tree, String indentStep, String indent )\n {\n if ( tree != null )\n {\n Object payload = tree.getPayload();\n if ( payload instanceof InterpreterRuleContext )\n {\n String ruleName = grammar.getRule( ((InterpreterRuleContext) payload).getRuleIndex() ).name;\n System.out.println( indent + ruleName );\n }\n else\n {\n System.out.println( indent + \"\\\"\" + tree.getText() + \"\\\"\" );\n }\n for ( int i = 0; i <= tree.getChildCount(); i++ )\n {\n print( grammar, tree.getChild( i ), indentStep, indent + indentStep );\n }\n }\n }", "public void skipPrint()\n {\n skipPrint(0);\n }", "private void myPrint(String x) {\n if (printOn) {\n System.out.println(x);\n }\n }", "public void print() {\n System.out.println(\"Code: \"+this.productCode);\n System.out.println(\"Name: \"+ this.productName);\n System.out.println(\"Price: \"+this.price);\n System.out.println(\"Discount: \"+this.discount+\"%\");\n }", "public void printDetails()\n {\n System.out.println(title);\n System.out.println(\"by \" + author);\n System.out.println(\"no. of pages: \" + pages);\n \n if(refNumber == \"\"){\n System.out.println(\"reference no.: zzz\");\n }\n else{\n System.out.println(\"reference no.: \" + refNumber);\n }\n \n System.out.println(\"no. of times borrowed: \" + borrowed);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }" ]
[ "0.7777016", "0.73582697", "0.73582697", "0.73582697", "0.73582697", "0.73500055", "0.7347755", "0.7347755", "0.7347755", "0.7347755", "0.7347755", "0.72647226", "0.7253973", "0.7248601", "0.72325075", "0.72193277", "0.7215881", "0.72000116", "0.7126024", "0.7098148", "0.7075831", "0.7053568", "0.7018484", "0.69850034", "0.6943196", "0.6921818", "0.6908073", "0.6827549", "0.6812643", "0.6793472", "0.67930895", "0.6765957", "0.6757319", "0.67499065", "0.6747619", "0.67359555", "0.6733016", "0.67265654", "0.6720984", "0.6709684", "0.6687818", "0.66774625", "0.66669655", "0.66634387", "0.66514987", "0.6642698", "0.6618463", "0.66135865", "0.66120225", "0.6592698", "0.65892756", "0.6580584", "0.65747786", "0.65747786", "0.6572789", "0.6572564", "0.6570089", "0.6569332", "0.6568989", "0.6565278", "0.6559648", "0.65576994", "0.6540699", "0.6540299", "0.6534986", "0.6506609", "0.65056455", "0.6494898", "0.6483121", "0.64711684", "0.6465809", "0.6465072", "0.6461631", "0.6459752", "0.64522433", "0.64413404", "0.6440671", "0.6436769", "0.6436417", "0.64288676", "0.6427311", "0.6424284", "0.6412053", "0.6402938", "0.63948685", "0.6389987", "0.6387661", "0.6382635", "0.63741213", "0.63714516", "0.6371253", "0.6364921", "0.636375", "0.6358741", "0.63564235", "0.63535386", "0.63535386", "0.63535386", "0.63535386", "0.63535386", "0.63535386" ]
0.0
-1
/ 2.11 Loop Statements
public void outAWhileStmt(AWhileStmt node) throws TypeException{ if(node.getExp() != null) { Node e = node.getExp(); Type t = typemap.get(e); t = removeAlias(t); if(!(t instanceof BooleanType)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] While loop with non-boolean condition."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void loop() {\r\n\r\n\t\tfor (int i =1; i<=10; i++) { \r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t}", "public void loop(){\n\t\t\n\t}", "public static LoopExpression loop(Expression body) { throw Extensions.todo(); }", "private static void iterator() {\n\t\t\r\n\t}", "void iterationStatements() \n{ \nSystem.out.println(\"***************while loops************* \");\n\nint i=1; //initialisation\nwhile(i<10) //condition\n{\nSystem.out.println(\"inside while loop\"); \ni++; //iteration\n}\n\n\n\nSystem.out.println(\"***************do-while loop************* \");\nint b=1; //initialisation\ndo\n{\nSystem.out.println(\"inside do-while loop\"); \nb++; //iteration\n}while(b<10); //condition\n\nSystem.out.println(\"ended do- while loop\"); \n\n\n\nSystem.out.println(\"***************for loop************* \");\n\nSystem.out.println(\"started for loop\"); \nfor(int c=0;c<10;c++) //all three written in one line separated by semicolons\n{\nSystem.out.println(\"inside while loop\"); \n}\nSystem.out.println(\"ended for loop\"); \n\n}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"-----------4.4--------------\");\r\n\t\twhileLoop1();\r\n\t\twhileLoop2();\r\n\t\twhileLoop3();\r\n\t\tforeachLoop();\r\n\t\tdoWhileLoop1();\r\n\t\tdoWhileLoop2();\r\n\t\tbreakWithFor();\r\n\r\n\t}", "public boolean foundLoop();", "public void loop(){\n\t}", "public static void main(String[] args) {\n\t\tint i = 1;\n\t\tdo {\n\t\t\tSystem.out.println(\"i = \"+i);\n\t\t\ti++;\n\t\t\t\n\t\t}while(i<=10);\n\t\tSystem.out.println(\"Outside the lopp\");\n\t\t\n\t\t/*\n\t\t * do { System.out.println(\"i = \"+i); i++;\n\t\t * \n\t\t * }while(true); System.out.println(\"Outside the loop\");\n\t\t */\n\t}", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "public static void doWhile() {\n\n //1.\n int i = 0;\n do {\n System.out.println(i);\n i += 2;\n } while (i < 100);\n//\n //2.\n int j = 100;\n do {\n System.out.println(j);\n j -= 5;\n } while (j >= -10);\n\n // 3.\n int k = 2;\n do {\n System.out.println(k);\n k *= k;\n } while (k < 1000000);\n }", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "public void loop(){\n \n \n }", "public static void main(String[] args) {\n int v=0;\n /*\n while (v<5){\n System.out.println(\"v: \"+v);\n v++;\n }\n */\n do {\n System.out.println(\"v: \"+v);\n v++;\n } while(v<5);\n\n\n }", "public static void main(String[] args) {\n\r\n for (int x = 1; x < 10; x++) {// x=1\r\n\r\n for (int h = 1; h < 10; h++) { // h=1+1+1...8+1\r\n\r\n System.out.println(x + \"*\" + h \"=\" +x*h);// 1-2-3....8-9\r\n\r\n if(h==2){\r\n break;\r\n }\r\n }\r\n\r\n if(x==4){\r\n continue;\r\n }\r\n\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\tint i = 1\n\t\tint Obergrenze = 789\n\t\t\t\tfor (int = 1; i < Obergrenze; i = i + 2) {\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tint i = 0; // 0 1 2 3 4 \r\n\t\t\r\n\t\twhile (i < 4) {\r\n\t\t\tSystem.out.println(\"i is \" + i); // 0 1 2 3 \r\n\t\t\ti++;\r\n\t\t}\r\n\t\t/** OUTPUT\r\n\t\t * i is 0\r\n\t\t * i is 1\r\n\t\t * i is 2\r\n\t\t * i is 3\r\n\t\t */\r\n\t\t\r\n\t\t/*\r\n\t\t * A do while loop will ALWAYS execute at least once because\r\n\t\t * the condition is physically is at the bottom. The contents\r\n\t\t * of the loop must execute before the condition is tested\r\n\t\t * making it run at least once, e.g. this loop will run\r\n\t\t * once even though the condition is false:\r\n\t\t * \r\n\t\t * \t\tint i = 10;\r\n\t\t * \t\tdo {\r\n\t\t * \t\t\t.....\r\n\t\t * \t\t\ti++;\r\n\t\t * \t\t} while (i < 9); // 11 is not less than 9\r\n\t\t */\r\n\t\ti = 0; // 0 1 2 3 4\r\n\t\tdo {\r\n\t\t\tSystem.out.println(\"Inside do-while, i is \" + i); // 0123\r\n\t\t\ti++;\r\n\t\t} while (i < 4);\r\n\t\t/** OUTPUT:\r\n\t\t * Inside do-while, i is 0\r\n\t\t * Inside do-while, i is 1\r\n\t\t * Inside do-while, i is 2\r\n\t\t * Inside do-while, i is 3\r\n\t\t */\r\n\t\t\r\n\t\t\r\n\t\t/*\r\n\t\t * A for loop is normally used for looping through an array.\r\n\t\t * The advantage of a for is that the three parts are written\r\n\t\t * on one line, the three pars are:\r\n\t\t * 1. The initialisation: int i = 0; This section executes \r\n\t\t * ONCE per loop, as if it were typed before the loop.\r\n\t\t * 2. The condition or test, e.g. i < 4. The condition must\r\n\t\t * always equate to a boolean, i.e. it must be true or false.\r\n\t\t * When the condition is true, the body of the loop will \r\n\t\t * execute. \r\n\t\t * 3. The increment, e.g. i++. The increment section will \r\n\t\t * always happen after the body the loop, as if it is the\r\n\t\t * last line in the body. You can increment a variable as\r\n\t\t * follows:\r\n\t\t * \t\t\ti++;\r\n\t\t * \t\t\t++i;\r\n\t\t * \t\t\ti = i + 1;\t\t\ti = i + 4;\r\n\t\t * \t\t\ti += i; \t\t\ti += 4;\r\n\t\t * \r\n\t\t * \t\t\ti = i - 1;\t\t\ti = i - 10; \r\n\t\t */\r\n\t\t\r\n\t\t// 0 1 2 3 4\r\n\t\tfor (i = 0; i < 4; i++) {\r\n\t\t\tSystem.out.println(\"Inside for, i is \" + i);// 0 1 2 3 \r\n\t\t}\r\n\t\t/** OUTPUT: \r\n\t\t * Inside for, i is 0\r\n\t\t * Inside for, i is 1\r\n\t\t * Inside for, i is 2\r\n\t\t * Inside for, i is 3\r\n\t\t */\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is a for loop\");\n\t\tfor (int number = 0; number <=30; number++) {\n\t\t\tSystem.out.println(number);\n\t\t\t\n\t\t}\n\t\t\n\t\tint number=20;\n\t\tint numberone=10;\n\t\tSystem.out.println(\"This is a do while loop\");\n\t\tdo {\n\t\tSystem.out.println(number);\n\t\tnumber++;\n\t\t} while (number<=100);\n\t\t\n\t\t\n\t\tSystem.out.println(\"This is a while loop\");\n\t\twhile (numberone<=50) {\n\t\t\tSystem.out.println(numberone);\n\t\t\tnumberone++;\n\t\t\t\n\t\t}\n\n\t}", "public static LoopExpression loop(Expression body, LabelTarget breakTarget, LabelTarget continueTarget) { throw Extensions.todo(); }", "@Override public void loop() {\n }", "@Override\n public void loop()\n {\n }", "void test(int loop){\n\t\tfor(int i=0; i<loop; i++){\n\t\t\ttest(loop / 2);\n\t\t}\n//\t\tSystem.out.printf(\"loop done: %d\\n\", loop);\n//\t\tlong end = System.nanoTime();\n\t}", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "public static LoopExpression loop(Expression body, LabelTarget breakTarget) { throw Extensions.todo(); }", "public static void main(String[] args) {\n\t\tint i = 20;\ndo { if (i%2==0)\n\tSystem.out.println(i);\n\ti--;\n}while (i>1); \n\t\n}", "public static void main(String[] args) {\r\n\t\tfor (int i=1;i<10;i++)\r\n\t\t{\r\n\t\t\tif (i==5)\r\n\t\t\t{\r\n\t\t\t\t//System.out.println(i);\t\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(i);\r\n\t\t\t}\r\n\t\t}\r\n\r\n \r\n\t}", "public static void main(String[] args) {\n\tint i=1;\n\tdo\n\t{\n\t\tSystem.out.println(i);\n\t\ti++;\n\t}\n\twhile(i<=10);\n\t\n}", "public static void main(String[] args) {\n\t\tfor(int i=0;i<10;i++) {\n\t\t\tSystem.out.println(i);\n\t\t}\n\t\t//增强for\n\t\tint[] nums= {1,2,4,5,6};\n\t\tfor(int num:nums) {\n\t\t\tSystem.out.println(num);\n\t\t}\n\t\t//do while循环\n\t\tint i=0;\n\t\tSystem.out.println(\"===\\\"do/while循环:\\\"====\");\n\t\tdo {\n\t\t\tSystem.out.println(i++);\n\t\t}while(i<10);\n\t\t//while 循环\n\t\tint ii=0;\n\t\tSystem.out.println(\"===\\\"while循环:\\\"====\");\n\t\twhile(ii<10) {\n\t\t\tSystem.out.println(ii++);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tint i = 0;\n\t\twhile(i < 3) {\n\t\t\tSystem.out.println(i);\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t// (2) ---> for loop = initialize, check and update\n\t\tfor(int j = 0; j < i; j++) {\n\t\t\tSystem.out.println(j);\n\t\t}\n\t\t\n\t\t// for each\n\t\tList<Integer> numbers = Arrays.asList(0, 1, 2, 3);\n\t\tnumbers.forEach(n -> System.out.println(n)); // Alternate syntax = numbers.forEach(System.out::println);\n\t\t\n\t\t// (3) ---> break\n\t\tfor(int k = 0; k < 10; k++) {\n\t\t\tSystem.out.println(k);\n\t\t\tif(k == 5)\n\t\t\t\tbreak;\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 1, j = i + 10; i < 5; i++, j = i * 2) \r\n\t\t{\r\n System.out.println(\"i= \" + i + \" j= \" + j);\r\n\t\t}\r\n\t\tfor(int i=0, j=i+99; i<101; i++, j=i/2 ) {\r\n\t\t\tSystem.out.println(\"i= \" +i + \" j= \"+j);\r\n\t}\r\n\t\t\r\n\t\tint n=0;\r\n\t\twhile(n<10)\r\n\t\t{ System.out.println(n);\r\n\t\tn++;\r\n\t\t}\r\n\t\t\r\n//\t int a = 1;\r\n//\t int b = 2;\r\n//\t int c = 3;\r\n//\t \r\n//\t a += 5;\r\n//\t b *= 4;\r\n//\t c += a * b;\r\n//\t c %= 6;\r\n//\t System.out.println(\"a = \" + a);\r\n//\t System.out.println(\"b = \" + b);\r\n//\t System.out.println(\"c = \" + c);\r\n\r\n\r\n\t}", "void branchingStatements()\n{\t\nSystem.out.println(\"***************inside unlabeled break************* \");\n//Break :forceful exit from current loop\nfor(int i=0; i<100; i++) \n\t{\t\n\t\tif(i == 10) \n\t\tbreak; \n\n\t\t\t\t/*when i will become 10. it will exit\n\t\t\t\t from loop and go to next immediate\n\t\t\t\t line out of loops body to execute*/\n\tSystem.out.println(\"value of i is\" + i);\n\t}\n\n\nSystem.out.println(\"***************inside labeled loop************* \");\n\n outer:\t\n\t\tfor(int i=0; i<3; i++)\n\t\t{\n\t\tSystem.out.println(\"Outer loop value of i is \"+ i);\n\t\t\tinner:\n\t\t \tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t System.out.println(\"Inner loop value of i is \"+j);\n\t\t\t if(i== j+1)\n\t\t\t break outer;\t\t \n\t\t\t System.out.println(\"Bye\");\t\n\t\t\t}\n\t\t }\n\n\n//continue:skip the execution of current iteration and start the next one\nSystem.out.println(\"***************inside unlabeled continue.************* \");\nString str = \"she saw a ship in the sea\"; \n\t\tint size = str.length(); \n\t\tint count = 0; \n\t\tfor (int i = 0; i < size; i++) \n\t\t { \n\t\t\tif (str.charAt(i) != 's') \t\n\t\t\t continue;\n\t\t\tcount++; \n\t\t } \nSystem.out.println(\"Number of s in \"+ str + \" = \"+ count); \n\n\nSystem.out.println(\"***************inside labeled continue.************* \"); \nouter: for (int i=0; i<3; i++) \n\t{\n\t\tfor(int j=0; j<3; j++)\n\t\t {\n\t\t\tif(j > i) \n\t\t\t{\n\t\t\tSystem.out.println(\"Hi\");\n\t\t\tcontinue outer; \n\t\t\t}\n\t\t\tSystem.out.print(\" \" + (i * j));\n\t\t}\n\t}\n}", "public void loop() {\n this.instructionList.restart();\t\n }", "private boolean isLoop() {\n boolean isFor = line.startsWith(\"for(\") || line.startsWith(\"for (\");\n boolean isWhile = line.startsWith(\"while(\") || line.startsWith(\"while (\");\n boolean isDo = line.equals(\"do\");\n return isFor || isWhile || isDo;\n }", "public static void main(String[] args) {\n loop_1:\n for(int i = 0; i < 10; i++) {\n loop_2:\n while(i < 5) {\n loop_3:\n do {\n break loop_2; // will stop loop_2, but loop_1 is running/executing/iterating without stop\n } while(i < 3);\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"---------For Loop----------\");\n\t\tfor(int c=1; c<=100; c++){\n\t\t\tSystem.out.println(\"Contact \"+c);\n\t\t}\n\t\t\n\t\tSystem.out.println(\"---------While Loop----------\");\n\t\tint c = 101;\n\t\twhile(c<= 100){\n\t\t\tSystem.out.println(\"Contact \"+c);\n\t\t\tc++;\n\t\t}\n\t\t\n\t\t/*boolean choice = true;\n\t\twhile(choice){\n\t\t\t\n\t\t}*/\n\t\t\n\t\tSystem.out.println(\"---------do while Loop----------\");\n\t\tc = 101;\n\t\tdo{\n\t\t\tSystem.out.println(\"Contact \"+c);\n\t\t\tc++;\n\t\t}while(c<= 100);\n\t\t// Execution happens on a minimum of one even condition is false\n\t\t\n\t\tint j = 10;\n\t\t//int k = j++; // j increments after assignment | PostFix\n\t\tint k = ++j; // j increments and then assigns | PreFix\n\t\tSystem.out.println(\"j is: \"+j);\n\t\tSystem.out.println(\"k is: \"+k);\n\t\t\n\t\t//j was always incremented\n\t\t\n\t\tSystem.out.println(\"=================\");\n\t\tint num = 7;\n\t\tfor(int i=1;i<=10;i++){\n\t\t\t\n\t\t\t//if(i>5)\n\t\t\t//\tbreak; // Terminate the loop\n\t\t\t\n\t\t\tif(i<5)\n\t\t\t\tcontinue; // Shift the Loop into next iteration, right from here and shall skip the instructions below\n\t\t\t\n\t\t\tSystem.out.println(num+\" \"+i+\"'s are \"+(num*i));\n\t\t}\n\t\tSystem.out.println(\"=================\");\n\t\t\n\t\t// Products which we shall be searching on a e-Commerce Site eg: Amazon\n\t\t\n\t\tSystem.out.println(\"=============Nesting of Loops=========\");\n\t\t\n\t\touter:\n\t\tfor(int out=1; out<=3; out++){ // 3 times\n\t\t\tSystem.out.println(\"out is: \"+out);\n\t\t\t\n\t\t\tinner:\n\t\t\tfor(int in=1;in<=5;in++){ // 5 times\n\t\t\t\tSystem.out.print(in+\" \");\n\t\t\t\tif(in==3)\n\t\t\t\t\tbreak outer;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} // Total Iterations as out*in -> 5*3 = 15\n\t\t\n\t}", "@Override public void loop () {\n }", "public static void main(String[] args) {\n\t\t\n\t\tint firstVariable = 1000;\n\t\t\n\t\twhile(firstVariable < 1000) {\n\t\t\t\n//\t\t\tfirstVariable++;\n\t\t\tfirstVariable = 1000;\n\t\t\t\n\t\t\tSystem.out.println(\"inside while!\");\n\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\t//No way to contradict this boolean statement \n\t\t\t\n\t\t\tbreak; //exit out of the looping block , and any code after it (inside of the loop) will not complete!\n//\t\t\t\n//\t\t\twhile(true) {\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\t\n\t\t}\n\t\t\n\t\tboolean looping = true;\n\t\t\n\t\twhile(looping) {\n\t\t\t\n\t\t\t\n\t\t\tif(looping) {\n\t\t\t\tcontinue; //What does this word do? \n\t\t\t}\n\t\t\tlooping = false;\n\t\t\t\n\t\t\tSystem.out.println(\"Hello!\");\n\t\t\t\n\t\t}\n\t\t\n\t\tdo { //Will execute at least once, even if the condition has not been met!\n\t\t\tSystem.out.println(\"Inside do while!\");\n\t\t\tfirstVariable++;\n\t\t}while(firstVariable < 1000);\n\t\t\n\t\tSystem.out.println(firstVariable);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tfor(int i = 0;\r\n\t\t\t\ti < 10;\r\n\t\t\t\ti++) {\r\n\t\t\tSystem.out.println(\"i: \" + i);\r\n\t\t}\r\n\t\t// equivalente a quello sopra\r\n\t\tint j = 0;\r\n\t\tfor(;;) {\r\n\t\t\tif(j < 10) {\r\n\t\t\t\tSystem.out.println(\"j: \" + j);\r\n\t\t\t} else {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tj = j + 2;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t\tfor(int i=1;i<10;i++){\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\t\r\n\t\tint x=10;\r\n\t\twhile(x==10){\r\n\t\t\tSystem.out.println(\"while loop\");\r\n\t\t\tx++;\r\n\t\t}\r\n\t\t\r\n\t\tint y=101;\r\n\t\tdo{\r\n\t\t\tSystem.out.println(\"do while\");\r\n\t\t}while(y==13);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n int i = 1; //循环次数\r\n while (i<=100 ) {\r\n System.out.println(\"这是我第\" + i + \"次鼓励:好好学习\");\r\n i++; // 循环次数+1,维持i的意义(循环次数)正确,循环不变量,不变的是意义,数值发生变化为了使意义正确\r\n }\r\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint i, x=4,w=9,q;\r\n\t\tfor(i=-1;i<20;i+=3) {\r\n\t\t\tx++;\r\n\t\t\tfor(q=4;q<11;q++) {\r\n\t\t\t\tdo {\r\n\t\t\t\t\ti=+3;\r\n\t\t\t\t\tw=sizeof(i);\r\n\t\t\t\t\ti=x+w;\r\n\t\t\t\t\tx=w+i;\r\n\t\t\t\t\t\t\r\n\t\t\t\t} while (x<15);\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"x:\"+x+\"i:\"+i);\r\n\r\n\t}", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tmLc.iterate() ;\n\t\t\t\t}", "public static void main(String[] args){\n int i=1;\n int j, k;\n while(i<4){\n j=0;\n while(j<10){\n k=0;\n while(k<10){\n System.out.println(i+\"\"+j+\"\"+k); // i,j values must be inside of the inner loop\n k++;\n }\n j++;\n }\n i++;\n }\n\n }", "void visitForLoopNode(ForLoopNode node);", "public static void main(String[] args) {\n\t\t\n\t\tdisplay(\"\\t===== For Statement =====\");\n\t\tint sum_1= 0;\n\t\tfor(int i = 1; i <= 10; i++)\n\t\t\tsum_1+=i;\n\t\tdisplay(\"\\t-Sum of 1~10 : \" + sum_1);\n\t\t\n\t\tdisplay(\"\\t===== While Statement =====\");\n\t\tint i = 1;\n\t\tint sum_2 = 0;\n\t\twhile(i <= 10){\n\t\t\tsum_2 += i;\n\t\t\ti++;\n\t\t}\n\t\tdisplay(\"\\t-Sum of 1~10 : \" + sum_2);\n\t\t\n\t\tdisplay(\"\\t===== Display within same spaces =====\");\n\t\tfor(int a = 0; a < 3; a++){\n\t\t\tfor(int b = 1; b < 6; b++)\n\t\t\t\tSystem.out.print(\"\\t\" + b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "public static void main(String args[])\n\t{\n\t\tfrom_here :for(int i=0;i<10;i++)\n\t\t{\n\t\t\tfor(int j=0;j<10;j++)\n\t\t\t{\n\t\t\t\tSystem.out.println(i+ \" \"+j) ;\n\t\t\t\tif(j==6)\n\t\t\t\t\tbreak ;//from_here ;\n\t\t\t}\n\t\t\tSystem.out.println(\"This is hidden from the continue \") ;\n\t\t}\n\t}", "ForLoopRule createForLoopRule();", "@Override\r\n\tpublic void iterateCount() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n version1WhileLoop();\n version1DoWhileLoop();\n version1ForLoop();\n version2ForLoop();\n version3ForLoop();\n }", "public static void main(String[] args) {\n for(int i =0;i <=5;i++){ //i =0 , conditoon true ; i = 1; true;\n for(int j =0;j<=5;j++){ //j = 0 , true j=1; true ; j =3 ; true ;j =4 ; true ; j = 5 ; true ; j = 6\n System.out.println(\"the value of i is : \"+ i +\"The value of J is : \"+ j);\n }\n }\n }", "public void nextIteration() {t++;}", "@Override\n public void visit(LoopControlNode loopControlNode) {\n }", "public void loop() {\n\t\tloop(1.0f, 1.0f);\n\t}", "Loop createLoop();", "public static void main(String[] args) {\n for(int n = 1; n <= 10; n++){\n System.out.println(n);\n }\n //System.out.println(n); n is not visible outside for loop.\n\n //say Hello Friends! 3 times using for loop\n for (int j = 0;j <= 2;j++){\n System.out.println(\"Hello Friends!!!\");\n }\n\n //infinite loop using for loop\n// for(;;){\n// System.out.println(\"Java is Fun!!!\");\n// // break; exit loop . we will learn more later\n// }\n }", "public static void main(String[] args) {\n for (int i = 0; i < 10; i++) {\n System.out.println(\"Hello\");\n\n if (i == 3) {\n continue; //jump to next loop\n }\n System.out.println(\"Ending of loop \" + i);\n }\n for ( int i = 0; i <100; i++) {\n if (i % 2 == 0) {\n continue;\n }\n System.out.print(i);\n }\n for (int i = 2000; i < 2030; i++){\n if(i == 2020){\n System.out.println(\"COVID\");\n continue;\n }\n System.out.println(\"Champion of \"+ i + \" year!\");\n }\n }", "public static void main(String[] args) {\n\t\tint a=1;\n\t\t\n\t\twhile(a<=100)\n\t\t{\t\n\t\t\tSystem.out.println(a);\n\t\ta++;\n\t\t}\n\t//eg: to print the even numbers 1 to 10\n\t\t\n\t\tint b=2;\n\t\twhile(b<=10)\n\t\t{\n\t\t\tSystem.out.println(b);\n\t\t\tb=b+2;\n\t\t}\n\t//eg: to print the odd numbers 1 to 10\n\t\tint c=1;\n\t\twhile(c<=10)\n\t\t{\n\t\t\tSystem.out.println(c);\n\t\t\tc=c+2;\n\t\t}\n\t//eg: to print the numbers 1 to 10 in decending order\n\t\tint d=10;\n\t\twhile(d>0)\n\t\t{\n\t\t\tSystem.out.println(d);\n\t\t\td--;\n\t\t}\n//DO...WHILE LOOP:\n\t\n\tint l=100;\n\tdo\n\t{\n\t\tSystem.out.println(l);\n\t\tl++;\n\t}while(l<=110);\n//in other case of do...while loop\n\tint p=20;\n\tdo\n\t{\n\t\tSystem.out.println(p);//20\n\t\tp++;\n\t}while(p<=10);\n/*it will only print 20 once as it will run until the \n * condition is met. It prints the value of p that is 20 \n * for once and next step is 20+1. Then it finally verifies \n * the condition p<=10. When the condition fails, it stops \n * running. So in this loop the value is printed atleast \n * once. This is rarely used. \n * Most common one is for loop. While loop is also used \n * very often. */\t\n\t\n//FOR LOOP:\n /* initialization==>condition==>increment/decrement\n * all three can be shown in one line instead of \n * three different lines as while loop.*/\n\tfor(int g=30;g>20;g--)\n\t{\n\t\tSystem.out.println(g);\n\t}\n\t\n\t\n\n\t}", "public void enhancedForLoop() {\n int[] numbers = {77,2,66,4,5,543,7,-9876,9,10};\n for (int i = 0; i < numbers.length ; i++) {\n System.out.println(i + \" \" + numbers[i]);\n }\n \n for (int number: numbers) {\n System.out.println(\"number = \" + number);\n }\n }", "public boolean eliminateLoop(){ return false; }", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "public static void main(String[] args) {\n\t\t\nfor(int contador=1;contador<=100;contador+=1)\n{\n\tSystem.out.println(contador);\n}\n\t}", "private static void drukaf()\n\t{\n\t\tint a;\n\t\tint oplossing;\n\t\tfor(a=1; a<10; a++)\n\t\t{\n\t\t\tint b;\n\t\t\tfor(b=1; b<10; b++)\n\t\t\t{\n\t\t\t\toplossing = a*b;\n\t\t\t\tSystem.out.println(a + \" x \" + b + \" = \" + oplossing);\n\t\t\t}\t\n\t\t}\n\t}", "public static void main(String[] args) {\n int a=10;\n int b=3;\n\n int count=0; // count the execution of the loop\n\n while(a>=b){\n a-=b;\n count++;\n\n }\n System.out.println(count);\n\n /*\n While loop is used in situations where we do not know how many times loop needs\n to be excuted beforehand. For loop is used where we already know about the number of times loop needs to be excuted.\n */\n\n\n\n\n\n\n\n\n\n\n }", "public static void main(String[] args) {\n int[] values={1,2,3,4,5,6};\n Random rand=new Random();\n //declare and set a counter variable to 1 to control the loop\n int count=1;\n System.out.println(\"While loop sample:\");\n //run a loop from 1 to 5 (5 times)\n while(count<=5)\n {\n //get a random number between 0 and 6 (6 is the number of values in set)\n int idx=rand.nextInt(values.length);\n //use this random number generated as index and print the value from the array\n System.out.println(\"Iteration-\" + count + \": \" + values[idx]);\n //increment count\n count++;\n }\n\n //2. for() loops\n System.out.println(\"\\nfor loop sample:\");\n //set counter variable to 0, sentinel value to <=3 and step increment to 2\n for(int counter=0;counter<=3;counter+=2)\n {\n //print text\n System.out.println(\"Chicago\");\n }\n\n //3. nested looping Techniques\n System.out.println(\"\\nnested loop sample:\");\n int i = 20, m = 10, n = 15, p = 30;\n for (i = m; i < n; i += p)\n {\n //set i to m\n m = i;\n //set n to m+p\n n = m + p;\n //set m to n+3*p\n m = n + 3 * p;\n //print m,n,p\n System.out.println(\"\\t\" + m + \"\\t\"+ n + \"\\t\" + p);\n }\n\n }", "public static void main(String[] args) {\n\t\tint i = 0;\r\n\t\tfor (f('A'); f('B') && (i < 2); f('C')) {\r\n\t\t\ti++;\r\n\t\t\tf('D');\r\n\t\t}\r\n\t}", "protected boolean iterate()\n {\n switch (stoCri)\n {\n case 1:\n if (isDFltdFMin()) return false;\n // continue to check the maximum number of iteration\n default:\n return (nIntRed == nIntRedMax) ? false : true;\n }\n }", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public static void main(String[] args) {\n\t\tint i=1;\r\n\t\t/*while (i<=10){\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1;\r\n\t\t}\r\n\t\tint j=10;\r\n\t\twhile (j>1){\r\n\t\t\tSystem.out.println(j);\r\n\t\t\tj=j-1;\r\n\t\t\t\r\n\t\t}*/\r\n\t\t\r\n\t\tfor (i=0;i<10;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tfor (int j=10;j>=1;j--)\r\n\t\t{\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\n\t\tfor (int i=100;i>300;i-=5) {\n\t\t\tSystem.out.println(i+\" hello world\");\n\t\t\n\t}\n\t\t\n\t\t//not: eger sart kismi bizim artisimiza gore hep true verirse loop sonsuz\n\t\t//donguye girer.\n\t\t\n\t\t//loopta artis degeri pozitif oldugu gibi negatif de olabilir.\n\t\t\n\t\t//eger loopun sarti hic true olmazsa loop body hic devreye girmez\n\t\t\n\t\t\n\n\t}", "public abstract void loop();", "public static void main(String[] args) {\r\n\r\n\t\t\r\n\t\tfor (int i = 1; i < 5; i++) {\r\n\t\t\tSystem.out.println(\"hi \");\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tint i=1;\r\n\t\twhile (i<5) {\r\n\t\t\tSystem.out.println(\"hi\");\r\n\t\t\r\n\t\t\ti++;\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args){\n int i = 0;\n int sum = 0;\n while (sum <= 10){\n i++;\n sum += i;\n System.out.println(i+ \",\" + sum);\n }\n }", "public static void main(String[] args) {\n\t\t int i=1; \n\t\t while(i<=10){ \n\t\t System.out.println(i); \n\t\t i++; \n\t\t } \n\n\t}", "public boolean getLoops() { return getEndAction().startsWith(\"Loop\"); }", "public static void main(String[] args) {\n\n\t\tint num=10;\n\t\tdo {\n\t\t\tSystem.out.println(num);\n\t\t\tnum++;\n\t\t}while( num<20 );\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint k = 1;\n\t\tfor(int i=1; i<5; i++) {\n\t\t\t\n\t//\t\tSystem.out.println(\"loop 1\");\n\t\t\t \n\t\t\tfor(int j =1; j<=i; j++) {\n\t\t\t\t\n\t\t\t\tSystem.out.print(k);\n\t\t\t\t\n\t//\t\t\tSystem.out.println(\"loop 2\");\n\t\t\t\tSystem.out.print(\"\\t\");\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t System.out.println(\"\");\n\t\t}\n\t\t\n\n\t}", "public static void main(String[] args) {\n\t\tint i;\r\n\t\tfor(i = 1; i<=10; i++) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\twhile(i<=10) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti++;\r\n\t\t}\r\n\t\tSystem.out.println(\"=============\");\r\n\t\ti = 1;\r\n\t\tint j = 15;\r\n\t\twhile(true) {\r\n\t\t\tSystem.out.println(i);\r\n\t\t\tif(i==j) { break;}\r\n\t\t\ti++;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int n=1;\n for(System.out.print('a');n<=3;System.out.print('c'),n++){\n System.out.print('b');\n }\n }", "private boolean isLoop() {\n return \"loop\".equalsIgnoreCase(data.substring(tokenStart, tokenStart + 4));\n }", "public static void main(String[] args) {\n\t\tint i= 1; // initialization \r\n\t\twhile(i<=10) { // conditional \r\n\t\t\tSystem.out.println(i);\r\n\t\t\ti=i+1; // incremental/decrement\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t// print 1 to 10\r\n\t\t// for loop \r\n\t\t// j++ means j=j+1\r\n\t\tfor(int j= 1; j<=10; j++) {\r\n\t\t\tSystem.out.println(j);\r\n\t\t}\r\n\t\tSystem.out.println(\"************\");\r\n\t\t // print 10 to 1\r\n\t\t//10 9 8 7 6 5 4 3 2 1\r\n\t\tfor( int k=10; k>=1;k--) {\r\n\t\t\tSystem.out.println(k);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\t\touter:\r\n\t\t //label for outer loop\r\n\t\t for (int i = 0; i < 10; i++) { \r\n\t\t for (int j = 0; j < 10; j++) {\r\n\t\t if (j == 1)\r\n\t\t break outer;\r\n\t\t System.out.println(\" value of j = \" + j);\r\n\t\t }\r\n\t\t } //end of outer loop\r\n\t\t \r\n\t\t System.out.println(\"clear\");\r\n\t\t System.out.println(Integer.MAX_VALUE);\r\n\t}", "private Loop whileStatement()\n\t{\n\t\tmatch(TokenType.While);\n\t\t// (\n\t\tmatch(TokenType.LeftParen);\n\t\t// <<Expression>>\n\t\tExpression e = expression();\n\t\t// )\n\t\tmatch(TokenType.RightParen);\n\t\t// <<Statement>>\n\t\tStatement s = statement();\n\t\t\n\t\treturn new Loop(e, s); // student exercise\n\t}", "public static void main(String[] args) {\n\t\tint i = 2;\n\t\twhile(i<10) {\n\t\t\tif(isDivisible(20*i)){\n\t\t\t\tSystem.out.println(\"Final: \"+20*i+\" with i= \"+i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti=i+2;\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tfor(int i=0; i<=10; i++)\n\t\t{\n\t\t\tif(i==5)\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tSystem.out.println(\"Count is \" + i);\n\t\t}\n\t\tSystem.out.println(\"<----Next Count---->\");\n\t\t\n\t\tfor(int j=0; j<=5; j++)\n\t\t{\n\t\t\tif(j==3)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Count is \" + j);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t}", "@Override\r\n public void loop() {\r\n //CodeHere\r\n }", "public static void forLoop() {\n // In this case, we have the raw score results of students.\n // In a test they took with 67 questions, we have recorded\n // how many they got correct.\n int[] testScores = {57, 65, 53, 34};\n\n // Our goal is to go through each score and convert that score into\n // a percentage score.\n // The overall flow of the code goes as follows.\n // 1) Initially, create a variable, i, and set it to 0. -> 2\n // 2) if i < testScores.length, then step 3. Otherwise, Step 5\n // 3) execute the body of code below. -> 4\n // 4) Once done executing the body, increment i by 1. -> 2.\n // 5) We're out of the loop!\n for (int i = 0; i < testScores.length; i++) {\n System.out.println(\"Test Score initially \" + testScores[i]);\n testScores[i] = (testScores[i] * 100) / 67;\n System.out.println(\"Test Score now \" + testScores[i]);\n System.out.println(\"==================\");\n }\n }", "public static void main(String[] args) {\n\n for (int m =0; m<9;m++) {\n System.out.println(\"kona\");\n }\n for (int y=0; y<6; y++) {\n System.out.println(y +\"veer\");\n }\n\n //Inner for loop\n // print selenium 5 times,and for each time you print selenium,print java 2 times\n\n for (int t=0; t<5;t++) {\n System.out.println(\"selenium\");\n for (int r=0;r<2;r++) {\n System.out.println(\"java\");\n }\n }\n\n //while loop\n int w=0;\n while (w<7) {\n System.out.println(\"dear\");\n w++;\n }\n int b=0;\n while (b<2) {\n System.out.println(b + \"we\");\n b++;\n }\n\n // Do While loop\n\n int k =0;\n do {\n System.out.println(\"don't know\");\n k++;\n }\n while(k<5);\n\n // Enhance for loop\n\n int [] id ={99,66,90,55};\n\n for (int q:id) {\n System.out.println(q);\n }\n\n\n\n }", "public static void main(String[] args) {\n\t\tint a[] = {2,5,4,3,6,7};\r\n\t\tint sum = 0;\r\n\t\tint b;\r\n\t\tfor(int i=0; i < a.length; i++) // Gonna loop 5 times\r\n\t\t{\r\n\t\t\t//System.out.println(a[i]);\r\n\t\t sum = sum + a[i];\r\n\t\t System.out.println(a[i]);\r\n\t\t if (a[i] == 6)\r\n\t\t {\r\n\t\t\t //System.out.println(i);\r\n\t\t\t // break;\r\n\t\t }\r\n\t\t //System.out.println(sum);\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(sum);\r\n\r\n\t}", "private void tempVariableExample() {\r\n\tfor(int i =0; i < age; i++)\r\n\t{\r\n\t\t//print i\r\n\t}\r\n\r\n\r\n}", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "public static void main(String[] args) {\nfor(int i=0;i<5;i++)\n{\n\tSystem.out.println(i);\n}\n\t}", "public static void main(String[] args) {\n int whileloop_counter = 5;\r\n \r\n while(whileloop_counter > 0)\r\n {\r\n System.out.println(\"while Loop Counter Value: \" + whileloop_counter);\r\n whileloop_counter--;\r\n }\r\n \r\n // INFINITE WHILE LOOP\r\n // ===================\r\n // while(true) {}\r\n // OR\r\n // while (1==1) { }\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\tint num1=6;\n\tdo {\n\t\t\n\t\tSystem.out.println(num1);\n\t\tnum1++;\n\t\t\n\t}while(num1<=5);\n\t\t\n\t\t\n\t}", "public static void main (String[]args) {\n for (int i = 10; i >= 1; i--) {\n System.out.println(i);\n }\n }", "public static void main(String[] args) {\n\n\t\tfor (int i=0;i<10;i++){\n\n\t\t\tInteger a = 0;\n\t\t\tfor (int j =0;j<3;j++){\n\t\t\t\tSystem.out.println(a);\n\t\t\t\ta++;\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tfor(int i = 0; i<=10;i++)\r\n\t\t{\r\n\t\t\tif(i == 6)\r\n\t\t\t{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(i);\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n int counter = 1;\n while (counter <=500){\n if (counter % 7 == 0 || counter % 5 == 0 || counter % 3 == 0){\n System.out.println( counter);\n }\n counter ++;\n }\n\n int counter2 = 500;\n do {\n System.out.println(\"do counter < 100\");\n }while (counter2 < 100); //mind. 1 Durchlauf da Bedingung am schluss ist, sonst gleich wie while\n }", "public void nestedForLoopStatementWithoutContinue() {\n FIRST_CHAR_LOOP:\n for (int a = 1; a <= 4; a++) {\n for (char x = 'a'; x <= 'c'; x++) {\n if (a == 2 || x == 'b') {\n //continue;\n }\n System.out.print(\" \" + a + x); //1a 1b 1c 2a 2b 2c 3a 3b 3c 4a 4b 4c\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint i=0;//initialize\n\t\twhile(i<=10)//Condtiion\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\ti++;//increment\n\t\t}\n\t\tSystem.out.println(\"Out of Loop\");\n\t\t\n\t}", "public void loop() {\n System.out.println(\"loop\");\n }" ]
[ "0.674043", "0.6716339", "0.67030346", "0.65349543", "0.65326136", "0.64731026", "0.64279914", "0.63834494", "0.62975234", "0.62772405", "0.62632966", "0.6221833", "0.621076", "0.6182158", "0.61800057", "0.61678606", "0.6149969", "0.6149706", "0.6146243", "0.6117858", "0.6117353", "0.6116697", "0.6107027", "0.6106791", "0.6092354", "0.60791874", "0.6052978", "0.6043293", "0.60425824", "0.6033901", "0.60234064", "0.6022968", "0.60219216", "0.60206115", "0.6019024", "0.6017445", "0.59814763", "0.5979886", "0.5976168", "0.5969835", "0.59679854", "0.5963727", "0.5942688", "0.5941605", "0.5914115", "0.5910252", "0.5908516", "0.5895323", "0.5888101", "0.588751", "0.58873516", "0.5887072", "0.58767027", "0.5876393", "0.58763653", "0.5873007", "0.5871157", "0.5868366", "0.5860501", "0.5857272", "0.5857272", "0.5850467", "0.58440673", "0.5841664", "0.5831873", "0.5829818", "0.5817858", "0.580901", "0.5788251", "0.57757956", "0.57750446", "0.5766068", "0.5749494", "0.57451236", "0.57397366", "0.5737203", "0.5732529", "0.5726767", "0.5723603", "0.5720535", "0.571345", "0.57101417", "0.5702588", "0.5697255", "0.5693837", "0.56874603", "0.5684871", "0.56837684", "0.56828064", "0.5682194", "0.5671303", "0.56705177", "0.56694055", "0.5667121", "0.56656545", "0.56618977", "0.5658178", "0.56553566", "0.56486315", "0.5619123", "0.5617333" ]
0.0
-1
/ 2.12 If Statements
public void caseAIfStmt(AIfStmt node) { int initCount = 0; //inAIfStmt(node); if(node.getStmt() != null) { newScope(); initCount++; } if(node.getIf() != null) { node.getIf().apply(this); } if(node.getStmt() != null) { node.getStmt().apply(this); } if(node.getExp() != null) { node.getExp().apply(this); } { List<PStmt> copy = new ArrayList<PStmt>(node.getTrue()); for(PStmt e : copy) { e.apply(this); } } { List<PElseIf> copy = new ArrayList<PElseIf>(node.getElseIf()); Iterator<PElseIf> itr = copy.iterator(); while (itr.hasNext()) { PElseIf e = itr.next(); AElseIf elseIf = (AElseIf) e; if(elseIf.getStmt() != null) { newScope(); initCount++; } e.apply(this); if(elseIf.getExp() != null) { Type t = typemap.get(elseIf.getExp()); t = removeAlias(t); if(!(t instanceof BooleanType)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(elseIf) + "] If-else statement with non-boolean condition."); } } } { List<PStmt> copy = new ArrayList<PStmt>(node.getFalse()); for(PStmt e : copy) { e.apply(this); } } //outAIfStmt(node); if(node.getExp() != null) { Node e = node.getExp(); Type t = typemap.get(e); t = removeAlias(t); if(!(t instanceof BooleanType)) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] If statement with non-boolean condition."); } if (initCount>0) { if (dump) { List<PStmt> copy = new ArrayList<PStmt>(node.getTrue()); if (copy.size()>0 && golite.weeder.LineNumber.getLineNumber(copy.get(copy.size()-1))>0) { Node n = copy.get(copy.size()-1); System.out.println("[line " + golite.weeder.LineNumber.getLineNumber(n) + "]"); } } while (initCount>0) { unScope(); initCount--; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void page013() {\n int x = 3;\n if (x == 3) {\n System.out.println(\"x must be 3\");\n }\n System.out.println(\"this line runs no matter what\");\n\n // Test 2\n int y = 2;\n if (y == 3) {\n System.out.println(\"y must be 3\");\n } else {\n System.out.println(\"y is NOT 3\");\n }\n }", "final public void conditional() throws ParseException {\n jj_consume_token(IF);\n if (jj_2_40(4)) {\n jj_consume_token(39);\n } else {\n ;\n }\n jj_consume_token(BLOCKEDP);\n label_6:\n while (true) {\n if (jj_2_41(4)) {\n ;\n } else {\n break label_6;\n }\n jj_consume_token(34);\n }\n jj_consume_token(37);\n label_7:\n while (true) {\n if (jj_2_42(4)) {\n ;\n } else {\n break label_7;\n }\n jj_consume_token(34);\n }\n if (jj_2_43(4)) {\n command(salidaS);\n } else {\n ;\n }\n basicCommand();\n jj_consume_token(38);\n }", "private void Conditional(){\n\t\tLogicOR();\n\t\t\n\t\tfor(;;){\n\t\t\tif(eat(\"for\")){\n\t\t\t\tInlineFor();\n\t\t\t}else if(eat(\"if\")){\n\t\t\t\tExpression();\n\t\t\t\tif(eat(\"else\"))\n\t\t\t\t\tConditional();\n\t\t\t}else if(eat(\"defined\") || eat(\"!defined\"));\n\t\t\telse for(;;){\n\t\t\t\tif(eat(\"?\")){\n\t\t\t\t\tExpression();\n\t\t\t\t\tassert_eat(\":\");\n\t\t\t\t\tConditional();\n\t\t\t\t}else return;\n\t\t\t}\n\t\t}\n\t}", "protected boolean func_70814_o() { return true; }", "private boolean method_2685(ahb var1, int var2, int var3, int var4, int var5) {\r\n String[] var6 = class_752.method_4253();\r\n int var10000 = var5;\r\n boolean var7;\r\n if(var6 != null) {\r\n label148: {\r\n if(var5 != 0) {\r\n var10000 = var1.method_2170(var2, var3 - 1, var4, 0);\r\n if(var6 == null) {\r\n break label148;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n }\r\n\r\n byte var10001 = 1;\r\n if(var6 != null) {\r\n label138: {\r\n if(var10000 != 1) {\r\n var10000 = var1.method_2170(var2, var3 + 1, var4, 1);\r\n if(var6 == null) {\r\n break label138;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 2;\r\n }\r\n\r\n if(var6 != null) {\r\n label128: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2, var3, var4 - 1, 2);\r\n if(var6 == null) {\r\n break label128;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 3;\r\n }\r\n\r\n if(var6 != null) {\r\n label118: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2, var3, var4 + 1, 3);\r\n if(var6 == null) {\r\n break label118;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n var10001 = 5;\r\n }\r\n\r\n label153: {\r\n if(var6 != null) {\r\n label104: {\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2 + 1, var3, var4, 5);\r\n if(var6 == null) {\r\n break label104;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n if(var6 == null) {\r\n break label153;\r\n }\r\n\r\n var10001 = 4;\r\n }\r\n\r\n if(var10000 != var10001) {\r\n var10000 = var1.method_2170(var2 - 1, var3, var4, 4);\r\n if(var6 == null) {\r\n break label153;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3, var4, 0);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 2, var4, 1);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 1, var4 - 1, 2);\r\n }\r\n\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var10000 = var1.method_2170(var2, var3 + 1, var4 + 1, 3);\r\n }\r\n\r\n int var8;\r\n ahb var9;\r\n int var10002;\r\n int var10003;\r\n byte var10004;\r\n label155: {\r\n if(var6 != null) {\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var9 = var1;\r\n var8 = var2 - 1;\r\n var10002 = var3 + 1;\r\n var10003 = var4;\r\n var10004 = 4;\r\n if(var6 == null) {\r\n break label155;\r\n }\r\n\r\n var10000 = var1.method_2170(var8, var10002, var4, 4);\r\n }\r\n\r\n if(var10000 != 0) {\r\n var7 = true;\r\n return var7;\r\n }\r\n\r\n var9 = var1;\r\n var8 = var2 + 1;\r\n var10002 = var3 + 1;\r\n var10003 = var4;\r\n var10004 = 5;\r\n }\r\n\r\n var7 = var9.method_2170(var8, var10002, var10003, var10004);\r\n return var7;\r\n }", "String getIfElse();", "IfStatement createIfStatement();", "public abstract String\n conditional();", "IfExp createIfExp();", "private static boolean condenseConditional2_type1(Op03SimpleStatement ifStatement, List<Op03SimpleStatement> allStatements) {\n if (!(ifStatement.getStatement() instanceof IfStatement)) return false;\n\n final Op03SimpleStatement taken1 = ifStatement.getTargets().get(1);\n final Op03SimpleStatement nottaken1 = ifStatement.getTargets().get(0);\n if (!(nottaken1.getStatement() instanceof IfStatement)) return false;\n Op03SimpleStatement ifStatement2 = nottaken1;\n Op03SimpleStatement taken2 = ifStatement2.getTargets().get(1);\n Op03SimpleStatement nottaken2 = ifStatement2.getTargets().get(0);\n final Op03SimpleStatement nottaken2Immed = nottaken2;\n if (nottaken2Immed.getSources().size() != 1) return false;\n nottaken2 = Misc.followNopGotoChain(nottaken2, true, false);\n do {\n Op03SimpleStatement nontaken2rewrite = Misc.followNopGoto(nottaken2, true, false);\n if (nontaken2rewrite == nottaken2) break;\n nottaken2 = nontaken2rewrite;\n } while (true);\n if (!(taken1.getStatement() instanceof IfStatement)) return false;\n if (taken1.getSources().size() != 1) return false;\n Op03SimpleStatement ifStatement3 = taken1;\n Op03SimpleStatement taken3 = ifStatement3.getTargets().get(1);\n Op03SimpleStatement nottaken3 = ifStatement3.getTargets().get(0);\n Op03SimpleStatement notTaken3Source = ifStatement3;\n do {\n Op03SimpleStatement nontaken3rewrite = Misc.followNopGoto(nottaken3, true, false);\n if (nontaken3rewrite == nottaken3) break;\n notTaken3Source = nottaken3;\n nottaken3 = nontaken3rewrite;\n } while (true);\n\n // nottaken2 = nottaken3 = c\n if (nottaken2 != nottaken3) {\n // There's one final thing we can get away with - if these are both returns, and they are IDENTICAL\n // (i.e. same, AND for any variables accessed, ssa-same), then we can assume nottaken2 is a rewritten branch\n // to nottaken3.\n if (nottaken2.getStatement() instanceof ReturnStatement) {\n if (!nottaken2.getStatement().equivalentUnder(nottaken3.getStatement(), new StatementEquivalenceConstraint(nottaken2, nottaken3))) {\n return false;\n }\n } else {\n return false;\n }\n }\n if (taken2 != taken3) return false; // taken2 = taken3 = b;\n /*\n * rewrite as if ((w && z) || x)\n *\n *\n */\n IfStatement if1 = (IfStatement) ifStatement.getStatement();\n IfStatement if2 = (IfStatement) ifStatement2.getStatement();\n IfStatement if3 = (IfStatement) ifStatement3.getStatement();\n\n ConditionalExpression newCond = new BooleanExpression(\n new TernaryExpression(BytecodeLoc.combineShallow(if1, if2, if3),\n if1.getCondition().getNegated().simplify(),\n if2.getCondition().getNegated().simplify(),\n if3.getCondition().getNegated().simplify())).getNegated();\n// TernaryExpression\n// ConditionalExpression newCond =\n// new BooleanOperation(\n// new BooleanOperation(if1.getCondition(), if2.getCondition(), BoolOp.OR),\n// if3.getCondition(), BoolOp.AND);\n\n ifStatement.replaceTarget(taken1, taken3);\n taken3.addSource(ifStatement);\n taken3.removeSource(ifStatement2);\n taken3.removeSource(ifStatement3);\n\n nottaken1.getSources().remove(ifStatement);\n nottaken2Immed.replaceSource(ifStatement2, ifStatement);\n ifStatement.replaceTarget(nottaken1, nottaken2Immed);\n\n// nottaken3.removeSource(notTaken3Source);\n nottaken3.removeSource(notTaken3Source);\n\n ifStatement2.replaceStatement(new Nop());\n ifStatement3.replaceStatement(new Nop());\n ifStatement2.removeTarget(taken3);\n ifStatement3.removeTarget(taken3);\n\n ifStatement.replaceStatement(new IfStatement(BytecodeLoc.NONE, newCond));\n\n /*\n * Now we're cleared up, see if nottaken2immed actually jumps straight to its target.\n */\n if (nottaken2Immed.getSources().size() == 1) {\n if (nottaken2Immed.getSources().get(0).getIndex().isBackJumpFrom(nottaken2Immed)) {\n if (nottaken2Immed.getStatement().getClass() == GotoStatement.class) {\n Op03SimpleStatement nottaken2ImmedTgt = nottaken2Immed.getTargets().get(0);\n int idx = allStatements.indexOf(nottaken2Immed);\n int idx2 = idx + 1;\n do {\n Op03SimpleStatement next = allStatements.get(idx2);\n if (next.getStatement() instanceof Nop) {\n idx2++;\n continue;\n }\n if (next == nottaken2ImmedTgt) {\n // Replace nottaken2 with nottaken2ImmedTgt.\n nottaken2ImmedTgt.replaceSource(nottaken2Immed, ifStatement);\n ifStatement.replaceTarget(nottaken2Immed, nottaken2ImmedTgt);\n }\n break;\n } while (true);\n }\n }\n }\n\n return true;\n\n }", "public static void main(String[] args) {\n\t\n\tif (9<10) {\n\t\t\n\t\tSystem.out.println(\"Hello\");\t\n\t\tSystem.out.println(\"Happy Friday\");\n\t\tSystem.out.println(\"Tommorow is day off\");\n\t\t\n\t}\t\n\t\tint a= 1000;\n\t\t\n\tif (true) {\n\t\ta = 2000;\n\t\tSystem.out.println(a);\n\t}\n\t\t\n\t\t/*Note: single if statement: if (true) boolean expressition then { some codes to rune\n\t\tif the condition is true it will rune.\n\t\t*/\n\t\t\t\tint x = 987654320;\t\t\t\n\t\t\t\tif (x%2 ==0){\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\tbyte PersonAges = 78;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tname \n\t\t\t\tbyte voteAges = 18;\n\t\t\t\t\n\t\t\t\tif (PersonAges >= voteAges) {\n\t\t\t\t\tSystem.out.println(\" yes you are eligible to vote\");\n\t\t\t\t\tSystem.out.println(\"have fun with bulding wall\");\n\t\t\t\t\tSystem.out.println(\"MAGA\");\n\t\t\t\t\t\n\t\t\t\t\tif (PersonAges > voteAges) {\n\t\t\t\t\t\tSystem.out.println(\"Plase grow up\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tboolean Num1 = true;\n\t\t\t\t boolean Num2 = false; \n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tif (Num1)\n\t\t\t\t{\n\t\t\t\t\t\t\t\t\tSystem.out.println(Num1);\n\n\t\t\t\t}\n\t\t\t\t\t\n\t\tboolean Num = false;\n\t\tSystem.out.println(Num);\n\t\t\n\t\tboolean ResultB = 8 == 5;\n\t\t//\t\t\t\t\ttrue && true ==> true\n\t\t\n\t\tboolean E = !(7 > 5 && 6 != 5) && ( 9 >5 || 10 > 4);\n\n\t\t\n\t\t\n\t\tSystem.out.println(ResultB);\n\t\t\n\t\tSystem.out.println(\"\\tClass starts tomorrow\");\n\t\t\n\t\tSystem.out.print(\"True\\r\");\n\t\tSystem.out.println(\"true\\r\");\n\t\t\n\t\t\n\t\tSystem.out.println(\"\\\\muhtar\");\n\n\t\tSystem.out.println(\"\\'Java \");\n\n\t\tSystem.out.println(\"\\t\\t\\t\\tBook is called \\\"Game of Throne\\\" \");\n\n\n \tint $VairableName2 = 20;\n System.out.println($VairableName2+ \"$\");\t\n \n int g = 101;\n \t\tint h = g -= 1;\n \t\t\n \t\tSystem.out.println(h); \n \t\tSystem.out.println(g); \n\n\n \t\t\n\n\n\n\n\n\n \t\t\n\n\n\n\n\n \t\t\n \n\n\n\t\t\n\n\n\t\t\t\t}\t\t\t\n\t\t\n\t\t\t\n\t\t\n\t\t\t\t\t\n\t}", "private static boolean method_2690(ahb var0, int var1, int var2, int var3, int var4) {\r\n int var6 = var1 + class_1707.field_8947[var4];\r\n int var7 = var2 + class_1707.field_8948[var4];\r\n int var8 = var3 + class_1707.field_8949[var4];\r\n String[] var5 = class_752.method_4253();\r\n int var9 = 0;\r\n\r\n int var10000;\r\n while(true) {\r\n if(var9 < 13) {\r\n label68: {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var5 != null) {\r\n if(var7 > 0) {\r\n var10000 = var7;\r\n if(var5 == null) {\r\n return (boolean)var10000;\r\n }\r\n\r\n if(var7 < 255) {\r\n aji var10 = var0.getBlock(var6, var7, var8);\r\n aji var11 = var10;\r\n if(var5 != null) {\r\n if(var10.method_2424() == awt.field_4170) {\r\n break label68;\r\n }\r\n\r\n var11 = var10;\r\n }\r\n\r\n var10000 = method_2689(var11, var0, var6, var7, var8, true);\r\n if(var5 != null) {\r\n if(var10000 == 0) {\r\n return false;\r\n }\r\n\r\n var10000 = var10.method_2514();\r\n }\r\n\r\n if(var5 == null) {\r\n break;\r\n }\r\n\r\n if(var10000 != 1) {\r\n var10000 = var9;\r\n int var10001 = 12;\r\n if(var5 != null) {\r\n if(var9 == 12) {\r\n return false;\r\n }\r\n\r\n var6 += class_1707.field_8947[var4];\r\n var7 += class_1707.field_8948[var4];\r\n var10000 = var8;\r\n var10001 = class_1707.field_8949[var4];\r\n }\r\n\r\n var8 = var10000 + var10001;\r\n ++var9;\r\n if(var5 != null) {\r\n continue;\r\n }\r\n }\r\n break label68;\r\n }\r\n }\r\n\r\n var10000 = 0;\r\n }\r\n\r\n return (boolean)var10000;\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n break;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tint a,b,c,d;\n\t a = 50; b =20; c= 30; d=40;\n\t \n\t if (a>d) //true\n\t\t \n\t {\n\t if (d>b) //true\n\t {\n\t if (a>c) //true\n\t {\n\t\t if (c>b) //true\n\t\t {\n\t\t\t System.out.println(\"nested if condition true\");\n\t {\n\t System.out.println(\"nested if condition false\");\n\t} \n\t\t }\n\t }\n\t }\n }\n\n//eg 2\n\nint nu , nu1, nu2;\nnu = 100; nu1 = 200; nu2=300;\n if (nu<nu1 )\n System.out.println(\"nu is lesser\");\n { \n if(nu2>nu1)\n System.out.println(\"nu2 is grater\");\n {\n if (nu1>nu)\n System.out.println(\"nu1 is grater\");\n {\n System.out.println(\"netsred if got executed\");\t\n }\n }\n }\n {\n \tSystem.out.println(\"netsted if not got executed\");\t\n }\n \n \t}", "private boolean method_2691(ahb var1, int var2, int var3, int var4, int var5) {\r\n int var7 = var2 + class_1707.field_8947[var5];\r\n String[] var10000 = class_752.method_4253();\r\n int var8 = var3 + class_1707.field_8948[var5];\r\n int var9 = var4 + class_1707.field_8949[var5];\r\n String[] var6 = var10000;\r\n int var10 = 0;\r\n\r\n int var10001;\r\n int var21;\r\n label171: {\r\n while(true) {\r\n if(var10 < 13) {\r\n label191: {\r\n var21 = var8;\r\n if(var6 == null) {\r\n break label171;\r\n }\r\n\r\n if(var6 != null) {\r\n if(var8 > 0) {\r\n var21 = var8;\r\n if(var6 == null) {\r\n return (boolean)var21;\r\n }\r\n\r\n if(var8 < 255) {\r\n aji var11 = var1.getBlock(var7, var8, var9);\r\n if(var6 == null) {\r\n break;\r\n }\r\n\r\n if(var11.method_2424() != awt.field_4170) {\r\n var21 = method_2689(var11, var1, var7, var8, var9, true);\r\n if(var6 != null) {\r\n if(var21 == 0) {\r\n return false;\r\n }\r\n\r\n var21 = var11.method_2514();\r\n }\r\n\r\n if(var6 != null) {\r\n if(var21 != 1) {\r\n var21 = var10;\r\n var10001 = 12;\r\n if(var6 != null) {\r\n if(var10 == 12) {\r\n return false;\r\n }\r\n\r\n var7 += class_1707.field_8947[var5];\r\n var8 += class_1707.field_8948[var5];\r\n var21 = var9;\r\n var10001 = class_1707.field_8949[var5];\r\n }\r\n\r\n var9 = var21 + var10001;\r\n ++var10;\r\n if(var6 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var11.method_2466(var1, var7, var8, var9, var1.method_33(var7, var8, var9), 0);\r\n var1.method_2056(var7, var8, var9);\r\n }\r\n }\r\n break label191;\r\n }\r\n }\r\n\r\n var21 = 0;\r\n }\r\n\r\n return (boolean)var21;\r\n }\r\n }\r\n\r\n var10 = var7;\r\n break;\r\n }\r\n\r\n var21 = var8;\r\n }\r\n\r\n int var20 = var21;\r\n int var12 = var9;\r\n int var13 = 0;\r\n aji[] var14 = new aji[13];\r\n\r\n int var15;\r\n int var16;\r\n int var17;\r\n label140: {\r\n do {\r\n label137: {\r\n if(var7 == var2) {\r\n var21 = var8;\r\n var10001 = var3;\r\n if(var6 == null || var6 == null) {\r\n break label137;\r\n }\r\n\r\n if(var8 == var3) {\r\n var21 = var9;\r\n if(var6 == null) {\r\n break label140;\r\n }\r\n\r\n if(var9 == var4) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var21 = var7;\r\n var10001 = class_1707.field_8947[var5];\r\n }\r\n\r\n aji var18;\r\n label125: {\r\n var15 = var21 - var10001;\r\n var16 = var8 - class_1707.field_8948[var5];\r\n var17 = var9 - class_1707.field_8949[var5];\r\n var18 = var1.getBlock(var15, var16, var17);\r\n int var19 = var1.method_33(var15, var16, var17);\r\n if(var6 != null) {\r\n label122: {\r\n if(var18 == this) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var15 == var2) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var16 == var3) {\r\n if(var6 == null) {\r\n break label122;\r\n }\r\n\r\n if(var17 == var4) {\r\n int var10006 = this.field_2143;\r\n if(var6 != null) {\r\n var10006 = this.field_2143?8:0;\r\n }\r\n\r\n var1.method_2054(var7, var8, var9, class_1192.field_6063, var5 | var10006, 4);\r\n var10006 = this.field_2143;\r\n if(var6 != null) {\r\n var10006 = this.field_2143?8:0;\r\n }\r\n\r\n var1.method_2131(var7, var8, var9, class_474.method_2823(class_1192.field_6061, var5 | var10006, var5, true, false));\r\n if(var6 != null) {\r\n break label125;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var1.method_2054(var7, var8, var9, class_1192.field_6063, var19, 4);\r\n }\r\n }\r\n\r\n var1.method_2131(var7, var8, var9, class_474.method_2823(var18, var19, var5, true, false));\r\n }\r\n\r\n var14[var13++] = var18;\r\n var7 = var15;\r\n var8 = var16;\r\n var9 = var17;\r\n } while(var6 != null);\r\n\r\n var7 = var10;\r\n var8 = var20;\r\n var9 = var12;\r\n var21 = 0;\r\n }\r\n\r\n var13 = var21;\r\n\r\n do {\r\n label95: {\r\n if(var7 == var2) {\r\n var21 = var8;\r\n var10001 = var3;\r\n if(var6 == null || var6 == null) {\r\n break label95;\r\n }\r\n\r\n if(var8 == var3) {\r\n var21 = var9;\r\n if(var6 == null) {\r\n return (boolean)var21;\r\n }\r\n\r\n if(var9 == var4) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n var21 = var7;\r\n var10001 = class_1707.field_8947[var5];\r\n }\r\n\r\n var15 = var21 - var10001;\r\n var16 = var8 - class_1707.field_8948[var5];\r\n var17 = var9 - class_1707.field_8949[var5];\r\n var1.method_2063(var15, var16, var17, var14[var13++]);\r\n var7 = var15;\r\n var8 = var16;\r\n var9 = var17;\r\n } while(var6 != null);\r\n\r\n var21 = 1;\r\n return (boolean)var21;\r\n }", "String getIf();", "static void checkYESorNO(){\n /*\n System.out.print(\"X:\" + cntSymbols.get(\"X\"));\n System.out.print(\",O:\" + cntSymbols.get(\"O\"));\n System.out.print(\",.:\" + cntSymbols.get(\".\") + \"\\n\");\n */\n if(cntSymbols.get(\"O\") == null && cntSymbols.get(\".\") == 1 && cntSymbols.get(\"X\") ==3){\n result = \"YES\";\n return;\n } \n }", "public static void main(String[] args) {and-- &&\n//\t\tor-- ||\n//\t\tnot-- !\n//\t\t\n//\t\tGood-Brand and onsale\n//\t\tcondition1&& condition2\n//\t\t \n//\t\ttrue-true=ture\n//\t\ttrue-false-false true stable\n//\t\tfalse-false= false\n//\t\tfalse-false= false\n\t\t\n//\t\t\n\n\t\tint pincode=200;\n\t\tif (!(pincode<0)) {\n\t\t\tSystem.out.println(\"Pincode cannot be 0 or negative number\");\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] agrs) {\n\t\tconditionalOperEx();\r\n\t}", "public boolean method_2511(ahb var1, int var2, int var3, int var4, int var5, int var6) {\r\n String[] var7 = class_752.method_4253();\r\n int var10000 = var1.field_1832;\r\n if(var7 != null) {\r\n label157: {\r\n if(!var1.field_1832) {\r\n byte var8 = this.method_2685(var1, var2, var3, var4, var6);\r\n var10000 = var8;\r\n if(var7 != null) {\r\n label147: {\r\n if(var8 != 0) {\r\n var10000 = var5;\r\n if(var7 == null) {\r\n break label147;\r\n }\r\n\r\n if(var5 == 1) {\r\n var1.method_2055(var2, var3, var4, var6 | 8, 2);\r\n return false;\r\n }\r\n }\r\n\r\n var10000 = var8;\r\n }\r\n }\r\n\r\n if(var7 == null) {\r\n break label157;\r\n }\r\n\r\n if(var10000 == 0) {\r\n var10000 = var5;\r\n if(var7 == null) {\r\n break label157;\r\n }\r\n\r\n if(var5 == 0) {\r\n return false;\r\n }\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n }\r\n\r\n label162: {\r\n double var10001;\r\n double var10002;\r\n double var10003;\r\n boolean var20;\r\n if(var7 != null) {\r\n if(var10000 == 0) {\r\n var20 = this.method_2691(var1, var2, var3, var4, var6);\r\n if(var7 != null) {\r\n if(!var20) {\r\n return false;\r\n }\r\n\r\n var1.method_2055(var2, var3, var4, var6 | 8, 2);\r\n }\r\n\r\n var10001 = (double)var2 + 0.5D;\r\n var10002 = (double)var3 + 0.5D;\r\n var10003 = (double)var4 + 0.5D;\r\n String[] var17 = field_2148;\r\n var1.method_2084(var10001, var10002, var10003, \"tile.piston.out\", 0.5F, var1.field_1819.nextFloat() * 0.25F + 0.6F);\r\n if(var7 != null) {\r\n break label162;\r\n }\r\n }\r\n\r\n var10000 = var5;\r\n }\r\n\r\n if(var7 == null) {\r\n return (boolean)var10000;\r\n }\r\n\r\n if(var10000 == 1) {\r\n class_580 var18 = var1.method_31(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n var20 = var18 instanceof class_598;\r\n if(var7 != null) {\r\n if(var20) {\r\n ((class_598)var18).method_3196();\r\n }\r\n\r\n var1.method_2054(var2, var3, var4, class_1192.field_6063, var6, 3);\r\n var1.method_2131(var2, var3, var4, class_474.method_2823(this, var6, var6, false, true));\r\n var20 = this.field_2143;\r\n }\r\n\r\n if(var7 != null) {\r\n label125: {\r\n if(var20) {\r\n int var9;\r\n int var10;\r\n int var11;\r\n aji var12;\r\n int var13;\r\n byte var14;\r\n label119: {\r\n var9 = var2 + class_1707.field_8947[var6] * 2;\r\n var10 = var3 + class_1707.field_8948[var6] * 2;\r\n var11 = var4 + class_1707.field_8949[var6] * 2;\r\n var12 = var1.getBlock(var9, var10, var11);\r\n var13 = var1.method_33(var9, var10, var11);\r\n var14 = 0;\r\n if(var12 == class_1192.field_6063) {\r\n class_580 var15 = var1.method_31(var9, var10, var11);\r\n var10000 = var15 instanceof class_598;\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 != 0) {\r\n class_598 var16 = (class_598)var15;\r\n var10000 = var16.method_3189();\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 == var6) {\r\n var10000 = var16.method_3188();\r\n if(var7 == null) {\r\n break label119;\r\n }\r\n\r\n if(var10000 != 0) {\r\n var16.method_3196();\r\n var12 = var16.method_3187();\r\n var13 = var16.getBlock96();\r\n var14 = 1;\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var14;\r\n }\r\n\r\n label165: {\r\n if(var7 != null) {\r\n label106: {\r\n if(var10000 == 0) {\r\n label166: {\r\n aji var21 = var12;\r\n if(var7 != null) {\r\n if(var12.method_2424() == awt.field_4170) {\r\n break label166;\r\n }\r\n\r\n var21 = var12;\r\n }\r\n\r\n var10000 = method_2689(var21, var1, var9, var10, var11, false);\r\n if(var7 == null) {\r\n break label106;\r\n }\r\n\r\n if(var10000 != 0) {\r\n label95: {\r\n var10000 = var12.method_2514();\r\n if(var7 != null) {\r\n if(var10000 != 0) {\r\n label91: {\r\n var21 = var12;\r\n class_420 var19 = class_1192.field_6060;\r\n if(var7 != null) {\r\n if(var12 == class_1192.field_6060) {\r\n break label91;\r\n }\r\n\r\n var21 = var12;\r\n var19 = class_1192.field_6056;\r\n }\r\n\r\n if(var21 != var19) {\r\n break label95;\r\n }\r\n }\r\n }\r\n\r\n var2 += class_1707.field_8947[var6];\r\n var3 += class_1707.field_8948[var6];\r\n var4 += class_1707.field_8949[var6];\r\n var1.method_2054(var2, var3, var4, class_1192.field_6063, var13, 3);\r\n var1.method_2131(var2, var3, var4, class_474.method_2823(var12, var13, var6, false, false));\r\n var1.method_2056(var9, var10, var11);\r\n }\r\n\r\n if(var7 != null) {\r\n break label165;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n var10000 = var14;\r\n }\r\n }\r\n\r\n if(var7 != null && var10000 == 0) {\r\n var1.method_2056(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n }\r\n }\r\n\r\n if(var7 != null) {\r\n break label125;\r\n }\r\n }\r\n\r\n var1.method_2056(var2 + class_1707.field_8947[var6], var3 + class_1707.field_8948[var6], var4 + class_1707.field_8949[var6]);\r\n }\r\n }\r\n\r\n var10001 = (double)var2 + 0.5D;\r\n var10002 = (double)var3 + 0.5D;\r\n var10003 = (double)var4 + 0.5D;\r\n String[] var10004 = field_2148;\r\n var1.method_2084(var10001, var10002, var10003, \"tile.piston.in\", 0.5F, var1.field_1819.nextFloat() * 0.15F + 0.6F);\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n return (boolean)var10000;\r\n }", "private boolean m14065a(ap apVar, ap apVar2) {\n return this.f13249m.booleanValue() && apVar.c().equals(ap.f6876a) && apVar.e() == apVar2.e();\n }", "@Override\n\tpublic String visitIfstatement(IfstatementContext ctx) {\n\t\t\n\t\tfor(int i =0; i< ctx.getChildCount(); i++)\n\t\t{\n\t\t\n\t\tif(ctx.getChild(i).getText().equals(\"if\"))\t\n\t\t sb.append(\"CHECK \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"else\"))\n\t\t sb.append(\"OR \\n\");\n\t\telse if (ctx.getChild(i).getText().equals(\"stop\"))\n\t\t\t sb.append(\"STOP\");\n\t\telse if(!ctx.getChild(i).getText().equals(\":\"))\n\t\t{\n\t\t\tString str =visit(ctx.getChild(i));\n\t\t\tif(str.length()>0)\n\t\t\t\tsb.append(str+\"\\n\");\n\t\t}\n\t\t}\n\t\t\n\t\treturn \"\";\n\t}", "public static void main(String[] args) {\n\t\n\tSystem.out.println(10>9);\n\tboolean resultA = 10> 9; \n\t\n\tSystem.out.println(resultA);\n\tSystem.out.println(10>=9); // greater or equal\n\t\n\tboolean resultB= 10>=9; \n\tSystem.out.println(resultB);\n\t\n\tboolean resultC = 10<=9; \n\tSystem.out.println(resultC);\n\t\n\tboolean resultD= 1100 <1200;\n\tSystem.out.println(resultD);\n\t\n\tboolean resultE = 1000 < 1000; \n\tSystem.out.println(resultE);\n\t\t\t\n\tboolean resultF = 1000 <= 1000; \n\tSystem.out.println(resultF);\n\t\n\t\n\t\n\t\n\tboolean A = ! false ; \n\tSystem.out.println(A);\n\t\n\tboolean B = ! true; \n\tSystem.out.println(B);\n\t\n\tboolean C = ! false !=false; \n\tSystem.out.println(C);\n\t\n\t\n\t\n\t// practice ! (not) : \n\t\n\tboolean g = false; \n\tSystem.out.println(g);\n\t\n\tSystem.out.println(! g);\n\t\n\tSystem.out.println(!true == false);\n\t\n\t\n\t\n\tboolean h = \"Batch 12\" == \"Batch13\"; \n\tSystem.out.println(h);\n\n\tSystem.out.println( \" batch12\" != \"Batch12\");\n\tSystem.out.println(\"Kuzzat\" == \"bad guy\");\n\t\n\t\n\tint Num = 198; \n\tSystem.out.println(Num %= 2);\n\t\n\tbyte byteNum = 30; \n\t// int INum = INum + byteNum ; // we must give value to local variables . \n\t\n\t\n\tString str; \n\t// System.out.println(str);\n\t\n\t\n\t\n}", "private static boolean checkForMethod1() {\n\n \t\tif( easyTag1.size() < 3 || mediumTag2.size() < 3 || hardTag3.size() < 3 || easyTag4.size() < 3 || mediumTag5.size() < 3 || hardTag6.size() < 3 ) {\n \t\t\treturn true;\n \t\t}else {\n \t\t\treturn false;\n \t\t}\n\t}", "public static void main(String[] args) {\n\t\t\tint x=10;\r\n\t\t\tif(x>42) {\r\n\t\t\t\tSystem.out.println(\"UTP\");\r\n\t\t\t\t\t }\r\n\t\t\telse\r\n\t\t\t {\r\n\t\t\t\tSystem.out.println(\"Error\");\r\n\t\t\t }\r\n\t\t\t\r\n\t\t\tint edad=40;\r\n\t\t\tif(edad>16)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"joven\");\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(\"adulto\");\r\n\t\t\t}\r\n\t\t\t\t\t\t\t\t\t\t }", "public abstract boolean mo36211n();", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "String getIfBegin();", "public static void main(String[] args) {\n int i = 140;\n int j = 150;\n int k = 200;\n\n if (i>j){\n System.out.println(\"I is greater then J\");\n }\n else {\n System.out.println(\"I is Less then J \");\n }\n\n System.out.println(\"------------------------//Example of multiple conditions...---------------------------------------\");\n if (k>j){\n System.out.println(\"K is greater then J\");\n }\n else if (j==k){\n System.out.println(\"I is Equal to K\");\n }\n else {\n System.out.println(\"I is Less then to K \");\n }\n }", "public boolean method_121(ahb var1, int var2, int var3, int var4, boolean var5) {\r\n return true;\r\n }", "public boolean func_102007_a(int par1, ItemStack par2ItemStack, int par3)\n/* */ {\n/* 115 */ return (this.field_145850_b.func_72805_g(this.field_145851_c, this.field_145848_d, this.field_145849_e) == 5) && (par3 == ForgeDirection.UP.ordinal());\n/* */ }", "public static void main(String args[]) {\n boolean hasSATscore = true;\n boolean hasHighSchoolTranscript = true;\n boolean isInternational=false;\n boolean hasTOFELscore=false;\n\n /*\n * logical_step2: Check if the applicant is eligible to apply to the university\n * logical_step_details: the applicant must have a SAT score, a high school transcript and must have TOEFL score\n * if is an international student.\n * question_1: What does the following block of code do?\n * answer 1: Check if the applicant is eligible to apply to the university\n * question_2: What is the data type of the variable isElig?\n * answer 2: isElig is a Boolean data type\n * question_3: What is the value of: !isInternational. (value assigned above)\n * answer_3: the value of !isInternational is true\n * question_4: What is the output the following block of code?\n * answer_4: the code displays the following statement \"You eligibility requirement has been evaluated to :true\"\n */\n\n /*\n * stm_comment: isElig contains result of logical operation between the variables. logical and (&&), logical or(||) and not operator is used \n * question_1: Please explain how the value of isElig evaluated.\n * answer_1: isElig contains result of logical operation between the variables\n * question_2: Please state the operators used in the code block below.\n * answer_2: logical and (&&), logical or(||) and not operator is used .\n *\n */\n\n boolean isElig = hasSATscore && hasHighSchoolTranscript && (!isInternational || (isInternational && hasTOFELscore));\n System.out.println(\" Your eligibility requirement has been evaluated to :\" +isElig );\n\n\n }", "public boolean method_109() {\r\n return true;\r\n }", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "private IfElement _if(String expression, CodeElement... body)\n {\n return _ifElse(expression, Arrays.asList(body), null);\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public static void main(String[] args) {\nint tamil = 75;\r\nint english = 50;\r\nif((tamil>=35)||(english>=35))\r\n System.out.println(\"You are passed in english and tamil\");\r\nelse\r\n\tSystem.out.println(\"You are failed!\");\r\n\t}", "boolean method_109();", "public static void main(String[] args) {\nint b=1;\nif (b<10)\n{\n\tSystem.out.println(\"Value is less than 10\");\n}\n\n\telse if(b<20) \n\t\t{\n\t\tSystem.out.println(\"Value is less tha 20\");\n\t}\n\telse\n\t{\n\t\tSystem.out.println(\"Value is greater than 20\");\n\t\t\n\t}\n}", "public static void main(String[] args) {\n\n\t\tboolean sonuc1 = 5 + 2 ==7;\n\t\t\n\t\tSystem.out.println(sonuc1);\n\t\t\n\t\tSystem.out.println(15*3==40);\n\t\t\n\t\tSystem.out.println(15-3==12);\n\t\t\n\t\t//sisteme bir değere atama yapmadan direk == i yazdırırsan sistem bunun boolean olduğunu anlar ve boolean şeklinde \n\t\t//bir değere atama yapmaksızın da sonuç elde ederiz.\n\t\t\n\t\tboolean esitMi= 24/2==12;\n\t\t\n\t\tSystem.out.println(esitMi);\n\t\t\n\t\tSystem.out.println(5+2>8 || 9<6 );\n\t\tSystem.out.println(5+2>8 || 9<6 );\n\t\tSystem.out.println(5+2>8 || 9<6 );\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private static boolean method_2689(aji var0, ahb var1, int var2, int var3, int var4, boolean var5) {\r\n boolean var10;\r\n label123: {\r\n String[] var6 = class_752.method_4253();\r\n aji var10000 = var0;\r\n aji var10001 = class_1192.field_6076;\r\n if(var6 != null) {\r\n if(var0 == class_1192.field_6076) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n var10001 = class_1192.field_6088;\r\n }\r\n\r\n label124: {\r\n if(var6 != null) {\r\n if(var10000 == var10001) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label124;\r\n }\r\n\r\n var10001 = class_1192.field_6109;\r\n }\r\n\r\n if(var10000 == var10001) {\r\n break label123;\r\n }\r\n\r\n var10000 = var0;\r\n }\r\n\r\n String var9 = var10000.method_2510();\r\n String[] var11 = field_2148;\r\n var10 = var9.equals(\"tile.pumpkinStem\");\r\n if(var6 == null) {\r\n return var10;\r\n }\r\n\r\n if(!var10) {\r\n label126: {\r\n label127: {\r\n var10000 = var0;\r\n var10001 = class_1192.field_6128;\r\n if(var6 != null) {\r\n if(var0 == class_1192.field_6128) {\r\n break label126;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label127;\r\n }\r\n\r\n var10001 = class_1192.field_6112;\r\n }\r\n\r\n if(var10000 == var10001) {\r\n break label126;\r\n }\r\n\r\n var10000 = var0;\r\n }\r\n\r\n int var8;\r\n label88: {\r\n label129: {\r\n label130: {\r\n label85: {\r\n class_420 var12 = class_1192.field_6060;\r\n if(var6 != null) {\r\n if(var10000 == class_1192.field_6060) {\r\n break label85;\r\n }\r\n\r\n var10000 = var0;\r\n if(var6 == null) {\r\n break label130;\r\n }\r\n\r\n var12 = class_1192.field_6056;\r\n }\r\n\r\n if(var10000 != var12) {\r\n var10000 = var0;\r\n break label130;\r\n }\r\n }\r\n\r\n var8 = method_2687(var1.method_33(var2, var3, var4));\r\n if(var6 == null) {\r\n break label88;\r\n }\r\n\r\n if(var8 != 0) {\r\n return false;\r\n }\r\n break label129;\r\n }\r\n\r\n float var13;\r\n var8 = (var13 = var10000.method_2439(var1, var2, var3, var4) - -1.0F) == 0.0F?0:(var13 < 0.0F?-1:1);\r\n if(var6 != null) {\r\n if(var8 == 0) {\r\n return false;\r\n }\r\n\r\n var8 = var0.method_2514();\r\n }\r\n\r\n byte var7 = 2;\r\n if(var6 != null) {\r\n if(var8 == 2) {\r\n return false;\r\n }\r\n\r\n var8 = var0.method_2514();\r\n if(var6 == null) {\r\n break label88;\r\n }\r\n\r\n var7 = 1;\r\n }\r\n\r\n if(var8 == var7) {\r\n var10 = var5;\r\n if(var6 != null) {\r\n if(!var5) {\r\n return false;\r\n }\r\n\r\n var10 = true;\r\n }\r\n\r\n return var10;\r\n }\r\n }\r\n\r\n var8 = var0 instanceof class_28;\r\n }\r\n\r\n if(var6 != null) {\r\n var8 = var8 == 0?1:0;\r\n }\r\n\r\n return (boolean)var8;\r\n }\r\n }\r\n }\r\n\r\n var10 = false;\r\n return var10;\r\n }", "public boolean method_6198(ahb var1, Random var2, class_1206 var3) {\r\n String[] var4 = class_752.method_4253();\r\n int var10000 = this.method_6203(var1, var3);\r\n if(var4 != null) {\r\n if(var10000 != 0) {\r\n return false;\r\n }\r\n\r\n this.method_6213(var1, var3, 0, 0, 0, 10, 6, 10, true, var2, class_1252.method_6598());\r\n this.method_6302(var1, var2, var3, this.field_5851, 4, 1, 0);\r\n this.method_6211(var1, var3, 4, 1, 10, 6, 3, 10, class_1192.field_6025, class_1192.field_6025, false);\r\n this.method_6211(var1, var3, 0, 1, 4, 0, 3, 6, class_1192.field_6025, class_1192.field_6025, false);\r\n this.method_6211(var1, var3, 10, 1, 4, 10, 3, 6, class_1192.field_6025, class_1192.field_6025, false);\r\n var10000 = this.field_5880;\r\n }\r\n\r\n if(var4 != null) {\r\n int var5;\r\n switch(var10000) {\r\n case 0:\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 2, 5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 3, 5, var3);\r\n this.method_6208(var1, class_1192.field_6077, 0, 4, 3, 5, var3);\r\n this.method_6208(var1, class_1192.field_6077, 0, 6, 3, 5, var3);\r\n this.method_6208(var1, class_1192.field_6077, 0, 5, 3, 4, var3);\r\n this.method_6208(var1, class_1192.field_6077, 0, 5, 3, 6, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 4, 1, 4, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 4, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 4, 1, 6, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 6, 1, 4, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 6, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 6, 1, 6, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 5, 1, 4, var3);\r\n this.method_6208(var1, class_1192.field_6071, 0, 5, 1, 6, var3);\r\n if(var4 != null) {\r\n break;\r\n }\r\n case 1:\r\n var5 = 0;\r\n\r\n while(true) {\r\n if(var5 < 5) {\r\n this.method_6208(var1, class_1192.field_6123, 0, 3, 1, 3 + var5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 7, 1, 3 + var5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 3 + var5, 1, 3, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 3 + var5, 1, 7, var3);\r\n ++var5;\r\n if(var4 == null) {\r\n break;\r\n }\r\n\r\n if(var4 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 2, 5, var3);\r\n this.method_6208(var1, class_1192.field_6123, 0, 5, 3, 5, var3);\r\n this.method_6208(var1, class_1192.field_6033, 0, 5, 4, 5, var3);\r\n break;\r\n }\r\n\r\n if(var4 != null) {\r\n break;\r\n }\r\n case 2:\r\n var5 = 1;\r\n\r\n while(true) {\r\n if(var5 <= 9) {\r\n this.method_6208(var1, class_1192.field_6029, 0, 1, 3, var5, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 9, 3, var5, var3);\r\n ++var5;\r\n if(var4 == null) {\r\n break;\r\n }\r\n\r\n if(var4 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n var5 = 1;\r\n break;\r\n }\r\n\r\n while(true) {\r\n if(var5 <= 9) {\r\n this.method_6208(var1, class_1192.field_6029, 0, var5, 3, 1, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, var5, 3, 9, var3);\r\n ++var5;\r\n if(var4 == null) {\r\n break;\r\n }\r\n\r\n if(var4 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6029, 0, 5, 1, 4, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 5, 1, 6, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 5, 3, 4, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 5, 3, 6, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 4, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 6, 1, 5, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 4, 3, 5, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 6, 3, 5, var3);\r\n break;\r\n }\r\n\r\n var5 = 1;\r\n\r\n while(true) {\r\n if(var5 <= 3) {\r\n this.method_6208(var1, class_1192.field_6029, 0, 4, var5, 4, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 6, var5, 4, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 4, var5, 6, var3);\r\n this.method_6208(var1, class_1192.field_6029, 0, 6, var5, 6, var3);\r\n ++var5;\r\n if(var4 == null) {\r\n break;\r\n }\r\n\r\n if(var4 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6077, 0, 5, 3, 5, var3);\r\n break;\r\n }\r\n\r\n var5 = 2;\r\n\r\n while(true) {\r\n if(var5 <= 8) {\r\n label56: {\r\n this.method_6208(var1, class_1192.field_6030, 0, 2, 3, var5, var3);\r\n this.method_6208(var1, class_1192.field_6030, 0, 3, 3, var5, var3);\r\n if(var4 != null) {\r\n if(var4 == null) {\r\n break;\r\n }\r\n\r\n if(var5 > 3 && var5 < 7) {\r\n break label56;\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6030, 0, 4, 3, var5, var3);\r\n this.method_6208(var1, class_1192.field_6030, 0, 5, 3, var5, var3);\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6030, 0, 6, 3, var5, var3);\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6030, 0, 7, 3, var5, var3);\r\n this.method_6208(var1, class_1192.field_6030, 0, 8, 3, var5, var3);\r\n ++var5;\r\n if(var4 != null) {\r\n continue;\r\n }\r\n }\r\n\r\n this.method_6208(var1, class_1192.field_6091, this.method_6207(class_1192.field_6091, 4), 9, 1, 3, var3);\r\n this.method_6208(var1, class_1192.field_6091, this.method_6207(class_1192.field_6091, 4), 9, 2, 3, var3);\r\n this.method_6208(var1, class_1192.field_6091, this.method_6207(class_1192.field_6091, 4), 9, 3, 3, var3);\r\n this.method_6219(var1, var3, var2, 3, 4, 8, class_1652.method_9098(field_5879, new class_1652[]{class_1010.field_5259.getBlock06(var2)}), 1 + var2.nextInt(4));\r\n break;\r\n }\r\n }\r\n\r\n var10000 = 1;\r\n }\r\n\r\n return (boolean)var10000;\r\n }", "private void compileIfHelper() throws IOException {\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileExpression();\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileStatements();\n printToken();\n getNextToken();\n if (currentToken.equals(ELSE_TAG)) {\n for (int i = 0; i < 2; i++) {\n printToken();\n getNextToken();\n }\n compileStatements();\n printToken();\n getNextToken();\n }\n }", "protected void evaluateConditions()\n {\n ensureConditionContinuity() ;\n checkComponentList() ;\n\n for ( int liCondCtr = 1 ; liCondCtr <= 5 ; liCondCtr++ )\n {\n checkCondition( liCondCtr ) ;\n } /* end for */\n\n }", "void pass() {\r\n if (m1 >=35 && m2>=35 && m3>=35) {\r\n System.out.println(\"pass\");\r\n } else {\r\n System.out.println(\"fail\");\r\n }\r\n }", "@Override\r\n\tpublic boolean CheckConditions() {\n\t\treturn true;\r\n\t}", "public boolean method_103(int var1, int var2) {\r\n return true;\r\n }", "TAIfElse(TABoolValue e1, TABoolValue e2, TABoolValue e3)\n\t{\n\t\toperation = new TAIfElseBool(e1,e2,e3);\n\t}", "public static void main(String[] args) {\n\n int x =55; //fales || false || true --->>true\n System.out.println( x==50 || x==51 || x==55 );\n\n //check\n //x is more than 50 and\n // x is not 52 or\n // x equal to 57\n // == is checking for equality != is checking for inequality\n //true && true\n // true || false ---->>>>true\n System.out.println( x > 50 && x != 52 || x==57);\n\n System.out.println(false || true && false);\n\n\n\n\n\n\n }", "public abstract boolean mo9234ar();", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "public static void main(String[] args) {\n\t\t\n\t\tint x=300;\n\t\tint y=500;\n\t\tint z=500;\n\t\t\n\t\t//((x<y) && (x<z)) // logical expression in Java\n\t\t\n\t\t// (true && true) // the output is going to be true\n\t\t\n\t\t//((x==y) && (x>z))\n\t\t \n\t\t//( false && False) // the final output is going to be False\n\t\t//((x>y) && (x<z))\n\t\t \n\t\t//( false && true) // the final output is going to be False\t \n\t\t\n\t\t\n\t\tif((x==y)&&(x>z)) // compound condition\n{\n\tSystem.out.println(\"execute the block of code\");\n}\n\t\t\n\t\t\n\t\t\n\t\tboolean results= ((x<y)&&(x<z)); // true\n\t\tSystem.out.println(results);\n\t\t\n\t\t\n\t\t//OR operator ||\n\t\t\n\t\t// In case of OR operator, \n\t\t//if anyone of the relational expression is true, the final output is going to be true\n\t\t\n\t\t\n\t\t// x=400;\n\t\t// y=500;\n\t\t// z=400;\n\t\t \n\t\t\t//((x<y) || (x==z))\n\t\t\n\t\t// ( true || true) ----> true\n\t\t\n\t\t// false || true ----> TRUE\n\t\t\n\t\t// false || false----> false\n\t\t\n\t\t// True || False --->true\n\t\t\n\t\tint age= 30;\n\t\t\n\t\t if((age==30)||(age>18))\n\t\t {\n\t\t\t System.out.println(\"give the licence to customer\");\n\t\t }\n\t\t\n\t\t\n\t\t \n\t\t \n\t\t\n\t\t// Not operator ! - if the original value of the expression is true, and if we use ! operator on it, \n\t\t//the output will be changed to False\n\t\t\n\tint x1=100;\n\tint y1=50;\n\t\n\tif(!(x1==y1)) // x1 not equal to y1 ---true\n\t\t\n\t\t\n\t\t// !(x==y)\n\t\t\n\t{\n\t\tSystem.out.println(\"the output is true\");\n\t}\n\t\t// x>y --> 100>50 --->true\n\t\t \n\t\t//!(x>y) ---!(100>50) ---> False\n\t\t// 100 is not greater than 50 ---> false\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\n boolean freeShipping = true;\n boolean onSale = true;\n boolean hasItem = false;\n String item = \"Wooden Spoon\";\n\n if (freeShipping && onSale) {\n System.out.println(\"Purchase the - \" + item);\n } else {\n System.out.println(\"Next time when item \" + item + \" on sale\");\n }\n System.out.println(\"==================================\");\n\n // 2nd job offer selector\n\n String location = \"Toronto\";\n double salary = 85_000.0;\n boolean remote = true;\n boolean hasBenefit = true;\n\n if (location.equals(\"Toronto\") && salary == 85_000 && remote && hasBenefit) {\n\n System.out.println(\"Accept job offer\");\n } else {\n System.out.println(\"Reject the offer\");\n }\n System.out.println(\"==================================\");\n // 3rd practice OR(||)\n System.out.println(\"false || true = \" + (false || true)); // true\n System.out.println(\"true || false = \" + (false || true)); // true\n System.out.println(\"==================================\");\n\n // 4th practice OR||\n\n int apples = 10;\n int oranges = 8;\n\n if (apples > 11 || oranges > 10) {\n System.out.println(\"I have enough fruits\");\n } else {\n System.out.println(\"Go to Giant buy fruits\");\n\n }\n System.out.println(\"==================================\");\n\n // 4th practice CitySelector\n\n String city = \"VA\";\n if (city.equals(\"LA\") || city.equals(\"Toronto\")) {\n System.out.println(\"Willing to relocate LA\");\n\n } else {\n System.out.println(\"Not considering Seattle\");\n }\n System.out.println(\"==================================\");\n\n char grade = 'A';\n if (grade == 'A' || grade == 'B' || grade == 'C') {\n System.out.println(\"passed with grade\");\n\n } else if (grade == 'D') {\n System.out.println(\"quality for retake\");\n } else if(grade == 'E') {\n\n } else {\n System.out.println(\"invalid grade\");\n }\n\n // 4 th dealership\n\n double budget = 5000.0;\n String model = (\"Toyota\");\n double carPrice = 4500;\n\n if (carPrice == 4500 && (model.equals(\"Toyota\") || model.equals(\"Honda\"))) {\n\n System.out.println(\"Ready to purchase + \" + model + \", price = \" + carPrice);\n\n }else {\n System.out.println(\"Not interested in model = \" + model + \", price = \" + carPrice);\n }\n\n // ! not Operator\n\n\n System.out.println(\"!true = \" + (!true));\n int age = 5;\n if (!(age < 4)) {\n System.out.println(\"Need to seat in child seat = \" + age);\n }else {\n System.out.println(\"Can seat in adult seat = \" + age);\n }\n\n boolean isSmokingAllowed = false;\n\n if (!isSmokingAllowed) {\n System.out.println(\"Need to exit and smoke outside\");\n }else {\n System.out.println(\"You can smoke\");\n }\n\n String inputPassword = \"abd123\";\n String correctPassword = \"123abc\";\n\n if (!inputPassword.equals(\"abc123\")) {\n\n System.out.println(\"Access granted\");\n }else {\n System.out.println(\"Access denied\" );\n }\n\n\n\n\n }", "private void checkCondition( int fiIndex )\n {\n Vector lvVals = new Vector();\n int liNumTokens = 0;\n String lsDocCd = null ;\n String lsOperator = null ;\n int liIndex ;\n String lsDataObject = null ;\n String lsFieldName = null ;\n int liFieldType ;\n String lsLHS = getAND_COND_LHS( fiIndex ) ;\n String lsRHS = getAND_COND_RHS( fiIndex ) ;\n String lsRHS_FLD = getAND_COND_RHS_FLD( fiIndex );\n byte lbOper = getAND_COND_OPR( fiIndex ) ;\n int liCondType = getAND_COND_TYP( fiIndex ) ;\n boolean lboolLHSExists = true ;\n boolean lboolRHSExists = true ;\n boolean lboolListOper = false ;\n char [] lcRhsChar = null;\n int liRhsLen = 0;\n boolean lboolRHSFLDExists = true ;\n boolean lboolIsNullOrIsNotNullOper = false ;\n int liRHSIndex=-1;\n String lsRHSDataObject = null ;\n String lsRHSFieldName = null ;\n int liRHSFieldType=0;\n\n if ( ( lsLHS == null ) || ( lsLHS.trim().length() <= 0 ) )\n {\n lboolLHSExists = false ;\n } /* end if ( ( lsLHS == null ) || ( lsLHS.trim().length() <= 0 ) ) */\n\n lsOperator = CVL_WF_OPRSImpl.RULE_OPERATOR[lbOper];\n\n lboolIsNullOrIsNotNullOper=lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)||\n\t lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL);\n\n\t if (!lboolIsNullOrIsNotNullOper && (( lsRHS == null ) || ( lsRHS.trim().length() <= 0 )) )\n\t {\n\t lboolRHSExists = false ;\n\t } /* end if ( ( lsRHS == null ) || ( lsRHS.trim().length() <= 0 ) ) */\n\n\t // Check if RHS Field exists.\n\t if (!lboolIsNullOrIsNotNullOper && AMSStringUtil.strIsEmpty(lsRHS_FLD) )\n\t {\n\t lboolRHSFLDExists = false ;\n\t } /* end if ( AMSStringUtil.strIsEmpty(lsRHS_FLD) ) */\n\n\n /*\n * If the value for the left hand side is null, and the value\n * for the right hand side is null, then return\n */\n if ( ! ( lboolLHSExists || lboolRHSExists || lboolRHSFLDExists) )\n\t {\n\t return ;\n\t } /* end if ( ! ( lboolLHSExists || lboolRHSExists ) ) */\n\n\t /*\n\t * If the value for the left hand side is not null, but\n\t * the value for the right hand side is null, then\n\t * raise an exception\n\t */\n\t if ( lboolLHSExists && !lboolRHSExists && !lboolRHSFLDExists)\n\t {\n\t raiseException( \"%c:Q0074%\" ) ;\n\t return ;\n\t } /* end if ( lboolLHSExists && !lboolRHSExists ) */\n\n\t if(!lboolIsNullOrIsNotNullOper)\n\t {\n\t /*\n\t * If right hand side value and right hand side field both are present, then\n\t * raise an exception\n\t */\n\t if ( lboolRHSFLDExists && lboolRHSExists )\n\t {\n\t raiseException( \"%c:Q0142%\" ) ;\n\t return ;\n\t } /* end if ( lboolRHSFLDExists && lboolRHSExists ) */\n\n\t /*If right hand side field component neither equal to the left hand side\n\t *component nor the header component.\n\t */\n\t if(lboolLHSExists && lboolRHSFLDExists && !isRHSFldCompEqualsLHSOrHDR(lsLHS,lsRHS_FLD))\n\t {\n\t raiseException( \"%c:Q0145%\" ) ;\n\t return ;\n\t }\n\t }\n\n\t /*\n\t * If the value for the left hand side is null, but\n\t * the value for the right hand side is not null, then\n\t * raise an exception\n\t */\n\t if ( !lboolLHSExists && (lboolRHSExists || lboolRHSFLDExists))\n\t {\n\t raiseException( \"%c:Q0075%\" ) ;\n\t return ;\n\t } /* end if ( ( lsLHS == null ) && ... */\n\n\t /*\n\t * If both left hand and right hand sides are not null, but the\n\t * operator is null, then raise an exception\n\t */\n\t if ( ( lboolLHSExists ) && ( lboolRHSExists || lboolRHSFLDExists) && ( lbOper <= 0 ) )\n\t {\n\t raiseException( \"%c:Q0076%\" ) ;\n\t return ;\n\t } /* end if ( ( lboolLHSExists ) ... */\n\n /*\n * If both left hand , right hand sides are not null and operator\n * is not null but the type of condition is null, then raise an exception\n */\n if ( ( lboolLHSExists ) && ( lboolRHSExists || lboolRHSFLDExists) && ( lbOper > 0 ) && liCondType <= 0 )\n {\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n fiIndex + \",v: Left Hand Side, Operator and Right Hand Side are %\" ) ;\n return ;\n } /* end if ( ( lboolLHSExists ) ... */\n\n\n /*\n * If the left hand side, right hand side, or operator value is null\n * then return\n */\n if ( ( !lboolLHSExists ) || ( !lboolRHSExists && !lboolRHSFLDExists) || ( lbOper <= 0 ) )\n {\n return ;\n } /* end if ( ( !lboolLHSExists ) || ... */\n\n /*\n * If both left hand and right hand sides are not null, but the\n * operator is \"IS_NULL\" or \"IS_NOT_NULL\", then raise an exception\n */\n if ((lsLHS != null ) && (lsRHS != null || !AMSStringUtil.strIsEmpty(lsRHS_FLD)) &&\n (lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL) ||\n lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL)))\n {\n\t raiseException( \"%c:Q0113%\" ) ;\n\t return;\n } /* end if ( (lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)).... */\n\n /*\n * Verify that the left hand side is a valid workflow approval\n * field. If not, then raise an exception\n */\n lsDocCd = getDOC_CD() ;\n if ( ( lsDocCd != null ) && ( lsDocCd.trim().length() > 0 ) )\n {\n Enumeration loEnum = null ;\n Enumeration loEnumForRHSFld = null ;\n String lsWhereClause = \"DOC_CD=\" +\n AMSSQLUtil.getANSIQuotedStr( lsDocCd,true ) ;\n\n loEnum = R_WF_APRV_FLDImpl.getObjects( lsWhereClause, this.getSession() ) ;\n loEnumForRHSFld = R_WF_APRV_FLDImpl.getObjects( lsWhereClause, getSession() ) ;\n if ( !checkFields( loEnum, lsLHS ) )\n {\n raiseException( \"%c:Q0077%\" ) ;\n return ;\n } /* end if ( !checkFields( loEnum, lsLHS ) */\n if(!lboolIsNullOrIsNotNullOper && lboolRHSFLDExists)\n {\n if ( !checkFields( loEnumForRHSFld, lsRHS_FLD ) )\n {\n raiseException( \"%c:Q0077%\" ) ;\n return ;\n } /* end if ( !checkFields( loEnum, lsRHS_FLD ) */\n }/* end if (lboolRHSFLDExists) */\n } /* end if ( ( lsDocCd != null ) && ( lsDocCd.trim.length() > 0 ) ) */\n\n liIndex = lsLHS.indexOf( '.' ) ;\n lsDataObject = lsLHS.substring( 0,liIndex ) ;\n lsFieldName = lsLHS.substring( liIndex + 1, lsLHS.length() ) ;\n liFieldType = getFieldType( lsDataObject, lsFieldName ) ;\n\n /*Field Type for the left hand side field and the right hand side field\n *should be comparable to each other.\n */\n if(!lboolIsNullOrIsNotNullOper && lboolRHSFLDExists)\n {\n liRHSIndex = lsRHS_FLD.indexOf( DOT_CHAR ) ;\n lsRHSDataObject = lsRHS_FLD.substring( 0,liRHSIndex ) ;\n lsRHSFieldName = lsRHS_FLD.substring( liRHSIndex + 1, lsRHS_FLD.length() ) ;\n liRHSFieldType = getFieldType( lsRHSDataObject, lsRHSFieldName ) ;\n if(!isFieldTypeComparable(liFieldType,liRHSFieldType))\n {\n raiseException( \"%c:Q0148%\" ) ;\n return;\n }\n }\n\n /*\n * If the data type of the field is boolean\n * and operator used is not EQUAL(=) or NOT_EQUAL(<>)\n * then raise an exception\n */\n if( liFieldType == DataConst.BIT\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.EQUAL)\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.NOT_EQUAL))\n {\n raiseException( \"%c:Q0155%\" ) ;\n return ;\n }\n\n /*\n * Parse the value from the right hand side into individual\n * values which are comma separated.\n */\n if(!(AMSStringUtil.strIsEmpty(lsRHS)))\n {\n lvVals = getListVals( lsRHS, getSession() ) ;\n lcRhsChar = lsRHS.toCharArray();\n liRhsLen = lsRHS.trim().length();\n }\n\n if ( lvVals != null )\n {\n liNumTokens = lvVals.size() ;\n } /* end if ( loTokens != null ) */\n\n if ( ( lsOperator.trim().equals( CVL_WF_OPRSImpl.IN_LIST ) ) ||\n ( lsOperator.trim().equals( CVL_WF_OPRSImpl.NOT_IN_LIST ) ) )\n {\n lboolListOper = true ;\n } /* end if if ( ( lsOperator.trim().equals( CVL_WF_OPRSImpl.IN_LIST )...*/\n\n //List operator should not be used with the right hand side field.\n if(lboolListOper && lboolRHSFLDExists)\n {\n raiseException( \"%c:Q0149%\" ) ;\n return;\n }\n\n if(liCondType == CVL_WF_COND_TYPImpl.DELTA_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.PERCENT_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.ABS_DELTA_CHANGE ||\n liCondType == CVL_WF_COND_TYPImpl.ABS_PERCENT_CHANGE)\n {\n /*\n * Raise error if Operator is IN LIST or NOT_IN_LIST or IS_NULL or IS_NOT_NULL\n * and Approval Condition Type is other than 'Actual Value'.\n */\n lsOperator = lsOperator.trim();\n if(AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IN_LIST) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.NOT_IN_LIST) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IS_NULL) ||\n AMSStringUtil.strEqual(lsOperator, CVL_WF_OPRSImpl.IS_NOT_NULL))\n {\n raiseException( \"%c:Q0152,v:\" + fiIndex + \"%\" ) ;\n return;\n }\n\n if(liFieldType != DataConst.BIGINT &&\n liFieldType != DataConst.DECIMAL &&\n liFieldType != DataConst.DOUBLE &&\n liFieldType != DataConst.FLOAT &&\n liFieldType != DataConst.INTEGER &&\n liFieldType != DataConst.NUMERIC &&\n liFieldType != DataConst.SMALLINT &&\n liFieldType != DataConst.REAL &&\n liFieldType != DataConst.TINYINT)\n {\n /*\n * Raise error when Left Hand Side is not numeric and\n * Condition Type is Delta Change, Percent Change,\n * Absolute Delta Change or Absolute Percent Change.\n */\n raiseException(\"%c:Q0151,v: \" +\n CVL_WF_COND_TYPImpl.getConditionTypeDV(liCondType, getSession()) +\n \" for Condition \" + fiIndex + \"%\");\n return;\n }\n\n for (int liCnt = 0; liCnt < liRhsLen; liCnt++)\n {\n if (!((lcRhsChar[liCnt] == '-') ||\n (lcRhsChar[liCnt] == '.') ||\n Character.isDigit(lcRhsChar[liCnt])))\n {\n /*\n * Raise error when Right Hand Side is not numeric and\n * Condition Type is Delta Change, Percent Change,\n * Absolute Delta Change or Absolute Percent Change.\n */\n raiseException(\"%c:Q0153,v: \" + fiIndex + \"%\");\n return;\n }\n } //end for loop\n }\n\n /* If the operator is not \"In List\" or \"Not In List\" */\n if ( !lboolListOper )\n {\n /* if more than one parsed value */\n if ( liNumTokens > 1 )\n {\n StringBuffer lsbSingleVal = new StringBuffer(256) ;\n raiseException( \"%c:Q0077%\" ) ;\n }\n else\n {\n /*\n * If the data type of the field is boolean\n * and operator used is not EQUAL(=) or NOT_EQUAL(<>)\n * then raise an exception\n */\n if( liFieldType == DataConst.BIT\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.EQUAL)\n && !AMSStringUtil.strEqual(lsOperator,CVL_WF_OPRSImpl.NOT_EQUAL))\n {\n raiseException( \"%c:Q0155%\" ) ;\n }\n\n } /* end else of if ( liNumTokens > 1 ) */\n } /* end if ( !lboolListOper ) */\n else\n {\n /*\n * If the data type of the field is not numeric or text,\n * then raise an exception\n */\n if ( !( ( isFieldNumeric( lsDataObject, lsFieldName ) ) ||\n ( liFieldType == DataConst.CHAR ) ||\n ( liFieldType == DataConst.VARCHAR ) ) )\n {\n raiseException( \"%c:Q0078%\" ) ;\n return ;\n } /* end if ( !( isFieldNumeric... */\n } /* end else */\n\n if ( ( lvVals != null ) && ( liNumTokens > 0 ) )\n {\n String lsParsedVal ;\n for( int liCtr = 0 ; liCtr < liNumTokens ; liCtr ++ )\n {\n lsParsedVal = (String) lvVals.elementAt(liCtr) ;\n checkValue( liFieldType, lsParsedVal, fiIndex ) ;\n } /* end while ( loTokens.hasMoreTokens() ) */\n } /* end if ( loTokens != null ) */\n else\n {\n if(!(lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NULL)|| lsOperator.trim().equals( CVL_WF_OPRSImpl.IS_NOT_NULL))\n && !AMSStringUtil.strIsEmpty(lsRHS) )\n {\n \tcheckValue( liFieldType, lsRHS, fiIndex ) ;\n\t\t }\n } /* end else */\n }", "private boolean isCondition() {\n return line.startsWith(\"if \") || line.startsWith(\"else \") ||\n line.startsWith(\"if(\") || line.equals(\"else\");\n }", "public boolean e()\r\n/* 50: */ {\r\n/* 51:102 */ return this.a.size() > 45;\r\n/* 52: */ }", "private boolean a(ao aoVar, ao aoVar2) {\n return (aoVar == null && aoVar2 == null) ? true : aoVar != null && aoVar2 != null && aoVar.bu == aoVar2.bu && aoVar.bw == aoVar2.bw && n(aoVar.packageName, aoVar2.packageName) && n(aoVar.softName, aoVar2.softName) && n(aoVar.certMd5, aoVar2.certMd5) && n(aoVar.aA, aoVar2.aA) && n(aoVar.version, aoVar2.version) && n(aoVar.dexSha1, aoVar2.dexSha1) && aoVar.bv == aoVar2.bv;\n }", "public boolean func_70097_a(DamageSource par1DamageSource, float par2) {\n/* 296 */ if (func_180431_b(par1DamageSource))\n/* */ {\n/* 298 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 302 */ return super.func_70097_a(par1DamageSource, par2);\n/* */ }", "static boolean translateIF() {\n index++;\r\n lex();\r\n\r\n //Skip adding \"(\" to stack\r\n lex();\r\n\r\n while (!lexeme.equals(\")\")) {\r\n\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else if (token.equals(\"PLUS\") || token.equals(\"MINUS\") || token.equals(\"STAR\") || token.equals(\"DIVOP\") || token.equals(\"MOD\") ||\r\n token.equals(\"GREATER_THAN\") || token.equals(\"LESS_THAN\") || token.equals(\"EQUALS\") || token.equals(\"LESS_OR_EQUAL\") ||\r\n token.equals(\"GRETER_OR_EQUAL\") || token.equals(\"NOT_EQUAL\")) {\r\n stack.add(index, lexeme);\r\n index++;\r\n\r\n lex();\r\n if (lexeme.equals(\"(\")) {\r\n tParen();\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n index++;\r\n }\r\n } else {\r\n index--;\r\n stack.add(index, lexeme);\r\n index++;\r\n }\r\n\r\n lex();\r\n\r\n if (token.equals(\"END\"))\r\n break;\r\n\r\n if (token.equals(\"IDENTIFIER\")) {\r\n index++;\r\n break;\r\n }\r\n }\r\n\r\n //Skip the \")\"\r\n lex();\r\n\r\n // Beginning the execution and evaluation of the translated code.\r\n index = 0;\r\n\r\n while (!stack.get(index).equals(\"=\") && !stack.get(index).equals(\"!=\") && !stack.get(index).equals(\">=\") &&\r\n !stack.get(index).equals(\"<=\") && !stack.get(index).equals(\">\") && !stack.get(index).equals(\"<\")) {\r\n index ++;\r\n }\r\n\r\n int operand1 = 0;\r\n int operand2 = 0;\r\n String operator = stack.get(index);\r\n stack.remove(index);\r\n index--;\r\n\r\n if (operator.equals(\"=\") || operator.equals(\"!=\") || operator.equals(\">=\") ||\r\n operator.equals(\"<=\") || operator.equals(\">\") || operator.equals(\"<\")) {\r\n\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n\r\n stack.remove(index);\r\n\r\n if (evaluateCon(operand1, operand2, operator))\r\n return true;\r\n else\r\n return false;\r\n }\r\n\r\n else {\r\n try {\r\n operand2 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand2 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n index--;\r\n\r\n try {\r\n operand1 = Integer.parseInt(stack.get(index));\r\n }\r\n catch (NumberFormatException e) {\r\n operand1 = Integer.parseInt(varList.get(search(stack.get(index)) + 1));\r\n }\r\n stack.remove(index);\r\n\r\n execute(evaluate(operand1, operand2, operator));\r\n }\r\n\r\n return false;\r\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint num = 20;\n\t\t\n\t\tnum = 25; \n\t\t\n\t\t//\" == \" sign or comparison boolean kullanilir \n\t\t\n\t\tboolean isTrue = 5 + 2 == 7;\n\t\t\n\t\tboolean isFalse = 5 + 2 == 8;\n\t\t\n\t\tSystem.out.println(isTrue == isFalse); // this says True equals False. it doesnt so it gives False result \n\t\t\n\n\t\t\n\t\t//!= Not Equal Sing\n\t\t\n\t\t\n\t\tboolean isTrue1 = 5+2 != 8;\n\t\t\n\t\tboolean noteq = 5+2 != 23;\n\t\t\n\t\tSystem.out.println(isTrue1);\n\t\tSystem.out.println(noteq);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// \">\" , \">=\" , \"<\" , \"<=\" ==> All returns boolean\n\t\t\n\t\t// && and operator .... If you have at least one false result \n\t\t// || Or operation ... If you have just one true the result will be true \n\t\t\n\t\tSystem.out.println(5>8); //False\n\t\t\n\t\tSystem.out.println(8>11-5); // True \n\t\t\n\t\t\n\t\tboolean b1 = 5>2;\t // true \n\t\tboolean b2 = 5==2+3;\t// true \n\t\tboolean b3 = 5==2;\t // false\n\t\tboolean b4 = 5<2; \t\t//false\n\t\t\n\t\t\n\t\t\n\t\t// to get true && all variables must ben true \n\t\t\n\t\tSystem.out.println(b1 && b2); // both true so result rue \n\t\t\n\t\tSystem.out.println(b1 && b3); //false \n\t\t\n\t\tSystem.out.println(b3 && b4); // false \n\t\t\n\t\t\n\t\t// || Or \n\t\tSystem.out.println(b2 || b1); // true bec at least one of the variables is true \n\t\t\n\t\tSystem.out.println(b3 || b4); // false bec all everything is false \n\t\t\n\t\tSystem.out.println(b1 || b2 || b3 || b4); // True bec at least one variable is true \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\n\t\t\n\t\t\n\n\t}", "private static boolean condenseConditional2_type3(Op03SimpleStatement ifStatement, List<Op03SimpleStatement> allStatements) {\n Op03SimpleStatement s1c = ifStatement;\n Statement s1 = s1c.getStatement();\n if (s1.getClass() != IfStatement.class) return false;\n Op03SimpleStatement s4c = ifStatement.getTargets().get(1);\n Op03SimpleStatement s2c = ifStatement.getTargets().get(0);\n Statement s2 = s2c.getStatement();\n if (s2.getClass() != IfStatement.class) return false;\n Statement s4 = s4c.getStatement();\n if (s4.getClass() != IfStatement.class) return false;\n Op03SimpleStatement s3c = s2c.getTargets().get(0);\n Statement s3 = s3c.getStatement();\n if (s3.getClass() != GotoStatement.class) return false;\n\n Op03SimpleStatement s5c = s2c.getTargets().get(1);\n Op03SimpleStatement y = s3c.getTargets().get(0);\n if (s4c.getTargets().get(1) != y) return false;\n if (s4c.getTargets().get(0) != s5c) return false;\n if (s2c.getSources().size() != 1) return false;\n if (s3c.getSources().size() != 1) return false;\n if (s4c.getSources().size() != 1) return false;\n IfStatement is1 = (IfStatement)s1;\n IfStatement is2 = (IfStatement)s2;\n IfStatement is4 = (IfStatement)s4;\n ConditionalExpression cond = new BooleanExpression(new TernaryExpression(s1.getLoc(), is1.getCondition(), is4.getCondition(), is2.getCondition().getNegated()));\n\n s1c.replaceStatement(new IfStatement(BytecodeLoc.combineShallow(s1, s2, s3, s4), cond));\n s1c.replaceTarget(s4c,y);\n y.replaceSource(s4c, s1c);\n\n // Fix sources / targets.\n s2c.replaceStatement(new GotoStatement(BytecodeLoc.NONE));\n s2c.removeGotoTarget(s3c);\n s3c.removeSource(s2c);\n s3c.clear();\n s4c.clear();\n\n // If we know for a fact that the original nodes were laid out linearly, then we can assume fallthrough from\n // S1 to S5.\n // This violates the \"next is fallthrough\" invariant temporarily, and is only ok because we KNOW\n // we will tidy up immediately.\n int idx = allStatements.indexOf(s1c);\n if (allStatements.size() > idx+5\n && allStatements.get(idx+1) == s2c\n && allStatements.get(idx+2) == s3c\n && allStatements.get(idx+3) == s4c\n && allStatements.get(idx+4) == s5c) {\n s5c.replaceSource(s2c, s1c);\n s1c.replaceTarget(s2c, s5c);\n s2c.clear();\n }\n\n return true;\n }", "public boolean func_102008_b(int par1, ItemStack par2ItemStack, int par3)\n/* */ {\n/* 125 */ return false;\n/* */ }", "protected void statement(INestedIfElseClauseContainer upperIf) \r\n\t\t\t\t\t\t\t throws NoDefaultDistributionDeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidConditionantException,\r\n\t\t\t\t\t\t\t\t\tSomeStateUndeclaredException,\r\n\t\t\t\t\t\t\t\t\tInvalidProbabilityRangeException,\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\tTableFunctionMalformedException{\r\n\t\t// Debug.println(\"PARSING STATEMENT, VALUE = \" + value + \", LOOKAHEAD = \" + look);\r\n\t\tif (look == '[') {\r\n\t\t\t\t\t\t\t\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t// Debug.print(\" \");\r\n\t\t\tmatch('[');\r\n\t\t\t\r\n\t\t\t// initialize currently evaluated temporary table's collumn\r\n\t\t\t//this.currentProbCellList = new ArrayList<TempTableProbabilityCell>();\r\n\t\t\t\r\n\t\t\tassignmentOrIf(upperIf);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tmatch(']');\r\n\t\t\t// Debug.println(\"\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t// Debug.println(\"COULD NOT FIND '['\");\r\n\t\t\tthis.expected(\"[\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\r\n\t\r\n\t\tint n1 = 10;\r\n\t\tboolean c1 = n1 > 5;\r\n\t\tboolean c2 = n1 < 5;\r\n\t\tboolean c3 = n1 >= 5;\r\n\t\tboolean c4 = n1 <= 5;\r\n\t\tboolean c5 = n1 == 5;\r\n\t\tboolean c6 = n1 != 5;\r\n\t\t\r\n\t\tSystem.out.println(c1);\r\n\t\tSystem.out.println(c2);\r\n\t\tSystem.out.println(c3);\r\n\t\tSystem.out.println(c4);\r\n\t\tSystem.out.println(c5);\r\n\t\tSystem.out.println(c6);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "protected boolean func_70041_e_() { return false; }", "private static boolean condenseConditional2_type2(Op03SimpleStatement ifStatement) {\n Statement innerStatement = ifStatement.getStatement();\n if (!(innerStatement instanceof IfStatement)) return false;\n IfStatement innerIf = (IfStatement)innerStatement;\n Op03SimpleStatement tgt1 = ifStatement.getTargets().get(0);\n final Op03SimpleStatement tgt2 = ifStatement.getTargets().get(1);\n if (tgt1.getSources().size() != 1) return false;\n if (tgt2.getSources().size() != 1) return false;\n if (tgt1.getTargets().size() != 1) return false;\n if (tgt2.getTargets().size() != 1) return false;\n Op03SimpleStatement evTgt = tgt1.getTargets().get(0);\n evTgt = Misc.followNopGoto(evTgt, true, false);\n Op03SimpleStatement oneSource = tgt1;\n if (!(evTgt.getSources().contains(oneSource) || evTgt.getSources().contains(oneSource = oneSource.getTargets().get(0)))) {\n return false;\n }\n if (evTgt.getSources().size() < 2) return false; // FIXME. Shouldnt' clear, below.\n if (tgt2.getTargets().get(0) != evTgt) return false; // asserted tgt2 is a source of evTgt.\n Statement stm1 = tgt1.getStatement();\n Statement stm2 = tgt2.getStatement();\n if (!(stm1 instanceof AssignmentSimple && stm2 instanceof AssignmentSimple)) {\n return false;\n }\n AssignmentSimple a1 = (AssignmentSimple)stm1;\n AssignmentSimple a2 = (AssignmentSimple)stm2;\n LValue lv = a1.getCreatedLValue();\n if (!lv.equals(a2.getCreatedLValue())) return false;\n ConditionalExpression condition = innerIf.getCondition().getNegated();\n condition = condition.simplify();\n ifStatement.replaceStatement(new AssignmentSimple(innerIf.getLoc(), lv, new TernaryExpression(innerIf.getLoc(), condition, a1.getRValue(), a2.getRValue())));\n ifStatement.getSSAIdentifiers().consumeEntry(evTgt.getSSAIdentifiers());\n oneSource.replaceStatement(new Nop());\n oneSource.removeTarget(evTgt);\n tgt2.replaceStatement(new Nop());\n tgt2.removeTarget(evTgt);\n evTgt.removeSource(oneSource);\n evTgt.removeSource(tgt2);\n evTgt.getSources().add(ifStatement);\n for (Op03SimpleStatement tgt : ifStatement.getTargets()) {\n tgt.removeSource(ifStatement);\n }\n ifStatement.getTargets().clear();\n ifStatement.addTarget(evTgt);\n tgt1.replaceStatement(new Nop());\n // Reduce count, or lvalue condensing won't work.\n if (lv instanceof StackSSALabel) {\n ((StackSSALabel) lv).getStackEntry().decSourceCount();\n }\n return true;\n }", "abstract void checkWhetherVariable(SyntaxUnit use);", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(1+2 > 4-2 && 12 < 23);\n\t\tSystem.out.println(1+2 > 4-2 || 12 < 23);\n\t\tSystem.out.println(1+2 > 4-2 && 12 > 23);\n\t\tSystem.out.println(1+2 > 4-2 || 12 > 23);\n\t\t\n\t\t\n\n\t}", "private static ExpSem ifThenElse(ExpSem ifExp, ExpSem thenExp, ExpSem elseExp)\n {\n if (ifExp instanceof ExpSem.Single)\n {\n ExpSem.Single ifExp0 = (ExpSem.Single)ifExp;\n if (thenExp instanceof ExpSem.Single && elseExp instanceof ExpSem.Single)\n {\n ExpSem.Single thenExp0 = (ExpSem.Single)thenExp;\n ExpSem.Single elseExp0 = (ExpSem.Single)elseExp;\n return (ExpSem.Single)(Context c)->\n {\n Value.Bool b = (Value.Bool)ifExp0.apply(c);\n if (b.getValue())\n return thenExp0.apply(c);\n else\n return elseExp0.apply(c);\n };\n }\n else\n {\n ExpSem.Multiple thenExp0 = thenExp.toMultiple();\n ExpSem.Multiple elseExp0 = elseExp.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Value.Bool b = (Value.Bool)ifExp0.apply(c);\n if (b.getValue())\n return thenExp0.apply(c);\n else\n return elseExp0.apply(c);\n };\n }\n }\n else\n {\n ExpSem.Multiple ifExp0 = (ExpSem.Multiple)ifExp;\n ExpSem.Multiple thenExp0 = thenExp.toMultiple();\n ExpSem.Multiple elseExp0 = elseExp.toMultiple();\n return (ExpSem.Multiple)(Context c)->\n {\n Seq<Value> cond = ifExp0.apply(c);\n return cond.applyJoin((Value v)->\n {\n Value.Bool b = (Value.Bool)v;\n return b.getValue() ? \n thenExp0.apply(c) : \n elseExp0.apply(c);\n });\n };\n }\n }", "public boolean method_1456() {\r\n return true;\r\n }", "private static void testStuff(int i1, int i2) {\n\t\tif (i1 != i2)\n\t\t\terrors += 1;\n\t}", "public abstract boolean mo9735b();", "static boolean test(List<Condition> conditions) {\n return true; // REPLACE WITH SOLUTION \n }", "private boolean literals() {\r\n return OPT(GO() && literal() && literals());\r\n }", "boolean method_108();", "void compileIf() {\n\n tagBracketPrinter(IF_TAG, OPEN_TAG_BRACKET);\n try {\n compileIfHelper();\n } catch (IOException e) {\n e.printStackTrace();\n }\n tagBracketPrinter(IF_TAG, CLOSE_TAG_BRACKET);\n }", "protected boolean checkOperators()\n {\n Object loLeft ;\n Object loRight ;\n Object loOperator ;\n Object loConditionType ;\n boolean lboolOK = true ;\n\n for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ )\n {\n loLeft = getData( \"AND_COND_LHS_\" + liCtr ).getObject() ;\n loConditionType = getData( \"AND_COND_TYP_\" + liCtr ).getObject() ;\n loOperator = getData( \"AND_COND_OPR_\" + liCtr ).getObject() ;\n loRight = getData( \"AND_COND_RHS_\" + liCtr ).getObject() ;\n if ( ( loLeft != null ) && ( loOperator == null ) )\n {\n lboolOK = false ;\n raiseException( \"An operator is required for Condition \" + liCtr ) ;\n } /* end if ( ( loLeft != null ) && ( loOperator == null ) ) */\n\n if (loConditionType == null)\n {\n if(loLeft != null)\n {\n lboolOK = false ;\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n liCtr + \",v: Left Hand Side is %\" ) ;\n }\n if(loRight != null)\n {\n lboolOK = false ;\n raiseException( \"%c:Q0150,v: Condition Type for Condition \" +\n liCtr + \",v: Right Hand Side is %\" ) ;\n }\n } /* end if (loConditionType == null) */\n } /* end for ( int liCtr = 1 ; liCtr <= 5 ; liCtr++ ) */\n return lboolOK ;\n }", "public abstract boolean mo9737c();", "boolean hasB21();", "public boolean func_94041_b(int par1, ItemStack par2ItemStack)\n/* */ {\n/* 95 */ return this.field_145850_b.func_72805_g(this.field_145851_c, this.field_145848_d, this.field_145849_e) == 5;\n/* */ }", "public static void main(String[] args) {\n int a = 1;\n int b = 2;\n if (a < b){\n System.out.println(\"a is less than b\");\n }\n\n // write your code below\n int red = 10;\n int blue = 20;\n\n if (red > blue) {\n System.out.println(\"red is greater than blue\");\n }\n else {\n System.out.println(\"false\");\n }\n\n if (blue >= red) {\n System.out.println(\"blue is greater than or equal to red\");\n }\n\n if (red < blue) {\n System.out.println(\"red is less than blue\");\n }\n\n if (red <= blue) {\n System.out.println(\"red is less than or equal to blue\");\n }\n\n if (red == blue) {\n System.out.println(\"red equals blue\");\n }\n else {\n System.out.println(\"false\");\n }\n\n\n }", "public Object visitConditionalExpression(GNode n) {\n if (dostring) {\n Object a = dispatch(n.getGeneric(0));\n Object b = dispatch(n.getGeneric(1));\n Object c = dispatch(n.getGeneric(2));\n \n if (a instanceof Long) {\n return (! ((Long) a).equals(new Long(0))) ? b : c;\n }\n else {\n return parens(a) + \" ? \" + parens(b) + \" : \" + parens(c);\n }\n }\n else {\n BDD a = ensureBDD(dispatch(n.getGeneric(0)));\n BDD b = ensureBDD(dispatch(n.getGeneric(1)));\n BDD c = ensureBDD(dispatch(n.getGeneric(2)));\n BDD ab, na, nac, bdd;\n \n //implement with a & b | !a & c\n ab = a.and(b);\n b.free();\n na = a.not();\n a.free();\n nac = na.and(c);\n c.free();\n na.free();\n bdd = ab.or(nac);\n nac.free();\n ab.free();\n \n return bdd;\n }\n }", "@Override\n\tpublic void visit(IfNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * Verificare pentru assert failed\n\t\t */\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam conditia si preluam rezultatul evaluarii fiului corespunzator\n\t\t * branch-ului de then sau de else\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\n\t\t/***\n\t\t * Daca conditia este adevarata, continuam cu evaluarea celui de-al\n\t\t * doiela fiu, iar daca este false evaluam al treilea fiu\n\t\t */\n\t\tif (node.getChild(0).getName().contentEquals(\"true\")) {\n\t\t\tEvaluator.evaluate(node.getChild(1));\n\t\t\tnode.getChild(2).setVisited(true);\n\n\t\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(1).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(1).getName());\n\t\t\t}\n\t\t} else {\n\t\t\tEvaluator.evaluate(node.getChild(2));\n\t\t\tnode.getChild(1).setVisited(true);\n\n\t\t\tif (node.getChild(2) instanceof Variable) {\n\t\t\t\tnode.setName(Evaluator.variables.get(node.getChild(2).getName()));\n\t\t\t} else {\n\t\t\t\tnode.setName(node.getChild(2).getName());\n\t\t\t}\n\t\t}\n\n\t}", "public boolean method_2434() {\r\n return false;\r\n }", "public static void main(String[] args) {\n\t\t// \"If-else\" Condition Practice\n\t\t\n\t\tint x = 20;\n\t\tint y = 20;\n\t\t\n\t\tif(x < y){\n\t\t\tSystem.out.println(\"X is less than Y\");\n\t\t}\n\t\t\n\t\tif(x == y){\n\t\t\tSystem.out.println(\"X is equal to Y\");\n\t\t} \n\t\t\n\t\tif(x > y){\n\t\t\tSystem.out.println(\"X is greater than Y\");\n\t\t}\n\t\t\n\t\tint a = 10;\n\t\tint b = 10;\n\t\t\n\t\tif(a < b){\n\t\t\tSystem.out.println(\"A is less than B\");\n\t\t}else if(a == b){\n\t\t\tSystem.out.println(\"A is equal to B\");\n\t\t}else if (a > b){\n\t\t\tSystem.out.println(\"A is equal to B\");\n\t\t}\n\t}", "int llegue(int a,int b,int c,int d){\n if(a==c && b==d){\n return 1;\n }else{return 0;}\n }", "private void parseIfStatement() {\n check(Token.IF);\n check(Token.LPAR);\n\n parseCondition();\n\n int elseFixup = code.pc - 2;\n\n check(Token.RPAR);\n\n parseStatement();\n\n code.putJump(42); // Any value is fine, this will be fixed up later\n int endifFixup = code.pc - 2;\n\n code.fixup(elseFixup);\n\n if (nextToken.kind == Token.ELSE) {\n check(Token.ELSE);\n parseStatement();\n }\n\n code.fixup(endifFixup);\n }", "public static void main(String[] args) {\n\n\t\tint subject1 = 40;\n\t\tint subject2 = 60;\n\t\t\n\t\tif ((subject2 <= 60) && (subject1<=60)){\n\t\t\tSystem.out.println(\"condition is true\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"condition is false\");\n\t\t}\n\t\t\t\n\t\t// && - ANd , || OR operator\n\t\t\n\t}", "private IfStmt ifstmt(){\n Expr expr=null;\n Stmt thenstmt=null;\n Stmt elsestmt= null;\n \n if(lexer.token == Symbol.IF){\n lexer.nextToken();\n expr = expr();\n\n if(lexer.token == Symbol.THEN){\n lexer.nextToken();\n thenstmt = stmt();\n \n if(lexer.token == Symbol.ELSE){\n lexer.nextToken();\n elsestmt = stmt();\n \n }\n\n \n if(lexer.token == Symbol.ENDIF){\n lexer.nextToken();\n }else{\n lexer.error(\"Missing ENDIF\");\n }\n }else{\n lexer.error(\"Missing THEN\");\n }\n }else{\n lexer.error(\"Missing IF\");\n }\n \n return new IfStmt(expr, thenstmt, elsestmt);\n }", "final void checkForComodification() {\n\t}", "private final boolean checkHeader(int paramInt) {\n/* 406 */ if (paramInt != 1416784229) {\n/* 407 */ return false;\n/* */ }\n/* */ \n/* 410 */ if ((this.m_options_ & 0xF) != 5 || (this.m_options_ >> 4 & 0xF) != 2)\n/* */ {\n/* */ \n/* */ \n/* */ \n/* 415 */ return false;\n/* */ }\n/* 417 */ return true;\n/* */ }", "If createIf();", "boolean hasB27();", "private Data iff(Node line, Namespace namespace) {\n\n\t\tNode cond = line.next;\n\t\tNode a = cond.next;\n\t\tNode b = a.next;\n\t\t\n\t\tif (Boolean.TRUE.equals(e.eval(cond, namespace).value)) {\n\t\t\treturn e.eval(a, namespace);\n\t\t} else if (b != null) {\n\t\t\treturn e.eval(b, namespace);\n\t\t}\n\t\t\n\t\treturn NO_RESULT;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println((0+15)/2);\r\n\t\tSystem.out.println(2.0e-6*10000000000.1);\r\n\t\tSystem.out.println(true&&false||true&&true);\r\n\t\t\r\n\t\t//1.1.2\r\n\t\tSystem.out.println((1+2.236)/2);\r\n\t\tSystem.out.println(1+2+3+4.0);\r\n\t\tSystem.out.println(4.1>=4);\r\n\t\tSystem.out.println(1+2+\"3\");\r\n\t\t\r\n\t\t//1.1.3\r\n//\t\tSystem.out.println(\"Please enter three nums\");\r\n\t\tScanner scanner=new Scanner(System.in);\r\n//\t\tint num=scanner.nextInt();\r\n//\t\tint num2=scanner.nextInt();\r\n//\t\tint num3=scanner.nextInt();\r\n//\t\r\n//\t\tif(num==num2&&num==num3) {\r\n//\t\t\tSystem.out.println(\"Eqaul:\");\r\n//\t\t}else {\r\n//\t\t\tSystem.out.println(\"Not equal:\");\r\n//\t\t}\r\n//\r\n//\t\t\t\r\n//\t\t//1.1.4\r\n//\t\t//a. then 语法错误\r\n//\t\t//b. ok\r\n//\t\t//c. ok\r\n//\t\t//d. ok\r\n//\r\n//\t\t\r\n//\t\t//1.1.5\r\n//\t\tint x=scanner.nextInt();\r\n//\t\tint y=scanner.nextInt();\r\n//\t\tif(x<1.0 && y<1.0 && x>0 && y>0) {\r\n//\t\t\tSystem.out.println(\"true\");\r\n//\t\t}\r\n//\t\telse {\r\n//\t\t\tSystem.out.println(\"false\");\r\n//\t\t}\r\n//\t\t\r\n\t\t\r\n\t\t//1.1.6\r\n//\t\tint f=0;\r\n//\t\tint g=1;\r\n//\t\tfor(int i=0;i<=15;i++) {\r\n//\t\t\tSystem.out.print(f+\"\\t\");\r\n//\t\t\tf=f+g;\r\n//\t\t\tg=f-g;\r\n//\t\t}\r\n\t\t\r\n\t\t//1.1.7\r\n//\t\tdouble t=9.0;\r\n//\t\twhile(Math.abs(t-9.0/t)> .001) {\r\n//\t\t\tt=(9.0/t+t)/2.0;\r\n//\t\t}\r\n//\t\tSystem.out.printf(\"%.5f\\n\", t);\r\n//\t\t\r\n//\t\t\r\n//\t\tint sum=0;\r\n//\t\tfor(int i=1;i<1000;i++)\r\n//\t\t\tfor(int j=0;j<i;j++)\r\n//\t\t\t\tsum++;\r\n//\t\tSystem.out.println(sum);\r\n//\t\r\n//\t\t\r\n//\t\tint sum2=0;\r\n//\t\tfor(int i=1;i<1000;i*=2)\r\n//\t\t\tfor(int j=0;j<1000;j++)\r\n//\t\t\t\tsum2++;\r\n//\t\tSystem.out.println(sum2);\r\n\t\r\n\t\t//1.1.8\r\n//\t\tSystem.out.println('b');\r\n//\t\tSystem.out.println('b'+'c');\r\n//\t\tSystem.out.println((char)('a'+4));\r\n\t\t\r\n\t\t//1.1.9\r\n//\t\tSystem.out.println(\"Please enter one num and return with a binary code\");\r\n//\t\tint N=scanner.nextInt();\r\n//\t\tString string=\"\";\r\n//\t\tfor(int n=N;n>0;n/=2) {\r\n//\t\t\tstring=(n%2)+string;\r\n//\t\t}\r\n//\t\tSystem.out.println(string);\r\n\t\t\r\n\t\t//1.1.10\r\n\t\t//int[] a=new int[10];\r\n\t\t\r\n\t\t//1.1.11\r\n//\t\tboolean[][] arrays= {{true,true,true},\r\n//\t\t\t\t{false,false,false},\r\n//\t\t\t\t{true,false,true},\r\n//\t\t};\r\n//\t\t\r\n//\t\tfor(int i=0;i<arrays.length;i++)\r\n//\t\t\tfor(int j=0;j<arrays.length;j++) {\r\n//\t\t\t\tif(arrays[i][j]) {\r\n//\t\t\t\t\tSystem.out.print(\"*\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t\telse {\r\n//\t\t\t\t\tSystem.out.print(\"^\"+\"\\t\");\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t//1.1.12\r\n//\t\tint[] a=new int[10];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=9-i;\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\ta[i]=a[a[i]];\r\n//\t\tfor(int i=0;i<10;i++)\r\n//\t\t\tSystem.out.println(i);\r\n\r\n\t\r\n\t\t\r\n\t\t\r\n\t}", "public void test(int x) {\n\t\t double y;\n\n\t\t// Logical Or Tests\n\t\t// I used && to check if || was properly parsing\n\t\t// if (x == 1 && y == 2) {\n\t\t// System.out.println(\"something\");\n\t\t// }\n\n\t\t// if(x == 1 && (y == 2 && z == 3)) {\n\t\t// System.out.println(\"something\");\n\t\t// }\n\n\t\t if (x == 1 || y == 2) {\n\t\t System.out.println(\"something\");\n\t\t }\n\t\t\n\t\t// if(x == 1 || (y == 2 && z == 3)) {\n\t\t// System.out.println(\"something\");\n\t\t// }\n\n\t\t// Operators Tests\n\t\t x += y;\n\t\t x -= y;\n\t\t x *= y;\n\t\t x /= y;\n\t\t (x /= y);\n\n\t\t// Post and Prefix increment/decrement\n\t\t ++x;\n\t\t --x;\n\t\t x++;\n\t\t x--;\n\n\t\t// Conditional (Ternary) Expression Tests\n\t\t// if (1 = 1){\n\t\t// System.out.println(\"if\");\n\t\t// } else {\n\t\t// System.out.println(\"else\");\n\t\t// }\n\t\t\n\t\t (a = a) ? System.out.println(\"a\") : System.out.println(\"b\");\n\n\t\t// Static blocks and Instance blocks tests\n\n\t\t {\n\t\t System.out.println(\"Instance Test\");\n\t\t }\n\n\t\t// Do-While Tests\n\t\t do {\n\t\t x++;\n\t\t } while (x > 11)\n\n\t\t// For-Loop Tests\n\t\t for(int x = 0;\n\t\t x = 5;\n\t\t x++){\n\t\t System.out.println(\"*\");\n\t\t }\n\n\t\t// Enhanced For-Loop Test\n\t\t for(int x : numbers) {\n\t\t System.out.println(\"numbers\");\n\t\t }\n\n\t}", "public static void main(String[] args) { , or , not\n // truth table -> t=1 f=0\n // a =t b= f c = a and b => a.b =0=>f\n\n // except 0 every no. is treated as true\n // int a=1 int b=2 a and b => a.b\n // and -> a=1 , b=2, a and b => a.b\n\n\n // and\n boolean a= false;\n boolean b= false;\n\n boolean c= a && b; // a.b\n System.out.println(c);\n\n //or\n boolean f= true;\n boolean d= true;\n\n boolean e= f || d; // a+b\n System.out.println(e);\n\n // not\n boolean g =true;\n boolean h= !g;\n System.out.println(h);\n\n }", "if(x%2)\r\n\r\n\tpublic static void main(String[] args) {\r\n\r\n\t\t\r\n\t}", "public IfCondition() {\r\n super();\r\n }", "Boolean conditionResult();" ]
[ "0.6368582", "0.63619995", "0.6320737", "0.63027334", "0.6229119", "0.6201773", "0.6175869", "0.61675155", "0.6148928", "0.6136577", "0.6111954", "0.61100745", "0.607932", "0.607825", "0.60669863", "0.60295564", "0.6014431", "0.59860474", "0.59800214", "0.59312624", "0.59075797", "0.5903458", "0.5897576", "0.58942795", "0.5875982", "0.58753663", "0.5874693", "0.58613276", "0.5861151", "0.58563757", "0.585134", "0.5847159", "0.583686", "0.5833714", "0.58318156", "0.58238995", "0.58212477", "0.5818588", "0.58097947", "0.5792367", "0.5790865", "0.57878876", "0.57859427", "0.5765447", "0.5758442", "0.57449144", "0.574368", "0.57298553", "0.5726719", "0.5711347", "0.57079923", "0.57030773", "0.57018733", "0.5701859", "0.57004535", "0.5698072", "0.5692466", "0.5682013", "0.5679489", "0.5676822", "0.567483", "0.5670906", "0.56668407", "0.56635046", "0.5659929", "0.56565887", "0.56550264", "0.56538975", "0.56462014", "0.56438345", "0.5640977", "0.56403285", "0.5633981", "0.56318307", "0.5628375", "0.5624616", "0.562222", "0.5620919", "0.56182873", "0.56159693", "0.5614652", "0.5614472", "0.5612721", "0.56114507", "0.5609327", "0.56063795", "0.5602192", "0.5591751", "0.5584784", "0.55826545", "0.55822617", "0.55731535", "0.5571288", "0.55709994", "0.55665046", "0.5563165", "0.5561069", "0.55582225", "0.55534303", "0.5550808" ]
0.57146555
49
/ 2.13 Switch Statements
public void inASwitchStmt(ASwitchStmt node) throws TypeException { if(node.getStmt() != null) { newScope(); initCount++; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void do_switch() {\n {\n bind(OPC.CONST_0); iparmNone();\n pre(FLOW_NEXT); do_const(0); post();\n bind(OPC.CONST_1); iparmNone();\n pre(FLOW_NEXT); do_const(1); post();\n bind(OPC.CONST_2); iparmNone();\n pre(FLOW_NEXT); do_const(2); post();\n bind(OPC.CONST_3); iparmNone();\n pre(FLOW_NEXT); do_const(3); post();\n bind(OPC.CONST_4); iparmNone();\n pre(FLOW_NEXT); do_const(4); post();\n bind(OPC.CONST_5); iparmNone();\n pre(FLOW_NEXT); do_const(5); post();\n bind(OPC.CONST_6); iparmNone();\n pre(FLOW_NEXT); do_const(6); post();\n bind(OPC.CONST_7); iparmNone();\n pre(FLOW_NEXT); do_const(7); post();\n bind(OPC.CONST_8); iparmNone();\n pre(FLOW_NEXT); do_const(8); post();\n bind(OPC.CONST_9); iparmNone();\n pre(FLOW_NEXT); do_const(9); post();\n bind(OPC.CONST_10); iparmNone();\n pre(FLOW_NEXT); do_const(10); post();\n bind(OPC.CONST_11); iparmNone();\n pre(FLOW_NEXT); do_const(11); post();\n bind(OPC.CONST_12); iparmNone();\n pre(FLOW_NEXT); do_const(12); post();\n bind(OPC.CONST_13); iparmNone();\n pre(FLOW_NEXT); do_const(13); post();\n bind(OPC.CONST_14); iparmNone();\n pre(FLOW_NEXT); do_const(14); post();\n bind(OPC.CONST_15); iparmNone();\n pre(FLOW_NEXT); do_const(15); post();\n bind(OPC.OBJECT_0); iparmNone();\n pre(FLOW_NEXT); do_object(0); post();\n bind(OPC.OBJECT_1); iparmNone();\n pre(FLOW_NEXT); do_object(1); post();\n bind(OPC.OBJECT_2); iparmNone();\n pre(FLOW_NEXT); do_object(2); post();\n bind(OPC.OBJECT_3); iparmNone();\n pre(FLOW_NEXT); do_object(3); post();\n bind(OPC.OBJECT_4); iparmNone();\n pre(FLOW_NEXT); do_object(4); post();\n bind(OPC.OBJECT_5); iparmNone();\n pre(FLOW_NEXT); do_object(5); post();\n bind(OPC.OBJECT_6); iparmNone();\n pre(FLOW_NEXT); do_object(6); post();\n bind(OPC.OBJECT_7); iparmNone();\n pre(FLOW_NEXT); do_object(7); post();\n bind(OPC.OBJECT_8); iparmNone();\n pre(FLOW_NEXT); do_object(8); post();\n bind(OPC.OBJECT_9); iparmNone();\n pre(FLOW_NEXT); do_object(9); post();\n bind(OPC.OBJECT_10); iparmNone();\n pre(FLOW_NEXT); do_object(10); post();\n bind(OPC.OBJECT_11); iparmNone();\n pre(FLOW_NEXT); do_object(11); post();\n bind(OPC.OBJECT_12); iparmNone();\n pre(FLOW_NEXT); do_object(12); post();\n bind(OPC.OBJECT_13); iparmNone();\n pre(FLOW_NEXT); do_object(13); post();\n bind(OPC.OBJECT_14); iparmNone();\n pre(FLOW_NEXT); do_object(14); post();\n bind(OPC.OBJECT_15); iparmNone();\n pre(FLOW_NEXT); do_object(15); post();\n bind(OPC.LOAD_0); iparmNone();\n pre(FLOW_NEXT); do_load(0); post();\n bind(OPC.LOAD_1); iparmNone();\n pre(FLOW_NEXT); do_load(1); post();\n bind(OPC.LOAD_2); iparmNone();\n pre(FLOW_NEXT); do_load(2); post();\n bind(OPC.LOAD_3); iparmNone();\n pre(FLOW_NEXT); do_load(3); post();\n bind(OPC.LOAD_4); iparmNone();\n pre(FLOW_NEXT); do_load(4); post();\n bind(OPC.LOAD_5); iparmNone();\n pre(FLOW_NEXT); do_load(5); post();\n bind(OPC.LOAD_6); iparmNone();\n pre(FLOW_NEXT); do_load(6); post();\n bind(OPC.LOAD_7); iparmNone();\n pre(FLOW_NEXT); do_load(7); post();\n bind(OPC.LOAD_8); iparmNone();\n pre(FLOW_NEXT); do_load(8); post();\n bind(OPC.LOAD_9); iparmNone();\n pre(FLOW_NEXT); do_load(9); post();\n bind(OPC.LOAD_10); iparmNone();\n pre(FLOW_NEXT); do_load(10); post();\n bind(OPC.LOAD_11); iparmNone();\n pre(FLOW_NEXT); do_load(11); post();\n bind(OPC.LOAD_12); iparmNone();\n pre(FLOW_NEXT); do_load(12); post();\n bind(OPC.LOAD_13); iparmNone();\n pre(FLOW_NEXT); do_load(13); post();\n bind(OPC.LOAD_14); iparmNone();\n pre(FLOW_NEXT); do_load(14); post();\n bind(OPC.LOAD_15); iparmNone();\n pre(FLOW_NEXT); do_load(15); post();\n bind(OPC.STORE_0); iparmNone();\n pre(FLOW_NEXT); do_store(0); post();\n bind(OPC.STORE_1); iparmNone();\n pre(FLOW_NEXT); do_store(1); post();\n bind(OPC.STORE_2); iparmNone();\n pre(FLOW_NEXT); do_store(2); post();\n bind(OPC.STORE_3); iparmNone();\n pre(FLOW_NEXT); do_store(3); post();\n bind(OPC.STORE_4); iparmNone();\n pre(FLOW_NEXT); do_store(4); post();\n bind(OPC.STORE_5); iparmNone();\n pre(FLOW_NEXT); do_store(5); post();\n bind(OPC.STORE_6); iparmNone();\n pre(FLOW_NEXT); do_store(6); post();\n bind(OPC.STORE_7); iparmNone();\n pre(FLOW_NEXT); do_store(7); post();\n bind(OPC.STORE_8); iparmNone();\n pre(FLOW_NEXT); do_store(8); post();\n bind(OPC.STORE_9); iparmNone();\n pre(FLOW_NEXT); do_store(9); post();\n bind(OPC.STORE_10); iparmNone();\n pre(FLOW_NEXT); do_store(10); post();\n bind(OPC.STORE_11); iparmNone();\n pre(FLOW_NEXT); do_store(11); post();\n bind(OPC.STORE_12); iparmNone();\n pre(FLOW_NEXT); do_store(12); post();\n bind(OPC.STORE_13); iparmNone();\n pre(FLOW_NEXT); do_store(13); post();\n bind(OPC.STORE_14); iparmNone();\n pre(FLOW_NEXT); do_store(14); post();\n bind(OPC.STORE_15); iparmNone();\n pre(FLOW_NEXT); do_store(15); post();\n bind(OPC.LOADPARM_0); iparmNone();\n pre(FLOW_NEXT); do_loadparm(0); post();\n bind(OPC.LOADPARM_1); iparmNone();\n pre(FLOW_NEXT); do_loadparm(1); post();\n bind(OPC.LOADPARM_2); iparmNone();\n pre(FLOW_NEXT); do_loadparm(2); post();\n bind(OPC.LOADPARM_3); iparmNone();\n pre(FLOW_NEXT); do_loadparm(3); post();\n bind(OPC.LOADPARM_4); iparmNone();\n pre(FLOW_NEXT); do_loadparm(4); post();\n bind(OPC.LOADPARM_5); iparmNone();\n pre(FLOW_NEXT); do_loadparm(5); post();\n bind(OPC.LOADPARM_6); iparmNone();\n pre(FLOW_NEXT); do_loadparm(6); post();\n bind(OPC.LOADPARM_7); iparmNone();\n pre(FLOW_NEXT); do_loadparm(7); post();\n bind(OPC.WIDE_M1); iparmNone();\n pre(FLOW_CHANGE); do_wide(-1); post();\n bind(OPC.WIDE_0); iparmNone();\n pre(FLOW_CHANGE); do_wide(0); post();\n bind(OPC.WIDE_1); iparmNone();\n pre(FLOW_CHANGE); do_wide(1); post();\n bind(OPC.WIDE_SHORT); iparmNone();\n pre(FLOW_CHANGE); do_wide_short(); post();\n bind(OPC.WIDE_INT); iparmNone();\n pre(FLOW_CHANGE); do_wide_int(); post();\n bind(OPC.ESCAPE); iparmNone();\n pre(FLOW_CHANGE); do_escape(); post();\n bind(OPC.ESCAPE_WIDE_M1); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(-1); post();\n bind(OPC.ESCAPE_WIDE_0); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(0); post();\n bind(OPC.ESCAPE_WIDE_1); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide(1); post();\n bind(OPC.ESCAPE_WIDE_SHORT); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide_short(); post();\n bind(OPC.ESCAPE_WIDE_INT); iparmNone();\n pre(FLOW_CHANGE); do_escape_wide_int(); post();\n bind(OPC.CATCH); iparmNone();\n pre(FLOW_NEXT); do_catch(); post();\n bind(OPC.CONST_NULL); iparmNone();\n pre(FLOW_NEXT); do_const_null(); post();\n bind(OPC.CONST_M1); iparmNone();\n pre(FLOW_NEXT); do_const(-1); post();\n bind(OPC.CONST_BYTE); iparmNone();\n pre(FLOW_NEXT); do_const_byte(); post();\n bind(OPC.CONST_SHORT); iparmNone();\n pre(FLOW_NEXT); do_const_short(); post();\n bind(OPC.CONST_CHAR); iparmNone();\n pre(FLOW_NEXT); do_const_char(); post();\n bind(OPC.CONST_INT); iparmNone();\n pre(FLOW_NEXT); do_const_int(); post();\n bind(OPC.CONST_LONG); iparmNone();\n pre(FLOW_NEXT); do_const_long(); post();\n bind(OPC.OBJECT); iparmUByte();\n bind(OPC.OBJECT_WIDE); pre(FLOW_NEXT); do_object(); post();\n bind(OPC.LOAD); iparmUByte();\n bind(OPC.LOAD_WIDE); pre(FLOW_NEXT); do_load(); post(); \n bind(OPC.LOAD_I2); iparmUByte();\n bind(OPC.LOAD_I2_WIDE); pre(FLOW_NEXT); do_load_i2(); post();\n bind(OPC.STORE); iparmUByte();\n bind(OPC.STORE_WIDE); pre(FLOW_NEXT); do_store(); post();\n bind(OPC.STORE_I2); iparmUByte();\n bind(OPC.STORE_I2_WIDE); pre(FLOW_NEXT); do_store_i2(); post();\n bind(OPC.LOADPARM); iparmUByte();\n bind(OPC.LOADPARM_WIDE); pre(FLOW_NEXT); do_loadparm(); post();\n bind(OPC.LOADPARM_I2); iparmUByte();\n bind(OPC.LOADPARM_I2_WIDE); pre(FLOW_NEXT); do_loadparm_i2(); post();\n bind(OPC.STOREPARM); iparmUByte();\n bind(OPC.STOREPARM_WIDE); pre(FLOW_NEXT); do_storeparm(); post();\n bind(OPC.STOREPARM_I2); iparmUByte();\n bind(OPC.STOREPARM_I2_WIDE); pre(FLOW_NEXT); do_storeparm_i2(); post();\n bind(OPC.INC); iparmUByte();\n bind(OPC.INC_WIDE); pre(FLOW_NEXT); do_inc(); post(); \n bind(OPC.DEC); iparmUByte();\n bind(OPC.DEC_WIDE); pre(FLOW_NEXT); do_dec(); post(); \n bind(OPC.INCPARM); iparmUByte();\n bind(OPC.INCPARM_WIDE); pre(FLOW_NEXT); do_incparm(); post();\n bind(OPC.DECPARM); iparmUByte();\n bind(OPC.DECPARM_WIDE); pre(FLOW_NEXT); do_decparm(); post();\n bind(OPC.GOTO); iparmByte();\n bind(OPC.GOTO_WIDE); pre(FLOW_CHANGE); do_goto(); post();\n bind(OPC.IF_EQ_O); iparmByte();\n bind(OPC.IF_EQ_O_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, OOP); post();\n bind(OPC.IF_NE_O); iparmByte();\n bind(OPC.IF_NE_O_WIDE); pre(FLOW_CHANGE); do_if(1, NE, OOP); post();\n bind(OPC.IF_CMPEQ_O); iparmByte();\n bind(OPC.IF_CMPEQ_O_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, OOP); post();\n bind(OPC.IF_CMPNE_O); iparmByte();\n bind(OPC.IF_CMPNE_O_WIDE); pre(FLOW_CHANGE); do_if(2, NE, OOP); post();\n bind(OPC.IF_EQ_I); iparmByte();\n bind(OPC.IF_EQ_I_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, INT); post();\n bind(OPC.IF_NE_I); iparmByte();\n bind(OPC.IF_NE_I_WIDE); pre(FLOW_CHANGE); do_if(1, NE, INT); post();\n bind(OPC.IF_LT_I); iparmByte();\n bind(OPC.IF_LT_I_WIDE); pre(FLOW_CHANGE); do_if(1, LT, INT); post();\n bind(OPC.IF_LE_I); iparmByte();\n bind(OPC.IF_LE_I_WIDE); pre(FLOW_CHANGE); do_if(1, LE, INT); post();\n bind(OPC.IF_GT_I); iparmByte();\n bind(OPC.IF_GT_I_WIDE); pre(FLOW_CHANGE); do_if(1, GT, INT); post();\n bind(OPC.IF_GE_I); iparmByte();\n bind(OPC.IF_GE_I_WIDE); pre(FLOW_CHANGE); do_if(1, GE, INT); post();\n bind(OPC.IF_CMPEQ_I); iparmByte();\n bind(OPC.IF_CMPEQ_I_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, INT); post();\n bind(OPC.IF_CMPNE_I); iparmByte();\n bind(OPC.IF_CMPNE_I_WIDE); pre(FLOW_CHANGE); do_if(2, NE, INT); post();\n bind(OPC.IF_CMPLT_I); iparmByte();\n bind(OPC.IF_CMPLT_I_WIDE); pre(FLOW_CHANGE); do_if(2, LT, INT); post();\n bind(OPC.IF_CMPLE_I); iparmByte();\n bind(OPC.IF_CMPLE_I_WIDE); pre(FLOW_CHANGE); do_if(2, LE, INT); post();\n bind(OPC.IF_CMPGT_I); iparmByte();\n bind(OPC.IF_CMPGT_I_WIDE); pre(FLOW_CHANGE); do_if(2, GT, INT); post();\n bind(OPC.IF_CMPGE_I); iparmByte();\n bind(OPC.IF_CMPGE_I_WIDE); pre(FLOW_CHANGE); do_if(2, GE, INT); post();\n bind(OPC.IF_EQ_L); iparmByte();\n bind(OPC.IF_EQ_L_WIDE); pre(FLOW_CHANGE); do_if(1, EQ, LONG); post();\n bind(OPC.IF_NE_L); iparmByte();\n bind(OPC.IF_NE_L_WIDE); pre(FLOW_CHANGE); do_if(1, NE, LONG); post();\n bind(OPC.IF_LT_L); iparmByte();\n bind(OPC.IF_LT_L_WIDE); pre(FLOW_CHANGE); do_if(1, LT, LONG); post();\n bind(OPC.IF_LE_L); iparmByte();\n bind(OPC.IF_LE_L_WIDE); pre(FLOW_CHANGE); do_if(1, LE, LONG); post();\n bind(OPC.IF_GT_L); iparmByte();\n bind(OPC.IF_GT_L_WIDE); pre(FLOW_CHANGE); do_if(1, GT, LONG); post();\n bind(OPC.IF_GE_L); iparmByte();\n bind(OPC.IF_GE_L_WIDE); pre(FLOW_CHANGE); do_if(1, GE, LONG); post();\n bind(OPC.IF_CMPEQ_L); iparmByte();\n bind(OPC.IF_CMPEQ_L_WIDE); pre(FLOW_CHANGE); do_if(2, EQ, LONG); post();\n bind(OPC.IF_CMPNE_L); iparmByte();\n bind(OPC.IF_CMPNE_L_WIDE); pre(FLOW_CHANGE); do_if(2, NE, LONG); post();\n bind(OPC.IF_CMPLT_L); iparmByte();\n bind(OPC.IF_CMPLT_L_WIDE); pre(FLOW_CHANGE); do_if(2, LT, LONG); post();\n bind(OPC.IF_CMPLE_L); iparmByte();\n bind(OPC.IF_CMPLE_L_WIDE); pre(FLOW_CHANGE); do_if(2, LE, LONG); post();\n bind(OPC.IF_CMPGT_L); iparmByte();\n bind(OPC.IF_CMPGT_L_WIDE); pre(FLOW_CHANGE); do_if(2, GT, LONG); post();\n bind(OPC.IF_CMPGE_L); iparmByte();\n bind(OPC.IF_CMPGE_L_WIDE); pre(FLOW_CHANGE); do_if(2, GE, LONG); post();\n bind(OPC.GETSTATIC_I); iparmUByte();\n bind(OPC.GETSTATIC_I_WIDE); pre(FLOW_CALL); do_getstatic(INT); post();\n bind(OPC.GETSTATIC_O); iparmUByte();\n bind(OPC.GETSTATIC_O_WIDE); pre(FLOW_CALL); do_getstatic(OOP); post();\n bind(OPC.GETSTATIC_L); iparmUByte();\n bind(OPC.GETSTATIC_L_WIDE); pre(FLOW_CALL); do_getstatic(LONG); post();\n bind(OPC.CLASS_GETSTATIC_I); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_I_WIDE); pre(FLOW_CALL); do_class_getstatic(INT); post();\n bind(OPC.CLASS_GETSTATIC_O); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_O_WIDE); pre(FLOW_CALL); do_class_getstatic(OOP); post();\n bind(OPC.CLASS_GETSTATIC_L); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_L_WIDE); pre(FLOW_CALL); do_class_getstatic(LONG); post();\n bind(OPC.PUTSTATIC_I); iparmUByte();\n bind(OPC.PUTSTATIC_I_WIDE); pre(FLOW_CALL); do_putstatic(INT); post();\n bind(OPC.PUTSTATIC_O); iparmUByte();\n bind(OPC.PUTSTATIC_O_WIDE); pre(FLOW_CALL); do_putstatic(OOP); post();\n bind(OPC.PUTSTATIC_L); iparmUByte();\n bind(OPC.PUTSTATIC_L_WIDE); pre(FLOW_CALL); do_putstatic(LONG); post();\n bind(OPC.CLASS_PUTSTATIC_I); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_I_WIDE); pre(FLOW_CALL); do_class_putstatic(INT); post();\n bind(OPC.CLASS_PUTSTATIC_O); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_O_WIDE); pre(FLOW_CALL); do_class_putstatic(OOP); post();\n bind(OPC.CLASS_PUTSTATIC_L); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_L_WIDE); pre(FLOW_CALL); do_class_putstatic(LONG); post();\n bind(OPC.GETFIELD_I); iparmUByte();\n bind(OPC.GETFIELD_I_WIDE); pre(FLOW_CALL); do_getfield(INT); post();\n bind(OPC.GETFIELD_B); iparmUByte();\n bind(OPC.GETFIELD_B_WIDE); pre(FLOW_CALL); do_getfield(BYTE); post();\n bind(OPC.GETFIELD_S); iparmUByte();\n bind(OPC.GETFIELD_S_WIDE); pre(FLOW_CALL); do_getfield(SHORT); post();\n bind(OPC.GETFIELD_C); iparmUByte();\n bind(OPC.GETFIELD_C_WIDE); pre(FLOW_CALL); do_getfield(USHORT); post();\n bind(OPC.GETFIELD_O); iparmUByte();\n bind(OPC.GETFIELD_O_WIDE); pre(FLOW_CALL); do_getfield(OOP); post();\n bind(OPC.GETFIELD_L); iparmUByte();\n bind(OPC.GETFIELD_L_WIDE); pre(FLOW_CALL); do_getfield(LONG); post();\n bind(OPC.GETFIELD0_I); iparmUByte();\n bind(OPC.GETFIELD0_I_WIDE); pre(FLOW_NEXT); do_getfield0(INT); post();\n bind(OPC.GETFIELD0_B); iparmUByte();\n bind(OPC.GETFIELD0_B_WIDE); pre(FLOW_NEXT); do_getfield0(BYTE); post();\n bind(OPC.GETFIELD0_S); iparmUByte();\n bind(OPC.GETFIELD0_S_WIDE); pre(FLOW_NEXT); do_getfield0(SHORT); post();\n bind(OPC.GETFIELD0_C); iparmUByte();\n bind(OPC.GETFIELD0_C_WIDE); pre(FLOW_NEXT); do_getfield0(USHORT); post();\n bind(OPC.GETFIELD0_O); iparmUByte();\n bind(OPC.GETFIELD0_O_WIDE); pre(FLOW_NEXT); do_getfield0(OOP); post();\n bind(OPC.GETFIELD0_L); iparmUByte();\n bind(OPC.GETFIELD0_L_WIDE); pre(FLOW_NEXT); do_getfield0(LONG); post();\n bind(OPC.PUTFIELD_I); iparmUByte();\n bind(OPC.PUTFIELD_I_WIDE); pre(FLOW_CALL); do_putfield(INT); post();\n bind(OPC.PUTFIELD_B); iparmUByte();\n bind(OPC.PUTFIELD_B_WIDE); pre(FLOW_CALL); do_putfield(BYTE); post();\n bind(OPC.PUTFIELD_S); iparmUByte();\n bind(OPC.PUTFIELD_S_WIDE); pre(FLOW_CALL); do_putfield(SHORT); post();\n bind(OPC.PUTFIELD_O); iparmUByte();\n bind(OPC.PUTFIELD_O_WIDE); pre(FLOW_CALL); do_putfield(OOP); post();\n bind(OPC.PUTFIELD_L); iparmUByte();\n bind(OPC.PUTFIELD_L_WIDE); pre(FLOW_CALL); do_putfield(LONG); post();\n bind(OPC.PUTFIELD0_I); iparmUByte();\n bind(OPC.PUTFIELD0_I_WIDE); pre(FLOW_NEXT); do_putfield0(INT); post();\n bind(OPC.PUTFIELD0_B); iparmUByte();\n bind(OPC.PUTFIELD0_B_WIDE); pre(FLOW_NEXT); do_putfield0(BYTE); post();\n bind(OPC.PUTFIELD0_S); iparmUByte();\n bind(OPC.PUTFIELD0_S_WIDE); pre(FLOW_NEXT); do_putfield0(SHORT); post();\n bind(OPC.PUTFIELD0_O); iparmUByte();\n bind(OPC.PUTFIELD0_O_WIDE); pre(FLOW_NEXT); do_putfield0(OOP); post();\n bind(OPC.PUTFIELD0_L); iparmUByte();\n bind(OPC.PUTFIELD0_L_WIDE); pre(FLOW_NEXT); do_putfield0(LONG); post();\n bind(OPC.INVOKEVIRTUAL_I); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_I_WIDE); pre(FLOW_CALL); do_invokevirtual(INT); post();\n bind(OPC.INVOKEVIRTUAL_V); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_V_WIDE); pre(FLOW_CALL); do_invokevirtual(VOID); post();\n bind(OPC.INVOKEVIRTUAL_L); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_L_WIDE); pre(FLOW_CALL); do_invokevirtual(LONG); post();\n bind(OPC.INVOKEVIRTUAL_O); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_O_WIDE); pre(FLOW_CALL); do_invokevirtual(OOP); post();\n bind(OPC.INVOKESTATIC_I); iparmUByte();\n bind(OPC.INVOKESTATIC_I_WIDE); pre(FLOW_CALL); do_invokestatic(INT); post();\n bind(OPC.INVOKESTATIC_V); iparmUByte();\n bind(OPC.INVOKESTATIC_V_WIDE); pre(FLOW_CALL); do_invokestatic(VOID); post();\n bind(OPC.INVOKESTATIC_L); iparmUByte();\n bind(OPC.INVOKESTATIC_L_WIDE); pre(FLOW_CALL); do_invokestatic(LONG); post();\n bind(OPC.INVOKESTATIC_O); iparmUByte();\n bind(OPC.INVOKESTATIC_O_WIDE); pre(FLOW_CALL); do_invokestatic(OOP); post();\n bind(OPC.INVOKESUPER_I); iparmUByte();\n bind(OPC.INVOKESUPER_I_WIDE); pre(FLOW_CALL); do_invokesuper(INT); post();\n bind(OPC.INVOKESUPER_V); iparmUByte();\n bind(OPC.INVOKESUPER_V_WIDE); pre(FLOW_CALL); do_invokesuper(VOID); post();\n bind(OPC.INVOKESUPER_L); iparmUByte();\n bind(OPC.INVOKESUPER_L_WIDE); pre(FLOW_CALL); do_invokesuper(LONG); post();\n bind(OPC.INVOKESUPER_O); iparmUByte();\n bind(OPC.INVOKESUPER_O_WIDE); pre(FLOW_CALL); do_invokesuper(OOP); post();\n bind(OPC.INVOKENATIVE_I); iparmUByte();\n bind(OPC.INVOKENATIVE_I_WIDE); pre(FLOW_CALL); do_invokenative(INT); post();\n bind(OPC.INVOKENATIVE_V); iparmUByte();\n bind(OPC.INVOKENATIVE_V_WIDE); pre(FLOW_CALL); do_invokenative(VOID); post();\n bind(OPC.INVOKENATIVE_L); iparmUByte();\n bind(OPC.INVOKENATIVE_L_WIDE); pre(FLOW_CALL); do_invokenative(LONG); post();\n bind(OPC.INVOKENATIVE_O); iparmUByte();\n bind(OPC.INVOKENATIVE_O_WIDE); pre(FLOW_CALL); do_invokenative(OOP); post();\n bind(OPC.FINDSLOT); iparmUByte();\n bind(OPC.FINDSLOT_WIDE); pre(FLOW_CALL); do_findslot(); post();\n bind(OPC.EXTEND); iparmUByte();\n bind(OPC.EXTEND_WIDE); pre(FLOW_NEXT); do_extend(); post();\n bind(OPC.INVOKESLOT_I); iparmNone();\n pre(FLOW_CALL); do_invokeslot(INT); post();\n bind(OPC.INVOKESLOT_V); iparmNone();\n pre(FLOW_CALL); do_invokeslot(VOID); post();\n bind(OPC.INVOKESLOT_L); iparmNone();\n pre(FLOW_CALL); do_invokeslot(LONG); post();\n bind(OPC.INVOKESLOT_O); iparmNone();\n pre(FLOW_CALL); do_invokeslot(OOP); post();\n bind(OPC.RETURN_V); iparmNone();\n pre(FLOW_CHANGE); do_return(VOID); post();\n bind(OPC.RETURN_I); iparmNone();\n pre(FLOW_CHANGE); do_return(INT); post();\n bind(OPC.RETURN_L); iparmNone();\n pre(FLOW_CHANGE); do_return(LONG); post();\n bind(OPC.RETURN_O); iparmNone();\n pre(FLOW_CHANGE); do_return(OOP); post();\n bind(OPC.TABLESWITCH_I); iparmNone();\n pre(FLOW_CHANGE); do_tableswitch(INT); post();\n bind(OPC.TABLESWITCH_S); iparmNone();\n pre(FLOW_CHANGE); do_tableswitch(SHORT); post();\n bind(OPC.EXTEND0); iparmNone();\n pre(FLOW_NEXT); do_extend0(); post();\n bind(OPC.ADD_I); iparmNone();\n pre(FLOW_NEXT); do_add(INT); post();\n bind(OPC.SUB_I); iparmNone();\n pre(FLOW_NEXT); do_sub(INT); post();\n bind(OPC.AND_I); iparmNone();\n pre(FLOW_NEXT); do_and(INT); post();\n bind(OPC.OR_I); iparmNone();\n pre(FLOW_NEXT); do_or(INT); post();\n bind(OPC.XOR_I); iparmNone();\n pre(FLOW_NEXT); do_xor(INT); post();\n bind(OPC.SHL_I); iparmNone();\n pre(FLOW_NEXT); do_shl(INT); post();\n bind(OPC.SHR_I); iparmNone();\n pre(FLOW_NEXT); do_shr(INT); post();\n bind(OPC.USHR_I); iparmNone();\n pre(FLOW_NEXT); do_ushr(INT); post();\n bind(OPC.MUL_I); iparmNone();\n pre(FLOW_NEXT); do_mul(INT); post();\n bind(OPC.DIV_I); iparmNone();\n pre(FLOW_CALL); do_div(INT); post();\n bind(OPC.REM_I); iparmNone();\n pre(FLOW_CALL); do_rem(INT); post();\n bind(OPC.NEG_I); iparmNone();\n pre(FLOW_NEXT); do_neg(INT); post();\n bind(OPC.I2B); iparmNone();\n pre(FLOW_NEXT); do_i2b(); post(); \n bind(OPC.I2S); iparmNone();\n pre(FLOW_NEXT); do_i2s(); post(); \n bind(OPC.I2C); iparmNone();\n pre(FLOW_NEXT); do_i2c(); post(); \n bind(OPC.ADD_L); iparmNone();\n pre(FLOW_NEXT); do_add(LONG); post();\n bind(OPC.SUB_L); iparmNone();\n pre(FLOW_NEXT); do_sub(LONG); post();\n bind(OPC.MUL_L); iparmNone();\n pre(FLOW_NEXT); do_mul(LONG); post();\n bind(OPC.DIV_L); iparmNone();\n pre(FLOW_CALL); do_div(LONG); post();\n bind(OPC.REM_L); iparmNone();\n pre(FLOW_CALL); do_rem(LONG); post();\n bind(OPC.AND_L); iparmNone();\n pre(FLOW_NEXT); do_and(LONG); post();\n bind(OPC.OR_L); iparmNone();\n pre(FLOW_NEXT); do_or(LONG); post();\n bind(OPC.XOR_L); iparmNone();\n pre(FLOW_NEXT); do_xor(LONG); post();\n bind(OPC.NEG_L); iparmNone();\n pre(FLOW_NEXT); do_neg(LONG); post();\n bind(OPC.SHL_L); iparmNone();\n pre(FLOW_NEXT); do_shl(LONG); post();\n bind(OPC.SHR_L); iparmNone();\n pre(FLOW_NEXT); do_shr(LONG); post();\n bind(OPC.USHR_L); iparmNone();\n pre(FLOW_NEXT); do_ushr(LONG); post();\n bind(OPC.L2I); iparmNone();\n pre(FLOW_NEXT); do_l2i(); post(); \n bind(OPC.I2L); iparmNone();\n pre(FLOW_NEXT); do_i2l(); post(); \n bind(OPC.THROW); iparmNone();\n pre(FLOW_CALL); do_throw(); post();\n bind(OPC.POP_1); iparmNone();\n pre(FLOW_NEXT); do_pop(1); post(); \n bind(OPC.POP_2); iparmNone();\n pre(FLOW_NEXT); do_pop(2); post(); \n bind(OPC.MONITORENTER); iparmNone();\n pre(FLOW_CALL); do_monitorenter(); post();\n bind(OPC.MONITOREXIT); iparmNone();\n pre(FLOW_CALL); do_monitorexit(); post();\n bind(OPC.CLASS_MONITORENTER); iparmNone();\n pre(FLOW_CALL); do_class_monitorenter(); post();\n bind(OPC.CLASS_MONITOREXIT); iparmNone();\n pre(FLOW_CALL); do_class_monitorexit(); post();\n bind(OPC.ARRAYLENGTH); iparmNone();\n pre(FLOW_CALL); do_arraylength(); post();\n bind(OPC.NEW); iparmNone();\n pre(FLOW_CALL); do_new(); post(); \n bind(OPC.NEWARRAY); iparmNone();\n pre(FLOW_CALL); do_newarray(); post();\n bind(OPC.NEWDIMENSION); iparmNone();\n pre(FLOW_CALL); do_newdimension(); post();\n bind(OPC.CLASS_CLINIT); iparmNone();\n pre(FLOW_CALL); do_class_clinit(); post();\n bind(OPC.BBTARGET_SYS); iparmNone();\n pre(FLOW_NEXT); do_bbtarget_sys(); post();\n bind(OPC.BBTARGET_APP); iparmNone();\n pre(FLOW_CALL); do_bbtarget_app(); post();\n bind(OPC.INSTANCEOF); iparmNone();\n pre(FLOW_CALL); do_instanceof(); post();\n bind(OPC.CHECKCAST); iparmNone();\n pre(FLOW_CALL); do_checkcast(); post();\n bind(OPC.ALOAD_I); iparmNone();\n pre(FLOW_CALL); do_aload(INT); post();\n bind(OPC.ALOAD_B); iparmNone();\n pre(FLOW_CALL); do_aload(BYTE); post();\n bind(OPC.ALOAD_S); iparmNone();\n pre(FLOW_CALL); do_aload(SHORT); post();\n bind(OPC.ALOAD_C); iparmNone();\n pre(FLOW_CALL); do_aload(USHORT); post();\n bind(OPC.ALOAD_O); iparmNone();\n pre(FLOW_CALL); do_aload(OOP); post();\n bind(OPC.ALOAD_L); iparmNone();\n pre(FLOW_CALL); do_aload(LONG); post();\n bind(OPC.ASTORE_I); iparmNone();\n pre(FLOW_CALL); do_astore(INT); post();\n bind(OPC.ASTORE_B); iparmNone();\n pre(FLOW_CALL); do_astore(BYTE); post();\n bind(OPC.ASTORE_S); iparmNone();\n pre(FLOW_CALL); do_astore(SHORT); post();\n bind(OPC.ASTORE_O); iparmNone();\n pre(FLOW_CALL); do_astore(OOP); post();\n bind(OPC.ASTORE_L); iparmNone();\n pre(FLOW_CALL); do_astore(LONG); post();\n bind(OPC.LOOKUP_I); iparmNone();\n pre(FLOW_CALL); do_lookup(INT); post();\n bind(OPC.LOOKUP_B); iparmNone();\n pre(FLOW_CALL); do_lookup(BYTE); post();\n bind(OPC.LOOKUP_S); iparmNone();\n pre(FLOW_CALL); do_lookup(SHORT); post();\n bind(OPC.PAUSE); iparmNone();\n pre(FLOW_NEXT); do_pause(); post();\n\n/*if[FLOATS]*/\n bind(OPC.FCMPL); iparmNone();\n pre(FLOW_NEXT); do_fcmpl(); post();\n bind(OPC.FCMPG); iparmNone();\n pre(FLOW_NEXT); do_fcmpg(); post();\n bind(OPC.DCMPL); iparmNone();\n pre(FLOW_NEXT); do_dcmpl(); post();\n bind(OPC.DCMPG); iparmNone();\n pre(FLOW_NEXT); do_dcmpg(); post();\n bind(OPC.GETSTATIC_F); iparmUByte();\n bind(OPC.GETSTATIC_F_WIDE); pre(FLOW_CALL); do_getstatic(FLOAT); post();\n bind(OPC.GETSTATIC_D); iparmUByte();\n bind(OPC.GETSTATIC_D_WIDE); pre(FLOW_CALL); do_getstatic(DOUBLE); post();\n bind(OPC.CLASS_GETSTATIC_F); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_F_WIDE); pre(FLOW_CALL); do_class_getstatic(FLOAT); post();\n bind(OPC.CLASS_GETSTATIC_D); iparmUByte();\n bind(OPC.CLASS_GETSTATIC_D_WIDE); pre(FLOW_CALL); do_class_getstatic(DOUBLE); post();\n bind(OPC.PUTSTATIC_F); iparmUByte();\n bind(OPC.PUTSTATIC_F_WIDE); pre(FLOW_CALL); do_putstatic(FLOAT); post();\n bind(OPC.PUTSTATIC_D); iparmUByte();\n bind(OPC.PUTSTATIC_D_WIDE); pre(FLOW_CALL); do_putstatic(DOUBLE); post();\n bind(OPC.CLASS_PUTSTATIC_F); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_F_WIDE); pre(FLOW_CALL); do_class_putstatic(FLOAT); post();\n bind(OPC.CLASS_PUTSTATIC_D); iparmUByte();\n bind(OPC.CLASS_PUTSTATIC_D_WIDE); pre(FLOW_CALL); do_class_putstatic(DOUBLE); post();\n bind(OPC.GETFIELD_F); iparmUByte();\n bind(OPC.GETFIELD_F_WIDE); pre(FLOW_CALL); do_getfield(FLOAT); post();\n bind(OPC.GETFIELD_D); iparmUByte();\n bind(OPC.GETFIELD_D_WIDE); pre(FLOW_CALL); do_getfield(DOUBLE); post();\n bind(OPC.GETFIELD0_F); iparmUByte();\n bind(OPC.GETFIELD0_F_WIDE); pre(FLOW_NEXT); do_getfield0(FLOAT); post();\n bind(OPC.GETFIELD0_D); iparmUByte();\n bind(OPC.GETFIELD0_D_WIDE); pre(FLOW_NEXT); do_getfield0(DOUBLE); post();\n bind(OPC.PUTFIELD_F); iparmUByte();\n bind(OPC.PUTFIELD_F_WIDE); pre(FLOW_CALL); do_putfield(FLOAT); post();\n bind(OPC.PUTFIELD_D); iparmUByte();\n bind(OPC.PUTFIELD_D_WIDE); pre(FLOW_CALL); do_putfield(DOUBLE); post();\n bind(OPC.PUTFIELD0_F); iparmUByte();\n bind(OPC.PUTFIELD0_F_WIDE); pre(FLOW_NEXT); do_putfield0(FLOAT); post();\n bind(OPC.PUTFIELD0_D); iparmUByte();\n bind(OPC.PUTFIELD0_D_WIDE); pre(FLOW_NEXT); do_putfield0(DOUBLE); post();\n bind(OPC.INVOKEVIRTUAL_F); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_F_WIDE); pre(FLOW_CALL); do_invokevirtual(FLOAT); post();\n bind(OPC.INVOKEVIRTUAL_D); iparmUByte();\n bind(OPC.INVOKEVIRTUAL_D_WIDE); pre(FLOW_CALL); do_invokevirtual(DOUBLE); post();\n bind(OPC.INVOKESTATIC_F); iparmUByte();\n bind(OPC.INVOKESTATIC_F_WIDE); pre(FLOW_CALL); do_invokestatic(FLOAT); post();\n bind(OPC.INVOKESTATIC_D); iparmUByte();\n bind(OPC.INVOKESTATIC_D_WIDE); pre(FLOW_CALL); do_invokestatic(DOUBLE); post();\n bind(OPC.INVOKESUPER_F); iparmUByte();\n bind(OPC.INVOKESUPER_F_WIDE); pre(FLOW_CALL); do_invokesuper(FLOAT); post();\n bind(OPC.INVOKESUPER_D); iparmUByte();\n bind(OPC.INVOKESUPER_D_WIDE); pre(FLOW_CALL); do_invokesuper(DOUBLE); post();\n bind(OPC.INVOKENATIVE_F); iparmUByte();\n bind(OPC.INVOKENATIVE_F_WIDE); pre(FLOW_CALL); do_invokenative(FLOAT); post();\n bind(OPC.INVOKENATIVE_D); iparmUByte();\n bind(OPC.INVOKENATIVE_D_WIDE); pre(FLOW_CALL); do_invokenative(DOUBLE); post();\n bind(OPC.INVOKESLOT_F); iparmNone();\n pre(FLOW_CALL); do_invokeslot(FLOAT); post();\n bind(OPC.INVOKESLOT_D); iparmNone();\n pre(FLOW_CALL); do_invokeslot(DOUBLE); post();\n bind(OPC.RETURN_F); iparmNone();\n pre(FLOW_CHANGE); do_return(FLOAT); post();\n bind(OPC.RETURN_D); iparmNone();\n pre(FLOW_CHANGE); do_return(DOUBLE); post();\n bind(OPC.CONST_FLOAT); iparmNone();\n pre(FLOW_CHANGE); do_const_float(); post();\n bind(OPC.CONST_DOUBLE); iparmNone();\n pre(FLOW_CHANGE); do_const_double(); post();\n bind(OPC.ADD_F); iparmNone();\n pre(FLOW_NEXT); do_add(FLOAT); post();\n bind(OPC.SUB_F); iparmNone();\n pre(FLOW_NEXT); do_sub(FLOAT); post();\n bind(OPC.MUL_F); iparmNone();\n pre(FLOW_NEXT); do_mul(FLOAT); post();\n bind(OPC.DIV_F); iparmNone();\n pre(FLOW_NEXT); do_div(FLOAT); post();\n bind(OPC.REM_F); iparmNone();\n pre(FLOW_NEXT); do_rem(FLOAT); post();\n bind(OPC.NEG_F); iparmNone();\n pre(FLOW_NEXT); do_neg(FLOAT); post();\n bind(OPC.ADD_D); iparmNone();\n pre(FLOW_NEXT); do_add(DOUBLE); post();\n bind(OPC.SUB_D); iparmNone();\n pre(FLOW_NEXT); do_sub(DOUBLE); post();\n bind(OPC.MUL_D); iparmNone();\n pre(FLOW_NEXT); do_mul(DOUBLE); post();\n bind(OPC.DIV_D); iparmNone();\n pre(FLOW_NEXT); do_div(DOUBLE); post();\n bind(OPC.REM_D); iparmNone();\n pre(FLOW_NEXT); do_rem(DOUBLE); post();\n bind(OPC.NEG_D); iparmNone();\n pre(FLOW_NEXT); do_neg(DOUBLE); post();\n bind(OPC.I2F); iparmNone();\n pre(FLOW_NEXT); do_i2f(); post(); \n bind(OPC.L2F); iparmNone();\n pre(FLOW_NEXT); do_l2f(); post(); \n bind(OPC.F2I); iparmNone();\n pre(FLOW_NEXT); do_f2i(); post(); \n bind(OPC.F2L); iparmNone();\n pre(FLOW_NEXT); do_f2l(); post(); \n bind(OPC.I2D); iparmNone();\n pre(FLOW_NEXT); do_i2d(); post(); \n bind(OPC.L2D); iparmNone();\n pre(FLOW_NEXT); do_l2d(); post(); \n bind(OPC.F2D); iparmNone();\n pre(FLOW_NEXT); do_f2d(); post(); \n bind(OPC.D2I); iparmNone();\n pre(FLOW_NEXT); do_d2i(); post(); \n bind(OPC.D2L); iparmNone();\n pre(FLOW_NEXT); do_d2l(); post(); \n bind(OPC.D2F); iparmNone();\n pre(FLOW_NEXT); do_d2f(); post(); \n bind(OPC.ALOAD_F); iparmNone();\n pre(FLOW_CALL); do_aload(FLOAT); post();\n bind(OPC.ALOAD_D); iparmNone();\n pre(FLOW_CALL); do_aload(DOUBLE); post();\n bind(OPC.ASTORE_F); iparmNone();\n pre(FLOW_CALL); do_astore(FLOAT); post();\n bind(OPC.ASTORE_D); iparmNone();\n pre(FLOW_CALL); do_astore(DOUBLE); post();\n/*end[FLOATS]*/\n }\n }", "switch(curState) {\r\n${stateoutputcases}\r\n default:\r\n break; //no action taken\r\n }", "public T caseSwitch(Engine.Switch object) {\n\t\treturn null;\n\t}", "@Override\n public String visit(SwitchStmt n, Object arg) {\n return null;\n }", "boolean UseSwitch (Node p) {\n if (p.typ != Node.alt) return false;\n int nAlts = 0;\n while (p != null) {\n ++nAlts;\n // must not optimize with switch-statement, if alt uses a resolver expression\n if (p.sub.typ == Node.rslv) return false;\n p = p.down;\n }\n return nAlts > 5;\n }", "public int[] switchCases() {\n return matchesOp;\n }", "public static SwitchExpression switch_(Expression switchValue, Expression defaultBody, Method method, Iterable<SwitchCase> cases) { throw Extensions.todo(); }", "@Override\n public boolean render(InternalContextAdapter context, Writer writer, Node node) throws IOException, ResourceNotFoundException, ParseErrorException, MethodInvocationException {\n if (node.jjtGetChild(0) == null) {\n //rsvc.error(\"#switch() error : null argument\");\n return false;\n }\n\n /*\n * does it have a value? If you have a null reference, then no.\n */\n Object value = node.jjtGetChild(0).value(context);\n\n if (value == null) {\n value = \"[DEFAULT]\";\n }\n\n /*\n * get the arg\n */\n String arg = value.toString();\n\n Node n = node.jjtGetChild(1);\n Node child;\n Node renderNode;\n int numChildren = n.jjtGetNumChildren();\n for (int i = 0; i < numChildren; i++) {\n child = n.jjtGetChild(i);\n if (child instanceof ASTDirective) {\n ASTDirective directive = ((ASTDirective) child);\n String dirName = ((ASTDirective) child).getDirectiveName();\n\n if (dirName.equalsIgnoreCase(\"case\")) {\n String casetoken = directive.jjtGetChild(0).literal();\n\n if (casetoken.equalsIgnoreCase(arg)) {\n // render all the children until we hit either\n // a case directive, default directive, or the end of this switch\n for (int j = i + 1; j < numChildren; j++) {\n renderNode = n.jjtGetChild(j);\n if (renderNode instanceof ASTDirective) {\n String directiveName = ((ASTDirective) renderNode).getDirectiveName();\n if (directiveName.equalsIgnoreCase(\"case\") || directiveName.equalsIgnoreCase(\"default\")) {\n break;\n }\n }\n\n renderNode.render(context, writer);\n }\n\n break;\n }\n } else if (dirName.equalsIgnoreCase(\"default\")) {\n for (int j = i + 1; j < numChildren; j++) {\n renderNode = n.jjtGetChild(j);\n renderNode.render(context, writer);\n }\n\n break;\n }\n }\n }\n\n return true;\n }", "@Override\n public String visit(SwitchExpr n, Object arg) {\n return null;\n }", "public static void computeSwitch() { \n\t\t// result[pos-off] += prod % 10;\n\t\tSystem.out.println (\"switch (prod) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tSystem.out.print (\"case \" + i + \": \");\n\t\t\tif (i%10 != 0) {\n\t\t\t\tSystem.out.print (\"result[iPos] += \" + (i%10) + \";\");\n\t\t\t}\n\t\t\tif ((i / 10) != 0) {\n\t\t\t\tSystem.out.print (\"result[iPosSubOne] += \" + (i/10) + \";\");\n\t\t\t}\n\t\t\tSystem.out.println (\"break;\");\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t// middle one\n//\t\tif (result[pos-off] > 9) { // carry internally\n//\t\t\tdo {\n//\t\t\t\tresult[pos-off] -= 10;\n//\t\t\t\tresult[pos-off-1]++;\n//\t\t\t} while (result[pos-off] > 9);\n//\t\t}\n\t\tSystem.out.println (\"switch (result[iPos]) {\");\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tint tens = 10*(i/10);\n\t\t\tif (tens == 0) {\n\t\t\t\tSystem.out.println (\"case \" + i + \": break; \");\n\t\t\t} else {\n\t\t\t\tSystem.out.println (\"case \" + i + \": result[iPosSubOne] += \" + (i/10) + \"; result[iPos] -= \" + tens + \"; break; \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println (\"};\");\n\t\t\n\t\t\n\t\t\n\t}", "public static SwitchExpression switch_(Class type, Expression switchValue, Expression defaultBody, Method method, Iterable<SwitchCase> cases) { throw Extensions.todo(); }", "public void testingSwitchWithStringStatemant() {\r\n\t\tSystem.err\r\n\t\t\t\t.println(\"Class NewFeatures, method testingSwitchWithStringStatement called!\");\r\n\t\tArrayList<String> randomStrings = new ArrayList<>();\r\n\t\trandomStrings.add(\"hey\");\r\n\t\trandomStrings.add(\"hello\");\r\n\t\trandomStrings.add(\"labas\");\r\n\t\t// generating random number and using Random class\r\n\t\tRandom generator = new Random();\r\n\t\tswitch (randomStrings.get(generator.nextInt(3))) {\r\n\t\tcase \"hey\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tcase \"hello\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tcase \"labas\":\r\n\t\t\tSystem.out.println(\"String \"\r\n\t\t\t\t\t+ randomStrings.get(generator.nextInt(3)) + \" called!\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Nothing has been called!\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\tSystem.out\r\n\t\t\t\t.println(\"Class NewFeatures, method testingSwitchWithStringStatement done!\");\r\n\t}", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\t\t\n\t}", "public Snippet visit(SwitchLabel n, Snippet argu) {\n\t Snippet _ret=null;\n\t _ret = n.nodeChoice.accept(this, argu);\n\t return _ret;\n\t }", "private ParseTree parseSwitchStatement() {\n SourcePosition start = getTreeStartLocation();\n eat(TokenType.SWITCH);\n eat(TokenType.OPEN_PAREN);\n ParseTree expression = parseExpression();\n eat(TokenType.CLOSE_PAREN);\n eat(TokenType.OPEN_CURLY);\n ImmutableList<ParseTree> caseClauses = parseCaseClauses();\n eat(TokenType.CLOSE_CURLY);\n return new SwitchStatementTree(getTreeLocation(start), expression, caseClauses);\n }", "private static void printSwitchCase(Node oroot, int i,String s, ArrayList<Token> list, String p) {\n\t\tString taps =\"\";\n\t\tfor(int k = 0; k<i+2; k++){\t// get how many taps at front of each line.\n\t\t\ttaps +=\"\\t\";\n\t\t}\n\t\tif(oroot.children.size() == 0){\t\t// if node does not have sub node, this means it is most inner case,return\n\t\t\tSystem.out.println(taps+\"switch(s[index + \"+ i +\"]){\");\n\t\t\tSystem.out.println(taps+\"default:return new Token(\"+\"Token.Tag.\"+getTag(s,list)+\", \\\"\"+s+\"\\\",0);\");\n\t\t\tSystem.out.println(taps+\"}\");\n\t\t\treturn;\n\t\t}\n\t\tString temp =\"\"; // remember each level's char\n\t\tString prob =p;\t// get possible match. for example, when reading <<, but the prob will still be <.\n\t\tif(oroot.children.size()!= 0){\n\t\t\tSystem.out.println(taps+\"switch(s[index + \"+ i +\"]){\");\n\t\t\tfor(int j = 0;j<oroot.children.size(); j++){\n\t\t\t\ttemp = s;\n\t\t\t\tprob = bestMatch(s,list); // find the best match possible\n\t\t\t\ts += oroot.children.get(j).current;\t\n\t\t\t\tif(prob.length() == 0){\n\t\t\t\t\tprob = p;\n\t\t\t\t}\n\t\t\t\tSystem.out.println(taps+\"case '\"+oroot.children.get(j).current+\"':\");\n\t\t\t\tint m = j;\n\t\t\t\tint n = i;\n\t\t\t\ti++; // get deep into level\n\t\t\t\tprintSwitchCase(oroot.children.get(j), i,s, list,prob);\n\t\t\t\t\n\t\t\t\ts = temp;\t// make sure it string s be previous level s\n\t\t\t\tj = m;\n\t\t\t\ti = n;\n\t\t\t}\n\t\t\tif(i!=0){// if it is not first level\n\t\t\t\tif(prob.equals(\"\")){\t// if possible match is empty string, means null, no possible match.\n\t\t\t\t\tSystem.out.println(taps+\"default:return null;\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(taps+\"default:return new Token(\"+\"Token.Tag.\"+getTag(prob,list)+\", \\\"\"+prob+\"\\\",0);\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(taps+\"}\");\n\t\t\t}\n\t\t}\t\n\t}", "@Override\n\tpublic void visit(CaseExpression arg0) {\n\n\t}", "public Object visit(ASTSwitchStatement node, Object data) {\n \n int boolCompSwitch = sumExpressionComplexity( (ASTExpression) node.getFirstChildOfType( ASTExpression.class ) );\n \n int npath = 0;\n int caseRange = 0;\n for ( int i = 0; i < node.jjtGetNumChildren(); i++ ) {\n SimpleJavaNode simpleNode = (SimpleJavaNode) node.jjtGetChild( i );\n \n // Fall-through labels count as 1 for complexity\n if ( simpleNode instanceof ASTSwitchLabel ) {\n npath += caseRange;\n caseRange = 1;\n } else {\n Integer complexity = (Integer) simpleNode.jjtAccept( this, data );\n caseRange *= complexity.intValue();\n }\n }\n // add in npath of last label\n npath += caseRange;\n return new Integer( boolCompSwitch + npath );\n }", "public static void main(String[] args){\n final int a = 1;\n // final int b;\n // b = 2;\n int x = 5;\n switch(x){\n case a: System.out.println(\"case a\");\n // case b://constant expression required .. compile error\n case 3: // is a compile time constant.\n System.out.println(\"case 3\");\n System.out.println(\"2nd line in case 3\");\n // To be a variable that is a compile time constant, the variable needs to be...\n // 1.declared as final\n // 2.have a primative or String type\n // 3.initialized (on the same line as the declaration)\n // 4.assigned to a compile time constant expression\n default: System.out.println(\"default, if no break will continue\");\n case 4:{System.out.println(\"case 4\");};//can omit {} and ;\n }\n// String derp = \"s\";\n// switch(derp){\n// \n// }\n }", "void switch_test() {\n\t\tSystem.out.println(\"switch test)\\n[i] : [j]\");\n\t\tint sw = 0;\n\t\tint j = 0;\n\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\n\t\t\tswitch(sw) {\n\t\t\tcase 0 : \n\t\t\t\tj = j + i;\n\t\t\t\tsw = 1;\n\t\t\t\tbreak;\n\t\t\tcase 1 : \n\t\t\t\tj = j - i;\n\t\t\t\tsw = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println(i + \" : \" + j);\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n\t}", "public boolean visit(SwitchCase node) {\n if (ScopeAnalyzer.hasFlag(ScopeAnalyzer.VARIABLES, flags) && !node.isDefault() && isInside(node.getExpression())) {\n SwitchStatement switchStatement= (SwitchStatement) node.getParent();\n ITypeBinding binding= switchStatement.getExpression().resolveTypeBinding();\n if (binding != null && binding.isEnum()) {\n IVariableBinding[] declaredFields= binding.getDeclaredFields();\n for (IVariableBinding variableBinding : declaredFields) {\n if (variableBinding.isEnumConstant()) {\n breakStatement = requestor.acceptBinding(variableBinding);\n if (breakStatement)\n return false;\n }\n }\n }\n }\n\n return false;\n }", "public T caseSwitch(Switch object) {\n\t\treturn null;\n\t}", "private boolean menuSwitch(int choice) {\r\n\t\t\t\t\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tint choice2 = 0;\r\n\t\t\tboolean valid = false;\r\n\t\t\tString choiceString = \"\";\r\n\t\t\t\r\n\t\t\tmenu2(); // 1,2,3,4\r\n\t\t\t\r\n\t\t\twhile(!valid) {\r\n\t\t\t\tchoice2 = this.scan.readInt(); \r\n\t\t\t\tchoiceString = choice2 + \"\";\r\n\t\t\t\tvalid = this.regex.menuChoice4(choiceString);\r\n\t\t\t\t\r\n\t\t\t\tif(!valid) {\r\n\t\t\t\t\tSystem.out.println(\"Enter an integer 1-4.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tmenu2Switch(choice2);\r\n\t\t\t\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tsave(myMaze);\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"\t-----------QUITTING-----------\\n\");\r\n\t\t\tSystem.out.println(PrintMaze.dungeonMasterDisplayBack());\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static void main(String[] args) {\n int number = 1154 ;\n switch (number){\n\n case 1:\n case 3:\n case 5:\n case 7:\n case 8:\n case 10:\n case 12:\n System.out.println(\"31 days in this month\");\n break;\n\n\n case 4:\n case 6:\n case 9:\n case 11:\n System.out.println(\" 30 days in this month\");\n break;\n\n case 2:\n System.out.println(\"28 days in february\");\n break;\n\n default:\n System.out.println(\"Invalid\");\n break;\n\n\n }\n\n\n System.out.println(\"------------ Pass or failed____________________\");\n\n\n char grade = 'u';\n\n switch (grade){\n case 'A':\n case 'B':\n case 'C':\n case 'D':\n System.out.println(\"Passed\");\n break;\n\n case 'F':\n System.out.println(\"Failed\");\n break;\n\n default:\n System.out.println(\"Invalid Grade\");\n }\n\n\n\n\n\n }", "public void Case29(){\n\n }", "private void menu2Switch(int choice) {\r\n\t\tswitch(choice) {\r\n\t\tcase 1:\r\n\t\t\tthis.myMaze.movePlayer('n');\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tthis.myMaze.movePlayer('e');\r\n\t\t\tbreak;\r\n\t\tcase 3:\r\n\t\t\tthis.myMaze.movePlayer('s');\r\n\t\t\tbreak;\r\n\t\tcase 4:\r\n\t\t\tthis.myMaze.movePlayer('w');\r\n\t\t\tbreak;\r\n\t\t}\r\n\t}", "public static boolean switchCase(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"switchCase\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, SWITCH_CASE, \"<switch case>\");\n r = switchCase_0(b, l + 1);\n r = r && switchCase_1(b, l + 1);\n r = r && statements(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public static SwitchCase switchCase(Expression expression, Iterable<Expression> body) { throw Extensions.todo(); }", "public static void main(String[] args) {\n int currentSeason = 0;\n\n switch (currentSeason) {\n case 1: // ga wandelen in de natuur\n System.out.println(\"Lente!\");\n break;\n case 2: // ga liggen op het strand\n System.out.println(\"Zomer!\");\n break;\n case 3: // ga steden bezoeken\n System.out.println(\"Herfst!\");\n break;\n default: // het is winter, ga op wintersport\n System.out.println(\"Winter!\");\n break;\n }\n\n // what if currentSeason is 6, we only have 4 seasons: We make an if statement around the switch statement.\n // we have additional conditions: if anotherSeason is greater than or equal to 0 AND less than 5, then you may execute the switch statement\n int anotherSeason = 3;\n\n if (anotherSeason >= 0 && anotherSeason < 5) {\n switch (anotherSeason) {\n case 1: // ga wandelen in de natuur\n System.out.println(\"Lente!\");\n break;\n case 2: // ga liggen op het strand\n System.out.println(\"Zomer!\");\n break;\n case 3: // ga steden bezoeken\n System.out.println(\"Herfst!\");\n break;\n default: // het is winter, ga op wintersport\n System.out.println(\"Winter!\");\n break;\n }\n }\n\n // switch statement switchValue\n // don't forget the break!\n int switchValue = 3;\n\n switch (switchValue) {\n case 1:\n System.out.println(\"Value was 1\");\n break;\n case 2:\n System.out.println(\"Value was 2\");\n break;\n case 3:\n case 4:\n case 5:\n System.out.println(\"Value was a 3, or a 4, or a 5\");\n System.out.println(\"Actually it was a \" + switchValue);\n break;\n default:\n System.out.println(\"Was not 1, 2, 3, 4 or 5\");\n break;\n }\n\n // switch statement toUppercase()\n String month = \"JuNE\";\n\n switch (month.toUpperCase()) {\n case \"JANUARY\":\n System.out.println(\"January\");\n break;\n case \"JUNE\":\n System.out.println(\"June\");\n break;\n default:\n System.out.println(\"Not sure\");\n }\n }", "public Snippet visit(SwitchEntry n, Snippet argu) {\n\t Snippet _ret=null;\n\t Snippet f0 = n.switchLabel.accept(this, argu);\n\t n.nodeToken.accept(this, argu);\n\n\t\t\tint temp = currentBlock; \n\t \n\t \n\t currentBlock = ++blockId;\n\n\t\t\t\n\n\t\t\tcurrentBlock = temp;\n\t\t\t_ret.returnTemp = f0.returnTemp+\":\";\n\t\t\ttPlasmaCode += generateTabs(blockDepth)+ _ret.returnTemp;\n\t\t\t//f2.returnTemp;\n\t\t\t n.block.accept(this, argu);\n\t return _ret;\n\t }", "@Override\n public String visit(SwitchEntry n, Object arg) {\n return null;\n }", "protected void sequence_ExprSwitchCase(ISerializationContext context, ExprSwitchCase semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public static boolean switchExpressionCase(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"switchExpressionCase\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, SWITCH_EXPRESSION_CASE, \"<switch expression case>\");\n r = guardedPattern(b, l + 1);\n r = r && consumeToken(b, EXPRESSION_BODY_DEF);\n r = r && expression(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public void visitTABLESWITCH(TABLESWITCH o){\n\t\tindexOfInt(o, stack().peek());\n\t\t// See Pass 3a.\n\t}", "InsnLookupSwitch (InsnTarget defaultOp, int[] matchesOp,\n\t\t InsnTarget[] targetsOp, int offset) {\n super(opc_lookupswitch, offset);\n\n this.defaultOp = defaultOp; \n this.matchesOp = matchesOp;\n this.targetsOp = targetsOp;\n\n if (defaultOp == null || targetsOp == null || matchesOp == null ||\n\ttargetsOp.length != matchesOp.length)\n throw new InsnError (\"attempt to create an opc_lookupswitch\" +//NOI18N\n \" with invalid operands\");//NOI18N\n }", "public final void switchLabel() throws RecognitionException {\n int switchLabel_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"switchLabel\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(665, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 96) ) { return ; }\n // Java.g:666:5: ( 'case' constantExpression ':' | 'case' enumConstantName ':' | 'default' ':' )\n int alt119=3;\n try { dbg.enterDecision(119);\n\n int LA119_0 = input.LA(1);\n\n if ( (LA119_0==89) ) {\n int LA119_1 = input.LA(2);\n\n if ( (LA119_1==Identifier) ) {\n int LA119_3 = input.LA(3);\n\n if ( (LA119_3==75) ) {\n int LA119_5 = input.LA(4);\n\n if ( (synpred180_Java()) ) {\n alt119=1;\n }\n else if ( (synpred181_Java()) ) {\n alt119=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 5, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( ((LA119_3>=29 && LA119_3<=30)||LA119_3==40||(LA119_3>=42 && LA119_3<=43)||LA119_3==48||LA119_3==51||LA119_3==64||LA119_3==66||(LA119_3>=90 && LA119_3<=110)) ) {\n alt119=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 3, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( ((LA119_1>=FloatingPointLiteral && LA119_1<=DecimalLiteral)||LA119_1==47||(LA119_1>=56 && LA119_1<=63)||(LA119_1>=65 && LA119_1<=66)||(LA119_1>=69 && LA119_1<=72)||(LA119_1>=105 && LA119_1<=106)||(LA119_1>=109 && LA119_1<=113)) ) {\n alt119=1;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 1, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else if ( (LA119_0==74) ) {\n alt119=3;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 119, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(119);}\n\n switch (alt119) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:666:9: 'case' constantExpression ':'\n {\n dbg.location(666,9);\n match(input,89,FOLLOW_89_in_switchLabel3798); if (state.failed) return ;\n dbg.location(666,16);\n pushFollow(FOLLOW_constantExpression_in_switchLabel3800);\n constantExpression();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(666,35);\n match(input,75,FOLLOW_75_in_switchLabel3802); if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:667:9: 'case' enumConstantName ':'\n {\n dbg.location(667,9);\n match(input,89,FOLLOW_89_in_switchLabel3812); if (state.failed) return ;\n dbg.location(667,16);\n pushFollow(FOLLOW_enumConstantName_in_switchLabel3814);\n enumConstantName();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(667,33);\n match(input,75,FOLLOW_75_in_switchLabel3816); if (state.failed) return ;\n\n }\n break;\n case 3 :\n dbg.enterAlt(3);\n\n // Java.g:668:9: 'default' ':'\n {\n dbg.location(668,9);\n match(input,74,FOLLOW_74_in_switchLabel3826); if (state.failed) return ;\n dbg.location(668,19);\n match(input,75,FOLLOW_75_in_switchLabel3828); if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 96, switchLabel_StartIndex); }\n }\n dbg.location(669, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"switchLabel\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "CaseStatement createCaseStatement();", "public static void main(String[] args) {\n if (1 > 0) {\n System.out.println(\"1 > 0\");\n }\n \n \n if (5 < 4) {\n System.out.println(\"5 < 4\");\n } else {\n System.out.println(\"5 > 4\");\n }\n \n if (1 > 10) {\n System.out.println(\"1 > 10\");\n } else if (5 > 10) {\n System.out.println(\"5 > 10\");\n } else if (9 > 10) {\n System.out.println(\"9 > 10\");\n } else if (11 > 10){\n System.out.println(\"11 > 10\");\n } else {\n System.out.println(\"< 10\");\n }\n \n /*\n * keywordul break - opreste executia in acel bloc\n * in cazul structurii switch: daca gasim un rezultat valid vom opri excecutia\n */\n \n \n //Controlul executiei prin switch\n char rezultat;\n char valoareEvaluata = 'F';\n switch (valoareEvaluata) {\n case 'A':\n rezultat = 'A';\n break;\n case 'B':\n rezultat = 'B';\n break;\n case 'C':\n rezultat = 'C';\n break;\n default:\n rezultat = valoareEvaluata;\n }\n System.out.println(\"Am gasit: \" + rezultat);\n \n }", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case LosMelosPackage.PROGRAM:\n {\n Program program = (Program)theEObject;\n T result = caseProgram(program);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.DEFINICIONES:\n {\n Definiciones definiciones = (Definiciones)theEObject;\n T result = caseDefiniciones(definiciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.FUNCIONES:\n {\n Funciones funciones = (Funciones)theEObject;\n T result = caseFunciones(funciones);\n if (result == null) result = caseDefiniciones(funciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.VARIABLES:\n {\n Variables variables = (Variables)theEObject;\n T result = caseVariables(variables);\n if (result == null) result = caseDefiniciones(variables);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPRESION:\n {\n Expresion expresion = (Expresion)theEObject;\n T result = caseExpresion(expresion);\n if (result == null) result = caseExprThen(expresion);\n if (result == null) result = caseExprElse(expresion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.LLAMADA_PARAMETRO:\n {\n LlamadaParametro llamadaParametro = (LlamadaParametro)theEObject;\n T result = caseLlamadaParametro(llamadaParametro);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPRESION_VAR:\n {\n ExpresionVar expresionVar = (ExpresionVar)theEObject;\n T result = caseExpresionVar(expresionVar);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.BASICA:\n {\n Basica basica = (Basica)theEObject;\n T result = caseBasica(basica);\n if (result == null) result = caseExpresion(basica);\n if (result == null) result = caseExprThen(basica);\n if (result == null) result = caseExprElse(basica);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_STRING:\n {\n ExprString exprString = (ExprString)theEObject;\n T result = caseExprString(exprString);\n if (result == null) result = caseExpresionVar(exprString);\n if (result == null) result = caseBasica(exprString);\n if (result == null) result = caseElementList(exprString);\n if (result == null) result = caseExpresion(exprString);\n if (result == null) result = caseExprThen(exprString);\n if (result == null) result = caseExprElse(exprString);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_NUMBER:\n {\n ExprNumber exprNumber = (ExprNumber)theEObject;\n T result = caseExprNumber(exprNumber);\n if (result == null) result = caseBasica(exprNumber);\n if (result == null) result = caseExpresion(exprNumber);\n if (result == null) result = caseExprThen(exprNumber);\n if (result == null) result = caseExprElse(exprNumber);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_INT:\n {\n ExprInt exprInt = (ExprInt)theEObject;\n T result = caseExprInt(exprInt);\n if (result == null) result = caseExpresionVar(exprInt);\n if (result == null) result = caseExprNumber(exprInt);\n if (result == null) result = caseElementList(exprInt);\n if (result == null) result = caseBasica(exprInt);\n if (result == null) result = caseExpresion(exprInt);\n if (result == null) result = caseExprThen(exprInt);\n if (result == null) result = caseExprElse(exprInt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_ARITHMETIC:\n {\n ExprArithmetic exprArithmetic = (ExprArithmetic)theEObject;\n T result = caseExprArithmetic(exprArithmetic);\n if (result == null) result = caseExprNumber(exprArithmetic);\n if (result == null) result = caseEjecuciones(exprArithmetic);\n if (result == null) result = caseBasica(exprArithmetic);\n if (result == null) result = caseExpresion(exprArithmetic);\n if (result == null) result = caseExprThen(exprArithmetic);\n if (result == null) result = caseExprElse(exprArithmetic);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_PARAM:\n {\n ExprParam exprParam = (ExprParam)theEObject;\n T result = caseExprParam(exprParam);\n if (result == null) result = caseBasica(exprParam);\n if (result == null) result = caseExpresion(exprParam);\n if (result == null) result = caseExprThen(exprParam);\n if (result == null) result = caseExprElse(exprParam);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.LLAMADA_FUNCION:\n {\n LlamadaFuncion llamadaFuncion = (LlamadaFuncion)theEObject;\n T result = caseLlamadaFuncion(llamadaFuncion);\n if (result == null) result = caseExpresion(llamadaFuncion);\n if (result == null) result = caseEjecuciones(llamadaFuncion);\n if (result == null) result = caseExprThen(llamadaFuncion);\n if (result == null) result = caseExprElse(llamadaFuncion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_BOOL:\n {\n ExprBool exprBool = (ExprBool)theEObject;\n T result = caseExprBool(exprBool);\n if (result == null) result = caseExpresion(exprBool);\n if (result == null) result = caseExpresionVar(exprBool);\n if (result == null) result = caseElementList(exprBool);\n if (result == null) result = caseEjecuciones(exprBool);\n if (result == null) result = caseExprThen(exprBool);\n if (result == null) result = caseExprElse(exprBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.VAL_BOOL:\n {\n ValBool valBool = (ValBool)theEObject;\n T result = caseValBool(valBool);\n if (result == null) result = caseExprBool(valBool);\n if (result == null) result = caseExpresion(valBool);\n if (result == null) result = caseExpresionVar(valBool);\n if (result == null) result = caseElementList(valBool);\n if (result == null) result = caseEjecuciones(valBool);\n if (result == null) result = caseExprThen(valBool);\n if (result == null) result = caseExprElse(valBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.COMP_BOOL:\n {\n CompBool compBool = (CompBool)theEObject;\n T result = caseCompBool(compBool);\n if (result == null) result = caseExprBool(compBool);\n if (result == null) result = caseExpresion(compBool);\n if (result == null) result = caseExpresionVar(compBool);\n if (result == null) result = caseElementList(compBool);\n if (result == null) result = caseEjecuciones(compBool);\n if (result == null) result = caseExprThen(compBool);\n if (result == null) result = caseExprElse(compBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.OP_BOOL:\n {\n OpBool opBool = (OpBool)theEObject;\n T result = caseOpBool(opBool);\n if (result == null) result = caseExprBool(opBool);\n if (result == null) result = caseExpresion(opBool);\n if (result == null) result = caseExpresionVar(opBool);\n if (result == null) result = caseElementList(opBool);\n if (result == null) result = caseEjecuciones(opBool);\n if (result == null) result = caseExprThen(opBool);\n if (result == null) result = caseExprElse(opBool);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_IF:\n {\n ExprIf exprIf = (ExprIf)theEObject;\n T result = caseExprIf(exprIf);\n if (result == null) result = caseExpresion(exprIf);\n if (result == null) result = caseEjecuciones(exprIf);\n if (result == null) result = caseExprThen(exprIf);\n if (result == null) result = caseExprElse(exprIf);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_THEN:\n {\n ExprThen exprThen = (ExprThen)theEObject;\n T result = caseExprThen(exprThen);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_ELSE:\n {\n ExprElse exprElse = (ExprElse)theEObject;\n T result = caseExprElse(exprElse);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LIST:\n {\n ExprList exprList = (ExprList)theEObject;\n T result = caseExprList(exprList);\n if (result == null) result = caseExpresionVar(exprList);\n if (result == null) result = caseEjecuciones(exprList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LIST2:\n {\n ExprList2 exprList2 = (ExprList2)theEObject;\n T result = caseExprList2(exprList2);\n if (result == null) result = caseExpresion(exprList2);\n if (result == null) result = caseExprThen(exprList2);\n if (result == null) result = caseExprElse(exprList2);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.ELEMENT_LIST:\n {\n ElementList elementList = (ElementList)theEObject;\n T result = caseElementList(elementList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.FUNC_LIST:\n {\n FuncList funcList = (FuncList)theEObject;\n T result = caseFuncList(funcList);\n if (result == null) result = caseExpresion(funcList);\n if (result == null) result = caseEjecuciones(funcList);\n if (result == null) result = caseExprThen(funcList);\n if (result == null) result = caseExprElse(funcList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CAR:\n {\n ExprCar exprCar = (ExprCar)theEObject;\n T result = caseExprCar(exprCar);\n if (result == null) result = caseFuncList(exprCar);\n if (result == null) result = caseExpresion(exprCar);\n if (result == null) result = caseEjecuciones(exprCar);\n if (result == null) result = caseExprThen(exprCar);\n if (result == null) result = caseExprElse(exprCar);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CDR:\n {\n ExprCdr exprCdr = (ExprCdr)theEObject;\n T result = caseExprCdr(exprCdr);\n if (result == null) result = caseFuncList(exprCdr);\n if (result == null) result = caseExpresion(exprCdr);\n if (result == null) result = caseEjecuciones(exprCdr);\n if (result == null) result = caseExprThen(exprCdr);\n if (result == null) result = caseExprElse(exprCdr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_CONS:\n {\n ExprCons exprCons = (ExprCons)theEObject;\n T result = caseExprCons(exprCons);\n if (result == null) result = caseFuncList(exprCons);\n if (result == null) result = caseExpresion(exprCons);\n if (result == null) result = caseEjecuciones(exprCons);\n if (result == null) result = caseExprThen(exprCons);\n if (result == null) result = caseExprElse(exprCons);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_IS_EMPTY:\n {\n ExprIsEmpty exprIsEmpty = (ExprIsEmpty)theEObject;\n T result = caseExprIsEmpty(exprIsEmpty);\n if (result == null) result = caseFuncList(exprIsEmpty);\n if (result == null) result = caseExpresion(exprIsEmpty);\n if (result == null) result = caseEjecuciones(exprIsEmpty);\n if (result == null) result = caseExprThen(exprIsEmpty);\n if (result == null) result = caseExprElse(exprIsEmpty);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_LENGTH:\n {\n ExprLength exprLength = (ExprLength)theEObject;\n T result = caseExprLength(exprLength);\n if (result == null) result = caseFuncList(exprLength);\n if (result == null) result = caseExpresion(exprLength);\n if (result == null) result = caseEjecuciones(exprLength);\n if (result == null) result = caseExprThen(exprLength);\n if (result == null) result = caseExprElse(exprLength);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EXPR_PRINT:\n {\n ExprPrint exprPrint = (ExprPrint)theEObject;\n T result = caseExprPrint(exprPrint);\n if (result == null) result = caseBasica(exprPrint);\n if (result == null) result = caseExpresion(exprPrint);\n if (result == null) result = caseExprThen(exprPrint);\n if (result == null) result = caseExprElse(exprPrint);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case LosMelosPackage.EJECUCIONES:\n {\n Ejecuciones ejecuciones = (Ejecuciones)theEObject;\n T result = caseEjecuciones(ejecuciones);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "public static void main(String[] args) {\n String b = new Boolean(\"TRue\").toString();\n switch (b) {\n// case true: /* compilation error switch dont accept boolean */\n// System.out.println(\"1ONE\");\n// case false:/* compilation error switch dont accept boolean */\n// System.out.println(\"2TWO\");\n default:\n System.out.println(\"3THREE\");\n }\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint a=20;\r\n\t\t\r\n\t\tswitch(a)\r\n\t\t{ \r\n\t\tcase 10: System.out.println(\"10\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 20: System.out.println(\"20\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 30: System.out.println(\"30\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tcase 40: System.out.println(\"40\");\r\n\t\tbreak;\r\n\t\t\r\n\t\tdefault: System.out.println(\"default\");\r\n\t\tbreak;\r\n\t\t\r\n\t\t}\r\n\t}", "public static void switchTest(Enum obj) {\n String className = obj.getClass().getSimpleName();\n //int key = obj.ordinal();\n String res=\"undefined\";\n switch (className) {\n case \"E1\":\n try {\n res=\"it's \"+className+\".\"+((E1)obj).name();\n } catch (Exception e) {\n }\n break;\n case \"E2\":\n try {\n res=\"it's \"+className+\".\"+((E2)obj).name();\n } catch (Exception e) {\n\n }\n break;\n default:\n// try {\n// res=\"It's \"+className+\".\"+((E3)obj).name();\n// } catch (Exception e) {\n//\n// }\n res=\"undefined\";\n } // sw\n System.out.println(res);\n }", "public static void main(String[] args) {\n\t\tlong x = 100L;\r\n\t\tswitch ((int) x) {\r\n//\t\tcase value:\r\n//\r\n//\t\t\tbreak;\r\n//\r\n//\t\tdefault:\r\n//\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tString username = \"zhangsan\";\r\n\t\tswitch (username) {\r\n//\t\tcase value:\r\n//\t\t\t\r\n//\t\t\tbreak;\r\n//\r\n//\t\tdefault:\r\n//\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\t@SuppressWarnings(\"resource\")\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"请输入数字:\");\r\n\t\tint num = scanner.nextInt();\r\n\t\tswitch (num) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"星期一\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"星期二\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"星期三\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"星期四\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"星期五\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"对不起你输入的数字非法!!!\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"---------------------------------------\");\r\n\r\n\t\t// case穿透\r\n\t\tswitch (num) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"星期一\");\r\n\r\n\r\n\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"星期二\");\r\n\r\n\r\n\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"星期三\");\r\n\r\n\r\n\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"星期四\");\r\n\r\n\r\n\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"星期五\");\r\n\r\n\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"对不起你输入的数字非法!!!\");\r\n\r\n\t\t}\r\n\r\n\t\t// case合并\r\n\t\tswitch (num) {\r\n\t\tcase 1:\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println(\"星期一\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"星期二\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 3:\r\n\t\t\tSystem.out.println(\"星期三\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 4:\r\n\t\t\tSystem.out.println(\"星期四\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tcase 5:\r\n\t\t\tSystem.out.println(\"星期五\");\r\n\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"对不起你输入的数字非法!!!\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n\t\tint x=2;\r\n\t\t\r\n\t\tswitch (x) {\r\n\t\tcase 1:\r\n\t\t\tSystem.out.println(\"1\");\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tSystem.out.println(\"2\");\r\n\t\t\tbreak;\r\n\t\tcase 3:case 4:case 5:\r\n\t\t\tSystem.out.println(\"3 or more\");\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"else\");\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Let's add some stuff\");\r\n\t\t\r\n\t}", "public final void rule__ExprSwitchCase__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:3815:1: ( ( ( rule__ExprSwitchCase__Group_0__0 ) ) | ( ( rule__ExprSwitchCase__Group_1__0 ) ) )\r\n int alt27=2;\r\n int LA27_0 = input.LA(1);\r\n\r\n if ( (LA27_0==81) ) {\r\n alt27=1;\r\n }\r\n else if ( (LA27_0==82) ) {\r\n alt27=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 27, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt27) {\r\n case 1 :\r\n // InternalGo.g:3816:2: ( ( rule__ExprSwitchCase__Group_0__0 ) )\r\n {\r\n // InternalGo.g:3816:2: ( ( rule__ExprSwitchCase__Group_0__0 ) )\r\n // InternalGo.g:3817:3: ( rule__ExprSwitchCase__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getGroup_0()); \r\n }\r\n // InternalGo.g:3818:3: ( rule__ExprSwitchCase__Group_0__0 )\r\n // InternalGo.g:3818:4: rule__ExprSwitchCase__Group_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ExprSwitchCase__Group_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalGo.g:3822:2: ( ( rule__ExprSwitchCase__Group_1__0 ) )\r\n {\r\n // InternalGo.g:3822:2: ( ( rule__ExprSwitchCase__Group_1__0 ) )\r\n // InternalGo.g:3823:3: ( rule__ExprSwitchCase__Group_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getGroup_1()); \r\n }\r\n // InternalGo.g:3824:3: ( rule__ExprSwitchCase__Group_1__0 )\r\n // InternalGo.g:3824:4: rule__ExprSwitchCase__Group_1__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ExprSwitchCase__Group_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static void main(String[] args) {\n \r\n \r\n int day = 2;\r\n String dayType;\r\n String dayString;\r\n \r\n switch (day) \r\n {\r\n case 1: dayString = \"Monday\";\r\n \t\t\r\n break;\r\n case 2: dayString = \"Tuesday\";\r\n break;\r\n case 3: dayString = \"Wednesday\";\r\n break;\r\n case 4: dayString = \"Thursday\";\r\n break;\r\n case 5: dayString = \"Friday\";\r\n break;\r\n case 6: dayString = \"Saturday\";\r\n break;\r\n case 7: dayString = \"Sunday\";\r\n break;\r\n default: dayString = \"Invalid day\";\r\n }\r\n \r\n switch (day) \r\n {\r\n //multiple cases without break statements \r\n \r\n case 1: \r\n case 2:\r\n case 3:\r\n case 4:\r\n case 5:\r\n dayType = \"Weekday\";\r\n break;\r\n case 6:\r\n case 7:\r\n dayType = \"Weekend\"; \r\n break;\r\n \r\n default: dayType= \"Invalid daytype\";\r\n }\r\n \r\n System.out.println(dayString+\" is a \"+ dayType);\r\n }", "public static void main(String[] args) {\n byte age = 6;\n String p = \"\";\n switch (age) {\n case 1:\n p = \"you can crawl\";\n break;\n case 2:\n p = \"you can talk\";\n break;\n case 3:\n p = \"you can walk\";\n break;\n case 4:\n p = \"you should have some vaccines\";\n break;\n case 5:\n p = \"you can start reading\";\n break;\n default:\n p = \"go to school\";\n break;\n }\n System.out.println(p);\n }", "protected void sequence_ExprSwitchStmt(ISerializationContext context, ExprSwitchStmt semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public static void stringSwitch() {\n String greeting = \"Hello\";\n\n switch (greeting) {\n case \"Hello\" : System.out.println(\"Hey, how goes it?\");\n break;\n case \"Goodbye\":System.out.println(\"See ya!\");\n break;\n default: System.out.println(\"Que?\");\n }\n }", "public void setSwitch(String Switch) {\n this.Switch = Switch;\n }", "public void setSwitch(String Switch) {\n this.Switch = Switch;\n }", "protected void sequence_SwitchStmt(ISerializationContext context, SwitchStmt semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "public LookUpSwitchInstruction() {}", "public static SwitchExpression switch_(Expression switchValue, Expression defaultBody, SwitchCase[] cases) {\n return switch_(switchValue, defaultBody, null, Arrays.asList(cases));\n }", "private final void step3() { if (k == 0) return; /* For Bug 1 */ switch (b[k-1])\n\t {\n\t case 'a': if (ends(\"ational\")) { r(\"ate\"); break; }\n\t if (ends(\"tional\")) { r(\"tion\"); break; }\n\t break;\n\t case 'c': if (ends(\"enci\")) { r(\"ence\"); break; }\n\t if (ends(\"anci\")) { r(\"ance\"); break; }\n\t break;\n\t case 'e': if (ends(\"izer\")) { r(\"ize\"); break; }\n\t break;\n\t case 'l': if (ends(\"bli\")) { r(\"ble\"); break; }\n\t if (ends(\"alli\")) { r(\"al\"); break; }\n\t if (ends(\"entli\")) { r(\"ent\"); break; }\n\t if (ends(\"eli\")) { r(\"e\"); break; }\n\t if (ends(\"ousli\")) { r(\"ous\"); break; }\n\t break;\n\t case 'o': if (ends(\"ization\")) { r(\"ize\"); break; }\n\t if (ends(\"ation\")) { r(\"ate\"); break; }\n\t if (ends(\"ator\")) { r(\"ate\"); break; }\n\t break;\n\t case 's': if (ends(\"alism\")) { r(\"al\"); break; }\n\t if (ends(\"iveness\")) { r(\"ive\"); break; }\n\t if (ends(\"fulness\")) { r(\"ful\"); break; }\n\t if (ends(\"ousness\")) { r(\"ous\"); break; }\n\t break;\n\t case 't': if (ends(\"aliti\")) { r(\"al\"); break; }\n\t if (ends(\"iviti\")) { r(\"ive\"); break; }\n\t if (ends(\"biliti\")) { r(\"ble\"); break; }\n\t break;\n\t case 'g': if (ends(\"logi\")) { r(\"log\"); break; }\n\t } }", "public T caseStatement(Statement object)\n {\n return null;\n }", "public T caseStatement(Statement object)\n {\n return null;\n }", "public void alg_REQAlg(){\r\nswitch (productIndex.value){\r\ncase 0:\r\r\n\tprice.value=10;\r\r\ncase 1:\t\r\r\n\tprice.value=20;\r\r\ncase 2:\r\r\n\tprice.value=30;\r\r\ndefault:\r\n\tprice.value=1;\r\r\n}\r\n}", "public final void rule__ExprSwitchCase__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10466:1: ( ( 'case' ) )\r\n // InternalGo.g:10467:1: ( 'case' )\r\n {\r\n // InternalGo.g:10467:1: ( 'case' )\r\n // InternalGo.g:10468:2: 'case'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n match(input,81,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Constant resolveCase(BlockScope scope, TypeBinding testType, SwitchStatement switchStatement) {\n resolve(scope);\n return null;\n }", "public final void rule__ExprSwitchStmt__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:10115:1: ( ( 'switch' ) )\r\n // InternalGo.g:10116:1: ( 'switch' )\r\n {\r\n // InternalGo.g:10116:1: ( 'switch' )\r\n // InternalGo.g:10117:2: 'switch'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchStmtAccess().getSwitchKeyword_1()); \r\n }\r\n match(input,80,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchStmtAccess().getSwitchKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case BooleanExpressionsPackage.MODEL:\n {\n Model model = (Model)theEObject;\n T result = caseModel(model);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.OR_EXPRESSION:\n {\n OrExpression orExpression = (OrExpression)theEObject;\n T result = caseOrExpression(orExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.AND_EXPRESSION:\n {\n AndExpression andExpression = (AndExpression)theEObject;\n T result = caseAndExpression(andExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.BASE_EXPRESSION:\n {\n BaseExpression baseExpression = (BaseExpression)theEObject;\n T result = caseBaseExpression(baseExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.BOOLEAN_TERM:\n {\n booleanTerm booleanTerm = (booleanTerm)theEObject;\n T result = casebooleanTerm(booleanTerm);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.TIME_CONSTRAINT:\n {\n TimeConstraint timeConstraint = (TimeConstraint)theEObject;\n T result = caseTimeConstraint(timeConstraint);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.BOOLEAN_VARIABLE:\n {\n BooleanVariable booleanVariable = (BooleanVariable)theEObject;\n T result = caseBooleanVariable(booleanVariable);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.VARIABLE_CONDITION:\n {\n VariableCondition variableCondition = (VariableCondition)theEObject;\n T result = caseVariableCondition(variableCondition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.EXPRESSION:\n {\n EXPRESSION expression = (EXPRESSION)theEObject;\n T result = caseEXPRESSION(expression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.TERM:\n {\n TERM term = (TERM)theEObject;\n T result = caseTERM(term);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case BooleanExpressionsPackage.EVENT:\n {\n Event event = (Event)theEObject;\n T result = caseEvent(event);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public static SwitchExpression switch_(Expression switchValue, SwitchCase[] cases) {\n return switch_(switchValue, null, null, Arrays.asList(cases));\n }", "private void optionsSelect() {\n switch (currentQueNum) {\n case 1:\n ans1Option();\n break;\n case 2:\n ans2Option();\n break;\n case 3:\n ans3Option();\n break;\n case 4:\n ans4Option();\n break;\n case 5:\n ans5Option();\n break;\n case 6:\n ans6Option();\n break;\n case 7:\n ans7Option();\n break;\n case 8:\n ans8Option();\n break;\n case 9:\n ans9Option();\n break;\n case 10:\n ans10Option();\n break;\n }\n }", "public static SwitchExpression switch_(Expression switchValue, Expression defaultBody, Method method, SwitchCase[] cases) {\n return switch_(switchValue, defaultBody, method, Arrays.asList(cases));\n }", "public final void rule__TypeSwitchCase__Alternatives() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:3836:1: ( ( ( rule__TypeSwitchCase__Group_0__0 ) ) | ( ( rule__TypeSwitchCase__Group_1__0 ) ) )\r\n int alt28=2;\r\n int LA28_0 = input.LA(1);\r\n\r\n if ( (LA28_0==81) ) {\r\n alt28=1;\r\n }\r\n else if ( (LA28_0==82) ) {\r\n alt28=2;\r\n }\r\n else {\r\n if (state.backtracking>0) {state.failed=true; return ;}\r\n NoViableAltException nvae =\r\n new NoViableAltException(\"\", 28, 0, input);\r\n\r\n throw nvae;\r\n }\r\n switch (alt28) {\r\n case 1 :\r\n // InternalGo.g:3837:2: ( ( rule__TypeSwitchCase__Group_0__0 ) )\r\n {\r\n // InternalGo.g:3837:2: ( ( rule__TypeSwitchCase__Group_0__0 ) )\r\n // InternalGo.g:3838:3: ( rule__TypeSwitchCase__Group_0__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeSwitchCaseAccess().getGroup_0()); \r\n }\r\n // InternalGo.g:3839:3: ( rule__TypeSwitchCase__Group_0__0 )\r\n // InternalGo.g:3839:4: rule__TypeSwitchCase__Group_0__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__TypeSwitchCase__Group_0__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeSwitchCaseAccess().getGroup_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n case 2 :\r\n // InternalGo.g:3843:2: ( ( rule__TypeSwitchCase__Group_1__0 ) )\r\n {\r\n // InternalGo.g:3843:2: ( ( rule__TypeSwitchCase__Group_1__0 ) )\r\n // InternalGo.g:3844:3: ( rule__TypeSwitchCase__Group_1__0 )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeSwitchCaseAccess().getGroup_1()); \r\n }\r\n // InternalGo.g:3845:3: ( rule__TypeSwitchCase__Group_1__0 )\r\n // InternalGo.g:3845:4: rule__TypeSwitchCase__Group_1__0\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__TypeSwitchCase__Group_1__0();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeSwitchCaseAccess().getGroup_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n break;\r\n\r\n }\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "private int e(String paramString, int paramInt)\r\n/* 628: */ {\r\n/* 629:624 */ int i1 = paramString.length();\r\n/* 630:625 */ int i2 = 0;\r\n/* 631:626 */ int i3 = 0;\r\n/* 632:627 */ int i4 = -1;\r\n/* 633:628 */ int i5 = 0;\r\n/* 634:631 */ for (; i3 < i1; i3++)\r\n/* 635: */ {\r\n/* 636:632 */ char c1 = paramString.charAt(i3);\r\n/* 637:634 */ switch (c1)\r\n/* 638: */ {\r\n/* 639: */ case '§': \r\n/* 640:636 */ if (i3 < i1 - 1)\r\n/* 641: */ {\r\n/* 642:637 */ char c2 = paramString.charAt(++i3);\r\n/* 643:638 */ if ((c2 == 'l') || (c2 == 'L')) {\r\n/* 644:639 */ i5 = 1;\r\n/* 645:640 */ } else if ((c2 == 'r') || (c2 == 'R') || (c(c2))) {\r\n/* 646:641 */ i5 = 0;\r\n/* 647: */ }\r\n/* 648: */ }\r\n/* 649:643 */ break;\r\n/* 650: */ case '\\n': \r\n/* 651:646 */ i3--;\r\n/* 652:647 */ break;\r\n/* 653: */ case ' ': \r\n/* 654:649 */ i4 = i3;\r\n/* 655: */ default: \r\n/* 656:651 */ i2 += a(c1);\r\n/* 657:652 */ if (i5 != 0) {\r\n/* 658:653 */ i2++;\r\n/* 659: */ }\r\n/* 660: */ break;\r\n/* 661: */ }\r\n/* 662:657 */ if (c1 == '\\n')\r\n/* 663: */ {\r\n/* 664:658 */ i3++;i4 = i3;\r\n/* 665: */ }\r\n/* 666: */ else\r\n/* 667: */ {\r\n/* 668:662 */ if (i2 > paramInt) {\r\n/* 669: */ break;\r\n/* 670: */ }\r\n/* 671: */ }\r\n/* 672: */ }\r\n/* 673:667 */ if ((i3 != i1) && (i4 != -1) && (i4 < i3)) {\r\n/* 674:668 */ return i4;\r\n/* 675: */ }\r\n/* 676:670 */ return i3;\r\n/* 677: */ }", "private final void step4() { switch (b[k])\n\t {\n\t case 'e': if (ends(\"icate\")) { r(\"ic\"); break; }\n\t if (ends(\"ative\")) { r(\"\"); break; }\n\t if (ends(\"alize\")) { r(\"al\"); break; }\n\t break;\n\t case 'i': if (ends(\"iciti\")) { r(\"ic\"); break; }\n\t break;\n\t case 'l': if (ends(\"ical\")) { r(\"ic\"); break; }\n\t if (ends(\"ful\")) { r(\"\"); break; }\n\t break;\n\t case 's': if (ends(\"ness\")) { r(\"\"); break; }\n\t break;\n\t } }", "@Override\r\n protected T doSwitch(int classifierID, EObject theEObject)\r\n {\r\n switch (classifierID)\r\n {\r\n case ConditionModelPackage.OPERATION_COMPARE:\r\n {\r\n Operation_Compare operation_Compare = (Operation_Compare)theEObject;\r\n T result = caseOperation_Compare(operation_Compare);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.UNARY_OPERATION:\r\n {\r\n Unary_Operation unary_Operation = (Unary_Operation)theEObject;\r\n T result = caseUnary_Operation(unary_Operation);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION:\r\n {\r\n Operation operation = (Operation)theEObject;\r\n T result = caseOperation(operation);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION:\r\n {\r\n Expression expression = (Expression)theEObject;\r\n T result = caseExpression(expression);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION_DOUBLE:\r\n {\r\n Expression_Double expression_Double = (Expression_Double)theEObject;\r\n T result = caseExpression_Double(expression_Double);\r\n if (result == null) result = caseExpression(expression_Double);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION_INTEGER:\r\n {\r\n Expression_Integer expression_Integer = (Expression_Integer)theEObject;\r\n T result = caseExpression_Integer(expression_Integer);\r\n if (result == null) result = caseExpression(expression_Integer);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION_STRING:\r\n {\r\n Expression_String expression_String = (Expression_String)theEObject;\r\n T result = caseExpression_String(expression_String);\r\n if (result == null) result = caseExpression(expression_String);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION_PROCESS_REF:\r\n {\r\n Expression_ProcessRef expression_ProcessRef = (Expression_ProcessRef)theEObject;\r\n T result = caseExpression_ProcessRef(expression_ProcessRef);\r\n if (result == null) result = caseExpression(expression_ProcessRef);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.EXPRESSION_BOOLEAN:\r\n {\r\n Expression_Boolean expression_Boolean = (Expression_Boolean)theEObject;\r\n T result = caseExpression_Boolean(expression_Boolean);\r\n if (result == null) result = caseExpression(expression_Boolean);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_LESS_EQUALS:\r\n {\r\n Operation_Less_Equals operation_Less_Equals = (Operation_Less_Equals)theEObject;\r\n T result = caseOperation_Less_Equals(operation_Less_Equals);\r\n if (result == null) result = caseOperation(operation_Less_Equals);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_LESS:\r\n {\r\n Operation_Less operation_Less = (Operation_Less)theEObject;\r\n T result = caseOperation_Less(operation_Less);\r\n if (result == null) result = caseOperation(operation_Less);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_GREATER_EQUALS:\r\n {\r\n Operation_Greater_Equals operation_Greater_Equals = (Operation_Greater_Equals)theEObject;\r\n T result = caseOperation_Greater_Equals(operation_Greater_Equals);\r\n if (result == null) result = caseOperation(operation_Greater_Equals);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_GREATER:\r\n {\r\n Operation_Greater operation_Greater = (Operation_Greater)theEObject;\r\n T result = caseOperation_Greater(operation_Greater);\r\n if (result == null) result = caseOperation(operation_Greater);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_NOT_EQUALS:\r\n {\r\n Operation_Not_Equals operation_Not_Equals = (Operation_Not_Equals)theEObject;\r\n T result = caseOperation_Not_Equals(operation_Not_Equals);\r\n if (result == null) result = caseOperation(operation_Not_Equals);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_EQUALS:\r\n {\r\n Operation_Equals operation_Equals = (Operation_Equals)theEObject;\r\n T result = caseOperation_Equals(operation_Equals);\r\n if (result == null) result = caseOperation(operation_Equals);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_UNARY:\r\n {\r\n Operation_Unary operation_Unary = (Operation_Unary)theEObject;\r\n T result = caseOperation_Unary(operation_Unary);\r\n if (result == null) result = caseUnary_Operation(operation_Unary);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case ConditionModelPackage.OPERATION_NOT_UNARY:\r\n {\r\n Operation_NotUnary operation_NotUnary = (Operation_NotUnary)theEObject;\r\n T result = caseOperation_NotUnary(operation_NotUnary);\r\n if (result == null) result = caseUnary_Operation(operation_NotUnary);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n default: return defaultCase(theEObject);\r\n }\r\n }", "default void interactWith(PressureSwitch pressureSwitch) {\n\t}", "@Override\n\tprotected T1 doSwitch(int classifierID, EObject theEObject) {\n\t\tswitch (classifierID) {\n\t\t\tcase CommonPackage.NAME_PROVIDER: {\n\t\t\t\tNameProvider nameProvider = (NameProvider)theEObject;\n\t\t\t\tT1 result = caseNameProvider(nameProvider);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase CommonPackage.MAPPING_ENTRY: {\n\t\t\t\tMappingEntry<?> mappingEntry = (MappingEntry<?>)theEObject;\n\t\t\t\tT1 result = caseMappingEntry(mappingEntry);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase CommonPackage.STRING_TO_TABLE_MAPPING_ENTRY_MAP: {\n\t\t\t\t@SuppressWarnings(\"unchecked\") Map.Entry<String, MappingEntry<Table>> stringToTableMappingEntryMap = (Map.Entry<String, MappingEntry<Table>>)theEObject;\n\t\t\t\tT1 result = caseStringToTableMappingEntryMap(stringToTableMappingEntryMap);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase CommonPackage.STRING_TO_COLUMN_MAPPING_ENTRY_MAP: {\n\t\t\t\t@SuppressWarnings(\"unchecked\") Map.Entry<String, MappingEntry<Column>> stringToColumnMappingEntryMap = (Map.Entry<String, MappingEntry<Column>>)theEObject;\n\t\t\t\tT1 result = caseStringToColumnMappingEntryMap(stringToColumnMappingEntryMap);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase CommonPackage.TABLE_MAPPING: {\n\t\t\t\tTableMapping tableMapping = (TableMapping)theEObject;\n\t\t\t\tT1 result = caseTableMapping(tableMapping);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tcase CommonPackage.COLUMN_MAPPING: {\n\t\t\t\tColumnMapping columnMapping = (ColumnMapping)theEObject;\n\t\t\t\tT1 result = caseColumnMapping(columnMapping);\n\t\t\t\tif (result == null) result = defaultCase(theEObject);\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\tdefault: return defaultCase(theEObject);\n\t\t}\n\t}", "protected abstract void switchOnCustom();", "@Override\r\n\tprotected T doSwitch(int classifierID, EObject theEObject) {\r\n switch (classifierID)\r\n {\r\n case OclPackage.OCL_EXPRESSION_CS:\r\n {\r\n OclExpressionCS oclExpressionCS = (OclExpressionCS)theEObject;\r\n T result = caseOclExpressionCS(oclExpressionCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.BRACKET_EXP_CS:\r\n {\r\n BracketExpCS bracketExpCS = (BracketExpCS)theEObject;\r\n T result = caseBracketExpCS(bracketExpCS);\r\n if (result == null) result = caseOclExpressionCS(bracketExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.NAMED_LITERAL_EXP_CS:\r\n {\r\n NamedLiteralExpCS namedLiteralExpCS = (NamedLiteralExpCS)theEObject;\r\n T result = caseNamedLiteralExpCS(namedLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(namedLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PATH_NAME_CS:\r\n {\r\n PathNameCS pathNameCS = (PathNameCS)theEObject;\r\n T result = casePathNameCS(pathNameCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.SIMPLE_NAME_CS:\r\n {\r\n SimpleNameCS simpleNameCS = (SimpleNameCS)theEObject;\r\n T result = caseSimpleNameCS(simpleNameCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TYPE_CS:\r\n {\r\n TypeCS typeCS = (TypeCS)theEObject;\r\n T result = caseTypeCS(typeCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TYPE_PATH_NAME_CS:\r\n {\r\n TypePathNameCS typePathNameCS = (TypePathNameCS)theEObject;\r\n T result = caseTypePathNameCS(typePathNameCS);\r\n if (result == null) result = caseTypeCS(typePathNameCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TYPE_PATH_NAME_SIMPLE_CS:\r\n {\r\n TypePathNameSimpleCS typePathNameSimpleCS = (TypePathNameSimpleCS)theEObject;\r\n T result = caseTypePathNameSimpleCS(typePathNameSimpleCS);\r\n if (result == null) result = caseTypePathNameCS(typePathNameSimpleCS);\r\n if (result == null) result = caseTypeCS(typePathNameSimpleCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TYPE_PATH_NAME_NESTED_CS:\r\n {\r\n TypePathNameNestedCS typePathNameNestedCS = (TypePathNameNestedCS)theEObject;\r\n T result = caseTypePathNameNestedCS(typePathNameNestedCS);\r\n if (result == null) result = caseTypePathNameCS(typePathNameNestedCS);\r\n if (result == null) result = caseTypeCS(typePathNameNestedCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TUPLE_TYPE_CS:\r\n {\r\n TupleTypeCS tupleTypeCS = (TupleTypeCS)theEObject;\r\n T result = caseTupleTypeCS(tupleTypeCS);\r\n if (result == null) result = caseTypeCS(tupleTypeCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_TYPE_LITERAL_EXP_CS:\r\n {\r\n CollectionTypeLiteralExpCS collectionTypeLiteralExpCS = (CollectionTypeLiteralExpCS)theEObject;\r\n T result = caseCollectionTypeLiteralExpCS(collectionTypeLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(collectionTypeLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(collectionTypeLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TUPLE_TYPE_LITERAL_EXP_CS:\r\n {\r\n TupleTypeLiteralExpCS tupleTypeLiteralExpCS = (TupleTypeLiteralExpCS)theEObject;\r\n T result = caseTupleTypeLiteralExpCS(tupleTypeLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(tupleTypeLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(tupleTypeLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.VARIABLE_DECLARATION_CS:\r\n {\r\n VariableDeclarationCS variableDeclarationCS = (VariableDeclarationCS)theEObject;\r\n T result = caseVariableDeclarationCS(variableDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.VARIABLE_DECLARATION_WITH_INIT_CS:\r\n {\r\n VariableDeclarationWithInitCS variableDeclarationWithInitCS = (VariableDeclarationWithInitCS)theEObject;\r\n T result = caseVariableDeclarationWithInitCS(variableDeclarationWithInitCS);\r\n if (result == null) result = caseVariableDeclarationCS(variableDeclarationWithInitCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.VARIABLE_DECLARATION_WITHOUT_INIT_CS:\r\n {\r\n VariableDeclarationWithoutInitCS variableDeclarationWithoutInitCS = (VariableDeclarationWithoutInitCS)theEObject;\r\n T result = caseVariableDeclarationWithoutInitCS(variableDeclarationWithoutInitCS);\r\n if (result == null) result = caseVariableDeclarationCS(variableDeclarationWithoutInitCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.VARIABLE_DECLARATION_WITH_INIT_LIST_CS:\r\n {\r\n VariableDeclarationWithInitListCS variableDeclarationWithInitListCS = (VariableDeclarationWithInitListCS)theEObject;\r\n T result = caseVariableDeclarationWithInitListCS(variableDeclarationWithInitListCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.VARIABLE_DECLARATION_WITHOUT_INIT_LIST_CS:\r\n {\r\n VariableDeclarationWithoutInitListCS variableDeclarationWithoutInitListCS = (VariableDeclarationWithoutInitListCS)theEObject;\r\n T result = caseVariableDeclarationWithoutInitListCS(variableDeclarationWithoutInitListCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LITERAL_EXP_CS:\r\n {\r\n LiteralExpCS literalExpCS = (LiteralExpCS)theEObject;\r\n T result = caseLiteralExpCS(literalExpCS);\r\n if (result == null) result = caseOclExpressionCS(literalExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ENUM_LITERAL_OR_STATIC_PROPERTY_EXP_CS:\r\n {\r\n EnumLiteralOrStaticPropertyExpCS enumLiteralOrStaticPropertyExpCS = (EnumLiteralOrStaticPropertyExpCS)theEObject;\r\n T result = caseEnumLiteralOrStaticPropertyExpCS(enumLiteralOrStaticPropertyExpCS);\r\n if (result == null) result = caseLiteralExpCS(enumLiteralOrStaticPropertyExpCS);\r\n if (result == null) result = caseOclExpressionCS(enumLiteralOrStaticPropertyExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_LITERAL_EXP_CS:\r\n {\r\n CollectionLiteralExpCS collectionLiteralExpCS = (CollectionLiteralExpCS)theEObject;\r\n T result = caseCollectionLiteralExpCS(collectionLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(collectionLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(collectionLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_TYPE_IDENTIFIER_CS:\r\n {\r\n CollectionTypeIdentifierCS collectionTypeIdentifierCS = (CollectionTypeIdentifierCS)theEObject;\r\n T result = caseCollectionTypeIdentifierCS(collectionTypeIdentifierCS);\r\n if (result == null) result = caseTypeCS(collectionTypeIdentifierCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_LITERAL_PARTS_CS:\r\n {\r\n CollectionLiteralPartsCS collectionLiteralPartsCS = (CollectionLiteralPartsCS)theEObject;\r\n T result = caseCollectionLiteralPartsCS(collectionLiteralPartsCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_LITERAL_PARTS_OCL_EXP_CS:\r\n {\r\n CollectionLiteralPartsOclExpCS collectionLiteralPartsOclExpCS = (CollectionLiteralPartsOclExpCS)theEObject;\r\n T result = caseCollectionLiteralPartsOclExpCS(collectionLiteralPartsOclExpCS);\r\n if (result == null) result = caseCollectionLiteralPartsCS(collectionLiteralPartsOclExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.COLLECTION_RANGE_CS:\r\n {\r\n CollectionRangeCS collectionRangeCS = (CollectionRangeCS)theEObject;\r\n T result = caseCollectionRangeCS(collectionRangeCS);\r\n if (result == null) result = caseCollectionLiteralPartsCS(collectionRangeCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.CALL_EXP_CS:\r\n {\r\n CallExpCS callExpCS = (CallExpCS)theEObject;\r\n T result = caseCallExpCS(callExpCS);\r\n if (result == null) result = caseOclExpressionCS(callExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOOP_EXP_CS:\r\n {\r\n LoopExpCS loopExpCS = (LoopExpCS)theEObject;\r\n T result = caseLoopExpCS(loopExpCS);\r\n if (result == null) result = caseCallExpCS(loopExpCS);\r\n if (result == null) result = caseOclExpressionCS(loopExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ITERATOR_EXP_VARIABLE_CS:\r\n {\r\n IteratorExpVariableCS iteratorExpVariableCS = (IteratorExpVariableCS)theEObject;\r\n T result = caseIteratorExpVariableCS(iteratorExpVariableCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ITERATOR_EXP_CS:\r\n {\r\n IteratorExpCS iteratorExpCS = (IteratorExpCS)theEObject;\r\n T result = caseIteratorExpCS(iteratorExpCS);\r\n if (result == null) result = caseLoopExpCS(iteratorExpCS);\r\n if (result == null) result = caseImplicitFeatureCallCS(iteratorExpCS);\r\n if (result == null) result = caseCallExpCS(iteratorExpCS);\r\n if (result == null) result = caseOclExpressionCS(iteratorExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ITERATE_EXP_CS:\r\n {\r\n IterateExpCS iterateExpCS = (IterateExpCS)theEObject;\r\n T result = caseIterateExpCS(iterateExpCS);\r\n if (result == null) result = caseLoopExpCS(iterateExpCS);\r\n if (result == null) result = caseImplicitFeatureCallCS(iterateExpCS);\r\n if (result == null) result = caseCallExpCS(iterateExpCS);\r\n if (result == null) result = caseOclExpressionCS(iterateExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.FEATURE_CALL_EXP_CS:\r\n {\r\n FeatureCallExpCS featureCallExpCS = (FeatureCallExpCS)theEObject;\r\n T result = caseFeatureCallExpCS(featureCallExpCS);\r\n if (result == null) result = caseCallExpCS(featureCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(featureCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.NAVIGATION_CALL_EXP:\r\n {\r\n NavigationCallExp navigationCallExp = (NavigationCallExp)theEObject;\r\n T result = caseNavigationCallExp(navigationCallExp);\r\n if (result == null) result = caseFeatureCallExpCS(navigationCallExp);\r\n if (result == null) result = caseCallExpCS(navigationCallExp);\r\n if (result == null) result = caseOclExpressionCS(navigationCallExp);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_BASE_EXP_CS:\r\n {\r\n OperationCallBaseExpCS operationCallBaseExpCS = (OperationCallBaseExpCS)theEObject;\r\n T result = caseOperationCallBaseExpCS(operationCallBaseExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PROPERTY_CALL_BASE_EXP_CS:\r\n {\r\n PropertyCallBaseExpCS propertyCallBaseExpCS = (PropertyCallBaseExpCS)theEObject;\r\n T result = casePropertyCallBaseExpCS(propertyCallBaseExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.IMPLICIT_FEATURE_CALL_CS:\r\n {\r\n ImplicitFeatureCallCS implicitFeatureCallCS = (ImplicitFeatureCallCS)theEObject;\r\n T result = caseImplicitFeatureCallCS(implicitFeatureCallCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.IMPLICIT_PROPERTY_CALL_CS:\r\n {\r\n ImplicitPropertyCallCS implicitPropertyCallCS = (ImplicitPropertyCallCS)theEObject;\r\n T result = caseImplicitPropertyCallCS(implicitPropertyCallCS);\r\n if (result == null) result = caseImplicitFeatureCallCS(implicitPropertyCallCS);\r\n if (result == null) result = casePropertyCallBaseExpCS(implicitPropertyCallCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.IMPLICIT_OPERATION_CALL_CS:\r\n {\r\n ImplicitOperationCallCS implicitOperationCallCS = (ImplicitOperationCallCS)theEObject;\r\n T result = caseImplicitOperationCallCS(implicitOperationCallCS);\r\n if (result == null) result = caseImplicitFeatureCallCS(implicitOperationCallCS);\r\n if (result == null) result = caseOperationCallBaseExpCS(implicitOperationCallCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PROPERTY_CALL_EXP_CS:\r\n {\r\n PropertyCallExpCS propertyCallExpCS = (PropertyCallExpCS)theEObject;\r\n T result = casePropertyCallExpCS(propertyCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(propertyCallExpCS);\r\n if (result == null) result = caseCallExpCS(propertyCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(propertyCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PROPERTY_CALL_ON_SELF_EXP_CS:\r\n {\r\n PropertyCallOnSelfExpCS propertyCallOnSelfExpCS = (PropertyCallOnSelfExpCS)theEObject;\r\n T result = casePropertyCallOnSelfExpCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = casePropertyCallExpCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = casePropertyCallBaseExpCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = caseCallExpCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = caseOclExpressionCS(propertyCallOnSelfExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PROPERTY_CALL_EXPLICIT_PATH_EXP_CS:\r\n {\r\n PropertyCallExplicitPathExpCS propertyCallExplicitPathExpCS = (PropertyCallExplicitPathExpCS)theEObject;\r\n T result = casePropertyCallExplicitPathExpCS(propertyCallExplicitPathExpCS);\r\n if (result == null) result = casePropertyCallExpCS(propertyCallExplicitPathExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(propertyCallExplicitPathExpCS);\r\n if (result == null) result = caseCallExpCS(propertyCallExplicitPathExpCS);\r\n if (result == null) result = caseOclExpressionCS(propertyCallExplicitPathExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_EXP_CS:\r\n {\r\n OperationCallExpCS operationCallExpCS = (OperationCallExpCS)theEObject;\r\n T result = caseOperationCallExpCS(operationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(operationCallExpCS);\r\n if (result == null) result = caseCallExpCS(operationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(operationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_ON_SELF_EXP_CS:\r\n {\r\n OperationCallOnSelfExpCS operationCallOnSelfExpCS = (OperationCallOnSelfExpCS)theEObject;\r\n T result = caseOperationCallOnSelfExpCS(operationCallOnSelfExpCS);\r\n if (result == null) result = caseOperationCallExpCS(operationCallOnSelfExpCS);\r\n if (result == null) result = caseOperationCallBaseExpCS(operationCallOnSelfExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(operationCallOnSelfExpCS);\r\n if (result == null) result = caseCallExpCS(operationCallOnSelfExpCS);\r\n if (result == null) result = caseOclExpressionCS(operationCallOnSelfExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.STATIC_OPERATION_CALL_EXP_CS:\r\n {\r\n StaticOperationCallExpCS staticOperationCallExpCS = (StaticOperationCallExpCS)theEObject;\r\n T result = caseStaticOperationCallExpCS(staticOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(staticOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(staticOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(staticOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(staticOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.UNARY_OPERATION_CALL_EXP_CS:\r\n {\r\n UnaryOperationCallExpCS unaryOperationCallExpCS = (UnaryOperationCallExpCS)theEObject;\r\n T result = caseUnaryOperationCallExpCS(unaryOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(unaryOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(unaryOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(unaryOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(unaryOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOGICAL_NOT_OPERATION_CALL_EXP_CS:\r\n {\r\n LogicalNotOperationCallExpCS logicalNotOperationCallExpCS = (LogicalNotOperationCallExpCS)theEObject;\r\n T result = caseLogicalNotOperationCallExpCS(logicalNotOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(logicalNotOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(logicalNotOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(logicalNotOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(logicalNotOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_WITH_SOURCE_EXP_CS:\r\n {\r\n OperationCallWithSourceExpCS operationCallWithSourceExpCS = (OperationCallWithSourceExpCS)theEObject;\r\n T result = caseOperationCallWithSourceExpCS(operationCallWithSourceExpCS);\r\n if (result == null) result = caseOperationCallExpCS(operationCallWithSourceExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(operationCallWithSourceExpCS);\r\n if (result == null) result = caseCallExpCS(operationCallWithSourceExpCS);\r\n if (result == null) result = caseOclExpressionCS(operationCallWithSourceExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_BINARY_EXP_CS:\r\n {\r\n OperationCallBinaryExpCS operationCallBinaryExpCS = (OperationCallBinaryExpCS)theEObject;\r\n T result = caseOperationCallBinaryExpCS(operationCallBinaryExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(operationCallBinaryExpCS);\r\n if (result == null) result = caseOperationCallExpCS(operationCallBinaryExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(operationCallBinaryExpCS);\r\n if (result == null) result = caseCallExpCS(operationCallBinaryExpCS);\r\n if (result == null) result = caseOclExpressionCS(operationCallBinaryExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ADDITIVE_OPERATION_CALL_EXP_CS:\r\n {\r\n AdditiveOperationCallExpCS additiveOperationCallExpCS = (AdditiveOperationCallExpCS)theEObject;\r\n T result = caseAdditiveOperationCallExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(additiveOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(additiveOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.MULT_OPERATION_CALL_EXP_CS:\r\n {\r\n MultOperationCallExpCS multOperationCallExpCS = (MultOperationCallExpCS)theEObject;\r\n T result = caseMultOperationCallExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(multOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(multOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.RELATIONAL_OPERATION_CALL_EXP_CS:\r\n {\r\n RelationalOperationCallExpCS relationalOperationCallExpCS = (RelationalOperationCallExpCS)theEObject;\r\n T result = caseRelationalOperationCallExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(relationalOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(relationalOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.EQUALITY_OPERATION_CALL_EXP_CS:\r\n {\r\n EqualityOperationCallExpCS equalityOperationCallExpCS = (EqualityOperationCallExpCS)theEObject;\r\n T result = caseEqualityOperationCallExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(equalityOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(equalityOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOGICAL_AND_OPERATION_CALL_EXP_CS:\r\n {\r\n LogicalAndOperationCallExpCS logicalAndOperationCallExpCS = (LogicalAndOperationCallExpCS)theEObject;\r\n T result = caseLogicalAndOperationCallExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(logicalAndOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOGICAL_OR_OPERATION_CALL_EXP_CS:\r\n {\r\n LogicalOrOperationCallExpCS logicalOrOperationCallExpCS = (LogicalOrOperationCallExpCS)theEObject;\r\n T result = caseLogicalOrOperationCallExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(logicalOrOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOGICAL_XOR_OPERATION_CALL_EXP_CS:\r\n {\r\n LogicalXorOperationCallExpCS logicalXorOperationCallExpCS = (LogicalXorOperationCallExpCS)theEObject;\r\n T result = caseLogicalXorOperationCallExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(logicalXorOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LOGICAL_IMPLIES_OPERATION_CALL_EXP_CS:\r\n {\r\n LogicalImpliesOperationCallExpCS logicalImpliesOperationCallExpCS = (LogicalImpliesOperationCallExpCS)theEObject;\r\n T result = caseLogicalImpliesOperationCallExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseOperationCallBinaryExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseOperationCallWithSourceExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseOperationCallExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseCallExpCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = caseOclExpressionCS(logicalImpliesOperationCallExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CALL_WITH_IMLICIT_SOURCE_EXP_CS:\r\n {\r\n OperationCallWithImlicitSourceExpCS operationCallWithImlicitSourceExpCS = (OperationCallWithImlicitSourceExpCS)theEObject;\r\n T result = caseOperationCallWithImlicitSourceExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseOperationCallOnSelfExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseOperationCallExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseOperationCallBaseExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseFeatureCallExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseCallExpCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = caseOclExpressionCS(operationCallWithImlicitSourceExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.TUPLE_LITERAL_EXP_CS:\r\n {\r\n TupleLiteralExpCS tupleLiteralExpCS = (TupleLiteralExpCS)theEObject;\r\n T result = caseTupleLiteralExpCS(tupleLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(tupleLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(tupleLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PRIMITIVE_LITERAL_EXP_CS:\r\n {\r\n PrimitiveLiteralExpCS primitiveLiteralExpCS = (PrimitiveLiteralExpCS)theEObject;\r\n T result = casePrimitiveLiteralExpCS(primitiveLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(primitiveLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(primitiveLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INTEGER_LITERAL_EXP_CS:\r\n {\r\n IntegerLiteralExpCS integerLiteralExpCS = (IntegerLiteralExpCS)theEObject;\r\n T result = caseIntegerLiteralExpCS(integerLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(integerLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(integerLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(integerLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.REAL_LITERAL_EXP_CS:\r\n {\r\n RealLiteralExpCS realLiteralExpCS = (RealLiteralExpCS)theEObject;\r\n T result = caseRealLiteralExpCS(realLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(realLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(realLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(realLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.BOOLEAN_LITERAL_EXP_CS:\r\n {\r\n BooleanLiteralExpCS booleanLiteralExpCS = (BooleanLiteralExpCS)theEObject;\r\n T result = caseBooleanLiteralExpCS(booleanLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(booleanLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(booleanLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(booleanLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.STRING_LITERAL_EXP_CS:\r\n {\r\n StringLiteralExpCS stringLiteralExpCS = (StringLiteralExpCS)theEObject;\r\n T result = caseStringLiteralExpCS(stringLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(stringLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(stringLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(stringLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INVALID_LITERAL_EXP_CS:\r\n {\r\n InvalidLiteralExpCS invalidLiteralExpCS = (InvalidLiteralExpCS)theEObject;\r\n T result = caseInvalidLiteralExpCS(invalidLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(invalidLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(invalidLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(invalidLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.NULL_LITERAL_EXP_CS:\r\n {\r\n NullLiteralExpCS nullLiteralExpCS = (NullLiteralExpCS)theEObject;\r\n T result = caseNullLiteralExpCS(nullLiteralExpCS);\r\n if (result == null) result = casePrimitiveLiteralExpCS(nullLiteralExpCS);\r\n if (result == null) result = caseLiteralExpCS(nullLiteralExpCS);\r\n if (result == null) result = caseOclExpressionCS(nullLiteralExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.LET_EXP_CS:\r\n {\r\n LetExpCS letExpCS = (LetExpCS)theEObject;\r\n T result = caseLetExpCS(letExpCS);\r\n if (result == null) result = caseOclExpressionCS(letExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.IF_EXP_CS:\r\n {\r\n IfExpCS ifExpCS = (IfExpCS)theEObject;\r\n T result = caseIfExpCS(ifExpCS);\r\n if (result == null) result = caseOclExpressionCS(ifExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PACKAGE_DECLARATION_CS:\r\n {\r\n PackageDeclarationCS packageDeclarationCS = (PackageDeclarationCS)theEObject;\r\n T result = casePackageDeclarationCS(packageDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PACKAGE_DECLARATION_WITH_NAMESPACE_CS:\r\n {\r\n PackageDeclarationWithNamespaceCS packageDeclarationWithNamespaceCS = (PackageDeclarationWithNamespaceCS)theEObject;\r\n T result = casePackageDeclarationWithNamespaceCS(packageDeclarationWithNamespaceCS);\r\n if (result == null) result = casePackageDeclarationCS(packageDeclarationWithNamespaceCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PACKAGE_DECLARATION_NESTED_NAMESPACE_CS:\r\n {\r\n PackageDeclarationNestedNamespaceCS packageDeclarationNestedNamespaceCS = (PackageDeclarationNestedNamespaceCS)theEObject;\r\n T result = casePackageDeclarationNestedNamespaceCS(packageDeclarationNestedNamespaceCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PACKAGE_DECLARATION_WITHOUT_NAMESPACE_CS:\r\n {\r\n PackageDeclarationWithoutNamespaceCS packageDeclarationWithoutNamespaceCS = (PackageDeclarationWithoutNamespaceCS)theEObject;\r\n T result = casePackageDeclarationWithoutNamespaceCS(packageDeclarationWithoutNamespaceCS);\r\n if (result == null) result = casePackageDeclarationCS(packageDeclarationWithoutNamespaceCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.CONTEXT_DECLARATION_CS:\r\n {\r\n ContextDeclarationCS contextDeclarationCS = (ContextDeclarationCS)theEObject;\r\n T result = caseContextDeclarationCS(contextDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.ATTRIBUTE_CONTEXT_DECLARATION_CS:\r\n {\r\n AttributeContextDeclarationCS attributeContextDeclarationCS = (AttributeContextDeclarationCS)theEObject;\r\n T result = caseAttributeContextDeclarationCS(attributeContextDeclarationCS);\r\n if (result == null) result = caseContextDeclarationCS(attributeContextDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.CLASSIFIER_CONTEXT_DECLARATION_CS:\r\n {\r\n ClassifierContextDeclarationCS classifierContextDeclarationCS = (ClassifierContextDeclarationCS)theEObject;\r\n T result = caseClassifierContextDeclarationCS(classifierContextDeclarationCS);\r\n if (result == null) result = caseContextDeclarationCS(classifierContextDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_CONTEXT_DECLARATION_CS:\r\n {\r\n OperationContextDeclarationCS operationContextDeclarationCS = (OperationContextDeclarationCS)theEObject;\r\n T result = caseOperationContextDeclarationCS(operationContextDeclarationCS);\r\n if (result == null) result = caseContextDeclarationCS(operationContextDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INIT_OR_DERIVE_VALUE_CS:\r\n {\r\n InitOrDeriveValueCS initOrDeriveValueCS = (InitOrDeriveValueCS)theEObject;\r\n T result = caseInitOrDeriveValueCS(initOrDeriveValueCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INIT_VALUE_CS:\r\n {\r\n InitValueCS initValueCS = (InitValueCS)theEObject;\r\n T result = caseInitValueCS(initValueCS);\r\n if (result == null) result = caseInitOrDeriveValueCS(initValueCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.DERIVE_VALUE_CS:\r\n {\r\n DeriveValueCS deriveValueCS = (DeriveValueCS)theEObject;\r\n T result = caseDeriveValueCS(deriveValueCS);\r\n if (result == null) result = caseInitOrDeriveValueCS(deriveValueCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INVARIANT_OR_DEFINITION_CS:\r\n {\r\n InvariantOrDefinitionCS invariantOrDefinitionCS = (InvariantOrDefinitionCS)theEObject;\r\n T result = caseInvariantOrDefinitionCS(invariantOrDefinitionCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.INVARIANT_EXP_CS:\r\n {\r\n InvariantExpCS invariantExpCS = (InvariantExpCS)theEObject;\r\n T result = caseInvariantExpCS(invariantExpCS);\r\n if (result == null) result = caseInvariantOrDefinitionCS(invariantExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.DEFINITION_EXP_CS:\r\n {\r\n DefinitionExpCS definitionExpCS = (DefinitionExpCS)theEObject;\r\n T result = caseDefinitionExpCS(definitionExpCS);\r\n if (result == null) result = caseInvariantOrDefinitionCS(definitionExpCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.DEFINITION_EXP_PART_CS:\r\n {\r\n DefinitionExpPartCS definitionExpPartCS = (DefinitionExpPartCS)theEObject;\r\n T result = caseDefinitionExpPartCS(definitionExpPartCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.DEFINITION_EXP_PROPERTY_CS:\r\n {\r\n DefinitionExpPropertyCS definitionExpPropertyCS = (DefinitionExpPropertyCS)theEObject;\r\n T result = caseDefinitionExpPropertyCS(definitionExpPropertyCS);\r\n if (result == null) result = caseDefinitionExpPartCS(definitionExpPropertyCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.DEFINITION_EXP_OPERATION_CS:\r\n {\r\n DefinitionExpOperationCS definitionExpOperationCS = (DefinitionExpOperationCS)theEObject;\r\n T result = caseDefinitionExpOperationCS(definitionExpOperationCS);\r\n if (result == null) result = caseDefinitionExpPartCS(definitionExpOperationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PRE_POST_OR_BODY_DECLARATION_CS:\r\n {\r\n PrePostOrBodyDeclarationCS prePostOrBodyDeclarationCS = (PrePostOrBodyDeclarationCS)theEObject;\r\n T result = casePrePostOrBodyDeclarationCS(prePostOrBodyDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PRE_CONDITION_DECLARATION_CS:\r\n {\r\n PreConditionDeclarationCS preConditionDeclarationCS = (PreConditionDeclarationCS)theEObject;\r\n T result = casePreConditionDeclarationCS(preConditionDeclarationCS);\r\n if (result == null) result = casePrePostOrBodyDeclarationCS(preConditionDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.POST_CONDITION_DECLARATION_CS:\r\n {\r\n PostConditionDeclarationCS postConditionDeclarationCS = (PostConditionDeclarationCS)theEObject;\r\n T result = casePostConditionDeclarationCS(postConditionDeclarationCS);\r\n if (result == null) result = casePrePostOrBodyDeclarationCS(postConditionDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.BODY_DECLARATION_CS:\r\n {\r\n BodyDeclarationCS bodyDeclarationCS = (BodyDeclarationCS)theEObject;\r\n T result = caseBodyDeclarationCS(bodyDeclarationCS);\r\n if (result == null) result = casePrePostOrBodyDeclarationCS(bodyDeclarationCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_DEFINITION_CS:\r\n {\r\n OperationDefinitionCS operationDefinitionCS = (OperationDefinitionCS)theEObject;\r\n T result = caseOperationDefinitionCS(operationDefinitionCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_DEFINITION_IN_CONTEXT_CS:\r\n {\r\n OperationDefinitionInContextCS operationDefinitionInContextCS = (OperationDefinitionInContextCS)theEObject;\r\n T result = caseOperationDefinitionInContextCS(operationDefinitionInContextCS);\r\n if (result == null) result = caseOperationDefinitionCS(operationDefinitionInContextCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.OPERATION_DEFINITION_IN_DEF_CS:\r\n {\r\n OperationDefinitionInDefCS operationDefinitionInDefCS = (OperationDefinitionInDefCS)theEObject;\r\n T result = caseOperationDefinitionInDefCS(operationDefinitionInDefCS);\r\n if (result == null) result = caseOperationDefinitionCS(operationDefinitionInDefCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case OclPackage.PARAMETER_CS:\r\n {\r\n ParameterCS parameterCS = (ParameterCS)theEObject;\r\n T result = caseParameterCS(parameterCS);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n default: return defaultCase(theEObject);\r\n }\r\n }", "private static String getSwitchCaseMapping(String windowName2) {\n\r\n\t\tString switchcase = \"\";\r\n\t\tVector<WindowTableModelMapping> maps = getMapColumns(windowName2);\r\n\t\tfor (int i = 0; i < maps.size(); i++) {\r\n\t\t\tWindowTableModelMapping mp = maps.get(i);\r\n\t\t\tswitchcase = switchcase + \" case \" + i + \":\\n\";\r\n\t\t\tswitchcase = switchcase + \"value = \" + windowName2.toLowerCase()\r\n\t\t\t\t\t+ \".get\" + mp.getMethodName() + \"();\\n break; \\n\";\r\n\r\n\t\t}\r\n\t\treturn switchcase;\r\n\t}", "private void registerCaseOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n assert (op instanceof SqlCaseOperator);\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n SqlNodeList whenList = new SqlNodeList(SqlParserPos.ZERO);\n SqlNodeList thenList = new SqlNodeList(SqlParserPos.ZERO);\n int i = 0;\n while (i < operands.length - 1) {\n whenList.add(operands[i]);\n ++i;\n thenList.add(operands[i]);\n ++i;\n }\n SqlNode elseExpr = operands[i];\n SqlNode [] newOperands = new SqlNode[3];\n newOperands[0] = whenList;\n newOperands[1] = thenList;\n newOperands[2] = elseExpr;\n return op.createCall(null, SqlParserPos.ZERO, newOperands);\n }\n });\n }", "public static boolean SwitchCaseClause(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"SwitchCaseClause\")) return false;\n if (!nextTokenIs(b, K_CASE)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = SwitchCaseClause_0(b, l + 1);\n r = r && SwitchReturnClause(b, l + 1);\n exit_section_(b, m, SWITCH_CASE_CLAUSE, r);\n return r;\n }", "public void switchDisplayable (Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch\n // write pre-switch user code here\nDisplay display = getDisplay ();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch\nif (alert == null) {\ndisplay.setCurrent (nextDisplayable);\n} else {\ndisplay.setCurrent (alert, nextDisplayable);\n}//GEN-END:|5-switchDisplayable|1|5-postSwitch\n // write post-switch user code here\n}", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case EventcalculusPackage.MODEL:\n {\n Model model = (Model)theEObject;\n T result = caseModel(model);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.IMPORT:\n {\n Import import_ = (Import)theEObject;\n T result = caseImport(import_);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ANNOTATION:\n {\n Annotation annotation = (Annotation)theEObject;\n T result = caseAnnotation(annotation);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DECLARATION:\n {\n Declaration declaration = (Declaration)theEObject;\n T result = caseDeclaration(declaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEFINES:\n {\n Defines defines = (Defines)theEObject;\n T result = caseDefines(defines);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_SORT:\n {\n DefSort defSort = (DefSort)theEObject;\n T result = caseDefSort(defSort);\n if (result == null) result = caseDeclaration(defSort);\n if (result == null) result = caseDefines(defSort);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_RANGE:\n {\n DefRange defRange = (DefRange)theEObject;\n T result = caseDefRange(defRange);\n if (result == null) result = caseDeclaration(defRange);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_OPTION:\n {\n DefOption defOption = (DefOption)theEObject;\n T result = caseDefOption(defOption);\n if (result == null) result = caseDeclaration(defOption);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_COMPLETION:\n {\n DefCompletion defCompletion = (DefCompletion)theEObject;\n T result = caseDefCompletion(defCompletion);\n if (result == null) result = caseDeclaration(defCompletion);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_NON_INERTIA:\n {\n DefNonInertia defNonInertia = (DefNonInertia)theEObject;\n T result = caseDefNonInertia(defNonInertia);\n if (result == null) result = caseDeclaration(defNonInertia);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_XOR:\n {\n DefXor defXor = (DefXor)theEObject;\n T result = caseDefXor(defXor);\n if (result == null) result = caseDeclaration(defXor);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEF_MUTEX:\n {\n DefMutex defMutex = (DefMutex)theEObject;\n T result = caseDefMutex(defMutex);\n if (result == null) result = caseDeclaration(defMutex);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.STATEMENT:\n {\n Statement statement = (Statement)theEObject;\n T result = caseStatement(statement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.LABELED_EXPRESSION:\n {\n LabeledExpression labeledExpression = (LabeledExpression)theEObject;\n T result = caseLabeledExpression(labeledExpression);\n if (result == null) result = caseStatement(labeledExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.SORT_DEFINITION:\n {\n SortDefinition sortDefinition = (SortDefinition)theEObject;\n T result = caseSortDefinition(sortDefinition);\n if (result == null) result = caseStatement(sortDefinition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DEFINITION:\n {\n Definition definition = (Definition)theEObject;\n T result = caseDefinition(definition);\n if (result == null) result = caseDefines(definition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.EXPRESSION:\n {\n Expression expression = (Expression)theEObject;\n T result = caseExpression(expression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.QUALIFIER:\n {\n Qualifier qualifier = (Qualifier)theEObject;\n T result = caseQualifier(qualifier);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.PARAMETERS:\n {\n Parameters parameters = (Parameters)theEObject;\n T result = caseParameters(parameters);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.TERMINAL_EXPRESSION:\n {\n TerminalExpression terminalExpression = (TerminalExpression)theEObject;\n T result = caseTerminalExpression(terminalExpression);\n if (result == null) result = caseExpression(terminalExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ASSIGN_PLUS:\n {\n AssignPlus assignPlus = (AssignPlus)theEObject;\n T result = caseAssignPlus(assignPlus);\n if (result == null) result = caseExpression(assignPlus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.ASSIGN_MIN:\n {\n AssignMin assignMin = (AssignMin)theEObject;\n T result = caseAssignMin(assignMin);\n if (result == null) result = caseExpression(assignMin);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.OR:\n {\n Or or = (Or)theEObject;\n T result = caseOr(or);\n if (result == null) result = caseExpression(or);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.AND:\n {\n And and = (And)theEObject;\n T result = caseAnd(and);\n if (result == null) result = caseExpression(and);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_NOT_EQ:\n {\n RelNotEq relNotEq = (RelNotEq)theEObject;\n T result = caseRelNotEq(relNotEq);\n if (result == null) result = caseExpression(relNotEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_EQ_EQ:\n {\n RelEqEq relEqEq = (RelEqEq)theEObject;\n T result = caseRelEqEq(relEqEq);\n if (result == null) result = caseExpression(relEqEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_LT_EQ:\n {\n RelLtEq relLtEq = (RelLtEq)theEObject;\n T result = caseRelLtEq(relLtEq);\n if (result == null) result = caseExpression(relLtEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_GT_EQ:\n {\n RelGtEq relGtEq = (RelGtEq)theEObject;\n T result = caseRelGtEq(relGtEq);\n if (result == null) result = caseExpression(relGtEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_EQ:\n {\n RelEq relEq = (RelEq)theEObject;\n T result = caseRelEq(relEq);\n if (result == null) result = caseExpression(relEq);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_LT:\n {\n RelLt relLt = (RelLt)theEObject;\n T result = caseRelLt(relLt);\n if (result == null) result = caseExpression(relLt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.REL_GT:\n {\n RelGt relGt = (RelGt)theEObject;\n T result = caseRelGt(relGt);\n if (result == null) result = caseExpression(relGt);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.PLUS:\n {\n Plus plus = (Plus)theEObject;\n T result = casePlus(plus);\n if (result == null) result = caseExpression(plus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.MINUS:\n {\n Minus minus = (Minus)theEObject;\n T result = caseMinus(minus);\n if (result == null) result = caseExpression(minus);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.MULTI:\n {\n Multi multi = (Multi)theEObject;\n T result = caseMulti(multi);\n if (result == null) result = caseExpression(multi);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.DIV:\n {\n Div div = (Div)theEObject;\n T result = caseDiv(div);\n if (result == null) result = caseExpression(div);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.POW:\n {\n Pow pow = (Pow)theEObject;\n T result = casePow(pow);\n if (result == null) result = caseExpression(pow);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.FUNCTION_REF:\n {\n FunctionRef functionRef = (FunctionRef)theEObject;\n T result = caseFunctionRef(functionRef);\n if (result == null) result = caseExpression(functionRef);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.INT_LITERAL:\n {\n IntLiteral intLiteral = (IntLiteral)theEObject;\n T result = caseIntLiteral(intLiteral);\n if (result == null) result = caseTerminalExpression(intLiteral);\n if (result == null) result = caseExpression(intLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.STRING_LITERAL:\n {\n StringLiteral stringLiteral = (StringLiteral)theEObject;\n T result = caseStringLiteral(stringLiteral);\n if (result == null) result = caseTerminalExpression(stringLiteral);\n if (result == null) result = caseExpression(stringLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case EventcalculusPackage.BOOLEAN_LITERAL:\n {\n BooleanLiteral booleanLiteral = (BooleanLiteral)theEObject;\n T result = caseBooleanLiteral(booleanLiteral);\n if (result == null) result = caseTerminalExpression(booleanLiteral);\n if (result == null) result = caseExpression(booleanLiteral);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case CustomPrologPackage.MODEL:\n {\n Model model = (Model)theEObject;\n T result = caseModel(model);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.PROLOGDSL:\n {\n Prologdsl prologdsl = (Prologdsl)theEObject;\n T result = casePrologdsl(prologdsl);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.PROGRAM:\n {\n Program program = (Program)theEObject;\n T result = caseProgram(program);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.EXQUERY:\n {\n Exquery exquery = (Exquery)theEObject;\n T result = caseExquery(exquery);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.QUERY:\n {\n Query query = (Query)theEObject;\n T result = caseQuery(query);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.CLAUSE:\n {\n Clause clause = (Clause)theEObject;\n T result = caseClause(clause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.FACT:\n {\n Fact fact = (Fact)theEObject;\n T result = caseFact(fact);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.RULE:\n {\n Rule rule = (Rule)theEObject;\n T result = caseRule(rule);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.PREDICATE:\n {\n Predicate predicate = (Predicate)theEObject;\n T result = casePredicate(predicate);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.FUNCTOR:\n {\n Functor functor = (Functor)theEObject;\n T result = caseFunctor(functor);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.TERM:\n {\n Term term = (Term)theEObject;\n T result = caseTerm(term);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.ATOM:\n {\n Atom atom = (Atom)theEObject;\n T result = caseAtom(atom);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.LIST:\n {\n List list = (List)theEObject;\n T result = caseList(list);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.NON_EMPTY_LIST:\n {\n NonEmptyList nonEmptyList = (NonEmptyList)theEObject;\n T result = caseNonEmptyList(nonEmptyList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case CustomPrologPackage.FOLGE:\n {\n Folge folge = (Folge)theEObject;\n T result = caseFolge(folge);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public final EObject ruleSwitchCase() throws RecognitionException {\n EObject current = null;\n\n EObject lv_caseExpression_1_0 = null;\n\n EObject lv_resultExpression_3_0 = null;\n\n\n EObject temp=null; setCurrentLookahead(); resetLookahead(); \n \n try {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3041:6: ( ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:1: ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:1: ( 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3042:3: 'case' ( (lv_caseExpression_1_0= ruleImpliesExpression ) ) ':' ( (lv_resultExpression_3_0= ruleExpression ) )\n {\n match(input,47,FOLLOW_47_in_ruleSwitchCase5245); \n\n createLeafNode(grammarAccess.getSwitchCaseAccess().getCaseKeyword_0(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3046:1: ( (lv_caseExpression_1_0= ruleImpliesExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3047:1: (lv_caseExpression_1_0= ruleImpliesExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3047:1: (lv_caseExpression_1_0= ruleImpliesExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3048:3: lv_caseExpression_1_0= ruleImpliesExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getSwitchCaseAccess().getCaseExpressionImpliesExpressionParserRuleCall_1_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleImpliesExpression_in_ruleSwitchCase5266);\n lv_caseExpression_1_0=ruleImpliesExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getSwitchCaseRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"caseExpression\",\n \t \t\tlv_caseExpression_1_0, \n \t \t\t\"ImpliesExpression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n match(input,20,FOLLOW_20_in_ruleSwitchCase5276); \n\n createLeafNode(grammarAccess.getSwitchCaseAccess().getColonKeyword_2(), null); \n \n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3074:1: ( (lv_resultExpression_3_0= ruleExpression ) )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3075:1: (lv_resultExpression_3_0= ruleExpression )\n {\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3075:1: (lv_resultExpression_3_0= ruleExpression )\n // ../org.eclipselabs.mscript.language/src-gen/org/eclipselabs/mscript/language/parser/antlr/internal/InternalMscript.g:3076:3: lv_resultExpression_3_0= ruleExpression\n {\n \n \t currentNode=createCompositeNode(grammarAccess.getSwitchCaseAccess().getResultExpressionExpressionParserRuleCall_3_0(), currentNode); \n \t \n pushFollow(FOLLOW_ruleExpression_in_ruleSwitchCase5297);\n lv_resultExpression_3_0=ruleExpression();\n _fsp--;\n\n\n \t if (current==null) {\n \t current = factory.create(grammarAccess.getSwitchCaseRule().getType().getClassifier());\n \t associateNodeWithAstElement(currentNode.getParent(), current);\n \t }\n \t try {\n \t \t\tset(\n \t \t\t\tcurrent, \n \t \t\t\t\"resultExpression\",\n \t \t\tlv_resultExpression_3_0, \n \t \t\t\"Expression\", \n \t \t\tcurrentNode);\n \t } catch (ValueConverterException vce) {\n \t\t\t\thandleValueConverterException(vce);\n \t }\n \t currentNode = currentNode.getParent();\n \t \n\n }\n\n\n }\n\n\n }\n\n\n }\n\n resetLookahead(); \n \tlastConsumedNode = currentNode;\n \n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "public switch_analyzer(switch_construct the_switch_action) {\n super(the_switch_action);\n expression = make(the_switch_action.expression);\n\n clauses = new base_list<case_clause>();\n for (int i = 0; i < the_switch_action.clauses.size(); ++i) {\n case_clause_construct the_construct = the_switch_action.clauses.get(i);\n list<analyzable> case_values = new base_list<analyzable>();\n boolean is_default = false;\n for (int j = 0; j < the_construct.cases.size(); ++j) {\n construct the_case_construct = the_construct.cases.get(j);\n if (the_case_construct instanceof empty_construct) {\n is_default = true;\n } else {\n case_values.append(make(the_case_construct));\n }\n }\n analyzable body = new list_analyzer(make_list(the_construct.body), the_construct);\n clauses.append(new case_clause(case_values, is_default, body));\n }\n }", "@Override\r\n protected T doSwitch(int classifierID, EObject theEObject)\r\n {\r\n switch (classifierID)\r\n {\r\n case MOMoTPackage.MO_MO_TSEARCH:\r\n {\r\n MOMoTSearch moMoTSearch = (MOMoTSearch)theEObject;\r\n T result = caseMOMoTSearch(moMoTSearch);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.VARIABLE_DECLARATION:\r\n {\r\n VariableDeclaration variableDeclaration = (VariableDeclaration)theEObject;\r\n T result = caseVariableDeclaration(variableDeclaration);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.TRANSFORMATION_ORCHESTRATION:\r\n {\r\n TransformationOrchestration transformationOrchestration = (TransformationOrchestration)theEObject;\r\n T result = caseTransformationOrchestration(transformationOrchestration);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.PARMETER_VALUE_SPECIFICATION:\r\n {\r\n ParmeterValueSpecification parmeterValueSpecification = (ParmeterValueSpecification)theEObject;\r\n T result = caseParmeterValueSpecification(parmeterValueSpecification);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.SEARCH_ORCHESTRATION:\r\n {\r\n SearchOrchestration searchOrchestration = (SearchOrchestration)theEObject;\r\n T result = caseSearchOrchestration(searchOrchestration);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.EQUALITY_HELPER:\r\n {\r\n EqualityHelper equalityHelper = (EqualityHelper)theEObject;\r\n T result = caseEqualityHelper(equalityHelper);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ALGORITHM_LIST:\r\n {\r\n AlgorithmList algorithmList = (AlgorithmList)theEObject;\r\n T result = caseAlgorithmList(algorithmList);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.FITNESS_FUNCTION_SPECIFICATION:\r\n {\r\n FitnessFunctionSpecification fitnessFunctionSpecification = (FitnessFunctionSpecification)theEObject;\r\n T result = caseFitnessFunctionSpecification(fitnessFunctionSpecification);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.FITNESS_DIMENSION_SPECIFICATION:\r\n {\r\n FitnessDimensionSpecification fitnessDimensionSpecification = (FitnessDimensionSpecification)theEObject;\r\n T result = caseFitnessDimensionSpecification(fitnessDimensionSpecification);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.FITNESS_DIMENSION_CONSTRUCTOR:\r\n {\r\n FitnessDimensionConstructor fitnessDimensionConstructor = (FitnessDimensionConstructor)theEObject;\r\n T result = caseFitnessDimensionConstructor(fitnessDimensionConstructor);\r\n if (result == null) result = caseFitnessDimensionSpecification(fitnessDimensionConstructor);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.FITNESS_DIMENSION_XBASE:\r\n {\r\n FitnessDimensionXBase fitnessDimensionXBase = (FitnessDimensionXBase)theEObject;\r\n T result = caseFitnessDimensionXBase(fitnessDimensionXBase);\r\n if (result == null) result = caseFitnessDimensionSpecification(fitnessDimensionXBase);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.FITNESS_DIMENSION_OCL:\r\n {\r\n FitnessDimensionOCL fitnessDimensionOCL = (FitnessDimensionOCL)theEObject;\r\n T result = caseFitnessDimensionOCL(fitnessDimensionOCL);\r\n if (result == null) result = caseFitnessDimensionSpecification(fitnessDimensionOCL);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.DEF_EXPRESSION:\r\n {\r\n DefExpression defExpression = (DefExpression)theEObject;\r\n T result = caseDefExpression(defExpression);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ALGORITHM_SPECIFICATION:\r\n {\r\n AlgorithmSpecification algorithmSpecification = (AlgorithmSpecification)theEObject;\r\n T result = caseAlgorithmSpecification(algorithmSpecification);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.EXPERIMENT_ORCHESTRATION:\r\n {\r\n ExperimentOrchestration experimentOrchestration = (ExperimentOrchestration)theEObject;\r\n T result = caseExperimentOrchestration(experimentOrchestration);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.COLLECTOR_ARRAY:\r\n {\r\n CollectorArray collectorArray = (CollectorArray)theEObject;\r\n T result = caseCollectorArray(collectorArray);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ANALYSIS_ORCHESTRATION:\r\n {\r\n AnalysisOrchestration analysisOrchestration = (AnalysisOrchestration)theEObject;\r\n T result = caseAnalysisOrchestration(analysisOrchestration);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ANALYSIS_GROUP_LIST:\r\n {\r\n AnalysisGroupList analysisGroupList = (AnalysisGroupList)theEObject;\r\n T result = caseAnalysisGroupList(analysisGroupList);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.INDICATOR_ARRAY:\r\n {\r\n IndicatorArray indicatorArray = (IndicatorArray)theEObject;\r\n T result = caseIndicatorArray(indicatorArray);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.SHOW_ARRAY:\r\n {\r\n ShowArray showArray = (ShowArray)theEObject;\r\n T result = caseShowArray(showArray);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ANALYSIS_GROUP_SPECIFICATION:\r\n {\r\n AnalysisGroupSpecification analysisGroupSpecification = (AnalysisGroupSpecification)theEObject;\r\n T result = caseAnalysisGroupSpecification(analysisGroupSpecification);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.ALGORITHM_REFERENCES:\r\n {\r\n AlgorithmReferences algorithmReferences = (AlgorithmReferences)theEObject;\r\n T result = caseAlgorithmReferences(algorithmReferences);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.RESULT_MANAGEMENT:\r\n {\r\n ResultManagement resultManagement = (ResultManagement)theEObject;\r\n T result = caseResultManagement(resultManagement);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.SAVE_ANALYSIS_COMMAND:\r\n {\r\n SaveAnalysisCommand saveAnalysisCommand = (SaveAnalysisCommand)theEObject;\r\n T result = caseSaveAnalysisCommand(saveAnalysisCommand);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.SAVE_OBJECTIVES_COMMAND:\r\n {\r\n SaveObjectivesCommand saveObjectivesCommand = (SaveObjectivesCommand)theEObject;\r\n T result = caseSaveObjectivesCommand(saveObjectivesCommand);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.SAVE_SOLUTIONS_COMMAND:\r\n {\r\n SaveSolutionsCommand saveSolutionsCommand = (SaveSolutionsCommand)theEObject;\r\n T result = caseSaveSolutionsCommand(saveSolutionsCommand);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.PRINT_OBJECTIVES_COMMAND:\r\n {\r\n PrintObjectivesCommand printObjectivesCommand = (PrintObjectivesCommand)theEObject;\r\n T result = casePrintObjectivesCommand(printObjectivesCommand);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n case MOMoTPackage.PRINT_SOLUTIONS_COMMAND:\r\n {\r\n PrintSolutionsCommand printSolutionsCommand = (PrintSolutionsCommand)theEObject;\r\n T result = casePrintSolutionsCommand(printSolutionsCommand);\r\n if (result == null) result = defaultCase(theEObject);\r\n return result;\r\n }\r\n default: return defaultCase(theEObject);\r\n }\r\n }", "@Override\n protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case OptimizationPackage.OPTIMIZATION_MODEL:\n {\n Optimization_Model optimization_Model = (Optimization_Model)theEObject;\n T result = caseOptimization_Model(optimization_Model);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPTIMIZATION:\n {\n EOptimization eOptimization = (EOptimization)theEObject;\n T result = caseEOptimization(eOptimization);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPTIMIZATION_CASES:\n {\n EOptimizationCases eOptimizationCases = (EOptimizationCases)theEObject;\n T result = caseEOptimizationCases(eOptimizationCases);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING_CASE:\n {\n EAITrainingCase eaiTrainingCase = (EAITrainingCase)theEObject;\n T result = caseEAITrainingCase(eaiTrainingCase);\n if (result == null) result = caseEOptimizationCases(eaiTrainingCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EHPC_CASE:\n {\n EHPCCase ehpcCase = (EHPCCase)theEObject;\n T result = caseEHPCCase(ehpcCase);\n if (result == null) result = caseEOptimizationCases(ehpcCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPT_BUILD:\n {\n EOptBuild eOptBuild = (EOptBuild)theEObject;\n T result = caseEOptBuild(eOptBuild);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAUTOTUNING:\n {\n EAutotuning eAutotuning = (EAutotuning)theEObject;\n T result = caseEAutotuning(eAutotuning);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING:\n {\n EAITraining eaiTraining = (EAITraining)theEObject;\n T result = caseEAITraining(eaiTraining);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING_CASES:\n {\n EAITrainingCases eaiTrainingCases = (EAITrainingCases)theEObject;\n T result = caseEAITrainingCases(eaiTrainingCases);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EPY_TORCH_CASE:\n {\n EPyTorchCase ePyTorchCase = (EPyTorchCase)theEObject;\n T result = caseEPyTorchCase(ePyTorchCase);\n if (result == null) result = caseEAITrainingCases(ePyTorchCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.ETENSOR_FLOW_CASE:\n {\n ETensorFlowCase eTensorFlowCase = (ETensorFlowCase)theEObject;\n T result = caseETensorFlowCase(eTensorFlowCase);\n if (result == null) result = caseEAITrainingCases(eTensorFlowCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EKERAS_CASE:\n {\n EKerasCase eKerasCase = (EKerasCase)theEObject;\n T result = caseEKerasCase(eKerasCase);\n if (result == null) result = caseEAITrainingCases(eKerasCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING_CONFIG:\n {\n EAITrainingConfig eaiTrainingConfig = (EAITrainingConfig)theEObject;\n T result = caseEAITrainingConfig(eaiTrainingConfig);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING_DATA:\n {\n EAITrainingData eaiTrainingData = (EAITrainingData)theEObject;\n T result = caseEAITrainingData(eaiTrainingData);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EAI_TRAINING_ETL:\n {\n EAITrainingETL eaiTrainingETL = (EAITrainingETL)theEObject;\n T result = caseEAITrainingETL(eaiTrainingETL);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EKERAS:\n {\n EKeras eKeras = (EKeras)theEObject;\n T result = caseEKeras(eKeras);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.ETENSOR_FLOW:\n {\n ETensorFlow eTensorFlow = (ETensorFlow)theEObject;\n T result = caseETensorFlow(eTensorFlow);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EPY_TORCH:\n {\n EPyTorch ePyTorch = (EPyTorch)theEObject;\n T result = caseEPyTorch(ePyTorch);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EHPC:\n {\n EHPC ehpc = (EHPC)theEObject;\n T result = caseEHPC(ehpc);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENCL_CASE:\n {\n EOPENCLCase eopenclCase = (EOPENCLCase)theEObject;\n T result = caseEOPENCLCase(eopenclCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENACC_CASE:\n {\n EOPENACCCase eopenaccCase = (EOPENACCCase)theEObject;\n T result = caseEOPENACCCase(eopenaccCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENMP_CASE:\n {\n EOPENMPCase eopenmpCase = (EOPENMPCase)theEObject;\n T result = caseEOPENMPCase(eopenmpCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EMPI_CASE:\n {\n EMPICase empiCase = (EMPICase)theEObject;\n T result = caseEMPICase(empiCase);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EHPC_CONFIG:\n {\n EHPCConfig ehpcConfig = (EHPCConfig)theEObject;\n T result = caseEHPCConfig(ehpcConfig);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EHPC_DATA:\n {\n EHPCData ehpcData = (EHPCData)theEObject;\n T result = caseEHPCData(ehpcData);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EHPCETL:\n {\n EHPCETL ehpcetl = (EHPCETL)theEObject;\n T result = caseEHPCETL(ehpcetl);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EMPI:\n {\n EMPI empi = (EMPI)theEObject;\n T result = caseEMPI(empi);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENMP:\n {\n EOPENMP eopenmp = (EOPENMP)theEObject;\n T result = caseEOPENMP(eopenmp);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENACC:\n {\n EOPENACC eopenacc = (EOPENACC)theEObject;\n T result = caseEOPENACC(eopenacc);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case OptimizationPackage.EOPENCL:\n {\n EOPENCL eopencl = (EOPENCL)theEObject;\n T result = caseEOPENCL(eopencl);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public void fourOption(String selection)\n {\n switch (selection)\n {\n case \"1\":\n registerplayerName(); break;\n case \"2\": \n if (getPlayerName().equals(\"\"))\n {\n System.out.println(\"Sorry, you must register a name first\");\n registerplayerName();\n }\n else \n {\n System.out.println(\"Game will Start!\");\n \n }\n break;\n case \"3\":\n helpMenu();break;\n case \"4\":\n System.out.println(\"to exist\"); break;\n default:\n System.out.println(\"Invalid input\"); break;\n }\n }", "public abstract void setSwitchType(String switchType);", "@Override\n\tpublic void visit(SwitchStatement n) {\n\t\tcfgNode = n;\n\t}", "private void parseOpt(Node node) {\r\n if (switchTest) return;\r\n int saveIn = in;\r\n parse(node.left());\r\n if (! ok && in == saveIn) ok = true;\r\n }", "int main()\n{\n int x;\n float y;\n cin>>x>>y;\n switch(x)\n {\n case 1:\n break;\n case 2:\n y= (y*0.5)+y;\n cout<<y;\n break;\n case 3:\n y= y*2;\n cout<<y;\n break;\n default: \n cout<<\"Number of items is more\";\n break;\n }\n}", "@Override\n\tpublic void visit(SwitchStmt switchstmt, List<Breakpoints> collector) {\n\t\tsuper.visit(switchstmt, collector);\n\t\t\n\t\t// check if any of the switch cases is not empty (omit comments and case arguments) \n\t\tboolean doChildrenExist = switchstmt.getEntries().stream()\n\t\t\t.map(e -> e.getChildNodes().stream()\n\t\t\t\t\t.filter(c -> !Comment.class.isAssignableFrom(c.getClass()))\n\t\t\t\t\t.filter(c -> c.getClass() != CharLiteralExpr.class)\n\t\t\t\t\t.filter(c -> c.getClass() != BooleanLiteralExpr.class)\n\t\t\t\t\t.filter(c -> c.getClass() != IntegerLiteralExpr.class)\n\t\t\t\t\t.findAny()\n\t\t\t\t\t.isPresent()\n\t\t\t\t\t)\n\t\t\t.anyMatch(b -> b == true);\n\n\t\t// if all cases are empty, add the switch statement's features to the collector\n\t\tif(!doChildrenExist) visitHelper(switchstmt, collector); \n\t}", "public final void entryRuleExprSwitchCase() throws RecognitionException {\r\n try {\r\n // InternalGo.g:1930:1: ( ruleExprSwitchCase EOF )\r\n // InternalGo.g:1931:1: ruleExprSwitchCase EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleExprSwitchCase();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "protected T doSwitch(int classifierID, EObject theEObject)\n {\n switch (classifierID)\n {\n case MDDPackage.DATA_DEFINITION:\n {\n DataDefinition dataDefinition = (DataDefinition)theEObject;\n T result = caseDataDefinition(dataDefinition);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.DECLARATION:\n {\n Declaration declaration = (Declaration)theEObject;\n T result = caseDeclaration(declaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_DECLARATION:\n {\n FieldDeclaration fieldDeclaration = (FieldDeclaration)theEObject;\n T result = caseFieldDeclaration(fieldDeclaration);\n if (result == null) result = caseDeclaration(fieldDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.MODIFIERS:\n {\n Modifiers modifiers = (Modifiers)theEObject;\n T result = caseModifiers(modifiers);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_TYPE:\n {\n FieldType fieldType = (FieldType)theEObject;\n T result = caseFieldType(fieldType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.INT_ENUM:\n {\n IntEnum intEnum = (IntEnum)theEObject;\n T result = caseIntEnum(intEnum);\n if (result == null) result = caseFieldType(intEnum);\n if (result == null) result = caseFunctionArgumentBody(intEnum);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CHAR_ENUM:\n {\n CharEnum charEnum = (CharEnum)theEObject;\n T result = caseCharEnum(charEnum);\n if (result == null) result = caseFieldType(charEnum);\n if (result == null) result = caseFunctionArgumentBody(charEnum);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ENUM_VALUE:\n {\n EnumValue enumValue = (EnumValue)theEObject;\n T result = caseEnumValue(enumValue);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CHAR_TYPE:\n {\n CharType charType = (CharType)theEObject;\n T result = caseCharType(charType);\n if (result == null) result = caseFieldType(charType);\n if (result == null) result = caseFunctionArgumentBody(charType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.POINTER_TYPE:\n {\n PointerType pointerType = (PointerType)theEObject;\n T result = casePointerType(pointerType);\n if (result == null) result = caseFieldType(pointerType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SET_TYPE:\n {\n SetType setType = (SetType)theEObject;\n T result = caseSetType(setType);\n if (result == null) result = caseFieldType(setType);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SUB_FIELD_DECLARATION:\n {\n SubFieldDeclaration subFieldDeclaration = (SubFieldDeclaration)theEObject;\n T result = caseSubFieldDeclaration(subFieldDeclaration);\n if (result == null) result = caseDeclaration(subFieldDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.TITLE_DECLARATION:\n {\n TitleDeclaration titleDeclaration = (TitleDeclaration)theEObject;\n T result = caseTitleDeclaration(titleDeclaration);\n if (result == null) result = caseDeclaration(titleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.INCLUDE_DECLARATION:\n {\n IncludeDeclaration includeDeclaration = (IncludeDeclaration)theEObject;\n T result = caseIncludeDeclaration(includeDeclaration);\n if (result == null) result = caseDeclaration(includeDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.TYPE_DECLARATION:\n {\n TypeDeclaration typeDeclaration = (TypeDeclaration)theEObject;\n T result = caseTypeDeclaration(typeDeclaration);\n if (result == null) result = caseDeclaration(typeDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.VALIDATION_RULE_DECLARATION:\n {\n ValidationRuleDeclaration validationRuleDeclaration = (ValidationRuleDeclaration)theEObject;\n T result = caseValidationRuleDeclaration(validationRuleDeclaration);\n if (result == null) result = caseDeclaration(validationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_VALIDATION_RULE_DECLARATION:\n {\n ComparisonValidationRuleDeclaration comparisonValidationRuleDeclaration = (ComparisonValidationRuleDeclaration)theEObject;\n T result = caseComparisonValidationRuleDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(comparisonValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_EXPRESSION:\n {\n ComparisonExpression comparisonExpression = (ComparisonExpression)theEObject;\n T result = caseComparisonExpression(comparisonExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPARISON_PART:\n {\n ComparisonPart comparisonPart = (ComparisonPart)theEObject;\n T result = caseComparisonPart(comparisonPart);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UPPER_FUNCTION:\n {\n UpperFunction upperFunction = (UpperFunction)theEObject;\n T result = caseUpperFunction(upperFunction);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOWER_FUNCTION:\n {\n LowerFunction lowerFunction = (LowerFunction)theEObject;\n T result = caseLowerFunction(lowerFunction);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RANGE_VALIDATION_RULE_DECLARATION:\n {\n RangeValidationRuleDeclaration rangeValidationRuleDeclaration = (RangeValidationRuleDeclaration)theEObject;\n T result = caseRangeValidationRuleDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(rangeValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.REGEX_VALIDATION_RULE_DECLARATION:\n {\n RegexValidationRuleDeclaration regexValidationRuleDeclaration = (RegexValidationRuleDeclaration)theEObject;\n T result = caseRegexValidationRuleDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(regexValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RANGE:\n {\n Range range = (Range)theEObject;\n T result = caseRange(range);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNIQUENESS_VALIDATION_RULE_DECLARATION:\n {\n UniquenessValidationRuleDeclaration uniquenessValidationRuleDeclaration = (UniquenessValidationRuleDeclaration)theEObject;\n T result = caseUniquenessValidationRuleDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = caseValidationRuleDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(uniquenessValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ERROR_MESSAGE:\n {\n ErrorMessage errorMessage = (ErrorMessage)theEObject;\n T result = caseErrorMessage(errorMessage);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NATIVE_VALIDATION_RULE_DECLARATION:\n {\n NativeValidationRuleDeclaration nativeValidationRuleDeclaration = (NativeValidationRuleDeclaration)theEObject;\n T result = caseNativeValidationRuleDeclaration(nativeValidationRuleDeclaration);\n if (result == null) result = caseDeclaration(nativeValidationRuleDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_DECLARATION:\n {\n FunctionDeclaration functionDeclaration = (FunctionDeclaration)theEObject;\n T result = caseFunctionDeclaration(functionDeclaration);\n if (result == null) result = caseDeclaration(functionDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENT_DECLARATION:\n {\n FunctionArgumentDeclaration functionArgumentDeclaration = (FunctionArgumentDeclaration)theEObject;\n T result = caseFunctionArgumentDeclaration(functionArgumentDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENT_BODY:\n {\n FunctionArgumentBody functionArgumentBody = (FunctionArgumentBody)theEObject;\n T result = caseFunctionArgumentBody(functionArgumentBody);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_CALL:\n {\n FunctionCall functionCall = (FunctionCall)theEObject;\n T result = caseFunctionCall(functionCall);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_PATH:\n {\n FieldPath fieldPath = (FieldPath)theEObject;\n T result = caseFieldPath(fieldPath);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FIELD_REFERENCE:\n {\n FieldReference fieldReference = (FieldReference)theEObject;\n T result = caseFieldReference(fieldReference);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_ARGUMENTS:\n {\n FunctionArguments functionArguments = (FunctionArguments)theEObject;\n T result = caseFunctionArguments(functionArguments);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FUNCTION_BODY:\n {\n FunctionBody functionBody = (FunctionBody)theEObject;\n T result = caseFunctionBody(functionBody);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.STATEMENT:\n {\n Statement statement = (Statement)theEObject;\n T result = caseStatement(statement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNION_RULE:\n {\n UnionRule unionRule = (UnionRule)theEObject;\n T result = caseUnionRule(unionRule);\n if (result == null) result = casePrimaryExpression(unionRule);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.QUERY_RULE:\n {\n QueryRule queryRule = (QueryRule)theEObject;\n T result = caseQueryRule(queryRule);\n if (result == null) result = caseStatement(queryRule);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECT_FROM:\n {\n SelectFrom selectFrom = (SelectFrom)theEObject;\n T result = caseSelectFrom(selectFrom);\n if (result == null) result = caseQueryRule(selectFrom);\n if (result == null) result = caseStatement(selectFrom);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECT_CLAUSE:\n {\n SelectClause selectClause = (SelectClause)theEObject;\n T result = caseSelectClause(selectClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NEW_EXPRESSION:\n {\n NewExpression newExpression = (NewExpression)theEObject;\n T result = caseNewExpression(newExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_CLAUSE:\n {\n FromClause fromClause = (FromClause)theEObject;\n T result = caseFromClause(fromClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_JOIN:\n {\n FromJoin fromJoin = (FromJoin)theEObject;\n T result = caseFromJoin(fromJoin);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WITH_CLAUSE:\n {\n WithClause withClause = (WithClause)theEObject;\n T result = caseWithClause(withClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_RANGE:\n {\n FromRange fromRange = (FromRange)theEObject;\n T result = caseFromRange(fromRange);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.FROM_CLASS_OR_OUTER_QUERY_PATH:\n {\n FromClassOrOuterQueryPath fromClassOrOuterQueryPath = (FromClassOrOuterQueryPath)theEObject;\n T result = caseFromClassOrOuterQueryPath(fromClassOrOuterQueryPath);\n if (result == null) result = caseFromJoin(fromClassOrOuterQueryPath);\n if (result == null) result = caseFromRange(fromClassOrOuterQueryPath);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.IN_COLLECTION_ELEMENTS_DECLARATION:\n {\n InCollectionElementsDeclaration inCollectionElementsDeclaration = (InCollectionElementsDeclaration)theEObject;\n T result = caseInCollectionElementsDeclaration(inCollectionElementsDeclaration);\n if (result == null) result = caseFromRange(inCollectionElementsDeclaration);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.GROUP_BY_CLAUSE:\n {\n GroupByClause groupByClause = (GroupByClause)theEObject;\n T result = caseGroupByClause(groupByClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ORDER_BY_CLAUSE:\n {\n OrderByClause orderByClause = (OrderByClause)theEObject;\n T result = caseOrderByClause(orderByClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ORDER_ELEMENT:\n {\n OrderElement orderElement = (OrderElement)theEObject;\n T result = caseOrderElement(orderElement);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.HAVING_CLAUSE:\n {\n HavingClause havingClause = (HavingClause)theEObject;\n T result = caseHavingClause(havingClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WHERE_CLAUSE:\n {\n WhereClause whereClause = (WhereClause)theEObject;\n T result = caseWhereClause(whereClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.SELECTED_PROPERTIES_LIST:\n {\n SelectedPropertiesList selectedPropertiesList = (SelectedPropertiesList)theEObject;\n T result = caseSelectedPropertiesList(selectedPropertiesList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ALIASED_EXPRESSION:\n {\n AliasedExpression aliasedExpression = (AliasedExpression)theEObject;\n T result = caseAliasedExpression(aliasedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPRESSION:\n {\n Expression expression = (Expression)theEObject;\n T result = caseExpression(expression);\n if (result == null) result = caseOrderElement(expression);\n if (result == null) result = caseAliasedExpression(expression);\n if (result == null) result = caseExpressionOrVector(expression);\n if (result == null) result = casePrimaryExpression(expression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOGICAL_OR_EXPRESSION:\n {\n LogicalOrExpression logicalOrExpression = (LogicalOrExpression)theEObject;\n T result = caseLogicalOrExpression(logicalOrExpression);\n if (result == null) result = caseExpression(logicalOrExpression);\n if (result == null) result = caseOrderElement(logicalOrExpression);\n if (result == null) result = caseAliasedExpression(logicalOrExpression);\n if (result == null) result = caseExpressionOrVector(logicalOrExpression);\n if (result == null) result = casePrimaryExpression(logicalOrExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LOGICAL_AND_EXPRESSION:\n {\n LogicalAndExpression logicalAndExpression = (LogicalAndExpression)theEObject;\n T result = caseLogicalAndExpression(logicalAndExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.NEGATED_EXPRESSION:\n {\n NegatedExpression negatedExpression = (NegatedExpression)theEObject;\n T result = caseNegatedExpression(negatedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EQUALITY_EXPRESSION:\n {\n EqualityExpression equalityExpression = (EqualityExpression)theEObject;\n T result = caseEqualityExpression(equalityExpression);\n if (result == null) result = caseNegatedExpression(equalityExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.RELATIONAL_EXPRESSION:\n {\n RelationalExpression relationalExpression = (RelationalExpression)theEObject;\n T result = caseRelationalExpression(relationalExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.LIKE_ESCAPE:\n {\n LikeEscape likeEscape = (LikeEscape)theEObject;\n T result = caseLikeEscape(likeEscape);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.BETWEEN_LIST:\n {\n BetweenList betweenList = (BetweenList)theEObject;\n T result = caseBetweenList(betweenList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CONCATENATION:\n {\n Concatenation concatenation = (Concatenation)theEObject;\n T result = caseConcatenation(concatenation);\n if (result == null) result = caseRelationalExpression(concatenation);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ADDITIVE_EXPRESSION:\n {\n AdditiveExpression additiveExpression = (AdditiveExpression)theEObject;\n T result = caseAdditiveExpression(additiveExpression);\n if (result == null) result = caseConcatenation(additiveExpression);\n if (result == null) result = caseRelationalExpression(additiveExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.MULTIPLY_EXPRESSION:\n {\n MultiplyExpression multiplyExpression = (MultiplyExpression)theEObject;\n T result = caseMultiplyExpression(multiplyExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.UNARY_EXPRESSION:\n {\n UnaryExpression unaryExpression = (UnaryExpression)theEObject;\n T result = caseUnaryExpression(unaryExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.CASE_EXPRESSION:\n {\n CaseExpression caseExpression = (CaseExpression)theEObject;\n T result = caseCaseExpression(caseExpression);\n if (result == null) result = caseUnaryExpression(caseExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.WHEN_CLAUSE:\n {\n WhenClause whenClause = (WhenClause)theEObject;\n T result = caseWhenClause(whenClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ALT_WHEN_CLAUSE:\n {\n AltWhenClause altWhenClause = (AltWhenClause)theEObject;\n T result = caseAltWhenClause(altWhenClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ELSE_CLAUSE:\n {\n ElseClause elseClause = (ElseClause)theEObject;\n T result = caseElseClause(elseClause);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.QUANTIFIED_EXPRESSION:\n {\n QuantifiedExpression quantifiedExpression = (QuantifiedExpression)theEObject;\n T result = caseQuantifiedExpression(quantifiedExpression);\n if (result == null) result = caseUnaryExpression(quantifiedExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.ATOM:\n {\n Atom atom = (Atom)theEObject;\n T result = caseAtom(atom);\n if (result == null) result = caseUnaryExpression(atom);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.PRIMARY_EXPRESSION:\n {\n PrimaryExpression primaryExpression = (PrimaryExpression)theEObject;\n T result = casePrimaryExpression(primaryExpression);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPRESSION_OR_VECTOR:\n {\n ExpressionOrVector expressionOrVector = (ExpressionOrVector)theEObject;\n T result = caseExpressionOrVector(expressionOrVector);\n if (result == null) result = casePrimaryExpression(expressionOrVector);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.VECTOR_EXPR:\n {\n VectorExpr vectorExpr = (VectorExpr)theEObject;\n T result = caseVectorExpr(vectorExpr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.IDENT_PRIMARY:\n {\n IdentPrimary identPrimary = (IdentPrimary)theEObject;\n T result = caseIdentPrimary(identPrimary);\n if (result == null) result = casePrimaryExpression(identPrimary);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.AGGREGATE:\n {\n Aggregate aggregate = (Aggregate)theEObject;\n T result = caseAggregate(aggregate);\n if (result == null) result = caseIdentPrimary(aggregate);\n if (result == null) result = casePrimaryExpression(aggregate);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.COMPOUND_EXPR:\n {\n CompoundExpr compoundExpr = (CompoundExpr)theEObject;\n T result = caseCompoundExpr(compoundExpr);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n case MDDPackage.EXPR_LIST:\n {\n ExprList exprList = (ExprList)theEObject;\n T result = caseExprList(exprList);\n if (result == null) result = defaultCase(theEObject);\n return result;\n }\n default: return defaultCase(theEObject);\n }\n }", "public LookUpSwitchInstruction(byte opcode,\n int defaultOffset,\n int[] cases,\n int[] jumpOffsets)\n {\n this.opcode = opcode;\n this.defaultOffset = defaultOffset;\n this.cases = cases;\n this.jumpOffsets = jumpOffsets;\n }", "public static void main(String args[]){ \r\n\t\r\n\t\t\r\n\t\tint month; //An integer variable is decleared named as month \r\n\t\t\r\n\t\tScanner myvar = new Scanner(System.in); //scanner object is created named as Myvar \r\n\t\t\r\n\t\tSystem.out.println(\"Sirji Ye kaunsa mahina hai wo bata do :\"); //Prints somes strings\r\n\t\tSystem.out.println(\" January >> 1\");\r\n\t\tSystem.out.println(\" February >> 2\");\r\n\t\tSystem.out.println(\" March >> 3\");\r\n\t\tSystem.out.println(\" April >> 4\");\r\n\t\tSystem.out.println(\" May >> 5\");\r\n\t\tSystem.out.println(\" June >> 6\");\r\n\t\tSystem.out.println(\" July >> 7\");\r\n\t\tSystem.out.println(\" August >> 8\");\r\n\t\tSystem.out.println(\" September >> 9\");\r\n\t\tSystem.out.println(\" October >> 10\");\r\n\t\tSystem.out.println(\" November >> 11\");\r\n\t\tSystem.out.println(\" December >> 12\");\r\n\t\t\r\n\t\tSystem.out.print(\">>>>>>>>>>>>> \");\r\n\t\tmonth = myvar.nextInt(); //Takes Input from user\r\n\t\t\r\n\t\tswitch (month){ //switch is applied on month variable\r\n\t\t\r\n\t\tcase 1:\r\n\t\tcase 2:\r\n\t\tcase 11:\r\n\t\tcase 12:\r\n\t\t\tSystem.out.println(\"Thand hai bahar :v soja \");\r\n\t\t\tbreak; //used to break out of the switch case\r\n\r\n\t\tcase 3:\r\n\t\tcase 4:\r\n\t\tcase 5:\r\n\t\tcase 6:\r\n\t\t\tSystem.out.println(\"Garmi hai bahar soja :v \");\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 7:\r\n\t\tcase 8:\r\n\t\tcase 9:\r\n\t\tcase 10:\r\n\t\t\tSystem.out.println(\"Barish Ho rahi hai Bheeg jaye ga :V Soja\");\r\n\t\t\tbreak;\r\n\t\t\r\n\t\tdefault:\r\n\t\t\tSystem.out.println(\"Jyada Hoshyari na kar :v Soja\");\r\n\t\t} //The default code block gets Executed when others cases fails\r\n\t\t\r\n\t}", "public static int nextSwitch(int next) {\n\t\t// Make an if statement that runs if the next variable is equal to 0.\n\t\tif(next == 0) {\n\t\t\treturn 1;\n\t\t}\n\t\telse {\n\t\t\treturn 0;\n\t\t}\n\t}", "public final void rule__TypeSwitchCase__Group_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:11114:1: ( ( 'case' ) )\r\n // InternalGo.g:11115:1: ( 'case' )\r\n {\r\n // InternalGo.g:11115:1: ( 'case' )\r\n // InternalGo.g:11116:2: 'case'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getTypeSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n match(input,81,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getTypeSwitchCaseAccess().getCaseKeyword_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public void Case18(){\n\n }", "public static void main(String[] args) {\n Deck<CardSwitch> deck = new Deck<CardSwitch>();\n PlaySwitch.init_deck(deck);\n \n BoardSwitch<CardSwitch> myBoard = new BoardSwitch<CardSwitch>(deck);\n Player<CardSwitch> player1 = new Player<CardSwitch>(\"Tom\");\n Player<CardSwitch> player2 = new Player<CardSwitch>(\"Jerry\");\n\n myBoard.addPlayer(player1);\n \n if (myBoard.getNumPlayers() ==1 && myBoard.getCurrentPlayer() == player1\n && player1.getNext() == player1){\n System.out.println(\"Yay 1\");\n }\n\n myBoard.addPlayer(player2);\n if (myBoard.getNumPlayers() ==2 && myBoard.getCurrentPlayer() == player1\n && (myBoard.changeTurn()==true) && myBoard.getCurrentPlayer() == player2){\n System.out.println(\"Yay 2\");\n }\n \n player1.receiveCard(new CardSwitch(Card.Rank.ACE, Card.Suit.SPADES));\n player1.receiveCard(new CardSwitch(Card.Rank.JACK, Card.Suit.CLUBS));\n player2.receiveCard(new CardSwitch(Card.Rank.NINE, Card.Suit.HEARTS));\n player2.receiveCard(new CardSwitch(Card.Rank.THREE, Card.Suit.SPADES));\n\n if (player1.getNext() == player2 && player2.getNext() == player1\n && myBoard.findWinner() == player2){\n System.out.println(\"Yay 3\");\n }\n \n \n }", "public final void ruleExprSwitchCase() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:1942:2: ( ( ( rule__ExprSwitchCase__Alternatives ) ) )\r\n // InternalGo.g:1943:2: ( ( rule__ExprSwitchCase__Alternatives ) )\r\n {\r\n // InternalGo.g:1943:2: ( ( rule__ExprSwitchCase__Alternatives ) )\r\n // InternalGo.g:1944:3: ( rule__ExprSwitchCase__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getExprSwitchCaseAccess().getAlternatives()); \r\n }\r\n // InternalGo.g:1945:3: ( rule__ExprSwitchCase__Alternatives )\r\n // InternalGo.g:1945:4: rule__ExprSwitchCase__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__ExprSwitchCase__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getExprSwitchCaseAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public static boolean SwitchExpr(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"SwitchExpr\")) return false;\n if (!nextTokenIs(b, K_SWITCH)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, SWITCH_EXPR, null);\n r = consumeTokens(b, 1, K_SWITCH, L_PAR);\n p = r; // pin = 1\n r = r && report_error_(b, Expr(b, l + 1));\n r = p && report_error_(b, consumeToken(b, R_PAR)) && r;\n r = p && report_error_(b, SwitchExpr_4(b, l + 1)) && r;\n r = p && SwitchDefaultReturnClause(b, l + 1) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }" ]
[ "0.7136465", "0.6750636", "0.6714599", "0.6654219", "0.6630186", "0.6611044", "0.6590689", "0.65280634", "0.6518078", "0.6463553", "0.6422781", "0.6413006", "0.6400715", "0.6341495", "0.6326898", "0.63194525", "0.63194215", "0.631502", "0.62626666", "0.62205267", "0.6207936", "0.61810124", "0.6158117", "0.6155182", "0.60782343", "0.60710454", "0.6058962", "0.60484874", "0.603288", "0.6015316", "0.59939426", "0.5984654", "0.59537697", "0.59427726", "0.58920866", "0.5887879", "0.58837354", "0.5882438", "0.5880337", "0.5865606", "0.5857049", "0.58360165", "0.58335924", "0.5820262", "0.5791325", "0.5784382", "0.5783247", "0.576474", "0.57591915", "0.57571524", "0.5730317", "0.5730317", "0.57104194", "0.57085305", "0.5703201", "0.56805575", "0.5678133", "0.5678133", "0.5665773", "0.5662239", "0.5661422", "0.56584436", "0.5643531", "0.5631053", "0.56253976", "0.5621444", "0.5618729", "0.56065494", "0.56056046", "0.5605009", "0.55992025", "0.5595258", "0.5592829", "0.5579242", "0.55756587", "0.55679893", "0.55592823", "0.5558209", "0.55529827", "0.5552739", "0.55510956", "0.5548936", "0.55463517", "0.55449", "0.5543432", "0.55430025", "0.5541487", "0.5531729", "0.55316144", "0.5520103", "0.5518575", "0.5515346", "0.551431", "0.5502187", "0.54984945", "0.5472018", "0.54712415", "0.5446902", "0.54440707", "0.54389507", "0.5431399" ]
0.0
-1
/ EXPRESSION TYPING / 3.1 Literals / just save the type of the node into the typemap
public void outAIntExp(AIntExp node) throws TypeException{ typemap.put(node,new IntType()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "TypeLiteralExp createTypeLiteralExp();", "public abstract TypeLiteral<?> toTypeLiteral(Type type);", "public TypeLiteralElements getTypeLiteralAccess() {\r\n\t\treturn pTypeLiteral;\r\n\t}", "public void visit(Literal literal) {}", "private Value generateLiteralTermType(TermMap termMap, String value)\n \t\t\tthrows R2RMLDataError, SQLException {\n \t\tif (termMap.getLanguageTag() != null) {\n \t\t\tif (!RDFDataValidator.isValidLanguageTag(termMap.getLanguageTag()))\n \t\t\t\tthrow new R2RMLDataError(\n \t\t\t\t\t\t\"[R2RMLEngine:generateLiteralTermType] This language tag is not valid : \"\n \t\t\t\t\t\t\t\t+ value);\n \t\t\treturn vf.createLiteral(value, termMap.getLanguageTag());\n \t\t} else if (termMap.getDataType() != null) {\n \t\t\t// 2. Otherwise, if the term map has a non-empty specified datatype\n \t\t\t// that is different from the natural RDF datatype corresponding to\n \t\t\t// the term map's\n \t\t\t// implicit SQL datatype,\n \t\t\t// then return the datatype-override RDF literal corresponding to\n \t\t\t// value and the specified datatype.\n \t\t\tif (!RDFDataValidator.isValidDatatype(termMap.getDataType()\n \t\t\t\t\t.getAbsoluteStringURI()))\n \t\t\t\tthrow new R2RMLDataError(\n \t\t\t\t// If the typed literal is ill-typed, then a data error is\n \t\t\t\t// raised.\n \t\t\t\t\t\t\"[R2RMLEngine:generateLiteralTermType] This datatype is not valid : \"\n \t\t\t\t\t\t\t\t+ value);\n \t\t\tSQLType implicitDatatype = extractImplicitDatatype((ObjectMap) termMap);\n \t\t\t// Convert implicit datatype into XSD\n \t\t\tXSDType implicitXSDType = SQLToXMLS\n \t\t\t\t\t.getEquivalentType(implicitDatatype);\n \t\t\tif (implicitXSDType != termMap.getDataType()) {\n \t\t\t\t// Type overidden\n \t\t\t\tlog.debug(\"[R2RMLEngine:generateLiteralTermType] Type will be overidden : \"\n \t\t\t\t\t\t+ termMap.getDataType() + \" != \" + implicitXSDType);\n \n \t\t\t}\n \t\t\t// Lexical RDF Natural form\n \t\t\t// value =\n \t\t\t// XSDLexicalTransformation.extractNaturalRDFFormFrom(termMap.getDataType(),\n \t\t\t// value);\n \t\t\tURI datatype = vf.createURI(termMap.getDataType()\n \t\t\t\t\t.getAbsoluteStringURI());\n \t\t\treturn vf.createLiteral(value, datatype);\n \n \t\t} else {\n \t\t\t// 3. Otherwise, return the natural RDF literal corresponding to\n \t\t\t// value.\n \t\t\treturn extractNaturalLiteralFormFrom(termMap, value);\n \t\t}\n \t}", "private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }", "Literal createLiteral();", "Literal createLiteral();", "public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }", "void insertTypeToNode(String text) {\n\t\tList<String> list = new ArrayList<String>();\n\t\tint pos = 0, end;\n\t\twhile ((end = text.indexOf(\"\\t\", pos)) >= 0) {\n\t\t\tlist.add(text.substring(pos, end));\n\t\t\tpos = end + 1;\n\t\t}\n\t\tlist.add(2, text.substring(pos, text.length() - 1));\n\t\tint nodeNum = Integer.parseInt(list.get(0).trim());\n\t\tNode n = this.nodes.get(nodeNum);\n\t\tn.setType(Integer.parseInt(list.get(1)));\n\t\tn.setName(list.get(2));\n\t}", "public Literal getLiteral();", "public Literal getLiteral();", "private Type type()\r\n {\r\n Type t = new Type();\r\n\r\n t.ident = nextToken;\r\n t.type = basicType();\r\n if (t.type == Keyword.NONESY)\r\n {\r\n unresolved.add(t.ident.string = qualident());\r\n }\r\n else\r\n t.ident.string = null;\r\n\r\n t.dim = bracketsOpt();\r\n\r\n return t;\r\n }", "private Text type() {\n\t\tText type = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn type;\r\n\t}", "private void addToken(TokenType type, Object literal) {\n String text = source.substring(start, current);\n tokens.add(new Token(type, text, literal, line));\n }", "NodeType getType();", "@Override\r\n\tpublic TypeBinding literalType(BlockScope scope) {\n\t\treturn null;\r\n\t}", "SimpleLiteral createSimpleLiteral();", "protected void sequence_LiteralType(ISerializationContext context, LiteralType semanticObject) {\r\n\t\tgenericSequencer.createSequence(context, semanticObject);\r\n\t}", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "String getLiteral();", "String getLiteral();", "public static void typeLet(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tBunType type = node.typeAt(gamma, 1, BunType.UntypedType);\n\t\tgamma.checkTypeAt(node, 2, type, true);\n\t\tif(node.findParentNode(\"#function\") == null) {\n\t\t\tgamma.setGlobalName(node.get(0), type, node.get(2));\n\t\t}\n\t\telse {\n\t\t\tPegObject block = node.findParentNode(\"#block\");\n\t\t\tblock.setName(node.get(0), type, node.get(2));\n\t\t}\n\t}", "public final void entryRuleLiteralType() throws RecognitionException {\r\n try {\r\n // InternalGo.g:2755:1: ( ruleLiteralType EOF )\r\n // InternalGo.g:2756:1: ruleLiteralType EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralTypeRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleLiteralType();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralTypeRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "public void setType(ParseTree node, Type type) {\n\t\tthis.types.put(node, type);\n\t}", "<C> RealLiteralExp<C> createRealLiteralExp();", "public abstract AbstractNodeType getType();", "public Rule mapType()\n \t{\n \t\treturn sequence(SQ_BRACKET_L, noNl(), nonSimpleMapTypes(), noNl(), SP_COL, noNl(), nonSimpleMapTypes(), noNl(), SQ_BRACKET_R);\n \t}", "public final void entryRuleXTypeLiteral() throws RecognitionException {\n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1396:1: ( ruleXTypeLiteral EOF )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1397:1: ruleXTypeLiteral EOF\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralRule()); \n }\n pushFollow(FOLLOW_ruleXTypeLiteral_in_entryRuleXTypeLiteral2913);\n ruleXTypeLiteral();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralRule()); \n }\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTypeLiteral2920); if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "public Literal setLiteralString(String literalData);", "<C> StringLiteralExp<C> createStringLiteralExp();", "public Literal setLiteral(Object literalData);", "public void outAIdExp(AIdExp node) throws TypeException{\n TId id = node.getId();\n java.lang.String name = id.getText();\n Type t = lookUpVarType(name, golite.weeder.LineNumber.getLineNumber(node));\n typemap.put(node,t);\n\t/*\n\t if(t==null) throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Identifier \" + name + \" used that cannot be found in symbol table.\");\n\t else typemap.put(node,t);\n\t*/\n }", "private NodeType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "public ParseTreeNode visit(LiteralNode literalNode) {\n return null;\n }", "public Expression getType();", "public final void rule__XTypeLiteral__TypeAssignment_3() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18843:1: ( ( ( ruleQualifiedName ) ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18844:1: ( ( ruleQualifiedName ) )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18844:1: ( ( ruleQualifiedName ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18845:1: ( ruleQualifiedName )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \r\n }\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18846:1: ( ruleQualifiedName )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:18847:1: ruleQualifiedName\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \r\n }\r\n pushFollow(FOLLOW_ruleQualifiedName_in_rule__XTypeLiteral__TypeAssignment_338082);\r\n ruleQualifiedName();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \r\n }\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public Literal getLiteral(Object literalData);", "Rule MapType() {\n // Push 1 MapTypeNode onto the value stack\n return Sequence(\n \"map \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \", \",\n FieldType(),\n \"> \",\n actions.pushMapTypeNode());\n }", "public Object visitCharacterConstant(GNode n) {\n xtc.type.Type result;\n \n result = cops.typeCharacter(n.getString(0));\n \n return result.getConstant().bigIntValue().longValue();\n }", "public LiteralExpression (String str){\n _value = str;\n }", "public final void ruleLiteralType() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalGo.g:2767:2: ( ( ( rule__LiteralType__Alternatives ) ) )\r\n // InternalGo.g:2768:2: ( ( rule__LiteralType__Alternatives ) )\r\n {\r\n // InternalGo.g:2768:2: ( ( rule__LiteralType__Alternatives ) )\r\n // InternalGo.g:2769:3: ( rule__LiteralType__Alternatives )\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getLiteralTypeAccess().getAlternatives()); \r\n }\r\n // InternalGo.g:2770:3: ( rule__LiteralType__Alternatives )\r\n // InternalGo.g:2770:4: rule__LiteralType__Alternatives\r\n {\r\n pushFollow(FOLLOW_2);\r\n rule__LiteralType__Alternatives();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getLiteralTypeAccess().getAlternatives()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public interface Literals {\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.BagTypeImpl <em>Bag Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.BagTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getBagType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass BAG_TYPE = eINSTANCE.getBagType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.TupleTypeImpl <em>Tuple Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TupleTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getTupleType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass TUPLE_TYPE = eINSTANCE.getTupleType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference TUPLE_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getTupleType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.CollectionTypeImpl <em>Collection Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.CollectionTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getCollectionType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass COLLECTION_TYPE = eINSTANCE\n\t\t\t\t.getCollectionType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Element Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference COLLECTION_TYPE__ELEMENT_TYPE = eINSTANCE\n\t\t\t\t.getCollectionType_ElementType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference COLLECTION_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getCollectionType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Kind</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EAttribute COLLECTION_TYPE__KIND = eINSTANCE\n\t\t\t\t.getCollectionType_Kind();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.InvalidTypeImpl <em>Invalid Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.InvalidTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getInvalidType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass INVALID_TYPE = eINSTANCE.getInvalidType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference INVALID_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getInvalidType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.OrderedSetTypeImpl <em>Ordered Set Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.OrderedSetTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getOrderedSetType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass ORDERED_SET_TYPE = eINSTANCE\n\t\t\t\t.getOrderedSetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.SequenceTypeImpl <em>Sequence Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.SequenceTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getSequenceType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass SEQUENCE_TYPE = eINSTANCE.getSequenceType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.SetTypeImpl <em>Set Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.SetTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getSetType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass SET_TYPE = eINSTANCE.getSetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.VoidTypeImpl <em>Void Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.VoidTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getVoidType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass VOID_TYPE = eINSTANCE.getVoidType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Library</b></em>' container reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference VOID_TYPE__OCL_LIBRARY = eINSTANCE\n\t\t\t\t.getVoidType_OclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.TypeTypeImpl <em>Type Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypeTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getTypeType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass TYPE_TYPE = eINSTANCE.getTypeType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Represented Type</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference TYPE_TYPE__REPRESENTED_TYPE = eINSTANCE\n\t\t\t\t.getTypeType_RepresentedType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.OclLibraryImpl <em>Ocl Library</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.OclLibraryImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getOclLibrary()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass OCL_LIBRARY = eINSTANCE.getOclLibrary();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Void</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_VOID = eINSTANCE\n\t\t\t\t.getOclLibrary_OclVoid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Any</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_ANY = eINSTANCE\n\t\t\t\t.getOclLibrary_OclAny();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Collection</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_COLLECTION = eINSTANCE\n\t\t\t\t.getOclLibrary_OclCollection();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Sequence</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_SEQUENCE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclSequence();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Bag</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_BAG = eINSTANCE\n\t\t\t\t.getOclLibrary_OclBag();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Set</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_SET = eINSTANCE\n\t\t\t\t.getOclLibrary_OclSet();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Ordered Set</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_ORDERED_SET = eINSTANCE\n\t\t\t\t.getOclLibrary_OclOrderedSet();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Tuple</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_TUPLE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclTuple();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link org.dresdenocl.essentialocl.types.impl.AnyTypeImpl <em>Any Type</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see org.dresdenocl.essentialocl.types.impl.AnyTypeImpl\n\t\t * @see org.dresdenocl.essentialocl.types.impl.TypesPackageImpl#getAnyType()\n\t\t * @generated\n\t\t */\n\t\tpublic static final EClass ANY_TYPE = eINSTANCE.getAnyType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Boolean</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_BOOLEAN = eINSTANCE\n\t\t\t\t.getOclLibrary_OclBoolean();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl String</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_STRING = eINSTANCE\n\t\t\t\t.getOclLibrary_OclString();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Integer</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_INTEGER = eINSTANCE\n\t\t\t\t.getOclLibrary_OclInteger();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Real</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_REAL = eINSTANCE\n\t\t\t\t.getOclLibrary_OclReal();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Invalid</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_INVALID = eINSTANCE\n\t\t\t\t.getOclLibrary_OclInvalid();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Ocl Type</b></em>' containment reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tpublic static final EReference OCL_LIBRARY__OCL_TYPE = eINSTANCE\n\t\t\t\t.getOclLibrary_OclType();\n\n\t}", "public static String type(String s)\n {\n read_if_needed_();\n \n UmlBuiltin b = (UmlBuiltin) UmlSettings._map_builtins.get(s);\n \n return (b != null) ? b.java : s;\n }", "public final void rule__XTypeLiteral__TypeAssignment_3() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13319:1: ( ( ( ruleQualifiedName ) ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13320:1: ( ( ruleQualifiedName ) )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13320:1: ( ( ruleQualifiedName ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13321:1: ( ruleQualifiedName )\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13322:1: ( ruleQualifiedName )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:13323:1: ruleQualifiedName\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n pushFollow(FOLLOW_ruleQualifiedName_in_rule__XTypeLiteral__TypeAssignment_326764);\n ruleQualifiedName();\n\n state._fsp--;\n if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeQualifiedNameParserRuleCall_3_0_1()); \n }\n\n }\n\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeJvmTypeCrossReference_3_0()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public void processTreeTypes(@NonNull CompilationUnit ast) {\n\t\tVariableTypeMap variables = new VariableTypeMap();\n\t\tthis.variableMaps.clear();\n\n\t\tthis.variableMaps.push(variables);\n\t\tLabelPass labels = new LabelPass(variables);\n\t\tlabels.processLabels(ast);\n\n\t\tthis.processTypes(ast);\n\t}", "public Literal setDeepLiteral(XDI3Segment contextNodeXri, Object literalData);", "public Literal getLiteralString(String literalData);", "public LiteralOPToken(String s, int nTypeCode)\n {\n super(s);\n m_nType = nTypeCode;\n setBindingPower(OPToken.PRECEDENCE_IDENTIFIER);\n }", "private void processTypes(Node root) {\n\t\tfinal boolean newContext =\n\t\t\t(root instanceof Block || root instanceof ForLoop);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps\n\t\t\t\t.push(new VariableTypeMap(this.variableMaps.peek()));\n\t\t}\n\n\t\tif (!root.getChildren().isEmpty()) {\n\t\t\tfor (int i = 0; i < root.getChildren().size(); ++i) {\n\t\t\t\tNode child = root.getChildren().get(i);\n\t\t\t\tif (root instanceof Call call && (!call.isPrimary() && i == 0\n\t\t\t\t\t|| call.isPrimary() && i == 1)) {\n\t\t\t\t\t// Skip the method name lookup\n\t\t\t\t\tchild.setType(Type.unknownType());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis.processTypes(child);\n\t\t\t}\n\t\t}\n\t\troot.process(this);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps.pop();\n\t\t}\n\t}", "protected abstract String statementType();", "public final void entryRuleXTypeLiteral() throws RecognitionException {\r\n try {\r\n // InternalDroneScript.g:1780:1: ( ruleXTypeLiteral EOF )\r\n // InternalDroneScript.g:1781:1: ruleXTypeLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTypeLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_1);\r\n ruleXTypeLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTypeLiteralRule()); \r\n }\r\n match(input,EOF,FOLLOW_2); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "public String getType(String name) {\n/* 164 */ return \"CDATA\";\n/* */ }", "int getSymptomTypeValue();", "Rule Literal() {\n // Push 1 LiteralNode onto the value stack\n return Sequence(\n FirstOf(\n SingleQuotedLiteral(),\n DoubleQuotedLiteral()),\n actions.pushLiteralNode());\n }", "public LiteralRegistry() {\n addEntry(new Entry(SkriptPattern.parse(\"biome[s]\"), BiomeRegistry.Entry.class));\n addEntry(new Entry(SkriptPattern.parse(\"boolean[s]\"), boolean.class));\n addEntry(new Entry(SkriptPattern.parse(\"cat[ ](type|race)[s]\"), CatType.class));\n addEntry(new Entry(SkriptPattern.parse(\"click[ ]type[s]\"), ClickType.class));\n addEntry(new Entry(SkriptPattern.parse(\"colo[u]r[s]\"), Color.class));\n addEntry(new Entry(SkriptPattern.parse(\"damage[ ]cause[s]\"), DamageCause.class));\n addEntry(new Entry(SkriptPattern.parse(\"enchantment[s]\"), Enchantment.class));\n addEntry(new Entry(SkriptPattern.parse(\"experience[ ][point[s]]\"), Experience.class));\n addEntry(new Entry(SkriptPattern.parse(\"firework[ ]type[s]\"), FireworkType.class));\n addEntry(new Entry(SkriptPattern.parse(\"game[ ]mode[s]\"), GameMode.class));\n addEntry(new Entry(SkriptPattern.parse(\"[panda] gene[s]\"), Gene.class));\n addEntry(new Entry(SkriptPattern.parse(\"inventory[ ]action[s]\"), InventoryAction.class));\n addEntry(new Entry(SkriptPattern.parse(\"inventory[ ]type[s]\"), InventoryTypeRegistry.Entry.class));\n addEntry(new Entry(SkriptPattern.parse(\"(item[ ]type[s]|items|materials)\"), ItemType.class));\n addEntry(new Entry(SkriptPattern.parse(\"(item|material)\"), Item.class));\n addEntry(new Entry(SkriptPattern.parse(\"num[ber][s]\"), Number.class));\n addEntry(new Entry(SkriptPattern.parse(\"resource[ ]pack[ ]state[s]\"), ResourcePackStatus.class));\n addEntry(new Entry(SkriptPattern.parse(\"sound[ ]categor(y|ies)\"), SoundCategory.class));\n addEntry(new Entry(SkriptPattern.parse(\"spawn[ing][ ]reason[s]\"), SpawnReason.class));\n addEntry(new Entry(SkriptPattern.parse(\"potion[[ ]effect][ ]type[s]\"), StatusEffectType.class));\n addEntry(new Entry(SkriptPattern.parse(\"(text|string)[s]\"), Text.class));\n addEntry(new Entry(SkriptPattern.parse(\"teleport[ ](cause|reason|type)[s]\"), TeleportCause.class));\n addEntry(new Entry(SkriptPattern.parse(\"time[s]\"), Time.class));\n addEntry(new Entry(SkriptPattern.parse(\"(time[ ]period|duration)[s]\"), TimePeriod.class));\n addEntry(new Entry(SkriptPattern.parse(\"time[ ]span[s]\"), TimeSpan.class));\n addEntry(new Entry(SkriptPattern.parse(\"(tree[ ]type|tree)[s]\"), TreeType.class));\n addEntry(new Entry(SkriptPattern.parse(\"visual effect\"), VisualEffectRegistry.Entry.class));\n }", "private LocalrmnameType(int type, java.lang.String value) {\n super();\n this.type = type;\n this.stringValue = value;\n }", "public final void entryRuleXTypeLiteral() throws RecognitionException {\r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1645:1: ( ruleXTypeLiteral EOF )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:1646:1: ruleXTypeLiteral EOF\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXTypeLiteralRule()); \r\n }\r\n pushFollow(FOLLOW_ruleXTypeLiteral_in_entryRuleXTypeLiteral3451);\r\n ruleXTypeLiteral();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXTypeLiteralRule()); \r\n }\r\n match(input,EOF,FOLLOW_EOF_in_entryRuleXTypeLiteral3458); if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n }\r\n return ;\r\n }", "@Override\n\tpublic void VisitMapLiteralNode(BunMapNode Node) {\n\n\t}", "Map<String, PrimitiveTypeProvider> convert(T data);", "private HydroPlantType(int value, String name, String literal) {\n\t\tthis.value = value;\n\t\tthis.name = name;\n\t\tthis.literal = literal;\n\t}", "public final void rule__XTypeLiteral__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10201:1: ( ( 'typeof' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10202:1: ( 'typeof' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10202:1: ( 'typeof' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:10203:1: 'typeof'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); \n }\n match(input,57,FOLLOW_57_in_rule__XTypeLiteral__Group__1__Impl20523); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXTypeLiteralAccess().getTypeofKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public Type getType(ParseTree node) {\n\t\treturn this.types.get(node);\n\t}", "private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}", "public void addType(String value) {\n/* 380 */ addStringToBag(\"type\", value);\n/* */ }", "public Literal setDeepLiteralString(XDI3Segment contextNodeXri, String literalData);", "public final String type() throws RecognitionException {\n String result = null;\n\n\n CommonTree t=null;\n\n try {\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:157:3: (t= ( 'int' | 'boolean' | 'funct' ) )\n // /v/filer4b/v38q001/rjnevels/Desktop/Antlr Eclipse Test/workspace3/BFlat/src/a/b/c/EvaluatorWalker.g:157:5: t= ( 'int' | 'boolean' | 'funct' )\n {\n t=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==42||input.LA(1)==44||input.LA(1)==47 ) {\n input.consume();\n state.errorRecovery=false;\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n\n result = (t!=null?t.getText():null);\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n\n finally {\n \t// do for sure before leaving\n }\n return result;\n }", "Rule Typedef() {\n // Push 1 TypedefNode onto the value stack\n return Sequence(\n \"typedef \",\n DefinitionType(),\n Identifier(),\n actions.pushTypedefNode());\n }", "@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }" ]
[ "0.7041185", "0.67215353", "0.6505328", "0.6505119", "0.63811916", "0.6165438", "0.6114909", "0.6114909", "0.5953242", "0.5914287", "0.58802676", "0.58802676", "0.5828938", "0.5818133", "0.58018833", "0.5788221", "0.57612807", "0.5760536", "0.57594573", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.57139415", "0.56941736", "0.56941736", "0.5674469", "0.56733733", "0.5650154", "0.5594565", "0.5590772", "0.55712825", "0.5562217", "0.5548797", "0.5545076", "0.55427283", "0.554002", "0.55399054", "0.55396587", "0.5518725", "0.5514656", "0.5509469", "0.5500258", "0.54909647", "0.5490179", "0.54885316", "0.5465899", "0.54600775", "0.54542255", "0.54492074", "0.5447242", "0.5446505", "0.5442269", "0.5423105", "0.54222304", "0.5407741", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.5393393", "0.53816605", "0.538153", "0.53791726", "0.5379059", "0.53784746", "0.5377334", "0.5370059", "0.53653073", "0.53620493", "0.5361711", "0.53583527", "0.53562075", "0.5350181", "0.5345489", "0.53424174", "0.53367156", "0.5336649" ]
0.0
-1
/ 3.2 Identifiers / grab the type out of the symboltable, check that it's not null, and then put it into the typemap with the node
public void outAIdExp(AIdExp node) throws TypeException{ TId id = node.getId(); java.lang.String name = id.getText(); Type t = lookUpVarType(name, golite.weeder.LineNumber.getLineNumber(node)); typemap.put(node,t); /* if(t==null) throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Identifier " + name + " used that cannot be found in symbol table."); else typemap.put(node,t); */ }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\t\tpublic void inAListExpr(AListExpr node) {\n\t\t\ttry {\t\n\t\t\t\t if(node.getExpr().toString().contains(\"String\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"String\"));\n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"Bool\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Bool\"));\n\t\t\t\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t if(node.getExpr().toString().contains(\"Int\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Int\"));\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"IO\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"IO\"));\n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"Error\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"Error\"));\n\t\t\t\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t if(node.getExpr().toString().contains(\"void\")){\n\t\t\t\t\t symbolTable.put(node.getExpr().toString(), klasses.get(\"void\"));\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\t\t \n\t\t\t\t}catch(SemanticException e) {\n\t\t\t\t\t\n\t\t\t\t}\n\t\t}", "private static void createTypeMap() {\n\n }", "public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;", "private MCTypeReference<? extends MCTypeSymbol> initTypeRef(ASTPort node, StringBuilder typeName, ASTType astType) {\n if (node.getType().get() instanceof ASTRange) {\n return initTypeRefASTRange(node, typeName, (ASTRange) astType);\n }\n else if (node.getType().get() instanceof ASTRanges) {\n return initTypeRefASTRanges(node, typeName, (ASTRanges) astType);\n }\n Log.debug(node.getName().isPresent() ? node.getName().get() : \"unnamed port\" + \" \" + astType.toString(), \"info\");\n return initTypeRefGeneralType(node, typeName, astType);\n }", "public SymbolType getSymbolType() {\n return symbolType;\n }", "public TypeNode getTypeNode (String typeName) {\n return (TypeNode) _nodesHashtable.get(typeName);\n }", "public Object visitIdent(GoIRIdentNode node){\n\t\tTypeInfo m = lexicalscope.get(node.getIdentifier());\n\t\tif(m != null) {\n\t\t\treturn m.getType();\n\t\t}\n\t\treturn \"\";\n\t}", "public Hashtable getTypeMapping()\n {\n return this.typeMapping;\n }", "public String getVariableType(String key) {\n for (Map.Entry<PlainGraph, Map<String, PlainNode>> entry :graphNodeMap.entrySet()) {\n if (entry.getValue().containsKey(key)) {\n PlainNode node = entry.getValue().get(key);\n PlainEdge edge = entry.getKey().outEdgeSet(node).stream()\n .filter(e -> e.label().toString().contains(\"type:\"))\n .collect(Collectors.toList())\n .get(0);\n if (edge.label().toString().contains(SHARP_TYPE)) {\n return edge.label().toString().replace(String.format(\"%s:%s\",TYPE, SHARP_TYPE), \"\");\n } else {\n return edge.label().toString().replace(String.format(\"%s:\",TYPE), \"\");\n }\n }\n }\n // The variable key does not exist yet, it is only declared in the syntax tree\n return null;\n }", "public String getType(JmmNode node) {\n switch (node.getKind()) {\n case \"Add\":\n case \"Sub\":\n case \"Mul\":\n case \"Div\":\n return \"int\";\n\n case \"LessThan\":\n case \"And\":\n case \"Not\":\n return \"boolean\";\n\n case \"Var\":\n return getVariableSymbol(node.get(\"name\")).getType().getName();\n default:\n return null;\n }\n }", "@Override\n public String semanticChecker(SymbolTable table){\n \tSymbolTable top = table;\n \tSymbolTable test;\n \twhile(top.ascend() != null){\n \t top = top.ascend();\n \t}\n \ttest = null;\n \n \t//check if variable exist\n \tif(top.locate(name) != null || (test = table.locate(name)) != null){\n \t return \"semantic error\"; //syntaxError\n \t}\n \n \t//create new entry\n \ttable.newEntry(type, name);\n \n \treturn type; //yeah baby!\n }", "public TYPE SemantMe() {\n\t\tSYM_TABLE sym_table = SYM_TABLE.getInstance();\n\t\t\n\t\t// Lookup the name\n\t\tTYPE t = sym_table.find(this.type);\n\t\t// Check it\n\t\tif (t == null || !t.isTypeName())\n\t\t {\n\t\t\t// Code bug -- type given does not exist in table or just is not a name a of a type\n\t\t\treport_error();\n\t\t }\n\t\t\t// Its fine, declare it\n\t\treturn new TYPE_VAR_DEC(t.name,this.name);\n }", "private Type type()\r\n {\r\n Type t = new Type();\r\n\r\n t.ident = nextToken;\r\n t.type = basicType();\r\n if (t.type == Keyword.NONESY)\r\n {\r\n unresolved.add(t.ident.string = qualident());\r\n }\r\n else\r\n t.ident.string = null;\r\n\r\n t.dim = bracketsOpt();\r\n\r\n return t;\r\n }", "public static TileType getTypeById(byte id) {\r\n\t\tfor (TileType type : values()) {\r\n\t\t\tif (type.id == id) return type;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n public Type visit(MapType mapType) {\n Type keyType = mapType.getKeyType().accept(this);\n Type valueType = mapType.getValueType().accept(this);\n if (mapType.getValueType().isNullable()) {\n return Types.MapType.ofOptional(getNextId(), getNextId(), keyType, valueType);\n } else {\n return Types.MapType.ofRequired(getNextId(), getNextId(), keyType, valueType);\n }\n }", "public Type getType(ParseTree node) {\n\t\treturn this.types.get(node);\n\t}", "void resolveTypes(SymbolTable symbolTable) {\n defs.resolveTypes(symbolTable); // resolve all the definitions\n // DO NOT resolve anything else! (ie don't call super.resolveTypes() )\n // this is just a placeholder for a group of symbols with the same name\n }", "public static void typeLet(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tBunType type = node.typeAt(gamma, 1, BunType.UntypedType);\n\t\tgamma.checkTypeAt(node, 2, type, true);\n\t\tif(node.findParentNode(\"#function\") == null) {\n\t\t\tgamma.setGlobalName(node.get(0), type, node.get(2));\n\t\t}\n\t\telse {\n\t\t\tPegObject block = node.findParentNode(\"#block\");\n\t\t\tblock.setName(node.get(0), type, node.get(2));\n\t\t}\n\t}", "public interface SymbolTable\n{\n /**\n * Indicates that a symbol's integer ID could not be determined. That's\n * generally the case when constructing value instances that are not yet\n * contained by a datagram.\n */\n public final static int UNKNOWN_SYMBOL_ID = -1;\n\n\n /**\n * Gets the unique name of this symbol table.\n *\n * @return the unique name, or {@code null} if {@link #isLocalTable()}.\n */\n public String getName();\n\n\n /**\n * Gets the version of this symbol table.\n *\n * @return at least one, or zero if {@link #isLocalTable()}.\n */\n public int getVersion();\n\n\n /**\n * Determines whether this symbol table is local, and therefore unnamed\n * and unversioned.\n * <p>\n * If this method returns {@code true}, then both {@link #isSharedTable()}\n * and {@link #isSystemTable()} will return {@code false}.\n */\n public boolean isLocalTable();\n\n /**\n * Determines whether this symbol table is shared, and therefore named,\n * versioned, and {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false}.\n */\n public boolean isSharedTable();\n\n /**\n * Determines whether this instance is substituting for an imported\n * shared table for which no exact match was found in the catalog.\n * Such tables are not authoritative and may not even have any symbol text\n * at all (as is the case when no version of an imported table is found).\n * <p>\n * Substitute tables are always shared, non-system tables.\n *\n */\n public boolean isSubstitute();\n\n /**\n * Determines whether this symbol table is a system symbol table, and\n * therefore shared, named, versioned, and\n * {@linkplain #isReadOnly() read-only}.\n * <p>\n * If this method returns {@code true}, then {@link #isLocalTable()}\n * will return {@code false} and {@link #isSharedTable()} will return\n * {@code true}.\n */\n public boolean isSystemTable();\n\n\n /**\n * Determines whether this symbol table can have symbols added to it.\n * Shared symtabs are always read-only.\n * Local symtabs can also be {@linkplain #makeReadOnly() made read-only}\n * on demand, which enables some optimizations when writing data but will\n * cause failures if new symbols are encountered.\n *\n * @return true if this table is read-only, false if symbols may\n * be added.\n *\n * @see #makeReadOnly()\n *\n\n */\n public boolean isReadOnly();\n\n\n /**\n * Prevents this symbol table from accepting any more new symbols.\n * Shared symtabs are always read-only.\n * Making a local symtab read-only enables some optimizations when writing\n * data, but will cause failures if new symbols are encountered.\n *\n * @see #isReadOnly()\n *\n\n */\n public void makeReadOnly();\n\n\n /**\n * Gets the system symbol table being used by this local table.\n * <p>\n * If {@link #isSystemTable()} then this method returns {@code this}.\n * Otherwise, if {@link #isSharedTable()} then this method returns\n * {@code null}.\n *\n * @return not <code>null</code>, except for non-system shared tables.\n */\n public SymbolTable getSystemSymbolTable();\n\n\n /**\n * Gets the identifier for the Ion version (and thus the system symbol\n * table) used by this table.\n * The version identifier is a string of the form {@code \"$ion_X_Y\"}.\n *\n * @return the version identifier; or {@code null} for non-system shared\n * tables.\n */\n public String getIonVersionId();\n\n\n /**\n * Gets the sequence of shared symbol tables imported by this (local)\n * symbol table. The result does not include a system table.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has the same name but different version and/or max_id,\n * then that entry will be a substitute table with the\n * correct version and max_id, wrapping the original shared symbol table\n * that was found.\n * <p>\n * If this local table imported a shared table for which the relevant\n * {@link IonCatalog} has no entry with the same name, but the import\n * declaration has a max_id available, then that entry will\n * be a substitute table with max_id undefined symbols.\n *\n * @return {@code null} if this is a shared or system table, otherwise a\n * non-null but potentially zero-length array of shared tables (but no\n * system table).\n */\n public SymbolTable[] getImportedTables();\n\n\n /**\n * Gets the highest symbol id reserved by this table's imports (including\n * system symbols). Any id higher than this value is a local symbol\n * declared by this table. This value is zero for shared symbol tables,\n * since they do not utilize imports.\n */\n public int getImportedMaxId();\n\n\n /**\n * Gets the highest symbol id reserved by this table.\n *\n * @return the largest integer such that {@link #findKnownSymbol(int)} could\n * return a non-<code>null</code> result. Note that there is no promise\n * that it <em>will</em> return a name, only that any larger id will not\n * have a name defined.\n */\n public int getMaxId();\n\n\n /**\n * Adds a new symbol to this table, or finds an existing definition of it.\n * <p>\n * The resulting {@link SymbolToken} has the same String instance that\n * was first interned. In order to reduce memory\n * footprint, callers should generally replace their copy of the text with\n * the string in the result.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to intern.\n *\n * @return the interned symbol, with both text and SID defined; not null.\n *\n * @throws IonException if this symtab {@link #isReadOnly()} and\n * the text isn't already interned.\n *\n * @see #find(String)\n *\n\n */\n public SymbolToken intern(String text);\n\n\n /**\n * Finds a symbol already interned by this table.\n * <p>\n * This method will not necessarily return the same instance given the\n * same input.\n *\n * @param text the symbol text to find.\n *\n * @return the interned symbol, with both text and SID defined;\n * or {@code null} if it's not already interned.\n *\n * @see #intern(String)\n *\n\n */\n public SymbolToken find(String text);\n\n\n /**\n * Gets the symbol ID associated with a given symbol name.\n *\n * @param name must not be null or empty.\n * @return the id of the requested symbol, or\n * {@link #UNKNOWN_SYMBOL_ID} if it's not defined.\n *\n * @throws NullPointerException if {@code name} is null.\n */\n public int findSymbol(String name);\n\n\n /**\n * Gets the interned text for a symbol ID.\n *\n * @param id the requested symbol ID.\n * @return the interned text associated with the symbol ID,\n * or {@code null} if the text is not known.\n *\n * @throws IllegalArgumentException if {@code id < 1}.\n */\n public String findKnownSymbol(int id);\n\n\n /**\n * Creates an iterator that will return all non-imported symbol names, in\n * order of their symbol IDs. The iterator will return {@code null} where\n * there is an undefined sid.\n * <p>\n * The first string returned by the iterator has a symbol ID that is one\n * more than {@link #getImportedMaxId()}, and the last string has symbol\n * ID equals to {@link #getMaxId()}.\n *\n * @return a new iterator.\n */\n public Iterator<String> iterateDeclaredSymbolNames();\n\n\n /**\n * Writes an Ion representation of this symbol table.\n *\n * @param writer must not be null.\n * @throws IOException if thrown by the writer.\n */\n public void writeTo(IonWriter writer)\n throws IOException;\n}", "public String typeOf() { return null; }", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "private String Id2type(String m, ArrayList<InkmlNode> nodes) {\n\t\tfor (int i = 0; i < nodes.size(); i++) {\n\t\t\tif (nodes.get(i).getNodeId().equals(m)) {\n\t\t\t\treturn nodes.get(i).getType();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic Map<String, Class<?>> getTypeMap() throws SQLException {\n\t\t\treturn null;\r\n\t\t}", "public TypeMappingRegistry getTypeMappingRegistry() {\n\t\treturn null;\n\t}", "private void processTypes(Node root) {\n\t\tfinal boolean newContext =\n\t\t\t(root instanceof Block || root instanceof ForLoop);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps\n\t\t\t\t.push(new VariableTypeMap(this.variableMaps.peek()));\n\t\t}\n\n\t\tif (!root.getChildren().isEmpty()) {\n\t\t\tfor (int i = 0; i < root.getChildren().size(); ++i) {\n\t\t\t\tNode child = root.getChildren().get(i);\n\t\t\t\tif (root instanceof Call call && (!call.isPrimary() && i == 0\n\t\t\t\t\t|| call.isPrimary() && i == 1)) {\n\t\t\t\t\t// Skip the method name lookup\n\t\t\t\t\tchild.setType(Type.unknownType());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis.processTypes(child);\n\t\t\t}\n\t\t}\n\t\troot.process(this);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps.pop();\n\t\t}\n\t}", "public Rule type()\n \t{\n \t\treturn firstOf(simpleMapType(), nonSimpleMapTypes());\n \t}", "@Override\n\tpublic Object visitType(Type type) {\n\t\treturn null;\n\t}", "int getSymptomTypeValue();", "SymbolImageType createSymbolImageType();", "private BNode generateBlankNodeTermType(TermMap termMap, String value) {\n \t\tif (value == null)\n \t\t\treturn vf.createBNode();\n \t\telse\n \t\t\treturn vf.createBNode(value);\n \t}", "public boolean visit(SingleVariableDeclaration node) {\n\t\tASTNode parent = node.getParent();\r\n\t\twhile (!(parent instanceof TypeDeclaration)) {\r\n\t\t\tparent = parent.getParent();\r\n\t\t}\r\n\t\tTypeDeclaration td = (TypeDeclaration) parent;\r\n\t\t\r\n\t\tString target = getTypeFullValid(node.getType().toString());\r\n\t\tString origin = getTypeFullValid(td.getName().toString());\r\n\t\tif (origin != null && target != null && !origin.equals(target)) {\r\n\t\t\tputInMap(origin, target, mapDependency);\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "NodeType getType();", "public final AstValidator.map_type_return map_type() throws RecognitionException {\n AstValidator.map_type_return retval = new AstValidator.map_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree MAP_TYPE107=null;\n AstValidator.type_return type108 =null;\n\n\n CommonTree MAP_TYPE107_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:10: ( ^( MAP_TYPE ( type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:12: ^( MAP_TYPE ( type )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n MAP_TYPE107=(CommonTree)match(input,MAP_TYPE,FOLLOW_MAP_TYPE_in_map_type1176); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n MAP_TYPE107_tree = (CommonTree)adaptor.dupNode(MAP_TYPE107);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(MAP_TYPE107_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: ( type )?\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0==BIGDECIMAL||LA29_0==BIGINTEGER||LA29_0==BOOLEAN||LA29_0==BYTEARRAY||LA29_0==CHARARRAY||LA29_0==DATETIME||LA29_0==DOUBLE||LA29_0==FLOAT||LA29_0==INT||LA29_0==LONG||LA29_0==BAG_TYPE||LA29_0==MAP_TYPE||LA29_0==TUPLE_TYPE) ) {\n alt29=1;\n }\n switch (alt29) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_type_in_map_type1178);\n type108=type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, type108.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private MCTypeReference<? extends MCTypeSymbol> initTypeRefGeneralType(ASTPort node, StringBuilder typeName, ASTType astType) {\n MCTypeReference<? extends MCTypeSymbol> typeRef = null;\n typeName.append(ArcTypePrinter.printTypeWithoutTypeArgumentsAndDimension(astType));\n //Log.debug(astType.toString(),\"TYPE:\");\n //Log.debug(typeName,\"TYPEName:\");\n typeRef = new CommonMCTypeReference<MCTypeSymbol>(typeName.toString(), MCTypeSymbol.KIND, currentScope().get());\n typeRef.setDimension(TypesHelper.getArrayDimensionIfArrayOrZero(astType));\n addTypeArgumentsToTypeSymbol(typeRef, astType);\n return typeRef;\n }", "Hashtable createTypeMapping()\n {\n Hashtable mapping = new Hashtable();\n \n mapping.put(TypeFactory.getType(\"Double\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"double\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n StratmasDecimal sObj = (StratmasDecimal) o;\n if (isBadDecimal(sObj)) {\n return null;\n } else {\n return new StratmasDecimalParameter((StratmasDecimal) o);\n }\n }\n });\n mapping.put(TypeFactory.getType(\"NonNegativeInteger\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return new StratmasIntegerParameter((StratmasInteger) o);\n }\n });\n // Ground type type hiearchy.\n mapping.put(TypeFactory.getType(\"anyType\", \"http://www.w3.org/2001/XMLSchema\"), \n new ParameterFactory() \n {\n public Parameter getParameter(Object o) \n {\n return null;\n }\n });\n\n return mapping;\n }", "public LlvmValue visit(IdentifierType n){\n\t\tSystem.out.format(\"identifiertype*******\\n\");\n\t\t\n\t\t//%class.name\n\t\tStringBuilder name = new StringBuilder();\n\t\t\n\t\tname.append(n.name);\n\t\t\n\t\t//System.out.format(\"name: %s\\n\",name.toString());\n\t\t\n\t\t//Cria classType -> %class.name\n\t\tLlvmClassInfo classType = new LlvmClassInfo(name.toString());\t\n\n\t\treturn classType;\n\t}", "public Symbol(Hashtable symbols,String name,int value,int type) {\n\tthis.name = name;\n\tthis.value = value;\n\tthis.type = type;\n\tmdefs = new Vector();\n\tif (symbols != null) symbols.put(name,this);\n }", "private Class<?> getType(final Object metadata, final ValueNode node) throws ParseException {\n if (node.type != null) {\n return readType(node);\n }\n Class type;\n if (metadata instanceof ReferenceSystemMetadata || metadata instanceof Period || metadata instanceof AbstractTimePosition || metadata instanceof Instant) {\n final Method getter = ReflectionUtilities.getGetterFromName(node.name, metadata.getClass());\n return getter.getReturnType();\n } else {\n type = standard.asTypeMap(metadata.getClass(), KeyNamePolicy.UML_IDENTIFIER, TypeValuePolicy.ELEMENT_TYPE).get(node.name);\n }\n final Class<?> special = specialized.get(type);\n if (special != null) {\n return special;\n }\n return type;\n }", "gov.nih.nlm.ncbi.www.MedlineSiDocument.MedlineSi.Type addNewType();", "abstract public Type getType();", "private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}", "public TypeDefinition tdef(String n){\n TypeDefinition rc = isType(n);\n if (rc == null){\n return(null);\n }\n else\n return(rc);\n }", "TypeRef getType();", "@Override\r\n\tpublic TypeBinding literalType(BlockScope scope) {\n\t\treturn null;\r\n\t}", "Type_use getType_use();", "private static Tree getTypeTree(WorkingCopy workingCopy, String typeName) {\n TreeMaker make = workingCopy.getTreeMaker();\n TypeKind primitiveTypeKind = null;\n if (\"boolean\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.BOOLEAN;\n } else if (\"byte\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.BYTE;\n } else if (\"short\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.SHORT;\n } else if (\"int\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.INT;\n } else if (\"long\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.LONG;\n } else if (\"char\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.CHAR;\n } else if (\"float\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.FLOAT;\n } else if (\"double\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.DOUBLE;\n } else if (\"void\".equals(typeName)) { // NOI18N\n primitiveTypeKind = TypeKind.VOID;\n }\n if (primitiveTypeKind != null) {\n return make.PrimitiveType(primitiveTypeKind);\n } else {\n return createQualIdent(workingCopy, typeName);\n }\n }", "public abstract jq_Type getDeclaredType();", "Coding getType();", "@Override\n\tpublic Type getType() {\n\t\treturn null;\n\t}", "public interface TypeKey {\n}", "uk.ac.cam.acr31.features.javac.proto.GraphProtos.FeatureNode.NodeType getType();", "public abstract AbstractNodeType getType();", "type getType();", "Rule MapType() {\n // Push 1 MapTypeNode onto the value stack\n return Sequence(\n \"map \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \", \",\n FieldType(),\n \"> \",\n actions.pushMapTypeNode());\n }", "@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }", "public abstract Type getType();", "public static void typeFunction(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tif(node.typed != null) {\n\t\t\tPegObject params = node.get(1, null);\n\t\t\tPegObject block = node.get(3, null);\n\t\t\tUniArray<BunType> typeList = new UniArray<BunType>(new BunType[params.size()+1]);\n\t\t\tfor(int i = 0; i < params.size(); i++) {\n\t\t\t\tPegObject p = params.get(i);\n\t\t\t\tBunType ptype = p.typeAt(gamma, 1, null);\n\t\t\t\ttypeList.add(ptype);\n\t\t\t\tif(block != null) {\n\t\t\t\t\tblock.setName(p.get(0), ptype, null);\n\t\t\t\t}\n\t\t\t}\n\t\t\tBunType returnType = node.typeAt(gamma, 2, null);\n\t\t\ttypeList.add(returnType);\n\t\t\tnode.typed = BunType.newFuncType(typeList);\n\t\t\tif(block != null) {\n\t\t\t\tblock.setName(node.get(0), node.typed, node);\n\t\t\t\tblock.setName(\"return\", returnType, null);\n\t\t\t\t//block.gamma.tryMatch(block);\n\t\t\t}\n\t\t\tgamma.setFunctionName(node.textAt(0, \"f\"), node.typed, node);\n\t\t}\n\t}", "public static Type forSymbol( String symbol ) {\n CheckArg.isNotNull(symbol, \"symbol\");\n return TYPE_BY_SYMBOL.get(symbol.toUpperCase().trim());\n }", "@Override\n public Type getType() {\n return null;\n }", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "java.lang.String getType();", "@Override\n\t\tpublic void outABoolExpr(ABoolExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "public abstract JavaType resolveType(java.lang.reflect.Type jdkType);", "String getModeledType(Object elementID) throws Exception;", "protected final E getType(UUID id) throws NoSuchIdException {\n\t\tE entry = dict.get(id);\n\t\tif (entry != null) {\n\t\t\treturn entry;\n\t\t} else {\n\t\t\tthrow new NoSuchIdException(\"Unknown specification id '\"\n\t\t\t\t\t+ id.toString() + \"'\");\n\t\t}\n\t}", "@Override\r\n\t\tpublic final INamedElement resolveTypeForValueContext() {\n\t\t\treturn null;\r\n\t\t}", "public HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;", "@Override\r\n public void linkToSymbol(HashMap<Symbol, SymbolTableEntry> table) {\r\n // link id1\r\n if (id1 != null) {\r\n ste1 = linkIdToSTE(id1, table);\r\n }\r\n // link id3\r\n if (id3 != null) {\r\n ste3 = linkIdToSTE(id3, table);\r\n }\r\n }", "@Override\n public SymbolReference<ReferenceTypeDeclaration>\n tryToSolveType(String name)\n {\n if (foundTypes.containsKey(name)) {\n return SymbolReference.solved(foundTypes.get(name));\n }\n \n SymbolReference<ReferenceTypeDeclaration> result\n = tryToSolveTypeUncached(name);\n \n if (result.isSolved()) {\n foundTypes.put(name, result.getCorrespondingDeclaration());\n }\n return result;\n }", "public Type type(String name);", "MappedDatatype createMappedDatatype();", "PSObject getTypeReference();", "short getNodeType(Object node);", "TypeElement getTypeElement();", "DType getType();", "public Rule mapType()\n \t{\n \t\treturn sequence(SQ_BRACKET_L, noNl(), nonSimpleMapTypes(), noNl(), SP_COL, noNl(), nonSimpleMapTypes(), noNl(), SQ_BRACKET_R);\n \t}", "@Override\n\tpublic MyIDictionary<String, Type> typecheck(MyIDictionary<String, Type> typeEnv) throws MyException {\n\t\treturn null;\n\t}", "public void testTypeASTMapper() {\n MyTAST tast = MyTAST.parameterization(0,\n MyTAST.arrayOf(1,\n MyTAST.arrayOf(2,\n MyTAST.parameterization(3,\n new MyTAST(4)\n )\n )\n ),\n MyTAST.parameterization(5,\n new MyTAST(6),\n MyTAST.arrayOf(7,\n new MyTAST(8)),\n new MyTAST(9),\n new MyTAST(10)\n )\n );\n\n // Pretend myField represents a field of the type represented by tast\n // We have to do this because clients are no longer allowed to create\n // AElements directly; instead, they must vivify.\n ATypeElement<SimpleAnnotation> myAField =\n new AScene<SimpleAnnotation>(SimpleAnnotationFactory.saf)\n .classes.vivify(\"someclass\").fields.vivify(\"somefield\");\n // load it with annotations we can check against IDs\n myAField.tlAnnotationsHere.add(makeTLIdAnno(0));\n assignId(myAField, 1, 0, 0);\n assignId(myAField, 2, 0, 1);\n assignId(myAField, 3, 0);\n assignId(myAField, 4, 0, 0, 0);\n assignId(myAField, 5, 1);\n assignId(myAField, 6, 1, 0);\n assignId(myAField, 7, 1, 1, 0);\n assignId(myAField, 8, 1, 1);\n assignId(myAField, 9, 1, 2);\n // to test vivification, we don't assign 10\n \n // now visit and make sure the ID numbers match up\n MyTASTMapper mapper = new MyTASTMapper();\n mapper.traverse(tast, myAField);\n \n for (int i = 0; i < 11; i++)\n assertTrue(mapper.saw[i]);\n // make sure it vivified #10 and our annotation stuck\n AElement<SimpleAnnotation> e10 = myAField.innerTypes.get(\n new InnerTypeLocation(Arrays.asList(1, 3)));\n assertNotNull(e10);\n int e10aid = (Integer) e10.lookupAnnotation(\"IdAnno\")\n .getFieldValue(\"id\");\n assertEquals(e10aid, 10);\n }", "protected TypeNode insertForwardedReferenceNode (TypeNode parent, String typeName) \n {\n TypeNode node = null;\n \n\t\tif ( typeName == null || typeName.trim().length() == 0 ) return null;\n\n // Same type may be forwarded ref MULTIPLE TIMES\n node = (TypeNode) _nodesHashtable.get(typeName);\n if (node != null) {\n // BUG !!! This FORWARD reference is already in tree since the caller\n // of this method ALREADY checked that this forward ref IS NOT in tree.\n \n TypeDescription meta = (TypeDescription) ((TypeNode)_nodesHashtable.get(typeName)).getObject();\n if ( meta != null ) {\n // Already defined\n node.setLabel(TypeSystemUtils2.getMyShortName(typeName)); // Use short name\n node.setObject(meta);\n _nodesHashtable.put (((TypeDescription)node.getObject()).getName(), node);\n Trace.err(\"??? BUG -- Already defined for \" + typeName);\n }\n } else {\n // NEW forwarded ref\n node = new TypeNode(parent, UimaToolsUtil.getMyShortName(typeName));\n node.setObjectType(IItemTypeConstants.ITEM_TYPE_TYPE); \n // Not yet defined (Forward reference)\n // Cannot use short name if no TypeDescription object (see TreeBaseNode.compare)\n // Trace.trace(\"Forward reference to \" + typeName);\n // _nodesHashtable.put (node.getLabel(), node);\n _nodesHashtable.put (typeName, node);\n \n // Add to undefined type hashtable\n // _undefinedTypesHashtable.put (node.getLabel(), node);\n _undefinedTypesHashtable.put (typeName, node);\n }\n \t\t\n\t\t// Insert \"node\" as child of \"parent\"\n\t\tTypeNode tempNode;\n\t\tif (parent == null) {\n\t\t if (_rootSuper == null) {\n\t\t _rootSuper = node;\n\t\t } else {\n\t\t\t\tif ( (tempNode = _rootSuper.insertChild(node)) != null ) {\n\t\t\t\t\tif (tempNode != node) {\t\t\t\t \n\t\t\t\t\t\t// Duplicate Label\n // Use full name as label\n\t\t\t\t\t\tTrace.trace(\" 1 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\t\t\tnode.setShowFullName(true);\n\t\t\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t\t\t}\t\t\t\t\n\t\t\t\t\t\t_rootSuper.insertChild(node);\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t} else {\n\t\t\t// parent.insertChild (node);\n\t\t\tif ( (tempNode = parent.insertChild(node)) != null && tempNode != node) {\n\t\t\t\t// Duplicate Label. Use full name as label.\n Trace.trace(\" 2 Duplicate (short name) Label:\" + node.getLabel());\n//\t\t\t\tnode.setShowFullName(true);\n\t\t\t\tif (node.getObject() != null) {\n // Use full name as label\n\t\t\t\t\tnode.setLabel(((TypeDescription)node.getObject()).getName());\n\t\t\t\t}\t\t\t\t\n\t\t\t\tparent.insertChild(node);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn node;\n\t}", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();", "String getType();" ]
[ "0.56954634", "0.56719595", "0.56606406", "0.5537295", "0.54903746", "0.54859746", "0.5448054", "0.54459804", "0.5429492", "0.5416236", "0.53964674", "0.53727067", "0.53453875", "0.5345212", "0.533453", "0.5331895", "0.53207386", "0.5311058", "0.53050375", "0.5302331", "0.5297302", "0.52937835", "0.52877176", "0.52840126", "0.52734506", "0.52383417", "0.52174544", "0.52169305", "0.5205013", "0.518627", "0.5182547", "0.51787037", "0.5172482", "0.51723963", "0.5163676", "0.5148401", "0.51465285", "0.5131564", "0.51162624", "0.51076525", "0.50993186", "0.50829387", "0.50823444", "0.50821507", "0.5079649", "0.5068691", "0.50648636", "0.5064787", "0.50637674", "0.503255", "0.5032248", "0.503147", "0.5020109", "0.50140387", "0.50121045", "0.5004653", "0.50011104", "0.49833262", "0.4980932", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791768", "0.49791515", "0.49760023", "0.49679983", "0.4966063", "0.4953564", "0.49521163", "0.4950815", "0.4924378", "0.4921692", "0.49182686", "0.49116486", "0.49116045", "0.49115738", "0.49110487", "0.49107555", "0.49098197", "0.49043098", "0.4901781", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733", "0.49010733" ]
0.58568335
0
/ 3.3 Unary Expressions / get the type out of the typemap, dealias it if necessary, and check that it's the correct type
public void outAUPlusExp(AUPlusExp node) throws TypeException{ Node e = node.getExp(); Type t = typemap.get(e); Type t_dealiased = removeAlias(t); if(t_dealiased instanceof IntType || t_dealiased instanceof RuneType || t_dealiased instanceof Float64Type) typemap.put(node,t); else throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Unary plus used in non-numeric context."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static UnaryExpression typeAs(Expression expression, Class type) { throw Extensions.todo(); }", "@Test\n public void untypedLambda1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x1 x2\", null);\n }", "@Ignore\n @Test\n public void untypedLambda2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n CheckTypeVisitor.Result result = typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x1 x2 x3\", null);\n assertEquals(type, result.type);\n }", "public Type removeAlias(Type t){\n while(t instanceof AliasType){\n AliasType aliast = (AliasType) t;\n t = aliast.getType();\n }\n return t;\n }", "public static UnaryExpression convertChecked(Expression expression, Class type) { throw Extensions.todo(); }", "@Test\n public void untypedLambdaError1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x2 x1\", null, 1);\n }", "@Test\n public void untypedLambdaError2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x2 x1 x3\", null, 1);\n }", "public Object visitUnaryPlusExpression(GNode n) {\n nonboolean = true;\n \n return dispatch(n.getGeneric(0));\n }", "Unary expr(Expr e);", "public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type) { throw Extensions.todo(); }", "public void outATypeCastExp(ATypeCastExp node){\n\tPExp exp = node.getExp();\n\tType exptype = removeAlias(typemap.get(exp));\n\tPType castedtype = node.getType();\n\tType finaltype;\n\tif(castedtype instanceof AIntType){\n\t finaltype = new IntType();\n\t}\n\telse if(castedtype instanceof ABoolType){\n\t finaltype = new BooleanType();\n\t}\n\telse if(castedtype instanceof AFloatType){\n\t finaltype = new Float64Type();\n\t}\n\telse if(castedtype instanceof ARuneType){\n\t finaltype = new RuneType();\n\t}\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast to a disallowed type.\");\n \n\tif((exptype instanceof IntType) ||(exptype instanceof Float64Type) ||(exptype instanceof BooleanType) ||(exptype instanceof RuneType)) typemap.put(node,finaltype);\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast from a disallowed type.\");\n }", "public static UnaryExpression convert_(Expression expression, Class type, Method method) { throw Extensions.todo(); }", "@Override\r\n\tpublic Object visitUnaryExpression(UnaryExpression unaryExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tString exprType = (String) unaryExpression.expression.visit(this, arg);\r\n\t\tif(unaryExpression.op.kind == NOT) {\r\n\t\t\tif(!exprType.equals(booleanType)) {\r\n\t\t\t\tthrow new TypeCheckException(\"not operator is undefined for \" + exprType, unaryExpression);\r\n\t\t\t}\t\t\t\r\n\t\t} else if (unaryExpression.op.kind == MINUS) { \r\n\t\t\tif (!exprType.equals(intType)){\r\n\t\t\t\tthrow new TypeCheckException(\"minus operator is undefined for \" + exprType, unaryExpression);\r\n\t\t\t}\r\n\t\t} else {\t\t\t\r\n\t\t\tthrow new TypeCheckException(\"uncompatible unary expression\", unaryExpression);\r\n\t\t}\t\t\r\n\t\tunaryExpression.setType(exprType);\r\n\t\treturn exprType;\r\n\t}", "private static boolean functionTypeAlias_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_1_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && componentName(b, l + 1);\n r = r && functionTypeAlias_1_3(b, l + 1);\n r = r && consumeToken(b, EQ);\n r = r && type(b, l + 1);\n r = r && functionTypeAlias_1_6(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public Type getExpressionType();", "@Override\r\n\tpublic void visit(UnaryExpression unaryExpression) {\n\r\n\t}", "private static UnaryExpr retrieveUnaryExpression(Expression expression) {\n return expression.asUnaryExpr();\n }", "public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n final Type tleft = _left.typeCheck(stable);\n final Type tright = _right.typeCheck(stable);\n\n if (tleft.isSimple() && tright.isSimple()) {\n if (tleft != tright) {\n if (tleft instanceof BooleanType) {\n _right = new CastExpr(_right, Type.Boolean);\n }\n else if (tright instanceof BooleanType) {\n _left = new CastExpr(_left, Type.Boolean);\n }\n else if (tleft instanceof NumberType ||\n tright instanceof NumberType) {\n _left = new CastExpr(_left, Type.Real);\n _right = new CastExpr(_right, Type.Real);\n }\n else { // both compared as strings\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n }\n }\n else if (tleft instanceof ReferenceType) {\n _right = new CastExpr(_right, Type.Reference);\n }\n else if (tright instanceof ReferenceType) {\n _left = new CastExpr(_left, Type.Reference);\n }\n // the following 2 cases optimize @attr|.|.. = 'string'\n else if (tleft instanceof NodeType && tright == Type.String) {\n _left = new CastExpr(_left, Type.String);\n }\n else if (tleft == Type.String && tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.String);\n }\n // optimize node/node\n else if (tleft instanceof NodeType && tright instanceof NodeType) {\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n else if (tleft instanceof NodeType && tright instanceof NodeSetType) {\n // compare(Node, NodeSet) will be invoked\n }\n else if (tleft instanceof NodeSetType && tright instanceof NodeType) {\n swapArguments(); // for compare(Node, NodeSet)\n }\n else {\n // At least one argument is of type node, node-set or result-tree\n\n // Promote an expression of type node to node-set\n if (tleft instanceof NodeType) {\n _left = new CastExpr(_left, Type.NodeSet);\n }\n if (tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.NodeSet);\n }\n\n // If one arg is a node-set then make it the left one\n if (tleft.isSimple() ||\n tleft instanceof ResultTreeType &&\n tright instanceof NodeSetType) {\n swapArguments();\n }\n\n // Promote integers to doubles to have fewer compares\n if (_right.getType() instanceof IntType) {\n _right = new CastExpr(_right, Type.Real);\n }\n }\n return _type = Type.Boolean;\n }", "@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}", "private Expr upcast(Expr a, Type fType) {\n if (Types.baseType(fType) instanceof FunctionType) {\n return upcastToFunctionType(a, (FunctionType)Types.baseType(fType), false);\n } else if (!ts.typeDeepBaseEquals(fType, a.type(), context)) {\n Position pos = a.position();\n return makeCast(a.position(), a, fType);\n } else {\n return a;\n }\n }", "@Test\n public void unaryTest() {\n UnaryOperator<String> postfix = (a) -> a + \"postfix\";\n UnaryOperator<Integer> increment = (a) -> a + 1;\n\n Assert.assertEquals(\"valuepostfix\", postfix.apply(\"value\"));\n Assert.assertEquals(new Integer(2), increment.apply(1));\n }", "public static UnaryExpression unbox(Expression expression, Class type) {\n return makeUnary(ExpressionType.Unbox, expression, type);\n }", "public static UnaryExpression convertChecked_(Expression expression, Class type, Method method) { throw Extensions.todo(); }", "public static UnaryExpression makeUnary(ExpressionType expressionType, Expression expression, Class type, Method method) { assert type != null; throw Extensions.todo(); }", "public Expression getType();", "public static Expression unwrap( Expression expr ) {\n\tType etype = ExpressionInternal.class.cast(expr).type() ;\n\n\tif (etype.equals( _t(\"java.lang.Boolean\")))\n\t return _call( expr, \"booleanValue\", _s(_boolean()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Byte\") ))\n\t return _call( expr, \"byteValue\", _s(_byte()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Character\") ))\n\t return _call( expr, \"charValue\", _s(_char()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Short\") ))\n\t return _call( expr, \"shortValue\", _s(_short()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Integer\") ))\n\t return _call( expr, \"intValue\", _s(_int()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Long\") ))\n\t return _call( expr, \"longValue\", _s(_long()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Float\") ))\n\t return _call( expr, \"floatValue\", _s(_float()) ) ;\n\telse if (etype.equals( _t(\"java.lang.Double\") ))\n\t return _call( expr, \"doubleValue\", _s(_double()) ) ;\n\telse return expr ;\n }", "private boolean canGenericOperatorsBeRewrite(Expression virtExpr){\r\n\r\n\t for(GenericNames name : GenericNames.values()){\r\n\t\tif(!name.equals(GenericNames.ON_NEW_NAME))\r\n\t\t if(!this.canOperatorBeRewrittenForExpression(name, virtExpr))\r\n\t\t\treturn false;\r\n\t }\r\n\t\treturn true;\r\n\t}", "private Expr boxingUpcastIfNeeded(Expr a, Type fType) {\n if (a instanceof NullLit_c) {\n return makeCast(a.position(), a, fType);\n }\n \n if (Types.baseType(fType) instanceof FunctionType) {\n return upcastToFunctionType(a, (FunctionType)Types.baseType(fType), true);\n }\n \n if (ts.isObjectType(a.type(), context) && ts.isObjectType(fType, context)) {\n // implicit C++ level upcast is good enough (C++ and X10 have same class hierarchy structure)\n return a;\n }\n \n if (!ts.typeDeepBaseEquals(fType, a.type(), context)) {\n Position pos = a.position();\n return makeCast(a.position(), a, fType);\n } else {\n return a;\n }\n }", "public void typeInference() {\n\t\tMathOperation addition = (a, b) -> a + b;\n\t\t// Data Type of a, b can be referred from MathOperation functional interface\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t}", "public static boolean type_alias(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"type_alias\")) return false;\n if (!nextTokenIs(b, KEYWORD_TYPE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TYPE_ALIAS, null);\n r = consumeToken(b, KEYWORD_TYPE);\n p = r; // pin = 1\n r = r && report_error_(b, type_name(b, l + 1));\n r = p && report_error_(b, consumeToken(b, EQ)) && r;\n r = p && report_error_(b, model_field_type_and_attrs(b, l + 1)) && r;\n r = p && report_error_(b, type_alias_4(b, l + 1)) && r;\n r = p && consumeToken(b, EOL) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Override\n\tpublic void outACastExpr(ACastExpr node) {\n\t\tType t = nodeTypes.get(node.getExpr());\n\t\tboxIt(t); \n\t\tType result = nodeTypes.get(node.getType()); \n\t\til.append(fi.createCast(getBecelType(t), getBecelType(result)));\n\t\tunboxIt(result); \t\n\t}", "@Override\n\tpublic void VisitUnaryNode(UnaryOperatorNode Node) {\n\n\t}", "@Override\r\n\tpublic void visit(CastExpression castExpression) {\n\r\n\t}", "ReferenceContainer<E> remap(UnaryOperator<PropertySymbol> mapper);", "@SuppressWarnings(\"unchecked\")\n public static List getExpressionType(Expression e) {\n if (e instanceof Identifier) {\n Symbol var = ((Identifier)e).getSymbol();\n if (var != null) {\n return var.getTypeSpecifiers();\n }\n } else if (e instanceof ArrayAccess) {\n ArrayAccess aa = (ArrayAccess)e;\n List ret = getExpressionType(aa.getArrayName());\n if (ret != null && !ret.isEmpty()) {\n LinkedList ret0 = new LinkedList(ret);\n for (int i = 0; i < aa.getNumIndices(); ++i) {\n if (ret0.getLast() instanceof PointerSpecifier) {\n ret0.removeLast();\n }\n }\n return ret0;\n }\n } else if (e instanceof AccessExpression) {\n //Symbol var = ((AccessExpression)e).getSymbol();\n //if ( var != null )\n Symbol var = new AccessSymbol((AccessExpression)e);\n return var.getTypeSpecifiers();\n } else if (e instanceof AssignmentExpression) {\n return getExpressionType(((AssignmentExpression)e).getLHS());\n } else if (e instanceof CommaExpression) {\n List<Traversable> children = e.getChildren();\n return getExpressionType(\n (Expression)children.get(children.size() - 1));\n } else if (e instanceof ConditionalExpression) {\n return getExpressionType(\n ((ConditionalExpression)e).getTrueExpression());\n } else if (e instanceof FunctionCall) {\n Expression fc_name = ((FunctionCall)e).getName();\n if (fc_name instanceof Identifier) {\n Symbol fc_var = ((Identifier)fc_name).getSymbol();\n if (fc_var != null) {\n return fc_var.getTypeSpecifiers();\n }\n }\n } else if (e instanceof IntegerLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.LONG);\n return ret;\n } else if (e instanceof BooleanLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.BOOL);\n return ret;\n } else if (e instanceof CharLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.CHAR);\n return ret;\n } else if (e instanceof StringLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.CHAR);\n ret.add(PointerSpecifier.UNQUALIFIED);\n return ret;\n } else if (e instanceof FloatLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.DOUBLE);\n return ret;\n } else if (e instanceof Typecast) {\n List ret = new ArrayList();\n List specs = ((Typecast)e).getSpecifiers();\n for (int i = 0; i < specs.size(); i++) {\n Object spec = specs.get(i);\n if (spec instanceof Specifier) {\n ret.add(spec);\n } else if (spec instanceof Declarator) {\n ret.addAll(((Declarator)spec).getSpecifiers());\n }\n }\n return ret;\n } else if (e instanceof UnaryExpression) {\n UnaryExpression ue = (UnaryExpression)e;\n UnaryOperator op = ue.getOperator();\n List ret = getExpressionType(ue.getExpression());\n if (ret != null) {\n LinkedList ret0 = new LinkedList(ret);\n if (op == UnaryOperator.ADDRESS_OF) {\n ret0.addLast(PointerSpecifier.UNQUALIFIED);\n } else if (op == UnaryOperator.DEREFERENCE) {\n ret0.removeLast();\n }\n return ret0;\n }\n } else if (e instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression)e;\n BinaryOperator op = be.getOperator();\n if (op.isCompare() || op.isLogical()) {\n List ret = new ArrayList(1);\n ret.add(Specifier.LONG);\n return ret;\n } else {\n return getExpressionType(be.getLHS());\n }\n } else if (e instanceof VaArgExpression) {\n return ((VaArgExpression)e).getSpecifiers();\n }\n PrintTools.printlnStatus(1, \"[WARNING] Unknown expression type: \", e);\n return null;\n }", "public Object visitUnaryMinusExpression(GNode n) {\n Object a;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n \n dostring = false;\n \n if (a instanceof Long) {\n return - (Long) a;\n }\n else {\n return \"- \" + parens(a);\n }\n }", "protected TypeMapper<?> normalizeSemantics() {\n\t\tEvent event = SpeedTracerLogger\n\t\t\t\t.start(CompilerEventType.JAVA_NORMALIZERS);\n\t\ttry {\n\t\t\tDevirtualizer.exec(jprogram);\n\t\t\tCatchBlockNormalizer.exec(jprogram);\n\t\t\tPostOptimizationCompoundAssignmentNormalizer.exec(jprogram);\n\t\t\tLongCastNormalizer.exec(jprogram);\n\t\t\tLongEmulationNormalizer.exec(jprogram);\n\t\t\tTypeCoercionNormalizer.exec(jprogram);\n\t\t\tif (options.isIncrementalCompileEnabled()) {\n\t\t\t\t// Per file compilation reuses type JS even as references (like\n\t\t\t\t// casts) in other files\n\t\t\t\t// change, which means all legal casts need to be allowed now\n\t\t\t\t// before they are actually\n\t\t\t\t// used later.\n\t\t\t\tComputeExhaustiveCastabilityInformation.exec(jprogram);\n\t\t\t} else {\n\t\t\t\t// If trivial casts are pruned then one can use smaller runtime\n\t\t\t\t// castmaps.\n\t\t\t\tComputeCastabilityInformation.exec(jprogram,\n\t\t\t\t\t\t!shouldOptimize() /* recordTrivialCasts */);\n\t\t\t}\n\t\t\tImplementCastsAndTypeChecks.exec(jprogram,\n\t\t\t\t\tshouldOptimize() /* pruneTrivialCasts */);\n\t\t\tImplementJsVarargs.exec(jprogram);\n\t\t\tArrayNormalizer.exec(jprogram);\n\t\t\tEqualityNormalizer.exec(jprogram);\n\t\t\tTypeMapper<?> typeMapper = getTypeMapper();\n\t\t\tResolveRuntimeTypeReferences.exec(jprogram, typeMapper,\n\t\t\t\t\tgetTypeOrder());\n\t\t\treturn typeMapper;\n\t\t} finally {\n\t\t\tevent.end();\n\t\t}\n\t}", "public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;", "public static UnaryExpression convert_(Expression expression, Class clazz) { throw Extensions.todo(); }", "@SuppressWarnings(\"unchecked\")\n public static LinkedList getVariableType(Expression e) {\n LinkedList ret = new LinkedList();\n if (e instanceof Identifier) {\n Symbol var = ((Identifier)e).getSymbol();\n if (var != null) {\n ret.addAll(var.getTypeSpecifiers());\n }\n } else if (e instanceof ArrayAccess) {\n ArrayAccess aa = (ArrayAccess)e;\n ret = getVariableType(aa.getArrayName());\n for (int i = 0; i < aa.getNumIndices(); ++i) {\n if (ret.getLast() instanceof PointerSpecifier) {\n ret.removeLast();\n }\n }\n } else if (e instanceof AccessExpression) {\n //Symbol var = ((AccessExpression)e).getSymbol();\n Symbol var = new AccessSymbol((AccessExpression)e);\n //if ( var != null )\n ret.addAll(var.getTypeSpecifiers());\n } else if (e instanceof UnaryExpression) {\n UnaryExpression ue = (UnaryExpression)e;\n if (ue.getOperator() == UnaryOperator.DEREFERENCE) {\n ret = getVariableType(ue.getExpression());\n if (ret.getLast() instanceof PointerSpecifier) {\n ret.removeLast();\n } else {\n ret.clear();\n }\n }\n }\n return ret;\n }", "private static boolean functionTypeAlias_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_0_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && functionPrefix(b, l + 1);\n r = r && functionTypeAlias_0_3(b, l + 1);\n r = r && formalParameterList(b, l + 1);\n r = r && functionTypeAlias_0_5(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public final void castExpression() throws RecognitionException {\n int castExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"castExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(830, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 123) ) { return ; }\n // Java.g:831:5: ( '(' primitiveType ')' unaryExpression | '(' ( type | expression ) ')' unaryExpressionNotPlusMinus )\n int alt147=2;\n try { dbg.enterDecision(147);\n\n int LA147_0 = input.LA(1);\n\n if ( (LA147_0==66) ) {\n int LA147_1 = input.LA(2);\n\n if ( (synpred233_Java()) ) {\n alt147=1;\n }\n else if ( (true) ) {\n alt147=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 147, 1, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 147, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(147);}\n\n switch (alt147) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:831:8: '(' primitiveType ')' unaryExpression\n {\n dbg.location(831,8);\n match(input,66,FOLLOW_66_in_castExpression5047); if (state.failed) return ;\n dbg.location(831,12);\n pushFollow(FOLLOW_primitiveType_in_castExpression5049);\n primitiveType();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(831,26);\n match(input,67,FOLLOW_67_in_castExpression5051); if (state.failed) return ;\n dbg.location(831,30);\n pushFollow(FOLLOW_unaryExpression_in_castExpression5053);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:832:8: '(' ( type | expression ) ')' unaryExpressionNotPlusMinus\n {\n dbg.location(832,8);\n match(input,66,FOLLOW_66_in_castExpression5062); if (state.failed) return ;\n dbg.location(832,12);\n // Java.g:832:12: ( type | expression )\n int alt146=2;\n try { dbg.enterSubRule(146);\n try { dbg.enterDecision(146);\n\n try {\n isCyclicDecision = true;\n alt146 = dfa146.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(146);}\n\n switch (alt146) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:832:13: type\n {\n dbg.location(832,13);\n pushFollow(FOLLOW_type_in_castExpression5065);\n type();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:832:20: expression\n {\n dbg.location(832,20);\n pushFollow(FOLLOW_expression_in_castExpression5069);\n expression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(146);}\n\n dbg.location(832,32);\n match(input,67,FOLLOW_67_in_castExpression5072); if (state.failed) return ;\n dbg.location(832,36);\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_castExpression5074);\n unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 123, castExpression_StartIndex); }\n }\n dbg.location(833, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"castExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public boolean areIntegral(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "private void executeUnaryExpression(Tree tree) {\n ProgramState.Pop unstackUnary = programState.unstackValue(1);\n programState = unstackUnary.state;\n SymbolicValue unarySymbolicValue = constraintManager.createSymbolicValue(tree);\n unarySymbolicValue.computedFrom(unstackUnary.values);\n if (tree.is(Tree.Kind.POSTFIX_DECREMENT, Tree.Kind.POSTFIX_INCREMENT, Tree.Kind.PREFIX_DECREMENT, Tree.Kind.PREFIX_INCREMENT)\n && ((UnaryExpressionTree) tree).expression().is(Tree.Kind.IDENTIFIER)) {\n programState = programState.put(((IdentifierTree) ((UnaryExpressionTree) tree).expression()).symbol(), unarySymbolicValue);\n }\n if(tree.is(Tree.Kind.POSTFIX_DECREMENT, Tree.Kind.POSTFIX_INCREMENT)) {\n programState = programState.stackValue(unstackUnary.values.get(0));\n } else {\n programState = programState.stackValue(unarySymbolicValue);\n }\n }", "private Code<?> transform(Code.Quantifier e) {\n\t\tPair<SemanticType, Integer>[] e_types = e.types;\n\t\tPair<SemanticType, Integer>[] n_types = new Pair[e_types.length];\n\t\tCode<?> invariant = null;\n\t\tfor (int i = 0; i != e_types.length; ++i) {\n\t\t\tPair<SemanticType, Integer> p1 = e_types[i];\n\t\t\tCode.Variable var = Code.Variable(p1.first(), p1.second());\n\t\t\tPair<SemanticType,Code<?>> p2 = expand(var, p1.first(), 0);\n\t\t\tn_types[i] = new Pair<SemanticType,Integer>(p2.first(),p1.second());\n\t\t\tCode<?> ei = p2.second();\t\t\t\n\t\t\tif (ei != null) {\n\t\t\t\tinvariant = invariant == null ? ei : and(invariant, ei);\n\t\t\t}\n\t\t}\n\t\tCode<?> body = transform(e.operands[0]);\n\t\tif (invariant != null) {\n\t\t\t// We need to treat universal and existential quantifiers\n\t\t\t// differently.\n\t\t\tif(e.opcode == Code.Op.EXISTS) {\n\t\t\t\tbody = and(invariant, body);\n\t\t\t} else {\n\t\t\t\tbody = implies(invariant, body);\n\t\t\t}\n\t\t}\n\t\treturn Code.Quantifier(e.type, e.opcode, body, n_types, e.attributes());\n\t}", "private void registerTypeAppendOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n List<SqlNode> operandList =\n new ArrayList<SqlNode>(Arrays.asList(operands));\n SqlDataTypeSpec typeSpec =\n SqlTypeUtil.convertTypeToSpec(call.getType());\n operandList.add(typeSpec);\n return new SqlCall(\n op,\n operandList.toArray(new SqlNode[0]),\n SqlParserPos.ZERO);\n }\n });\n }", "private SymbolUnaryExpression(CType data_type) throws IllegalArgumentException {\n\t\tsuper(SymbolClass.unary_expression, data_type);\n\t}", "public BastUnaryExpr(TokenAndHistory[] tokens, AbstractBastExpr operand, int type) {\n super(tokens, operand);\n this.type = type;\n fieldMap.put(BastFieldConstants.UNARY_EXPR_OPERAND, new BastField(operand));\n }", "public static UnaryExpression throw_(Expression expression, Class type) { throw Extensions.todo(); }", "@Override\r\n\tpublic boolean visit(CastExpression node) {\r\n\t\toperator(node,node.getClass().toString());\r\n\t\treturn true;\r\n\t}", "public static UnaryExpression rethrow(Class type) { throw Extensions.todo(); }", "private void jetUnopExpr(){\n\t\tUnopExpr unopExpr = (UnopExpr) rExpr;\n\t\tif(unopExpr instanceof LengthExpr){\n\t\t\t//length_expr = \"length\" immediate;\n\t\t\t//$i1 = lengthof $r10\n\t\t\t//(assert (= $i1 lengthMap.get($r10)))\n\t\t\tLengthExpr lengthExpr = (LengthExpr) unopExpr;\n\t\t\tValue immediate = lengthExpr.getOp();\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tthis.exprStr = immediate.toString();\n\t\t\t}else{\n\t\t\t\tthis.exprStr = fileGenerator.getRenameOf(immediate, false, this.stmtIdx);\n\t\t\t}\n\t\t}else if(unopExpr instanceof NegExpr){\n\t\t\t//neg_expr = \"-\" immediate;\n\t\t\t//a = -b\n\t\t\t//(assert (= a (- 0 b))))\n\t\t\tNegExpr negExpr = (NegExpr) unopExpr;\n\t\t\tValue immediate = negExpr.getOp();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tsb.append(\"(- 0 \");\n\t\t\tif(immediate instanceof Constant){\n\t\t\t\tsb.append(immediate.toString());\n\t\t\t}else{\n\t\t\t\tsb.append(fileGenerator.getRenameOf(immediate, false, this.stmtIdx));\n\t\t\t}\n\t\t\tsb.append(\")\");\n\t\t\tthis.exprStr = sb.toString();\n\t\t}\n\t}", "public interface RelationTypeExtractor {\n String getType(RelationEval e, boolean isActual);\n}", "public interface UnsafeFormulaManager {\n\n /**\n * Type a given Formula (Formulas given by the UnsafeFormulaManager do not have to be typed!)\n * @param type the target type\n * @param f the formula to type\n * @return the typed formula\n */\n <T extends Formula> T typeFormula(FormulaType<T> type, Formula f);\n\n /**\n * see getArguments.\n * @param f\n * @return\n */\n int getArity(Formula f);\n\n /**\n * see getArguments.\n * @param f\n * @param n\n * @return\n */\n Formula getArg(Formula f, int n);\n\n /**\n * Checks if the given Formula is an atom.\n * @param f\n * @return\n */\n boolean isAtom(Formula f);\n\n /**\n * Checks if the given Formula is a variable.\n * (either free or quantified)\n * @param f\n * @return\n */\n boolean isVariable(Formula f);\n\n /**\n * Checks if the given Formula is a free (not quantified) variable.\n * @param f\n * @return\n */\n boolean isFreeVariable(Formula f);\n\n /**\n * Checks if the given Formula is a bound (by a quantifier) variable.\n * @param f\n * @return\n */\n boolean isBoundVariable(Formula f);\n\n /**\n * Checks if the given Formula is a Number.\n * @param pTt\n * @return\n */\n boolean isNumber(Formula pTt);\n /**\n * Checks if the given Formula is an uninterpreted function call.\n * @param f\n * @return\n */\n boolean isUF(Formula f);\n\n /**\n * Checks if the given Formula is quantified (either FORALL ..., or EXISTS ...).\n * @param f\n * @return\n */\n boolean isQuantification(Formula f);\n\n /**\n * Get the body of the given, quantified, formula.\n *\n * Precondition:\n * isQuantification(f) == true\n *\n * @param f\n * @return\n */\n BooleanFormula getQuantifiedBody(Formula pQuantifiedFormula);\n\n /**\n * Replace the body of a quantified formula.\n *\n * Precondition:\n * isQuantification(pF) == true\n *\n * @param pTt\n * @param pNewBody\n * @return\n */\n BooleanFormula replaceQuantifiedBody(BooleanFormula pF, BooleanFormula pNewBody);\n\n /**\n * Returns the name of the formula (or function)\n * @param f\n * @return\n */\n String getName(Formula f);\n\n /**\n * Replaces the name and the arguments of the given formula.\n * The old and the new name need to be of the same type.\n * If f is a variable, use an empty list of arguments.\n * @param f\n * @param newName\n * @param args\n * @return\n */\n <T extends Formula> T replaceArgsAndName(T f, String newName, List<Formula> args);\n /**\n * Replaces the arguments of the given formula\n * @param f\n * @param args\n * @return\n */\n <T extends Formula> T replaceArgs(T f, List<Formula> args);\n\n /**\n * If the given formula is a numeral (i.e., non-boolean) equality \"x = y\",\n * return a list {@code x<=y, x>=y}.\n *\n * Otherwise, return the unchanged formula.\n * Note:\n * 1) Returned list always has one or two elements.\n * 2) Conjunction over the returned list is equivalent to the input formula.\n */\n <T extends Formula> List<T> splitNumeralEqualityIfPossible(T f);\n\n /**\n * Substitute every occurrence of any item from {@code changeFrom}\n * in formula {@code f} to the corresponding occurrence from {@code changeTo}.\n *\n * E.g. if {@code changeFrom} contains a variable {@code a} and\n * {@code changeTo} contains a variable {@code b} all occurrences of {@code a}\n * will be changed to {@code b} in the returned formula.\n *\n * @param f Formula to change\n * @param changeFrom List of things to change from.\n * @param changeTo List of things to change to.\n * @return Formula with variables being replaced.\n *\n */\n <T1 extends Formula, T2 extends Formula> T1\n substitute(T1 f, List<T2> changeFrom, List<T2> changeTo);\n\n <T1 extends Formula, T2 extends Formula> T1\n substitute(T1 f, Map<T2, T2> fromToMapping);\n\n /**\n * Simplify a given formula (as good as possible).\n * Equivalence must be ensured!\n *\n * A solver that does not provide a simplify method\n * might just return the original formula.\n *\n * @param The input formula\n * @return Simplified version of the formula\n */\n <T extends Formula> T simplify(T f);\n\n}", "private final TypeSAT GetTypeSAT(String expression, String leftExpression, String rightExpression) {\r\n // remove extra brackets\r\n expression = this.RemoveExtraBrackets(expression);\r\n // look for binary implies\r\n if (expression.contains(\">\")) {\r\n if (this.IsBinaryOp(expression, \">\", leftExpression, rightExpression)) {\r\n return TypeSAT.Implies;\r\n }\r\n \r\n }\r\n \r\n // look for binary and\r\n if (expression.contains(\"&\")) {\r\n if (this.IsBinaryOp(expression, \"&\", leftExpression, rightExpression)) {\r\n return TypeSAT.And;\r\n }\r\n \r\n }\r\n \r\n // look for binary or\r\n if (expression.contains(\"|\")) {\r\n if (this.IsBinaryOp(expression, \"|\", leftExpression, rightExpression)) {\r\n return TypeSAT.Or;\r\n }\r\n \r\n }\r\n \r\n // look for binary AU\r\n if (expression.startsWith(\"A(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.AU;\r\n }\r\n \r\n }\r\n \r\n // look for binary EU\r\n if (expression.startsWith(\"E(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.EU;\r\n }\r\n \r\n }\r\n \r\n // look for unary T, F, !, AX, EX, AG, EG, AF, EF, atomic\r\n if (expression.equals(\"T\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllTrue;\r\n }\r\n \r\n if (expression.equals(\"F\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllFalse;\r\n }\r\n \r\n if (this.IsAtomic(expression)) {\r\n this.leftExpression = expression;\r\n return TypeSAT.Atomic;\r\n }\r\n \r\n if (expression.startsWith(\"!\")) {\r\n this.leftExpression = expression.substring(1,expression.length());\r\n return TypeSAT.Not;\r\n }\r\n \r\n if (expression.startsWith(\"AX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AX;\r\n }\r\n \r\n if (expression.startsWith(\"EX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n System.out.println(\"exp\"+leftExpression);\r\n return TypeSAT.EX;\r\n }\r\n \r\n if (expression.startsWith(\"EF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EF;\r\n }\r\n \r\n if (expression.startsWith(\"EG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EG;\r\n }\r\n \r\n if (expression.startsWith(\"AF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AF;\r\n }\r\n \r\n if (expression.startsWith(\"AG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AG;\r\n }\r\n \r\n return TypeSAT.Unknown;\r\n }", "@Test\n public void testAlteringUserTypeNestedWithinMap() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<map<text, \", \"map<text, frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, {'firstValue':{a:1}})\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, map(\"firstValue\", userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, {'secondValue':{a:2, b:2}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, {'thirdValue':{a:3}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, {'fourthValue':{b:4}})\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n }\n }", "public final void rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3036:1: ( ( '~' ) | ( '-' ) | ( 'not' ) | ( '#' ) | ( 'old' ) )\n int alt20=5;\n switch ( input.LA(1) ) {\n case 34:\n {\n alt20=1;\n }\n break;\n case 29:\n {\n alt20=2;\n }\n break;\n case 35:\n {\n alt20=3;\n }\n break;\n case 36:\n {\n alt20=4;\n }\n break;\n case 37:\n {\n alt20=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 20, 0, input);\n\n throw nvae;\n }\n\n switch (alt20) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3037:1: ( '~' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3037:1: ( '~' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3038:1: '~'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorTildeKeyword_0_1_0_0()); \n match(input,34,FOLLOW_34_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06565); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorTildeKeyword_0_1_0_0()); \n\n }\n\n\n }\n break;\n case 2 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3045:6: ( '-' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3045:6: ( '-' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3046:1: '-'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorHyphenMinusKeyword_0_1_0_1()); \n match(input,29,FOLLOW_29_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06585); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorHyphenMinusKeyword_0_1_0_1()); \n\n }\n\n\n }\n break;\n case 3 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3053:6: ( 'not' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3053:6: ( 'not' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3054:1: 'not'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNotKeyword_0_1_0_2()); \n match(input,35,FOLLOW_35_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06605); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNotKeyword_0_1_0_2()); \n\n }\n\n\n }\n break;\n case 4 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3061:6: ( '#' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3061:6: ( '#' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3062:1: '#'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNumberSignKeyword_0_1_0_3()); \n match(input,36,FOLLOW_36_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06625); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorNumberSignKeyword_0_1_0_3()); \n\n }\n\n\n }\n break;\n case 5 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3069:6: ( 'old' )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3069:6: ( 'old' )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:3070:1: 'old'\n {\n before(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorOldKeyword_0_1_0_4()); \n match(input,37,FOLLOW_37_in_rule__AstExpressionUnary__UnaryOperatorAlternatives_0_1_06645); \n after(grammarAccess.getAstExpressionUnaryAccess().getUnaryOperatorOldKeyword_0_1_0_4()); \n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "private static OperatorBuilder unary(String symbol, DoubleUnaryOperator unaryOp, Type type) {\n if (unaryOp == null) {\n throw new IllegalArgumentException(\"operator argument must not be null\");\n }\n if (type.arity() != 1) {\n throw new IllegalArgumentException(\"type argument must be PREFIX or POSTFIX\");\n }\n // XXX ensure valid symbol\n return new OperatorBuilder(unaryOp, null, symbol, 90, type);\n }", "public Rule type()\n \t{\n \t\treturn firstOf(simpleMapType(), nonSimpleMapTypes());\n \t}", "OpFunctionCast createOpFunctionCast();", "@Override\n\t\tpublic void outAEqExpr(AEqExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "@Override\n public Type visit(MapType mapType) {\n Type keyType = mapType.getKeyType().accept(this);\n Type valueType = mapType.getValueType().accept(this);\n if (mapType.getValueType().isNullable()) {\n return Types.MapType.ofOptional(getNextId(), getNextId(), keyType, valueType);\n } else {\n return Types.MapType.ofRequired(getNextId(), getNextId(), keyType, valueType);\n }\n }", "private Expression evalExpressionAndSetLeft(Expression exp) {\n Type rightExpression = exp.getRightExpressionType(); // Get the right type from the given expression\n\n\t\t// Expression not filled yet, so return unmodified expression\n\t\tif (rightExpression.equals(Type.EMPTY)) {\n \t\treturn exp;\n \t}\n \tType typeOfExpression = typeConversionRules.expressionType(exp); // Look up the given expression's type in the Type Conversion Rules\n \tif (typeOfExpression == null) {\n \t\tthrow new UndeterminableTypeException(\"Expression not found in Type Conversion Rules\");\n \t}\n\n \t// Set evaluated expression to the expression's left type and reset other fields\n \texp.setLeftExpressionType(typeOfExpression);\n \texp.setExpressionSymbol(Connector.empty);\n \texp.setRightExpressionType(Type.EMPTY);\n \treturn exp;\n }", "public boolean areNumeric(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\ttypeone = removeAlias(typeone);\n//\ttypetwo = removeAlias(typetwo);\n//}\n \t\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "private static List<Type> getExprTypes(Expr... args) {\n List<Type> argTypes = new ArrayList<Type> (args.length);\n for (Expr a : args) {\n argTypes.add(a.type());\n }\n return argTypes;\n }", "public interface Unary extends Expr \n{\n /** Unary expression operator. */\n public static enum Operator {\n BIT_NOT (\"~\", true),\n NEG (\"-\", true),\n POST_INC (\"++\", false),\n POST_DEC (\"--\", false),\n PRE_INC (\"++\", true),\n PRE_DEC (\"--\", true),\n POS (\"+\", true),\n NOT (\"!\", true),\n CARET (\"^\", true),\n BAR (\"|\", true),\n AMPERSAND(\"&\", true),\n STAR (\"*\", true),\n SLASH (\"/\", true),\n PERCENT (\"%\", true);\n\n protected boolean prefix;\n protected String name;\n\n private Operator(String name, boolean prefix) {\n this.name = name;\n this.prefix = prefix;\n }\n\n /** Returns true of the operator is a prefix operator, false if\n * postfix. */\n public boolean isPrefix() { return prefix; }\n\n @Override public String toString() { return name; }\n }\n\n public static final Operator BIT_NOT = Operator.BIT_NOT;\n public static final Operator NEG = Operator.NEG;\n public static final Operator POST_INC = Operator.POST_INC;\n public static final Operator POST_DEC = Operator.POST_DEC;\n public static final Operator PRE_INC = Operator.PRE_INC;\n public static final Operator PRE_DEC = Operator.PRE_DEC;\n public static final Operator POS = Operator.POS;\n public static final Operator NOT = Operator.NOT;\n public static final Operator CARET = Operator.CARET;\n public static final Operator BAR = Operator.BAR;\n public static final Operator AMPERSAND = Operator.AMPERSAND;\n public static final Operator STAR = Operator.STAR;\n public static final Operator SLASH = Operator.SLASH;\n public static final Operator PERCENT = Operator.PERCENT;\n\n /** The sub-expression on that to apply the operator. */\n Expr expr();\n /** Set the sub-expression on that to apply the operator. */\n Unary expr(Expr e);\n\n /** The operator to apply on the sub-expression. */\n Operator operator();\n /** Set the operator to apply on the sub-expression. */\n Unary operator(Operator o);\n}", "private void rewriteGenericProcedures(Expression view) {\r\n\r\n\t\tRewriteInfo rewrite = this.operatorsRewrite.get(GenericNames.ON_RETRIEVE_NAME).get(view);\r\n\t\tif (rewrite != null) {\r\n\t\t\t// rewrite on_retrieve\r\n\t\t\tthis.rewriteOnRetrieve(rewrite.expr, rewrite.replacement);\r\n\t\t}\r\n\t\trewrite = this.operatorsRewrite.get(GenericNames.ON_UPDATE_NAME).get(view);\r\n\t\tif (rewrite != null) {\r\n\t\t\t// rewrite on_update\r\n\t\t\tthis.rewriteOnUpdate(rewrite.expr, rewrite.replacement);\r\n\t\t}\r\n\t\trewrite = this.operatorsRewrite.get(GenericNames.ON_DELETE_NAME).get(view);\r\n\t\tif (rewrite != null) {\r\n\t\t\t// rewrite on_delete\r\n\t\t\tthis.rewriteOnDelete(rewrite.expr, rewrite.replacement);\r\n\t\t}\r\n\t\trewrite = this.operatorsRewrite.get(GenericNames.ON_NAVIGATE_NAME).get(view);\r\n\t\tif (rewrite != null) {\r\n\t\t\t// rewrite on_navigate\r\n\t\t\tthis.rewriteOnNavigate(rewrite.expr, rewrite.replacement);\r\n\t\t}\r\n\t}", "public static boolean functionTypeAlias(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias\")) return false;\n if (!nextTokenIs(b, \"<function type alias>\", AT, TYPEDEF)) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, FUNCTION_TYPE_ALIAS, \"<function type alias>\");\n r = functionTypeAlias_0(b, l + 1);\n if (!r) r = functionTypeAlias_1(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "@Override\n\t\tpublic void outAMultExpr(AMultExpr node) {\n\t\t\ttypes2.put(node, INT);\n\t\t}", "public static Symbol getSymbolOf(Expression e) {\n if (e instanceof Identifier) {\n return ((Identifier)e).getSymbol();\n } else if (e instanceof ArrayAccess) {\n return getSymbolOf(((ArrayAccess)e).getArrayName());\n } else if (e instanceof AccessExpression) {\n return new AccessSymbol((AccessExpression)e);\n } else if (e instanceof UnaryExpression) {\n return getSymbolOf(((UnaryExpression)e).getExpression());\n/*\n UnaryExpression ue = (UnaryExpression)e;\n if (ue.getOperator() == UnaryOperator.DEREFERENCE) {\n DFIterator<Identifier> iter = new DFIterator<Identifier>(\n ue.getExpression(), Identifier.class);\n if (iter.hasNext()) {\n return iter.next().getSymbol();\n }\n }\n*/\n } else if (e instanceof Typecast) {\n return getSymbolOf(((Typecast)e).getExpression());\n }\n return null;\n }", "public final void entryRuleAstExpressionUnary() throws RecognitionException {\n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1743:1: ( ruleAstExpressionUnary EOF )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:1744:1: ruleAstExpressionUnary EOF\n {\n before(grammarAccess.getAstExpressionUnaryRule()); \n pushFollow(FOLLOW_ruleAstExpressionUnary_in_entryRuleAstExpressionUnary3663);\n ruleAstExpressionUnary();\n\n state._fsp--;\n\n after(grammarAccess.getAstExpressionUnaryRule()); \n match(input,EOF,FOLLOW_EOF_in_entryRuleAstExpressionUnary3670); \n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return ;\n }", "void visitOperandFunction(ArgumentFunction operand);", "protected LightweightTypeReference getLightweightType(XExpression expr) {\n\t\tfinal IResolvedTypes resolvedTypes = getResolvedTypes(expr);\n\t\tfinal LightweightTypeReference expressionType = resolvedTypes.getActualType(expr);\n\t\tif (expr instanceof AnonymousClass) {\n\t\t\tfinal List<LightweightTypeReference> superTypes = expressionType.getSuperTypes();\n\t\t\tif (superTypes.size() == 1) {\n\t\t\t\treturn superTypes.get(0);\n\t\t\t}\n\t\t}\n\t\treturn expressionType;\n\t}", "public static boolean untypedFunctionType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"untypedFunctionType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, UNTYPED_FUNCTION_TYPE, \"<untyped function type>\");\n r = functionId(b, l + 1);\n r = r && untypedFunctionType_1(b, l + 1);\n r = r && parameterTypeList(b, l + 1);\n r = r && untypedFunctionType_3(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "public Node typeCheck(ContextVisitor tc) throws SemanticException {\n Type l = left.type();\n\tType r = right.type();\n\n\tTypeSystem ts = tc.typeSystem();\n\tContext context = tc.context();\n\n\tif (op == GT || op == LT || op == GE || op == LE) {\n\t if (! l.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n\t }\n\n if (! r.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == EQ || op == NE) {\n if (! ts.isCastValid(l, r, context) && ! ts.isCastValid(r, l, context)) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have operands of similar type.\",\n\t\t position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == COND_OR || op == COND_AND) {\n\t if (! l.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n l + \".\", left.position());\n\t }\n\n\t if (! r.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == ADD) {\n\t if (ts.isSubtype(l, ts.String(), context) || ts.isSubtype(r, ts.String(), context)) {\n if (!ts.canCoerceToString(r, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + r + \" to a String.\", \n right.position());\n }\n if (!ts.canCoerceToString(l, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + l + \" to a String.\", \n left.position());\n }\n\n return precedence(Precedence.STRING_ADD).type(ts.String());\n }\n\t}\n\n\tif (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n\t if (l.isBoolean() && r.isBoolean()) {\n\t\treturn type(ts.Boolean());\n\t }\n\t}\n\n if (op == ADD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SUB || op == MUL || op == DIV || op == MOD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SHL || op == SHR || op == USHR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n\tif (op == SHL || op == SHR || op == USHR) {\n\t // For shift, only promote the left operand.\n\t return type(ts.promote(l));\n\t}\n\n\treturn type(ts.promote(l, r));\n }", "public Rule nonSimpleMapTypes()\n \t{\n \t\treturn sequence(\n \t\t\t\tfirstOf(funcType(), mapType(), simpleType()),\n \t\t\t\toptional(\n \t\t\t\t// Not enforcing [] because of problems with maps like this Str:int[\"\":5]\n \t\t\t\tsequence(noNl(), optional(SP_QMARK), noNl(), SQ_BRACKET_L, SQ_BRACKET_R)), // list of '?[]'\n \t\t\t\toptional(sequence(noNl(), SP_QMARK))); // nullable\n \t}", "@Override\n public String visit(TypeExpr n, Object arg) {\n return null;\n }", "Expression unaryExpressionNotPlusMinus() throws SyntaxException {\r\n\t\tToken first = t;\r\n\t\tif (isKind(OP_EXCLAMATION)) {\r\n\t\t\tToken op = consume();\r\n\t\t\tExpression e = unaryExpression();\r\n\t\t\treturn new ExpressionUnary(first,op,e);\r\n\t\t} else \t{\r\n\t\t\treturn primary(); //errors will be reported by primary()\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void outALeExpr(ALeExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "@Override\n\t\tpublic void outAMinusExpr(AMinusExpr node) {\n\t\t\t types2.put(node, INT);\n\t\t}", "public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );", "StackManipulation special(TypeDescription invocationTarget);", "@Override\n\t\tpublic void outALtExpr(ALtExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "public static Visitor<Object> lastLabelWithType(MapSet<Label, Type> map) {\n\t\treturn new Visitor<Object>() {\n\n\t\t\t@Override\n\t\t\tpublic void visit(Label inLabel, Set<FilterComplex> inFilters, FilterComplex filterComplex, Set<FilterComplex> outFilters,\n\t\t\t\t\tLabel outLabel, int depth) {\n\t\t\t\t// System.out.println(filterComplex + \" / \" + filterNaming.generate(outLabel));\n\t\t\t\tif(outFilters == null || outFilters.isEmpty()) {\n\t\t\t\t\t// labelMap.put(outLabel, filterComplex);\n\t\t\t\t\tfor(Type type : filterComplex.getTypes()) {\n\t\t\t\t\t\tmap.add(outLabel, type);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// public void close() {\n\t\t\t// for(Type type : lastFilterComplex.get().getTypes()) {\n\t\t\t// map.add(lastOutLabel.get(), type);\n\t\t\t// }\n\t\t\t// }\n\t\t};\n\t}", "public Object visitAdditiveExpression(GNode n) {\n Object a, b, result;\n String op;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(2));\n op = n.getString(1);\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n if (op.equals(\"+\")) {\n result = (Long) a + (Long) b;\n }\n else if (op.equals(\"-\")) {\n result = (Long) a - (Long) b;\n }\n else {\n result = \"\";\n }\n }\n else {\n result = parens(a) + \" \" + op + \" \" + parens(b);\n }\n \n return result;\n }", "@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }", "public final AstValidator.map_type_return map_type() throws RecognitionException {\n AstValidator.map_type_return retval = new AstValidator.map_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree MAP_TYPE107=null;\n AstValidator.type_return type108 =null;\n\n\n CommonTree MAP_TYPE107_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:10: ( ^( MAP_TYPE ( type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:12: ^( MAP_TYPE ( type )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n MAP_TYPE107=(CommonTree)match(input,MAP_TYPE,FOLLOW_MAP_TYPE_in_map_type1176); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n MAP_TYPE107_tree = (CommonTree)adaptor.dupNode(MAP_TYPE107);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(MAP_TYPE107_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: ( type )?\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0==BIGDECIMAL||LA29_0==BIGINTEGER||LA29_0==BOOLEAN||LA29_0==BYTEARRAY||LA29_0==CHARARRAY||LA29_0==DATETIME||LA29_0==DOUBLE||LA29_0==FLOAT||LA29_0==INT||LA29_0==LONG||LA29_0==BAG_TYPE||LA29_0==MAP_TYPE||LA29_0==TUPLE_TYPE) ) {\n alt29=1;\n }\n switch (alt29) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_type_in_map_type1178);\n type108=type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, type108.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@SuppressWarnings(\"unchecked\")\n private static List getType(Traversable e) {\n if (!(e instanceof Expression)) {\n return null;\n }\n if (e instanceof Identifier) {\n Symbol var = ((Identifier)e).getSymbol();\n if (var == null) {\n return null;\n } else {\n return var.getTypeSpecifiers();\n }\n } else if (e instanceof AccessExpression) {\n return getType(((AccessExpression)e).getRHS());\n } else if (e instanceof ArrayAccess) {\n return getType(((ArrayAccess)e).getArrayName());\n } else if (e instanceof FunctionCall) {\n return getType(((FunctionCall)e).getName());\n } else if (e instanceof Typecast) {\n return new ArrayList(((Typecast)e).getSpecifiers());\n } else if (e instanceof ConditionalExpression) {\n ConditionalExpression ce = (ConditionalExpression)e;\n List specs = getType(ce.getTrueExpression());\n if (specs == null || specs.get(0) == Specifier.VOID) {\n return getType(ce.getFalseExpression());\n } else {\n return specs;\n }\n } else if (e instanceof CommaExpression) {\n List<Traversable> children = e.getChildren();\n return getType((Expression)children.get(children.size() - 1));\n } else { // default behavior: returns the types of the first child\n List<Traversable> children = e.getChildren();\n for (int i = 0; i < children.size(); i++) {\n Traversable child = children.get(i);\n List child_type = getType((Expression)child);\n if (child_type != null) {\n return child_type;\n }\n }\n return null;\n }\n }", "Unary operator(Operator o);", "@Test\n public void testLiteralCast() {\n for (int i = 0; i < 3; i++) {\n boolean useDecimalV2 = i > 1;\n boolean enableRewrite = (i % 2) == 1;\n {\n // Boundary case in which the positive value is a DECIMAL,\n // becomes BIGINT when negated by the parser.\n String query = \"select getBit(\" + Long.MIN_VALUE + \", 63)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.TINYINT, expr.getType());\n }\n {\n // Would eval to NaN, so keep original expr.\n String query = \"select cast(10 as double) / cast(0 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Extreme double value. Ensure double-->BigDecimal noise\n // does not cause overflows\n String query = \"select cast(\" + Double.toString(Double.MAX_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // As above, but for extreme minimum (smallest) values\n String query = \"select cast(\" + Double.toString(Double.MIN_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(1.7976931348623157e+308 as double)\" +\n \" / cast(2.2250738585072014e-308 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(cast(1.7976931348623157e+308 as double) as float)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.FLOAT, expr.getType());\n assertTrue(expr instanceof CastExpr);\n }\n }\n }", "Type.Remote<SomeRemoteType, SomeRemoteThing> unhas(AttributeType<?> attributeType);", "@Override\n\t\tpublic void outANoExpr(ANoExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}", "public T caseUnaryExpression(UnaryExpression object)\n {\n return null;\n }", "public Unary createUnary(Position pos, polyglot.ast.Unary.Operator op, Expr expr) {\n return (Unary) xnf.Unary(pos, op, expr).type(expr.type());\n }", "public abstract JType unboxify();", "private Term parseUnary(final boolean required) throws ParseException {\n Term t1 = null;\n final int tt = _tokenizer.next();\n if (tt == '+') {\n Term t2 = parseUnary(true);\n if (t2.isI() || t2.isD()) {\n t1 = t2;\n } else if (!isTypeChecking()) {\n t1 = t2;\n } else {\n reportTypeErrorN1(\"'+'\");\n }\n } else if (tt == '-') {\n Term t2 = parseUnary(true);\n if (t2 instanceof Term.ConstI) {\n t1 = new Term.ConstI(-((Term.ConstI) t2).getValue());\n } else if (t2 instanceof Term.ConstD) {\n t1 = new Term.ConstD(-((Term.ConstD) t2).getValue());\n } else if (t2.isI()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else if (t2.isD()) {\n t1 = new Term.Neg(Term.TYPE_D, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.Neg(Term.TYPE_I, t2);\n } else {\n reportTypeErrorN1(\"'-'\");\n }\n } else if (tt == '!' || isKeyword(\"not\")) {\n Term t2 = parseUnary(true);\n if (t2.isB() || !isTypeChecking()) {\n t1 = new Term.NotB(t2);\n } else {\n reportTypeErrorB1(\"'!' or 'not'\");\n }\n } else if (tt == '~') {\n Term t2 = parseUnary(true);\n if (t2.isI() || !isTypeChecking()) {\n t1 = new Term.NotI(t2);\n } else {\n reportTypeErrorI1(\"'~'\");\n }\n } else {\n _tokenizer.pushBack();\n t1 = parsePostfix(required);\n }\n return t1;\n }", "@Override\n\t\tpublic void outABoolExpr(ABoolExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "<T extends Formula> T typeFormula(FormulaType<T> type, Formula f);", "boolean replacementfor(Type o);" ]
[ "0.59831893", "0.5514498", "0.54045326", "0.5379895", "0.53616494", "0.5285031", "0.521427", "0.51843", "0.5146669", "0.51183265", "0.5072869", "0.50481707", "0.50377035", "0.49533558", "0.49507764", "0.49295908", "0.4917147", "0.49073225", "0.48897278", "0.48650643", "0.48427346", "0.48419327", "0.4770379", "0.47680023", "0.47375813", "0.47355953", "0.4733253", "0.47234082", "0.47119856", "0.46954495", "0.46946883", "0.46724737", "0.46559522", "0.46461764", "0.46440881", "0.4641904", "0.4635815", "0.4633914", "0.46148545", "0.46001843", "0.45651424", "0.4548708", "0.45275143", "0.45147875", "0.45134473", "0.45121056", "0.44907987", "0.44843194", "0.44733834", "0.44685093", "0.4463828", "0.44299006", "0.44288027", "0.44226134", "0.44088072", "0.44034404", "0.44015115", "0.43875945", "0.43712533", "0.43681124", "0.43669322", "0.43551", "0.43439832", "0.4336257", "0.43256375", "0.43251827", "0.4317424", "0.43090138", "0.43076423", "0.430692", "0.43045264", "0.43037778", "0.43024132", "0.43020403", "0.4293152", "0.42927676", "0.42807856", "0.42761424", "0.426816", "0.42656314", "0.42616323", "0.42587635", "0.42543194", "0.42507085", "0.424704", "0.42444295", "0.42378387", "0.42341515", "0.42312288", "0.42300543", "0.42289075", "0.4212281", "0.42111424", "0.42009944", "0.4187993", "0.4186112", "0.4168111", "0.415967", "0.41565317", "0.41546747" ]
0.5146787
8
/ 3.4 Binary Expressions / same idea for all of these: grab the types out of the typemap, use the appropriate helper function to verify that they are of the correct type (or aliases of the correct type, then store the result
public void outABinAndExp(ABinAndExp node) throws TypeException{ PExp l = node.getL(); PExp r = node.getR(); Type typel = typemap.get(l); Type typer = typemap.get(r); if(areBoolean(typel,typer)) typemap.put(node, typel); else throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Binary and used without two Booleans."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Exp\nadjustTypesOfBinaryOperands( Exp pExp1, Exp pExp2 );", "private final TypeSAT GetTypeSAT(String expression, String leftExpression, String rightExpression) {\r\n // remove extra brackets\r\n expression = this.RemoveExtraBrackets(expression);\r\n // look for binary implies\r\n if (expression.contains(\">\")) {\r\n if (this.IsBinaryOp(expression, \">\", leftExpression, rightExpression)) {\r\n return TypeSAT.Implies;\r\n }\r\n \r\n }\r\n \r\n // look for binary and\r\n if (expression.contains(\"&\")) {\r\n if (this.IsBinaryOp(expression, \"&\", leftExpression, rightExpression)) {\r\n return TypeSAT.And;\r\n }\r\n \r\n }\r\n \r\n // look for binary or\r\n if (expression.contains(\"|\")) {\r\n if (this.IsBinaryOp(expression, \"|\", leftExpression, rightExpression)) {\r\n return TypeSAT.Or;\r\n }\r\n \r\n }\r\n \r\n // look for binary AU\r\n if (expression.startsWith(\"A(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.AU;\r\n }\r\n \r\n }\r\n \r\n // look for binary EU\r\n if (expression.startsWith(\"E(\")) {\r\n String strippedExpression = expression.substring(2, (expression.length() - 3));\r\n if (this.IsBinaryOp(strippedExpression, \"U\", leftExpression, rightExpression)) {\r\n return TypeSAT.EU;\r\n }\r\n \r\n }\r\n \r\n // look for unary T, F, !, AX, EX, AG, EG, AF, EF, atomic\r\n if (expression.equals(\"T\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllTrue;\r\n }\r\n \r\n if (expression.equals(\"F\")) {\r\n this.leftExpression = expression;\r\n return TypeSAT.AllFalse;\r\n }\r\n \r\n if (this.IsAtomic(expression)) {\r\n this.leftExpression = expression;\r\n return TypeSAT.Atomic;\r\n }\r\n \r\n if (expression.startsWith(\"!\")) {\r\n this.leftExpression = expression.substring(1,expression.length());\r\n return TypeSAT.Not;\r\n }\r\n \r\n if (expression.startsWith(\"AX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AX;\r\n }\r\n \r\n if (expression.startsWith(\"EX\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n System.out.println(\"exp\"+leftExpression);\r\n return TypeSAT.EX;\r\n }\r\n \r\n if (expression.startsWith(\"EF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EF;\r\n }\r\n \r\n if (expression.startsWith(\"EG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.EG;\r\n }\r\n \r\n if (expression.startsWith(\"AF\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AF;\r\n }\r\n \r\n if (expression.startsWith(\"AG\")) {\r\n this.leftExpression = expression.substring(2,expression.length());\r\n return TypeSAT.AG;\r\n }\r\n \r\n return TypeSAT.Unknown;\r\n }", "public Object visitBitwiseOrExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a | (Long) b;\n }\n else {\n result = parens(a) + \" | \" + parens(b);\n }\n \n return result;\n }", "@Ignore\n @Test\n public void untypedLambda2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n CheckTypeVisitor.Result result = typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x1 x2 x3\", null);\n assertEquals(type, result.type);\n }", "@Test\n public void testUnionOnSchemaIncompatibleTypes() throws Exception {\n String query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union onschema l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n //without \"onschema\"\n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : float);\"\n + \"u = union l1, l2;\";\n\n checkSchemaEx(query, \"Cannot cast from chararray to bytearray\");\n\n\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union onschema l1, l2;\"\n ; \n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n \n query =\n \" l1 = load '\" + INP_FILE_2NUMS + \"' as (x : long, y : chararray);\"\n + \"l2 = load '\" + INP_FILE_2NUMS + \"' as (x : map[ ], y : chararray);\"\n + \"u = union l1, l2;\"\n ;\n checkSchemaEx(query, \"Cannot cast from long to bytearray\");\n\n // bag column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : int, c2 : chararray)} );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (x : long, b : bag { t : tuple (c1 : long, c2 : chararray)} );\"\n + \"u = union onschema l1, l2;\"\n ; \n Schema sch = new Schema();\n sch.add(new FieldSchema(\"x\", DataType.LONG));\n Schema bagInnerSchema = new Schema();\n bagInnerSchema.add(new FieldSchema(null, new Schema(), DataType.TUPLE));\n sch.add(new FieldSchema(\"b\", bagInnerSchema, DataType.BAG));\n checkSchemaEquals(query, sch);\n \n // tuple column with different internal column types\n query =\n \" l1 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : int, c2 : chararray) );\"\n \n + \"l2 = load '\" + INP_FILE_2NUMS \n + \"' as (t : tuple (c1 : long, c2 : chararray) );\"\n + \"u = union onschema l1, l2;\"\n ; \n sch = new Schema();\n sch.add(new FieldSchema(\"t\", new Schema(), DataType.TUPLE));\n checkSchemaEquals(query, sch);\n }", "@Test\n void shouldReturnPrimitiveTypeOnly() {\n assertThat(TypeVisitor.gatherAllTypes(int.class), contains(int.class));\n assertThat(TypeVisitor.gatherAllTypes(double.class), contains(double.class));\n assertThat(TypeVisitor.gatherAllTypes(char.class), contains(char.class));\n }", "protected TypeMapper<?> normalizeSemantics() {\n\t\tEvent event = SpeedTracerLogger\n\t\t\t\t.start(CompilerEventType.JAVA_NORMALIZERS);\n\t\ttry {\n\t\t\tDevirtualizer.exec(jprogram);\n\t\t\tCatchBlockNormalizer.exec(jprogram);\n\t\t\tPostOptimizationCompoundAssignmentNormalizer.exec(jprogram);\n\t\t\tLongCastNormalizer.exec(jprogram);\n\t\t\tLongEmulationNormalizer.exec(jprogram);\n\t\t\tTypeCoercionNormalizer.exec(jprogram);\n\t\t\tif (options.isIncrementalCompileEnabled()) {\n\t\t\t\t// Per file compilation reuses type JS even as references (like\n\t\t\t\t// casts) in other files\n\t\t\t\t// change, which means all legal casts need to be allowed now\n\t\t\t\t// before they are actually\n\t\t\t\t// used later.\n\t\t\t\tComputeExhaustiveCastabilityInformation.exec(jprogram);\n\t\t\t} else {\n\t\t\t\t// If trivial casts are pruned then one can use smaller runtime\n\t\t\t\t// castmaps.\n\t\t\t\tComputeCastabilityInformation.exec(jprogram,\n\t\t\t\t\t\t!shouldOptimize() /* recordTrivialCasts */);\n\t\t\t}\n\t\t\tImplementCastsAndTypeChecks.exec(jprogram,\n\t\t\t\t\tshouldOptimize() /* pruneTrivialCasts */);\n\t\t\tImplementJsVarargs.exec(jprogram);\n\t\t\tArrayNormalizer.exec(jprogram);\n\t\t\tEqualityNormalizer.exec(jprogram);\n\t\t\tTypeMapper<?> typeMapper = getTypeMapper();\n\t\t\tResolveRuntimeTypeReferences.exec(jprogram, typeMapper,\n\t\t\t\t\tgetTypeOrder());\n\t\t\treturn typeMapper;\n\t\t} finally {\n\t\t\tevent.end();\n\t\t}\n\t}", "@Test\n public void testAlteringUserTypeNestedWithinMap() throws Throwable\n {\n String[] columnTypePrefixes = {\"frozen<map<text, \", \"map<text, frozen<\"};\n for (String columnTypePrefix : columnTypePrefixes)\n {\n String ut1 = createType(\"CREATE TYPE %s (a int)\");\n String columnType = columnTypePrefix + KEYSPACE + \".\" + ut1 + \">>\";\n\n createTable(\"CREATE TABLE %s (x int PRIMARY KEY, y \" + columnType + \")\");\n\n execute(\"INSERT INTO %s (x, y) VALUES(1, {'firstValue':{a:1}})\");\n assertRows(execute(\"SELECT * FROM %s\"), row(1, map(\"firstValue\", userType(1))));\n flush();\n\n execute(\"ALTER TYPE \" + KEYSPACE + \".\" + ut1 + \" ADD b int\");\n execute(\"INSERT INTO %s (x, y) VALUES(2, {'secondValue':{a:2, b:2}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(3, {'thirdValue':{a:3}})\");\n execute(\"INSERT INTO %s (x, y) VALUES(4, {'fourthValue':{b:4}})\");\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n\n flush();\n\n assertRows(execute(\"SELECT * FROM %s\"),\n row(1, map(\"firstValue\", userType(1))),\n row(2, map(\"secondValue\", userType(2, 2))),\n row(3, map(\"thirdValue\", userType(3, null))),\n row(4, map(\"fourthValue\", userType(null, 4))));\n }\n }", "@Override\n\tpublic void outACastExpr(ACastExpr node) {\n\t\tType t = nodeTypes.get(node.getExpr());\n\t\tboxIt(t); \n\t\tType result = nodeTypes.get(node.getType()); \n\t\til.append(fi.createCast(getBecelType(t), getBecelType(result)));\n\t\tunboxIt(result); \t\n\t}", "private static HashMap<String, String> initMapping()\n {\n HashMap<String, String> typeMapping = new HashMap<String, String>();\n\n typeMapping.put(\"boolean\", \"boolean\");\n typeMapping.put(\"float\", \"float\");\n typeMapping.put(\"double\", \"double\");\n typeMapping.put(\"byte\", \"byte\");\n typeMapping.put(\"unsignedByte\", \"short\");\n typeMapping.put(\"short\", \"short\");\n typeMapping.put(\"unsignedShort\", \"int\");\n typeMapping.put(\"int\", \"int\");\n typeMapping.put(\"integer\", \"java.math.BigDecimal\");\n typeMapping.put(\"positiveInteger\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedInt\", \"java.math.BigInteger\");\n typeMapping.put(\"long\", \"java.math.BigInteger\");\n typeMapping.put(\"unsignedLong\", \"java.math.BigDecimal\");\n typeMapping.put(\"decimal\", \"java.math.BigDecimal\");\n typeMapping.put(\"string\", \"String\");\n typeMapping.put(\"hexBinary\", \"byte[]\");\n typeMapping.put(\"base64Binary\", \"byte[]\");\n typeMapping.put(\"dateTime\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"time\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"date\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gMonthDay\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYear\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"gYearMonth\", \"javax.xml.datatype.XMLGregorianCalendar\");\n typeMapping.put(\"duration\", \"javax.xml.datatype.Duration\");\n typeMapping.put(\"NOTATION\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"QName\", \"javax.xml.namespace.QName\");\n typeMapping.put(\"anyURI\", \"String\");\n typeMapping.put(\"Name\", \"String\");\n typeMapping.put(\"NCName\", \"String\");\n typeMapping.put(\"negativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"NMTOKEN\", \"String\");\n typeMapping.put(\"nonNegativeInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"nonPositiveInteger\", \"java.math.BigDecimal\");\n typeMapping.put(\"normalizedString\", \"String\");\n typeMapping.put(\"token\", \"String\");\n typeMapping.put(\"any\", \"Object\");\n\n return typeMapping;\n }", "@Override\n public BinaryType orBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 || b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }", "public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;", "@Override\r\n\tpublic Object visitBinaryExpression(BinaryExpression binaryExpression,\r\n\t\t\tObject arg) throws Exception {\r\n\t\tString expr0Type = (String) binaryExpression.expression0.visit(this,arg);\r\n\t\tString expr1Type = (String) binaryExpression.expression1.visit(this,arg);\r\n\t\tKind op = binaryExpression.op.kind;\r\n\t\tcheck(expr0Type.equals(expr1Type), \"uncompatible bianry expression\", binaryExpression);\r\n\t\tswitch(op) {\r\n\t\tcase PLUS:\r\n\t\t\tcheck(expr0Type.equals(intType) || expr0Type == stringType, \"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\tbreak;\r\n\t\tcase MINUS:\tcase TIMES:\tcase DIV:\t\t\t\r\n\t\t\tcheck(expr0Type.equals(intType), \"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\tbreak;\r\n\t\tcase EQUAL:\tcase NOTEQUAL:\r\n\t\t\tif (expr0Type.equals(booleanType) || expr0Type.equals(intType) ||expr0Type.equals(stringType)) {\r\n\t\t\t\tbinaryExpression.setType(booleanType);\r\n\t\t\t\treturn booleanType;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new TypeCheckException(\"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\t}\t\r\n\t\tcase LT: case GT: case LE: case GE:\r\n\t\t\tif (expr0Type.equals(booleanType) || expr0Type.equals(intType)) {\r\n\t\t\t\tbinaryExpression.setType(booleanType);\r\n\t\t\t\treturn booleanType;\r\n\t\t\t} else {\r\n\t\t\t\tthrow new TypeCheckException(\"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\t}\t\t\r\n\t\tcase LSHIFT: case RSHIFT:\r\n\t\t\tcheck(expr0Type.equals(intType), \"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\tbreak;\r\n\t\tcase BAR: case AND:\r\n\t\t\tcheck(expr0Type.equals(booleanType), \"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tthrow new TypeCheckException(\"operator \" + op.toString() + \" is not defined for \" + expr0Type, binaryExpression);\r\n\t\t} \t\r\n\t\tbinaryExpression.setType(expr0Type);\r\n\t\treturn expr0Type;\r\n\t}", "public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n final Type tleft = _left.typeCheck(stable);\n final Type tright = _right.typeCheck(stable);\n\n if (tleft.isSimple() && tright.isSimple()) {\n if (tleft != tright) {\n if (tleft instanceof BooleanType) {\n _right = new CastExpr(_right, Type.Boolean);\n }\n else if (tright instanceof BooleanType) {\n _left = new CastExpr(_left, Type.Boolean);\n }\n else if (tleft instanceof NumberType ||\n tright instanceof NumberType) {\n _left = new CastExpr(_left, Type.Real);\n _right = new CastExpr(_right, Type.Real);\n }\n else { // both compared as strings\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n }\n }\n else if (tleft instanceof ReferenceType) {\n _right = new CastExpr(_right, Type.Reference);\n }\n else if (tright instanceof ReferenceType) {\n _left = new CastExpr(_left, Type.Reference);\n }\n // the following 2 cases optimize @attr|.|.. = 'string'\n else if (tleft instanceof NodeType && tright == Type.String) {\n _left = new CastExpr(_left, Type.String);\n }\n else if (tleft == Type.String && tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.String);\n }\n // optimize node/node\n else if (tleft instanceof NodeType && tright instanceof NodeType) {\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n else if (tleft instanceof NodeType && tright instanceof NodeSetType) {\n // compare(Node, NodeSet) will be invoked\n }\n else if (tleft instanceof NodeSetType && tright instanceof NodeType) {\n swapArguments(); // for compare(Node, NodeSet)\n }\n else {\n // At least one argument is of type node, node-set or result-tree\n\n // Promote an expression of type node to node-set\n if (tleft instanceof NodeType) {\n _left = new CastExpr(_left, Type.NodeSet);\n }\n if (tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.NodeSet);\n }\n\n // If one arg is a node-set then make it the left one\n if (tleft.isSimple() ||\n tleft instanceof ResultTreeType &&\n tright instanceof NodeSetType) {\n swapArguments();\n }\n\n // Promote integers to doubles to have fewer compares\n if (_right.getType() instanceof IntType) {\n _right = new CastExpr(_right, Type.Real);\n }\n }\n return _type = Type.Boolean;\n }", "public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test\n public void testLiteralCast() {\n for (int i = 0; i < 3; i++) {\n boolean useDecimalV2 = i > 1;\n boolean enableRewrite = (i % 2) == 1;\n {\n // Boundary case in which the positive value is a DECIMAL,\n // becomes BIGINT when negated by the parser.\n String query = \"select getBit(\" + Long.MIN_VALUE + \", 63)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.TINYINT, expr.getType());\n }\n {\n // Would eval to NaN, so keep original expr.\n String query = \"select cast(10 as double) / cast(0 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Extreme double value. Ensure double-->BigDecimal noise\n // does not cause overflows\n String query = \"select cast(\" + Double.toString(Double.MAX_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // As above, but for extreme minimum (smallest) values\n String query = \"select cast(\" + Double.toString(Double.MIN_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(1.7976931348623157e+308 as double)\" +\n \" / cast(2.2250738585072014e-308 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(cast(1.7976931348623157e+308 as double) as float)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.FLOAT, expr.getType());\n assertTrue(expr instanceof CastExpr);\n }\n }\n }", "@Test\n public void testNestedUserTypes() throws Throwable\n {\n String type1 = createType(\"CREATE TYPE %s ( s set<text>, m map<text, text>, l list<text>)\");\n\n String type2 = createType(\"CREATE TYPE %s ( s set < frozen < \" + type1 + \" >>,)\");\n\n createTable(\"CREATE TABLE %s (id int PRIMARY KEY, val frozen<\" + type2 + \">)\");\n\n execute(\"INSERT INTO %s (id, val) VALUES (0, { s : {{ s : {'foo', 'bar'}, m : { 'foo' : 'bar' }, l : ['foo', 'bar']} }})\");\n\n // TODO: check result once we have an easy way to do it. For now we just check it doesn't crash\n execute(\"SELECT * FROM %s\");\n }", "private void registerTypeAppendOp(final SqlOperator op)\n {\n registerOp(\n op,\n new RexSqlConvertlet() {\n public SqlNode convertCall(\n RexToSqlNodeConverter converter,\n RexCall call)\n {\n SqlNode [] operands =\n convertExpressionList(converter, call.operands);\n if (operands == null) {\n return null;\n }\n List<SqlNode> operandList =\n new ArrayList<SqlNode>(Arrays.asList(operands));\n SqlDataTypeSpec typeSpec =\n SqlTypeUtil.convertTypeToSpec(call.getType());\n operandList.add(typeSpec);\n return new SqlCall(\n op,\n operandList.toArray(new SqlNode[0]),\n SqlParserPos.ZERO);\n }\n });\n }", "@Override\n public BinaryType andBinary(BinaryType BinaryType) {\n int n = BinaryType.getValue().length();\n StringBuilder resultado = new StringBuilder();\n for (int i = 0; i < n; i++){\n boolean b1 = BinaryType.getValue().charAt(i) == '1';\n boolean b2 = this.getValue().charAt(i) == '1';\n resultado.append((b1 && b2) ? '1' : '0');\n }\n return TypeFactory.getBinaryType(resultado.toString());\n }", "public boolean areIntegral(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof RuneType && typetwo instanceof RuneType)) return true;\n else return false;\n }", "private static <X extends TypeSystemContext<X>> ImmutableMap<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> getEquivalents(\n TypeParameterListImpl<X> params,\n Iterable<Map.Entry<TypeVariableImpl<X, ?>, Constraint<X>>> constraints,\n ImmutableMap<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> equivalentsA,\n ImmutableMap<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> equivalentsB) {\n final SetMultimap<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> subtypes = HashMultimap.create();\n for (Map.Entry<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> entry : Iterables.concat(equivalentsA.entrySet(),\n equivalentsB.entrySet())) {\n subtypes.put(entry.getKey(), entry.getValue());\n subtypes.put(entry.getValue(), entry.getKey());\n }\n\n for (Entry<TypeVariableImpl<X, ?>, Constraint<X>> entry : constraints) {\n final Constraint<X> c = entry.getValue();\n\n if( c.getKind() != Constraint.Kind.META && c.getBound() instanceof TypeVariableImpl<?, ?> ) {\n final TypeVariableImpl<X, ?> bound = (TypeVariableImpl<X, ?>) c.getBound();\n\n if( bound.getParameterList() != params ) {\n // contextual variabe\n } else if( c.getKind() == Constraint.Kind.LOWER) {\n subtypes.put(entry.getKey(), bound);\n } else {\n subtypes.put(bound, entry.getKey());\n }\n }\n }\n closingWrtTransitivity:\n while (true) {\n for (Map.Entry<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> entry : subtypes.entries()) {\n if (subtypes.putAll(entry.getKey(), subtypes.get(entry.getValue()))) {\n continue closingWrtTransitivity;\n }\n }\n\n break;\n }\n\n final Map<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> equivalents = new HashMap<>();\n\n equivalents.putAll(equivalentsA);\n\n for (Map.Entry<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> entry : equivalentsB.entrySet()) {\n if (!entry.getKey().equals(equivalents.get(entry.getValue()))) {\n equivalents.put(entry.getKey(), entry.getValue());\n }\n }\n\n for (Map.Entry<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> entry : subtypes.entries()) {\n final TypeVariableImpl<X, ?> key = entry.getKey();\n final TypeVariableImpl<X, ?> val = entry.getValue();\n\n if (!key.equals(val) && subtypes.containsEntry(val, key) && val.equals(equivalents.get(val))) {\n equivalents.put(key, val);\n }\n }\n normalizingEquivalents:\n while (true) {\n for (Map.Entry<TypeVariableImpl<X, ?>, TypeVariableImpl<X, ?>> entry : equivalents.entrySet()) {\n final TypeVariableImpl<X, ?> transitive = equivalents.get(entry.getValue());\n\n if (!entry.getValue().equals(transitive)) {\n equivalents.put(entry.getKey(), transitive);\n continue normalizingEquivalents;\n }\n }\n\n break;\n }\n\n return ImmutableMap.copyOf(equivalents);\n }", "public Object visitBinaryExpr(GoIRBinaryExprNode node){\n\t\tString l = node.getType();\n\t\tif(l!= null) {//already discovered type of children\n\t\t\treturn l;\n\t\t}\n\t\tl = (String) node.getLeft().accept(this);\n\t\tString r = (String) node.getRight().accept(this);\n\t\tGoException error = Compare(l,r,\"visitbinary\");\n\t\tif(error != null) {\n\t\t\tthrow error;\n\t\t}\n\t\tnode.setType(l);//so it doesnt have to repeatedly check\n\t\t// like 3+3+3+3+3... would make a big tree and we dont need to repeatedly check\n\t\treturn l;\n\t}", "private TypeMapper getTypeMapper() {\n\t\tif (JjsUtils.closureStyleLiteralsNeeded(this.options)) {\n\t\t\treturn new ClosureUniqueIdTypeMapper(jprogram);\n\t\t}\n\t\tif (this.options.useDetailedTypeIds()) {\n\t\t\treturn new StringTypeMapper(jprogram);\n\t\t}\n\t\treturn this.options.isIncrementalCompileEnabled()\n\t\t\t\t? compilerContext.getMinimalRebuildCache().getTypeMapper()\n\t\t\t\t: new IntTypeMapper();\n\t}", "@Override\n\t\tpublic void outALeExpr(ALeExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "private void calculateFourFunctionType(ExprArithmetic node,\n\t\tfinal Type firstType, final Type secondType) {\n\t\tif (node.getChildren().size() < 2) {\n\t\t\tnode.setType(firstType);\n\t\t\treturn;\n\t\t}\n\t\t// invalid types\n\t\tif (firstType.anyOf(Base.BOOLEAN, Base.IDENTIFIER, Base.VOID,\n\t\t\tBase.STRING)\n\t\t\t|| secondType.anyOf(Base.BOOLEAN, Base.IDENTIFIER, Base.VOID,\n\t\t\t\tBase.STRING)) {\n\t\t\tTypePreprocessor.log.warn(\n\t\t\t\tSafeResourceLoader.getString(\"INVALID_TYPES\",\n\t\t\t\t\tScriptManager.getResourceBundle()),\n\t\t\t\tfirstType.toString(), node.getOperator().getReadable(),\n\t\t\t\tsecondType.toString());\n\t\t\tnode.setType(Type.voidType());\n\t\t\treturn;\n\t\t}\n\n\t\t// Unknown\n\t\tif (firstType.anyOf(Base.UNKNOWN) || secondType.anyOf(Base.UNKNOWN)) {\n\t\t\tnode.setType(Type.unknownType());\n\t\t\treturn;\n\t\t}\n\n\t\t// Same type\n\t\tif (firstType.equals(secondType) || (firstType.anyOf(Base.DOUBLE)\n\t\t\t&& secondType.anyOf(Base.CHAR, Base.INT))) {\n\t\t\tnode.setType(firstType);\n\t\t\treturn;\n\t\t}\n\t\t// different types\n\t\tif (secondType.anyOf(Base.DOUBLE)\n\t\t\t&& firstType.anyOf(Base.CHAR, Base.INT)) {\n\t\t\tnode.setType(secondType);\n\t\t\treturn;\n\t\t}\n\t\tif (firstType.anyOf(Base.INT) && secondType.anyOf(Base.CHAR)) {\n\t\t\tnode.setType(firstType);\n\t\t\treturn;\n\t\t}\n\t\tif (secondType.anyOf(Base.INT) && firstType.anyOf(Base.CHAR)) {\n\t\t\tnode.setType(secondType);\n\t\t\treturn;\n\t\t}\n\t\tTypePreprocessor.log.warn(\n\t\t\tSafeResourceLoader.getString(\"INVALID_CAST\",\n\t\t\t\tScriptManager.getResourceBundle()),\n\t\t\tfirstType.toString(), secondType.toString());\n\t\tnode.setType(Type.voidType());\n\t}", "@Override\n\t\tpublic void outABoolExpr(ABoolExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "@Override\n\t\tpublic void outANoExpr(ANoExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "public interface RelationTypeExtractor {\n String getType(RelationEval e, boolean isActual);\n}", "@Override\n\t\tpublic void outALtExpr(ALtExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "public void outATypeCastExp(ATypeCastExp node){\n\tPExp exp = node.getExp();\n\tType exptype = removeAlias(typemap.get(exp));\n\tPType castedtype = node.getType();\n\tType finaltype;\n\tif(castedtype instanceof AIntType){\n\t finaltype = new IntType();\n\t}\n\telse if(castedtype instanceof ABoolType){\n\t finaltype = new BooleanType();\n\t}\n\telse if(castedtype instanceof AFloatType){\n\t finaltype = new Float64Type();\n\t}\n\telse if(castedtype instanceof ARuneType){\n\t finaltype = new RuneType();\n\t}\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast to a disallowed type.\");\n \n\tif((exptype instanceof IntType) ||(exptype instanceof Float64Type) ||(exptype instanceof BooleanType) ||(exptype instanceof RuneType)) typemap.put(node,finaltype);\n\telse throw new TypeException(\"[line \" + golite.weeder.LineNumber.getLineNumber(node) + \"] Type cast from a disallowed type.\");\n }", "@Override\n\t\tpublic void outAEqExpr(AEqExpr node) {\n\t\t\ttypes2.put(node, BOOL);\n\t\t}", "Type1Equivalent getType1Equivalent();", "Map<String, PrimitiveTypeProvider> convert(T data);", "public HashMap<String,HashSet<String>> loadTypes(String typeFromO1, String typeFromO2) throws Exception;", "public interface MongoTypeMapper extends TypeMapper<DBObject> {\r\n\r\n\t/**\r\n\t * Returns whether the given key is the type key.\r\n\t * \r\n\t * @param key\r\n\t * @return\r\n\t */\r\n\tboolean isTypeKey(String key);\r\n\r\n\t/**\r\n\t * Writes type restrictions to the given DBObject. This usually results in\r\n\t * an $in-clause to be generated that restricts the type-key (e.g. _class)\r\n\t * to be in the set of type aliases for the given restrictedTypes.\r\n\t * \r\n\t * @param result\r\n\t * @param restrictedTypes\r\n\t */\r\n\tvoid writeTypeRestrictions(DBObject result, Set<Class<?>> restrictedTypes);\r\n\r\n}", "protected abstract STORE_TYPE decideType();", "public boolean areBinaryAlias(Type tone, Type ttwo){\n if(tone instanceof AliasType && ttwo instanceof AliasType){\n AliasType aliasone = (AliasType) tone;\n AliasType aliastwo = (AliasType) ttwo;\n\t\t if (aliasone.getAliasName().equals(aliastwo.getAliasName())) return true;\n\t\t else return false;\n }\n else return false;\n }", "@Test\n public void untypedLambdaError2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x2 x1 x3\", null, 1);\n }", "public void computeTypeIds() {\n classes.add(null);\n jsonObjects.add(new JsonObject(program));\n \n // Do java.lang.String first to reserve typeId 1 for the mashup case.\n computeSourceClass(program.getTypeJavaLangString());\n assert (classes.size() == 2);\n \n /*\n * Compute the list of classes than can successfully satisfy cast\n * requests, along with the set of types they can be successfully cast to.\n * Do it in super type order.\n */\n for (Iterator it = program.getDeclaredTypes().iterator(); it.hasNext();) {\n JReferenceType type = (JReferenceType) it.next();\n if (type instanceof JClassType) {\n computeSourceClass((JClassType) type);\n }\n }\n \n for (Iterator it = program.getAllArrayTypes().iterator(); it.hasNext();) {\n JArrayType type = (JArrayType) it.next();\n computeSourceClass(type);\n }\n \n // pass our info to JProgram\n program.initTypeInfo(classes, jsonObjects);\n program.recordQueryIds(queryIds);\n }", "private static boolean functionTypeAlias_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_1_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && componentName(b, l + 1);\n r = r && functionTypeAlias_1_3(b, l + 1);\n r = r && consumeToken(b, EQ);\n r = r && type(b, l + 1);\n r = r && functionTypeAlias_1_6(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public static DynamicExpression dynamic(CallSiteBinder binary, Class type, Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Test\n void complexUnions(TestInfo testInfo) throws Exception {\n String partial = \"[\\\"int\\\", \\\"long\\\", \\\"float\\\", \\\"double\\\", \\\"boolean\\\", \\\"bytes\\\",\"\n + \" \\\"string\\\", {\\\"type\\\":\\\"array\\\", \\\"items\\\": \\\"long\\\"},\" + \" {\\\"type\\\":\\\"map\\\", \\\"values\\\":\\\"long\\\"}\";\n String namedTypes = \", {\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"Foo\\\",\\\"fields\\\":[]},\"\n + \" {\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"Bar\\\",\\\"size\\\": 1},\"\n + \" {\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"Baz\\\",\\\"symbols\\\": [\\\"X\\\"]}\";\n\n String namedTypes2 = \", {\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"Foo2\\\",\\\"fields\\\":[]},\"\n + \" {\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"Bar2\\\",\\\"size\\\": 1},\"\n + \" {\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"Baz2\\\",\\\"symbols\\\": [\\\"X\\\"]}\";\n\n check(new File(DIR, testInfo.getTestMethod().get().getName()), partial + namedTypes + \"]\", false);\n check(new File(DIR, testInfo.getTestMethod().get().getName()), partial + namedTypes + namedTypes2 + \"]\", false);\n checkParseError(partial + namedTypes + namedTypes + \"]\");\n\n // fail with two branches of the same unnamed type\n checkUnionError(new Schema[] { Schema.create(Type.INT), Schema.create(Type.INT) });\n checkUnionError(new Schema[] { Schema.create(Type.LONG), Schema.create(Type.LONG) });\n checkUnionError(new Schema[] { Schema.create(Type.FLOAT), Schema.create(Type.FLOAT) });\n checkUnionError(new Schema[] { Schema.create(Type.DOUBLE), Schema.create(Type.DOUBLE) });\n checkUnionError(new Schema[] { Schema.create(Type.BOOLEAN), Schema.create(Type.BOOLEAN) });\n checkUnionError(new Schema[] { Schema.create(Type.BYTES), Schema.create(Type.BYTES) });\n checkUnionError(new Schema[] { Schema.create(Type.STRING), Schema.create(Type.STRING) });\n checkUnionError(\n new Schema[] { Schema.createArray(Schema.create(Type.INT)), Schema.createArray(Schema.create(Type.INT)) });\n checkUnionError(\n new Schema[] { Schema.createMap(Schema.create(Type.INT)), Schema.createMap(Schema.create(Type.INT)) });\n\n List<String> symbols = new ArrayList<>();\n symbols.add(\"NOTHING\");\n\n // succeed with two branches of the same named type, if different names\n Schema u;\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"x.A\\\",\\\"fields\\\":[]}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"record\\\",\\\"name\\\":\\\"y.A\\\",\\\"fields\\\":[]}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"x.A\\\",\\\"symbols\\\":[\\\"X\\\"]}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"enum\\\",\\\"name\\\":\\\"y.A\\\",\\\"symbols\\\":[\\\"Y\\\"]}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n u = buildUnion(new Schema[] { new Schema.Parser().parse(\"{\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"x.A\\\",\\\"size\\\":4}\"),\n new Schema.Parser().parse(\"{\\\"type\\\":\\\"fixed\\\",\\\"name\\\":\\\"y.A\\\",\\\"size\\\":8}\") });\n check(new File(DIR, testInfo.getTestMethod().get().getName()), u.toString(), false);\n\n // fail with two branches of the same named type, but same names\n checkUnionError(new Schema[] { Schema.createRecord(\"Foo\", null, \"org.test\", false),\n Schema.createRecord(\"Foo\", null, \"org.test\", false) });\n checkUnionError(new Schema[] { Schema.createEnum(\"Bar\", null, \"org.test\", symbols),\n Schema.createEnum(\"Bar\", null, \"org.test\", symbols) });\n checkUnionError(new Schema[] { Schema.createFixed(\"Baz\", null, \"org.test\", 2),\n Schema.createFixed(\"Baz\", null, \"org.test\", 1) });\n\n Schema union = buildUnion(new Schema[] { Schema.create(Type.INT) });\n // fail if creating a union of a union\n checkUnionError(new Schema[] { union });\n }", "@SuppressWarnings(\"unchecked\")\n public static List getExpressionType(Expression e) {\n if (e instanceof Identifier) {\n Symbol var = ((Identifier)e).getSymbol();\n if (var != null) {\n return var.getTypeSpecifiers();\n }\n } else if (e instanceof ArrayAccess) {\n ArrayAccess aa = (ArrayAccess)e;\n List ret = getExpressionType(aa.getArrayName());\n if (ret != null && !ret.isEmpty()) {\n LinkedList ret0 = new LinkedList(ret);\n for (int i = 0; i < aa.getNumIndices(); ++i) {\n if (ret0.getLast() instanceof PointerSpecifier) {\n ret0.removeLast();\n }\n }\n return ret0;\n }\n } else if (e instanceof AccessExpression) {\n //Symbol var = ((AccessExpression)e).getSymbol();\n //if ( var != null )\n Symbol var = new AccessSymbol((AccessExpression)e);\n return var.getTypeSpecifiers();\n } else if (e instanceof AssignmentExpression) {\n return getExpressionType(((AssignmentExpression)e).getLHS());\n } else if (e instanceof CommaExpression) {\n List<Traversable> children = e.getChildren();\n return getExpressionType(\n (Expression)children.get(children.size() - 1));\n } else if (e instanceof ConditionalExpression) {\n return getExpressionType(\n ((ConditionalExpression)e).getTrueExpression());\n } else if (e instanceof FunctionCall) {\n Expression fc_name = ((FunctionCall)e).getName();\n if (fc_name instanceof Identifier) {\n Symbol fc_var = ((Identifier)fc_name).getSymbol();\n if (fc_var != null) {\n return fc_var.getTypeSpecifiers();\n }\n }\n } else if (e instanceof IntegerLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.LONG);\n return ret;\n } else if (e instanceof BooleanLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.BOOL);\n return ret;\n } else if (e instanceof CharLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.CHAR);\n return ret;\n } else if (e instanceof StringLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.CHAR);\n ret.add(PointerSpecifier.UNQUALIFIED);\n return ret;\n } else if (e instanceof FloatLiteral) {\n List ret = new ArrayList(1);\n ret.add(Specifier.DOUBLE);\n return ret;\n } else if (e instanceof Typecast) {\n List ret = new ArrayList();\n List specs = ((Typecast)e).getSpecifiers();\n for (int i = 0; i < specs.size(); i++) {\n Object spec = specs.get(i);\n if (spec instanceof Specifier) {\n ret.add(spec);\n } else if (spec instanceof Declarator) {\n ret.addAll(((Declarator)spec).getSpecifiers());\n }\n }\n return ret;\n } else if (e instanceof UnaryExpression) {\n UnaryExpression ue = (UnaryExpression)e;\n UnaryOperator op = ue.getOperator();\n List ret = getExpressionType(ue.getExpression());\n if (ret != null) {\n LinkedList ret0 = new LinkedList(ret);\n if (op == UnaryOperator.ADDRESS_OF) {\n ret0.addLast(PointerSpecifier.UNQUALIFIED);\n } else if (op == UnaryOperator.DEREFERENCE) {\n ret0.removeLast();\n }\n return ret0;\n }\n } else if (e instanceof BinaryExpression) {\n BinaryExpression be = (BinaryExpression)e;\n BinaryOperator op = be.getOperator();\n if (op.isCompare() || op.isLogical()) {\n List ret = new ArrayList(1);\n ret.add(Specifier.LONG);\n return ret;\n } else {\n return getExpressionType(be.getLHS());\n }\n } else if (e instanceof VaArgExpression) {\n return ((VaArgExpression)e).getSpecifiers();\n }\n PrintTools.printlnStatus(1, \"[WARNING] Unknown expression type: \", e);\n return null;\n }", "public static boolean type_alias(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"type_alias\")) return false;\n if (!nextTokenIs(b, KEYWORD_TYPE)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TYPE_ALIAS, null);\n r = consumeToken(b, KEYWORD_TYPE);\n p = r; // pin = 1\n r = r && report_error_(b, type_name(b, l + 1));\n r = p && report_error_(b, consumeToken(b, EQ)) && r;\n r = p && report_error_(b, model_field_type_and_attrs(b, l + 1)) && r;\n r = p && report_error_(b, type_alias_4(b, l + 1)) && r;\n r = p && consumeToken(b, EOL) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public Node typeCheck(ContextVisitor tc) throws SemanticException {\n Type l = left.type();\n\tType r = right.type();\n\n\tTypeSystem ts = tc.typeSystem();\n\tContext context = tc.context();\n\n\tif (op == GT || op == LT || op == GE || op == LE) {\n\t if (! l.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n\t }\n\n if (! r.isNumeric()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == EQ || op == NE) {\n if (! ts.isCastValid(l, r, context) && ! ts.isCastValid(r, l, context)) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have operands of similar type.\",\n\t\t position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == COND_OR || op == COND_AND) {\n\t if (! l.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n l + \".\", left.position());\n\t }\n\n\t if (! r.isBoolean()) {\n\t\tthrow new SemanticException(\"The \" + op +\n\t\t \" operator must have boolean operands, not type \" +\n r + \".\", right.position());\n\t }\n\n\t return type(ts.Boolean());\n\t}\n\n\tif (op == ADD) {\n\t if (ts.isSubtype(l, ts.String(), context) || ts.isSubtype(r, ts.String(), context)) {\n if (!ts.canCoerceToString(r, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + r + \" to a String.\", \n right.position());\n }\n if (!ts.canCoerceToString(l, tc.context())) {\n throw new SemanticException(\"Cannot coerce an expression \" + \n \"of type \" + l + \" to a String.\", \n left.position());\n }\n\n return precedence(Precedence.STRING_ADD).type(ts.String());\n }\n\t}\n\n\tif (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n\t if (l.isBoolean() && r.isBoolean()) {\n\t\treturn type(ts.Boolean());\n\t }\n\t}\n\n if (op == ADD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or String operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == BIT_AND || op == BIT_OR || op == BIT_XOR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric or boolean operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SUB || op == MUL || op == DIV || op == MOD) {\n if (! l.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! r.isNumeric()) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n if (op == SHL || op == SHR || op == USHR) {\n if (! ts.isImplicitCastValid(l, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n l + \".\", left.position());\n }\n\n if (! ts.isImplicitCastValid(r, ts.Long(), context)) {\n throw new SemanticException(\"The \" + op +\n \" operator must have numeric operands, not type \" +\n r + \".\", right.position());\n }\n }\n\n\tif (op == SHL || op == SHR || op == USHR) {\n\t // For shift, only promote the left operand.\n\t return type(ts.promote(l));\n\t}\n\n\treturn type(ts.promote(l, r));\n }", "private boolean canGenericOperatorsBeRewrite(Expression virtExpr){\r\n\r\n\t for(GenericNames name : GenericNames.values()){\r\n\t\tif(!name.equals(GenericNames.ON_NEW_NAME))\r\n\t\t if(!this.canOperatorBeRewrittenForExpression(name, virtExpr))\r\n\t\t\treturn false;\r\n\t }\r\n\t\treturn true;\r\n\t}", "static int type_of_ori(String passed){\n\t\treturn 1;\n\t}", "public Object visitBitwiseAndExpression(GNode n) {\n Object a, b, result;\n \n nonboolean = true;\n \n dostring = true;\n \n a = dispatch(n.getGeneric(0));\n b = dispatch(n.getGeneric(1));\n \n dostring = false;\n \n if (a instanceof Long && b instanceof Long) {\n result = (Long) a & (Long) b;\n }\n else {\n result = parens(a) + \" & \" + parens(b);\n }\n \n return result;\n }", "@Test\n public void createRightTypeCastTypeCast() throws Exception {\n //\n boolean inLeftTree = false;\n PreparationData prepData = prepareCastedPartOfFaultVar(inLeftTree);\n //\n MapperSwingTreeModel rightTreeModel = prepData.bmm.getRightTreeModel();\n TreePath baseTypeElementPath = BpelMapperTestUtils.findInTree(prepData.treeNode,\n rightTreeModel, \"baseTypeElem\"); // NOI18N\n assertNotNull(baseTypeElementPath);\n //\n // Find global type and cast the left item to it\n GlobalComplexType targetGType = BpelMapperTestUtils.getGlobalTypeByName(\n mBpelModel, \"http://xml.netbeans.org/schema/Synchronous\",\n \"DerivedComplexType\", GlobalComplexType.class); // NOI18N\n assertNotNull(targetGType);\n //\n // Create a new cast\n TreePath castedPartPath = new BpelCastManager().addCastCmd(\n targetGType, baseTypeElementPath, inLeftTree, prepData.tcContext);\n assertNotNull(castedPartPath);\n //\n // Find the attrStr attribute inside of the new Pseudo Element.\n TreePath rightPinPath = BpelMapperTestUtils.findInTree(\n prepData.treeNode, rightTreeModel,\n \"(DerivedComplexType)baseTypeElem/strAttrA\"); // NOI18N\n assertNotNull(rightPinPath);\n //\n MapperSwingTreeModel leftTreeModel = prepData.bmm.getLeftTreeModel();\n TreePath leftPinPath = BpelMapperTestUtils.findInTree(\n leftTreeModel, \"/Variables/SimpleTargetVar/strAttr1\"); // NOI18N\n assertNotNull(leftPinPath);\n //\n BpelMapperTestUtils.addTransitLink(prepData.bmm, leftPinPath, rightPinPath);\n //\n Element peer = prepData.testAssign.getPeer();\n String assignText = new SimpleDomSerializer().serializeNode(peer);\n String snapshot = TestProperties.getMessage(FaultVarLSMsCreationTest.class,\n \"MAPPER_SNAPSHOT_FAULT_RT_CREATE_CAST_CAST\"); // NOI18N\n assertEquals(assignText, snapshot);\n }", "@Test\n public void untypedLambda1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x1 x2\", null);\n }", "public static void basic_typed_system_test(TagBasedEncoder<?> tbe) {\n Object orig_1 = \"whatup\";\n Object orig_2 = false;\n Object orig_3 = (byte) 123;\n Object orig_4 = 65432;\n Object orig_5 = 45645674655L;\n Object orig_6 = true;\n Object orig_7 = (byte)-23;\n Object orig_8 = -6123123;\n Object orig_9 = -32472532423245L;\n Object orig_10 = new String[] {\"123123141\", \"234234234\", \"gsdkjlhgsjdfsjlg\", \"test\"};\n Object orig_11 = new boolean[]{false, true, true, false};\n Object orig_12 = new byte[]{-12, 13, 15, 93, -80};\n Object orig_13 = new int[]{121321, -123123, 123123, 123123, -14123, 876574};\n Object orig_14 = new long[]{-32472213123423245L, -32472212423245L, -32472532423242L};\n Object orig_15 = new String[][]{{\"test\", \"test\", \"test\"}, {\"1\", \"2\", \"3\"}};\n Object orig_16 = new LIbae();\n Object orig_17 = new LIse(\"hallo\", \"dies\", \"ist\", \"ein\", \"test\");\n\n tbe.addEntryT(\"#####1\", orig_1);\n tbe.addEntryT(\"#####2\", orig_2);\n tbe.addEntryT(\"#####3\", orig_3);\n tbe.addEntryT(\"#####4\", orig_4);\n tbe.addEntryT(\"#####5\", orig_5);\n tbe.addEntryT(\"#####6\", orig_6);\n tbe.addEntryT(\"#####7\", orig_7);\n tbe.addEntryT(\"#####8\", orig_8);\n tbe.addEntryT(\"#####9\", orig_9);\n tbe.addEntryT(\"#####10\", orig_10);\n tbe.addEntryT(\"#####11\", orig_11);\n tbe.addEntryT(\"#####12\", orig_12);\n tbe.addEntryT(\"#####13\", orig_13);\n tbe.addEntryT(\"#####14\", orig_14);\n tbe.addEntryT(\"#####15\", orig_15);\n tbe.addEntryT(\"#####16\", orig_16);\n tbe.addEntryT(\"#####17\", orig_17);\n\n String result_1 = tbe.getEntryT(\"#####1\", String.class);\n Boolean result_2 = tbe.getEntryT(\"#####2\", Boolean.class);\n Byte result_3 = tbe.getEntryT(\"#####3\", Byte.class);\n Integer result_4 = tbe.getEntryT(\"#####4\", Integer.class);\n Long result_5 = tbe.getEntryT(\"#####5\", Long.class);\n boolean result_6 = tbe.getEntryT(\"#####6\", boolean.class);\n byte result_7 = tbe.getEntryT(\"#####7\", byte.class);\n int result_8 = tbe.getEntryT(\"#####8\", int.class);\n long result_9 = tbe.getEntryT(\"#####9\", long.class);\n String[] result_10 = tbe.getEntryT(\"#####10\", String[].class);\n boolean[] result_11 = tbe.getEntryT(\"#####11\", boolean[].class);\n byte[] result_12 = tbe.getEntryT(\"#####12\", byte[].class);\n int[] result_13 = tbe.getEntryT(\"#####13\", int[].class);\n long[] result_14 = tbe.getEntryT(\"#####14\", long[].class);\n String[][] result_15 = tbe.getEntryT(\"#####15\", String[][].class);\n LIbae result_16 = tbe.getEntryT(\"#####16\", LIbae.class);\n LIse result_17 = tbe.getEntryT(\"#####17\", LIse.class);\n\n assertEquals(orig_1, result_1);\n assertEquals(orig_2, result_2);\n assertEquals(orig_3, result_3);\n assertEquals(orig_4, result_4);\n assertEquals(orig_5, result_5);\n assertEquals(orig_6, result_6);\n assertEquals(orig_7, result_7);\n assertEquals(orig_8, result_8);\n assertEquals(orig_9, result_9);\n assertArrayEquals((String[])orig_10, result_10);\n assertArrayEquals((boolean[]) orig_11, result_11);\n assertArrayEquals((byte[]) orig_12, result_12);\n assertArrayEquals((int[]) orig_13, result_13);\n assertArrayEquals((long[]) orig_14, result_14);\n assertArrayEquals((String[][]) orig_15, result_15);\n assertEquals(orig_16, result_16);\n assertEquals(orig_17, result_17);\n }", "@Test\n public void createRightTypeCastPredicate() throws Exception {\n //\n boolean inLeftTree = false;\n PreparationData prepData = prepareCastedPartOfFaultVar(inLeftTree);\n //\n MapperSwingTreeModel rightTreeModel = prepData.bmm.getRightTreeModel();\n TreePath predSabjectPath = BpelMapperTestUtils.findInTree(\n prepData.treeNode, rightTreeModel, \"MultipleComplexElement\"); // NOI18N\n assertNotNull(predSabjectPath);\n //\n // Create the new predicate\n BpelMapperPredicate newPred = BpelMapperTestUtils.constructPredicate(\n prepData.tcContext, predSabjectPath, \"@strAttr\"); // NOI18N\n assertNotNull(newPred);\n //\n // Add predicate to tree\n TreePath newPredicateTPath = new BpelPredicateManager(null).\n addPredicateCmd(newPred, predSabjectPath,\n inLeftTree, prepData.tcContext);\n assertNotNull(newPredicateTPath);\n //\n // Find the attrStr attribute inside of the new Pseudo Element.\n TreePath rightPinPath = BpelMapperTestUtils.findInTree(\n prepData.treeNode, rightTreeModel,\n \"MultipleComplexElement[@strAttr]/ElemB\"); // NOI18N\n assertNotNull(rightPinPath);\n //\n MapperSwingTreeModel leftTreeModel = prepData.bmm.getLeftTreeModel();\n TreePath leftPinPath = BpelMapperTestUtils.findInTree(\n leftTreeModel, \"/Variables/SimpleTargetVar/strAttr1\"); // NOI18N\n assertNotNull(leftPinPath);\n //\n BpelMapperTestUtils.addTransitLink(prepData.bmm, leftPinPath, rightPinPath);\n //\n Element peer = prepData.testAssign.getPeer();\n String assignText = new SimpleDomSerializer().serializeNode(peer);\n String snapshot = TestProperties.getMessage(FaultVarLSMsCreationTest.class,\n \"MAPPER_SNAPSHOT_FAULT_RT_CREATE_CAST_PRED\"); // NOI18N\n assertEquals(assignText, snapshot);\n }", "@Test\n public void testMultiCastFunction() throws Exception {\n String sql = \"SELECT cast(cast(a as timestamp) as string) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node function1Node = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(function1Node, Function.NAME_PROP_NAME, \"cast\");\n Node function2Node = verify(function1Node, Function.ARGS_REF_NAME, 1, Function.ID);\n verifyConstant(function1Node, Function.ARGS_REF_NAME, 2, \"string\");\n\n verifyElementSymbol(function2Node, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(function2Node, Function.ARGS_REF_NAME, 2, \"timestamp\");\n \n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT cast(cast(a AS timestamp) AS string) FROM g\", fileNode);\n }", "public interface UnsafeFormulaManager {\n\n /**\n * Type a given Formula (Formulas given by the UnsafeFormulaManager do not have to be typed!)\n * @param type the target type\n * @param f the formula to type\n * @return the typed formula\n */\n <T extends Formula> T typeFormula(FormulaType<T> type, Formula f);\n\n /**\n * see getArguments.\n * @param f\n * @return\n */\n int getArity(Formula f);\n\n /**\n * see getArguments.\n * @param f\n * @param n\n * @return\n */\n Formula getArg(Formula f, int n);\n\n /**\n * Checks if the given Formula is an atom.\n * @param f\n * @return\n */\n boolean isAtom(Formula f);\n\n /**\n * Checks if the given Formula is a variable.\n * (either free or quantified)\n * @param f\n * @return\n */\n boolean isVariable(Formula f);\n\n /**\n * Checks if the given Formula is a free (not quantified) variable.\n * @param f\n * @return\n */\n boolean isFreeVariable(Formula f);\n\n /**\n * Checks if the given Formula is a bound (by a quantifier) variable.\n * @param f\n * @return\n */\n boolean isBoundVariable(Formula f);\n\n /**\n * Checks if the given Formula is a Number.\n * @param pTt\n * @return\n */\n boolean isNumber(Formula pTt);\n /**\n * Checks if the given Formula is an uninterpreted function call.\n * @param f\n * @return\n */\n boolean isUF(Formula f);\n\n /**\n * Checks if the given Formula is quantified (either FORALL ..., or EXISTS ...).\n * @param f\n * @return\n */\n boolean isQuantification(Formula f);\n\n /**\n * Get the body of the given, quantified, formula.\n *\n * Precondition:\n * isQuantification(f) == true\n *\n * @param f\n * @return\n */\n BooleanFormula getQuantifiedBody(Formula pQuantifiedFormula);\n\n /**\n * Replace the body of a quantified formula.\n *\n * Precondition:\n * isQuantification(pF) == true\n *\n * @param pTt\n * @param pNewBody\n * @return\n */\n BooleanFormula replaceQuantifiedBody(BooleanFormula pF, BooleanFormula pNewBody);\n\n /**\n * Returns the name of the formula (or function)\n * @param f\n * @return\n */\n String getName(Formula f);\n\n /**\n * Replaces the name and the arguments of the given formula.\n * The old and the new name need to be of the same type.\n * If f is a variable, use an empty list of arguments.\n * @param f\n * @param newName\n * @param args\n * @return\n */\n <T extends Formula> T replaceArgsAndName(T f, String newName, List<Formula> args);\n /**\n * Replaces the arguments of the given formula\n * @param f\n * @param args\n * @return\n */\n <T extends Formula> T replaceArgs(T f, List<Formula> args);\n\n /**\n * If the given formula is a numeral (i.e., non-boolean) equality \"x = y\",\n * return a list {@code x<=y, x>=y}.\n *\n * Otherwise, return the unchanged formula.\n * Note:\n * 1) Returned list always has one or two elements.\n * 2) Conjunction over the returned list is equivalent to the input formula.\n */\n <T extends Formula> List<T> splitNumeralEqualityIfPossible(T f);\n\n /**\n * Substitute every occurrence of any item from {@code changeFrom}\n * in formula {@code f} to the corresponding occurrence from {@code changeTo}.\n *\n * E.g. if {@code changeFrom} contains a variable {@code a} and\n * {@code changeTo} contains a variable {@code b} all occurrences of {@code a}\n * will be changed to {@code b} in the returned formula.\n *\n * @param f Formula to change\n * @param changeFrom List of things to change from.\n * @param changeTo List of things to change to.\n * @return Formula with variables being replaced.\n *\n */\n <T1 extends Formula, T2 extends Formula> T1\n substitute(T1 f, List<T2> changeFrom, List<T2> changeTo);\n\n <T1 extends Formula, T2 extends Formula> T1\n substitute(T1 f, Map<T2, T2> fromToMapping);\n\n /**\n * Simplify a given formula (as good as possible).\n * Equivalence must be ensured!\n *\n * A solver that does not provide a simplify method\n * might just return the original formula.\n *\n * @param The input formula\n * @return Simplified version of the formula\n */\n <T extends Formula> T simplify(T f);\n\n}", "public static UnaryExpression typeAs(Expression expression, Class type) { throw Extensions.todo(); }", "void typePromition(int a, long b){\n\t\tSystem.out.println(\"Method-5 (TypePromotion) Result is: \" + (a+b));\n\t}", "public static DynamicExpression dynamic(CallSiteBinder binary, Class type, Expression expression0, Expression expression1, Expression expression2) { throw Extensions.todo(); }", "@SuppressWarnings(\"unchecked\")\n private static Object mapValueToVil(Object result, TypeDescriptor<?> type) {\n if (result instanceof java.util.Map<?, ?>) {\n result = new Map<Object, Object>((java.util.Map<Object, Object>) result, type.getGenericParameter());\n } else if (result instanceof java.util.Set<?>) {\n result = new ArraySet<Object>(((java.util.Set<?>) result).toArray(), type.getGenericParameter());\n } else if (result instanceof java.util.List<?>) {\n result = new ArraySequence<Object>(((java.util.List<?>) result).toArray(), type.getGenericParameter());\n }\n return result;\n }", "private static List<Type> getExprTypes(Expr... args) {\n List<Type> argTypes = new ArrayList<Type> (args.length);\n for (Expr a : args) {\n argTypes.add(a.type());\n }\n return argTypes;\n }", "@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}", "@Override\r\n public void setupTypeCheck() {\n ITypesCalculator derLit = new DeriveSymTypeOfCombineExpressionsWithSIUnitTypesDelegator();\r\n\r\n // other arguments not used (and therefore deliberately null)\r\n setTypeCheck(new TypeCheck(null, derLit));\r\n }", "private Class<?> resolveBuiltInAttrType(String anAlloyAttrType){\n\t\tif(anAlloyAttrType == \"int\" || anAlloyAttrType == \"Int\") return int.class;\n\t\telse if(anAlloyAttrType == \"String\") return String.class;\n\t\telse if(anAlloyAttrType == \"univ\") assertMessage(\"TODO: Map univ with Java type\");\n\t\telse if(anAlloyAttrType == \"none\") assertMessage(\"TODO: Map none with Java type\");\n\t\telse if(anAlloyAttrType.contains(\"seq\")) assertMessage(\"TODO: Map seqInt with Java type\");\n\t\t\n\t\treturn null;\n\t}", "Object transform(String cellValue, Type toValueType) throws Throwable;", "Type_use getType_use();", "private String typeUse(final ExecutableTypeUse use) {\n try {\n return StringUtils.repeat(\"[\", use.arity()) + use.logicalType() + StringUtils.repeat(\"]\", use.arity());\n }\n catch (final Exception ex) {\n ex.printStackTrace();\n return \"???\";\n }\n }", "public void typeInference() {\n\t\tMathOperation addition = (a, b) -> a + b;\n\t\t// Data Type of a, b can be referred from MathOperation functional interface\n\t\tSystem.out.println(\"10 + 5 = \" + addition.operation(10, 5));\n\t}", "public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }", "MappedDatatype createMappedDatatype();", "private void processTypes(Node root) {\n\t\tfinal boolean newContext =\n\t\t\t(root instanceof Block || root instanceof ForLoop);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps\n\t\t\t\t.push(new VariableTypeMap(this.variableMaps.peek()));\n\t\t}\n\n\t\tif (!root.getChildren().isEmpty()) {\n\t\t\tfor (int i = 0; i < root.getChildren().size(); ++i) {\n\t\t\t\tNode child = root.getChildren().get(i);\n\t\t\t\tif (root instanceof Call call && (!call.isPrimary() && i == 0\n\t\t\t\t\t|| call.isPrimary() && i == 1)) {\n\t\t\t\t\t// Skip the method name lookup\n\t\t\t\t\tchild.setType(Type.unknownType());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tthis.processTypes(child);\n\t\t\t}\n\t\t}\n\t\troot.process(this);\n\n\t\tif (newContext) {\n\t\t\tthis.variableMaps.pop();\n\t\t}\n\t}", "public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1, boolean liftToNull, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }", "public Rule nonSimpleMapTypes()\n \t{\n \t\treturn sequence(\n \t\t\t\tfirstOf(funcType(), mapType(), simpleType()),\n \t\t\t\toptional(\n \t\t\t\t// Not enforcing [] because of problems with maps like this Str:int[\"\":5]\n \t\t\t\tsequence(noNl(), optional(SP_QMARK), noNl(), SQ_BRACKET_L, SQ_BRACKET_R)), // list of '?[]'\n \t\t\t\toptional(sequence(noNl(), SP_QMARK))); // nullable\n \t}", "public abstract JavaType resolveType(java.lang.reflect.Type jdkType);", "private static void createTypeMap() {\n\n }", "public void testTypeASTMapper() {\n MyTAST tast = MyTAST.parameterization(0,\n MyTAST.arrayOf(1,\n MyTAST.arrayOf(2,\n MyTAST.parameterization(3,\n new MyTAST(4)\n )\n )\n ),\n MyTAST.parameterization(5,\n new MyTAST(6),\n MyTAST.arrayOf(7,\n new MyTAST(8)),\n new MyTAST(9),\n new MyTAST(10)\n )\n );\n\n // Pretend myField represents a field of the type represented by tast\n // We have to do this because clients are no longer allowed to create\n // AElements directly; instead, they must vivify.\n ATypeElement<SimpleAnnotation> myAField =\n new AScene<SimpleAnnotation>(SimpleAnnotationFactory.saf)\n .classes.vivify(\"someclass\").fields.vivify(\"somefield\");\n // load it with annotations we can check against IDs\n myAField.tlAnnotationsHere.add(makeTLIdAnno(0));\n assignId(myAField, 1, 0, 0);\n assignId(myAField, 2, 0, 1);\n assignId(myAField, 3, 0);\n assignId(myAField, 4, 0, 0, 0);\n assignId(myAField, 5, 1);\n assignId(myAField, 6, 1, 0);\n assignId(myAField, 7, 1, 1, 0);\n assignId(myAField, 8, 1, 1);\n assignId(myAField, 9, 1, 2);\n // to test vivification, we don't assign 10\n \n // now visit and make sure the ID numbers match up\n MyTASTMapper mapper = new MyTASTMapper();\n mapper.traverse(tast, myAField);\n \n for (int i = 0; i < 11; i++)\n assertTrue(mapper.saw[i]);\n // make sure it vivified #10 and our annotation stuck\n AElement<SimpleAnnotation> e10 = myAField.innerTypes.get(\n new InnerTypeLocation(Arrays.asList(1, 3)));\n assertNotNull(e10);\n int e10aid = (Integer) e10.lookupAnnotation(\"IdAnno\")\n .getFieldValue(\"id\");\n assertEquals(e10aid, 10);\n }", "public final AstValidator.map_type_return map_type() throws RecognitionException {\n AstValidator.map_type_return retval = new AstValidator.map_type_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree MAP_TYPE107=null;\n AstValidator.type_return type108 =null;\n\n\n CommonTree MAP_TYPE107_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:10: ( ^( MAP_TYPE ( type )? ) )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:12: ^( MAP_TYPE ( type )? )\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n CommonTree root_1 = (CommonTree)adaptor.nil();\n _last = (CommonTree)input.LT(1);\n MAP_TYPE107=(CommonTree)match(input,MAP_TYPE,FOLLOW_MAP_TYPE_in_map_type1176); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n MAP_TYPE107_tree = (CommonTree)adaptor.dupNode(MAP_TYPE107);\n\n\n root_1 = (CommonTree)adaptor.becomeRoot(MAP_TYPE107_tree, root_1);\n }\n\n\n if ( input.LA(1)==Token.DOWN ) {\n match(input, Token.DOWN, null); if (state.failed) return retval;\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: ( type )?\n int alt29=2;\n int LA29_0 = input.LA(1);\n\n if ( (LA29_0==BIGDECIMAL||LA29_0==BIGINTEGER||LA29_0==BOOLEAN||LA29_0==BYTEARRAY||LA29_0==CHARARRAY||LA29_0==DATETIME||LA29_0==DOUBLE||LA29_0==FLOAT||LA29_0==INT||LA29_0==LONG||LA29_0==BAG_TYPE||LA29_0==MAP_TYPE||LA29_0==TUPLE_TYPE) ) {\n alt29=1;\n }\n switch (alt29) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:279:24: type\n {\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_type_in_map_type1178);\n type108=type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_1, type108.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;\n }\n adaptor.addChild(root_0, root_1);\n _last = _save_last_1;\n }\n\n\n if ( state.backtracking==0 ) {\n }\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "void writeTypeRestrictions(DBObject result, Set<Class<?>> restrictedTypes);", "@Test\n @Category({ NoDatanucleus.class })\n public void buildingQueryWithEntityThatUsesRawTypesWorks() {\n CriteriaBuilder<RawTypeEntity> criteria = cbf.create(em, RawTypeEntity.class, \"d\");\n criteria.select(\"d.list.id\");\n criteria.select(\"d.set.id\");\n criteria.select(\"d.map.id\");\n criteria.select(\"KEY(d.map2).id\");\n criteria.getQueryString();\n // Can't actually run this because the schema we used might not exist, but at least we know that building the model and query worked\n// criteria.getResultList();\n }", "private void computeSourceClass(JClassType type) {\n if (type == null || alreadyRan.contains(type)) {\n return;\n }\n \n alreadyRan.add(type);\n \n /*\n * IMPORTANT: Visit my supertype first. The implementation of\n * com.google.gwt.lang.Cast.wrapJSO() depends on all superclasses having\n * typeIds that are less than all their subclasses. This allows the same\n * JSO to be wrapped stronger but not weaker.\n */\n computeSourceClass(type.extnds);\n \n if (!program.typeOracle.isInstantiatedType(type)) {\n return;\n }\n \n // Find all possible query types which I can satisfy\n Set/* <JReferenceType> */yesSet = null;\n for (Iterator iter = queriedTypes.keySet().iterator(); iter.hasNext();) {\n JReferenceType qType = (JReferenceType) iter.next();\n Set/* <JReferenceType> */querySet = (Set) queriedTypes.get(qType);\n if (program.typeOracle.canTriviallyCast(type, qType)) {\n for (Iterator it = querySet.iterator(); it.hasNext();) {\n JReferenceType argType = (JReferenceType) it.next();\n if (program.typeOracle.canTriviallyCast(type, argType)) {\n if (yesSet == null) {\n yesSet = new HashSet/* <JReferenceType> */();\n }\n yesSet.add(qType);\n break;\n }\n }\n }\n }\n \n /*\n * Weird: JavaScriptObjects MUST have a typeId, the implementation of\n * Cast.wrapJSO depends on it.\n */\n if (yesSet == null && !program.isJavaScriptObject(type)) {\n return; // won't satisfy anything\n }\n \n // use an array to sort my yes set\n JReferenceType[] yesArray = new JReferenceType[nextQueryId];\n if (yesSet != null) {\n for (Iterator it = yesSet.iterator(); it.hasNext();) {\n JReferenceType yesType = (JReferenceType) it.next();\n Integer boxedInt = (Integer) queryIds.get(yesType);\n yesArray[boxedInt.intValue()] = yesType;\n }\n }\n \n // create a sparse lookup object\n JsonObject jsonObject = new JsonObject(program);\n for (int i = 0; i < nextQueryId; ++i) {\n if (yesArray[i] != null) {\n JIntLiteral labelExpr = program.getLiteralInt(i);\n JIntLiteral valueExpr = program.getLiteralInt(1);\n jsonObject.propInits.add(new JsonPropInit(program, labelExpr,\n valueExpr));\n }\n }\n \n // add an entry for me\n classes.add(type);\n jsonObjects.add(jsonObject);\n }", "@Override\n\t\tpublic void outAMinusExpr(AMinusExpr node) {\n\t\t\t types2.put(node, INT);\n\t\t}", "public interface MagicType extends Type {\n\n\t/**\n\t * Given that we are a type specified in a replacement rule (e.g. a Var or\n\t * Atom), can we consume a submatch of the given type in the match?\n\t *\n\t * Alternatively, we could have overriden .equals().\n\t */\n\tboolean replacementfor(Type o);\n}", "static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }", "@Test\n\tpublic void typeCheckTest(){\n\t\tSystem.out.println(\"kenta\");\n\t\tSemanticActions actions = new SemanticActions();\n\t\tVariableEntry idInt = new VariableEntry(\"v1\", TokenType.INTEGER);\n\t\tVariableEntry idReal = new VariableEntry(\"v2\", TokenType.REAL);\n\t\tVariableEntry idInt2 = new VariableEntry(\"v3\", TokenType.INTEGER);\n\t\tVariableEntry idReal2 = new VariableEntry(\"v4\", TokenType.REAL);\n\t\tVariableEntry error = new VariableEntry(\"v5\", TokenType.ADDOP);\n\t\tassertTrue(actions.typeCheck(idInt, idInt2) == 0);\n\t\tassertTrue(actions.typeCheck(idReal, idReal2) == 1);\n\t\tassertTrue(actions.typeCheck(idReal, idInt2) == 2);\n\t\tassertTrue(actions.typeCheck(idInt, idReal) == 3);\n\t\tassertTrue(actions.typeCheck(idReal, error) == 4);\n\t\tassertTrue(actions.typeCheck(error, idInt) == 4);\n\t}", "<C> TypeExp<C> createTypeExp();", "UserDefinedType createUserDefinedType();", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }", "Rule MapType() {\n // Push 1 MapTypeNode onto the value stack\n return Sequence(\n \"map \",\n Optional(CppType()),\n \"<\",\n FieldType(),\n \", \",\n FieldType(),\n \"> \",\n actions.pushMapTypeNode());\n }", "boolean hasStoredType();", "@Override\n\tpublic void typeCheck(@NotNull HashMap<Register, Types> regs, @NotNull HashMap<String, Types> locals,\n\t\t\t\t\t\t @NotNull HashMap<String, Types> params, @NotNull InterFunction func) throws CompileException {\n\t}", "Type getResultType();", "@Override\n\t\tpublic void outACallExpr(ACallExpr node) {\n\t\t\t types2.put(node, INT);\n\t\t}", "@Override\n public BinaryType addToBinary(BinaryType BinaryType) {\n int firstBinLen = this.getValue().length() - 1;\n int secondBinLen = BinaryType.getValue().length() - 1;\n StringBuilder sb = new StringBuilder();\n int resto = 0;\n while (firstBinLen >= 0 || secondBinLen >= 0){\n int suma = resto;\n if (firstBinLen >= 0){\n suma += this.getValue().charAt(firstBinLen) - '0';\n firstBinLen--;\n }\n if (secondBinLen >= 0){\n suma += BinaryType.getValue().charAt(secondBinLen) - '0';\n secondBinLen--;\n }\n resto = suma >> 1;\n suma = suma & 1;\n sb.append(suma == 0 ? '0' : '1');\n }\n if (resto > 0){\n sb.append('1');\n }\n sb.reverse();\n return TypeFactory.getBinaryType(String.valueOf(sb));\n }", "static boolean TypedMapTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TypedMapTest\")) return false;\n if (!nextTokenIs(b, K_MAP)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = consumeTokens(b, 2, K_MAP, L_PAR);\n p = r; // pin = 2\n r = r && report_error_(b, AtomicOrUnionType(b, l + 1));\n r = p && report_error_(b, consumeToken(b, COMMA)) && r;\n r = p && report_error_(b, SequenceType(b, l + 1)) && r;\n r = p && consumeToken(b, R_PAR) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Test\n void rawType_rawType() {\n var ref = new TypeRef<String>() {};\n assertEquals(String.class, ref.rawType());\n }", "public interface DfType {\n\n /**\n * A type that contains every possible value supported by the type system\n */\n DfType TOP = new DfType() {\n @Override\n public boolean isSuperType(@NotNull DfType other) {\n return true;\n }\n\n @Override\n public @NotNull DfType join(@NotNull DfType other) {\n return this;\n }\n\n @Override\n public @NotNull DfType tryJoinExactly(@NotNull DfType other) { return this; }\n\n @Override\n public @NotNull DfType meet(@NotNull DfType other) {\n return other;\n }\n\n @Override\n public @NotNull DfType tryNegate() {\n return BOTTOM;\n }\n\n @Override\n public @NotNull DfType fromRelation(@NotNull RelationType relationType) {\n return this;\n }\n\n @Override\n public int hashCode() {\n return 1254215;\n }\n\n @Override\n public @NotNull String toString() {\n return \"TOP\";\n }\n };\n /**\n * A type that contains no values\n */\n DfType BOTTOM = new DfType() {\n @Override\n public boolean isSuperType(@NotNull DfType other) {\n return other == this;\n }\n\n @Override\n public @NotNull DfType join(@NotNull DfType other) {\n return other;\n }\n\n @Override\n public @NotNull DfType tryJoinExactly(@NotNull DfType other) { return other; }\n\n @Override\n public @NotNull DfType meet(@NotNull DfType other) {\n return this;\n }\n\n @Override\n public @NotNull DfType fromRelation(@NotNull RelationType relationType) {\n return this;\n }\n\n @Override\n public @NotNull DfType tryNegate() {\n return TOP;\n }\n\n @Override\n public int hashCode() {\n return 67532141;\n }\n\n @Override\n public @NotNull String toString() {\n return \"BOTTOM\";\n }\n };\n /**\n * A special value that represents a contract failure after method return (the control flow should immediately proceed\n * with exception handling). This value is like a constant but its type doesn't correspond to any JVM type.\n */\n DfType FAIL = new DfConstantType<>(ObjectUtils.sentinel(\"FAIL\")) {\n @Override\n public @NotNull DfType join(@NotNull DfType other) {\n return other == this ? this : TOP;\n }\n\n @Override\n public @Nullable DfType tryJoinExactly(@NotNull DfType other) { return other == this ? this : other == NOT_FAIL ? TOP : null; }\n\n @Override\n public @NotNull DfType meet(@NotNull DfType other) {\n return other == this ? this : BOTTOM;\n }\n\n @Override\n public @NotNull DfType tryNegate() {\n return NOT_FAIL;\n }\n\n @Override\n public @NotNull DfType fromRelation(@NotNull RelationType relationType) {\n return relationType == RelationType.EQ ? this :\n relationType == RelationType.NE ? NOT_FAIL :\n BOTTOM;\n }\n\n @Override\n public int hashCode() {\n return 5362412;\n }\n };\n /**\n * Anything but a FAIL value\n */\n DfType NOT_FAIL = new DfAntiConstantType<>(Set.of(Objects.requireNonNull(FAIL.getConstantOfType(Object.class)))) {\n @Override\n public boolean isSuperType(@NotNull DfType other) {\n return other != TOP && other != FAIL;\n }\n\n @Override\n public @NotNull DfType join(@NotNull DfType other) {\n return other == FAIL ? TOP : this;\n }\n\n @Override\n public @NotNull DfType tryJoinExactly(@NotNull DfType other) { return join(other); }\n\n @Override\n public @NotNull DfType meet(@NotNull DfType other) {\n return other == FAIL ? BOTTOM : this;\n }\n\n @Override\n public @NotNull DfType tryNegate() {\n return FAIL;\n }\n\n @Override\n public int hashCode() {\n return 23145416;\n }\n };\n\n /**\n * Checks whether this type is the supertype of the supplied type, i.e. every value from the other type belongs to this type as well.\n * if A.isSuperType(B) then A.join(B) is A and A.meet(B) is B.\n *\n * @param other other type\n * @return true if this type is the supertype of other.\n */\n boolean isSuperType(@NotNull DfType other);\n\n /**\n * @return true if this type contains only local objects (not leaked from the current context to unknown places)\n * In particular, this means that the values of these types are never {@linkplain #mayAlias(DfType) aliased} \n * to any other values.\n */\n default boolean isLocal() {\n return false;\n }\n\n /**\n * @param otherType other type\n * @return true if values qualified by this value might be affected by values qualified by otherType.\n * For example, if both this and otherType are pointer types that may refer to the same memory location.\n */\n default boolean mayAlias(DfType otherType) {\n return false;\n }\n\n /**\n * @return true if values immediately qualified by this type, never change, \n * as long as qualifier never changes.\n */\n default boolean isImmutableQualifier() {\n return false;\n }\n\n /**\n * Checks whether processing the other type is not necessary to get the same analysis result if some value\n * has either this or other state at the same code location. {@code a.isMergeable(b)} implies \n * {@code a.isSuperType(b)}. In most cases, these methods are equivalent but the difference may appear in\n * processing non-strict properties like nullability. E.g. (nullability == unknown) is supertype of\n * (nullability == null) but it's not mergeable, as skipping (nullability == null) processing will remove\n * \"Possible NPE\" warning.\n * \n * @param other other type\n * @return true if processing the other type is not necessary to get the same analysis result if some value\n * has either this or other state at the same code location.\n */\n default boolean isMergeable(@NotNull DfType other) {\n return isSuperType(other);\n }\n\n /**\n * Return the most specific type that contains all values from this type and from other type.\n * @param other type to join\n * @return the result of the join operation\n */\n @NotNull\n DfType join(@NotNull DfType other);\n\n /**\n * Return the type that contains all values from this type and from other type and no other values.\n * @param other type to join\n * @return the result of the join operation; null if exact join cannot be represented\n */\n @Nullable DfType tryJoinExactly(@NotNull DfType other);\n\n /**\n * Returns the least specific type that contains all values that belong both to this type and to other type.\n * @param other type to meet\n * @return the result of the meet operation.\n */\n @NotNull\n DfType meet(@NotNull DfType other);\n\n @NotNull\n default DfType fromRelation(@NotNull RelationType relationType) {\n return relationType == RelationType.EQ ? this : TOP;\n }\n\n /**\n * @return true if equivalence relation on this type is not standard. That is,\n * for constant values belonging to this type, {@code a.meetRelation(EQ, b) != a.equals(b)}\n */\n default boolean hasNonStandardEquivalence() {\n return false;\n }\n \n /**\n * Narrows this value to the set of values that satisfies given relation\n * \n * @param relationType relation applied\n * @param other other operand (e.g., for {@code a < b} relation, this object is {@code a},\n * other is {@code b} and relationType is {@code <}.\n * @return narrowed type containing only values that satisfy the relation \n * (may contain some more values if the exact type cannot be represented).\n * For any {@code meetRelation} arguments, {@code this.isSuperType(this.meetRelation(...))} is true.\n */\n default @NotNull DfType meetRelation(@NotNull RelationType relationType, @NotNull DfType other) {\n return meet(other.fromRelation(relationType));\n }\n\n /**\n * @return the widened version of this type; should be called on back-branches.\n */\n default DfType widen() {\n return this;\n }\n\n /**\n * @return a type that contains all the values of the corresponding JVM type except the values of given type;\n * may return null if the corresponding type is not supported by our type system.\n */\n @Nullable\n default DfType tryNegate() {\n return null;\n }\n\n /**\n * @param constant constant to compare to\n * @return true if this type represents a constant with given value\n */\n default boolean isConst(@Nullable Object constant) {\n return false;\n }\n\n /**\n * @param clazz desired constant class\n * @param <C> type of the constant\n * @return the constant of given type; null if this type does not represent a constant of supplied type.\n */\n default <C> @Nullable C getConstantOfType(@NotNull Class<C> clazz) {\n return null;\n }\n\n /**\n * Correct the inherent variable type when concrete variable state is flushed\n * due to unknown code execution. This could be useful to handle non-strict \n * properties like nullability (e.g. if unstable nullable variable was checked for null,\n * then unknown code was executed, then the variable should not probably reset to nullable)\n * \n * @param typeBeforeFlush type the variable had before flush\n * @return corrected inherent variable type; return this if no correction is necessary.\n */\n default DfType correctTypeOnFlush(DfType typeBeforeFlush) {\n return this;\n }\n\n /**\n * Correct the variable type that is passed from outer context to the closure \n * (e.g. drop the locality flag).\n * \n * @return corrected variable type; return this if no correction is necessary.\n */\n default DfType correctForClosure() {\n return this;\n }\n\n /**\n * Correct the type after applying the relation depending on whether the relation was applied successfully.\n * May be necessary to handle weird relation semantics, like with NaN in some languages.\n * \n * @param relation relation applied\n * @param result if true then the relation was applied successfully. E.g., for {@code a > b},\n * result is true for {@code a > b} state and false for {@code a < b} and for {@code a == b} states.\n * @return corrected type; return this if no correction is necessary\n */\n default @NotNull DfType correctForRelationResult(@NotNull RelationType relation, boolean result) {\n return this;\n }\n\n /**\n * @return basic type for this type. Some types could represent several derived variables. For example,\n * the type \"string of length 3\" could be decomposed to basic type \"string\" and derived variable \"length\"\n * with value \"3\".\n */\n default @NotNull DfType getBasicType() {\n return this;\n }\n\n /**\n * @return list of possible derived variables that could be recorded inside this type.\n * E.g. the type \"string of length 3\" records the derived variable \"string length\" inside.\n */\n default @NotNull List<@NotNull DerivedVariableDescriptor> getDerivedVariables() {\n return List.of();\n }\n\n /**\n * @return values of all derived variables stored inside this type\n */\n default @NotNull Map<@NotNull DerivedVariableDescriptor, @NotNull DfType> getDerivedValues() {\n return Map.of();\n }\n\n /**\n * @return human-readable representation of this DfType, could be localized\n */\n @Override @NlsSafe @NotNull String toString();\n}", "@Test\n\tpublic void testInvariantsAndTheorems_06_partialTyping() throws Exception {\n\t\tIContextRoot con = createContext(\"ctx\");\n\t\taddCarrierSets(con, \"S1\");\n\t\n\t\tsaveRodinFileOf(con);\n\n\t\tITypeEnvironmentBuilder typeEnvironment = mTypeEnvironment(\"S1=ℙ(S1); V1=S1\",\n\t\t\t\tfactory);\n\t\t\n\t\tIMachineRoot mac = createMachine(\"mac\");\n\t\taddMachineSees(mac, \"ctx\");\n\t\taddVariables(mac, \"V1\");\n\t\taddInvariants(mac, \n\t\t\t\tmakeSList(\"I1\", \"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1=V1\", \"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false, false);\n\t\taddInitialisation(mac, \"V1\");\n\t\n\t\tsaveRodinFileOf(mac);\n\t\t\n\t\trunBuilderCheck(marker(mac.getInvariants()[0], PREDICATE_ATTRIBUTE, 0,\n\t\t\t\t2, TypeUnknownError));\n\t\t\n\t\tISCMachineRoot file = mac.getSCMachineRoot();\n\t\t\n\t\tcontainsInvariants(file, typeEnvironment, \n\t\t\t\tmakeSList(\"I2\", \"I3\", \"I4\"), \n\t\t\t\tmakeSList(\"V1∈S1\", \"V1∈{V1}\", \"S1 ⊆ {V1}\"),\n\t\t\t\tfalse, false, false);\n\t}", "public boolean areOrdered(Type typeone, Type typetwo){\n /* if they are both the same alias type, get the underlying type */\n if(areBinaryAlias(typeone,typetwo)){\n typeone = removeAlias(typeone);\n typetwo = removeAlias(typetwo);\n }//if exactly one is an alias, get it's underlying type \n// else if (typeone instanceof AliasType && !(typetwo instanceof AliasType) \n//\t\t\t\t|| !(typeone instanceof AliasType) && typetwo instanceof AliasType ) {\n//\t\t\ttypeone = removeAlias(typeone);\n//\t\t\ttypetwo = removeAlias(typetwo);\n//\t\t}\n if((typeone instanceof IntType && typetwo instanceof IntType) || (typeone instanceof Float64Type && typetwo instanceof Float64Type) || (typeone instanceof RuneType && typetwo instanceof RuneType) || (typeone instanceof StringType && typetwo instanceof StringType)) return true;\n else return false;\n }", "public void processTreeTypes(@NonNull CompilationUnit ast) {\n\t\tVariableTypeMap variables = new VariableTypeMap();\n\t\tthis.variableMaps.clear();\n\n\t\tthis.variableMaps.push(variables);\n\t\tLabelPass labels = new LabelPass(variables);\n\t\tlabels.processLabels(ast);\n\n\t\tthis.processTypes(ast);\n\t}", "@Test\n public void testCastFunction() throws Exception {\n String sql = \"SELECT cast(a as string) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node functionNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(functionNode, Function.NAME_PROP_NAME, \"cast\");\n verifyElementSymbol(functionNode, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(functionNode, Function.ARGS_REF_NAME, 2, \"string\");\n \n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT cast(a AS string) FROM g\", fileNode);\n }", "public static TypeBinaryExpression typeEqual(Expression expression, Class type) { throw Extensions.todo(); }" ]
[ "0.61330754", "0.5549555", "0.53037554", "0.52811927", "0.5265839", "0.526162", "0.5246011", "0.52367866", "0.5209061", "0.52077246", "0.5200058", "0.5181924", "0.51711565", "0.5152395", "0.5130425", "0.5126627", "0.51264167", "0.51186365", "0.5107805", "0.50841266", "0.5066795", "0.50507766", "0.5027343", "0.5023978", "0.5019696", "0.5017253", "0.49852872", "0.49786294", "0.4974534", "0.4952362", "0.49434578", "0.49411237", "0.49377522", "0.49314597", "0.49166888", "0.49162263", "0.48965612", "0.48806995", "0.48746863", "0.48666796", "0.4857255", "0.482466", "0.48096338", "0.48066038", "0.4803012", "0.47924373", "0.47881666", "0.47818774", "0.478058", "0.47717518", "0.4760013", "0.47570622", "0.4756138", "0.47548455", "0.4738461", "0.47327715", "0.47316214", "0.4723177", "0.47197995", "0.4718025", "0.47179326", "0.4715512", "0.47127238", "0.47118708", "0.47000852", "0.4699578", "0.4695156", "0.46871528", "0.4680851", "0.46710047", "0.46562493", "0.46547273", "0.46533644", "0.464363", "0.46421102", "0.4622934", "0.46225172", "0.46166244", "0.46163464", "0.46135092", "0.45989603", "0.45956683", "0.4591519", "0.4586045", "0.45851687", "0.4580008", "0.45776474", "0.4572621", "0.4571521", "0.45688194", "0.456866", "0.45625558", "0.45531717", "0.4550759", "0.45438653", "0.45375913", "0.453736", "0.453616", "0.45309418", "0.45294887" ]
0.49192485
34
/ 3.5 FunctionType Calls / first, check that we can get the function's type out of the symboltable. then compare the types of all the arguments from the node with the declared parameter types from the symbol table
public void caseAFuncCallExp(AFuncCallExp node) { inAFuncCallExp(node); { // don't typecheck name List<PExp> copy = new ArrayList<PExp>(node.getParam()); for(PExp e : copy) { e.apply(this); } } outAFuncCallExp(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Type typeCheck(){\n\tType fnType = myId.sym().getType();\n\tboolean result = true;\n\tif(!(fnType instanceof FnType)){\n\t myId.typeCheckError(\"Attempt to call a non-function\");\n\t result = false;\n\t}else{ // it is a function call\n\t FnSym fs = (FnSym)myId.sym();\n\t List<Type> declFormal = fs.getParamTypes();\n\t List<ExpNode> callFormal = myExpList.getCallExpList();\n\t if(declFormal.size() != callFormal.size()){\n\t\tmyId.typeCheckError(\"Function call with wrong number of args\");\n\t\tresult = false;\n\t }else{ // check each type \n\t\tint s = declFormal.size();\n\t\tfor(int i = 0; i < s; i++){\n\t\t Type callType = callFormal.get(i).typeCheck();\n\t\t Type declType = declFormal.get(i);\n\n\t\t String callTypeName = callType.toString();\n\t\t String declTypeName = declType.toString();\n\t\t if(!(callTypeName.equals(declTypeName))){\n\t\t\tIdNode fId = callFormal.get(i).getExpFirstIdNode();\n\t\t\tfId.typeCheckError(\"Type of actual does not match type of formal\");\n\t\t\tresult = false;\n\t\t }\n\t\t}\n\t }\n\t}\n\n\tif(fnType instanceof FnType)\n\t return ((FnSym)(myId.sym())).getReturnType();\n\telse\n\t return new ErrorType();\n\t// if(result == true){\n\t// return ((FnSym)(myId.sym())).getReturnType();\n\t// }else{\n\t// return new ErrorType();\n\t// }\n\n }", "private void visitFunction(SoyFunction fn, FunctionNode node) {\n if (fn instanceof LengthFunction) {\n checkArgType(node.getChild(0), ListType.of(AnyType.getInstance()), node);\n } else if (fn instanceof ParseIntFunction) {\n checkArgType(node.getChild(0), StringType.getInstance(), node);\n } else if (fn instanceof ParseFloatFunction) {\n checkArgType(node.getChild(0), StringType.getInstance(), node);\n }\n }", "@Override\n\tpublic void typeCheck(@NotNull HashMap<Register, Types> regs, @NotNull HashMap<String, Types> locals,\n\t\t\t\t\t\t @NotNull HashMap<String, Types> params, @NotNull InterFunction func) throws CompileException {\n\t}", "public static void typeFunction(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tif(node.typed != null) {\n\t\t\tPegObject params = node.get(1, null);\n\t\t\tPegObject block = node.get(3, null);\n\t\t\tUniArray<BunType> typeList = new UniArray<BunType>(new BunType[params.size()+1]);\n\t\t\tfor(int i = 0; i < params.size(); i++) {\n\t\t\t\tPegObject p = params.get(i);\n\t\t\t\tBunType ptype = p.typeAt(gamma, 1, null);\n\t\t\t\ttypeList.add(ptype);\n\t\t\t\tif(block != null) {\n\t\t\t\t\tblock.setName(p.get(0), ptype, null);\n\t\t\t\t}\n\t\t\t}\n\t\t\tBunType returnType = node.typeAt(gamma, 2, null);\n\t\t\ttypeList.add(returnType);\n\t\t\tnode.typed = BunType.newFuncType(typeList);\n\t\t\tif(block != null) {\n\t\t\t\tblock.setName(node.get(0), node.typed, node);\n\t\t\t\tblock.setName(\"return\", returnType, null);\n\t\t\t\t//block.gamma.tryMatch(block);\n\t\t\t}\n\t\t\tgamma.setFunctionName(node.textAt(0, \"f\"), node.typed, node);\n\t\t}\n\t}", "public abstract Type typeCheck(SymbolTable stable) throws TypeCheckError;", "@Override\n public IType typeCheck() throws TypeException {\n ArrayList<IType> paramsType = new ArrayList<>();\n for (ParameterNode param : parameterNodeArrayList) {\n paramsType.add(param.getType());\n }\n\n //typecheck di ogni dichiarazione\n if (declarationsArrayList.size() > 0) {\n for (INode dec : declarationsArrayList) {\n dec.typeCheck();\n }\n }\n\n //controllo che il corpo ritorni il tipo dichiarato dalla funzione\n IType bodyType = body.typeCheck();\n\n if (!bodyType.isSubType(returnType)) {\n String fun = \"della funzione\";\n if (this instanceof MethodNode) {\n fun = \"del metodo\";\n }\n throw new TypeException(\"Il tipo restituito dal corpo \" + fun + \" '\" + idFunzione + \"' è '\" + body.typeCheck().toPrint() + \"'. Il tipo richiesto è '\" + returnType.toPrint() + \"'\\n\", parserRuleContext);\n }\n\n return new FunType(paramsType, returnType);\n }", "public static boolean typedFunctionType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"typedFunctionType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _LEFT_, TYPED_FUNCTION_TYPE, \"<typed function type>\");\n r = functionId(b, l + 1);\n r = r && typedFunctionType_1(b, l + 1);\n r = r && parameterTypeList(b, l + 1);\n r = r && typedFunctionType_3(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "protected void checkIsFunctionType(){\n List<Name> names = new ArrayList<Name>();\n for( Definition definition : definitions ){\n if( !definition.typedef ){\n Field field = definition.getField();\n if( field != null ){\n FieldModelNode node = field.asNode();\n if( node != null && (node.getTags().contains( Tag.USES ) || node.getTags().contains( Tag.PROVIDES ))){\n\n Type type = definition.type();\n if( type == null || type.asFunctionType() == null ){\n names.add( definition.getName() );\n }\n }\n }\n }\n }\n \n if( names.size() > 0 ){\n error( \"'\" + name + \"' must have a function type\", names );\n }\n }", "public Object Visit(FuncCallExpr expr)\n {\n Expr Id = expr.GetFuncId();\n if(Id instanceof StructCompSelectExpr)\n return visitValue.Visit(Id.GetValue(),Id);\n else {\n IdExpr funcId = (IdExpr)Id;\n Symbol identifier = FindSymbol(funcId.ID);\n // Check if function is declared before usage\n if (identifier == null)\n Reporter.Error(ReportTypes.IdentifierNotDeclaredError, expr);\n\n if (!identifier.dclType.equals(DclType.Function))\n Reporter.Error(ReportTypes.FuncCallAsFuncDclError, expr);\n\n // Checks that args are used declared before usage\n visitValue.Visit(expr.GetFuncArgs().GetValue(), expr.GetFuncArgs());\n ArrayList<ArgExpr> args = expr.GetFuncArgs().GetArgs();\n\n if (identifier.TypeSignature.size() > 0 || args.size() > 0) {\n\n /* Verify number of arguments match the function signature */\n int numFormalParameters = identifier.TypeSignature.size();\n if (numFormalParameters > args.size())\n Reporter.Error(ReportTypes.TooFewArgumentsError, expr);\n else if (numFormalParameters < args.size())\n Reporter.Error(ReportTypes.TooManyArgumentsError, expr);\n\n /* Verify the type of all arguments match the function signature */\n for (int i = 0; i < numFormalParameters; i++) {\n ArgExpr argument = args.get(i);\n\n Object argType = visitValue.Visit(argument.GetArg().GetValue(),argument.GetArg());\n Types signatureType = identifier.TypeSignature.get(i).GetType();\n if(signatureType.equals(Types.STRUCT)){\n Symbol structType = currentScope.FindSymbol(argType.toString());\n if(!structType.GetType().equals(identifier.TypeSignature.get(i).GetStructType())){\n Reporter.Error(ReportTypes.IncompatibleTypeArgumentError, expr);\n }\n }\n else if(signatureType.equals(Types.LIST)){\n Symbol list = currentScope.FindSymbol(argType.toString());\n if(!list.GetType().equals(identifier.TypeSignature.get(i).GetListofType())){\n Reporter.Error(ReportTypes.IncompatibleTypeArgumentError, expr);\n }\n }\n else if(signatureType.equals(Types.FLOAT) && argType.equals(Types.INT))\n {\n \targType = Types.FLOAT;\n }\n else if (!argType.equals(signatureType)) {\n Reporter.Error(ReportTypes.IncompatibleTypeArgumentError, expr);\n }\n }\n }\n return identifier.Type;\n }\n }", "static void checkArgTypes(\r\n\t\tString funcName, Argument[] args, JParameter[] params) {\r\n\t\tif(args.length != params.length){\r\n\t\t\tthrow new IllegalArgumentsException(funcName, \"Wrong number of arguments\");\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i=0;i<args.length;i++){\r\n\t\t\tJValue val = args[i].getValue();\r\n\t\t\tJParameter jp = params[i];\r\n\t\t\tif(jp.isUntyped()){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tJType typ = jp.getType();\r\n\t\t\tif(RefValue.isGenericNull(val)){\r\n\t\t\t\tJTypeKind kind = typ.getKind();\r\n\t\t\t\tif (kind == JTypeKind.CLASS || kind == JTypeKind.PLATFORM){\r\n\t\t\t\t\t// If it is a generic null, replace it with a typed null to comply with function declaration.\r\n\t\t\t\t\tRefValue rv = RefValue.makeNullRefValue(\r\n\t\t\t\t\t\tval.getMemoryArea(), kind == JTypeKind.CLASS ? (ICompoundType)typ : JObjectType.getInstance());\r\n\t\t\t\t\targs[i].setValue(rv);\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcheckConvertibility(val, typ);\r\n\t\t}\r\n\t}", "@Test\n public void untypedLambdaError2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x2 x1 x3\", null, 1);\n }", "public Object VisitFunction(ASTFunction function) {\n ResetOffsets();\n currentFunctionName = function.name();\n boolean hasPrototype;\n\n //Analyze formal parameters & return type\n FunctionEntry funcEntry = functionEnv.find(function.name());\n //Check against prototype (if there is one), \n if (funcEntry != null) {\n hasPrototype = true;\n Vector<Type> funcEntryFormals = funcEntry.formals(); //list of Type objects of function prototype formals\n ASTFormals functionFormals = function.formals(); //list of ASTFormal objects\n \n //- Is the return type the same?\n Type type = typeEnv.find(function.type());\n if (! funcEntry.result().equals(type)) {\n CompError.message(function.line(), \"A function's return type must match \"\n + \"with its function prototype's return type.\");\n }\n \n //- Check number of formals\n if (funcEntryFormals.size() < functionFormals.size()) {\n CompError.message(function.line(), \"A function's formal parameters must match \"\n + \"with its function prototype's formal parameters. - Too many formals.\");\n } else if (funcEntryFormals.size() > functionFormals.size()) {\n CompError.message(function.line(), \"A function's formal parameters must match \"\n + \"with its function prototype's formal parameters. - Too few formals.\");\n } else {\n //- Are the formals the same? -- type\n for (int i = 0; i < funcEntryFormals.size(); i++) {\n Type functionFormalType = CheckType(functionFormals.elementAt(i).type(), \n functionFormals.elementAt(i).arraydimension(), functionFormals.elementAt(i).line());\n //Check if type doesn't equal it's counterpart in its function prototype\n //-- don't have to check if type exists because prototype would have done this, just\n // comparing types\n if (! (funcEntryFormals.elementAt(i).equals(functionFormalType))) {\n CompError.message(function.line(), \"A function's formal parameters must match \"\n + \"with its function prototype's formal parameters. - Different formal types.\");\n }\n }\n }\n } else { //or add function entry to function environment (if no prototype)\n hasPrototype = false;\n //check if return type exists\n if (typeEnv.find(function.type()) == null) {\n CompError.message(function.line(), \"The return type of the funciton is not a valid type.\");\n }\n //don't add function entry to function enviro yet... \n //Add it after VisitFormal adds possible new dimension array types to typeEnv\n }\n \n //Begin a new scope in the variable environment\n variableEnv.beginScope(); \n \n //VisitFormal should add formals to variable environment in this case.\n addFormalsToVarEnv = true;\n\n Vector<Type> params = new Vector<Type>();\n if (function.formals() != null) {\n Type paramType;\n for (int i=0; i < function.formals().size(); i++) {\n //Add formal parameters to the variable environment \n paramType = (Type) function.formals().elementAt(i).Accept(this);\n params.add(paramType);\n }\n }\n //Add function entry to function environment if there is no prototype\n if (!hasPrototype) {\n Type type = ReturnTypeHelper(function.type(), function.line());\n functionEnv.insert(function.name(), new FunctionEntry(type, params, new Label(function.name()), new Label(function.name())));\n funcEntry = functionEnv.find(function.name());\n }\n \n addFormalsToVarEnv = false;\n Type typeofreturn = typeEnv.find(function.type());\n VariableEntry varentry = new VariableEntry(typeofreturn);\n //assumming that there will be no more than one \"return\" at a time\n variableEnv.insert(\"return\", varentry);\n //Analyze the body of the function, using modified variable environment\n AATStatement body = (AATStatement) function.body().Accept(this);\n //End current scope in variable environment\n variableEnv.endScope();\n\n return bt.functionDefinition(body, offset, funcEntry.startlabel(), funcEntry.endlabel());\n //TODO: check body and framesize (offset)\n }", "void checkTypesOfInstanceMethodResolvingFunctions() {\r\n \r\n for (int i = 0, nClassInstances = currentModuleTypeInfo.getNClassInstances(); i < nClassInstances; ++i) { \r\n \r\n ClassInstance classInstance = currentModuleTypeInfo.getNthClassInstance(i);\r\n \r\n ParseTreeNode instanceNode = classInstanceMap.get(classInstance.getIdentifier());\r\n if (instanceNode == null) {\r\n // This can occur if we are compiling an adjunct to a module that contains instance declarations.\r\n continue;\r\n }\r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNode.getChild(2);\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass(); \r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode classMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n classMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String classMethodName = classMethodNameNode.getText(); \r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(classMethodName); \r\n QualifiedName resolvingFunctionName = classMethodNameNode.nextSibling().toQualifiedName();\r\n \r\n TypeExpr instanceMethodType;\r\n {\r\n TypeExpr classMethodType = classMethod.getTypeExpr();\r\n TypeVar classTypeVar = classMethodType.getTypeClassTypeVar(typeClass.getTypeClassTypeVarName());\r\n classTypeVar.setInstance(classInstance.getType());\r\n instanceMethodType = classMethodType;\r\n }\r\n \r\n TypeExpr resolvingFunctionType = compiler.getTypeChecker().getEntity(resolvingFunctionName).getTypeExpr(); \r\n \r\n if (instanceMethodType.getGenericClassConstrainedPolymorphicVars(null).size() != 0 ||\r\n resolvingFunctionType.getGenericClassConstrainedPolymorphicVars(null).size() != 0) {\r\n //if either the instance method type or the resolving function type involve constrained type vars, then they\r\n //must have identically the same type. For example, for equals in the Eq-List instance, the types of the instance\r\n //method and the resolving instance must both be: Eq a => [a] -> [a] -> Boolean.\r\n if (!instanceMethodType.sameType(resolvingFunctionType)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeSpecific(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n \r\n } \r\n } else {\r\n //we allow extra flexibility here, so that e.g. withing the Eq-Integer instance, we can define fromInteger as id (rather than idInteger).\r\n if (!TypeExpr.canPatternMatch(instanceMethodType, resolvingFunctionType, currentModuleTypeInfo)) {\r\n compiler.logMessage(new CompilerMessage(classMethodNameNode, new MessageKind.Error.ResolvingFunctionForInstanceMethodHasWrongTypeGeneral(resolvingFunctionName.getQualifiedName(), classMethodName, instanceMethodType.toString(), resolvingFunctionType.toString())));\r\n } \r\n } \r\n } \r\n } \r\n }", "@Test\n public void untypedLambdaError1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x2 x1\", null, 1);\n }", "@Ignore\n @Test\n public void untypedLambda2() {\n DependentLink A = param(\"A\", Universe(0));\n DependentLink params = params(A, param(\"B\", Pi(Reference(A), Universe(0))), param(\"a\", Reference(A)));\n Expression type = Pi(params, Apps(Reference(params.getNext()), Reference(params.getNext().getNext())));\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n\n CheckTypeVisitor.Result result = typeCheckExpr(context, \"\\\\lam x1 x2 x3 => f x1 x2 x3\", null);\n assertEquals(type, result.type);\n }", "@Test\n public void untypedLambda1() {\n DependentLink A = param(\"A\", Universe(0));\n Expression type = Pi(params(A, param(\"a\", Reference(A))), Nat());\n List<Binding> context = new ArrayList<>();\n context.add(new TypedBinding(\"f\", type));\n typeCheckExpr(context, \"\\\\lam x1 x2 => f x1 x2\", null);\n }", "public static boolean TypedFunctionTest(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"TypedFunctionTest\")) return false;\n if (!nextTokenIs(b, K_FUNCTION)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_, TYPED_FUNCTION_TEST, null);\n r = consumeTokens(b, 0, K_FUNCTION, L_PAR);\n r = r && TypedFunctionTest_2(b, l + 1);\n r = r && consumeTokens(b, 1, R_PAR, K_AS);\n p = r; // pin = 4\n r = r && SequenceType(b, l + 1);\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "public boolean typeCheck(){\n\tboolean result = true;\n\tfor(DeclNode node : myDecls){\n\t if(node instanceof FnDeclNode){\n\t\tif(((FnDeclNode)node).typeCheck() == false){\n\t\t result = false;\n\t\t}\n\t }else{\n\t\tcontinue;\n\t }\n\t}\n\treturn result;\n }", "public static void typeCheckBlock(PegObject node) {\n\t\tSymbolTable gamma = node.getSymbolTable();\n\t\tfor(int i = 0; i < node.size(); i++) {\n\t\t\tgamma.checkTypeAt(node, i, BunType.VoidType, false);\n\t\t}\n\t\tDefinedNameFunctor f = gamma.getName(\"return\");\n\t\tBunType returnType = f.getReturnType(BunType.UntypedType);\n\t\tSystem.out.println(\"returnType=\"+returnType);\n\t\tgamma.checkTypeAt(node, 0, returnType, false);\n\t}", "@Override\n public boolean isSameType(Type t) {\n if (t instanceof FuncType) {\n final FuncType other = (FuncType) t;\n return ret.isSameType(other.ret)\n && Arrays.equals(params, other.params);\n }\n return false;\n }", "public Node typeCheck () {\n\tif (declist!=null) \n\t for (Node dec:declist)\n\t\tdec.typeCheck();\n if ( !(FOOLlib.isSubtype(body.typeCheck(),type)) ){\n System.out.println(\"Wrong return type for function \"+id);\n System.exit(0);\n } \n return null;\n }", "abstract void checkWhetherFunction(int nParamsUsed, SyntaxUnit use);", "FunctionTypeMetrics functionTypeMetrics();", "private void checkTypes(Variable first, Variable second) throws OutmatchingParameterType {\n VariableVerifier.VerifiedTypes firstType = first.getType();\n VariableVerifier.VerifiedTypes secondType = second.getType();\n\n if (!firstType.equals(secondType)) {\n throw new OutmatchingParameterType();\n }\n }", "private int[] checkFunction(String arg, int[] argumentData) throws ParseException {\n\t\tint index = argumentData[0];\n\t\tint end = argumentData[1];\n\t\tint type = argumentData[2];\n\t\t\n\t\tString function = ParsingUtils.nextWord(arg, index + 1);\t\t\n\t\tif(!info.checkForFunction(function)){\n\t\t\tParseException ex=new ParseException(\"could not find function \" + function, index);\n\t\t\tErrorUtils.parseError(arg,\"could not find function \" + function ,ex,verbose);\n\t\t}\n\t\tint numberOfArguments = 0;\n\t\ttry{\n\t\t\tnumberOfArguments = ParsingUtils.numberOfArg(arg, index, end);\n\t\t} catch (ParseException ex) {\n\t\t\tErrorUtils.parseError(arg, \"Could not find the closing index for string\", ex, verbose);\n\t\t}\n\t\ttree.grow(function, numberOfArguments);\n\t\t\n\t\ttype = ensureProperArguments(arg, function, index, end, numberOfArguments);\n\t\t\n\t\tif (type == ERROR){\n\t\t\tParseException ex=new ParseException(\"Something had the wrong type\",index);\n\t\t\tErrorUtils.parseError(arg,\"Something had the wrong type\",ex,verbose);\n\t\t}\n\n\t\treturn new int[] {index,end,type};\n\t}", "Rule FunctionType() {\n // Push 1 FunctionType node onto the value stack\n return Sequence(\n FirstOf(\n FieldType(),\n Sequence(\"void \", push(new VoidNode()))),\n actions.pushFunctionTypeNode());\n }", "public Type[] getArgumentTypes() {\n/* 236 */ return Type.getArgumentTypes(this.desc);\n/* */ }", "boolean typeCheck(SearchBox box) {\n for (String oSymbol : box.m_bindings.keySet()) {\n String dSymbol = box.m_bindings.get(oSymbol);\n if (!box.m_destRegistry.isSymbolInTable(dSymbol)) {\n if (!oSymbol.contains(\"¢\")) {\n System.err.println(\"Unbound: \" + oSymbol + \":'\" + dSymbol\n + \"' in \" + m_theoremString);\n box.m_failedBindings = box.m_bindings;\n return false;\n }\n continue;\n }\n MTType oType, dType;\n oType =\n box.m_origRegistry.getTypeByIndex(box.m_origRegistry\n .getIndexForSymbol(oSymbol));\n dType =\n box.m_destRegistry.getTypeByIndex(box.m_destRegistry\n .getIndexForSymbol(dSymbol));\n if (oType.alphaEquivalentTo(dType))\n continue;\n if (dType.isSubtypeOf(oType))\n continue;\n if (oType.getClass().getSimpleName().contains(\"MTFunction\")\n && dType.getClass().getSimpleName().contains(\"MTFunction\")) {\n dType = (MTFunction) dType;\n MTType oRange = ((MTFunction) oType).getRange();\n MTType oDomain = ((MTFunction) oType).getDomain();\n MTType dRange = ((MTFunction) dType).getRange();\n MTType dDomain = ((MTFunction) dType).getDomain();\n if (oRange == null || oDomain == null || dRange == null\n || dDomain == null) {\n //System.err.println(\"null type error\");\n return false;\n }\n // Check if these are type variables\n\n String bDomain, bRange;\n if (box.m_bindings.containsKey(oRange.toString().replace(\"'\",\n \"\"))) {\n bRange =\n box.m_bindings.get(oRange.toString().replace(\"'\",\n \"\"));\n oRange = box.m_destRegistry.m_typeDictionary.get(bRange);\n if (oRange == null) {\n //System.err.println(\"null type for: \" + bRange);\n return false;\n }\n }\n if (box.m_bindings.containsKey(oDomain.toString().replace(\"'\",\n \"\"))) {\n bDomain =\n box.m_bindings.get(oDomain.toString().replace(\"'\",\n \"\"));\n oDomain = box.m_destRegistry.m_typeDictionary.get(bDomain);\n if (oDomain == null) {\n //System.err.println(\"null type for:\" + bDomain);\n return false;\n }\n }\n\n if ((oDomain.alphaEquivalentTo(dDomain) || (dDomain\n .isSubtypeOf(oDomain)))\n && (oRange.alphaEquivalentTo(dRange) || (dRange\n .isSubtypeOf(oRange)))) {\n /*System.out.println(\"Type match: \" + oSymbol + \":\" + oType\n + \" maps to \" + dSymbol + \":\" + dType); */\n continue;\n }\n /*System.err.println(\"Type Mismatch: orig: \" + oDomain + \"->\"\n + oRange + \" dest: \" + dType); */\n }\n /*System.err.println(\"Failed type check: \" + oSymbol + \"(from theorem): \" + oType\n + \" \" + dSymbol + \": \" + dType);\n System.err.println(m_theoremString);\n */\n box.m_failedBindings = box.m_bindings;\n return false;\n\n }\n //System.out.println(box.m_bindings);\n\n return true;\n }", "private static List<Type> getExprTypes(Expr... args) {\n List<Type> argTypes = new ArrayList<Type> (args.length);\n for (Expr a : args) {\n argTypes.add(a.type());\n }\n return argTypes;\n }", "public Type typeCheck(SymbolTable stable) throws TypeCheckError {\n final Type tleft = _left.typeCheck(stable);\n final Type tright = _right.typeCheck(stable);\n\n if (tleft.isSimple() && tright.isSimple()) {\n if (tleft != tright) {\n if (tleft instanceof BooleanType) {\n _right = new CastExpr(_right, Type.Boolean);\n }\n else if (tright instanceof BooleanType) {\n _left = new CastExpr(_left, Type.Boolean);\n }\n else if (tleft instanceof NumberType ||\n tright instanceof NumberType) {\n _left = new CastExpr(_left, Type.Real);\n _right = new CastExpr(_right, Type.Real);\n }\n else { // both compared as strings\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n }\n }\n else if (tleft instanceof ReferenceType) {\n _right = new CastExpr(_right, Type.Reference);\n }\n else if (tright instanceof ReferenceType) {\n _left = new CastExpr(_left, Type.Reference);\n }\n // the following 2 cases optimize @attr|.|.. = 'string'\n else if (tleft instanceof NodeType && tright == Type.String) {\n _left = new CastExpr(_left, Type.String);\n }\n else if (tleft == Type.String && tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.String);\n }\n // optimize node/node\n else if (tleft instanceof NodeType && tright instanceof NodeType) {\n _left = new CastExpr(_left, Type.String);\n _right = new CastExpr(_right, Type.String);\n }\n else if (tleft instanceof NodeType && tright instanceof NodeSetType) {\n // compare(Node, NodeSet) will be invoked\n }\n else if (tleft instanceof NodeSetType && tright instanceof NodeType) {\n swapArguments(); // for compare(Node, NodeSet)\n }\n else {\n // At least one argument is of type node, node-set or result-tree\n\n // Promote an expression of type node to node-set\n if (tleft instanceof NodeType) {\n _left = new CastExpr(_left, Type.NodeSet);\n }\n if (tright instanceof NodeType) {\n _right = new CastExpr(_right, Type.NodeSet);\n }\n\n // If one arg is a node-set then make it the left one\n if (tleft.isSimple() ||\n tleft instanceof ResultTreeType &&\n tright instanceof NodeSetType) {\n swapArguments();\n }\n\n // Promote integers to doubles to have fewer compares\n if (_right.getType() instanceof IntType) {\n _right = new CastExpr(_right, Type.Real);\n }\n }\n return _type = Type.Boolean;\n }", "@Test\n\tpublic void typeCheckTest(){\n\t\tSystem.out.println(\"kenta\");\n\t\tSemanticActions actions = new SemanticActions();\n\t\tVariableEntry idInt = new VariableEntry(\"v1\", TokenType.INTEGER);\n\t\tVariableEntry idReal = new VariableEntry(\"v2\", TokenType.REAL);\n\t\tVariableEntry idInt2 = new VariableEntry(\"v3\", TokenType.INTEGER);\n\t\tVariableEntry idReal2 = new VariableEntry(\"v4\", TokenType.REAL);\n\t\tVariableEntry error = new VariableEntry(\"v5\", TokenType.ADDOP);\n\t\tassertTrue(actions.typeCheck(idInt, idInt2) == 0);\n\t\tassertTrue(actions.typeCheck(idReal, idReal2) == 1);\n\t\tassertTrue(actions.typeCheck(idReal, idInt2) == 2);\n\t\tassertTrue(actions.typeCheck(idInt, idReal) == 3);\n\t\tassertTrue(actions.typeCheck(idReal, error) == 4);\n\t\tassertTrue(actions.typeCheck(error, idInt) == 4);\n\t}", "public TypeParameterListNode getTypeParameters()throws ClassCastException;", "SubtypedOpCheck(SubtypedDef sd,Element xml)\n{\n String ops = IvyXml.getAttrString(xml,\"OPERATOR\");\n if (ops == null) operator_names = null;\n else {\n operator_names = new HashSet<>();\n StringTokenizer tok = new StringTokenizer(ops,\", \\t;\");\n while (tok.hasMoreTokens()) {\n operator_names.add(tok.nextToken());\n }\n if (operator_names.isEmpty()) operator_names = null;\n }\n \n and_check = IvyXml.getAttrBool(xml,\"AND\");\n result_value = sd.getValue(IvyXml.getAttrString(xml,\"RESULT\"));\n call_name = IvyXml.getAttrString(xml,\"METHOD\");\n \n String atyps = IvyXml.getAttrString(xml,\"ARGS\");\n if (atyps == null) {\n arg_values = null;\n }\n else {\n StringTokenizer tok = new StringTokenizer(atyps,\" \\t,;\");\n arg_values = new SubtypedValue[tok.countTokens()];\n int i = 0;\n while (tok.hasMoreTokens()) {\n String t = tok.nextToken();\n SubtypedValue uv = null;\n if (t.equals(\"*\") || t.equals(\"ANY\")) ;\n else {\n uv = sd.getValue(t);\n }\n arg_values[i++] = uv;\n }\n if (arg_values.length == 0) arg_values = null;\n }\n \n SubtypedValue any = sd.getValue(IvyXml.getAttrString(xml,\"VALUE\"));\n if (any != null) {\n if (result_value == null) result_value = any;\n if (arg_values == null) {\n arg_values = new SubtypedValue [] { any };\n }\n else {\n for (int i = 0; i < arg_values.length; ++i) {\n if (arg_values[i] == null) arg_values[i] = any;\n }\n }\n }\n \n String rvl = IvyXml.getAttrString(xml,\"RETURN\");\n if (rvl != null) {\n return_value = sd.getValue(rvl);\n return_arg = -1;\n if (return_value == null) {\n if (rvl.equals(\"RESULT\")) return_arg = 0;\n else if (rvl.equals(\"LHS\")) return_arg = 1;\n else if (rvl.equals(\"RHS\")) return_arg = 2;\n try {\n return_arg = Integer.parseInt(rvl);\n }\n catch (NumberFormatException e) { \n return_arg = 0;\n }\n }\n }\n}", "private static boolean expectedInterfaceType(Expr e) {\n \t\treturn e.attrExpectedTyp() instanceof PscriptTypeInterface || e.attrExpectedTyp() instanceof PscriptTypeTypeParam;\n \t}", "@Test\n public void getTypeArguments() {\n List<String> target=new ArrayList<String>() {{\n add(\"thimble\");\n }};\n\n Type[] arguments= TypeDetective.sniffTypeParameters(target.getClass(), ArrayList.class);\n assertEquals(1, arguments.length);\n assertEquals(String.class,arguments[0]);\n }", "@Override\n public Ast visitFunction_definition(napParser.Function_definitionContext ctx) {\n String name = ctx.Identifier().getText();\n List<Pair<Pair<String, Type>, Boolean>> arguments = new LinkedList<>();\n for(napParser.ParameterContext arg : ctx.parameters().parameter()){\n String argName = arg.Identifier().getText();\n Type argType = (Type) arg.type().accept(this);\n boolean passByRef = arg.getChildCount() == 3;\n arguments.add(new Pair<>(new Pair<>(argName, argType), passByRef));\n }\n Block block = (Block) visit(ctx.block());\n if (ctx.returnType == null)\n return new FunctionDefinition(position(ctx), name, arguments, block);\n else {\n Type returnType = (Type) visit(ctx.returnType);\n return new FunctionDefinition(position(ctx), name, arguments, block, returnType);\n }\n }", "private boolean methodsMatch(Method method,\n CallStatement.CallStatementEntry entry) throws EngineException {\n if (!method.getName().equals(entry.getName())) {\n return false;\n }\n if (method.getParameterTypes().length != parameters.size()) {\n return false;\n }\n Class[] parameterTypes = method.getParameterTypes();\n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n if (!parameterType.isAssignableFrom(parameterValue.getClass())) {\n return false;\n }\n }\n \n for (int index = 0; index < parameters.size(); index++) {\n Class parameterType = parameterTypes[index];\n Object parameterValue = parameters.get(index);\n parameters.set(index, parameterType.cast(parameterValue));\n }\n return true;\n }", "public static boolean tryGetFuncType(Class[] typeArgs, Class[] outFuncType) { throw Extensions.todo(); }", "public boolean typeCheck(){\n\treturn myDeclList.typeCheck();\n }", "boolean hasSymbolTuple();", "private boolean isFunction(Tip t, Tip expectedRet) {\n\t\tif (t instanceof Funkcija) {\n\t\t\tFunkcija buff = (Funkcija) t;\n\t\t\tif (buff.primitiv.equals(expectedRet.primitiv)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public static boolean untypedFunctionType(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"untypedFunctionType\")) return false;\n boolean r;\n Marker m = enter_section_(b, l, _NONE_, UNTYPED_FUNCTION_TYPE, \"<untyped function type>\");\n r = functionId(b, l + 1);\n r = r && untypedFunctionType_1(b, l + 1);\n r = r && parameterTypeList(b, l + 1);\n r = r && untypedFunctionType_3(b, l + 1);\n exit_section_(b, l, m, r, false, null);\n return r;\n }", "static int type_of_call(String passed){\n\t\treturn 1;\n\t}", "private static boolean isXpathBased(final Function<?> function)\n\t{\n\t\tif (function instanceof FirstOrderFunction)\n\t\t{\n\t\t\tfinal List<? extends Datatype<?>> paramTypes = ((FirstOrderFunction<?>) function).getParameterTypes();\n\t\t\tfor (final Datatype<?> paramType : paramTypes)\n\t\t\t{\n\t\t\t\tif (paramType.getId().equals(XACMLDatatypeId.XPATH_EXPRESSION.value()))\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\n\t\treturn false;\n\t}", "boolean isMoreSpecific (MethodType type) throws OverloadingAmbiguous {\r\n boolean status = false;\r\n\r\n try {\r\n for (int i = 0, size = arguments.size (); i < size; i++) {\r\n\tIdentifier this_arg = (Identifier) arguments.elementAt (i);\r\n\tIdentifier target_arg = (Identifier) type.arguments.elementAt (i);\r\n\r\n\tint type_diff = this_arg.type.compare (target_arg.type);\r\n\tif (type_diff == 0)\r\n\t continue;\r\n\telse if (type_diff > 0) {\r\n\t if (status == true) throw new OverloadingAmbiguous ();\r\n\t} else {\r\n\t if (i != 0) throw new OverloadingAmbiguous ();\r\n\t status = true;\r\n\t}\r\n }\r\n } catch (OverloadingAmbiguous ex) {\r\n throw ex;\r\n } catch (TypeMismatch ex) {\r\n throw new OverloadingAmbiguous ();\r\n }\r\n\r\n return status;\r\n }", "private boolean isParameterDeclaration() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isTypeMark()) \n\t\t{\n\t\t\ttheSymbolTable.CURR_SYMBOL.addParameterTypes(theCurrentToken.TokenType);\n\t\t\tupdateToken();\n\t\t\t\n\t\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t{\n\t\t\t\ttheSymbolTable.CURR_SYMBOL.addParameters(theCurrentToken.TokenValue);\n\t\t\t\n\t\t\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(isBoundStatement())\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "@Test\r\n\tpublic void typeParserTest() {\n\t\tvalidateTypeParse(\r\n\t\t\t\t\"(function that takes a number and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number and a (function that takes a number)\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\r\n\t\t// \"(function that takes a number, a string, and an element_of_type_3\r\n\t\t// and outputs a number)\");\r\n\t\t// validateTypeParse(\"(function that takes a number)\");\r\n\t\t// assertEquals(\"procedure\", cdLoopType(\"function\"));\r\n\t\t// validateTypeParse(\"(function that outputs a number)\");\r\n\t\t// validateTypeParse(\"procedure\");\r\n\t}", "@Override\n protected void visitFunctionNode(FunctionNode node) {\n // TODO(lukes): move this logic to run as part of ResolveExpressionsTypeVisitor (possibly\n // extracted into a helper class)\n SoyFunction function = node.getSoyFunction();\n if (function instanceof BuiltinFunction) {\n visitNonpluginFunction((BuiltinFunction) function, node);\n } else {\n visitFunction(function, node);\n }\n\n // Recurse to operands.\n visitChildren(node);\n }", "private boolean isArgumentList(int idx, List<TokenType> aArgumentTypeList, List<TokenType> aArgumentReturnTypeList) throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isExpression())\n\t\t{\n\t\t\t// TYPE CHECKING!\n\t\t\tSymbol aSymbol = null;\n\t\t\t\n\t\t\tif(theCurrentToken.TokenType == TokenType.RIGHT_BRACKET)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t\telse if(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t{\n\t\t\t\taSymbol = theSymbolTable.ReturnSymbolValueForKey((theSymbolTable.SCOPE_KEY + \".\" + theCurrentToken.TokenValue).toString().trim());\n\t\t\t\t\n\t\t\t\t// If variable is null, check the global scope.\n\t\t\t\tif(aSymbol == null)\n\t\t\t\t\taSymbol = theSymbolTable.ReturnSymbolValueForKey((theSymbolTable.GLOBAL_SCOPE_KEY + \".\" + theCurrentToken.TokenValue).toString().trim());\n\t\t\t\t\n\t\t\t\tif(aArgumentTypeList != null && aSymbol != null && aArgumentTypeList.get(idx) == aSymbol.getType())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Argument types match.\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttheLogger.LogInvalidProcedureParameter(theCurrentToken.TokenValue);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(aArgumentReturnTypeList.get(idx) == TokenType.IN)\n\t\t\t{\n\t\t\t\tif(aArgumentTypeList.get(idx) == theCurrentToken.TokenType)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Raw data types match.\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttheLogger.LogInvalidProcedureParameter(theCurrentToken.TokenValue);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t{\n\t\t\tupdateToken();\n\t\t\tupdateToken();\n\t\t\tif(isArgumentList(idx + 1, aArgumentTypeList, aArgumentReturnTypeList))\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\telse if(theNextToken.TokenType != TokenType.COMMA)\n\t\t{\n\t\t\tisValid = true;\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}", "public VariType visit(MessageSend n, Table argu) {\n\t VariType _ret=null;\n\t VariType t0 = n.f0.accept(this, argu);\n\t n.f1.accept(this, argu);\n\t n.f2.accept(this, argu);\n\t if(t0.type != \"Object\") {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"not a class object, cannot use function call\";\n\t \t PrintError.print(emsg, n.f1.beginLine, n.f1.beginColumn, 1); \n\t \t return t0;\n\t }\n\t ClassTable classtable = ((MethodTable)argu).classtable.toptable.getclasstable(t0.name);\n\t MethodTable methodtable = classtable.getmethodtable(n.f2.f0.tokenImage);\n\t if(methodtable == null) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"undefined method \\\"\"+n.f2.f0.tokenImage+\"\\\"\";\n\t \t PrintError.print(emsg, n.f2.f0.beginLine, n.f2.f0.beginColumn, 1);\n\t \t return t0;\n\t }\n\t MethodParam methodparam = new MethodParam();\n\t methodparam.methodtable = (MethodTable)argu;\n\t n.f3.accept(this, argu);\n\t n.f4.accept(this, methodparam);\n\t n.f5.accept(this, argu);\n\t if(methodtable.paramnum != methodparam.paramnum) {\n\t \t PrintError.errorexist = true;\n\t \t String emsg = \"number of function parameters does not match, expect \"+methodtable.paramnum+\" parameters\";\n\t \t PrintError.print(emsg, n.f3.beginLine, n.f3.beginColumn, 1);\n\t \t _ret = methodtable.returntype;\n\t \t return _ret;\n\t }\n\t VariType t1, t2;\n\t TopTable toptable = ((MethodTable)argu).toptable;\n\t for(int i = 0; i < methodtable.paramtype.size(); i++) {\n\t \t t1 = methodtable.paramtype.get(i);\n\t \t t2 = methodparam.paramtype.get(i);\n\t \t if(VariType.isTheSameType(toptable, t1, t2) == false) {\n\t \t\t PrintError.errorexist = true;\n\t \t\t String emsg=\"type of function parameters does not match\";\n\t \t\t PrintError.print(emsg, n.f3.beginLine, n.f3.beginColumn, 1);\n\t \t }\n\t }\n\t _ret = methodtable.returntype;\n\t return _ret;\n\t }", "Map<ActionParameterTypes, List<InferredStandardParameter>> getInferredParameterTypes();", "@Override\r\n\tpublic Object visitClosure(Closure closure, Object arg) throws Exception {\r\n//\t\tList<String> argTypes = new ArrayList<String>();\r\n//\t\tString resultType = null;\r\n//\t\tint numScopes = symbolTable.enterScope();\r\n////\t\t visit children\r\n//\t\tfor (VarDec vd : closure.formalArgList) {\r\n//\t\t\tString vdType = (String) vd.visit(this, arg);\r\n//\t\t\targTypes.add(vdType);\r\n//\t\t}\r\n//\t\tfor (Statement s : closure.statementList) {\r\n//\t\t\ts.visit(this, arg);\r\n//\t\t}\r\n//\t\tint numScopesExit = symbolTable.leaveScope();\r\n//\t\tcheck(numScopesExit > 0 && numScopesExit == numScopes,\r\n//\t\t\t\t\"unbalanced scopes\", closure);\r\n//\t\tclosure.setJVMType(JVMType);\r\n//\t\tclosure.setArgTypes(argTypes);\r\n//\t\tclosure.setResultType(resultType);\r\n//\t\treturn resultType;\r\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\r\n\t}", "public Type visit(Call n) {\n\t\tString idMetodo = n.i.s;\n\t\tType tipoObj = n.e.accept(this);\n\n\t\tif (!(tipoObj instanceof IdentifierType)) {\n\t\t\t//Erro:\n\t\t\tSystem.out.println(\"Método \" + idMetodo + \" chamado por objeto que não o define\");\n\t\t}\n\n\t\tString idObj = ((IdentifierType) tipoObj).s;\n\n\t\tMethod metodo = this.symbolTable.getMethod(idMetodo, idObj);\n\n\n\t\tn.i.accept(this);\n\t\tfor (int i = 0; i < n.el.size(); i++) {\n\t\t\tType t1 = null;\n\t\t\tType t2 = null;\n\n\t\t\tif (metodo.getParamAt(i) != null) {\n\t\t\t\tt1 = metodo.getParamAt(i).type();\n\t\t\t\tt2 = n.el.elementAt(i).accept(this);\n\t\t\t}\n\t\t\tif (!(this.symbolTable.compareTypes(t1, t2))) {\n\t\t\t\t//Erro:\n\t\t\t\tSystem.out.println(\"Argumentos passados com tipo errado para \" + idMetodo);\n\t\t\t}\n\n\t\t}\n\t\treturn metodo.type();\n\t}", "public interface ATypeCheckNode {}", "public boolean checkTypesAndScope(Model model) {\n Map scope = Collections.EMPTY_MAP;\n\n ArgSpec leftSideInScope = leftSide.getArgSpecInScope(model, scope);\n if (leftSideInScope == null) {\n return false;\n }\n leftSide = leftSideInScope;\n\n ArgSpec outputInScope = output.getArgSpecInScope(model, scope);\n if (outputInScope == null) {\n return false;\n }\n output = outputInScope;\n\n if (leftSide instanceof Term) {\n Type left = ((Term) leftSide).getType();\n if (output instanceof Term) {\n // TODO: decide whether to have ArgSpec be typed as well. we should\n // (leili)\n Type right = ((Term) output).getType();\n if ((left != null) && (right != null) && !right.isSubtypeOf(left)) {\n System.err.println(\"Term \" + leftSide + \", of type \" + left\n + \", cannot take value \" + output + \", which has type \" + right);\n return false;\n }\n } else if (output instanceof ListSpec) {\n output = ((ListSpec) output).transferToConcrete(left);\n }\n }\n\n return true;\n }", "void visitOperandFunction(ArgumentFunction operand);", "@Override\n public boolean evaluate(@Nonnull MethodInformation methodInformation) {\n boolean matches = namePattern.matcher(methodInformation.getName()).matches();\n final @Nonnull @NonNullableElements List<? extends VariableElement> methodParameters = methodInformation.getElement().getParameters();\n if (parameters.length == methodParameters.size()) {\n for (int i = 0; i < methodParameters.size(); i++) {\n final @Nonnull String nameOfDeclaredType = ProcessingUtility.getQualifiedName(methodParameters.get(i).asType());\n ProcessingLog.debugging(\"name of type: $\", nameOfDeclaredType);\n final @Nonnull String parameter = parameters[i];\n if (!parameter.equals(\"?\")) {\n matches = matches && nameOfDeclaredType.equals(parameter);\n }\n }\n } else {\n matches = false;\n }\n return matches;\n }", "private String[] getParameterTypeNames(MethodNode method) {\n GenericsMapper mapper = null;\n ClassNode declaringClass = method.getDeclaringClass();\n if (declaringClass.getGenericsTypes() != null && declaringClass.getGenericsTypes().length > 0) {\n if (!mappers.containsKey(declaringClass)) {\n ClassNode thiz = getClassNode();\n mapper = GenericsMapper.gatherGenerics(findResolvedType(thiz, declaringClass), declaringClass);\n } else {\n mapper = mappers.get(declaringClass);\n }\n }\n Parameter[] parameters = method.getParameters();\n String[] paramTypeNames = new String[parameters.length];\n for (int i = 0; i < paramTypeNames.length; i++) {\n ClassNode paramType = parameters[i].getType();\n if (mapper != null && paramType.getGenericsTypes() != null && paramType.getGenericsTypes().length > 0) {\n paramType = VariableScope.resolveTypeParameterization(mapper, VariableScope.clone(paramType));\n }\n paramTypeNames[i] = paramType.getName();\n if (paramTypeNames[i].startsWith(\"[\")) {\n int cnt = Signature.getArrayCount(paramTypeNames[i]);\n String sig = Signature.getElementType(paramTypeNames[i]);\n String qualifier = Signature.getSignatureQualifier(sig);\n String simple = Signature.getSignatureSimpleName(sig);\n StringBuilder sb = new StringBuilder();\n if (qualifier.length() > 0) {\n sb.append(qualifier).append(\".\");\n }\n sb.append(simple);\n for (int j = 0; j < cnt; j++) {\n sb.append(\"[]\");\n }\n paramTypeNames[i] = sb.toString();\n }\n }\n return paramTypeNames;\n }", "private static boolean isFunctionCall(CFAEdge pCfaEdge, String pExpectedFunctionName) {\n if (!(pCfaEdge instanceof AStatementEdge)) {\n return false;\n }\n AStatement statement = ((AStatementEdge) pCfaEdge).getStatement();\n if (!(statement instanceof AFunctionCall)) {\n return false;\n }\n AExpression callee =\n ((AFunctionCall) statement).getFunctionCallExpression().getFunctionNameExpression();\n if (!(callee instanceof AIdExpression)) {\n return false;\n }\n String functionName = ((AIdExpression) callee).getName();\n return functionName.equals(pExpectedFunctionName);\n }", "List<LightweightTypeReference> getTypeArguments();", "public static boolean areCorrespondingTypeVariables(Elements elements, AnnotatedTypeVariable type1, AnnotatedTypeVariable type2) {\n final TypeParameterElement type1ParamElem = (TypeParameterElement) type1.getUnderlyingType().asElement();\n final TypeParameterElement type2ParamElem = (TypeParameterElement) type2.getUnderlyingType().asElement();\n\n\n if (type1ParamElem.getGenericElement() instanceof ExecutableElement\n && type2ParamElem.getGenericElement() instanceof ExecutableElement) {\n final ExecutableElement type1Executable = (ExecutableElement) type1ParamElem.getGenericElement();\n final ExecutableElement type2Executable = (ExecutableElement) type2ParamElem.getGenericElement();\n\n final TypeElement type1Class = (TypeElement) type1Executable.getEnclosingElement();\n final TypeElement type2Class = (TypeElement) type2Executable.getEnclosingElement();\n\n boolean methodIsOverriden = elements.overrides(type1Executable, type2Executable, type1Class)\n || elements.overrides(type2Executable, type1Executable, type2Class);\n if (methodIsOverriden) {\n boolean haveSameIndex = type1Executable.getTypeParameters().indexOf(type1ParamElem) ==\n type2Executable.getTypeParameters().indexOf(type2ParamElem);\n return haveSameIndex;\n }\n }\n\n return false;\n }", "private static boolean functionTypeAlias_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_1_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && componentName(b, l + 1);\n r = r && functionTypeAlias_1_3(b, l + 1);\n r = r && consumeToken(b, EQ);\n r = r && type(b, l + 1);\n r = r && functionTypeAlias_1_6(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public static Map<TypeVariable, AnnotatedTypeMirror>\n findTypeArguments(final ProcessingEnvironment processingEnv,\n final AnnotatedTypeFactory atypeFactory,\n final ExpressionTree expr,\n final ExecutableElement elt,\n final AnnotatedExecutableType preType) {\n //TODO: TEMPORARY KLUDGE\n atypeFactory.getTypeArgumentInference().adaptMethodType(atypeFactory, expr, preType);\n\n // Is the method a generic method?\n if (elt.getTypeParameters().isEmpty()) {\n return Collections.emptyMap();\n }\n\n List<? extends Tree> targs;\n if (expr instanceof MethodInvocationTree) {\n targs = ((MethodInvocationTree) expr).getTypeArguments();\n } else if (expr instanceof NewClassTree) {\n targs = ((NewClassTree) expr).getTypeArguments();\n } else if (expr instanceof MemberReferenceTree) {\n targs = ((MemberReferenceTree) expr).getTypeArguments();\n if (targs == null) {\n return new HashMap<>();\n }\n } else {\n // This case should never happen.\n ErrorReporter.errorAbort(\"AnnotatedTypes.findTypeArguments: unexpected tree: \" + expr);\n return null; // dead code\n }\n\n // Has the user supplied type arguments?\n if (!targs.isEmpty()) {\n List<? extends AnnotatedTypeVariable> tvars = preType.getTypeVariables();\n\n Map<TypeVariable, AnnotatedTypeMirror> typeArguments = new HashMap<>();\n for (int i = 0; i < elt.getTypeParameters().size(); ++i) {\n AnnotatedTypeVariable typeVar = tvars.get(i);\n AnnotatedTypeMirror typeArg = atypeFactory.getAnnotatedTypeFromTypeTree(targs.get(i));\n // TODO: the call to getTypeParameterDeclaration shouldn't be necessary - typeVar already\n // should be a declaration.\n typeArguments.put(typeVar.getUnderlyingType(), typeArg);\n }\n return typeArguments;\n } else {\n return atypeFactory.getTypeArgumentInference().inferTypeArgs(atypeFactory, expr, elt, preType);\n }\n }", "@Test\n public void testSourceParamType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(getFirstTypeParameter(ParamToListParam.class));\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(ParamToListParam.class));\n PipelineRegisterer.validateTypes(typeList);\n }", "static boolean functionTypeWrapper(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeWrapper\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeWrapper_0(b, l + 1);\n if (!r) r = untypedFunctionType(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "@Override\n public void visitCallExpression(PsiCallExpression expression) {\n super.visitCallExpression(expression);\n //Get the types of all of the arguments, if one matches our checked classes, then we FLAG the CODE!\n\n PsiExpressionList list = expression.getArgumentList();\n PsiExpression[] type = list.getExpressions();\n\n/*\n if (isCheckedType(expression.getType())) //Check the call\n holder.registerProblem(expression,\n METHOD_CALL_EXPRESSION , myQuickFix);\n*/\n\n for (int i = 0; i < type.length; i++) { //Check the call arguments\n if (isCheckedType(type[i].getType()))\n holder.registerProblem(type[i],\n METHOD_CALL_ARGUMENT + \". Argument '\" + type[i].getText() + \"' is of unvalidated type '\" + type[i].getType().getPresentableText() + \"'\", callFix);\n }\n\n }", "public void visit(MethodDecl n) \n\t{\n\t\tClassSymbolTable cst = (ClassSymbolTable) currentScope;\n\t\n\t\tString returnType = getTypeStr(n.t);\n\t\tString name = n.i.toString();\n\t\tString[] paramNames = new String[n.fl.size()+1];\n\t\tString[] paramTypes = new String[n.fl.size()+1];\n\t\t\n\t\t//Add \"this\" parameter of the class type to the first arg\n\t\tparamNames[0] = \"this\";\n\t\tparamTypes[0] = cst.getName();\n\t\t\n\t\tn.t.accept(this);\n\t\tn.i.accept(this);\n \n\t\t//Check for redef in method arguments\n\t\tHashSet<String> methodArgs = new HashSet<String>();\n\t\n\t\tfor ( int i = 0; i < n.fl.size(); i++ ) \n\t\t{\n\t\t\tif(!methodArgs.add(n.fl.elementAt(i).i.toString()))\n\t\t\t{\n\t\t\t\tredefError(n.fl.elementAt(i).i.toString(), n.fl.elementAt(i).i.lineNum, n.fl.elementAt(i).i.charNum);\n\t\t\t}\n\t\t\tparamNames[n.fl.size()-i] = n.fl.elementAt(i).i.toString();\n\t\t\tparamTypes[n.fl.size()-i] = getTypeStr(n.fl.elementAt(i).t);\n\t\t\tn.fl.elementAt(i).accept(this);\n\t\t}\n\t\t\n\t\tcst.addMethod(name, paramNames, paramTypes, returnType);\n\t\tcurrentScope = cst.enterScope(name);\n\t\t\n\t\tfor ( int i = 0; i < n.vl.size(); i++ ) \n\t\t{\n\t\t\tn.vl.elementAt(i).accept(this);\n\t\t}\n\t\t\n\t\tfor ( int i = 0; i < n.sl.size(); i++ ) \n\t\t{\n\t\t\tn.sl.elementAt(i).accept(this);\n\t\t}\n \n\t\tn.e.accept(this);\n\t\t\n\t\tcurrentScope = currentScope.exitScope();\n\t}", "protected Type[] getJoinPointArgumentTypes() {\n return new Type[]{Type.getType(m_calleeMemberDesc)};\n }", "private static boolean functionFormalParameter_1_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionFormalParameter_1_2\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionFormalParameter_1_2_0(b, l + 1);\n r = r && consumeToken(b, COVARIANT);\n r = r && componentName(b, l + 1);\n r = r && functionFormalParameter_1_2_3(b, l + 1);\n r = r && formalParameterList(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public boolean isInFunction(Address addr);", "char[][] getTypeParameterNames();", "public boolean isEquivalentForFunctionDeclaration(Type t) {\n if (t.isAddressSpaceQualified()) {\n return false;\n }\n Type tu=t.unqualify();\n\n // Should be an array\n if (!tu.isPointer()) {\n return false;\n }\n\n // Check element type compatibility\n return getPointedType().isEquivalentForFunctionDeclaration(tu.getPointedType());\n }", "public Type visit(MethodDecl n) {\n\t\tn.t.accept(this);\n\n\t\tString identificador = n.i.toString();\n\t\tthis.currMethod = this.currClass.getMethod(identificador);\n\t\tType tipoMetodo = this.currMethod.type();\n\n\t\tn.i.accept(this);\n\t\tfor (int i = 0; i < n.fl.size(); i++) {\n\t\t\tn.fl.elementAt(i).accept(this);\n\t\t}\n\t\tfor (int i = 0; i < n.vl.size(); i++) {\n\t\t\tn.vl.elementAt(i).accept(this);\n\t\t}\n\t\tfor (int i = 0; i < n.sl.size(); i++) {\n\t\t\tn.sl.elementAt(i).accept(this);\n\t\t}\n\t\tif (!(this.symbolTable.compareTypes(n.e.accept(this), tipoMetodo))) {\n\t\t\t//Erro\n\t\t\tSystem.out.println(\"O retorno do método \" + this.currMethod.getId() + \" é do tipo errado\");\n\t\t}\n\t\treturn null;\n\t}", "private boolean check(TokenType tokType) {\r\n if(tokens.get(position).returnType() != tokType) {\r\n return false;\r\n }\r\n return true;\r\n }", "TypeInfo[] typeParams();", "private static boolean functionFormalParameter_1_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionFormalParameter_1_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionFormalParameter_1_1_0(b, l + 1);\n r = r && functionFormalParameter_1_1_1(b, l + 1);\n r = r && returnType(b, l + 1);\n r = r && componentName(b, l + 1);\n r = r && functionFormalParameter_1_1_4(b, l + 1);\n r = r && formalParameterList(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "private static boolean functionTypeWrapper_0_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeWrapper_0_0\")) return false;\n boolean r;\n r = voidTypeFunctionType(b, l + 1);\n if (!r) r = untypedFunctionType(b, l + 1);\n if (!r) r = simpleType(b, l + 1);\n return r;\n }", "@Test\r\n public void testEval__declare_call__1() throws ScriptException {\r\n Object value = engine.eval(\"#() true\");\r\n Assert.assertTrue(value instanceof Function);\r\n Object result = ((Function) value).invoke(engine.createBindings());\r\n Assert.assertTrue((Boolean)result);\r\n }", "@Override\n public ArrayList<String> checkSemantics(SymbolTable env) {\n ArrayList<String> res = new ArrayList<>();\n\n // entro in un nuovo livello di scope\n env.entryNewScope();\n\n //checkSemantic di tutti i parametri\n for (ParameterNode param : parameterNodeArrayList) {\n res.addAll(param.checkSemantics(env));\n }\n\n //checkSemantic di tutte le dichiarazioni interne alla funzione\n if (declarationsArrayList.size() > 0) {\n env.setOffset(-2);\n for (INode n : declarationsArrayList)\n res.addAll(n.checkSemantics(env));\n }\n\n //checkSemantic del corpo della funzione\n res.addAll(body.checkSemantics(env));\n\n //esco dal livello di scope\n env.exitLastScope();\n\n //ritorno eventuali errori rilevati\n return res;\n }", "ActionParameterTypes getFormalParameterTypes();", "@Generated(value={\"edu.jhu.cs.bsj.compiler.utils.generator.SourceGenerator\"})\npublic interface TypeParameterNode extends Node, TypeNameBindingNode\n{\n /**\n * Gets the base type name for the parameter.\n * @return The base type name for the parameter.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public IdentifierNode getIdentifier()throws ClassCastException;\n \n /**\n * Gets the union object for the base type name for the parameter.\n * @return A union object representing The base type name for the parameter.\n */\n public NodeUnion<? extends IdentifierNode> getUnionForIdentifier();\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n */\n public void setIdentifier(IdentifierNode identifier);\n \n /**\n * Changes the base type name for the parameter.\n * @param identifier The base type name for the parameter.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForIdentifier(NodeUnion<? extends IdentifierNode> identifier) throws NullPointerException;\n \n /**\n * Gets the bounds over the base type.\n * @return The bounds over the base type.\n * @throws ClassCastException If the value of this property is a special node.\n */\n public DeclaredTypeListNode getBounds()throws ClassCastException;\n \n /**\n * Gets the union object for the bounds over the base type.\n * @return A union object representing The bounds over the base type.\n */\n public NodeUnion<? extends DeclaredTypeListNode> getUnionForBounds();\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n */\n public void setBounds(DeclaredTypeListNode bounds);\n \n /**\n * Changes the bounds over the base type.\n * @param bounds The bounds over the base type.\n * @throws NullPointerException If the provided value is <code>null</code>.\n * Node union values may have <code>null</code>\n * contents but are never <code>null</code>\n * themselves.\n */\n public void setUnionForBounds(NodeUnion<? extends DeclaredTypeListNode> bounds) throws NullPointerException;\n \n /**\n * Generates a deep copy of this node.\n * @param factory The node factory to use to create the deep copy.\n * @return The resulting deep copy node.\n */\n @Override\n public TypeParameterNode deepCopy(BsjNodeFactory factory);\n \n}", "private static boolean isPrimitiveType(DetailAST ast) {\n boolean result = false;\n final DetailAST parameterType = ast.findFirstToken(TokenTypes.TYPE);\n final DetailAST identToken = parameterType.getFirstChild();\n\n if (identToken != null) {\n switch (identToken.getType()) {\n case TokenTypes.LITERAL_BOOLEAN:\n case TokenTypes.LITERAL_INT:\n case TokenTypes.LITERAL_LONG:\n case TokenTypes.LITERAL_SHORT:\n case TokenTypes.LITERAL_BYTE:\n case TokenTypes.LITERAL_CHAR:\n case TokenTypes.LITERAL_VOID:\n case TokenTypes.LITERAL_DOUBLE:\n case TokenTypes.LITERAL_FLOAT:\n result = !isArrayOrElipsis(parameterType);\n break;\n default:\n }\n }\n return result;\n }", "private static boolean parameterTypeList_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"parameterTypeList_1\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = consumeToken(b, LPAREN);\n r = r && normalParameterTypes(b, l + 1);\n r = r && parameterTypeList_1_2(b, l + 1);\n r = r && consumeToken(b, RPAREN);\n exit_section_(b, m, null, r);\n return r;\n }", "public static Class getFuncType(Class[] typeArgs) { throw Extensions.todo(); }", "void verify() {\n for (int i=0; i<this.params.length; ++i) {\n if (this.params[i] == null) continue;\n if (!nodes.containsKey(this.params[i])) {\n Assert.UNREACHABLE(this.params[i].toString_long());\n }\n }\n for (Iterator i=returned.iterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n if (n instanceof UnknownTypeNode) continue;\n if (!nodes.containsKey(n)) {\n Assert.UNREACHABLE(n.toString_long());\n }\n }\n for (Iterator i=thrown.iterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n if (n instanceof UnknownTypeNode) continue;\n if (!nodes.containsKey(n)) {\n Assert.UNREACHABLE(n.toString_long());\n }\n }\n for (Iterator i=callToRVN.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n if (!calls.contains(e.getKey())) {\n Assert.UNREACHABLE(e.toString());\n }\n Object o = e.getValue();\n if (o != null) {\n if (!nodes.containsKey(o)) {\n Assert.UNREACHABLE(e.toString());\n }\n }\n }\n for (Iterator i=callToTEN.entrySet().iterator(); i.hasNext(); ) {\n Map.Entry e = (Map.Entry) i.next();\n if (!calls.contains(e.getKey())) {\n Assert.UNREACHABLE(e.toString());\n }\n Object o = e.getValue();\n if (o instanceof Set) {\n for (Iterator j=((Set) o).iterator(); j.hasNext(); ) {\n Object o2 = j.next();\n if (!nodes.containsKey(o2)) {\n Assert.UNREACHABLE(e.toString());\n }\n }\n } else if (o != null) {\n if (!nodes.containsKey(o)) {\n Assert.UNREACHABLE(e.toString());\n }\n }\n }\n for (Iterator i=nodeIterator(); i.hasNext(); ) {\n Node n = (Node) i.next();\n if (n instanceof UnknownTypeNode) {\n Assert.UNREACHABLE(n.toString_long());\n }\n if (n.addedEdges != null) {\n for (Iterator j=n.addedEdges.entrySet().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n jq_Field f = (jq_Field) e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n Node n2 = (Node) o;\n if (!(n2 instanceof UnknownTypeNode) && !nodes.containsKey(n2)) {\n Assert.UNREACHABLE(n2.toString_long());\n }\n if (!n2.hasPredecessor(f, n)) {\n Assert.UNREACHABLE(n2.toString_long()+\" has no predecessor \"+n.toString_long());\n }\n } else if (o == null) {\n \n } else {\n Set s = (Set) o;\n for (Iterator k=s.iterator(); k.hasNext(); ) {\n Node n2 = (Node) k.next();\n if (!(n2 instanceof UnknownTypeNode) && !nodes.containsKey(n2)) {\n Assert.UNREACHABLE(n2.toString_long());\n }\n if (!n2.hasPredecessor(f, n)) {\n Assert.UNREACHABLE(n2.toString_long()+\" has no predecessor \"+n.toString_long());\n }\n }\n }\n }\n }\n if (n.predecessors != null) {\n for (Iterator j=n.predecessors.entrySet().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n jq_Field f = (jq_Field) e.getKey();\n Object o = e.getValue();\n if (o instanceof Node) {\n Node n2 = (Node) o;\n if (n2 != GlobalNode.GLOBAL && !(n2 instanceof UnknownTypeNode) && !nodes.containsKey(n2)) {\n Assert.UNREACHABLE(this.toString()+\" ::: \"+n2);\n }\n if (!n2.hasNonEscapingEdge(f, n)) {\n Assert.UNREACHABLE(this.toString()+\" ::: \"+n2+\" -> \"+n);\n }\n } else if (o == null) {\n \n } else {\n Set s = (Set) o;\n for (Iterator k=s.iterator(); k.hasNext(); ) {\n Node n2 = (Node) k.next();\n if (n2 != GlobalNode.GLOBAL && !(n2 instanceof UnknownTypeNode) && !nodes.containsKey(n2)) {\n Assert.UNREACHABLE(n2.toString_long());\n }\n if (!n2.hasNonEscapingEdge(f, n)) {\n Assert.UNREACHABLE(n2.toString_long()+\" has no edge \"+n.toString_long());\n }\n }\n }\n }\n }\n if (n.accessPathEdges != null) {\n for (Iterator j = n.accessPathEdges.entrySet().iterator(); j.hasNext(); ) {\n Map.Entry e = (Map.Entry) j.next();\n //jq_Field f = (jq_Field) e.getKey();\n Object o = e.getValue();\n if (o instanceof FieldNode) {\n FieldNode n2 = (FieldNode) o;\n if (!nodes.containsKey(n2)) {\n Assert.UNREACHABLE(n2.toString_long());\n }\n if (!n2.field_predecessors.contains(n)) {\n Assert.UNREACHABLE(n2.toString_long()+\" has no field pred \"+n.toString_long());\n }\n } else if (o == null) {\n \n } else {\n Set s = (Set) o;\n for (Iterator k=s.iterator(); k.hasNext(); ) {\n FieldNode n2 = (FieldNode) k.next();\n if (!nodes.containsKey(n2)) {\n Assert.UNREACHABLE(n2.toString_long());\n }\n if (!n2.field_predecessors.contains(n)) {\n Assert.UNREACHABLE(n2.toString_long()+\" has no field pred \"+n.toString_long());\n }\n }\n }\n }\n }\n if (n instanceof FieldNode) {\n FieldNode fn = (FieldNode) n;\n if (fn.field_predecessors != null) {\n jq_Field f = (jq_Field) fn.f;\n for (Iterator j=fn.field_predecessors.iterator(); j.hasNext(); ) {\n Node n2 = (Node) j.next();\n if (n2 != GlobalNode.GLOBAL && !(n2 instanceof UnknownTypeNode) && !nodes.containsKey(n2)) {\n Assert.UNREACHABLE(this.toString()+\" ::: \"+n2.toString_long());\n }\n if (!n2.hasAccessPathEdge(f, fn)) {\n Assert.UNREACHABLE(this.toString()+\" ::: \"+n2.toString_long()+\" => \"+fn.toString_long());\n }\n }\n }\n }\n if (n instanceof ReturnValueNode) {\n if (!callToRVN.containsValue(n)) {\n Assert.UNREACHABLE(n.toString_long());\n }\n }\n if (n instanceof ThrownExceptionNode) {\n if (!callToTEN.containsValue(n)) {\n System.out.println(callToTEN);\n Assert.UNREACHABLE(this.toString()+\" ::: \"+n.toString_long());\n }\n }\n }\n }", "private static boolean validateMethod(Method method) {\n for (Class<?> param : method.getParameterTypes()) {\n if (null == OvsDbConverter.get(param))\n return false;\n }\n return true;\n }", "public void tokenizeFunctionArguments(){\n for (int i = 0; i < tokenization.size(); i++){\n if (tokenization.get(i).kind == Token.Kind.FUN && tokenization.get(i+1).kind == Token.Kind.LEFT){\n int argIn = i + 2;\n HashMap<String, String> argNameMap = new HashMap<>();\n int argNum = 1;\n while (tokenization.get(argIn).kind == Token.Kind.ID || tokenization.get(argIn).kind == Token.Kind.COMMA || tokenization.get(argIn).kind == Token.Kind.RIGHT){\n if (tokenization.get(argIn).kind == Token.Kind.ID){\n argNameMap.put(tokenization.get(argIn).varName,\"$\" + argNum);\n tokenization.get(argIn).varName = \"$\" + argNum;\n argNum++;\n }\n argIn++;\n }\n //By here argIn is the index of the right parenthesis if there are arguments\n int funBodyIn = argIn;\n if (tokenization.get(funBodyIn).kind != Token.Kind.LBRACE){\n\n }\n else{\n int bracketBalance = 1;\n funBodyIn = funBodyIn + 1;\n while (bracketBalance > 0){\n if (tokenization.get(funBodyIn).kind == Token.Kind.ID && argNameMap.containsKey(tokenization.get(funBodyIn).varName)){\n tokenization.get(funBodyIn).varName = argNameMap.get(tokenization.get(funBodyIn).varName);\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.LBRACE){\n bracketBalance++;\n }\n else if (tokenization.get(funBodyIn).kind == Token.Kind.RBRACE){\n bracketBalance--;\n }\n funBodyIn++;\n }\n }\n }\n }\n }", "@Override\n\tpublic String visitMethodCall(MethodCallContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tParseTree lastChild=ctx.children.get(childrenNo-1);\n\t\tString returnType;\n\t\tString methodName;\n\t\tif(lastChild instanceof TerminalNode){\n\t\t\tList<String> argTypes=new ArrayList<>();\n\t\t\tStack<String> ids=new Stack<>();\n\t\t\tParseTree n=ctx.children.get(childrenNo-2);\n\t\t\tif (childrenNo<=4){\n\t\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t\tMethodRecord mRec=(MethodRecord) table.lookup(methodName);\n\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\tList<VarRecord> paramList=(List<VarRecord>) mRec.getParameters();\n\t\t\t\t\tList<ParseTree> arguments= new ArrayList<>();\n\t\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\t\targuments.add(n.getChild(i));\n\t\t\t\t\t}\n\t\t\t\t\tif(paramList.size()!=arguments.size())throw new RuntimeException(\"Incorrect number of arguments\");\n\t\t\t\t\telse for(int i=0;i<=paramList.size()-1;i++){\n\t\t\t\t\t\tString actualType=visit(arguments.get(i));\n\t\t\t\t\t\tString declaredType=paramList.get(i).getReturnType();\n\t\t\t\t\t\tif(!actualType.equals(declaredType)) throw new RuntimeException(\"Incorrect argument type\");\n\t\t\t\t\t}//checking arguments complete\n\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tClassRecord cRec;\n\t\t\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\t\t\tcRec=(ClassRecord) table.lookup(methodName);\n\t\t\t\t\t\tMethodRecord mRec=cRec.getMethod(methodName);\n\t\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t}\n\t\t\t}else \n\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t//checking charAt(i) \n\t\t\t\tif(methodName.equals(\"charAt\")){\n\t\t\t\t\tif(n.getChildCount()!=1) throw new RuntimeException(\"Incorrect number of arguments on charAt()function\");\n\t\t\t\t\telse {\n\t\t\t\t\t\tString charArgType=visit(n);\t\t//check argument type is int\n\t\t\t\t\t\tif (!charArgType.equals(\"int\")) throw new RuntimeException(\"ARgument i on function charAt(i) must be of type int\");\n\t\t\t\t\t}\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-6).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".charAt(i) is applicable only to Strings\");\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\targTypes.add(visit(n.getChild(i)));\n\t\t\t\t}\n\t\t\tfor(int i=childrenNo-4;i>=0;i-=2){\n\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t}\n\t\t\t}else{ \n\t\t\t\t//checking .length()\n\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\tif(methodName.equals(\"length\")){\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-5).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".length() is applicale only to Strings\");\n\t\t\t\t}\n\t\t\t\targTypes=null;\n\t\t\t\tfor(int i=childrenNo-3;i>=0;i-=2){\n\t\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t\t}\n\t\t\t}\n\t\t\tint count=ids.size();\n\t\t\tClassRecord cRec=null;\n\t\t\tRecord r;\n\t\t\tfor(int i=0;i<=count-2;i++){\n\t\t\t\tString key=ids.pop();\n\t\t\t\tr= table.lookup(key);\t\t\t\t\n\t\t\t\tcRec=(ClassRecord)table.lookup(r.Type);\n\t\t\t\tif (cRec==null) throw new RuntimeException(\"Class \"+key+\" is not declared\");\t\t\t\t\n\t\t\t}\n\t\t\t//last item in stack is the method Identifier\n\t\t\tMethodRecord mRec=cRec.getMethod(ids.pop());\n\t\t\tif (mRec==null)throw new RuntimeException(\"Method not declared in class \"+cRec.getName());\n\t\t\treturnType=mRec.getReturnType();\n\t\t\tif(methodName.equals(\"charAt\")) returnType=\"char\";\n\t\t\tif(methodName.equals(\"length\"))returnType=\"int\";\n\t\t\t//checking arguments \n\t\t\tif(argTypes==null) return returnType;\n\t\t\telse {\t\t\t\t\n\t\t\t\tList<VarRecord> parameters=(List<VarRecord>) mRec.getParameters();\n\t\t\t\tif(parameters.size()!=argTypes.size()) throw new RuntimeException(\"Incorect number of arguments on method call\");\n\t\t\t\telse{\n\t\t\t\t\tfor(int i=0;i<argTypes.size();i++){\n\t\t\t\t\t\tif(!argTypes.get(i).equals((parameters.get(i).getReturnType()))) throw new RuntimeException (\"incorrect argument type\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} return returnType;\n\t\t}\telse \t\t\t\t\t\t// last node is a RuleNode\n\t\t\t{\n\t\t\t\tif (childrenNo==3){\t\t\t\t\t\n\t\t\t\tString leftType=visit(ctx.getChild(0)); //also checks the first method for undeclared ids\n\t\t\t\t//ClassRecord cRec=(ClassRecord) table.lookup(ctx.getChild(0).getText());\n\t\t\t\tParseTree node=ctx.getChild(2);\n\t\t\t\t//checking charAt function\n\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\tString argType=visit(node.getChild(2));\n\t\t\t\t\t\tif (!argType.equals(\"int\")) throw new RuntimeException(\"Incorrect argument in charAt()\");\n\t\t\t\t\t\treturn \"char\";\n\t\t\t\t\t}\n\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\telse return \"int\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t{String mName=ctx.getChild(2).getChild(0).getText();\n\t\t\t\tClassRecord tempCR=(ClassRecord) table.lookup(ctx.getChild(0).getChild(0).getText());\n\t\t\t\tMethodRecord mRec=tempCR.getMethod(mName);\n\t\t\t\tif(mRec==null)throw new RuntimeException(\"method \"+mName+\" is not declared in class \"+tempCR.getName());\n\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (childrenNo==5){\n\t\t\t\t\tString leftType=visit(ctx.getChild(1)); //also checks the first method for undeclared ids\n\t\t\t\t\tParseTree node=ctx.getChild(4);\n\t\t\t\t\t//checking charAt function\n\t\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tClassRecord cR=(ClassRecord)table.lookup(leftType);\n\t\t\t\t\tMethodRecord mRec=cR.getMethod(node.getChild(0).getText());\n\t\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t}\n\t\treturn null; //debuggin purposes. should be unreachable\n\t}", "@Override\n\tpublic <ArgType, ReturnType> ReturnType visit(Visitor<ArgType, ReturnType> v, ArgType arg) {\n\t\treturn v.visitFunctionDecl(this, arg);\n\t}", "List<Type> attribTypes(List<JCExpression> trees, Env<AttrContext> env) {\n \tDEBUG.P(this,\"attribTypes(2)\");\n \tDEBUG.P(\"trees=\"+trees);\n\t\t//DEBUG.P(\"env=\"+env);\n ListBuffer<Type> argtypes = new ListBuffer<Type>();\n for (List<JCExpression> l = trees; l.nonEmpty(); l = l.tail)\n argtypes.append(chk.checkRefType(l.head.pos(), attribType(l.head, env)));\n \n DEBUG.P(0,this,\"attribTypes(2)\");\n return argtypes.toList();\n }", "List<Type> getTypeParameters();", "@Override\n public VarTypes getType(Analyzer analyzer) throws InvalidMethodException, InvalidTypeException {\n VarTypes returnType = analyzer.getSignature(callee).getReturnType();\n if (returnType == VarTypes.VOID) {\n throw new InvalidTypeException(VarTypes.VOID.getName());\n }\n return returnType;\n }", "public void validateMethodCall(HashMap<String, ArrayList<String>> callElements) throws\r\n\t\t\tIllegalOperationException, IncompatibleTypeException {\r\n\t\tMap.Entry<String, ArrayList<String>> data = callElements.entrySet().iterator().next();\r\n\t\tString methodName = data.getKey();\r\n\t\tMethodScope curMethod = Sjavac.getGlobalScope().getMethod(methodName);\r\n\t\tArrayList<String> methodArgs = data.getValue();\r\n\t\tif (methodArgs == null) {\r\n\t\t\tif (curMethod.getNumberOfArguments() != 0) {\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t} else if (Sjavac.getGlobalScope().containsMethod(callElements)) {\r\n\t\t\t if (methodArgs.size() == curMethod.getNumberOfArguments()) {\r\n\t\t\t\tfor (int i = 0; i < methodArgs.size(); i++) {\r\n\t\t\t\t\tif(!curMethod.getArgument(i).compatibleWith(methodArgs.get(i))){\r\n\t\t\t\t\t\tVariable reference = this.findVariable(methodArgs.get(i));\r\n\t\t\t\t\t\tif(reference==null||!reference.isInitialized()){\r\n\t\t\t\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tcurMethod.getArgument(i).compatibleWith(reference);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tthrow new IllegalOperationException();\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tthrow new IllegalOperationException();\r\n\t\t}\r\n\t}", "static int type_of_stax(String passed){\n\t\treturn 1;\n\t}", "@Override\n public void analyze(Analyzer analyzer) throws VerifierException {\n VarTypes[] paramTypes = this.paramList.getParamsTypes(analyzer);\n if (!analyzer.has(this.callee, paramTypes)) {\n StringJoiner joiner = new StringJoiner(\", \");\n for (VarTypes type : paramTypes) {\n joiner.add(type.getName());\n }\n String signature = String.format(\"%s(%s)\", this.callee, joiner.toString());\n throw new InvalidMethodException(signature);\n }\n }", "@SuppressWarnings(\"unused\")\n private void initSymbolTable() {\n MethodType I_V = new MethodType(Type.Int, Type.Void);\n MethodType I_R = new MethodType(Type.Int, Type.Real);\n MethodType I_S = new MethodType(Type.Int, Type.String);\n MethodType I_D = new MethodType(Type.Int, Type.NodeSet);\n MethodType R_I = new MethodType(Type.Real, Type.Int);\n MethodType R_V = new MethodType(Type.Real, Type.Void);\n MethodType R_R = new MethodType(Type.Real, Type.Real);\n MethodType R_D = new MethodType(Type.Real, Type.NodeSet);\n MethodType R_O = new MethodType(Type.Real, Type.Reference);\n MethodType I_I = new MethodType(Type.Int, Type.Int);\n MethodType D_O = new MethodType(Type.NodeSet, Type.Reference);\n MethodType D_V = new MethodType(Type.NodeSet, Type.Void);\n MethodType D_S = new MethodType(Type.NodeSet, Type.String);\n MethodType D_D = new MethodType(Type.NodeSet, Type.NodeSet);\n MethodType A_V = new MethodType(Type.Node, Type.Void);\n MethodType S_V = new MethodType(Type.String, Type.Void);\n MethodType S_S = new MethodType(Type.String, Type.String);\n MethodType S_A = new MethodType(Type.String, Type.Node);\n MethodType S_D = new MethodType(Type.String, Type.NodeSet);\n MethodType S_O = new MethodType(Type.String, Type.Reference);\n MethodType B_O = new MethodType(Type.Boolean, Type.Reference);\n MethodType B_V = new MethodType(Type.Boolean, Type.Void);\n MethodType B_B = new MethodType(Type.Boolean, Type.Boolean);\n MethodType B_S = new MethodType(Type.Boolean, Type.String);\n MethodType D_X = new MethodType(Type.NodeSet, Type.Object);\n MethodType R_RR = new MethodType(Type.Real, Type.Real, Type.Real);\n MethodType I_II = new MethodType(Type.Int, Type.Int, Type.Int);\n MethodType B_RR = new MethodType(Type.Boolean, Type.Real, Type.Real);\n MethodType B_II = new MethodType(Type.Boolean, Type.Int, Type.Int);\n MethodType S_SS = new MethodType(Type.String, Type.String, Type.String);\n MethodType S_DS = new MethodType(Type.String, Type.Real, Type.String);\n MethodType S_SR = new MethodType(Type.String, Type.String, Type.Real);\n MethodType O_SO = new MethodType(Type.Reference, Type.String, Type.Reference);\n\n MethodType D_SS =\n new MethodType(Type.NodeSet, Type.String, Type.String);\n MethodType D_SD =\n new MethodType(Type.NodeSet, Type.String, Type.NodeSet);\n MethodType B_BB =\n new MethodType(Type.Boolean, Type.Boolean, Type.Boolean);\n MethodType B_SS =\n new MethodType(Type.Boolean, Type.String, Type.String);\n MethodType S_SD =\n new MethodType(Type.String, Type.String, Type.NodeSet);\n MethodType S_DSS =\n new MethodType(Type.String, Type.Real, Type.String, Type.String);\n MethodType S_SRR =\n new MethodType(Type.String, Type.String, Type.Real, Type.Real);\n MethodType S_SSS =\n new MethodType(Type.String, Type.String, Type.String, Type.String);\n\n /*\n * Standard functions: implemented but not in this table concat().\n * When adding a new function make sure to uncomment\n * the corresponding line in <tt>FunctionAvailableCall</tt>.\n */\n\n // The following functions are inlined\n\n _symbolTable.addPrimop(\"current\", A_V);\n _symbolTable.addPrimop(\"last\", I_V);\n _symbolTable.addPrimop(\"position\", I_V);\n _symbolTable.addPrimop(\"true\", B_V);\n _symbolTable.addPrimop(\"false\", B_V);\n _symbolTable.addPrimop(\"not\", B_B);\n _symbolTable.addPrimop(\"name\", S_V);\n _symbolTable.addPrimop(\"name\", S_A);\n _symbolTable.addPrimop(\"generate-id\", S_V);\n _symbolTable.addPrimop(\"generate-id\", S_A);\n _symbolTable.addPrimop(\"ceiling\", R_R);\n _symbolTable.addPrimop(\"floor\", R_R);\n _symbolTable.addPrimop(\"round\", R_R);\n _symbolTable.addPrimop(\"contains\", B_SS);\n _symbolTable.addPrimop(\"number\", R_O);\n _symbolTable.addPrimop(\"number\", R_V);\n _symbolTable.addPrimop(\"boolean\", B_O);\n _symbolTable.addPrimop(\"string\", S_O);\n _symbolTable.addPrimop(\"string\", S_V);\n _symbolTable.addPrimop(\"translate\", S_SSS);\n _symbolTable.addPrimop(\"string-length\", I_V);\n _symbolTable.addPrimop(\"string-length\", I_S);\n _symbolTable.addPrimop(\"starts-with\", B_SS);\n _symbolTable.addPrimop(\"format-number\", S_DS);\n _symbolTable.addPrimop(\"format-number\", S_DSS);\n _symbolTable.addPrimop(\"unparsed-entity-uri\", S_S);\n _symbolTable.addPrimop(\"key\", D_SS);\n _symbolTable.addPrimop(\"key\", D_SD);\n _symbolTable.addPrimop(\"id\", D_S);\n _symbolTable.addPrimop(\"id\", D_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"function-available\", B_S);\n _symbolTable.addPrimop(\"element-available\", B_S);\n _symbolTable.addPrimop(\"document\", D_S);\n _symbolTable.addPrimop(\"document\", D_V);\n\n // The following functions are implemented in the basis library\n _symbolTable.addPrimop(\"count\", I_D);\n _symbolTable.addPrimop(\"sum\", R_D);\n _symbolTable.addPrimop(\"local-name\", S_V);\n _symbolTable.addPrimop(\"local-name\", S_D);\n _symbolTable.addPrimop(\"namespace-uri\", S_V);\n _symbolTable.addPrimop(\"namespace-uri\", S_D);\n _symbolTable.addPrimop(\"substring\", S_SR);\n _symbolTable.addPrimop(\"substring\", S_SRR);\n _symbolTable.addPrimop(\"substring-after\", S_SS);\n _symbolTable.addPrimop(\"substring-before\", S_SS);\n _symbolTable.addPrimop(\"normalize-space\", S_V);\n _symbolTable.addPrimop(\"normalize-space\", S_S);\n _symbolTable.addPrimop(\"system-property\", S_S);\n\n // Extensions\n _symbolTable.addPrimop(\"nodeset\", D_O);\n _symbolTable.addPrimop(\"objectType\", S_O);\n _symbolTable.addPrimop(\"cast\", O_SO);\n\n // Operators +, -, *, /, % defined on real types.\n _symbolTable.addPrimop(\"+\", R_RR);\n _symbolTable.addPrimop(\"-\", R_RR);\n _symbolTable.addPrimop(\"*\", R_RR);\n _symbolTable.addPrimop(\"/\", R_RR);\n _symbolTable.addPrimop(\"%\", R_RR);\n\n // Operators +, -, * defined on integer types.\n // Operators / and % are not defined on integers (may cause exception)\n _symbolTable.addPrimop(\"+\", I_II);\n _symbolTable.addPrimop(\"-\", I_II);\n _symbolTable.addPrimop(\"*\", I_II);\n\n // Operators <, <= >, >= defined on real types.\n _symbolTable.addPrimop(\"<\", B_RR);\n _symbolTable.addPrimop(\"<=\", B_RR);\n _symbolTable.addPrimop(\">\", B_RR);\n _symbolTable.addPrimop(\">=\", B_RR);\n\n // Operators <, <= >, >= defined on int types.\n _symbolTable.addPrimop(\"<\", B_II);\n _symbolTable.addPrimop(\"<=\", B_II);\n _symbolTable.addPrimop(\">\", B_II);\n _symbolTable.addPrimop(\">=\", B_II);\n\n // Operators <, <= >, >= defined on boolean types.\n _symbolTable.addPrimop(\"<\", B_BB);\n _symbolTable.addPrimop(\"<=\", B_BB);\n _symbolTable.addPrimop(\">\", B_BB);\n _symbolTable.addPrimop(\">=\", B_BB);\n\n // Operators 'and' and 'or'.\n _symbolTable.addPrimop(\"or\", B_BB);\n _symbolTable.addPrimop(\"and\", B_BB);\n\n // Unary minus.\n _symbolTable.addPrimop(\"u-\", R_R);\n _symbolTable.addPrimop(\"u-\", I_I);\n }", "boolean match(String mnemonic, ParameterType[] parameters);", "private static boolean functionTypeAlias_0(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"functionTypeAlias_0\")) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = functionTypeAlias_0_0(b, l + 1);\n r = r && consumeToken(b, TYPEDEF);\n r = r && functionPrefix(b, l + 1);\n r = r && functionTypeAlias_0_3(b, l + 1);\n r = r && formalParameterList(b, l + 1);\n r = r && functionTypeAlias_0_5(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public Arginfo visit(TypeDeclaration n, Arginfo argu) {\n Arginfo _ret=null;\n n.f0.accept(this, argu);\n return _ret;\n }", "@Test\n public void complexPointerTypeParameters() {\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, Pointer.class, Pointer.class, Pointer.class, Pointer.class);\n demangle(null, \"_Z14pointerAliasesPPvS_PS0_PPi\", null, ident(\"pointerAliases\"), null, \"**Void\", \"*Void\", \"***Void\", \"**Integer\");\n }", "@Test\n public void testParameterType() throws Exception {\n ArrayList<Type> typeList = Lists.newArrayList();\n typeList.add(String.class);\n typeList.addAll(getBothParameters(ParamToListParam.class));\n typeList.add(getFirstTypeParameter(StringListSink.class));\n PipelineRegisterer.validateTypes(typeList);\n }" ]
[ "0.67417955", "0.6623236", "0.6465391", "0.62275004", "0.61272514", "0.60930747", "0.59230524", "0.5905928", "0.5752492", "0.5652184", "0.558645", "0.5573453", "0.5571903", "0.5541631", "0.5537053", "0.5520944", "0.54706997", "0.5467897", "0.54351133", "0.541665", "0.5396576", "0.53839356", "0.53396213", "0.53391844", "0.53334576", "0.5312301", "0.53082526", "0.5266146", "0.5249062", "0.5243088", "0.5197311", "0.51417387", "0.51082367", "0.50444746", "0.50344044", "0.50254893", "0.5015584", "0.50097924", "0.4975392", "0.49718022", "0.4957391", "0.49499777", "0.49277174", "0.49220896", "0.49100438", "0.49032775", "0.49019748", "0.49003667", "0.4886761", "0.48864534", "0.48822385", "0.48787943", "0.48728138", "0.4870221", "0.48592484", "0.4851967", "0.48492926", "0.48459008", "0.4836043", "0.4830293", "0.4820655", "0.48117715", "0.47940442", "0.4791444", "0.47910067", "0.47900835", "0.4753774", "0.47534764", "0.4749628", "0.47476786", "0.4743447", "0.4741819", "0.47409794", "0.47397676", "0.4728671", "0.4727222", "0.47254455", "0.47217512", "0.4695621", "0.46906", "0.46848938", "0.46827808", "0.46807656", "0.46776828", "0.4670388", "0.46594074", "0.4657369", "0.46558836", "0.46520618", "0.46497643", "0.4643711", "0.4643042", "0.46411374", "0.46397677", "0.46370557", "0.46343604", "0.46339524", "0.46309778", "0.46297804", "0.46243727", "0.4620714" ]
0.0
-1
/ 3.6 Indexing / verify that the index expression has type int or alias of int, and that the expression has type slice or array or corresponding alias
public void outAIndexingExp(AIndexingExp node) throws TypeException{ PExp exp = node.getArray(); PExp index = node.getIndex(); Type exptype = typemap.get(exp); Type indextype = typemap.get(index); indextype = removeAlias(indextype); exptype = removeAlias(exptype); if(!(indextype instanceof IntType)){ throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Non-integer index."); } if(exptype instanceof SliceType){ SliceType expslice = (SliceType) exptype; typemap.put(node,expslice.getType()); } else if(exptype instanceof ArrayType){ ArrayType exparray = (ArrayType) exptype; typemap.put(node,exparray.getType()); } else{ throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Indexing expression on a non-array/slice type."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Expression getIndexExpr();", "public Object visitIndexNode(GoIRIndexNode node){\n\t\tString type = (String) node.getIndex().accept(this);\n\t\tif(!(type.equalsIgnoreCase(\"int\"))) {\n\t\t\tthrow new GoException(\"non-integer slice index \\\"\"+type +\"\\\"\" );\n\t\t}\n\t\treturn type;\n\t}", "boolean isIndex();", "private void indexOfInt(Instruction o, Type index){\n\t\tif (! index.equals(Type.INT))\n\t\t\t\tconstraintViolated(o, \"The 'index' is not of type int but of type \"+index+\".\");\n\t}", "boolean isAssignable(String variable, Object value, int... indexes);", "public static IndexExpression arrayAccess(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "@Test\n\tpublic void testCollectionAccess() throws ParseException {\n\t\tExpression expression = langParser(\"a[3]\").expression();\n\t\tassertTrue(expression instanceof CollectionAccess);\n\t\tCollectionAccess collectionAccess = (CollectionAccess) expression;\n\t\tassertTrue(collectionAccess.getCollection() instanceof Identifier);\n\t\tassertEquals(((Identifier) collectionAccess.getCollection()).getName(), \"a\");\n\t\tassertTrue(collectionAccess.getKey() instanceof LongLiteral);\n\t\tassertEquals(((LongLiteral) collectionAccess.getKey()).longValue(), 3L);\n\t}", "IndexType type();", "public static MethodCallExpression arrayIndex(Expression array, Expression indexExpressions[]) { throw Extensions.todo(); }", "public ATExpression base_indexExpression();", "public static BinaryExpression arrayIndex(Expression array, Expression indexExpressions) { throw Extensions.todo(); }", "boolean isIndexed();", "boolean isIndexed();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "boolean hasIndex();", "@Test\n public void testIndexOf() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.indexOf(arg);\n int expResult = 2;\n\n assertEquals(expResult, result);\n\n }", "public static IndexExpression arrayAccess(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "@Test\n public void fromClausesAndIndexedExpressionsMatchExpectedValues()\n throws IndexNameConflictException, IndexExistsException, RegionNotFoundException {\n Index i1 = qs.createIndex(\"tIndex\", IndexType.FUNCTIONAL, \"vals.secId\",\n SEPARATOR + \"portfolio pf, pf.positions.values vals\");\n Index i2 = qs.createIndex(\"dIndex\", IndexType.FUNCTIONAL, \"pf.getCW(pf.ID)\",\n SEPARATOR + \"portfolio pf\");\n Index i3 = qs.createIndex(\"fIndex\", IndexType.FUNCTIONAL, \"sIter\",\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\");\n Index i4 = qs.createIndex(\"cIndex\", IndexType.FUNCTIONAL,\n \"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\", SEPARATOR + \"portfolio pf\");\n Index i5 = qs.createIndex(\"inIndex\", IndexType.FUNCTIONAL, \"kIter.secId\",\n SEPARATOR + \"portfolio['0'].positions.values kIter\");\n Index i6 = qs.createIndex(\"sIndex\", IndexType.FUNCTIONAL, \"pos.secId\",\n SEPARATOR + \"portfolio.values val, val.positions.values pos\");\n Index i7 = qs.createIndex(\"p1Index\", IndexType.PRIMARY_KEY, \"pkid\", SEPARATOR + \"portfolio pf\");\n Index i8 = qs.createIndex(\"p2Index\", IndexType.PRIMARY_KEY, \"pk\", SEPARATOR + \"portfolio pf\");\n if (!i1.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio index_iter1, index_iter1.positions.values index_iter2\")\n || !i1.getCanonicalizedIndexedExpression().equals(\"index_iter2.secId\")\n || !i1.getFromClause().equals(SEPARATOR + \"portfolio pf, pf.positions.values vals\")\n || !i1.getIndexedExpression().equals(\"vals.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i2.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i2.getCanonicalizedIndexedExpression().equals(\"index_iter1.getCW(index_iter1.ID)\")\n || !i2.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i2.getIndexedExpression().equals(\"pf.getCW(pf.ID)\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i3.getCanonicalizedFromClause().equals(\n SEPARATOR\n + \"portfolio index_iter1, index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr index_iter3\")\n || !i3.getCanonicalizedIndexedExpression().equals(\"index_iter3\")\n || !i3.getFromClause()\n .equals(\n SEPARATOR + \"portfolio pf, pf.collectionHolderMap[(pf.ID).toString()].arr sIter\")\n || !i3.getIndexedExpression().equals(\"sIter\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i4.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i4.getCanonicalizedIndexedExpression().equals(\n \"index_iter1.collectionHolderMap[index_iter1.ID.toString()].arr[index_iter1.ID]\")\n || !i4.getFromClause().equals(SEPARATOR + \"portfolio pf\") || !i4.getIndexedExpression()\n .equals(\"pf.collectionHolderMap[(pf.ID).toString()].arr[pf.ID]\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i5.getCanonicalizedFromClause()\n .equals(SEPARATOR + \"portfolio['0'].positions.values index_iter4\")\n || !i5.getCanonicalizedIndexedExpression().equals(\"index_iter4.secId\")\n || !i5.getFromClause().equals(SEPARATOR + \"portfolio['0'].positions.values kIter\")\n || !i5.getIndexedExpression().equals(\"kIter.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i6.getCanonicalizedFromClause()\n .equals(\n SEPARATOR + \"portfolio.values index_iter5, index_iter5.positions.values index_iter6\")\n || !i6.getCanonicalizedIndexedExpression().equals(\"index_iter6.secId\")\n || !i6.getFromClause().equals(SEPARATOR + \"portfolio.values val, val.positions.values pos\")\n || !i6.getIndexedExpression().equals(\"pos.secId\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i7.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i7.getCanonicalizedIndexedExpression().equals(\"index_iter1.pkid\")\n || !i7.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i7.getIndexedExpression().equals(\"pkid\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n if (!i8.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i8.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i8.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i8.getIndexedExpression().equals(\"pk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i1);\n qs.removeIndex(i2);\n qs.removeIndex(i3);\n qs.removeIndex(i4);\n qs.removeIndex(i5);\n qs.removeIndex(i6);\n qs.removeIndex(i7);\n qs.removeIndex(i8);\n Index i9 =\n qs.createIndex(\"p3Index\", IndexType.PRIMARY_KEY, \"getPk\", SEPARATOR + \"portfolio pf\");\n if (!i9.getCanonicalizedFromClause().equals(SEPARATOR + \"portfolio index_iter1\")\n || !i9.getCanonicalizedIndexedExpression().equals(\"index_iter1.pk\")\n || !i9.getFromClause().equals(SEPARATOR + \"portfolio pf\")\n || !i9.getIndexedExpression().equals(\"getPk\")) {\n fail(\"Mismatch found among fromClauses or IndexedExpressions\");\n }\n qs.removeIndex(i9);\n }", "public Type get(int index);", "public int typeIndex();", "private boolean isElementIndex(final long index) {\r\n\t\treturn index >= 0 && index < size;\r\n\t}", "public static MethodCallExpression arrayIndex(Expression array, Iterable<Expression> indexExpressions) { throw Extensions.todo(); }", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n JSTerm jSTerm1 = new JSTerm();\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n // Undeclared exception!\n try { \n jSTerm0.matches((JSPredicateForm) jSTerm1, jSSubstitution0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "private boolean validateIndex(int index)\n {\n return index >= 0;\n }", "private boolean isValid(int index) {\r\n return index >= 0 && index < dimension;\r\n }", "private static void zoomInArrayElmnt(\n String curPath,\n Object curObj,\n String idxStr,\n int curIndex,\n ArrayList<String> accessors,\n HashSet<Variable> variables) {\n int nextIndex = curIndex + 1;\n int elementIndex = 0;\n int target = Integer.parseInt(idxStr);\n String nextPath = curPath + \".[\" + idxStr + \"]\";\n Object nextObj = null;\n\n String typeString = curObj.getClass().getComponentType().toString();\n switch (typeString) {\n case \"boolean\":\n for (boolean element : (boolean[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"byte\":\n for (byte element : (byte[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"short\":\n for (short element : (short[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"int\":\n for (int element : (int[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"long\":\n for (long element : (long[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"char\":\n for (char element : (char[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"float\":\n for (float element : (float[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n case \"double\":\n for (double element : (double[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n break;\n default:\n for (Object element : (Object[]) curObj) {\n if (elementIndex == target) {\n nextObj = element;\n break;\n } else {\n elementIndex++;\n }\n }\n }\n zoomInAndGetVars(nextObj, accessors, nextIndex, nextPath, variables);\n }", "@Test\n public void testIndexOf_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n Integer arg = 7;\n\n int result = instance.indexOf(arg);\n int expResult = 2;\n\n assertEquals(expResult, result);\n\n }", "public abstract int indexFor(Object obj);", "public abstract int getIndex();", "@VTID(10)\n int getIndex();", "public abstract long getIndex();", "protected void checkSlice(int slice) {\n\tif (slice < 0 || slice >= slices) throw new IndexOutOfBoundsException(\"Attempted to access \"+toStringShort()+\" at slice=\"+slice);\n}", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n String[] stringArray0 = new String[1];\n Object[] objectArray0 = new Object[0];\n // Undeclared exception!\n try { \n SQLUtil.renderWhereClause(stringArray0, objectArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test \n\tpublic void testIfNumberisInArray()\n\t{\n \tData d = new Data();\n\t\tassertTrue(d.isMember(61)); // 61 is the value of the 0th index of the array. \n\t}", "private int indexOf(SeqItem el)\n\t{\n\t\treturn indexOf((short)el.getIndex());\n\t}", "public int getIndex();", "public int getIndex();", "public int getIndex();", "public void visit(ArrayIndexNode node) {\r\n node.array.accept(this);\r\n node.index.accept(this);\r\n if(node.array.type.dim < 1)\r\n throw new semanticError(\"This is not an array\", node.array.pos);\r\n if(!node.index.type.is_int())\r\n throw new semanticError(\"Array index must be type int\", node.index.pos);\r\n node.type = new Type(node.array.type.typename, node.array.type.dim - 1);\r\n node.category = ExprNode.Category.LVALUE;\r\n }", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "int getIndex();", "boolean getIsIndexOnValues();", "@Test\n public void testGetIndex() {\n DefaultPieDataset d = new DefaultPieDataset();\n d.setValue(\"A\", 1.0);\n d.setValue(\"B\", 2.0);\n assertEquals(0, d.getIndex(\"A\"));\n assertEquals(1, d.getIndex(\"B\"));\n assertEquals(-1, d.getIndex(\"XX\"));\n\n boolean pass = false;\n try {\n d.getIndex(null);\n }\n catch (IllegalArgumentException e) {\n pass = true;\n }\n assertTrue(pass);\n }", "@Override\n public Operator visitIndexScan(IndexScan operator)\n {\n throw new AssertionError();\n }", "@Test\n public void testDereferenceLiterals() {\n assertThat(\"[1,2,3][1]\").simplifiesTo(\"2\");\n assertThat(\"[1,2,3]?[1]\").simplifiesTo(\"2\");\n\n assertThat(\"[1,2,3][3]\").simplifiesTo(\"null\");\n assertThat(\"[1,2,3]?[3]\").simplifiesTo(\"null\");\n\n assertThat(\"map('a':1, 'b':3)['a']\").simplifiesTo(\"1\");\n assertThat(\"map('a':1, 'b':3)?['a']\").simplifiesTo(\"1\");\n\n assertThat(\"record(a:1, b:3).a\").simplifiesTo(\"1\");\n assertThat(\"record(a:1, b:3)?.a\").simplifiesTo(\"1\");\n }", "Access offset(Id a) throws IOException {\n\t\tExpr e;\n\t\tmatch('[');\n\t\te = bool();\n\t\tmatch(']');\n\t\tAccess acc = new Access(a, e);\n\t\twhile (look.tag == '[') { \t\t\t\t\t\t// multi-dimensional array\n\t\t\tmatch('[');\n\t\t\te = bool();\n\t\t\tmatch(']');\n\t\t\tacc = new Access((Expr) acc, e);\n\t\t}\n\t\treturn acc;\n\t}", "@Override\n\tpublic TypeDenoter visitIxExpr(IxExpr expr, TypeDenoter arg) {\n\t\treturn expr.ref.visit(this, null);\n\t}", "@Test(timeout = 4000)\n public void test016() throws Throwable {\n String[] stringArray0 = new String[1];\n String[] stringArray1 = new String[8];\n // Undeclared exception!\n try { \n SQLUtil.renderWhereClause(stringArray1, stringArray0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 1\n //\n verifyException(\"org.databene.jdbacl.SQLUtil\", e);\n }\n }", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\ttestArray = new ArrayBasedList<String>();\r\n\t\ttestArray.add(\"math\");\r\n\t\ttestArray.add(\"reading\");\r\n\t\ttestArray.add(\"science\");\r\n\t\ttestArray.add(\"social studies\");\r\n\t\tassertEquals(0, testArray.indexOf(\"math\"));\r\n\t\tassertEquals(1, testArray.indexOf(\"reading\"));\r\n\t\tassertEquals(2, testArray.indexOf(\"science\"));\r\n\t\tassertEquals(3, testArray.indexOf(\"social studies\"));\r\n\t\tassertEquals(-1, testArray.indexOf(\"invalid\"));\r\n\t}", "@Test\n public void testIndexMaintenanceWithIndexOnMethodtoArray() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.toArray() pf\");\n assertTrue(i1 instanceof CompactRangeIndex);\n Cache cache = CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "@Contract(pure = true)\n default boolean isDefinedAt(int index) {\n return index >= 0 && sizeGreaterThan(index);\n }", "public int getIndexOfElement(Object... value);", "@Test\n @IncludeIn(POSTGRESQL)\n public void array() {\n Expression<Integer[]> expr = Expressions.template(Integer[].class, \"'{1,2,3}'::int[]\");\n Integer[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0].intValue());\n Assert.assertEquals(2, result[1].intValue());\n Assert.assertEquals(3, result[2].intValue());\n }", "short getKeyIx();", "@Test(expected = ArrayIndexOutOfBoundsException.class)\n public void getTestArrayIndexOutOfBoundsException() {\n SimpleArray<String> simpleArray = new SimpleArray<>(1);\n simpleArray.add(\"First\");\n simpleArray.get(1);\n }", "static boolean arrayAccess(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"arrayAccess\")) return false;\n if (!nextTokenIs(b, \"\", LBRACKET, QUEST, QUEST_DOT)) return false;\n boolean r, p;\n Marker m = enter_section_(b, l, _NONE_);\n r = arrayAccess_0(b, l + 1);\n r = r && arrayAccess_1(b, l + 1);\n r = r && consumeToken(b, LBRACKET);\n p = r; // pin = 3\n r = r && report_error_(b, arrayAccess_3(b, l + 1));\n r = p && consumeToken(b, RBRACKET) && r;\n exit_section_(b, l, m, r, p, null);\n return r || p;\n }", "@Test\n public void validateArrayIndexIsNull(){\n String[] a = new String[2];\n Validate.validIndex(a,20);\n }", "private boolean checkIndexBounds(int idx) {\n return (idx >= 0) && (idx <= this.length);\n }", "@Test(timeout = 4000)\n public void test51() throws Throwable {\n JSTerm jSTerm0 = new JSTerm();\n UnaryOperator<JSTerm> unaryOperator0 = UnaryOperator.identity();\n jSTerm0.replaceAll(unaryOperator0);\n Predicate.isEqual((Object) jSTerm0);\n // Undeclared exception!\n try { \n jSTerm0.print();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void testResolveDereferenceDotArray()\r\n {\r\n _field _count = _field.of( \"public int count;\" );\r\n _field _name = _field.of( \"public String name;\" );\r\n \r\n Form f = ForML.compile( \"{+field.type+} {+field.name+}, \");\r\n \r\n assertEquals( 2, f.getCardinality( \r\n VarContext.of( \"field\", new _field[]{_count, _name} ) ) );\r\n \r\n String str = f.author( \r\n VarContext.of( \"field\", new _field[]{_count, _name} ) );\r\n \r\n assertEquals( \"int count, String name\", str );\r\n }", "int parseIndexField(String text) {\n\t\tif (text.equals(\"*\")) return -1;\n\t\tif (text.equals(\"ANY\")) return -1;\n\t\tif (text.equals(\"?\")) return -2;\n\t\tif (text.equals(\"ALL\")) return -2;\n\t\treturn Gpr.parseIntSafe(text);\n\t}", "@Test // DATAMONGO-774\n\t@Disabled\n\tvoid shouldRenderNestedIndexedFieldReference() {\n\t\tassertThat(transformValue(\"foo[3].bar\")).isEqualTo(\"$foo[3].bar\");\n\t}", "Boolean checkIndexing(Long harvestResultOid) throws DigitalAssetStoreException;", "private void checkIndex(int index) {\n int size = model.size();\n if ((index < 0) || (index >= size)) {\n throw new IllegalArgumentException(\"Index out of valid scope 0..\"\n + (size - 1)\n + \": \"\n + index);\n }\n }", "@Override\n public boolean isUsableIndex(int idx) {\n if ( idx < 0 )\n return false;\n if ( idx >= numDataCols )\n return false;\n return Boolean.TRUE.equals(standardized[idx]);\n }", "public int getInt(int index)\r\n/* 372: */ {\r\n/* 373:386 */ ensureAccessible();\r\n/* 374:387 */ return _getInt(index);\r\n/* 375: */ }", "@Test\n @IncludeIn(POSTGRESQL)\n public void array2() {\n Expression<int[]> expr = Expressions.template(int[].class, \"'{1,2,3}'::int[]\");\n int[] result = firstResult(expr);\n Assert.assertEquals(3, result.length);\n Assert.assertEquals(1, result[0]);\n Assert.assertEquals(2, result[1]);\n Assert.assertEquals(3, result[2]);\n }", "@Override\n public boolean indexAccessible(final IndexInfo ii) throws QueryException {\n if(coll != null || min == null || max == null) return false;\n\n // accept only location path, string and equality expressions\n final Data data = ii.db.data();\n // sequential main memory scan is usually faster than range index access\n if(data == null ? !ii.enforce() : data.inMemory()) return false;\n\n final IndexType type = ii.type(expr, null);\n if(type == null) return false;\n\n // create range access\n final StringRange sr = new StringRange(type, min, mni, max, mxi);\n ii.costs = IndexInfo.costs(data, sr);\n if(ii.costs == null) return false;\n\n final TokenBuilder tb = new TokenBuilder();\n tb.add(mni ? '[' : '(').add(min).add(',').add(max).add(mxi ? ']' : ')');\n ii.create(new StringRangeAccess(info, sr, ii.db), true,\n Util.info(OPTINDEX_X_X, type + \" string range\", tb), info);\n return true;\n }", "@Test\n\tpublic void typeCheckTest(){\n\t\tSystem.out.println(\"kenta\");\n\t\tSemanticActions actions = new SemanticActions();\n\t\tVariableEntry idInt = new VariableEntry(\"v1\", TokenType.INTEGER);\n\t\tVariableEntry idReal = new VariableEntry(\"v2\", TokenType.REAL);\n\t\tVariableEntry idInt2 = new VariableEntry(\"v3\", TokenType.INTEGER);\n\t\tVariableEntry idReal2 = new VariableEntry(\"v4\", TokenType.REAL);\n\t\tVariableEntry error = new VariableEntry(\"v5\", TokenType.ADDOP);\n\t\tassertTrue(actions.typeCheck(idInt, idInt2) == 0);\n\t\tassertTrue(actions.typeCheck(idReal, idReal2) == 1);\n\t\tassertTrue(actions.typeCheck(idReal, idInt2) == 2);\n\t\tassertTrue(actions.typeCheck(idInt, idReal) == 3);\n\t\tassertTrue(actions.typeCheck(idReal, error) == 4);\n\t\tassertTrue(actions.typeCheck(error, idInt) == 4);\n\t}", "@Test\n\tpublic void testNestedCollectionAccess() throws ParseException {\n\t\tExpression expression = langParser(\"x['g'][v]\").expression();\n\t\tassertTrue(expression instanceof CollectionAccess);\n\t\tCollectionAccess collectionAccess = (CollectionAccess) expression;\n\t\tassertTrue(collectionAccess.getCollection() instanceof CollectionAccess);\n\t\tCollectionAccess collectionAccess1 = (CollectionAccess) collectionAccess.getCollection();\n\t\tassertEquals(((Identifier) collectionAccess1.getCollection()).getName(), \"x\");\n\t\tassertTrue(collectionAccess1.getKey() instanceof StringLiteral);\n\t\tassertEquals(((StringLiteral) collectionAccess1.getKey()).getValue(), \"g\");\n\t\tassertTrue(collectionAccess.getKey() instanceof Identifier);\n\t\tassertEquals(((Identifier) collectionAccess.getKey()).getName(), \"v\");\n\t}", "public static IndexExpression property(Expression expression, PropertyInfo property, Expression[] arguments) { throw Extensions.todo(); }", "public final AstValidator.col_alias_or_index_return col_alias_or_index() throws RecognitionException {\n AstValidator.col_alias_or_index_return retval = new AstValidator.col_alias_or_index_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.col_alias_return col_alias258 =null;\n\n AstValidator.col_index_return col_index259 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:442:20: ( col_alias | col_index )\n int alt65=2;\n int LA65_0 = input.LA(1);\n\n if ( (LA65_0==CUBE||LA65_0==GROUP||LA65_0==IDENTIFIER) ) {\n alt65=1;\n }\n else if ( (LA65_0==DOLLARVAR) ) {\n alt65=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 65, 0, input);\n\n throw nvae;\n\n }\n switch (alt65) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:442:22: col_alias\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_alias_in_col_alias_or_index2210);\n col_alias258=col_alias();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_alias258.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:442:34: col_index\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_col_index_in_col_alias_or_index2214);\n col_index259=col_index();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, col_index259.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Test\n public void test_getAndSet_ByIndex_TypedMethods() throws Exception {\n\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1 descNum1_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1(\n executeInfo, null);\n\n\n\n descNum1_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_descNum1;\n\n // Test the Get & Set methods _________________________________________________________________________________\n\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_String\", String.class, \"setField__Special\", \"getField_String\", 0,\n \"stuff\", null, null, \"hi\"); /* last 4 params: expected value, null expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_short\", Short.TYPE, \"setField__Special\", \"getField_short\", 1,\n (short)123, (short)-1, (short)-1, (short)-1001); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n // continuation primiative field\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 2,\n 456, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, descNum1_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$__$schema$_CC_$TEST$__$SCHEMA$_S_$MY$95$DESC$__$NUM1.class,\n \"setField_int\", Integer.TYPE, \"setField__Special\", \"getField_int\", 3,\n 789, -1, -1, -1000); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n\n\n\n // Object Continuation\n FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES fieldTypes_FieldSet = new FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES(\n executeInfo, null);\n\n fieldTypes_FieldSet.schemaInfo_Positioned = mock_schemaInfoFieldSet_fieldTypes;\n\n\n // Test the Get & Set methods _________________________________________________________________________________\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 0,\n MPSymbols.char$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n FieldSet_TestUtilities.test_SetAndGet_useIndex(executeInfo, fieldTypes_FieldSet, FieldSetTuple__net$__$unconventionalthinking$__$matrix$_CC_$SCHEMA$95$FOR$95$SCHEMA$_S_$DESCRIPTOR$_S_$FIELD$__$TYPES.class,\n \"setField_Symbol\", Symbol.class, \"setField__Special\", \"getField_Symbol\", 1,\n MPSymbols.byte$_sym_$, null, null, MPSymbols.boolean$_sym_$); /* last 4 params: expected value, getField_short expected value, unused expected value, default expected value */\n\n\n\n }", "@Override\n\tpublic boolean isUsableIndex(int idx) {\n\t\tif ( idx < 0 )\n\t\t\treturn false;\n\t\tif ( idx >= numDataCols )\n\t\t\treturn false;\n\t\treturn Boolean.TRUE.equals(standardized[idx]);\n\t}", "public int getType(int index) {\n\treturn(type[index]);\n }", "int get(int idx);", "abstract int get(int index);", "@Test\n public void testIndexMaintenanceWithIndexOnMethodAsList() throws Exception {\n Index i1 = qs.createIndex(\"indx1\", IndexType.FUNCTIONAL, \"pf.getID\",\n SEPARATOR + \"portfolio.asList() pf\");\n CacheUtils.getCache();\n region = CacheUtils.getRegion(SEPARATOR + \"portfolio\");\n region.put(\"4\", new Portfolio(4));\n region.put(\"5\", new Portfolio(5));\n CompactRangeIndex ri = (CompactRangeIndex) i1;\n validateIndexForValues(ri);\n }", "public int indexOf(Type t);", "public Expression getIndex()\n {\n return index;\n }", "private boolean peek(int index, TokenType expectedType) {\n return peekType(index) == expectedType;\n }", "Nda<V> getAt( Object... args );", "E get(int i) throws IndexOutOfBoundsException;", "<T> T get(String variable, int... indexes) throws ClassCastException, ArrayIndexOutOfBoundsException;", "@Test\r\n\tpublic void testIndexOf() {\r\n\t\tAssert.assertTrue(list.indexOf(null) == -1);\r\n\t\tAssert.assertEquals(2, list.indexOf(new Munitions(2, 3, \"iron\")));\r\n\t}" ]
[ "0.60701853", "0.59289706", "0.58927083", "0.58848184", "0.5840622", "0.5828104", "0.568006", "0.5569214", "0.5557826", "0.5518875", "0.5513712", "0.54984814", "0.54984814", "0.54615766", "0.54615766", "0.54615766", "0.54615766", "0.54615766", "0.54615766", "0.545821", "0.54277915", "0.5401705", "0.5374315", "0.53521216", "0.5348327", "0.5347891", "0.53396946", "0.52750456", "0.5268705", "0.52488726", "0.52442193", "0.52411425", "0.52166593", "0.52143866", "0.521223", "0.5161782", "0.51461315", "0.5133751", "0.5104336", "0.5101684", "0.5101684", "0.5101684", "0.5098061", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.50890726", "0.5081916", "0.5052719", "0.50450784", "0.50219995", "0.5019936", "0.5013787", "0.50130916", "0.50104403", "0.5003807", "0.49986976", "0.49818483", "0.49763623", "0.49760303", "0.49704528", "0.49691352", "0.49676543", "0.49531615", "0.4948918", "0.49479643", "0.4943599", "0.49431866", "0.49406388", "0.49347517", "0.49341422", "0.4932719", "0.4924759", "0.49223295", "0.49133554", "0.48891792", "0.48883298", "0.4885614", "0.48808697", "0.48744854", "0.48609573", "0.48582587", "0.48405465", "0.4834725", "0.48306993", "0.48261723", "0.48231345", "0.4814774", "0.48045546", "0.47803476", "0.47784945" ]
0.5881157
4
/ confirm the node has type struct or alias of struct, then check that struct for the relevant fieldname / 3.7 Field Expressions
public void outASelectorExp(ASelectorExp node) throws TypeException{ PExp exp = node.getExp(); Type exptype = typemap.get(exp); exptype = removeAlias(exptype); TId id = node.getId(); java.lang.String idname = id.getText(); if(!(exptype instanceof StructType)){ throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Selector on non-struct type."); } else{ StructType tempstruct = (StructType) exptype; List<Map.Entry<List<String>,Type>> fields = tempstruct.getFields(); for(Map.Entry<List<String>,Type> entry : fields){ List<String> fieldname = entry.getKey(); Type fieldtype = entry.getValue(); if (fieldname.contains(idname)) { typemap.put(node,fieldtype); return; } } throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Selector on nonexistent field."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasFieldNested();", "boolean hasNestedField();", "boolean hasNestedOuterField();", "public Type TypeCheck(StructTable structTable, SymbolTableList symbolTables)\n {\n Type leftType = left.TypeCheck(structTable, symbolTables);\n\n // check that left is a struct\n if (!(leftType instanceof StructType))\n {\n System.err.println(lineNum + \": Dot operator requires struct\");\n System.exit(4);\n }\n\n // check that struct exists in structTable\n String structName = ((StructType) leftType).GetName();\n StructEntry entry = structTable.get(structName);\n\n if (entry == null)\n {\n System.err.println(lineNum + \": struct \" + structName + \" not found\");\n System.exit(4);\n }\n\n // check type of struct field\n Type fieldType = entry.getType(id);\n if (fieldType == null)\n {\n System.err.println(lineNum + \": no field \" + id + \" in struct \" + structName);\n System.exit(4);\n }\n\n // return type of field\n return fieldType;\n }", "boolean hasField0();", "public void testField1() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" Object /*start*/field/*end*/;\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((VariableDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"field [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}", "public void testField2() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X {\\n\" +\n\t\t\t\" Object foo() {\\n\" +\n\t\t\t\" return new Object() {\\n\" +\n\t\t\t\" Object /*start*/field/*end*/;\\n\" +\n\t\t\t\" };\\n\" +\n\t\t\t\" }\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((VariableDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"field [in <anonymous #1> [in foo() [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}", "private SymObject findField(Struct type, String name) {\n for (SymObject field : type.fields) {\n if (field.name.equals(name)) {\n return field;\n }\n }\n\n error(name + \" can't be find as a field\");\n return SymbolTable.OBJECT_NONE;\n }", "public void testFields() {\n assertTrue( tInteger.name().isEqualTo(Ocl.getFor(\"Integer\")).isTrue() );\n assertTrue( tOclString.name().isEqualTo(Ocl.getFor(\"String\")).isTrue() );\n assertTrue( tPersonFQ.name().isEqualTo(Ocl.getFor(\"Person\")).isTrue() );\n Ocl.JAVA_CLASS_NAMES=true;\n assertTrue( tPerson1.name().isEqualTo(Ocl.getFor(\"tudresden.ocl.lib.test.Person\")).isTrue() );\n Ocl.JAVA_CLASS_NAMES=false;\n assertTrue( tPersonFQ.attributes().includes(Ocl.getFor(\"isUnemployed\")).isTrue() );\n assertTrue( tPerson1.attributes().includes(Ocl.getFor(\"employer\")).isTrue() );\n assertTrue( tPersonFQ.associationEnds().includes(Ocl.getFor(\"managedCompanies\")).isTrue() );\n assertTrue( tPersonFQ.associationEnds().includes(Ocl.getFor(\"isMarried\")).isTrue() );\n assertTrue( tPersonFQ.operations().includes(Ocl.getFor(\"managedCompanies\")).not().isTrue() );\n assertTrue( tPersonFQ.operations().includes(Ocl.getFor(\"firstName\")).not().isTrue() );\n assertTrue( tPersonFQ.operations().includes(Ocl.getFor(\"getFive\")).isTrue() );\n assertTrue( tInteger.operations().includes(Ocl.getFor(\"add\")).isTrue() );\n }", "@Override\r\n\tpublic boolean visit(FieldDeclaration node) {\n\t\treturn super.visit(node);\r\n\t}", "boolean hasField3();", "boolean hasField2();", "boolean hasField4();", "@Override\r\n\tpublic void visit(StructExpression structExpression) {\n\r\n\t}", "boolean hasField1();", "boolean getField0();", "@Override\n\tpublic void VisitGetFieldNode(GetFieldNode Node) {\n\n\t}", "static boolean model_field_type_and_attrs(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"model_field_type_and_attrs\")) return false;\n if (!nextTokenIs(b, ENTITY_NAME)) return false;\n boolean r;\n Marker m = enter_section_(b);\n r = field_type(b, l + 1);\n r = r && model_field_type_and_attrs_1(b, l + 1);\n exit_section_(b, m, null, r);\n return r;\n }", "public void checkFields(){\n }", "private static boolean recordTypeFields_1(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"recordTypeFields_1\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!recordTypeFields_1_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"recordTypeFields_1\", c)) break;\n }\n return true;\n }", "boolean hasSecondField();", "public static MemberExpression field(Expression expression, Class type, String fieldName) { throw Extensions.todo(); }", "protected boolean hasTypeFieldOrMethodReference(NameReference reference) {\n\t\tNameReferenceKind kind = reference.getReferenceKind();\n\t\tif (kind == NameReferenceKind.NRK_GROUP) {\n\t\t\tNameReferenceGroup group = (NameReferenceGroup)reference;\n\t\t\tList<NameReference> subreferenceList = group.getSubReferenceList();\n\t\t\tif (subreferenceList == null) return false;\n\t\t\tfor (NameReference subreference : subreferenceList) {\n\t\t\t\tif (hasTypeFieldOrMethodReference(subreference)) return true;\n\t\t\t}\n\t\t\treturn false;\n\t\t} else if (kind == NameReferenceKind.NRK_TYPE) return true;\n\t\telse if (kind == NameReferenceKind.NRK_FIELD) return true;\n\t\telse if (kind == NameReferenceKind.NRK_METHOD) return true;\n\t\telse if (kind == NameReferenceKind.NRK_VARIABLE) return true;\n\t\telse return false;\n\t}", "public Object visit(Field node){\n ClassTreeNode treeNode = classMap.get(currentClass);\n String fieldName = node.getName();\n if(SemanticAnalyzer.reservedIdentifiers.contains(fieldName)){\n errorHandler.register(Error.Kind.SEMANT_ERROR, classMap.get(currentClass).getASTNode().getFilename(),\n node.getLineNum(),\n \"Reserved word \" + fieldName + \" cannot be used as an identifier\");\n\n }\n treeNode.getVarSymbolTable().add(node.getName(), node.getType());\n //System.out.println(\"Field found: \" + node.getName() + \" added to \" + currentClass);\n return null;\n }", "@Override\r\n\tpublic void visit(StructType structType) {\n\r\n\t}", "void visitObjectField(FieldAttributes f, Type typeOfF, Object obj);", "@Override\r\n\tpublic void visit(StructDefinition structDefinition) {\n\r\n\t}", "java.lang.String getField1112();", "private void checkForCLassField(ClassField classField, Obj obj) {\n \tif (obj == Tab.noObj) {\r\n\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+obj.getName()+\" nije deklarisano! \", null);\r\n \t}\r\n \r\n \t\r\n \tif (obj.getType().getKind() != Struct.Class && obj.getType().getKind() != Struct.Interface) {\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+ obj.getName() +\" mora oznacavati objekat unutrasnje klase!\", null);\r\n \t}\r\n \t\r\n \tCollection<Obj> lokals = null;\r\n \t\r\n \tif (obj.getName().equals(\"this\")) { // ja ovo zovem iz funkcije klase, zaro uzimam scope klase; moze samo prvi put (this.a)\r\n \t\tlokals = Tab.currentScope().getOuter().getLocals().symbols();\r\n \t}\r\n \telse {\r\n \t\tlokals = obj.getType().getMembers();\r\n \t}\r\n \r\n \tStruct klasa = obj.getType();\r\n \tObj elem = null;\r\n \tint ok = 0 ;\r\n \t\r\n \twhile (klasa != null) {\r\n\t \telem = null;\r\n\t \tfor(Iterator<Obj> iterator = lokals.iterator();iterator.hasNext();) {\r\n\t \t\telem = iterator.next();\r\n\t \t\tif (elem.getName().equals(classField.getFieldName())) {\r\n\t \t\t\tok = 1;\r\n\t \t\t\tbreak;\r\n\t \t\t}\r\n\t \t}\r\n\t \t\r\n\t \tif (ok == 1)\r\n\t \t\tbreak;\r\n\t \tklasa = klasa.getElemType();\r\n\t \tif (klasa != null) {\r\n\t \t\tlokals = klasa.getMembers();\r\n\t \t}\r\n \t}\r\n \t\r\n \tclassField.obj = elem;\r\n \t\r\n \tif (ok == 0) {\r\n \t\tclassField.obj = Tab.noObj;\r\n \t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : ime \"+classField.getFieldName()+\" mora biti polje ili metoda navedene unutrasnje klase!\", null);\r\n \t}\r\n \telse {\r\n \t\tStruct trenutna = null;\r\n \t\tif (currentClass != null)\r\n \t\t\ttrenutna = currentClass;\r\n \t\tif (currentAbsClass != null)\r\n \t\t\ttrenutna = currentAbsClass;\r\n// \t\tif (trenutna == null) // dal je moguce? ---> jeste u main-u npr\r\n// \t\t\treturn;\r\n \t\t// znaci polje sam klase \"klasa\" ; zovem se sa . nesto...sig sam polje ili metoda klase\r\n \t\tif (elem.getKind() == Obj.Fld || elem.getKind() == Obj.Meth) { \r\n \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // public\r\n \t\t\t\treturn;\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 2 || elem.getFpPos() == -8) { // protected\r\n \t\t\t\tif (trenutna == null) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t}\r\n \t\t\t\telse {\r\n \t\t\t\t\tif (!(checkCompatibleForClasses(klasa, trenutna))) { // ako je klasa u kojoj se nalazim NIJE izvedena iz klase iz koje potice field\r\n \t\t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, protected je!\", null);\r\n \t\t\t\t\t}\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\t\r\n \t\t\tif (elem.getFpPos() == 3 || elem.getFpPos() == -7) { // private\r\n \t\t\t\tif (trenutna != klasa) {\r\n \t\t\t\t\treport_error(\"Greska na liniji \" + classField.getLine()+ \" : polju \"+classField.getFieldName()+\" se ne sme pristupati na ovom mestu, private je!\", null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n// \t\tif (elem.getKind() == Obj.Meth) {\r\n// \t\t\tif (elem.getFpPos() == 1 || elem.getFpPos() == -9) { // nikad ne bi smeo ni da zove aps ... [-9,-8,-7] \r\n// \t\t\t//ONDA OSTAJE ISTI USLOV ZA METH I FLD\t\r\n// \t\t\t}\r\n// \t\t}\r\n \t}\r\n \t\r\n }", "boolean hasFieldId();", "java.lang.String getField1337();", "private void processFields(Element node, EplusObject object) {\n\t\tList<Element> children = node.getChildren();\n\t\tIterator<Element> iterator = children.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tElement child = iterator.next();\n\t\t\tKeyValuePair pair = new KeyValuePair(child.getAttributeValue(\"description\"), child.getText());\n\t\t\tobject.addField(pair);\n\t\t}\n\t}", "java.lang.String getField1336();", "java.lang.String getField1339();", "java.lang.String getField1009();", "@Override\n\tpublic void outAFieldAccessExpr(AFieldAccessExpr node) {\n\t\tType target = nodeTypes.get(node.getTarget());\n\t\tClassAttributes c = topLevelSymbolTable.get(target.getTypeName());\n\t\tVariableAttributes f = c.getField(node.getId().getText()); \n\t\til.append(fi.createGetField(getName(target), node.getId().getText(), getBecelType(f.getType())));\n\t\tunboxIt(f.getType()); \n\t}", "InstrumentedType withField(FieldDescription.Token token);", "FieldRefType createFieldRefType();", "java.lang.String getField1211();", "boolean getFieldTypeIdNull();", "java.lang.String getField1335();", "public void visitPUTFIELD(PUTFIELD o){\n\n\t\tType objectref = stack().peek(1);\n\t\tif (! ( (objectref instanceof ObjectType) || (objectref == Type.NULL) ) ){\n\t\t\tconstraintViolated(o, \"Stack next-to-top should be an object reference that's not an array reference, but is '\"+objectref+\"'.\");\n\t\t}\n\t\t\n\t\tString field_name = o.getFieldName(cpg);\n\t\t\n\t\tJavaClass jc = Repository.lookupClass(o.getClassType(cpg).getClassName());\n\t\tField[] fields = jc.getFields();\n\t\tField f = null;\n\t\tfor (int i=0; i<fields.length; i++){\n\t\t\tif (fields[i].getName().equals(field_name)){\n\t\t\t\tf = fields[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (f == null){\n\t\t\tthrow new AssertionViolatedException(\"Field not found?!?\");\n\t\t}\n\n\t\tType value = stack().peek();\n\t\tType t = Type.getType(f.getSignature());\n\t\tType shouldbe = t;\n\t\tif (shouldbe == Type.BOOLEAN ||\n\t\t\t\tshouldbe == Type.BYTE ||\n\t\t\t\tshouldbe == Type.CHAR ||\n\t\t\t\tshouldbe == Type.SHORT){\n\t\t\tshouldbe = Type.INT;\n\t\t}\n\t\tif (t instanceof ReferenceType){\n\t\t\tReferenceType rvalue = null;\n\t\t\tif (value instanceof ReferenceType){\n\t\t\t\trvalue = (ReferenceType) value;\n\t\t\t\treferenceTypeIsInitialized(o, rvalue);\n\t\t\t}\n\t\t\telse{\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of a reference type as expected.\");\n\t\t\t}\n\t\t\t// TODO: This can possibly only be checked using Staerk-et-al's \"set-of-object types\", not\n\t\t\t// using \"wider cast object types\" created during verification.\n\t\t\t// Comment it out if you encounter problems. See also the analogon at visitPUTSTATIC.\n\t\t\tif (!(rvalue.isAssignmentCompatibleWith(shouldbe))){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not assignment compatible with '\"+shouldbe+\"'.\");\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tif (shouldbe != value){\n\t\t\t\tconstraintViolated(o, \"The stack top type '\"+value+\"' is not of type '\"+shouldbe+\"' as expected.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (f.isProtected()){\n\t\t\tObjectType classtype = o.getClassType(cpg);\n\t\t\tObjectType curr = new ObjectType(mg.getClassName());\n\n\t\t\tif (\tclasstype.equals(curr) ||\n\t\t\t\t\t\tcurr.subclassOf(classtype)\t){\n\t\t\t\tType tp = stack().peek(1);\n\t\t\t\tif (tp == Type.NULL){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (! (tp instanceof ObjectType) ){\n\t\t\t\t\tconstraintViolated(o, \"The 'objectref' must refer to an object that's not an array. Found instead: '\"+tp+\"'.\");\n\t\t\t\t}\n\t\t\t\tObjectType objreftype = (ObjectType) tp;\n\t\t\t\tif (! ( objreftype.equals(curr) ||\n\t\t\t\t\t\t objreftype.subclassOf(curr) ) ){\n\t\t\t\t\tconstraintViolated(o, \"The referenced field has the ACC_PROTECTED modifier, and it's a member of the current class or a superclass of the current class. However, the referenced object type '\"+stack().peek()+\"' is not the current class or a subclass of the current class.\");\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\n\t\t// TODO: Could go into Pass 3a.\n\t\tif (f.isStatic()){\n\t\t\tconstraintViolated(o, \"Referenced field '\"+f+\"' is static which it shouldn't be.\");\n\t\t}\n\t}", "java.lang.String getField1711();", "java.lang.String getField1334();", "java.lang.String getField1512();", "private Object fieldType(final DataField dataField) {\n EObject _xifexpression = null;\n PrimitiveType _primitiveType = dataField.getPrimitiveType();\n boolean _tripleNotEquals = (_primitiveType != null);\n if (_tripleNotEquals) {\n _xifexpression = dataField.getPrimitiveType();\n } else {\n EObject _xifexpression_1 = null;\n ComplexType _complexType = dataField.getComplexType();\n boolean _tripleNotEquals_1 = (_complexType != null);\n if (_tripleNotEquals_1) {\n _xifexpression_1 = dataField.getComplexType();\n } else {\n _xifexpression_1 = dataField.getImportedComplexType();\n }\n _xifexpression = _xifexpression_1;\n }\n return _xifexpression;\n }", "java.lang.String getField1229();", "java.lang.String getField1529();", "java.lang.String getField1273();", "java.lang.String getField1117();", "java.lang.String getField1217();", "java.lang.String getField1729();", "@Test\n void docs() {\n Schema schema = new Schema.Parser().parse(SCHEMA_WITH_DOC_TAGS);\n assertEquals(\"This is not a world record.\", schema.getDoc());\n assertEquals(\"Inner Fixed\", schema.getField(\"inner_fixed\").doc());\n assertEquals(\"Very Inner Fixed\", schema.getField(\"inner_fixed\").schema().getDoc());\n assertEquals(\"Inner String\", schema.getField(\"inner_string\").doc());\n assertEquals(\"Inner Enum\", schema.getField(\"inner_enum\").doc());\n assertEquals(\"Very Inner Enum\", schema.getField(\"inner_enum\").schema().getDoc());\n assertEquals(\"Inner Union\", schema.getField(\"inner_union\").doc());\n }", "java.lang.String getField1331();", "java.lang.String getField1527();", "java.lang.String getField1227();", "public Object visitFieldList(GoIRFieldListNode node){\n\t\tif(node!= null) {\n\t\t\tif(node.getFields()!= null) {\n\t\t\t\treturn node.getFields().accept(this);\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "java.lang.String getField1215();", "java.lang.String getField1213();", "java.lang.String getField1031();", "java.lang.String getField1134();", "public void validate() throws org.apache.thrift.TException {\n if (is_null == null) {\n throw new org.apache.thrift.protocol.TProtocolException(\"Required field 'is_null' was not present! Struct: \" + toString());\n }\n // check for sub-struct validity\n }", "java.lang.String getField1734();", "java.lang.String getField1553();", "public interface ATypeCheckNode {}", "java.lang.String getField1113();", "java.lang.String getField1731();", "java.lang.String getField1573();", "java.lang.String getField1115();", "public void visitGETFIELD(GETFIELD o){\n\t\tType objectref = stack().peek();\n\t\tif (! ( (objectref instanceof ObjectType) || (objectref == Type.NULL) ) ){\n\t\t\tconstraintViolated(o, \"Stack top should be an object reference that's not an array reference, but is '\"+objectref+\"'.\");\n\t\t}\n\t\t\n\t\tString field_name = o.getFieldName(cpg);\n\t\t\n\t\tJavaClass jc = Repository.lookupClass(o.getClassType(cpg).getClassName());\n\t\tField[] fields = jc.getFields();\n\t\tField f = null;\n\t\tfor (int i=0; i<fields.length; i++){\n\t\t\tif (fields[i].getName().equals(field_name)){\n\t\t\t\tf = fields[i];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (f == null){\n\t\t\tthrow new AssertionViolatedException(\"Field not found?!?\");\n\t\t}\n\n\t\tif (f.isProtected()){\n\t\t\tObjectType classtype = o.getClassType(cpg);\n\t\t\tObjectType curr = new ObjectType(mg.getClassName());\n\n\t\t\tif (\tclasstype.equals(curr) ||\n\t\t\t\t\t\tcurr.subclassOf(classtype)\t){\n\t\t\t\tType t = stack().peek();\n\t\t\t\tif (t == Type.NULL){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif (! (t instanceof ObjectType) ){\n\t\t\t\t\tconstraintViolated(o, \"The 'objectref' must refer to an object that's not an array. Found instead: '\"+t+\"'.\");\n\t\t\t\t}\n\t\t\t\tObjectType objreftype = (ObjectType) t;\n\t\t\t\tif (! ( objreftype.equals(curr) ||\n\t\t\t\t\t\t objreftype.subclassOf(curr) ) ){\n\t\t\t\t\t//TODO: One day move to Staerk-et-al's \"Set of object types\" instead of \"wider\" object types\n\t\t\t\t\t// created during the verification.\n\t\t\t\t\t// \"Wider\" object types don't allow us to check for things like that below.\n\t\t\t\t\t//constraintViolated(o, \"The referenced field has the ACC_PROTECTED modifier, and it's a member of the current class or a superclass of the current class. However, the referenced object type '\"+stack().peek()+\"' is not the current class or a subclass of the current class.\");\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t\t\n\t\t// TODO: Could go into Pass 3a.\n\t\tif (f.isStatic()){\n\t\t\tconstraintViolated(o, \"Referenced field '\"+f+\"' is static which it shouldn't be.\");\n\t\t}\n\t}", "java.lang.String getField1592();", "java.lang.String getField1587();", "boolean hasFieldTypeId();", "java.lang.String getField1412();", "java.lang.String getField1338();", "java.lang.String getField1713();", "java.lang.String getField1727();", "java.lang.String getField1792();", "java.lang.String getField1003();", "java.lang.String getField1552();", "java.lang.String getField1253();", "java.lang.String getField1511();", "java.lang.String getField1543();", "java.lang.String getField1312();", "java.lang.String getField1131();", "java.lang.String getField1153();", "java.lang.String getField1507();", "java.lang.String getField1722();", "java.lang.String getField1429();", "java.lang.String getField1733();", "java.lang.String getField1330();", "java.lang.String getField1142();", "java.lang.String getField1173();", "java.lang.String getField1019();", "private static boolean recordTypeNamedFields_2(PsiBuilder b, int l) {\n if (!recursion_guard_(b, l, \"recordTypeNamedFields_2\")) return false;\n while (true) {\n int c = current_position_(b);\n if (!recordTypeNamedFields_2_0(b, l + 1)) break;\n if (!empty_element_parsed_guard_(b, \"recordTypeNamedFields_2\", c)) break;\n }\n return true;\n }", "java.lang.String getField1187();", "java.lang.String getField1753();", "java.lang.String getField1124();", "java.lang.String getField1721();", "private static void checkNode(Node node){\n if(node != null){\n if(node.getSnames() == null || node.getSnames().isEmpty()){\n if(node.getName() != null){\n node.addSearchName(node.getName());\n }\n }\n }\n }", "java.lang.String getField1241();" ]
[ "0.64010954", "0.607764", "0.6000133", "0.5888713", "0.58234775", "0.5778645", "0.57737803", "0.56176573", "0.5549295", "0.55397904", "0.553044", "0.55296135", "0.5522324", "0.54939294", "0.54931515", "0.54645294", "0.54383665", "0.5423305", "0.53928256", "0.5390679", "0.5380701", "0.5365608", "0.5362485", "0.535869", "0.5355191", "0.5347313", "0.5346545", "0.5314562", "0.5311543", "0.53027445", "0.5293869", "0.5289386", "0.52751756", "0.52664137", "0.526426", "0.5260174", "0.52471006", "0.52298385", "0.5229302", "0.5221419", "0.5219039", "0.521819", "0.5212616", "0.5208446", "0.5205449", "0.5204622", "0.5192205", "0.51887345", "0.5187416", "0.5184493", "0.51772964", "0.51744646", "0.517364", "0.51735234", "0.5173096", "0.5171489", "0.5171249", "0.5170789", "0.51673764", "0.516732", "0.51662886", "0.5166018", "0.5164404", "0.5160518", "0.5155555", "0.51547164", "0.5154641", "0.51513696", "0.5150652", "0.5150488", "0.51501125", "0.51488507", "0.51487446", "0.5145549", "0.51397294", "0.5138154", "0.5138105", "0.5136797", "0.5136359", "0.513572", "0.513522", "0.5129883", "0.51285964", "0.512825", "0.51264745", "0.5125335", "0.5124858", "0.5123161", "0.51219743", "0.51210624", "0.51184267", "0.51171064", "0.5116795", "0.5116647", "0.51165336", "0.51164126", "0.511599", "0.5115555", "0.51145625", "0.5114443", "0.51129216" ]
0.0
-1
/ 3.9 Type Cast (can assume the cast is not an alias, this will be handled by function calls in 3.5)
public void outATypeCastExp(ATypeCastExp node){ PExp exp = node.getExp(); Type exptype = removeAlias(typemap.get(exp)); PType castedtype = node.getType(); Type finaltype; if(castedtype instanceof AIntType){ finaltype = new IntType(); } else if(castedtype instanceof ABoolType){ finaltype = new BooleanType(); } else if(castedtype instanceof AFloatType){ finaltype = new Float64Type(); } else if(castedtype instanceof ARuneType){ finaltype = new RuneType(); } else throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Type cast to a disallowed type."); if((exptype instanceof IntType) ||(exptype instanceof Float64Type) ||(exptype instanceof BooleanType) ||(exptype instanceof RuneType)) typemap.put(node,finaltype); else throw new TypeException("[line " + golite.weeder.LineNumber.getLineNumber(node) + "] Type cast from a disallowed type."); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public <T> T cast();", "@Override\n\tpublic void visit(CastExpression arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void cast() {\n\r\n\t}", "OpFunctionCast createOpFunctionCast();", "@Override\r\n\tpublic void visit(CastExpression castExpression) {\n\r\n\t}", "@Test\n public void testCastFunction() throws Exception {\n String sql = \"SELECT cast(a as string) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node functionNode = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(functionNode, Function.NAME_PROP_NAME, \"cast\");\n verifyElementSymbol(functionNode, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(functionNode, Function.ARGS_REF_NAME, 2, \"string\");\n \n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT cast(a AS string) FROM g\", fileNode);\n }", "@Override\r\n\tpublic boolean visit(CastExpression node) {\r\n\t\toperator(node,node.getClass().toString());\r\n\t\treturn true;\r\n\t}", "private Expr boxingUpcastIfNeeded(Expr a, Type fType) {\n if (a instanceof NullLit_c) {\n return makeCast(a.position(), a, fType);\n }\n \n if (Types.baseType(fType) instanceof FunctionType) {\n return upcastToFunctionType(a, (FunctionType)Types.baseType(fType), true);\n }\n \n if (ts.isObjectType(a.type(), context) && ts.isObjectType(fType, context)) {\n // implicit C++ level upcast is good enough (C++ and X10 have same class hierarchy structure)\n return a;\n }\n \n if (!ts.typeDeepBaseEquals(fType, a.type(), context)) {\n Position pos = a.position();\n return makeCast(a.position(), a, fType);\n } else {\n return a;\n }\n }", "InstCast createInstCast();", "T as(String alias);", "@Override\n\tpublic void outACastExpr(ACastExpr node) {\n\t\tType t = nodeTypes.get(node.getExpr());\n\t\tboxIt(t); \n\t\tType result = nodeTypes.get(node.getType()); \n\t\til.append(fi.createCast(getBecelType(t), getBecelType(result)));\n\t\tunboxIt(result); \t\n\t}", "private static void LessonBoxUnboxCast() {\n int x = 10;\n Object o = x;\n //System.out.println(o + o); //since o is an object you can't uses the + operator\n //LessonReflectionAndGenerics(o.getClass());\n\n // Example Unboxing (this is casting, explicit casting)\n int y = (int) o;\n System.out.println(y);\n\n // Example Implicit casting you can go from smaller data type to a bigger data type\n //But not the other way around unless you use explicit casting\n int i = 100;\n double d = i;\n System.out.println(d);\n\n // Example of tryin to cast a bigger data type into a smaller data type\n double a = 1.92;\n //int b = a; //gets and error\n //need to be explicit\n int b = (int) a;\n System.out.println(b);\n }", "private Expr upcast(Expr a, Type fType) {\n if (Types.baseType(fType) instanceof FunctionType) {\n return upcastToFunctionType(a, (FunctionType)Types.baseType(fType), false);\n } else if (!ts.typeDeepBaseEquals(fType, a.type(), context)) {\n Position pos = a.position();\n return makeCast(a.position(), a, fType);\n } else {\n return a;\n }\n }", "@Test\n public void testMultiCastFunction() throws Exception {\n String sql = \"SELECT cast(cast(a as timestamp) as string) FROM g\";\n Node fileNode = sequenceSql(sql, TSQL_QUERY);\n\n Node queryNode = verify(fileNode, Query.ID, Query.ID);\n\n Node selectNode = verify(queryNode, Query.SELECT_REF_NAME, Select.ID);\n Node function1Node = verifyExpressionSymbol(selectNode, Select.SYMBOLS_REF_NAME, Function.ID);\n verifyProperty(function1Node, Function.NAME_PROP_NAME, \"cast\");\n Node function2Node = verify(function1Node, Function.ARGS_REF_NAME, 1, Function.ID);\n verifyConstant(function1Node, Function.ARGS_REF_NAME, 2, \"string\");\n\n verifyElementSymbol(function2Node, Function.ARGS_REF_NAME, 1, \"a\");\n verifyConstant(function2Node, Function.ARGS_REF_NAME, 2, \"timestamp\");\n \n Node fromNode = verify(queryNode, Query.FROM_REF_NAME, From.ID);\n verifyUnaryFromClauseGroup(fromNode, From.CLAUSES_REF_NAME, 1, \"g\");\n \n verifySql(\"SELECT cast(cast(a AS timestamp) AS string) FROM g\", fileNode);\n }", "public static <IN extends OUT, OUT> Function<IN, OUT> cast() {\n return new Function<IN, OUT>() {\n\n @Override\n public OUT apply(IN in) {\n return in;\n }\n\n };\n }", "public static org.xms.g.common.api.ResultTransform dynamicCast(java.lang.Object param0) {\n return ((org.xms.g.common.api.ResultTransform) param0);\n }", "@Override\n\tpublic void VisitCastNode(BunCastNode Node) {\n\n\t}", "public V cast(Object object) {\n return valueClass.cast(object);\n }", "@Override\n public String visit(CastExpr n, Object arg) {\n return null;\n }", "private static Instruction propagateCastAsScalarVariablePrivacy(VariableCPInstruction inst, ExecutionContext ec){\n\t\tinst = (VariableCPInstruction) propagateFirstInputPrivacy(inst, ec); \n\t\treturn preprocessInstructionSimple(inst, ec);\n\t}", "public abstract S castToReturnType(T o);", "public static void main(String[] args){\n\n int a = (int) 3.14;\n System.out.println(a);\n //Outputs 3\n\n // The code above is casting the value 3.14 to an integer, with 3 as the resulting value.\n\n double b = 42.571;\n int c = (int) b;\n System.out.println(c);\n//Outputs 42\n\n /*\n Java supports automatic type casting of integers to floating points, since there is no loss of precision.\nOn the other hand, type casting is mandatory when assigning floating point values to integer variables.\n */\n\n // downcasting\n\n /*\n Why is upcasting automatic, downcasting manual?\n Well, upcasting can never fail.\n But if you have a group of different Animals and want to downcast them all to a Cat,\n then there's a chance that some of these Animals are actually Dogs, so the process fails.\n */\n\n /*Upcasting*/\n\n// You can cast an instance of a subclass to its superclass.\n\n// Consider the following example, assuming that Cat is a subclass of Animal.\n// Animal a = new Cat();\n//\n// Java automatically upcasted the Cat type variable to the Animal type.\n//\n /*Downcasting */\n\n// Casting an object of a superclass to its subclass is called downcasting.\n// Example:\n\n// Animal a = new Animal();\n// ((Cat)a).makeSound();\n//\n// This will try to cast the variable a to the Cat type and call its makeSound() method.\n\n\n }", "@Override\n\tpublic BasicType resolveCastTargetType(String name) {\n\t\torg.hibernate.type.BasicType ormBasicType = (org.hibernate.type.BasicType) sessionFactory.getTypeHelper().heuristicType( name );\n\t\tif ( ormBasicType == null ) {\n\t\t\treturn null;\n\t\t}\n\n\t\treturn resolveBasicType( ormBasicType.getReturnedClass() );\n\t}", "public Object caste(Object item, CastTo ct){\n Object result = new Object();\n switch(ct){\n case date:result = DateParser.parse((String)item, OutFormat.date);\n break;\n case datetime:result = DateParser.parse((String)item, OutFormat.datetime);\n break;\n case datetime2:result = DateParser.parse((String)item, OutFormat.datetime2);\n break;\n case smalldatetime:result = DateParser.parse((String)item, OutFormat.smalldatetime);\n break;\n case time:result = DateParser.parse((String)item, OutFormat.time);\n break;\n case CHAR:result = CharCatster(item);\n //return result.toString();\n break;\n case UNSIGNED:result = UnSigndCatster(item);\n break;\n case SIGNED:result = SigndCatster(item);\n break;\n case BINARY:result = BinaryCaster(item);\n break;\n }\n return result;\n }", "public Object elConvertType(Object value);", "T convert(S e);", "public T caseRealCast(RealCast object) {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static <T> T cast(Object object) {\n\n\t\treturn (T) object;\n\t}", "public static void main(String[] args) {\n int a=10;\n byte b=(byte)a; //explicit casting\n System.out.println(b);\n\n double DecimalNumber=10.5;\n float FloatNumber=(float) DecimalNumber;\n System.out.println(FloatNumber);\n\n double DecimalNumber2=10.5;\n float FloatNumber2=(int) DecimalNumber;//double>float\n System.out.println(FloatNumber2);\n\n long LongNum=300L;\n int IntNum=(short)LongNum;\n System.out.println(IntNum);\n\n //implicit casting: small size data to larger size of data...\n byte ByteNum=100;\n int IntNum2=ByteNum;\n System.out.println(IntNum2);\n\n\n short ShortNum=100;\n long LongNum2=ShortNum;\n\n\n \n }", "@Test\n public void test_cast() {\n \n\n }", "@Test\n public void createRightTypeCastTypeCast() throws Exception {\n //\n boolean inLeftTree = false;\n PreparationData prepData = prepareCastedPartOfFaultVar(inLeftTree);\n //\n MapperSwingTreeModel rightTreeModel = prepData.bmm.getRightTreeModel();\n TreePath baseTypeElementPath = BpelMapperTestUtils.findInTree(prepData.treeNode,\n rightTreeModel, \"baseTypeElem\"); // NOI18N\n assertNotNull(baseTypeElementPath);\n //\n // Find global type and cast the left item to it\n GlobalComplexType targetGType = BpelMapperTestUtils.getGlobalTypeByName(\n mBpelModel, \"http://xml.netbeans.org/schema/Synchronous\",\n \"DerivedComplexType\", GlobalComplexType.class); // NOI18N\n assertNotNull(targetGType);\n //\n // Create a new cast\n TreePath castedPartPath = new BpelCastManager().addCastCmd(\n targetGType, baseTypeElementPath, inLeftTree, prepData.tcContext);\n assertNotNull(castedPartPath);\n //\n // Find the attrStr attribute inside of the new Pseudo Element.\n TreePath rightPinPath = BpelMapperTestUtils.findInTree(\n prepData.treeNode, rightTreeModel,\n \"(DerivedComplexType)baseTypeElem/strAttrA\"); // NOI18N\n assertNotNull(rightPinPath);\n //\n MapperSwingTreeModel leftTreeModel = prepData.bmm.getLeftTreeModel();\n TreePath leftPinPath = BpelMapperTestUtils.findInTree(\n leftTreeModel, \"/Variables/SimpleTargetVar/strAttr1\"); // NOI18N\n assertNotNull(leftPinPath);\n //\n BpelMapperTestUtils.addTransitLink(prepData.bmm, leftPinPath, rightPinPath);\n //\n Element peer = prepData.testAssign.getPeer();\n String assignText = new SimpleDomSerializer().serializeNode(peer);\n String snapshot = TestProperties.getMessage(FaultVarLSMsCreationTest.class,\n \"MAPPER_SNAPSHOT_FAULT_RT_CREATE_CAST_CAST\"); // NOI18N\n assertEquals(assignText, snapshot);\n }", "public X10Cast createCoercion(Position pos, Expr expr, Type toType) {\n try {\n // FIXME: Have to typeCheck, because the typechecker has already desugared this to a conversion chain\n return (X10Cast) xnf.X10Cast( pos, \n xnf.CanonicalTypeNode(pos, toType), \n expr, \n Converter.ConversionType.UNKNOWN_IMPLICIT_CONVERSION ).typeCheck(this);\n } catch (SemanticException e) {\n // work around for XTENLANG-1335\n try {\n return (X10Cast) xnf.X10Cast( pos, \n xnf.CanonicalTypeNode(pos, toType), \n expr, \n Converter.ConversionType.UNCHECKED ).typeCheck(this);\n } catch (SemanticException x) {\n // return null;\n }\n // end work around for XTENLANG-1335\n return null;\n }\n }", "@Test\n public void testLiteralCast() {\n for (int i = 0; i < 3; i++) {\n boolean useDecimalV2 = i > 1;\n boolean enableRewrite = (i % 2) == 1;\n {\n // Boundary case in which the positive value is a DECIMAL,\n // becomes BIGINT when negated by the parser.\n String query = \"select getBit(\" + Long.MIN_VALUE + \", 63)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.TINYINT, expr.getType());\n }\n {\n // Would eval to NaN, so keep original expr.\n String query = \"select cast(10 as double) / cast(0 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Extreme double value. Ensure double-->BigDecimal noise\n // does not cause overflows\n String query = \"select cast(\" + Double.toString(Double.MAX_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // As above, but for extreme minimum (smallest) values\n String query = \"select cast(\" + Double.toString(Double.MIN_VALUE) +\n \" as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n if (enableRewrite) {\n assertTrue(expr instanceof NumericLiteral);\n } else {\n assertTrue(expr instanceof CastExpr);\n }\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(1.7976931348623157e+308 as double)\" +\n \" / cast(2.2250738585072014e-308 as double)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.DOUBLE, expr.getType());\n assertTrue(expr instanceof ArithmeticExpr);\n }\n {\n // Math would cause overflow, don't rewrite\n String query = \"select cast(cast(1.7976931348623157e+308 as double) as float)\";\n Expr expr = analyze(query, useDecimalV2, enableRewrite);\n assertEquals(Type.FLOAT, expr.getType());\n assertTrue(expr instanceof CastExpr);\n }\n }\n }", "public static String toLegacyType(String keyword, String value) {\n/* 1300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "Object getConvertedValue() throws ConversionException;", "@Override\n public PgCast getCast(final String name) {\n return casts.get(name);\n }", "JAVATYPE convert(JAVATYPE oldValue, final METATYPE meta);", "<T extends Property> T cast(Class<T> clazz) throws UnsupportedPropertyException;", "@SuppressWarnings(\"unused\")\n private CastExpression() {\n }", "String getNativeType(Object elementID) throws Exception;", "public final AstValidator.type_cast_return type_cast() throws RecognitionException {\n AstValidator.type_cast_return retval = new AstValidator.type_cast_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n AstValidator.simple_type_return simple_type240 =null;\n\n AstValidator.map_type_return map_type241 =null;\n\n AstValidator.tuple_type_cast_return tuple_type_cast242 =null;\n\n AstValidator.bag_type_cast_return bag_type_cast243 =null;\n\n\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:11: ( simple_type | map_type | tuple_type_cast | bag_type_cast )\n int alt59=4;\n switch ( input.LA(1) ) {\n case BIGDECIMAL:\n case BIGINTEGER:\n case BOOLEAN:\n case BYTEARRAY:\n case CHARARRAY:\n case DATETIME:\n case DOUBLE:\n case FLOAT:\n case INT:\n case LONG:\n {\n alt59=1;\n }\n break;\n case MAP_TYPE:\n {\n alt59=2;\n }\n break;\n case TUPLE_TYPE_CAST:\n {\n alt59=3;\n }\n break;\n case BAG_TYPE_CAST:\n {\n alt59=4;\n }\n break;\n default:\n if (state.backtracking>0) {state.failed=true; return retval;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 59, 0, input);\n\n throw nvae;\n\n }\n\n switch (alt59) {\n case 1 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:13: simple_type\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_simple_type_in_type_cast2097);\n simple_type240=simple_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, simple_type240.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 2 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:27: map_type\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_map_type_in_type_cast2101);\n map_type241=map_type();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, map_type241.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 3 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:38: tuple_type_cast\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_tuple_type_cast_in_type_cast2105);\n tuple_type_cast242=tuple_type_cast();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, tuple_type_cast242.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n case 4 :\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:424:56: bag_type_cast\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n pushFollow(FOLLOW_bag_type_cast_in_type_cast2109);\n bag_type_cast243=bag_type_cast();\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) \n adaptor.addChild(root_0, bag_type_cast243.getTree());\n\n\n if ( state.backtracking==0 ) {\n }\n }\n break;\n\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "@Override\n default <T> T as(Class<T> type) {\n try { return type.cast(asObject()); }\n catch (ClassCastException ex) {\n LinkedList<Object> ascendingKeyChain = using(this).getAscendingKeyChainWithRoot();\n Object thisKey = ascendingKeyChain.pollLast();\n ascendingKeyChain.add(format(\"*%s*\", thisKey));\n throw new ClassCastException(format(\"'%s' miscast in path %s: %s. Avoid by checking \" +\n \"`if (aDynamic.is(%s.class)) ...` or using `aDynamic.maybe().as(%<s.class)`\",\n thisKey, LiteJoiner.on(ARROW).join(ascendingKeyChain), ex.getMessage(), type.getSimpleName()));\n }\n }", "@Test\n public void createLeftTypeCastTypeCast() throws Exception {\n //\n boolean inLeftTree = true;\n PreparationData prepData = prepareCastedPartOfFaultVar(inLeftTree);\n //\n MapperSwingTreeModel leftTreeModel = prepData.bmm.getLeftTreeModel();\n TreePath baseTypeElementPath = BpelMapperTestUtils.findInTree(prepData.treeNode,\n leftTreeModel, \"baseTypeElem\"); // NOI18N\n assertNotNull(baseTypeElementPath);\n //\n // Find global type and cast the left item to it\n GlobalComplexType targetGType = BpelMapperTestUtils.getGlobalTypeByName(\n mBpelModel, \"http://xml.netbeans.org/schema/Synchronous\",\n \"DerivedComplexType\", GlobalComplexType.class); // NOI18N\n assertNotNull(targetGType);\n //\n // Create a new cast\n TreePath castedPartPath = new BpelCastManager().addCastCmd(\n targetGType, baseTypeElementPath, inLeftTree, prepData.tcContext);\n assertNotNull(castedPartPath);\n //\n // Find the attrStr attribute inside of the new Pseudo Element.\n TreePath leftPinPath = BpelMapperTestUtils.findInTree(\n prepData.treeNode, leftTreeModel,\n \"(DerivedComplexType)baseTypeElem/strAttrA\"); // NOI18N\n assertNotNull(leftPinPath);\n //\n MapperSwingTreeModel rightTreeModel = prepData.bmm.getRightTreeModel();\n TreePath rightPinPath = BpelMapperTestUtils.findInTree(\n rightTreeModel, \"/Variables/SimpleTargetVar/strAttr1\"); // NOI18N\n assertNotNull(rightPinPath);\n //\n BpelMapperTestUtils.addTransitLink(prepData.bmm, leftPinPath, rightPinPath);\n //\n Element peer = prepData.testAssign.getPeer();\n String assignText = new SimpleDomSerializer().serializeNode(peer);\n String snapshot = TestProperties.getMessage(FaultVarLSMsCreationTest.class,\n \"MAPPER_SNAPSHOT_FAULT_LT_CREATE_CAST_CAST\"); // NOI18N\n assertEquals(assignText, snapshot);\n }", "@Deprecated\n/* */ protected JavaType _narrow(Class<?> subclass)\n/* */ {\n/* 116 */ return _reportUnsupported();\n/* */ }", "public static boolean castable(byte castType, byte inputType) {\n // Only legal types can be cast to\n if ( (!DataType.isUsableType(castType)) ||\n (!DataType.isUsableType(inputType)) ) {\n return false;\n }\n\n // Same type is castable\n if (castType==inputType) {\n return true;\n }\n\n // Numerical type is castable\n if ( (DataType.isNumberType(castType)) &&\n (DataType.isNumberType(inputType)) ) {\n return true;\n }\n\n // databyte can cast to anything\n if (inputType == DataType.BYTEARRAY) {\n return true;\n }\n\n // Cast numerical type to string, or vice versa is valid\n if (DataType.isNumberType(inputType)&&castType==DataType.CHARARRAY ||\n DataType.isNumberType(castType)&&inputType==DataType.CHARARRAY)\n return true;\n\n // else return false\n return false;\n }", "Object convert(Object source, TypeToken<?> targetTypeToken);", "public Cast(Class<O> rCastType)\n\t{\n\t\tsuper(rCastType, Cast.class.getSimpleName());\n\t}", "public Datum cast(int newType, String newMask) {\n \t\t\n \t\tif (this.type == newType && this.mask == newMask) {\n \t\t\treturn this;\n \t\t}\n \t\t\n \t\tDatum datum = null;\n \t\tString useMask = ((newMask == null || newMask.trim().length() == 0) ? getDefaultMask(newType) : newMask);\n \t\t\n \t\t\n \t\tif (this.type == newType) {\n \t\t\tdatum = new Datum(this);\n \t\t\tdatum.mask = useMask;\n \t\t\treturn datum;\n \t\t}\n \t\t\n \t\tswitch(this.type) {\n \t\t\tcase TIME:\n \t\t\tcase MONTH:\n \t\t\tcase DATE:\n \t\t\tcase YEAR:\n \t\t\tcase DAY:\n \t\t\tcase WEEKDAY:\n \t\t\tcase HOUR:\n \t\t\tcase MINUTE:\n \t\t\tcase SECOND:\n \t\t\tcase MONTH_NUM:\n \t\t\tcase DAY_NUM:\n \t\t\t\tif (isDate(newType)) {\n \t\t\t\t\tdatum = new Datum(this);\n \t\t\t\t\tdatum.type = newType;\n \t\t\t\t\tdatum.mask = useMask;\n \t\t\t\t}\n \t\t\t\telse if (newType == STRING) {\n \t\t\t\t\treturn datum;\t// don't cast to STRING\n //\t\t\t\t\tdatum = new Datum(triceps,this.stringVal(),STRING);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t}\t\n \t\t\t\tbreak;\n \t\t\tcase NUMBER:\n \t\t\t\tif (isDate(newType)) {\n \t\t\t\t\tif (newType == TIME || newType == DATE) {\n \t\t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t\t}\n \t\t\t\t\telse {\n \t\t\t\t\t\tdatum = new Datum(this);\n \t\t\t\t\t\tdatum.date = DatumMath.createDate((int) this.doubleVal(), newType);\n \t\t\t\t\t\tdatum.sVal = null;\n \t\t\t\t\t\tdatum.dVal = Double.NaN;\n \t\t\t\t\t\tdatum.type = newType;\n \t\t\t\t\t\tdatum.mask = useMask;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\telse if (newType == STRING) {\n \t\t\t\t\treturn datum;\n //\t\t\t\t\tdatum = new Datum(triceps,this.stringVal(),STRING);\n \t\t\t\t}\n \t\t\t\telse {\n \t\t\t\t\tdatum = new Datum(triceps,INVALID);\n \t\t\t\t}\n \t\t\t\tbreak;\n \t\t\tcase STRING:\n \t\t\t\t/* try to parse the string using a new format */\n \t\t\t\tdatum = new Datum(triceps,this.stringVal(),newType,useMask);\n \t\t\t\tbreak;\n \t\t\tdefault:\n \t\t\tcase INVALID:\n \t\t\tcase NA:\n \t\t\tcase UNKNOWN:\n \t\t\tcase REFUSED:\n \t\t\tcase UNASKED:\n \t\t\tcase NOT_UNDERSTOOD:\n \t\t\t\t/* can't cast any of these to a new type */\n \t\t\t\tdatum = new Datum(triceps,this.type);\n \t\t}\t\n \t\treturn datum;\t\t\n \t}", "T convert(S source) throws ConversionException;", "static <R, T extends R> R upcast(T fv) {\n return fv;\n }", "public final void castExpression() throws RecognitionException {\n int castExpression_StartIndex = input.index();\n try { dbg.enterRule(getGrammarFileName(), \"castExpression\");\n if ( getRuleLevel()==0 ) {dbg.commence();}\n incRuleLevel();\n dbg.location(830, 1);\n\n try {\n if ( state.backtracking>0 && alreadyParsedRule(input, 123) ) { return ; }\n // Java.g:831:5: ( '(' primitiveType ')' unaryExpression | '(' ( type | expression ) ')' unaryExpressionNotPlusMinus )\n int alt147=2;\n try { dbg.enterDecision(147);\n\n int LA147_0 = input.LA(1);\n\n if ( (LA147_0==66) ) {\n int LA147_1 = input.LA(2);\n\n if ( (synpred233_Java()) ) {\n alt147=1;\n }\n else if ( (true) ) {\n alt147=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 147, 1, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 147, 0, input);\n\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(147);}\n\n switch (alt147) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:831:8: '(' primitiveType ')' unaryExpression\n {\n dbg.location(831,8);\n match(input,66,FOLLOW_66_in_castExpression5047); if (state.failed) return ;\n dbg.location(831,12);\n pushFollow(FOLLOW_primitiveType_in_castExpression5049);\n primitiveType();\n\n state._fsp--;\n if (state.failed) return ;\n dbg.location(831,26);\n match(input,67,FOLLOW_67_in_castExpression5051); if (state.failed) return ;\n dbg.location(831,30);\n pushFollow(FOLLOW_unaryExpression_in_castExpression5053);\n unaryExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:832:8: '(' ( type | expression ) ')' unaryExpressionNotPlusMinus\n {\n dbg.location(832,8);\n match(input,66,FOLLOW_66_in_castExpression5062); if (state.failed) return ;\n dbg.location(832,12);\n // Java.g:832:12: ( type | expression )\n int alt146=2;\n try { dbg.enterSubRule(146);\n try { dbg.enterDecision(146);\n\n try {\n isCyclicDecision = true;\n alt146 = dfa146.predict(input);\n }\n catch (NoViableAltException nvae) {\n dbg.recognitionException(nvae);\n throw nvae;\n }\n } finally {dbg.exitDecision(146);}\n\n switch (alt146) {\n case 1 :\n dbg.enterAlt(1);\n\n // Java.g:832:13: type\n {\n dbg.location(832,13);\n pushFollow(FOLLOW_type_in_castExpression5065);\n type();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n case 2 :\n dbg.enterAlt(2);\n\n // Java.g:832:20: expression\n {\n dbg.location(832,20);\n pushFollow(FOLLOW_expression_in_castExpression5069);\n expression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n } finally {dbg.exitSubRule(146);}\n\n dbg.location(832,32);\n match(input,67,FOLLOW_67_in_castExpression5072); if (state.failed) return ;\n dbg.location(832,36);\n pushFollow(FOLLOW_unaryExpressionNotPlusMinus_in_castExpression5074);\n unaryExpressionNotPlusMinus();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n if ( state.backtracking>0 ) { memoize(input, 123, castExpression_StartIndex); }\n }\n dbg.location(833, 5);\n\n }\n finally {\n dbg.exitRule(getGrammarFileName(), \"castExpression\");\n decRuleLevel();\n if ( getRuleLevel()==0 ) {dbg.terminate();}\n }\n\n return ;\n }", "public Casts(){\n\t\t\n\t}", "public void visit(CastExpression n) {\n n.f0.accept(this);\n }", "public T caseDatatype(Datatype object)\n {\n return null;\n }", "public void setCast(Cast cast) {\n\t\tthis.cast = cast;\n\t}", "Object transform(String cellValue, Type toValueType) throws Throwable;", "@Override\n public Object convert(Object dest, Object source, Class<?> aClass, Class<?> aClass1) {\n return null;\n\n }", "public Cast getCast(int index) {\n\t\tif(this.cast != null && index < this.cast.size())\n\t\t\treturn this.cast.get(index);\n\t\treturn null;\n\t}", "public final EObject ruleCastedExpression() throws RecognitionException {\n EObject current = null;\n\n Token otherlv_1=null;\n Token otherlv_3=null;\n EObject lv_castType_2_0 = null;\n\n EObject lv_castedExpr_4_0 = null;\n\n\n enterRule(); \n \n try {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2034:28: ( ( () otherlv_1= '(' ( (lv_castType_2_0= ruleType ) ) otherlv_3= ')' ( (lv_castedExpr_4_0= ruleJasperReportsExpression ) ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2035:1: ( () otherlv_1= '(' ( (lv_castType_2_0= ruleType ) ) otherlv_3= ')' ( (lv_castedExpr_4_0= ruleJasperReportsExpression ) ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2035:1: ( () otherlv_1= '(' ( (lv_castType_2_0= ruleType ) ) otherlv_3= ')' ( (lv_castedExpr_4_0= ruleJasperReportsExpression ) ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2035:2: () otherlv_1= '(' ( (lv_castType_2_0= ruleType ) ) otherlv_3= ')' ( (lv_castedExpr_4_0= ruleJasperReportsExpression ) )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2035:2: ()\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2036:5: \n {\n if ( state.backtracking==0 ) {\n\n current = forceCreateModelElement(\n grammarAccess.getCastedExpressionAccess().getCastedExpressionAction_0(),\n current);\n \n }\n\n }\n\n otherlv_1=(Token)match(input,51,FOLLOW_51_in_ruleCastedExpression4902); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_1, grammarAccess.getCastedExpressionAccess().getLeftParenthesisKeyword_1());\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2045:1: ( (lv_castType_2_0= ruleType ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2046:1: (lv_castType_2_0= ruleType )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2046:1: (lv_castType_2_0= ruleType )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2047:3: lv_castType_2_0= ruleType\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getCastedExpressionAccess().getCastTypeTypeParserRuleCall_2_0()); \n \t \n }\n pushFollow(FOLLOW_ruleType_in_ruleCastedExpression4923);\n lv_castType_2_0=ruleType();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCastedExpressionRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"castType\",\n \t\tlv_castType_2_0, \n \t\t\"Type\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n otherlv_3=(Token)match(input,52,FOLLOW_52_in_ruleCastedExpression4935); if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \tnewLeafNode(otherlv_3, grammarAccess.getCastedExpressionAccess().getRightParenthesisKeyword_3());\n \n }\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2067:1: ( (lv_castedExpr_4_0= ruleJasperReportsExpression ) )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2068:1: (lv_castedExpr_4_0= ruleJasperReportsExpression )\n {\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2068:1: (lv_castedExpr_4_0= ruleJasperReportsExpression )\n // ../com.jaspersoft.studio.editor.jrexpressions/src-gen/com/jaspersoft/studio/editor/jrexpressions/parser/antlr/internal/InternalJavaJRExpression.g:2069:3: lv_castedExpr_4_0= ruleJasperReportsExpression\n {\n if ( state.backtracking==0 ) {\n \n \t newCompositeNode(grammarAccess.getCastedExpressionAccess().getCastedExprJasperReportsExpressionParserRuleCall_4_0()); \n \t \n }\n pushFollow(FOLLOW_ruleJasperReportsExpression_in_ruleCastedExpression4956);\n lv_castedExpr_4_0=ruleJasperReportsExpression();\n\n state._fsp--;\n if (state.failed) return current;\n if ( state.backtracking==0 ) {\n\n \t if (current==null) {\n \t current = createModelElementForParent(grammarAccess.getCastedExpressionRule());\n \t }\n \t\tset(\n \t\t\tcurrent, \n \t\t\t\"castedExpr\",\n \t\tlv_castedExpr_4_0, \n \t\t\"JasperReportsExpression\");\n \t afterParserOrEnumRuleCall();\n \t \n }\n\n }\n\n\n }\n\n\n }\n\n\n }\n\n if ( state.backtracking==0 ) {\n leaveRule(); \n }\n }\n \n catch (RecognitionException re) { \n recover(input,re); \n appendSkippedTokens();\n } \n finally {\n }\n return current;\n }", "T convert(String value);", "public static HiveObjectConversion getConversion(\n ObjectInspector inspector, LogicalType dataType, HiveShim hiveShim) {\n if (inspector instanceof PrimitiveObjectInspector) {\n HiveObjectConversion conversion;\n if (inspector instanceof BooleanObjectInspector\n || inspector instanceof StringObjectInspector\n || inspector instanceof ByteObjectInspector\n || inspector instanceof ShortObjectInspector\n || inspector instanceof IntObjectInspector\n || inspector instanceof LongObjectInspector\n || inspector instanceof FloatObjectInspector\n || inspector instanceof DoubleObjectInspector\n || inspector instanceof BinaryObjectInspector\n || inspector instanceof VoidObjectInspector) {\n conversion = IdentityConversion.INSTANCE;\n } else if (inspector instanceof DateObjectInspector) {\n conversion = hiveShim::toHiveDate;\n } else if (inspector instanceof TimestampObjectInspector) {\n conversion = hiveShim::toHiveTimestamp;\n } else if (inspector instanceof HiveCharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveChar(\n (String) o, ((CharType) dataType).getLength());\n } else if (inspector instanceof HiveVarcharObjectInspector) {\n conversion =\n o ->\n o == null\n ? null\n : new HiveVarchar(\n (String) o, ((VarCharType) dataType).getLength());\n } else if (inspector instanceof HiveDecimalObjectInspector) {\n conversion = o -> o == null ? null : HiveDecimal.create((BigDecimal) o);\n } else if (inspector instanceof HiveIntervalYearMonthObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Period period = (Period) o;\n return new HiveIntervalYearMonth(\n period.getYears(), period.getMonths());\n }\n };\n } else if (inspector instanceof HiveIntervalDayTimeObjectInspector) {\n conversion =\n o -> {\n if (o == null) {\n return null;\n } else {\n Duration duration = (Duration) o;\n return new HiveIntervalDayTime(\n duration.getSeconds(), duration.getNano());\n }\n };\n } else {\n throw new FlinkHiveUDFException(\n \"Unsupported primitive object inspector \" + inspector.getClass().getName());\n }\n // if the object inspector prefers Writable objects, we should add an extra conversion\n // for that\n // currently this happens for constant arguments for UDFs\n if (((PrimitiveObjectInspector) inspector).preferWritable()) {\n conversion = new WritableHiveObjectConversion(conversion, hiveShim);\n }\n return conversion;\n }\n\n if (inspector instanceof ListObjectInspector) {\n HiveObjectConversion eleConvert =\n getConversion(\n ((ListObjectInspector) inspector).getListElementObjectInspector(),\n ((ArrayType) dataType).getElementType(),\n hiveShim);\n return o -> {\n if (o == null) {\n return null;\n }\n Object[] array = (Object[]) o;\n List<Object> result = new ArrayList<>();\n\n for (Object ele : array) {\n result.add(eleConvert.toHiveObject(ele));\n }\n return result;\n };\n }\n\n if (inspector instanceof MapObjectInspector) {\n MapObjectInspector mapInspector = (MapObjectInspector) inspector;\n MapType kvType = (MapType) dataType;\n\n HiveObjectConversion keyConversion =\n getConversion(\n mapInspector.getMapKeyObjectInspector(), kvType.getKeyType(), hiveShim);\n HiveObjectConversion valueConversion =\n getConversion(\n mapInspector.getMapValueObjectInspector(),\n kvType.getValueType(),\n hiveShim);\n\n return o -> {\n if (o == null) {\n return null;\n }\n Map<Object, Object> map = (Map) o;\n Map<Object, Object> result = CollectionUtil.newHashMapWithExpectedSize(map.size());\n\n for (Map.Entry<Object, Object> entry : map.entrySet()) {\n result.put(\n keyConversion.toHiveObject(entry.getKey()),\n valueConversion.toHiveObject(entry.getValue()));\n }\n return result;\n };\n }\n\n if (inspector instanceof StructObjectInspector) {\n StructObjectInspector structInspector = (StructObjectInspector) inspector;\n\n List<? extends StructField> structFields = structInspector.getAllStructFieldRefs();\n\n List<RowType.RowField> rowFields = ((RowType) dataType).getFields();\n\n HiveObjectConversion[] conversions = new HiveObjectConversion[structFields.size()];\n for (int i = 0; i < structFields.size(); i++) {\n conversions[i] =\n getConversion(\n structFields.get(i).getFieldObjectInspector(),\n rowFields.get(i).getType(),\n hiveShim);\n }\n\n return o -> {\n if (o == null) {\n return null;\n }\n Row row = (Row) o;\n List<Object> result = new ArrayList<>(row.getArity());\n for (int i = 0; i < row.getArity(); i++) {\n result.add(conversions[i].toHiveObject(row.getField(i)));\n }\n return result;\n };\n }\n\n throw new FlinkHiveUDFException(\n String.format(\n \"Flink doesn't support convert object conversion for %s yet\", inspector));\n }", "public void visitCheckCast(Quad obj) {\n if (TRACE_INTRA) out.println(\"Visiting: \"+obj);\n Register dest_r = CheckCast.getDest(obj).getRegister();\n Operand src = CheckCast.getSrc(obj);\n if (src instanceof RegisterOperand) {\n Register src_r = ((RegisterOperand)src).getRegister();\n Object s = getRegister(src_r);\n if (!include_cast_ops) {\n setRegister(dest_r, s);\n return;\n }\n CheckCastNode n = (CheckCastNode)nodeCache.get(obj);\n if (n == null) {\n n = CheckCastNode.get(CheckCast.getType(obj).getType(), \n new QuadProgramLocation(method, obj));\n nodeCache.put(obj, n);\n }\n Collection from = (s instanceof Collection) ? (Collection)s : Collections.singleton(s);\n Iterator i = from.iterator();\n while (i.hasNext()) {\n Node fn = (Node)i.next();\n Pair key = new Pair(fn, obj);\n if (castMap.put(key, n) == null)\n castPredecessors.add(fn);\n }\n setRegister(dest_r, n);\n } else {\n Node n = handleConst((ConstOperand) src, new QuadProgramLocation(method, obj));\n setRegister(dest_r, n);\n }\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default float asFloat() {\n \n return notSupportedCast(BasicTypeID.FLOAT);\n }", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default int asInt() {\n \n return notSupportedCast(BasicTypeID.INT);\n }", "public static UnaryExpression typeAs(Expression expression, Class type) { throw Extensions.todo(); }", "void method2(){\r\n\t\tshort s = 111;\r\n\t\tShort ss = s;\r\n\t\tSystem.out.println(\"Cast short \"+ s +\" to Short \"+ ss);\r\n\r\n\t\tint i = 2147483647;\r\n\t\t// incorecy cast from primitive int Reference Varible Short\r\n\t\t//Short ii = i;\r\n\t\tShort sss = (short) i;\r\n\t\tSystem.out.println(\"Cast int \"+ i +\" to Short \"+ sss);\r\n\t\t\r\n\t\t\r\n\t}", "T convert(S s) throws UnconvertableException;", "public T convert(Number source)\r\n/* 26: */ {\r\n/* 27:56 */ return NumberUtils.convertNumberToTargetClass(source, this.targetType);\r\n/* 28: */ }", "public int cast(String s) {\n\n //System.err.println(this+\" \"+slexic+\"cast s = \" + s);\n Integer i = slexic.get(s);\n\n if (i==null) return 0; // unknown symbol - this happens in transfer\n\n return (int) i;\n }", "@Override\n\tpublic Object convert(Class<?> desiredType, Object in) throws Exception {\n\t\treturn null;\n\t}", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default long asLong() {\n \n return notSupportedCast(BasicTypeID.LONG);\n }", "private void checkType(V value) {\n valueClass.cast(value);\n }", "public final void mCAST_EXPRESSION() throws RecognitionException {\n try {\n int _type = CAST_EXPRESSION;\n // /Users/benjamincoe/HackWars/C.g:21:17: ( '1212cast1212' )\n // /Users/benjamincoe/HackWars/C.g:21:19: '1212cast1212'\n {\n match(\"1212cast1212\"); \n\n\n }\n\n this.type = _type;\n }\n finally {\n }\n }", "public static org.xms.g.common.AccountPicker dynamicCast(java.lang.Object param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "@Test\n public void testCheckCast() throws Exception {\n Class<?> mainClass = MainCheckCastSubClass.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, SuperClass.class, SubClass.class),\n keepMainProguardConfiguration(mainClass),\n (ignoreMainClass, ignoreProgramClasses, inspector) -> {\n assertTrue(inspector.clazz(mainClass).isPresent());\n assertTrue(inspector.clazz(SubClass.class).isPresent());\n // SuperClass may have been merged with SubClass.\n inspector.forAllClasses(this::checkPresentWithDefaultConstructor);\n });\n }", "public static UnaryExpression convertChecked(Expression expression, Class type) { throw Extensions.todo(); }", "public Object convertToCatalyst (Object a, org.apache.spark.sql.catalyst.types.DataType dataType) ;", "public NumberToNumber(Class<T> targetType)\r\n/* 21: */ {\r\n/* 22:52 */ this.targetType = targetType;\r\n/* 23: */ }", "protected IValue narrow(Object result){\n\t\tif(result instanceof Integer) {\n\t\t\treturn vf.integer((Integer)result);\n\t\t}\n\t\tif(result instanceof IValue) {\n\t\t\treturn (IValue) result;\n\t\t}\n\t\tif(result instanceof Thrown) {\n\t\t\t((Thrown) result).printStackTrace(stdout);\n\t\t\treturn vf.string(((Thrown) result).toString());\n\t\t}\n\t\tif(result instanceof Object[]) {\n\t\t\tIListWriter w = vf.listWriter();\n\t\t\tObject[] lst = (Object[]) result;\n\t\t\tfor(int i = 0; i < lst.length; i++){\n\t\t\t\tw.append(narrow(lst[i]));\n\t\t\t}\n\t\t\treturn w.done();\n\t\t}\n\t\tif(result == null){\n\t\t\treturn null;\n\t\t}\n\t\tthrow new InternalCompilerError(\"Cannot convert object back to IValue: \" + result);\n\t}", "@Test(expected=ClassCastException.class)\n public void testWrongValueOf() {\n assertSame(Configuration.Key.isDoubleToDoubleSupported,\n Configuration.Key.valueOf(\"isDoubleToDoubleSupported\", String.class));\n }", "private WarPlayer castPlayer (Player player) {\n return (WarPlayer)player;\n }", "public void visitCASTORE(CASTORE o){\n\t\tType arrayref = stack().peek(2);\n\t\tType index = stack().peek(1);\n\t\tType value = stack().peek(0);\n\t\t\n\t\tindexOfInt(o, index);\n\t\tvalueOfInt(o, value);\n\t\tif (arrayrefOfArrayType(o, arrayref)){\n\t\t\tif (! ((ArrayType) arrayref).getElementType().equals(Type.CHAR) ){\n\t\t\t\tconstraintViolated(o, \"The 'arrayref' does not refer to an array with elements of type char but to an array of type \"+((ArrayType) arrayref).getElementType()+\".\");\n\t\t\t}\n\t\t}\n\t}", "public abstract JType unboxify();", "private String getPrimitiveTypeCastString(final String targetType, final ExpressionOperatorParameter parameters) {\n return new StringBuilder().append(\"((\").append(targetType).append(\")(\").append(getLeft().getJavaString(parameters))\n .append(\"))\").toString();\n }", "public static int OpaqueToType(byte[] b) { \n int type = b[8];\n return type; \n }", "public void testTransformWithInvalidElementType() throws Exception {\n try {\n instance.transform(\"invalid\", document, caller);\n fail(\"ClassCastException is excepted.\");\n } catch (ClassCastException cce) {\n // pass\n }\n }", "public Object convert(Object from, Class to) {\n \t\tif (from instanceof Function) {\n \t\t\tif (to == Callable.class)\n \t\t\t\treturn new RhinoCallable(engine, (Function) from);\n \t\t} else if (from instanceof Scriptable || from instanceof String) { // Let through string as well, for ArgumentReader\n \t\t\tif (Map.class.isAssignableFrom(to)) {\n \t\t\t\treturn toMap((Scriptable) from);\n \t\t\t} else {\n \t\t\t\t/* try constructing from this prototype first\n \t\t\t\ttry {\n \t\t\t\t\tScriptable scope = engine.getScope();\n \t\t\t\t\tExtendedJavaClass cls = ExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\treturn cls.construct(Context.getCurrentContext(), scope, new Object[] { from });\n \t\t\t\t} catch(Throwable e) {\n \t\t\t\t\tint i = 0;\n \t\t\t\t}\n \t\t\t\t*/\n \t\t\t\tArgumentReader reader = null;\n \t\t\t\tif (ArgumentReader.canConvert(to) && (reader = getArgumentReader(from)) != null) {\n \t\t\t\t return ArgumentReader.convert(reader, unwrap(from), to);\n \t\t\t\t} else if (from instanceof NativeObject && getZeroArgumentConstructor(to) != null) {\n \t\t\t\t\t// Try constructing an object of class type, through\n \t\t\t\t\t// the JS ExtendedJavaClass constructor that takes \n \t\t\t\t\t// a last optional argument: A NativeObject of which\n \t\t\t\t\t// the fields define the fields to be set in the native type.\n \t\t\t\t\tScriptable scope = ((RhinoEngine) this.engine).getScope();\n \t\t\t\t\tExtendedJavaClass cls =\n \t\t\t\t\t\t\tExtendedJavaClass.getClassWrapper(scope, to);\n \t\t\t\t\tif (cls != null) {\n \t\t\t\t\t\tObject obj = cls.construct(Context.getCurrentContext(),\n \t\t\t\t\t\t\t\tscope, new Object[] { from });\n \t\t\t\t\t\tif (obj instanceof Wrapper)\n \t\t\t\t\t\t\tobj = ((Wrapper) obj).unwrap();\n \t\t\t\t\t\treturn obj;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t}\n \t\t} else if (from == Undefined.instance) {\n \t\t\t// Convert undefined ot false if destination is boolean\n \t\t\tif (to == Boolean.TYPE)\n \t\t\t\treturn Boolean.FALSE;\n \t\t} else if (from instanceof Boolean) {\n \t\t\t// Convert false to null / undefined for non primitive destination classes.\n\t\t\tif (!((Boolean) from).booleanValue() && !to.isPrimitive())\n \t\t\t\treturn Undefined.instance;\n \t\t}\n \t\treturn null;\n \t}", "Datatype internalize(Datatype arg) throws CCAException;", "@Test\n public void testConvertStadium() {\n Object result = converter.convert(null, stadium, Long.class, Stadium.class);\n\n assertEquals(result.getClass(), Long.class, \"Converted object is not of a Long class.\");\n assertSame(result, stadium.getId(), \"Converted object is not the one expected.\");\n }", "public final void synpred229_Java_fragment() throws RecognitionException {\n // Java.g:826:9: ( castExpression )\n dbg.enterAlt(1);\n\n // Java.g:826:9: castExpression\n {\n dbg.location(826,9);\n pushFollow(FOLLOW_castExpression_in_synpred229_Java5009);\n castExpression();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n }", "<T> T convert(Object o, Class<T> type);", "@ZenCodeType.Caster\n @ZenCodeType.Method\n default double asDouble() {\n \n return notSupportedCast(BasicTypeID.DOUBLE);\n }", "public Object convertToType(ELContext context, Object obj, Class<?> targetType) {\n/* 522 */ context.setPropertyResolved(false);\n/* */ \n/* 524 */ Object value = null;\n/* 525 */ for (int i = 0; i < this.size; i++) {\n/* 526 */ value = this.elResolvers[i].convertToType(context, obj, targetType);\n/* 527 */ if (context.isPropertyResolved()) {\n/* 528 */ return value;\n/* */ }\n/* */ } \n/* 531 */ return null;\n/* */ }", "public Object cast(Object aFromObject, Class<?> toClass) {\n\t\ttry {\n\t\t\tClass<?> targetClz = Class.forName(toClass.getName());\n\t\t\tObject result = targetClz.newInstance();\n\t\t\tBeanUtils.copyProperties(result, aFromObject);\n\t\t\treturn result;\n\t\t} catch (Exception e) {\n\t\t\tlogger.warn(\"error casting \" + aFromObject.getClass().getName() + \" : \" + e);\n\t\t\treturn null;\n\t\t}\n\t}", "public T caseFloorCast(FloorCast object) {\n\t\treturn null;\n\t}", "@Test\n public void testCheckCastWithoutInlining() throws Exception {\n Class<?> mainClass = MainCheckCastSubClass.class;\n runTest(\n mainClass,\n ImmutableList.of(mainClass, SuperClass.class, SubClass.class),\n // Prevent SuperClass from being merged into SubClass.\n keepMainProguardConfiguration(\n mainClass, ImmutableList.of(\"-dontoptimize\", \"-keep class **.SuperClass\")),\n this::checkAllClassesPresentWithDefaultConstructor);\n }", "public static Value performUserDefinedConversion(TypeSpec from,\n final TypeSpec to, Value fromValue, final boolean implicitConversion) {\n if (fromValue != null) {\n\n if (from.isAny()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Any) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else if (from.isNum()) {\n if (fromValue.getValue() != null) {\n fromValue = new Value(((Num) fromValue.getValue()).value);\n from = TypeSpec.typeOf(fromValue);\n } else {\n fromValue = new Value(); // null Value\n }\n } else {\n fromValue = TypeSpec.unwrapAnyOrNumValue(fromValue);\n }\n\n }\n\n if ((fromValue != null) && (fromValue.getValue() != null)) {\n Debug.Assert(TypeSpec.typeOf(fromValue).equals(from),\n \"fromValue (type \" + TypeSpec.typeOf(fromValue)\n + \") must be of type 'from'=\" + from);\n }\n\n // (NB: we are treating the builtin class types (like Vector, Matrix) as\n // user-defined here as\n // then we can utilize their Java method conversions\n final boolean fromIsSimpleBuiltin = (from.isBuiltin() && !from\n .isBuiltinClass()) || from.isBuiltinObject();\n final boolean toIsSimpleBuiltin = (to.isBuiltin() && !to\n .isBuiltinClass()) || to.isBuiltinObject();\n\n if (fromIsSimpleBuiltin && toIsSimpleBuiltin) {\n return null; // no user-defined conversions in simple builtin types!\n }\n\n // First, construct a set of operators from 'from' and 'to' that convert\n // from a type\n // encompassing 'from' to a type encompassed by 'to'\n // (only considering implicit operators, if 'implicit' is true\n\n final Entry[] fromOps = getUserDefinedConversionOperatorsOf(from);\n final Entry[] toOps = (!from.equals(to)) ? getUserDefinedConversionOperatorsOf(to)\n : new Entry[0]; // don't duplicate\n\n final ArrayList applicableOps = new ArrayList();\n\n for (final Entry entry : fromOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(from, entry);\n final TypeSpec convertTo = conversionOperatorToType(from, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(from, entry));\n }\n }\n\n for (final Entry entry : toOps) {\n final TypeSpec convertFrom = conversionOperatorFromType(to, entry);\n final TypeSpec convertTo = conversionOperatorToType(to, entry);\n if (encompasses(convertFrom, from) && encompassedBy(convertTo, to)\n && (!implicitConversion || entry.isImplicit())) {\n applicableOps.add(new TypeManager.ConvOperator(to, entry));\n }\n }\n\n // if the set of applicable operators is empty, there is no user-defined\n // conversion\n if (applicableOps.size() == 0) {\n return null;\n }\n\n // Now we need to find the most specific from type and the most specific\n // to type of the conversions\n // if one of the conversion from types is actually 'from', then thats\n // it,otherwise it is\n // the most encompassed\n TypeSpec mostSpecificFrom = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(from)) {\n mostSpecificFrom = from;\n break;\n }\n }\n\n if (mostSpecificFrom == null) { // didn't find 'from' specifically, look\n // for most encompassed\n\n final ArrayList fromTypes = new ArrayList(); // make a list of\n // conversion from\n // types\n for (final Object op : applicableOps) {\n fromTypes.add(((ConvOperator) op).from());\n }\n\n mostSpecificFrom = mostEncompassedType(fromTypes);\n\n if (mostSpecificFrom == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // OK, now do the analogous thing for the convert to types\n TypeSpec mostSpecificTo = null;\n for (final Object op : applicableOps) {\n if (((ConvOperator) op).to().equals(to)) {\n mostSpecificTo = to;\n break;\n }\n }\n\n if (mostSpecificTo == null) { // didn't find 'to' specifically, look for\n // most encompassing\n\n final ArrayList toTypes = new ArrayList(); // make a list of\n // conversion to types\n for (final Object op : applicableOps) {\n toTypes.add(((ConvOperator) op).to());\n }\n\n mostSpecificTo = mostEncompassingType(toTypes);\n\n if (mostSpecificTo == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n }\n\n // Now find an 'operator' in applicableOps that converts from\n // 'mostSpecificFrom' to 'mostSpecificTo'\n // if there are none or more that one, the conversion is ambiguous\n\n ConvOperator conversionOp = null;\n for (final Object o : applicableOps) {\n final ConvOperator op = (ConvOperator) o;\n if (op.from().equals(mostSpecificFrom)\n && op.to().equals(mostSpecificTo)) {\n if (conversionOp == null) {\n conversionOp = op; // found one\n } else {// alreay had one, more than one is ambiguous\n // Debug.WL(\"HERE had \"+op.from()+\"->\"+op.to()+\" in \"+conversionOp.declaringType+\" don't need in \"+op.declaringType);\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\"\n + to + \"' is ambiguous\");\n }\n }\n }\n\n if (conversionOp == null) {\n ScigolTreeParser.semanticError(\"\"\n + (implicitConversion ? \"implicit \" : \"\")\n + \"conversion from type '\" + from + \"' to type '\" + to\n + \"' is ambiguous\");\n }\n\n // if we don't have a fromValue to convert, this is as far as we go.\n // Just return\n // a non-null *Value* to indicate that the conversion exists\n if (fromValue == null) {\n return new Value(); // null Value\n }\n\n // Finally, we can actually perform the conversion using 'conversionOp'\n // 3 steps:\n // 1) convert from -> mostSpecificFrom\n // 2) use conversionOp to convert mostSpecificFrom -> mostSpecificTo\n // 3) convert mostSpecificTo -> to\n\n Value v = fromValue;\n if (!from.equals(mostSpecificFrom)) {\n v = performImplicitConversion(from, mostSpecificFrom, v); // 1\n }\n // Debug.WriteLine(\"STEP2, calling conversion operator:\"+mostSpecificFrom+\"->\"+mostSpecificTo+\" of \"+conversionOp.declaringType+\" : \"+conversionOp.methodEntry);\n v = callConversionOperator(conversionOp.declaringType,\n conversionOp.methodEntry, v); // 2\n Debug.Assert(v != null, \"call of conversion operator failed\");\n Debug.Assert(TypeSpec.typeOf(v).equals(mostSpecificTo),\n \"unexpected return type from conversion operator\");\n\n if (!to.equals(mostSpecificTo)) {\n v = performImplicitConversion(mostSpecificTo, to, v); // 3\n }\n\n return v;\n }" ]
[ "0.7230195", "0.7024402", "0.69817835", "0.69817835", "0.69817835", "0.6827841", "0.67042476", "0.653113", "0.64385664", "0.63999635", "0.63130736", "0.62466365", "0.6237506", "0.62134737", "0.61141354", "0.60444653", "0.60234034", "0.60190547", "0.59894264", "0.5977071", "0.5927996", "0.58672875", "0.5833465", "0.5814251", "0.5801944", "0.5790542", "0.57280976", "0.5717143", "0.5672053", "0.56585866", "0.5611511", "0.5600135", "0.558825", "0.5581925", "0.55428135", "0.5518194", "0.55034167", "0.54969937", "0.54947317", "0.5473884", "0.547016", "0.54594064", "0.5456653", "0.545465", "0.54433066", "0.5425176", "0.5368063", "0.53660804", "0.5362598", "0.5299965", "0.5279318", "0.52771336", "0.52721506", "0.527086", "0.5256849", "0.5252795", "0.5235997", "0.52288264", "0.52042246", "0.520404", "0.51956385", "0.51718765", "0.51715827", "0.51547486", "0.514143", "0.5138873", "0.51310945", "0.5117938", "0.5101492", "0.5095672", "0.5087194", "0.50814337", "0.508073", "0.5080493", "0.5076393", "0.50377804", "0.5027718", "0.5025782", "0.5008986", "0.5008226", "0.50061363", "0.50038075", "0.4993087", "0.49769402", "0.49494636", "0.49454018", "0.49435267", "0.49287918", "0.492434", "0.4922616", "0.49149582", "0.49138266", "0.49125013", "0.49094915", "0.49033538", "0.4885714", "0.48815742", "0.48778656", "0.48776975", "0.48690084" ]
0.6227154
13
constructor implicit al clasei
public Node() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "public Clade() {}", "Constructor() {\r\n\t\t \r\n\t }", "private Instantiation(){}", "public Pasien() {\r\n }", "defaultConstructor(){}", "public AntrianPasien() {\r\n\r\n }", "public TCubico(){}", "public Alojamiento() {\r\n\t}", "public Carrera(){\n }", "public Cgg_jur_anticipo(){}", "protected abstract void construct();", "public Chauffeur() {\r\n\t}", "public Curso() {\r\n }", "public Aritmetica(){ }", "private void __sep__Constructors__() {}", "public CyanSus() {\n\n }", "public TTau() {}", "public Classe() {\r\n }", "public Lanceur() {\n\t}", "void DefaultConstructor(){}", "public Cohete() {\n\n\t}", "Reproducible newInstance();", "public Propuestas() {}", "public Achterbahn() {\n }", "public Rol() {}", "private SingleObject(){}", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Orbiter() {\n }", "public prueba()\r\n {\r\n }", "public PSRelation()\n {\n }", "public Coche() {\n super();\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public SlanjePoruke() {\n }", "public Corso() {\n\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public lo() {}", "protected Asignatura()\r\n\t{}", "public Vehiculo() {\r\n }", "public Anschrift() {\r\n }", "public Aktie() {\n }", "private BaseDatos() {\n }", "private TMCourse() {\n\t}", "public Kullanici() {}", "public Generic(){\n\t\tthis(null);\n\t}", "public Nota() {\n }", "public Persona() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public Postoj() {}", "public Funcionario() {\r\n\t\t\r\n\t}", "private SingleObject()\r\n {\r\n }", "public Caso_de_uso () {\n }", "public SgaexpedbultoImpl()\n {\n }", "public Chick() {\n\t}", "public Lotto2(){\n\t\t\n\t}", "public CSSTidier() {\n\t}", "public Documento() {\n\n\t}", "public Car(){\n\t\t\n\t}", "public Livro() {\n\n\t}", "public Phl() {\n }", "public Odontologo() {\n }", "private UsineJoueur() {}", "public Plato(){\n\t\t\n\t}", "protected Approche() {\n }", "public Busca(){\n }", "public Libro() {\r\n }", "public Implementor(){}", "private Cat() {\n\t\t\n\t}", "private Model(){}", "public Troco() {\n }", "public Funcionaria(){\n\n }", "public Persona(){\n \n }", "public Persona(){\n \n }", "public Trening() {\n }", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public Basic() {}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public Persona() {\n }", "public Banco(){}", "public Chant(){}", "public Mannschaft() {\n }", "public Persona() {\n \t\n }", "public PersonaFisica() {}", "public Person() {\n\t\t\n\t}", "private ControleurAcceuil(){ }", "public Contato() {\n }", "public Corrida(){\n\n }", "public Mitarbeit() {\r\n }", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public Prova() {}", "public MorteSubita() {\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}", "O() { super(null); }", "public Candidatura (){\n \n }", "public NhanVien()\n {\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public Parameters() {\n\t}", "public JSFOla() {\n }", "public Tigre() {\r\n }", "public Data() {\n \n }", "public OOP_207(){\n\n }" ]
[ "0.7528051", "0.7480505", "0.7444623", "0.7318006", "0.72875756", "0.7265447", "0.72092724", "0.71850336", "0.71187973", "0.7077822", "0.703716", "0.70338714", "0.7025012", "0.7017506", "0.70092475", "0.69949937", "0.69490683", "0.69389236", "0.691288", "0.69125944", "0.6904525", "0.6900718", "0.6894034", "0.6867648", "0.6867146", "0.6857109", "0.6838087", "0.6833259", "0.6823792", "0.68123066", "0.68004566", "0.67992294", "0.6796406", "0.67945635", "0.6778344", "0.675874", "0.6755444", "0.6748697", "0.6740257", "0.6738429", "0.67350197", "0.6734599", "0.6724893", "0.6717105", "0.67068875", "0.6704901", "0.6696981", "0.66962624", "0.6693885", "0.6684416", "0.6679235", "0.6677991", "0.6667988", "0.6664582", "0.66575813", "0.66487277", "0.66486377", "0.6647107", "0.6646891", "0.66437954", "0.664353", "0.6643459", "0.66385984", "0.66350895", "0.66302556", "0.66295826", "0.66266376", "0.66244316", "0.6624234", "0.6618313", "0.6601318", "0.6597548", "0.6597548", "0.6593158", "0.658093", "0.6580144", "0.6575742", "0.65751785", "0.6561253", "0.6555757", "0.6554698", "0.6532934", "0.6528842", "0.6526817", "0.65252876", "0.6521266", "0.65185744", "0.6517615", "0.6517384", "0.6513112", "0.65125084", "0.65097696", "0.650944", "0.6509382", "0.6509242", "0.6507499", "0.650611", "0.6500336", "0.6492252", "0.649216", "0.6483676" ]
0.0
-1
constructor explicit al clasei
public Node(T val) { this.val = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Constructor(){\n\t\t\n\t}", "public Clade() {}", "public Pasien() {\r\n }", "Constructor() {\r\n\t\t \r\n\t }", "public AntrianPasien() {\r\n\r\n }", "defaultConstructor(){}", "private Instantiation(){}", "public TCubico(){}", "public TTau() {}", "public CyanSus() {\n\n }", "public Alojamiento() {\r\n\t}", "public Cgg_jur_anticipo(){}", "public Chauffeur() {\r\n\t}", "public Carrera(){\n }", "private SingleObject(){}", "void DefaultConstructor(){}", "protected abstract void construct();", "public Aritmetica(){ }", "public Lanceur() {\n\t}", "public Achterbahn() {\n }", "public Classe() {\r\n }", "public Curso() {\r\n }", "public SlanjePoruke() {\n }", "protected Asignatura()\r\n\t{}", "private void __sep__Constructors__() {}", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Generic(){\n\t\tthis(null);\n\t}", "public Anschrift() {\r\n }", "public Rol() {}", "private SingleObject()\r\n {\r\n }", "public Supercar() {\r\n\t\t\r\n\t}", "Reproducible newInstance();", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "public Aktie() {\n }", "public Cohete() {\n\n\t}", "public Propuestas() {}", "public Kullanici() {}", "public Vehiculo() {\r\n }", "public Persona() {\n\t}", "public prueba()\r\n {\r\n }", "public CSSTidier() {\n\t}", "public Basic() {}", "public PSRelation()\n {\n }", "public Nota() {\n }", "public Pitonyak_09_02() {\r\n }", "public Postoj() {}", "public Chick() {\n\t}", "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public NhanVien()\n {\n }", "public Coche() {\n super();\n }", "private Model(){}", "private UsineJoueur() {}", "public SgaexpedbultoImpl()\n {\n }", "public Corso() {\n\n }", "public lo() {}", "public Trening() {\n }", "public Caso_de_uso () {\n }", "public Livro() {\n\n\t}", "private BaseDatos() {\n }", "public Orbiter() {\n }", "public Busca(){\n }", "public Persona() {\n }", "public Persona(){\n \n }", "public Persona(){\n \n }", "public Car(){\n\t\t\n\t}", "public Person() {\n\t\t\n\t}", "public TebakNusantara()\n {\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Phl() {\n }", "public Plato(){\n\t\t\n\t}", "public Mannschaft() {\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Tigre() {\r\n }", "O() { super(null); }", "private TMCourse() {\n\t}", "public Implementor(){}", "public ChaCha()\n\t{\n\t\tsuper();\n\t}", "public PersonaFisica() {}", "public Persona() {\n \t\n }", "public Documento() {\n\n\t}", "public InsulinType(){\n super();\n }", "public GenericElement() {\n\t}", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "public Libro() {\r\n }", "public Article() {\n\t}", "private SingleObject(){\n }", "public Lotto2(){\n\t\t\n\t}", "protected Approche() {\n }", "public Troco() {\n }", "public Candidatura (){\n \n }", "public Transportista() {\n }", "public Soil()\n\t{\n\n\t}", "public Mueble() {\n }", "public JSFOla() {\n }", "public Odontologo() {\n }", "public Chant(){}", "public D() {}", "public Valvula(){}", "public Aanbieder() {\r\n\t\t}", "public Funcionario() {\r\n\t\t\r\n\t}", "public Pojo1110110(){\r\n\t}" ]
[ "0.75062203", "0.7504877", "0.74139553", "0.740266", "0.7387049", "0.73662645", "0.7354048", "0.71720296", "0.70971394", "0.70955455", "0.7088633", "0.70839953", "0.7082582", "0.7081893", "0.7057618", "0.7030636", "0.70107144", "0.70036834", "0.6968602", "0.69646096", "0.6948869", "0.6932315", "0.69041926", "0.68971217", "0.6877473", "0.6868783", "0.68668526", "0.6854923", "0.68511015", "0.684602", "0.6840259", "0.6830119", "0.68293", "0.6824744", "0.681491", "0.6804872", "0.67964", "0.67905146", "0.6788194", "0.6788077", "0.6782902", "0.6778893", "0.6772114", "0.67578083", "0.6756144", "0.6747995", "0.6728107", "0.6719077", "0.6718154", "0.6714323", "0.6708295", "0.66937304", "0.66929007", "0.66889143", "0.6680191", "0.6677475", "0.66762275", "0.6669007", "0.66679156", "0.6666047", "0.66639936", "0.6658977", "0.6656321", "0.6656321", "0.66491914", "0.66427976", "0.6637038", "0.6632887", "0.66274196", "0.6623223", "0.66187733", "0.66168135", "0.66156435", "0.66154486", "0.6613319", "0.66109794", "0.6610717", "0.66060776", "0.660406", "0.6592628", "0.6591391", "0.65873826", "0.65835804", "0.65821797", "0.6576741", "0.6571708", "0.6570885", "0.6569239", "0.6565131", "0.65587944", "0.655363", "0.65486264", "0.6545672", "0.65424913", "0.65415335", "0.6541223", "0.65375733", "0.6535827", "0.6532639", "0.6527431", "0.65265036" ]
0.0
-1
setter pentru valoarea din nod
public void setData(T val) { this.val = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValue(IveObject val){\r\n\tvalue = val;\r\n\tnotifyFromAttr();\r\n }", "@Override\n public void setValue(Node value) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "public void setValue(Object val);", "public void setValue(Object o){\n \tthis.value = o;\n }", "@Override\n public void setValue(Object val)\n {\n value = val;\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "String setValue();", "public void setNode_1(String node_1);", "@Override\n\tpublic void setNodeInfo(String path, Object obj) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\ttry {\n\t\t\tzookeeper.setData(path, SomeUtil.getByte(obj),\n\t\t\t\t\t-1);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"更新跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t}", "public void setValue(Object value) { this.value = value; }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\n\t}", "public void setValue(Object value);", "public abstract void setNodes();", "void setNilValue();", "void setValue(Object value);", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "public void setNodo(Long nodo);", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "public void setdat()\n {\n }", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}", "public void setNode_2(String node_2);", "Object setValue(Object value) throws NullPointerException;", "public void settInn(T element){\n Node temp = new Node(element);\n temp.neste = hode.neste;\n temp.neste.forrige = temp;\n temp.forrige = hode;\n hode.neste = temp;\n elementer++;\n\n\n }", "@RdfProperty(\"http://www.coadunation.net/schema/rdf/1.0/base#IdValue\")\n public abstract void setValue(String value);", "public void setValue(T v){\n \telement = v;\n }", "protected void setElement (XmlNode thisNode, Object obj, XmlDescriptor desc, UnmarshalContext context) throws Exception {\n String elName = thisNode.getName (); //getTagName();\n\n JField jf = (JField)desc.elementList.get(elName);\n if (jf == null)\n throw new FieldNotFoundException (\"ephman.abra.tools.nofield\", \n\t\t\t\t\t\t\t\t\t\t\t new Object[]{elName, desc.className});\n\n\t\tif (jf.isArray ()) return ; // will do seperately..\n Class thisClass = obj.getClass();\n\n Object value = null;\n Method m = null;\n if (jf.isCollection()) {\n m = getASetMethod (thisClass, \"addTo\" + jf.getGetSet(), jf.getObjectType());\n } else {\n m = getASetMethod (thisClass, \"set\" + jf.getGetSet(), jf.getObjectType());\n }\n\n if (jf instanceof JCompositeField) {\n XmlDescriptor fieldDesc = (XmlDescriptor)this.classList.get (jf.getObjectType());\n value = unmarshal (thisNode, context, fieldDesc);\n }\n else {\n\t\t\tvalue = getPrimitive (thisNode, jf, context);\n \n }\n\n m.invoke(obj, new Object[]{value});\n\t\t//\t\tif (jf.getObjectType ().equals (\"char\"))\n\t\t//System.out.println (\"was ok\");\n }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "void setValue(String childID, Object value) throws ConverterException, IllegalAccessException;", "public void setNode_4(String node_4);", "protected void setValue(T value) {\r\n this.value = value;\r\n }", "@Override\n public void set(E e) throws NullPointerException\n {\n if(canRemove = true)\n {\n if(forward = true)\n {\n Node theNode = getNth(idx - 1);\n theNode.data = e;\n }\n else\n {\n Node theNode = getNth(idx);\n theNode.data = e;\n }\n }\n else\n {\n throw new IllegalArgumentException();\n }\n }", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public void setValue(final Object value) { _value = value; }", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public abstract void setValue(T value);", "protected abstract void setValue(V value);", "public void setValue(T element) {\n\t\t\n\t}", "public void setNode_5(String node_5);", "void setValue(T value)\n\t\t{\n\t\t\tthis.value = value;\n\t\t}", "public void setNode(int _data ) {\r\n\t\t\tdata = _data;\r\n\t\t}", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "@Override\n public void setValueAt( Object aValue, Object node, int column )\n {\n }", "public void nodeValue(String id, int value)\n\t{\n\t\tgetNode(id).value = value;\n\t}", "void setDatty(Datty newDatty);", "void setValueOfNode(String path, String value)\n throws ProcessingException;", "public void setNama() {\n nama.postValue(\"Hello, Riyanto!\");\n }", "public void setValue(Object value) {\n this.value = value;\n }", "public void setPersistidoGraf(Node value) {\n persistidoGraf.set(value);\n }", "@Override\n public void set(T value) throws Exception {\n _curator.setData().forPath(_zkPath, toZkBytes(value));\n }", "void setElementValue(SetElementValue cmd);", "@Override\r\n\t\tpublic void set(E arg0) {\n\r\n\t\t}", "void setNode(int nodeId, double lat, double lon, double ele);", "public void set(DEPNode node, String label)\n\t{\n\t\tthis.node = node;\n\t\tthis.label = label;\n\t}", "public void set(String name, Object value) {\n }", "@Override\n public void setField(int id, int value) {\n \n }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setValue(int node, Type value) {\n\t\tvalues[node] = value;\n\t}", "@SuppressWarnings(\"unchecked\")\n public void setValue(Object value) {\n if (element != null) {\n element.setValue((V)value);\n }\n }", "public void setNodoDerecho(Nodo nodo){\n der = nodo;\n }", "public abstract void set(M newValue);", "void setValue(V value);", "public void setValueAt( Object nyVerdi, int rad, int kolonne )\r\n {\r\n inntekter[ rad][ kolonne] = nyVerdi;\r\n }", "public V setValue(V value);", "public void setValue(int n) {\n\t\t\tthis.value = n;\n\t}", "public void setValue(Entity value) {\r\n\t\t\tthis.value = value;\r\n\t\t}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "void setObjectValue(Object dataObject);", "public void setNode_3(String node_3);", "@Override\n public void setValue(Object val) {\n synchronized (this) {\n attachDataListener();\n }\n try {\n dataModel.setValue(val);\n } catch (DataInputException ex) {\n onInputError(val, ex);\n }\n }", "public void setValue(S s) { value = s; }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "void setValue(Object object, Object value);", "public void setValue(A value) {this.value = value; }", "abstract void setRoot(Node<T> n);", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void setValue(Object value)\r\n\t{\r\n\t\tm_value = value;\r\n\t}", "public void asignar_Nodo(Nodo e) {\n\t\tthis.elem = e;\n\t}", "public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public void setNode(String node) {\n this.node = node;\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public void setValue(E value)\n {\n }", "void setValue(T value);", "void setValue(T value);", "public void setData(D s){\n\t\tdata = s;\n\t}", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override\n\tpublic void setData() {\n\n\t}", "public void setp(Node n) {\n\t\tp = n;\n\t}", "@Override\r\n\t\tpublic void setNodeValue(String nodeValue) throws DOMException\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "void setNilID();", "public void setValue(T value) \n\t{\n\t\tthis.value = value;\n\t}", "public void setNumero(int numero) { this.numero = numero; }" ]
[ "0.6935777", "0.6629095", "0.657469", "0.65328217", "0.6490541", "0.6412215", "0.63949543", "0.638739", "0.6363146", "0.63440657", "0.63335407", "0.63185084", "0.6314103", "0.6310521", "0.6307594", "0.6307263", "0.6262282", "0.62579584", "0.6256788", "0.6201522", "0.61657387", "0.6161247", "0.6140168", "0.61091757", "0.61058074", "0.60946614", "0.6082816", "0.6081582", "0.60640013", "0.60425955", "0.6031256", "0.6010939", "0.6008858", "0.6007619", "0.5995209", "0.59941745", "0.5992332", "0.59915006", "0.5990621", "0.5989136", "0.59771395", "0.5974015", "0.5971123", "0.5969447", "0.59677345", "0.5956193", "0.59517574", "0.59428984", "0.5941836", "0.5941628", "0.5934926", "0.5932411", "0.59303296", "0.5926822", "0.5925447", "0.5923043", "0.5922937", "0.592062", "0.59191024", "0.5913563", "0.58951104", "0.5894295", "0.5893606", "0.58807933", "0.5877641", "0.586451", "0.5858835", "0.5854352", "0.5835824", "0.58302736", "0.582836", "0.5826668", "0.58226633", "0.5817775", "0.5812456", "0.5811426", "0.5809199", "0.5808952", "0.58077055", "0.58011585", "0.57953763", "0.5792361", "0.5791875", "0.5786161", "0.57818645", "0.5779617", "0.5772489", "0.5768593", "0.57587856", "0.57587856", "0.5753868", "0.5747878", "0.5746868", "0.57454985", "0.5744709", "0.57399154", "0.5739158", "0.57374763", "0.5736903", "0.57351667" ]
0.63050354
16
functie pentru stergerea parintelui
public void removeParent() { if (getParent() == null) return; if (p.getLeft() == this) p.setLeft(null); else if (p.getRight() == this) p.setRight(null); this.p = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "void pasarALista();", "void aprovarAnalise();", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public void disparar(){}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void remplirPrestaraireData() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public Final_parametre() {\r\n\t}", "public void parler() {\n\t System.out.println(this.formulerMonNom()); // appel d'une méthode de l'objet\n\t System.out.println(\"Je suis un animal et j'ai \" + this.nombreDePatte + \" pattes\");\n\t }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void trenneVerbindung();", "public void iniciarNovaPartida(Integer posicao);", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public void validerSaisie();", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public void prenderVehiculo();", "void berechneFlaeche() {\n\t}", "public void operacao();", "public void sendeSpielfeld();", "private void limpa() {\n\t\t// limpa Alfabeto\n\t\tsimbolos.limpar();\n\t\t// limpa conjunto de estados\n\t\testados.limpar();\n\t\t// limpa Funcao Programa\n\t\tfuncaoPrograma.limpar();\n\t\t// Limpa estados finais\n\t\testadosFinais.limpar();\n\t}", "public void asetaTeksti(){\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n Dati dati;\n\n try { // prova ad eseguire il codice\n\n this.setMessaggio(\"Analisi in corso\");\n this.setBreakAbilitato(true);\n\n /* recupera e registra i dati delle RMP da elaborare */\n dati = getDatiRMP();\n this.setDati(dati);\n\n /* regola il fondo scala dell'operazione */\n this.setMax(dati.getRowCount());\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\r\n public void parar(Conexion conexion){\n }", "private void esegui() {\n /* variabili e costanti locali di lavoro */\n OperazioneMonitorabile operazione;\n\n try { // prova ad eseguire il codice\n\n /**\n * Lancia l'operazione di analisi dei dati in un thread asincrono\n * al termine il thread aggiorna i dati del dialogo\n */\n operazione = new OpAnalisi(this.getProgressBar());\n operazione.avvia();\n\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "void prosegui(String messaggio);", "@Override\n\tpublic void muestraInfo() {\n\t\tSystem.out.println(\"Adivina un número par: Es un juego en el que el jugador\" +\n\t\t\t\t\" deberá acertar un número PAR comprendido entre el 0 y el 10 mediante un número limitado de intentos(vidas)\");\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "public void mostrarTareasEnPosicionImpar(){}", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "public void Ordenamiento() {\n\n\t}", "private void remplirUtiliseData() {\n\t}", "Funcionario(){\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "void courir();", "@Override\n\tpublic void parada(Participante p) {\n\t\t\n\t}", "public void finePartita() {\n\r\n }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tString pol1=\"1x^3+3x^2+7x^1+21x^0\";\r\n\t\tString pol2=\"1x^2+7x^0\";\r\n\t\tString adunare=\"+1x^3+4x^2+7x^1+28x^0\";\r\n\t\tString scadere=\"+1x^3+2x^2+7x^1+14x^0\";\r\n\t\tString inmultire=\"+1x^5+3x^4+14x^3+42x^2+49x^1+147x^0\";\r\n\t\tString restul=\"\";\r\n\t\tString catul=\"+1.0x^1+3.0x^0\";\r\n\t\tString derivare=\"+3x^2+6x^1+7x^0\";\r\n\t\tString integrare=\"+0.25x^4+1.0x^3+3.5x^2+21.0x^1\";\r\n\t\tPolinom p1=new Polinom();\r\n\t\tPolinom p2=new Polinom();\r\n\t\tPolinom p1copie=new Polinom();\r\n\t\ttry {\r\n\t\t\tp1=p1.crearePolinom(pol1, 3);\r\n\t\t\tp1copie=p1.crearePolinom(pol1, 3);\r\n\t\t\tp2=p2.crearePolinom(pol2, 2);\r\n\t\t} catch (IllegalInputException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\r\n\t\tPolinom p3=p1.adunarePolinom(p2, 4);\r\n\t\tString rezAdunare=p3.afisPolinomIntreg();\r\n\t\tPolinom p4=p1.scaderePolinom(p2, 4);\r\n\t\tString rezScadere=p4.afisPolinomIntreg();\r\n\t\tPolinom p5=p1.inmultirePolinom(p2, 6);\r\n\t\tString rezInmultire=p5.afisPolinomIntreg();\r\n\t\tString cat=p1.impartirePolinom(p2, 3, 2);\r\n\t\tString rest=p1copie.impartirePolinom(p2, 3, 2);\r\n\t\tPolinom p7=p1.derivarePolinom(3);\r\n\t\tString rezDerivare=p7.afisPolinomReal();\r\n\t\tPolinom p8=p1.integrarePolinom(4);\r\n\t\tString rezIntegrare=p8.afisPolinomReal();\r\n\t\t\r\n\t\tassert adunare!=rezAdunare : \"Nu se verifica adunarea!\";\r\n\t\tassert scadere!=rezScadere : \"Nu se verifica scaderea!\";\r\n\t\tassert inmultire!=rezInmultire : \"Nu se verifica inmultirea!\";\r\n\t\tassert derivare!=rezDerivare : \"Nu se verifica derivarea!\";\r\n\t\tassert integrare!=rezIntegrare : \"Nu se verifica integrarea!\";\r\n\t\tassert catul!=cat : \"Nu se verifica adunarea!\";\r\n\t\tassert restul!=rest : \"Nu se verifica adunarea!\";\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tvoid geraDados() {\n\n\t}", "public abstract String dohvatiKontakt();", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public static void main(String[] args) {\n persegi_panjang pp = new persegi_panjang();\r\n pp.lebar=30;\r\n pp.panjang=50;\r\n Segitiga s = new Segitiga();\r\n s.alas=20;\r\n s.tinggi=40;\r\n Persegi p = new Persegi();\r\n p.sisi=40;\r\n lingkaran l= new lingkaran();\r\n l.jari=20;\r\n \r\npp.luas();\r\npp.keliling();\r\np.luas();\r\np.keliling();\r\ns.luas();\r\ns.keliling();\r\nl.luas();\r\nl.keliling();\r\n}", "public void mostrarInformacion(){\n mostrarInformacionP();\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "@Override\n public void alRechazarOperacion() {\n }", "private void inizia() throws Exception {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n }", "public void service_psy (Personne p) throws FileNotFoundException\r\n\t{\r\n\t\r\n\t\t\r\n\t\t \t\tString [] info_psy=null ;\r\n\t\t \t\tString [] cle_valeur=null;\r\n\t\t \t\tboolean spec,adr;\r\n\t\t \t\tFileInputStream f=new FileInputStream(\"C://Users/Azaiez Hamed/Desktop/workspace/Projet de programmation/src/Medecin.txt\");\r\n\t\t \t\ttry {\r\n\t\t \t\t\tBufferedReader reader =new BufferedReader (new InputStreamReader(f,\"UTF-8\"));\r\n\t\t \t\t\tString line=reader.readLine();\r\n\t\t \t\t\twhile(line!=null){\r\n\t\t \t\t\t\tinfo_psy=line.split(\"\\t\\t\\t\");\r\n\t\t \t\t\t\tspec=false;adr=false;\r\n\t\t \t\t\t\tfor(int i=0;i<info_psy.length;i++)\r\n\t\t \t\t\t\t{\r\n\t\t \t\t\t\t\t cle_valeur=info_psy[i].split(\":\");\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"specialite\"))&& (cle_valeur[1].equals(\"psy\")))\r\n\t\t\t\t\t\t \t spec=true;\r\n\t\t\t\t\t\t if ((cle_valeur[0].equals(\"gouvernerat\"))&&(cle_valeur[1].equals(p.getGouvernerat())))\r\n\t\t \t\t\t\t\t \tadr=true;\r\n\t\t\t\t\t\t}\r\n\t\t \t\t\t\tif (spec && adr) {\r\n\t\t \t\t\t\t\t System.out.println(\"voilà toutes les informations du psy, veuillez lui contacter immédiatement **\");\r\n\t\t \t\t\t\t\t System.out.println(line);return;}\r\n\t\t \t\t\t\telse\r\n\t\t \t\t\t\t line=reader.readLine();\r\n\t\t \t\t\t\t }\r\n\t\t \t\t }\r\n\t\t \t\t \tcatch(IOException e){e.printStackTrace();}\r\n\t\t \t\t System.out.println(\"Pas de psy trouvé dans votre gouvernerat\");\r\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void pridejNovePivo ()\n\t{\n\t\n\t\tpivo = pivo + PRODUKCE;\n\t\t\n\t}", "private void mostrarEmenta (){\n }", "public void asignarVida();", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "@Override\n public void affiche(){\n System.out.println(\"Loup : \\n points de vie : \"+this.ptVie+\"\\n pourcentage d'attaque : \"+this.pourcentageAtt+\n \"\\n dégâts d'attaque : \"+this.degAtt+\"\\n pourcentage de parade :\"+this.pourcentagePar+\n \"\\n position : \"+this.pos.toString());\n\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public void aplicarDescuento();", "public void selecao () {}", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "private void poetries() {\n\n\t}", "private void permuta(String parziale,String lettere,int livello, List<String> risultato) {\r\n\t\tif(lettere.length()==0) { //caso terminale\r\n\t\t\t\r\n\t\t\t//la soluzione parziale è anche sol completa\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//if(parziale è una parola valida?){ -->bisogna dargli accesso a dizionario\r\n\t\t\trisultato.add(parziale);\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t//fai ricorsione\r\n\t\t\t//sottoproblema== una lettera(un singolo carattere) di 'lettere'\r\n\t\t\tfor(int pos=0;pos<lettere.length();pos++) {\r\n\t\t\t\tchar tentativo= lettere.charAt(pos);\r\n\t\t\t\t\r\n\t\t\t\tString nuovaParziale=parziale+tentativo;\r\n\t\t\t\tString nuovaLettere= lettere.substring(0,pos)+ lettere.substring(pos+1);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//if(nuovaParziale è un Prefisso valido di almeno una parola nel dizionario){\r\n\t\t\t\t\t//esempio aqz-->NO car-->SI\r\n\t\t\t\tpermuta(nuovaParziale, nuovaLettere, livello+1,risultato);\r\n\t\t\t\t\r\n\t\t\t\t//backtracking -->si può escludere introducendo nuove parziali senza toccare i parametri di input\r\n\t\t\t\t//rimettere a posto parziale\r\n\t\t\t\t//rimettere a posto lettere\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void recibir_estado_partida(){\n\n }", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "String[] chiediSecondaScommessa();", "void tampilKarakterA();", "public void leerAlimentos();", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public void datos_elegidos(){\n\n\n }", "private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "protected void elaboraPagina() {\n testoPagina = VUOTA;\n\n //header\n testoPagina += this.elaboraHead();\n\n //body\n testoPagina += this.elaboraBody();\n\n //footer\n //di fila nella stessa riga, senza ritorno a capo (se inizia con <include>)\n testoPagina += this.elaboraFooter();\n\n //--registra la pagina principale\n if (dimensioniValide()) {\n testoPagina = testoPagina.trim();\n\n if (pref.isBool(FlowCost.USA_DEBUG)) {\n testoPagina = titoloPagina + A_CAPO + testoPagina;\n titoloPagina = PAGINA_PROVA;\n }// end of if cycle\n\n //--nelle sottopagine non eseguo il controllo e le registro sempre (per adesso)\n if (checkPossoRegistrare(titoloPagina, testoPagina) || pref.isBool(FlowCost.USA_DEBUG)) {\n appContext.getBean(AQueryWrite.class, titoloPagina, testoPagina, summary);\n logger.info(\"Registrata la pagina: \" + titoloPagina);\n } else {\n logger.info(\"Non modificata la pagina: \" + titoloPagina);\n }// end of if/else cycle\n\n //--registra eventuali sottopagine\n if (usaBodySottopagine) {\n uploadSottoPagine();\n }// end of if cycle\n }// end of if cycle\n\n }", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public void limpiarMemoria();", "@Override\n public void memoria() {\n \n }", "public void inicializar();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void modifierpointV(String nomAgence,Scanner sc) {\n\t\t\tint i=this.existPointV(nomAgence);\n\t\t\tnotExist:{\n\t\t\t\tif (i==-1) {System.out.println(\"cette agence n'exsite pas ! \\n\\n\"); break notExist;}\n\t\t\t\t\n\t\t\t\tint rep;\n\t\t\t\tString numTele;\n\t\t\t\t\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"1-Modifier l'adresse de l'agence \");\n\t\t\t\tSystem.out.println(\"2-Modifier le numéro de téléphone de l'agence \");\n\t\t\t\tSystem.out.println(\"3-Changer le type de l'agence \");\n\t\t\t\trep=sc.nextInt();\n\t\t\t\t\n\t\t\t\tEnumWilaya w;\n\t\t\t\tswitch(rep) \n\t\t\t\t{\n\t\t\t\tcase 1:\n\t\t\t\t\tSystem.out.println(\"Donner la nouvelle adresse :\");\n\t\t\t\t\tSystem.out.print(\"Numéro de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNumRue(sc.nextInt());\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Nom de rue : \");\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setNomRue(sc.nextLine());\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tSystem.out.print(\"Numéro de wilaya : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tw=Adresse.saisieWilaya(rep);\n\t\t\t\t\tif (w!=null) break;\n\t\t\t\t\tSystem.out.print(\"numéro wilaya incorrect ! reéssayer : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).getAdresse().setWilaya(w);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 2:\n\t\t\t\t\tSystem.out.print(\"Donner le nouveau numéro de téléphone : \");\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tsc.nextLine();\n\t\t\t\t\tnumTele = sc.nextLine();\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t\tif (numTele.charAt(0)=='0' & numTele.length()==10) break;\n\t\t\t\t\tSystem.out.print(\"numéro inccorect ! veillez resaisir : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\tthis.pointV.get(i).setNumTele(numTele);\n\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase 3:\n\t\t\t\t\tSystem.out.println(\"Selectioner le type de l'agence : \");\n\t\t\t\t\t\n\t\t\t\t\tdo\n\t\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"1-Principale\");\n\t\t\t\t\tSystem.out.println(\"2-Secondaire\");\n\t\t\t\t\tSystem.out.print(\"Votre choix : \");\n\t\t\t\t\trep=sc.nextInt();\n\t\t\t\t\tif (rep==1 || rep==2) break;\n\t\t\t\t\tSystem.out.println(\"choix invalide ! reéssayez : \");\n\t\t\t\t\t}while(true);\n\t\t\t\t\t\n\t\t\t\t\tthis.pointV.get(i).setType(rep);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tdefault :\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "public void prestamoLibro(libro lib1)\n {\n System.out.println(\"Bienvenido al sistema de prestamos\");\n System.out.println(\"El libro que desea prestar es: \");\n System.out.println(lib1);\n System.out.println(\"Realizaremos la transaccion!\");\n lib1.setDispoLibro(false);\n System.out.println(\"Transaccion realizada!! \");\n }", "@Override\r\n public void salir() {\n }", "public void start() {\n boolean continua = true;\n Dati datiRMP;\n int codPiatto;\n int codRiga;\n int quantiCoperti;\n int quanteComande;\n String descPiatto;\n String catPiatto;\n Modulo modRMP = RMPModulo.get();\n Modulo modPiatto = PiattoModulo.get();\n Modulo modCategoria = CategoriaModulo.get();\n ModuloRisultati modRisultati = getModuloRisultati();\n Campo chiaveRMP;\n int codRMP;\n int codMenu;\n int[] codici;\n double qtaOff;\n double qtaCom;\n double gradimento = 0.0;\n PanCoperti panCoperti;\n\n try { // prova ad eseguire il codice\n\n /* azzera il numero di coperti serviti */\n panCoperti = getPanCoperti();\n panCoperti.setNumCopertiPranzo(0);\n panCoperti.setNumCopertiCena(0);\n\n /* svuota i dati del modulo risultati */\n getModuloRisultati().query().eliminaRecords();\n\n datiRMP = this.getDati();\n chiaveRMP = modRMP.getCampoChiave();\n\n /* spazzola le RMP trovate */\n for (int k = 0; k < datiRMP.getRowCount(); k++) {\n\n this.quanti++;\n\n codRMP = datiRMP.getIntAt(k, chiaveRMP);\n codPiatto = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_PIATTO));\n descPiatto = datiRMP.getStringAt(k,\n modPiatto.getCampo(Piatto.CAMPO_NOME_ITALIANO));\n catPiatto = datiRMP.getStringAt(k,\n modCategoria.getCampo(Categoria.CAMPO_SIGLA));\n\n codRiga = addPiatto(codPiatto, descPiatto, catPiatto);\n\n if (codRiga <= 0) {\n continua = false;\n break;\n }// fine del blocco if\n\n /* incrementa di 1 il numero di volte in cui il piatto è stato proposto\n * per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteVolte, 1);\n\n /* determina il numero dei coperti presenti nel menu al\n * quale questa RMP appartiene */\n codMenu = datiRMP.getIntAt(k, modRMP.getCampo(RMP.CAMPO_MENU));\n quantiCoperti = getQuantiCoperti(codMenu);\n\n /* incrementa il numero di coperti potenziali per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quantiCoperti, quantiCoperti);\n\n /* determina il numero di comande effettuate\n * per questa RMP */\n quanteComande = getQuanteComande(codRMP);\n\n /* incrementa il numero di comande effettuate per questa riga risultati */\n incrementaCampo(codRiga, Campi.Ris.quanteComande, quanteComande);\n\n /* interruzione nella superclasse */\n if (super.isInterrompi()) {\n continua = false;\n break;\n }// fine del blocco if\n\n } // fine del ciclo for\n\n /* spazzola le righe dei risultati per regolare il gradimento */\n if (continua) {\n codici = modRisultati.query().valoriChiave();\n for (int k = 0; k < codici.length; k++) {\n codRiga = codici[k];\n gradimento = 0.0;\n qtaOff = modRisultati.query()\n .valoreDouble(Campi.Ris.quantiCoperti.getCampo(), codRiga);\n qtaCom = modRisultati.query()\n .valoreDouble(Campi.Ris.quanteComande.getCampo(), codRiga);\n if (qtaOff != 0) {\n gradimento = qtaCom / qtaOff;\n gradimento = Lib.Mat.arrotonda(gradimento, 4);\n }// fine del blocco if\n modRisultati.query().registraRecordValore(codRiga,\n Campi.Ris.gradimento.getCampo(),\n gradimento);\n } // fine del ciclo for\n }// fine del blocco if\n\n datiRMP.close();\n\n getNavigatore().aggiornaLista();\n\n /* aggiorna il numero di coperti serviti */\n Filtro filtro;\n Number numero;\n Modulo moduloRMT = RMTModulo.get();\n Filtro filtroMenu = getFiltroMenu();\n Filtro filtroPranzo = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_PRANZO);\n Filtro filtroCena = FiltroFactory.crea(MenuModulo.get().getCampo(Menu.Cam.pasto), Ristorante.COD_DB_CENA);\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroPranzo);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiPranzo(Libreria.getInt(numero));\n filtro = new Filtro();\n filtro.add(filtroMenu);\n filtro.add(filtroCena);\n numero = moduloRMT.query().somma(RMT.Cam.coperti.get(), filtro);\n panCoperti.setNumCopertiCena(Libreria.getInt(numero));\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n }", "public Polipara() {\n // Iniciar el programa cargando el archivo de propiedades si existe.\n\n if (this.validarSerializacion()) {\n int response = JOptionPane.showConfirmDialog(null, \"Hay una versión anterior de una copa,\\n\"\n + \"¿Desea cargar esa versión? (Al seleccionar \\\"No\\\", se eliminará el avance anterior y se cargará una copa nueva.)\");\n if (response == 0) {\n this.cargarSerializacion();\n } else {\n this.iniciarCopa();\n }\n } else {\n this.iniciarCopa();\n }\n }", "public static void main(String[] args) {\n\n\t\t\n\t\tProces p1= new Proces(20, 0, 10);\n\t\tProces p2= new Proces(10, 1, 10);\n\t\tProces p3= new Proces(30, 6, 10);\n\t\tProces p4= new Proces(9, 7, 10);\n\t\tArrayList<Proces> procesy1= new ArrayList<Proces>();\n\t\tprocesy1.add(p1);\n\t\tprocesy1.add(p2);\n\t\tprocesy1.add(p3);\n\t\tprocesy1.add(p4);\n\t\tProcesor proc1= new Procesor(1, procesy1);\n\t\n\t\t\n\t\t\n\t\tArrayList<Proces> procesy2= new ArrayList<Proces>();\n\t\tprocesy2.add(new Proces(40, 2, 14));\n\t\tprocesy2.add(new Proces(20, 8, 9));\n\t\tprocesy2.add(new Proces(30, 2, 3));\n\t\tprocesy2.add(new Proces(10, 4, 5));\n\t\tprocesy2.add(new Proces(4, 7, 14));\n\t\tProcesor proc2= new Procesor(2, procesy2);\n\t\n\t\t\n\t\t\n\t\tArrayList<Procesor> procesory= new ArrayList<Procesor>();\n\t\tprocesory.add(proc1);\n\t\tprocesory.add(proc2);\n\t\t\n\t\tint ileProcesorow=2;\n\t\tint progR=20;\n\t\tint progP=20;\n\t\tint iloscZapytanZ=10;\n\t\tint okresPomiaruObciazen=1;\n\t\t\n\t\tAlgorithms al= new Algorithms(procesory, progP, iloscZapytanZ, progR);\n\t\tal.wyswietlProcesory();\n\t\tal.symulacjaPierwsza(okresPomiaruObciazen);\n\t\tal.symulacjaDruga(okresPomiaruObciazen);\n\t\tal.symulacjaTrzecia(okresPomiaruObciazen);\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }" ]
[ "0.6958765", "0.65817446", "0.627151", "0.62390095", "0.6209073", "0.6190817", "0.61877894", "0.61608", "0.6059982", "0.6056565", "0.6040463", "0.60309106", "0.60192525", "0.60080147", "0.60074157", "0.59968096", "0.59825015", "0.5980813", "0.5977505", "0.59643304", "0.5961684", "0.5948911", "0.59425867", "0.59354085", "0.5928307", "0.5923274", "0.5923068", "0.59176344", "0.59169257", "0.59142804", "0.59002805", "0.5890896", "0.5875519", "0.5874803", "0.58687305", "0.5866057", "0.5862009", "0.58594936", "0.58510286", "0.58378035", "0.5833267", "0.58292776", "0.5827442", "0.58193547", "0.58168507", "0.58154017", "0.58136433", "0.58082145", "0.579688", "0.5792127", "0.5791631", "0.5785644", "0.57847315", "0.5780548", "0.5780171", "0.5773692", "0.57693815", "0.576485", "0.57591754", "0.57471937", "0.5738194", "0.5735772", "0.57276213", "0.57256323", "0.57240295", "0.5717779", "0.571753", "0.57152635", "0.5715058", "0.5714785", "0.57029796", "0.5688443", "0.56740546", "0.56693", "0.56659347", "0.56655777", "0.56653184", "0.56636006", "0.56582147", "0.5654394", "0.56510735", "0.56495154", "0.5647878", "0.5644745", "0.5642699", "0.5640317", "0.56398886", "0.5630599", "0.5626423", "0.56241965", "0.5622978", "0.56210744", "0.56141156", "0.5613592", "0.5611391", "0.56103724", "0.5609055", "0.5606944", "0.56010795", "0.5595354", "0.5592806" ]
0.0
-1
setter pentru parintele stang
public void setLeft(Node<T> val) { if (getLeft() != null) getLeft().setParent(null); if (val != null) { val.removeParent(); val.setParent(this); } this.left = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "public void setdat()\n {\n }", "String setValue();", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "protected abstract void setSpl();", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "@Override\n\tpublic void setValue(String arg0, String arg1) {\n\t\t\n\t}", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void setEstado(biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido param){\n \n this.localEstado=param;\n \n\n }", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public void setLocacion(String locacion);", "void setTitolo(String titolo);", "public void setLongitud(String longitud);", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "public abstract void setNombre(java.lang.String newNombre);", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "@Override\r\n public void setParameter(String parameters) {\r\n // dummy\r\n }", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "public void setParam(String chave, Object valor) {\n //se contem a chave, entao eh removido e adicionado novamente\n if (paramSis.containsKey(chave)) {\n paramSis.remove(chave);\n paramSis.put(chave, valor);\n } else {\n //senao o valor eh adicionado\n paramSis.put(chave, valor);\n }\n }", "void setValue(String s) throws YangException;", "public void set(boolean bol);", "public void setBunga(int tipeBunga){\n }", "public abstract void setAcma_valor(java.lang.String newAcma_valor);", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setProposition(String string);", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void setU(String f){\n u = f;\n}", "public void setValues(RutaParams params){\n this.costo = params.costo;\n this.tiempoVuelo = params.tiempoVuelo;\n this.piloto =encriptar(params.piloto);\n }", "public Setparam() {\r\n super();\r\n }", "public abstract void setLibelle(String unLibelle);", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "private void setP1( Point p1 ){\n this.p1=p1;\n }", "public void setAnio(int p) { this.anio = p; }", "public void setcurrentPara(int p){\r\n currentPara= p;\r\n \r\n }", "public void setS(String s);", "public void setValue(String value) {\n\t this.valueS = value;\n\t }", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public void setValue2 (String Value2);", "public abstract void setCod_localidad(java.lang.String newCod_localidad);", "public void setParam(String str) {\n\t\tSystem.out.println(\" --IndexDao 传送值 = \"+str);\n\t}", "public void set(String value){\n switch (field){\n case 0:\n nomComplet = value;\n break;\n case 1:\n rv1 = value;\n break;\n case 2:\n dateDispo = LocalDate.parse(value,formatter);\n break;\n case 3:\n competencePrincipale = value;\n break;\n case 4:\n exp = Double.parseDouble(value);\n break;\n case 5:\n trancheExp = value;\n break;\n case 6:\n ecole = value;\n break;\n case 7:\n classeEcole = value;\n break;\n case 8:\n fonctions = value;\n break;\n case 9:\n dateRV1 = LocalDate.parse(value,formatter);\n case 10:\n rv2 = value;\n break;\n case 11:\n metiers = value;\n break;\n case 12:\n originePiste = value;\n break;\n }\n field++;\n }", "void setParameters() {\n\t\t\n\t}", "void setRecensione(String recensione);", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void set(String s);", "public void set (String text) throws ParseException {\n\t\tParsing t = new Parsing(text);\n\t\tboolean p;\n\t\tthis.set();\t\t\t\t// Reset\n\t\tp = this.parsing(t);\n\t\tt.gobbleSpaces();\n\t\t/* Accept NULL */\n\t\tif (DEBUG>0) System.out.println(\"....Unit.set(\"+text+\")\" + p \n\t\t\t\t+ \" => \" + this.toString());\n\t\tif (t.pos < t.length) throw new ParseException\n\t\t(\"****Unit: set '\" + text + \"'+\" + t.pos, t.pos);\n\t}", "public void setValue(S s) { value = s; }", "public abstract void setFecha_termino(java.lang.String newFecha_termino);", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setParam0(java.lang.String param){\n \n if (param != null){\n //update the setting tracker\n localParam0Tracker = true;\n } else {\n localParam0Tracker = true;\n \n }\n \n this.localParam0=param;\n \n\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setValue(int param1Int) {\n/* 294 */ this.s.setValue(-param1Int);\n/* */ }", "private void setData() {\n\n }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "@Test\n public void testSetTipoFinal() {\n System.out.println(\"setTipoFinal\");\n String tipoFinal = \"\";\n Reserva instance = new Reserva();\n instance.setTipoFinal(tipoFinal);\n \n }", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setKelas(String sekolah){\n\t\ttempat = sekolah;\n\t}", "public void setParametr(double p) {\n parametr = p; // додано 26.12.2011\n timeServ = parametr; // 20.11.2012\n\n }", "protected abstract Set method_1559();", "public void setNom(String p_onom);", "public void setString(String parName, String parVal) throws HibException;", "void setPosNr(String posNr);", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "protected void set(int start, int end) {\n \t\t\tfStart= start;\n \t\t\tfEnd= end;\n \t\t\tfText= null;\n \t\t\tfPreservedText= null;\n \t\t}", "public void setValor(java.lang.String valor);", "private void setupSpalteSez() {\r\n\t\t// legt fest, welches Attribut von Arbeitspaket in dieser Spalte angezeigt wird\r\n\t\tspalteSez.setCellValueFactory(new PropertyValueFactory<>(\"sez\"));\r\n\r\n\t\t// lässt die Zelle mit Hilfe der Klasse EditCell bei Tastatureingabe bearbeitbar\r\n\t\t// machen\r\n\t\tspalteSez.setCellFactory(\r\n\t\t\t\tEditCell.<ArbeitspaketTableData, Integer>forTableColumn(new MyIntegerStringConverter()));\r\n\r\n\t\t// überschreibt den alten Attributwert mit der User-Eingabe\r\n\t\tspalteSez.setOnEditCommit(event -> {\r\n\t\t\tfinal Integer value = event.getNewValue() != null ? event.getNewValue() : event.getOldValue();\r\n\t\t\tevent.getTableView().getItems().get(event.getTablePosition().getRow()).setSez(value);\r\n\t\t\ttabelle.refresh();\r\n\t\t});\r\n\t}", "public void setOldProperty_description(java.lang.String param){\n localOldProperty_descriptionTracker = true;\n \n this.localOldProperty_description=param;\n \n\n }", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "public void setRua(String rua) {this.rua = rua;}", "void setValue(String value);", "void setValue(String value);", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public void setLocalisation(final Room pLocalisation){this.aLocalisation = pLocalisation;}", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "private SetProperty(Builder builder) {\n super(builder);\n }", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "void setParameter(String name, String value);", "@Override\n\tprotected void setValue(String name, TipiValue tv) {\n\t}", "public void setParentezco(Parentezco parentezco)\r\n/* 158: */ {\r\n/* 159:290 */ this.parentezco = parentezco;\r\n/* 160: */ }", "private void assignment() {\n\n\t\t\t}", "public void setMoTa(String moTa);", "public void setActivo(boolean activo)\r\n/* 115: */ {\r\n/* 116:142 */ this.activo = activo;\r\n/* 117: */ }" ]
[ "0.6997818", "0.67378175", "0.65746444", "0.653207", "0.6522051", "0.64487535", "0.6441313", "0.64356065", "0.6433336", "0.63750505", "0.6347217", "0.6307605", "0.6286292", "0.6283221", "0.6276662", "0.6276135", "0.6255419", "0.62257314", "0.6208348", "0.6198121", "0.6171858", "0.61690146", "0.615814", "0.6134809", "0.6133482", "0.6085715", "0.60790014", "0.6068691", "0.60554", "0.6052418", "0.60433733", "0.6031083", "0.6022812", "0.60211617", "0.60211253", "0.6007148", "0.5997252", "0.5987405", "0.59743714", "0.5969911", "0.5969371", "0.5967006", "0.5965655", "0.5962671", "0.5959535", "0.5952123", "0.59505445", "0.5950336", "0.5916987", "0.5916171", "0.59090626", "0.5908769", "0.59020716", "0.58988637", "0.5888087", "0.5878384", "0.5864227", "0.5857845", "0.58459824", "0.5845394", "0.5842295", "0.5841668", "0.5829619", "0.58231777", "0.58231777", "0.58231777", "0.58231777", "0.5820592", "0.5820273", "0.5817333", "0.5816699", "0.5815096", "0.5811496", "0.5811496", "0.5809875", "0.5802248", "0.58021384", "0.58009315", "0.5796421", "0.57903385", "0.578602", "0.5784877", "0.5771706", "0.57653224", "0.5762156", "0.5760443", "0.57601064", "0.57574266", "0.57534564", "0.57534564", "0.57495624", "0.5748569", "0.57442874", "0.57415825", "0.57402414", "0.5738429", "0.57364357", "0.5730351", "0.5726787", "0.57251495", "0.5722979" ]
0.0
-1
setter pentru parintele drept
public void setRight(Node<T> val) { if (getRight() != null) { getRight().setParent(null); } if (val != null) { val.removeParent(); val.setParent(this); } this.right = val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setdat()\n {\n }", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public static void setPedido(Pedido pPedido){\n\t\tmiPedido = pPedido;\n\t}", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "public void setObservacion(java.lang.String param){\n \n this.localObservacion=param;\n \n\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "private void setData() {\n\n }", "void setVida(int vida)\n\t{\n\t\t// variable declarada anteriormente igual a la declarada en el set\n\t\tthis.vida = vida;\n\t}", "public void setMontoPedidoRechazado(double param){\n \n this.localMontoPedidoRechazado=param;\n \n\n }", "public void setMontoDescuento(double param){\n \n this.localMontoDescuento=param;\n \n\n }", "public void setFechaDesde(Date fechaDesde)\r\n/* 169: */ {\r\n/* 170:293 */ this.fechaDesde = fechaDesde;\r\n/* 171: */ }", "public void setPercepcion(double param){\n \n this.localPercepcion=param;\n \n\n }", "public void setEmpleado(Empleado empleado)\r\n/* 188: */ {\r\n/* 189:347 */ this.empleado = empleado;\r\n/* 190: */ }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public void setParametr(double p) {\n parametr = p; // додано 26.12.2011\n timeServ = parametr; // 20.11.2012\n\n }", "public void setMontoFacturadoSinDescuento(double param){\n \n this.localMontoFacturadoSinDescuento=param;\n \n\n }", "@Test\n public void testSetTipoSangre() {\n System.out.println(\"setTipoSangre\");\n String tipoSangre = \"\";\n Paciente instance = new Paciente();\n instance.setTipoSangre(tipoSangre);\n \n }", "@Test\r\n public void testSetNombreDepto() {\r\n System.out.println(\"setNombreDepto\");\r\n String nombreDepto = \"\";\r\n Departamento instance = new Departamento();\r\n instance.setNombreDepto(nombreDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "@Override\n protected void elaboraParametri() {\n super.elaboraParametri();\n titoloPagina = TITOLO_PAGINA;\n }", "public void setEstado(biz.belcorp.www.canonico.ffvv.vender.TEstadoPedido param){\n \n this.localEstado=param;\n \n\n }", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "@Test\r\n public void testSetIdDepto() {\r\n System.out.println(\"setIdDepto\");\r\n Integer idDepto = null;\r\n Departamento instance = new Departamento();\r\n instance.setIdDepto(idDepto);\r\n // TODO review the generated test code and remove the default call to fail.\r\n }", "private void setP1( Point p1 ){\n this.p1=p1;\n }", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "public void setCodigo(java.lang.String param){\n \n this.localCodigo=param;\n \n\n }", "public Setparam() {\r\n super();\r\n }", "@Override\n\tpublic void setData() {\n\n\t}", "@Test\n public void testSetIdPaciente() {\n System.out.println(\"setIdPaciente\");\n Integer idPaciente = null;\n Paciente instance = new Paciente();\n instance.setIdPaciente(idPaciente);\n \n }", "public void setAnio(int p) { this.anio = p; }", "public void setValorCalculo(ValoresCalculo valorCalculo)\r\n/* 93: */ {\r\n/* 94:111 */ this.valorCalculo = valorCalculo;\r\n/* 95: */ }", "public void setEstablecimiento(String establecimiento)\r\n/* 119: */ {\r\n/* 120:198 */ this.establecimiento = establecimiento;\r\n/* 121: */ }", "public void setPapeles(int avenida, int calle, int cant);", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "public void setBloqueado(java.lang.String param){\n \n this.localBloqueado=param;\n \n\n }", "public void setData(D s){\n\t\tdata = s;\n\t}", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "@Test\n public void testSetPersonaPaciente() {\n System.out.println(\"setPersonaPaciente\");\n Persona personaPaciente = null;\n Paciente instance = new Paciente();\n instance.setPersonaPaciente(personaPaciente);\n\n }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public void setNombre(String nombre) {this.nombre = nombre;}", "private void setOtherParam(Settings set) {\n URL_SQL_RU = set.getValue(\"app.urlSqlRu\");\n NAME_DATA_BASE = set.getValue(\"app.nameDataBase\");\n DAT_NAME = set.getValue(\"app.datName\");\n VACANCY = set.getValue(\"app.vacancy\");\n TABLE_NAME = set.getValue(\"app.tableName\");\n ZERO = Integer.parseInt(set.getValue(\"app.zero\"));\n SKIP_ROW = Integer.parseInt(set.getValue(\"app.skipRow\"));\n CLASS = set.getValue(\"app.class\");\n POSTS_LIST_TOPIC = set.getValue(\"app.postsListTopic\");\n LAST_YEAR = set.getValue(\"app.lastYear\");\n }", "public void setLongitud(String longitud);", "public void setcurrentPara(int p){\r\n currentPara= p;\r\n \r\n }", "private void assignment() {\n\n\t\t\t}", "protected abstract void setPpl();", "@Override\n\t\tpublic V setValue(V p1){\n\t\t\treturn p1;\n\t\t}", "public abstract void setCntPrepaid(int cntPrepaid);", "public void setPedidoDetalle(biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] param){\n \n validatePedidoDetalle(param);\n\n \n this.localPedidoDetalle=param;\n }", "@Test\n public void testSetLugarNac() {\n System.out.println(\"setLugarNac\");\n String lugarNac = \"\";\n Paciente instance = new Paciente();\n instance.setLugarNac(lugarNac);\n \n }", "String setValue();", "public abstract void setFecha_inicio(java.lang.String newFecha_inicio);", "void setDatty(Datty newDatty);", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "protected abstract void setSpl();", "public void setEdificio (String pEdificio)\r\n {\r\n this.edificio = pEdificio;\r\n }", "public void setMontoSolicitado(double param){\n \n this.localMontoSolicitado=param;\n \n\n }", "public void setFechaHasta(Date fechaHasta)\r\n/* 179: */ {\r\n/* 180:312 */ this.fechaHasta = fechaHasta;\r\n/* 181: */ }", "public void setEdad(Integer edad)\r\n/* 203: */ {\r\n/* 204:371 */ this.edad = edad;\r\n/* 205: */ }", "public abstract void setCntPoa(int cntPoa);", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public void setPuntoEmision(String puntoEmision)\r\n/* 129: */ {\r\n/* 130:217 */ this.puntoEmision = puntoEmision;\r\n/* 131: */ }", "@Override\n public void set(Voluntario a) {\n if (a==null) a=new Voluntario();\n \n txtNome.setText(a.getNome());\n DateFormat df = new SimpleDateFormat(\"dd/mm/yyyy\");\n txtDataN.setText(df.format(a.getDataNascimento().getTime()));\n txtNacionalidade.setText(a.getNacionalidadeIndiv());\n txtProfissao.setText(a.getProfissao());\n txtMorada.setText(a.getMorada());\n txtCodPostal.setText(a.getCodigoPostal());\n txtLocalidade.setText(a.getLocalidade());\n txtTelefone.setText(a.getTelefone());\n txtTelemovel.setText(a.getTelemovel());\n txtEmail.setText(a.getEmail());\n txtNif.setText(a.getNif()+\"\");\n txtHabilit.setText(a.getHabilitacoes());\n txtConhecimentosL.setText(a.getConhecimentosLing());\n txtFormComp.setText(a.getFormacaoComp());\n txtExpV.setText(a.getExperienciaVolunt());\n txtConhecimentosC.setText(a.getConhecimentosConstr());\n txtDispon.setText(a.getDisponibilidade());\n txtComoConheceu.setText(a.getComoConheceu());\n checkReceberInfo.setSelected(a.getReceberInfo());\n checkIsParceiro.setSelected(a.isParceiro()); \n \n voluntario = a;\n }", "public void damePersonaje(String personaje){\n this.personaje=personaje;\n\n\n\n }", "public void setMotivoRechazo(biz.belcorp.www.canonico.ffvv.vender.TMotivoRechazo param){\n \n this.localMotivoRechazo=param;\n \n\n }", "@Test\n public void testSetTipoFinal() {\n System.out.println(\"setTipoFinal\");\n String tipoFinal = \"\";\n Reserva instance = new Reserva();\n instance.setTipoFinal(tipoFinal);\n \n }", "@Test\n public void testSetNombre() {\n System.out.println(\"setNombre\");\n String nombre = \"T-3\";\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setNombre(nombre);\n \n }", "public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }", "@Override\r\n\tprotected void setData(Object data) {\n\t\t\r\n\t}", "public abstract void setearEstadosPropuests(String estado, String propuesta, String fechaCambio) throws ParseException;", "public abstract void setNombre(java.lang.String newNombre);", "public void setCodigo(int pCodigo){\n this.codigo = pCodigo;\n }", "@Test\n public void testSetId_edificio() {\n System.out.println(\"setId_edificio\");\n int id_edificio = 1;\n DboEdificio instance = new DboEdificio(1, \"T-3\");\n instance.setId_edificio(id_edificio);\n \n }", "public void setBunga(int tipeBunga){\n }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public void setDPTitel(String value){\n\t\tthis.m_bIsDirty = (this.m_bIsDirty || (!value.equals(this.m_sDPTitel)));\n\t\tthis.m_sDPTitel=value;\n\t}", "public void setMontoEstimado(double param){\n \n this.localMontoEstimado=param;\n \n\n }", "void setDataIntoSuppBusObj() {\r\n supplierBusObj.setValue(txtSuppId.getText(),txtSuppName.getText(), txtAbbreName.getText(),\r\n txtContactName.getText(),txtContactPhone.getText());\r\n }", "public void setParam(String str) {\n\t\tSystem.out.println(\" --IndexDao 传送值 = \"+str);\n\t}", "public void setDireccion(String direccion);", "public abstract void setFecha_termino(java.lang.String newFecha_termino);", "public void setDirezione(boolean direzione) {\n\r\n }", "@Override\n public void setX(int x) {\n this.x=x;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void setId_joueur(int id_joueur)\r\n/* */ {\r\n/* 50 */ this.id_joueur = id_joueur;\r\n/* */ }", "void setParameters() {\n\t\t\n\t}", "@Test\n public void testSetFechaPago() {\n System.out.println(\"setFechaPago\");\n Date fechaPago = null;\n DetalleAhorro instance = new DetalleAhorro();\n instance.setFechaPago(fechaPago);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }", "private void setP2( Point p2 ){\n this.p2=p2;\n }", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setMontoFacturado(double param){\n \n this.localMontoFacturado=param;\n \n\n }", "public void setPredeterminado(boolean predeterminado)\r\n/* 159: */ {\r\n/* 160:274 */ this.predeterminado = predeterminado;\r\n/* 161: */ }", "public void setIdperfil(int pIdperfil){\n this.idperfil = pIdperfil;\n }", "@Test\n public void testSetEtnia() {\n System.out.println(\"setEtnia\");\n String etnia = \"\";\n Paciente instance = new Paciente();\n instance.setEtnia(etnia);\n\n }", "public void setX(int x) { this.x=x; }", "void setRecensione(String recensione);", "protected abstract Set method_1559();" ]
[ "0.713135", "0.705396", "0.6874852", "0.6834596", "0.6688703", "0.65487975", "0.6528073", "0.6493044", "0.6448482", "0.64343834", "0.64091957", "0.6374953", "0.6370456", "0.6370452", "0.63619703", "0.63475764", "0.6344555", "0.6337974", "0.6335462", "0.631353", "0.62833804", "0.62752056", "0.6271071", "0.62696016", "0.62687516", "0.62631214", "0.6243744", "0.6242391", "0.6235631", "0.62349033", "0.621887", "0.62142164", "0.6209268", "0.62056744", "0.62038904", "0.61851406", "0.6182922", "0.6171291", "0.61693275", "0.61681795", "0.6166885", "0.6160511", "0.61338675", "0.6131612", "0.6106088", "0.6101841", "0.60985076", "0.6082499", "0.6076688", "0.60661435", "0.60659695", "0.606209", "0.60589904", "0.6052726", "0.6045106", "0.60413665", "0.6027737", "0.6022386", "0.6017942", "0.60112226", "0.6008649", "0.6007581", "0.6007549", "0.6003599", "0.5981422", "0.598042", "0.59802103", "0.59756047", "0.59740084", "0.5974002", "0.59684557", "0.5966766", "0.5961728", "0.5957177", "0.59507054", "0.59492624", "0.59466267", "0.59416944", "0.59369606", "0.5934129", "0.5918555", "0.59153", "0.5912653", "0.59115815", "0.59103316", "0.5907695", "0.59053165", "0.59051365", "0.59036887", "0.59003353", "0.58979183", "0.5882912", "0.58800423", "0.58795184", "0.5873802", "0.587251", "0.587103", "0.58704025", "0.5867197", "0.5864744", "0.58622813" ]
0.0
-1
getter pentru nodul stang
public Node<T> getLeft() { return left; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getNume();", "java.lang.String getNume();", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "public String getNom();", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String getnom ()\n {\n return nom_et;\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public abstract String get();", "public Integer getSt()\n {\n return st; \n }", "@Override\n String get();", "public abstract java.lang.String getCod_dpto();", "public abstract java.lang.String getCod_tecnico();", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "public abstract String getBeschreibung();", "@Override\n public String getModu() {\n return null;\n }", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public String get();", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "@Override\n\tpublic T somme() {\n\t\treturn val;\n\t}", "public abstract java.lang.String getCod_localidad();", "public abstract java.lang.String getNovedad();", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "@Override\r\n\tpublic String getIzena() {\n\t\treturn super.getIzena();\r\n\t}", "String get();", "String get();", "public String getNivel()\r\n/* 249: */ {\r\n/* 250:278 */ return this.nivel;\r\n/* 251: */ }", "public abstract String getNomClasse();", "String getVorlesungKennung();", "Nodo_B getPrimero(){\n return this.primero;\n }", "public String getNodeValue ();", "@Override\n public String getNom() {\n return nom;\n }", "@Override\n\tpublic Long getSn() {\n\t\treturn null;\n\t}", "public int getOperacion()\r\n/* 22: */ {\r\n/* 23:45 */ return this.operacion;\r\n/* 24: */ }", "public abstract String getEndl();", "@Override\r\n\tpublic String getOstatu_mota() {\n\t\treturn super.getOstatu_mota();\r\n\t}", "public BIG getS(){return S;}", "String getTitolo();", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}", "public String getNom () {\n return nom;\n }", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public abstract String getLibelle();", "public Node raiz(){\r\n\treturn this.raiz;\r\n}", "public abstract java.lang.String getNombre();", "public abstract int getDisabTempl();", "public String getFromStation();", "public void getWord() {\n\t\t\n\t}", "Integer getNLNDreu();", "public Parentezco getParentezco()\r\n/* 153: */ {\r\n/* 154:280 */ return this.parentezco;\r\n/* 155: */ }", "@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}", "public IzvajalecZdravstvenihStoritev() {\n\t}", "public Nodo getNodoDerecho(){\n return der;\n }", "public String getMensaje()\r\n/* 633: */ {\r\n/* 634:710 */ return this.mensaje;\r\n/* 635: */ }", "String getIdNode2();", "public String getNom(){\n\t\treturn this.nom;\n\t}", "String getNetzanbieter();", "String getLo();", "public SegmentTreeNode<T> getLeftSon() {\n\t\treturn lson;\n\t}", "public String getS() {\r\n return s;\r\n }", "public String getNugget()\n\t{\n\t\treturn nugget;\n\t}", "public String getNomor() {\n return this.nomor;\n }", "public NodoListaObjetos getSiguiente(){\r\n return siguiente;\r\n }", "public abstract String getNombre();", "public String getNotchianName();", "public String getStationld() {\n return stationld;\n }", "public int getNickel () {\n return NNickel;\n }", "Objet getObjetAlloue();", "public abstract java.lang.String getAcma_cierre();", "public String getRazaN(){\n return razaP1.nombre1();\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "String getV();", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "public V hentStorste() {\n Node node = listehode.neste;\n\n if (node != null) {\n for (int i = 1; i < antall; i++) {\n node = node.neste;\n }\n return (V)node.verdi;\n } return null;\n }", "@Override\n\tpublic String getNom() {\n\t\treturn null;\n\t}", "public V get19();", "public String getNom() {\n\treturn this.nom;\n }", "public String getNom() {\n\treturn this.nom;\n }", "public String getNomorSK2();", "public MotivoLlamadoAtencion getMotivoLlamadoAtencion()\r\n/* 114: */ {\r\n/* 115:123 */ return this.motivoLlamadoAtencion;\r\n/* 116: */ }", "@Override\r\n public String getHasil() {\n return this.hasil;\r\n }", "public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }", "@Override public String getMasa(){\n return \"gruesa \";\n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public String balar() {\r\n return this.SONIDO;\r\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public abstract String getPos();", "public String getRing();", "public String getSuper()\n {\n ensureLoaded();\n return (m_clzSuper == null ? (String) null : m_clzSuper.getValue());\n }", "public String getNom() {\n\t\treturn null;\r\n\t}", "java.lang.String getS();", "protected abstract String getZ();", "public String getString() {\r\n\t\tString s = value.getString();\r\n\t\t// System.out.println(\"Getting string of: \" + s);\r\n\t\tif (s == null)\r\n\t\t\treturn (s);\r\n\t\treturn (substitution(s));\r\n\t}", "public int getTrangthaiChiTiet();", "public String represent();", "@AutoEscape\n\tpublic String getNode_1();", "public String getFirst(){ return this.first; }", "public abstract String GetProperty(Slice property);", "public String MuestraSoloDNI() {\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {\nMuestra=clienteDo.getDni();\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {\nMuestra=clienteAd.getDni();\n}\nreturn Muestra;\n}" ]
[ "0.63035727", "0.63035727", "0.6297542", "0.6280963", "0.62641096", "0.62496394", "0.6215023", "0.6199692", "0.6184171", "0.61141604", "0.60728896", "0.6070941", "0.60651964", "0.60425216", "0.6033747", "0.60329175", "0.6013454", "0.6007366", "0.60019153", "0.5997789", "0.5993817", "0.5978602", "0.59676003", "0.5962334", "0.5962172", "0.5932882", "0.5932882", "0.5930995", "0.5928187", "0.5925306", "0.5924892", "0.5916822", "0.59115255", "0.5905414", "0.5900487", "0.5879374", "0.5868238", "0.5851894", "0.5844279", "0.58407074", "0.58288926", "0.58257115", "0.5823756", "0.5807948", "0.5806206", "0.5805264", "0.5802355", "0.5795583", "0.57851756", "0.5783809", "0.57768786", "0.5760771", "0.57519394", "0.57407904", "0.5739786", "0.57325375", "0.57317203", "0.57302964", "0.5726609", "0.5724439", "0.5723831", "0.5720372", "0.57173246", "0.57163274", "0.571232", "0.5711663", "0.5708803", "0.57081574", "0.570438", "0.5701119", "0.569731", "0.56968206", "0.5689127", "0.5684513", "0.5678791", "0.56784177", "0.5670107", "0.5664514", "0.56597996", "0.56597996", "0.5658468", "0.5657659", "0.56545806", "0.56496185", "0.56460744", "0.5643159", "0.56410706", "0.56402117", "0.56365657", "0.56344444", "0.56287587", "0.5619929", "0.5619239", "0.56158906", "0.56157863", "0.5611729", "0.56096196", "0.5608475", "0.5604644", "0.56007767", "0.5599936" ]
0.0
-1
getter pentru nodul drept
public Node<T> getRight() { return right; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Nodo getNodoDerecho(){\n return der;\n }", "public String getDPTitel(){\n\t\treturn this.m_sDPTitel;\n\t}", "@Override\n\tpublic int getDikte() {\n\t\treturn this.dikttte;\n\t}", "public Nodo getPadre() {\n return this.padre;\n }", "public Nodo<T> getDerecho() {\n\t\treturn derecho;\n\t}", "public Pojazd dostepDoPojazdu()\n\t{\n\t\treturn pojazd;\n\t}", "public String getDptName() {\n return dptName;\n }", "public com.c.a.d.d d() {\n return this.k;\n }", "@Override\r\n\tpublic Dinero getDinero() {\n\t\treturn super.getDinero();\r\n\t}", "public Domaine getDomaine (){\r\n\t\treturn this.dm;\r\n\t}", "public String getD() {\n return d;\n }", "public Integer getDeptid() {\n return deptid;\n }", "public abstract String getDnForPerson(String inum);", "public String getDPZeitschrift(){\n\t\treturn this.m_sDPZeitschrift;\n\t}", "public String getDn() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }", "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "Nodo_B getPrimero(){\n return this.primero;\n }", "public int getDificultad ()\n {\n //Pre:\n //Post: Devuelve el nivel de dificultad\n return dificultad;\n }", "public String getDPWeiterePersonen(){\n\t\treturn this.m_sDPWeiterePersonen;\n\t}", "public GestionePunteggiD getGestionePunteggiD() {\n return gestionePunteggiD;\n }", "public PanneauG obtenirPanneauNord() {\r\n\t\treturn panneauNord;\r\n\t}", "public PuntoDeVenta getPuntoDeVenta()\r\n/* 140: */ {\r\n/* 141:162 */ return this.puntoDeVenta;\r\n/* 142: */ }", "public Integer geteDeptid() {\n return eDeptid;\n }", "public int getD() {\n\t\treturn d;\n\t}", "public String getDNI(){\n return dni;\n }", "public int getPRDNO() {\n return prdno;\n }", "public int getPRDNO() {\n return PRDNO;\n }", "public abstract java.lang.String getCod_dpto();", "public String getDptCode() {\n return dptCode;\n }", "@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}", "@Override\r\n\tpublic int getPosta_kod() {\n\t\treturn super.getPosta_kod();\r\n\t}", "public int getD() {\n return d_;\n }", "public String getDia() {\n\t\treturn this.dia;\n\t}", "public java.lang.String getIdentificadorODE()\r\n {\r\n return this.identificadorODE;\r\n }", "@Override\n\tpublic int getDouleur() {\n\t\treturn intDouleur;\n\t}", "public String getdName() {\n return dName;\n }", "@Override\r\n\tpublic String getDNI() {\n\t\treturn dni;\r\n\t}", "@Override\n\tpublic java.lang.String getNode_4() {\n\t\treturn _dictData.getNode_4();\n\t}", "public String getNomdepartement() {\n return (String) getAttributeInternal(NOMDEPARTEMENT);\n }", "public biz.belcorp.www.canonico.ffvv.vender.TPedidoDetalle[] getPedidoDetalle(){\n return localPedidoDetalle;\n }", "public String getDPReihe(){\n\t\treturn this.m_sDPReihe;\n\t}", "public Integer getdId() {\n return dId;\n }", "public int getd1() {\n\t\treturn d1;\n\t}", "public String\n getNodeName() \n {\n return pNodeName;\n }", "public String getDPBuchtitel(){\n\t\treturn this.m_sDPBuchtitel;\n\t}", "public String getnom ()\n {\n return nom_et;\n }", "public int getD() {\n return d_;\n }", "public String getDni() {\r\n\t\treturn dni;\r\n\t}", "public Date getDeldte() {\r\n return deldte;\r\n }", "Datty getDatty();", "@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}", "public String getName () { return n.getName(); }", "@Override\r\n\tpublic String getPosto() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic ArrayList<Domanda> getDomande() {\n\t\tDB db = getDB();\n\t\tArrayList<Domanda> domande = new ArrayList<Domanda>();\n\t\tMap<Long, Domanda> list = db.getTreeMap(\"domande\");\n\t\tfor(Map.Entry<Long, Domanda> domanda : list.entrySet())\n\t\t\tif(domanda.getValue() instanceof Domanda)\n\t\t\t\tdomande.add((Domanda)domanda.getValue());\n\t\treturn domande;\n\t}", "public TipoDiscapacidad getTipoDiscapacidad()\r\n/* 224: */ {\r\n/* 225:410 */ return this.tipoDiscapacidad;\r\n/* 226: */ }", "public String getDm() {\n return dm;\n }", "public String getNom();", "public int getIdDetalleComponenteCosto()\r\n/* 58: */ {\r\n/* 59: 83 */ return this.idDetalleComponenteCosto;\r\n/* 60: */ }", "public long getDossierId();", "public String getDni() {\n\t\treturn dni;\n\t}", "public String getDni() {\n\t\treturn dni;\n\t}", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public Departement getDepartement() {\n\t\treturn departement;\n\t}", "public BigDecimal gettDrpr() {\n return tDrpr;\n }", "Doctor getDoctor();", "public Long getPdid() {\n return pdid;\n }", "public int getIdFornecedor(){\n\t return idFornecedor;\n\t}", "int getD();", "@Override\n\tpublic Dept getDept() {\n\t\treturn super.getDept();\n\t}", "public Dni getDni() {\n return dni;\n }", "public int getDificultad(){\n return dificultad;\n }", "public Nodo_m_ario getPadre() {\n\t\treturn padre;\n\t}", "public java.lang.String getDm() {\r\n return localDm;\r\n }", "public java.lang.String getDN() {\n return DN;\n }", "private String getPrdName(String prdId) {\n //\t\tSystem.out.println(\"getPrdName: \" + prdId);\n \t\tfor (Entry<String, MoleculeFeatures> feature: prdMolFeaturesMap.entrySet()) {\n \t\t\tif (feature.getValue().getPrdId().equals(prdId)) {\n //\t\t\t\tSystem.out.println(\"Name: \" + feature.getValue().getName());\n \t\t\t\treturn feature.getValue().getName();\n \t\t\t}\n \t\t}\n \t\treturn \"\";\n \t}", "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "public java.lang.String getDYPT() {\r\n return localDYPT;\r\n }", "public String getDishOfTheDay(){\n return dishOfTheDay;\n }", "public String getDirecao(){\n return direcao;\n }", "@ManyToOne\r\n\t@JoinColumn(name=\"DPN_ID\")\r\n\tpublic Dependencia getDependencia() {\r\n\t\treturn this.dependencia;\r\n\t}", "String getIdNode2();", "public abstract java.lang.String getNovedad();", "public String GetDept()\r\n {\r\n return Department;\r\n }", "public java.lang.String getResourceDn() {\r\n return resourceDn;\r\n }", "public Nodo (String d){\n\t\tthis.dato = d;\n\t\tthis.siguiente = null; //para que apunte el nodo creado a nulo\n\t}", "@Nullable\n public String getDn() {\n return dn;\n }", "public String getDPIndex(){\n\t\treturn this.m_sDPIndex;\n\t}", "public gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd getTpd()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd target = null;\r\n target = (gov.nih.nlm.ncbi.www.SeqIdDocument.SeqId.Tpd)get_store().find_element_user(TPD$34, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }", "private Date getdDay() {\n\t\treturn this.dDay;\r\n\t}", "@Override\n public int get()\n { \n return this.pr;\n }", "public Person getDoctor(){\n return doctor;\n }", "public String getNom(){\n\t\treturn this.nom;\n\t}", "public Integer getIndeptid() {\r\n return indeptid;\r\n }", "Debut getDebut();", "String getIdNode1();", "public FindtempDemolishElements getFindtempDemolishAccess() {\n\t\treturn pFindtempDemolish;\n\t}", "public String dgName() {\n return this.dgName;\n }", "public String getIdDireccion() {\r\n\t\treturn idDireccion;\r\n\t}", "public DEPNode getNode()\n\t{\n\t\treturn node;\n\t}" ]
[ "0.7325169", "0.66847867", "0.6639575", "0.65245074", "0.65210193", "0.6507496", "0.64707226", "0.64635944", "0.64596444", "0.63568515", "0.63330877", "0.6312859", "0.6298902", "0.6292115", "0.62786394", "0.6228889", "0.6228097", "0.6224729", "0.6224241", "0.62165505", "0.62098384", "0.61567646", "0.6120396", "0.610935", "0.6107288", "0.61015797", "0.60927206", "0.6088265", "0.60860837", "0.60780144", "0.6077281", "0.6071065", "0.602216", "0.6004901", "0.59812045", "0.5979021", "0.5977781", "0.59571517", "0.5948871", "0.5936935", "0.59359246", "0.59286195", "0.5918129", "0.5917339", "0.5916539", "0.5883719", "0.5874197", "0.58724076", "0.5865928", "0.5862181", "0.5861591", "0.5861523", "0.5854286", "0.58417565", "0.58412397", "0.58407646", "0.58340317", "0.5828849", "0.58226305", "0.58195704", "0.5819314", "0.5814968", "0.5814968", "0.58097", "0.5798006", "0.5758941", "0.57583034", "0.57559365", "0.5754152", "0.5747025", "0.5746541", "0.5742407", "0.5734948", "0.57339674", "0.57335746", "0.5713554", "0.5712497", "0.57079023", "0.57079023", "0.5707097", "0.5706588", "0.57061255", "0.57019466", "0.5699695", "0.5687927", "0.5686234", "0.5683384", "0.56789315", "0.56782687", "0.56774724", "0.5671955", "0.5668844", "0.5667876", "0.5667131", "0.5666521", "0.56659144", "0.5665134", "0.5661307", "0.56559455", "0.5655313", "0.56535274" ]
0.0
-1
functie care verifica daca exista nod in partea stanga
public boolean hasLeft() { return left != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "private int existPointV(String nomAgence) { //retourner le rang de l'elemnt s'il existe -1 sinon\n\t\tfor (int i=0;i<pointV.size();i++) {if (pointV.get(i).getNomAgence().equals(nomAgence)) return i;} //point de vente existe\n\t\treturn -1;\n\t\t}", "boolean hasNodeId();", "boolean hasIsNodeOf();", "boolean hasTreeNodeId();", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "boolean hasNode();", "boolean hasNode();", "Boolean findExistsCampania(GestionPrecioID id) ;", "boolean hasHasNodeID();", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "public abstract boolean isNatureExist(long id);", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "public boolean existeLlave(int llave) {\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.key == llave) {\n return true;\n }\n }\n return false;\n }", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "boolean hasIsVertexOf();", "private synchronized boolean existeIndice() {\r\n\t\tboolean indiceExiste = new File(pastaDoIndice, \"segments.gen\")\r\n\t\t\t\t.exists();\r\n\r\n\t\treturn indiceExiste;\r\n\t}", "public boolean exist(String scholl_node){\n boolean it_exist = false;\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" WHERE \" + Value.COLUMN_NODE + \" = '\" + scholl_node + \"'\";\n\n Cursor c = db.rawQuery(sql, null);\n int count = c.getCount();\n c.close();\n if(count > 0){\n it_exist = true;\n }\n return it_exist;\n }", "public boolean existeElemento(T dato) {\n\t\t// crea nodo igual al primer elemento\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// retorna true si encontro el elemento\n\t\treturn nodo != null;\n\t}", "private boolean checkIfExist(int klik, int x, int y){\r\n\t\tif (klik == 1){\r\n\t\t\tif (discTable[x][y].owner != 0 && discTable[x][y].owner <= 2) return true;\r\n\t\t\telse return false;\r\n\t\t}else return false;\r\n\t}", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "public boolean existe(Provincia provincia);", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "boolean usedByNode(Long id);", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "public static boolean exists(){\n \t\treturn everbie != null;\n \t}", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "public boolean exists( Conge conge ) ;", "boolean hasLte();", "boolean existe(String nombre);", "public boolean contains( T obj )\n {\n if(nodes.containsKey(obj)){\n \treturn true;\n }\n return false;\n }", "public int check_node(double x1,double y1) //checks the existence of a particular co-ordinate\r\n\t{\n\t\tfor(int i=0;i<nodes.size();i++)\t\t // it returns that index or returns -1;\r\n\t\t{\r\n\t\t\tif(nodes.get(i)[0]==x1 && nodes.get(i)[1]==y1 )\r\n\t\t\t\treturn i;\r\n\t\t}\r\n\t\t return -1;\r\n\t}", "public boolean exists( Integer idConge ) ;", "@Override\n public boolean contiene(T dato) {\n return this.buscar(dato) != null;\n }", "public boolean isContainNode(ServentInfo a){\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tif(b.IP.equals(a.IP) && b.port == a.port){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean existe(int data) {\n NodoRelacion aux = this.first;\n while (aux != null) {\n if (aux.getID_actor() == data) {\n return true;\n }\n aux = aux.getPnext();\n\n }\n return false;\n }", "boolean hasExists();", "public boolean existeix_Par(String paraula) {\n \tfor (String p : this.M.keySet()) {\n \t\tHashMap<String, Integer> doc = this.M.get(p);\n \t\tif (doc.containsKey(paraula)) return true;\n \t}\n \treturn false;\n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "public boolean exists(ListNode node){\n\t\tif(firstNode == null) return false;\n\t\tListNode temp = firstNode;\n\t\twhile(temp != null){\n\t\t\tif(temp.equals(node)) return true;\n\t\t\ttemp = temp.getNextNode();\n\t\t}\n\t\treturn false;\n\t}", "boolean hasIsCentralNode();", "private boolean insertarAux(NodoABB n, Comparable elem) {\n boolean exito = true;\r\n if (elem.compareTo(n.getElem()) == 0) {\r\n //Reportar error: elemento repetido\r\n exito = false;\r\n\r\n } else if (elem.compareTo(n.getElem()) < 0) {\r\n //elemento es menor que el elemento del nodo\r\n //si tine HI baja a la izq, sino agrega elemento\r\n if (n.getIzquierdo() != null) {\r\n exito = insertarAux(n.getIzquierdo(), elem);\r\n } else {\r\n n.setIzquierdo(new NodoABB(elem, null, null));\r\n }\r\n } else // elemento es mayor que el elemento del nodo\r\n //si tiene HD baja a la derecha, sino agrega el elemento\r\n if (n.getDerecho() != null) {\r\n exito = insertarAux(n.getDerecho(), elem);\r\n } else {\r\n n.setDerecho(new NodoABB(elem, null, null));\r\n }\r\n return exito;\r\n }", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "public boolean contains(N node)\r\n/* 56: */ {\r\n/* 57:105 */ assert (checkRep());\r\n/* 58:106 */ return this.map.containsKey(node);\r\n/* 59: */ }", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "boolean isLeaf();", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "boolean hasFkocs();", "public boolean containsNode(String id){\n\t\tfor(CircosNode check : nodes){\n\t\t\tif(check.getID() == id)\n\t\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public abstract boolean exists() throws VlException;", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "public boolean esHoja(Nodo hoja){\r\n\t\tif ((hoja.getLeft()==null)&&(hoja.getRight()==null))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "abstract public boolean exists() throws VlException;", "public boolean hasVertex(String label)\n\t{\n\t\tboolean sucess = false;\n\t\ttry {\n\t\t\tgetVertex(label);\n\t\t\tsucess = true;\n\t\t} catch (NoSuchElementException e) {\n\t\t\tsucess = false;\n\t\t}\n\t\treturn sucess;\n\t}", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "@Test\n public void testExistNotation(){\n assertFalse(notationService.existNotation(null));\n\n // not existing notation\n assertFalse(notationService.existNotation(epcNotation.getIdentifier() + \"_\"));\n\n assertTrue(notationService.existNotation(epcNotation.getIdentifier()));\n assertTrue(notationService.existNotation(hierarchyNotation.getIdentifier()));\n\n // order doesn't matter\n assertTrue(notationService_reverse.existNotation(epcNotation.getIdentifier()));\n assertTrue(notationService_reverse.existNotation(hierarchyNotation.getIdentifier()));\n\n // empty notation model\n assertFalse(notationService_empty.existNotation(epcNotation.getIdentifier()));\n assertFalse(notationService_empty.existNotation(hierarchyNotation.getIdentifier())); \n }", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "public boolean estaEnLaLista(int edad){\n Nodo temporal = inicio;\n while(temporal.siguiente!=null && temporal.edad!=edad){\n temporal=temporal.siguiente;\n }\n return (temporal.siguiente!=null);\n }", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "public boolean isNodePresent(int nd) {\n if ((nd >= (int) nodeVector.size() || (nodeVector.get(nd).getIndex() == invalid_node_index))) {\n return false;\n } else {\n return true;\n }\n }", "boolean hasTreeNodeIdForVariantMatrix();", "boolean hasIsMidNode();", "public static boolean verificarExistenciaPersona(Personas persona)\n {\n //Este método permite verificar si el usuario a crear es vendedor, comprador o ninguno. Validacion en el main y para el metodo que agrega los tipo de usuario\n ArrayList<Personas> personas = Personas.desserializarPersonas(\"Personas.ser\");\n for(Personas pe: personas)\n {\n if(pe.getCorreoElectronico().equals(persona.getCorreoElectronico()) && pe.getTipo().equals(pe.getTipo()) ) \n \n return true;\n }\n return false;\n }", "public boolean esIdentificador() {\n\t\tif (Entidad.class.isInstance(this.getPadre())) {\n\t\t\tSet<Identificador> identificadores = ((Entidad) this.getPadre()).identificadores;\n\n\t\t\tfor (Identificador identificador : identificadores) {\n\t\t\t\tif (identificador.contiene(this) && identificador.getEntidades().isEmpty()\n\t\t\t\t\t\t&& identificador.getAtributos().size() == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean nodeExists(String absPath) throws RepositoryException {\n\t\treturn false;\r\n\t}", "public boolean pertenece(T dato){\n\t Arbol <T> aux=null;\n\t boolean encontrado=false;\n\t if (!vacio()) {\n\t if (this.datoRaiz.compareTo(dato)==0)\n\t encontrado = true;\n\t else {\n\t if (dato.compareTo(this.datoRaiz)<0)\t//dato < datoRaiz\n\t aux=getHijoIzq();\n\t else\t\t\t\t\t\t\t\t\t//dato > datoRaiz\n\t aux = getHijoDer();\n\t if (aux!=null)\n\t encontrado = aux.pertenece(dato);\n\t }\n\t }\n\t return encontrado;\n\t}", "private boolean existeConceptoPagos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.grupo_concepto_pago \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean erTom(){\n return hode.neste == hale;\n }", "public boolean isExistant(Noeud noeud)\t{\r\n \treturn noeud != null && noeuds.containsValue(noeud);\r\n }", "private boolean checkExistLocationPoint(String point, String lPoint) {\n\n ArrayList<LocationPointModel> listLocationPoint ;\n\n listLocationPoint = point.equals(\"loading\")?listLoadingnPoint : listDestinationPoint ;\n\n for (LocationPointModel lPointModel:listLocationPoint) {\n if(lPointModel.locPoint.toLowerCase().trim().equals(lPoint.toLowerCase().trim()))\n {\n Toast.makeText(getActivity(),(point.equals(\"loading\")?\"Loading\":\"Destination\")+\" point already exists!\", Toast.LENGTH_SHORT).show();\n return true ;\n }\n }\n return false ;\n\n }", "public abstract boolean doesExist();", "boolean hasAuvLoc();", "boolean exists(Curso curso) throws BusinessException;", "@Test\n public void getViajerosTest() {\n List<ViajeroEntity> list = vp.findAll();\n Assert.assertEquals(data.size(), list.size());\n for (ViajeroEntity ent : list) {\n boolean found = false;\n for (ViajeroEntity entity : data) {\n if (ent.getId().equals(entity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "boolean hasRecursive();", "boolean isNilID();", "public boolean odigraj(Koordinati poteza) {\n if (this.jeVeljavnaPoteza(poteza)) {\n plosca[poteza.getX()][poteza.getY()] = igralecNaPotezi.getPolje();\n // Potezo dodamo v odigranePoteze.\n\t\t\tthis.odigranePoteze.add(poteza);\n igralecNaPotezi = igralecNaPotezi.nasprotnik();\n return true;\n } else return false;\n }", "boolean getExists();", "abstract boolean isLeaf();", "public boolean contains(Node n) {\n\t\t\n\t\t//Validate n has a value\n\t\tif (n == null) { \n\t\t\treturn false; \n\t\t} \n\t\t\n\t\t//Node not present in hashmap\n\t\tif (!nodes.contains(n)) {\n\t\t\treturn false; \n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t}", "boolean getTreeNodeIdNull();", "boolean hasParentalStatus();", "private void foundNonExistent() {\n\t\tstate = BridgeState.NON_EXISTENT;\n\t}", "private boolean isExists(City c){\r\n\t\tfor(City i:map.getVerteices()){\r\n\t\t\tif (i.equals(c)){\r\n\t\t\t\treturn true;\r\n\t\t\t}}\r\n\t\treturn false;\r\n\r\n\t}", "private boolean contains(Point2D p, Node x) {\n if (x == null) return false;\n if (x.p.equals(p)) return true;\n if ((x.vertical && p.x() < x.p.x()) || (!x.vertical && p.y() < x.p.y())) {\n return contains(p, x.left);\n }\n else return contains(p, x.right);\n }", "@Test\r\n void test_insert_1_vertex_check() {\r\n graph.addVertex(\"1\");\r\n vertices = graph.getAllVertices();\r\n if (!vertices.contains(\"1\"))\r\n fail(\"Insert not working!!\");\r\n }", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();" ]
[ "0.66810364", "0.64723104", "0.6306981", "0.6294829", "0.6281177", "0.62751323", "0.6230709", "0.6230709", "0.62158775", "0.62020415", "0.6147555", "0.6140544", "0.6085534", "0.60221815", "0.6008799", "0.60052544", "0.5980103", "0.5961049", "0.5918998", "0.589966", "0.58856654", "0.58666486", "0.5864851", "0.5858121", "0.58432764", "0.5835067", "0.5831532", "0.58008826", "0.5791639", "0.5791037", "0.57686543", "0.57656956", "0.5737114", "0.5735548", "0.5726388", "0.57084155", "0.57082856", "0.57073146", "0.5706917", "0.5703224", "0.56828153", "0.56752837", "0.56629246", "0.56525517", "0.5644598", "0.5641816", "0.56373686", "0.56358385", "0.56331664", "0.56264967", "0.5623884", "0.5615011", "0.5615011", "0.5615011", "0.5615011", "0.56109864", "0.5606787", "0.5587355", "0.55799943", "0.5577055", "0.5577055", "0.55763924", "0.5567178", "0.556105", "0.55476826", "0.5546665", "0.5540247", "0.5533585", "0.5532829", "0.55292434", "0.55291283", "0.5528257", "0.551621", "0.5515886", "0.55125976", "0.5512239", "0.5507075", "0.54920727", "0.5485411", "0.5477424", "0.54769456", "0.5472302", "0.5471764", "0.5469652", "0.54668796", "0.54655707", "0.54611254", "0.5456769", "0.5456373", "0.5450618", "0.54500127", "0.5448466", "0.54483384", "0.54445124", "0.5440101", "0.54396534", "0.5439586", "0.5439463", "0.5439463", "0.5439463", "0.5439463" ]
0.0
-1
functie care verifica daca exista nod in partea dreapta
public boolean hasRight() { return right != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "private int existPointV(String nomAgence) { //retourner le rang de l'elemnt s'il existe -1 sinon\n\t\tfor (int i=0;i<pointV.size();i++) {if (pointV.get(i).getNomAgence().equals(nomAgence)) return i;} //point de vente existe\n\t\treturn -1;\n\t\t}", "Boolean findExistsCampania(GestionPrecioID id) ;", "boolean hasTreeNodeId();", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "boolean hasIsNodeOf();", "boolean hasNodeId();", "public boolean existeElemento(T dato) {\n\t\t// crea nodo igual al primer elemento\n\t\tNodeTabla<K, T> nodo = primerElemento;\n\n\t\t// itera los elementos hasta que se acaben o encuentre el elemento\n\t\twhile (nodo != null && !nodo.getElemento().equals(dato)) {\n\t\t\tnodo = nodo.getSiguiente();\n\t\t}\n\n\t\t// retorna true si encontro el elemento\n\t\treturn nodo != null;\n\t}", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "@Test\n public void testExistenceTestuJedneOsoby() {\n osBeznyMuz = new Osoba(120, 150, Barva.MODRA);\n testJedneOsoby(osBeznyMuz, 120, 150, 70, 140, Barva.MODRA);\n }", "@Override\n public boolean contiene(T dato) {\n return this.buscar(dato) != null;\n }", "protected boolean Exists()\n\t{\n\t\tif (identity<1) return false;\n\t\tNodeReference nodeReference = getNodeReference();\n\t\treturn (nodeReference.exists() || nodeReference.hasSubnodes());\n\t}", "public boolean existeLlave(int llave) {\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.key == llave) {\n return true;\n }\n }\n return false;\n }", "boolean hasNode();", "boolean hasNode();", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "public abstract boolean isNatureExist(long id);", "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "private boolean checkIfExist(int klik, int x, int y){\r\n\t\tif (klik == 1){\r\n\t\t\tif (discTable[x][y].owner != 0 && discTable[x][y].owner <= 2) return true;\r\n\t\t\telse return false;\r\n\t\t}else return false;\r\n\t}", "boolean hasHasNodeID();", "@Override\n\tpublic void exist() {\n\t\t\n\t}", "public boolean existe(int data) {\n NodoRelacion aux = this.first;\n while (aux != null) {\n if (aux.getID_actor() == data) {\n return true;\n }\n aux = aux.getPnext();\n\n }\n return false;\n }", "public static boolean exists(){\n \t\treturn everbie != null;\n \t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public boolean pathExists(int startVertex, int stopVertex) {\n// your code here\n ArrayList<Integer> fetch_result = visitAll(startVertex);\n if(fetch_result.contains(stopVertex)){\n return true;\n }\n return false;\n }", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "public boolean exists( Integer idConge ) ;", "public boolean exist(String scholl_node){\n boolean it_exist = false;\n String sql = \"SELECT * FROM \" + Value.TABLE_SCHOLLS + \" WHERE \" + Value.COLUMN_NODE + \" = '\" + scholl_node + \"'\";\n\n Cursor c = db.rawQuery(sql, null);\n int count = c.getCount();\n c.close();\n if(count > 0){\n it_exist = true;\n }\n return it_exist;\n }", "boolean insertar(Nodo_B nuevo){\n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n size ++;\n return true;\n }else{\n if(this.primero == this.ultimo){ // -------------------------solo hay un nodo \n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }\n }else{ // ---------------------------------------------------hay mas de un nodo\n if(nuevo.valor < this.primero.valor){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero.izq = nuevo.der; // -----cambia los punteros a las paginas\n this.primero = nuevo;\n size++; \n return true;\n }else if(nuevo.valor > this.ultimo.valor){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo.der = nuevo.izq; //------ cambia los punteros a las paginas \n this.ultimo = nuevo;\n size++; \n return true;\n }else{\n Nodo_B pivote = this.primero;\n while(pivote != null){\n if(nuevo.valor < pivote.valor){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n //--------------------------- cambia los punteros a las paginas\n pivote.izq = nuevo.der;\n pivote.anterior.der = nuevo.izq;\n //-----------------------------------------------------------\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n size++;\n return true;\n }else if(nuevo.valor == pivote.valor){\n System.out.println (\"ya hay un destino con ese codigo registrado\");\n return false;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n }\n return false;\n }", "private boolean insertarAux(NodoABB n, Comparable elem) {\n boolean exito = true;\r\n if (elem.compareTo(n.getElem()) == 0) {\r\n //Reportar error: elemento repetido\r\n exito = false;\r\n\r\n } else if (elem.compareTo(n.getElem()) < 0) {\r\n //elemento es menor que el elemento del nodo\r\n //si tine HI baja a la izq, sino agrega elemento\r\n if (n.getIzquierdo() != null) {\r\n exito = insertarAux(n.getIzquierdo(), elem);\r\n } else {\r\n n.setIzquierdo(new NodoABB(elem, null, null));\r\n }\r\n } else // elemento es mayor que el elemento del nodo\r\n //si tiene HD baja a la derecha, sino agrega el elemento\r\n if (n.getDerecho() != null) {\r\n exito = insertarAux(n.getDerecho(), elem);\r\n } else {\r\n n.setDerecho(new NodoABB(elem, null, null));\r\n }\r\n return exito;\r\n }", "private synchronized boolean existeIndice() {\r\n\t\tboolean indiceExiste = new File(pastaDoIndice, \"segments.gen\")\r\n\t\t\t\t.exists();\r\n\r\n\t\treturn indiceExiste;\r\n\t}", "public boolean pertenece(T dato){\n\t Arbol <T> aux=null;\n\t boolean encontrado=false;\n\t if (!vacio()) {\n\t if (this.datoRaiz.compareTo(dato)==0)\n\t encontrado = true;\n\t else {\n\t if (dato.compareTo(this.datoRaiz)<0)\t//dato < datoRaiz\n\t aux=getHijoIzq();\n\t else\t\t\t\t\t\t\t\t\t//dato > datoRaiz\n\t aux = getHijoDer();\n\t if (aux!=null)\n\t encontrado = aux.pertenece(dato);\n\t }\n\t }\n\t return encontrado;\n\t}", "public boolean estaEnLaLista(int edad){\n Nodo temporal = inicio;\n while(temporal.siguiente!=null && temporal.edad!=edad){\n temporal=temporal.siguiente;\n }\n return (temporal.siguiente!=null);\n }", "public boolean esIdentificador() {\n\t\tif (Entidad.class.isInstance(this.getPadre())) {\n\t\t\tSet<Identificador> identificadores = ((Entidad) this.getPadre()).identificadores;\n\n\t\t\tfor (Identificador identificador : identificadores) {\n\t\t\t\tif (identificador.contiene(this) && identificador.getEntidades().isEmpty()\n\t\t\t\t\t\t&& identificador.getAtributos().size() == 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean existe(Provincia provincia);", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "public boolean exists( Conge conge ) ;", "private boolean existeConceptoPagos(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM seleccion.grupo_concepto_pago \" + \" where id_concurso_puesto_agr = \"\r\n\t\t\t\t+ concursoPuestoAgr.getIdConcursoPuestoAgr() + \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "boolean hasIsVertexOf();", "public boolean existeix_Par(String paraula) {\n \tfor (String p : this.M.keySet()) {\n \t\tHashMap<String, Integer> doc = this.M.get(p);\n \t\tif (doc.containsKey(paraula)) return true;\n \t}\n \treturn false;\n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "boolean usedByNode(Long id);", "@Test\n\tvoid testIfAdjacentNodeExists() {\n\t\tMap<String, LinkedHashSet<String>> map = new HashMap<String, LinkedHashSet<String>>();\n\t\tLinkedHashSet<String> edges = new LinkedHashSet<String>();\n\t\tedges.add(\"New York\");\n\t\tmap.put(\"Boston\", edges);\n\t\tOptional<LinkedHashSet<String>> vertexOptional = Optional.of(map.get(\"Boston\"));\n\t\tif (vertexOptional.isPresent()) {\n\t\t\tAssertions.assertNotNull(map.get(\"Boston\"));\n\t\t\tAssertions.assertEquals(1, map.get(\"Boston\").size());\n\t\t\tString[] edgesArray = new String[edges.size()];\n\t\t\tedgesArray = edges.toArray(edgesArray);\n\t\t\tAssertions.assertTrue(map.get(\"Boston\").contains(\"New York\"));\n\t\t\tAssertions.assertEquals(\"New York\", edgesArray[0]);\n\t\t}\n\n\t}", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "boolean hasExists();", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "@Override\n public boolean isExist(Object o) {\n return true;\n }", "@Test\n public void getViajerosTest() {\n List<ViajeroEntity> list = vp.findAll();\n Assert.assertEquals(data.size(), list.size());\n for (ViajeroEntity ent : list) {\n boolean found = false;\n for (ViajeroEntity entity : data) {\n if (ent.getId().equals(entity.getId())) {\n found = true;\n }\n }\n Assert.assertTrue(found);\n }\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean existe(Long id) {\n\t\treturn false;\n\t}", "private boolean idSaoIguais(Service servico, Service servicoAComparar) {\n return servico.getId() == servicoAComparar.getId();\n }", "private boolean esDeMipropiedad(Casilla casilla){\n boolean encontrado = false;\n \n for(TituloPropiedad propiedad: this.propiedades){\n if(propiedad.getCasilla() == casilla){\n encontrado = true;\n break;\n }\n }\n return encontrado; \n }", "public static boolean verificarExistenciaPersona(Personas persona)\n {\n //Este método permite verificar si el usuario a crear es vendedor, comprador o ninguno. Validacion en el main y para el metodo que agrega los tipo de usuario\n ArrayList<Personas> personas = Personas.desserializarPersonas(\"Personas.ser\");\n for(Personas pe: personas)\n {\n if(pe.getCorreoElectronico().equals(persona.getCorreoElectronico()) && pe.getTipo().equals(pe.getTipo()) ) \n \n return true;\n }\n return false;\n }", "public boolean contains(Item item){\n if(isEmpty()) throw new NoSuchElementException(\"Failed to perfrom contains because the DList instance is empty!\");\n for(Node temp = first.next; temp.next!=null; temp=temp.next)\n if(temp.data.equals(item)) return true;\n return false; \n }", "public boolean isExistant(Noeud noeud)\t{\r\n \treturn noeud != null && noeuds.containsValue(noeud);\r\n }", "boolean hasFkocs();", "private boolean hasLinkToEntidad(Entidadrol entidadrol) {\n\t\tif(entidadrol.getEntidadid() != null) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean buscarPorIdentificador(String identificador){\n Nodo_Bodega Temporal = Nodo_bodega_inicial;\n if(Size==0){\n return false;\n }else{\n if(Temporal.obtenerIdentificador().equals(identificador)){\n return true;\n }\n }\n \n while(Temporal.obtenerSiguiente()!= null){\n Temporal = Temporal.obtenerSiguiente();\n if(Temporal.obtenerIdentificador().equals(identificador)){\n return true;\n }\n }\n return false;\n }", "@Test\n\tpublic void testExistsInGroupSuccess() {\n\n\t\tgrupo.addColaborador(col1);\n\t\tboolean result = grupo.existsInGroup(col1);\n\n\t\tassertTrue(result);\n\t}", "private boolean markNodHijos(String nodPadSel){\n boolean blnRes=true;\n Connection conNodHij;\n Statement stmNodHij;\n ResultSet rstNodHij;\n String strNodPadSel=nodPadSel==null?\"\":nodPadSel;\n arlDatNodHij.clear();\n try{\n conNodHij=DriverManager.getConnection(objParSis.getStringConexion(), objParSis.getUsuarioBaseDatos(), objParSis.getClaveBaseDatos());\n if(conNodHij!=null){\n stmNodHij=conNodHij.createStatement();\n strSQL=\"\";\n strSQL+=\" SELECT a1.co_emp, a1.co_cta, a1.tx_codCta, a1.ne_pad\";\n strSQL+=\" FROM tbm_plaCta AS a1\";\n strSQL+=\" WHERE a1.co_emp=\" + objParSis.getCodigoEmpresa() + \"\";\n strSQL+=\" AND a1.tx_codCta like('\" + objTblModPlaCta.getValueAt(tblDatPlaCta.getSelectedRow(), INT_TBL_PLA_CTA_NUM_CTA) + \"%')\";\n strSQL+=\" ORDER BY a1.tx_codCta\";\n\n rstNodHij=stmNodHij.executeQuery(strSQL);\n while(rstNodHij.next()){\n arlRegNodHij=new ArrayList();\n arlRegNodHij.add(INT_ARL_COD_EMP, \"\" + rstNodHij.getString(\"co_emp\"));\n arlRegNodHij.add(INT_ARL_COD_CTA_SEL, \"\" + rstNodHij.getString(\"ne_pad\"));\n arlRegNodHij.add(INT_ARL_COD_CTA_HIJ, \"\" + rstNodHij.getString(\"co_cta\"));\n arlDatNodHij.add(arlRegNodHij);\n }\n conNodHij.close();\n conNodHij=null;\n stmNodHij.close();\n stmNodHij=null;\n rstNodHij.close();\n rstNodHij=null;\n }\n }\n catch(java.sql.SQLException e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n catch(Exception e){\n blnRes=false;\n objUti.mostrarMsgErr_F1(this, e);\n }\n return blnRes;\n }", "public boolean existe(Producto producto);", "public boolean isAdjacent(int from, int to) {\n//your code here\n// LinkedList<Edge> list = adjLists[from];\n// for (Edge a : list) {\n// if(a.from()==from&&a.to()==to){\n// return true;\n// }\n// };\n// return false;\n return pathExists(from, to);\n }", "public boolean existeArista(int i, int j) {\n ListaConPI<Adyacente> l = elArray[i]; \n for (l.inicio(); !l.esFin(); l.siguiente())\n if (l.recuperar().getDestino() == j) return true;\n return false; \n }", "private boolean findExist(UsersRobots usersRobots){\n List<UsersRobots> result = (List<UsersRobots>) entityManager.createQuery(\"SELECT ur FROM UsersRobots ur where ur.idUser = :idUser and ur.idRobot = :idRobot\")\n .setParameter(\"idUser\",usersRobots.getIdUser())\n .setParameter(\"idRobot\",usersRobots.getIdRobot())\n .getResultList();\n if(result.size() > 0){\n return true;\n }\n return false;\n }", "public boolean contains( T obj )\n {\n if(nodes.containsKey(obj)){\n \treturn true;\n }\n return false;\n }", "boolean existe(String nombre);", "public boolean isContainNode(ServentInfo a){\n\t\tfor(int i = 0;i<serventList.size();i++){\n\t\t\tServentInfo b = serventList.get(i);\n\t\t\tif(b.IP.equals(a.IP) && b.port == a.port){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Partepieza)) {\n return false;\n }\n Partepieza other = (Partepieza) object;\n if ((this.idpartepieza == null && other.idpartepieza != null) || (this.idpartepieza != null && !this.idpartepieza.equals(other.idpartepieza))) {\n return false;\n }\n return true;\n }", "public boolean pertinencia(Tipo valor) //100%\n {\n if(this.conjunto.contains(valor))\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "@Override\n\tpublic void visitXexists(Xexists p) {\n\n\t}", "boolean hasLte();", "@Override\n\tpublic boolean okToTraverse(Level3Element ele)\n\t{\n\t\treturn !ubiqueIDs.contains(ele.getUri());\n\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "private boolean existeCondicionSeguridad(ConcursoPuestoAgr concursoPuestoAgr) {\r\n\t\tString query =\r\n\t\t\t\" SELECT * FROM planificacion.det_condicion_segur \"\r\n\t\t\t\t+ \" where id_concurso_puesto_agr = \" + concursoPuestoAgr.getIdConcursoPuestoAgr()\r\n\t\t\t\t+ \" and tipo = 'GRUPO' \";\r\n\t\treturn seleccionUtilFormController.existeNative(query);\r\n\t}", "public boolean Doc_te_Par(String titol, String autor, String paraula) {\n \treturn (this.M.get(titol+\", \"+autor)).containsKey(paraula);\n }", "boolean getTreeNodeIdNull();", "public boolean isExist(Serializable id);", "public boolean esHoja(Nodo hoja){\r\n\t\tif ((hoja.getLeft()==null)&&(hoja.getRight()==null))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "boolean getExists();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "boolean hasID();", "private boolean checkListino() {\n /* variabili e costanti locali di lavoro */\n boolean ok = false;\n Date dataInizio;\n Date dataFine;\n AddebitoFissoPannello panServizi;\n\n try { // prova ad eseguire il codice\n dataInizio = this.getDataInizio();\n dataFine = this.getDataFine();\n panServizi = this.getPanServizi();\n ok = panServizi.checkListino(dataInizio, dataFine);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return ok;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof prDetallePrestamos)) {\r\n return false;\r\n }\r\n prDetallePrestamos other = (prDetallePrestamos) object;\r\n if ((this.idDetPrestamo == null && other.idDetPrestamo != null) || (this.idDetPrestamo != null && !this.idDetPrestamo.equals(other.idDetPrestamo))) {\r\n return false;\r\n }\r\n return true;\r\n }", "private boolean isContieneLotesDetallePedidos(){\n String pResultado = \"N\";\n try {\n log.info(\"VariablesDelivery.vNumeroPedido_bk:\"+VariablesDelivery.vNumeroPedido_bk);\n log.info(\"VariablesDelivery.vCodLocal_bk:\"+VariablesDelivery.vCodLocal_bk);\n pResultado = DBDelivery.isContienLotesProductos(VariablesDelivery.vCodLocal_bk,\n VariablesDelivery.vNumeroPedido_bk);\n \n log.info(\"isContieneLotesDetallePedidos():\"+pResultado);\n } catch (Exception e) {\n pResultado = \"N\"; \n log.info(\"Error al obtener ind Productos x Lote del Pedido:\"+e.getMessage());\n }\n \n if(pResultado.trim().equalsIgnoreCase(\"N\")){\n return false;\n }\n else{\n FarmaUtility.showMessage(this,\"El pedido ya tiene los Lotes Ingresados\\n\" +\n \"Se procederá a generar el pedido.\\n\" +\n \"Gracias.\" ,tblListaDetallePedido);\n \n return true;\n }\n }", "public boolean insert(Panier nouveau) {\n\t\treturn false;\r\n\t}", "boolean hasFromId();", "boolean hasRecursive();", "public boolean irAIdentificador(String identificador){\n Nodo_Bodega Temporal = Nodo_bodega_inicial;\n if(Size==0){\n return false;\n }else{\n if(Temporal.obtenerIdentificador().equals(identificador)){\n Nodo_bodega_actual = Temporal;\n return true;\n }\n }\n \n while(Temporal.obtenerSiguiente()!= null){\n Temporal = Temporal.obtenerSiguiente();\n if(Temporal.obtenerIdentificador().equals(identificador)){\n Nodo_bodega_actual = Temporal;\n return true;\n }\n }\n return false;\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "public boolean odigraj(Koordinati poteza) {\n if (this.jeVeljavnaPoteza(poteza)) {\n plosca[poteza.getX()][poteza.getY()] = igralecNaPotezi.getPolje();\n // Potezo dodamo v odigranePoteze.\n\t\t\tthis.odigranePoteze.add(poteza);\n igralecNaPotezi = igralecNaPotezi.nasprotnik();\n return true;\n } else return false;\n }", "public boolean erTom(){\n return hode.neste == hale;\n }" ]
[ "0.6943788", "0.6478015", "0.6329001", "0.6199127", "0.6157959", "0.6123857", "0.6112238", "0.60915214", "0.60836965", "0.6083548", "0.6082837", "0.60596657", "0.6023666", "0.60026866", "0.60026866", "0.599061", "0.59743065", "0.5963594", "0.59306544", "0.5913373", "0.5910267", "0.5905843", "0.5898876", "0.5860103", "0.5843128", "0.5841254", "0.58293694", "0.58178914", "0.5816423", "0.58110034", "0.58069295", "0.58064467", "0.5804352", "0.5771271", "0.57592815", "0.5756256", "0.5754031", "0.5747303", "0.57446396", "0.57192117", "0.5718189", "0.5699699", "0.569826", "0.56979096", "0.5696688", "0.56894207", "0.5689275", "0.567252", "0.5670208", "0.567007", "0.5668869", "0.5667682", "0.5667682", "0.56673753", "0.56583494", "0.56360537", "0.5635906", "0.56309503", "0.56273305", "0.56176114", "0.56141734", "0.56073207", "0.5606346", "0.5605919", "0.5593492", "0.5590606", "0.55896175", "0.5587358", "0.5577192", "0.5564542", "0.5555754", "0.5546735", "0.5543998", "0.5520919", "0.5516896", "0.55064654", "0.5498621", "0.5495172", "0.5489687", "0.5485694", "0.54843396", "0.5484336", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5483225", "0.5481664", "0.54755265", "0.5474134", "0.54703295", "0.5469901", "0.5462073", "0.54596514", "0.5459423", "0.5456425", "0.5455097" ]
0.0
-1
suprasctrierea functiei de afisare
@Override public String toString() { return val.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void afvuren();", "public void asetaTeksti(){\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n protected void adicionar(Funcionario funcionario) {\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void trenneVerbindung();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void miseAJour();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void sendeSpielfeld();", "@Override\n\tpublic void trabajar() {\n\n\t}", "void pasarALista();", "@Override\r\n public void salir() {\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected FanisamBato(){\n\t}", "abstract void trataAltera();", "public void validerSaisie();", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public final void nonRedefinissableParEnfant(){\n\n }", "void tampilKarakterA();", "static void feladat9() {\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void func02() {\n\t\t\r\n\t}", "static void feladat4() {\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "void entrerAuGarage();", "@Override\n public void alRechazarOperacion() {\n }", "void imprimeExtrato(){\n\t\tthis.imprimeExtrato(15);\n\t}", "void Vorrücken()\n {\n }", "static void feladat10() {\n\t}", "private static void cajas() {\n\t\t\n\t}", "public abstract void alimentarse();", "void aprovarAnalise();", "@Override // Métodos que fazem a anulação\n\tpublic void vota() {\n\t\t\n\t}", "abstract void uminus();", "public abstract String dohvatiKontakt();", "@Override\n\tvoid geraDados() {\n\n\t}", "public void operacao();", "static void feladat6() {\n\t}", "public void furyo ()\t{\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void verkaufen() {\n\t}", "Funcionario(){\n }", "void atterir();", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\tpublic void func01() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void asignarVida();", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "static void feladat7() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "static void feladat3() {\n\t}", "public void leerAlimentos();", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "static void feladat5() {\n\t}", "@Override\n\tpublic void alterar() {\n\t\t\n\t}", "public void finePartita() {\n\r\n }", "public void redibujarAlgoformers() {\n\t\t\n\t}", "public void sinyal();", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void onderbreek(){\n \n }", "@Override\n\tpublic void anular() throws ExcFiltroExcepcion {\n\n\t}", "@Override\n\tpublic void salir() {\n\t\t\n\t}", "public void mo38117a() {\n }", "void TaktImpulsAusfuehren ()\n {\n \n wolkebew();\n \n }", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public void actualiserAffichage();", "public void baocun() {\n\t\t\n\t}", "public void avvia() {\n /** invoca il metodo sovrascritto della superclasse */\n super.avvia();\n }", "private void remplirUtiliseData() {\n\t}", "public void mo4359a() {\n }", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "public void realiserAcahatProduit() {\n\t\t\n\t}", "@Override\n\tpublic void imprimir() {\n\t\t\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void mo1400a() {\n }", "public void Ordenamiento() {\n\n\t}", "public void selecao () {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void loeschen() {\r\n//\t\tsuper.leuchterAbmelden(this);\r\n\t\tsuper.loeschen();\r\n\t}" ]
[ "0.7291108", "0.70359206", "0.6991138", "0.68851966", "0.6767705", "0.6751518", "0.6733344", "0.6731996", "0.66916424", "0.66822666", "0.66728175", "0.66005737", "0.65657926", "0.65478534", "0.65440875", "0.6535713", "0.6504812", "0.6485548", "0.64763397", "0.64733267", "0.6468373", "0.6456103", "0.64495766", "0.6446188", "0.6398473", "0.6398473", "0.63931566", "0.6384066", "0.6372798", "0.6366881", "0.6361839", "0.6361562", "0.63552284", "0.6343712", "0.63383925", "0.63293326", "0.6326121", "0.6326121", "0.63202626", "0.6318917", "0.6316988", "0.6303661", "0.630175", "0.62954736", "0.6288866", "0.62883425", "0.627345", "0.626993", "0.62604064", "0.62587893", "0.62527716", "0.6250656", "0.6234011", "0.62313026", "0.62266004", "0.62254673", "0.6218635", "0.6218181", "0.62145275", "0.6210757", "0.6210042", "0.62047684", "0.6200878", "0.61920136", "0.6191377", "0.6185882", "0.61842436", "0.61753464", "0.61654913", "0.61605597", "0.6160248", "0.61588097", "0.61488646", "0.6147155", "0.61419946", "0.61384714", "0.6134249", "0.61258775", "0.6119771", "0.60984474", "0.6094278", "0.6090213", "0.60897094", "0.6078115", "0.6070424", "0.60663116", "0.605035", "0.6047497", "0.60464543", "0.60435116", "0.6034443", "0.6032969", "0.60208917", "0.60178775", "0.60175395", "0.6013921", "0.6010528", "0.6005603", "0.6002393", "0.600166", "0.599963" ]
0.0
-1
functie care verifica daca un nod este rosu
public boolean isRed() { return getColor() == RED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "public void inOrden(Nodo r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.println(r.valor);\n inOrden(r.hijoDerecho);\n }\n }", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "private int nextNode(int rid) {\n if (!my_game.getMy_game().isRunning()) {\n return -1;\n }\n Robot robot = my_game.getRobots().get(rid);\n List<node_data> tmp = robots_paths.get(rid);\n if (tmp.isEmpty()) {\n fruits_status.remove(rid);\n synchronized (my_game.getFruits()) {\n if (my_game.getFruits().size() > 0) {\n Fruit fruit = findClosestFruit(robot);\n tmp = algo_g.shortestPath(robot.getSrc(),fruit.getEdge().getSrc());\n node_data dest = my_game.getGraph().getNode(fruit.getEdge().getDest());\n tmp.add(dest);\n robots_paths.put(robot.getId(),tmp);\n fruits_status.put(rid,fruit);\n }\n }\n }\n\n node_data n = tmp.get(0);\n tmp.remove(0);\n return n.getKey();\n\n\n// for (int i = 0; i < tmp.size(); i++) {\n// node_data n = tmp.get(i);\n// tmp.remove(i);\n// if (n.getKey() == robot.getSrc())\n// continue;\n// return n.getKey();\n// }\n// return -1;\n }", "boolean hasIsNodeOf();", "boolean usedByNode(Long id);", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public void inOrden(nodoArbolAVL r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.print (r.dato + \" , \");\n inOrden(r.hijoDerecho);\n \n } \n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "boolean hasHasNodeID();", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "public boolean isRealNode();", "public boolean isRealNode();", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean erTom(){\n return hode.neste == hale;\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "boolean hasNodeId();", "public boolean GO ()\r\n\t{\r\n\t\t\r\n\t\t for (GenericTreeNode<String> node : ActualNode.getChildren()) {\r\n\t\t\t if (node.getData().equalsIgnoreCase(Navigation_WHERE)){\r\n\t\t\t\t Path.add(new GenericTreeNode<String>(ActualNode));\r\n\t\t\t\t ActualNode=new GenericTreeNode<String>(node);\r\n\t\t\t return true;\r\n\t\t\t }\r\n\t }\r\n\t\t return false;\r\n\t}", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "void nodeOnline();", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "private List<Node<T>> auxiliarRecorridoPre(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tlista.add(nodo);// Inserta en la lista\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijo\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPre(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;// Retorna lista\r\n\t}", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}", "public NodoArbol obtenerNodoRemplazo(NodoArbol nodoReemp){\n\t\tNodoArbol remplazarPadre=nodoReemp;\n\t\tNodoArbol reemplazo= nodoReemp;\n\t\tNodoArbol auxiliar=nodoReemp.hijoder;\n\t\twhile(auxiliar!=null){\n\t\t\tremplazarPadre=reemplazo;\n\t\t\treemplazo= auxiliar;\n\t\t\tauxiliar=auxiliar.hijoizq;\n\t\t}\n\t\tif(reemplazo!=nodoReemp.hijoder){\n\t\t\tremplazarPadre.hijoizq= reemplazo.hijoder;\n\t\t\treemplazo.hijoder= nodoReemp.hijoder;\n\t\t} \n\t\tSystem.out.println(\"el nodo reeemplazo es: \"+reemplazo);\n\t\treturn reemplazo;\n\t}", "boolean hasIsCentralNode();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "boolean hasNode();", "boolean hasNode();", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }", "boolean getTreeNodeIdNull();", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "public void cekNotif(){\n try{\n Gref.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n\n\n String a = dataSnapshot.child(\"to_id\").getValue().toString();\n\n if (a.equals(BerandaActivity.id)){\n\n Toast.makeText(context.getApplicationContext(),\"Ada pesan komunitas baru\",Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n\n }\n });}\n catch (Exception e){\n\n Log.e(\"eror add child : \",\"\"+e);\n }\n\n }", "public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}", "public void leggInn(N n, V v) {\n Node nyNode = new Node(n, v);\n Node node = listehode.neste;\n\n if (inneholder(n)) {\n System.out.println(\"FEIL! OBJEKTET ER ALLEREDE I BEHOLDEREN \");\n return;\n }\n\n //Legger objektet forst i beholderen om listehode.nestepeker ikke peker paa noe\n //dvs om beholderen er tom\n if (listehode.neste == null) {\n listehode.neste = nyNode;\n antall++;\n return;\n }\n\n //Legger nyNode sin neste til listehode.neste sin nestepeker\n if (nyNode.compareTo(listehode.neste.nkl) < 0) {\n nyNode.neste = listehode.neste;\n listehode.neste = nyNode;\n antall++;\n return;\n\n //Sjekker om det nye objektet er mindre enn det gamle og om det\n //finnes en nestepeker hvis det nye objektet blir lagt til\n } else if ((nyNode.compareTo(node.nkl) < 0) && !listehode.neste.hasNext()) {\n listehode.neste = nyNode;\n nyNode = node.neste;\n antall++;\n return;\n }\n\n //Saa lenge det forste-objektet sin nestepeker ikke er null sa gaar\n //lokka. Da sjekkes det om det nye objektet er mindre enn det\n //neste objektet i lista, hvis det er det, sa legges det til foer\n //det neste objektet\n while (node.neste != null) {\n if(nyNode.compareTo(node.neste.nkl) < 0) {\n nyNode.neste = node.neste;\n node.neste = nyNode;\n antall++;\n return;\n }\n node = node.neste;\n }\n node.neste = nyNode;\n antall++;\n return;\n }", "boolean hasTreeNodeId();", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "String getIdNode2();", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(87)\n boolean relationsNodeInTree();", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "public Node raiz(){\r\n\treturn this.raiz;\r\n}", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "public int size(){\n return n_nodi;\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\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\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "public boolean eDentro(Casella c) { return eDentro(c.riga,c.colonna); }", "public void testtraduciraOSM()\n\t\t{\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.6\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.7\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.8\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())!=tipo1.traduciraOSM(tipo1.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.9\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())!=tipo2.traduciraOSM(tipo2.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.10\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())==tipo3.traduciraOSM(tipo3.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.11\")); //$NON-NLS-1$\n\t\t}", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "String getIdNode1();", "public boolean fjernElement(N n) {\n if (listehode.neste == null) {\n return false;\n }\n if (listehode.neste.nkl.compareTo(n) == 0){\n listehode.neste = listehode.neste.neste;\n antall--;\n return true;\n }\n\n Node forrige = listehode.neste;\n Node node = listehode.neste.neste;\n\n while (node.hasNext()){\n if (node.nkl.compareTo(n) == 0){\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n forrige = node;\n node = node.neste;\n }\n\n if (node.nkl.compareTo(n) == 0) {\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n return false;\n }", "public boolean leer(ArrayList<Correo> cor){\r\n for(Correo corre:cor){\r\n if(corre.getLeido()==false){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Bean\r\n public boolean testNeoj() {\n \tval node = neo4jRepo.findOne(10L,2);\r\n\t\tnode.getPhrases().forEach(System.out::println);\r\n\t\tnode.getChildNodes().forEach(System.out::println);\r\n\t\tSystem.out.println(node);\r\n\r\n\t\treturn true;\r\n\t}", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "boolean hasIsMidNode();", "private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }", "int nilaiMaks(Node node){\n if (node.right != null) { // karena node yg nilai nya lebih besar ada di kanan\n return nilaiMaks(node.right); // jadi jika tidak sama dengan null, maka akan me return node sebelah kanan\n }\n return node.data;\n }", "@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "boolean isDirected();", "public boolean odigraj(Koordinati poteza) {\n if (this.jeVeljavnaPoteza(poteza)) {\n plosca[poteza.getX()][poteza.getY()] = igralecNaPotezi.getPolje();\n // Potezo dodamo v odigranePoteze.\n\t\t\tthis.odigranePoteze.add(poteza);\n igralecNaPotezi = igralecNaPotezi.nasprotnik();\n return true;\n } else return false;\n }", "public interface InterfazNodo extends VisitableNode{\n\t\tpublic void add(InterfazNodo nodo);\n\t\tpublic void remove(InterfazNodo nodo);\n\t\tpublic Codigo generarCodigo(Codigo codigo, TempManager tempManager, LabelManager labelManager);\n\t\tpublic TablaDeSimbolos acceptTSVisitor(\n\t\t\t\tTablaSimbolosVisitor tablaSimbolosVisitor);\n\t\t\n\t}", "public String read_node(NodeWS node) throws HibernateException\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tString i=null;\r\n\t\t\t\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t \r\n\t\t i= (String) sesion.createQuery(\"SELECT u.node_name FROM Node u WHERE u.MAC_address ='\"+node.getMAC_address()+\"' and u.port_number ='\"+node.getPort_number()+\"'\").uniqueResult();\r\n\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t //id_user= Integer.parseInt(i);\r\n\t\t //user = (User) sesion.get(User.class, id_user); \r\n\t\t \r\n\t\t } finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return i; \r\n\t\t}", "@Override\t\n\tpublic void innKoe(T element){\n\t\t\tLinearNode<T> nyNode= new LinearNode<T>(element);\n\t\t\t\n\t\t\tif(erTom()){\n\t\t\t\tfront = nyNode;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tbak.setNeste(nyNode);\n\t\t\t}\n\t\t\tbak = nyNode;\n\t\t\tantall++;\n\t\t\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "OperationNode getNode();", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public boolean canConnectRedstone(ym iba, int i, int j, int k, int dir)\r\n/* 24: */ {\r\n/* 25:31 */ if (dir < 0) {\r\n/* 26:31 */ return false;\r\n/* 27: */ }\r\n/* 28:33 */ IRedPowerConnectable irp = (IRedPowerConnectable)CoreLib.getTileEntity(iba, i, j, k, IRedPowerConnectable.class);\r\n/* 29:36 */ if (irp == null) {\r\n/* 30:36 */ return false;\r\n/* 31: */ }\r\n/* 32:37 */ int s = RedPowerLib.mapLocalToRot(irp.getConnectableMask(), 2);\r\n/* 33:38 */ return (s & 1 << dir) > 0;\r\n/* 34: */ }", "public boolean esHoja(Nodo hoja){\r\n\t\tif ((hoja.getLeft()==null)&&(hoja.getRight()==null))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public Node<T> darTope();", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "public abstract boolean isUsing(Long graphNode);", "@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }", "public Nodo dosNoSeguidos(Nodo nodo) throws IOException{\n System.out.println(\"----------------inicio heuristica dosnoseguidos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n \n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i = 0;i<numFilas;i++){\n if(operadores.isFilaVacia(nodo.getMatriz(), i) == true){\n //filas\n auxListFila = (ArrayListFila)filas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n }\n }//fin color\n\n\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListFila.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListFila.getColor(j2);\n\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n //pinta los extremos de la fila\n matriz = operadores.pintarPosicion(matriz,i, (numColumnas-1), auxColor1.getColor());\n \n matriz = operadores.pintarPosicion(matriz, i, 0, auxColor1.getColor());\n \n //pinta el resto de la fila\n matriz = operadores.pintarFilaCompleta(matriz, auxColor2.getColor(), i);\n //descuenta los colores en las filas\n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n //descontar colores en las columnas\n for(int c=0;c<numColumnas;c++){\n auxListColumna = (ArrayListColumna)columnas.get(c);\n \n if(c == 0){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n \n }\n }else if(c == (numColumnas-1)){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n }else{\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor2.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }//fin isfilaVacia\n }//fin filas\n \n \n //---------columnas\n for(int i = 0;i<numColumnas;i++){\n if(operadores.isColumnaVacia(nodo.getMatriz(), i) == true){ \n //columnas\n auxListColumna = (ArrayListColumna)columnas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListColumna.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n } \n }//fin color\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListColumna.getColor(j2);\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n matriz = operadores.pintarPosicion(matriz,(numFilas-1), i, auxColor1.getColor());\n matriz = operadores.pintarPosicion(matriz, 0, i, auxColor1.getColor());\n \n matriz = operadores.pintarColumnaCompleta(matriz, auxColor2.getColor(), i);\n \n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n \n //descontar colores en las columnas\n for(int f=0;f<numFilas;f++){\n auxListFila = (ArrayListFila)filas.get(f);\n \n if(f == 0){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else if(f == (numColumnas-1)){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else{\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor2.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }\n }//fin columnas\n }//fin while principal\n \n System.out.println(\"---------------final heuristica dosnoseguidos---------------\");\n return nodo;\n }", "public boolean eNera(Casella casella)\n { return eNera(casella.riga,casella.colonna); }", "boolean handlesNodeId(String id);", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "public boolean isConnectedToRendezVous() {\r\n return !rendezVous.isEmpty();\r\n }" ]
[ "0.60357976", "0.5992636", "0.59656864", "0.5952597", "0.5941836", "0.59248465", "0.5900762", "0.58957255", "0.58890206", "0.584963", "0.58368206", "0.5767227", "0.57309526", "0.5708773", "0.570733", "0.5682331", "0.56771415", "0.5665834", "0.56481564", "0.5621566", "0.5614015", "0.5609957", "0.56038123", "0.55985093", "0.5588492", "0.5582949", "0.5578893", "0.5571707", "0.5571707", "0.5564031", "0.5545818", "0.55397016", "0.55281544", "0.55251914", "0.5517546", "0.5513712", "0.5513273", "0.5513134", "0.5503382", "0.5493271", "0.54850686", "0.54768586", "0.54719776", "0.54704", "0.5468962", "0.5468693", "0.546109", "0.546109", "0.5460408", "0.5456276", "0.54482245", "0.5443535", "0.5433089", "0.54299617", "0.5428994", "0.5410186", "0.5400135", "0.53815776", "0.53815776", "0.5380065", "0.53778005", "0.5376546", "0.5376059", "0.5372199", "0.5367652", "0.53644204", "0.53521633", "0.5352117", "0.5352106", "0.53474146", "0.5344406", "0.5340178", "0.53335553", "0.532995", "0.5326334", "0.5323", "0.53197", "0.53153974", "0.530024", "0.52965015", "0.5296493", "0.52961636", "0.529096", "0.5290032", "0.5289143", "0.5288803", "0.52687323", "0.52686536", "0.5267255", "0.5266758", "0.52576995", "0.52534616", "0.52511585", "0.5248688", "0.52442634", "0.5244133", "0.5242496", "0.5240381", "0.52250075", "0.5222844", "0.5218827" ]
0.0
-1
functie care verifica daca un nod este negru
public boolean isBlack() { return !isRed(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "public void leggInn(N n, V v) {\n Node nyNode = new Node(n, v);\n Node node = listehode.neste;\n\n if (inneholder(n)) {\n System.out.println(\"FEIL! OBJEKTET ER ALLEREDE I BEHOLDEREN \");\n return;\n }\n\n //Legger objektet forst i beholderen om listehode.nestepeker ikke peker paa noe\n //dvs om beholderen er tom\n if (listehode.neste == null) {\n listehode.neste = nyNode;\n antall++;\n return;\n }\n\n //Legger nyNode sin neste til listehode.neste sin nestepeker\n if (nyNode.compareTo(listehode.neste.nkl) < 0) {\n nyNode.neste = listehode.neste;\n listehode.neste = nyNode;\n antall++;\n return;\n\n //Sjekker om det nye objektet er mindre enn det gamle og om det\n //finnes en nestepeker hvis det nye objektet blir lagt til\n } else if ((nyNode.compareTo(node.nkl) < 0) && !listehode.neste.hasNext()) {\n listehode.neste = nyNode;\n nyNode = node.neste;\n antall++;\n return;\n }\n\n //Saa lenge det forste-objektet sin nestepeker ikke er null sa gaar\n //lokka. Da sjekkes det om det nye objektet er mindre enn det\n //neste objektet i lista, hvis det er det, sa legges det til foer\n //det neste objektet\n while (node.neste != null) {\n if(nyNode.compareTo(node.neste.nkl) < 0) {\n nyNode.neste = node.neste;\n node.neste = nyNode;\n antall++;\n return;\n }\n node = node.neste;\n }\n node.neste = nyNode;\n antall++;\n return;\n }", "@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "boolean hasIsNodeOf();", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "boolean getTreeNodeIdNull();", "void testNAN (Tester t){\n\n ANode<Integer> s1 = new Sentinel<Integer>();\n ANode<Integer> s2 = new Sentinel<Integer>();\n\n ANode<Integer> n1 = new Node<Integer>(1); \n ANode<Integer> n2 = new Node<Integer>(2, n1, s1);\n\n t.checkExpect(n1.getData(), 1);\n t.checkExpect(n2.getData(), 2);\n\n t.checkExpect(n2.size(n2), 2); \n\n }", "public boolean isN(int X, int Y, int x, int y){\n if(X - x < 2 && X - x> -2 && Y - y < 2 && Y - y> -2 && mines[x][y]==1){//tuk proverqvame dali razlikite na koordinatite na dvete sravnqvani kutii sa v definicionntata oblast(-1;1),zashtoto ako sa s razlika v tova dm znachi che se dopirat (shte go obqsnq po dobre irl)\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "Integer getNLNDreu();", "public boolean fjernElement(N n) {\n if (listehode.neste == null) {\n return false;\n }\n if (listehode.neste.nkl.compareTo(n) == 0){\n listehode.neste = listehode.neste.neste;\n antall--;\n return true;\n }\n\n Node forrige = listehode.neste;\n Node node = listehode.neste.neste;\n\n while (node.hasNext()){\n if (node.nkl.compareTo(n) == 0){\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n forrige = node;\n node = node.neste;\n }\n\n if (node.nkl.compareTo(n) == 0) {\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n return false;\n }", "boolean hasNodeId();", "public boolean isRealNode();", "public boolean isRealNode();", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "boolean hasHasNodeID();", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "@Override\t\n\tpublic void innKoe(T element){\n\t\t\tLinearNode<T> nyNode= new LinearNode<T>(element);\n\t\t\t\n\t\t\tif(erTom()){\n\t\t\t\tfront = nyNode;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tbak.setNeste(nyNode);\n\t\t\t}\n\t\t\tbak = nyNode;\n\t\t\tantall++;\n\t\t\t}", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "private Node<T> finnNode(int indeks) {\n int k = antall / 2;\n int i = 0;\n\n Node<T> node = hode;\n\n if (indeks <= k)\n while (i++ != indeks) node = node.neste;\n else {\n node = hale;\n i = antall - 1;\n while (i-- != indeks) node = node.forrige;\n }\n\n return node;\n }", "@Test\n\t public void testGetNode() {\n\t\tDGraph g1 = null;\n\t\tDGraph g = initFactory(g1);\n\t\tg.removeNode(1);\n\t\tg.removeNode(2);\n\t\t//g.removeNode(4);\n\t\tassertTrue(g.getNode(1)==null);\n\t\tassertTrue(g.getNode(2)==null);\n\t\tassertTrue(g.getNode(3)!=null);\n\t}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "boolean usedByNode(Long id);", "public final AstValidator.rel_op_ne_return rel_op_ne() throws RecognitionException {\n AstValidator.rel_op_ne_return retval = new AstValidator.rel_op_ne_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set524=null;\n\n CommonTree set524_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:770:11: ( STR_OP_NE | NUM_OP_NE )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n set524=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==NUM_OP_NE||input.LA(1)==STR_OP_NE ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set524_tree = (CommonTree)adaptor.dupNode(set524);\n\n\n adaptor.addChild(root_0, set524_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n if ( state.backtracking==0 ) {\n } \n\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "int nilaiMaks(Node node){\n if (node.right != null) { // karena node yg nilai nya lebih besar ada di kanan\n return nilaiMaks(node.right); // jadi jika tidak sama dengan null, maka akan me return node sebelah kanan\n }\n return node.data;\n }", "@Bean\r\n public boolean testNeoj() {\n \tval node = neo4jRepo.findOne(10L,2);\r\n\t\tnode.getPhrases().forEach(System.out::println);\r\n\t\tnode.getChildNodes().forEach(System.out::println);\r\n\t\tSystem.out.println(node);\r\n\r\n\t\treturn true;\r\n\t}", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public graphNode isMember(graphNode ne){\n\t\tif(this.head==null){return null;}\n\t\tgraphNode travgraphNode=this.head;\n\t\twhile(travgraphNode!=null){\n\t\t\tif(travgraphNode.equals(ne)){\n\t\t\t\treturn travgraphNode;\n\t\t\t}\n\t\t\ttravgraphNode=travgraphNode.next;\n\t\t}\n\t\treturn null;\n\t}", "public int size(){\n return n_nodi;\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public interface InterfazNodo extends VisitableNode{\n\t\tpublic void add(InterfazNodo nodo);\n\t\tpublic void remove(InterfazNodo nodo);\n\t\tpublic Codigo generarCodigo(Codigo codigo, TempManager tempManager, LabelManager labelManager);\n\t\tpublic TablaDeSimbolos acceptTSVisitor(\n\t\t\t\tTablaSimbolosVisitor tablaSimbolosVisitor);\n\t\t\n\t}", "@Override\n public boolean isMissingNode() { return false; }", "private int nextNode(int rid) {\n if (!my_game.getMy_game().isRunning()) {\n return -1;\n }\n Robot robot = my_game.getRobots().get(rid);\n List<node_data> tmp = robots_paths.get(rid);\n if (tmp.isEmpty()) {\n fruits_status.remove(rid);\n synchronized (my_game.getFruits()) {\n if (my_game.getFruits().size() > 0) {\n Fruit fruit = findClosestFruit(robot);\n tmp = algo_g.shortestPath(robot.getSrc(),fruit.getEdge().getSrc());\n node_data dest = my_game.getGraph().getNode(fruit.getEdge().getDest());\n tmp.add(dest);\n robots_paths.put(robot.getId(),tmp);\n fruits_status.put(rid,fruit);\n }\n }\n }\n\n node_data n = tmp.get(0);\n tmp.remove(0);\n return n.getKey();\n\n\n// for (int i = 0; i < tmp.size(); i++) {\n// node_data n = tmp.get(i);\n// tmp.remove(i);\n// if (n.getKey() == robot.getSrc())\n// continue;\n// return n.getKey();\n// }\n// return -1;\n }", "public boolean eNera(Casella casella)\n { return eNera(casella.riga,casella.colonna); }", "@Override\n public int indeksTil(T verdi) {\n int indeks=0;\n Node<T> curr= hode;\n for (; curr!=null; curr= curr.neste, indeks++){\n if (curr.verdi.equals(verdi)){\n return indeks;\n\n }// end if\n\n }// end for\n return -1;\n }", "public boolean erTom(){\n return hode.neste == hale;\n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "boolean hasIsMidNode();", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public Node<T> darTope();", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "boolean hasNode();", "boolean hasNode();", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "public boolean my_soltuion(Node n){\n\t\tif (n == null || n.next == null){\n\t\t\treturn false;\n\t\t\t//This is a failure\n\t\t}\n\t\tNode next = n.next;\n\t\tn.data = next.data;\n\t\tn.next = next.next;\n\t\treturn true;\n\t}", "public int getNid() {\r\n\t\treturn nid;\r\n\t}", "boolean hasTreeNodeId();", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "boolean getNodeCharacteristicIdNull();", "public ListaBrojeva izdvojElmenteNaNeparnimPozicijama() {\n if (!jePrazna()) {\n ListaBrojeva neparni = new ListaBrojeva();\n \n Element neparniKraj = null;\n Element tek = prvi;\n Element preth = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n if (br % 2 == 0) {\n preth.veza = tek.veza;\n if (neparni.prvi == null) {\n neparni.prvi = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n else {\n neparniKraj.veza = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n tek = preth;\n }\n br++;\n }\n return neparni;\n }\n return null;\n }", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "String getIdNode2();", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public LinkedList<Nodo> eliminarNodoNotExec(Nodo nodoElim){\n LinkedList<Nodo> nodoNotExec=new LinkedList<>();\n \n for(Nodo n:nodoElim.getHermanos().values()){\n //if((n.getParent()==nodoElim.getParent())&&(n.getSimbolo().equals(nodoElim.getSimbolo()))){\n nodoNotExec.add(n);\n \n //}\n }\n if(!nodoNotExec.isEmpty()){\n for(Nodo n:nodoNotExec){\n panelPadre.getChildren().removeAll(n.getRectangle(),n.getLabel());\n //nodos.remove(n);\n } \n \n } \n return nodoNotExec;\n }", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "public int getNickel () {\n return NNickel;\n }", "public boolean hasNi(int nodeKey) {\n return this.neighborEdges.get(nodeKey) != null ? true : false;\n }", "boolean hasIsCentralNode();", "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "void nodeOnline();", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "public abstract boolean isUsing(Long graphNode);", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "public boolean isNodePresent(int nd) {\n if ((nd >= (int) nodeVector.size() || (nodeVector.get(nd).getIndex() == invalid_node_index))) {\n return false;\n } else {\n return true;\n }\n }", "public NetworkElementMO queryNeByEsn(String esn) throws ServiceException {\r\n Map<String, String> conditionMap = new HashMap<>();\r\n conditionMap.put(\"serialNumber\", esn);\r\n List<NetworkElementMO> neList = neInvDao.query(conditionMap);\r\n if(neList.isEmpty()) {\r\n return null;\r\n } else if(neList.size() == 1) {\r\n return neList.get(0);\r\n } else {\r\n throw new ServiceException(\"Esn should be unique\");\r\n }\r\n }", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(87)\n boolean relationsNodeInTree();", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}", "Node getNode();", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public EichhoernchenKnoten getNechstes() {\n return nechstes;\n }", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "N getNode(int id);", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "static int nullNode() {\n\t\treturn -1;\n\t}" ]
[ "0.6404752", "0.63575685", "0.6195872", "0.6128888", "0.60572034", "0.60485727", "0.60252506", "0.602014", "0.59632957", "0.59437215", "0.5889633", "0.5877876", "0.58727264", "0.58174956", "0.5788014", "0.5779814", "0.57688314", "0.5755797", "0.57362396", "0.57362396", "0.57227767", "0.5717609", "0.5691931", "0.5683555", "0.5680242", "0.568008", "0.5675416", "0.5670667", "0.5659205", "0.5644529", "0.5619899", "0.5617965", "0.5617605", "0.5617605", "0.5614105", "0.56044585", "0.5599353", "0.55739295", "0.55737936", "0.55476135", "0.55471224", "0.55402184", "0.55307496", "0.5529508", "0.55189115", "0.54941964", "0.5492503", "0.54806954", "0.54760844", "0.54745066", "0.5474442", "0.5468104", "0.5460607", "0.54587543", "0.5457667", "0.5442226", "0.5434715", "0.5434715", "0.5433043", "0.5432338", "0.54179597", "0.541549", "0.5411935", "0.5407849", "0.5404428", "0.5402174", "0.539888", "0.5395268", "0.5386593", "0.5375739", "0.537372", "0.5366671", "0.5362927", "0.53579617", "0.53501004", "0.5349097", "0.53473854", "0.53447706", "0.5341514", "0.5341207", "0.53295845", "0.5323457", "0.5322955", "0.53192526", "0.5311848", "0.53113765", "0.53113055", "0.5307277", "0.53060585", "0.52992797", "0.5294125", "0.52896273", "0.5283362", "0.52833486", "0.5280314", "0.5273956", "0.5272314", "0.5271882", "0.52694684", "0.52656764", "0.526525" ]
0.0
-1
functie care verifica daca un nod este rosu
public static boolean isRed(Node<?> node) { return getColor(node) == RED; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "public void inOrden(Nodo r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.println(r.valor);\n inOrden(r.hijoDerecho);\n }\n }", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "private int nextNode(int rid) {\n if (!my_game.getMy_game().isRunning()) {\n return -1;\n }\n Robot robot = my_game.getRobots().get(rid);\n List<node_data> tmp = robots_paths.get(rid);\n if (tmp.isEmpty()) {\n fruits_status.remove(rid);\n synchronized (my_game.getFruits()) {\n if (my_game.getFruits().size() > 0) {\n Fruit fruit = findClosestFruit(robot);\n tmp = algo_g.shortestPath(robot.getSrc(),fruit.getEdge().getSrc());\n node_data dest = my_game.getGraph().getNode(fruit.getEdge().getDest());\n tmp.add(dest);\n robots_paths.put(robot.getId(),tmp);\n fruits_status.put(rid,fruit);\n }\n }\n }\n\n node_data n = tmp.get(0);\n tmp.remove(0);\n return n.getKey();\n\n\n// for (int i = 0; i < tmp.size(); i++) {\n// node_data n = tmp.get(i);\n// tmp.remove(i);\n// if (n.getKey() == robot.getSrc())\n// continue;\n// return n.getKey();\n// }\n// return -1;\n }", "boolean hasIsNodeOf();", "boolean usedByNode(Long id);", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public void inOrden(nodoArbolAVL r){\n if(r != null){\n inOrden(r.hijoIzquierdo);\n System.out.print (r.dato + \" , \");\n inOrden(r.hijoDerecho);\n \n } \n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "boolean hasHasNodeID();", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "public boolean isRealNode();", "public boolean isRealNode();", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "public boolean erTom(){\n return hode.neste == hale;\n }", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "boolean hasNodeId();", "public boolean GO ()\r\n\t{\r\n\t\t\r\n\t\t for (GenericTreeNode<String> node : ActualNode.getChildren()) {\r\n\t\t\t if (node.getData().equalsIgnoreCase(Navigation_WHERE)){\r\n\t\t\t\t Path.add(new GenericTreeNode<String>(ActualNode));\r\n\t\t\t\t ActualNode=new GenericTreeNode<String>(node);\r\n\t\t\t return true;\r\n\t\t\t }\r\n\t }\r\n\t\t return false;\r\n\t}", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "void nodeOnline();", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "private List<Node<T>> auxiliarRecorridoPre(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tlista.add(nodo);// Inserta en la lista\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijo\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPre(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;// Retorna lista\r\n\t}", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}", "public NodoArbol obtenerNodoRemplazo(NodoArbol nodoReemp){\n\t\tNodoArbol remplazarPadre=nodoReemp;\n\t\tNodoArbol reemplazo= nodoReemp;\n\t\tNodoArbol auxiliar=nodoReemp.hijoder;\n\t\twhile(auxiliar!=null){\n\t\t\tremplazarPadre=reemplazo;\n\t\t\treemplazo= auxiliar;\n\t\t\tauxiliar=auxiliar.hijoizq;\n\t\t}\n\t\tif(reemplazo!=nodoReemp.hijoder){\n\t\t\tremplazarPadre.hijoizq= reemplazo.hijoder;\n\t\t\treemplazo.hijoder= nodoReemp.hijoder;\n\t\t} \n\t\tSystem.out.println(\"el nodo reeemplazo es: \"+reemplazo);\n\t\treturn reemplazo;\n\t}", "boolean hasIsCentralNode();", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "boolean hasNode();", "boolean hasNode();", "@Override\n public void vaciar() {\n this.raiz = NodoBinario.nodoVacio();\n }", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }", "boolean getTreeNodeIdNull();", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "public void cekNotif(){\n try{\n Gref.addChildEventListener(new ChildEventListener() {\n @Override\n public void onChildAdded(DataSnapshot dataSnapshot, String s) {\n\n\n\n String a = dataSnapshot.child(\"to_id\").getValue().toString();\n\n if (a.equals(BerandaActivity.id)){\n\n Toast.makeText(context.getApplicationContext(),\"Ada pesan komunitas baru\",Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n\n @Override\n public void onChildChanged(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onChildRemoved(DataSnapshot dataSnapshot) {\n\n }\n\n @Override\n public void onChildMoved(DataSnapshot dataSnapshot, String s) {\n\n }\n\n @Override\n public void onCancelled(FirebaseError firebaseError) {\n\n }\n });}\n catch (Exception e){\n\n Log.e(\"eror add child : \",\"\"+e);\n }\n\n }", "public void inOrden(){\n\t\tPlanta planta= Singleton.GetPlanta();\n\t Arbol <T> aux=null;\n\t if (!vacio()) {\n\t if ((aux=getHijoIzq())!=null) {\n\t aux.inOrden();\n\t } \n\t \n\t planta.out().print(\" \"+this.datoRaiz);\n\t \n\t if ((aux=getHijoDer())!=null){\n\t aux.inOrden();\n\t } \n\t }\n\t}", "public void leggInn(N n, V v) {\n Node nyNode = new Node(n, v);\n Node node = listehode.neste;\n\n if (inneholder(n)) {\n System.out.println(\"FEIL! OBJEKTET ER ALLEREDE I BEHOLDEREN \");\n return;\n }\n\n //Legger objektet forst i beholderen om listehode.nestepeker ikke peker paa noe\n //dvs om beholderen er tom\n if (listehode.neste == null) {\n listehode.neste = nyNode;\n antall++;\n return;\n }\n\n //Legger nyNode sin neste til listehode.neste sin nestepeker\n if (nyNode.compareTo(listehode.neste.nkl) < 0) {\n nyNode.neste = listehode.neste;\n listehode.neste = nyNode;\n antall++;\n return;\n\n //Sjekker om det nye objektet er mindre enn det gamle og om det\n //finnes en nestepeker hvis det nye objektet blir lagt til\n } else if ((nyNode.compareTo(node.nkl) < 0) && !listehode.neste.hasNext()) {\n listehode.neste = nyNode;\n nyNode = node.neste;\n antall++;\n return;\n }\n\n //Saa lenge det forste-objektet sin nestepeker ikke er null sa gaar\n //lokka. Da sjekkes det om det nye objektet er mindre enn det\n //neste objektet i lista, hvis det er det, sa legges det til foer\n //det neste objektet\n while (node.neste != null) {\n if(nyNode.compareTo(node.neste.nkl) < 0) {\n nyNode.neste = node.neste;\n node.neste = nyNode;\n antall++;\n return;\n }\n node = node.neste;\n }\n node.neste = nyNode;\n antall++;\n return;\n }", "boolean hasTreeNodeId();", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public boolean buscar(String referencia){\n Nodo aux = inicio;\r\n // Bandera para indicar si el valor existe.\r\n boolean encontrado = false;\r\n // Recorre la lista hasta encontrar el elemento o hasta \r\n // llegar al final de la lista.\r\n while(aux != null && encontrado != true){\r\n // Consulta si el valor del nodo es igual al de referencia.\r\n if (referencia == aux.getValor()){\r\n // Canbia el valor de la bandera.\r\n encontrado = true;\r\n }\r\n else{\r\n // Avansa al siguiente. nodo.\r\n aux = aux.getSiguiente();\r\n }\r\n }\r\n // Retorna el resultado de la bandera.\r\n return encontrado;\r\n }", "String getIdNode2();", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(87)\n boolean relationsNodeInTree();", "public Boolean node_exists (NodeWS node) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tQuery i = null;\r\n\t\t\t\t\t\r\n\t\t\t\t\tiniciaOperacion();\r\n\t\t\t\t\ti = sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name = :seu\"); \r\n\t\t\t\t i.setString(\"seu\", node.getNode_name());\r\n\t\t\t\t \r\n\t\t\t\t return (i.uniqueResult() != null);\r\n\t\t\t\t}", "public Node raiz(){\r\n\treturn this.raiz;\r\n}", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "public int size(){\n return n_nodi;\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\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\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "public boolean eDentro(Casella c) { return eDentro(c.riga,c.colonna); }", "public void testtraduciraOSM()\n\t\t{\n\t\t\tTipoNodoLeisure tipo1 = new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.6\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo2= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.7\")); //$NON-NLS-1$\n\t\t\tTipoNodoLeisure tipo3= new TipoNodoLeisure(Messages.getString(\"TipoNodoLeisureTest.8\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())!=tipo1.traduciraOSM(tipo1.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.9\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())!=tipo2.traduciraOSM(tipo2.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.10\")); //$NON-NLS-1$\n\t\t\tif (tipo1.traduciraOSM(tipo1.getValorTipo())==tipo3.traduciraOSM(tipo3.getValorTipo()))\n\t\t\t\tfail(Messages.getString(\"TipoNodoLeisureTest.11\")); //$NON-NLS-1$\n\t\t}", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public void insertarOrden(Object dato) {\n Nodo nuevo = new Nodo(dato);\n int res = 0;\n // System.out.println(\"esxa\"+res);\n if (primero == null) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n // System.out.println(\"Es nulo\");\n// System.out.println(\"sss\"+primero.getDato());\n } else {\n res = comp.evaluar(dato, primero.getDato());\n // System.out.println(\"\"+res);\n if (res == -1) {\n nuevo.setReferencia(primero);\n primero = nuevo;\n } else {\n int auxres = 0;\n Nodo anterior, actual;\n anterior = actual = primero;\n auxres = comp.evaluar(dato, actual.getDato());\n while ((actual.getReferencia() != null) && (auxres == 1)) {\n anterior = actual;\n actual = actual.getReferencia();\n auxres = comp.evaluar(dato, actual.getDato());\n }\n if (auxres == 1) {\n anterior = actual;\n }\n nuevo.setReferencia(anterior.getReferencia());\n anterior.setReferencia(nuevo);\n\n }\n }\n\n }", "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "String getIdNode1();", "public boolean fjernElement(N n) {\n if (listehode.neste == null) {\n return false;\n }\n if (listehode.neste.nkl.compareTo(n) == 0){\n listehode.neste = listehode.neste.neste;\n antall--;\n return true;\n }\n\n Node forrige = listehode.neste;\n Node node = listehode.neste.neste;\n\n while (node.hasNext()){\n if (node.nkl.compareTo(n) == 0){\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n forrige = node;\n node = node.neste;\n }\n\n if (node.nkl.compareTo(n) == 0) {\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n return false;\n }", "public boolean leer(ArrayList<Correo> cor){\r\n for(Correo corre:cor){\r\n if(corre.getLeido()==false){\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "@Bean\r\n public boolean testNeoj() {\n \tval node = neo4jRepo.findOne(10L,2);\r\n\t\tnode.getPhrases().forEach(System.out::println);\r\n\t\tnode.getChildNodes().forEach(System.out::println);\r\n\t\tSystem.out.println(node);\r\n\r\n\t\treturn true;\r\n\t}", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "boolean hasIsMidNode();", "private int contar(String nombre) {\n int c = 0;\n for (Nodo<Integer, Reservacion> th1 : this.th) {\n if (th1 != null && th1.value.Cliente().equals(nombre)) {\n c++;\n }\n }\n return c;\n }", "int nilaiMaks(Node node){\n if (node.right != null) { // karena node yg nilai nya lebih besar ada di kanan\n return nilaiMaks(node.right); // jadi jika tidak sama dengan null, maka akan me return node sebelah kanan\n }\n return node.data;\n }", "@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "boolean isDirected();", "public boolean odigraj(Koordinati poteza) {\n if (this.jeVeljavnaPoteza(poteza)) {\n plosca[poteza.getX()][poteza.getY()] = igralecNaPotezi.getPolje();\n // Potezo dodamo v odigranePoteze.\n\t\t\tthis.odigranePoteze.add(poteza);\n igralecNaPotezi = igralecNaPotezi.nasprotnik();\n return true;\n } else return false;\n }", "public interface InterfazNodo extends VisitableNode{\n\t\tpublic void add(InterfazNodo nodo);\n\t\tpublic void remove(InterfazNodo nodo);\n\t\tpublic Codigo generarCodigo(Codigo codigo, TempManager tempManager, LabelManager labelManager);\n\t\tpublic TablaDeSimbolos acceptTSVisitor(\n\t\t\t\tTablaSimbolosVisitor tablaSimbolosVisitor);\n\t\t\n\t}", "public String read_node(NodeWS node) throws HibernateException\r\n\t\t{ \r\n\t\t\t\r\n\t\t\tString i=null;\r\n\t\t\t\r\n\t\t try \r\n\t\t { \r\n\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t \r\n\t\t i= (String) sesion.createQuery(\"SELECT u.node_name FROM Node u WHERE u.MAC_address ='\"+node.getMAC_address()+\"' and u.port_number ='\"+node.getPort_number()+\"'\").uniqueResult();\r\n\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t //id_user= Integer.parseInt(i);\r\n\t\t //user = (User) sesion.get(User.class, id_user); \r\n\t\t \r\n\t\t } finally \r\n\t\t { \r\n\t\t sesion.close(); \r\n\t\t } \r\n\t\t return i; \r\n\t\t}", "@Override\t\n\tpublic void innKoe(T element){\n\t\t\tLinearNode<T> nyNode= new LinearNode<T>(element);\n\t\t\t\n\t\t\tif(erTom()){\n\t\t\t\tfront = nyNode;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tbak.setNeste(nyNode);\n\t\t\t}\n\t\t\tbak = nyNode;\n\t\t\tantall++;\n\t\t\t}", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "OperationNode getNode();", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "public boolean canConnectRedstone(ym iba, int i, int j, int k, int dir)\r\n/* 24: */ {\r\n/* 25:31 */ if (dir < 0) {\r\n/* 26:31 */ return false;\r\n/* 27: */ }\r\n/* 28:33 */ IRedPowerConnectable irp = (IRedPowerConnectable)CoreLib.getTileEntity(iba, i, j, k, IRedPowerConnectable.class);\r\n/* 29:36 */ if (irp == null) {\r\n/* 30:36 */ return false;\r\n/* 31: */ }\r\n/* 32:37 */ int s = RedPowerLib.mapLocalToRot(irp.getConnectableMask(), 2);\r\n/* 33:38 */ return (s & 1 << dir) > 0;\r\n/* 34: */ }", "public boolean esHoja(Nodo hoja){\r\n\t\tif ((hoja.getLeft()==null)&&(hoja.getRight()==null))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public Node<T> darTope();", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "public abstract boolean isUsing(Long graphNode);", "@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }", "public Nodo dosNoSeguidos(Nodo nodo) throws IOException{\n System.out.println(\"----------------inicio heuristica dosnoseguidos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n \n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i = 0;i<numFilas;i++){\n if(operadores.isFilaVacia(nodo.getMatriz(), i) == true){\n //filas\n auxListFila = (ArrayListFila)filas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n }\n }//fin color\n\n\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListFila.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListFila.getColor(j2);\n\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n //pinta los extremos de la fila\n matriz = operadores.pintarPosicion(matriz,i, (numColumnas-1), auxColor1.getColor());\n \n matriz = operadores.pintarPosicion(matriz, i, 0, auxColor1.getColor());\n \n //pinta el resto de la fila\n matriz = operadores.pintarFilaCompleta(matriz, auxColor2.getColor(), i);\n //descuenta los colores en las filas\n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n //descontar colores en las columnas\n for(int c=0;c<numColumnas;c++){\n auxListColumna = (ArrayListColumna)columnas.get(c);\n \n if(c == 0){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n \n }\n }else if(c == (numColumnas-1)){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n }else{\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor2.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }//fin isfilaVacia\n }//fin filas\n \n \n //---------columnas\n for(int i = 0;i<numColumnas;i++){\n if(operadores.isColumnaVacia(nodo.getMatriz(), i) == true){ \n //columnas\n auxListColumna = (ArrayListColumna)columnas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListColumna.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n } \n }//fin color\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListColumna.getColor(j2);\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n matriz = operadores.pintarPosicion(matriz,(numFilas-1), i, auxColor1.getColor());\n matriz = operadores.pintarPosicion(matriz, 0, i, auxColor1.getColor());\n \n matriz = operadores.pintarColumnaCompleta(matriz, auxColor2.getColor(), i);\n \n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n \n //descontar colores en las columnas\n for(int f=0;f<numFilas;f++){\n auxListFila = (ArrayListFila)filas.get(f);\n \n if(f == 0){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else if(f == (numColumnas-1)){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else{\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor2.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }\n }//fin columnas\n }//fin while principal\n \n System.out.println(\"---------------final heuristica dosnoseguidos---------------\");\n return nodo;\n }", "public boolean eNera(Casella casella)\n { return eNera(casella.riga,casella.colonna); }", "boolean handlesNodeId(String id);", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "public boolean isConnectedToRendezVous() {\r\n return !rendezVous.isEmpty();\r\n }" ]
[ "0.60357976", "0.5992636", "0.59656864", "0.5952597", "0.5941836", "0.59248465", "0.5900762", "0.58957255", "0.58890206", "0.584963", "0.58368206", "0.5767227", "0.57309526", "0.5708773", "0.570733", "0.5682331", "0.56771415", "0.5665834", "0.56481564", "0.5621566", "0.5614015", "0.5609957", "0.56038123", "0.55985093", "0.5588492", "0.5582949", "0.5578893", "0.5571707", "0.5571707", "0.5564031", "0.5545818", "0.55397016", "0.55281544", "0.55251914", "0.5517546", "0.5513712", "0.5513273", "0.5513134", "0.5503382", "0.5493271", "0.54850686", "0.54768586", "0.54719776", "0.54704", "0.5468962", "0.5468693", "0.546109", "0.546109", "0.5460408", "0.5456276", "0.54482245", "0.5443535", "0.5433089", "0.54299617", "0.5428994", "0.5410186", "0.5400135", "0.53815776", "0.53815776", "0.5380065", "0.53778005", "0.5376546", "0.5376059", "0.5372199", "0.5367652", "0.53644204", "0.53521633", "0.5352117", "0.5352106", "0.53474146", "0.5344406", "0.5340178", "0.53335553", "0.532995", "0.5326334", "0.5323", "0.53197", "0.53153974", "0.530024", "0.52965015", "0.5296493", "0.52961636", "0.529096", "0.5290032", "0.5289143", "0.5288803", "0.52687323", "0.52686536", "0.5267255", "0.5266758", "0.52576995", "0.52534616", "0.52511585", "0.5248688", "0.52442634", "0.5244133", "0.5242496", "0.5240381", "0.52250075", "0.5222844", "0.5218827" ]
0.0
-1
functie care verifica daca un nod este negru
public static boolean isBlack(Node<?> node) { return !isRed(node); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean inneholder(N n) {\n\n if(n == null) {\n return false;\n }\n\n Node node = listehode.neste;\n\n if (listehode.neste == null) {\n return false;\n }\n while (node != null) {\n if (node.nkl.compareTo(n) == 0) {\n return true;\n } node = node.neste;\n }\n return false;\n }", "@Override\n public boolean leggInn(T verdi) {\n Objects.requireNonNull(verdi,\" Null verdier er ikke tillat.\");\n // tilfelle 1- om listen var tom liste\n if (tom()) {\n // kan skrives også som if (hode==null && hale==null)\n hode = hale = new Node<T>(verdi, null, null);\n antall++;\n } else {\n hale.neste = new Node<T>(verdi, hale, null);\n hale = hale.neste;\n antall++;\n endringer++;\n }// end else\n return true;\n }", "public void leggInn(N n, V v) {\n Node nyNode = new Node(n, v);\n Node node = listehode.neste;\n\n if (inneholder(n)) {\n System.out.println(\"FEIL! OBJEKTET ER ALLEREDE I BEHOLDEREN \");\n return;\n }\n\n //Legger objektet forst i beholderen om listehode.nestepeker ikke peker paa noe\n //dvs om beholderen er tom\n if (listehode.neste == null) {\n listehode.neste = nyNode;\n antall++;\n return;\n }\n\n //Legger nyNode sin neste til listehode.neste sin nestepeker\n if (nyNode.compareTo(listehode.neste.nkl) < 0) {\n nyNode.neste = listehode.neste;\n listehode.neste = nyNode;\n antall++;\n return;\n\n //Sjekker om det nye objektet er mindre enn det gamle og om det\n //finnes en nestepeker hvis det nye objektet blir lagt til\n } else if ((nyNode.compareTo(node.nkl) < 0) && !listehode.neste.hasNext()) {\n listehode.neste = nyNode;\n nyNode = node.neste;\n antall++;\n return;\n }\n\n //Saa lenge det forste-objektet sin nestepeker ikke er null sa gaar\n //lokka. Da sjekkes det om det nye objektet er mindre enn det\n //neste objektet i lista, hvis det er det, sa legges det til foer\n //det neste objektet\n while (node.neste != null) {\n if(nyNode.compareTo(node.neste.nkl) < 0) {\n nyNode.neste = node.neste;\n node.neste = nyNode;\n antall++;\n return;\n }\n node = node.neste;\n }\n node.neste = nyNode;\n antall++;\n return;\n }", "@Override\n\n public void leggInn(int indeks, T verdi) {\n\n if (verdi == null){\n throw new NullPointerException(); }\n if (indeks < 0){\n throw new IndexOutOfBoundsException(); }\n if (indeks > (antall - 1)){\n throw new IndexOutOfBoundsException(); }\n\n Node<T> newNode = new Node<T>(verdi);\n if (hode == null ){ // Hvis Listen er Tom\n hode = newNode;\n hale = newNode;\n }\n else if (indeks == 0){\n newNode.neste = hode;\n hode.forrige = newNode;\n hode = newNode;\n }\n else if (indeks == (antall - 1)){\n newNode.forrige = hale;\n hale.forrige = newNode;\n hale = newNode;\n }\n else {\n Node<T> nodeTemp = hode;\n for (int i = 1; i < indeks; i++){\n nodeTemp = nodeTemp.neste;\n newNode.neste = nodeTemp.neste;\n nodeTemp.neste = newNode;\n newNode.forrige = nodeTemp;\n newNode.neste.forrige = newNode;\n }\n }\n antall++;\n endringer++;\n }", "@Override\npublic boolean fjern(T verdi) {\n Node<T> curr = hode;\n while (curr != null) {\n if (curr.verdi.equals(verdi)) {\n if (antall == 1) {\n hode = hale = null;\n } else if (curr == hode) {\n hode = hode.neste;\n hode.forrige = null;\n } else if (curr == hale) {\n hale = hale.forrige;\n hale.neste = null;\n } else {\n curr.forrige.neste = curr.neste;\n curr.neste.forrige = curr.forrige;\n }\n antall--;\n endringer++;\n return true;\n }\n curr = curr.neste;\n }\n return false;\n}", "private boolean existeNegro(Vertice<T> v){\n\tif(v == null)\n\t return true;\n\tif(v.color == Color.NEGRO)\n\t return true;\n\treturn false;\n }", "boolean hasIsNodeOf();", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "boolean hasNode()\n/* */ {\n/* 473 */ if ((this.bn == null) && (this.mn == null)) return false;\n/* 474 */ if (this.jt == null) return false;\n/* 475 */ return true;\n/* */ }", "boolean hasNi(int node) {\n return this.neighbors.containsKey(node);\n }", "boolean getTreeNodeIdNull();", "void testNAN (Tester t){\n\n ANode<Integer> s1 = new Sentinel<Integer>();\n ANode<Integer> s2 = new Sentinel<Integer>();\n\n ANode<Integer> n1 = new Node<Integer>(1); \n ANode<Integer> n2 = new Node<Integer>(2, n1, s1);\n\n t.checkExpect(n1.getData(), 1);\n t.checkExpect(n2.getData(), 2);\n\n t.checkExpect(n2.size(n2), 2); \n\n }", "public boolean isN(int X, int Y, int x, int y){\n if(X - x < 2 && X - x> -2 && Y - y < 2 && Y - y> -2 && mines[x][y]==1){//tuk proverqvame dali razlikite na koordinatite na dvete sravnqvani kutii sa v definicionntata oblast(-1;1),zashtoto ako sa s razlika v tova dm znachi che se dopirat (shte go obqsnq po dobre irl)\r\n return true;\r\n }\r\n return false;\r\n }", "public boolean esDeterministico(){\n NodoA x, y;\n x = primerElemento();\n y = x.getLigaDer();\n boolean bandera = true;\n while(x != cabeza){\n while(y != cabeza){\n if(y.getSimbolo().equals( x.getSimbolo())){\n \n if(!listaND.contains(x)){\n listaND.add(x);\n }\n \n bandera= false;\n }\n y = y.getLigaDer();\n }\n \n x = x.getLigaDer();\n y = x.getLigaDer();\n \n \n }\n \n return bandera;\n \n }", "Integer getNLNDreu();", "public boolean fjernElement(N n) {\n if (listehode.neste == null) {\n return false;\n }\n if (listehode.neste.nkl.compareTo(n) == 0){\n listehode.neste = listehode.neste.neste;\n antall--;\n return true;\n }\n\n Node forrige = listehode.neste;\n Node node = listehode.neste.neste;\n\n while (node.hasNext()){\n if (node.nkl.compareTo(n) == 0){\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n forrige = node;\n node = node.neste;\n }\n\n if (node.nkl.compareTo(n) == 0) {\n forrige.neste = node.neste;\n antall--;\n return true;\n }\n return false;\n }", "boolean hasNodeId();", "public boolean isRealNode();", "public boolean isRealNode();", "@Test\n public void testPartieContinue(){\n Joueur NORD = new Joueur(\"NORD\");\n Joueur SUD = new Joueur(\"SUD\");\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n // avec des bases injouables\n NORD.setAscendant(61);\n NORD.setDescendant(0);\n SUD.setAscendant(61);\n SUD.setDescendant(0);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n // avec un jeu vide\n NORD.jeu.clear();\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0, false));\n\n SUD.jeu.clear();\n NORD.jeu.add(0,59);\n NORD.jeu.add(1,58);\n NORD.setAscendant(57);\n NORD.setDescendant(2);\n SUD.setAscendant(1);\n SUD.setDescendant(60);\n assertTrue(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n NORD.setAscendant(58);\n assertFalse(Regles.partieContinue(NORD.clone(), SUD.clone(), 0,false));\n //cas spécifique\n NORD.setAscendant(49);\n NORD.setDescendant(2);\n SUD.setAscendant(53);\n SUD.setDescendant(9);\n SUD.jeu.add(0,34);\n SUD.jeu.add(1,44);\n SUD.jeu.add(2,38);\n SUD.jeu.add(3,6);\n SUD.jeu.add(4,41);\n SUD.jeu.add(5,39);\n assertTrue(Regles.partieContinue(SUD.clone(), NORD.clone(), 0, false));\n\n\n }", "private NodoGrafo Vert2Nodo(int v) {\n\t\tNodoGrafo aux = origen;\n\t\twhile (aux != null && aux.nodo != v)\n\t\t\taux = aux.sigNodo;\t\t\n\t\treturn aux;\n\t}", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "boolean hasHasNodeID();", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "@Override\t\n\tpublic void innKoe(T element){\n\t\t\tLinearNode<T> nyNode= new LinearNode<T>(element);\n\t\t\t\n\t\t\tif(erTom()){\n\t\t\t\tfront = nyNode;\n\t\t\t\n\t\t\t}else{\n\t\t\t\tbak.setNeste(nyNode);\n\t\t\t}\n\t\t\tbak = nyNode;\n\t\t\tantall++;\n\t\t\t}", "private void EliminarAristaNodo (NodoGrafo nodo ,int v){\n\t\tNodoArista aux = nodo.arista;\n\t\tif (aux != null) {\n\t\t\t// Si la arista a eliminar es la primera en\n\t\t\t// la lista de nodos adyacentes\n\t\t\tif (aux.nodoDestino.nodo == v){\n\t\t\t\tnodo.arista = aux.sigArista;\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (aux.sigArista!= null && aux.sigArista.nodoDestino.nodo != v){\n\t\t\t\t\taux = aux.sigArista;\n\t\t\t\t}\n\t\t\t\tif (aux.sigArista!= null) {\n\t\t\t\t\t// Quita la referencia a la arista hacia v\n\t\t\t\t\taux.sigArista = aux.sigArista.sigArista;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean klic() {\n\t\tif(first.next.zacetniIndex!=0) {\r\n\t\t\tfirst.next.zacetniIndex = 0;\r\n\t\t\tfirst.next.koncniIndex = first.next.size-1;\r\n\t\t\t//ce je en element, nimamo vec praznega prostora\r\n\t\t\tif(first==last) prazno=0;\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\r\n\t\tList prev = first.next;\r\n\t\tList el = first.next.next;\r\n\t\t\r\n\t\twhile(el!=null) {\r\n\t\t\tif(prev.koncniIndex!=el.zacetniIndex-1) {\r\n\t\t\t\t\r\n\t\t\t\tint razlika = el.zacetniIndex - prev.koncniIndex - 1;\r\n\t\t\t\tel.zacetniIndex = el.zacetniIndex - razlika;\r\n\t\t\t\tel.koncniIndex = el.koncniIndex - razlika;\r\n\t\t\t\t//ce pomeramo zadnega zmanjsujemo praznega prostora\r\n\t\t\t\tif(prev==last) prazno = prazno - razlika;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\tprev=el;\r\n\t\t\tel=el.next;\r\n\t }\r\n\t\treturn false;\r\n\t}", "private boolean validarMezcla() {\n\t\tint grado = nodos.get(0).getGrado();\n\t\tboolean retorno = true;\n\t\tfor (Nodo n : nodos) {\n\t\t\tif (n.getGrado() != grado) {\n\t\t\t\tif (n.getGrado() < grado) {\n\t\t\t\t\tSystem.err.println(\"Error en la mezcla del grafo\");\n\t\t\t\t\tSystem.exit(4321);\n\t\t\t\t} else\n\t\t\t\t\tgrado = n.getGrado();\n\t\t\t}\n\t\t}\n\t\treturn retorno;\n\t}", "private Node<T> finnNode(int indeks) {\n int k = antall / 2;\n int i = 0;\n\n Node<T> node = hode;\n\n if (indeks <= k)\n while (i++ != indeks) node = node.neste;\n else {\n node = hale;\n i = antall - 1;\n while (i-- != indeks) node = node.forrige;\n }\n\n return node;\n }", "@Test\n\t public void testGetNode() {\n\t\tDGraph g1 = null;\n\t\tDGraph g = initFactory(g1);\n\t\tg.removeNode(1);\n\t\tg.removeNode(2);\n\t\t//g.removeNode(4);\n\t\tassertTrue(g.getNode(1)==null);\n\t\tassertTrue(g.getNode(2)==null);\n\t\tassertTrue(g.getNode(3)!=null);\n\t}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "boolean usedByNode(Long id);", "public final AstValidator.rel_op_ne_return rel_op_ne() throws RecognitionException {\n AstValidator.rel_op_ne_return retval = new AstValidator.rel_op_ne_return();\n retval.start = input.LT(1);\n\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree set524=null;\n\n CommonTree set524_tree=null;\n\n try {\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:770:11: ( STR_OP_NE | NUM_OP_NE )\n // /home/hoang/DATA/WORKSPACE/trunk0408/src/org/apache/pig/parser/AstValidator.g:\n {\n root_0 = (CommonTree)adaptor.nil();\n\n\n _last = (CommonTree)input.LT(1);\n set524=(CommonTree)input.LT(1);\n\n if ( input.LA(1)==NUM_OP_NE||input.LA(1)==STR_OP_NE ) {\n input.consume();\n if ( state.backtracking==0 ) {\n set524_tree = (CommonTree)adaptor.dupNode(set524);\n\n\n adaptor.addChild(root_0, set524_tree);\n }\n\n state.errorRecovery=false;\n state.failed=false;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return retval;}\n MismatchedSetException mse = new MismatchedSetException(null,input);\n throw mse;\n }\n\n if ( state.backtracking==0 ) {\n } \n\n }\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n }\n\n }\n\n catch(RecognitionException re) {\n throw re;\n }\n\n finally {\n \t// do for sure before leaving\n }\n return retval;\n }", "private int jumlahNode(Node node) {\n if (node == null) {\n return 0;\n } else {\n return 1 + jumlahNode(node.pKiri) + jumlahNode(node.pKanan);\n }\n }", "int nilaiMaks(Node node){\n if (node.right != null) { // karena node yg nilai nya lebih besar ada di kanan\n return nilaiMaks(node.right); // jadi jika tidak sama dengan null, maka akan me return node sebelah kanan\n }\n return node.data;\n }", "@Bean\r\n public boolean testNeoj() {\n \tval node = neo4jRepo.findOne(10L,2);\r\n\t\tnode.getPhrases().forEach(System.out::println);\r\n\t\tnode.getChildNodes().forEach(System.out::println);\r\n\t\tSystem.out.println(node);\r\n\r\n\t\treturn true;\r\n\t}", "public boolean isRealNode()\r\n\t\t{\r\n\t\t\tif (this.key == -1)\r\n\t\t\t\treturn false;\r\n\t\t\treturn true; \r\n\t\t}", "public graphNode isMember(graphNode ne){\n\t\tif(this.head==null){return null;}\n\t\tgraphNode travgraphNode=this.head;\n\t\twhile(travgraphNode!=null){\n\t\t\tif(travgraphNode.equals(ne)){\n\t\t\t\treturn travgraphNode;\n\t\t\t}\n\t\t\ttravgraphNode=travgraphNode.next;\n\t\t}\n\t\treturn null;\n\t}", "public int size(){\n return n_nodi;\n }", "static void imprimirNodo( NodoBase raiz )\n{\n\tif(\traiz instanceof NodoRepeat\n\t\t||\traiz instanceof NodoLeer\n\t\t||\traiz instanceof NodoEscribir ){\n\t\tSystem.out.println(\"palabra reservada: \"+ raiz.getClass().getName());\n\t}\n\t\n\tif(\traiz instanceof NodoAsignacion )\n\t\tSystem.out.println(\":=\");\n\t\n\tif(\traiz instanceof NodoOperacion ){\n\t\ttipoOp sel=((NodoOperacion) raiz).getOperacion();\n\t\tif(sel==tipoOp.menor)\n\t\t\tSystem.out.println(\"<\"); \n\t\tif(sel==tipoOp.igual)\n\t\t\tSystem.out.println(\"=\");\n\t\tif(sel==tipoOp.mas)\n\t\t\tSystem.out.println(\"+\");\n\t\tif(sel==tipoOp.menos)\n\t\t\tSystem.out.println(\"-\");\n\t\tif(sel==tipoOp.por)\n\t\t\tSystem.out.println(\"*\");\n\t\tif(sel==tipoOp.entre)\n\t\t\tSystem.out.println(\"/\");\n if(sel==tipoOp.mayor)\n\t\t\tSystem.out.println(\">\");\n if(sel==tipoOp.mayorigual)\n\t\t\tSystem.out.println(\">=\");\n if(sel==tipoOp.menorigual)\n\t\t\tSystem.out.println(\"<=\");\n if(sel==tipoOp.diferente)\n\t\t\tSystem.out.println(\"!=\");\n if(sel==tipoOp.and)\n\t\t\tSystem.out.println(\"AND\");\n if(sel==tipoOp.or)\n\t\t\tSystem.out.println(\"OR\");\n \n\t}\n\n\tif(\traiz instanceof NodoValor ){\n if(((NodoValor)raiz).getVint() != null)\n System.out.println(\"NUM, val= \"+ ((NodoValor)raiz).getVint());\n if(((NodoValor)raiz).isVbol()!= null)\n System.out.println(\"BOL, val= \"+ ((NodoValor)raiz).isVbol());\n\t}\n\n\tif(\traiz instanceof NodoIdentificador ){\n\t\tSystem.out.println(\"ID, nombre= \"+ ((NodoIdentificador)raiz).getNombre());\n\t}\n\n}", "public interface InterfazNodo extends VisitableNode{\n\t\tpublic void add(InterfazNodo nodo);\n\t\tpublic void remove(InterfazNodo nodo);\n\t\tpublic Codigo generarCodigo(Codigo codigo, TempManager tempManager, LabelManager labelManager);\n\t\tpublic TablaDeSimbolos acceptTSVisitor(\n\t\t\t\tTablaSimbolosVisitor tablaSimbolosVisitor);\n\t\t\n\t}", "@Override\n public boolean isMissingNode() { return false; }", "private int nextNode(int rid) {\n if (!my_game.getMy_game().isRunning()) {\n return -1;\n }\n Robot robot = my_game.getRobots().get(rid);\n List<node_data> tmp = robots_paths.get(rid);\n if (tmp.isEmpty()) {\n fruits_status.remove(rid);\n synchronized (my_game.getFruits()) {\n if (my_game.getFruits().size() > 0) {\n Fruit fruit = findClosestFruit(robot);\n tmp = algo_g.shortestPath(robot.getSrc(),fruit.getEdge().getSrc());\n node_data dest = my_game.getGraph().getNode(fruit.getEdge().getDest());\n tmp.add(dest);\n robots_paths.put(robot.getId(),tmp);\n fruits_status.put(rid,fruit);\n }\n }\n }\n\n node_data n = tmp.get(0);\n tmp.remove(0);\n return n.getKey();\n\n\n// for (int i = 0; i < tmp.size(); i++) {\n// node_data n = tmp.get(i);\n// tmp.remove(i);\n// if (n.getKey() == robot.getSrc())\n// continue;\n// return n.getKey();\n// }\n// return -1;\n }", "public boolean eNera(Casella casella)\n { return eNera(casella.riga,casella.colonna); }", "@Override\n public int indeksTil(T verdi) {\n int indeks=0;\n Node<T> curr= hode;\n for (; curr!=null; curr= curr.neste, indeks++){\n if (curr.verdi.equals(verdi)){\n return indeks;\n\n }// end if\n\n }// end for\n return -1;\n }", "public boolean erTom(){\n return hode.neste == hale;\n }", "private boolean sePuedeColorear(int indice, int color) {\n\t\tint i = 0;\n\t\tboolean sePuede = true;\n\t\tif (nodos.get(indice).getColor() != 0) // si el nodo fue coloreado\n\t\t\tsePuede = false;\n\t\twhile (i < cantNodos && sePuede) {\n\t\t\t// Si hay un nodo adyacente con ese color, no se puede colorear. Si el nodo fue\n\t\t\t// coloreado tampoco se puede.\n\t\t\tif (nodos.get(i).getColor() == color && i != indice) {\n\t\t\t\tif (esAdyacente(nodos.get(i).getNumero() - 1, nodos.get(indice).getNumero() - 1))\n\t\t\t\t\tsePuede = false;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\treturn sePuede;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\tif(dwg.getV().size()==0) return true;\n\n\t\tIterator<node_data> temp = dwg.getV().iterator();\n\t\twhile(temp.hasNext()) {\n\t\t\tfor(node_data w : dwg.getV()) {\n\t\t\t\tw.setTag(0);\n\t\t\t}\n\t\t\tnode_data n = temp.next();\n\t\t\tQueue<node_data> q = new LinkedBlockingQueue<node_data>();\n\t\t\tn.setTag(1);\n\t\t\tq.add(n);\n\t\t\twhile(!q.isEmpty()) {\n\t\t\t\tnode_data v = q.poll();\n\t\t\t\tCollection<edge_data> arrE = dwg.getE(v.getKey());\n\t\t\t\tfor(edge_data e : arrE) {\n\t\t\t\t\tint keyU = e.getDest();\n\t\t\t\t\tnode_data u = dwg.getNode(keyU);\n\t\t\t\t\tif(u.getTag() == 0) {\n\t\t\t\t\t\tu.setTag(1);\n\t\t\t\t\t\tq.add(u);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tv.setTag(2);\n\t\t\t}\n\t\t\tCollection<node_data> col = dwg.getV();\n\t\t\tfor(node_data n1 : col) {\n\t\t\t\tif(n1.getTag() != 2) {\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public void ispisiSveNapomene() {\r\n\t\tint i = 0;// redni broj napomene\r\n\t\tint brojac = 0;\r\n\t\tfor (Podsjetnik podsjetnik : lista) {\r\n\r\n\t\t\ti++;\r\n\t\t\tSystem.out.println(i + \")\" + podsjetnik);\r\n\t\t\tbrojac = i;\r\n\t\t}\r\n\t\tif (brojac == 0) {\r\n\t\t\tSystem.out.println(\"Nema unesenih napomena!!\");\r\n\t\t}\r\n\r\n\t}", "boolean hasIsMidNode();", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "public Node<T> darTope();", "@Override\n\t/*\n\t * public int checkNodeInDBByCoordinate(Coordinate coordinate) {\n\t * \n\t * ResultSet resultSet = null; int x = coordinate.getX(); int y =\n\t * coordinate.getY(); try {\n\t * \n\t * String checkNodesInDB =\n\t * \"select id from routefinder.node where x=? and y=?\"; pstmt =\n\t * conn.prepareStatement(checkNodesInDB); pstmt.setInt(1, x);\n\t * pstmt.setInt(2, y); resultSet = pstmt.executeQuery(); if\n\t * (resultSet.next()) { return resultSet.getInt(\"id\"); } else {\n\t * System.out.println(\"Cannot find node \" + x + \", \" + y); return -1; } }\n\t * catch (SQLException se) { se.printStackTrace(); return -1; } finally {\n\t * JdbcConnect.resultClose(resultSet, pstmt); } }\n\t */\n\tpublic int checkNodeRelationInDBByNodeRelation(NodeRelation[] nodeRelation) {\n\t\treturn 0;\n\t}", "boolean hasNode();", "boolean hasNode();", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "public boolean my_soltuion(Node n){\n\t\tif (n == null || n.next == null){\n\t\t\treturn false;\n\t\t\t//This is a failure\n\t\t}\n\t\tNode next = n.next;\n\t\tn.data = next.data;\n\t\tn.next = next.next;\n\t\treturn true;\n\t}", "public int getNid() {\r\n\t\treturn nid;\r\n\t}", "boolean hasTreeNodeId();", "public void addNode() {\r\n \r\n Nod nod = new Nod(capacitate_noduri);\r\n numar_noduri++;\r\n noduri.add(nod);\r\n }", "boolean getNodeCharacteristicIdNull();", "public ListaBrojeva izdvojElmenteNaNeparnimPozicijama() {\n if (!jePrazna()) {\n ListaBrojeva neparni = new ListaBrojeva();\n \n Element neparniKraj = null;\n Element tek = prvi;\n Element preth = null;\n int br = 0;\n \n while (tek.veza != null) {\n preth = tek;\n tek = tek.veza;\n if (br % 2 == 0) {\n preth.veza = tek.veza;\n if (neparni.prvi == null) {\n neparni.prvi = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n else {\n neparniKraj.veza = tek;\n tek.veza = null;\n neparniKraj = tek;\n }\n tek = preth;\n }\n br++;\n }\n return neparni;\n }\n return null;\n }", "@Override\r\n\t\tpublic boolean isEqualNode(Node arg)\r\n\t\t\t{\n\t\t\t\treturn false;\r\n\t\t\t}", "public void afegirEquip(Equip equip, boolean ordenat) throws LlistaPlena, EquipExisteix {\n\t\tif(primer==null){\n\t\t\t//Aqui coloco el primer de tots\n\t\t\tprimer= new Node();\n\t\t\tprimer.info=equip;\n\t\t\tn_equips=n_equips+1;\n\t\t\tanterior=primer;\n\t\t}\n\t\telse{\n\t\t\tif(ordenat){\n\t\t\t\t//Ordenat\n\t\t\t\tNode Nanterior=primer, Nseguent=primer.Nodeseguent;\n\t\t\t\tboolean trobat=false;\n\t\t\t\tif(Nanterior.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t//Comprobo si ha d'anar el primer de tots\n\t\t\t\tif(equip.getNom().compareToIgnoreCase(primer.info.getNom())<0){\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tprimer.Nodeanterior=aux;\n\t\t\t\t\taux.Nodeseguent=primer;\n\t\t\t\t\tprimer=aux;\n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}else{\n\t\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\t\twhile(!trobat && Nseguent!=null){\n\t\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\t\tif(equip.getNom().compareToIgnoreCase(Nseguent.info.getNom()) < 0) trobat=true;\n\t\t\t\t\t\telse{\tNanterior=Nseguent;\n\t\t\t\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tNode aux = new Node();\n\t\t\t\t\taux.info=equip;\n\t\t\t\t\tNanterior.Nodeseguent=aux;\n\t\t\t\t\taux.Nodeanterior=Nanterior;\n\t\t\t\t\taux.Nodeseguent=Nseguent;\n\t\t\t\t\tif(Nseguent!=null) Nseguent.Nodeanterior=aux; \n\t\t\t\t\tanterior=aux;\n\t\t\t\t\tn_equips=n_equips+1;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\t//Desordenat\n\t\t\t\tNode Nseguent=primer;\n\t\t\t\t//Comprobo si existeix l'element a la llista\n\t\t\t\twhile(Nseguent!=null){\n\t\t\t\t\tif(Nseguent.info.getNom().equalsIgnoreCase(equip.getNom())) throw new EquipExisteix();\n\t\t\t\t\tNseguent=Nseguent.Nodeseguent;\n\t\t\t\t}\n\t\t\t\tNode aux3= new Node();\n\t\t\t\taux3.info=equip;\n\t\t\t\tanterior.Nodeseguent=aux3;\n\t\t\t\taux3.Nodeanterior=anterior;\n\t\t\t\tanterior=aux3;\n\t\t\t\tn_equips=n_equips+1;\n\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t}", "public void mezclarPorGrado() {\n\t\tint i = 0;\n\t\tint inicio = 0;\n\t\tint fin = 0;\n\t\tint grado = 0;\n\t\tNodo aux;\n\t\tRandom r = new Random();\n\t\tboolean[] mezclado = new boolean[cantNodos];\n\n\t\twhile (i < cantNodos) {\n\t\t\tinicio = i;\n\t\t\tgrado = nodos.get(i).getGrado();\n\t\t\twhile (i < cantNodos && nodos.get(i).getGrado() == grado)\n\t\t\t\ti++;\n\n\t\t\tfin = i;\n\n\t\t\tfor (int k = inicio; k < (fin - inicio); k++) {\n\t\t\t\tint res = r.nextInt(fin - inicio);\n\t\t\t\tif (mezclado[k])\n\t\t\t\t\tres = r.nextInt(fin - inicio);\n\t\t\t\taux = nodos.get(k);\n\t\t\t\tmezclado[k] = true;\n\t\t\t\tnodos.set(k, nodos.get(inicio + res));\n\t\t\t\tnodos.set(inicio + res, aux);\n\t\t\t}\n\t\t}\n\t\tvalidarMezcla();\n\t}", "@Override\n public void paso0() {\n n = graph.getNodeIndices().indexOf(actual);\n nodo = graph.getNodes().get(n);\n nodo.setEstado(Node.State.CURRENT);\n nodo.pintarNodo(g);\n // comprueba si es objetivo\n if (nodo.getEsObjetivo()) {\n // establece el objetivo encontrado\n miObjetivo = nodo.toString();\n // termina con exito\n Step = 4;\n } else {\n // se prepara para explorar los sucesores\n m = nodo.maxSucesores();\n j = 0;\n // siguiente paso\n Step = 1;\n }\n }", "String getIdNode2();", "private List<Node<T>> auxiliarRecorridoIn(Node<T> nodo, List<Node<T>> lista, Node<T> raiz) {\r\n\t\t\r\n\t\tif (nodo.getChildren() != null) {\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\t\r\n\t\t\t\tauxiliarRecorridoIn(hijos.get(i), lista, raiz);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn lista;\r\n\t}", "public LinkedList<Nodo> eliminarNodoNotExec(Nodo nodoElim){\n LinkedList<Nodo> nodoNotExec=new LinkedList<>();\n \n for(Nodo n:nodoElim.getHermanos().values()){\n //if((n.getParent()==nodoElim.getParent())&&(n.getSimbolo().equals(nodoElim.getSimbolo()))){\n nodoNotExec.add(n);\n \n //}\n }\n if(!nodoNotExec.isEmpty()){\n for(Nodo n:nodoNotExec){\n panelPadre.getChildren().removeAll(n.getRectangle(),n.getLabel());\n //nodos.remove(n);\n } \n \n } \n return nodoNotExec;\n }", "public Nodo NodoNotExec(Nodo nodo){\n if (nodo.getParent()!=null){\n Nodo hermano=nodo.getParent().getChildren().getFirst();\n Nodo n= hermano.getHermanos().get(nodo.getSimbolo());\n return n;\n }\n return null;\n }", "public int getNickel () {\n return NNickel;\n }", "public boolean hasNi(int nodeKey) {\n return this.neighborEdges.get(nodeKey) != null ? true : false;\n }", "boolean hasIsCentralNode();", "private boolean existsRec(Node<T> nodo, T key) {\r\n\t\tif (nodo.getData().equals(key)) {// Si existe el nodo en el arbol\r\n\t\t\treturn true;\r\n\t\t} else if (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Los hijos\r\n\t\t\tboolean comprobacion = false;\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcomprobacion = existsRec(lista.get(i), key);// Recursividad\r\n\t\t\t\tif (comprobacion == true) // Se encontro\r\n\t\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false; // No se encontro\r\n\t}", "@Override\n public R visit(GraphPatternNotTriples n, A argu) {\n R _ret = null;\n n.nodeChoice.accept(this, argu);\n return _ret;\n }", "void stampaStatisticheNodo() {\r\n for(Object obj : this.nodes)\r\n {\r\n Nodo n = (Nodo)obj;\r\n \r\n TransportLayer tl = n.myTransportLayer;\r\n tl.stampaStatistiche();\r\n \r\n // System.out.println(\"=====STAMPA STATISTICHE NODO NETWORK LAYER====\");\r\n NetworkLayer nl = n.myNetLayer;\r\n // String s = nl.getStat();\r\n nl.stampaStatistiche();\r\n // System.out.println(s);\r\n // System.out.println(\"=====FINE====\");\r\n \r\n physicalLayer pl = n.myPhyLayer;\r\n pl.stampaStatistiche();\r\n }\r\n }", "public static void QuestionOne(Node n) {\n\n\n\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "@Override\n public boolean isConnected() {\n for (node_data n : G.getV()) {\n bfs(n.getKey());\n for (node_data node : G.getV()) {\n if (node.getTag() == 0)\n return false;\n }\n }\n return true;\n }", "void nodeOnline();", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "public abstract boolean isUsing(Long graphNode);", "public static void expandirNodo(Nodo nodoAexp , ArrayList<Nodo>frontera ,\n \t\t HeuristicaInterf heur, HashMap <String, String> mapaEstadosgen ){ \n //listado de nodos posibles al expandir\n ArrayList <Accion> acciones = nodoAexp.estado.accionesPosibles(null);\n Iterator<Accion> itrAcciones = acciones.iterator();\n\n \n int mejorCosto = -1 ;\n \n ArrayList<Nodo> mejoresNodos = new ArrayList<Nodo>();\n \n int costoTotalNodo = 0 ;\n \n \twhile (itrAcciones.hasNext()) {\n \t\t\n Accion accion = itrAcciones.next();\n \n Tablero nuevoEstado = nodoAexp.estado.clonar();\n nuevoEstado.mover( accion ); \n \n //control para evitar evaluar heuristicas para estados ya generados\n String hashmatriz = nuevoEstado.toStrHash();\n \n if ( mapaEstadosgen.containsKey( hashmatriz )){\n \tcontinue ;\n }\n \n mapaEstadosgen.put(hashmatriz, hashmatriz);\n \n \n // se obtine el costo del posible nodo a expandir y se crea un tablero con el estado correspóndiente\n int costoH = heur.heuristica (nuevoEstado.matriz, Problema.MATRIZ_META );\n \n Nodo nuevoNodo = new Nodo(nodoAexp,nuevoEstado,accion,costoH );\n \n costoTotalNodo = nuevoNodo.getCosto();\n \n if ( mejorCosto < 0 ) mejorCosto = costoTotalNodo ;\n \n if (costoTotalNodo <= mejorCosto ){\n\t\t\n \tmejorCosto = costoTotalNodo ;\n \t\n \tmejoresNodos.add( nuevoNodo );\n } \n \n //System.out.println(nuevoNodo.getAccion()+\" queda \"+nuevoEstado.toString()+\" costo \"+nuevoNodo.getCosto());\n \n \t}\n \tint tam = mejoresNodos.size();\n \t\n \tfor(int i = 0 ; i <tam ; i++){\n \t\tif( mejoresNodos.get(i).getCosto() <= mejorCosto )\n \t\t\t\n \t\t\tfrontera.add(mejoresNodos.get( i ));\n \t}\n }", "@Test\n public void testListWithNulls() {\n Node makeNull = Node.ROOT\n .withName(\"makeNull\")\n .withFunction(\"test/makeNull\")\n .withInputAdded(Port.floatPort(\"value\", 0.0));\n Node net = Node.NETWORK\n .withChildAdded(threeNumbers)\n .withChildAdded(makeNull)\n .connect(\"threeNumbers\", \"makeNull\", \"value\");\n assertResultsEqual(net, makeNull);\n }", "public boolean isNodePresent(int nd) {\n if ((nd >= (int) nodeVector.size() || (nodeVector.get(nd).getIndex() == invalid_node_index))) {\n return false;\n } else {\n return true;\n }\n }", "public NetworkElementMO queryNeByEsn(String esn) throws ServiceException {\r\n Map<String, String> conditionMap = new HashMap<>();\r\n conditionMap.put(\"serialNumber\", esn);\r\n List<NetworkElementMO> neList = neInvDao.query(conditionMap);\r\n if(neList.isEmpty()) {\r\n return null;\r\n } else if(neList.size() == 1) {\r\n return neList.get(0);\r\n } else {\r\n throw new ServiceException(\"Esn should be unique\");\r\n }\r\n }", "@DISPID(1611006012) //= 0x6006003c. The runtime will prefer the VTID if present\n @VTID(87)\n boolean relationsNodeInTree();", "@Override\n\tpublic boolean isConnected() {\n\t\tif(this.GA.nodeSize() ==1 || this.GA.nodeSize()==0) return true;\n\t\tgraph copied = this.copy();\n\t\ttagZero(copied);\n\t\tCollection<node_data> s = copied.getV();\n\t\tIterator it = s.iterator();\n\t\tnode_data temp = (node_data) it.next();\n\t\tDFSUtil(copied,temp);\n\t\tfor (node_data node : s) {\n\t\t\tif (node.getTag() == 0) return false;\n\t\t}\n\t\ttransPose(copied);\n\t\ttagZero(copied);\n\t Collection<node_data> s1 = copied.getV();\n\t\tIterator it1 = s1.iterator();\n\t\tnode_data temp1 = (node_data) it1.next();\n\t\tDFSUtil(copied,temp1);\n\t\tfor (node_data node1 : s1) {\n\t\t\tif (node1.getTag() == 0) return false;\n\t\t}\n\n\t\treturn true;\n\t}", "public long wsadd_node(NodeWS node)\r\n\t\t\t\t{ \r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tlong id = 0; //id de la tabla user (único) \r\n\t\t\t\t Node nodeC = new Node(node.getNode_name(),node.getMAC_address(),node.getPort_number());\r\n\t\t\t\t \r\n\t\t\t\t //User cliente1 = new User(\"[email protected]\", \"gutie33\", 1, \"Luis\",\"677899876\", \"Informatica\"); \r\n\t\t\t\t \r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); \r\n\t\t\t\t \r\n\t\t\t\t id= (Long) sesion.createQuery(\"SELECT u.id_company FROM Company u WHERE u.company_name ='\"+node.getName_company()+\"'\").uniqueResult();\r\n\t\t\t\t Company x = (Company) sesion.load(Company.class, id);\r\n\t\t\t\t x.addNodo(nodeC);\r\n\t\t\t\t \r\n\t\t\t\t\t nodeC.setCompany(x);\r\n\t\t\t\t \r\n\t\t\t\t //sesion.update(compx);\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t //metodo para guardar cliente (del objeto hibernate.sesion) \r\n\t\t\t\t tx.commit(); \r\n\t\t\t\t }catch(HibernateException he) \r\n\t\t\t\t { \r\n\t\t\t\t manejaExcepcion(he);\r\n\t\t\t\t throw he; \r\n\t\t\t\t }finally \r\n\t\t\t\t { \r\n\t\t\t\t \t//Busqueda del id con qu elo ha introducido a la BBDD\r\n\t\t\t\t \tid= (Long) sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.node_name ='\"+node.getNode_name()+\"'\").uniqueResult();\r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return id; \r\n\t\t\t\t}", "Node getNode();", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public EichhoernchenKnoten getNechstes() {\n return nechstes;\n }", "public void vincula(){\n for (Nodo n : exps)\n n.vincula();\n }", "N getNode(int id);", "private void getNodeOperation(OperationResponse response, ObjectIdData requestData) {\n\t\t\n//\t\tString gehtNichtMeldung = \"{\\\"message\\\":\\\"MaPL currently is missing appropriate APIs to filter nodes intelligently.\\\"}\";\n//\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(200), ResponseUtil.toPayload(gehtNichtMeldung));\n\t\t\n\t\t\n\t\trestWrapper = MapsHelpers.initRestWrapperAndLogin(getContext());\n\t\tint httpStatusCode = 200;\n\t\tLogger.severe(\"Object ID : \" + requestData.getObjectId());\n\t\tLogger.severe(\"Dynamic props : \" + requestData.getDynamicProperties().toString());\n\t\tLogger.severe(\"User def props: \" + requestData.getUserDefinedProperties().toString());\n\t\t\n\t\tif ( restWrapper != null ) {\n\t\t\tJSONArray allNodes = new JSONArray();\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tString additionalInfo = \"?withAdditionalInfo=true\";\n\t\t\t\t\n\t\t\t\tString treeId = requestData.getObjectId();\n\t\t\t\t\n\t\t\t\tLogger.severe(\"Find all nodes for tree ID \" + treeId );\n\t\t\t\t\n//\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n//\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tString restPath = \"/node/root/\" + treeId + additionalInfo;\n\t\t\t\t\n\t\t\t\tObject result = restWrapper.httpGetRequest(restPath, new HashMap<String, String>());\n\t\t\t\t\n\t\t\t\tallNodes.put(result);\n\t\t\t\n\t\t\t\tgetChildren(allNodes, treeId, (JSONObject)result, 0);\n\t\t\t\tLogger.severe(\"Found nodes: \" + allNodes.length() );\n\t\t\t\t\n\t\t\t\thttpStatusCode = restWrapper.getHttpClient().getLastStatus();\n\t\t\t\t\n\t\t\t\tResponseUtil.addSuccess(response, requestData, String.valueOf(httpStatusCode), ResponseUtil.toPayload(allNodes.toString(4)));\n\t\t\t\t\n\t\t\t} catch (JSONException e) {\n\t\t\t\tLogger.log(Level.SEVERE, \"An error\", e);\n\t\t\t\tthrow new ConnectorException(e);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} else {\n\t\t\tresponse.addResult(requestData, OperationStatus.FAILURE, null, \"Authentication failed\", null);\n\t\t}\n\t\t\n\t}", "public boolean repetido(int el){\n boolean repe = false;\n NodoDoble current = inicio;\n while(current != null){\n if(current.dato==el){\n repe = true;\n break; \n }else{\n repe = false;\n } \n current = current.siguiente;\n }\n return repe;\n }", "private boolean revisar(DigrafoAristaPonderada G) {\n\n // edge-weighted digraph is cyclic\n if (tieneCiclo()) {\n // verify ciclo\n AristaDirigida primero = null, ultimo = null;\n for (AristaDirigida a : ciclo()) {\n if (primero == null) primero = a;\n if (ultimo != null) {\n if (ultimo.hacia() != a.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\",\n ultimo, a);\n return false;\n }\n }\n ultimo = a;\n }\n\n if (ultimo.hacia() != primero.desde()) {\n System.err.printf(\n \"aristas de ciclo %s and %s no incidentes\\n\", \n ultimo, primero);\n return false;\n }\n }\n\n\n return true;\n }", "static int nullNode() {\n\t\treturn -1;\n\t}" ]
[ "0.6404752", "0.63575685", "0.6195872", "0.6128888", "0.60572034", "0.60485727", "0.60252506", "0.602014", "0.59632957", "0.59437215", "0.5889633", "0.5877876", "0.58727264", "0.58174956", "0.5788014", "0.5779814", "0.57688314", "0.5755797", "0.57362396", "0.57362396", "0.57227767", "0.5717609", "0.5691931", "0.5683555", "0.5680242", "0.568008", "0.5675416", "0.5670667", "0.5659205", "0.5644529", "0.5619899", "0.5617965", "0.5617605", "0.5617605", "0.5614105", "0.56044585", "0.5599353", "0.55739295", "0.55737936", "0.55476135", "0.55471224", "0.55402184", "0.55307496", "0.5529508", "0.55189115", "0.54941964", "0.5492503", "0.54806954", "0.54760844", "0.54745066", "0.5474442", "0.5468104", "0.5460607", "0.54587543", "0.5457667", "0.5442226", "0.5434715", "0.5434715", "0.5433043", "0.5432338", "0.54179597", "0.541549", "0.5411935", "0.5407849", "0.5404428", "0.5402174", "0.539888", "0.5395268", "0.5386593", "0.5375739", "0.537372", "0.5366671", "0.5362927", "0.53579617", "0.53501004", "0.5349097", "0.53473854", "0.53447706", "0.5341514", "0.5341207", "0.53295845", "0.5323457", "0.5322955", "0.53192526", "0.5311848", "0.53113765", "0.53113055", "0.5307277", "0.53060585", "0.52992797", "0.5294125", "0.52896273", "0.5283362", "0.52833486", "0.5280314", "0.5273956", "0.5272314", "0.5271882", "0.52694684", "0.52656764", "0.526525" ]
0.0
-1
setter pentru culoarea nodului
public void setColor(boolean color) { this.color = color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setNodo(Long nodo);", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public abstract void setNodes();", "public void setNode_1(String node_1);", "public void resetNodo()\r\n {\r\n this.nodo = null;\r\n }", "public void settInn(T element){\n Node temp = new Node(element);\n temp.neste = hode.neste;\n temp.neste.forrige = temp;\n temp.forrige = hode;\n hode.neste = temp;\n elementer++;\n\n\n }", "public void setNode_4(String node_4);", "public void setNode_2(String node_2);", "public void setNode_3(String node_3);", "void setNode(int nodeId, double lat, double lon, double ele);", "@Override\n public void set(E e) throws NullPointerException\n {\n if(canRemove = true)\n {\n if(forward = true)\n {\n Node theNode = getNth(idx - 1);\n theNode.data = e;\n }\n else\n {\n Node theNode = getNth(idx);\n theNode.data = e;\n }\n }\n else\n {\n throw new IllegalArgumentException();\n }\n }", "public void asignar_Nodo(Nodo e) {\n\t\tthis.elem = e;\n\t}", "public void setNode_5(String node_5);", "private void setNode(DefaultMutableTreeNode node){\n\t\t\n\t\tthis.node = node;\n\t\t\n\t}", "public void setPuntoDeVenta(PuntoDeVenta puntoDeVenta)\r\n/* 145: */ {\r\n/* 146:166 */ this.puntoDeVenta = puntoDeVenta;\r\n/* 147: */ }", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "public void setNumero(int numero)\r\n/* 195: */ {\r\n/* 196:206 */ this.numero = numero;\r\n/* 197: */ }", "public Nodo() {\r\n this.dato = null;\r\n this.siguiente = null;\r\n }", "void setNode(int nodeId, double lat, double lon);", "public void setNode(String node) {\n this.node = node;\n }", "public void setNode(String node)\n {\n this.node = node;\n }", "public void setNode(int _data ) {\r\n\t\t\tdata = _data;\r\n\t\t}", "@Override\n\tpublic void setNodeInfo(String path, Object obj) {\n\t\treentrantReadWriteLock.readLock().lock();\n\t\ttry {\n\t\t\tzookeeper.setData(path, SomeUtil.getByte(obj),\n\t\t\t\t\t-1);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"更新跟节点数据异常!\", e);\n\t\t} finally {\n\t\t\treentrantReadWriteLock.readLock().unlock();\n\t\t}\n\t}", "public void setDominio(String p) { this.dominio = p; }", "void setNilID();", "public void setNodoDerecho(Nodo nodo){\n der = nodo;\n }", "void setNilValue();", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public void setNombreArea(String p) { this.nombreArea = p; }", "public Nodo1Controlador() {\n this.reinit();\n\n }", "public final void setDominio() {\r\n this.limite[0] = BigInteger.ZERO;\r\n this.limite[1] = this.primoGrande;\r\n }", "public Nodo() {\n this.valor = 0;\n this.proximo=null;\n\n }", "public void setCuentaContableCierre(CuentaContable cuentaContableCierre)\r\n/* 103: */ {\r\n/* 104:119 */ this.cuentaContableCierre = cuentaContableCierre;\r\n/* 105: */ }", "public void setNull(){\n for (int i = 0; i < Nodes.size(); i++){\n this.References.add(null);\n }\n }", "public void setValueAt( Object nyVerdi, int rad, int kolonne )\r\n {\r\n inntekter[ rad][ kolonne] = nyVerdi;\r\n }", "public void setPadre (nodeTree pPadre){\n this._padre=pPadre;\n }", "public void setdat()\n {\n }", "public void setNOficina (Integer pNOficina)\r\n {\r\n this.nOficina=pNOficina;\r\n }", "public void setToOriginals(){\n\t\t//set all occupied nodes as empty\n\t\tif(nodeStatus == Status.occupied){\n\t\t\tsetAsEmpty();\n\t\t}\n\t\t//if the node had a unit end on it, reset that value\n\t\tif(ended == true){\n\t\t\tended=false;\n\t\t}\n\t\tf=0;\n\t\tg=0;\n\t\th=0;\n\t}", "public void setCuentaContable(CuentaContable cuentaContable)\r\n/* 83: */ {\r\n/* 84:103 */ this.cuentaContable = cuentaContable;\r\n/* 85: */ }", "public void setEtiqueta(String etiqueta)\n/* 32: */ {\n/* 33:48 */ this.etiqueta = etiqueta;\n/* 34: */ }", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public @Override E set(int index, E element) {\n \tNode n = getNode(index);\n \tE result = n.data;\n \tn.data = element;\n \treturn result;\n }", "public void setRight(BTNode myNode){\n rightleaf = myNode;\r\n }", "private MsoSmartArtNodePosition(int value) { this.value = value; }", "public void setNom(String p_onom);", "public void setNode(ResidentNode node) {\r\n\t\tthis.node = node;\r\n//\t\tif (this.node != null && this.node.getMFrag() != null) {\r\n//\t\t\tthis.mebn = this.node.getMFrag().getMultiEntityBayesianNetwork();\r\n//\t\t}\r\n\t}", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "@Override\n public void setNull() {\n\n }", "public void setNombre(String nombre)\r\n/* 118: */ {\r\n/* 119:214 */ this.nombre = nombre;\r\n/* 120: */ }", "public void setElement(E e){\r\n\t\trotulo = e;\r\n\t}", "public abstract void setCod_tecnico(java.lang.String newCod_tecnico);", "public void setFun(IdUse node) {\n setChild(node, 0);\n }", "public void setNodeA(int x){\n this.nodeA = x;\n }", "public void setParentezco(Parentezco parentezco)\r\n/* 158: */ {\r\n/* 159:290 */ this.parentezco = parentezco;\r\n/* 160: */ }", "public void setCnode(Node<T1> cNode) {\r\n\t\tthis.cnode = cNode;\r\n\t\tcheckRep();\r\n\t}", "public void setCuentaContable(CuentaContable cuentaContable)\r\n/* 304: */ {\r\n/* 305:371 */ this.cuentaContable = cuentaContable;\r\n/* 306: */ }", "public void set(DEPNode node, String label)\n\t{\n\t\tthis.node = node;\n\t\tthis.label = label;\n\t}", "public void setp(Node n) {\n\t\tp = n;\n\t}", "public void setNilZyhtVO()\n {\n synchronized (monitor())\n {\n check_orphaned();\n nc.vo.crd.bd.interf.zyhtvo.ZyhtVO target = null;\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().find_element_user(ZYHTVO$0, 0);\n if (target == null)\n {\n target = (nc.vo.crd.bd.interf.zyhtvo.ZyhtVO)get_store().add_element_user(ZYHTVO$0);\n }\n target.setNil();\n }\n }", "public misDatos() {\n\tinitComponents();\n\tsetLocationRelativeTo(null);\n\tthis.nombre.setText(nodo.getContenido().getNombre());\n\tthis.apellido.setText(nodo.getContenido().getApellido());\n\tthis.carrera.setText(nodo.getContenido().getCarrera());\n\tthis.carnet.setText(Integer.toString(nodo.getContenido().getCarnet()));\n\n }", "public void setPadre(Nodo parent) {\n this.padre = parent;\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "public void setAD_WF_Node_ID (int AD_WF_Node_ID);", "public void setEmpresa(Empresa empresa)\r\n/* 89: */ {\r\n/* 90:141 */ this.empresa = empresa;\r\n/* 91: */ }", "public void setNumero(int numero) { this.numero = numero; }", "public void setPosicion(){\n ejeX = 0;\n ejeY = 0;\n }", "void setLowNode(Node n){\n low = n;\n }", "public abstract void setDataToElementXY();", "public void setNumeroInicial(int numeroInicial)\r\n/* 185: */ {\r\n/* 186:198 */ this.numeroInicial = numeroInicial;\r\n/* 187: */ }", "public void setNodes( Nodes nodes )\n {\n this.nodes = nodes;\n }", "@Override\r\n\tpublic void setRedondez(int redondez) {\n\r\n\t}", "public void setLongitud(String longitud);", "public void setRaiz(Nodo raiz) {\r\n\t\tRaiz = raiz;\r\n\t}", "public final void setNetId( String id) //final doesn't allow new rules or ways in door\r\n {\r\n netId = id; //only place I can do it in set methods\r\n }", "public void setEjercicio(Ejercicio ejercicio)\r\n/* 150: */ {\r\n/* 151:193 */ this.ejercicio = ejercicio;\r\n/* 152: */ }", "@Override\n\tpublic void setChild(Knoten child) {\n\n\t}", "public Stabel(){\n elementer = 0;\n hode = new Node(null);\n hale = hode;\n hode.neste = hale;\n hale.forrige = hode;\n }", "abstract void setRoot(Node<T> n);", "public void setOnt1(OntEntry ont)\r\n\t{\r\n\t\tif (ont1 != null)\r\n\t\t{\r\n\t\t\tont1.decRefs();\r\n\t\t}\r\n\t\tont1 = ont;\r\n\t\tont.incRefs();\r\n\t}", "public void setMotivoLlamadoAtencion(MotivoLlamadoAtencion motivoLlamadoAtencion)\r\n/* 119: */ {\r\n/* 120:127 */ this.motivoLlamadoAtencion = motivoLlamadoAtencion;\r\n/* 121: */ }", "private void setParent(Node<T> parent) {\n this.parent = parent;\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "void setFirst(Node node) {\n this.first = node;\n }", "private void setNode(int index, Node n) {\n \t\twhile (index + 1 >= contents.size()) {\n \t\t\tcontents.add(null);\n \t\t}\n \t\tcontents.set(index, n);\n \t}", "public Dipendente() {\r\n\t\tsetnMat();\r\n\t}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public void setHijoDer (nodeTree pHDer){\n this._hDer=pHDer;\n }", "public void setCounterpart(Node n)\n\t{\n\t\tcounterpart = n;\n\t}", "public void setCodigoArea(int p) { this.codigoArea = p; }", "public void setCodigoArea(int p) { this.codigoArea = p; }", "Node(){\n\t\t\tthis.array = new Node[256];\n\t\t\tthis.val = null;\n\t\t}", "public void setAnio(int p) { this.anio = p; }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }", "public void resetIdentificadorODE()\r\n {\r\n this.identificadorODE = null;\r\n }", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public abstract void setCntRod(int cntRod);", "public abstract void setCod_dpto(java.lang.String newCod_dpto);", "@Override\n public void set(C content) {\n this.content = content;\n }", "public void setObstaculo(int avenida, int calle);", "public void setNombreCodigoArea(String p) { this.nombreCodigoArea = p; }" ]
[ "0.65590537", "0.6557485", "0.65567267", "0.65539205", "0.6346322", "0.6308594", "0.6280346", "0.62203354", "0.6197016", "0.6155116", "0.615068", "0.6125404", "0.6101396", "0.6091275", "0.5995001", "0.5991147", "0.598336", "0.5983164", "0.59827876", "0.5971482", "0.5968139", "0.5948005", "0.5947617", "0.5875753", "0.58571845", "0.5840815", "0.58299315", "0.58209693", "0.58177984", "0.5809414", "0.579172", "0.57871217", "0.5773646", "0.577325", "0.57609344", "0.5754057", "0.57467115", "0.5724951", "0.5723231", "0.5707482", "0.56987286", "0.5692744", "0.56894195", "0.56849915", "0.5681448", "0.5678627", "0.56712586", "0.5669254", "0.56663525", "0.56642413", "0.56574076", "0.5656317", "0.5653638", "0.56501186", "0.5649083", "0.564892", "0.56479466", "0.5638631", "0.563491", "0.5628949", "0.56195045", "0.560596", "0.5598093", "0.55771047", "0.5564397", "0.555922", "0.55576205", "0.55537903", "0.55511194", "0.5546765", "0.55425406", "0.5538886", "0.55285853", "0.5517777", "0.5515674", "0.55092883", "0.55023617", "0.55004686", "0.5494287", "0.54937434", "0.5493721", "0.5490095", "0.5488872", "0.5473664", "0.54715097", "0.54622084", "0.5457986", "0.54566246", "0.54459095", "0.5438567", "0.5438567", "0.5436404", "0.5434955", "0.5427778", "0.5427778", "0.5421359", "0.5421342", "0.5420729", "0.54183954", "0.54179984", "0.54125535" ]
0.0
-1
getter pentru culoarea nodului
public boolean getColor() { return color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getNodeValue ();", "public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}", "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "public int getNodeLabel ();", "Node getNode();", "@AutoEscape\n\tpublic String getNode_1();", "Nodo_B getPrimero(){\n return this.primero;\n }", "public int Node() { return this.Node; }", "public short getNode() {\n return node;\n }", "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "@Override\n\tpublic java.lang.String getNode_1() {\n\t\treturn _dictData.getNode_1();\n\t}", "public int getNodeA(){\n return this.nodeA;\n }", "public Node getNode();", "public int size(){\n return n_nodi;\n }", "public String getNode()\n {\n return node;\n }", "public String getNode() {\n return node;\n }", "@AutoEscape\n\tpublic String getNode_3();", "public Node raiz(){\r\n\treturn this.raiz;\r\n}", "@AutoEscape\n\tpublic String getNode_4();", "public String\n getNodeName() \n {\n return pNodeName;\n }", "public String getNode() {\n return node;\n }", "@AutoEscape\n\tpublic String getNode_2();", "public int getContenido_neto() {\n return contenido_neto;\n }", "int getBaseNode();", "java.lang.String getNume();", "java.lang.String getNume();", "public List<NodoRuta> getElementos() { \n \n return new ArrayList<NodoRuta>(nodos);\n }", "public int getNickel () {\n return NNickel;\n }", "public abstract Node getNode();", "String getIdNode1();", "String getIdNode2();", "Object get(Node node);", "@Override\n\tpublic java.lang.String getNode_2() {\n\t\treturn _dictData.getNode_2();\n\t}", "public Nodo getNodoDerecho(){\n return der;\n }", "@Override\n\tpublic java.lang.String getNode_4() {\n\t\treturn _dictData.getNode_4();\n\t}", "public int jumlahNode() {\n return jumlahNode(root);\n }", "int nilaiMin(Node node){\n if (node.left != null) { // karena node yg nilainya minimum atau lebih kecil di sebelah kiri\n return nilaiMin(node.left);// maka jika != null akan me return node sebelah kiri\n }\n return node.data;\n }", "public node_data[] getA(){ return _a;}", "Integer getNLNDreu();", "public abstract int getNodeType();", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "public Nodes getNodes()\n {\n return nodes;\n }", "@Override\n\tpublic java.lang.String getNode_3() {\n\t\treturn _dictData.getNode_3();\n\t}", "@Override\n public Cluster.Node getNode() {\n return node;\n }", "@Override\n public Object getElementAt(int index) {\n Object resultado = null;\n resultado = nodos.get(index).getCentroTrabajo().getNombre();\n \n return resultado;\n }", "public int getNodeID() {\n return nodeID;\n }", "public Node getNode() {\n\t\treturn null;\n\t}", "@AutoEscape\n\tpublic String getNode_5();", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public int getNOficina ()\r\n {\r\n return this.nOficina;\r\n }", "@Override\n public node_data getNode(int key) {\n return nodes.get(key);\n }", "public Nodes nodes() {\n return this.nodes;\n }", "public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "NodeId getNodeId();", "public Node getNode() {\n return node;\n }", "public Node getNode() {\n return node;\n }", "OperationNode getNode();", "TreeNode getTreeNode();", "public PanneauG obtenirPanneauNord() {\r\n\t\treturn panneauNord;\r\n\t}", "String getNodeName();", "public Nodo getPadre() {\n return this.padre;\n }", "@Override\n\tpublic node_data getNode(int key) {\n\n\t\treturn this.Nodes.get(key);\n\n\t}", "RootNode getRootNode();", "@Override\n public Node getFullNode() {\n return getBasicNode();\n }", "public TMNode getNode() {\n return node;\n }", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public String getId() {\n return _node_id;\n }", "public int getDireccionX(){\n return this.ubicacion.x;\n }", "@Override\r\n public String toString() {\r\n return \"Nodo: \" + this.dato.toString();\r\n }", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "public String nodeId() {\n return this.nodeId;\n }", "public int getNid() {\r\n\t\treturn nid;\r\n\t}", "public Nodo getRaiz() {\r\n\t\treturn Raiz;\r\n\t}", "@Override\n\tpublic java.lang.String getNode_5() {\n\t\treturn _dictData.getNode_5();\n\t}", "public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}", "private Node getLeft() {\n return this.left;\n }", "public Node getLeft(){\r\n return this.left;\r\n }", "java.lang.String getEntryNode();", "public Nodo getRaiz() {\n return raiz;\n }", "public SecurityNode getNode() {\n\t return fo;\n\t}", "public int getNumero() { return this.numero; }", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public String getNomor() {\n return this.nomor;\n }", "N getNode(int id);", "public MyNode getLeft()\r\n {\r\n \treturn left;\r\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "public short getNodeType();", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String getNodeId() {\r\n return nodeId;\r\n }", "public int getAD_WF_Node_ID();", "public TreeNode getLeft(){ return leftChild;}", "public E getData() {\r\n\t\t//System.out.println(headNode.link.data);\r\n\t\tif(headNode.link.data != null) {\r\n\t\t\treturn headNode.link.data;\r\n\r\n\t\t}\r\n\t\telse\r\n\t\t\treturn null;\r\n\t}", "int nilaiMaks(Node node){\n if (node.right != null) { // karena node yg nilai nya lebih besar ada di kanan\n return nilaiMaks(node.right); // jadi jika tidak sama dengan null, maka akan me return node sebelah kanan\n }\n return node.data;\n }", "public Node<T1> getCnode() {\r\n\t\treturn cnode;\r\n\t}", "public Object getFirst()\n {\n return ((Node)nodes.elementAt(0)).data;\n }", "public String getnom ()\n {\n return nom_et;\n }", "@Override\r\n\tpublic String getIzena() {\n\t\treturn super.getIzena();\r\n\t}", "public int numNodi() {\n\t\treturn this.nodi.size();\n\t}" ]
[ "0.6648355", "0.6565873", "0.64945865", "0.64830303", "0.64540064", "0.64418066", "0.64379865", "0.6429158", "0.64223", "0.64205533", "0.63945645", "0.63725895", "0.6363832", "0.6308399", "0.6291572", "0.62713945", "0.6255395", "0.6229395", "0.6227233", "0.62052464", "0.6191861", "0.6191722", "0.61732304", "0.6160457", "0.61323494", "0.61323494", "0.61077505", "0.61038214", "0.6087333", "0.6071689", "0.60635203", "0.6060365", "0.60554105", "0.6054392", "0.6053745", "0.6041387", "0.60330164", "0.6030402", "0.6028509", "0.60073954", "0.6005003", "0.6005003", "0.6004925", "0.5999676", "0.5988508", "0.59843975", "0.5967998", "0.59636956", "0.59602386", "0.5951157", "0.5947234", "0.5944381", "0.5942528", "0.5933086", "0.5932103", "0.59260565", "0.59249264", "0.59249264", "0.59180087", "0.5886158", "0.5885032", "0.5877329", "0.58635825", "0.58622146", "0.5854617", "0.5854576", "0.5838713", "0.58296347", "0.5829272", "0.58102536", "0.58093804", "0.5807315", "0.5806136", "0.58060366", "0.579191", "0.5786693", "0.578145", "0.57796067", "0.57760215", "0.57724816", "0.57704425", "0.5770123", "0.5763717", "0.5763272", "0.5763272", "0.57610345", "0.5759581", "0.5759364", "0.57580805", "0.5751555", "0.5749752", "0.5747107", "0.57381713", "0.5737574", "0.57349384", "0.57332855", "0.57315874", "0.5727445", "0.5726658", "0.5724656", "0.5723142" ]
0.0
-1
getter pentru culoarea curenta a nodului
public Color getRedBlack() { if (isRed()) return Color.RED; else return Color.BLACK; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNode() {\r\n\t\t\treturn data;\r\n\t\t}", "public int Node() { return this.Node; }", "public int getNodeA(){\n return this.nodeA;\n }", "public int eleminardelInicio(){\n int elemento=inicio.dato;\n if(inicio==fin){\n inicio=fin=null;\n }else{\n inicio=inicio.siguiente;\n inicio.anterior=null; \n }\n return elemento;\n }", "public short getNode() {\n return node;\n }", "public static int numberOfNodes() { return current_id; }", "public int getContenido_neto() {\n return contenido_neto;\n }", "public int size(){\n return n_nodi;\n }", "public Nodo obtener_Nodo() {\n\t\treturn this.elem;\n\t}", "@Override\n public Cluster.Node getNode() {\n return node;\n }", "public int getNodeID() {\n return nodeID;\n }", "public String getNode()\n {\n return node;\n }", "Node getNode();", "public int jumlahNode() {\n return jumlahNode(root);\n }", "public String getNode_id() {\r\n\t\treturn node_id;\r\n\t}", "public Node raiz(){\r\n\treturn this.raiz;\r\n}", "public Node getStart(){\n return start;\n }", "public Node getNode() {\n return node;\n }", "public Node getNode() {\n return node;\n }", "public String getNode() {\n return node;\n }", "public SecurityNode getNode() {\n\t return fo;\n\t}", "public String getNodeValue ();", "public Nodes getNodes()\n {\n return nodes;\n }", "public Node getNode();", "public String getNode() {\n return node;\n }", "public TMNode getNode() {\n return node;\n }", "public String getId() {\n return _node_id;\n }", "public long getNodeIndex();", "INodeState getCurrentNode();", "public WAVLNode getExternalNode()\r\n\t {\r\n\t\t return this.externalNode;\r\n\t }", "public Node getCounterpart()\n\t{\n\t\treturn counterpart;\n\t}", "public int getNodeID() {\r\n \t\treturn nodeID;\r\n \t}", "int getBaseNode();", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "@java.lang.Override\n public entities.Torrent.NodeIdOrBuilder getNodeOrBuilder() {\n return getNode();\n }", "@Override\n\tpublic List<Nodo> obtenerNodos() {\n\t\treturn nodos;\n\t}", "OperationNode getNode();", "public Nodes nodes() {\n return this.nodes;\n }", "public Node getNode() {\n\t\treturn null;\n\t}", "int NoOfNodes() {\r\n return noOfNodes;\r\n }", "public Node getReference() {\n return this.reference;\n }", "public K get()\n {\n\treturn current.data(); \n }", "public Node<?> getNode() {\n return observedNode;\n }", "public Long getNodeId() {\n return nodeId;\n }", "public int getCurrentNode() {\n\t\treturn currentNode;\n\t}", "Nodo_B getPrimero(){\n return this.primero;\n }", "public int getReferencia() {\n return referencia;\n }", "public Node<T1> getCnode() {\r\n\t\treturn cnode;\r\n\t}", "@Override\n public long get() {\n return (long) inner.get();\n }", "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "@Override\n public Node getFullNode() {\n return getBasicNode();\n }", "@Override\n public node_data getNode(int key) {\n return nodes.get(key);\n }", "public int getConto() {\n return (Integer)this.getCampo(nomeConto).getValore();\n }", "public int getNodeId() {\n return m_nodeId;\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public node_info getNode(int key)\n{\n\treturn getNodes().get(key);\n\t\n}", "private int getNumberOfNodesRec(int contador, Node<T> nodo) {\r\n\t\tcontador++;// Si este metodo entra es porque entro a un nodo por lo que\r\n\t\t\t\t\t// se suma 1\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> lista = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= lista.size(); i++) {\r\n\t\t\t\tcontador = getNumberOfNodesRec(contador, lista.get(i));// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn contador;\r\n\t}", "public Node getNode() {\n return thread;\n }", "public int getNodeCount() {\n return nodeCount;\n }", "@Override\n\tpublic node_data getNode(int key) {\n\n\t\treturn this.Nodes.get(key);\n\n\t}", "public Node getNetworkNode() {\r\n return network;\r\n }", "public NodeId getId() {\n return id;\n }", "public String nodeId() {\n return this.nodeId;\n }", "public Node getCurrent() {\n return current;\n }", "public int getIdFornecedor(){\n\t return idFornecedor;\n\t}", "public NodeId getNodeId() {\n return nodeId;\n }", "@AutoEscape\n\tpublic String getNode_1();", "public int getNOficina ()\r\n {\r\n return this.nOficina;\r\n }", "public int getNumero() { return this.numero; }", "public int\ngetNodeIndexMax();", "NodeId getNodeId();", "public int lancia() {\r\n\t\tlancio = dado.tiraDado();\r\n\t\tthis.numLanci++;\r\n\t\treturn lancio;\r\n\t}", "public Node getNode() {\r\n return channel.attr(NetworkConstants.ATTRIBUTE_NODE).get();\r\n }", "protected Complex selfAdmittance()\r\n\t\t{\r\n\t\t\treturn neighbours.get(this);\r\n\t\t}", "@Override\r\n\tpublic int getNumberOfNodes() {\r\n\t\tint contador = 0;// Contador para el recursivo\r\n\t\treturn getNumberOfNodesRec(contador, raiz);\r\n\t}", "public Nodo getNodoIzquierdo(){\n return izq;\n }", "public int getbno(){\r\n return this.bno;\r\n }", "public abstract Node getNode();", "public PanneauG obtenirPanneauNord() {\r\n\t\treturn panneauNord;\r\n\t}", "public int getDatossolicitudBfsucursal() {\n return datossolicitudBfsucursal;\n }", "public @Override E get(int index) {\n \treturn getNode(index).data;\n }", "public int getNodeLabel ();", "public String getNodeId() {\r\n return nodeId;\r\n }", "public node_data[] getA(){ return _a;}", "entities.Torrent.NodeId getNode();", "entities.Torrent.NodeId getNode();", "public Long getNumContaCorrente() {\n\t\treturn numContaCorrente;\n\t}", "public String\n getNodeName() \n {\n return pNodeName;\n }", "public NominaControlador getNominaControlador() {\n return nomina;\n }", "public int getCiclo() { return this.ciclo; }", "public Integer getIdCurso() {\r\n return idCurso;\r\n }", "public Node getNode()\n\t{\n\t\treturn root;\n\t}", "public int getNickel () {\n return NNickel;\n }", "public int getElem()\r\n\t{\r\n\t\treturn elem;\r\n\t}", "public T getElementoCima(){\r\n\t\r\n\t\treturn this.num.get(this.num.size()-1);\r\n\t}", "public int getDireccionX(){\n return this.ubicacion.x;\n }", "public Nodo<T> getIzquierdo() {\n\t\treturn izquierdo;\n\t}", "public int getTransportista(){\n return this.transportista;\n }", "public int bcNode() {\n return bcIndex;\n }", "public int obtenirTaille()\n\t{\n\t\treturn this.taille;\n\t}", "Object get(Node node);" ]
[ "0.6568067", "0.65624815", "0.6425897", "0.6307117", "0.61972296", "0.6183512", "0.60586995", "0.60125804", "0.6006473", "0.5899686", "0.5883991", "0.5831912", "0.5822932", "0.5821395", "0.5817265", "0.5811621", "0.5794168", "0.5790427", "0.5790427", "0.57879764", "0.5777908", "0.57630324", "0.5730587", "0.5725762", "0.57211286", "0.57193154", "0.57025486", "0.5700114", "0.56988436", "0.5690279", "0.56877255", "0.56844807", "0.5679692", "0.5678201", "0.5678201", "0.5676239", "0.5669939", "0.5669538", "0.5666427", "0.56558406", "0.565368", "0.56518745", "0.56500185", "0.56467533", "0.5642324", "0.5640924", "0.5637198", "0.56359", "0.5632364", "0.5624614", "0.5606918", "0.55949676", "0.55886465", "0.5586915", "0.5585744", "0.5566534", "0.5565719", "0.55605125", "0.55552745", "0.5549087", "0.5547133", "0.55457044", "0.5542393", "0.5532524", "0.5524334", "0.5524183", "0.55148816", "0.5503017", "0.54941547", "0.54922336", "0.54879653", "0.5486855", "0.54814607", "0.5479522", "0.5475158", "0.5474168", "0.5472198", "0.5472035", "0.54708624", "0.54612064", "0.54606646", "0.54572564", "0.5456289", "0.54410726", "0.54389215", "0.54389215", "0.5434443", "0.54296964", "0.5428728", "0.54284126", "0.5428179", "0.54275674", "0.542577", "0.5425742", "0.5422103", "0.5421461", "0.54206955", "0.5413069", "0.5404772", "0.54031754", "0.54007107" ]
0.0
-1
functie pentru schimbarea culorii unui nod
public void switchColor() { color = !color; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public Nodo espaciosJustos(Nodo nodo){\n System.out.println(\"----------------inicio heuristica espaciosJustos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n int changue=0;\n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i=0;i<numFilas;i++){\n auxListFila = (ArrayListFila)filas.get(i);\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n\n if(auxColor.getNumero() > 0){\n int contador=0;\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n contador++;\n }\n }\n }\n }\n \n if(auxColor.getNumero() == contador){\n changue=1;\n cambio=1;\n auxColor.setNumero(0);\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n \n auxColor1.setNumero(auxColor1.getNumero()-1);\n\n matriz = operadores.pintarPosicion(matriz, i, c, auxColor.getColor());\n\n nodo.setMatriz(matriz);\n }\n }\n }\n }\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n \n \n }\n }\n }\n }\n \n }\n if(changue==1) nodo.setCambio(1);\n System.out.println(\"----------------fin heuristica espaciosJustos-------------- \");\n return (Nodo)nodo;\n }", "private static void muta(Cromosoma c)\n\t{\n\t}", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@Override\n public Boolean colisionoCon(BOrigen gr) {\n return true;\n }", "public void Ordenamiento() {\n\n\t}", "@Override\n public Boolean colisionoCon(Policia gr) {\n return true;\n }", "public Nodo dosNoSeguidos(Nodo nodo) throws IOException{\n System.out.println(\"----------------inicio heuristica dosnoseguidos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n \n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i = 0;i<numFilas;i++){\n if(operadores.isFilaVacia(nodo.getMatriz(), i) == true){\n //filas\n auxListFila = (ArrayListFila)filas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n }\n }//fin color\n\n\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListFila.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListFila.getColor(j2);\n\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n //pinta los extremos de la fila\n matriz = operadores.pintarPosicion(matriz,i, (numColumnas-1), auxColor1.getColor());\n \n matriz = operadores.pintarPosicion(matriz, i, 0, auxColor1.getColor());\n \n //pinta el resto de la fila\n matriz = operadores.pintarFilaCompleta(matriz, auxColor2.getColor(), i);\n //descuenta los colores en las filas\n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n //descontar colores en las columnas\n for(int c=0;c<numColumnas;c++){\n auxListColumna = (ArrayListColumna)columnas.get(c);\n \n if(c == 0){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n \n }\n }else if(c == (numColumnas-1)){\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor1.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n }else{\n for(int c1=0;c1<numColores;c1++){\n Color auxColorc1 = new Color();\n auxColorc1 = auxListColumna.getColor(c1);\n \n if(auxColorc1.getColor().equals(auxColor2.getColor())){\n auxColorc1.setNumero(auxColorc1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }//fin isfilaVacia\n }//fin filas\n \n \n //---------columnas\n for(int i = 0;i<numColumnas;i++){\n if(operadores.isColumnaVacia(nodo.getMatriz(), i) == true){ \n //columnas\n auxListColumna = (ArrayListColumna)columnas.get(i);\n\n int contadorColores = 0;\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListColumna.getColor(j);\n if(auxColor.getNumero() > 0){\n contadorColores++;\n } \n }//fin color\n if(contadorColores == 2){//esto quiere decir que hay dos colores disponibles para usar en la matriz\n //ahora hay que ver si uno de los dos es igual a 2 y false\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n\n if(auxColor1.getNumero() == 2 && auxColor1.isSeguido() == false){\n for(int j2=0;j2<numColores;j2++){\n Color auxColor2 = new Color();\n auxColor2 = auxListColumna.getColor(j2);\n if(auxColor2.isSeguido() == true){\n cambio=1;\n nodo.setCambio(1);\n matriz = operadores.pintarPosicion(matriz,(numFilas-1), i, auxColor1.getColor());\n matriz = operadores.pintarPosicion(matriz, 0, i, auxColor1.getColor());\n \n matriz = operadores.pintarColumnaCompleta(matriz, auxColor2.getColor(), i);\n \n auxColor1.setNumero(0);\n auxColor2.setNumero(0);\n \n \n //descontar colores en las columnas\n for(int f=0;f<numFilas;f++){\n auxListFila = (ArrayListFila)filas.get(f);\n \n if(f == 0){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else if(f == (numColumnas-1)){\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor1.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n \n }\n }else{\n for(int f1=0;f1<numColores;f1++){\n Color auxColorf1 = new Color();\n auxColorf1 = auxListFila.getColor(f1);\n \n if(auxColorf1.getColor().equals(auxColor2.getColor())){\n auxColorf1.setNumero(auxColorf1.getNumero()-1);\n }\n }\n \n }\n \n }\n \n nodo.setMatriz(matriz.clone());\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n }\n }\n }\n }//fin color\n }\n }\n }//fin columnas\n }//fin while principal\n \n System.out.println(\"---------------final heuristica dosnoseguidos---------------\");\n return nodo;\n }", "private void limpiarDatos() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract String dohvatiKontakt();", "@Override\n public Boolean colisionoCon(MV gr) {\n return true;\n }", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "void recorridoCero(){\n \n for(int i=0;i<8;i++)\n\t\t\tfor(int j=0;j<8;j++)\n\t\t\t\t{\n\t\t\t\t\t//marcar con cero todas las posiciones\n\t\t\t\t\trecorrido[i][j]=0;\n\t\t\t\t}\n }", "@Override\n\tvoid geraDados() {\n\n\t}", "public abstract Koordinate schuss();", "private void remplirFabricantData() {\n\t}", "public cola_de_un_banco(){// se crea nuestro metodo costructor \r\n primero=null;//se crea el tipo de indicaciones con valor a null\r\n ultimo=null;\r\n}", "public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\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}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void actualizarCreencias(int id) {\n\t\tint j =0;\t\t\n\t\t//Actualizamos las creecias del jugador \n\t\tint i =0;\n\t\tfor(j =0; j < GestorPartida.getContJugadores();j++) {\n\t\t\t\n\t\t\t\n\t\t\tif(GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t//Filtramos que los jugadores que vayan a actualizar sus creencias sean los de la sala del jugador que acaba de realizar una accion, excepto las suyas propias\t\t\t\n\t\t\t\tif(GestorPartida.getJugadores()[j].getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala()) && GestorPartida.getJugadores()[j].getId() != id) {\n\t\t\t\t\t//Actualizamos la sala por si el jugador se acaba de mover\n\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setSalaPersona(GestorPartida.getJugadores()[j].getSala(), i);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\ti++;\n\t\t\t}\n\t\t}\n\t\t\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosJugador();j++) {\n\t\t\t//Comprobamos que el jugador coincida con un poseedor de un objeto\n\t\t\tif(GestorPartida.getObjetoJugador()[j].getJugador().getSala().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoJugador()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoJugador()[j].getJugador().getNombre(), x);\n\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\t\n\t\tfor(j = 0; j < GestorPartida.getContObjetosSala();j++) {\n\t\t\t//Comprobamos si hay objetos en la sala del jugador\n\t\t\tif(GestorPartida.getObjetoSala()[j].getSala().getNombre().equalsIgnoreCase(GestorPartida.getJugadores()[id].getSala())) {\n\t\t\t\tfor(int x =0; GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x]!=null ; x++) {\n\t\t\t\t\t//Cogemos la posicion del objeto donde esta el objeto dentro de las creencias\n\t\t\t\t\tif(GestorPartida.getJugadores()[id].getCreencias().getNombreObjeto()[x].equalsIgnoreCase(GestorPartida.getObjetoSala()[j].getNombreObjeto())) {\n\t\t\t\t\t\tGestorPartida.getJugadores()[id].getCreencias().setLugarObjeto(GestorPartida.getObjetoSala()[j].getSala().getNombre(), x);\n\t\t\t\t\t}\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\n\t}", "private static void statistique(){\n\t\tfor(int i = 0; i<7; i++){\n\t\t\tfor(int j = 0; j<7; j++){\n\t\t\t\tfor(int l=0; l<jeu.getJoueurs().length; l++){\n\t\t\t\t\tif(jeu.cases[i][j].getCouleurTapis() == jeu.getJoueurs()[l].getNumJoueur()){\n\t\t\t\t\t\tjeu.getJoueurs()[l].setTapis(jeu.getJoueurs()[l].getTapisRest()+1);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tJoueur j;\n\t\tSystem.out.println(\"// Fin de la partie //\");\n\t\tfor(int i=0; i<jeu.getJoueurs().length; i++) {\n\t\t\tj =jeu.getJoueurs()[i];\n\t\t\tSystem.out.println(\"Joueur \"+ (j.getNumJoueur()+1) + \" a obtenue \"+j.getTapisRest()+j.getMonnaie()+\" points\" );\n\t\t}\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "Groepen maakGroepsindeling(Groepen aanwezigheidsGroepen);", "public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }", "public void statoIniziale()\n {\n int r, c;\n for (r=0; r<DIM_LATO; r++)\n for (c=0; c<DIM_LATO; c++)\n {\n if (eNera(r,c))\n {\n if (r<3) // le tre righe in alto\n contenutoCaselle[r][c] = PEDINA_NERA;\n else if (r>4) // le tre righe in basso\n contenutoCaselle[r][c] = PEDINA_BIANCA;\n else contenutoCaselle[r][c] = VUOTA; // le 2 righe centrali\n }\n else contenutoCaselle[r][c] = VUOTA; // caselle bianche\n }\n }", "@Override\n public Boolean colisionoCon(BDestino gr) {\n return true;\n }", "@Override\n public Boolean colisionoCon(Grafico gr) {\n return true;\n }", "public void majAffichageConnectes() {\n effacerConnectes(); // on efface ce qui est deja ecrit dans la zone reservees a la liste des\n // connectes\n\n choixMessage.removeAllItems(); // Suppression de tous les items de la comboBox\n choixMessage.addItem(\"Tout le monde\");\n choixMessage.setSelectedIndex(0); // Par defaut => envoi a tout le monde\n\n // Parcours de la liste des personnes connectees\n for (Map.Entry<String, Color> entry : couleurs.entrySet()) {\n String nom = entry.getKey(); // recuperation du nom\n Color rgb = new Color(chercherCouleur(nom)); // recuperation de la couleur correspondante\n\n // Mise a jour de la combobox\n if(!fenetre.getClient().getNom().equals(nom)){\n choixMessage.addItem(nom);\n }\n\n // Mise a jour de l'affichage dans le panneau \"Connectes\"\n StyledDocument doc = connectes.getStyledDocument();\n StyleContext style = StyleContext.getDefaultStyleContext();\n // Modification de la couleur\n AttributeSet aset = style.addAttribute(style.getEmptySet(), StyleConstants.Foreground, rgb);\n // Mettre en gras\n aset = style.addAttributes(aset, style.addAttribute(style.getEmptySet(), StyleConstants.Bold, true));\n\n // ajout de la personne dans la liste avec la couleur correspondante\n try {\n doc.insertString(doc.getLength(), nom+\"\\n\", aset);\n } catch (BadLocationException e) {\n e.printStackTrace();\n }\n }\n\n System.out.println(\"maj de l'affichage de la liste des connectes\");\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private void remplirPrestaraireData() {\n\t}", "public void construirCuartoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet4ReglaCompleja = new JComboBox(dominio);// creamos el Cuarto combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet4ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Cuarto item\n\t\titemscomboDominiosSet4ReglaCompleja = new JComboBox();// creamo el Cuarto combo, vacio\n\t\titemscomboDominiosSet4ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Cuarto Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet4ReglaCompleja);\n\t\tcomboDominiosSet4ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet4ReglaCompleja);\n\t\titemscomboDominiosSet4ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public void affichageLabyrinthe () {\n\t\t//Affiche le nombre de coups actuel sur la console et sur la fenetre graphique\n\t\tSystem.out.println(\"Nombre de coups : \" + this.laby.getNbCoups() + \"\\n\");\t\t\n\t\tthis.enTete.setText(\"Nombre de coups : \" + this.laby.getNbCoups());\n\n\t\t//Affichage dans la fenêtre et dans la console du labyrinthe case par case, et quand la case est celle ou se trouve le mineur, affiche ce dernier\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tString ligne = new String();\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (i != this.laby.getMineur().getY() || j != this.laby.getMineur().getX()) {\n\t\t\t\t\tligne = ligne + this.laby.getLabyrinthe()[i][j].graphismeCase();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j]=new Case();\n\t\t\t\t\tligne = ligne + this.laby.getMineur().graphismeMineur();\n\t\t\t\t}\t\t\t\t\n\t\t\t\tif (grille.getComponentCount() < this.laby.getLargeur()*this.laby.getHauteur()) {\n\t\t\t\t\tgrille.add(new JLabel());\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ligne);\n\t\t}\n\t\t((JLabel)grille.getComponents()[this.laby.getMineur().getY()*this.laby.getLargeur()+this.laby.getMineur().getX()]).setIcon(this.laby.getMineur().imageCase(themeJeu));\n\t}", "private TreeNode napraviStabloUtil(List<TreeNode> cvorovi, int pocetni, int krajnji) {\n// osnovni slučaj\n if (pocetni > krajnji) {\n return null;\n }\n /* Nadji srednji element i proglasi ga korenom */\n int mid = (pocetni + krajnji) / 2;\n TreeNode cvor = cvorovi.get(mid);\n /* Koristeci indeks u infiks obilasku\n* konstruiši levo i desno podstablo */\n cvor.left = napraviStabloUtil(cvorovi, pocetni, mid - 1);\n cvor.right = napraviStabloUtil(cvorovi, mid + 1, krajnji);\n return cvor;\n }", "public void rodar(){\n\t\tmeuConjuntoDePneus.rodar();\r\n\t}", "public void asetaTeksti(){\n }", "float znajdzOstatecznaCene2()\n\t{\n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\tfloat minimuCena =-1;\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\t//wyznacz liste ktora ma najwieksza wartosc funkcji rynkowej\n\t\t\n\t\tArrayList<Float> cenyZNajwiekszaFunkcjaRynkowa = new ArrayList<>();\n\t\tfloat maximumFunkcjiRynkowej=-1;\n\t\t\n\t\ti=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(value, cena);\n\n\t\t\t\n\t\t\tif (value>maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.clear();\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t\tmaximumFunkcjiRynkowej = value;\n\t\t\t}\n\t\t\telse if (value==maximumFunkcjiRynkowej)\n\t\t\t{\n\t\t\t\tcenyZNajwiekszaFunkcjaRynkowa.add(cena);\n\t\t\t} \n\t\t\t\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tminimuCena = cenyZNajwiekszaFunkcjaRynkowa.get(cenyZNajwiekszaFunkcjaRynkowa.size()/2);\n\t\t\n\t\treturn minimuCena;\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}", "public void trenneVerbindung();", "private void aggiornaContiFiglioRicorsivamente(Conto contoPadre) {\n\t\tString methodName = \"aggiornaContiFiglioRicorsivamente\";\n\t\tcontoPadre.setDataInizioValiditaFiltro(this.conto.getDataInizioValidita());\n\t\t\n\t\tListaPaginata<Conto> contiFiglio = contoDad.ricercaSinteticaContoFigli(contoPadre, new ParametriPaginazione(0,Integer.MAX_VALUE));\n\t\tfor (Conto contoFiglio : contiFiglio) {\n\t\t\t\n\t\t\t//TODO aggiungere qui tutti i parametri da ribaltare sui conti figli.\n\t\t\tcontoFiglio.setAttivo(contoPadre.getAttivo()); //in analisi c'è solo questo parametro!\n\t\t\t\n\t\t\tif(isContoDiLivelloDiLegge()) {\n\t\t\t\tlog.debug(methodName, \"Conto di livello di legge: aggiorno tutti i campi del figlio \" + contoFiglio.getCodice());\n\t\t\t\t\n\t\t\t\t//TODO controllare eventuali altri parametri da ribaltare ai conti figlio.\n\t\t\t\tcontoFiglio.setElementoPianoDeiConti(contoPadre.getElementoPianoDeiConti());\n\t\t\t\tcontoFiglio.setCategoriaCespiti(contoPadre.getCategoriaCespiti());\n\t\t\t\tcontoFiglio.setTipoConto(contoPadre.getTipoConto());\n\t\t\t\tcontoFiglio.setTipoLegame(contoPadre.getTipoLegame());\n\t\t\t\tcontoFiglio.setContoAPartite(contoPadre.getContoAPartite());\n\t\t\t\tcontoFiglio.setContoDiLegge(contoPadre.getContoDiLegge());\n\t\t\t\tcontoFiglio.setCodiceBilancio(contoPadre.getCodiceBilancio());\n\t\t\t\tcontoFiglio.setContoCollegato(contoPadre.getContoCollegato());\n\t\t\t} else {\n\t\t\t\tlog.debug(methodName, \"Conto NON di livello di legge: aggiorno solo il flag Attivo del figlio \" + contoFiglio.getCodice());\n\t\t\t}\n\t\t\t\n\t\t\tcontoDad.aggiornaConto(contoFiglio);\n\t\t\tlog.debug(methodName, \"Aggiornato conto figlio: \"+ contoFiglio.getCodice());\n\t\t\taggiornaContiFiglioRicorsivamente(contoFiglio);\n\t\t}\n\t}", "public static void obtenerInfoColisionEnemigo(Enemigo enemigo, Objeto col,String[] direccion, ArrayList<Objeto> obj_colision) {\n Rectangle[] lados_ente = enemigo.objeto_ente.getRectangle();\n Rectangle[] lados_col = col.getRectangle();\n\n if (col.getTag().compareToIgnoreCase(Objeto.Tag.JUGADOR) == 0) {\n if (lados_ente[0].intersects(lados_col[2])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"jugador_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[3])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"jugador_derecha\";\n\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"jugador_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[1])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"jugador_izquierda\";\n }\n }\n\n if (lados_ente[0].intersects(lados_col[0])) {\n //\"arriba\";\n obj_colision.add(col);\n direccion[0] = \"entorno_arriba\";\n }\n if (lados_ente[1].intersects(lados_col[0])) {\n //\"derecha\";\n obj_colision.add(col);\n direccion[1] = \"entorno_derecha\";\n }\n if (lados_ente[2].intersects(lados_col[0])) {\n //\"abajo\";\n obj_colision.add(col);\n direccion[2] = \"entorno_abajo\";\n }\n if (lados_ente[3].intersects(lados_col[0])) {\n //\"izquierda\";\n obj_colision.add(col);\n direccion[3] = \"entorno_izquierda\";\n }\n }", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "public void Nodo(){\r\n this.valor = \"\";\r\n this.siguiente = null;\r\n }", "public void construirPrimerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet1ReglaCompleja = new JComboBox(dominio);// creamos el primer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet1ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el primer item\n\t\titemscomboDominiosSet1ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet1ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el primer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet1ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet1ReglaCompleja);\n\t\titemscomboDominiosSet1ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet1ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "@Override\r\n\tpublic void horario() {\n\t\t\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n public Boolean colisionoCon(MH gr) {\n return true;\n }", "public NodoA desconectar(NodoA t){\n if(t != cabeza){\n t.getLigaDer().setLigaIzq(t.getLigaIzq());\n System.out.println(\"Direccion:\"+t+\" izquierdo:\"+t.getLigaIzq()+\" derecho:\"+t.getLigaDer());\n t.getLigaIzq().setLigaDer(t.getLigaDer());\n return t;\n }\n return null;\n }", "void berechneFlaeche() {\n\t}", "private void remplirMaterielData() {\n\t}", "public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}", "public void riconnetti() {\n\t\tconnesso = true;\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void fecharConta() {\n\t\tcliente.setConta(new Conta());\r\n\t\tRepositorioCliente repositorioCliente = new FabricaRepositorio().getRepCliente();\r\n\t\trepositorioCliente.editar((ClienteIndividual)cliente);\r\n//\t\tGerenciadorContaImpl contaImpl = new GerenciadorContaImpl();\r\n//\t\ttry {\r\n//\t\t\tcontaImpl.fecharConta(cliente);\r\n//\t\t} catch (OperacaoInvalidaException e) {\r\n//\t\t\te.printStackTrace();\r\n//\t\t}\r\n\t}", "public boolean eDentro(Casella c) { return eDentro(c.riga,c.colonna); }", "public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }", "private ControleurAcceuil(){ }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "public Cotisant visite(Contributeur c){ \n int somme = this.state.get(c); \n c.affecterSolde(somme); \n return c ; \n }", "public void limpiarCamposCita() {\r\n try {\r\n visitaRealizada = false;\r\n fechaNueva = null;\r\n observacionReasignaCita = \"\";\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".limpiarCamposCita()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public void checaColision() {\n //Si el proyectil colisiona con la barra entonces..\n if (objBarra.colisiona(objProyectil)) {\n //Guardo el centro x del proyectil para no facilitar su comparacion\n int iCentroProyectil = objProyectil.getX()\n + objProyectil.getAncho() / 2;\n //Si el nivel de Y del lado inferior del proyectil es el mismo que\n //el nivel de Y del lado superior de la barra...\n if (objProyectil.getY() + objProyectil.getAlto()\n >= objBarra.getY()) {\n //Dividimos el ancho de la barra en 2 secciones que otorgan \n //diferente velocidad dependiendo que seccion toque el proyectil\n //Si el centro del proyectil toca la primera parte de la \n //barra o el lado izquierdo del proyectil esta mas a la \n //izquierda que el lado izquierdo de la barra...\n if ((iCentroProyectil > objBarra.getX() && iCentroProyectil\n < objBarra.getX() + objBarra.getAncho() / 2)\n || (objProyectil.getX() < objBarra.getX())) {\n bDireccionX = false; // arriba\n bDireccionY = false; // izquierda\n } //Si el centro del proyectil toca la ultima parte de la barra o\n //el lado derecho del proyectil esta mas a la derecha que el \n //lado derecho de la barra\n else if ((iCentroProyectil > objBarra.getX()\n + (objBarra.getAncho() / 2) && iCentroProyectil\n < objBarra.getX() + (objBarra.getAncho()\n - objBarra.getAncho() / 18)) || (objProyectil.getX()\n + objProyectil.getAncho() > objBarra.getX()\n + objBarra.getAncho())) {\n bDireccionX = true; // arriba\n bDireccionY = false; // derecha\n }\n }\n\n }\n for (Object objeBloque : lnkBloques) {\n Objeto objBloque = (Objeto) objeBloque;\n //Checa si la barra choca con los bloques (Choca con el poder)\n if(objBarra.colisiona(objBloque)) {\n bPoderes[objBloque.getPoder()] = true;\n }\n // Checa si el proyectil choca contra los bloques\n if (objBloque.colisiona(objProyectil)) {\n iScore++; // Se aumenta en 1 el score\n iNumBloques--; //Se resta el numero de bloques\n //Se activa el bloque con el poder para que se mueva para abajo\n if (objBloque.getPoder() != 0) {\n URL urlImagenPoder\n = this.getClass().getResource(\"metanfeta.png\");\n objBloque.setImagen(Toolkit.getDefaultToolkit()\n .getImage(urlImagenPoder));\n objBloque.setVelocidad(2);\n bAvanzaBloque = true;\n }\n if(objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = false; //va hacia arriba\n }\n if(objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()) ||\n objProyectil.colisiona(objBloque.getX()+objBloque.getAncho(), \n objBloque.getY()+objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionX = true; //va hacia arriba\n }\n //Si la parte superior de proyectil es mayor o igual a la parte\n //inferior del bloque(esta golpeando por abajo del bloque...\n if((objProyectil.getY() <= objBloque.getY() \n + objBloque.getAlto()) && (objProyectil.getY() \n + objProyectil.getAlto() > objBloque.getY() \n + objBloque.getAlto())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = true; //va hacia abajo\n \n \n }\n //parte inferior del proyectil es menor o igual a la de la parte\n //superior del bloque(esta golpeando por arriba)...\n else if(( objProyectil.getY() + objProyectil.getAlto()\n >= objBloque.getY())&&( objProyectil.getY() \n < objBloque.getY())) {\n objBloque.setX(getWidth() + 50);\n bDireccionY = false; //va hacia arriba\n }\n //Si esta golpeando por algun otro lugar (los lados)...\n else {\n objBloque.setX(getWidth()+50);\n bDireccionX = !bDireccionX;\n }\n }\n }\n //Si la barra choca con el lado izquierdo...\n if (objBarra.getX() < 0) {\n objBarra.setX(0); //Se posiciona al principio antes de salir\n } //Si toca el lado derecho del Jframe...\n else if (objBarra.getX() + objBarra.getAncho() - objBarra.getAncho() / 18\n > getWidth()) {\n objBarra.setX(getWidth() - objBarra.getAncho() + objBarra.getAncho()\n / 18);// Se posiciciona al final antes de salir\n }\n //Si el Proyectil choca con cualquier limite de los lados...\n if (objProyectil.getX() < 0 || objProyectil.getX()\n + objProyectil.getAncho() > getWidth()) {\n //Cambias su direccion al contrario\n bDireccionX = !bDireccionX;\n } //Si el Proyectil choca con la parte superior del Jframe...\n else if (objProyectil.getY() < 0) {\n //Cambias su direccion al contrario\n bDireccionY = !bDireccionY;\n } //Si el proyectil toca el fondo del Jframe...\n else if (objProyectil.getY() + objProyectil.getAlto() > getHeight()) {\n iVidas--; //Se resta una vida.\n // se posiciona el proyectil en el centro arriba de barra\n objProyectil.reposiciona((objBarra.getX() + objBarra.getAncho() / 2\n - (objProyectil.getAncho() / 2)), (objBarra.getY()\n - objProyectil.getAlto()));\n }\n }", "public void fjernAlle() {\n listehode.neste = null;\n antall = 0;\n }", "public static void viaggia(List<Trasporto> lista,Taxi[] taxi,HandlerCoR h) throws SQLException\r\n {\n Persona app = (Persona) lista.get(0);\r\n /* ARGOMENTI handleRequest\r\n 1° Oggetto Request\r\n 2° Array Taxi per permettere la selezione e la modifica della disponibilità\r\n */\r\n h.handleRequest(new RequestCoR(app.getPosPartenza(),app.getPosArrivo(),taxi),taxi); \r\n SceltaPercorso tempo = new SceltaPercorso();\r\n SceltaPercorso spazio = new SceltaPercorso();\r\n tempo.setPercorsoStrategy(new timeStrategy());\r\n spazio.setPercorsoStrategy(new lenghtStrategy());\r\n for(int i=0;i<5;i++)\r\n if(!taxi[i].getLibero())\r\n {\r\n if(Scelta.equals(\"veloce\"))\r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Veloce...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n tempo.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n } else\r\n \r\n {\r\n JOptionPane.showMessageDialog(null,\"Hai Scelto il Percorso più Breve...\");\r\n Connessione conn;\r\n conn = Connessione.getConnessione();\r\n String query = \"Delete from CRONOCORSE where PASSEGGERO = ? \";\r\n try (PreparedStatement ps = conn.connect.prepareStatement(query)) {\r\n ps.setString(1, app.getNome());\r\n ps.executeUpdate();\r\n ps.close();\r\n JOptionPane.showMessageDialog(null,\"Cliente in viaggio...\\n\"+app.getNome()+\" è arrivato a destinazione!\\nPrezzo Corsa: \"+taxi[i].getPrezzoTotale()+\"€\");\r\n \r\n \r\n }catch(SQLException e){JOptionPane.showMessageDialog(null,e);}\r\n spazio.Prenota(taxi[i]); \r\n app.setPosPartenza();\r\n taxi[i].setPosizione(app.getPosArrivo());\r\n taxi[i].setStato(true);\r\n taxi[i].clear();\r\n lista.set(0,app);\r\n i=5;\r\n \r\n \r\n }\r\n }\r\n \r\n }", "public Coup coupIA() {\n\n int propriete = TypeCoup.CONT.getValue();\n int bloque = Bloque.NONBLOQUE.getValue();\n Term A = intArrayToList(plateau1);\n Term B = intArrayToList(plateau2);\n Term C = intArrayToList(piecesDispos);\n Variable D = new Variable(\"D\");\n Variable E = new Variable(\"E\");\n Variable F = new Variable(\"F\");\n Variable G = new Variable(\"G\");\n Variable H = new Variable(\"H\");\n org.jpl7.Integer I = new org.jpl7.Integer(co.getValue());\n q1 = new Query(\"choixCoupEtJoue\", new Term[] {A, B, C, D, E, F, G, H, I});\n\n\n if (q1.hasSolution()) {\n Map<String, Term> solution = q1.oneSolution();\n int caseJ = solution.get(\"D\").intValue();\n int pion = solution.get(\"E\").intValue();\n Term[] plateau1 = listToTermArray(solution.get(\"F\"));\n Term[] plateau2 = listToTermArray(solution.get(\"G\"));\n Term[] piecesDispos = listToTermArray(solution.get(\"H\"));\n for (int i = 0; i < 16; i++) {\n if (i < 8) {\n this.piecesDispos[i] = piecesDispos[i].intValue();\n }\n this.plateau1[i] = plateau1[i].intValue();\n this.plateau2[i] = plateau2[i].intValue();\n }\n\n int ligne = caseJ / 4;\n int colonne = caseJ % 4;\n\n if (pion == 1 || pion == 5) {\n pion = 1;\n }\n if (pion == 2 || pion == 6) {\n pion = 0;\n }\n if (pion == 3 || pion == 7) {\n pion = 2;\n }\n if (pion == 4 || pion == 8) {\n pion = 3;\n }\n\n\n Term J = intArrayToList(this.plateau1);\n q1 = new Query(\"gagne\", new Term[] {J});\n System.out.println(q1.hasSolution() ? \"Gagné\" : \"\");\n if (q1.hasSolution()) {\n propriete = 1;\n }\n return new Coup(bloque,ligne, colonne, pion, propriete);\n }\n System.out.println(\"Bloqué\");\n return new Coup(1,0, 0, 0, 3);\n }", "public void regolaOrdineInMenu(int codRiga) {\n\n /** variabili e costanti locali di lavoro */\n Modulo moduloPiatto = null;\n Modulo moduloRighe = null;\n\n Campo campoOrdineRiga = null;\n\n int codPiatto = 0;\n int codiceMenu = 0;\n int codiceCategoria = 0;\n\n Filtro filtro = null;\n\n int ordineMassimo = 0;\n Integer nuovoOrdine = null;\n int valoreOrdine = 0;\n Integer valoreNuovo = null;\n\n Object valore = null;\n int[] chiavi = null;\n int chiave = 0;\n\n try { // prova ad eseguire il codice\n\n /* regolazione variabili di lavoro */\n moduloRighe = this.getModulo();\n moduloPiatto = this.getModuloPiatto();\n campoOrdineRiga = this.getModulo().getCampoOrdine();\n\n /* recupera il codice del piatto dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_PIATTO, codRiga);\n codPiatto = Libreria.objToInt(valore);\n\n /* recupera il codice del menu dalla riga */\n valore = moduloRighe.query().valoreCampo(RMP.CAMPO_MENU, codRiga);\n codiceMenu = Libreria.objToInt(valore);\n\n /* recupera il codice categoria dal piatto */\n valore = moduloPiatto.query().valoreCampo(Piatto.CAMPO_CATEGORIA, codPiatto);\n codiceCategoria = Libreria.objToInt(valore);\n\n /* crea un filtro per ottenere tutte le righe comandabili di\n * questa categoria esistenti nel menu */\n filtro = this.filtroRigheCategoriaComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* determina il massimo numero d'ordine tra le righe selezionate dal filtro */\n ordineMassimo = this.getModulo().query().valoreMassimo(campoOrdineRiga, filtro);\n\n /* determina il nuovo numero d'ordine da assegnare alla riga */\n if (ordineMassimo != 0) {\n nuovoOrdine = new Integer(ordineMassimo + 1);\n } else {\n nuovoOrdine = new Integer(1);\n } /* fine del blocco if-else */\n\n /* apre un \"buco\" nella categoria spostando verso il basso di una\n * posizione tutte le righe di questa categoria che hanno un numero\n * d'ordine uguale o superiore al numero d'ordine della nuova riga\n * (sono le righe non comandabili) */\n\n /* crea un filtro per selezionare le righe non comandabili della categoria */\n filtro = filtroRigheCategoriaNonComandabili(codiceMenu, codiceCategoria);\n\n /* aggiunge un filtro per escludere la riga corrente */\n filtro.add(this.filtroEscludiRiga(codRiga));\n\n /* recupera le chiavi dei record selezionati dal filtro */\n chiavi = this.getModulo().query().valoriChiave(filtro);\n\n /* spazzola le chiavi */\n for (int k = 0; k < chiavi.length; k++) {\n chiave = chiavi[k];\n valore = this.getModulo().query().valoreCampo(campoOrdineRiga, chiave);\n valoreOrdine = Libreria.objToInt(valore);\n valoreNuovo = new Integer(valoreOrdine + 1);\n this.getModulo().query().registraRecordValore(chiave, campoOrdineRiga, valoreNuovo);\n } // fine del ciclo for\n\n /* assegna il nuovo ordine alla riga mettendola nel buco */\n this.getModulo().query().registraRecordValore(codRiga, campoOrdineRiga, nuovoOrdine);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}", "public static void CBD(GrafoMatriz G, GrafoMatriz Gaux, ArrayList<ListaEnlazadaAsignadas> lea, int[][] selectos, int capacidad){\n \n Utilitarios.cargarEnGrafo(G,Gaux,capacidad);\n for (int i=0; i<selectos.length; i++){\n Utilitarios.borrarCaminos(Gaux,selectos[i][1], lea, capacidad);\n }\n ListaEnlazada [] ksp;\n Resultado r;\n Resultado [] results = new Resultado[selectos.length];\n Demanda d;\n for (int i=0; i<selectos.length; i++){\n d = lea.get(selectos[i][1]).getDemanda();\n \n ksp = Utilitarios.KSP(Gaux, d.getOrigen(), d.getDestino(), 5);\n r = Utilitarios.buscarEspacioCBD(ksp, d, selectos[i][0], Gaux, capacidad);\n if (r!=null){\n Utilitarios.asignarFS_Defrag(ksp,r,Gaux,d,-1);\n results[i] = r;\n }else{\n results[i] = new Resultado();\n results[i].setCamino(-1);\n }\n }\n \n for (int i=0; i<results.length; i++){\n if (results[i].getCamino()!=-1){\n //Utilitarios.borrarCaminos(G, selectos[i], lea, capacidad);\n \n d = lea.get(selectos[i][1]).getDemanda();\n ksp = Utilitarios.KSP(G, d.getOrigen(), d.getDestino(), 5);\n Utilitarios.asignarFS_saveRoute(ksp,results[i],G,d,lea, -1);\n Utilitarios.limpiarCaminoAnterior(lea.get(selectos[i][1]), G, selectos[i][1], capacidad, lea);\n //System.out.println(\"Se movio \" + selectos[i][1] + \" ahora es \" + (lea.size()-1));\n \n }\n }\n }", "private void pojedi (int i, int j) {\n\t\trezultat++;\n\t\tthis.zmija.add(0, new Cvor(i,j));\n\t\tthis.dodajZmiju();\n\t\tthis.dodajHranu();\n\t}", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "public Contrareloj(int opc,int min,int seg) {\r\n super.opc=opc;\r\n this.opc=opc;\r\n this.seg=seg;\r\n this.min=min;\r\n inicializar1();\r\n llenar();\r\n inicializar2();\r\n juego();\r\n }", "private Nodo cambiar (Nodo aux) {\n\t\tNodo n = aux;\r\n\t\tNodo m = aux.getHijoIzq(); \r\n\t\twhile (m.getHijoDer() != null) {//el while sirve para recorrer el lado derecho para encotrar el dato mayor. \r\n\t\t\tn = m; // se guarda el nodo.\r\n\t\t\tm = m.getHijoDer();\r\n\t\t}\r\n\t\taux.setDato(m.getDato()); // se establece el dato del nodo mayor para que de ese nodo se hagan los cambios. \r\n\t\tif(n == aux) { // Si el nodo igual a aux entonces el dato y nodo que se van a eliminar por lo tanto se hacen los comabios. \r\n\t\t\tn.setHijoIzq(m.getHijoIzq());\r\n\t\t}else {\r\n\t\t\tn.setHijoDer(m.getHijoIzq());\r\n\t\t}\r\n\t\treturn n;\r\n\t}", "private NodoBin<T> buscarAS(T dato){\n if(esVacio())\n return (null);\n return (biselar(super.getRaiz(), dato));\n }", "public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}", "public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}", "@Override\n public Nodo ejecutar() {\n listaNodos.add(nodoRaiz);\n //nodo almacenado temporalmente\n Nodo nodoActual;\n //cola de hijos producto de aplicar ops\n ArrayList <Nodo> cola;\n \n NODO:while(!(listaNodos.isEmpty()))\n {\n nodoActual=listaNodos.get(0);\n listaNodos.remove(0);\n //Detecto el nodo como un ciclo y salto si sí es luego verifico meta\n if(nodoCiclo(nodoActual))\n {\n \n// System.out.println(\"Es Ciclo: \"+nodoActual.getOperador());\n continue NODO;\n }\n else if(esMeta(nodoActual)){\n solucion(nodoActual);\n JOptionPane.showMessageDialog(null, \"nodos expandidos\"+nodoexpandidos+\"profundidad\"+profundidad);\n return nodoActual;\n }\n //Expando Nodo\n cola=expandirNodo(nodoActual);\n nodoexpandidos++;\n for(int i=0;i<cola.size();i++)\n {\n Nodo temporal=cola.get(i);\n cola.set(i, temporal);\n \n }\n //Armo cola general\n cola.addAll(listaNodos);\n listaNodos=(ArrayList <Nodo>)cola.clone();\n }\n return null;\n }", "void zmniejszBieg();", "@Override\n\tpublic void updateConseille(Conseille c) {\n\t\t\n\t}", "public void construirTercerSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet3ReglaCompleja = new JComboBox(dominio);// creamos el Tercer combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet3ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Tercer item\n\t\titemscomboDominiosSet3ReglaCompleja = new JComboBox();// creamo el Tercer combo, vacio\n\t\titemscomboDominiosSet3ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Tercer Dominio de regla compleja\");\n\t\tpanelCentral.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelCentral.add(comboDominiosSet3ReglaCompleja);\n\t\tcomboDominiosSet1ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelCentral.add(itemscomboDominiosSet3ReglaCompleja);\n\t\titemscomboDominiosSet3ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelCentral.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet4ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "public Cgg_jur_anticipo(){}", "public void Lista(){\n\t\tcabeza = null;\n\t\ttamanio = 0;\n\t}", "public Carta gioca(Carta t,Carta q,Carta l, Carta bri) {\n System.out.println(\"MANO \"+this.getNome()+\":\\n\"+this.mano.toString()+\"\\n\");\n if(t==null)return this.basso(bri);\n else{\n if(t.getSeme()!=bri.getSeme())\n {\n if(t.getPunti()==11||t.getPunti()==10)return this.briscola_bassa(bri);\n else{return this.alto_basso(t,bri);}\n }\n\n if(t.getSeme()==bri.getSeme()&&t.getPunti()!=0){return this.alto_basso(t,bri);}\n else{return this.basso(bri);}\n\n }\n\n }", "public void colorearSecuencial() {\n\t\t// Collections.shuffle(nodos);\n\t\tcolorearSecuencialAlternativo();\n\t}", "int getCedula();", "private void vulKeuzeBordIn()\n {\n String[] lijstItems = dc.geefLijstItems();\n for (int i = 0; i < canvasKeuzeveld.length; i++)\n {\n for (int j = 0; j < canvasKeuzeveld[i].length; j++)\n {\n GraphicsContext gc = canvasKeuzeveld[i][j].getGraphicsContext2D();\n //checkImage(j + 1, gc);\n vulIn(lijstItems[j], gc);\n }\n }\n //dc.geefLijstItems();\n }", "private List<Node<T>> completaCamino(Node<T> ret, List<Node<T>> camino) {\r\n\t\tboolean comp = true;// Comprobacion\r\n\t\tcamino.add(ret);// Aņadimos el nodo al camino\r\n\t\twhile (comp) {\r\n\t\t\tif (ret.getParent() != null) {// Mientras no sea la raiz\r\n\t\t\t\tcamino.add(ret.getParent(), 1);// Aņade al inicio de la lista\r\n\t\t\t\tret = ret.getParent();// Hace que el padre sea el nuevo nodo\r\n\t\t\t} else if (ret.getParent() == null) {// Si es la raiz\r\n\t\t\t\tcomp = false;// Cancela\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn camino;\r\n\t}", "public void pedirValoresCabecera(){\n \r\n \r\n \r\n \r\n }", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "private Candidatos calculaCandidatos(Etapa e) {\n if(debug) {\n System.out.println(\"**********************calculaCandidatos\");\n System.out.println(\"e.i: \" + e.i);\n }\n \n Candidatos c = new Candidatos();\n if(e.k <= this.G.numVertices()) {\n //crear un objeto candidato y rellenarlo para esta etapa \n c.i = -1; //no apuntamos a ninguna pos porque en la funcion seleccionaCandidato ya incrementamos este valor\n //buscar el primer vertize sin emparejar\n int size = this.sol.emparejamientos.length;\n \n c.fila = e.i;\n \n //añadimos los candidatos\n c.verticesSinPareja = new ArrayList<>();\n for(int k = 0; k < size; ++k) {\n if(this.sol.emparejamientos[c.fila][k] == 0) {\n if(debug) {\n System.out.print(\" candidato: \" + k+ \" \");\n }\n c.verticesSinPareja.add(k);\n }\n }\n \n }\n else {\n c.verticesSinPareja = new ArrayList<>();\n }\n return c;\n }" ]
[ "0.68327796", "0.6299517", "0.60572994", "0.6052698", "0.6035453", "0.6022364", "0.6005507", "0.59312695", "0.5913299", "0.58842224", "0.5865463", "0.5854815", "0.58171463", "0.58129615", "0.5801393", "0.5797646", "0.57943165", "0.5757024", "0.57480043", "0.57347834", "0.5716672", "0.57035", "0.5700171", "0.5683789", "0.5650663", "0.5645545", "0.56434125", "0.5638923", "0.56361353", "0.56343204", "0.56262165", "0.56244415", "0.5619253", "0.5614911", "0.56083864", "0.56002575", "0.56000197", "0.55921656", "0.5587575", "0.55863845", "0.5577748", "0.5569368", "0.5558098", "0.55574894", "0.5556003", "0.55529326", "0.55514437", "0.55514437", "0.55512184", "0.5543931", "0.5542068", "0.55361265", "0.55360657", "0.5530859", "0.553025", "0.5527333", "0.55213964", "0.552055", "0.5510359", "0.55076706", "0.5506418", "0.55064094", "0.5504634", "0.55022484", "0.5500933", "0.5500241", "0.5499965", "0.5499686", "0.54989254", "0.5498333", "0.5496829", "0.5496467", "0.5493749", "0.54933155", "0.5484975", "0.5479295", "0.54762244", "0.5467058", "0.54657495", "0.5462743", "0.54603904", "0.5458845", "0.54573596", "0.54533917", "0.5448868", "0.54450184", "0.54415816", "0.54302573", "0.5430037", "0.5429785", "0.54276305", "0.5427119", "0.5426157", "0.5423869", "0.542378", "0.5418486", "0.5417171", "0.5416475", "0.54117435", "0.54103386", "0.5409206" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int arr[]= {2, 5, 4, 2, 7, 4, 2}; int n=arr.length; occurence(arr,n); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void onStart() { super.onStart(); // 不能在onCreate函数中获取控件,因为fragment还没有start,可以在onStart函数中获取: mFlowLayoutMarks = (FlowLayoutMarks) getActivity().findViewById( R.id.flowLayoutMarks); initData(); mScrollView=(ScrollView) getActivity().findViewById(R.id.mark_scrollView); initEvent(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
private void initEvent() { mScrollView.setOnTouchListener(new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent event) { // TODO Auto-generated method stub switch (event.getAction()) { /*case MotionEvent.ACTION_UP: break; case MotionEvent.ACTION_DOWN: break;*/ case MotionEvent.ACTION_MOVE: //判断是否滑动到底部 if(mScrollView.getChildAt(0).getMeasuredHeight()<=mScrollView.getHeight()+mScrollView.getScrollY()){ Toast.makeText(getActivity(), "已经到底部了,去留下你的足迹吧", Toast.LENGTH_SHORT).show(); } break; default: break; } return false; } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean onTouch(View v, MotionEvent event) { switch (event.getAction()) { /*case MotionEvent.ACTION_UP: break; case MotionEvent.ACTION_DOWN: break;*/ case MotionEvent.ACTION_MOVE: //判断是否滑动到底部 if(mScrollView.getChildAt(0).getMeasuredHeight()<=mScrollView.getHeight()+mScrollView.getScrollY()){ Toast.makeText(getActivity(), "已经到底部了,去留下你的足迹吧", Toast.LENGTH_SHORT).show(); } break; default: break; } return false; }
{ "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
double open = Math.sin(System.currentTimeMillis() % 1000 / 1000.0Math.PI2)0.5+0.5;
public void render(Screen screen) { double open = openness * 0.47; List<Sprite> doorSprites = ((Door) sprites).doorSprites; if (level.getTile(x, y - 1).isWall() && level.getTile(x, y + 1).isWall()) { sprites.rotate(0, true); for (int i = 0; i < doorSprites.size(); i++) { Sprite sprite = doorSprites.get(i); if (sprite.z < 0.45) { sprite.z -= open; } else { sprite.z += open; } } } else { sprites.rotate(Math.PI * 2 * 0.25, true); for (int i = 0; i < doorSprites.size(); i++) { Sprite sprite = doorSprites.get(i); if (sprite.x < 0.45) { sprite.x -= open; } else { sprite.x += open; } } } super.render(screen); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double sin(double number);", "static double f(double x){\n \treturn Math.sin(x);\r\n }", "private static double getSinSquare(Double value){\r\n\t\treturn Math.pow(Math.sin(value/2), 2);\r\n\r\n }", "static double sineWave(double timeInSeconds, double frequency) {\r\n\t\tdouble result= Math.sin(timeInSeconds);\r\n\t\t\t\r\n\t\treturn result; // hint: use Math.sin(...)\r\n\t}", "public Double call() {\n double pi = 16 * atan(1.0/5.0) - 4 * atan(1.0/239.0);\r\n \r\n try {\r\n // Sleep for 1 second to simulate a long running task\r\n Thread.sleep(1000);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return pi;\r\n }", "private static void run() {\n\t\tdouble x = 0.1;\n\t\tTime.start(\"a\");\n\t\tdouble y = 0;\n\t\tint n = 10000000;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin(x); // 450 ms /10 000 000 = 45 ns\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sin((x - 0.1) / x); // 526\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + (x - 0.1) / x; // 68\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.sqrt((x - 0.1) / x); // 130\n\t\t\t//x = x * 0.00000000001 + x + 0.001 + Math.acos((x - 0.1) / x); // 4747\n\t\t\t//x = x * 0.00000000001 + x + 0.001; // 35\n\t\t\t\n\t\t\t// superposer: 13760 ms / 49995000 = 2752 ms / 10 000 000\n\t\t\t// 5 sin??? wtf \n\t\t\t// TRY using the RMSD value\n\t\t\t// do it here, iterativelly? feed points?>\n//euclid 83\n//table 428\n//qcp 14344 49995000\n// can sin/cos be avoided, just multiplication of quaternions? does the equation looks like it takes stuff from quat?\n// arc algebra?\n// draw both arcs on equator and move one by x-rotation\n// what is that rotation?\n// can it be done with primal a,b,c,d rotations?\n\t\t}\n\t\tTime.stop(\"a\");\n\t\tSystem.out.println(Time.get(\"a\").getMiliseconds());\n\t\tSystem.out.println(x);\n\t}", "private double sinc(double x) {\n return Math.sin(Math.PI * x) / (Math.PI * x);\n }", "double getMinTimerTrig();", "public double calculateSine(double angle);", "public static float sin(float x) {\n float upper = (PI - x) * 16f * x;\n float lower = 5 * PI * PI - 4f * x * (PI - x);\n return upper / lower;\n\n }", "public static double sin(double a) {\r\n if (a == Double.NEGATIVE_INFINITY || !(a < Double.POSITIVE_INFINITY)) {\r\n return Double.NaN;\r\n }\r\n\r\n final double PI = (22/7);\r\n\r\n a %= 2 * PI;\r\n\r\n /* The following if statement checks whether a is a negative angle\r\n * Converts it to positive angle if true\r\n */\r\n if (a < 0) {\r\n a = 2 * PI - a;\r\n }\r\n\r\n /* The following if statement checks whether sine term is an odd function\r\n * Changes the sign to -ve if true\r\n */\r\n int sign = 1;\r\n if (a > PI) {\r\n a -= PI;\r\n sign = -1;\r\n }\r\n\r\n final int PRECISION = 50;\r\n double temp = 0;\r\n\r\n /* The following for statement calculates the sum of the terms\r\n * Until the set precision is reached\r\n */\r\n for (int i = 0; i <= PRECISION; i++) {\r\n temp += Math.pow(-1, i) * (Math.pow(a, 2 * i + 1) / factorial(2 * i + 1));\r\n }\r\n\r\n return sign * temp;\r\n\r\n }", "E sin(final E n);", "private float m87322b(float f) {\n return (float) Math.sin((double) ((float) (((double) (f - 0.5f)) * 0.4712389167638204d)));\n }", "public final void sin() {\n\t\tif (size > 0) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tpush(Math.sin(topMostValue));\n\n\t\t}\n\t}", "public static double mySin(double x) {\n int n = 0;\n int N = 20;\n double y = 0;\n for (; n <= N; n++) {\n double p1 = 1;\n for (int i = 1; i <= n; i++) {\n p1 *= (-1);\n }\n double p2 = 1;\n for (int i = 1; i <= (2 * n + 1); i++){\n p2*=i;\n }\n double p3 = 1;\n for (int i = 1; i <= (2 * n + 1); i++){\n p3*=x;\n }\n y = y + (p1/p2)*p3;\n }\n return y;\n }", "private double function1(double x) {\n return Math.sin(x)*10;\n }", "private double f1(double x) {\n return Math.exp(-x) * Math.pow(Math.sin(x), 5);\n }", "public static double sin(double x) // Using a Chebyshev-Pade approximation\n {\n int n=(int)(x/PI2)+1; // reduce to the 4th and 1st quadrants\n if(n<1)n=n-1;\n if ((n&2)==0) x=x-(n&0xFFFFFFFE)*PI2; // if it from the 2nd or the 3rd quadrants\n else x=-(x-(n&0xFFFFFFFE)*PI2);\n\n double x2=x*x;\n return (0.9238318854f-0.9595498071e-1f*x2)*x/(0.9238400690f+(0.5797298195e-1f+0.2031791179e-2f*x2)*x2);\n }", "static double squareWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\r\n\t}", "public static double \t\tsinh(double _x) {\n\t\treturn 0.5D * (Math.exp(_x) - Math.exp(- _x));\n\t}", "public void timer()\n {\n timer += .1; \n }", "public static double \t\tsinc(double _x) {\n\t\treturn (Math.abs(_x) < 1e-40) ? 1.0D : Math.sin(_x) / _x;\n\t}", "public double calculateHyperbolicSine(double angle);", "private double getSin(int rot) {\r\n\t\treturn Math.sin(Math.toRadians(rot));\r\n\t}", "public static final float sinh(float x) {\n \t\treturn (MoreMath.pow(MoreMath.E, x) - MoreMath.pow(MoreMath.E, -x)) / 2.0f;\n \t}", "public double getTimeForOpen();", "public static Expression sin(final Expression value) {\n return new Expression(\"$sin\", value);\n }", "public static float sin(float degrees) {\r\n return sinLookup((int) (degrees * precision + 0.5f));\r\n }", "public static double \t\tnsinc(double _x) {\n\t\treturn (Math.abs(_x) < 1e-40) ? 1.0D : Math.sin(Math.PI * _x) / (Math.PI * _x);\n\t}", "public void run ()\n{\n for (int i = 3; i < 100000; i += 2)\n {\n if (negative)\n pi -= (1.0 / i);\n else\n pi += (1.0 / i);\n negative = !negative;\n }\n pi += 1.0;\n pi *= 4.0;\n System.out.println (\"Finished calculating PI\");\n}", "private static double calculateSin(double dy, double distance) {\n if (distance > 0)\n return (dy) / distance;\n else\n return 0.0;\n }", "public static double function(double x) {\n double val = (Math.sin(x * 1) * 0.4 + (Math.sin(x * 2) * 0.4)) + (Math.sin(x * 5) * 0.2);\n //return (Math.cos(x)*0.5)+0.5;\n //return (Math.cos(x*5)*0.5)+0.5;\n //if (val<0) val=-0.5;\n //if (val>0) val=0.5;\n return val;\n }", "public static double ParaTimer(){\n return (System.nanoTime() - timer)/(1000000000.);\n }", "public double perimetre()\n\t{\n\t\treturn 2*Math.PI*rayon;\n\t}", "static double sawtoothWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\t\t\r\n\t}", "public static double sinh(double myValue)\n {\n double aValue = (Math.pow(Math.E,myValue)-Math.pow(Math.E,-1*myValue))/2;\n return aValue;\n }", "public static double getFuncValue(double x){\n return Math.sin(x);\r\n }", "public double getTimeForClose();", "public void cal_AdjustedFuelMoist(){\r\n\tADFM=0.9*FFM+0.5+9.5*Math.exp(-BUO/50);\r\n}", "public double nextDoubleOpen() {\n\tdouble result = d1 / POW3_33;\n\tnextIterate();\n\treturn result;\n }", "public abstract double sensingTime();", "double getDefaultTimerTrig();", "public float getFrameRate() { return 1000f/_interval; }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public double getSlowToFire();", "public double calculateArcSine(double angle);", "public double cos(double number);", "public double getCircleTime();", "@Override\n public int calculerPerimetre() {\n return (int)(rayon * 2 * Math.PI);\n }", "@Override\n\tpublic float calc(final float t, final float b, final float c, final float d) {\n\t\treturn (float) (c * FloatMath.sin(t / d * _HALF_PI) + b);\n\t}", "double cosTheta();", "protected double compute(int sample) {\n\t\tdouble v = Math.sin((double) sample * 2.0 * Math.PI * (double) frequency\n\t\t\t\t/ (double) AudioSequence.SAMPLES_PER_SECOND);\n\t\treturn v;\n\t}", "public void setOpen(double value) {\n this.open = value;\n }", "int getSimspeed();", "private static float sinLookup(int a) {\r\n return a >= 0 ? sin[a % (modulus)] : -sin[-a % (modulus)];\r\n }", "private int m27463b(int i) {\n double sin = Math.sin(Math.toRadians((double) i));\n double d = (double) this.f25261H;\n Double.isNaN(d);\n return (int) (sin * d);\n }", "private static double getSinOfDegrees(double d, int halfCirc) {\n\t\treturn Math.sin((d * Math.PI) / halfCirc);\n\t}", "void vibrate(double radiansFromNorth, double radiansOfArch, double durationInMS) throws IOException;", "public double calculateSine(double angle, String angleType);", "private static double piQiToST(int pi, int level) {\n return (pi + 0.5) / (1 << level);\n }", "public static float getCurrentTime(){\n return (float)(System.currentTimeMillis()-t0)/1000.0f;\r\n }", "public static final float m36421d(float f) {\n return (float) Math.sin((double) f);\n }", "private double functionF(int x, int y) {\n if (type == SIMPLE_SIN2D_IN_X) { return Math.sin(2 * Math.PI * s * x / M); }\n if (type == SIMPLE_SIN2D_IN_Y) { return Math.sin(2 * Math.PI * s * y / M); }\n if (type == SIMPLE_PLUS2D) { return Math.sin(2 * Math.PI * s * x / M) + Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == SIMPLE_MULT2D) { return Math.sin(2 * Math.PI * s * x / M) * Math.sin(2 * Math.PI * s2 * y / M); }\n if (type == FROM_IMG) { return in.getSample(x, y, 0); }\n else { return 0; }\n }", "@Override\n public double salario() {\n return 2600 * 1.10;\n }", "public static void main(String[] args) {\n double x0=Math.PI/2;\n double dx=0.01;\n double f1;\n double f2;\n double m;\n\n double dr;\n f1=Math.cos(x0+dx);\n f2=Math.cos(x0-dx);\n m= Math.cos(x0)*2;\n dr=((f1)-(m)+(f2))/(dx*dx);\n\n System.out.println(dr);\n\n\n }", "public float perimetro(){\r\n return 2*(float)Math.PI*radio;\r\n }", "public void tick(){\r\n if(timer != 0)\r\n timer++;\r\n }", "public static double findSin(double radiun) {\r\n\t\treturn Math.sin(radiun);\r\n\t}", "public static void main(String[] args) {\n\t\tdouble t=Double.parseDouble(args[0]);\n\t\tdouble p =Math.toRadians(t) ;\n\t\tdouble a;\n\n\t\ta=Math.sin(2*t)+ Math.sin(3*t);\n\t\tSystem.out.println(a);\n\t}", "public static double to_2pi(double rad) {\n return modulo(rad,twopi);\n }", "public double nextArrivalTime() {\n return (-1 / lambda) * Math.log(1 - randomAT.nextDouble());\n }", "public void clock(double period);", "public float getTimeSeconds() { return getTime()/1000f; }", "@Test\n\tvoid sinTestWithDegreeInput() throws CustomException {\n\t\tdouble input = 90;\n\t\tdouble actual = 1.0000000000000002;\n\t\tdouble result = TrigLib.sine(input);\n\t\tassertNotEquals(result, actual, \"Output is not as expected as input is not converted to radians\");\n\t}", "public void tick() {\r\n tick++;\r\n }", "public static double toc() {\n\t\treturn System.currentTimeMillis() / 1000d - t;\n\t}", "void onNewPulse(int pulse, int spo2 );", "public int getOpeningAngle()\n {\n return this.openingAngle;\n }", "static double triangleWave(double timeInSeconds, double frequency) {\r\n\t\treturn 0;\r\n\t}", "public double getOpen() {\n return open;\n }", "public double getCircunference(){\n return 2.0 * radius * Math.PI; \n }", "void mo9705c(float f, float f2);", "@Test\r\n public void testCalculateAngle2() {\r\n System.out.println(\"calculateAngle2\");\r\n DialDraw instance = new TachometerDraw();\r\n instance.setValue(0);\r\n double expResult = Math.toRadians(180);\r\n double result = instance.calculateAngle();\r\n assertEquals(result, expResult, 0.0001);\r\n }", "float mo56157b();", "public static native double now() /*-{\n return Date.now();\n }-*/;", "private static double fInterp(double k) {\n return (1.0 - Math.cos(k * Math.PI)) / 2.0;\n }", "@Override\n\tpublic float getInterpolation(float input) {\n\t\tdouble a = input * PI_3;\n\t\tdouble b = Math.sin(a) / a;\n\t\tdouble c = b * (input * -1 + 1);\n\t\treturn (float) c * -1 + 1;\n\n\t}", "int time()\n\t{\n\t\treturn totalTick;\n\t}", "public static double haversin(double x) {\n return sq(Math.sin(x / 2));\n }", "protected static double getFPGATime() {\n return (System.currentTimeMillis() - startTime) / 1000.0;\n }", "void beat();", "int getFirstTick();", "public final static float SINSafer(float deg) {\n\t\tdeg=deg%360;\n\t\tif(deg<0) deg+=360;\n\t\t\n\t\tdeg*=SINCOS_INVPREC;\n\t\treturn sinLUT[(int)deg];\n\t}", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "double moireCyclicValue(double x, double period) {\n double val = (Math.exp(Math.sin(x*x/2000.0*Math.PI)) - 0.36787944)*108.0;\n double variance = 0.001;\n \n return (variance*val);\n }", "void mo56155a(float f);", "public double nextServiceTime() {\n return (-1 / mu) * Math.log(1 - randomST.nextDouble());\n }", "public double period()\n\t{\n\t\tdouble n = meanMotion();\n\t\tdouble period = 2.0 * Constants.pi / n;\n\t\treturn period;\n\t}", "@Override\n public float getTimeInSeconds() {\n return getTime() * INVERSE_TIMER_RESOLUTION;\n }", "protected static void makeSingleWave (double f, byte[] out)\n {\n double period = (double) SAMPLE_RATE / f;\n for (int i = 0; i < out.length; i++)\n {\n double angle = 2d * Math.PI * i / period;\n out[i] = (byte) (Math.sin (angle) * 127f);\n }\n }", "private double calculatePI() {\n return 4.0 * numberOfPointsInsideCircle / numberOfPoints;\n }" ]
[ "0.6658647", "0.66318065", "0.64981055", "0.63555104", "0.62326634", "0.6171626", "0.61665875", "0.6006949", "0.595521", "0.59446055", "0.59184456", "0.59068376", "0.5876957", "0.58766854", "0.58751404", "0.58733827", "0.58578736", "0.58313864", "0.5821144", "0.58158576", "0.58142793", "0.5761877", "0.5662798", "0.56470877", "0.5608479", "0.5603875", "0.5597632", "0.5563273", "0.55529505", "0.5545176", "0.5538522", "0.55060977", "0.5492548", "0.54690224", "0.54683435", "0.5460966", "0.5451433", "0.54393035", "0.54294884", "0.5428515", "0.5415082", "0.5390554", "0.53826296", "0.53752816", "0.53661543", "0.5364928", "0.53501654", "0.53451926", "0.53397167", "0.5336116", "0.53339887", "0.5308845", "0.53077596", "0.5291017", "0.5239566", "0.5216799", "0.5213647", "0.52122736", "0.51878756", "0.51849526", "0.5184147", "0.5174065", "0.51731044", "0.51632667", "0.5149577", "0.51167506", "0.5116292", "0.51108533", "0.5103646", "0.5098651", "0.50853956", "0.5085045", "0.5077845", "0.50656056", "0.50597167", "0.50577766", "0.50388724", "0.5033046", "0.50297344", "0.5026595", "0.50195616", "0.50174373", "0.5010747", "0.5002104", "0.4996178", "0.49961638", "0.49955192", "0.49954513", "0.49943328", "0.49931204", "0.4991824", "0.498452", "0.4977678", "0.49742535", "0.49683502", "0.49631417", "0.49616033", "0.49590757", "0.4958882", "0.49520287", "0.4950583" ]
0.0
-1
Use this method to run the main logic
public int[] solve() { setupAnts(); clearTrails(); IntStream.range(0, maxIterations) .forEach(i -> { moveAnts(); updateTrails(); updateBest(); }); System.out.println("Best tour length: " + (bestTourLength)); System.out.println("Best tour order: " + Arrays.toString(bestTourOrder)); IntStream.range(1, bestTourOrder.length) .forEach(i -> { if (graph[bestTourOrder[i]][bestTourOrder[i - 1]] == 0.01) System.out.println("Не подходит по пути"); }); IntStream.range(1, bestTourOrder.length) .forEach(i -> { if (emcMatrix[bestTourOrder[i]][bestTourOrder[i - 1]] == 0) System.out.println("Не подходит по ЭМС"); }); List<Element> sortedElements = new ArrayList<>(); for (int i = 0; i < bestTourOrder.length; i++) { sortedElements.add(elements.get(bestTourOrder[i])); } return bestTourOrder.clone(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "public static void main(String... args) {\n doMain().run();\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main() {\n \n }", "public void runProgram()\n\t{\n\t\tintro();\n\t\tfindLength();\n\t\tguessLetter();\n\t\tguessName();\n\t}", "public void run() {\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionStart();\n\n /**\n * create an archetype for the new application\n */\n executeArchetypeCommand();\n\n /**\n * Provide some delay to allow thread to create the archetype\n */\n splash = new SplashScreen();\n\n for (int i = 0; i < 7; i++) {\n updateStatus(i);\n try {\n Thread.sleep(500);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n }\n }\n\n hideSplashScreen();\n splash = null;\n\n /**\n * let the user the know what is going to happen\n */\n showExecutionEnd();\n }", "public void run(){ \n \t//sets up the GUI and performs operations based on ActionListeners\n \tpackageGUI();\n \toperate();\n }", "public void run() {\n\t\tprepareVariables(true);\n\t\t\n\t\t// Prepares Map Tables for Song and Key Info.\n\t\tprepareTables();\n\t\t\n\t\t// Selects a Random Song.\n\t\tchooseSong(rgen.nextInt(0, songlist.size()-1));\n\t\t\n\t\t// Generates layout.\n\t\tgenerateLabels();\n\t\tgenerateLines();\n\t\t\n\t\t// Listeners\n\t\taddMouseListeners();\n\t\taddKeyListeners();\n\t\t\n\t\t// Game Starts\n\t\tplayGame();\n\t}", "public static void run() {\n }", "private Main() {\n\n super();\n }", "public static void main(){\n\t\tint option = getUserOption();\n\t\t/** switch case option start below */\n\t\tswitch (option){\n\t\t\tcase 1 : ToScreen.listEmployee(employee.getAllEmployee(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 2 : listStaffByCategory();\n\t\t\t\tbreak;\n\t\t\tcase 3 : ToScreen.listAdminStaffTask(employee.getAllAdminStaff(), true);main();\n\t\t\t\tbreak;\n\t\t\tcase 4 : searchStaffByName();\n\t\t\t\tbreak;\n\t\t\tcase 5 : ToScreen.listAnimal(animals.getAllAnimals(), true); main();\n\t\t\t\tbreak;\n\t\t\tcase 6 : ListAnimalByType();\n\t\t\t\tbreak;\n\t\t\tcase 7 : searchAnimalByName();\n\t\t\t\tbreak;\n\t\t\tcase 8 : MenuReception.main();\n\t\t\t\tbreak;\n\t\t\tcase 9 : System.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tmain();\n\t\t}\n\t}", "public void run() {\n\t\t\tJuego.reStart();\n\n\t\t}", "public void run() {\n\t // Create the ouput directories\n\t interfDir = new File(outDirName+\"/\"+modelName);\n\t interfDir.mkdirs();\n\t implDir = new File(outDirName+\"/\"+modelName);\n\t implDir.mkdirs();\n\t // Create the parseAll visitor interface\n\t createParseAllVisitorInterface(interfDir);\n\t // Create the parseAll visitor implementation\n\t createParseAllVisitorImplementation(implDir);\n\t // Create the evaluateAll visitor interface\n\t createEvaluateAllVisitorInterface(interfDir);\n\t // Create the evaluateAll visitor implementation\n\t createEvaluateAllVisitorImplementation(implDir);\n\t}", "public void run() {\n TasksCounter tc = new TasksCounter(tasks);\n new Window(tc);\n Ui.welcome();\n boolean isExit = false;\n Scanner in = new Scanner(System.in);\n while (!isExit) {\n try {\n String fullCommand = Ui.readLine(in);\n Command c = Parser.commandLine(fullCommand);\n c.execute(tasks, members, storage);\n isExit = c.isExit();\n } catch (DukeException e) {\n Ui.print(e.getMessage());\n }\n }\n }", "public void runProgram() {\n\n\t\tSystem.out.println(\"\\n Time to start the machine... \\n\");\n\n\t\tpress.pressOlive(myOlives);\n\n\t\tSystem.out.println(\"Total amount of oil \" + press.getTotalOil());\n\t}", "public static void main(String[] args) {\n DatabaseController.login();\r\n\r\n //Log in to email\r\n Email.login();\r\n\r\n //Update local database - in real deployment this would run twice per day, not every startup\r\n SyncMain.main(new String[]{});\r\n\r\n //Load cached data\r\n CSVController.loadFiles();\r\n\r\n //Start GUI\r\n launch(args);\r\n\r\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public void run() {\n\t\t\t\tLog.e(\"bc\", \"thread started!\");\n\n\t\t\t\t// UTPDirectTest();\n\t\t\t\t// UDPTest();\n\t\t\t\tUDPBroadcastTest();\n\n\t\t\t}", "public void run()\n\t\t{\n\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}", "public static void main(String[] args) {\r\n\r\n run();\r\n }", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args) {\n Run();\n }", "@Override\n public void run() {\n startup();\n }", "public void run() {\n\n }", "public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }", "public Main() {\n \n \n }", "public void run() {\n }", "public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}", "public Main() {\n\t\tsuper();\n\t}", "public static void main(){\n\t}", "public static void run(){}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void run() {\n\t\t}", "public void _run() {\n String[] args = (String[])tEnv.getObjRelation(\"ARGS\");\n\n log.println(\"Running with arguments:\");\n for (int i=0; i< args.length; i++)\n log.println(\"#\" + i + \": \" + args[i]);\n\n oObj.run(args);\n\n tRes.tested(\"run()\", true);\n }", "public static void main()\n\t{\n\t}", "protected void run() {\r\n\t\t//\r\n\t}", "@Override\r\n public void run() {\n startBookMain();\r\n }", "public static void run() {\n try {\n //recreating tables added to update csv data without application restart\n new SqlUtility().setConnection().dropAllTables().createPersonTable().createRecipientTable();\n new CsvPersonParser().run();\n new CsvReсipientParser().run();\n\n List<Person> list;\n list = new SqlUtility().setConnection().grubData();\n String result = \"\";\n result = ListToMessage.converter(list);\n if(!\"\".equals(result)) {\n NotificationSender.sender(result, email, pass, addressList);\n }\n } catch (ClassNotFoundException e){e.printStackTrace();}\n catch (SQLException ee){ee.printStackTrace();}\n catch (ParseException eee) {eee.printStackTrace();}\n\n }", "public static void main(String arg[]) {\n\n\t\tUtility.runApplication();\n\t}", "public void run() {\n\t\tport(8080);\n\n\t\t// Main Page, welcome\n\t\tget(\"/\", (request, response) -> \"Welcome!\");\n\n\t\t// Date\n\t\tget(\"/date\", (request, response) -> {\n\t\t\tDate d = new Date(\"frida.org\", Calendar.getInstance().get(Calendar.YEAR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DAY_OF_MONTH));\n\t\t\treturn om.writeValueAsString(d);\n\t\t});\n\n\t\t// Time\n\t\tget(\"/time\", (request, response) -> {\n\t\t\tTime t = new Time(\"frida.org\", Calendar.getInstance().get(Calendar.HOUR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MINUTE), Calendar.getInstance().get(Calendar.SECOND));\n\t\t\treturn om.writeValueAsString(t);\n\t\t});\n\t}", "public void run() {\n }", "public static void main(String[] args) {\n new Main().run();\n }", "public static void main(String[] args) throws Exception {\n run();\n }", "public static void main (String[] args) {\n\n Config config = ConfigUtils.loadConfig(\"/home/gregor/git/matsim/examples/scenarios/pt-tutorial/0.config.xml\");\n// config.controler().setLastIteration(0);\n// config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n// Scenario scenario = ScenarioUtils.loadScenario(config);\n// Controler controler = new Controler(scenario);\n// controler.run();\n\n\n// Config config = this.utils.loadConfig(IOUtils.extendUrl(ExamplesUtils.getTestScenarioURL(\"pt-tutorial\"), \"0.config.xml\"));\n config.controler().setLastIteration(1);\n config.plans().setHandlingOfPlansWithoutRoutingMode(PlansConfigGroup.HandlingOfPlansWithoutRoutingMode.useMainModeIdentifier);\n\n\n// try {\n Controler controler = new Controler(config);\n// final EnterVehicleEventCounter enterVehicleEventCounter = new EnterVehicleEventCounter();\n// final StageActivityDurationChecker stageActivityDurationChecker = new StageActivityDurationChecker();\n// controler.addOverridingModule( new AbstractModule(){\n// @Override public void install() {\n// this.addEventHandlerBinding().toInstance( enterVehicleEventCounter );\n// this.addEventHandlerBinding().toInstance( stageActivityDurationChecker );\n// }\n// });\n controler.run();\n }", "void run() {\n\t\trunC();\n\t\trunPLMISL();\n\t\trunTolerance();\n\t\trunMatrix();\n\t}", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "public static void main(String [] args){\n MainController run = new MainController();\n int value = run.filesExist();\n if (value == 0) {\n run.fileQUserMssgExists();\n }\n else if (value == 1) {\n run.fileQUserMssgRoomsExists();\n }\n else if (value == 2) {\n run.fileQAllExists();\n }\n run.run(value);\n }", "public static void main(String[] args) {\n\t\thandler();\r\n\r\n\t}", "public void run() {\n\t\t\tconsole.run();\n\t\t}", "public void run() {\n // Initialize\n imports = new HashSet<>();\n lines = new ArrayList<>();\n\n // Read and merge source files\n final File folder = new File(\"src\");\n recurseOverFolder(folder);\n\n // Output to file\n outputFile();\n }", "public void intialRun() {\n }", "public static void main(String[] args){\n //The driver of the methods created above\n //first display homeowork header\n homeworkHeader();\n //calls driver method\n System.out.println(\"Calling driver method:\");\n driver(true);//runs choice driver\n //when prompted for a choice input 9 to see test driver\n System.out.println(\"End calling of driver method\");\n \n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "public static void main(String [] args){\n SmartPhone sm = new SmartPhone();\n sm.run();\n // System.out.println(sm.run());\n }", "public RunMe() throws IOException {\n\n\t\t// Load data\n\t\tloadDataMap();\n\t\t\n\t\t// Start server\n\t\tcfg = createFreemarkerConfiguration();\n\t\tsetPort(8081);\n\t\tinitializeRoutes();\n\t}", "public static void main(String[] args) {\n\t\tAbstractDataHandlerFactory dataHandlerFactory = DataHandler.getDataHandlerInstance(); \n\t\t\n\t\t// Create a Controller object to begin the application and control code flow \n\t\tController control = new Controller(dataHandlerFactory);\t\n\t}", "public static void main(String[] args) {\n Model model = new Model();\n View view = new View(model);\n Controller controller = new Controller(model, view);\n\n /*main program (each loop):\n -player token gets set\n -game status gets shown visually and user input gets requested\n -game grid gets updated\n -if the game is determined: messages gets shown and a system exit gets called*/\n while (model.turnCounter < 10) {\n model.setToken();\n view.IO();\n controller.update();\n if (controller.checker()){\n System.out.println(\"player \" + model.playerToken + \" won!\");\n System.exit(1);\n }\n System.out.println(\"draw\");\n }\n }", "public static void main(String[] args) {\n\t\trunApplication();\n\t}", "@Override\n public void run(String... args) throws Exception {\n run();\n }", "public void run() {\n // attempt to load Vending Machine Items\n try {\n service.loadItems();\n } catch (FailedLoadOfVendingItemsException ex) {\n view.displayErrorLine(\n \"Warning: Unable to load vending items into memory\"\n );\n }\n \n boolean active = true;\n \n String[] mainMenuOptions = {\n \"1. Add Funds\",\n \"2. Purchase an Item\",\n \"3. List Items\",\n \"4. Exit\"\n };\n \n view.displayVendingItems(service.getAllItems());\n view.displayLine(\"\");\n while(active) {\n view.displayMainMenuOptions(mainMenuOptions);\n\n view.displayInformationalLine(\n \"Funds in Machine: $\" + service.getFundsAvailable()\n );\n \n int choice = view.intSupplier(\n \"Pick an option\",\n val -> (1 <= val) && (val <= 4), \n \"The input must be some integer in the domain [1, 4]\"\n ).get();\n \n switch (choice) {\n case 1:\n addFunds();\n break;\n case 2:\n purchaseItem();\n break;\n case 3:\n listItems();\n break;\n case 4:\n active = false;\n break;\n default:\n view.displayErrorLine(\"UNKNOWN COMMAND\");\n break;\n }\n }\n \n // attempt to save items\n try {\n service.saveItems();\n } catch (FailedSaveOfVendingItemsException ex) {\n view.displayErrorLine(\"Warning: Unable to save vending items\");\n }\n \n // free all resources\n view.close();\n service.close();\n }", "@Override\r\n\tpublic void run(String... args) throws Exception {\n\t\t\r\n\t}", "public void run() {\n\t\t\n\t\t\n\t\t\tsaleMethod1();\n\t\t\t//saleMethod3();\n\t\t\t//saleMethod2();\n\t}", "public main() {\n initComponents();\n \n }", "public static void main(String[] args) {\r\n\t\t\r\n\t\t\r\n\t\tlatch = new CountDownLatch(2);\r\n\t\tnew InitApp();\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e2) {\r\n\t\t\te2.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tm = new MainWindow();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e3) {\r\n\t\t\te3.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tm.setVisible(true);\r\n\t\t// Abrimos la ventana principal\r\n\r\n\t\t\r\n\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tif (Main.numTaules == 0)\r\n\t\t\tnew ConfigTablesDialog(latch).setVisible(true);\r\n\t\telse\r\n\t\t\tlatch.countDown();\r\n\t\t\r\n\t\tlatch = new CountDownLatch(1);\r\n\t\tm.loadTickets();\r\n\t\t\r\n\t\ttry {\r\n\t\t\tlatch.await();\r\n\t\t} catch (InterruptedException e1) {\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\tm.resetUIForUpdates();\r\n\t\tm.getTablesFrame().onTableNumChangeCreateButtons();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Abrimos el server\r\n\t\ttry {\r\n\t\t\tMainServer mS = new MainServer(m);\r\n\t\t} catch (ClassNotFoundException | IOException | SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "public void run(String... args) throws Exception {\n\t\t\t\t\n\t}", "public void run() {\n ui.printStartingMessage();\n boolean isExit = false;\n\n while (!isExit) {\n isExit = parser.determineCommand();\n }\n\n storage.saveToFile(taskList);\n }", "public static void main(String[] args) {\n //launch it\n launch();\n }", "@Override\n\tpublic void run() {\n\t\tinit();\n\t}", "public void run() {\n\n\t}", "public void run() {\n\n\t}", "public void run() throws TException, IOException\n {\n System.out.println(\"API version: \"+extension.apiVersion());\n\n // Send a message to the SP log\n extension.info(\"Hello Smart Pendant, I'm MyExtension\");\n\n\n // read YML text from the file\n String yml = new String(Files.readAllBytes(Paths.get(\"MyUtility.yml\")), StandardCharsets.UTF_8);\n // and register it with the pendant\n var errors = pendant.registerYML(yml);\n\n // Register it as a Utility window\n pendant.registerUtilityWindow(\"myutil\",true,\"MyUtility\",\n \"YML Util\", \"YML Util\",\n UtilityWindowWidth.FullWidth, UtilityWindowHeight.HalfHeight,\n UtilityWindowExpansion.expandableNone);\n\n // run 'forever' (or until API service shutsdown) \n extension.run(() -> false);\n }", "public void run() {\n ui.showWelcomeMessage();\n runUntilExit();\n }", "@Override\n protected void setup() {\n // exception handling for invoke the main2();\n try {\n main2();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n // create central agent of the application\n try {\n AgentController Main = main1.createNewAgent(\"Main\",\"test.Main\",null);\n Main.start();\n } catch (StaleProxyException e) {\n e.printStackTrace();\n }\n try {\n showResualt();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void run() {\n\t\tSystem.out.println(\"hi deepali\");\n\t\t\n\t}", "public static void main( String[] args )\n\t{\n\t\trunApp();\n\t}", "@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(\"i am runing\");\r\n\t}", "public static void main(String[] args) {\n init();\n runIterator();\n Scanner scanner = new Scanner(System.in);\n runApplication(scanner);\n }", "public void run(String... args) throws Exception {\n\t\t\n\t}", "protected void internalRun() {\n work();\n }", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "public static void main(String [] args)\n {\n runCalculations();\n }", "public static void main(String[] args) {\n ItemRegistry itemRegistry = new ItemRegistry();\n Printer printer = new Printer();\n AccountingHandler accountingHandler = new AccountingHandler();\n InventoryHandler inventoryHandler = new InventoryHandler();\n Register register = new Register(printer, itemRegistry, accountingHandler, inventoryHandler);\n Controller contr = new Controller(register);\n View view = new View(contr);\n\n view.sampleExecution();\n }", "public void start()\n {\n uploadDataFromFile();\n menu.home();\n home();\n }", "public void run() {\n\t\trun(null, CommunicationDefaults.CONSOLE_PORT);\n\t}", "public static void main(String[] args)throws Exception {\n\t\tnew recipes().run();\r\n\t}", "private void start() {\r\n\t\t// Clear the log file.\r\n\t\tBPCC_Logger.clearLogFile();\r\n\t\t\r\n\t\t// Initialize BPCC_Util static fields.\r\n\t\tBPCC_Util.initStaticFields();\r\n\t\t\r\n\t\t// Set logging level desired for test.\r\n\t\tBPCC_Util.setLogLevel(LogLevelEnum.DEBUG);\r\n\t\t\r\n\t\t// Initialize class global variables.\r\n\t\tinitVars();\r\n\t\t\r\n\t\tcreateAndShowGUI();\r\n\t}", "public void run(){\n\t\tstartServer();\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public void run() {\n\n ConfigFileURLResolver resolver = new ConfigFileURLResolver(); \n \n try {\n this._domainFile = resolver.getFileURL(this._domainFilename);\n } catch (SessionException sesEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading login file: \"+sesEx.getMessage());\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //try to create login file instance\n try {\n _loginReader = new LoginFile();\n } catch (IOException ioEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading login file\");\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //try to create encrypter instance\n try {\n _encrypter = new PublicKeyEncrypter();\n } catch (IOException ioEx) {\n this._logger.error(ERROR_TAG + \"Error occurred while loading encrypter\");\n //ioEx.printStackTrace();\n this._logger.trace(null, ioEx);\n ++this._errorCount;\n return;\n }\n \n //--------------------------\n \n //create reconnect throttle \n \n _throttle = new ReconnectThrottle();\n \n //--------------------------\n \n //install shutdown handler to hook\n //Runtime.getRuntime().addShutdownHook(new ShutDownHandler());\n \n //check action id\n if (this._actionId.equals(Constants.NOOPERATION)) {\n this._logger.error(ERROR_TAG + \"Unrecognized user operation: \"\n + this._userOperation);\n ++this._errorCount;\n return;\n }\n\n boolean parseError = false;\n\n try {\n //construct parser and parser\n this._parser.parse(this._actionId, this._args);\n } catch (ParseException pEx) {\n parseError = true;\n\n //if no arguments were provided and exception is missing args,\n //then just send message to debug and rely on help message\n if (this._args.length == 0 && \n pEx.getErrorOffset() == UtilCmdParser.CODE_MISSING_ARGUMENTS)\n this._logger.debug(ERROR_TAG + pEx.getMessage());\n else\n this._logger.error(ERROR_TAG + pEx.getMessage());\n this._logger.debug(null, pEx);\n } catch (Exception ex) {\n parseError = true;\n this._logger.error(ERROR_TAG + ex.getMessage());\n this._logger.debug(null, ex);\n }\n\n if (parseError) {\n //attempt to logout\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n }\n\n //-------------------------\n\n boolean help = parseError || \n (this._parser == null) || this._parser.printHelp();\n\n //if help is true, print usage and return\n if (help) {\n this._logger.info(this._getUsage());\n return;\n }\n\n \n //-------------------------\n\n// FileEventHandlerManager fehManager = new FileEventHandlerManager(\n// this._argTable, this._actionId); \n// this._fileEventHandlerSet = fehManager.getFileEventHandlers();\n \n //-------------------------\n\n this._using = (this._parser.getOptionsFilename() != null);\n\n try {\n //iterate over number of argument sets, processing each\n\n Hashtable argTable;\n this._parser.reset();\n int iterations = this._parser.iterations();\n for (int i = 0; i < iterations; ++i) {\n argTable = (Hashtable) this._parser.getCurrentArguments();\n \n try {\n _process(argTable);\n } catch (SessionException sesEx) {\n this._logger.error(ERROR_TAG + sesEx.getMessage());\n this._logger.debug(null, sesEx);\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n //return;\n }\n this._parser.advance();\n }\n\n //-------------------------\n\n //logout successfully\n this._logout();\n\n //-------------------------\n\n } catch (Exception ex) {\n this._logger.error(ERROR_TAG + ex.getMessage());\n this._logger.debug(null, ex);\n try {\n this._logout();\n } catch (Exception le) {\n this._logger.debug(null, le);\n }\n ++this._errorCount;\n return;\n }\n\n }", "public void start(){\n CoffeeMakerHelper coffeeMakerHelper = new CoffeeMakerHelper(inputArgs[0]);\n coffeeMakerService = coffeeMakerHelper.parseJsonFile();\n computeCoffeeMaker();\n }", "public void run() {\n }", "public void run() {\n }", "public void run() {\n }", "public static void main(String[] args) {\n\t\tlaunch(args);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\"main method\");\n\t\ttest();\n\t\t//RunprogramwithoutObject.test();// no need to create any object of class\n\t\tcover();\n\n\t}", "public static void main(String[] args) {\n launch(args);\r\n \r\n }" ]
[ "0.75556535", "0.7147439", "0.7142204", "0.71381354", "0.69919276", "0.696898", "0.69672686", "0.69273025", "0.6896459", "0.68917984", "0.6865261", "0.68596375", "0.6827679", "0.68169236", "0.68115574", "0.67977566", "0.67916584", "0.6780606", "0.6764843", "0.67630535", "0.67603934", "0.6758388", "0.67483693", "0.6740866", "0.6740494", "0.67380965", "0.6737908", "0.6735368", "0.6731638", "0.6722809", "0.66986024", "0.6695439", "0.667945", "0.6661917", "0.6661917", "0.6661917", "0.66615796", "0.6652707", "0.6644341", "0.6639136", "0.66370916", "0.6624073", "0.66154283", "0.661016", "0.6597355", "0.6575517", "0.6567171", "0.65511924", "0.65394497", "0.6530683", "0.6530683", "0.65283513", "0.6522421", "0.6520977", "0.6519742", "0.65080935", "0.65051544", "0.6502515", "0.6497035", "0.6496166", "0.64932853", "0.64889145", "0.64850473", "0.647933", "0.6478685", "0.64782804", "0.64767545", "0.64751565", "0.6473238", "0.646942", "0.6468179", "0.64620763", "0.6460894", "0.64386994", "0.64386994", "0.64320034", "0.6431915", "0.6428251", "0.6425996", "0.6423363", "0.6411941", "0.6409609", "0.6409296", "0.6406652", "0.63995236", "0.63988876", "0.63957626", "0.6392781", "0.63891923", "0.6385115", "0.6380635", "0.63804203", "0.6376921", "0.6367477", "0.6365357", "0.63633287", "0.63633287", "0.63633287", "0.6362442", "0.63623387", "0.63496816" ]
0.0
-1
Prepare ants for the simulation
private void setupAnts() { IntStream.range(0, numberOfAnts) .forEach(i -> { ants.forEach(ant -> { ant.clear(); ant.visitCity(-1, random.nextInt(numberOfCities)); }); }); currentIndex = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "public void prepare() {\n\t\twhile (lastEventEndTime<=curSimulation.time) {\n\t\t\t\n\t\t\t// generate the next event\n\t\t\tif (lastEvent!=null && lastEvent.type==Event.MOVE) {\n\t\t\t\t\n\t\t\t\t// currently moving -> generate a new PAUSE event\n\t\t\t\tMove move = (Move)lastEvent;\n\t\t\t\tPause pause = new Pause(this, lastEventEndTime, RandomWaypointModel.waitTimeDistribution.nextValue(), move.moveToX, move.moveToY);\n\t\t\t\taddEvent(pause);\n\t\t\t\t\n\t\t\t} else if (lastEvent!=null && lastEvent.type==Event.PAUSE) {\n\t\t\t\t\n\t\t\t\t// generate a new MOVEMENT event\n\t\t\t\tMove move = new Move(this, lastEventEndTime, lastEvent.x, lastEvent.y, curSimulation.size*curSimulation.rng.nextDouble(), curSimulation.size*curSimulation.rng.nextDouble(), RandomWaypointModel.velocityDistribution.nextValue());\n\t\t\t\taddEvent(move);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void setUpData() {\n generalStatsCalculator.calculateOffsetTrees();\n this.MostEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostEmissionsRoutes());\n this.LeastEmissionsRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastEmissionsRoutes());\n this.MostDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getMostDistanceRoutes());\n this.LeastDistanceRouteString =\n RoutesArrayToString(routeStatsCalculator.getLeastDistanceRoutes());\n this.MostVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedSrcAirports());\n this.LeastVisitedSourceAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedSrcAirports());\n this.MostVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getMostVisitedDestAirports());\n this.LeastVisitedDestAirportString =\n CombineAirportsToOneString(airportStatsCalculator.getLeastVisitedDestAirports());\n numOfTreesToString(generalStatsCalculator.getTreesToGrow());\n generalStatsCalculator.createCarbonEmissionsComment();\n }", "private void prepare()\n {\n AmbulanceToLeft ambulanceToLeft = new AmbulanceToLeft();\n addObject(ambulanceToLeft,717,579);\n Car2ToLeft car2ToLeft = new Car2ToLeft();\n addObject(car2ToLeft,291,579);\n Car3 car3 = new Car3();\n addObject(car3,45,502);\n CarToLeft carToLeft = new CarToLeft();\n addObject(carToLeft,710,262);\n Car car = new Car();\n addObject(car,37,190);\n AmbulanceToLeft ambulanceToLeft2 = new AmbulanceToLeft();\n addObject(ambulanceToLeft2,161,264);\n }", "private void prepareAgents() {\n\t\tGodsProperties.setGodsStatus(GodsStatus.PREPARING);\n\n\t\t// Send prepare events to all agents\n\t\tfor (String host : GodsProperties.getHosts()) {\n\n\t\t\tPrepareEvent prepareEvent = new PrepareEvent(1);\n\n\t\t\tint[] slotsRange = getSlotRangeFor(host);\n\t\t\tprepareEvent.setSlotsRange(slotsRange);\n\n\t\t\tControlCenter.getInstance().notifyAgent(host, prepareEvent);\n\t\t\tlog.info(\"Sent Prepare Event to:\" + host + \" with slots range: [\"\n\t\t\t\t\t+ slotsRange[0] + \" - \" + slotsRange[1] + \"]\");\n\t\t}\n\t}", "private void setupAgents() {\r\n try {\r\n setupJade();\r\n //createAgent(Bank.class, \"Bank\");\r\n createAgent(ProductionAgent.class, \"Res1\");\r\n createAgent(ProductionAgent.class, \"Res2\");\r\n createAgent(SocialAgent.class, \"Soc\");\r\n createAgent(ClientAgent.class, \"Client\");\r\n\r\n } catch (Exception e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "private void prepare()\n {\n Victoria victoria = new Victoria();\n addObject(victoria,190,146);\n Salir salir = new Salir();\n addObject(salir,200,533);\n Volver volver = new Volver();\n addObject(volver,198,401);\n }", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "@Override\r\n protected void setup() {\n Number = Double.valueOf((String) getArguments()[0]);\r\n String Name = getAID().getLocalName();\r\n\r\n System.out.println(\"Agent Id: \" + Name +\" number = \" + Number);\r\n\r\n linkedAgents = Arrays.copyOfRange(getArguments(), 1,\r\n getArguments().length, String[].class);\r\n\r\n addBehaviour(new FindAverage\r\n (this, TimeUnit.SECONDS.toMillis(1)));\r\n }", "public void prepare() {\n for (IMixinPlatformAgent agent : this.agents) {\n MixinContainer.logger.debug(\"Processing prepare() for {}\", agent);\n agent.prepare();\n }\n }", "protected void setup() {\r\n \t//inizializza gli attributi dell'iniziatore in base ai valori dei parametri\r\n Object[] args = this.getArguments();\r\n \t\tif (args != null)\r\n \t\t{\r\n \t\t\tthis.goodName = (String) args[0];\r\n \t\t\tthis.price = (int) args[1];\r\n \t\t\tthis.reservePrice = (int) args[2];\r\n \t\t\tthis.dif = (int) args[3];\r\n \t\t\tthis.quantity = (int) args[4];\r\n \t\t\tthis.msWait = (int) args[5];\r\n \t\t} \t\t\r\n\r\n manager.registerLanguage(codec);\r\n manager.registerOntology(ontology);\r\n \r\n //inizializza il bene oggetto dell'asta\r\n good = new Good(goodName, price, reservePrice, quantity);\r\n \r\n //cerca ed inserisce nell'ArrayList gli eventuali partecipanti\r\n findBidders(); \r\n \r\n //viene aggiunto l'apposito behaviour\r\n addBehaviour(new BehaviourInitiator(this));\r\n\r\n System.out.println(\"Initiator \" + this.getLocalName() + \" avviato\");\r\n }", "public void setup() {\n statsTable();\n spawnsTable();\n }", "@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}", "public void setupSimulation() {\n final Timer timerStatus = new Timer();\n\n TimerTask taskUpdateFood = new TimerTask() {\n @Override\n public void run() {\n terrain.toggleFood();\n }\n };\n timerStatus.schedule(taskUpdateFood, 0, 1000);\n\n startTime = System.currentTimeMillis();\n }", "public void prepare() {\r\n\t\tsuper.prepare();\r\n\t\tSystem.out.println(\" - Gather the grains\");\r\n\t\tSystem.out.println(\" - Shape into circles\");\r\n\t\tSystem.out.println(\" - Randomly color circles\");\r\n\t\tSystem.out.println(\" - Let circles dry\");\r\n\t}", "protected void setup(){\n\n\t\tsuper.setup();\n\n\t\tfinal Object[] args = getArguments();\n\t\tif(args!=null && args[0]!=null && args[1]!=null){\n\t\t\tdeployAgent((Environment) args[0],(EntityType)args[1]);\n\t\t}else{\n\t\t\tSystem.err.println(\"Malfunction during parameter's loading of agent\"+ this.getClass().getName());\n System.exit(-1);\n }\n\t\t\n\t\t//############ PARAMS ##########\n\n\t\tthis.nbmodifsmin \t\t= 30;\t\t\t//nb modifs minimum pour renvoyer la carte\n\t\tthis.timeOut \t\t\t= 1000 * 4;\t\t//secondes pour timeout des messages (*1000 car il faut en ms)\n\t\tthis.sleepbetweenmove \t= 200;\t\t\t//in MS\n\t\tthis.nbmoverandom\t\t= 4;\t\t\t// nb random moves by default\n\t\t\n\t\t//#############################\n\t\t//setup graph\n\t\t//setupgraph();\n\t\tthis.graph = new SingleGraph(\"graphAgent\");\n\t\tinitMyGraph();\n\t\tthis.step = 0;\n\t\tthis.stepMap = new HashMap<String, Integer>();\n\t\tthis.path = new ArrayList<String>();\n\t\tthis.mailbox = new Messages(this);\n\t\tthis.lastMsg = null;\n\t\tthis.switchPath = true;\n\t\tthis.lastsender = null;\n\t\tthis.lastSentMap = new HashMap<String, Integer>(); //nbmodifs\n\t\tthis.remakepath = false; // changes to true if the map changed in a way that requires a new path\n\t\tthis.nbmoverandomoriginal = this.nbmoverandom;\n\t\t\n\t\tthis.toSendMap = new HashMap<String, Graph>(); //actual hashmap graph\n\t\t\n\t\tSystem.out.println(\"the agent \"+this.getLocalName()+ \" is started\");\n\t}", "public void setup()\n {\n // we use a separate ArrayList to keep track of each animal. \n // our room is 50 x 50.\n creatures = new ArrayList<Creature>();\n for (int i = 0; i < 55; i++) {\n if (i < 5) {\n creatures.add(new Fox((int)(Math.random()*48)+1, 1, (int)(Math.random()*48)+1)); \n } else {\n creatures.add(new Tux((int)(Math.random()*48)+1, 1, (int)(Math.random()*48)+1));\n }\n }\n \n env.setRoom(new Room());\n \n // Add all the animals into to the environment for display\n for (Creature c : creatures) {\n env.addObject(c);\n }\n \n // Sets up the camera\n env.setCameraXYZ(25, 50, 55);\n env.setCameraPitch(-63);\n \n // Turn off the default controls\n env.setDefaultControl(false);\n env.setShowController(false);\n \n }", "protected void setup() {\n\t\t\n\n\n\t\tif(PropertiesLoaderImpl.IS_MAIN_SIMULATION_NODE)addBehaviour(new HandleClockBehaviour(this, TimeRateControl));\n\t\telse addBehaviour(new SlaveNodeClockBehaviour(this, TimeRateControl));\n\t\t\n\t\tif(PropertiesLoaderImpl.DEBUG) System.out.println(this.getName() +\" alive!!!!!!!!!!\\nStarting the simulation time\");\n\t\t\n\t\n\t\t\tSimulationClock.getInstance().setSimulationStarted(true);\n\t\n\t}", "private void initialParameters()\n\t{\n\t\tasteroidList = new ArrayList<Asteroid>();\n\t\tfor(int i = 0 ; i < INITIAL_ASTEROIDS ; i++)\n\t\t\tasteroidList.add(new Asteroid(getRandomLocationX(), getRandomLocationY(), SCREEN_WIDTH, SCREEN_HEIGHT));\n\t\t\n\t\t//========== Game Status ===========\n\t\trunning \t= true;\n\t\tisWin \t\t= false;\n\t\tisGameOver \t= false;\n\t\t\n\t\t//========== Game Craft ===========\t\t\n\t\tcraft = new Craft(SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t}", "@Before\n public void prepare() throws Exception{\n systemController = new SystemControllerImpl();\n //List<Node> inputNodes = NodeDataGenerator.generate(3, 5);\n List<Node> inputNodes = NodeDataGenerator.generateFixedReal();\n inputNodes.forEach(node -> systemController.addNode(node));\n }", "private void initializeDNA() {\n\t\tint numInputs = population.numInputs;\n\t\tint numOutputs = population.numOutputs;\n\t\tfor (int i = 1; i <= numInputs; i++) {\n\t\t\tsubmitNewNode(new NNode(i, NNode.INPUT));\n\t\t}\n\t\tfor (int j = numInputs + 1; j <= numInputs + numOutputs; j++) {\n\t\t\tsubmitNewNode(new NNode(j, NNode.OUTPUT));\n\t\t}\n\n\t\tfor (int i = 0; i < numInputs; i++) {\n\t\t\tfor (int j = 0; j < numOutputs; j++) {\n\t\t\t\tint start = i + 1;\n\t\t\t\tint end = numInputs + 1 + j;\n\t\t\t\tint innovation = population.getInnovation(start, end);\n\t\t\t\tGene g = new Gene(innovation, start, end, Braincraft\n\t\t\t\t\t\t.randomWeight(), true);\n\t\t\t\tpopulation.registerGene(g);\n\t\t\t\tsubmitNewGene(g);\n\t\t\t}\n\t\t}\n\t}", "public void prepare() {\n System.out.println(\"Preparing: \" + name);\n System.out.println(\"Tossing dough: \" + dough);\n System.out.println(\"Adding sauce: \" + sauce);\n System.out.print(\"Adding Toppings: \");\n toppings.forEach(topping -> System.out.print(topping + \" \"));\n System.out.println();\n }", "public void doInitialSchedules() {\n ravenna.schedule();\n milan.schedule();\n venice.schedule();\n\n //Scheduling the public transportaton\n ravenna_milan.activate();\n milan_venice.activate();\n venice_ravenna.activate();\n }", "public void setUp() {\r\n\t\tsynchronized(phys) {\r\n\t\t\r\n\t\tReactionSystem reactions = new ReactionSystem();\r\n\t\tphys.getParticles().clear();\r\n\t\tphys.compounds.clear();\r\n\t\tphys.particlecount.clear();\r\n\t\t\r\n\t\t//Add new compounds\r\n\t\t\r\n\t\tfor (Compound c: rm.compounds) {\r\n\t\t\tphys.addCompound(c);\r\n\t\t}\r\n\t\t\r\n\t\t//Add new reactions\r\n\t\t\r\n\t\tfor (CompoundReaction rx: rm.reactions) {\r\n\t\t\trx.convertToReactions(reactions.getReactions());\r\n\t\t}\r\n\t\t\r\n\t\tphys.reactions = reactions;\r\n\t\tphys.calculateAvgMass();\r\n\t\tphys.calculateAvgRadius();\r\n\t\r\n\t\t\r\n\t\tfor (Reaction r: phys.reactions.getReactions()) {\r\n\r\n\t\t\tSystem.out.println(r);\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//Add graphs\r\n\t\tscale.reset();\r\n\t\tphys.graphs.clear();\r\n\t\tfor (Compound c: phys.compounds) {\r\n\t\t\tphys.graphs.add(new ConcentrationDataCollector(300, c, scale));\t\r\n\t\t}\r\n\t\t\r\n\t\tphys.time = 0;\r\n\t\tphys.nextcollection = phys.collectioninterval;\r\n\t\tphys.bondenergy = 0;\r\n\t\t}\r\n\t}", "private void prepare()\n { \n ClickToStart start = new ClickToStart();\n addObject(start, 641, 534); \n }", "public void setup() {\n doors = new ArrayList<>();\n doors.add(new Door(Contains.GOAT));\n doors.add(new Door(Contains.GOAT));\n doors.add(new Door(Contains.CAR));\n Collections.shuffle(doors);\n stage = Stage.BEGINNING;\n }", "private void setup() {\n\t\tpopulateEntitiesLists();\n\t\t// rayHandler.setCombinedMatrix(batch.getProjectionMatrix());\n\t\tambientColor = Color.CLEAR;\n\t\tsetAmbientAlpha(.3f);\n\t\tfpsLogger = new FPSLogger();\n\t\tdynamicEntities = new ArrayList<DynamicEntity>();\n\t\tfont.getData().setScale(DEBUG_FONT_SCALE);\n\t}", "public void setup() {\n\t\taddBehaviour(new TickerBehaviour(this, 1000L) {\n\n\t\t\t@Override\n\t\t\tprotected void onTick() {\n\t\t\t\tint extinguishedFires = 0;\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < worldAgent.getAircraftAgents().length; i++) {\n\t\t\t\t\textinguishedFires+=worldAgent.getAircraftAgents()[i].getAircraftMetricsStats().getNumTotalFiresExtinguishedByThisAircraft();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tworldAgent.getWorldMetricsStats().setNumTotalFiresExtinguishedByAllAircrafts(extinguishedFires);\n\t\t\t\t\n\t\t\t\tif(extinguishedFires >= 3) {\t\t\t\t\t\n\t\t\t\t\tlong end_time = System.currentTimeMillis();\n\t\t\t\t\tlong execution_time = end_time - init_time;\n\t\t\t\t\t\n\t\t\t\t\tAircraftAgent[] aircrafts = worldAgent.getAircraftAgents();\n\t\t\t\t\t\n\t\t\t\t\tfor(int i = 0; i < aircrafts.length; i++) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tfor(Thread sleepingThread : aircrafts[i].getSleepingThreads().values()) {\n\t\t\t\t\t\t\tSystem.err.println(\"Interrupting thread = \\\"\" + sleepingThread.getName() + \"!\");\n\t\t\t\t\t\t\tsleepingThread.interrupt();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tkillContainer();\n\t\t\t\t\t\n\t\t\t\t\tLogger.appendConfigValues(execution_time);\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"Run no. \" + JADELauncher.NUMBER_OF_RUNS + \" finished.\");\n\n\t\t\t\t\tif(JADELauncher.NUMBER_OF_RUNS == 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tLogger.closeStream();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tJADELauncher.NUMBER_OF_RUNS--;\n\t\t\t\t\t\tinstanceRun();\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\n\t\t\t\n\t\t});\n\t\t\n\t\tinstanceRun();\n\t}", "public void prepare() {\n\t}", "private void prepare()\n {\n treespawn treespawn2 = new treespawn();\n addObject(treespawn2,30,486);\n\n hantu hantu = new hantu();\n addObject(hantu,779,359);\n \n hantu hantu2 = new hantu();\n addObject(hantu2,88,84);\n \n bergerak bergerak2 = new bergerak();\n addObject(bergerak2,745,423);\n\n bergerak bergerak3 = new bergerak();\n addObject(bergerak3,266,566);\n \n bergerak bergerak4 = new bergerak();\n addObject(bergerak4,564,566);\n\n hantu hantu3 = new hantu();\n addObject(hantu3,671,490);\n \n hantu hantu4 = new hantu();\n addObject(hantu4,371,499);\n\n bergerak bergerak = new bergerak();\n addObject(bergerak,150,148);\n\n lantai lantai = new lantai();\n addObject(lantai,561,577); \n addObject(lantai,419,579); \n\n player player = new player();\n addObject(player,882,498);\n\n lantai3 lantai3 = new lantai3();\n addObject(lantai3,120,148);\n\n flyinglantai flyinglantai = new flyinglantai();\n addObject(flyinglantai,292,148);\n\n treespawn treespawn = new treespawn();\n addObject(treespawn,30,291);\n\n lantai4 lantai4 = new lantai4();\n addObject(lantai4,235,536);\n \n lantai4 lantai42 = new lantai4();\n addObject(lantai42,275,508);\n \n lantai4 lantai43 = new lantai4();\n addObject(lantai43,323,480);\n \n lantai4 lantai44 = new lantai4();\n addObject(lantai44,369,454);\n\n lantai2 lantai2 = new lantai2();\n addObject(lantai2,680,424);\n\n \n lantai3 lantai32 = new lantai3();\n addObject(lantai32,938,146);\n \n lantai4 lantai45 = new lantai4();\n addObject(lantai45,21,370);\n\n lantai4 lantai46 = new lantai4();\n addObject(lantai46,210,180);\n \n lantai4 lantai47 = new lantai4();\n addObject(lantai47,257,201);\n \n lantai4 lantai48 = new lantai4();\n addObject(lantai48,302,229);\n \n lantai4 lantai49 = new lantai4();\n addObject(lantai49,354,255);\n \n lantai4 lantai410 = new lantai4();\n addObject(lantai410,402,281);\n \n lantai4 lantai411 = new lantai4();\n addObject(lantai411,444,302);\n \n lantai4 lantai412 = new lantai4();\n addObject(lantai412,491,334);\n \n lantai4 lantai413 = new lantai4();\n addObject(lantai413,546,364);\n \n lantai4 lantai414 = new lantai4();\n addObject(lantai414,582,397);\n \n doorlv3 doorlv3 = new doorlv3();\n addObject(doorlv3,910,45);\n\n \n }", "void PrepareRun() {\n }", "@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}", "private void createAgent() {\n logger.info(\"Creating agent\");\n iteration = 0;\n aiManager = new AIManager(configDialogInfo);\n aiManager.getAgent().addObserver(\"gameEngine\", this);\n AIBirth.generate(aiManager.getAgent());\n aiManager.start();\n }", "private void setTEMinitsFromRunner(){\n\t\n\t\tSiteIn inits = new SiteIn();\n\t\t\n\t\tString dummy=\" \";\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MOSSTHICK, 1);\n\t\tif (dummy!=\" \") inits.setMossthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBTHICK, 1);\n\t\tif (dummy!=\" \") inits.setFibthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMTHICK, 1);\n\t\tif (dummy!=\" \") inits.setHumthick(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGC, 1);\n\t\tif (dummy!=\" \") inits.setVegc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_VEGN, 1);\n\t\tif (dummy!=\" \") inits.setVegn(Float.valueOf(dummy));\n\t\t\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILC, 1);\n\t\tif (dummy!=\" \") inits.setSoilc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_FIBSOILC, 1);\n\t\tif (dummy!=\" \") inits.setFibc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_HUMSOILC, 1);\n\t\tif (dummy!=\" \") inits.setHumc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_MINESOILC, 1);\n\t\tif (dummy!=\" \") inits.setMinc(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_AVAILN, 1);\n\t\tif (dummy!=\" \") inits.setAvln(Float.valueOf(dummy));\n\t\tdummy = (String)initTB.getValueAt(GUIconfigurer.I_SOILN, 1);\n\t\tif (dummy!=\" \") inits.setOrgn(Float.valueOf(dummy));\n \n\t\tif (dummy!=\" \") TEM.runcht.cht.setSiteStates(inits);\n \n\t}", "private void prepare()\n {\n addObject(player,185,196);\n player.setLocation(71,271);\n Ground ground = new Ground();\n addObject(ground,300,360);\n invent invent = new invent();\n addObject(invent,300,375);\n }", "public void prepareForSpeciation() {\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.assignRep();\r\n\t\t}\r\n\r\n\t\t// clear the old species list\r\n\t\tfor (Species s : speciesList) {\r\n\t\t\ts.clearMembers();\r\n\t\t}\r\n\t}", "SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }", "private void setUp() {\r\n\tvariables = new Vector();\r\n\tstatements = new Vector();\r\n\tconstraints = new Vector();\r\n\tvariableGenerator = new SimpleVariableGenerator(\"v_\");\r\n }", "@Override\r\n\tprotected void setup()\r\n\t{\r\n\r\n\t\t//adding the desired behaviour to the agent\r\n\t\taddBehaviour(new RoadAgentBehaviour(this));\r\n\t}", "@Override\n\tprotected void setup() {\n\t\tObject[] args = getArguments();\n\t\tif (args != null && args.length == 3) {\n\t\t\tnumAttempts = Integer.parseInt((String) args[0]);\n\t\t\tinitLaps = Integer.parseInt((String) args[1]);\n\t\t\tstep = Integer.parseInt((String) args[2]);\n\t\t\tlogger.info(\"Init experiment (a:\" + numAttempts + \", i:\" + initLaps + \", s:\" + step);\n\t\t} else {\n\t\t\tlogger.log(Logger.SEVERE, \"Agent \" + getLocalName() + \" - Incorrect number of arguments\");\n\t\t\tdoDelete();\n\t\t}\n\t\t// Init experiment\n\t\taddBehaviour(new ExperimentBehaviour(numAttempts, initLaps, step));\n\t}", "protected void setupParameters() {\n \n \n\n }", "@Before\n public void setUp()\n {\n //ping for CSSE UWA\n csse = new GPSping(-31.977484,115.816228,1565063614);\n //ping for Perth train station 1 hour later\n perth = new GPSping(-31.951078,115.859945,1565063614+3600);\n //ping for Musee d'Orsay Paris on 20 Aug 2019\n paris = new GPSping(48.859741,2.326609,1566270756);\n //erroneous pings\n err1 = new GPSping(115.816228,-31.977484,1565063614);\n err2 = new GPSping(200,100,20);\n }", "private void prepare()\n {\n // Add three lines to this doc with your class constructor and your row and seat number\n // Make sure to match your first and last name to the class file you created.\n\n /* Example */\n KilgoreTrout kilgoretrout = new KilgoreTrout(\"Kilgore\", \"Trout\", 1, 1);\n addObject(kilgoretrout, 1, 1);\n kilgoretrout.sitDown();\n \n riajain = new RiaJain(\"Ria\", \"Jain\", 2, 1);\n addObject(riajain, riajain.myRow, riajain.mySeat);\n riajain.sitDown();\n }", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "public static void setup() {\n\t\ttestUpdateParticle();\n\t\ttestRemoveOldParticles();\n\t\t\n\t\tif (testUpdateParticle() == true || testRemoveOldParticles() == true) {\n\t\t\tSystem.out.println(\"FAILED\");\n\t\t}\n\t\t\n\t\t// Build a new random field.\n\t\trandGen = new Random();\n\n\t\tpositionX = 400; // middle of the screen (left to right): 400\n\t\tpositionY = 300; // middle of the screen (top to bottom): 300\n\t\tstartColor = Utility.color(23, 141, 235); // blue: Utility.color(23,141,235)\n\t\tendColor = Utility.color(23, 200, 255); // lighter blue: Utility.color(23,200,255)\n\t\t\n\t\t// This array can store 800 particles\n\t\tparticles = new Particle[800];\n\n\t}", "private void initSetUp()\n\t{\n\t\tthis.setActionName(NAME);\n\t\tthis.setDescription(DESCRIPTION);\n\t\tthis.setMagic(IS_MAGIC);\n\t\tthis.setAttack(IS_ATTACK);\n\t\tthis.setTargetSelf(IS_TARGET_SELF);\n\t\tthis.setInternalName(INTERNAL_NAME);\n\t}", "public void initVariables() throws Exception {\n\n\t\tclockTomasulo = clockTomasulo.getInstance();\n\t\tclockTomasulo.ResetClock();\n\t\t// OperationFileParser file_parser = new OperationFileParser( data_file\n\t\t// );\n\n\t\t// Iniatialize containers for instructions and registers\n\t\t// operations = new OperationList();\n\t\tregistersTomasulo = new RegisterFiles();\n\n\t\t// file_parser.parseFile( operations );\n\n\t\t/*\n\t\t * // Create and intialize Reservation Stations alu_rsTomasulo = new\n\t\t * ALUStation[8];\n\t\t * \n\t\t * \n\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] = new\n\t\t * ALUStation(\"Add1\"); alu_rsTomasulo[2] = new ALUStation(\"Add2\");\n\t\t * alu_rsTomasulo[3] = new ALUStation(\"Mul1\"); alu_rsTomasulo[4] = new\n\t\t * ALUStation(\"Mul2\"); alu_rsTomasulo[5] = new ALUStation(\"Div1\");\n\t\t * alu_rsTomasulo[6] = new ALUStation(\"Div2\"); alu_rsTomasulo[7] = new\n\t\t * ALUStation(\"Div3\");\n\t\t */\n\t\t/*\n\t\t * MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t * MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t * MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t * MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\t\t */\n\n\t\tinstruction_to_stationTomasulo = new HashMap<String, Integer[]>();\n\t\t// Memory Indices\n\t\tinstruction_to_stationTomasulo.put(\"LD\", new Integer[] { 0, 1 });\n\t\tinstruction_to_stationTomasulo.put(\"SD\", new Integer[] { 2, 3 });\n\n\t\t/*\n\t\t * // ALU Indices instruction_to_stationTomasulo.put(\"DADDI\", new\n\t\t * Integer[] { 0 }); instruction_to_stationTomasulo.put(\"ADDD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"SUBD\", new\n\t\t * Integer[] { 1, 2 }); instruction_to_stationTomasulo.put(\"MULD\", new\n\t\t * Integer[] { 3, 4, 5 }); instruction_to_stationTomasulo.put(\"DIVD\",\n\t\t * new Integer[] { 6, 7, 8, 9 });\n\t\t */\n\n\t\ttry {\n\t\t\t/*\n\t\t\t * [pipeline] PipeFPAddSub=1 PipeFPMult=1 PipeFPDivide=1\n\t\t\t * PipeIntDivide=1 [scorboard] ScoreInteger=1 ScoreAddSub=2\n\t\t\t * ScoreMult=10 ScoreDivide=40 [tomasulo] TomInteger=2 TomAddI=1\n\t\t\t * TomAddSub=4 TomMult=7 TomDivide=25\n\t\t\t */\n\t\t\tWini ini;\n\t\t\t/* Load the ini file. */\n\t\t\tini = new Wini(new File(\"config/settings.ini\"));\n\n\t\t\tint TomInteger = ini.get(\"tomasulo\", \"TomInteger\", int.class);\n\t\t\tint TomAddI = ini.get(\"tomasulo\", \"TomAddI\", int.class);\n\t\t\tint TomAddSub = ini.get(\"tomasulo\", \"TomAddSub\", int.class);\n\t\t\tint TomMult = ini.get(\"tomasulo\", \"TomMult\", int.class);\n\t\t\tint TomDivide = ini.get(\"tomasulo\", \"TomDivide\", int.class);\n\n\t\t\tint TomNumInteger = ini.get(\"tomasulo\", \"TomNumInteger\", int.class);\n\t\t\tint TomNumAddSub = ini.get(\"tomasulo\", \"TomNumAddSub\", int.class);\n\t\t\tint TomNumMult = ini.get(\"tomasulo\", \"TomNumMult\", int.class);\n\t\t\tint TomNumDiv = ini.get(\"tomasulo\", \"TomNumDiv\", int.class);\n\t\t\tint TomNumLoad = ini.get(\"tomasulo\", \"TomNumLoad\", int.class);\n\t\t\tint TomNumStore = ini.get(\"tomasulo\", \"TomNumStore\", int.class);\n\n\t\t\tInteger[] arrayTomNumInteger;\n\t\t\tInteger[] arrayTomNumAddSub;\n\t\t\tInteger[] arrayTomNumMult;\n\t\t\tInteger[] arrayTomNumDiv;\n\n\t\t\t// Create a mapping of instructions to execution time\n\t\t\tinstruction_to_timeTomasulo = new HashMap<String, Integer>();\n\t\t\t// Memory Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"LD\", new Integer(TomInteger));\n\t\t\tinstruction_to_timeTomasulo.put(\"SD\", new Integer(TomInteger));\n\n\t\t\t// ALU Instructions\n\t\t\tinstruction_to_timeTomasulo.put(\"DADDI\", new Integer(TomAddI));\n\t\t\tinstruction_to_timeTomasulo.put(\"DADD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"ADDD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"SUBD\", new Integer(TomAddSub));\n\t\t\tinstruction_to_timeTomasulo.put(\"MULD\", new Integer(TomMult));\n\t\t\tinstruction_to_timeTomasulo.put(\"DIVD\", new Integer(TomDivide));\n\n\t\t\t// Create and intialize Reservation Stations\n\t\t\talu_rsTomasulo = new ALUStation[TomNumInteger + TomNumAddSub + TomNumMult + TomNumDiv];\n\n\t\t\t// ALU Indices\n\t\t\tarrayTomNumInteger = new Integer[TomNumInteger];\n\t\t\tfor (int i = 0; i < TomNumInteger; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Int\" + (i + 1));\n\t\t\t\tarrayTomNumInteger[i] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumInteger.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DADDI\", arrayTomNumInteger);\n\n\t\t\tarrayTomNumAddSub = new Integer[TomNumAddSub];\n\t\t\tfor (int i = TomNumInteger; i < TomNumInteger + TomNumAddSub; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Add\" + (i - TomNumInteger + 1));\n\t\t\t\tarrayTomNumAddSub[i - TomNumInteger] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumAddSub.length > 0) {\n\t\t\t\tinstruction_to_stationTomasulo.put(\"ADDD\", arrayTomNumAddSub);\n\t\t\t\tinstruction_to_stationTomasulo.put(\"SUBD\", arrayTomNumAddSub);\n\t\t\t}\n\n\t\t\tarrayTomNumMult = new Integer[TomNumMult];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub; i < TomNumInteger + TomNumAddSub + TomNumMult; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Mul\" + (i - TomNumInteger - TomNumAddSub + 1));\n\t\t\t\tarrayTomNumMult[i - TomNumInteger - TomNumAddSub] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumMult.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"MULD\", arrayTomNumMult);\n\n\t\t\tarrayTomNumDiv = new Integer[TomNumDiv];\n\t\t\tfor (int i = TomNumInteger + TomNumAddSub + TomNumMult; i < TomNumInteger + TomNumAddSub + TomNumMult\n\t\t\t\t\t+ TomNumDiv; i++) {\n\t\t\t\talu_rsTomasulo[i] = new ALUStation(\"Div\" + (i - TomNumInteger - TomNumAddSub - TomNumMult + 1));\n\t\t\t\tarrayTomNumDiv[i - TomNumInteger - TomNumAddSub - TomNumMult] = i;\n\t\t\t}\n\t\t\tif (arrayTomNumDiv.length > 0)\n\t\t\t\tinstruction_to_stationTomasulo.put(\"DIVD\", arrayTomNumDiv);\n\n\t\t\t/*\n\t\t\t * alu_rsTomasulo[0] = new ALUStation(\"Int1\"); alu_rsTomasulo[1] =\n\t\t\t * new ALUStation(\"Add1\"); alu_rsTomasulo[2] = new\n\t\t\t * ALUStation(\"Add2\"); alu_rsTomasulo[3] = new ALUStation(\"Mul1\");\n\t\t\t * alu_rsTomasulo[4] = new ALUStation(\"Mul2\"); alu_rsTomasulo[5] =\n\t\t\t * new ALUStation(\"Div1\"); alu_rsTomasulo[6] = new\n\t\t\t * ALUStation(\"Div2\"); alu_rsTomasulo[7] = new ALUStation(\"Div3\");\n\t\t\t */\n\n\t\t\t// array contain of number of load andstore units\n\t\t\tMemReservationTomasulo = new MemStation[TomNumLoad + TomNumStore];\n\t\t\tfor (int i = 0; i < TomNumLoad; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Load\" + (i + 1));\n\n\t\t\t}\n\t\t\tfor (int i = TomNumLoad; i < TomNumLoad + TomNumStore; i++) {\n\t\t\t\tMemReservationTomasulo[i] = new MemStation(\"Store\" + (i - TomNumLoad + 1));\n\n\t\t\t}\n\t\t\t// MemReservationTomasulo[0] = new MemStation(\"Load1\");\n\t\t\t// MemReservationTomasulo[1] = new MemStation(\"Load2\");\n\t\t\t// MemReservationTomasulo[2] = new MemStation(\"Store1\");\n\t\t\t// MemReservationTomasulo[3] = new MemStation(\"Store2\");\n\n\t\t} catch (InvalidFileFormatException e) {\n\t\t\tSystem.out.println(\"Invalid file format.\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem reading file.\");\n\t\t}\n\n\t\t// Mapping of aliases to Registers\n\t\talias_to_registerTomasulo = new HashMap<String, String>();\n\n\t\t// Initalize the Memory Buffer\n\t\tMemoryBufferTomasulo = new HashMap<String, Integer>();\n\n\t\tCurrentInstTomasulo = 1;\n\n\t}", "@Before\r\n\tpublic void setup()\r\n\t{\n\t\tgame = factory.makeHantoGame(HantoGameID.EPSILON_HANTO, BLUE);\r\n\t}", "public void buildSchedule() {\n class SimulationStep extends BasicAction {\n public void execute() {\n SimUtilities.shuffle(rabbitList);\n for (int i = 0; i < rabbitList.size(); i++) {\n RabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n rabbit.step();\n }\n\n reapDeadRabbits();\n\n displaySurf.updateDisplay();\n }\n }\n schedule.scheduleActionBeginning(0, new SimulationStep());\n\n class GrassGrowth extends BasicAction {\n public void execute() {\n space.spreadGrass(grassGrowthRate);\n }\n }\n schedule.scheduleActionBeginning(0, new GrassGrowth());\n\n class UpdatePopulationPlot extends BasicAction {\n public void execute() {\n populationPlot.step();\n }\n }\n schedule.scheduleActionAtInterval(5, new UpdatePopulationPlot());\n }", "public void setup(){\r\n\t\t\r\n\r\n\t\tsuper.setup();\r\n\t\t\r\n\t\tparams = new String[] {\"numLocations\",\"numFirms\",\"timeHorizon\",\"enteringCosts\",\r\n\t\t\t\t \"reservationPrice\", \"productDifferentiation\",\r\n\t\t\t\t \"adjustEnteringCosts\",\r\n\t\t\t\t \"sdNoiseImitationKnowledge\",\r\n\t\t\t\t \"sdNoiseImitationConcept\",\r\n\t\t\t\t \"sigma\",\"discontFactor\",\"initialInnoEff\",\"fractionEffectivityImitators\",\r\n\t\t\t\t \"initialImiEff\",\"exitingCosts\",\"fractionEffectivityInnovators\",\r\n\t\t\t\t \"locationCosts\",\"isolatedLocation\", \"maxQualityConceptProgress\",\"heterogeneityMode\",\"randomAllocation\", \"numMontecarloRuns\",\r\n\t\t\t\t \"maxQualityConceptProgress\",\"rateLocationDecision\", \"marketEntryCosts\",\r\n\t\t\t\t \"marketEntryHazardRate\", \"parTimeToMarket\",\"ModelModeTimeToMarket\",\"scrapValueParameterInno\",\"scrapValueParameterImi\",\"strategyParameter\",\"targetNumFirms\"};\r\n\r\n\t\r\n\r\n\t\t\r\n\t\tif(graphOutput!=null)\r\n\t\t\tgraphOutput.dispose();\r\n\t\t\r\n\t\tif(graphPrice!=null)\r\n\t\t\tgraphPrice.dispose();\r\n\t\t\r\n\t\tif(graphQuality!=null)\r\n\t\t\tgraphQuality.dispose();\r\n\t\tif(graphNumFirms!=null)\r\n\t\t\tgraphNumFirms.dispose();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tif(graphFirmLocations!=null)\r\n\t\t\tgraphFirmLocations.dispose();\r\n\t\t\r\n\t\tif(graphEnteringCosts!=null)\r\n\t\t\tgraphEnteringCosts.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphAverageProbability!=null)\r\n\t\t\tgraphAverageProbability.dispose();\r\n\t\t\r\n\t\tif(graphTotalProfit!=null)\r\n\t\t\tgraphTotalProfit.dispose();\r\n\t\t\r\n\t\tif(graphClusteringCoefficient!=null)\r\n\t\t\tgraphClusteringCoefficient.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphSingleOutput!=null)\r\n\t\tgraphSingleOutput.dispose();\r\n\t\t\r\n\t\tif(graphSinglePrice!=null)\r\n\t\tgraphSinglePrice.dispose(); \r\n\t\t\r\n\t\tif(graphSingleQuality!=null)\r\n\t\tgraphSingleQuality.dispose(); \r\n\t\t\r\n\t\tif(graphSingleFirmLocations!=null)\r\n\t\tgraphSingleFirmLocations.dispose();\r\n\t\t\r\n\t\tif(graphSingleProbability!=null)\r\n\t\t graphSingleProbability.dispose(); \r\n\t\t\r\n\t\tif(graphSinglelProfit!=null)\r\n\t\tgraphSinglelProfit.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphSingleQualityConcept!=null)\r\n\t\t\tgraphSingleQualityConcept.dispose();\r\n\t\t\r\n\t\t\r\n\t\tif(graphCumProfit!=null)\r\n\t\t\tgraphCumProfit.dispose();\r\n\t\t\r\n\t\t\r\n\t \r\n\t if(dsurfList!=null){\r\n\t\t for(int i=0; i<dsurfList.size();i++){\r\n\t\t \t\t\r\n\t\t \t\tdsurfList.get(i).dispose();\r\n\t\t \r\n\t\t }\r\n\t}\r\n\t \r\n\t gridList = null;\r\n\t dsurfList = null;\r\n\t \r\n\t gridList = new ArrayList<Object2DGrid>() ;\r\n\t dsurfList\t= new\tArrayList<DisplaySurface>() ;\r\n\t \r\n\t \r\n\t dimX = ((int) Math.sqrt(numFirms))+5;\r\n\t dimY=dimX;\r\n\t \r\n\t \r\n\t \r\n\t if (surface != null)\r\n\t surface.dispose ();\r\n\t surface = null;\r\n\t \r\n\t surface = new DisplaySurface (this, \"Firm network\");\r\n\t registerDisplaySurface (\"Firm network\", surface);\r\n\t\t\r\n\t\t\r\n\t}", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\t\n\t\t\tif (name.equals(\"Action\"))\n\t\t\t\tp_Action = para[i].getParameterAsString();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t\tp_Hospitalization_ID=getRecord_ID();\n\t}", "public void prepare() {\n long millis, nanos;\n TestCaseImpl tc = _testCase;\n \n nanos = Util.currentTimeNanos();\n prepare(tc);\n nanos = Util.currentTimeNanos() - nanos;\n tc.setDoubleParam(Constants.ACTUAL_PREPARE_TIME, \n Util.nanosToMillis(nanos));\n }", "@BeforeEach\n void setup()\n {\n createGraph( \"A1 NEXT A2\", \"A2 NEXT A3\",\n \"A1 FIRST_COMMENT C1\", \"C1 COMMENT C2\", \"C2 COMMENT C3\",\n \"A2 FIRST_COMMENT C4\", \"C4 COMMENT C5\", \"C5 COMMENT C6\",\n \"A3 FIRST_COMMENT C7\", \"C7 COMMENT C8\", \"C8 COMMENT C9\" );\n }", "private void setUpTalon(TalonSRX talon) {\n\t\ttalon.clearMotionProfileTrajectories();\n\t\ttalon.changeMotionControlFramePeriod(5);\n\t\ttalon.clearMotionProfileHasUnderrun(10);\n\t}", "public void setup() \n { \n \tsize(400,400);\n \tbac = new Bacteria[15];\n \tfor (int i = 0; i<bac.length; i++)\n \t{\n \t\tbac[i]= new Bacteria(200,200);\n \t\tbac[i].c();\n \t} //initialize bacteria variables here \n }", "public void prepare(){\n\n\t\t/* For every cell in the cell space */\n\t\tfor (int i=0;i<GlobalAttributes.xCells;i++){\n\t\t\tfor(int j=0;j<GlobalAttributes.yCells;j++){\n\n\t\t\t\t/* Set the cell state to the starting configuration */\n\t\t\t\tgrid[i][j].topSubcellValue=source[i][j].topSubcellValue;\n\t\t\t\tgrid[i][j].bottomSubcellValue=source[i][j].bottomSubcellValue;\n\t\t\t\tgrid[i][j].leftSubcellValue=source[i][j].leftSubcellValue;\n\t\t\t\tgrid[i][j].rightSubcellValue=source[i][j].rightSubcellValue;\n\n\t\t\t\t/* Set the \"current\" difference matrix value to\n\t\t\t\t * the value in the fixed initial matrix */\n\t\t\t\tdifferent[i][j]=fixeddifferent[i][j];\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\t/* Reset the differences counter to the fixed version */\n\t\tdifferences=fixeddifferences;\n\t}", "@Setup\n public void setup() {\n randomInput = new RandomComplexGenerator(inputLength).randomInputs();\n }", "protected void setup() {\n\t\tDFAgentDescription dfd = new DFAgentDescription();\n\t\tdfd.setName(getAID());\n\t\tServiceDescription sd = new ServiceDescription();\n\t\tsd.setType(\"paciente\");\n\t\tsd.setName(getName());\n\t\tdfd.addServices(sd);\n\t\ttry {\n\t\t\tDFService.register(this, dfd);\n\t\t} catch (FIPAException fe) {\n\t\t\tfe.printStackTrace();\n\t\t}\n\t\t\n\t\t// atualiza lista de monitores e atuadores\n\t\taddBehaviour(new UpdateAgentsTempBehaviour(this, INTERVALO_AGENTES));\n\t\t\n\t\t// ouve requisicoes dos atuadores e monitores\n\t\taddBehaviour(new ListenBehaviour());\n\t\t\n\t\t// adiciona comportamento de mudanca de temperatura\n\t\taddBehaviour(new UpdateTemperatureBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de hemoglobina\t\t\n\t\taddBehaviour(new UpdateHemoglobinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t\t// adiciona comportamento de mudanca de bilirrubina\n\t\taddBehaviour(new UpdateBilirrubinaBehaviour(this, INTERVALO_ATUALIZACAO));\n\n\t\t// adiciona comportamento de mudanca de pressao\t\t\n\t\taddBehaviour(new UpdatePressaoBehaviour(this, INTERVALO_ATUALIZACAO));\n\t\t\n\t}", "public void init() {\r\n\r\n\t\t// dater collectors\r\n\t\t//trucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\t//trucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksArrived = new TimeSeries(this, \"arrived\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\ttrucksServiced = new TimeSeries(this, \"finished\", new TimeInstant(0), new TimeInstant(1500), true, false);\r\n\t\twaitTimeHistogram = new Histogram(this, \"Truck Wait Times\", 0, 16, 10, true, false);\r\n\r\n\t\t// distributions DEFAULT\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.0, 7.0, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 3.0, true, false);\r\n\r\n\t\t// distributions PROBLEM DESCRIPTION\r\n\t\t// serviceTime = new ContDistUniform(this, \"ServiceTimeStream\", 3.5,6.5, true, false);\r\n\t\t// truckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\t\tserviceTime = new ContDistExponential(this, \"ServiceTimeStream\", 4.0, true, false);\r\n\t\ttruckArrivalTime = new ContDistExponential(this, \"TruckArrivalTimeStream\", 2.0, true, false);\r\n\r\n\t\t// queues\r\n\t\ttruckQueue = new ProcessQueue<Truck>(this, \"Truck Queue\", true, false);\r\n\t\tidleVCQueue = new ProcessQueue<VC>(this, \"idle VC Queue\", true, false);\r\n\t}", "public void baiscSetting(){\n generations_ = 0;\n maxGenerations_ = ((Integer) this.getInputParameter(\"maxGenerations\")).intValue();\n populationSize_ = ((Integer) this.getInputParameter(\"populationSize\")).intValue();\n mutation_ = operators_.get(\"mutation\");\n crossover_ = operators_.get(\"crossover\");\n selection_ = operators_.get(\"selection\");\n learning_ = operators_.get(\"learning\");\n\n }", "protected void setup() {\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.setName(getAID());\n ServiceDescription sd = new ServiceDescription();\n sd.setName(\"Storage Agent\");\n sd.setType(\"Storage\");\n dfd.addServices(sd);\n try {\n DFService.register(this, dfd);\n } catch (FIPAException fe) {\n fe.printStackTrace();\n }\n waitForAgents = new waitAgents();\n receiveAgents = new receiveFromAgents();\n operate = new opMicrogrid();\n decision = new takeDecision();\n\n addBehaviour(waitForAgents);\n\n //add a ticker behavior to monitor PV production, disable PLay button in the meanwhile\n addBehaviour(new TickerBehaviour(this, 5000) {\n protected void onTick() {\n if (AgentsUp == 0) {\n appletVal.playButton.setEnabled(false);\n ACLMessage msg = new ACLMessage(ACLMessage.INFORM);\n msg.addReceiver(new AID(AgentAIDs[2].getLocalName(), AID.ISLOCALNAME));\n msg.setContent(\"Inform!!!\");\n send(msg);\n String stripedValue = \"\";\n msg = receive();\n if (msg != null) {\n // Message received. Process it\n String val = msg.getContent().toString();\n stripedValue = (val.replaceAll(\"[\\\\s+a-zA-Z :]\", \"\"));\n //PV\n if (val.contains(\"PV\")) {\n System.out.println(val);\n PV = Double.parseDouble(stripedValue);\n appletVal.playButton.setEnabled(true);\n appletVal.SetAgentData(PV, 0, 2);\n }\n\n } else {\n block();\n }\n\n }\n }\n });\n\n }", "public void prepareImagenes(){\n\t\tpreparePersonajes();\n\t\tprepareSorpresas();\n\t\tprepareObjetivos();\n\t\tprepareBloque();\n\t\t\n\t}", "public void prepare()\n\t{\n\t\tsuper.prepare();\n\t}", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "public TankSimulation() {\n\t\tthis.initialHealth = 1;\n\t\tthis.projectileRange = 40;\n\t\tthis.initialObstacles = 0;\n\t\tgameType = GameType.TANK_SIMULATION;\n\t\tprojectiles = new ArrayList<Projectile>();\n\t\tinitVariables();\n\t}", "@Before\n\tpublic void prepare() {\n\t\tbomb = new Special(SpecialType.NUKE);\n\t\tcom = new Commander(0, 0, 0, 1);\n\t\tbaseHP = com.getHealth();\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 Simulation() {\n\t\tstation = new Station();\n\t\ttaxis = new Taxi[NR_OF_TAXIS];\n\t\tfor (int i = 0; i < NR_OF_TAXIS; i++) {\n\t\t\ttaxis[i] = i < NR_OF_SMALL_TAXIS ? new Taxi(i + 1, CAPACITY_SMALL, TIME_SMALL, station)\n\t\t\t\t\t: new Taxi(i + 1, CAPACITY_LARGE, TIME_LARGE, station);\n\t\t}\n\t\ttrain = new Train(station);\n\t}", "public void prepare()\n\t{\n\t\tSystem.out.println(getClass().getName()+\" is preparing to go outside.\");\n\t}", "public void prepare() {\r\n\t\tmyPreviousBet = 0;\r\n\t\tmyCurrentBet = 0;\r\n\t\tstage = 0;\r\n\t\tposition = -1;\r\n\t\tintel.reset();\r\n\t\tfor (int i = 0; i < boards.length; i++)\r\n\t\t\tboards[i] = \"UNKNOWN\";\r\n\t}", "public void setStartConditions() {\r\n\t\tplayer1.relocate(0, 0);\r\n\t\tgamemap.setPlayerLocation(1, 1);\r\n\t\tgamemap.setEnemyLocation(20, 10);\r\n\t\tenemy1.relocate(19*46, 9*85);\r\n\t\tportal1.relocate(9*46, 9*85);\r\n\t\tportal2.relocate(9*46, 0*85);\r\n\t\tspikes1.relocate(5*46,0*85);\r\n\t\tspikes2.relocate(5*46,1*85);\r\n\t\tspikes3.relocate(5*46,2*85);\r\n\t\tspikes4.relocate(5*46,7*85);\r\n\t\tspikes5.relocate(5*46,8*85);\r\n\t\tspikes6.relocate(5*46,9*85);\r\n\t\tspikes7.relocate(10*46,2*85);\r\n\t\tspikes8.relocate(10*46,3*85);\r\n\t\tspikes9.relocate(10*46,4*85);\r\n\t\tspikes10.relocate(10*46,5*85);\r\n\t\tspikes11.relocate(10*46,6*85);\r\n\t\tspikes12.relocate(10*46,7*85);\r\n\t\tspikes13.relocate(15*46,0*85);\r\n\t\tspikes14.relocate(15*46,1*85);\r\n\t\tspikes15.relocate(15*46,2*85);\r\n\t\tspikes16.relocate(15*46,7*85);\r\n\t\tspikes16.relocate(15*46,8*85);\r\n\t\tspikes17.relocate(15*46,9*85);\r\n\t\tRandom randomObj = new Random();\r\n\t\tint randomX = randomObj.nextInt(20);\r\n\t\tint randomY = randomObj.nextInt(10);\r\n\t\tcoins1.relocate(randomX*46, randomY*85);\r\n\t\tgamemap.setLootLocation(randomX + 1, randomY + 1);\r\n\t\t//coins1.relocate(10*46,5*85);\r\n\t\t//gamemap.setLootLocation(11, 6);\r\n\t}", "public void initializeAgentsPositions(int seed) {\r\n //THE NEXT LINE MEANS THAT ALL INDIVIDUALS WILL BE EVALUATED WITH THE SAME\r\n //ENVIRONEMNT STARTING POSITIONS.\r\n //reset cells\r\n prey.setCell(null);\r\n for (Predator predator : predators) {\r\n predator.setCell(null);\r\n }\r\n prey.setCell(getCell(GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length)));\r\n for (Predator predator : predators) {\r\n do {\r\n Cell cell = getCell(\r\n GeneticAlgorithm.random.nextInt(grid.length), GeneticAlgorithm.random.nextInt(grid.length));\r\n if (!cell.hasAgent()) {\r\n predator.setCell(cell);\r\n }\r\n } while (predator.getCell() == null);\r\n } \r\n }", "public void initActivities() {\n a = (Receive) flow.getNode(\"A\");\n b = (Receive) flow.getNode(\"B\");\n c = (Receive) flow.getNode(\"C\");\n x = (Receive) flow.getNode(\"X\");\n y = (Receive) flow.getNode(\"Y\");\n }", "@Before\n public void setUp() {\n // Creamos la instancia de la clase\n this.sinap = new Sinap();\n\n // Creamos el área de prueba 1\n this.testArea = new Area(\"test nombre\", \"test name\", \"test ubicacion\",\n \"test area\", \"test description\");\n\n // Creamos el área de prueba 2\n this.testArea2 = new Area(\"test\", \"test\", \"test\",\n \"test\", \"test\");\n\n // Agregamos las áreas de prueba a SINAP\n try {\n this.sinap.adicioneDetalles(this.testArea);\n this.sinap.adicioneDetalles(this.testArea2);\n } catch(SINAPExcepcion e) {}\n }", "private void prepare()\n {\n\n MapButton mapButton = new MapButton(which);\n addObject(mapButton,58,57);\n Note note = new Note();\n addObject(note,1200,400);\n\n DropDownSuspects dropDownSuspects = new DropDownSuspects();\n addObject(dropDownSuspects,150,150);\n\n DropDownClues dropDownClues = new DropDownClues();\n addObject(dropDownClues,330,150);\n\n TestimonyFrame testimonyFrame = new TestimonyFrame();\n addObject(testimonyFrame,506,548);\n }", "private void setup() {\n Collections.sort(samples);\n this.pos = 0;\n }", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "@Override\r\n\tpublic void setup(Topology topology, TaskDistribution td, Agent agent) {\r\n\t\tSystem.out.println(\"Seting up...\");\r\n\t\t// Reads the discount factor from the agents.xml file.\r\n\t\t// If the property is not present it defaults to 0.95\r\n\t\tthis.discount = agent.readProperty(\"discount-factor\", \r\n\t\t\t\t\t\t\t\t\t\t\tDouble.class,\r\n\t\t\t\t\t\t\t\t\t\t\t0.95);\r\n\t\tthis.epsilon = 0.001;\r\n\t\tthis.numActions = 0;\r\n\t\tthis.myAgent = agent;\r\n\t\tthis.topology = topology;\r\n\t\tthis.td = td;\r\n\t\t\r\n\t\tRouteState.initializeStates(this.topology.cities());\r\n\t\tRouteAction.initializeActions(this.topology.cities());\r\n\t\t\r\n\t\tthis.Q = Tables.initializeQ();\r\n\t\tthis.V = Tables.initializeV();\r\n\t\tthis.R = Tables.initializeR(this.myAgent, this.td);\r\n\r\n\t\tSystem.out.println(\"Start RLA...\");\r\n\t\trla();\r\n\t}", "public void prepare()\n {\n // First, we assign the payload a new UUID if it does not already have one\n if(getId() == null)\n setId(UUID.randomUUID());\n \n // Set the submission date to now\n setSubmissionDate(new Date());\n }", "private void generarAno() {\r\n\t\tthis.ano = ANOS[(int) (Math.random() * ANOS.length)];\r\n\t}", "@Override\n\tprotected void setup() {\n\t\tObject[] args = getArguments();\n\t\tif (args == null || args.length == 0 || !(args[0] instanceof AntConfig)) {\n\t\t\tLOG.error(\"no agent config found\");\n\t\t\tdoDelete();\n\t\t\treturn;\n\t\t}\n\t\tAntConfig config = (AntConfig) args[0];\n\t\tmsgUtil = config.getMessageUtil();\n\t\tlisteners = config.getListeners();\n\t\tString service = config.getService();\n\n\t\t// login\n\t\tDFAgentDescription[] results = findService(service, service);\n\t\tif (results == null || results.length == 0) {\n\t\t\tLOG.error(\"game service {} not found\", service);\n\t\t\tdoDelete();\n\t\t\treturn;\n\t\t}\n\t\tif (results.length > 1) {\n\t\t\tLOG.warn(\"more than once instance of service {}:{} found, defaulting to first occurrence\", service,\n\t\t\t\t\tservice);\n\t\t}\n\t\tAID antWorld = results[0].getName();\n\t\tsendLogin(antWorld);\n\t\tLOG.info(\"login message sent: {}\", getLocalName());\n\n\t\t// add behaviour for NOT_UNDERSTOOD message from antworld\n\t\tMessageTemplate mtAWNotUnderstood = MessageTemplate.and(MessageTemplate.MatchSender(antWorld),\n\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.NOT_UNDERSTOOD));\n\t\taddBehaviour(new ReceiveMessageBehaviour(mtAWNotUnderstood, this::onAWNotUnderstood));\n\n\t\t// add behaviour for INFORM message from antworld\n\t\tMessageTemplate mtAWInform = MessageTemplate.and(MessageTemplate.MatchSender(antWorld),\n\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.INFORM));\n\t\taddBehaviour(new ReceiveMessageBehaviour(mtAWInform, this::onAWInform));\n\n\t\t// add behaviour for REFUSE messag from antworld\n\t\tMessageTemplate mtAWRefuse = MessageTemplate.and(MessageTemplate.MatchSender(antWorld),\n\t\t\t\tMessageTemplate.MatchPerformative(ACLMessage.REFUSE));\n\t\taddBehaviour(new ReceiveMessageBehaviour(mtAWRefuse, this::onAWRefuse));\n\n\t\t// add behaviour for any other message\n\t\tMessageTemplate mtOther = MessageTemplate\n\t\t\t\t.not(MessageTemplate.or(mtAWNotUnderstood, MessageTemplate.or(mtAWInform, mtAWRefuse)));\n\t\taddBehaviour(new ReceiveMessageBehaviour(mtOther, this::onUnknownMessage));\n\n\t\t// add behaviour to decide and send the next action\n\t\taddBehaviour(new CyclicBehaviour(this) {\n\t\t\tprivate static final long serialVersionUID = -4875267971659894785L;\n\n\t\t\t@Override\n\t\t\tpublic void action() {\n\t\t\t\tdecideNextAction();\n\t\t\t}\n\t\t});\n\t}", "public void setup(){\r\n\r\n\t\t\tlogger.info(\"begin setting up the patches\");\r\n\r\n\t\t\t//Initialize the patches in the world.\r\n\t\t\tpatches = new Patch[numOfPathes][numOfPathes];\r\n\t\t\tfor(int i = 0; i < patches.length; i ++){\r\n\t\t\t\tfor(int j = 0; j < patches[i].length; j ++){\r\n\t\t\t\t\tpatches[i][j] = new Patch(i,j);\r\n\t\t\t\t\t//logger.info(\"generated x = \" + i + \"y = \" + j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"begin setting up the agents\");\r\n\r\n\t\t\t//Generate agents and cops.\r\n\t\t\tagents = new Agent[numOfAgents];\r\n\t\t\tfor(int k = 0; k < numOfAgents; k ++){\r\n\t\t\t\tagents[k] = generateAgent();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the agents\");\r\n\r\n\t\t\tlogger.info(\"begin setting up the cops\");\r\n\t\t\tcops = new Cop[numOfCops];\r\n\t\t\tfor(int k = 0; k < numOfCops; k ++){\r\n\t\t\t\tcops[k] = generateCop();\r\n\t\t\t}\r\n\r\n\t\t\tlogger.info(\"finished setting up the cops\");\r\n\r\n\t\t}", "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 }", "public void prepareForEnumeration() {\n if (isPreparer()) {\n for (NodeT node : nodeTable.values()) {\n // Prepare each node for traversal\n node.initialize();\n if (!this.isRootNode(node)) {\n // Mark other sub-DAGs as non-preparer\n node.setPreparer(false);\n }\n }\n initializeDependentKeys();\n initializeQueue();\n }\n }", "protected void setup() {\n /**\n * Content manager manages the content languages and ontologies \"known\" by a given agent.\n * We register new languages that is required that our agent knows.\n * SLCodec is the codec class for the FIPA-SLn languages.\n * MobilityOntology is the class that represents the ontology used for JADE mobility.\n */\n getContentManager().registerLanguage(new SLCodec());\n getContentManager().registerOntology(MobilityOntology.getInstance());\n\n /**\n * Create containers. ProfileImpl allows us to set boot-parameters for the new containers.\n */\n homeContainer = getContainerController(); //retrieve the containercontroller that this agent lives in\n createdContainers = new AgentContainer[3]; //we require 3 containers for this scenario\n ProfileImpl curatorContainer1 = new ProfileImpl();\n curatorContainer1.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-1\");\n ProfileImpl curatorContainer2 = new ProfileImpl();\n curatorContainer2.setParameter(ProfileImpl.CONTAINER_NAME, \"Curator-Container-2\");\n ProfileImpl artistManagerContainer = new ProfileImpl();\n artistManagerContainer.setParameter(ProfileImpl.CONTAINER_NAME, \"Artistmanager-Container\");\n createdContainers[0] = runtime.createAgentContainer(curatorContainer1);\n createdContainers[1] = runtime.createAgentContainer(curatorContainer2);\n createdContainers[2] = runtime.createAgentContainer(artistManagerContainer);\n doWait(2000); //wait while containers initializes\n\n /**\n * Request a list of all containers on the platform from AMS\n */\n getAllContainers();\n\n /**\n * Initialize gui\n */\n\n myGui = new ControllerAgentGUI(this, (String[]) containersOnPlatform.keySet().toArray(new String[containersOnPlatform.keySet().size()]));\n myGui.setVisible(true);\n }", "private void buildSchedule() {\n\t\tclass RabbitsGrassSimulationStep extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\tSimUtilities.shuffle(rabbitList);\n\t\t\t\tfor (int i = 0; i < rabbitList.size(); i++) {\n\t\t\t\t\tRabbitsGrassSimulationAgent rabbit = rabbitList.get(i);\n\t\t\t\t\trabbit.step();\n\t\t\t\t}\n\n\t\t\t\treapDeadRabbits();\n\t\t\t\tgiveBirthToRabbits();\n\n\t\t\t\trabbitSpace.spreadGrass(growthRateGrass);\n\n\t\t\t\tdisplaySurf.updateDisplay();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionBeginning(0, new RabbitsGrassSimulationStep());\n\n\t\tclass UpdateNumberOfRabbitsInSpace extends BasicAction {\n\t\t\tpublic void execute() {\n\t\t\t\trabbitsAndGrassInSpace.step();\n\t\t\t}\n\t\t}\n\n\t\tschedule.scheduleActionAtInterval(1, new UpdateNumberOfRabbitsInSpace());\n\n\t}", "public void simulationSetup(SimulationEnvironment env) {\n synchronized (this) {\n netSnsMap = null;\n }\n }", "@BeforeAll\n public static void setUp() {\n\n unsolvedCourseSchedule = new RoomSchedule();\n\n \n // fixed periods I'm defining\n \tRoomPeriods fixedRoomPeriod1=new RoomPeriods(1, 1);\n \tfixedRoomPeriod1.setSessionName(\"Session Fixed 1\");\n \t\n \tRoomPeriods fixedRoomPeriod2=new RoomPeriods(1, 2);\n \tfixedRoomPeriod2.setSessionName(\"Session Fixed 2\");\n \t\n // I'm adding fixed periods to schedule, these are known fixed schedule items\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod1);\n \tunsolvedCourseSchedule.getLectureList().add(fixedRoomPeriod2); \n \n /* I'm adding 10 more schedule items which are [null,null] , I'm expecting optoplanner assign period and room numbers. \n * [ THEY ARE LINKED with annotations, @PlanningVariable,\t@ValueRangeProvider(id = \"availablePeriods\", @ProblemFactCollectionProperty]\n */\n for(int i = 0; i < 10; i++){ \t \t\n unsolvedCourseSchedule.getLectureList().add(new RoomPeriods()); \n }\n \n // \n unsolvedCourseSchedule.getPeriodList().addAll(Arrays.asList(new Integer[] { 1, 2, 3 }));\n unsolvedCourseSchedule.getRoomList().addAll(Arrays.asList(new Integer[] { 1, 2 }));\n }", "public void setup() {\n }", "protected void setup(){\n this.setEnabledO2ACommunication(true, 0);\n \n showMessage(\"Agent (\" + getLocalName() + \") .... [OK]\");\n \n // Register the agent to the DF\n ServiceDescription sd1 = new ServiceDescription();\n sd1.setType(UtilsAgents.BOAT_COORDINATOR);\n sd1.setName(getLocalName());\n sd1.setOwnership(UtilsAgents.OWNER);\n DFAgentDescription dfd = new DFAgentDescription();\n dfd.addServices(sd1);\n dfd.setName(getAID());\n try {\n DFService.register(this, dfd);\n showMessage(\"Registered to the DF\");\n }catch (FIPAException e) {\n System.err.println(getLocalName() + \" registration with DF \" + \"unsucceeded. Reason: \" + e.getMessage());\n doDelete();\n }\n \n //Search for the CentralAgent\n ServiceDescription searchBoatCoordCriteria = new ServiceDescription();\n searchBoatCoordCriteria.setType(UtilsAgents.COORDINATOR_AGENT);\n this.coordinatorAgent = UtilsAgents.searchAgent(this, searchBoatCoordCriteria);\n\n // Register response behaviours\n //TODO canviar i posar l'altra content\n MessageTemplate mt = MessageTemplate.MatchContent(\"Movement request\");\n this.addBehaviour(new RequestResponseBehaviour(this,mt ));\n }", "public void init(int wdt, int hgt, Player player, List<Guard> guards, List<Item> treasures, int wdtPortail, int hgtPortail);", "protected void preRun() {\r\n\t\tthis.preparePairs();\r\n\t}", "private void setTEMiosFromConfig(){\n\t\t\n\t\t//model I/O options\n\t\tTEM.runcht.califilein = config.califilein; //switch to read-in calibrated parameters from Jcalinput.txt\t\t\t\n\t\tTEM.runcht.califile = config.califile;\n\t\t\n\t\tTEM.runcht.usecalirestart = config.ccdfilein; //switch to read-in Env. driver for equilibrim-run from calirestart.nc \n\t\tTEM.runcht.outcalirestart = false; //only valid if 'usecalirestart' above is set to false\n\t\tTEM.runcht.ccdfile = config.ccdfile;\n\t\t\n\t\tTEM.runcht.outmodes.OSITER = config.OSITE;\n\t\tTEM.runcht.outmodes.ODAY = config.OSDLY;\n\t\tTEM.runcht.outmodes.OMONTH = config.OSMLY;\n\t\tTEM.runcht.outmodes.OYEAR = config.OSYLY;\n\t\tTEM.runcht.outmodes.OREGNER = config.OREGN;\t\t\t\t\t\n\t\n\t\t//plotters when NO output file\n\t\tTEM.runcht.GUIgraphic = config.OGRAPH;\n\t\tif (TEM.runcht.GUIgraphic) {\n\n\t\t\tbvplotter =new BioVariablePlotter();\t\t\t\n\t\t\tpvplotter =new PhyVariablePlotter();\n\t\t\t\n\t\t\tTEM.runcht.plotting.setPlotter(bvplotter);\n\t\t\tTEM.runcht.plotting.setPlotter2(pvplotter);\n\t\t\t\n\t\t\tif (config.OBGRAPH) {\n\t\t\t\tBioVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tBioVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t\tif (config.OPGRAPH) {\n\t\t\t\tPhyVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tPhyVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t}\n\n\t}", "public synchronized void moveAnts() {\r\n\t\tArrayList<Ant> deadAnts = new ArrayList<Ant>();// holds all ants killed during current loop\r\n\t\tArrayList<Integer> bornAnts = new ArrayList<Integer>();// holds all ants \r\n\t\tfor (int i = 0; i < ants.size(); i++) {// loops through all the ants\r\n\t\t\tint deadAnt = 999999;// determines whether an ant has died and holds the index\r\n\t\t\tint antBorn = 999999;// determines whether an ant has been born and holds the index\r\n\t\t\t\r\n\t\t\tAnt iAnt = (Ant) ants.get(i);// creates duplicate of each Spider, necessary for deletion purposes\r\n\t\t\t\r\n\t\t\tif (iAnt.getActions().isEmpty())// checks if the Ant has any current actions to complete\r\n\t\t\t\tiAnt.setActions(antFSM.get(iAnt).update());// if not, gets actions from FSM\r\n\t\t\t\r\n\t\t\tString action = iAnt.getActions().remove(0);// gets the first action in the list\r\n\t\t\t\r\n\t\t\tint newPosition = iAnt.getCurrent();// will hold the next position of the ant\r\n\t\t\tboolean alive = true;// used to flag ant deaths\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(false);// sets the found food trigger to false\r\n\t\t\t\r\n\t\t\tswitch(action) {// switch handles the different actions registered by the FSM\r\n\t\t\t\tcase (\"Died\"):\t\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// sets the node image to terrain\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets the node occupant to terrain\r\n\t\t\t\t\talive = false;// flags the ant as dead\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForFood\"):\t\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position through wander method\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// sets current node image as previous occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates the ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// sets the new node image as the ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"food\")) {// checks if food has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(true);// updates foundFood trigger\r\n\t\t\t\t\t}// if (food)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"PickupFood\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// sets node image to ant with food\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"EnterAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"InAntHill\"):\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antHill);// updates node image to ant hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"LeaveAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForHome\"):\t\r\n\t\t\t\t\tnewPosition = getAStar(iAnt);// gets new position from A*\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node image to current occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// updates new node image to ant with food\r\n\t\t\t\t\tif (iAnt.getHome() == newPosition) {// if home has been found\r\n\t\t\t\t\t\tantBorn = iAnt.getHome();// gets node for new ant\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(true);// sets found home trigger to true\r\n\t\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// sets new node image to ant in hill\r\n\t\t\t\t\t}// if (home)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForWater\"):\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position from wander\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node to previous occupant image\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// updates new node image to ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"water\")) {// checks if water has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(true);// sets found water trigger to true\r\n\t\t\t\t\t}// if (water)\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"DrinkWater\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInWater);// updates node image to ant in water\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tdefault:\t\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t}// switch(action)\r\n\t\t\t\r\n\t\t\tif (nodes[newPosition].getOccupant().equals(\"poison\")) {// checks if ant steps in poison\r\n\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// updates the node image to terrain\r\n\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates the node occupant to terrain\r\n\t\t\t\talive = false;// flags that ant was killed\r\n\t\t\t\tdeadAnt = i;// gets number of ant killed\r\n\t\t\t}// if (poison)\r\n\t\t\t\r\n\t\t\tif (alive) {// checks if ant is alive\r\n\t\t\t\tif (ants.get(i).getCurrent() == ants.get(i).getHome() && !action.equals(\"EnterAntHill\") && !action.equals(\"LeaveAntHill\") && !action.equals(\"SearchForHome\"))// checks if ant hill image needs to be added\r\n\t\t\t\t\tnodes[ants.get(i).getCurrent()].setImage(new ImageIcon(\"antHill.png\").getImage());//sets image to ant hill\r\n\t\t\t}// if (alive)\r\n\t\t\t\r\n\t\t\tif (deadAnt != 999999) {// checks if current ant was killed\r\n\t\t\t\tdeadAnts.add(iAnt);// adds number of ant killed\r\n\t\t\t}// if (ant died)\r\n\t\t\t\r\n\t\t\tif (antBorn != 999999) {// check if an ant was born\r\n\t\t\t\tbornAnts.add(antBorn);// adds number of ant born\r\n\t\t\t}// if (ant born)\r\n\t\t}// for (ants)\r\n\t\t\r\n\t\tfor (Ant ant : deadAnts)// loops through all ants killed in current game loop\r\n\t\t\tants.remove(ant);// removes ants killed during game loop\r\n\t\t\r\n\t\tfor (Integer node : bornAnts)// loops through all ant born in current game loop\r\n\t\t\taddAnt(node, node);// adds ants born during game loop\r\n\t}", "private void prepare()\n {\n addObject(new TempoLimite(), 432, 207);\n addObject(new NumeroVidas(), 395, 278);\n\n Cliqueparajogar clique = new Cliqueparajogar();\n addObject(clique, getWidth()/2, getHeight()/2);\n\n Som som = new Som();\n addObject(som, getWidth() - 37, getHeight()-57);\n \n umMin ummin = new umMin();\n addObject(ummin,630,206);\n\n doisMin doismin = new doisMin();\n addObject(doismin,670,206);\n \n tresMin tresmin = new tresMin();\n addObject(tresmin,710,206);\n \n quatroMin quatromin = new quatroMin();\n addObject(quatromin,750,206);\n \n cincoMin cincomin = new cincoMin();\n addObject(cincomin,790,206);\n \n umaVida umavida = new umaVida();\n addObject(umavida,630,280);\n \n duasVidas duasvidas = new duasVidas();\n addObject(duasvidas,670,280);\n \n tresVidas tresvidas = new tresVidas();\n addObject(tresvidas,710,280);\n \n quatroVidas quatrovidas = new quatroVidas();\n addObject(quatrovidas,750,280);\n \n cincoVidas cincovidas = new cincoVidas();\n addObject(cincovidas,790,280);\n \n voltaratras voltar = new voltaratras();\n addObject(voltar, getWidth() -37, 428);\n }", "public void setAnts() throws AntFrameworkException {\n\t\tif (this.numberOfAnts <= 0) {\n\t\t\tthrow new AntFrameworkException(\"The number of ants cannot be less than or equal to zero (0)\");\n\t\t}\n\n\t\tthis.Ants = new Ant[this.numberOfAnts];\n\t\tfor (int i = 0; i < this.numberOfAnts; i++) {\n\t\t\tAnts[i] = new Ant(i, 0);\n\t\t}\n\n\t}", "@Before\r\n\tpublic void setUp() { timeslots = new ArrayList<Timeslot>(); timetable = new Timetable(); System.setOut(new PrintStream(outContent)); }", "public void prepare() {\n this.taskHandler.run(this::inlinePrepare);\n }", "private void prepare()\n {\n Block block = new Block(10);\n addObject(block,372,150);\n Wall wall = new Wall();\n addObject(wall,52,167);\n Wall wall2 = new Wall();\n addObject(wall2,160,167);\n Wall wall3 = new Wall();\n addObject(wall3,550,167);\n Wall wall4 = new Wall();\n addObject(wall4,650,167);\n Wall wall5 = new Wall();\n addObject(wall5,750,167);\n block.setLocation(306,171);\n Robot robot = new Robot();\n addObject(robot,48,51);\n Pizza pizza = new Pizza();\n addObject(pizza,550,60);\n Pizza pizza2 = new Pizza();\n addObject(pizza2,727,53);\n Pizza pizza3 = new Pizza();\n addObject(pizza3,364,303);\n Pizza pizza4 = new Pizza();\n addObject(pizza4,224,400);\n Pizza pizza5 = new Pizza();\n addObject(pizza5,622,395);\n ScorePanel scorePanel = new ScorePanel();\n addObject(scorePanel,106,525);\n Home home = new Home();\n addObject(home,717,521);\n\n block.setLocation(344,173);\n pizza3.setLocation(394,297);\n Pizza pizza6 = new Pizza();\n addObject(pizza6,711,265);\n Pizza pizza7 = new Pizza();\n addObject(pizza7,68,276);\n\n }", "protected void prepare()\n\t{\n\t\tProcessInfoParameter[] para = getParameter();\n\t\tfor (int i = 0; i < para.length; i++)\n\t\t{\n\t\t\tString name = para[i].getParameterName();\n\t\t\tif (name.equals(\"AD_Client_ID\"))\n\t\t\t\tm_AD_Client_ID = 1000000;\n\t\t\telse if (name.equals(\"AD_Org_ID\"))\n\t\t\t\tm_AD_Org_ID = 1000000;\n\t\t\telse if (name.equals(\"DeleteOldImported\"))\n\t\t\t;//\tm_deleteOldImported = \"Y\".equals(para[i].getParameter());\n\t\t\telse if (name.equals(\"DocAction\"))\n\t\t;//\t\tm_docAction = (String)para[i].getParameter();\n\t\t\telse\n\t\t\t\tlog.log(Level.SEVERE, \"Unknown Parameter: \" + name);\n\t\t}\n\t}" ]
[ "0.6035649", "0.6025622", "0.59247226", "0.59079695", "0.58852315", "0.5761255", "0.57338834", "0.57232624", "0.57180697", "0.5688748", "0.56858015", "0.5683521", "0.56647044", "0.5654096", "0.56530017", "0.56445384", "0.562185", "0.5601681", "0.55657136", "0.55501384", "0.5549167", "0.55180043", "0.55124664", "0.55025464", "0.5495626", "0.5465633", "0.5461682", "0.5450612", "0.5446084", "0.5445388", "0.54213", "0.54176617", "0.5408665", "0.5391461", "0.5367179", "0.53434193", "0.5331512", "0.53308433", "0.5317764", "0.53134656", "0.5301356", "0.5295", "0.52883965", "0.52795905", "0.5269682", "0.52601355", "0.5259106", "0.5254892", "0.5252076", "0.52461624", "0.5241211", "0.5238935", "0.5231342", "0.5231144", "0.5228899", "0.5220766", "0.52165806", "0.52110195", "0.5208923", "0.5205256", "0.52014166", "0.5197784", "0.5194373", "0.5191157", "0.51894337", "0.51892173", "0.5186144", "0.5165367", "0.51621974", "0.5159866", "0.5158645", "0.5144051", "0.51422906", "0.513728", "0.51348525", "0.512815", "0.5127231", "0.51250297", "0.5124995", "0.51240945", "0.5118591", "0.5118063", "0.51176965", "0.511268", "0.5110854", "0.51090676", "0.5107954", "0.51041734", "0.51002246", "0.5099676", "0.5080216", "0.5076166", "0.5073768", "0.50657904", "0.50649256", "0.50642896", "0.50549257", "0.50475824", "0.5046535", "0.5043126" ]
0.6485658
0
At each iteration, move ants
private void moveAnts() { IntStream.range(currentIndex, numberOfCities - 1) .forEach(i -> { ants.forEach(ant -> ant.visitCity(currentIndex, selectNextCity(ant))); currentIndex++; }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public void moveAll()\n\t{\n\t\tmoveOutput = \"\";\n\t\tfor (int i = 0; i < 20; i++)\n\t\t{\n\t\t\tif (river[i] != null)\n\t\t\t{\n\t\t\t\triver[i].move(i);\n\t\t\t}\n\t\t}\n\t}", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "public void move() {\r\n\t\tmoveCount++;\r\n\t}", "public void move() {\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t\tthis.swim();\r\n\t}", "public static void changePosition() {\n int direction;\n int speed;\n int newTopX;\n int newTopY;\n\n for (int i = 0; i < numShapes; ++i) {\n direction = moveDirection[i];\n speed = moveSpeed[i];\n newTopX = xTopLeft[i];\n newTopY = yTopLeft[i];\n\n //the switch uses the direction the speed should be applied to in order to find the new positions\n switch (direction) {\n case 0 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n }\n //upper left 135 degrees\n case 1 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 2 -> {\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n //upper right 45 degrees\n case 3 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY - (speed);\n yTopLeft[i] = newTopY;\n }\n case 4 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n }\n //bottom right 315 degrees\n case 5 -> {\n newTopX = newTopX + (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n case 6 -> {\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n //bottom left 225 degrees\n case 7 -> {\n newTopX = newTopX - (speed);\n xTopLeft[i] = newTopX;\n newTopY = newTopY + (speed);\n yTopLeft[i] = newTopY;\n }\n }\n }\n }", "void moveVehicles() {\n for (int i = roads.size() - 1; i >= 0; i--) {\n roads.get(i).moveVehicles();\n checkTurns(i);\n\n\n }\n\n }", "public synchronized void moveAnts() {\r\n\t\tArrayList<Ant> deadAnts = new ArrayList<Ant>();// holds all ants killed during current loop\r\n\t\tArrayList<Integer> bornAnts = new ArrayList<Integer>();// holds all ants \r\n\t\tfor (int i = 0; i < ants.size(); i++) {// loops through all the ants\r\n\t\t\tint deadAnt = 999999;// determines whether an ant has died and holds the index\r\n\t\t\tint antBorn = 999999;// determines whether an ant has been born and holds the index\r\n\t\t\t\r\n\t\t\tAnt iAnt = (Ant) ants.get(i);// creates duplicate of each Spider, necessary for deletion purposes\r\n\t\t\t\r\n\t\t\tif (iAnt.getActions().isEmpty())// checks if the Ant has any current actions to complete\r\n\t\t\t\tiAnt.setActions(antFSM.get(iAnt).update());// if not, gets actions from FSM\r\n\t\t\t\r\n\t\t\tString action = iAnt.getActions().remove(0);// gets the first action in the list\r\n\t\t\t\r\n\t\t\tint newPosition = iAnt.getCurrent();// will hold the next position of the ant\r\n\t\t\tboolean alive = true;// used to flag ant deaths\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(false);// sets the found food trigger to false\r\n\t\t\t\r\n\t\t\tswitch(action) {// switch handles the different actions registered by the FSM\r\n\t\t\t\tcase (\"Died\"):\t\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// sets the node image to terrain\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets the node occupant to terrain\r\n\t\t\t\t\talive = false;// flags the ant as dead\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForFood\"):\t\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position through wander method\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// sets current node image as previous occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates the ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// sets the new node image as the ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"food\")) {// checks if food has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(true);// updates foundFood trigger\r\n\t\t\t\t\t}// if (food)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"PickupFood\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// sets node image to ant with food\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"EnterAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"InAntHill\"):\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antHill);// updates node image to ant hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"LeaveAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForHome\"):\t\r\n\t\t\t\t\tnewPosition = getAStar(iAnt);// gets new position from A*\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node image to current occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// updates new node image to ant with food\r\n\t\t\t\t\tif (iAnt.getHome() == newPosition) {// if home has been found\r\n\t\t\t\t\t\tantBorn = iAnt.getHome();// gets node for new ant\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(true);// sets found home trigger to true\r\n\t\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// sets new node image to ant in hill\r\n\t\t\t\t\t}// if (home)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForWater\"):\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position from wander\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node to previous occupant image\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// updates new node image to ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"water\")) {// checks if water has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(true);// sets found water trigger to true\r\n\t\t\t\t\t}// if (water)\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"DrinkWater\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInWater);// updates node image to ant in water\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tdefault:\t\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t}// switch(action)\r\n\t\t\t\r\n\t\t\tif (nodes[newPosition].getOccupant().equals(\"poison\")) {// checks if ant steps in poison\r\n\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// updates the node image to terrain\r\n\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates the node occupant to terrain\r\n\t\t\t\talive = false;// flags that ant was killed\r\n\t\t\t\tdeadAnt = i;// gets number of ant killed\r\n\t\t\t}// if (poison)\r\n\t\t\t\r\n\t\t\tif (alive) {// checks if ant is alive\r\n\t\t\t\tif (ants.get(i).getCurrent() == ants.get(i).getHome() && !action.equals(\"EnterAntHill\") && !action.equals(\"LeaveAntHill\") && !action.equals(\"SearchForHome\"))// checks if ant hill image needs to be added\r\n\t\t\t\t\tnodes[ants.get(i).getCurrent()].setImage(new ImageIcon(\"antHill.png\").getImage());//sets image to ant hill\r\n\t\t\t}// if (alive)\r\n\t\t\t\r\n\t\t\tif (deadAnt != 999999) {// checks if current ant was killed\r\n\t\t\t\tdeadAnts.add(iAnt);// adds number of ant killed\r\n\t\t\t}// if (ant died)\r\n\t\t\t\r\n\t\t\tif (antBorn != 999999) {// check if an ant was born\r\n\t\t\t\tbornAnts.add(antBorn);// adds number of ant born\r\n\t\t\t}// if (ant born)\r\n\t\t}// for (ants)\r\n\t\t\r\n\t\tfor (Ant ant : deadAnts)// loops through all ants killed in current game loop\r\n\t\t\tants.remove(ant);// removes ants killed during game loop\r\n\t\t\r\n\t\tfor (Integer node : bornAnts)// loops through all ant born in current game loop\r\n\t\t\taddAnt(node, node);// adds ants born during game loop\r\n\t}", "public void move() {\n\n int move_position_x = 0;\n int move_postion_y = 0;\n Random random = new Random();\n do {\n\n move_position_x = 0;\n move_postion_y = 0;\n int direction = random.nextInt(6);\n switch (direction) {\n case 0:\n move_postion_y = -1;\n break;\n case 1:\n case 4:\n move_postion_y = 1;\n break;\n case 2:\n case 5:\n move_position_x = 1;\n break;\n case 3:\n move_position_x = -1;\n }\n } while ((this.positionX + move_position_x < 0) || (this.positionX + move_position_x >= size_of_map) || (\n this.positionY + move_postion_y < 0) || (this.positionY + move_postion_y >= size_of_map));\n this.positionX += move_position_x;\n this.positionY += move_postion_y;\n }", "public void move()\n\t{\n time++;\n\t\tif (time % 10 == 0)\n\t\t{\n\t\t\thistogramFrame.clearData();\n\t\t}\n\t\tfor (int i = 0; i < nwalkers; i++)\n\t\t{\n\t\t\tdouble r = random.nextDouble();\n\t\t\tif (r <= pRight)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] + 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft)\n\t\t\t{\n\t\t\t\txpositions[i] = xpositions[i] - 1;\n\t\t\t}\n\t\t\telse if (r < pRight + pLeft + pDown)\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] - 1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\typositions[i] = ypositions[i] + 1;\n\t\t\t}\n\t\t\tif (time % 10 == 0)\n\t\t\t{\n\t\t\t\thistogramFrame.append(Math.sqrt(xpositions[i] * xpositions[i]\n\t\t\t\t\t\t+ ypositions[i] * ypositions[i]));\n\t\t\t}\n\t\t\txmax = Math.max(xpositions[i], xmax);\n\t\t\tymax = Math.max(ypositions[i], ymax);\n\t\t\txmin = Math.min(xpositions[i], xmin);\n\t\t\tymin = Math.min(ypositions[i], ymin);\n\t\t}\n\t}", "public void move()\n\t{\n\t\tVector v = ship.v;\n\t\tb = b.getLocation().add(v).getBlock();\n\t\tif(triangle != null) triangle.move();\n\t\tif(rear != null) rear.move();\n\t\tif(foreAndAft != null) foreAndAft.move();\n\t\tif(sails != null) for(int i = 0; i < sails.size(); i++)\n\t\t{\n\t\t\tSail sail = sails.get(i);\n\t\t\tsail.move();\n\t\t}\n\t}", "private void advanceInvaders() {\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader i : row) {\n\t\t\t\ti.setY(i.getY() + 4);\n\t\t\t}\n\t\t}\n\t}", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "private void moveEnemyArrows(){\n\t\tint i,j;\n\t\tfor(i=0;i<enemy_num;i++){\n\t\t\tfor(j=0;j<enemy_arrow_num[i];j++){\n\t\t\t\tenemy_arrows[i][j][0] = enemy_arrows[i][j][0]+enemy_arrows[i][j][2];\n\t\t\t\tenemy_arrows[i][j][1] = enemy_arrows[i][j][1]+enemy_arrows[i][j][3];\n\t\t\t}\n\t\t}\n\t}", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "@Override\n\tpublic void makeNextMove() \n\t{\n\t}", "private void move() {\n\n for (int z = snakeLength; z > 0; z--) {\n xLength[z] = xLength[(z - 1)];\n yLength[z] = yLength[(z - 1)];\n }\n\n if (left) {\n xLength[0] -= elementSize;\n }\n\n if (right) {\n xLength[0] += elementSize;\n }\n\n if (up) {\n yLength[0] -= elementSize;\n }\n\n if (down) {\n yLength[0] += elementSize;\n }\n }", "public void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }", "public void move() {\n\t\t\tar.setAhead(10 * fahrtrichtung);\n\n\t\t\t// Wie schnell sich der Roboter drehen soll\n\t\t\tar.setTurnRight(45 * drehrichtung);\n\t\t\tar.execute();\n\t\t\tfarbschema = farbschema * (-1);\n\t\t}", "private void nextMovement()\n\t{\n\t\tif(SEQUENCE.length <= 1)\n\t\t\tSEQUENCE = null;\n\t\telse\n\t\t{\n\t\t\tint[] temp = new int[SEQUENCE.length - 1];\n\t\t\tfor(int i = 1; i < SEQUENCE.length; i++)\n\t\t\t{\n\t\t\t\ttemp[i-1] = SEQUENCE[i];\n\t\t\t}\n\t\t\tSEQUENCE = temp;\n\t\t}\n\t}", "void move_couple() {\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(dancers[i].soulmate == -1) continue;\n\t\t\tPoint curr = this.last_positions[i];\n\t\t\tPoint des = this.dancers[i].des_pos;\n\t\t\tthis.dancers[i].next_pos = findNextPosition(curr, des);\n\t\t}\n\t}", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "private void moveMonsters() {\r\n\t\tfor (AreaOrMonster obj : areas) {\r\n\t\t\tif(obj.getLeftRight()) {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()+1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()+1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tif(!pirate1.currentLocation.equals(new Point(obj.getX()-1, obj.getY())) && !pirate2.currentLocation.equals(new Point(obj.getX()-1, obj.getY()))) {\r\n\t\t\t\t\tobj.move();\r\n\t\t\t\t\tobj.getImageView().setX(obj.getX() * scalingFactor);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "public void moveObjsToGoals() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject temp = map.get(i);\r\n\t\t\tsc.moveAtVelAtTimeToLoc(i, sc.getMaxVelocity(), 0, (Location)temp.getGoal());\r\n\t\t}\r\n\t}", "private void moveAll(double eTime) {\n\n double time;\n for (time = sTime; time < eTime; time += TIME_UNIT) { // move in TIME_UNIT steps\n for (int i = 0; i < this.N; i++)\n particles[i].move(TIME_UNIT);\n redraw();\n }\n\n for (int i = 0; i < this.N; i++) // complete final step\n particles[i].move(eTime - time);\n redraw();\n\n sTime = eTime;\n }", "private void moveInvaders() {\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\ta.move();\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\t\n\t\t\t\t\tcheckLeftWall(a);\n\t\t\t\t\tcheckRightWall(a);\n\t\t\t\t\t\n\t\t\t\t\tif ((a.getY() + PLAYER_WIDTH) >= HEIGHT) {\n\t\t\t\t\t\trunning = false;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tLocation next = loc.getAdjacentLocation(getDirection());\n\t\t\n\t\tLocation next2 = next.getAdjacentLocation(getDirection());\n\t\tif (gr.isValid(next2)) {\n\t\t\tmoveTo(next2);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t}", "public void move(){\n\t\t\n\t}", "public void move() {\n\n\tGrid<Actor> gr = getGrid();\n\tif (gr == null) {\n\n\t return;\n\t}\n\n\tLocation loc = getLocation();\n\tif (gr.isValid(next)) {\n\n\t setDirection(loc.getDirectionToward(next));\n\t moveTo(next);\n\n\t int counter = dirCounter.get(getDirection());\n\t dirCounter.put(getDirection(), ++counter);\n\n\t if (!crossLocation.isEmpty()) {\n\t\t\n\t\t//reset the node of previously occupied location\n\t\tArrayList<Location> lastNode = crossLocation.pop();\n\t\tlastNode.add(next);\n\t\tcrossLocation.push(lastNode);\t\n\t\t\n\t\t//push the node of current location\n\t\tArrayList<Location> currentNode = new ArrayList<Location>();\n\t\tcurrentNode.add(getLocation());\n\t\tcurrentNode.add(loc);\n\n\t\tcrossLocation.push(currentNode);\t\n\t }\n\n\t} else {\n\t removeSelfFromGrid();\n\t}\n\n\tFlower flower = new Flower(getColor());\n\tflower.putSelfInGrid(gr, loc);\n\t\n\tlast = loc;\n\t\t\n }", "public void move(){\n\t\tint y, z;\n\t\t\n\t\tif(queueArrayGetValue(1) == null && (queueArrayGetValue(2) == null || queueArrayGetValue(3) == null)){\n\t\t\tif(queueArrayGetValue(2) == null && queueArrayGetValue(3) != null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(3), queueArrayGetValue(3));\n\t\t\t\tqueueArraySetKeyValue(3, null, null);\n\t\t\t}else if(queueArrayGetValue(2) != null && queueArrayGetValue(3) == null){\n\t\t\t\tqueueArraySetKeyValue(1, queueArrayGetKey(2), queueArrayGetValue(2));\n\t\t\t\tqueueArraySetKeyValue(2, null, null);\n\t\t\t}\n\t\t}else{\n\t\t\touterloop:\n\t\t\tfor(int i = 1; i < queueArrayLength(); i++){\n\t\t\t\tif(queueArrayGetValue(i) == null){\n\t\t\t\t\ty = i * 2;\n\t\t\t\t\tz = i * 2 + 1;\n\t\t\t\t\tif(y >= queueArrayLength()){\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else if(z >= queueArrayLength()){\n\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\tbreak outerloop;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif(lessThan(y,z)){\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(y), queueArrayGetValue(y));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(y, null, null);\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tqueueArraySetKeyValue(i, queueArrayGetKey(z), queueArrayGetValue(z));\n\t\t\t\t\t\t\tqueueArraySetKeyValue(z, null, null);\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}", "public void move() {\n\t\tmoveX();\n\t\tmoveY();\n\t}", "public void moveObjectsAlongPath(){\n for (int i=0; i<gameObjects.getMoveableObjectsList().size(); i++){\r\n \r\n MoveableObject movingOb = gameObjects.getMoveableObjectsList().get(i);\r\n \r\n if (movingOb.getPathDestination()!=null ){\r\n \r\n KPoint start = movingOb.getPathLocation();\r\n KPoint destination = movingOb.getPathDestination();\r\n \r\n ArrayList<KPoint> pathPoints = getPathPoints(start, destination, movingOb.getObjectRadius());\r\n movingOb.setCurrentPathTest(pathPoints);\r\n \r\n }\r\n \r\n if(movingOb.getCurrentPath().size()>0){\r\n // find the angle the moveable object needs to rotate to by comparing start with the next path point\r\n KPoint start = movingOb.getPathLocation();\r\n KPoint nextPoint=movingOb.getCurrentPath().get(1);\r\n double targetAngle = Math.atan2(nextPoint.y-start.y, nextPoint.x-start.x );\r\n double angleRemaining = movingOb.getTransform().getRotation() - targetAngle;\r\n \r\n // fix for beyond pi range\r\n if (angleRemaining>Math.PI)angleRemaining -=2*Math.PI;\r\n if (angleRemaining<-Math.PI)angleRemaining +=2*Math.PI;\r\n \r\n if (angleRemaining > 0.1){ \r\n //movingOb.rotateAboutCenter(-angleRemaining);\r\n movingOb.rotateAboutCenter(-ROTATION_SPEED*movingOb.getSpeed());\r\n } else if (angleRemaining <-0.1){\r\n //movingOb.rotateAboutCenter(-ROTATION_SPEED*movingOb.getSpeed());\r\n movingOb.rotateAboutCenter(ROTATION_SPEED*movingOb.getSpeed());\r\n\r\n } else {\r\n double angle = movingOb.getTransform().getRotation();\r\n int xAdjust = (int)Math.ceil(Math.cos(angle)*FORCE_AMOUNT*movingOb.getSpeed());\r\n int yAdjust = (int)Math.ceil(Math.sin(angle)*FORCE_AMOUNT*movingOb.getSpeed());\r\n movingOb.applyForce(new Vector2(xAdjust,yAdjust));\r\n }\r\n }\r\n \r\n }\r\n }", "public void moveAgants(game_service game, directed_weighted_graph g) {\n String lg = game.move();\n List<CL_Agent> log = Arena.getAgents(lg, g);\n this.arna.setAgents(log);\n\n String fs = game.getPokemons();\n List<CL_Pokemon> ffs = Arena.json2Pokemons(fs);\n //System.out.println(ffs.get(1).get_edge());\n this.arna.setPokemons(ffs);\n for (int i = 0; i < log.size(); i++) {\n CL_Agent agent = log.get(i);\n int id = agent.getID();\n int dest = agent.getNextNode();\n // System.out.println(dest);\n int src = agent.getSrcNode();\n double v = agent.getValue();\n if (dest == -1) {\n dest = nextNode(g, agent, src, this.arna.getPokemons());\n if (dest != -1) {\n //dest = nextNode(gg,src);\n\n game.chooseNextEdge(agent.getID(), dest);\n System.out.println(\"Agent: \" + id + \" src:\" + src + \", val: \" + v + \" turned to node: \" + dest);\n try {\n Thread.sleep(SLEEP);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n\n }", "private void positionMoveByCount(double count) {\n\t\ttestMotor.setProfile(0);\n\t\ttestMotor.ClearIaccum();\n\t\ttestMotor.changeControlMode(CANTalon.TalonControlMode.Position);\n\t\ttestMotor.set((testMotor.getPosition()+count));\n\t\ttestMotor.ClearIaccum();\n\t}", "void doneMoving();", "public void AdvancePos() {\n \tswitch (data3d.TrackDirection){\n \tcase 0:\n \tc2.PositionValue += 1;\n \tc2.PositionValue = (c2.PositionValue % c2.getMaxPos());\n \tbreak;\n \tcase 1:\n \tc3.PositionValue += 1;\n \tc3.PositionValue = (c3.PositionValue % c3.getMaxPos());\n \tbreak;\n \tcase 2:\n \tc1.PositionValue += 1;\n \tc1.PositionValue = (c1.PositionValue % c1.getMaxPos());\n \tbreak;\n \tcase 3:\n \tdata3d.setElement((data3d.ActiveElement + 1) % data3d.Elements);\n \tcase 4:\n \tdata3d.setTime((data3d.ActiveTime + 1) % data3d.Times);\n \t}\n }", "public void move() {\n\r\n\t}", "void move(int steps);", "@Override\n public void move(double xa, double ya) {\n if (alive) {\n y += ya;\n x += xa;\n }\n }", "public void moveShapes() {\n\t\tfor (int i=0;i<4;i++) {\n\t\t\tshapes[i].move(1, 1);\n\t\t}\n\t}", "public void moveOneStep(double dt) {\r\n this.checkLeftAndRightXs();\r\n if (this.leftX <= 20) {\r\n for (Enemy e : enemies) {\r\n e.moveDown();\r\n e.setSpeed(-(e.getSpeed().getDx() * 1.1));\r\n }\r\n\r\n }\r\n if (this.rightX >= 780) {\r\n for (Enemy e : enemies) {\r\n e.moveDown();\r\n\r\n e.setSpeed(-(e.getSpeed().getDx() * 1.1));\r\n\r\n }\r\n\r\n }\r\n for (Enemy e : enemies) {\r\n e.moveOneStep(dt);\r\n }\r\n }", "public final void forceStartMoveLoop() {\r\n\t\txOff = 0;\r\n\t\tzOff = 0;\r\n\t\tmoveStart = System.currentTimeMillis();\r\n\t}", "private void move() {\n acceleration.accelerate(velocity, position);\r\n }", "public void move() {\n switch (dir) {\n case 1:\n this.setX(getX() + this.speed);\n moveHistory.add(new int[] {getX() - this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 2:\n this.setY(getY() - this.speed);\n moveHistory.add(new int[] {getX(), getY() + this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 3:\n this.setX(getX() - this.speed);\n moveHistory.add(new int[] {getX() + this.speed, getY()});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n case 4:\n this.setY(getY() + this.speed);\n moveHistory.add(new int[] {getX(), getY() - this.speed});\n moveHistory.add(new int[] {getX(), getY()});\n break;\n default:\n break;\n }\n }", "public void move() {\n if (!canMove) {\n return;\n }\n int moveX = currDirection == EAST ? PACE : currDirection == WEST ? -PACE : 0;\n int moveY = currDirection == NORTH ? PACE : currDirection == SOUTH ? -PACE : 0;\n if (grid == null || grid.isOutside(currX + moveX, currY + moveY)) {\n return;\n }\n currX += moveX;\n currY += moveY;\n }", "public void moveStopped()\n {\n for (GraphElement element : elements) {\n if(element instanceof Moveable) {\n Moveable moveable = (Moveable) element;\n moveable.setPositionToGhost();\n }\n } \n }", "private Action doNextMove(Action move){\n\t\t// update east or north\n\t\tif (move == Action.East){\n\t\t\teast++;\n\t\t} else if (move == Action.West){\n\t\t\teast--;\n\t\t} else if (move == Action.North){\n\t\t\tnorth++;\n\t\t} else if (move == Action.South){\n\t\t\tnorth--;\n\t\t}\n\t\treturn move;\n\t}", "public void move_to_gantry() {\n\t\tstop_moving();\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\tmove(gpX, gpY, gpZ);\n\t}", "private void repositionTo(double xGoal, double yGoal, double angleGoal) {\n\n // Set the goals\n goalX = xGoal;\n goalY = yGoal;\n goalAngle = angleGoal;\n anchorX = xGoal;\n anchorY = yGoal;\n anchorAngle = angleGoal;\n\n // Change unit state to moving, reset patience and ignore unit fought against\n state = UnitState.MOVING;\n currUnitPatience = unitStats.patience; // Reset patience.\n unitFoughtAgainst = null;\n\n // Re-order troops position.\n ArrayList<BaseSingle> aliveArray = new ArrayList<>(aliveTroopsMap.keySet());\n\n // First, sort position from furthest forward to furthest backward.\n MathUtils.sortSinglesByAngle(aliveArray, -angleGoal + Math.PI);\n\n // Take each row, sort each row from furthest leftward to furthest rightward, and then put them into the correct\n // position in the array\n int numRows = (int) Math.ceil(1.0 * aliveArray.size() / width);\n for (int row = 0; row < numRows; row++) {\n // Sort the row from leftward to right ward\n int beginIndex = row * width;\n int endIndex = Math.min(aliveArray.size(), (row + 1) * width);\n ArrayList<BaseSingle> rowTroops = new ArrayList<>();\n for (int col = beginIndex; col < endIndex; col++) {\n rowTroops.add(aliveArray.get(col));\n }\n MathUtils.sortSinglesByAngle(rowTroops, -angleGoal - MathUtils.PIO2);\n\n // Assign the troops to each row and reset their index\n int offsetFromLeft = 0;\n if (row < numRows - 1) {\n offsetFromLeft = 0;\n } else {\n int numLastRow = getNumAlives() - (width * (numRows - 1));\n offsetFromLeft = (width - numLastRow) / 2;\n }\n for (int j = 0; j < rowTroops.size(); j++) {\n aliveTroopsFormation[row][offsetFromLeft + j] = rowTroops.get(j);\n aliveTroopsMap.put(rowTroops.get(j), row * width + offsetFromLeft + j);\n }\n }\n\n if (this instanceof ArcherUnit) {\n ((ArcherUnit) this).generatePositionalVariation(troops.size());\n }\n\n // Decision has a random delay until it reaches the soldiers ear.\n for (int i = 0; i < troops.size(); i++) {\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n\n // Reset the flankers\n resetFlanker();\n }", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "public void move() {\n this.pposX = this.posX;\n this.pposY = this.posY;\n this.posX = newPosX;\n this.posY = newPosY;\n }", "public void apply() {\n double currentHeading = self.getHeading();\n IGameIterator iter = target.getCollection().getIterator();\n Pylon nextPylon = null;\n while (iter.hasNext()) {\n iter.getNext();\n if (iter.get() instanceof Pylon) {\n if (((Pylon) iter.get()).getNum() == self.getLatestPylon() + 1) { //if it is the next pylon\n nextPylon = (Pylon) iter.get();\n }\n }\n }\n if (nextPylon == null) { //if there are no more pylons\n self.changeSpeed(0 - ((int) self.getMaxSpeed())); //stop at the finish line\n return;\n }\n\n double deltaX = nextPylon.getPosition().getX() - self.getPosition().getX();\n double deltaY = nextPylon.getPosition().getY() - self.getPosition().getY();\n newHeading = Math.toDegrees(Math.atan2(deltaY, deltaX));\n double rightTurn;\n double leftTurn;\n\n rightTurn = (newHeading - currentHeading);\n if (rightTurn < 0)\n rightTurn += 360;\n leftTurn = 360 - rightTurn;\n\n if (leftTurn <= rightTurn) {\n //turn left\n self.steer(-15);\n } else {\n // turn right\n self.steer(15);\n }\n //self.steer((int) (newHeading - currentHeading));\n currentHeading = self.getHeading();\n\n //move at max speed towards it\n self.changeSpeed((int) self.getMaxSpeed());\n }", "public void moveNext() {\n\t\tcurrentElement++;\n\t}", "public void enemymoveGarret(){\n\t\tint YEG = 0;\n\t\tint XEG = 0;\n\t\tint[] turns = new int[]{0,0,0,0,0,2,1,1,1,1,1,3};//dependign on the placement garret will move a certain way\n\t\tfor(int i = 0 ; i < this.Garret.length;i++){//this grabs garrets current locations\n\t\t\tfor(int p = 0; p < this.Garret.length;p++){\n\t\t\t\tif(this.Garret[i][p] == 1){\n\t\t\t\t\tYEG = i;\n\t\t\t\t\tXEG = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tint move = turns[count];\n\t\tswitch(move){//first block is up and down second block is left and right\n\t\t\tcase 0:\n\t\t\t\tif(this.area[YEG][XEG-1] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG][XEG-1] = 1;//to turn left\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(this.area[YEG][XEG+1] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG][XEG+1] = 1;//to turn right\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(this.area[YEG-1][XEG] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG-1][XEG] = 1;//to turn up\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(this.area[YEG+1][XEG] != \"[ ]\"){\n\t\t\t\t\tthis.Garret[YEG+1][XEG] = 1;//to turn down\n\t\t\t\t\tthis.Garret[YEG][XEG] = 0;\n\t\t\t\t\tcount++;\n\t\t\t\t\tif(count == 12){\n\t\t\t\t\t\tcount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}//end of switch\t\n\t}", "private long moveOn(int amount) {\n\t\t\tthis.position += amount;\n\t\t\treturn amount;\n\t\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}", "public void move(int index)\n\t{\n\t\tnextSpot = index + moveDirection(index);\n\t}", "protected void moveToDestination(){\n\t\tqueue.clear();\n\t\twhile (destination[0] < 0){\n\t\t\tqueue.add(\"MOVE S\");\n\t\t\tdestination[0] += 1;\n\t\t}\n\t\twhile (destination[0] > 0){\n\t\t\tqueue.add(\"MOVE N\");\n\t\t\tdestination[0] -= 1;\n\t\t}\n\t\twhile (destination[1] < 0){\n\t\t\tqueue.add(\"MOVE E\");\n\t\t\tdestination[1] += 1;\n\t\t}\n\t\twhile (destination[1] > 0){\n\t\t\tqueue.add(\"MOVE W\");\n\t\t\tdestination[1] -= 1;\n\t\t}\n\t\tdestination = null;\n\t}", "public void takeTurnsDebug() {\n boolean antFound = false;\n int gridPos = 0;\n while (antFound == false) {\n if (antGrid[gridPos] != null && antGrid[gridPos].getId() == 14) {\n antGrid[gridPos].moving = true;\n antFound = true;\n } else {\n gridPos++;\n }\n }\n \n takeTurn(antGrid[gridPos], gridPos);\n }", "private void movementPhase() {\n ClickObserver.getInstance().setCreatureFlag(\"\");\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(false);\n TheCupGUI.update();\n Board.removeCovers();\n }\n });\n for (Player p : playerList) {\n \tplayer = p;\n player.flipAllUp();\n\t ClickObserver.getInstance().setActivePlayer(player);\n\t ClickObserver.getInstance().setCreatureFlag(\"Movement: SelectMovers\");\n\t InfoPanel.uncover(player.getName());\n\t if (p.getHexesWithPiece().size() > 0) {\n\t \tClickObserver.getInstance().setClickedTerrain(p.getHexesWithPiece().get(0));\n\t }\n\t pause();\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n \tClickObserver.getInstance().whenTerrainClicked();\n \t GUI.getHelpText().setText(\"Movement Phase: \" + player.getName()\n + \", Move your armies\");\n \t Game.getRackGui().setOwner(player);\n }\n });\n\t \n\t while (isPaused) {\n \ttry { Thread.sleep(100); } catch( Exception e ){ return; } \n\t }\n\t InfoPanel.cover(player.getName());\n player.flipAllDown();\n }\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n GUI.getDoneButton().setDisable(true);\n }\n });\n ClickObserver.getInstance().setCreatureFlag(\"\");\n }", "public void move(){\n x+=xDirection;\n y+=yDirection;\n }", "@SuppressWarnings(\"ConstantConditions\")\n private void moveToNest() throws AntArtException {\n AntArea.Cell forward = getCellInDirection(directionVector);\n AntArea.Cell left = getCellInDirection(AntDirections.moveCounterClockwise(directionVector));\n AntArea.Cell right = getCellInDirection(AntDirections.moveClockWise(directionVector));\n\n //Try to move to a nest cell\n List<AntArea.Cell> cellList = Arrays.asList(forward, left, right);\n if (moveToNestCell(cellList)) {\n return;\n }\n\n //Sort according to home pheremone levels\n cellList.sort((o1, o2) -> {\n float hp1 = o1.getHomePheromone();\n float hp2 = o2.getHomePheromone();\n if (hp1 == hp2) {\n return 0;\n }\n return hp1 > hp2 ? -1 : 1;\n });\n //Do a random action based on a probability\n if (random.nextInt(Configuration.ANT_SELECTION_SEED) == 0) {\n Collections.shuffle(cellList);\n }\n //Try to move to a cell\n for (AntArea.Cell cell : cellList) {\n if (moveTo(cell)) {\n break;\n }\n }\n }", "private void reorderTroops(double xGoal, double yGoal, double angleGoal) {\n\n // Set the goals\n anchorX = xGoal;\n anchorY = yGoal;\n anchorAngle = angleGoal;\n\n // Change unit state to moving, reset patience and ignore unit fought against\n state = UnitState.MOVING;\n currUnitPatience = unitStats.patience; // Reset patience.\n unitFoughtAgainst = null;\n\n // First, sort position from furthest forward to furthest backward.\n ArrayList<BaseSingle> aliveArray = new ArrayList<>(aliveTroopsMap.keySet());\n MathUtils.sortSinglesByAngle(aliveArray, -angleGoal + Math.PI);\n\n // Take each row, sort each row from furthest leftward to furthest rightward, and then put them into the correct\n // position in the array\n int numRows = (int) Math.ceil(1.0 * aliveArray.size() / width);\n for (int row = 0; row < numRows; row++) {\n // Sort the row from leftward to right ward\n int beginIndex = row * width;\n int endIndex = Math.min(aliveArray.size(), (row + 1) * width);\n ArrayList<BaseSingle> rowTroops = new ArrayList<>();\n for (int col = beginIndex; col < endIndex; col++) {\n rowTroops.add(aliveArray.get(col));\n }\n MathUtils.sortSinglesByAngle(rowTroops, -angleGoal - MathUtils.PIO2);\n\n // Assign the troops to each row and reset their index\n int offsetFromLeft;\n if (row < numRows - 1) {\n offsetFromLeft = 0;\n } else {\n int numLastRow = getNumAlives() - (width * (numRows - 1));\n offsetFromLeft = (width - numLastRow) / 2;\n }\n for (int j = 0; j < rowTroops.size(); j++) {\n aliveTroopsFormation[row][offsetFromLeft + j] = rowTroops.get(j);\n aliveTroopsMap.put(rowTroops.get(j), row * width + offsetFromLeft + j);\n }\n }\n\n if (this instanceof ArcherUnit) {\n ((ArcherUnit) this).generatePositionalVariation(troops.size());\n }\n\n // Decision has a random delay until it reaches the soldiers ear.\n for (int i = 0; i < troops.size(); i++) {\n // Set the goal and change the state\n BaseSingle troop = troops.get(i);\n troop.setDecisionDelay(MathUtils.randint(2, 20));\n }\n\n // Reset the flankers\n resetFlanker();\n }", "public void move() {\r\n\t\tif(torretas.size() == 0){\r\n\t\t\tagregarExplosiones();\r\n\t\t}\r\n\t\tif(System.currentTimeMillis() - init > delay && !control[0])\r\n\t\t\tif(puedeMoverse()){\r\n\t\t\t\tif(random){\r\n\t\t\t\t\tint select = -1;\r\n\t\t\t\t\tboolean move = false;\r\n\t\t\t\t\twhile(!move){\r\n\t\t\t\t\t\tselect = rn.nextInt(4);\r\n\t\t\t\t\t\tif(select == 0 || select == 3){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 2 && hayTorretas(x + defaultWidth/2 + 190, x+defaultWidth)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(select == 1 && hayTorretas(x, x+defaultWidth/2 - 190)){\r\n\t\t\t\t\t\t\tmove = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\r\n\t\t\t\t\tint auxX = x;\r\n\t\t\t\t\tint auxY = y;\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(select == 0){\r\n\t\t\t\t\t\tmoves[0] = moves[1] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = -defaultHeight;\r\n\t\t\t\t\t\tvelocidad = 4;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 1){\r\n\t\t\t\t\t\tmoves[2] = moves[3] = true;\r\n\t\t\t\t\t\tx = 800;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 2){\r\n\t\t\t\t\t\tmoves[4] = moves[5] = true;\r\n\t\t\t\t\t\tx = - defaultWidth;\r\n\t\t\t\t\t\ty = 0;\r\n\t\t\t\t\t\tvelocidad = 3;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(select == 3){\r\n\t\t\t\t\t\tmoves[6] = moves[7] = true;\r\n\t\t\t\t\t\tx = -237;\r\n\t\t\t\t\t\ty = 800;\r\n\t\t\t\t\t\tvelocidad = 5;\r\n\t\t\t\t\t\treproductor.addSound(alarm, false);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tactualizarTorretas(x-auxX, y-auxY);\r\n\t\t\t\t\t\r\n\t\t\t\t\trandom = false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de arriba a abajo\r\n\t\t\t\tif(!moves[2] && !moves[3] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[0] && y + defaultHeight < 500){\r\n\t\t\t\t\ty +=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0, +velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[0] = false;\r\n\t\t\t\t\tif(y + defaultHeight > -100 && moves[1]){\r\n\t\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0, -velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\tmoves[1] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de derecha a izquierda\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[4] && !moves[5] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[2] && x > 250){\t\r\n\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[2] = false;\r\n\t\t\t\t\tif(x < 900 && moves[3]){\r\n\t\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[3] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de izquierda a derecha\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[6] && !moves[7])\r\n\t\t\t\tif(moves[4] && x + defaultWidth < 550){\r\n\t\t\t\t\t\r\n\t\t\t\t\tx+=velocidad;\r\n\t\t\t\t\tactualizarTorretas(velocidad,0);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[4] = false;\r\n\t\t\t\t\tif(x + defaultWidth > -100 && moves[5]){\r\n\t\t\t\t\t\tx-=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(-velocidad,0);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[5] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//movimiento de abajo a arriba\r\n\t\t\t\tif(!moves[0] && !moves[1] && !moves[2] && !moves[3] && !moves[4] && !moves[5])\r\n\t\t\t\tif(moves[6] && y > 250){\r\n\t\t\t\t\ty-=velocidad;\r\n\t\t\t\t\tactualizarTorretas(0,-velocidad);\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tmoves[6] = false;\r\n\t\t\t\t\tif(y < 700 && moves[7]){\r\n\t\t\t\t\t\ty+=velocidad;\r\n\t\t\t\t\t\tactualizarTorretas(0,velocidad);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse{\r\n\t\t\t\t\t\tmoves[7] = false;\r\n\t\t\t\t\t\trandom = true;\r\n\t\t\t\t\t\tinit = System.currentTimeMillis();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\tsetMove();\r\n\t}", "public void move(){\n switch(image){\n case 0: // Case 0: Ant moves up/north. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] -= 1;\n if(this.position[0] < 0){\n this.position[0] = 19;\n }\n break;\n case 1: // Case 1: Ant moves right/east. If the ant hits the right border of the screen the ant will appear at the left border of it\n this.position[1] += 1;\n if(this.position[1] == 20){\n this.position[1] = 0;\n }\n break;\n case 2: // Case 2: Ant moves down/south. If the ant hits the top of the screen the ant will appear at the bottom of it\n this.position[0] += 1;\n if(this.position[0] == 20){\n this.position[0] = 0;\n }\n break;\n case 3: // Case 3: Ant moves left/west. If the ant hits the left border of the screen the ant will appear at the right border of it\n this.position[1] -= 1;\n if(this.position[1] < 0){\n this.position[1] = 19;\n }\n break;\n default: // Default: This shouldn't happen on a normal run. It prints an error.\n System.err.println(\"Something went wrong while the ant was trying to move\");\n }\n }", "public void move() {\n\t\tif (type.equals(\"Fast\")) {\n\t\t\tspeed = 2;\n\t\t}else if (type.equals(\"Slow\")){\n\t\t\tspeed = 4;\n\t\t}\n\t\t\n\t\tif (rand.nextInt(speed) == 1){\n\t\t\tif (currentLocation.x - ChristopherColumbusLocation.x < 0) {\n\t\t\t\tif (currentLocation.x + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.x++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.x != 0) {\t\t\t\t\n\t\t\t\t\tcurrentLocation.x--;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (currentLocation.y - ChristopherColumbusLocation.y < 0) {\n\t\t\t\tif (currentLocation.y + 1 < oceanMap.getDimensions()) {\n\t\t\t\t\tcurrentLocation.y++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (currentLocation.y != 0) {\n\t\t\t\t\tcurrentLocation.y--;\n\t\t\t\t}\n\t\t\t} \n\t\t}\n\t}", "private void move() {\n\t\t\tx += Math.PI/12;\n\t\t\thead.locY = intensity * Math.cos(x) + centerY;\n\t\t\thead.yaw = spinYaw(head.yaw, 3f);\n\t\t\t\t\t\n\t\t\tPacketHandler.teleportFakeEntity(player, head.getId(), \n\t\t\t\tnew Location(player.getWorld(), head.locX, head.locY, head.locZ, head.yaw, 0));\n\t\t}", "public void moveAhead(int time) {\n\t\tdouble rotationInRadius = rotation * (Math.PI / 180.0);\r\n\t\tposition.addVector(new DoublePoint(velocity * Math.cos(rotationInRadius), velocity * Math.sin(rotationInRadius)));\r\n\t}", "private void moveParts() {\n int counter = 0;\n\n while (counter < snake.getSize() - 1) {\n Field previous = snake.getCell(counter);\n Field next = snake.getCell(counter + 1);\n\n next.setPreviousX(next.getX());\n next.setPreviousY(next.getY());\n\n next.setX(previous.getPreviousX());\n next.setY(previous.getPreviousY());\n\n fields[previous.getY()][previous.getX()] = previous;\n fields[next.getY()][next.getX()] = next;\n\n counter++;\n\n }\n }", "public void move(int dir) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint nextX = x[i] + dir;\n\t\t\tif (nextX < 0 || nextX >= 10)\n\t\t\t\treturn;\n\t\t\tif (Tetris.game.grid[nextX][y[i]] != 0)\n\t\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tx[i] += dir;\n\t}", "public void movePacmans() {\n\t\ttry {\n\t\t\tgz.redraw();\n\t\t}\n\t\tcatch(NullPointerException npe) {\n\t\t\tgz.pauseGame();\n\t\t}\n\t}", "public void updateGoalPositions() {\n // Convert angle to unit vector\n double downUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI));\n double downUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI));\n double sideUnitX = MathUtils.quickCos((float) (anchorAngle + Math.PI / 2));\n double sideUnitY = MathUtils.quickSin((float) (anchorAngle + Math.PI / 2));\n\n // Create troops and set starting positions for each troop\n double topX = anchorX - (width - 1) * unitStats.spacing * sideUnitX / 2;\n double topY = anchorY - (width - 1) * unitStats.spacing * sideUnitY / 2;\n\n // Update troops goal positions\n for (int row = 0; row < aliveTroopsFormation.length; row++) {\n for (int col = 0; col < aliveTroopsFormation[0].length; col++) {\n BaseSingle troop = aliveTroopsFormation[row][col];\n if (troop == null) continue;\n double xGoalSingle;\n double yGoalSingle;\n // If the person is the flanker, go straight to the assigned position in flankers offset.\n if (state == UnitState.FIGHTING) {\n if (row < flankersCount[col]) {\n double offsetSide = flankerOffsets[col].get(row)[0];\n double offsetDown = flankerOffsets[col].get(row)[1];\n xGoalSingle = this.unitFoughtAgainst.getAverageX() + offsetSide * sideUnitX + offsetDown * downUnitX;\n yGoalSingle = this.unitFoughtAgainst.getAverageY() + offsetSide * sideUnitY + offsetDown * downUnitY;\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + (row - flankersCount[col]) * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + (row - flankersCount[col]) * unitStats.spacing * downUnitY;\n }\n } else {\n xGoalSingle = topX + col * unitStats.spacing * sideUnitX\n + row * unitStats.spacing * downUnitX;\n yGoalSingle = topY + col * unitStats.spacing * sideUnitY\n + row * unitStats.spacing * downUnitY;\n }\n // Set the goal and change the state\n troop.setxGoal(xGoalSingle);\n troop.setyGoal(yGoalSingle);\n troop.setAngleGoal(anchorAngle);\n }\n }\n }", "public void move() {\n process(2);\n }", "public void move() {\n\t\tGrid<Actor> gr = getGrid();\n\t\tif (gr == null) {\n\t\t\treturn;\n\t\t}\n\t\tLocation loc = getLocation();\n\t\tif (gr.isValid(next)) {\n\t\t\tsetDirection(getLocation().getDirectionToward(next));\n\t\t\tmoveTo(next);\n\t\t} else {\n\t\t\tremoveSelfFromGrid();\n\t\t}\n\t\tFlower flower = new Flower(getColor());\n\t\tflower.putSelfInGrid(gr, loc);\n\t}", "public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }", "public void move()\n {\n daysSurvived+=1;\n\n energy -= energyLostPerDay;\n\n Random generator = new Random();\n\n //losowo okreslony ruch na podstawie genomu\n int turnIndex = generator.nextInt((int)Math.ceil(Genome.numberOfGenes));\n int turn = genome.getGenome().get(turnIndex);\n\n //wywolujemy metode obrotu - dodaje odpowiednio liczbe do aktualnego kierunku\n direction.turn(turn);\n\n //zmieniamy pozycje zwierzaka przez dodanie odpowiedniego wektora\n position = position.add(direction.move());\n //walidacja pozycji tak, by wychodzac za mape byc na mapie z drugiej strony\n position.validatePosition(map.getWidth(),map.getHeight());\n\n moveOnSimulation();\n\n //jesli po ruchu zwierzaczek nie ma juz energii na kolejny ruch\n if(energy < energyLostPerDay )\n {\n this.animalHungry = true;\n }\n }", "public void moveAllAgents() {\n\t\tPoint moveTo \t\t= null;\n\t\tGameClient client \t= null;\n\t\t\n\t\tfor(Player p : playerList) {\n\t\t\tif(p.getType() == PlayerType.Agent) {\n\t\t\t\tclient = HandleCommunication.findClient(p.getName(), server.getConnectedClientList());\n\t\t\t\tmoveTo = getSafeTeleportPosition();\n\t\t\t\tmovePlayer(p.getName(), p.getPosition(), moveTo, false);\n\t\t\t\tserver.sendMessageToClient(client.getClientSocket(), \"@124@\" + moveTo.x + \"@\" + moveTo.y + \"@\");\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void move() {\n\n\t}", "private void enemyMove() {\n\t\tArrayList<EnemySprite> enemylist = this.model.getEnemy();\n\t\tfor(EnemySprite sp :enemylist) {\n\t\t\tif(sp instanceof NormalEnemySprite) {\n\t\t\t\t\n\t\t\t\t((NormalEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if(sp instanceof PatrollingEnemySprite) {\n\t\t\t\t\n\t\t\t\t((PatrollingEnemySprite) sp).move();\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\telse if (sp instanceof BigEnemySprite) {\n\t\t\t\t((BigEnemySprite)sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof PatrollingBigEnemySprite) {\n\t\t\t\t((PatrollingBigEnemySprite) sp).move();\n\t\t\t}\n\t\t\t\n\t\t\telse if (sp instanceof CircleBigEnemySprite) {\n\t\t\t\t((CircleBigEnemySprite) sp).move();\n\t\t\t}\n\t\t}\n\t\t\n\t\t\t\t\n\t}", "private void moveOrTurn() {\n\t\t// TEMP: look at center of canvas if out of bounds\n\t\tif (!isInCanvas()) {\n\t\t\tlookAt(sens.getXMax() / 2, sens.getYMax() / 2);\n\t\t}\n\n\t\t// if we're not looking at our desired direction, turn towards. Else, move forward\n\t\tif (needToTurn()) {\n\t\t\tturnToDesiredDirection();\n\t\t} else {\n\t\t\tmoveForward(2.0);\n\t\t}\n\n\t\t// move in a random direction every 50 roaming ticks\n\t\tif (tickCount % 100 == 0) {\n\t\t\tgoRandomDirection();\n\t\t}\n\t\ttickCount++;\n\t}", "@Override\r\n\tpublic void move() {\n\r\n\t}", "@Override\n public void move() {\n _location.x++;\n }", "@Override\n\tpublic void move() {\n\t\t\n\t}", "public void enemymoveAri(){\n\t\tint YEari = 0;\n\t\tint XEari = 0;\n\t\tfor(int i = 0 ; i < this.Ari.length;i++){\n\t\t\tfor(int p = 0; p < this.Ari.length;p++){\n\t\t\t\tif(this.Ari[i][p] == 1){\n\t\t\t\t\tYEari = i;\n\t\t\t\t\tXEari = p;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint move = fate.nextInt(4);// 0 is left, 1 is right , 2 is up , 3 is down\n\t\tswitch(move){//first block is up and down second block is left and right\n\t\t\tcase 0:\n\t\t\t\tif(this.area[YEari][XEari-1] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari][XEari-1] = 1;//to turn left\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(this.area[YEari][XEari+1] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari][XEari+1] = 1;//to turn right\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak; \n\t\t\tcase 2:\n\t\t\t\tif(this.area[YEari-1][XEari] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari-1][XEari] = 1;//to turn up\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(this.area[YEari+1][XEari] != \"[ ]\"){\n\t\t\t\t\tthis.Ari[YEari +1][XEari] = 1;//to turn down\n\t\t\t\t\tthis.Ari[YEari][XEari] = 0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t}//end of switch\n\t}", "public void moveAllDrones() {\n for (Pieces d : drones) {\n d.tryToMove(this);\n }\n }", "void doMove() {\n\t\t// we saved the moves in a queue to avoid recursing.\n\t\tint[] move;\n\t\twhile(!moveQueue.isEmpty()) {\n\t\t\tmove = moveQueue.remove(); \n\t\t\tif (board[move[0]][move[1]] == 0) {\n\t\t\t\tinsertNumber(move[0], move[1], move[2]);\n\t\t\t}\n\t\t}\n\t\tgoOverLines();\n\t}", "private void moveAllignedMhos() {\n\n\t\t//Assign playerX and playerY to the X and Y of the player\n\t\tint playerX = getNewPlayerLocation()[0];\n\t\tint playerY = getNewPlayerLocation()[1];\n\n\t\t//Iterate through every mho's X and Y values\n\t\tfor(int i = 0; i < mhoLocations.size()/2; i++) {\n\n\t\t\t//Assign mhoX and mhoY to the X and Y values of the mho that is currently being tested\n\t\t\tint mhoX = mhoLocations.get(i*2);\n\t\t\tint mhoY = mhoLocations.get(i*2+1);\n\n\t\t\t//set the default X and Y offsets to 0, and the move to NO_MOVEMENT\n\t\t\tint xOffset = 0;\n\t\t\tint yOffset = 0;\n\t\t\tchar move = Legend.NO_MOVEMENT;\n\n\t\t\t//Check if the playerX is equal to mhoX (aligned on x-axis)\n\t\t\tif(playerX == mhoX) {\n\n\t\t\t\t//Check which direction the mho would have to move, and assign the corresponding move and yOffset\n\t\t\t\tif(playerY > mhoY) {\n\t\t\t\t\tyOffset = 1;\n\t\t\t\t\tmove = Legend.DOWN;\n\t\t\t\t} else {\n\t\t\t\t\tyOffset = -1;\n\t\t\t\t\tmove = Legend.UP;\n\t\t\t\t}\n\t\t\t} else if(playerY == mhoY) {\n\n\t\t\t\t//Check which direction the mho would have to move, and assign the corresponding move and XOffset\n\t\t\t\tif(playerX > mhoX) {\n\t\t\t\t\txOffset = 1;\n\t\t\t\t\tmove = Legend.RIGHT;\n\t\t\t\t} else {\n\t\t\t\t\txOffset = -1;\n\t\t\t\t\tmove = Legend.LEFT;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Only move if the new location is not an instance of mho (in order to make sure they are moved in the right order)\n\t\t\tif(!(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Mho)) {\n\n\t\t\t\t//Set the previous location to a BlankSpace\n\t\t\t\tnewMap[mhoX][mhoY] = new BlankSpace(mhoX, mhoY, board);\n\n\t\t\t\t//If the new square would be a player, end the game\n\t\t\t\tif(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Player) {\n\t\t\t\t\tmoveList[mhoX+xOffset][mhoY+yOffset] = Legend.SHRINK;\n\t\t\t\t\tgameOver();\n\t\t\t\t}\n\n\t\t\t\t//If the new square would be a fence, remove the mho from the map\n\t\t\t\tif(!(newMap[mhoX+xOffset][mhoY+yOffset] instanceof Fence)) {\n\t\t\t\t\tnewMap[mhoX+xOffset][mhoY+yOffset] = new Mho(mhoX+xOffset, mhoY+yOffset, board);\n\t\t\t\t} else {\n\t\t\t\t\tmove = Legend.SHRINK;\n\t\t\t\t}\n\n\t\t\t\t//Set the move of the mho on moveList\n\t\t\t\tmoveList[mhoX][mhoY] = move;\n\n\t\t\t\t//remove the mhoX and mhoY in mhoLocations\n\t\t\t\tmhoLocations.remove(i*2+1);\n\t\t\t\tmhoLocations.remove(i*2);\n\n\t\t\t\t//Call moveAllignedMhos() again, because the list failed to be checked through completely\n\t\t\t\tmoveAllignedMhos();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn;\n\t}", "private void moveForwards() {\n\t\tposition = MoveAlgorithmExecutor.getAlgorithmFromCondition(orientation).execute(position);\n\t\t\n\t\t// Extracted the condition to check if tractor is in Ditch\n\t\tif(isTractorInDitch()){\n\t\t\tthrow new TractorInDitchException();\n\t\t}\n\t}", "private void gameMove() {\n for (int x = 0; x < list.size() - 2; x++) {\n // check if snake is touch coin\n if (Snake().isTouching(list.get(x))) {\n Snake().collected();\n list.get(x).collected();\n }\n }\n Snake().move();\n }", "@Override\n public void calculateMove() {\n int xa = 0, ya = 0;\n if (steps <= 0) {\n direction = ep.calculateDirection();\n steps = MAX_STEPS;\n }\n if (direction == 0) {\n ya--;\n }\n if (direction == 2) {\n ya++;\n }\n if (direction == 3) {\n xa--;\n }\n if (direction == 1) {\n xa++;\n }\n if (canMove(xa, ya)) {\n steps -= 1 + rest;\n move(xa * speed, ya * speed);\n moving = true;\n } else {\n steps = 0;\n moving = false;\n }\n }", "public void movement()\n\t{\n\t\tballoonY = balloonY + speedBalloonY1;\n\t\tif(balloonY > 700)\n\t\t{\n\t\t\tballoonY = -50;\n\t\t\tballoonX = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon2Y = balloon2Y + speedBalloonY2;\n\t\tif(balloon2Y > 700)\n\t\t{\n\t\t\tballoon2Y = -50;\n\t\t\tballoon2X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon3Y = balloon3Y + speedBalloonY3;\n\t\tif(balloon3Y > 700)\n\t\t{\n\t\t\tballoon3Y = -50;\n\t\t\tballoon3X = (gen.nextInt(900)-75);\n\t\t}\n\t\tballoon4Y = balloon4Y + speedBalloonY4;\n\t\tif(balloon4Y > 700)\n\t\t{\n\t\t\tballoon4Y = -50;\n\t\t\tballoon4X = (gen.nextInt(900)-75);\n\t\t}\n\t\t\n\t\tballoon5Y = balloon5Y + speedBalloonY5;\n\t\tif(balloon5Y > 700)\n\t\t{\n\t\t\tballoon5Y = -50;\n\t\t\tballoon5X = (gen.nextInt(900)-75);\n\t\t}\n\t}", "public void moveDragoes() {\n\t\tfor (int i = 0; i < dragoes.length; i++) {\n\t\t\tif (dragoes[i].getStatus() == 0 || dragoes[i].getStatus() == 2)\n\t\t\t\tmovimentar_dragao(i);\n\t\t}\n\t}", "public void incrementMoves()\n {\n moves ++;\n }", "MoveIterator() {\n _c = 1; _r = 1; _dir = NOWHERE;\n incr();\n }", "int simulateAnts() {\r\n\t\tint k;\r\n\t\tint moving = 0;\r\n\r\n\t\tfor (k = 0; k < ants.length; k++) {\r\n\t\t\t\r\n\t\t\tAnt ant = ants[k];\r\n\t\t\t\r\n\t\t\t// ensure this ant still has cities to visit\r\n\t\t\tif (ant.pathIndex < cities.length) {\r\n\t\t\t\tant.nextCity = selectNextCity(ant);\r\n\t\t\t\tant.tabu[ant.nextCity] = 1;\r\n\t\t\t\tant.path[ant.pathIndex++] = ant.nextCity;\r\n\t\t\t\tant.tourLength += distance[ant.curCity][ant.nextCity];\r\n\r\n\t\t\t\t// Handle the final case (last city to first)\r\n\t\t\t\tif (ant.pathIndex == cities.length) {\r\n\t\t\t\t\tant.tourLength += distance[ant.path[cities.length - 1]][ant.path[0]];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tant.curCity = ant.nextCity;\r\n\r\n\t\t\t\tmoving++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn moving;\r\n\t}", "@Override\n \t\t\t\tpublic void doMove() {\n \n \t\t\t\t}", "void move() {\r\n\t\tif (x + xa < 0){\r\n\t\t\txa = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (x + xa > game.getWidth() - diameter){\r\n\t\t\txa = -mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (y + ya < 0){\r\n\t\t\tya = mov;\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\telse if (y + ya > game.getHeight() - diameter){\r\n\t\t\tgame.gameOver();\r\n\t\t\tgame.puntuacion++;\r\n\t\t}\r\n\t\tif (colisionPalas()){\r\n\t\t\tya = -mov;\r\n\t\t}\r\n\t\telse if(colisionEstorbos()){\r\n\t\t\tgame.puntuacion+=2;\r\n\t\t}\r\n\t\t\r\n\t\tx = x + xa;\r\n\t\ty = y + ya;\r\n\t}", "private void moveAllLists() {\n\t\tfuelList.moveTo(position.x, position.y);\n\t\twellList.moveTo(position.x, position.y);\n\t\tstationList.moveTo(position.x, position.y);\n\t\tstationTaskList.moveTo(position.x, position.y);\n\t}", "public void move()\n {\n x = x + unitVector.getValue(1)*speed;\n y = y + unitVector.getValue(2)*speed;\n }" ]
[ "0.6963462", "0.69575757", "0.6542088", "0.6484962", "0.643417", "0.64141047", "0.63875", "0.6365441", "0.63567215", "0.6339961", "0.63350105", "0.6325154", "0.6306566", "0.6301644", "0.6278653", "0.6277502", "0.62713367", "0.62661314", "0.6246666", "0.6228271", "0.62251", "0.6210518", "0.6207057", "0.61769825", "0.61769575", "0.6166928", "0.61616546", "0.60758525", "0.60669535", "0.6054028", "0.6044483", "0.6028737", "0.60195905", "0.6014812", "0.6006985", "0.6000189", "0.5995221", "0.5994819", "0.5988531", "0.59743005", "0.59734076", "0.596337", "0.5958383", "0.5952794", "0.5951354", "0.59469867", "0.59428686", "0.5940663", "0.5930778", "0.5925501", "0.59190863", "0.59182566", "0.5902628", "0.5902259", "0.5897503", "0.58918184", "0.58875877", "0.5878065", "0.5870343", "0.5869567", "0.58681536", "0.58677024", "0.5863241", "0.5854807", "0.5854222", "0.5830082", "0.5823921", "0.58181953", "0.5814362", "0.5811061", "0.5807169", "0.5805868", "0.58013976", "0.579734", "0.57890946", "0.5787229", "0.5784793", "0.5783265", "0.57825434", "0.57773584", "0.57726824", "0.57718396", "0.57700485", "0.57678515", "0.5763319", "0.5762443", "0.5759305", "0.5750555", "0.57482404", "0.5746215", "0.5743702", "0.5740676", "0.57402986", "0.57398987", "0.573788", "0.57360506", "0.5735739", "0.57317394", "0.5730655", "0.57251334" ]
0.7238576
0
Select next city for each ant
private int selectNextCity(Ant ant) { int t = random.nextInt(numberOfCities - currentIndex); if (random.nextDouble() < randomFactor) { OptionalInt cityIndex = IntStream.range(0, numberOfCities) .filter(i -> i == t && !ant.visited(i)) .findFirst(); if (cityIndex.isPresent()) { return cityIndex.getAsInt(); } } calculateProbabilities(ant); double r = random.nextDouble(); double total = 0; for (int i = 0; i < numberOfCities; i++) { total += probabilities[i]; if (total >= r) { return i; } } throw new RuntimeException("There are no other cities"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int selectNextCity(Ant ant) {\r\n\t\tint from, to;\r\n\t\t\r\n\t\tdouble denom = 0.0;\r\n\r\n\t\tfrom = ant.curCity;\r\n\r\n\t\t// compute denom\r\n\t\tfor (to = 0; to < cities.length; to++) {\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tdenom += antProduct(from, to);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tassert denom != 0.0;\r\n\r\n\t\tdo {\r\n\t\t\tdouble p;\r\n\t\t\tto++;\r\n\t\t\tif (to >= cities.length)\r\n\t\t\t\tto = 0;\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tp = antProduct(from, to) / denom;\r\n\t\t\t\tdouble num = Math.random();\r\n\t\t\t\tif (num < p)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\r\n\t\treturn to;\r\n\t}", "private void moveAnts() {\n IntStream.range(currentIndex, numberOfCities - 1)\n .forEach(i -> {\n ants.forEach(ant -> ant.visitCity(currentIndex, selectNextCity(ant)));\n currentIndex++;\n });\n }", "private long getNextCityId() {\n\t\tSqlRowSet nextIdResult = jdbcTemplate.queryForRowSet(\"SELECT nextval('seq_city_id')\");\n\n\t\t// Remember, we only get a single row back, so we just need to check if we got a\n\t\t// row.\n\t\tif (nextIdResult.next()) {\n\t\t\t// While we usually get the columns by name explicitly (see the mapCityToRow\n\t\t\t// method), we can also get a column at a specific index. Keep in mind the index\n\t\t\t// starts at one (1), unlike arrays that start at an index of zero (0).\n\t\t\treturn nextIdResult.getLong(1);\n\t\t} else {\n\t\t\t// in this case, if we weren't able to get a single row back, we need to throw\n\t\t\t// an unchecked RuntimeException.\n\t\t\tthrow new RuntimeException(\"Something went wrong while getting an id for the new city\");\n\t\t}\n\t}", "private DTOCity cityFromName(String name) {\n\t\tfor(DTOCity c : this.cities) {\n\t\t\tif(c.getName().equals(name))\n\t\t\t\treturn c;\n\t\t}\n\t\tthrow new NoSuchElementException(\"Error in creating the DTO graph!\");\n\t}", "public City getStartCity() {\n \treturn vertex1;\n }", "public void findCities() {\r\n\t\tpolygonMap.setCurrentPlayerID(client.getSettler().getID());\r\n\t\tint counter = 0;\r\n\t\tfor (int i = 0; i < island.getNodes().length; i++) {\r\n\t\t\tif (island.getNodes()[i].getBuilding() == Constants.SETTLEMENT\r\n\t\t\t\t\t&& island.getNodes()[i].getOwnerID() == client.getSettler()\r\n\t\t\t\t\t\t\t.getID()) {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, i);\r\n\t\t\t\tcounter++;\r\n\t\t\t} else {\r\n\t\t\t\tpolygonMap.setCityNodes(counter, -1);\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void setDegreesForCities() {\r\n\r\n\t\t//Retrieve the staring vertex city\r\n\t\tLinkedList<CityByDegrees> linkedList = new LinkedList<CityByDegrees>();\r\n\t\tgetStartingVertexCity().setVisited(true);\r\n\t\tlinkedList.add(getStartingVertexCity());\r\n\r\n\t\t//Go through and determine the degrees to the vertext city for each city\r\n\t\twhile(linkedList.size() > 0) {\r\n\t\t\tCityByDegrees cityByDegrees = (CityByDegrees)linkedList.remove();\r\n\t\t\tHashSet <CityByDegrees>adjacentCities = cityByDegrees.getAdjacentCities();\r\n\t\t\tIterator iterator = adjacentCities.iterator();\r\n\r\n\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\tCityByDegrees currentCity = (CityByDegrees)iterator.next();\r\n\t\t\t\tif(!currentCity.isVisited()) {\r\n\t\t\t\t\tcurrentCity.setVisited(true);\r\n\t\t\t\t\tif(cityByDegrees.getDegrees() >= 0) {\r\n\t\t\t\t\t\tcurrentCity.setDegrees(cityByDegrees.getDegrees() + 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tlinkedList.add(currentCity);\r\n\t\t\t\t}\r\n\t\t\t}//end inner while\r\n\t\t}//end outer while\r\n\t}", "public static Weather getNextCityWeather(){\r\n\t\t/*\r\n\t\t * While weatherDetails is getting updated with background\r\n\t\t * Handler, it shouldn't be read\r\n\t\t */\r\n\t\tsynchronized (weatherDetails) {\r\n\t\t\tString code = airportCodes.get(city_index);\r\n\t\t\tLog.i(\"WeatherRecord\", \"Display Weather of: \"+ code+ \" \"+ airportCodes.size());\r\n\t\t\tcity_index++;\r\n\t\t\tif(city_index >= airportCodes.size())\r\n\t\t\t\tcity_index = 0;\r\n\t\t\tWeather w = weatherDetails.get(code);\r\n\t\t\treturn w;\r\n\t\t}\r\n\t}", "private void setStartingVertexCity(CityByDegrees vertexCity) {\r\n\t\tthis.startingVertexCity = vertexCity;\r\n\t}", "private CityByDegrees getStartingVertexCity() {\r\n\t\treturn this.startingVertexCity;\r\n\t}", "private void setEnd()\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(\"Location: \"+i+\" \"+cities.get(i).getSourceName());\n \n System.out.println(\"Which city would you like to end at? Enter the location number\"); \n cities = getShortestPathTo(cities.get(input.nextInt())); \n }", "int simulateAnts() {\r\n\t\tint k;\r\n\t\tint moving = 0;\r\n\r\n\t\tfor (k = 0; k < ants.length; k++) {\r\n\t\t\t\r\n\t\t\tAnt ant = ants[k];\r\n\t\t\t\r\n\t\t\t// ensure this ant still has cities to visit\r\n\t\t\tif (ant.pathIndex < cities.length) {\r\n\t\t\t\tant.nextCity = selectNextCity(ant);\r\n\t\t\t\tant.tabu[ant.nextCity] = 1;\r\n\t\t\t\tant.path[ant.pathIndex++] = ant.nextCity;\r\n\t\t\t\tant.tourLength += distance[ant.curCity][ant.nextCity];\r\n\r\n\t\t\t\t// Handle the final case (last city to first)\r\n\t\t\t\tif (ant.pathIndex == cities.length) {\r\n\t\t\t\t\tant.tourLength += distance[ant.path[cities.length - 1]][ant.path[0]];\r\n\t\t\t\t}\r\n\r\n\t\t\t\tant.curCity = ant.nextCity;\r\n\r\n\t\t\t\tmoving++;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn moving;\r\n\t}", "private static void shortestPathFinder(Graph graph, Character userCity, int algoNum) {\n\n // Finds and stores the City that corresponds to the cityName input\n City currentCity = graph.cityOf(userCity);\n\n // Array List to store every City that was visited by the current one\n ArrayList<Character> citiesVisited = new ArrayList<>();\n\n // Adds the cityName of the input userCity\n citiesVisited.add(userCity);\n\n // Creates a Stack to store and manage all Cities visited\n Stack<City> visitingCities = new Stack<>();\n\n // Loops over each City object in the graph until currentCity becomes the final destinantion Z.\n while (!(currentCity.equals(graph.cityOf('Z')))) {\n // As long as we startCity did not reach the final destination, it means it has visited the\n // previous City object, therefore:\n\n // Adds currentCity to the stack\n visitingCities.add(currentCity);\n\n // Sets true to setCitiesVisited() as it has been visited\n currentCity.setCitiesVisited(true);\n\n // It will also be included to the shortest path\n currentCity.setItIsTheShortest(true);\n\n // Gets all the edges that are connected to the current City we are on\n ArrayList<Edge> cityEdges = currentCity.getCityEdges();\n\n // Temporary City object to update currentCity\n City nextCity = null;\n\n // Integer to track the shortest distance (weight + direct distance) for heuristic algorithm 2\n int weightDistanceTotal = Integer.MAX_VALUE;\n\n // Loop to keep track of currentCity as it advances to the final destination\n // It iterates over edges of currentCity and chooses among its edges Cities that have not been\n // visited yet, using either algorithm 1 or algorithm 2 based on the method input above.\n // the loop terminates if the final currentCity becomes the final destination Z\n // It also terminates after iterating over all edges and choosing the one with the City that\n // has the shortest direct distance to final destination Z\n for (Edge edge: cityEdges) {\n\n // Checks if City of this edge was visited. If so, it continues to check the next edge\n if (edge.getAdjacentCity().getCitiesVisited()) {\n\n // Continues to the next edge\n continue;\n }\n\n // 2. assign the next City to the destination\n if (nextCity == null) {\n\n // Updates nextCity to be adjacent City\n nextCity = edge.getAdjacentCity();\n\n } else {\n\n // Checks which algorithm is being called, and executes the right one\n if (algoNum == 1) {\n if (nextCity.getCityToDestination() > edge.getAdjacentCity().getCityToDestination()) {\n nextCity = edge.getAdjacentCity();\n }\n\n // if algorithm 1 was not chosen, it executes algorithm 2 in the else block bellow\n } else {\n weightDistanceTotalCity cityWithWeightDistanceTotal =\n weightPlusDistanceAlgorithm(nextCity, edge, weightDistanceTotal);\n nextCity = cityWithWeightDistanceTotal.city;\n weightDistanceTotal = cityWithWeightDistanceTotal.weightDistanceTotal;\n }\n }\n }\n\n // If nextCity is still null, it means that its edge was skipped in the for loop above,\n // because it has already been visited by checking if getCitiesVisited() returns true\n if (nextCity == null) {\n\n // Pops off the City we just visited, and flag it to be not the shortest distant City\n visitingCities.pop().setItIsTheShortest(false);\n\n // Sets the next City to the previous one\n nextCity = visitingCities.pop();\n }\n\n // Adds the City name that was visited to keep track of the path\n citiesVisited.add(nextCity.getName());\n\n // CurrentCity is updated to be the next City\n currentCity = nextCity;\n\n // When visiting the last City mark z in the shortest path found\n if (currentCity.getName() == 'Z') {\n currentCity.setItIsTheShortest(true);\n }\n }\n\n // Tracks the path visited and adds up all the weights of the path found\n int pathCounter = 0;\n\n // Constructs the shortest path found\n ArrayList<City> shortestPath = new ArrayList<>();\n\n for (Character tempCity: citiesVisited) {\n // Gets the City of cityVisitor\n City city = graph.cityOf(tempCity);\n\n // Adds to the shortest path found\n if (city.getItIsTheShortest() && !shortestPath.contains(city)) {\n shortestPath.add(city);\n }\n }\n\n // Prints out the shortest path found\n for (int i = 0; i < shortestPath.size() - 1; i++) {\n currentCity = shortestPath.get(i);\n City nextCity = shortestPath.get(i + 1);\n\n // find the weight of that City\n int weight = currentCity.findWeight(nextCity);\n pathCounter += weight;\n }\n\n // Constructs the final output\n String fullPathSequence = \"\";\n String citiesVisitedAsString = \"\";\n\n for (int i = 0; i < citiesVisited.size(); i++) {\n if (i != citiesVisited.size() - 1) {\n fullPathSequence += citiesVisited.get(i) + \" -> \";\n }\n }\n\n // Constructs a string to store all cityNames\n fullPathSequence += citiesVisited.get(citiesVisited.size() - 1);\n\n for (int i = 0; i < shortestPath.size(); i++) {\n if (i != shortestPath.size() - 1) {\n citiesVisitedAsString += shortestPath.get(i).getName() + \" -> \";\n }\n }\n\n if (currentCity.getName() == 'Z') {\n citiesVisitedAsString += \"Z\";\n } else {\n citiesVisitedAsString += shortestPath.get(shortestPath.size() - 1).getName();\n }\n\n // Prints out the String results.\n System.out.println(\"Algorithm \" + algoNum + \":\\nSequence of all Cities: \" + fullPathSequence\n + \"\\nShortest path: \" + citiesVisitedAsString + \"\\nShortest path length: \" + pathCounter + \"\\n\");\n }", "City city(int i) {\r\n\t\treturn tsp.cities[this.index[i]];\r\n\t}", "private void setStart()\n {\n for(int i = 0; i < cities.size(); i++)\n System.out.println(\"Location: \"+i+\" \"+cities.get(i).getSourceName());\n \n System.out.println(\"Which city would you like to start at? Enter the location number\"); \n computePaths(cities.get(input.nextInt()));\n printMenu(); \n }", "public void generateIndividual() {\n // Loop through all our destination cities and add them to our tour\n for (int cityIndex = 0; cityIndex < TourManager.numberOfCities(); cityIndex++) {\n setCity(cityIndex, TourManager.getCity(cityIndex));\n }\n // Randomly reorder the tour\n Collections.shuffle(tour);\n }", "private void findBestPath(int start){\n\t\tint n = this.getDimension(); // for readability\n\t\tint lastCity, minDist = 0, moment = 0;\n\t\t\n\t\tthis.path = new int[this.getDimension() + 1];\n\t\tthis.visited = 0; \n\t\t\n\t\tsetAllUnvisited();\n\t\t\n\t\tvisitCity(moment, start); // visits the first city in time 0\n\t\tlastCity = start;\n//\t\tSystem.out.println(Arrays.toString(this.path) + \" > \" + this.visited);\n\t\t// Repeats until all cities were visited\n\t\twhile(visited < n){\n//\t\t\tSystem.out.println(\"LC:\" + lastCity + \" MD:\" + minDist + \" M:\" + moment);\n\t\t\tmoment++;\n\t\t\t\n\t\t\t// Finds the closest city\n\t\t\tint closest = -1, closestDist = -1;\n\t\t\tfor(int i = 0; i < n; i++){\n\t\t\t\tif(!wasVisited(i)){\n\t\t\t\t\tif(dist(lastCity, i) < closestDist || closestDist == -1){ // If it's the first iteration or found a closer city\n\t\t\t\t\t\tclosest = i;\n\t\t\t\t\t\tclosestDist = dist(lastCity, closest);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Updates distance\n\t\t\tminDist += dist(lastCity, closest);\n\t\t\t\n\t\t\t// Visits the closest city\n\t\t\tvisitCity(moment, closest);\n\t\t\tlastCity = closest;\n//\t\t\tSystem.out.println(Arrays.toString(this.path) + \" > \" + minDist);\n\t\t\t\n\t\t}\n\t\t\n\t\t// Returns to the first city\n\t\tvisitCity(moment + 1, start);\n\t\tminDist += dist(lastCity, start);\n\t\t\n\t\tif(minDist < this.totalDistance || this.totalDistance == -1){\n\t\t\tthis.totalDistance = minDist;\n\t\t\tthis.bestPath = this.path.clone();\n\t\t}\n//\t\tSystem.out.println(Arrays.toString(this.path) + \" -----> \" + minDist);\n\t}", "private void selectNextPath(boolean inc) {\n\t\tif (this.allPathsList.size() < 1)\n\t\t\treturn;\n\t\tList<GraphPath<PathwayVertexRep, DefaultEdge>> paths = this.allPathsList.get(this.allPathsList.size() - 1)\n\t\t\t\t.getFirst();\n\t\tif (paths.size() > 1) {\n\t\t\t// System.out.println(\"allPaths.size() > 1\");\n\n\t\t\tif (inc)\n\t\t\t\tselectedPathID++;\n\t\t\telse\n\t\t\t\tselectedPathID--;\n\n\t\t\tif (selectedPathID < 0)\n\t\t\t\tselectedPathID = paths.size() - 1;\n\t\t\tif (selectedPathID > paths.size() - 1)\n\t\t\t\tselectedPathID = 0;\n\n\t\t\tif (allPaths.size() > 0) {\n\t\t\t\tselectedPath = paths.get(selectedPathID);\n\t\t\t\t// System.out.println(\"selectedPathID\"+selectedPathID);\n\t\t\t\tif (selectedPath.getEdgeList().size() > 0 && !isShiftKeyDown) {\n\t\t\t\t\tPathwayVertexRep startPrevVertex = selectedPath.getStartVertex();\n\t\t\t\t\tPathwayVertexRep endPrevVertex = selectedPath.getEndVertex();\n\t\t\t\t\tList<DefaultEdge> edgePrevList = selectedPath.getEdgeList();\n\t\t\t\t\tpreviousSelectedPath = new GraphPathImpl<PathwayVertexRep, DefaultEdge>(pathway, startPrevVertex,\n\t\t\t\t\t\t\tendPrevVertex, edgePrevList, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tselectedPathID = 0;\n\t\t}\n\n\t\t// System.out.println(\"selectedPathID=\"+selectedPathID);\n\t\tthis.allPathsList.get(this.allPathsList.size() - 1).setSecond(selectedPathID);\n\t\tisBubbleTextureDirty = true;\n\t\tsetDisplayListDirty();\n\t\ttriggerPathUpdate();\n\t}", "@Override public void onCityChanged() {\n\t\tif (mode == ChangeCurrentCity) {\n\t\t\tint i;\n\t\t\tCity findme = parent.session.state.currentCity;\n\t\t\tfor (i=0; i<rawList.length; i++) {\n\t\t\t\tif (rawList[i] == findme) {\n\t\t\t\t\tcitySpinner.setSelection(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public HomePage selectCityClick() throws InterruptedException {\n\t\t\t\t\n\t\tWebElement myDynamicElement = (new WebDriverWait(driver, 60)).until(ExpectedConditions.presenceOfElementLocated(selectCity));\n\t\t\n\t//wait.until(ExpectedConditions.presenceOfElementLocated(selectCity));\n\n\t\tmyDynamicElement.click();\n\t\t//Thread.sleep(5000);\n\t\t//driver.findElement(selectCity).click();\n\t\t\t\t\t\n\t\treturn this;\n\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t}", "void clickNextStation();", "void buildCity(VertexLocation vert);", "Place getNextPlace(Place next)\n{\n if (!visited.contains(next.goNorth()) && !(next.goNorth()).isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goEast()) && !next.goEast().isWall()){\n soln.append(\"E\");\n visited.add(next.goEast());\n //nearby.clear();\n return next.goEast();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n }\n else if (!visited.contains(next.goNorth()) && !next.goNorth().isWall()){\n soln.append(\"N\");\n visited.add(next.goNorth());\n //nearby.clear();\n return next.goNorth();\n \n //nearby.clear();\n return null;\n} \n}", "public City<E> city(String name){\n\t\tint index = -1;\n\t\tint i;\n\t\tint size = graphList.size();\n\t\tfor(i=0;i<size;i++){\n\t\t\tif(graphList.get(i).getName().equals(name)){\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\tif(index == -1){\n\t\t\tSystem.out.println(\"Edge can't be built because city cant be found, in Graph city method\");\n\t\t\treturn null;\n\t\t}\n\t\treturn graphList.get(index);\n\t}", "public void findShortestPath() {\r\n\t\t\r\n\t\t//Create a circular array that will store the possible next tiles in the different paths.\r\n\t\tOrderedCircularArray<MapCell> path = new OrderedCircularArray<MapCell>();\r\n\t\t\r\n\t\t//Acquire the starting cell.\r\n\t\tMapCell starting = cityMap.getStart();\r\n\t\t\r\n\t\t//This variable is to be updated continuously with the cell with the shortest distance value in the circular array.\r\n\t\tMapCell current=null;\r\n\t\t\r\n\t\t//This variable is to check if the destination has been reached, which is initially false.\r\n\t\tboolean destination = false;\r\n\t\t\r\n\t\t//Add the starting cell into the circular array, and mark it in the list.\r\n\t\tpath.insert(starting, 0);\r\n\t\t\r\n\t\tstarting.markInList(); \r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//As long as the circular array isn't empty, and the destination hasn't been reached, run this loop.\r\n\t\t\twhile(!path.isEmpty()&&!destination) {\r\n\t\t\t\t\r\n\t\t\t\t//Take the cell with the shortest distance out of the circular array, and mark it accordingly.\r\n\t\t\t\tcurrent = path.getSmallest();\r\n\t\t\t\tcurrent.markOutList();\r\n\t\t\t\t\r\n\t\t\t\tMapCell next;\r\n\t\t\t\tint distance;\r\n\t\t\t\t\r\n\t\t\t\tif(current.isDestination()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tdestination = true; //If the current cell is the destination, end the loop.\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\t\r\n\t\t\t\t\tnext = nextCell(current); //Acquire the next possible neighbour of the current cell.\r\n\t\t\t\t\t\r\n\t\t\t\t\t//Don't run if next is null, meaning there is no other possible neighbour in the path for the current cell.\r\n\t\t\t\t\twhile(next!=null) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = current.getDistanceToStart() + 1;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t//If the distance of the selected neighbouring cell is currently more than 1 more than the current cell's \r\n\t\t\t\t\t\t//distance, update the distance of the neighbouring cell. Then, set the current cell as its predecessor.\r\n\t\t\t\t\t\tif(next.getDistanceToStart()>distance) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tnext.setDistanceToStart(distance);\r\n\t\t\t\t\t\t\tnext.setPredecessor(current);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tdistance = next.getDistanceToStart(); \r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(next.isMarkedInList() && distance<path.getValue(next)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.changeValue(next, distance); //If the neighbouring cell is in the circular array, but with a \r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t //larger distance value than the new updated distance, change its value.\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if(!next.isMarkedInList()){\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tpath.insert(next, distance); //If the neighbouring cell isn't in the circular array, add it in.\r\n\t\t\t\t\t\t\tnext.markInList();\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tnext = nextCell(current); //Look for the next possible neighbour, if any.\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Catch all the possible exceptions that might be thrown by the method calls. Print the appropriate messages.\r\n\t\t} catch (EmptyListException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidNeighbourIndexException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"The program tried to access an invalid neighbour of a tile.\");\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (InvalidDataItemException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\tSystem.out.println(\"Path finding execution stopped.\");\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e.getMessage()+\" Path finding execution has stopped.\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t//If a path was found, print the number of tiles in the path.\r\n\t\tif(destination) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number of tiles in path: \" + (current.getDistanceToStart()+1));\r\n\t\t\t\r\n\t\t} else {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"No path found.\"); //Otherwise, indicate that a path wasn't found.\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n public int findLowerCostPath(City src, City dest) {\n List<City> cityList = new ArrayList<>(cityManager.getAll());\n int[] travelCosts = new int[cityList.size()]; // accumulate minimum travel costs through each city\n boolean[] exploredCity = new boolean[cityList.size()];\n int currCityId = src.getId();\n Arrays.fill(travelCosts, INF); //All travel costs are INF\n travelCosts[currCityId - 1] = 0; //except src\n\n //Iterate\n for (int i = 0; i < cityList.size(); i++) {\n int minCost = INF;\n // if we get destination, ignore, it will be last explored city\n if (currCityId != dest.getId())\n exploredCity[currCityId - 1] = true;\n //find all paths of city to iterate\n Set<Path> paths = findAllPaths(cityList.get(currCityId - 1));\n for (Path path : paths) {\n if (exploredCity[path.getDestId() - 1])\n continue;\n //if from city cost + path cost < to city cost, then assign new value\n if (path.getCost() + travelCosts[path.getSrcId() - 1] < travelCosts[path.getDestId() - 1]) {\n travelCosts[path.getDestId() - 1] = travelCosts[path.getSrcId() - 1] + path.getCost();\n }\n //find minimum path cost of cur city\n if (path.getCost() < minCost) {\n minCost = path.getCost();\n currCityId = path.getDestId();\n }\n }\n //to find remaining not explored cities\n if (minCost == INF) {\n for (int j = 0; j < exploredCity.length; j++) {\n if (!exploredCity[j] && dest.getId() != (j + 1) && travelCosts[j] != INF) {\n currCityId = j + 1;\n }\n }\n }\n }\n //last explored city is destination\n exploredCity[dest.getId() - 1] = true;\n\n return travelCosts[dest.getId() - 1];\n }", "public City getEndCity() {\n \treturn vertex2;\n }", "public City getCityAt(Position p);", "private int findCity(City<E> obj){\n\t\tfor(int i = 0; i < graphList.size(); i++){\n\t\t\tif(graphList.get(i).cityEquals(obj)){\n\t\t\t\treturn i;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"city not found, in graph findCity method\");\n\t\treturn -1;\n\t}", "public void searchByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.next();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(\"Result: \"+i.getFirstName()));\n }", "private void selectFirstAirfield(final Nation nation) {\n view.getAirfields().get(nation).getSelectionModel().selectFirst();\n }", "private static int searchCities(City start, int product)\n {\n Set<City> visited = new HashSet<>();\n Queue<City> toVisit = new LinkedList<>();\n Queue<City> visitNext;\n\n visited.add(start);\n toVisit.add(start);\n\n int threshold = start.distanceFromCapital;\n int bestCity = Integer.MAX_VALUE;\n\n while (threshold >= 0)\n {\n visitNext = new LinkedList<>();\n while (!toVisit.isEmpty())\n {\n City current = toVisit.poll();\n if (current.product == product && current.number < bestCity)\n {\n bestCity = current.number;\n }\n for (City adjacent : current.paths)\n {\n if (!visited.contains(adjacent))\n {\n visited.add(adjacent);\n if (adjacent.distanceFromCapital < threshold)\n {\n visitNext.add(adjacent);\n }\n else\n {\n toVisit.add(adjacent);\n }\n }\n }\n }\n if (bestCity < Integer.MAX_VALUE)\n {\n return bestCity;\n }\n toVisit = visitNext;\n threshold -= 1;\n }\n return -1;\n }", "private String getStartingVertexCityName() {\r\n\t\treturn this.startingVertexCityName;\r\n\t}", "public Square step() {\n // TODO\n \tSquare c = exploreList.getNext();\n \tSquare realSquare = sea.getSea()[c.getRow()][c.getCol()];\n // check for if we are visited, if so return to skip processing current square\n \tif(realSquare.isVisited()) {\n \t\treturn c;\n \t\t\n \t}\n \trealSquare.setVisited();\n \tfor(Square neighs : sea.getAdjacentArea(realSquare)) {\n \t\tif(neighs.getPrevious() ==null) {\n \n \t\tneighs.setPrevious(c);\n \t\texploreList.add(neighs);\n \t\t}\n\t\telse {\n\t\tif(!neighs.isVisited()) {\n \t\t\tSquare n = new Square(neighs.getRow(), neighs.getCol(), neighs.getType());\n \t\t\tn.setPrevious(c);\n \t\t\texploreList.add(n);\n}\n\t\t}\n \t}\n \treturn c;\n\n }", "public void next()\n\t{\n\t\tif(this.curseur < this.listeTapis.size() - 1)\n\t\t{\n\t\t\tthis.curseur++;\n\t\t}\n\t}", "private void nextSelect() {\n\t\tif (selectionIndex + 1 > selections.size() - 1) {\n\t\t\tselectionIndex = 0;\n\t\t} else {\n\t\t\tselectionIndex++;\n\t\t}\n\t\tselected.setVisible(true);\n\t\tselected = selections.get(selectionIndex);\n\t\t\n\t}", "public void nextCountry(View view) {\n if (!countryList.getCountryList().isEmpty() && index < countryList.getCountryList().size()) {\n index += 1;\n displayCountry();\n }\n }", "private void addCities() {\n int random2 = 0;\n for (int i = 1; i < MAP_LENGTH-1; i++) {\n for (int j = 1; j < MAP_LENGTH-1; j++) {\n if (tileMap[i][j].getTerrain() instanceof Grass) { //Make cities on grass tiles only\n random2 = (int)(Math.round(Math.random()*18));\n if (!adjacentCity(i, j) && (random2 < 3)) {\n tileMap[i][j].setCity(new City(i, j, false)); //If randomly chosen and not in proximity of another city, create a city there (right now set as not a capital)\n }\n }\n }\n }\n }", "private void setupAnts() {\n IntStream.range(0, numberOfAnts)\n .forEach(i -> {\n ants.forEach(ant -> {\n ant.clear();\n ant.visitCity(-1, random.nextInt(numberOfCities));\n });\n });\n currentIndex = 0;\n }", "public MapElement getNextElement(Direction dir) {\n //System.out.println(\"Le lett kérve a következő palyaelem.\");\n return neighbours[dir.getValue()];\n }", "private static CIty chaxunniangen(int i, ArrayList<CIty> citys) {\n\t\tIterator it=citys.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tCIty c=(CIty)it.next();\r\n\t\t\tif(c.year==i)\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void gotoNext(){\r\n if(curr == null){\r\n return;\r\n }\r\n prev = curr;\r\n curr = curr.link;\r\n }", "public City fst() {\n return city1;\n }", "private void setAdjacentCities(List <CityByDegrees> cityList)\r\n\t{\r\n\t\t//get a mapping of interstates to cities\r\n\t\tHashMap<String, Set<CityByDegrees>> interstateMap = new HashMap<String, Set<CityByDegrees>>();\r\n\t\tfor(int i = 0; i < cityList.size(); i++)\r\n\t\t{\r\n\t\t\tList interstates = ((CityByDegrees)cityList.get(i)).getInterstates();\r\n\t\t\tfor(int j = 0; j < interstates.size(); j++)\r\n\t\t\t{\r\n\t\t\t\tString interstate = (String)interstates.get(j);\r\n\t\t\t\tif(interstateMap.containsKey(interstate)) {\r\n\t\t\t\t\t((Set)interstateMap.get(interstate)).add(cityList.get(i));\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tSet <CityByDegrees> interstateCitySet = new HashSet<CityByDegrees>();\r\n\t\t\t\t\tinterstateCitySet.add(cityList.get(i));\r\n\t\t\t\t\tinterstateMap.put(interstate, interstateCitySet);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}//end for\r\n\r\n\t\t//get a mapping of vertices to each city\r\n\t\tfor(int i = 0; i < cityList.size(); i++)\r\n\t\t{\r\n\t\t\tList interstates = ((CityByDegrees)cityList.get(i)).getInterstates();\r\n\t\t\tfor(int j = 0; j < interstates.size(); j++)\r\n\t\t\t{\r\n\r\n\t\t\t\tString interstate = (String)interstates.get(j);\r\n\t\t\t\tHashSet<CityByDegrees> interstateCitySet = (HashSet)interstateMap.get(interstate);\r\n\r\n\t\t\t\tif(interstateCitySet.contains(cityList.get(i))) {\r\n\t\t\t\t\tIterator iterator = interstateCitySet.iterator();\r\n\t\t\t\t\twhile(iterator.hasNext()) {\r\n\t\t\t\t\t\tCityByDegrees temp = (CityByDegrees)iterator.next();\r\n\t\t\t\t\t\tif(!temp.getCity().equals( ((CityByDegrees)cityList.get(i)).getCity()))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t((CityByDegrees)cityList.get(i)).addAdjacentCity(temp);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}//end for\r\n\r\n\t}", "private Address getNextAddress(Address addr) {\n\n\t\tInstruction instr = listing.getInstructionAfter(addr);\n\t\tAddress instrAddr = instr != null ? instr.getMinAddress() : null;\n\n\t\treturn instrAddr;\n// ?? ITERATOR HAS BEEN MODIFIED TO ONLY RETURN INSTRUCTION BLOCKS\n\n// Data data = getDefinedDataAfter(addr);\n// Address dataAddr = data != null ? data.getMinAddress() : null;\n// \n// if (instrAddr != null) {\n// \tif (dataAddr != null) {\n// \t\treturn (instrAddr.compareTo(dataAddr) < 0) ? instrAddr : dataAddr;\n// \t}\n// \telse {\n// \t\treturn instrAddr;\n// \t}\n// }\n// return dataAddr;\n\t}", "protected Location nextLocation()\n {\n // Get list of neighboring empty locations.\n ArrayList emptyNbrs = emptyNeighbors();\n\n // Remove the location behind, since fish do not move backwards.\n Direction oppositeDir = direction().reverse();\n Location locationBehind = environment().getNeighbor(location(),\n oppositeDir);\n emptyNbrs.remove(locationBehind);\n Debug.print(\"Possible new locations are: \" + emptyNbrs.toString());\n\n // If there are no valid empty neighboring locations, then we're done.\n if ( emptyNbrs.size() == 0 )\n return location();\n\n // Return a randomly chosen neighboring empty location.\n Random randNumGen = RandNumGenerator.getInstance();\n int randNum = randNumGen.nextInt(emptyNbrs.size());\n\t return (Location) emptyNbrs.get(randNum);\n }", "private boolean wasVisited(int city){\n\t\treturn this.getGraph().wasVisited(city);\n\t}", "@Override\n\tpublic Agent selectNextAgent(int ts){\n\n\t\tLinkedList<Agent> list;\n\t\tLinkedList<Agent> yours = null;\n\t\tLinkedList<Agent> others = null;\n\t\tlist=this.carlos.network.availableAgentsInTS;\n\n\t\tif(this.targetValue == 1){\n\t\t\tyours = this.carlos.network.availablePosAgentsInTS;\n\t\t\tothers = this.carlos.network.availableNegAgentsInTS; \n\t\t}\n\t\telse if(this.targetValue == -1){\n\t\t\tothers = this.carlos.network.availablePosAgentsInTS;\n\t\t\tyours = this.carlos.network.availableNegAgentsInTS; \n\t\t}\n\t\t\n\t\t//safe yours\n\t\tfor(Agent agent : yours){\n\t\t\tdouble tauPos = carlos.network.getTauPos(agent, ts-1);\n\t\t\tif(targetValue == 1 && (1-tauPos) < carlos.tau){\n\t\t\t\tcontinue; //safe\n\t\t\t}\n\t\t\t\n\t\t\tif(targetValue == -1 && (tauPos) < carlos.tau){\n\t\t\t\tcontinue; //safe\n\t\t\t}\n\t\t\t\n\t\t\t//System.out.println(\"TakeSing: found one\");\n\t\t\treturn agent;\n\t\t}\n\t\t\n\t\t//Steel others which you can get\n\t\tfor(Agent agent: others){\n\t\t\tdouble tauPos = carlos.network.getTauPos(agent, ts-1);\n\t\t\tif(targetValue == 1 && (tauPos) < carlos.tau){\n\t\t\t\tcontinue; //lost anyway\n\t\t\t}\n\t\t\t\n\t\t\tif(targetValue == -1 && (1-tauPos) < carlos.tau){\n\t\t\t\tcontinue; //lost anyway\n\t\t\t}\n\t\t\t//System.out.println(\"TakeSing: found one\");\n\t\t\treturn agent;\n\t\t}\n\t\t\n\t\treturn this.carlos.network.availableAgentsInTS.getFirst();\n\t}", "private boolean adjacentCity(int cityR, int cityC) {\n for (int i = 0; i < MAP_LENGTH; i++) {\n for (int j = 0; j < MAP_LENGTH; j++) {\n if (tileMap[i][j] != null) {\n if (tileMap[i][j].getCity() != null) {\n if (((Math.abs(cityR - i)) <= 2) && ((Math.abs(cityC - j)) <= 2)) {\n return true;\n }\n }\n }\n }\n }\n return false;\n }", "public City randomlyAssignCity()\n {\n int cityReferenceNumber = (int)(Math.random()*(getContainerSize() - 1)) + 1;\n City randomCity = cityContainer.get(cityReferenceNumber);\n \n return randomCity;\n }", "private void setStartingVertexCityName(String vertexCityName) {\r\n\t\tthis.startingVertexCityName = vertexCityName;\r\n\t}", "private Location getNextLocation() {\n Location location = new Location(MockLocationEngine.class.getSimpleName());\n location.setLatitude(locations[currentIndex][0]);\n location.setLongitude(locations[currentIndex][1]);\n currentIndex = (currentIndex == locations.length - 1 ? 0 : currentIndex + 1);\n return location;\n }", "public void goToNextDay() {\n currDay ++;\n\n // at the beginning of a new day, all the unvisited POIs should be feasible\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void setNextRoad(CarAcceptor r) {\n\t\tthis.firstRoad = r;\n\t}", "public void setNextLocation(Location loc) {\n\n\t\tthis.nextLoc = loc;\n\n\t}", "public void setArrivalCity(String arrivalCity) throws Exception {\n\t\tarrivalCityElement.click();\n\t\tarrivalCityElement.sendKeys(arrivalCity);\n\t\t\n\t\twaitForElementToAppear(airportListArrival);\n\t \tdriver.switchTo();\n\t \t\n\t \tList<WebElement> airPorts = airportListArrival.findElements(By.id(\"air-city-arrival-menu-item\"));\n\t \tfor (WebElement e: airPorts) {\n\t \t if (e.getText().contains(arrivalCity))\n\t \t \te.click();\n\t \t \tbreak;\n\t \t }\n\t}", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n cityId = aKodeKota[i];\n }", "@Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n cityId = aKodeKota[i];\n }", "public Location decideNextLocationToPlay(Location loc)\n\t{\n\t\tBoard board = Game.getInstance().getBoard();\n\t\tfor (int i = 0; i < board.getRows(); i++)\n\t\t\tfor (int j = 0; j < board.getColumns(); j++)\n\t\t\t{\n\t\t\t\tif (board.getPiece(i, j) == Piece.Empty)\n\t\t\t\t\treturn new Location(i,j);\n\t\t\t}\n\t\t\n\t\treturn new Location(0,0);\n\t}", "public void setDepartCity(String departCity) throws Exception {\n\t\tdepartCityElement.click();\n\t\tdepartCityElement.sendKeys(departCity);\n\t\t\n\t\twaitForElementToAppear(airportListDeparting);\n\t \tdriver.switchTo();\n\t \tList<WebElement> airPorts = airportListDeparting.findElements(By.id(\"air-city-departure-menu-item\"));\n\t \tfor (WebElement e: airPorts) {\n\t \t if (e.getText().contains(departCity))\n\t \t \t\te.click();\n\t \t \t\tbreak;\n\t \t }\n\t}", "public String selectReturnPlace(String dest) throws InterruptedException {\n\n destination.clear();\n destination.sendKeys(dest);\n Thread.sleep(5000);\n destionationAirport= destionationTmenu.findElement(By.xpath(\"//span[contains(text(),'NYC')]\"));\n wait.until(ExpectedConditions.visibilityOf(destionationAirport));\n action.moveToElement(destionationAirport).click();\n System.out.println(\"Kolkata Airport is selected\");\n return destionationAirport.getText();\n }", "public static City buildMapFromNewYork(){\n City bangorME = new City(\"Bangor, ME\");\n \n City portlandME = new City(\"Portland, ME\");\n connect(portlandME, bangorME, 118);\n \n City portsmouthNH = new City(\"Portsmouth, NH\");\n connect(portsmouthNH, portlandME, 55);\n \n City burlingtonVT = new City(\"Burlington, VT\");\n connect(burlingtonVT, portsmouthNH, 190);\n connect(burlingtonVT, portlandME, 259);\n \n City bostonMA = new City(\"Boston, MA\");\n connect(bostonMA, portsmouthNH, 60);\n \n City providenceRI = new City(\"Providence, RI\");\n connect(providenceRI, bostonMA, 53);\n \n City worcesterMA = new City(\"Worcester, MA\");\n connect(worcesterMA, bostonMA, 49);\n connect(worcesterMA, portsmouthNH, 83);\n connect(worcesterMA, providenceRI, 44);\n \n City albanyNY = new City(\"Albany, NY\");\n connect(albanyNY, burlingtonVT, 177);\n connect(albanyNY, worcesterMA, 128);\n \n City newHavenCT = new City(\"New Haven, CT\");\n connect(newHavenCT, worcesterMA, 97);\n connect(newHavenCT, providenceRI, 100);\n \n City newYorkNY = new City(\"New York, NY\");\n connect(newYorkNY, newHavenCT, 79);\n connect(newYorkNY, albanyNY, 141);\n \n City buffaloNY = new City(\"Buffalo, NY\");\n connect(buffaloNY, albanyNY, 266);\n \n City philadelphiaPA = new City(\"Philadelphia, PA\");\n connect(philadelphiaPA, newYorkNY, 98);\n \n City washingtonDC = new City(\"Washington, DC\");\n connect(washingtonDC, philadelphiaPA, 145);\n \n City pittsburghPA = new City(\"Pittsburgh, PA\");\n connect(pittsburghPA, washingtonDC, 240);\n connect(pittsburghPA, philadelphiaPA, 288);\n connect(pittsburghPA, buffaloNY, 200);\n \n City clevelandOH = new City(\"Cleveland, OH\");\n connect(clevelandOH, pittsburghPA, 133);\n connect(clevelandOH, buffaloNY, 183);\n \n City richmondVA = new City(\"Richmond, VA\");\n connect(richmondVA, washingtonDC, 105);\n \n City charlestonWV = new City(\"Charleston, WV\");\n connect(charlestonWV, pittsburghPA, 213);\n connect(charlestonWV, washingtonDC, 343);\n connect(charlestonWV, richmondVA, 297);\n \n City charlotteNC = new City(\"Charlotte, NC\");\n connect(charlotteNC, richmondVA, 260);\n connect(charlotteNC, charlestonWV, 254);\n \n City atlantaGA = new City(\"Atlanta, GA\");\n connect(atlantaGA, charlotteNC, 229);\n \n City jacksonvilleFL = new City(\"Jacksonville, FL\");\n connect(jacksonvilleFL, atlantaGA, 300);\n connect(jacksonvilleFL, charlotteNC, 337);\n \n City miamiFL = new City(\"Miami, FL\");\n connect(miamiFL, jacksonvilleFL, 308);\n \n City tampaFL = new City(\"Tampa, FL\");\n connect(tampaFL, miamiFL, 251);\n connect(tampaFL, jacksonvilleFL, 187);\n \n City newOrleansLA = new City(\"New Orleans, LA\");\n connect(newOrleansLA, jacksonvilleFL, 473);\n connect(newOrleansLA, tampaFL, 563);\n connect(newOrleansLA, atlantaGA, 410);\n \n City nashvilleTN = new City(\"Nashville, TN\");\n connect(nashvilleTN, charlotteNC, 390);\n connect(nashvilleTN, atlantaGA, 226);\n connect(nashvilleTN, charlestonWV, 350);\n \n City memphisTN = new City(\"Memphis, TN\");\n connect(memphisTN, nashvilleTN, 191);\n connect(memphisTN, newOrleansLA, 347);\n connect(memphisTN, atlantaGA, 346);\n \n City detroitMI = new City(\"Detroit, MI\");\n connect(detroitMI, clevelandOH, 164);\n \n City indianapolisIN = new City(\"Indianapolis, IN\");\n connect(indianapolisIN, nashvilleTN, 264);\n connect(indianapolisIN, pittsburghPA, 339);\n connect(indianapolisIN, clevelandOH, 294);\n connect(indianapolisIN, detroitMI, 265);\n connect(indianapolisIN, charlestonWV, 299);\n \n City chicagoIL = new City(\"Chicago, IL\");\n connect(chicagoIL, detroitMI, 265);\n connect(chicagoIL, indianapolisIN, 177);\n \n City milwaukeeWI = new City(\"Milwaukee, WI\");\n connect(milwaukeeWI, chicagoIL, 89);\n \n City minneapolisMN = new City(\"Minneapolis, MN\");\n connect(minneapolisMN, milwaukeeWI, 300);\n \n City fargoND = new City(\"Fargo, ND\");\n connect(fargoND, minneapolisMN, 213);\n \n City siouxFallsSD = new City(\"Sioux Falls, SD\");\n connect(siouxFallsSD, fargoND, 214);\n connect(siouxFallsSD, minneapolisMN, 230);\n connect(siouxFallsSD, milwaukeeWI, 443);\n \n City omahaNE = new City(\"Omaha, NE\");\n connect(omahaNE, siouxFallsSD, 164);\n \n City desMoinesIA = new City(\"Des Moines, IA\");\n connect(desMoinesIA, omahaNE, 124);\n connect(desMoinesIA, chicagoIL, 306);\n connect(desMoinesIA, minneapolisMN, 221);\n \n City stLouisMO = new City(\"St. Louis, MO\");\n connect(stLouisMO, chicagoIL, 286);\n connect(stLouisMO, indianapolisIN, 235);\n connect(stLouisMO, nashvilleTN, 281);\n connect(stLouisMO, memphisTN, 256);\n \n City kansasCityMO = new City(\"Kansas City, MO\");\n connect(kansasCityMO, omahaNE, 168);\n connect(kansasCityMO, desMoinesIA, 176);\n connect(kansasCityMO, stLouisMO, 226);\n \n City oklahomaCityOK = new City(\"Oklahoma City, OK\");\n connect(oklahomaCityOK, kansasCityMO, 312);\n connect(oklahomaCityOK, stLouisMO, 449);\n connect(oklahomaCityOK, memphisTN, 416);\n \n City dallasTX = new City(\"Dallas, TX\");\n connect(dallasTX, oklahomaCityOK, 189);\n connect(dallasTX, memphisTN, 408);\n connect(dallasTX, newOrleansLA, 455);\n \n City houstonTX = new City(\"Houston, TX\");\n connect(houstonTX, dallasTX, 214);\n connect(houstonTX, newOrleansLA, 313);\n \n City sanAntonioTX = new City(\"San Antonio, TX\");\n connect(sanAntonioTX, dallasTX, 246);\n connect(sanAntonioTX, houstonTX, 182);\n \n City elPasoTX = new City(\"El Paso, TX\");\n connect(elPasoTX, dallasTX, 552);\n connect(elPasoTX, sanAntonioTX, 473);\n \n City albuquerqueNM = new City(\"Albuquerque, NM\");\n connect(albuquerqueNM, elPasoTX, 234);\n connect(albuquerqueNM, oklahomaCityOK, 482);\n \n City denverCO = new City(\"Denver, CO\");\n connect(denverCO, albuquerqueNM, 392);\n connect(denverCO, kansasCityMO, 528);\n connect(denverCO, omahaNE, 466);\n \n City billingsMT = new City(\"Billings, MT\");\n connect(billingsMT, denverCO, 485);\n connect(billingsMT, siouxFallsSD, 597);\n connect(billingsMT, fargoND, 529);\n \n City butteMT = new City(\"Butte, MT\");\n connect(butteMT, billingsMT, 211);\n \n City saltLakeCityUT = new City(\"Salt Lake City, UT\");\n connect(saltLakeCityUT, butteMT, 366);\n connect(saltLakeCityUT, denverCO, 480);\n \n City phoenixAZ = new City(\"Phoenix, AZ\");\n connect(phoenixAZ, elPasoTX, 379);\n connect(phoenixAZ, albuquerqueNM, 397);\n \n City lasVegasNV = new City(\"Las Vegas, NV\");\n connect(lasVegasNV, saltLakeCityUT, 369);\n connect(lasVegasNV, albuquerqueNM, 514);\n connect(lasVegasNV, phoenixAZ, 294);\n \n City losAngelesCA = new City(\"Los Angeles, CA\");\n connect(losAngelesCA, lasVegasNV, 263);\n connect(losAngelesCA, phoenixAZ, 350);\n \n City sanDiegoCA = new City(\"San Diego, CA\");\n connect(sanDiegoCA, losAngelesCA, 116);\n connect(sanDiegoCA, phoenixAZ, 335);\n connect(sanDiegoCA, lasVegasNV, 311);\n \n City montereyCA = new City(\"Monterey, CA\");\n connect(montereyCA, losAngelesCA, 319);\n \n City sanFranciscoCA = new City(\"San Francisco, CA\");\n connect(sanFranciscoCA, montereyCA, 114);\n connect(sanFranciscoCA, losAngelesCA, 358);\n \n City sacramentoCA = new City(\"Sacramento, CA\");\n connect(sacramentoCA, sanFranciscoCA, 84);\n connect(sacramentoCA, saltLakeCityUT, 585);\n \n City boiseID = new City(\"Boise, ID\");\n connect(boiseID, butteMT, 393);\n connect(boiseID, saltLakeCityUT, 301);\n \n City portlandOR = new City(\"Portland, OR\");\n connect(portlandOR, sacramentoCA, 538);\n connect(portlandOR, boiseID, 407);\n \n City seattleWA = new City(\"Seattle, WA\");\n connect(seattleWA, portlandOR, 175);\n connect(seattleWA, butteMT, 544);\n connect(seattleWA, boiseID, 472);\n \n //change this return city to start wherever you want\n return newYorkNY;\n }", "GARoute(){\n cityIndex = new ArrayList<Integer>();\n }", "public MoveAddress nextVariationFirstState() {\n MoveAddress other = nextVariation(1);\n return other.firstChild(1, 0);\n }", "private String randomCityId(RandomNumberGenerator random) {\n long targetPop = (long) (random.rand() * totalPopulation);\n\n for (Map.Entry<String, Long> city : populationByCityId.entrySet()) {\n targetPop -= city.getValue();\n\n if (targetPop < 0) {\n return city.getKey();\n }\n }\n\n // should never happen\n throw new RuntimeException(\"Unable to select a random city id.\");\n }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "Location selectMoveLocation(ArrayList<Location> locs);", "public void selectFirstFlight() {\n getDriver().manage().timeouts().implicitlyWait(2, TimeUnit.SECONDS);\n firstFlight.selectFirstFlight();\n }", "public static int nextNode(directed_weighted_graph g, CL_Agent agent, int src, List<CL_Pokemon> c) {\n int ans = -1;\n dw_graph_algorithms ga = new DWGraph_Algo();\n ga.init(g);\n for (int a = 0; a < c.size(); a++) {\n Arena.updateEdge(c.get(a), g);\n }\n int fdest = -1;\n double mint = Double.MAX_VALUE;\n CL_Pokemon ca = null;\n for (CL_Pokemon pokemon : c) {\n if (arna.can_he_go(agent.getID(), pokemon)) {\n int dest = pokemon.get_edge().getDest();\n if (pokemon.getType() > 0) {\n dest = pokemon.get_edge().getSrc();\n }\n double t = ga.shortestPathDist(src, dest) / agent.getSpeed() / pokemon.getValue();\n if (t >= 0 && t < mint) {\n ca = pokemon;\n mint = t;\n fdest = dest;\n if (t == 0) {\n fdest = pokemon.get_edge().getSrc();\n if (pokemon.getType() > 0) {\n fdest = pokemon.get_edge().getDest();\n }\n }\n }\n\n }\n }\n\n if (fdest != -1) {\n agent.set_curr_fruit(ca);\n arna.i_am_going(agent.getID(), ca.get_edge());\n List<node_data> p = ga.shortestPath(src, fdest);\n ans = p.get(1).getKey();\n agent.setNextNode(p.get(1).getKey());\n } else {\n double min = Double.MAX_VALUE;\n Iterator<edge_data> edge = g.getE(agent.getSrcNode()).iterator();\n while (edge.hasNext()) {\n edge_data t = edge.next();\n if (min > g.getNode(agent.getSrcNode()).getLocation().distance(g.getNode(t.getDest()).getLocation())) {\n min = g.getNode(agent.getSrcNode()).getLocation().distance(g.getNode(t.getDest()).getLocation());\n ans = t.getDest();\n\n }\n\n }\n }\n return ans;\n }", "public Direction nextMove(HashMap<String, MazePosition> players,ArrayList<MazePosition> jewels, MazeView maze) {\n\t\n\t Direction choise = Direction.NORTH;\n\t MazePosition Jplayer = players.get(this.name);\n\t \n\n\t\t if((maze.canMove(Jplayer, Direction.CENTER))){\n\t\t\t \tchoise = Direction.CENTER;\n\t\t }\n\t\t else if((maze.canMove(Jplayer, Direction.NORTH))){\n\t\t\t \t\tchoise = Direction.NORTH;\n\t\t }\t \n\t\t else if ((maze.canMove(Jplayer, Direction.EAST))){\n\t\t\t \t\tchoise = Direction.EAST;\n\t\t }\n\t\t else if ((maze.canMove(Jplayer, Direction.WEST))){\n\t\t\t \t\tchoise = Direction.WEST;\n\t\t }\n\t\t else if((maze.canMove(Jplayer, Direction.SOUTH))){\n\t\t\t \t\tchoise = Direction.SOUTH;\n\t\t }\n\t\t return choise;\n }", "public CrossRoad getNextIntermediateDestination()\n\t{\n\t\treturn this.getHead().getIntermediate();\n\t}", "private void findNext() {\n \tthis.find(true);\n }", "private static CIty chaxunjibandi(String jibandi, ArrayList<CIty> citys) {\n\t\tIterator it=citys.iterator();\r\n\t\twhile(it.hasNext()){\r\n\t\t\tCIty c=(CIty)it.next();\r\n\t\t\tif(c.place.equals(jibandi))\r\n\t\t\t\treturn c;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void viewByCity() {\n System.out.println(\"Enter City Name : \");\n String city = sc.nextLine();\n list.stream().filter(n -> n.getCity().equals(city)).forEach(i -> System.out.println(i));\n }", "public HomePage selectCityName() throws InterruptedException{\n\tWebElement cityNameVal=driver.findElements(selectCityFromCityDropdown).get(0);\n\t\n\t\n\tWebElement myDynamicElement = (new WebDriverWait(driver, 30)).until(ExpectedConditions.elementToBeClickable(cityNameVal));\t\n\t\n\t//wait.until(ExpectedConditions.elementToBeClickable(cityNameVal));\t\n\n\t//cityNameVal.click();\n\tmyDynamicElement.click();\n\t\t\n\treturn this;\n\t\t\n\t\t\t\n\t\t\t\n}", "public void setAdjacent(int city1, int city2){\r\n\t\tcheckCityNoRange(city1);\r\n\t\tcheckCityNoRange(city2);\r\n\t\tif(city1 == city2)\r\n\t\t\tthrow new IllegalArgumentException(\"must be 2 different cities\");\r\n\t\t\r\n\t\tcity1 --;\r\n\t\tcity2 --;\r\n\t\tcities[city1].addAdjcentNode(city2);\r\n\t\tcities[city2].addAdjcentNode(city1);\r\n\t}", "public void selectMoveLocation(ArrayList<Location> locs) {\n\n\tif (!locs.isEmpty()) {\n\n\t int size = locs.size();\n\t int maxIndex = 0;\n\t Location loc = getLocation();\n\t double totalWeight = 0;\n\t double key;\n\t double weight;\n\n\t for (int direction : dirCounter.keySet()) {\n\t \n\t\ttotalWeight += dirCounter.get(direction);\n\t }\n\n\t weight = (double)dirCounter.get(loc.getDirectionToward(locs.get(0))) / totalWeight;\n\t double maxKey = Math.pow(Math.random(), (1.0 / weight));\n\t for (int i = 1; i < size; i++) {\n\n\t\tweight = dirCounter.get(loc.getDirectionToward(locs.get(i))) / totalWeight;\n\t\tkey = Math.pow(Math.random(), (1.0 / weight ));\n\n\t\tif (maxKey < key) {\n\t\t maxKey = key;\n\t\t maxIndex = i;\n\t\t}\n\t }\n\t next = locs.get(maxIndex);\n\t}\n\n }", "public City(String cit) {\n this.thecity = cit;\n city.add(this);\n }", "private int getNextLocation(LocationLst filteredList, LatLong startPos)\n {\n int index = Integer.MIN_VALUE;\n double oldDistance = Double.MAX_VALUE;\n\n if (filteredList.size() == 0)\n return index;\n\n // get next location\n for (int i = 0; i < filteredList.size(); i++) {\n double newDistance = getDistanceInKM(startPos, filteredList.getLocation(i).getLatLong());\n\n if(oldDistance > newDistance) {\n oldDistance = newDistance;\n index = i;\n }\n }\n return index;\n }", "@Test\n public void readyToTravel()\n {\n Position p = country1.readyToTravel(cityA, cityB);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),4);\n assertEquals(p.getTotal(),4);\n //From.equals(To)\n p = country1.readyToTravel(cityA, cityA);\n assertEquals(p.getFrom(), cityA);\n assertEquals(p.getTo(), cityA);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //No direct path from from to to.\n p = country1.readyToTravel(cityB, cityC);\n assertEquals(p.getFrom(), cityB);\n assertEquals(p.getTo(), cityB);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n //From not in the country.\n p = country1.readyToTravel(cityG, cityA);\n assertEquals(p.getFrom(), cityG);\n assertEquals(p.getTo(), cityG);\n assertEquals(p.getDistance(),0);\n assertEquals(p.getTotal(),0);\n \n //To is in another country\n p = country1.readyToTravel(cityD, cityF);\n assertEquals(p.getFrom(), cityD);\n assertEquals(p.getTo(), cityF);\n assertEquals(p.getDistance(),3);\n assertEquals(p.getTotal(),3);\n }", "public Address city(String city) {\n this.city = city;\n return this;\n }", "public static int[] solution(int[] T) {\n int capital = -1;\n Map<Integer,List<Integer>> con = new HashMap<Integer,List<Integer>>(); //store the connectivity between cities\n for(int i=0;i<T.length;i++){\n if(i==T[i]){\n capital = i;\n }\n //there is a single road path between these cities\n if(!con.containsKey(i)){\n con.put(i, new ArrayList<Integer>());\n }\n if(i!=T[i])\n con.get(i).add(T[i]);\n //we can also go other way round\n if(!con.containsKey(T[i])){\n con.put(T[i], new ArrayList<Integer>());\n }\n if(i!=T[i])\n con.get(T[i]).add(i);\n //System.out.println(\"adding pairs:\"+T[i]+\" and:\"+i);\n \n }\n //for(Integer ii:con.keySet()){\n // System.out.println(\"node \"+ii+\" has neighbors:\"+Arrays.toString(con.get(ii).toArray()));\n //}\n //after initializing the one-road connectivity between the cities, we need to count the\n //number of cities at each distance\n int[] citCount = new int[T.length-1];\n // assume it starts from 0 but has the equivalence to 1 index array, i.e. we store citCount[0] as the no. of cities having 1 dist to capital\n HashSet<Integer> visitedCities = new HashSet<Integer>();\n List<Integer> lastCities = null;\n for(int i=0;i<T.length;i++){\n //last iteration cities\n if(i==0){\n lastCities = con.get(capital);\n citCount[i] = lastCities.size(); //the nodes directly connected to capital city\n visitedCities.addAll(con.get(capital));\n visitedCities.add(capital);\n System.out.println(\"the \"+(i+1)+\" neighbors of \"+capital+\"..are:\"+Arrays.toString(con.get(capital).toArray()));\n }else{\n //get the neighbor of the last cities\n int neighborcount = 0;\n List<Integer> newCities = new ArrayList<Integer>();\n for(Integer ii:lastCities){\n List<Integer> n = con.get(ii);\n for(Integer nn:n){\n if(!visitedCities.contains(nn)){\n neighborcount++;\n newCities.add(nn);\n }\n }\n }\n visitedCities.addAll(lastCities);\n citCount[i] = neighborcount;\n System.out.println(\"the \"+(i+1)+\" neighbors of \"+capital+\"..are:\"+Arrays.toString(newCities.toArray()));\n lastCities.clear();\n lastCities.addAll(newCities);\n //lastCities.removeAll(visitedCities);\n }\n \n }\n \n \n return citCount;\n }", "private void determineStartingLocation(Car carOne, Car carTwo, Car carThree) {\n ArrayList<Integer> locationPlaces = new ArrayList<Integer>();\n locationPlaces.add(1);// 0\n locationPlaces.add(2);// 1\n locationPlaces.add(3);// 2\n locationPlaces.add(4);// 3\n\n Collections.shuffle(locationPlaces);\n\n carOne.setLocation(locationPlaces.get(0));\n carTwo.setLocation(locationPlaces.get(1));\n carThree.setLocation(locationPlaces.get(2));\n }", "public Demographics randomCity(RandomNumberGenerator random) {\n if (city != null) {\n // if we're only generating one city at a time, just use the largest entry for that one city\n if (fixedCity == null) {\n fixedCity = demographics.values().stream()\n .filter(d -> d.city.equalsIgnoreCase(city))\n .sorted().findFirst().get();\n }\n return fixedCity;\n }\n return demographics.get(randomCityId(random));\n }", "public void setCurrentCity(City newCity) {\n\t\tcurrentCity = newCity;\n\t\tchange();\n\t}", "protected void addAdjacentCity(CityByDegrees adjCity) {\r\n\t\t\tadjacentCitySet.add(adjCity);\r\n\t\t}", "private void selectFirstRegion(final Nation nation) {\n view.getRegions().get(nation).getSelectionModel().selectFirst();\n }", "public void setCurrentCity(StringFilter currentCity) {\n\t\tthis.currentCity = currentCity;\n\t}", "public void next()\r\n\t{\r\n\t\tif(state<3)\r\n\t\t\tstate++;\r\n\t\telse\r\n\t\t\tstate=1;\r\n\t}", "private int getNextAirportID(){\n\t\treturn this.airportIDCounter++;\n\t}", "public static Tour Cheapest (double distancematrix [][], List<Point> pointList) {\n Tour tour = new Tour(0);\n\n if (pointList.size() == 1){\n tour.addPoint(pointList.get(0));\n } else {\n\n int numbernodes;\n numbernodes = pointList.size();\n int visited[] = new int[numbernodes];\n int randomNum = ThreadLocalRandom.current().nextInt(1, numbernodes);\n int pointNumber = pointList.get(randomNum - 1).getPointNumber();;\n\n visited[pointNumber - 1] = 1;\n tour.addPoint(pointList.get(randomNum - 1));\n\n for (int i = 0; i < numbernodes; i++) {\n int cityIndex = pointList.get(i).getPointNumber() - 1;\n int pos = -1;\n if (visited[i] == 1) {\n } else {\n double distance;\n double minimum = Double.MAX_VALUE;\n int insertPoint = 0;\n for (int j = 1; j <= tour.getSize(); j++) {\n int vor = tour.getPoint((j - 1) % tour.getSize()).getPointNumber() - 1;\n int nach = tour.getPoint((j) % tour.getSize()).getPointNumber() - 1;\n distance = distancematrix[vor][cityIndex] + distancematrix[cityIndex][nach];\n if (distance < minimum) {\n minimum = distance;\n insertPoint = j % tour.getSize();\n pos = i;\n }\n }\n tour.insertPoint(insertPoint, pointList.get(i));\n visited[pos] = 1;\n }\n }\n }\n return tour;\n }", "public Node computePathToTraversePoint(Node source, Boolean sameElevation, int indexOfNextRegion) {\n\n Node backupTransferNode = null;\n boolean entered = false;\n source.minDistance = 0.;\n PriorityQueue<Node> nodeQueue = new PriorityQueue<Node>();\n nodeQueue.add(source);\n\n while (!nodeQueue.isEmpty()) {\n\n Node u = nodeQueue.poll();\n\n // Visit each edge exiting u\n for (Edge e : u._edges) {\n Node v = e.target;\n double weight = e.weight;\n double distanceThroughU = u.minDistance + weight;\n if (distanceThroughU < v.minDistance) {\n nodeQueue.remove(v);\n\n v.minDistance = distanceThroughU;\n v.previous = u;\n nodeQueue.add(v);\n }\n\n // if the elevation of the next region to travel is same as current region\n // find the nearest connect point and check if it is legal\n if(sameElevation == true && v._nodeType == CONNECTPOINT){\n\n // return v, only if the connect point is in the next region\n if(navigationGraph.get(indexOfNextRegion).nodesInSubgraph.get(v._waypointID) != null)\n return v;\n\n }\n\n // if the elevation of the next region to travel is different from current region\n // find the nearest elevator or stairwell based on user's preference\n else if(sameElevation == false && v._nodeType == getPreferenceValue()){\n tmpDestinationID.add(v._waypointID);\n return v;\n }\n else if(sameElevation == false && v._nodeType != getPreferenceValue() && v._nodeType!= NORMAL_WAYPOINT && entered == false){\n\n backupTransferNode = v;\n entered = true;\n }\n }\n }\n\n if(backupTransferNode != null)\n return backupTransferNode;\n else\n return source;\n }", "private int getRandomCity(ArrayList<Integer> listToGetRandomCities){\n int randomCity;\n int randomIndex = random.nextInt(listToGetRandomCities.size());\n\n randomCity = listToGetRandomCities.get(randomIndex);\n listToGetRandomCities.remove(randomIndex);\n return randomCity;\n }", "private void findMinimalDistances(City sourceCity) {\n\t\tList<City> adjacentCities = getNeighbors(sourceCity);\r\n\r\n\t\tfor (City target : adjacentCities) {\r\n\t\t\t// Compare the newly calculated tentative transportation cost to the current\r\n\t\t\t// assigned value and assign the smaller one.\r\n\t\t\tif (getShortestDistance(target) > getShortestDistance(sourceCity) + getDistance(sourceCity, target)) {\r\n\t\t\t\tdistance.put(target, getShortestDistance(sourceCity) + getDistance(sourceCity, target));\r\n\t\t\t\t// saves info on what was the city you came from\r\n\t\t\t\tpredecessors.put(target, sourceCity);\r\n\t\t\t\t// add neighbors as unsettled\r\n\t\t\t\tunSettledCities.add(target);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public City getCity(int index)\n {\n return cityContainer.get(index);\n }", "@Override\r\n\tpublic void buildCity() {\n\t\t\r\n\t}", "void becomesFestiveCity(){\r\n\t\t\tif(minDistToSubFestive == 0) return;\t// already a festive city\r\n\t\t\t\r\n\t\t\tminDistToSubFestive = 0;\r\n\t\t\t\r\n\t\t\t//update all the root nodes of this node\r\n\t\t\tIterator<Integer> itIdx = rootIndices.iterator();\r\n\t\t\tIterator<Integer> itDist = rootDists.iterator();\r\n\t\t\twhile(itIdx.hasNext()){\r\n\t\t\t\tint idx = itIdx.next();\r\n\t\t\t\tint dist = itDist.next();\r\n\t\t\t\tif(cities[idx].minDistToSubFestive > dist)\r\n\t\t\t\t\tcities[idx].minDistToSubFestive = dist;\r\n\t\t\t}\r\n\t\t}", "private void restartAnts() {\r\n\t\t\r\n\t\tint ai;\r\n\t\t\r\n\t\tfor(ai = 0; ai < ants.length; ai++) {\r\n\t\t\tAnt ant = ants[ai];\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Tour Length of \" + ant.tourLength + \" vs best of \" + bestPathLength);\r\n\t\t\t\r\n\t\t\tif(ant.tourLength < bestPathLength) {\r\n\t\t\t\tbestPathLength = ant.tourLength;\r\n\t\t\t\tbestIndex = ai;\r\n\t\t\t\tfor(int pi = 0; pi < cities.length; pi++) // copy best path\r\n\t\t\t\t\tbestPath[pi] = ant.path[pi];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tant.reset(cities.length, ai);\r\n\t\t\t\r\n\t\t}\r\n\t}", "void move_couple() {\n\t\tfor(int i = 0; i < d; i++){\n\t\t\tif(dancers[i].soulmate == -1) continue;\n\t\t\tPoint curr = this.last_positions[i];\n\t\t\tPoint des = this.dancers[i].des_pos;\n\t\t\tthis.dancers[i].next_pos = findNextPosition(curr, des);\n\t\t}\n\t}", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}" ]
[ "0.76886487", "0.6462185", "0.5920698", "0.5815037", "0.5780682", "0.5656972", "0.5638411", "0.5633101", "0.5571936", "0.554771", "0.5486019", "0.54748005", "0.5419385", "0.5405555", "0.5374795", "0.5370647", "0.5351341", "0.5333642", "0.52943254", "0.5292896", "0.5287506", "0.5251761", "0.524714", "0.5224425", "0.5219006", "0.52162814", "0.52148294", "0.519865", "0.51955676", "0.5175082", "0.5168782", "0.5160307", "0.5136072", "0.51231533", "0.5113718", "0.5111473", "0.51003027", "0.5092583", "0.5070928", "0.5070222", "0.50635576", "0.50614655", "0.502548", "0.5023207", "0.5014723", "0.5011204", "0.5010518", "0.5001866", "0.5000082", "0.49974674", "0.499489", "0.4993373", "0.49923867", "0.4991769", "0.4978648", "0.4971527", "0.49564016", "0.49564016", "0.4949316", "0.49483496", "0.49310273", "0.49063462", "0.48998335", "0.48975036", "0.48974174", "0.48929507", "0.48928574", "0.48890573", "0.48796907", "0.4879096", "0.4871459", "0.4866697", "0.48625806", "0.48530468", "0.48391733", "0.4830637", "0.48304528", "0.48253998", "0.48217282", "0.48167908", "0.48123294", "0.4812016", "0.48115546", "0.4804796", "0.4798185", "0.47888717", "0.47872806", "0.47827542", "0.4782374", "0.47778055", "0.47725356", "0.47700956", "0.47668353", "0.4754415", "0.47538707", "0.47462386", "0.473268", "0.47273338", "0.47204792", "0.47199124" ]
0.6834802
1
Calculate the next city picks probabilites
public void calculateProbabilities(Ant ant) { int i = ant.trail[currentIndex]; double pheromone = 0.0; for (int l = 0; l < numberOfCities; l++) { if (!ant.visited(l)) { pheromone += (Math.pow(trails[i][l], alpha) + 1) * (Math.pow(graph[i][l], beta) + 1) * (Math.pow(emcMatrix[i][l], ccc) + 1) * (Math.pow(functionalAttachmentMatrix[i][l], ddd) + 1); } } for (int j = 0; j < numberOfCities; j++) { if (ant.visited(j)) { probabilities[j] = 0.0; } else { double numerator = (Math.pow(trails[i][j], alpha) + 1) * (Math.pow(graph[i][j], beta) + 1) * (Math.pow(emcMatrix[i][j], ccc) + 1) * (Math.pow(functionalAttachmentMatrix[i][j], ddd) + 1); probabilities[j] = numerator / pheromone; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int selectNextCity(Ant ant) {\n int t = random.nextInt(numberOfCities - currentIndex);\n if (random.nextDouble() < randomFactor) {\n OptionalInt cityIndex = IntStream.range(0, numberOfCities)\n .filter(i -> i == t && !ant.visited(i))\n .findFirst();\n if (cityIndex.isPresent()) {\n return cityIndex.getAsInt();\n }\n }\n calculateProbabilities(ant);\n double r = random.nextDouble();\n double total = 0;\n for (int i = 0; i < numberOfCities; i++) {\n total += probabilities[i];\n if (total >= r) {\n return i;\n }\n }\n\n throw new RuntimeException(\"There are no other cities\");\n }", "public static int getRandomTask() {\n double p = rand.nextDouble(); // required probs given in Question\n for (int i = 0; i < 6; i++) {\n if (p <= prob[i])\n return i;\n }\n return 1;\n }", "int selectNextCity(Ant ant) {\r\n\t\tint from, to;\r\n\t\t\r\n\t\tdouble denom = 0.0;\r\n\r\n\t\tfrom = ant.curCity;\r\n\r\n\t\t// compute denom\r\n\t\tfor (to = 0; to < cities.length; to++) {\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tdenom += antProduct(from, to);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tassert denom != 0.0;\r\n\r\n\t\tdo {\r\n\t\t\tdouble p;\r\n\t\t\tto++;\r\n\t\t\tif (to >= cities.length)\r\n\t\t\t\tto = 0;\r\n\t\t\tif (ant.tabu[to] == 0) {\r\n\t\t\t\tp = antProduct(from, to) / denom;\r\n\t\t\t\tdouble num = Math.random();\r\n\t\t\t\tif (num < p)\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t} while (true);\r\n\r\n\t\treturn to;\r\n\t}", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "private int tournament()\r\n {\r\n\tint out = spinTheWheel();\r\n\tdouble max = ff.evaluate(chromos.get(out),generation());\r\n\tdouble temp_fitness = 0;\r\n\tint temp_index = 0;\r\n\r\n\tfor(int i = 0; i < selPara - 1 + tourStep*generation(); i++)\r\n\t {\r\n\t\ttemp_index = spinTheWheel();\r\n\t\ttemp_fitness = ff.evaluate(chromos.get(temp_index),generation());\r\n\t\tif(temp_fitness > max)\r\n\t\t {\r\n\t\t\tmax = temp_fitness;\r\n\t\t\tout = temp_index;\r\n\t\t }\r\n\t }\r\n\treturn out;\r\n }", "@Override\r\n\tpublic int computeNextVal(boolean prediction) {\n\t\treturn (int) (Math.random()*10)%3;\r\n\t}", "protected abstract void calculateNextFactor();", "public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }", "public static void calculateFitness(StrategyPool sp)\r\n\t{\r\n\t\tfor(int i = 0; i<sp.pool.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j <sp.pool.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif(i == j)\r\n\t\t\t\t\t; //do nothing\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +i +\" against \" +j );\r\n\t\t\t\t\tStrategy p1 = sp.pool.get(i);\r\n\t\t\t\t\tStrategy p2 = sp.pool.get(j);\r\n\t\t\t\t\tint winner = 0;\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\t\tp2.addWinCount();\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//switch positions\r\n\t\t\t\t\tp2 = sp.pool.get(i);\r\n\t\t\t\t\tp1 = sp.pool.get(j);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +j +\" against \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\tp2.addWinCount();\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\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n City city = new City(60, 200);\n TourManager.addCity(city);\n City city2 = new City(180, 200);\n TourManager.addCity(city2);\n City city3 = new City(80, 180);\n TourManager.addCity(city3);\n City city4 = new City(140, 180);\n TourManager.addCity(city4);\n City city5 = new City(20, 160);\n TourManager.addCity(city5);\n City city6 = new City(100, 160);\n TourManager.addCity(city6);\n City city7 = new City(200, 160);\n TourManager.addCity(city7);\n City city8 = new City(140, 140);\n TourManager.addCity(city8);\n City city9 = new City(40, 120);\n TourManager.addCity(city9);\n City city10 = new City(100, 120);\n TourManager.addCity(city10);\n City city11 = new City(180, 100);\n TourManager.addCity(city11);\n City city12 = new City(60, 80);\n TourManager.addCity(city12);\n City city13 = new City(120, 80);\n TourManager.addCity(city13);\n City city14 = new City(180, 60);\n TourManager.addCity(city14);\n City city15 = new City(20, 40);\n TourManager.addCity(city15);\n City city16 = new City(100, 40);\n TourManager.addCity(city16);\n City city17 = new City(200, 40);\n TourManager.addCity(city17);\n City city18 = new City(20, 20);\n TourManager.addCity(city18);\n City city19 = new City(60, 20);\n TourManager.addCity(city19);\n City city20 = new City(160, 20);\n TourManager.addCity(city20);\n\n // Initialize population\n Population pop = new Population(50, true);\n System.out.println(\"Initial distance: \" + pop.getFittest().getDistance());\n\n // Evolve population for 100 generations\n pop = GA.evolvePopulation(pop);\n for (int i = 0; i < 100; i++) {\n pop = GA.evolvePopulation(pop);\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getFittest().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getFittest());\n }", "static long maximumPeople(long[] p, long[] x, long[] y, long[] r) {\n city[] allCity = new city[n];\n for(int i = 0; i < n; i++)\n allCity[i] = new city(p[i], x[i]);\n Arrays.sort(allCity);\n for(int i = 0; i < m; i++){\n long start = y[i] - r[i];\n long end = y[i] + r[i];\n int startindex = Arrays.binarySearch(allCity, new city(0, start));\n if(startindex < 0)\n startindex = - startindex - 1;\n else{\n long value = allCity[startindex].loc;\n while(true){\n startindex--;\n if(startindex < 0)\n break;\n if(allCity[startindex].loc != value)\n break;\n }\n startindex++;\n }\n int endindex = Arrays.binarySearch(allCity, new city(0, end));\n if(endindex < 0)\n endindex = -endindex - 2;\n else{\n long value = allCity[endindex].loc;\n while(true){\n endindex++;\n if(endindex >= n)\n break;\n if(allCity[endindex].loc != value)\n break;\n }\n endindex--;\n }\n for(int j = startindex; j <= endindex; j++){\n if(j >= n)\n break;\n allCity[j].clouds.add(i);\n }\n }\n int prev = -1;\n long sunny = 0;\n long max = 0;\n long accu = 0;\n for(int i = 0; i < n; i++){\n if(allCity[i].clouds.size() == 0)\n sunny += allCity[i].population;\n if(allCity[i].clouds.size() == 1){\n if(allCity[i].clouds.get(0) == prev){\n accu += allCity[i].population;\n if(accu > max)\n max = accu;\n }\n else {\n accu = allCity[i].population;\n prev = allCity[i].clouds.get(0);\n if(accu > max)\n max = accu;\n }\n }\n }\n return max + sunny;\n }", "static int distributeCandy(int[] score) {\n java.util.TreeMap<Integer,Integer> candcalmap=new java.util.TreeMap<Integer,Integer>();\n int totcand=0,numcan=1;\n /* for(int indx=1;indx<score.length;indx++)\n {\n while(score[indx-1]<(indx<score.length?score[indx]:Integer.MAX_VALUE))\n {\n numcan++;\n indx++;\n totcand+=numcan;\n //System.out.println(numcan+\"-\"+indx+\":\"+totcand);\n if(indx==score.length)\n break;\n }\n numcan=1;\n totcand+=numcan;\n \n }\n*/\tfor(int sc:score)\n {\n candcalmap.put(sc,candcalmap.get(sc)==null?1:candcalmap.get(sc)+1);\n }\n for(Map.Entry<Integer,Integer> e:candcalmap.entrySet())\n {\n totcand+=numcan*e.getValue();\n// System.out.println(e.getValue()+\"-\"+e.getKey()+\":\"+numcan+\" \"+totcand);\n numcan++;\n }\n return totcand;\n }", "public int getOptimalNumNearest();", "public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = Integer.parseInt(PreferencesActivity\n .getSpawnVariable(this._context));\n\n minimum = 2;\n maximum = 3;\n spawn = 3;\n\n int[][] nextGenerationLifeGrid = new int[HEIGHT][WIDTH];\n\n\n\n for (int h = 0; h < HEIGHT; h++) {\n for (int w = 0; w < WIDTH; w++) {\n neighbours = calculateNeighbours(h, w);\n\n\n if (_lifeGrid[h][w] != 0) {\n if ((neighbours >= minimum) && (neighbours <= maximum)) {\n nextGenerationLifeGrid[h][w] = neighbours;\n }\n\n } else {\n if (neighbours == spawn) {\n nextGenerationLifeGrid[h][w] = spawn;\n\n }\n }\n\n }\n\n }\n\n copyGrid(nextGenerationLifeGrid, _lifeGrid);\n\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int tripCount = sc.nextInt();\n for(int i=0;i<tripCount;i++){\n int totalMoney = sc.nextInt();\n int flavorCount = sc.nextInt();\n Map<Integer,Integer> costMap = new HashMap<Integer,Integer>();\n for(int j=0;j<flavorCount;j++){\n int cur = sc.nextInt();\n if(costMap.containsKey(totalMoney-cur)){\n int firstIdx = costMap.get(totalMoney-cur)+1;\n int secondIdx = j +1;\n System.out.println(firstIdx +\" \"+secondIdx);\n }\n costMap.put(cur,j);\n }\n }\n }", "@Override\n public void evaluate(Solution solution) throws JMException {\n\n int[] tour = new int[numberOfNodes + 1];\n int firstCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[0];\n int lastCity = ((Permutation) solution.getDecisionVariables()[0]).vector_[numberOfNodes - 1];\n\n double fitness1_td = 0.0;\n\n // Calculate fitness 1 - total distance\n for (int i = 0; i < numberOfNodes - 1; i++) {\n int x = ((Permutation) solution.getDecisionVariables()[0]).vector_[i];\n int y = ((Permutation) solution.getDecisionVariables()[0]).vector_[i+1];\n\n tour[i] = x;\n tour[i+1] = y;\n\n fitness1_td += calDistances(x, y);\n }\n // generate tour with same start city and end city\n tour[numberOfNodes] = tour[0];\n\n fitness1_td += calDistances(firstCity, lastCity);\n\n\n // Correctness check: does the tour start and end in the same city\n if(tour[0] != tour[tour.length - 1]) {\n System.err.println(\"ERROR: The last city must be the same as the first city\");\n System.exit(1);\n }\n\n /*for (int i = 0; i < tour.length; i++) {\n System.out.print(tour[i] + \" \");\n }*/\n //System.out.println(\"\\n\" + tour.length);\n\n // Calculate fitness 2 - objective value of a given tour\n ArrayInt z = (ArrayInt) solution.getDecisionVariables()[1];\n //System.out.println(z.getLength());\n\n double fitness2_ob;\n double wc = 0.0;\n double ft = 0.0;\n double fp = 0.0;\n\n //the following is used for a different interpretation of \"packingPlan\"\n int itemsPerCity = z.getLength() / (tour.length - 2);\n //System.out.println(itemsPerCity);\n\n for (int i = 0; i < tour.length - 1; i++) {\n\n int currentCityTEMP = tour[i];\n // what's the current city? --> but the items start at city 2 in the TTP file, so I have to take another 1 off!\n int currentCity = currentCityTEMP - 1;\n\n if (i > 0) {\n\n if (currentCity == -1) {\n // No items in city 1\n wc += 0.0;\n fp += 0.0;\n\n } else {\n\n for (int itemNumber = 0; itemNumber < itemsPerCity; itemNumber++) {\n\n int indexOfPackingPlan = (i-1) * itemsPerCity + itemNumber;\n // what is the next item's index in items-array?\n int itemIndex = currentCity + itemNumber * (numberOfNodes - 1);\n //System.out.println(\"i: \" + i);\n\n if (z.getValue(indexOfPackingPlan) == 1) {\n // pack item\n //System.out.println(itemIndex);\n int currentWC = items[itemIndex][2];\n wc += currentWC;\n\n int currentFP = items[itemIndex][1];\n fp += currentFP;\n }\n }\n\n }\n\n int h = (i+1) % (tour.length-1); //h: next tour city index\n //System.out.println(\"h: \" + h);\n long distance = calDistances(i, h);\n // compute the adjusted (effective) distance\n ft += (distance / (1 - wc * (maxSpeed - minSpeed) / capacityOfKnapsack));\n }\n }\n\n wendUsed = wc;\n wend = capacityOfKnapsack - wc;\n fitness2_ob = fp - ft * rentingRatio;\n\n solution.setObjective(0, fitness1_td);\n solution.setObjective(1, -fitness2_ob); // Convert from maximum objective value to minimum objective value\n }", "int tournament() {\r\n \tint ch1,ch2;\r\n\t\tch1 = (int)Math.floor(Math.random()*SIZE);\r\n\t\tdo {\r\n\t\t\tch2 = (int)Math.floor(Math.random()*SIZE);\r\n\t\t} while (ch1==ch2);\r\n\t\tif (fit[ch1]<fit[ch2]) return ch1;\r\n\t\telse return ch2;\r\n }", "@Test\n public void shouldCalculateProperMoveProbabilities() throws Exception {\n\n int actualCity = 0;\n boolean[] visited = new boolean[] {true, false, false, false};\n int[][] firstCriterium = new int[][] {{0, 2, 1, 2},\n {2, 2, 1, 1},\n {1, 1, 0, 1},\n {2, 1, 1, 0}};\n int[][] secondCriterium = new int[][] {{0, 3, 2, 1},\n {3, 0, 0, 0},\n {2, 0, 0, 0},\n {1, 0, 0, 0}};\n// final AttractivenessCalculator attractivenessCalculator = new AttractivenessCalculator(1.0, 0.0, 0.0, 0.0, 0.0);\n// double[][] array = new double[0][0];\n// final double[] probabilities = attractivenessCalculator.movesProbability(actualCity, visited, array, firstCriterium, secondCriterium, null, 0.0, 0.0);\n\n// assertTrue(probabilities[0] == 0.0);\n// assertTrue(probabilities[1] == 0.0);\n// assertTrue(probabilities[2] == 0.5);\n// assertTrue(probabilities[3] == 0.5);\n }", "public void goToNextDay() {\n currDay ++;\n\n // at the beginning of a new day, all the unvisited POIs should be feasible\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "private void runAlgorithm(){\n fitness = new ArrayList<Double>(); \n \n int iter = 0;\n \n // While temperature higher than absolute temperature\n this.temperature = getCurrentTemperature(0);\n while(this.temperature > this.p_absoluteTemperature && iter < 100000){\n //while(!stopCriterionMet()){\n // Select next state\n //for(int i=0;i<20;i++){\n int count = 0;\n boolean selected = false;\n while(!selected){\n Problem.ProblemState next = nextState();\n if(isStateSelected(next)){\n selected = true;\n this.state = next;\n }\n \n count++;\n if(count == 10) break;\n }\n //}\n \n // Sample data\n double fvalue = this.state.getFitnessValue();\n this.fitness.add(new Double(fvalue));\n \n iter = iter + 1;\n \n // Lower temperature\n this.temperature = getCurrentTemperature(iter);\n }\n \n this.n_iter = iter;\n return;\n }", "public int candy(int[] ratings){\n\t\tint n = ratings.length;\n\t\tint[] pre_count = new int[n];\n\t\tfor(int i = 0; i < n; i ++)\n\t\t\tpre_count[i] = 0;\n\t\t\n\t\tfor(int i = 1; i < n; i ++){\n\t\t\tif (ratings[i] < ratings[i-1])\n\t\t\t\tpre_count[i-1] ++;\n\t\t\tif (ratings[i] > ratings[i-1])\n\t\t\t\tpre_count[i]++;\t\t\t\t\n\t\t}\n\t\tint[] candies = new int[n];\n\t\tLinkedList<Integer> topo_que = new LinkedList<Integer>();\n\t\tfor(int i = 0; i < n; i++)\n\t\t\tif (pre_count[i] == 0){\n\t\t\t\tcandies[i] = 1;\n\t\t\t\ttopo_que.add(i);\n\t\t\t}\n\t\twhile( ! topo_que.isEmpty()){\n\t\t\tint i = topo_que.removeFirst();\n\t\t\tif (i>0)\n\t\t\t\tif ( ratings[i] < ratings[i - 1]){\n\t\t\t\t\t// remove dependency\n\t\t\t\t\tpre_count[i-1] --;\n\t\t\t\t\t// update the candies\n\t\t\t\t\tif ( candies[i] + 1 > candies[i-1])\n\t\t\t\t\t\tcandies[i-1] = candies[i] + 1;\n\t\t\t\t\tif (pre_count[i-1] == 0)\n\t\t\t\t\t\ttopo_que.add(i-1);\n\t\t\t\t}\n\t\t\tif (i < n-1)\n\t\t\t\tif ( ratings[i] < ratings[i + 1]){\n\t\t\t\t\t// remove dependency\n\t\t\t\t\tpre_count[i+1] --;\n\t\t\t\t\t// update the candies\n\t\t\t\t\tif ( candies[i] + 1 > candies[i+1])\n\t\t\t\t\t\tcandies[i+1] = candies[i] + 1;\n\t\t\t\t\tif (pre_count[i+1] == 0)\n\t\t\t\t\t\ttopo_que.add(i+1);\n\t\t\t\t}\t\n\t\t}\n\t\tint sum = 0;\n\t\tfor(int i = 0; i < n ; i ++)\n\t\t\tsum += candies[i];\n\t\t\n\t\treturn sum;\n\t\n\n }", "private void EvalFitness(){\r\n _FitVal=0;\r\n for(int i=0; i<7;i++)\r\n for(int j=i+1;j<8;j++){\r\n if( _Data[i]==_Data[j]) _FitVal++;\r\n if(j-i==Math.abs(_Data[i]-_Data[j])) _FitVal++;\r\n }\r\n }", "public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }", "public int best(){\n List<Integer> points = count();\n Integer max = 0;\n for (Integer p: points){\n if (p <= 21 && max < p){\n max = p;\n }\n }\n return max;\n }", "public void step() {\n // method 1 of Temperature randomness\n enPrice = 1.1 * enPrice;\n\n TempChange = Temperature * (0.1 * (1 - 2 * r.nextDouble()));\n // method 2 of Temperature\n// TempChange = temperature_list.get(count);\n// count+=1;\n\n Temperature += TempChange;\n year_num+=1;\n }", "public int getPublicVictoryPoints() {\n \t\tint points = towns + 2 * cities;\n \n \t\tif (board.hasLongestRoad(this))\n \t\t\tpoints += 2;\n \n \t\tif (board.hasLargestArmy(this))\n \t\t\tpoints += 2;\n \n \t\treturn points;\n \t}", "public void setFinalSolution() {\r\n for(int i=0; i<Config.numberOfSeeds;i++) {\r\n// this.seeds[i].setDurationMilliSec(GLowestState.getDwelltimes()[i]);\r\n// Cur_state[i] = GLowestState.getDwelltimes()[i];\r\n Cur_state[i] = this.seeds[i].getDurationMilliSec();\r\n }\r\n if (Config.SACostFunctionType==3) {\r\n setCur_cost(costCUR());\r\n }\r\n if (Config.SACostFunctionType==2) {\r\n setCur_cost(costCURfinal());\r\n }\r\n if (Config.SACostFunctionType==1) {\r\n setCur_cost(costCURsuper());\r\n }\r\n if (Config.SACostFunctionType==0) {\r\n setCur_cost(costCURsuperfinal());\r\n }\r\n }", "public void generateNeighborhood(TSPSolution s){\r\n\t\tint [] rounte = new int[problem.city_num+1];\r\n\t\tfor(int i=0;i<problem.city_num;i++) rounte[i] = s.route[i];\r\n\t\trounte[problem.city_num] = rounte[0];\r\n\t\tint [] pos = new int[problem.city_num];\r\n\t\tproblem.calculatePosition(rounte, pos);\r\n\t\tint pos1 = 0;\r\n\t\tint pos2 = 0;\r\n\t\tfor(int k=0;k<problem.city_num;k++){\r\n\t\t\tint i = k;\r\n\t\t\tpos1 = i;\r\n\t\t\tint curIndex = rounte[i];\r\n\t\t\tint nextIndex = rounte[i+1];\r\n\t\t\tArrayList<Integer> candidate = problem.candidateList.get(curIndex);\r\n\t\t\tIterator<Integer> iter = candidate.iterator();\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tint next = iter.next();\r\n\t\t\t\tpos2 = pos[next];\r\n\t\t\t\tint curIndex1 = rounte[pos2];\r\n\t\t\t\tint nextIndex1 = rounte[pos2+1];\r\n\t\t\t\tif(curIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex == curIndex1) continue;\r\n\t\t\t\tif(nextIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex1 == nextIndex) continue;\r\n\t\t\t\tint betterTimes = 0;\r\n\t\t\t\tTSPSolution solution = new TSPSolution(problem.city_num, problem.obj_num, -1);\r\n\t\t\t\tfor(int j=0;j<problem.obj_num;j++){\r\n\t\t\t\t\tint gain = problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+curIndex1] +\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+nextIndex*problem.city_num+nextIndex1] - \r\n\t\t\t\t\t\t\t(problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+nextIndex]+\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+curIndex1*problem.city_num+nextIndex1]);\r\n\t\t\t\t\tif(gain<0) betterTimes++;\r\n\t\t\t\t\tsolution.object_val[j] = s.object_val[j] + gain;\r\n\t\t\t\t}\r\n\t\t\t\tif(betterTimes==0) continue;\r\n\t\t\t\tsolution.route = s.route.clone();\r\n\r\n\t\t\t\tif(problem.kdSet.add(solution)){\r\n\t\t\t\t\tproblem.converse(pos1, pos2, solution.route, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "private void findPrecipChances(ForecastIO FIO, WeatherlyDayForecast day){\n FIOHourly hourlyForecast = new FIOHourly(FIO);\n\n //Determine the number of hours left in the day\n Calendar rightNow = Calendar.getInstance();\n int dayHoursLeft = 24 - rightNow.get(Calendar.HOUR_OF_DAY);\n\n //Find the lowest and highest chances for precipitation for the rest of the day\n double minChance = hourlyForecast.getHour(0).precipProbability();\n double maxChance = minChance;\n int maxHour = rightNow.get(Calendar.HOUR_OF_DAY);\n for (int i = 1; i < dayHoursLeft; i++){\n double chance = hourlyForecast.getHour(i).precipProbability();\n if (minChance > chance)\n minChance = chance;\n if (maxChance < chance) {\n maxChance = chance;\n maxHour = i + rightNow.get(Calendar.HOUR_OF_DAY);\n }\n\n }\n\n day.setMinChanceOfPrecip((int) (minChance * 100));\n day.setMaxChanceOfPrecip((int) (maxChance * 100));\n day.setMaxChanceTime(maxHour);\n }", "@Override\n public Z computeNext() {\n int n = size();\n if (n <= 2) {\n return Z.valueOf(mInits[n]);\n }\n final int pow2 = Integer.highestOneBit(n);\n final int j = n - pow2;\n Z result = a(j).multiply(mFaj0).add(a(j + 1).multiply(mFaj1));\n if (j == pow2 - 1) {\n result = result.add(1);\n }\n return result;\n \n }", "private int evaluate() {\n return (int) (Math.random() * 8);\n }", "@Override\n\t\tpublic double heuristic() {\n\t\t\tint sum = 0;\n\t\t\tfor (int i = 0; i < k; i++) {\n\t\t\t\tsum += Math.abs(xGoals[i] - state[i]);\n\t\t\t\tsum += Math.abs(yGoals[i] - state[k + i]);\n\t\t\t}\n\t\t\treturn sum;\n\t\t}", "public int compete() {\r\n\t\tint max = 20;\r\n\t\tint min = 10;\r\n\t\tRandom Rand = new Random();\r\n\t\tint ranNum = Rand.nextInt(max - min) + min;\r\n\t\treturn ranNum;\r\n\t}", "public int wait_cycle(){\n\t\tRandom r1=new Random();\n\t\tint r2=r1.nextInt((999)+1)+1;\n\t\treturn r2;\n\t}", "private int[] generateInitialSolution(){\n int[] initialSolution = new int[tspProblem.getNumberOfCities()];\n ArrayList<Integer> listToGetRandomCities = new ArrayList<Integer>();\n\n for(int i = 0; i <= initialSolution.length - 1; i++){\n listToGetRandomCities.add(i);\n }\n\n for(int i = 0; i <= initialSolution.length - 1; i++){\n initialSolution[i] = getRandomCity(listToGetRandomCities);\n }\n\n return initialSolution;\n }", "pb4server.RandomPointMoveCityAskReq getRandomPointMoveCityAskReq();", "protected Double successProbability(){\n\t\tnodeKValues = collectKValues();\n\t\tList<Integer[]> placements = getDistinctPlacements(getMinKPath());\n\t\tlong maxNumberOfColorings = 0;\n\t\tfor (Integer[] placement : placements){\n\t\t\tlong colorings = numberOfColorings(placement);\n\t\t\tif (colorings > maxNumberOfColorings)\n\t\t\t\tmaxNumberOfColorings = colorings;\n\t\t}\n\t\tDouble probability = 1.0/maxNumberOfColorings;\n\t\tfor (int i=1; i<=pathLength; i++){ // factorial of pathlength\n\t\t\tprobability = probability * i;\n\t\t}\n\t\treturn probability;\n\t}", "@Override\n\tpublic void makeDecision() {\n\t\tint powerMax = (int)(initPower) / 100;\n\t\tint powerMin = (int)(initPower * 0.3) / 100;\n\n\t\t// The value is calculated randomly from 0 to 10% of the initial power\n\t\tRandom rand = new Random();\n\t\tint actualPower = rand.nextInt((powerMax - powerMin) + 1) + powerMin;\n\t\tanswer.setConsumption(actualPower);\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(500, 800);\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "private static void determineFinalRanks(Fold fold, ParametersManager params) {\n for (int currRank = fold.getNumInst(); currRank >= 1; currRank--) {\n Instance instSmallestWeight = fold.getInstSmallestWeight(); // selects the next less important instance\n\n instSmallestWeight.setRank(currRank); // ranks the instance by its order of elimination\n instSmallestWeight.setWeight(Double.POSITIVE_INFINITY); // the instance will be disregarded from now\n\n // removes the traces of the ranked instance out of the other instances\n fold.clearInstTraces(instSmallestWeight);\n\n /* For instances with rank value smaller than the number of neighbors, the relative position in the ranking\n is irrelevant (and, by construction, impossible to determine). Therefore, only the first steps of the\n ranking are performed for these instances. */\n if (currRank <= params.getNumNeighbors()) continue;\n\n // updates the distances matrix, setting the distance to or from the ranked instance to infinite\n fold.updateDistMatrix(instSmallestWeight.getId());\n\n // updates the weights of instances that had the eliminated instance among its nearest neighbors\n InstanceWeighting.updateAssociatesWeights(fold, instSmallestWeight, params);\n }\n }", "@Override\r\n\tpublic int computeNextVal(boolean prediction, Instance inst) {\n\t\treturn 0;\r\n\t}", "@Override\n public WorkflowStep next() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n startCalculator(false);\n return DETECT_ANOMALIES;\n }", "private void evaluationLogic() {\n // setup for logic:\n // if distToClosestEstimate[i][0] is smaller than threshold, we have a Tp\n // if distToClosestEstimate[i][0] is larger than threshold, we have a Fn\n // all estimatedFeatures that are not assigned Tp are therefore Fp\n for (int i = 0; i < groundTruthInstant.size(); ++i) {\n if (distToClosestEstimate[i][0] < truePositiveThreshold) {\n ++truePositiveCount;\n int assignedEstimatedFeature = (int) distToClosestEstimate[i][1];\n assignedEstimatedFeatures[assignedEstimatedFeature] = true;\n } else\n ++falseNegativeCount;\n }\n for (int i = 0; i < estimatedInstant.size(); ++i)\n if (!assignedEstimatedFeatures[i])\n ++falsePositiveCount;\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "private SocialPractice chooseOnIntentions(\n\t\t\tArrayList<SocialPractice> candidateSocialPractices) {\n\t\tSocialPractice chosenAction = null; //temp\n\t\tHashMap<SocialPractice, Double> needs=new HashMap<SocialPractice, Double>();\n\t\tfor(SocialPractice sp: candidateSocialPractices){\n\t\t\tneeds.put(sp, myValues.get(sp.getPurpose()).getNeed(myContext)); \n\t\t}\n\t\tdouble totalNeed = Helper.sumDouble(needs.values()); //satisfaction can get <0, so need as well, so maybe not getting in while loop\n\t\tdouble randomDeterminer = RandomHelper.nextDoubleFromTo(0, totalNeed);\n\t\t//System.out.println(myContext);\n\t\t//System.out.println(\"Needs:\" + needs);\n\t\t\n\t\tIterator it = needs.entrySet().iterator();\n\t\twhile(randomDeterminer > 0) {\n\t\t\tHashMap.Entry pair = (HashMap.Entry) it.next();\n\t\t\tchosenAction = (SocialPractice) pair.getKey();\n\t\t\trandomDeterminer = randomDeterminer - (double) pair.getValue();\n\t\t}\n\t\treturn chosenAction;\n\t}", "@Override\n\tpublic double compete() {\n\t\tdouble result=MyTools.getRandomNum(10, 20); \t\n\t\tsetThisResult(result);\n\t\treturn result;\n\t}", "private void assignCapitals() {\n City bestCity = null;\n int mostLandTilesSurrounding = 0;\n int landTilesSurrounding = 0;\n int minRow = 0;\n int maxRow = 0;\n int minColumn = 0;\n int maxColumn = 0;\n if (numPlayers == 2) {\n for (int i = 0; i < 2; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n } else if (numPlayers == 3) {\n\n for (int i = 0; i < 3; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH / 2;\n minColumn = MAP_LENGTH / 2;\n maxColumn = MAP_LENGTH - 1;\n } else if (i == 2) {\n minRow = MAP_LENGTH / 2;\n maxRow = MAP_LENGTH - 1;\n minColumn = 0;\n maxColumn = MAP_LENGTH / 2;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n System.out.println(\"Capital city of player \" + i + \" is at \" + bestCity.getCol() + \", \" + bestCity.getRow()); //For checking capital city determination\n }\n } else if (numPlayers == 4) {\n for (int i = 0; i < 4; i++) {\n mostLandTilesSurrounding = 0;\n if (i == 0) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 1) {\n minRow = 0;\n maxRow = MAP_LENGTH/2;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n } else if (i == 2) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = 0;\n maxColumn = MAP_LENGTH/2;\n } else if (i == 3) {\n minRow = MAP_LENGTH/2;\n maxRow = MAP_LENGTH-1;\n minColumn = MAP_LENGTH/2;\n maxColumn = MAP_LENGTH-1;\n }\n for (int r = minRow; r < maxRow; r++) {\n for (int c = minColumn; c < maxColumn; c++) {\n if (tileMap[r][c].getCity() != null) {\n landTilesSurrounding = surroundingLandCheckCity(tileMap[r][c].getCity());\n if (landTilesSurrounding > mostLandTilesSurrounding) {\n mostLandTilesSurrounding = landTilesSurrounding;\n bestCity = tileMap[r][c].getCity();\n }\n }\n }\n }\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setTribe(i);\n tileMap[bestCity.getRow()][bestCity.getCol()].getCity().setCapital(true);\n capitalCities[numCapitalCities] = tileMap[bestCity.getRow()][bestCity.getCol()].getCity();\n numCapitalCities++;\n }\n }\n }", "private static int eval(Board board) {\n if (board.piecesContiguous(board.turn())) {\n return Integer.MAX_VALUE;\n } else if (board.piecesContiguous(board.turn().opposite())) {\n return Integer.MIN_VALUE;\n } else {\n Random r = new Random();\n return r.nextInt();\n }\n }", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "void CalculateProbabilities()\n\t{\n\t int i;\n\t double maxfit;\n\t maxfit=fitness[0];\n\t for (i=1;i<FoodNumber;i++)\n\t {\n\t if (fitness[i]>maxfit)\n\t maxfit=fitness[i];\n\t }\n\n\t for (i=0;i<FoodNumber;i++)\n\t {\n\t prob[i]=(0.9*(fitness[i]/maxfit))+0.1;\n\t }\n\n\t}", "public int changeFocus (){\n boolean squareAlreadyPicked = false;\n int square = -1;\n double sum=0;\n modifiedMark = createModifiedMarkovModel(-1);\n double rand;\n while(!squareAlreadyPicked){//checking if square has already been picked before.\n \n if(stepsCompleted<25){\n rand = getRand(0); //generates random number based on sum of existing probabilities in modifiedMarkov\n square = caseBased(rand, sum, 0, 0);\n }\n \n else if((stepsCompleted>=25)&&(stepsCompleted<=50)){\n rand = getRand(1);\n square = caseBased(rand,sum,1,0);\n }\n\n else if (stepsCompleted>50){\n rand = getRand(2);\n square = caseBased(rand,sum,2,0);\n }\n squareAlreadyPicked=true;\n }\n return square;\n }", "public void iterate()\n\t{\n\t\tfor (int p = 0; p < parasites.length; p++)\n\t\t\tpFitnesses[p][1] = 0;\n\t\t\n\t\ttry\n\t\t{\t// calculate fitnesses against other population\n\t\t\texecutor.invokeAll(tasks);\n\t\t\t// calculate fitness against hall of fame individuals\n\t\t\texecutor.invokeAll(hofTasks);\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Something bad happened...\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\n\t\tArrays.sort(hFitnesses,new ArrayComparator(1,false));\n\t\tArrays.sort(pFitnesses,new ArrayComparator(1,false));\n\t\t\n\t\tint bestIndex = (int)pFitnesses[0][0];\n\t\tint size = parHOF.length;\n\t\t\n\t\tparHOF[generations%size]=new NeuralPlayer(-1,\"HOF P\",(BasicNetwork)parasites[(int)bestIndex].net.clone());\n\t\tbestIndex = (int)hFitnesses[0][0];\n\t\thostHOF[generations%size]=new NeuralPlayer(1,\"HOF H\",(BasicNetwork)hosts[(int)bestIndex].net.clone());\n\t\t\n\t\tint matePopIndex = (int)(matingPer*popSize)+1;\n\t\tRandom indexG = new Random();\n\t\t// allow top percentage to breed and replace bottom 2*percentage\n\t\t// leave everyone else alone\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = hosts[(int)hFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = hosts[(int)hFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = hosts[(int)hFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < popSize*2*matingPer; i++)\n\t\t{\n\t\t\tint pInd1 = indexG.nextInt(matePopIndex);\n\t\t\tint pInd2 = indexG.nextInt(matePopIndex);\n\t\t\tNeuralPlayer p1 = parasites[(int)pFitnesses[pInd1][0]];\n\t\t\tNeuralPlayer p2 = parasites[(int)pFitnesses[pInd2][0]];\n\t\t\tNeuralPlayer child = parasites[(int)pFitnesses[popSize - 1 - i][0]];\n\t\t\tmate(p1, p2,child);\n\t\t}\n\t\t// mutate everyone except top percentage (matingPer)\n\t\tfor (int i = 0; i < popSize*3*matingPer; i++)\n\t\t{\n\t\t\tmutate(parasites[(int)pFitnesses[popSize - 1 - i][0]]);\n\t\t\tmutate(hosts[(int)hFitnesses[popSize - 1 - i][0]]);\n\t\t}\n\t\t\n\t\tgenerations+=1;\n\t\t// every now and then reseed the population with a good individual\n\t\tif (generations%50 == 0)\n\t\t{\n\t\t\thosts[indexG.nextInt(hosts.length)].net = (BasicNetwork)allTimeBestHost.net.clone();\n\t\t\tparasites[indexG.nextInt(parasites.length)].net = (BasicNetwork)allTimeBestPara.net.clone();\n\t\t}\n\t\t\t\n\t}", "private void generateCandies(){\n\t\tfor (int i = 0; i < 16; i++){\n\t\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t\tCandy candy = new Candy(coordX, coordY, i);\n\t\t\tcandies.put(i, candy);\n\t\t}\n\t}", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "public static void main(String[] args) { Create and add our cities\n//\n try {\n // read file content from file\n StringBuffer sb= new StringBuffer(\"\");\n\n FileReader reader = new FileReader(\"location.txt\");\n BufferedReader br = new BufferedReader(reader);\n\n String str = null;\n\n while((str = br.readLine()) != null) {\n// sb.append(str+\"/n\");\n String []info = new String[3];\n String cityName;\n int locationX;\n int locationY;\n info = str.split(\" \");\n cityName = info[0];\n locationX = Integer.parseInt(info[1]);\n locationY = Integer.parseInt(info[2]);\n City city = new City(locationX, locationY, cityName);\n TourManager.addCity(city);\n }\n\n br.close();\n reader.close();\n\n\n }\n catch(FileNotFoundException e) {\n e.printStackTrace();\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n\n\n // Set initial temp\n double temp = 1000000;\n\n // Cooling rate\n double coolingRate = 0.00001;\n\n // Initialize intial solution\n Tour currentSolution = new Tour();\n currentSolution.generateIndividual();\n\n System.out.println(\"Initial solution distance: \" + currentSolution.getDistance());\n\n // Set as current best\n Tour best = new Tour(currentSolution.getTour());\n\n // Loop until system has cooled\n while (temp > 1) {\n // Create new neighbour tour\n Tour newSolution = new Tour(currentSolution.getTour());\n\n // Get a random positions in the tour\n int tourPos1 = (int) (newSolution.tourSize() * Math.random());\n int tourPos2 = (int) (newSolution.tourSize() * Math.random());\n\n // Get the cities at selected positions in the tour\n City citySwap1 = newSolution.getCity(tourPos1);\n City citySwap2 = newSolution.getCity(tourPos2);\n\n // Swap them\n newSolution.setCity(tourPos2, citySwap1);\n newSolution.setCity(tourPos1, citySwap2);\n\n // Get energy of solutions\n int currentEnergy = currentSolution.getDistance();\n int neighbourEnergy = newSolution.getDistance();\n\n // Decide if we should accept the neighbour\n if (acceptanceProbability(currentEnergy, neighbourEnergy, temp) > Math.random()) {\n currentSolution = new Tour(newSolution.getTour());\n }\n\n // Keep track of the best solution found\n if (currentSolution.getDistance() < best.getDistance()) {\n best = new Tour(currentSolution.getTour());\n }\n\n // Cool system\n temp *= 1-coolingRate;\n }\n\n System.out.println(\"Final solution distance: \" + best.getDistance());\n System.out.println(\"Tour: \" + best);\n FinalGraph.drawGraph();\n }", "private void CPUWork()\n\t\t\t{\n\t\t\t\tif (completionflag == false && bugflag == false)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (m != 10)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tswitch (m)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 8; k += 4)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 2; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\tfor (k = 3; k <= 5; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\tfor (k = 6; k <= 8; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 6; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\tfor (k = 1; k <= 7; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\t\t\tfor (k = 2; k <= 8; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\t\t\tfor (k = 2; k <= 6; k += 2)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else if (j != 10)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tswitch (j)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 8; k += 4)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 2; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\tfor (k = 3; k <= 5; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\tfor (k = 6; k <= 8; k += 1)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\tfor (k = 0; k <= 6; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\tfor (k = 1; k <= 7; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\t\t\tfor (k = 2; k <= 8; k += 3)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\t\t\tfor (k = 2; k <= 6; k += 2)\n\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\tif (cpuflag[k] == false\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t&& flag[k] == false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tcpuchoice = k;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\twhile (true)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tcpuchoice = random.nextInt(8);\n\n\t\t\t\t\t\t\t\t\t\tif (cpuflag[cpuchoice] == false\n\t\t\t\t\t\t\t\t\t\t\t\t&& flag[cpuchoice] == false)\n\t\t\t\t\t\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tcpuflag[cpuchoice] = true;\n\t\t\t\t\t\tswitch (cpuchoice)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\t++lose[1];\n\t\t\t\t\t\t\t\t++lose[4];\n\t\t\t\t\t\t\t\t++lose[0];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t++lose[5];\n\t\t\t\t\t\t\t\t++lose[1];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t++lose[1];\n\t\t\t\t\t\t\t\t++lose[6];\n\t\t\t\t\t\t\t\t++lose[7];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t++lose[2];\n\t\t\t\t\t\t\t\t++lose[4];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t++lose[2];\n\t\t\t\t\t\t\t\t++lose[5];\n\t\t\t\t\t\t\t\t++lose[0];\n\t\t\t\t\t\t\t\t++lose[7];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t++lose[2];\n\t\t\t\t\t\t\t\t++lose[6];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 6:\n\t\t\t\t\t\t\t\t++lose[3];\n\t\t\t\t\t\t\t\t++lose[4];\n\t\t\t\t\t\t\t\t++lose[7];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 7:\n\t\t\t\t\t\t\t\t++lose[3];\n\t\t\t\t\t\t\t\t++lose[5];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 8:\n\t\t\t\t\t\t\t\t++lose[3];\n\t\t\t\t\t\t\t\t++lose[6];\n\t\t\t\t\t\t\t\t++lose[0];\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfor (j = 0; j < 8; ++j)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (lose[j] == 3)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tresult=j;\n\t\t\t\t\t\t\t\t\t\tIntent it2 = new Intent(Main.this,\n\t\t\t\t\t\t\t\t\t\t\t\tResult.class);\n\t\t\t\t\t\t\t\t\t\tBundle b1 = new Bundle();\n\t\t\t\t\t\t\t\t\t\tb1.putString(\"result\", name\n\t\t\t\t\t\t\t\t\t\t\t\t+ \" is a LOSER!!\");\n\t\t\t\t\t\t\t\t\t\tit2.putExtras(b1);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t\tstartActivity(it2);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t}", "public void probabiltDistribution() {\r\n\t\tfor (int k = 0; k < 1000; k++) {\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\trandomGrid[i][j] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tdeployComputerShips();\r\n\t\t\tfor (int i = 0; i < 9; i++) {\r\n\t\t\t\tfor (int j = 0; j < 11; j++) {\r\n\t\t\t\t\tprobabilityGrid[i][j] = probabilityGrid[i][j] + randomGrid[i][j];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void countChange() {\n /* To make 0.00, we use 0 coins. */\n myIndices[0] = 0;\n \n /* \n * Work from subproblem $0.01 to target. \n * Because subproblems overlap, we will\n * store them and use them dynamically.\n */\n for (int curr = 1; curr <= myTarget; curr++) {\n /* \n * Adds one coin (current-next used) to\n * the preemptive minimum coins needed.\n */\n myIndices[curr] = getMinPrior(curr) + 1;\n }\n \n myMinCoins = myIndices[myTarget];\n }", "private static void fakePole() {\n\t\tint turns = 1000;\n\t\tModelLearnerHeavy modeler = new ModelLearnerHeavy(100, new int[] {30},\n\t\t\t\tnew int[] {30}, new int[] {30}, ActivationFunction.SIGMOID0p5, turns);\n\n\t\tfinal boolean NN_FORM = false;\n\t\tdouble[] mins = Pole.stateMins;\n\t\tdouble[] maxes = Pole.stateMaxes;\n\t\tEnvTranslator stateTranslator = EnvTranslator.rbfEnvTranslator(mins, maxes, new int[] {12,12}, .5);\n\t\tEnvTranslator actTranslator = Pole.actionTranslator;\n\t\tList<double[]> actions = Pole.actionChoices;\n\t\tactions.add(new double[] {1,0});\n//\t\tactions.add(new double[] {0,0});\n\t\tactions.add(new double[] {0,1});\n\t\tfinal Collection<double[]> tmpCorrel = new ArrayList<double[]>();\n\t\tfor (int t = 0; t < turns; t++) {\n\t\t\tdouble[] preState = new double[mins.length];\n\t\t\tfor (int i = 0; i < preState.length; i++) {\n\t\t\t\tfinal double spread = (maxes[i] - mins[i]) / 10;\n\t\t\t\tpreState[i] = RandomUtils.randBetween(mins[i] - spread, maxes[i] + spread);\t\n\t\t\t}\n\t\t\tdouble[] inNN = stateTranslator.toNN(preState);\n\t\t\tdouble[] action = RandomUtils.randomOf(actions);\n\t\t\tmodeler.observePreState(inNN);\n\t\t\tmodeler.observeAction(action);\n\t\t\t\n\t\t\tdouble[] postState = new double[mins.length];\n\t\t\tdouble act = Math.random() < 0.99 ? action[0] - action[1] : (2*Math.round(Math.random())-1);\n\t\t\tdouble r = act/100;\n\t\t\tfor (int i = 0; i < postState.length; i++) {\n\t\t\t\tpostState[i] = preState[i] * Math.exp(Math.signum(preState[i]) * (i == 0 ? r : -r));\n\t\t\t} // act0 moves state[0] up and state[1] down, act1 moves state[0] down and state[1] up\n\t\t\ttmpCorrel.add(new double[] {act, postState[0] - preState[0]});\n\t\t\tmodeler.observePostState(stateTranslator.toNN(postState));\n\t\t\tmodeler.saveMemory();\n\t\t}\n\t\tmodeler.learnFromMemory(1.5, 0.5, 0, false, 1000, 0.0003); // IT SEEMS CONFIDENCE IS NOT RELIABLE INDICATOR\n//\t\tfor (double[] dd : tmpCorrel) {\n//\t\t\tString s = \"\"; for (double d : dd) s += d + \"\t\";\n//\t\t\tSystem.out.println(s);\n//\t\t}\n\t\tfor (int i = 0; i < 10; i++) System.out.println(\"*********\");\n\t\tSystem.out.println(modeler.getModelVTA().getConfidenceEstimate());\n//\t\tmodeler.testit(1000, mins, maxes, stateTranslator, actTranslator, actions, NN_FORM);\n\t\t\n\t\tfor (int t = 0; t < 500; t++) {\n\t\t\tfinal double[] state = new double[mins.length];\n\t\t\tfor (int i = 0; i < state.length; i++) state[i] = RandomUtils.randBetween(mins[i], maxes[i]);\n\t\t\tString s = \"\";\n\t\t\tfor (double d : state) s += d + \"\t\";\n\t\t\tfor (double[] act : actions) {\n\t\t\t\tdouble[] foresight = Foresight.montecarlo(modeler, stateTranslator.toNN(state), act, 1, 100, 30);\n\t\t\t\tdouble[] postV = stateTranslator.fromNN(foresight);\n\t\t\t\ts += \"act:\" + actTranslator.fromNN(act) + \":\t\";\n\t\t\t\tfor (double d : postV) s += Utils.round(d * 100, 2) + \"\t\";\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}", "public void iterate() {\n\n\t\tArrayList<int[]> pts = new ArrayList<int[]>();\n\t\tfor (int i = 0; i < POINTS_PER_ITER; i++) {\n\t\t\tint x = Window.mathRandom.nextInt(width);\n\t\t\tint y = Window.mathRandom.nextInt(width);\n\t\t\tpts.add(new int[] { x, y });\n\t\t}\n\n\t\tint[] bestPoint = new int[] {};\n\t\tdouble maxDist = 0;\n\t\tfor (int[] point : pts) {\n\t\t\tdouble dist = getDistFromOthers(point);\n\t\t\tif (dist > maxDist) {\n\t\t\t\tmaxDist = dist;\n\t\t\t\tbestPoint = point;\n\t\t\t}\n\t\t}\n\t\tif (check(bestPoint)) {\n\t\t\tpoints.add(bestPoint);\n\t\t} else {\n\t\t\tremainingPoints += 1;\n\t\t}\n\t}", "private String randomCityId(RandomNumberGenerator random) {\n long targetPop = (long) (random.rand() * totalPopulation);\n\n for (Map.Entry<String, Long> city : populationByCityId.entrySet()) {\n targetPop -= city.getValue();\n\n if (targetPop < 0) {\n return city.getKey();\n }\n }\n\n // should never happen\n throw new RuntimeException(\"Unable to select a random city id.\");\n }", "public static int estimateVehicles( int adj[][]) {\n\t\tHashMap<Integer,Integer> hp=new HashMap<Integer,Integer>();\n\t\tfor(int i=143;i<233;i++) {\n\t\t\tint tem=gr.dijkstra(adj, 233,i );\n\t\t\thp.put(i, tem);\n\t\t}\n\t\t//System.out.println(\"HP: \"+hp);\n\t\tHashMap<Integer,Integer>sort = hp.entrySet().stream().sorted(Map.Entry.comparingByValue())\n\t .collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue, (e1, e2) -> e1, LinkedHashMap::new));\n\t\tint noOfVehicles=1;\n\t\t//System.out.println(\"SORT: \"+sort);\n\t\tcost=0;\n\t\tfor(int i: sort.keySet()) {\n\t\tif(flag1==0) {\n\t\t\tscr=233;\n\t\t\tdes=i;\n\t\t\ttime=gr.dijkstra(adj, scr, des);\n\t\t\tcost=cost+time;\n\t\t\tscr=des;\n\t\t\tflag1=1;\n\t\t\tcontinue;\n\t\t}\n\t\telse {\n\t\t\tdes=i;\n\t\t\ttime=gr.dijkstra(adj, scr, des);\n\t\t\tint t=gr.dijkstra(adj, des, 233);\n\t\t\tcost=cost+time+t;\n\t\t\t//System.out.println(\"cost flag1: \"+cost);\n\t\t\tif(cost>=480) {\n\t\t\t\tscr=233;\n\t\t\t\tdes=i;\n\t\t\t\tnoOfVehicles++;\n\t\t\t\tcost=0;\n\t\t\t\t//System.out.println(\"scr: \"+scr+\" des: \"+des);\n\t\t\t\t//System.out.println(\"noOfVehicles: \"+noOfVehicles);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tcost=cost-t;\n\t\t\tscr=des;\n\t\t\t\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println(\"noOfVehicles: \"+noOfVehicles);\n\t\treturn noOfVehicles;\n\t}", "private int choose(){\n\t\tdouble temp = 10 * Math.random();\n\t\tint i = (int)temp;\n\t\treturn i;\n\t}", "public void askFirstPredictions(){\n //Ask host\n if(initialPredictionCount == 0){\n Log.d(\"WizardApp\", \"Ask host: \" + GameConfig.getInstance().getPlayers()[0] + \" for stiches.\");\n askForStiches(GameConfig.getInstance().getPlayers()[initialPredictionCount]);\n initialPredictionCount++;\n currentPlayer++;\n }\n //Ask clients\n else if(initialPredictionCount > 0 && initialPredictionCount < players.size()){\n Log.d(\"WizardApp\", \"Ask player: \" + initialPredictionCount + \" for stiches.\");\n askForStiches(GameConfig.getInstance().getPlayers()[initialPredictionCount]);\n initialPredictionCount++;\n currentPlayer++;\n }\n //All players asked, go to next state\n else{\n Log.d(\"WizardApp\", \"Initial predictions are done now.\");\n gameActivity.setInitialPrediction(false);\n status = RoundStatus.waitingForCard;\n currentPlayer=0;\n checkNextStep();\n }\n }", "private double evaluate() {\n // check for draws first, most lickely\n if (board.gameState() == MNKGameState.DRAW) return 0;\n else if (board.gameState() == MY_WIN) return 2 * M * N; // 2 times max depth\n else if (board.gameState() == ENEMY_WIN) return -2 * M * N;\n else {\n evaluated++;\n // keep the heuristic evaluation between 1 and -1\n return board.value();\n }\n }", "public TTPSolution SH2() {\n \n // get TTP data\n long[][] D = ttp.getDist();\n int[] A = ttp.getAvailability();\n double maxSpeed = ttp.getMaxSpeed();\n double minSpeed = ttp.getMinSpeed();\n long capacity = ttp.getCapacity();\n double C = (maxSpeed - minSpeed) / capacity;\n double R = ttp.getRent();\n int m = ttp.getNbCities(),\n n = ttp.getNbItems();\n TTPSolution s = new TTPSolution(m, n);\n int[] x = s.getTour(),\n z = s.getPickingPlan();\n \n /*\n * the tour\n * generated using greedy algorithm\n */\n x = linkernTour();\n z = zerosPickingPlan();\n Deb.echo(x);\n Deb.echo(z);\n \n /*\n * the picking plan\n * generated so that the TTP objective value is maximized\n */\n ttp.objective(s);\n \n // partial distance from city x_i\n long di;\n \n // partial time with item k collected from city x_i\n double tik;\n \n // item scores\n Double[] score = new Double[n];\n \n // total time with no items collected\n double t_ = s.ft;\n \n // total time with only item k collected\n double tik_;\n \n // fitness value\n double u[] = new double[n];\n \n for (int k=0; k<n; k++) {\n \n int i;\n for (i=0; i<m; i++) {\n if (A[k]==x[i]) break;\n }\n //P.echo2(\"[\"+k+\"]\"+(i+1)+\"~\");\n \n // time to start with\n tik = i==0 ? .0 : s.timeAcc[i-1];\n int iw = ttp.weightOf(k),\n ip = ttp.profitOf(k);\n \n // recalculate velocities from start\n di = 0;\n for (int r=i; r<m; r++) {\n \n int c1 = x[r]-1;\n int c2 = x[(r+1)%m]-1;\n \n di += D[c1][c2];\n tik += D[c1][c2] / (maxSpeed-iw*C);\n }\n \n score[k] = ip - R*tik;\n tik_ = t_ - di + tik;\n u[k] = R*t_ + ttp.profitOf(k) - R*tik_;\n //P.echo(k+\" : \"+u[k]);\n }\n \n Quicksort<Double> qs = new Quicksort<Double>(score);\n qs.sort();\n int[] si = qs.getIndices();\n int wc = 0;\n for (int k=0; k<n; k++) {\n int i = si[k];\n int wi = ttp.weightOf(i);\n // eliminate useless\n if (wi+wc <= capacity && u[i] > 0) {\n z[i] = A[i];\n wc += wi;\n }\n }\n \n ttp.objective(s);\n \n return s;\n }", "float genChance();", "public int applyNutrientCoefficient() {\n int deadGuppyCount = 0;\n\n Iterator<Guppy> it = guppiesInPool.iterator();\n while (it.hasNext()) {\n Guppy currentGuppy = it.next();\n\n randomNumberGenerator = new Random();\n double generatedDouble = randomNumberGenerator.nextDouble();\n\n if (generatedDouble > this.getNutrientCoefficient()) {\n currentGuppy.setIsAlive(false);\n deadGuppyCount++;\n }\n }\n return deadGuppyCount;\n }", "private void nextTraining() {\n\t\tif(!training_queue.isEmpty()) {\n\t\t\tPair<Soldier, Integer> tmp = training_queue.remove();\n\t\t\tif(tmp!=null) {\n\t\t\t\tcurrent = tmp.getKey();\n\t\t\t\tnb_to_train = tmp.getValue();\t\t\n\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t}else {\n\t\t\t\tcurrent = null;\n\t\t\t\tnb_to_train = 1;\n\t\t\t\tnb_rounds = 100+50*(owner_castle.getLevel()+1);\n\t\t\t\tupgrade = true;\n\t\t\t}\n\t\t}else\n\t\t\tcurrent = null;\n\t}", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "@Override\r\n public BidDetails determineNextBid() {\r\n\r\n double time = negotiationSession.getTime();\r\n\r\n // for the first 20% of the time, offer the bid which gives max utility\r\n if(time < Offer_Max_Util_Time){\r\n BidDetails maxBid = null;\r\n try {\r\n maxBid = this.outcomespace.getMaxBidPossible();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Exception: cannot generate max utility bid\");\r\n }\r\n return maxBid;\r\n\r\n }else {\r\n //compute the target utility based on time\r\n double utilityGoal = p(time);\r\n // if there is no opponent model available\r\n if (opponentModel instanceof NoModel) {\r\n // generate a Bid near the Utility we wish to have\r\n nextBid = negotiationSession.getOutcomeSpace().getBidNearUtility(utilityGoal);\r\n } else {\r\n // get the best Bid for the Opponent among a list of similarly preferred bids for our Agent\r\n // Then, make an offer with that bid\r\n nextBid = omStrategy.getBid(outcomespace, utilityGoal);\r\n }\r\n }\r\n return nextBid;\r\n }", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "public void search() {\r\n\t\tfloat dist = getDistance(permutationPrev);\r\n\t\tfloat delta = 0;\r\n\t\tfloat prob = 0;\r\n\r\n\t\tboolean accept = false;\r\n\r\n\t\tRandom rand = new Random();\r\n\r\n\t\twhile ((temperature > minTemperature) || (nIter > 0)) {\r\n\t\t\tdisturbPermut(permutationPrev);\r\n\t\t\tdelta = getDistance(permutation) - dist;\r\n\r\n\t\t\tprob = (float) Math.exp(-delta / temperature);\r\n\t\t\taccept = ((delta < 0) || (delta * (prob - rand.nextFloat()) >= 0));\r\n\r\n\t\t\tif (accept) {\r\n\t\t\t\tacceptPermution(permutation);\r\n\t\t\t\tdist = delta + dist;\r\n\t\t\t}\r\n\r\n\t\t\ttemperature *= cBoltzman;\r\n\t\t\tnIter--;\r\n\r\n\t\t\ttrace.add(dist);\r\n\t\t}\r\n\t\tshortestDist = dist;\r\n\t}", "public int jump(int[] nums) {\n int[] dp = new int[nums.length];\n for(int i=1;i<nums.length;i++) {\n dp[i] = Integer.MAX_VALUE;\n }\n for(int start =0 ; start < nums.length-1 ;start++){\n for(int end=start+1; end<=start+nums[start] && end<nums.length; end++){\n dp[end] = Math.min(dp[end], dp[start]+1);\n }\n }\n return dp[nums.length-1];\n }", "@Override\n public int ChooseAction(double[] actionEstimates){\n int actionsCount = actionEstimates.length;\n\n // find the best action (greedy)\n double maxReward = actionEstimates[0];\n int greedyAction = 0;\n\n for ( int i = 1; i < actionsCount; i++ )\n {\n if ( actionEstimates[i] > maxReward )\n {\n maxReward = actionEstimates[i];\n greedyAction = i;\n }\n }\n\n // try to do exploration\n if ( r.nextDouble( ) < epsilon )\n {\n int randomAction = r.nextInt( actionsCount - 1 );\n\n if ( randomAction >= greedyAction )\n randomAction++;\n\n return randomAction;\n }\n\n return greedyAction;\n }", "public PentagoMove alphabetaw(PentagoBoardState boardState){\n PentagoBoardState pbs = (PentagoBoardState) boardState.clone();\n ArrayList<PentagoMove> legalmoves = pbs.getAllLegalMoves();\n\n PentagoMove bestmove = legalmoves.get(0);\n PentagoMove bestopponentmove = new PentagoMove(0,0,0,0,0);\n int bestmovescore = -9999999;\n int bestwhitescore = 0;\n //ArrayList<Integer> scores = new ArrayList<Integer>();\n for(int i = 0;i<legalmoves.size()-1;i++){\n\n PentagoBoardState newboard = (PentagoBoardState) pbs.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove next = legalmoves.get(i);\n\n newboard.processMove(next);\n\n int score = evaluate(newboard);\n //scores.add(score);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n\n if(score > 100000){\n newboard.getWinner();\n newboard.printBoard();\n System.out.println(\"FOUND A WINNER\" + score);\n return next;\n }\n\n\n PentagoMove currentopponentmove;\n ArrayList<PentagoMove> opponentlegalmoves = newboard.getAllLegalMoves();\n if (opponentlegalmoves.size()!=0){\n currentopponentmove = opponentlegalmoves.get(0);\n }\n\n int minopponentmovescore = 999999;\n int thismovescore = -9999;\n ArrayList<PentagoMove> bestopponentmoves = new ArrayList<PentagoMove>();\n PentagoMove currentbestopponentmove = new PentagoMove(0,0,0,0,0);\n\n for(int a = 0;a<opponentlegalmoves.size()-1;a++){\n\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove opponentnext = opponentlegalmoves.get(a);\n\n pbsopponent.processMove(opponentnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int opponentscore = evaluate(pbsopponent);\n\n\n\n\n\n if (minopponentmovescore>opponentscore){\n //currentopponentmove = opponentnext;\n minopponentmovescore = opponentscore;\n bestopponentmoves.add(opponentnext);\n currentbestopponentmove = opponentnext;\n }\n\n\n }\n bestopponentmove = currentbestopponentmove;\n //lvl 3\n /*\n\n int lvl3minscore =99999;\n PentagoMove currentmaxmove;\n for (int r = 0;r<bestopponentmoves.size()-1;r++) {\n PentagoBoardState pbsopponent = (PentagoBoardState) newboard.clone();\n pbsopponent.processMove(bestopponentmoves.get(r));\n\n ArrayList<PentagoMove> maxlegalmoves = pbsopponent.getAllLegalMoves();\n if (maxlegalmoves.size() != 0) {\n currentmaxmove = maxlegalmoves.get(0);\n }\n int opponentscore = evaluate(pbsopponent);\n int findminmaxmovescore = -99999;\n for (int s = 0; s < maxlegalmoves.size() - 1; s++) {\n\n PentagoBoardState maxboard = (PentagoBoardState) pbsopponent.clone();\n //System.out.println( pbs.getTurnPlayer() + \"BEFORE PROCESS\");\n PentagoMove maxnext = maxlegalmoves.get(s);\n\n maxboard.processMove(maxnext);\n //System.out.println( pbs.getTurnPlayer() + \" AFTER PROCES\");\n //pbs.printBoard();\n\n int maxnextscore = evaluate(pbsopponent);\n if (findminmaxmovescore < maxnextscore) {\n currentmaxmove = maxnext;\n findminmaxmovescore = maxnextscore;\n }\n }\n if (thismovescore<findminmaxmovescore){\n //currentopponentmove = opponentnext;\n thismovescore = findminmaxmovescore;\n }\n\n //opponentscore = maxmovescore;\n }\n\n //end experiment\n\n\n\n\n if (mycolour ==1){\n lvl3minscore =minopponentmovescore;\n }\n */\n if (minopponentmovescore>bestmovescore){//minopponentmovescore\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n\n }\n else if (minopponentmovescore == bestmovescore){\n if (score > bestwhitescore){\n System.out.println(\"max player move score: \"+score + \"Min : \" + minopponentmovescore);\n bestmovescore = minopponentmovescore;\n bestmove = next;\n bestwhitescore = score;\n }\n\n\n\n }\n\n\n }\n System.out.println(\"final max player move score: \"+ bestmovescore + \"\\n My best move: \"+bestmove.toPrettyString() + \"\\n My best move: \"+ bestopponentmove.toPrettyString());\n return bestmove;\n }", "public void randomizeState() {\n\t\t//System.out.print(\"Randomizing State: \");\n\t\tArrayList<Integer> lst = new ArrayList<Integer>();\n\t\tfor(int i = 0; i<9; i++)// adds 0-8 to list\n\t\t\tlst.add(i);\n\t\tCollections.shuffle(lst);//randomizes list\n\t\tString str=\"\";\n\t\tfor(Integer i : lst)\n\t\t\tstr += String.valueOf(i);\n\t\t//System.out.println(str);\n\t\tcurrent = new PuzzleState(str,current.getString(current.getGoalState()));\n\t\t//pathCost++;\n\t}", "public int numSolutions(int N, int M) {\n HashMap<Integer, Integer> dp = new HashMap<Integer, Integer>();\n dp.put(0, 1);\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < M; ++j) {\n HashMap<Integer, Integer> nDp = new HashMap<Integer, Integer>();\n for (Integer key : dp.keySet()) {\n int leftCell = getCell(key, j - 1);\n int upCell = getCell(key, j);\n int count = dp.get(key);\n if (upCell != 0) {\n // This is the last chance to fulfill upCell.\n if (upCell == 1 || upCell == 3) {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n } else {\n // Paint this cell.\n int current = 2 + (leftCell == 0 ? 0 : 1);\n int newKey = setCell(key, j, current);\n if (leftCell != 0) {\n newKey = setCell(newKey, j - 1, leftCell + 1);\n }\n addValue(nDp, newKey, count);\n }\n } else {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n // Paint this cell.\n if (leftCell == 0) {\n newKey = setCell(key, j, 1);\n } else {\n newKey = setCell(key, j - 1, leftCell + 1);\n newKey = setCell(newKey, j, 2);\n }\n addValue(nDp, newKey, count);\n }\n }\n dp = nDp;\n }\n }\n int result = 0;\n for (Integer key : dp.keySet()) {\n boolean valid = true;\n for (int i = 0; i < M; ++i) {\n int current = getCell(key, i);\n if (current == 2 || current == 4) {\n valid = false;\n break;\n }\n }\n if (valid) {\n result = (result + dp.get(key)) % MOD;\n }\n }\n return result;\n }", "@Override\n public Proposal propose(Random rand)\n {\n \n savedValue = variable.getIntegerValue();\n double [] incrementIdx = Multinomial.generate(rand, 1, \n uniformDiscreteProbs(NUM_STATES));\n double [] stepsVector = steps(NUM_STATES);\n \n int increment = 0; \n \n for(int i = 0; i < (2 * NUM_STATES); i++)\n increment += (int) incrementIdx[i] * stepsVector[i];\n \n final int newValue = savedValue + increment;\n variable.setValue(newValue);\n return new ProposalRealization();\n }", "void nextGeneration(int my2dArray[][], int R, int C)\r\n\t\t{\r\n\t\t\tint[][] future = new int[R][C];\r\n\r\n\t\t\t\tfor (int k = 1; k < R - 1; k++) // going trough the array \r\n\t\t\t\t{\r\n\t\t\t\t\tfor (int l = 1; l < C - 1; l++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint n = 0;// saves the nummber of neighbours for every cells. \r\n\t\t\t\t\t\tfor (int i = -1; i <= 1; i++)\r\n\t\t\t\t\t\t\tfor (int j = -1; j <= 1; j++)\r\n\t\t\t\t\t\t\t\t\tn += my2dArray[k + i][l + j];\r\n\t\t\t\t\t\t\t\t\tn -= my2dArray[k][l];\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tif ((my2dArray[k][l] == 1) && (n < 2))\r\n\t\t\t\t\t\t\t\tfuture[k][l] = 0;\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\t\telse if ((my2dArray[k][l] == 1) && (n > 3))\r\n\t\t\t\t\t\t\t\t\tfuture[k][l] = 0;\r\n\t\t\t\t\t\t\t\t\t\t\t\telse if ((my2dArray[k][l] == 0) && (n == 3))\r\n\t\t\t\t\t\tfuture[k][l] = 1;\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\tfuture[k][l] = my2dArray[k][l];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t//prints the next generation\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Next Generation\");\r\n\t\t\t\tfor (int i = 0; i < R; i++)\r\n\t\t\t\t{\r\n\t\t\t\tfor (int j = 0; j < C; j++)\r\n\t\t\t\t{\r\n\t\t\t\tif (future[j][i] == 0)\r\n\t\t\t\tSystem.out.print(\"O\");\r\n\t\t\t\telse\r\n\t\t\t\tSystem.out.print(\"X\");\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "public static void runGeneticAlgorithm(ArrayList<City> cities) throws IOException {\n\n\t\t//select our strategies for our genetic algorithm\n\t\tPopulationInitialiser initialiser = new RandomGeneration();//random generation of initial population as initialisation strategy\n\t\tPopulationCrossover breeder = new TwoPointCrossOver();//two-point crossover as crossover strategy\n\t\tPopulationMutator mutator = new SwapTwoCities();//swap of two elements as mutation strategy\n\t\tPopulationReplacement selector = new ElitistSelection();//elitism as selection strategy\n\n\t\t//create a generation history object to track all generations\n\t\tArrayList<GAPopulationGeneration> generationHistory = new ArrayList<>();\n\n\t\t//create our first generation and randomly generate its initial solutions\n\t\tGAPopulationGeneration generation = new GAPopulationGeneration(initialiser.initialise(cities, 8));\n\n\t\t// create our output table\n\t\tAsciiTable outputTable = new AsciiTable();\n\t\toutputTable.addHeavyRule();\n\n\t\t// create our incumbent and stopping criterion tracker\n\t\tCandidateSolution incumbent = generation.getParentPopulation().getBestSolution();\n\t\tint generationSinceImprovedIncumbent = 0;\n\n\t\t//loop until 10 iterations without improved incumbent\n\t\twhile (generationSinceImprovedIncumbent <= 10) {\n\n\t\t\t//take parents and crossover to create 6 offspring. record the results for displaying later\n\t\t\tgeneration.setOffspringPopulation(breeder.breed(generation.getParentPopulation(), 6));\n\t\t\tgeneration.setFamilyRecords(breeder.getFamilies());\n\n\t\t\t//take offspring and perform mutation. record the results for displaying later\n\t\t\tgeneration.setMutatedPopulation(mutator.mutatePopulation(generation.getOffspringPopulation()));\n\t\t\tgeneration.setMutantRecords(mutator.getMutations());\n\n\t\t\t//take mutated offspring and perform selection.\n\t\t\tgeneration.setNextPopulation(selector.replace(generation.getParentPopulation(), generation.getMutatedPopulation()));\n\n\t\t\t//if this solution is greater than the incumbent reset stopping criterion and we have new incumbent, else increment stopping criterion\n\t\t\tif (generation.getBestSolutionThisGeneration().compareTo(incumbent) < 0) {\n\t\t\t\tgenerationSinceImprovedIncumbent = 0;\n\t\t\t\tincumbent = generation.getBestSolutionThisGeneration();\n\t\t\t} else\n\t\t\t\tgenerationSinceImprovedIncumbent++;\n\n\t\t\t//record the current generation, and create the new generation from the current one\n\t\t\tgeneration.addToTable(outputTable, incumbent);\n\t\t\tgenerationHistory.add(generation);\n\t\t\tgeneration = generation.initialiseNextGeneration();\n\n\t\t}\n\n\t\t//print out the incumbent at the end\n\t\toutputTable.addRow(\"\", \"\", \"TSP final best solution & fitness : \", incumbent + \" (\" + incumbent.getFitness() + \")\", \"\", \"\", \"\", \"\");\n\t\toutputTable.addHeavyRule();\n\n\n\t\t//format the table, and print to console and output.txt\n\t\tTA_Grid grid = TA_Grid.create(\"an ascii compliant grid\")\n\t\t\t\t.addCharacterMap(TA_GridConfig.RULESET_HEAVY, ' ', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#', '#')\n\t\t\t\t.addCharacterMap(TA_GridConfig.RULESET_NORMAL, ' ', '~', ' ', '~', '~', '~', '~', '~', '~', '~', '~', '~')\n\t\t\t\t.addCharacterMap(TA_GridConfig.RULESET_LIGHT, ' ', '-', ' ', '-', '-', '-', '-', '-', '-', '-', '-', '-');\n\t\toutputTable.getContext().setGrid(grid);\n\t\toutputTable.setTextAlignment(TextAlignment.CENTER);\n\t\toutputTable.getRenderer().setCWC(new CWC_LongestLine());\n\t\tFileWriter output = new FileWriter(\"output.txt\", true);\n\t\toutput.append(outputTable.render()).append(\"\\n\\n\").close();\n\t\tSystem.out.println(outputTable.render() + \"\\n\\n\");\n\t}", "private int rankMethod()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public void nextCostume() { \n costumeNumber++;\n if (costumeNumber > numberOfCostumes-1) costumeNumber=0;\n }", "int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }", "@Override\n\tpublic boolean step(){\n\t\tboolean ret=false;\n\t\tif(!isFollowing()){\n\t\t\t//80% valoszinuseggel leptet egy szomszedra\n\t\t\tRandom rng=new Random();\n\t\t\tboolean doAStep =rng.nextInt(10)>1;\n\t\t\tif(doAStep){\n\t\t\t\tif(tile != null){\n\t\t\t\tint bound=tile.getNeighbors().size();\n\t\t\t\t//System.out.println(\"bound :\"+bound);\n\t\t\t\t//System.out.println(\"ez lett a bound: \"+rng.nextInt(bound));\n\t\t\t\tret=step(tile.getNeighbors().get(rng.nextInt(bound)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn ret;\n\t}", "private static MapLocation getBestPastrLocNearMeBasedOnCowGrowthRate() {\n\t\tif (Clock.getRoundNum() < 1) {\n\t\t\tallCowGrowths = rc.senseCowGrowth();\t\t\t\n\t\t}\n\t\tMapLocation bestLocation = new MapLocation(curLoc.x, curLoc.y);\n\t\tdouble cowGrowthAmount = 0;\n\t\tMapLocation enemyHQLocation = rc.senseEnemyHQLocation();\n\t\tdouble distanceToEnemyHQ = curLoc.distanceSquaredTo(enemyHQLocation);\n\t\tfor (int i = 15; i-- > 0;) {\n\t\t\tfor (int j = 15; j-- > 0;) {\n\t\t\t\t// Check that it's in bounds\n\t\t\t\tif (curLoc.x - i + 8 >= 0 && curLoc.x - i + 8 < rc.getMapWidth() &&\n\t\t\t\t\tcurLoc.y - j + 8 >= 0 && curLoc.y - j + 8 < rc.getMapHeight()) {\n\t\t\t\t\tMapLocation mapLoc = new MapLocation(curLoc.x - i + 8, curLoc.y - j + 8);\n\t\t\t\t\tdouble currentLocGrowth = allCowGrowths[curLoc.x - i + 8][curLoc.y - j + 8];\n\n\t\t\t\t\t// Check that it's behind a perpendicular line and not void\n\t\t\t\t\t// and choose the best point.\n\t\t\t\t\tif (mapLoc.distanceSquaredTo(enemyHQLocation) < distanceToEnemyHQ &&\n\t\t\t\t\t\tcurrentLocGrowth > cowGrowthAmount && rc.senseTerrainTile(mapLoc) != TerrainTile.VOID) {\n\t\t\t\t\t\tcowGrowthAmount = currentLocGrowth;\n\t\t\t\t\t\tbestLocation = mapLoc;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn bestLocation;\n\t}", "public void calcObjective() {\n double obj;\n double objectives[];\n\n for (int i = 0; i < population.getPopulationSize(); i++) { //300\n objectives = population.getObjectiveValues(i);\n obj = evaluateAll(population.getSingleChromosome(i)); //evaluateAll(chromosome chromosome1)\n objectives[indexOfObjective] = obj;\n population.setObjectiveValue(i, objectives);\n }\n }", "public void doTestRun(int finalState) {\n\t\tint initialState = (int) (Math.random() * this.rows);\n\t\tint nextState = -1;\n\t\t\n\t\tif(initialState == finalState) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Spawning at: \" + initialState);\n\t\t\n\t\twhile(initialState != finalState) {\n\t\t\tint maxReward = -100000;\n\t\t\tnextState = initialState;\n\t\t\t\n\t\t\tfor(int j = 0; j < this.columns; j++) {\n\t\t\t\tif(this.qGrid[initialState][j] > maxReward) {\n\t\t\t\t\tmaxReward = this.qGrid[initialState][j];\n\t\t\t\t\tnextState = getStateActionMap(initialState, j);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint tState = initialState;\n\t\t\tinitialState = nextState;\n\t\t\tnextState = tState;\n\t\t\t\n\t\t\tSystem.out.println(\"Taking next step from \" + nextState + \" to \" + initialState + \"! For reward: \" + this.grid[nextState][initialState]);\n\t\t}\n\t\t\n\n\t}", "void compute() {\n\n if (random.nextBoolean()) {\n value = value + random.nextInt(variation);\n ask = value + random.nextInt(variation / 2);\n bid = value + random.nextInt(variation / 2);\n } else {\n value = value - random.nextInt(variation);\n ask = value - random.nextInt(variation / 2);\n bid = value - random.nextInt(variation / 2);\n }\n\n if (value <= 0) {\n value = 1.0;\n }\n if (ask <= 0) {\n ask = 1.0;\n }\n if (bid <= 0) {\n bid = 1.0;\n }\n\n if (random.nextBoolean()) {\n // Adjust share\n int shareVariation = random.nextInt(100);\n if (shareVariation > 0 && share + shareVariation < stocks) {\n share += shareVariation;\n } else if (shareVariation < 0 && share + shareVariation > 0) {\n share += shareVariation;\n }\n }\n }", "public int askWhatCityBonus(List<City> cities);", "void one_epoch() {\r\n \r\n \tdouble P_MUT = 0.1; // p-stwo mutacji\r\n \tdouble P_REC = 0.6; // p-stwo krzyzowania\r\n \r\n\t\tint poz=0;\t\t\t// pozycja najlepszego osobnika\r\n\t\t\r\n\t\tint ch1,ch2, cross, imin=0, imax=0;\r\n\t\tdouble min=Double.MAX_VALUE, max;\r\n\t\t\r\n\t\tinit();\r\n\t\r\n\t\t// ewolucja przez MAX_ITER iteracji\r\n\t\tfor (int iter = 0; iter < MAX_ITER; iter++) {\r\n\t\t\t//ocena osobnikow\r\n\t\t\tmin = Double.MAX_VALUE;\r\n\t\t\tmax = 0;\r\n\t\t\ttotFit = 0; \r\n\t\t\tdouble suma=0;\r\n\t\t\tfor (int i=0; i<SIZE; i++) {\r\n\t\t\t\tfit[i] = fitness(i); // oblicza dostosowanie i-tego osobnika\r\n\t\t\t\ttotFit+=fit[i]; \t\t // obl. calkowitego dopasowania \r\n\t\t\t\tif (fit[i]<min) {\r\n\t\t\t\t\tmin = fit[i]; \t\t // najlepsza wartosc dostosowania\r\n\t\t\t\t\timin = i;\t \t\t // nr pozycji najlepszego osobnika\r\n\t\t\t\t}\r\n\t\t\t\tif (fit[i]>max) {\r\n\t\t\t\t\tmax = fit[i];\r\n\t\t\t\t\timax = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (iter==999) piszPop();\r\n\t\t\t//strategia elitarna:\r\n\t\t\tif (min>best) {\r\n\t\t\t//jesli nowa populacja nie zawiera lepszego\r\n\t\t\t//osobnika, to najgorszy zastepowany jest przez cbest\r\n\t\t\t\tfor (int j=0; j<LEN; j++)\r\n\t\t\t\toldpop[imax][j] = cbest[j];\r\n\t\t\t\tmin = best;\r\n\t\t\t\tfit[imax] = best;\r\n\t\t\t\tsuma = totFit - fit[imax] + min;\r\n\t\t\t} \r\n\t\t\t//w przeciwnym razie najlepszy z populacji staje sie cbest;\r\n\t\t\telse {\r\n\t\t\t\tfor (int j=0; j<LEN; j++) {\r\n\t\t\t\t\tcbest[j] = oldpop[imin][j];\r\n\t\t\t\t}\r\n\t\t\t\tbest = min;\r\n\t\t\t}\r\n\t\t\tsuma = suma/SIZE;\r\n\t\t\t//druk najlepszego rozwiazania\t\r\n\t \tif (min==0 && pisac) {\r\n\t\t\t\tSystem.out.print(\"Rozwiazanie: '\");\r\n\t\t\t\tfor (int i=0; i<LEN; i++) System.out.print(oldpop[imin][i]);\r\n\t\t\t\tSystem.out.println(\" fit: \"+fitness(imin)+\" iteracja: \"+iter);\r\n\t\t\t\tpisac=false;\r\n\t\t\t}\r\n\t\t\t// zbieranie statystyk\r\n\t \tstat[iter][0] += min;\r\n\t \tstat[iter][1] += min*min;\r\n\t \tpoz = 0;\r\n\t \t//operacje genetyczne: selekcja, krzyzowanie i mutacja\r\n\t \tfor (int j = 0; j < SIZE/2; j++) {\r\n\t\t\t\t// Wybór rodziców (selekcja turniejowa).\r\n\t\t\t\tch1 = tournament();\r\n\t\t\t\tch2 = tournament();\r\n\t\t\t\t//krzyzowanie\r\n\t\t\t\tif (rnd.nextDouble()<P_REC) {\r\n\t\t\t\t\tcross = (int)Math.floor(rnd.nextDouble()*LEN);\r\n\t\t\t\t} else cross=LEN; //bez krzyzowania\r\n\t\t\t\tfor (int i=0; i<cross; i++) {\r\n\t\t\t\t\t//mutacja\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz][i] = 1-oldpop[ch1][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz][i] = oldpop[ch1][i];\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz+1][i] = 1-oldpop[ch2][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz+1][i] = oldpop[ch2][i];\r\n\t\t\t\t}\r\n\t\t\t\tfor (int i=cross; i<LEN; i++) {\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT)\r\n\t\t\t\t\t\tnewpop[poz][i] = 1-oldpop[ch2][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz][i] = oldpop[ch2][i];\r\n\t\t\t\t\tif (rnd.nextDouble()<P_MUT) \r\n\t\t\t\t\t\tnewpop[poz+1][i] = 1-oldpop[ch1][i];\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tnewpop[poz+1][i] = oldpop[ch1][i];\r\n\t\t\t\t}\r\n\t\t\t\tpoz = poz+2;\r\n\t \t}\r\n\t \tfor (int i=0; i<SIZE; i++) {\r\n\t \t\tfor (int j=0; j<LEN; j++) {\r\n\t \t\t\toldpop[i][j] = newpop[i][j];\r\n\t \t\t}\r\n\t \t}\t \t\r\n\t\t}\r\n }", "public EntityID nextTarget(Set<StandardEntity> victims) {\n\n// Clustering clustering = this.moduleManager.getModule(SampleModuleKey.AMBULANCE_MODULE_CLUSTERING);\n\n// if (this.clusterIndex == -1) {\n this.clusterIndex = clustering.getClusterIndex(this.agentInfo.getID());\n// }\n\n\n Collection<StandardEntity> elements = clustering.getClusterEntities(this.clusterIndex);\n\n calculateMapCenters(this.clusterIndex, elements);\n\n\n targetsMap.clear();\n\n if (previousTarget != null && !victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n previousTarget = null;\n }\n\n\n refreshTargetsMap(victims, targetsMap);\n\n calculateDecisionParameters(victims, targetsMap);\n\n calculateVictimsCostValue();\n\n\n AmbulanceTarget bestTarget = null;\n bestTarget = findBestVictim(targetsMap, elements);\n\n //considering inertia for the current target to prevent loop in target selection\n if (previousTarget != null && victims.contains(worldInfo.getEntity(previousTarget.getVictimID()))) {\n if (bestTarget != null && !bestTarget.getVictimID().equals(previousTarget.getVictimID())) {\n Human bestHuman = (Human) worldInfo.getEntity(bestTarget.getVictimID());\n Human previousHuman = (Human) worldInfo.getEntity(previousTarget.getVictimID());\n\n double bestHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(bestHuman.getPosition()).calc().getDistance();\n double previousHumanCost = pathPlanning.setFrom(agentInfo.getPosition()).setDestination(previousHuman.getPosition()).calc().getDistance();\n if (previousHumanCost < bestHumanCost) {\n bestTarget = previousTarget;\n }\n }\n }\n\n previousTarget = bestTarget;\n\n if (bestTarget != null) {\n return bestTarget.getVictimID();\n } else {\n return null;\n }\n\n }", "public void nextGeneration() {\n // Copy the present into the future in case something spawned\n System.arraycopy(universe,0,futureUniverse,0,universe.length);\n\n for (int line = 0; line < getHeight(); line++) {\n for (int column = 0; column < getWidth(); column++) {\n int aliveNeighbours = getAliveNeighboursCount(line,column);\n // Cell becomes alive if exactly 3 alive neighbours\n if (aliveNeighbours == 3) {if (!getCell(line,column)) toogleLifeStatus(line,column);}\n // Cell dies with less than two or more than 3 neighbours\n else if (aliveNeighbours < 2 | aliveNeighbours > 3) {if (getCell(line,column)) toogleLifeStatus(line,column);}\n }\n }\n if (Arrays.deepEquals(universe, futureUniverse)) universStable = true;\n // Copy the future into the present\n System.arraycopy(futureUniverse,0,universe,0,futureUniverse.length);\n }", "private void calculateFitness() {\n\t\tint day1=this.getNumberOfHours()*this.getNumberOfClasses();\n\t\tint day2=2*day1;\n\t\tint day3=3*day1;\n\t\tint day4=4*day1;\n\t\tint day5=5*day1;\n\t\tTeacher_lesson temp=null;\n\t\t//day 1//\n\t\tHashSet<Integer> closedSet=new HashSet<Integer>();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<day1;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day1;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\t\n\t\t\n\t\t//day2//\n\t\tclosedSet.clear();;\n\t\t\n\t\tfor(int i=day1;i<day2;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day2;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day3//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day2;i<day3;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day3;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t//day4//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day3;i<day4;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day4;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\t\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t}\n\t\t\t\n\t\t}\n\t\t//day5//\n\t\tclosedSet.clear();;\n\t\tfor(int i=day4;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp !=null){\n\t\t\t\tif(!(closedSet.contains(temp.get_tid()))){\n\t\t\t\n\t\t\t\t \t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\n\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t}\n\t\t\tclosedSet.add(temp.get_tid());\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\t\t//-1 giati den aferesame thn prwti wra otan to vriskei ston pinaka//\n\t\t\t\ttemp.set_d_hour(temp.get_td_hour()-1);\n\t\t\t\tif(temp.get_td_hour()>0){++this.fitness;}\n\t\t\t\t\n\t\t}\n\t\t\t/*if(temp.get_td_hour()<0){this.fitness=this.fitness-100;}//adunato na ginei giati o ka8igitis exei parapanw wres apo oti mporei na kanei//\n\t\t\t\telse if (temp.get_td_hour()==0){this.fitness=this.fitness-2;}//meiwnoume giati o ka8igitis 8a epivarin8ei oles tou tis wres thn idia mera//\n\t\t\t\telse{++this.fitness;}//kalh prosegisi*/\n\t\t}\n\t\t//*********************END OF DAILY EVALUATION*****************************//\n\t\t\n\t\t//**********************START OF WEEKLY EVALUATION************************//\n\t\t\n\t\tclosedSet.clear();\n\t\t\n\t int \t_weeklyhours = 1;\n\t \n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tif(!closedSet.contains(this.genes[i])){\n\t\t\t\t\n\t\t\t\n\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\tif(temp.get_tid()==this.genes[j]){\n\t\t\t\t\t++_weeklyhours; }\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t/*if(_weeklyhours>temp.get_tw_hour()){\n\t\t\t\tthis.fitness=this.fitness-100 ; //adunato na kanei parapanw wres ma8hma//\n\t\t\t}else\n\t\t\t\t{++this.fitness;}*/\n\t\t\tif(_weeklyhours<temp.get_tw_hour()){++this.fitness;}\n\t\t\tclosedSet.add(this.genes[i]);}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//*************END OF WEEKLY EVALUATION**********//\n\t\n\t\t//**START OF LESSON EVALUATION***//\n\t\tArraylistLesson set=new ArraylistLesson();\n\t\tclass_lid templ=null;\n\t\tTeacher_lesson tempj=null;\n\t\tint lid=0;\n\t\tString _class;\n\t\tint _classhours=1;\n\t\tfor(int i=0;i<day5;i++){\n\t\t\ttemp=getdata(this.genes[i]);\n\t\t\tif(temp!=null){\n\t\t\tlid=temp.get_lid();\n\t\t\t_class=temp.get_class();\n\t\t\ttempl=new class_lid(lid,_class);\n\t\t\tif(!set.contains(templ)){\n\t\t\t\t\n\t\t\t\tfor(int j=i+1;j<day5;j++){\n\t\t\t\t\ttempj=getdata(this.genes[j]);{\n\t\t\t\t\t\tif(tempj!=null){\n\t\t\t\t\t\t\tif(temp.get_tid()==tempj.get_tid()){\n\t\t\t\t\t\t\t\tif(temp.get_lid()==tempj.get_lid()&&temp.get_class().equalsIgnoreCase(tempj.get_class())){\n\t\t\t\t\t\t\t\t\t++_classhours;\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}\n\t\t\t\tint hours;\n\t\t\t\thours=temp.get_lhours();\n\t\t\t\n\t\tif(_classhours==hours){\n\t\t\t++this.fitness;\n\t\t}\n\t\tset.add(templ);\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t}", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "public int selectionFunctionBiggestCoin(MyList<Integer> candidates){\n\n\t\t//-----------------------------\n\t\t//Output Variable --> InitialValue\n\t\t//-----------------------------\n\t\tint res = -1;\n\n\t\t//-----------------------------\n\t\t//SET OF OPS\n\t\t//-----------------------------\n\t\tint maxWeight = Integer.MIN_VALUE;\n\t\tint index = candidates.length() - 1;\n\n\n\t\twhile (index >= 0) {\n\t\t\t// OP1.1. Auxiliary variables:\n\t\t\t// We use 'e0' to compute the first item of 'candidate' just once.\n\t\t\tint e0 = candidates.getElement(index);\n\n\t\t\t// OP1.1. If a not previously considered item improves minWeight, we\n\t\t\t// update 'res' and 'minWeight'\n\t\t\tif (e0 > maxWeight) {\n\t\t\t\tres = index;\n\t\t\t\tmaxWeight = e0;\n\t\t\t}\n\n\t\t\t// OP1.2. We decrease 'index' so as to try the previous item of\n\t\t\t// 'candidates'\n\t\t\tindex--;\n\t\t}\n\n\t\t//-----------------------------\n\t\t//Output Variable --> Return FinalValue\n\t\t//-----------------------------\t\t\n\t\treturn res;\t\t\n\t}", "static int[] connectedCities(int n, int g, int[] originCities, int[] destinationCities) {\n Map<Integer, TreeSet<Integer>> m1 = new HashMap<>();\n\n Map<Integer, TreeSet<Integer>> m2 = new HashMap<>();\n\n for (int i = 0; i <originCities.length ; i++) {\n TreeSet<Integer> s1 = new TreeSet<>();\n int c=originCities[i];\n for (int j = c; j>=1 ; j--) {\n if(c%j==0)\n s1.add(j);\n }\n m1.put(c,s1);\n }\n\n\n for (int i = 0; i <destinationCities.length ; i++) {\n TreeSet<Integer> s1 = new TreeSet<>();\n int c=destinationCities[i];\n for (int j = c/2; j>=1 ; j--) {\n if(c%j==0)\n s1.add(j);\n }\n m2.put(c,s1);\n }\n\n\n int result [] = new int[originCities.length];\n for (int i = 0; i <originCities.length ; i++) {\n\n int max1 =m1.get(originCities[i]).last();\n\n int max2 =m2.get(destinationCities[i]).last();\n if(max1 <=g)\n result[i]=0;\n else if(max2 <=g)\n result[i]=0;\n else{\n TreeSet<Integer> s1 =m1.get(originCities[i]);\n TreeSet<Integer> s2 =m2.get(destinationCities[i]);\n for (Integer x: s1) {\n if(s2.contains(x)) {\n result[i] = 1;\n break;\n }\n\n }\n }\n\n }\n\n return result;\n\n }", "public void evaluate() {\n for (Chromosome chromo : chromosomes) {\n double chromoGH = chromo.getTotalGH();\n if (chromo.isValid()) {\n this.validChromosomes++;\n if (chromoGH > this.getBestScore()) {\n this.bestScore = chromoGH;\n this.setBestChromo(chromo);\n }\n }\n //Log.debugMsg(chromo.getTotalGH().toString());\n// this.map.put(chromoGH, chromo);\n }\n }", "int[][] Naive(int m, Pointd[] points){\n int[][] tours = new int[m][];\n for(int i=0; i<m; i++){\n if(i<points.length%m) tours[i] = new int[points.length/m+1];\n else tours[i] = new int[points.length/m];\n }\n\n //Select the first point, find the next closest point, find the next closest point to that etc\n boolean[] alreadyInTour = new boolean[points.length];\n double minDistance;\n double distance;\n Pointd pointA;\n Pointd pointB;\n int index = 0;\n int n;\n\n for(int k=0; k<m; k++){\n //Each row of tours, first find a node that isn't in a tour\n n = 0;\n while(alreadyInTour[n]) n++;\n pointA = points[n];\n tours[k][0] = n;\n alreadyInTour[n] = true;\n\n int iterate = 0;\n int j=1;\n while(j<tours[k].length){\n if(!alreadyInTour[iterate]){\n minDistance = Double.MAX_VALUE;\n //Find next closest point to pointA\n for(int i=0; i<points.length; i++){\n pointB = points[i];\n if(!alreadyInTour[i]){\n distance = Math.sqrt( Math.pow(pointA.x - pointB.x, 2) + Math.pow(pointA.y - pointB.y, 2) );\n if(distance < minDistance){\n minDistance = distance;\n index = i;\n }\n }\n }\n //System.out.println(index);\n tours[k][j] = index;\n alreadyInTour[index] = true;\n j++;\n }\n iterate++;\n if(iterate >= points.length) iterate = 0;\n }\n }\n for(int i=0; i<tours.length; i++){\n //System.out.println(Arrays.toString(tours[i]));\n }\n return tours;\n }", "@Test\n public void genStateTransferMetric() {\n TreeMap<String, Integer> stat = new TreeMap<>();\n int currState = 8;\n for (int i = 1; i < numSteps; i++) {\n int nextStates = getNextState(currState);\n stat.compute(currState + \"-\" + nextStates, (k, v) -> v == null ? 1 : v + 1);\n currState = nextStates;\n }\n stat.forEach((k, v) -> System.out.printf(\"%s:%f\\n\", k.replace('-', ':'), (double) v / numSteps));\n }" ]
[ "0.6220319", "0.61459464", "0.6018024", "0.59801394", "0.59778583", "0.5807977", "0.57746905", "0.5739642", "0.57107764", "0.56983995", "0.5697717", "0.5652001", "0.5626996", "0.56187606", "0.5571646", "0.5528845", "0.5487778", "0.5486321", "0.54826844", "0.54756767", "0.5434204", "0.54257554", "0.54157156", "0.54116356", "0.5399665", "0.53984725", "0.53861505", "0.5381799", "0.53769", "0.5363076", "0.5336072", "0.5316224", "0.5314037", "0.53118694", "0.53072333", "0.5303828", "0.52990526", "0.52964264", "0.5290673", "0.528475", "0.5263601", "0.52632815", "0.52624947", "0.5258888", "0.5257754", "0.5256344", "0.524852", "0.52402997", "0.523415", "0.5232166", "0.5228809", "0.5217446", "0.5203568", "0.52028203", "0.5198077", "0.5196513", "0.5193554", "0.51892424", "0.51847297", "0.5182905", "0.51817554", "0.51809245", "0.51796514", "0.5179162", "0.5173118", "0.5159796", "0.51498884", "0.514901", "0.51393485", "0.5137892", "0.5130454", "0.5128014", "0.5126461", "0.51259726", "0.51248825", "0.51210326", "0.511901", "0.51180136", "0.5117044", "0.5116642", "0.5110179", "0.5109895", "0.5106704", "0.5105249", "0.5099752", "0.5097661", "0.50973856", "0.5097345", "0.5095759", "0.5093961", "0.5090848", "0.50852793", "0.5082444", "0.5082002", "0.5072085", "0.50682896", "0.5065239", "0.5062485", "0.5058932", "0.50570273", "0.505591" ]
0.0
-1
Update trails that ants used
private void updateTrails() { for (int i = 0; i < numberOfCities; i++) { for (int j = 0; j < numberOfCities; j++) { trails[i][j] *= evaporation; } } for (Ant a : ants) { double contribution = Q / a.trailLength(graph); for (int i = 0; i < numberOfCities - 1; i++) { trails[a.trail[i]][a.trail[i + 1]] += contribution; } trails[a.trail[numberOfCities - 1]][a.trail[0]] += contribution; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void updateTrails() {\r\n\t\tint from, to;\r\n\t\t\r\n\t\t// Pheromone evaporation\r\n\t\tfor(from = 0; from < cities.length; from++) {\r\n\t\t\tfor(to = 0; to < cities.length; to++) {\r\n\t\t\t\tif(from != to) {\r\n\t\t\t\t\tpheromone[from][to] *= (1.0 - RHO);\r\n\t\t\t\t\tif(pheromone[from][to] < 0.0) pheromone[from][to] = INIT_PHEROMONE; \r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// add new pheromone to the trails\r\n\t\t// look at the tours of each ant\r\n\t\tfor(int ai = 0; ai < ants.length; ai++) {\r\n\t\t\tAnt ant = ants[ai];\r\n\t\t\t// update each leg of the tour given the tour length\r\n\t\t\tfor(int i = 0; i < cities.length; i++) {\r\n\t\t\t\tif(i < cities.length - 1) {\r\n\t\t\t\t\tfrom = ant.path[i];\r\n\t\t\t\t\tto = ant.path[i + 1];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tfrom = ant.path[i];\r\n\t\t\t\t\tto = ant.path[0];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tpheromone[from][to] += ((QVAL / ant.tourLength) * RHO);\r\n\t\t\t\tpheromone[to][from] = pheromone[from][to];\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic Trainee updateTrainee(Trainee t) {\n\t\treturn dao.updateTrainee(t);\r\n\t}", "private void updateBest() {\n if (bestTourOrder == null) {\n bestTourOrder = ants.get(0).trail;\n bestTourLength = ants.get(0)\n .trailLength(graph);\n }\n for (Ant a : ants) {\n if (a.trailLength(graph) > bestTourLength) {\n bestTourLength = a.trailLength(graph);\n bestTourOrder = a.trail.clone();\n }\n }\n\n\n }", "private void updateALUTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tALUStation[] temp_alu = alu_rsTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_alu.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_alu[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tReservationStationModelTomasulo\n\t\t\t\t\t.setValueAt(((temp_alu[i].isReady() && temp_alu[i].isBusy()) ? temp_alu[i].getCycle() : \"0\"), i, 0);\n\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getName(), i, 1);\n\t\t\tReservationStationModelTomasulo.setValueAt(busy_desc, i, 2);\n\t\t\tReservationStationModelTomasulo.setValueAt(((temp_alu[i].isBusy()) ? temp_alu[i].getOperation() : \" \"), i,\n\t\t\t\t\t3);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVj(), i, 4);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getVk(), i, 5);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQj(), i, 6);\n\t\t\tReservationStationModelTomasulo.setValueAt(temp_alu[i].getQk(), i, 7);\n\t\t}\n\t}", "public void setEstimatedTrainLocations() {\n\t\t// TODO: for each train\n\t\tfor (Train t : trains) {\n\t\t\t// calculate the distance traveled since the last tick\n\t\t\tdouble speed = t.currSpeed * 0.488888889; // in yards/second\n\t\t\tdouble elapsedTime = SimClock.getDeltaMs() * 0.001; //in seconds\n\t\t\tdouble distanceTraveled = speed*elapsedTime; //yards\n\t\t\tDefaultBlock block = ((DefaultBlock)blockData.get(t.currentBlock));\n\t\t\tif (distanceTraveled > t.authority) {\n\t\t\t\tdistanceTraveled = t.authority;\n\t\t\t\tt.currSpeed = 0;\n\t\t\t}\n\t\t\telse if (trainRoutes.get(t.trainId).route.size() == 1) {\n\t\t\t\tif (t.distanceTraveledOnBlock + distanceTraveled > block.blockLength/2) {\n\t\t\t\t\tdistanceTraveled = block.blockLength/2 - t.distanceTraveledOnBlock;\n\t\t\t\t\tt.distanceTraveledOnBlock = block.blockLength/2;\n\t\t\t\t\tt.currSpeed = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// check if the train has entered a new block\n\t\t\tif (block.occupied == false) {\n\t\t\t\t// it has.\n\t\t\t\tt.currentBlock = trainRoutes.get(t.trainId).route.get(1);\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength - t.distanceTraveledOnBlock;\n\t\t\t\tt.currSpeed = ((DefaultBlock) blockData.get(t.currentBlock)).speedLimit;\n\t\t\t\tif (t.currSpeed > t.maxSpeed) {\n\t\t\t\t\tt.currSpeed = t.maxSpeed;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// calculate the distance traveled on block\n\t\t\telse if ((t.distanceTraveledOnBlock + distanceTraveled) > block.blockLength) {\n\t\t\t\tt.distanceTraveledOnBlock = block.blockLength;\n\t\t\t}\n\t\t\tt.authority -= distanceTraveled;\n\t\t\tt.currSpeed = trainRoutes.get(t.trainId).speed;\n\t\t\tt.distanceTraveledOnBlock += distanceTraveled;\n\t\t\t\n\t\t}\n\t}", "public void priceUpdate(){\n \n double attractionPrices = 0;\n Attraction attraction;\n for(int i=0; i< getAttractionsList().size();i++)\n {\n attraction = (Attraction) getAttractionsList().get(i);\n attractionPrices += attraction.getPrice();\n }\n hotelPrice = diff(getEndDate(), getStartDate());\n price = getTravel().getPrice() + getHotel().getPrice()*(hotelPrice) \n + getTransport().getPrice()*getTravel().getDistance()\n + attractionPrices;\n }", "@Override\r\n\tpublic void updateTipoTramite(TipoTramite tipoTramite) {\n\t\t\r\n\t}", "private void update() {\n\t\ttheMap.update();\n\t\ttheTrainer.update();\n\t}", "private void updateData(Multa ant, Multa multa) {\n\t}", "@Override\n\tpublic Trainee updateTrainee(Trainee t) {\n\t\tTrainee a=em.find(Trainee.class,t.getId());\n\t\tif(a!=null) {\n\t\t\ta.setName(t.getName());\n\t\t\ta.setLocation(t.getLocation());\n\t\t\ta.setDomain(t.getDomain());\n\t\t}\n\t\treturn a;\n\t}", "public void updateTravelledAndVisited() {\n Storage storage = Main.getStorage();\n routeStatsCalculator.updateLeastTravelledRoute(storage.getHistory());\n routeStatsCalculator.updateMostTravelledRoute(storage.getHistory());\n airportStatsCalculator.updateMostVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateLeastVisitedSrcAirports(storage.getHistorySrcAirports());\n airportStatsCalculator.updateMostVisitedDestAirports(storage.getHistoryDestAirports());\n airportStatsCalculator.updateLeastVisitedDestAirports(storage.getHistoryDestAirports());\n }", "@Override\n\tpublic void updateByid(Teatask ta)\n\t{\n\t\tteataskMapper.updateByid(ta);\n\t}", "public void updateTrifecta() {\n\n\t\taccelX = (xl.getX() - 0) * 9.8 * Math.cos(angleToForward * (Math.PI / 180.0)); //convert from g's\n\t\taccelY = (xl.getY() - 0) * 9.8 * Math.sin(angleToForward * (Math.PI / 180.0));\n\t\taccelZ = (xl.getZ() - 0) * 9.8;\n\t\t\n\t\t//velocity updated by acceleration integral\n\t\tvelX += accelX * dT;\n\t\tvelY += accelY * dT;\n\t\tvelZ += accelZ * dT;\n\t\t\n\t\t//position updated by velocity integral and adjusted for robot rotation\n\t\tposX += velX * dT;\n\t\tposY += velY * dT;\n\t\tposZ += velZ * dT;\n\t}", "public void actionTrain(Train t) {\n\t\t\t t.setVitesseScalaire(vitesse);\n\t\t}", "public static boolean update(Vector<Bus> buses, String tripId) {\n\t\tfor (int i = 0; i + 1 < buses.size(); i++) {\r\n\t\t\tBus b1 = buses.get(i);\r\n\t\t\tBus b2 = buses.get(i + 1);\r\n\t\t\tVector<Stop> trip1 = b1.getTrip();\r\n\t\t\t//System.out.println(Integer.toString(b1.getTripStartTime().get(Calendar.MINUTE)));\r\n\t\t\tVector<Stop> trip2 = b2.getTrip();\r\n\t\t\tfor (int j = 0; j + 1 < trip1.size(); j++) {\r\n\t\t\t\tStop s_1_1 = trip1.get(j);\r\n\t\t\t\tStop s_2_1 = trip2.get(j);\r\n\t\t\t\tCalendar pTime = getPtime(s_1_1.departureTime, s_2_1.departureTime);\r\n\t\t\t\tif (i == 0) {\r\n\t\t\t\t\tStop s_1_2 = trip1.get(j + 1);\r\n\t\t\t\t\tCalendar departureTime_1_1 = (Calendar) s_1_1.getDepartureTime().clone();\r\n\t\t\t\t\tint travelTime = (int) PredictionHandler.getStats_TTS_k2K_(tripId, s_1_1.getStopId(),\r\n\t\t\t\t\t\t\ts_1_2.getStopId(), pTime, ses);\r\n\t\t\t\t\tdepartureTime_1_1.add(Calendar.MINUTE, travelTime);\r\n\t\t\t\t\ts_1_2.setDepartureTime(departureTime_1_1);\r\n\t\t\t\t\t\r\n\t\t\t\t\tStop s_2_2 = trip2.get(j + 1);\r\n\t\t\t\t\tCalendar departureTime_2_1 = (Calendar) s_2_1.getDepartureTime().clone();\r\n\t\t\t\t\tint travelTime2 = (int) PredictionHandler.getStats_TTS_k2K_(tripId, s_2_1.getStopId(),\r\n\t\t\t\t\t\t\ts_2_2.getStopId(), pTime, ses);\r\n\t\t\t\t\tdepartureTime_2_1.add(Calendar.MINUTE, travelTime2);\r\n\t\t\t\t\ts_2_2.setDepartureTime(departureTime_2_1);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tStop s_2_2 = trip2.get(j + 1);\r\n\t\t\t\t\tCalendar departureTime_2_1 = (Calendar) s_2_1.getDepartureTime().clone();\r\n\t\t\t\t\tint travelTime3 = (int) PredictionHandler.getStats_TTS_k2K_(tripId, s_2_1.getStopId(),\r\n\t\t\t\t\t\t\ts_2_2.getStopId(), pTime, ses);\r\n\t\t\t\t\tdepartureTime_2_1.add(Calendar.MINUTE, travelTime3);\r\n\t\t\t\t\ts_2_2.setDepartureTime(departureTime_2_1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// update headway\r\n\t\tfor (int i = 0; i + 1 < buses.size(); i++) {\r\n\t\t\tBus b = buses.get(i);\r\n\t\t\tVector<Stop> trip = b.getTrip();\r\n\t\t\tBus b1 = buses.get(i + 1);\r\n\t\t\tVector<Stop> trip1 = b1.getTrip();\r\n\t\t\tif (i == 0) {\r\n\t\t\t\tfor (int j = 0; j < trip1.size(); j++) { \r\n\t\t\t\t\tint headway = (int) ((trip1.get(j).getDepartureTime().getTimeInMillis()\r\n\t\t\t\t\t\t\t- trip.get(j).getDepartureTime().getTimeInMillis()) /1000/60);\r\n\t\t\t\t\ttrip1.get(j).setHeadWay(headway);\r\n\t\t\t\t\ttrip.get(j).setHeadWay(headway); // assume the first bus's headway is the same as the second\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tfor (int j = 0; j < trip1.size(); j++) {\r\n\t\t\t\t\t//System.out.println(Integer.toString(trip.get(j).getDepartureTime().get(Calendar.MINUTE)));\r\n\t\t\t\t\t//System.out.println(Integer.toString(trip1.get(j).getDepartureTime().get(Calendar.MINUTE)));\r\n\t\t\t\t\t\r\n\t\t\t\t\tint headway = (int) ((trip1.get(j).getDepartureTime().getTimeInMillis()\r\n\t\t\t\t\t\t\t- trip.get(j).getDepartureTime().getTimeInMillis()) /1000/60);\r\n\t\t\t\t\ttrip1.get(j).setHeadWay(headway);\r\n\t\t\t\t\t// System.out.println(headway);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// update trip\r\n\t\tfor (int i = 0; i < buses.size(); i++) {\r\n\t\t\tBus b = buses.get(i);\r\n\t\t\tCalendar start = b.getTripStartTime();\r\n\t\t\tVector<Stop> trip = b.getTrip();\r\n\t\t\tVector<Stop> utrip = PredictionHandler.updateTrip(tripId, start, trip, ses);\r\n\t\t\tVector<Stop> ntrip = new Vector<Stop>();\r\n\t\t\tfor (int j = 0; j < utrip.size(); j++) {\r\n\t\t\t\tntrip.add(utrip.get(j).clone());\r\n\t\t\t}\r\n\t\t\tb.setTrip(ntrip);\r\n\t\t}\r\n\r\n\t\t// update loads\r\n\t\tfor (int i = 0; i < buses.size(); i++) {\r\n\t\t\tBus b = buses.get(i);\r\n\t\t\tVector<Stop> trip = b.getTrip();\r\n\t\t\tfor (int j = 0; j + 1 < trip.size(); j++) {\r\n\t\t\t\tStop s1 = trip.get(j);\r\n\t\t\t\tStop s2 = trip.get(j + 1);\r\n\t\t\t\tint load = (int) (s2.getHeadWay() * s2.getArrivalRate() + s1.getLoad() * \r\n\t\t\t\t\t(1 - s2.getAlightingRate()));\r\n\t\t\t\ts2.setLoad(load);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public void update(Triplet t) throws DAOException;", "@Override\n\tpublic Turkey update(Turkey t) {\n\t\treturn null;\n\t}", "public void toilette() {\n if (!autoriseOperation()) {\n return;\n }\n incrSale(-3);\n incrHumeur(1);\n incrXp(1);\n\n setChanged();\n notifyObservers();\n }", "public void updateAccount() {\r\n\t\t\r\n\t\t//update all totals\r\n\t\ttotalYouOwe = 0.0;\r\n\t\ttotalOwedToYou = 0.0;\r\n\t\tbalance = 0.0;\r\n\t\tnetBalance = 0.0;\r\n\t\t\r\n\t\t//totalYouOwe and totalOwedToYou\r\n\t\tfor (Event e : events) {\r\n\t\t\tif (e.isParticipantByGID(GID)) {\r\n\t\t\t\tif (e.getParticipantByGID(GID).getBalance() > 0) {\r\n\t\t\t\t\ttotalOwedToYou = totalOwedToYou + e.getParticipantByGID(GID).getBalance(); \r\n\t\t\t\t} else {\r\n\t\t\t\t\ttotalYouOwe = totalYouOwe + (-e.getParticipantByGID(GID).getBalance());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//netBalance/balance - the same in current implementation\r\n\t\tnetBalance = totalOwedToYou - totalYouOwe;\r\n\t\tbalance = totalOwedToYou - totalYouOwe;\r\n\t\t\r\n\t\tupdatePastRelations();\r\n\t}", "private void effectivlyJoin()\n\t{\n\t\tif (join==null)\n\t\t\treturn;\n\t\t//For each vehicle in the train to be joined starting from the tail, add vehicles to the current train at the head.\n\t\tfor (int i=join.cars.size()-1; i>=0; --i)\n\t\t\tthis.cars.add(0,join.cars.get(i));\n\t\tfor (Car c : join.cars)\n\t\t\tc.setTrain(this);\n\t\t//Notify observers of a train removing.\n\t\tfor (CarObserver obs : cars.get(0).getObserver())\n\t\t\tobs.removeTrain(join);\n\t}", "public void refineTR(){\n ArrayList<Node> prevLevelNodes = new ArrayList<>();\n ArrayList<Node> currentLevelNodes;\n services.clear();\n prevLevelNodes.add(endNode);\n while (true){\n currentLevelNodes = new ArrayList<>();\n for (Node n: prevLevelNodes){\n //System.out.println(n.isDummy());\n if (!n.isDummy()){\n //System.out.println(n.getService().getSubServices().size());\n for (AbstractService as: n.getService().getSubServices())\n services.add(as.getAbstractServices().get(0));\n }\n for (Node n1: n.getTraceTR()){\n currentLevelNodes.add(n1);\n }\n }\n if (currentLevelNodes.isEmpty())break;\n prevLevelNodes = currentLevelNodes;\n }\n this.generateDependencyGraph();\n //this.findOptimalResponseTime();\n this.findOptimalThroughput();\n }", "public void update(TheatreMashup todo) {\n\t\t\n\t}", "public void setTray(ArrayList<Tile> newTray){ this.tray = newTray; }", "public void routeAllTrains() {\n\t\tfor (Train t : trains) {\n\t\t\tcalculateShortestRoute(t);\n\t\t}\n\t\t\n\t}", "protected void _updateLocalAttributesFromG2(Structure atts)\n {\n }", "protected void updateTempWorkItems() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\tgetLogger().logDebug(\"Starting updateTempWorkItems\"); \n\t\t// break association\n\t\tfor (int i = 0; i < getTempWorkItems().size(); i++) {\t//SPR2992\n\t\t\tNbaDst temp = (NbaDst) getTempWorkItems().get(i);\t//SPR2992\n\t\t\tcopyCreateStation(temp);//ALS5191\n\t\t\tListIterator sources = temp.getNbaSources().listIterator();\n\t\t\tif (sources.hasNext()) {\n\t\t\t\tNbaSource source = (NbaSource) sources.next();\n\t\t\t\tsource.setBreakRelation();\n\t\t\t}\n\t\t\tsetWiStatus(new NbaProcessStatusProvider(getUser(), temp)); //SPR1715 SPR2992\n\t\t\ttemp.setStatus(getWiStatus().getPassStatus());\t//SPR2992\n\t\t\t//NBA213 deleted code\n\t\t\tupdateWork(getUser(), temp);\t//SPR3009, NBA213\n\t\t\tif (temp.isSuspended()) {\n\t\t\t\tNbaSuspendVO suspendVO = new NbaSuspendVO();\n\t\t\t\tsuspendVO.setTransactionID(temp.getID());\n\t\t\t\tunsuspendWork(getUser(), suspendVO);\t//SPR3009, NBA213\n\t\t\t}\n\t\t\tif (!temp.getID().equals(getWork().getID())) { // APSL5055-NBA331.1\n\t\t\t\tunlockWork(getUser(), temp);\t//SPR3009, NBA213\t\t\t\t\n\t\t\t} // APSL5055-NBA331.1\n\t\t\t//NBA213 deleted code\n\t\t}\n\t}", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "@Before\n\tpublic void setTraineeInfo() {\n\t\tthis.traineeOne.setName(\"Joe Smith\");\n\t\tthis.traineeOne.setEmail(\"[email protected]\");\n\t\tthis.traineeOne.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeOne.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeOne.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeTwo.setName(\"Shakira Jimenez\");\n\t\tthis.traineeTwo.setResourceId(\"two\");\n\t\tthis.traineeTwo.setEmail(\"[email protected]\");\n\t\tthis.traineeTwo.setPhoneNumber(\"347-798-6005\");\n\t\tthis.traineeTwo.setTrainingStatus(TrainingStatus.Training);\n\t\tthis.traineeTwo.setBatch(caliberBatch);\n\t\t\n\t\tthis.traineeThree.setName(\"Joe Smith\");\n\t\tthis.traineeThree.setResourceId(\"one\");\n\t\tthis.traineeThree.setEmail(\"[email protected]\");\n\t\tthis.traineeThree.setPhoneNumber(\"954-798-6005\");\n\t\tthis.traineeThree.setTrainingStatus(TrainingStatus.Dropped);\n\t\t\n\t\tcaliberTrainees.add(traineeOne);\n\t\tcaliberTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeThree);\n\t\tsalesforceTrainees.add(traineeTwo);\n\t}", "public void updateList(long t) {\n\t\tfor (int i = 0; i < ballList.size(); i++) {\n\t\t\tballList.get(i).move(t);\n\t\t\t//System.out.printf(\"ball %d at %d %d\\n\", i, ballList.get(i).getX(), ballList.get(i).getY());\n\t\t}\n\t}", "public void updateWayPointList() {\r\n\t\tif (!currentTrackID.equals(\"\")) {\r\n\r\n\t\t\tlong trackID = Long.parseLong(currentTrackID);\r\n\r\n\t\t\tDatabaseService.Util.getInstance().getWaypointByTrack(trackID,\r\n\t\t\t\t\tnew Date(UserSettings.lastWayPointUpdateTime),\r\n\t\t\t\t\tnew AsyncCallback<ServiceResult<ArrayList<CWaypoint>>>() {\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t\t\t\tcaught.printStackTrace();\r\n\t\t\t\t\t\t\tupdateDone();\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void onSuccess(\r\n\t\t\t\t\t\t\t\tServiceResult<ArrayList<CWaypoint>> result) {\r\n\r\n\t\t\t\t\t\t\tif (result.isOK()) {\r\n\t\t\t\t\t\t\t\tArrayList<CWaypoint> listWayPoint = result\r\n\t\t\t\t\t\t\t\t\t\t.getResult();\r\n\r\n\t\t\t\t\t\t\t\tfor (int i = 0; i < listWayPoint.size(); i++) {\r\n\t\t\t\t\t\t\t\t\tratioCount = (ratioCount + 1) % ratio;\r\n\t\t\t\t\t\t\t\t\tif (ratioCount == 0) {\r\n\t\t\t\t\t\t\t\t\t\taddRecord(listWayPoint.get(i), 0);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tupdateDone();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t} else {\r\n\t\t\tupdateDone();\r\n\t\t}\r\n\t}", "private void updateAllBonuses() {\n\t\tfor(int i = 0; i < bonuses.length; i++)\n\t\t\tbonuses[i] = 0;\n\t\tfor(Item item : getItems()) {\n\t\t\tupdateBonus(null, item);\n\t\t}\n\t}", "public void updateKetraVarka() {\n if (ItemFunctions.getItemCount(this, 7215) > 0) {\n _ketra = 5;\n } else if (ItemFunctions.getItemCount(this, 7214) > 0) {\n _ketra = 4;\n } else if (ItemFunctions.getItemCount(this, 7213) > 0) {\n _ketra = 3;\n } else if (ItemFunctions.getItemCount(this, 7212) > 0) {\n _ketra = 2;\n } else if (ItemFunctions.getItemCount(this, 7211) > 0) {\n _ketra = 1;\n } else if (ItemFunctions.getItemCount(this, 7225) > 0) {\n _varka = 5;\n } else if (ItemFunctions.getItemCount(this, 7224) > 0) {\n _varka = 4;\n } else if (ItemFunctions.getItemCount(this, 7223) > 0) {\n _varka = 3;\n } else if (ItemFunctions.getItemCount(this, 7222) > 0) {\n _varka = 2;\n } else if (ItemFunctions.getItemCount(this, 7221) > 0) {\n _varka = 1;\n } else {\n _varka = 0;\n _ketra = 0;\n }\n }", "private void updateUndoBuffers(List<Line> lines) {\n previousPositions.add(new TurtleState(new Point(xPos,yPos), myAngle));\n lastLinesPlaced.add(lines);\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}", "private void updateVehicles() {\n OffloaderSyncAdapter.syncImmediately(getContext());\n Log.w(LOG_TAG, \"updateVehicles: \");\n }", "public void updateTurtleOnView()\n\t{\n\t\t// update turtle info to View\n\t\tsetInfoParamsOfTurtleAndLine();\n\t\t\n\t\tif (this.isVisible() == 1)\n\t\t{\n\t\t\t// make turtle visible, then update turtle movement\n\t\t\tthis.myTurtleView.showTurtle(true);\n\t\t\tthis.myTurtleView.rotateAndMoveTurtle(this.getTurtleLocation(), this.getTurtleOrientation());\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// tell view to make turtle invisible\n\t\t\tthis.myTurtleView.showTurtle(false);\n\t\t}\n\t}", "public void update(){\r\n\t\tList<Point> list = new ArrayList<Point>();\r\n\t\t\r\n\t\tlist.addAll(Arrays.asList(points));\r\n\t\t\r\n\t\tsetPoints(list);\r\n\t}", "public void setUpdateTickets (int updateTickets)\n {\n this.unsoldTickets=this.unsoldTickets + updateTickets; \n }", "private void updateMemTableTomasulo() {\n\t\t// Get a copy of the memory stations\n\t\tMemStation[] temp_ms = MemReservationTomasulo;\n\n\t\t// Update the table with current values for the stations\n\t\tfor (int i = 0; i < temp_ms.length; i++) {\n\t\t\t// generate a meaningfull representation of busy\n\t\t\tString busy_desc = (temp_ms[i].isBusy() ? \"Yes\" : \"No\");\n\n\t\t\tMemoryModelTomasulo.setValueAt(temp_ms[i].getName(), i, 0);\n\t\t\tMemoryModelTomasulo.setValueAt(busy_desc, i, 1);\n\t\t\tMemoryModelTomasulo.setValueAt(temp_ms[i].getAddress(), i, 2);\n\t\t}\n\t}", "private void setAltitudeValues(){\n minAlt = trackingList.get(0).getAltitude();\n maxAlt = trackingList.get(0).getAltitude();\n averageAlt = trackingList.get(0).getAltitude();\n\n double sumAlt =0.0;\n\n for (TrackingEntry entry:trackingList) {\n\n sumAlt += entry.getAltitude();\n\n //sets min Speed\n if (minAlt > entry.getAltitude()){\n minAlt = entry.getAltitude();\n }\n //sets max Speed\n if (maxAlt < entry.getAltitude()) {\n maxAlt = entry.getAltitude();\n }\n\n }\n averageAlt = sumAlt/trackingList.size();\n }", "private void updateTerritoriesHold(Player player) {\n getTerritories(player)\n .forEach(Territory::reduceCompetence);\n\n getTerritories(player).stream()\n .filter(Territory::isArmyTotalPowerUnderThreshold)\n .forEach(this::releaseTerritory);\n //Territory::eliminateThisWeakArmy);\n //activateEventsHandler();\n }", "@Override\n\tpublic void update(int timeStep)\n\t{\n\t\tthis.checkForNewAppliancesAndUpdateConstants();\n\n\t\tdouble[] ownersCostSignal = this.owner.getPredictedCostSignal();\n\t\tthis.dayPredictedCostSignal = Arrays.copyOfRange(ownersCostSignal, timeStep % ownersCostSignal.length, timeStep\n\t\t\t\t% ownersCostSignal.length + this.ticksPerDay);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"update\");\n\t\t}\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tthis.dayPredictedCostSignal = ArrayUtils\n\t\t\t\t.offset(ArrayUtils.multiply(this.dayPredictedCostSignal, this.predictedCostToRealCostA), this.realCostOffsetb);\n\n\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t{\n\t\t\tthis.mainContext.logger.trace(\"afterOffset dayPredictedCostSignal: \" + Arrays.toString(this.dayPredictedCostSignal));\n\t\t}\n\n\t\tif (this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tthis.setPointProfile = Arrays.copyOf(this.owner.getSetPointProfile(), this.owner.getSetPointProfile().length);\n\t\t\tthis.optimisedSetPointProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.currentTempProfile = Arrays.copyOf(this.setPointProfile, this.setPointProfile.length);\n\t\t\tthis.heatPumpDemandProfile = this.calculateEstimatedSpaceHeatPumpDemand(this.setPointProfile);\n\t\t\t// (20/01/12) Check if sum of <heatPumpDemandProfile> is consistent\n\t\t\t// at end day\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger\n\t\t\t\t\t\t.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \" + ArrayUtils.sum(this.heatPumpDemandProfile));\n\t\t\t}\nif (\t\t\tthis.mainContext.logger.isTraceEnabled()) {\n\t\t\tthis.mainContext.logger.trace(\"Sum(Wattbox estimated heatPumpDemandProfile): \"\n\t\t\t\t\t+ ArrayUtils.sum(this.calculateEstimatedSpaceHeatPumpDemand(this.optimisedSetPointProfile)));\n}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.heatPumpDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.hotWaterVolumeDemandProfile = Arrays.copyOfRange(this.owner.getBaselineHotWaterVolumeProfile(), (timeStep % this.owner\n\t\t\t\t\t.getBaselineHotWaterVolumeProfile().length), (timeStep % this.owner.getBaselineHotWaterVolumeProfile().length)\n\t\t\t\t\t+ this.ticksPerDay);\n\t\t\tthis.waterHeatDemandProfile = ArrayUtils.multiply(this.hotWaterVolumeDemandProfile, Consts.WATER_SPECIFIC_HEAT_CAPACITY\n\t\t\t\t\t/ Consts.KWH_TO_JOULE_CONVERSION_FACTOR\n\t\t\t\t\t* (this.owner.waterSetPoint - ArrayUtils.min(Consts.MONTHLY_MAINS_WATER_TEMP) / Consts.DOMESTIC_HEAT_PUMP_WATER_COP));\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.waterHeatDemandProfile = Arrays.copyOf(this.noElecHeatingDemand, this.noElecHeatingDemand.length);\n\t\t}\n\n\t\tif (this.coldAppliancesControlled && this.owner.isHasColdAppliances())\n\t\t{\n\t\t\tthis.optimiseColdProfile(timeStep);\n\t\t}\n\n\t\tif (this.wetAppliancesControlled && this.owner.isHasWetAppliances())\n\t\t{\n\t\t\tthis.optimiseWetProfile(timeStep);\n\t\t}\n\n\t\t// Note - optimise space heating first. This is so that we can look for\n\t\t// absolute\n\t\t// heat pump limit and add the cost of using immersion heater (COP 0.9)\n\t\t// to top\n\t\t// up water heating if the heat pump is too great\n\t\tif (this.spaceHeatingControlled && this.owner.isHasElectricalSpaceHeat())\n\t\t{\n\t\t\tif (this.owner.hasStorageHeater)\n\t\t\t{\n\t\t\t\tthis.optimiseStorageChargeProfile();\n\t\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t\t{\n\t\t\t\t\tthis.mainContext.logger.trace(\"Optimised storage heater profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\tthis.optimiseSetPointProfile();\n\t\t\tif (this.mainContext.logger.isTraceEnabled())\n\t\t\t{\n\t\t\t\tthis.mainContext.logger.trace(\"Optimised set point profile = \" + Arrays.toString(this.heatPumpOnOffProfile));\n\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (this.waterHeatingControlled && this.owner.isHasElectricalWaterHeat())\n\t\t{\n\t\t\tthis.optimiseWaterHeatProfileWithSpreading();\n\t\t}\n\n\t\tif (this.eVehicleControlled && this.owner.isHasElectricVehicle())\n\t\t{\n\t\t\tthis.optimiseEVProfile();\n\t\t}\n\n\t\t// At the end of the step, set the temperature profile for today's\n\t\t// (which will be yesterday's when it is used)\n\t\tthis.priorDayExternalTempProfile = this.owner.getContext().getAirTemperature(timeStep, this.ticksPerDay);\n\t}", "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 }", "public static void atualizar(Tarefa tar) {\n }", "public void UpdateTrafficLights(TrafficLight t1, TrafficLight t2, TrafficLight t3){\n String t1StatusWord;\n String t2StatusWord;\n String t3StatusWord;\n if(t1.status == 1)\n t1StatusWord = \"Green\";\n else if(t1.status == 0)\n t1StatusWord = \"Red\";\n else\n t1StatusWord = \"Unknown\";\n \n if(t2.status == 1)\n t2StatusWord = \"Green\";\n else if(t2.status == 0)\n t2StatusWord = \"Red\";\n else\n t2StatusWord = \"Unknown\";\n\n if(t3.status == 1)\n t3StatusWord = \"Green\";\n else if(t3.status == 0)\n t3StatusWord = \"Red\";\n else\n t3StatusWord = \"Unknown\";\n\n trafficModel.setValueAt(t1StatusWord, 0, 1);\n if(t1.status == 1)\n trafficModel.setValueAt(t1.time, 0, 2);\n else\n trafficModel.setValueAt(\"--\", 0, 2); \n trafficModel.setValueAt(t2StatusWord, 1, 1);\n if(t2.status == 1)\n trafficModel.setValueAt(t2.time, 1, 2);\n else\n trafficModel.setValueAt(\"--\", 1, 2);\n trafficModel.setValueAt(t3StatusWord, 2, 1);\n if(t3.status == 1)\n trafficModel.setValueAt(t3.time, 2, 2);\n else\n trafficModel.setValueAt(\"--\", 2, 2);\n }", "private void updateOntChanges() {\r\n\t\ttry {\r\n\t\t\tString status = \"Status: [ACTION - Update Local Ontology]...\";\r\n\t\t\tstatusBar.setText(status);\r\n\t\t\tif (existingOntRadio.isSelected()) {\r\n\t\t\t\tOWLOntology ont = (OWLOntology) ontBox.getSelectedItem();\r\n\t\t\t\tList changes = swoopModel.getChangesCache().getChangeList(ont.getURI());\r\n\t\t\t\tfor (int i=0; i<changes.size(); i++) {\r\n\t\t\t\t\tSwoopChange swc = (SwoopChange) changes.get(i);\r\n\t\t\t\t\tif (!isPresent(ontChanges, swc)) ontChanges.add(swc.clone());\r\n\t\t\t\t}\r\n\t\t\t\tthis.sortChanges(ontChanges);\r\n\t\t\t\tthis.refreshOntTreeTable(); \r\n\t\t\t}\r\n\t\t\tstatusBar.setText(status+\"DONE\");\r\n\t\t}\r\n\t\tcatch (OWLException ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t}", "private void setTaunts(String taunt1, String taunt2, String taunt3){\n\t\ttaunts.add(taunt1); // adds taunts to the arraylist\n\t\ttaunts.add(taunt2);\n\t\ttaunts.add(taunt3);\n\t}", "private static void updateTotals()\r\n\t{\r\n\t\ttaxAmount = Math.round(subtotalAmount * salesTax / 100.0);\r\n\t\ttotalAmount = subtotalAmount + taxAmount;\r\n\t}", "private void _generateATa(TaInfo ta) {\n\t String id = _getId(CS_C_GRADSTUD, ta.indexInGradStud);\n writer_.startAboutSection(CS_C_TA, id);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, RDF.type.getURI(), ontology+\"#TeachingAssistant\", true);\t \t \t \t \n }\n writer_.addProperty(CS_P_TAOF, _getId(CS_C_COURSE, ta.indexInCourse), true);\n if(globalVersionTrigger){\t \t \n \t writer_log.addPropertyInstance(id, ontology+\"#teachingAssistantOf\", _getId(CS_C_COURSE, ta.indexInCourse), true);\t \t \t \t \n }\n writer_.endSection(CS_C_TA);\n }", "private void treinRepaint()\r\n {\r\n if(treinaantal != 0){\r\n for(int i =0; i < treinaantal; i++){\r\n int[] id = {treinlijst[i].getId()};\r\n int[] arg = {treinlijst[i].getPositie()};\r\n main.updateGui(\"trein\", id, arg);\r\n }\r\n }\r\n }", "@Override\n\tpublic void updateObservateur() {\n\t\tfor (Observateur obs : this.listObservateur)\n\t\t\tobs.update(hour);\n\n\t}", "void update() throws AntArtException {\n AntArea.Cell curr = getCurrentCell();\n if (collectedFood()) {\n //If collected food and reached to a nest. Drop the food and move backwards to new food source.\n if (curr.getType() == AntArea.CellType.NEST) {\n curr.depositFood();\n currFood = 0;\n directionVector = AntDirections.moveBackward(directionVector);\n moveToFoodSource();\n } else {\n //If collected food and not reached to a nest then look for a way to nest\n moveToNest();\n }\n } else {\n if (curr.isContainingFood(this.foodId)) {\n //If not collected food and on a cell with food. Pick up the food and if collecting this food fills\n //the current capacity turn around and look for nest\n curr.pickUpFood(this.foodId);\n currFood++;\n if (collectedFood()) {\n directionVector = AntDirections.moveBackward(directionVector);\n moveToNest();\n }\n } else {\n //If not collected food and not on a food cell look for a food source\n moveToFoodSource();\n }\n }\n\n }", "private void update()\r\n\t{\r\n\t\tfor (Agent agent : agents)\r\n\t\t{\r\n\t\t\tint i = agent.getIndex();\r\n\t\t\tp.setEntry(i, agent.getP());\r\n\t\t\tq.setEntry(i, agent.getQ());\r\n\t\t\tvabs.setEntry(i, agent.getVabs());\r\n\t\t\tvarg.setEntry(i, agent.getVarg());\r\n\t\t\tlambdaP.setEntry(i, agent.getLambdaP());\r\n\t\t\tlambdaQ.setEntry(i, agent.getLambdaQ());\r\n\t\t}\r\n\t}", "public void join(Train train){\n\t\tif (join == train)\n\t\t\t//The train to be joined is the same as the current train\n\t\t\treturn;\n\t\tjoin = train;\n\t\t//If the current train contains only one vehicle, set its speed to NORMAL.\n\t\tif (this.hasOnlyOneCar())\n\t\t\tthis.cars.get(0).setSpeed(Speed.NORMAL);\n\t\tif (join==null)\n\t\t\treturn;\n\t\t//If the train to be joined has only one vehicle, set its speed to NORMAL.\n\t\tif (train.hasOnlyOneCar())\n\t\t\ttrain.cars.get(0).setSpeed(Speed.NORMAL);\n\t}", "Flight updateFlight(Flight flight);", "private void updateRacePoints(char[] allTyreTypes)\n {\n getDrivers().adjustDriversListByTime(allTyreTypes);\n for(int i = 0 ; i < getDrivers().getSize() ; i++)\n {\n int scoringPoints = 0;\n if(i == 0 && getDrivers().getDriver(i).getEligibleToRace()) // if first and eligible\n {\n scoringPoints = 8;\n }\n else if(i == 1 && getDrivers().getDriver(i).getEligibleToRace()) // if second and eligible\n {\n scoringPoints = 5;\n }\n else if(i == 2 && getDrivers().getDriver(i).getEligibleToRace()) // if third and eligible\n {\n scoringPoints = 3;\n }\n else if(i == 3 && getDrivers().getDriver(i).getEligibleToRace()) // if fourth and eligible\n {\n scoringPoints = 1;\n }\n getDrivers().getDriver(i).setAccumulatedScore(getDrivers().getDriver(i).getAccumulatedScore() + scoringPoints);\n }\n }", "void updateTransmission(Transmission transmission);", "public void updateWeights() {\n\t\t\n\t}", "void updateLinks() {\n\t\tdouble x1, x2, y1, y2;\n\t\tfor(int i=0; i<links.size();i++){\n\t\t\tPNode node1 = links.get(i).getNode1();\n\t\t\tPNode node2 = links.get(i).getNode2();\n\t\t\tx1 = node1.getFullBoundsReference().getCenter2D().getX() + node1.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty1 = node1.getFullBoundsReference().getCenter2D().getY() + node1.getParent().getFullBounds().getOrigin().getY();\n\t\t\tx2 = node2.getFullBoundsReference().getCenter2D().getX() + node2.getParent().getFullBounds().getOrigin().getX();\n\t\t\ty2 = node2.getFullBoundsReference().getCenter2D().getY() + node2.getParent().getFullBounds().getOrigin().getY();\n\t\t\t\n\t\t\t/*\n\t\t\tLine2D line = new Line2D.Double(x1,y1,x2,y2);\n\t\t\tlinks.get(i).getPPath().setPathTo(line);\n */\n\t\t\tsetPolyLine(links.get(i).getPPath(), (float)x1, (float)y1, (float)x2, (float)y2);\n\t\t\t}\n\t\t}", "public void update(float time){\n\t\t//Check if there is a train to wait for.\n\t\tif (hasTrainPassed(wait))\n\t\t{\n\t\t\tthis.wait = null;\n\t\t\t//Check if the train to be joined is not intersecting the current train (we have to wait for having space between two vehicles before joining)\n\t\t\tif (hasTrainPassed(join) && canJoin())\n\t\t\t{\n\t\t\t\t//Update each vehicle in the train.\n\t\t\t\tupdatePositions(time);\n\t\t\t\t//Make trains joining each other.\n\t\t\t\tthis.effectivlyJoin();\n\t\t\t\tjoin = null;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void apply(MAltitude alt) {\n updateFlightStats();\n }", "protected void _updateG2AttributesFromLocal(Structure atts)\n {\n }", "@Override\n\tpublic void updateAgence(Agence a) {\n\t\t\n\t}", "void updateTermsArray() {\n terms.clear();\n terms = getTerms();\n }", "public void atualizar(Traco traco) throws TracoNaoEncontradoException {\n\t\tif(this.proximo.proximo != null) {\t\t\t\t\t\t\t\t\t//modifica suas informacoes\n\t\t\tif(this.traco.getNome().equals(traco.getNome())) {\n\t\t\t\tthis.traco.setNome(traco.getNome());\n\t\t\t\tthis.traco.setDescricao(traco.getDescricao());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.proximo.atualizar(traco);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif(this.traco.getNome().equals(traco.getNome())) {\n\t\t\t\tthis.traco = traco;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new TracoNaoEncontradoException(traco.getNome());\n\t\t\t}\n\t\t}\n\t}", "public void interestIncrease(){\r\n for (SavingsAccount account : saving){\r\n if (account == null){\r\n break;\r\n }\r\n account.addInterest();\r\n }\r\n }", "public void updateData(Trick completedTrick);", "public void setTrailers(ArrayList<Trailer> trailers) {\n if (trailers == null) {\n trailers = new ArrayList<>();\n }\n\n this.trailers = trailers;\n }", "void reorganizeTriples(ProgressListener listener);", "public void incrementRefusals() {\n\t}", "@Transactional\r\n\tpublic void updateScore(Trip trip) {\n\t\t\r\n\t}", "private void updatePointSpeeds() {\n\t\tfor (int i = 0; i < locations.size(); i++) {\n\t\t\tLocationStructure loc = locations.get(i);\t\t\n\t\t\tDouble dist = Double.MIN_VALUE;\n\t\t\tDouble lat1 = loc.getLatitude().doubleValue();\n\t\t\tDouble lon1 = loc.getLongitude().doubleValue();\n\t\t\t\n\t\t\tDate d = times.get(i);\n\t\t\t\n\t\t\tif( i+1 < locations.size()) {\n\t\t\t\tloc = locations.get(i+1);\n\t\t\t\tDouble lat2 = loc.getLatitude().doubleValue();\n\t\t\t\tDouble lon2 = loc.getLongitude().doubleValue();\n\t\t\t\tdist = calculateDistance(lat1, lon1, lat2, lon2);\n\t\t\t\t\n\t\t\t\tDate d1 = times.get(i+1);\n\t\t\t\tDateTime dt1 = new DateTime(d);\n\t\t\t\tDateTime dt2 = new DateTime(d1);\n\t\t\t\tint seconds = Seconds.secondsBetween(dt1, dt2).getSeconds();\t\t\t\n\t\t\t\tDouble pd = (dist/seconds)*60;\n\t\t\t\tif(!pd.isNaN()) {\n\t\t\t\t\tpointSpeed.add(pd);\t\t\n\t\t\t\t\tSystem.out.println(\"BUS STATE-- Added point speed of \"+ (dist/seconds)*60 + \" for \" +this.vehicleRef);\n\t\t\t\t}\n\t\t\t} else break;\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void updateRound() {\n\t\t//System.out.println(\" Updating the round...\");\n\t\tif (loads.size() < 1)\n\t\t\treturn;\n\n\t\tArrayList<AidLoad> tempLoads = new ArrayList<AidLoad>(loads);\n\n\t\tfor (int i = 1; i < tempLoads.size(); i++) {\n\t\t\tAidLoad p = tempLoads.get(i - 1);\n\t\t\tdouble dist = Double.MAX_VALUE;\n\t\t\tint best = -1;\n\n\t\t\tfor (int j = i; j < tempLoads.size(); j++) {\n\t\t\t\tAidLoad pj = tempLoads.get(j);\n\t\t\t\tdouble pjdist = pj.deliveryLocation.distance(p.deliveryLocation);\n\t\t\t\tif (pjdist < dist) {\n\t\t\t\t\tdist = pjdist;\n\t\t\t\t\tbest = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAidLoad closestLoad = tempLoads.remove(best);\n\t\t\ttempLoads.add(i, closestLoad);\n\t\t}\n\t\tmyLoad = tempLoads;\n\t}", "private void updatePrice() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tfor(int i = first;i<last;i++){\r\n\t\t\tProduct product = products.get(i);\r\n\t\t\tproduct.setPrivce(product.getPrivce()*(1+increment));\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic boolean update(Produto t) {\n\t\treturn true;\n\t}", "public void update(Object obj) {\n\t\t\t\t\t\tNode clone = new Node();\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo1));\n\t\t\t\t\t\tclone.attachChild(new SharedLine(lineGeo2));\n\t\t\t\t\t\tlines.attachChild(clone);\n\t\t\t\t\t\tTealWorldManager.getWorldManager().addToUpdateList(lines);\n\t\t\t\t\t}", "public void updateAllies(){\r\n List<Ally> allies = world.getAllies();\r\n ArrayList<Ally> deadAllies = new ArrayList<Ally>();\r\n for(Ally ally : allies){\r\n if(ally.getCurrHP() <= 0){\r\n deadAllies.add(ally);\r\n }\r\n }\r\n\r\n allies.removeAll(deadAllies);\r\n world.setNumAllies(allies.size());\r\n //numAllies.set(allies.size());\r\n }", "public Tilaus setTilausDone(Tilaus tilaus) {\n Session session = factory.openSession();\n Transaction tx = null;\n\n try {\n tx = session.beginTransaction(); \n tilaus.setStatus(2);\n tilaus.setValmistumisAika(LocalDateTime.now());\n session.update(tilaus); \n Tyontekija tt = tilaus.getTyontekija();\n tt.setHoidetutTilaukset(tt.getHoidetutTilaukset()+1);\n tt.setVaiheessaTilaukset(tt.getVaiheessaTilaukset()-1);\n int tilauksenLaitteet = 0;\n for(Laite laite : tilaus.getLaitteet()) {\n tilauksenLaitteet++;\n }\n tt.setHoidetutLaitteet(tt.getHoidetutLaitteet()+tilauksenLaitteet);\n tt.setTyoMinuutit(tt.getTyoMinuutit()+toIntExact(Duration.between(tilaus.getTyonalleottoAika(), LocalDateTime.now()).toMinutes()));\n session.update(tt);\n tx.commit();\n } catch (HibernateException e) {\n if (tx!=null) tx.rollback();\n e.printStackTrace(); \n } finally {\n session.close(); \n }\n return tilaus;\n }", "public void updateReward(User user, Article a, boolean clicked) {\n\t\t// Just make sure we have values for article a...\n\t\tgetReward(a);\n\t\t// Update values.\n\t\ttrials.put(a.getId(), trials.get(a.getId()) + 1);\n\t\tclicks.put(a.getId(), clicks.get(a.getId()) + 1);\n\t}", "public void bsetCostElements() {\n\t\t\t\n\t\t\t\n\t\tfor (int obj = 0; obj < finalLocation.length; obj++) {\n\t\t for (int time = 0; time < finalLocation[obj].length; time++) {\n\t\t\t\n\t\t bfCost[obj][time].bstorageCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bstorageCost;\n\t\t\t bfCost[obj][time].breadCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].breadCost;\n\t\t\t bfCost[obj][time].bwriteCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bwriteCost;\n\t\t\t bfCost[obj][time].btranCost=totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].btranCost;\n\t\t\t \n\t\t\t //1. we calculate latency cost for two cases separately: when the object is in the hot tier or cool tier.\n\t\t\t if (finalLocation[obj][time]==0){//Object is in the cool tier\n\t\t\t\t bfCost[obj][time].bdelayCost=totalCostCalculation.btotalResidentCost[time][obj][0].bdelayCost;\n\t\t\t\t \n\t\t\t }else{// object is in both tiers and, in consequence, the latency cost of writes is the maximum latency of writing in both tiers, and the read latency is the one in hot tier.\n\t\t\t\t bfCost[obj][time].bedelCost=fc.bdelayMaxWriteReadCost(workloadGenerator.objectListRegion[obj], 1, obj, time);\n\t\t\t }\n\t\t\t \n\t\t /* 2. Here we calculate storage cost and transaction cost to make consistent data. This requires just write transaction. Since in our cost \n calculation make a computation for both read and writes.\n\t\t */\n\t\t \n\t\t if(finalLocation[obj][time]==1){//NOTE: in above cost storage, we calculate the cost of object in either in hot or cold tier. \n\t\t \t //So here we calculate the storage cost in cold tier when the object is in hot tier.\n\t\t \t bfCost[obj][time].bstorageCost=bfCost[obj][time].bstorageCost.add(totalCostCalculation.btotalResidentCost[time][obj][0].bstorageCost);\n\t\t bfCost[obj][time].bconsisCost=totalCostCalculation.btotalResidentCost[time][obj][0].bconsisCost;\n\t\t }\n\t\t\t bfCost[obj][time].bnonMigrationCost=bfCost[obj][time].bstorageCost.add(bfCost[obj][time].breadCost).add( bfCost[obj][time].bwriteCost).\n\t\t\t\t\t add(bfCost[obj][time].btranCost).add( bfCost[obj][time].bconsisCost).\n\t\t\t\t\t add(bfCost[obj][time].bdelayCost);\n\t\t\t\t\t //totalCostCalculation.btotalResidentCost[time][obj][finalLocation[obj][time]].bnonMigrationCost.add(bfCost[obj][time].bconsisCost);\n\t\t\t \n\t\t\t //3. We need to calculate just transfer cost between cold to hot tier. From hot to cold tier does not make sense because we have a copy of data in cold tier.\n\t\t if(breakPoint==1){//If breakPoint is ONE then for serving every user, the object for each time slot is transfered from Cold to Hot tier.\n\t\t \t \n\t\t }\n\t\t else if(time>0 && finalLocation[obj][time-1]==0 && finalLocation[obj][time]==1){\n\t\t\t bfCost[obj][time].bmigrationCost=totalCostCalculation.btotalMigrationCost[time][obj][finalLocation[obj][time-1]][finalLocation[obj][time]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\t\t\n\t}", "public synchronized void moveAnts() {\r\n\t\tArrayList<Ant> deadAnts = new ArrayList<Ant>();// holds all ants killed during current loop\r\n\t\tArrayList<Integer> bornAnts = new ArrayList<Integer>();// holds all ants \r\n\t\tfor (int i = 0; i < ants.size(); i++) {// loops through all the ants\r\n\t\t\tint deadAnt = 999999;// determines whether an ant has died and holds the index\r\n\t\t\tint antBorn = 999999;// determines whether an ant has been born and holds the index\r\n\t\t\t\r\n\t\t\tAnt iAnt = (Ant) ants.get(i);// creates duplicate of each Spider, necessary for deletion purposes\r\n\t\t\t\r\n\t\t\tif (iAnt.getActions().isEmpty())// checks if the Ant has any current actions to complete\r\n\t\t\t\tiAnt.setActions(antFSM.get(iAnt).update());// if not, gets actions from FSM\r\n\t\t\t\r\n\t\t\tString action = iAnt.getActions().remove(0);// gets the first action in the list\r\n\t\t\t\r\n\t\t\tint newPosition = iAnt.getCurrent();// will hold the next position of the ant\r\n\t\t\tboolean alive = true;// used to flag ant deaths\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(false);// sets the found food trigger to false\r\n\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(false);// sets the found food trigger to false\r\n\t\t\t\r\n\t\t\tswitch(action) {// switch handles the different actions registered by the FSM\r\n\t\t\t\tcase (\"Died\"):\t\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// sets the node image to terrain\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets the node occupant to terrain\r\n\t\t\t\t\talive = false;// flags the ant as dead\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForFood\"):\t\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position through wander method\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// sets current node image as previous occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates the ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// sets the new node image as the ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"food\")) {// checks if food has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundFood).setTriggered(true);// updates foundFood trigger\r\n\t\t\t\t\t}// if (food)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"PickupFood\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// sets node image to ant with food\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// sets node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"EnterAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"InAntHill\"):\t\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antHill);// updates node image to ant hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"LeaveAntHill\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// updates node image to ant in hill\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForHome\"):\t\r\n\t\t\t\t\tnewPosition = getAStar(iAnt);// gets new position from A*\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node image to current occupant\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antWithFood);// updates new node image to ant with food\r\n\t\t\t\t\tif (iAnt.getHome() == newPosition) {// if home has been found\r\n\t\t\t\t\t\tantBorn = iAnt.getHome();// gets node for new ant\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundHome).setTriggered(true);// sets found home trigger to true\r\n\t\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInHill);// sets new node image to ant in hill\r\n\t\t\t\t\t}// if (home)\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"SearchForWater\"):\r\n\t\t\t\t\tnewPosition = wander(iAnt);// gets new position from wander\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(new ImageIcon(nodes[iAnt.getCurrent()].getOccupant() + \".png\").getImage());// updates old node to previous occupant image\r\n\t\t\t\t\tiAnt.setCurrent(newPosition);// updates ant position\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(ant);// updates new node image to ant\r\n\t\t\t\t\tif (nodes[newPosition].getOccupant().equals(\"water\")) {// checks if water has been found\r\n\t\t\t\t\t\tantFSM.get(iAnt).getCurrentState().getTransition(foundWater).setTriggered(true);// sets found water trigger to true\r\n\t\t\t\t\t}// if (water)\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tcase (\"DrinkWater\"):\t\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setImage(antInWater);// updates node image to ant in water\r\n\t\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates node occupant to terrain\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t\tdefault:\t\t\t\t\r\n\t\t\t\t\tbreak;// breaks from switch\r\n\t\t\t}// switch(action)\r\n\t\t\t\r\n\t\t\tif (nodes[newPosition].getOccupant().equals(\"poison\")) {// checks if ant steps in poison\r\n\t\t\t\tnodes[iAnt.getCurrent()].setImage(terrain);// updates the node image to terrain\r\n\t\t\t\tnodes[iAnt.getCurrent()].setOccupant(\"terrain\");// updates the node occupant to terrain\r\n\t\t\t\talive = false;// flags that ant was killed\r\n\t\t\t\tdeadAnt = i;// gets number of ant killed\r\n\t\t\t}// if (poison)\r\n\t\t\t\r\n\t\t\tif (alive) {// checks if ant is alive\r\n\t\t\t\tif (ants.get(i).getCurrent() == ants.get(i).getHome() && !action.equals(\"EnterAntHill\") && !action.equals(\"LeaveAntHill\") && !action.equals(\"SearchForHome\"))// checks if ant hill image needs to be added\r\n\t\t\t\t\tnodes[ants.get(i).getCurrent()].setImage(new ImageIcon(\"antHill.png\").getImage());//sets image to ant hill\r\n\t\t\t}// if (alive)\r\n\t\t\t\r\n\t\t\tif (deadAnt != 999999) {// checks if current ant was killed\r\n\t\t\t\tdeadAnts.add(iAnt);// adds number of ant killed\r\n\t\t\t}// if (ant died)\r\n\t\t\t\r\n\t\t\tif (antBorn != 999999) {// check if an ant was born\r\n\t\t\t\tbornAnts.add(antBorn);// adds number of ant born\r\n\t\t\t}// if (ant born)\r\n\t\t}// for (ants)\r\n\t\t\r\n\t\tfor (Ant ant : deadAnts)// loops through all ants killed in current game loop\r\n\t\t\tants.remove(ant);// removes ants killed during game loop\r\n\t\t\r\n\t\tfor (Integer node : bornAnts)// loops through all ant born in current game loop\r\n\t\t\taddAnt(node, node);// adds ants born during game loop\r\n\t}", "private void setThrusts() {\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tPlayer player = players[i];\n\t\t\t\n\t\t\t// Apply drag always\n\t\t\ttanks[i].acceleration = tanks[i].velocity\n\t\t\t\t\t.scalarProduct(-tankDrag);\n\t\t\ttanks[i].angularAcceleration = -tanks[i].angularVelocity * tankSteeringDrag;\n\t\t\t\n\t\t\t// Skip if dead\n\t\t\tif (!tanks[i].isAlive()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t// Get skid steer button presses\n\t\t\tboolean leftPressed = player.getButton(BUTTON_LEFT).isPressed();\n\t\t\tboolean rightPressed = player.getButton(BUTTON_RIGHT).isPressed();\n\t\t\t\n\t\t\tif (leftPressed) {\n\t\t\t\tif (rightPressed) {\n\t\t\t\t\t// Forward\n\t\t\t\t\ttanks[i].acceleration.add(new Vector2D(tankThrust, tanks[i].angle, true));\n\t\t\t\t} else {\n\t\t\t\t\t// Left\n\t\t\t\t\t// tanks[i].angle -= Math.PI / stepsPerHalfTurn;\n\t\t\t\t\ttanks[i].angularAcceleration -= tankSteeringAccel;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (rightPressed) {\n\t\t\t\t\t// Right\n\t\t\t\t\t// tanks[i].angle += Math.PI / stepsPerHalfTurn;\n\t\t\t\t\ttanks[i].angularAcceleration += tankSteeringAccel;\n\t\t\t\t} else {\n\t\t\t\t\t// Stop\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Rotate velocity so that the tanks can't slide sideways\n\t\t\t/*Vector2D unit = new Vector2D(1d, tanks[i].angle, true);\n\t\t\tdouble velocityMagnitude = tanks[i].velocity.dotProduct(unit);\n\t\t\ttanks[i].velocity = new Vector2D(velocityMagnitude, tanks[i].angle, true);*/\n\t\t\ttanks[i].velocity.setAngle(tanks[i].angle);\n\t\t}\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela PressaoArterial\\n\");\n\t\tpressaoArterial = new PressaoArterial();\n\t\tlistaPressaoArterial = pressaoArterialService.buscarTodos();\n\n\t}", "protected abstract void trace_pre_updates();", "public void updateAccountingSystem(Sale sale)\n {\n \n }", "void changeCost(ArrayList<CostsChanges> changes);", "private void clearTrails() {\n IntStream.range(0, numberOfCities)\n .forEach(i -> {\n IntStream.range(0, numberOfCities)\n .forEach(j -> trails[i][j] = c);\n });\n }", "private synchronized void resize() {\n tableSize = 2 * tableSize;\n tableSize = nextPrime(tableSize);\n FlightDetails[] old = HT;\n\n HT = new FlightDetails[tableSize];\n count.set(0);\n\n for (FlightDetails oldFlightDetails : old) {\n if (oldFlightDetails != null) {\n FlightDetails flightDetails = oldFlightDetails;\n put(flightDetails);\n\n while (flightDetails.getNext() != null) {\n flightDetails = flightDetails.getNext();\n put(flightDetails);\n }\n }\n }\n }", "@Override\n\tpublic int updateTicket(Booking_ticket bt) {\n\t\treturn 0;\n\t}", "public void updateAds() {\n }", "public void enleverTousLesObs() {\n\n\t\tobstaclesList.removeAll(obstaclesList);\n\t}", "public void AktualizacjaPlanszy() {\n\t\tSystem.out.println(\"AktualizacjaPlanszy\");\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\tPlansza.setTowarNaPlanszy(new Towar(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t\t\n\t\tPlansza.setNiebezpieczenstwoNaPlanszy(new GenerujNiebezpieczenstwo(GeneratorRandom.RandomOd1(Plansza.getXplanszy()), GeneratorRandom.RandomOd1(Plansza.getYplanszy())));\n\t}", "public void update() {\n\n if (!isSelected){\n goalManagement();\n }\n\n if (chair != null){ // si une chaise lui est désigné\n if (!hasAGoal && !isSelected){ // et qu'il n'a pas d'objectif\n setSit(true);\n position.setX(chair.getX());\n }\n\n if (isSit){\n chair.setChairState(Chair.ChairState.OCCUPIED);\n }else {\n chair.setChairState(Chair.ChairState.RESERVED);\n }\n }\n\n if (tired > 0 ){\n tired -= Constants.TIRED_LOSE;\n }\n\n if (isSit && comfort>0){\n comfort -= Constants.COMFORT_LOSE;\n }\n\n if (isSitOnSofa && comfort<100){\n comfort += Constants.COMFORT_WIN;\n }\n\n if (!hasAGoal && moveToCoffee && coffeeMachine!=null){\n moveToCoffee = false;\n tired=100;\n\n coffeeMachine.setCoffeeTimer(new GameTimer()) ;\n coffeeMachine.getCoffeeTimer().setTimeLimit(Constants.COFFEE_TIME_TO_AVAILABLE);\n coffeeMachine = null;\n backToSpawn();\n }\n\n if (!hasAGoal && moveToSofa){\n moveToSofa = false;\n isSitOnSofa = true;\n dir = 0 ;\n position.setY(position.getY()-Constants.TILE_SIZE);\n }\n\n if (isSelected){\n flashingColor ++;\n if (flashingColor > 2 * flashingSpeed){\n flashingColor = 0;\n }\n }\n\n }", "public void rewardSkills(final boolean send) {\n boolean update = false;\n if (AllSettingsConfig.AUTO_LEARN_SKILLS) {\n for (SkillLearn skillLearn : SkillAcquireHolder.getInstance().getNormalSkillsClassId(this).values()) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skillLearn.getId(), skillLearn.getLevel());\n if (sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && skillLearn.isClicked())) {\n continue;\n }\n if (getSkillLevel(sk.getId()) < sk.getLevel())\n addSkill(sk, true);\n }\n update = true;\n/*\n\t\t\tint unLearnable = 0;\n\t\t\tCollection<SkillLearn> skills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\twhile(skills.size() > unLearnable) {\n\t\t\t\tunLearnable = 0;\n\t\t\t\tfor(final SkillLearn s : skills) {\n\t\t\t\t\tfinal SkillEntry sk = SkillTable.getInstance().getSkillEntry(s.getId(), s.getLevel());\n\t\t\t\t\tif(sk == null || !sk.getTemplate().getCanLearn(getPlayerClassComponent().getClassId()) || (!AllSettingsConfig.AUTO_LEARN_FORGOTTEN_SKILLS && s.isClicked())) {\n\t\t\t\t\t\tunLearnable++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\taddSkill(sk, true);\n\t\t\t\t}\n\t\t\t\tskills = SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL);\n\t\t\t}\n\t\t\tupdate = true;*/\n } else\n // Скиллы дающиеся бесплатно не требуют изучения\n {\n for (final SkillLearn skill : SkillAcquireHolder.getInstance().getAvailableSkills(this, AcquireType.NORMAL)) {\n if (skill.getCost() == 0 && skill.getItemId() == 0) {\n final SkillEntry sk = SkillTable.getInstance().getSkillEntry(skill.getId(), skill.getLevel());\n addSkill(sk, true);\n if (!getShortCutComponent().getAllShortCuts().isEmpty() && sk.getLevel() > 1) {\n getShortCutComponent().getAllShortCuts().stream().filter(sc -> sc.getId() == sk.getId() && sc.getType() == ShortCut.TYPE_SKILL).forEach(sc -> {\n final ShortCut newsc = new ShortCut(sc.getSlot(), sc.getPage(), sc.getType(), sc.getId(), sk.getLevel(), 1);\n sendPacket(new ShortCutRegister(this, newsc));\n getShortCutComponent().registerShortCut(newsc);\n });\n }\n update = true;\n }\n }\n }\n if (isTransformed()) {\n update = true;\n //Генерируем новые скилы трансформации и выдаем их.\n getTransformation().addGiveAllSkills(getLevel());\n }\n if (send && update) {\n sendPacket(new SkillList(this));\n }\n\n updateStats();\n }", "@Override\n public void EditRouteAndNormalizeProgress(int index, Route route) {\n Route editedRoute = routes.get(index);\n double currDistance = Math2D.getRouteLength(editedRoute);\n\n // some vehicles are already traversing the currently edited route\n // we need to change only the part of the route they haven't crossed yet\n if(route.getRoute().get(0) != editedRoute.getRoute().get(0)) {\n // find index where the start of alt route is connecting to old route\n int connIndex = editedRoute.getRoute().indexOf(route.getRoute().get(0));\n route.getRoute().addAll(0, editedRoute.getRoute().subList(0, connIndex));\n\n // normalize time it takes to go from stop to stop\n double shareOfPartBeforeConnectionPoint = Math2D.getRouteLength(route, 0, connIndex)/currDistance;\n route.SetExpectedDeltaTime(editedRoute.getExpectedDeltaTime()*shareOfPartBeforeConnectionPoint+route.getExpectedDeltaTime());\n }\n\n // vehicle is already going on this route- path progress needs to be normalized\n if(currRouteIndex == index) {\n // adjust currently active routes progress so that the vehicle remains in the same position in getPosition\n double newDistance = Math2D.getRouteLength(route);\n progressTowardsNextStop = progressTowardsNextStop * currDistance/newDistance;\n }\n routes.set(index, route);\n }", "private void restartAnts() {\r\n\t\t\r\n\t\tint ai;\r\n\t\t\r\n\t\tfor(ai = 0; ai < ants.length; ai++) {\r\n\t\t\tAnt ant = ants[ai];\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Tour Length of \" + ant.tourLength + \" vs best of \" + bestPathLength);\r\n\t\t\t\r\n\t\t\tif(ant.tourLength < bestPathLength) {\r\n\t\t\t\tbestPathLength = ant.tourLength;\r\n\t\t\t\tbestIndex = ai;\r\n\t\t\t\tfor(int pi = 0; pi < cities.length; pi++) // copy best path\r\n\t\t\t\t\tbestPath[pi] = ant.path[pi];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tant.reset(cities.length, ai);\r\n\t\t\t\r\n\t\t}\r\n\t}", "private void updateTbtNavigationService() {\n updateNavStateCharacteristic();\n updateTurnIconCharacteristic();\n updateTurnDistanceCharacteristic();\n updateTurnInfoCharacteristic();\n updateTurnRoadCharacteristic();\n updateEstArrivalTimeCharacteristic();\n updateDist2DestCharacteristic();\n updateNotificationCharacteristic();\n updateNavigationCommandCharacteristic();\n }", "public void reUpdateTargetList(CopyOnWriteArrayList<Balloon> newList) {\r\n\t\tballoons = newList;\r\n\t}", "private void update(final FoldHierarchyTransaction tran) {\n if(task != null && !task.isFinished()) return ;\r\n \r\n task = RequestProcessor.getDefault().post(new Runnable() {\r\n public void run() {\r\n updateFolds(tran);\r\n }\r\n }, UPDATE_TIMEOUT);\r\n }", "void updateStick() { \n Arrow a = (Arrow) this.arrow;\n a.updateArrow(this.strokeAcc, this.golfBall.coord);\n }" ]
[ "0.7343087", "0.60551363", "0.605474", "0.5808541", "0.5758928", "0.55369925", "0.55280745", "0.5471085", "0.5450001", "0.54365003", "0.542321", "0.535438", "0.5339294", "0.52883404", "0.5280307", "0.5265977", "0.5249764", "0.5237862", "0.52011967", "0.5198184", "0.5186501", "0.51723367", "0.5166025", "0.516147", "0.51565987", "0.51491106", "0.51480836", "0.5140363", "0.5138288", "0.51379323", "0.51254815", "0.51136035", "0.51093584", "0.5098834", "0.50750256", "0.50667125", "0.50576186", "0.5057039", "0.5051637", "0.5036706", "0.5032826", "0.50304306", "0.5026487", "0.5017419", "0.5007494", "0.5005501", "0.50038755", "0.4998106", "0.49957561", "0.4988883", "0.4986384", "0.4982794", "0.49780583", "0.4971256", "0.4969854", "0.49598458", "0.4958012", "0.49572876", "0.4954302", "0.4953035", "0.49402738", "0.4934888", "0.49320835", "0.49297732", "0.4929474", "0.4925817", "0.49127725", "0.49095145", "0.49036998", "0.49023384", "0.48999006", "0.48984307", "0.48975566", "0.48973832", "0.48917344", "0.48895684", "0.48876315", "0.4887462", "0.48850724", "0.4882585", "0.4877636", "0.48755386", "0.48715264", "0.48649654", "0.48639283", "0.4862964", "0.4862501", "0.48605326", "0.48594347", "0.4849973", "0.48492497", "0.48490572", "0.4848021", "0.48470873", "0.48466253", "0.48397765", "0.4834729", "0.48289213", "0.4827986", "0.48255408" ]
0.76607466
0
Update the best solution
private void updateBest() { if (bestTourOrder == null) { bestTourOrder = ants.get(0).trail; bestTourLength = ants.get(0) .trailLength(graph); } for (Ant a : ants) { if (a.trailLength(graph) > bestTourLength) { bestTourLength = a.trailLength(graph); bestTourOrder = a.trail.clone(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void update() {\n\t\tif (max == null || max.length < info.size())\r\n\t\t\tmax = info.stream().mapToInt(i -> Math.max(1, i[1])).toArray();\r\n\r\n\t\tfull = improve(max);\r\n\t}", "private void checkIsBetterSolution() {\n if (solution == null) {\n solution = generateSolution();\n //Si la solucion que propone esta iteracion es mejor que las anteriores la guardamos como mejor solucion\n } else if (getHealthFromAvailableWorkers(availableWorkersHours, errorPoints.size()) < solution.getHealth()) {\n solution = generateSolution();\n }\n }", "public abstract OptimisationSolution getBestSolution();", "public SolutionType getBestSolution();", "public void findSolution() {\n\n\t\t// TODO\n\t}", "public void setFinalSolution() {\r\n for(int i=0; i<Config.numberOfSeeds;i++) {\r\n// this.seeds[i].setDurationMilliSec(GLowestState.getDwelltimes()[i]);\r\n// Cur_state[i] = GLowestState.getDwelltimes()[i];\r\n Cur_state[i] = this.seeds[i].getDurationMilliSec();\r\n }\r\n if (Config.SACostFunctionType==3) {\r\n setCur_cost(costCUR());\r\n }\r\n if (Config.SACostFunctionType==2) {\r\n setCur_cost(costCURfinal());\r\n }\r\n if (Config.SACostFunctionType==1) {\r\n setCur_cost(costCURsuper());\r\n }\r\n if (Config.SACostFunctionType==0) {\r\n setCur_cost(costCURsuperfinal());\r\n }\r\n }", "@Override\n\tprotected void notifyNewBest(LinkedList<City> goodSolution, double length) {\n\t}", "protected boolean update_best_value(Knapsack knapsack) {\n iteration+=1;\n if (knapsack.get_value()>best_value)\n {\n best_value=knapsack.get_value();\n return true;\n }\n if (iteration%100000==0)\n System.out.println(\"iteration:\"+iteration+\" time:\"+System.currentTimeMillis()+\n \" best_value:\"+best_value);\n return false;\n }", "@Override\n public Matching solve() {\n while (!matching.freeElements().isEmpty()) {\n /* get first element from the queue */\n Element element = problem.element(matching.freeElements().poll().elemId());\n\n /* get its preference element: looping through its list => by the level value */\n while (!element.preferences().isEmpty()) {\n Element pref = problem.element(element.preferences().poll().elemId());\n\n /* check if is an acceptable partner for current preference */\n if (!pref.accepts(element)) {\n continue;\n }\n\n /* verify the availability of its current preference */\n if (problem.isAvailable(pref.elemId())) {\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n matching.addPair(new Pair(element, pref));\n break;\n }\n else {\n /* if the preference is already taken, get the best one between current element and its current match */\n String currMatchName = matching.getElementPair(pref);\n Element currentMatch = pref.getIndex(currMatchName);\n Element elem = pref.getIndex(element.elemId());\n\n /* when current element is better than the current match */\n if (currentMatch.level() > elem.level()){\n if (matching.isFree(elem))\n matching.removeFreeElement(elem);\n\n problem.element(pref.elemId()).setAvailability(false);\n problem.element(element.elemId()).setAvailability(false);\n problem.element(currentMatch.elemId()).setAvailability(true);\n\n /* add the current pair to the Matching and the old match for the woman to the free list */\n matching.addPair(new Pair(problem.element(element.elemId()), problem.element(pref.elemId())));\n\n matching.addFreeElement(problem.element(currMatchName));\n break;\n }\n else {\n matching.addPair(new Pair(currentMatch, pref));\n }\n }\n }\n /* when man was rejected by all its preferences */\n if (element.preferences().isEmpty())\n element.setAvailability(true);\n }\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(Element::remakeList);\n problem.getSets().get(0).getElements().stream().filter(Element::isAvailable).forEach(element -> matching.addFreeElement(problem.element(element.elemId())));\n\n return matching;\n }", "@Override\r\n\t\t\tpublic void populationUpdate(PopulationData<? extends Solution> data) {\n//\t\t\t\tbuffer.append(data.getPopulationSize());\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tdouble fit = data.getBestCandidateFitness();\r\n//\t\t\t\tSystem.out.println(fit);\r\n\t\t\t\tbuffer.delete(0, buffer.length());\r\n\t\t\t\tbuffer.append(fit);\r\n//\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\r\n\t\t\t\tif (Run10FastExternalizer.initialFitness.getDbl() == -1.0) {\r\n\t\t\t\t\tRun10FastExternalizer.initialFitness.setDbl(fit);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (fit == 0.0){\r\n\t\t\t\t\tArrayList<Student> studentsCopy = new ArrayList<>();\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: students){\r\n\t\t\t\t\t\tstudentsCopy.add(student.clone());\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (Student student: studentsCopy){\r\n\t\t\t\t\t\tstudent.register(data.getBestCandidate().getBlocks());\r\n//\t\t\t\t\t\tSystem.out.println(student.getSchedule());\r\n//\t\t\t\t\t\tbuffer.append(student.getSchedule().toString());\r\n//\t\t\t\t\t\tbuffer.append(\"\\n\");\r\n\t\t\t\t\t\tsb.append(student.getSchedule().toString());\r\n\t\t\t\t\t\tsb.append(\"\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tsuperValue = sb.toString();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\tpublic void solve() {\n\t\t\r\n\t}", "protected void updateBest() {\n\t\tbestScoreView.setText(\"Best: \" + bestScore);\n\t}", "private void applyBestRepairPlan(){\n\t\t\n\t\tSet<OWLAxiom> best_repair=null;\n\t\t\t\t\n\t\tdouble min_conf = 10000;\n\t\tdouble conf;\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(false);//used in confidence\n\t\t\n\t\tfor (Set<OWLAxiom> repair : repair_plans){\n\t\t\t\n\t\t\tconf = getConfidence4Plan(repair);\n\t\t\t\n\t\t\tif (min_conf > conf){\n\t\t\t\tmin_conf = conf;\n\t\t\t\tbest_repair = repair;\n\t\t\t}\n\t\t}\n\t\t\n\t\tmappingVisitor.setDeleteAxiom(true);\n\t\t\n\t\tfor (OWLAxiom ax : best_repair){\t\t\t\n\t\t\tax.accept(mappingVisitor);\n\t\t\t//It also deletes axiom from structures\n\t\t\t//TODO add to conflicts\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public Pair<ProductionType,SoldierType> update() {\t\t\n\t\tif(current!=null) {\n\t\t\tnb_rounds--;\n\t\t\tif(nb_rounds==0) {\n\t\t\t\tnb_to_train--;\n\t\t\t\tPair<ProductionType,SoldierType> result = new Pair<ProductionType,SoldierType>(ProductionType.S,current.getType());\n\t\t\t\tif(nb_to_train==0)\n\t\t\t\t\tthis.nextTraining();\n\t\t\t\telse\n\t\t\t\t\tnb_rounds = current.getTime_prod();\n\t\t\t\treturn result;\n\t\t\t}\n\t\t}else if(upgrade){\n\t\t\tnb_rounds--;\n\t\t\tif(nb_rounds==0) {\n\t\t\t\tnb_to_train--;\n\t\t\t\tthis.nextTraining();\n\t\t\t\tupgrade = false;\n\t\t\t\treturn new Pair<ProductionType,SoldierType>(ProductionType.U,null);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void doOneUpdateStep(){\r\n SparseFractalSubTree target = null; //stores the tree which will receive the update\r\n for (int i = 0; i < subTrees.length - 1; i++) { //top tree never receives an update (reason for -1)\r\n SparseFractalSubTree subTree = subTrees[i];\r\n if (!subTree.hasStopped()) { //not permanently or temporary finished\r\n if (target != null) { //are we the first tree who can receive an update\r\n if ((subTree.getTailHeight() < target.getTailHeight())) { //are we a better candidate then the last one?\r\n target = subTree;\r\n }\r\n } else { //we are the first not finished subtree, so we receive the update if no better candidate is found\r\n target = subTree;\r\n }\r\n\r\n }\r\n }\r\n assert (target != null);\r\n assert (check(target)); //check all the assumptions\r\n\r\n measureDynamicSpace(); //measure\r\n\r\n target.updateTreeHashLow(); //apply a update to the target\r\n }", "public void evolve_enviroment() {\r\n\r\n // this.main_population.update_population();\r\n // get the indices of the best individual in the main population\r\n int main_pop_best = this.main_population.getBest_indices();\r\n\r\n // create a new individua with the genes of the best individual\r\n this.pop_best = new individual(this.main_population.getPopulation()[main_pop_best].getGenes(), solutions, output); // best individual in population\r\n\r\n // perform selection, crossover and mutation\r\n this.roulette_selection();\r\n this.crossover();\r\n this.mutate(this.prob);\r\n this.tournament_selection(); // survivor selection\r\n\r\n // find the indices of the worst individual and replace it with the best from the last generation\r\n this.main_population.setIndividual(pop_best, this.main_population.find_Worst_indicies());\r\n this.main_population.update_population();\r\n\r\n }", "public void updateFeasiblePOIs() {\n PlaceOfInterest currPOI = tour.getCurrentVisit().getPlaceOfInterest();\n double currTime = tour.getCurrentVisit().getDepartTime();\n\n for (int i = feasiblePOIs.size()-1; i >= 0; i--) {\n PlaceOfInterest poi = feasiblePOIs.get(i);\n\n double timeToArrive = instance.travelTimeDepartAt(currPOI, poi, currTime);\n poi.setTimeToArrive(timeToArrive);\n\n double visitStartTime = currTime + timeToArrive;\n\n if (visitStartTime > poi.getCloseTime()) {\n feasiblePOIs.remove(i); // cannot meet the time window, infeasible\n continue;\n }\n\n if (visitStartTime < poi.getOpenTime())\n visitStartTime = poi.getOpenTime();\n\n poi.setTimeToStartVisit(visitStartTime - currTime);\n\n double visitFinishTime = visitStartTime + poi.getDuration();\n poi.setTimeToFinishVisit(visitFinishTime - currTime);\n\n double timeToReturn = instance.travelTimeDepartAt(poi, instance.getEndPOI(), visitFinishTime);\n poi.setTimeToReturn(timeToReturn);\n\n if (visitFinishTime + timeToReturn > instance.getEndTime()) {\n feasiblePOIs.remove(i); // cannot return in time, infeasible\n continue;\n }\n }\n }", "private void updateDifficulty(){\n if(GameManager.getInstance().isMaxDifficulty()){\n return;\n }\n\n Difficulty currentDifficulty = GameManager.getInstance().getDifficulty();\n\n //Difficulty changes every 10 seconds\n if(totalTimePassed - (10 * currentDifficulty.getLevel()) > 0){\n int nextDifficulty = currentDifficulty.getLevel() + 1;\n String difficultyName = \"DIFFICULTY_\" + nextDifficulty;\n GameManager.getInstance().setDifficulty(Difficulty.valueOf(difficultyName));\n\n penguin.changeDifficulty(GameManager.getInstance().getDifficulty());\n score.setMultiplier(GameManager.getInstance().getDifficulty().getScoreMultiplier());\n }\n }", "public void updateFitness ( ) {\n\n KozaFitness f = ((KozaFitness)program.fitness);\n\n f.setStandardizedFitness(param.Parameters.STATE, this.fit);\n\n }", "@Override\n\tpublic void updateLevel() {\n\t\tthis.algorithm();\n\t\t\n\t}", "public long getBestSolutionTime();", "public void solution() {\n\t\t\n\t}", "private void updatePreferences() {\n\n /* Update preferences of the agent */\n patientAgent.updatePreferredAllocations();\n List<AllocationState> newPreferredAllocations = patientAgent.getAllocationStates();\n preferredAllocationsIterator = patientAgent.getAllocationStates().iterator();\n currentSize = patientAgent.getAllocationStates().size();\n\n if (newPreferredAllocations.isEmpty() || iterationsWithNoImprovementCount >= maxIterationsNum) {\n /* We shut down the behaviour if there are no better appointments\n or we exceeded the possible number of non-improving algorithm iterations\n */\n isHappyWithAppointment = true;\n\n } else if (newPreferredAllocations.size() >= currentSize) {\n\n /* No improvement has been made in our algorithm */\n iterationsWithNoImprovementCount++;\n } else {\n\n /* Improved the appointment, resetting the counter */\n iterationsWithNoImprovementCount = 0;\n }\n\n\n }", "protected ProbNet step (PNEdit bestEdition) throws NormalizeNullVectorException {\n\n /* If there have been any improvements on the score, we update\n * the learnedNet. */\n try{\n probNet.doEdit(bestEdition);\n } catch (ConstraintViolationException ex){\n /* If the edition was not allowed (ModelNetworkconstraint)\n * the algorithm just goes through the next iteration of the\n * loop, asking the cache for the next best edition.\n */\n }\n catch (Exception exception){\n exception.printStackTrace();\n }\n return probNet;\n }", "@Override\r\n public void update() {\r\n this.highestRevenueRestaurant = findHighestRevenueRestaurant();\r\n this.total = calculateTotal();\r\n }", "public void update() {\n\t\t\tif (!max.getText().isEmpty()) {\n\t\t\t\tInteger maxVal = Integer.parseInt(max.getText());\n\t\t\t\tif (maxVal > 2) {\n\t\t\t\t\tboolean toUpdate = false;\n\t\t\t\t\tPlgProbabilityDistribution distr = null;\n\t\t\t\t\tif (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.UNIFORM))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.uniformDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.BETA))) {\n\t\t\t\t\t\tif (!alpha.getText().isEmpty() && !beta.getText().isEmpty()) {\n\t\t\t\t\t\t\tDouble a = Double.parseDouble(alpha.getText());\n\t\t\t\t\t\t\tDouble b = Double.parseDouble(beta.getText());\n\t\t\t\t\t\t\tdistr = PlgProbabilityDistribution.betaDistributionFactory(a, b);\n\t\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (((String)cb.getSelectedItem()).equals(PlgProbabilityDistribution.distributionToName(DISTRIBUTION.NORMAL))) {\n\t\t\t\t\t\tdistr = PlgProbabilityDistribution.normalDistributionFactory();\n\t\t\t\t\t\ttoUpdate = true;\n\t\t\t\t\t}\n\t\t\t\t\tif (toUpdate) {\n\t\t\t\t\t\tp.updateDistribution(dv, maxVal, distr);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n public void computeSatisfaction() {\n\n }", "public void update() {\n suggestions = model.getDebtRepaymentSuggestions();\n }", "public void solveIt() {\n\t\tfirstFreeSquare.setNumberMeAndTheRest();\n\t}", "@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}", "public void affichageSolution() {\n\t\t//On commence par retirer toutes les traces pré-existantes du labyrinthe\n\t\tfor (int i = 0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j = 0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Trace) {\n\t\t\t\t\tthis.laby.getLabyrinthe()[i][j] = new Case();\n\t\t\t\t\t((JLabel)grille.getComponents()[i*this.laby.getLargeur()+j]).setIcon(this.laby.getLabyrinthe()[i][j].imageCase(themeJeu));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t//On parcourt toutes les cases du labyrinthe. Si on trouve un filon non extrait dont le chemin qui le sépare au mineur est plus petit que shortestPath, on enregistre la longueur du chemin ainsi que les coordonnees de ledit filon\n\t\tint shortestPath = Integer.MAX_VALUE;\n\t\tint[] coordsNearestFilon = {-1,-1};\n\t\tfor (int i=0 ; i < this.laby.getHauteur() ; i++) {\n\t\t\tfor (int j=0 ; j < this.laby.getLargeur() ; j++) {\n\t\t\t\tif (this.laby.getLabyrinthe()[i][j] instanceof Filon && ((Filon)this.laby.getLabyrinthe()[i][j]).getExtrait() == false) {\n\t\t\t\t\tif (this.laby.solve(j,i) != null) {\n\t\t\t\t\t\tint pathSize = this.laby.solve(j,i).size();\n\t\t\t\t\t\tif (pathSize < shortestPath) {\n\t\t\t\t\t\t\tshortestPath = pathSize;\n\t\t\t\t\t\t\tcoordsNearestFilon[0] = j;\n\t\t\t\t\t\t\tcoordsNearestFilon[1] = i;\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\n\t\t//Si il n'y a plus de filon non extrait atteignable, on cherche les coordonnes de la clef\n\t\tif (coordsNearestFilon[0] == -1) {\n\t\t\tcoordsNearestFilon = this.laby.getCoordsClef();\n\t\t\t//Si il n'y a plus de filon non extrait atteignable et que la clef a deja ouvert la porte, on cherche les coordonnes de la sortie\n\t\t\tif (coordsNearestFilon == null)\tcoordsNearestFilon = this.laby.getCoordsSortie();\n\t\t}\n\n\t\t//On cree une pile qui contient des couples de coordonnees qui correspondent a la solution, puis on depile car le dernier element est l'objectif vise\n\t\tStack<Integer[]> solution = this.laby.solve(coordsNearestFilon[0], coordsNearestFilon[1]);\n\t\tsolution.pop();\n\n\t\t//Tant que l'on n'arrive pas au premier element de la pile (cad la case ou se trouve le mineur), on depile tout en gardant l'element depile, qui contient les coordonnees d'une trace que l'on dessine en suivant dans la fenetre\n\t\twhile (solution.size() != 1) {\n\t\t\tInteger[] coordsTmp = solution.pop();\n\t\t\tTrace traceTmp = new Trace();\n\t\t\tthis.laby.getLabyrinthe()[coordsTmp[1]][coordsTmp[0]] = new Trace();\n\t\t\t((JLabel)grille.getComponents()[coordsTmp[1]*this.laby.getLargeur()+coordsTmp[0]]).setIcon(traceTmp.imageCase());\n\t\t}\n\t\tSystem.out.println(\"\\n========================================== SOLUTION =====================================\\n\");\n\t\tthis.affichageLabyrinthe();\n\t}", "@Override\r\n public void updateModel(Bid opponentBid, double time) {\r\n if (negotiationSession.getOpponentBidHistory().size() < 2) {\r\n return;\r\n }\r\n int numberOfUnchanged = 0;\r\n // get the current bid of the opponent\r\n BidDetails oppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 1);\r\n // get the previous bid of the opponent\r\n BidDetails prevOppBid = negotiationSession.getOpponentBidHistory().getHistory()\r\n .get(negotiationSession.getOpponentBidHistory().size() - 2);\r\n HashMap<Integer, Integer> diffSet = determineDifference(prevOppBid, oppBid);\r\n\r\n // count the number of unchanged issues in value\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0)\r\n numberOfUnchanged++;\r\n }\r\n\r\n // This is the value to be added to weights of unchanged issues before normalization.\r\n // Also the value that is taken as the minimum possible weight,\r\n // (therefore defining the maximum possible also).\r\n double goldenValue = learnCoef / (double) amountOfIssues;\r\n // The total sum of weights before normalization.\r\n double totalSum = 1D + goldenValue * (double) numberOfUnchanged;\r\n // The maximum possible weight\r\n double maximumWeight = 1D - ((double) amountOfIssues) * goldenValue / totalSum;\r\n\r\n // re-weighing issues while making sure that the sum remains 1\r\n for (Integer i : diffSet.keySet()) {\r\n if (diffSet.get(i) == 0 && opponentUtilitySpace.getWeight(i) < maximumWeight)\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n (opponentUtilitySpace.getWeight(i) + goldenValue) / totalSum);\r\n else\r\n opponentUtilitySpace.setWeight(opponentUtilitySpace.getDomain().getObjectives().get(i),\r\n opponentUtilitySpace.getWeight(i) / totalSum);\r\n }\r\n\r\n // Then for each issue value that has been offered last time, a constant\r\n // value is added to its corresponding ValueDiscrete.\r\n try {\r\n for (Entry<Objective, Evaluator> e : opponentUtilitySpace.getEvaluators()) {\r\n // cast issue to discrete and retrieve value. Next, add constant\r\n // learnValueAddition to the current preference of the value to\r\n // make it more important\r\n ((EvaluatorDiscrete) e.getValue()).setEvaluation(\r\n oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber()),\r\n (learnValueAddition + ((EvaluatorDiscrete) e.getValue()).getEvaluationNotNormalized(\r\n ((ValueDiscrete) oppBid.getBid().getValue(((IssueDiscrete) e.getKey()).getNumber())))));\r\n }\r\n } catch (Exception ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "private void updateValues() {\n \n //Find the spaces that can be solved.\n List<Number>updatableNumbers = numbers.stream()\n .filter(n -> n.getUsedValues() != null)\n .filter(n -> n.getUsedValues().size() == 8)\n .filter(n -> n.getValue() == 0)\n .collect(Collectors.toList());\n\n updatableNumbers.forEach(u -> {\n //Create a list of numbers 1-9\n List<Integer> intThrough9 = IntStream.rangeClosed(1, 9)\n .boxed()\n .collect(Collectors.toList());\n\n //Remove the used numbers from the list of 9 \n //to get expected value.\n intThrough9.removeAll(u.getUsedValues());\n u.setValue(intThrough9.get(0));\n }\n );\n }", "@Override\n\tpublic void resoudre() throws CloneNotSupportedException {\n\t\tArrayList<Solution> solutions = new ArrayList<Solution>();\n\t\tfor( int i = 0 ; i < vc.getTaille() ; i++ ){\n\t\t\tSolution s =(Solution) solution.clone();\n\t\t\ts.setSolution(this.demarrer(i));\n\t\t\tsolutions.add(s);\n\t\t}\n\t\tthis.solution = Collections.min(solutions);\n\t}", "private void recalcBestPath(int dest) {\n boolean changed;\n\n List<BGPPath> possList = this.inRib.get(dest);\n BGPPath currentBest = this.pathSelection(possList);\n BGPPath currentInstall = this.locRib.get(dest);\n\n /*\n * We need to handle advertisements in one of two cases a) we have found\n * a new best path and it's not the same as our current best path b) we\n * had a best path prior, but currently do not\n */\n changed = (currentBest != null && (currentInstall == null || !currentBest.equals(currentInstall)))\n || (currentBest == null && currentInstall != null);\n this.locRib.put(dest, currentBest);\n if (this.isWardenAS()) {\n if (currentBest == null) {\n this.routeStatusMap.put(dest, AS.RS_NULL);\n } else if (this.botSet == null) {\n this.routeStatusMap.put(dest, AS.RS_CLEAN);\n } else if (currentBest.containsAnyOf(this.botSet)) {\n this.routeStatusMap.put(dest, AS.RS_DIRTY);\n } else {\n this.routeStatusMap.put(dest, AS.RS_CLEAN);\n }\n }\n\n /*\n * If we have a new path, mark that we have a dirty destination\n */\n if (changed) {\n this.dirtyDest.add(dest);\n }\n }", "void updateIfNeeded()\n throws Exception;", "private void runBest() {\n }", "protected final void checkForBestSolution(Search<SolutionType> search, SolutionType bestSolution, double bestSolutionEvaluation) {\n if (isBetterSolution(bestSolutionEvaluation, getBestSolutionEvaluation())\r\n || (bestSolutionEvaluation == getBestSolutionEvaluation() && bestSolution.getSubsetSize() < getBestSolution().getSubsetSize())) // TODO should size matter?\r\n {\r\n handleNewBestSolution(bestSolution, bestSolutionEvaluation);\r\n }\r\n }", "@Override\n public void handleSolution(String solution,long time) {\n \n }", "@Override\r\n public void computeDensityEstimator() {\r\n // Compute scalarization values\r\n this.scalWrapper.execute(solutions());\r\n scaleToPositive();\r\n\r\n // Distance matrix\r\n double[][] distanceMatrix;\r\n if (normalizeObjectives) {\r\n FrontNormalizer normalizer = new FrontNormalizer(solutions());\r\n distanceMatrix = SolutionListUtils.distanceMatrix(normalizer.normalize(solutions()));\r\n } else\r\n distanceMatrix = SolutionListUtils.distanceMatrix(solutions());\r\n\r\n // Set fitness based on replacement strategy\r\n double[] energyVector = energyVector(distanceMatrix);\r\n double[] replacementVector = replacementVector(distanceMatrix);\r\n // Flag for memorizing whether solution can improve archive\r\n boolean eligible = false;\r\n for (int i = 0; i < replacementVector.length; i++) {\r\n // New solution is better than incumbent\r\n if (replacementVector[i] < energyVector[i]) {\r\n eligible = true;\r\n switch (replacementStrategy) {\r\n case BEST_FEASIBLE_POSITION:\r\n // Energy decrease is maximal if replacement energy is\r\n // minimized. This is why the the negated entry in\r\n // replacementVector is the corresponding fitness.\r\n fitness.setAttribute(archive.get(i), -replacementVector[i]);\r\n break;\r\n case LARGEST_DIFFERENCE:\r\n fitness.setAttribute(archive.get(i), energyVector[i]);\r\n break;\r\n case WORST_IN_ARCHIVE:\r\n fitness.setAttribute(archive.get(i), energyVector[i] - replacementVector[i]);\r\n break;\r\n }\r\n } else {\r\n // If archive member is not eligible for replacement, make sure\r\n // it is retained in any case.\r\n archive.get(i).attributes().put(fitness.getAttributeIdentifier(), -Double.MAX_VALUE);\r\n }\r\n if (eligible) {\r\n // New solution is always retained\r\n fitness.setAttribute(archive.get(maxSize), -Double.MAX_VALUE);\r\n } else {\r\n // New solution is rejected in any case\r\n fitness.setAttribute(archive.get(maxSize), Double.MAX_VALUE);\r\n }\r\n }\r\n }", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "public static CurrentSolution updateSolution(CurrentSolution currentSolution,\n \t\t\t\t\t Cell cell,\n \t\t\t\t\t Set<Integer> allowedValues) {\n cell.setValues(allowedValues);\n currentSolution.getCells().add(cell);\n return currentSolution;\n }", "@Override\n\tpublic Solution getSolution() {\t\n\t\treturn solution;\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}", "private void updateStatistic(int index, int fitness) {\n if (fitness < worst)\n worst = fitness;\n if (fitness > best) {\n best = fitness;\n frontRunner = geneticProgram.getProgram(index);\n }\n }", "public void checkBestScoreAndChangeIt() {\n \tbestTime = readPreference(difficulty);\n \t\n \tif (currentTime < bestTime) {\n \t\tbestTime = currentTime;\n \t\tsavePreference(bestTime, difficulty);\n \t}\n }", "private void applyMerge() {\n try {\n SolutionTrajectory trajectory = solution.getShortestTrajectory();\n trajectory.setModel(this.scope);\n trajectory.doTransformation();\n applied = true;\n } catch (IncQueryException e) {\n logger.error(e.getMessage(), e);\n }\n }", "public UpdateResponse optimize() throws SolrServerException, IOException {\n return optimize(true, true, 1);\n }", "@Override\n\tpublic int update() {\n\t\treturn 0;\n\t}", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "protected void optimize() {\n int[][] cutMemo = new int[dimX + 1][dimY + 1];\n Tuple[][] tupleMemo = new Tuple[dimX + 1][dimY + 1];\n Memo memo = new Memo(cutMemo,tupleMemo);\n\n //array is filled with -1 because -1 is used as a flag in the memo\n fillMemo(0, dimX, 0, dimY, cutMemo);\n\n //Calculates optimal value of cloth\n ArrayList<FittedPattern> answer = computeOptimal(dimX, dimY, pattern, memo, new ArrayList<>(), 0);\n coordinates = answer;\n finalValue = memo.getFittedPatternMemo()[dimX][dimY].getOptimalValue();\n\n }", "void updateWorld() {\n // % of surrounding neighbours that are like me\n final double threshold = 0.33;\n\n State[][] satisfactionMatrix = getSatisfactionMatrix(world, threshold); //Create matrix with satisfied/unsatisfied.\n\n int nNotSatisfied = nUnsatisfied(satisfactionMatrix); //Counts number of unsatisfied cells.\n int nNa = nNA(satisfactionMatrix); // Counts number of NA cells\n int[][] unsArray = unsatisfiedArrays(satisfactionMatrix, nNotSatisfied); //Puts coordinates for unsatisfied cells in an array.\n int[][] NAArray = NAArrays(satisfactionMatrix, nNa); //Puts coordinates for unsatisfied cells in an array.\n\n world = shuffleUnsatisfied(world, unsArray, NAArray); //Shuffles the elements in the NA Array to give the unsatisfied cells new coordinates.\n }", "public void updateGame(){\n\t\tbird.tick(input);\n\t\tthis.spawnObstacle();\n\t\tif(this.obstacles.size() > 0 && this.goals.size() > 0){\n\t\t\tfor(int i=0;i<this.obstacles.size();i++){\n\t\t\t\tObstacle obs = obstacles.get(i);\n\t\t\t\tobs.tick();\n\t\t\t\tif(this.bird.onCollision(obs.x, obs.y, obs.w,obs.h)){\n\t\t\t\t\tthis.gameOver = true;\n\t\t\t\t\tSound.dead.play();\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0;i<this.goals.size();i++){\n\t\t\t\tGoal goal = goals.get(i);\n\t\t\t\tgoal.tick();\n\t\t\t\tif(this.bird.onCollision(goal.x, goal.y, goal.w,goal.h) && goal.active){\n\t\t\t\t\tSound.clink.play();\n\t\t\t\t\tthis.numGoals++;\n\t\t\t\t\tif(this.numGoals > this.bestScore) this.bestScore = this.numGoals;\n\t\t\t\t\tgoal.active = false;\n\t\t\t\t\tSystem.out.println(this.numGoals);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t}", "Software update( Software s );", "boolean isNewSolution();", "@Override\n protected void update() {\n if (Pneumatics.get_instance().get_solenoids() && in_inner_thresh()) {\n Pneumatics.get_instance().set_solenoids(false);\n }\n }", "@Override\n public double solutionWeight(){\n return solutionweight;\n }", "public void solve_base(Items items,Knapsack knapsack) {\n iteration=0;\n best_value=-1;\n System.out.println(\"iteration:\"+iteration+\" solve_begin_time:\"+System.currentTimeMillis());\n this.solve(items,knapsack);\n System.out.println(\"iteration:\"+iteration+\" solve_end_time:\"+System.currentTimeMillis());\n }", "public Solution solve(Instance instance) {\n printSettings();\n\n generateInitialSolution(instance);\n\n int lastImprovement = 0, size = instance.getSize();\n long start = System.currentTimeMillis();\n\n for (int index = 0; !stop(index, lastImprovement, start); index++) {\n Solution next = getNeighbourSolution(size);\n if (generator.nextDouble() < Math.min(1.0, bound(index, next))) {\n currentSol = next;\n if (currentSol.getValue() > bestSol.getValue()) {\n bestSol = new Solution(currentSol);\n lastImprovement = 0;\n } else {\n lastImprovement++;\n }\n }\n }\n\n return bestSol;\n }", "public Vector<RationaleStatus> updateStatus() {\r\n \t\tAlternativeInferences inf = new AlternativeInferences();\r\n \t\tVector<RationaleStatus> newStat = inf.updateAlternative(this);\r\n \t\treturn newStat;\r\n \t}", "private void updateSingles(Hierarchy con, ViolatedCandidate lCandidate, ViolatedCandidate tCandidate,\n double delta) {\n Multiset<Constraint> targetPreferringView = UpdateUtils.getViolatedByLearner(lCandidate, tCandidate);\n Multiset<Constraint> learnerPreferringView = UpdateUtils.getViolatedByTarget(lCandidate, tCandidate);\n Multiset<Constraint> learnerPreferringHigh = HashMultiset.create(learnerPreferringView.size());\n double promoteWeightedDelta = delta / targetPreferringView.size();\n double maxTPreferringRanking = Double.MIN_VALUE;\n for (Constraint constraint : targetPreferringView.elementSet()) {\n maxTPreferringRanking = Math.max(maxTPreferringRanking, con.getRanking(constraint));\n double multipliedDelta = (targetPreferringView.count(constraint) * promoteWeightedDelta);\n con.changeConstraintRanking(constraint, multipliedDelta);\n }\n\n for (Constraint constraint : learnerPreferringView.elementSet()) {\n double thisRanking = con.getRanking(constraint);\n if (thisRanking > maxTPreferringRanking) {\n int count = learnerPreferringView.count(constraint);\n learnerPreferringHigh.add(constraint, count);\n }\n }\n // If 'higher' set is empty, just add argMax to it\n if (learnerPreferringHigh.isEmpty()) {\n Constraint argMax = UpdateUtils.getMax(learnerPreferringView, con);\n learnerPreferringHigh.add(argMax);\n }\n\n Multiset<Constraint> toIterateOver = learnerPreferringHigh;\n\n double demoteWeightedDelta = -(delta / toIterateOver.size());\n for (Constraint constraint : toIterateOver.elementSet()) {\n double multipliedDelta = toIterateOver.count(constraint) * demoteWeightedDelta;\n con.changeConstraintRanking(constraint, multipliedDelta);\n // System.out.println(\"↓ Updating \" + constraint +\" by \" +\n // multipliedDelta);\n }\n }", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\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}", "@Override\r\n\tpublic void update() {\n\t\t\r\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "public void loadUpdate()\n {\n HashMap<Location, State> updated = gm.update();\n if(updated == null)\n {\n lastScore = 0;\n buttonPlay.setText(\"Nowa gra\");\n buttonPlay.setPrefWidth(100);\n tl.stop();\n nng.updateFitnessOfCurrent(score);\n if(currentPlayer.equals(\"Trening\"))\n {\n monitor.stop();\n buttonPlay.fire();\n }\n return;\n }\n clear();\n score = 0;\n for (Location l : updated.keySet())\n addToBoard(l, updated.get(l));\n\n //Tutaj powinienes chyba dac \"Czlowiek\", bo reszta funkcji jest dla sieci neuronowej\n if(currentPlayer.equals(\"Gra\"))\n return;\n //Ocenia kazdy mozliwy ruch i wybiera najlepszy wedlug sieci neuronowej\n Direction[] directions = new Direction[] {Direction.UP, Direction.DOWN, Direction.LEFT, Direction.RIGHT};\n Direction bestDirection = Direction.UP;\n NeuralNetwork decider = currentPlayer.equals(\"Trening\") ? nng.getCurrent() : nn;\n double bestEval = -10;\n for (Direction direction : directions)\n {\n if(direction.isOpposite(gm.getDirection()))\n continue;\n Location present = gm.getSnake().getLocation();\n double front = -2;\n Location inFront = null;\n try\n {\n inFront = new Location(present.getX() + direction.getX(), present.getY() + direction.getY());\n } catch (LossException e)\n {\n front = -1;\n }\n if(front == -2)\n front = stateToDouble(updated.get(inFront));\n Direction relativeLeft = Direction.getRelativeLeft(direction);\n double left = -2;\n Location toLeft = null;\n try\n {\n toLeft = new Location(present.getX() + relativeLeft.getX(), present.getY() + relativeLeft.getY());\n } catch (LossException e)\n {\n left = -1;\n }\n if(left == -2)\n left = stateToDouble(updated.get(toLeft));\n if(direction.equals(Direction.getRelativeLeft(gm.getDirection())) && !gm.getSnake().getTail().isEmpty())\n left = 0;\n Direction relativeRight = Direction.getRelativeRight(direction);\n double right = -2;\n Location toRight = null;\n try\n {\n toRight = new Location(present.getX() + relativeRight.getX(), present.getY() + relativeRight.getY());\n } catch (LossException e)\n {\n right = -1;\n }\n if(right == -2)\n right = stateToDouble(updated.get(toRight));\n if(direction.equals(Direction.getRelativeRight(gm.getDirection())) && !gm.getSnake().getTail().isEmpty())\n right = 0;\n double delta = Math.sqrt(Math.pow(present.getX() - gm.getFood().getX(), 2) + Math.pow(present.getY() - gm.getFood().getY(), 2)) - Math.sqrt(Math.pow(present.getX() + direction.getX() - gm.getFood().getX(), 2) + Math.pow(present.getY() + direction.getY() - gm.getFood().getY(), 2));\n double eval = decider.calcOutput(new double[] {delta, left, front, right});\n if(eval > bestEval)\n {\n bestEval = eval;\n bestDirection = direction;\n }\n decider.reset();\n }\n gm.setPendingDirection(bestDirection);\n }", "void MemorizeBestSource() \n\t{\n\t int i,j;\n\t \n\t\tfor(i=0;i<FoodNumber;i++)\n\t\t{\n\t\tif (f[i]<GlobalMin)\n\t\t\t{\n\t GlobalMin=f[i];\n\t for(j=0;j<D;j++)\n\t GlobalParams[j]=Foods[i][j];\n\t }\n\t\t}\n\t }", "private static Population getBestPossibleParettoOfAGS(){\n int numberOfRounds = 10;\n Population allFrontsMembers = new Population();\n\n NSGAII nsgaii = new NSGAII();\n SPEA2 spea2 = new SPEA2();\n AEMMT aemmt = new AEMMT();\n AEMMD aemmd = new AEMMD();\n MOEAD moead = new MOEAD();\n\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n progressBar = new ProgressBar((double) numberOfRounds);\n\n for (int i = 0; i < numberOfRounds; i++) {\n\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n\n System.out.println(\"NSGAII\");\n nsgaii.runAlgorithm(problem);\n allFrontsMembers.population.addAll(nsgaii.paretto.membersAtThisFront);\n\n System.out.println(\"SPEA2\");\n spea2.runAlgorithm(problem);\n allFrontsMembers.population.addAll(spea2.paretto.membersAtThisFront);\n\n //moead.runAlgorithm(problem);\n //allFrontsMembers.population.addAll( moead.pareto.membersAtThisFront);\n\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n System.out.println(\"AEMMT\");\n aemmt.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmt.paretto.membersAtThisFront);\n\n System.out.println(\"AEMMD\");\n aemmd.runAlgorithm(problem);\n allFrontsMembers.population.addAll(aemmd.paretto.membersAtThisFront);\n\n progressBar.addJobDone();\n\n allFrontsMembers.fastNonDominatedSort();\n Problem.removeSimilar(allFrontsMembers.fronts.allFronts.get(0),problem);\n allFrontsMembers.population = allFrontsMembers.fronts.allFronts.get(0).membersAtThisFront;\n }\n\n problem.printResolutionMessage();\n //Printer.printBinaryMembers(allFrontsMembers);\n System.out.println(\"ALL FRONTS SIZE: \"+allFrontsMembers.population.size());\n\n return allFrontsMembers;\n }", "@Override\n public boolean update(Revue objet) {\n return false;\n }", "@Override\n\tpublic void updateIfNeeded() {\n\t\tif(needToUpdate){\n\t\t\tinit();\n\t\t\tneedToUpdate = false;\n\t\t}\n\t}", "public void updateRound() {\n\t\t//System.out.println(\" Updating the round...\");\n\t\tif (loads.size() < 1)\n\t\t\treturn;\n\n\t\tArrayList<AidLoad> tempLoads = new ArrayList<AidLoad>(loads);\n\n\t\tfor (int i = 1; i < tempLoads.size(); i++) {\n\t\t\tAidLoad p = tempLoads.get(i - 1);\n\t\t\tdouble dist = Double.MAX_VALUE;\n\t\t\tint best = -1;\n\n\t\t\tfor (int j = i; j < tempLoads.size(); j++) {\n\t\t\t\tAidLoad pj = tempLoads.get(j);\n\t\t\t\tdouble pjdist = pj.deliveryLocation.distance(p.deliveryLocation);\n\t\t\t\tif (pjdist < dist) {\n\t\t\t\t\tdist = pjdist;\n\t\t\t\t\tbest = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tAidLoad closestLoad = tempLoads.remove(best);\n\t\t\ttempLoads.add(i, closestLoad);\n\t\t}\n\t\tmyLoad = tempLoads;\n\t}", "@Override\r\n\tpublic void update() {\r\n\r\n\t}", "protected abstract void solve(Items items,Knapsack knapsack);", "public void update() {\n\t\t\n\t}", "public double getBestSolutionEvaluation();", "protected static void update() {\n\t\tstepsTable.update();\n\t\tactive.update();\n\t\tmeals.update();\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\r\n\tpublic int update() throws Exception {\n\t\treturn 0;\r\n\t}", "public double matchingUpdate(String title) {\n\n double matching = 0.0;\n double num = 0.0;\n double denom = 0.0;\n\n ArrayList<Configuration> gameConf = MainModel.getInstance().getConfigurationsFromGame(title);\n\n for(Configuration conf : gameConf) {\n\n if(conf.getSelected()) {\n\n if (! conf.getVocalActions().isEmpty() && conf.getModel() == null) {\n denom++;\n }\n\n for (Link link : conf.getLinks()) {\n\n Log.d(\"MATCHING_UPDATE\", \"Link: \" + link.getEvent().getName());\n\n if (link.getAction() == null) {\n\n Log.d(\"MATCHING_UPDATE\", \"Dentro if di Link\");\n denom++;\n\n }\n else {\n\n Log.d(\"MATCHING_UPDATE\", \"Dentro else di Link\");\n num++;\n denom++;\n }\n }\n }\n }\n\n if(denom > 0.0) {\n matching = num / denom;\n\n }\n else {\n matching = 0.0;\n }\n\n Log.d(\"MATCHING_UPDATE\", title+\" num: \"+num+\" denom: \"+denom);\n return matching;\n\n }", "public void updatePlayerModel() {\n double average = 0.0;\n for (int i = 0; i < playerModelDiff1.size(); i++) {\n average += (double) playerModelDiff1.get(i);\n }\n if ( playerModelDiff1.size() > 0 )\n average = average / playerModelDiff1.size();\n playerModel[0] = average;\n\n //Update playerModel[1] - difficulty 4\n average = 0.0;\n for (int i = 0; i < playerModelDiff4.size(); i++) {\n average += (double) playerModelDiff4.get(i);\n }\n if ( playerModelDiff4.size() > 0 )\n average = average / playerModelDiff4.size();\n playerModel[1] = average;\n\n //Update playerModel[2] - difficulty 7\n average = 0.0;\n for (int i = 0; i < playerModelDiff7.size(); i++) {\n average += (double) playerModelDiff7.get(i);\n }\n if ( playerModelDiff7.size() > 0 )\n average = average / playerModelDiff7.size();\n playerModel[2] = average;\n }", "private void actualizaSolucion() {\n if(debug) {\n System.out.println(\"**********************actualizaSolucion\");\n printSol();\n }\n \n this.numSoluciones++; \n for(int i = 0; i < this.sol.emparejamientos.length; ++i) {\n for(int j = 0; j < this.sol.emparejamientos[i].length; ++j) {\n this.solOptima.emparejamientos[i][j] = this.sol.emparejamientos[i][j];\n }\n }\n this.solOptima.numVerticesEmparejados = this.sol.numVerticesEmparejados;\n this.solOptima.pesoEmparejamiento = this.sol.pesoEmparejamiento;\n }", "public Solution solve(ISearchable s) {\n return null;\n }", "private boolean solutionChecker() {\n\t\t// TODO\n\t\treturn false;\n\n\t}", "private void findSmallestCost() {\n int best = 0;\n fx = funFitness[0];\n for (int i = 1; i < population; i++) {\n if (funFitness[i] < fx) {\n fx = funFitness[i];\n best = i;\n }\n }\n //System.arraycopy(currentPopulation[best], 0, bestSolution, 0, dimension);\n copy(bestSolution, currentPopulation[best]);\n }", "@Override\n public Solution solve(ISearchable domain) {\n if(domain==null)\n return null;\n Solution s2=domain.checkIfIsSmall();\n if(s2!=null){\n domain.isClear();\n return s2;\n }\n Solution sol = new Solution();\n temp.add(domain.getStartState());\n numOfNude++;\n domain.isVisit(domain.getStartState());\n ArrayList<AState> neighbors=new ArrayList<AState>();\n while(!temp.isEmpty()){\n AState curr=temp.poll();\n if(domain.isEqual(domain.getGoalState(),curr)){\n numOfNude++;\n sol =solutionPath(curr,sol);\n\n break;\n }\n neighbors=domain.getAllPossibleState(curr);\n for(int i=0;i<neighbors.size();i++){\n if(domain.isEqual(domain.getGoalState(),neighbors.get(i))){\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n numOfNude++;\n sol =solutionPath(neighbors.get(i),sol);\n break;\n }\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n temp.add(neighbors.get(i));\n numOfNude++;\n }\n }\n\n domain.isClear();\n return sol;\n }", "protected void MemorizeBestSource() {\n int i, j;\n\n bestUnchanged = true;\n for (i = 0; i < FoodNumber; i++) {\n if (f[i] < GlobalMin) {\n GlobalMin = f[i];\n for (j = 0; j < D; j++) {\n GlobalParams[j] = Foods[i][j];\n GlobalSalesman[j] = Salesmans[i][j];\n }\n bestUnchanged = false;\n }\n }\n }", "public void updateBestLink(int newbestCost, Station newbestStation, Neighbor thisNeighbor) {\r\n\t\t\tstationRef = thisNeighbor.stationRef;\r\n\t\t\tcost = thisNeighbor.cost;\r\n\t\t\tprice = thisNeighbor.price;\r\n\r\n\t\t\tviaStation = newbestStation;\r\n\t\t\ttotalCost = newbestCost;\r\n\t\t}", "private void updateHighScore() {\n\t\tif (pacman.getCurrentCell().getContainsFood() == true) {\n\t\t\tpacman.getCurrentCell().setContainsFood(false);\n\t\t\thighScore.update(10);\n\t\t}\n\t\tif (highScore.getScore() / 2440 == actualLevel) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(500);\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tinitNewLevel();\n\t\t\t++actualLevel;\n\t\t}\n\t}", "public SolutionResponse run() {\n try {\n Game game = gameApi.getNewGame();\n game.setWeatherReport(weatherApi.getWeather(game.getId()));\n game.setDragon(new Dragon());\n solver.solve(game);\n SolutionResponse solutionResponse = gameApi.putSolution(game);\n LOGGER.info(\"Game: \" + game.getId()\n + \" Result: \" + solutionResponse.getStatus()\n + \" Message: \" + solutionResponse.getMessage());\n return solutionResponse;\n } catch (Exception e) {\n LOGGER.severe(\"Solution failed: \" + e.getMessage());\n }\n return null;\n }", "private void sharplyChange(){\r\n\t\t\tgovernmentLegitimacy -= 0.3;\r\n\t\t}", "public int getCurrentSolution() {\n return currentSolution;\n }", "public void update() {\r\n\t\t\r\n\t}", "boolean update();" ]
[ "0.6630295", "0.6541378", "0.64852405", "0.6457265", "0.6415674", "0.61930686", "0.6184937", "0.6171311", "0.61341566", "0.6127016", "0.6124579", "0.6085213", "0.60790735", "0.6045168", "0.59812987", "0.59494936", "0.59486204", "0.5944893", "0.59333956", "0.5928246", "0.59171486", "0.59071195", "0.58680964", "0.5867275", "0.58653635", "0.5860038", "0.5807527", "0.5789137", "0.5787822", "0.57835513", "0.57835513", "0.57835513", "0.5762736", "0.57244104", "0.57108784", "0.5693567", "0.5689623", "0.56838053", "0.5669378", "0.5641914", "0.56410307", "0.56353605", "0.5623473", "0.56169474", "0.56032944", "0.5601088", "0.5601088", "0.5597717", "0.5590889", "0.55871016", "0.55846643", "0.5580976", "0.55768836", "0.5576528", "0.55760306", "0.55592763", "0.5558147", "0.55549616", "0.5553505", "0.5544149", "0.5530299", "0.5524718", "0.5521342", "0.5521031", "0.5518973", "0.55178833", "0.55143356", "0.55143356", "0.55143356", "0.55143356", "0.55143356", "0.5510854", "0.5491748", "0.5487162", "0.5483271", "0.5480397", "0.5477806", "0.5477619", "0.5470975", "0.5461583", "0.54607517", "0.5459536", "0.54547435", "0.5454582", "0.5453193", "0.54492486", "0.54421324", "0.54413635", "0.54318964", "0.54249007", "0.5423927", "0.54147464", "0.5407398", "0.5407394", "0.5406787", "0.5404296", "0.5397459", "0.53973764", "0.5395655", "0.53943306" ]
0.64923966
2
Clear trails after simulation
private void clearTrails() { IntStream.range(0, numberOfCities) .forEach(i -> { IntStream.range(0, numberOfCities) .forEach(j -> trails[i][j] = c); }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void resetTesting() {\r\n\t\tcompanyCars.clear();\r\n\t\trentDetails.clear();\r\n\t}", "public void reset() \n {\n cumulativeTrials = 0;\n\t numTwoHeads = 0;\n\t numTwoTails = 0;\n\t numHeadTails = 0;\n }", "public void removeTurtles()\n {\n // Stop observing every turtle\n for(AbstractTurtle t : this.turtles)\n {\n t.removeObserver(this);\n }\n\n // And remove them from the vivarium\n this.turtles.clear();\n\n // Then, fire paint event\n this.repaint();\n }", "public void reset() {\r\n\t\tready = false;\r\n\t\twitnessed_max_price = 0.0;\r\n\t\t\r\n\t\tfor (int i = 0; i<no_goods; i++)\r\n\t\t\tfor (int j = 0; j<no_bins; j++)\r\n\t\t\t\tmarg_prob[i][j] = 0.0;\r\n\t\t\r\n\t\tmarg_sum = 0;\r\n\t\t\r\n\t\tfor (HashMap<IntegerArray, double[]> p : this.prob)\r\n\t\t\tp.clear();\r\n\r\n\t\tfor (HashMap<IntegerArray, Integer> s : this.sum)\r\n\t\t\ts.clear();\r\n\t\t\r\n\t\tlog.clear();\r\n\t}", "public void resetTurrets(){\n\t\tfor(Turret turret : this.turrets){\n\t\t\tturret.reset();\n\t\t}\n\t}", "public void reset() {\n\t\tVector2 gravity = new Vector2(world.getGravity() );\n\t\t\n\t\tfor(Obstacle obj : objects) {\n\t\t\tobj.deactivatePhysics(world);\n\t\t}\n\t\tobjects.clear();\n\t\taddQueue.clear();\n\t\tworld.dispose();\n\t\t\n\t\tworld = new World(gravity,false);\n\t\tsetComplete(false);\n\t\tsetFailure(false);\n\t\tpopulateLevel();\n\t}", "public void reset(){\n star.clear();\n planet.clear();\n }", "void clearAllLists() {\n this.pm10Sensors.clear();\n this.tempSensors.clear();\n this.humidSensors.clear();\n }", "public void reset() {\n\tthis.pinguins = new ArrayList<>();\n\tthis.pinguinCourant = null;\n\tthis.pret = false;\n\tthis.scoreGlacons = 0;\n\tthis.scorePoissons = 0;\n }", "public void clearOfertas() {\r\n\t\tcoi.clearOfertas();\r\n\t}", "public void reset() {\n delta = 0.0;\n solucionActual = null;\n mejorSolucion = null;\n solucionVecina = null;\n iteracionesDiferenteTemperatura = 0;\n iteracionesMismaTemperatura = 0;\n esquemaReduccion = 0;\n vecindad = null;\n temperatura = 0.0;\n temperaturaInicial = 0.0;\n tipoProblema = 0;\n alfa = 0;\n beta = 0;\n }", "public void clear() {\n\t\t//Kill all entities\n\t\tentities.parallelStream().forEach(e -> e.kill());\n\n\t\t//Clear the lists\n\t\tentities.clear();\n\t\tdrawables.clear();\n\t\tcollidables.clear();\n\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tpilots.clear();\r\n\t\tcabinCrew.clear();\r\n\r\n\t}", "private void reset() {\n\t\tfor(int i = 0; i < 5; i++) {\n\t\t\treactantAmt[i] = 0;\n\t\t\tproductAmt[i] = 0;\n\t\t\treactantMM[i] = 0;\n\t\t\tproductMM[i] = 0;\n\t\t\treactantMoles[i] = 0;\n\t\t\tproductMoles[i] = 0;\n\t\t\tfinalMolReactant[i] = 0;\n\t\t\tfinalMolProduct[i] = 0;\n\t\t\tremove();\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 clearTerrain(){\n for (Terrain[] terrains : getTerrains()) {\n for (Terrain terrain : terrains) {\n terrain.setCharacter(null); //Clear terrain of fake characters\n }\n }\n }", "public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n floodLastTime = Double.NaN;\r\n delayFlood = false;\r\n spf_calculation = 0;\r\n lsa_refresh_timer = null;\r\n }", "public static void resetAll() {\n\t\tfor (int x = 0; x < mSensors.size(); x++) {\n\t\t\tmSensors.get(x).reset();\n\t\t}\n\t}", "public void reset() {\n solving = false;\n length = 0;\n checks = 0;\n }", "public void resetComputation()\n {\n for (Block block : this.blocks) {\n block.setShadow(null);\n block.deleteInputValues();\n }\n }", "public void reset() {\n while (getNumTotal() > 0) {\n this.removeNuclei();\n }\n lastModified = Calendar.getInstance().getTimeInMillis(); // record time\n }", "protected void reset() {\n leftSkier.reset();\n rightSkier.reset();\n }", "public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }", "protected void reset() {\n\t\tpush();\n\n\t\t// Clearen, en niet opnieuw aanmaken, om referenties elders\n\t\t// in het programma niet corrupt te maken !\n\t\tcurves.clear();\n\t\tselectedCurves.clear();\n\t\thooveredCurves.clear();\n\t\tselectedPoints.clear();\n\t\thooveredPoints.clear();\n\t\tselectionTool.clear();\n\t}", "private void clear() {\n for (int i = 0; i < NUMCELLS; i++)\n currentState[i] = 0;\n\n generations = 0;\n }", "public void reset()\r\n\t{\r\n\t\ttimer.stop();\r\n\t\ttimer.reset();\r\n\t\tautoStep = 0;\r\n\t}", "public synchronized void reset() {\n\t\tlisteners.clear();\n\t\tbuffer.clear();\n\t\ttrash.clear();\n\n\t\ttickCount = 1;\n\n\t\tif (log.isInfoEnabled()) {\n\t\t\tlog.info(\"Clock reset\");\n\t\t}\n\t}", "public void clear(){\r\n MetersList.clear();\r\n }", "public void clean()\n\t{\n\t\tstep = -2;\n\t\tisIterationStep = false;\n\n\t\tcurrentTime = deltaTime = stepCallbackTime = 0;\n\t\tisInitialized = isFinished = isKilled = isPaused = false;\n\t}", "private void reset() {\n\n\n spaceShips.clear();\n playerOne = null;\n playerTwo = null;\n friendlyBullets.clear();\n enemyBullets.clear();\n powerUps.clear();\n enemyGenerator.reset();\n difficulty.reset();\n Bullets.BulletType.resetSpeed();\n\n for (int i = 0; i < enemies.size(); i++) {\n enemies.get(i).getEnemyImage().delete();\n }\n enemies.clear();\n }", "private void reset()\n {\n // reset everything to zero\n currentTime = 0;\n closingTime = 0;\n totalWaitingTime = 0;\n numCars = 0;\n numOverTen = 0;\n arrayIndex = 0;\n printedAverageWaitTime = 0;\n double arraySize = ((CarWashApplication.DAY_LENGTH) * ((1.0) / CarWashApplication.CHANCE_INT)) + ((CarWashApplication.DAY_LENGTH) * ((1.0) / CarWashApplication.CHANCE_INT)) * ((1.0) / CarWashApplication.CHANCE_INT);\n waitTimeArray = new int[(int) arraySize];\n bay.reset();\n\n // remove all waiting cars\n while ( ! waitingLine.isEmpty() )\n {\n Object o = waitingLine.dequeue();\n }\n }", "public void reset() {\n\t\tfor (int i = 0; i < stats.size(); i++) {\n\t\t\tstats.get(i).reset();\n\t\t}\n\t}", "public void Reset() {\n //print(\"reset\");\n done=false;\n splatshown=false;\n outputSplat.beginDraw();\n outputSplat.clear();\n outputSplat.endDraw();\n //world.clear();\n for (int i=0; i<10; i++) {\n randomize();\n r[i]=c1;\n g[i]=c2;\n b[i]=c3;\n }\n for (int i=0; i<10; i++)\n {\n world.remove(bub[i]);\n bub[i] = new FCircle(rad[i]);\n bub[i].setPosition(xCord[i], yCord[i]);\n bub[i].setStatic(true); \n bub[i].setFill(r[i], g[i], b[i]);\n bub[i].setNoStroke();\n world.add(bub[i]);\n burst[i] = new FCircle(rad[i]+3);\n burst[i].setPosition(xCord[i], yCord[i]);\n burst[i].setStatic(true);\n burst[i].setNoFill();\n burst[i].setNoStroke();\n } \n\n reset=false;\n}", "public void reset() {\r\n\t\tfor (int i = 0; i < trees.length; i++)\r\n\t\t\ttrees[i] = new GameTree(i);\r\n\t\tprepare();\r\n\t}", "public void reset() {\n tpsAttentePerso = 0;\n tpsAttentePerso2 =0;\n \ttotalTime = 0;\n\tnbVisited = 0;\n moyenne =0;\n }", "public void clearAll();", "public void clearAll();", "public void clear()\n {\n inputs.clear();\n outputs.clear();\n }", "public void clear() {\n this.atoms.clear();\n this.bonds.clear();\n this.finished = false;\n }", "private void clearStragglers() {\n for (int i = 0; i < game.gridPieces.length; i++) {\n GridPiece piece = game.gridPieces[i];\n\n if (piece.state == game.STATE_TEMP) {\n piece.restoreState();\n //restoreState(piece);\n } else if (piece.state == game.STATE_TEMP_NOTOUCH) {\n piece.setState(game.STATE_FINAL);\n }\n }\n }", "public void resetGruposTrabajo()\r\n {\r\n this.gruposTrabajo = null;\r\n }", "void cancelStaleSimulations();", "protected void reset()\n {\n this.shapeDataCache.removeAllEntries();\n this.sector = null;\n }", "void clearAll();", "void clearAll();", "public void clear_strokes() {\n this.contours = new ArrayList<ContourClass>(); // Argument (if any) specifies initial capacity (default 10)\n }", "public void clearFramework() {\r\n\t\tList<Configuration> tests = testCache.getAllTests();\r\n\t\tlog.info(\"Clearing all tests.\\n\");\r\n\t\tfor (Configuration test : tests) {\r\n\t\t\tkillTest(test.getUniqueId());\r\n\t\t}\r\n\t\tworkQueue.clear();\r\n\t\ttestCache.clear();\r\n\t}", "public void emptyTickets() {\r\n tickets.clear();\r\n }", "public void reset() {\n for (int i = 0; i < numberOfRows; i++ ) {\n for (int j =0; j < numberOfColumns; j++) {\n if (grid[i][j] == LASER) {\n this.Remove(i,j);\n }\n }\n }\n }", "public void clearAll() {\n\n\t\t// Removing the graphics from the layer\n\t\trouteLayer.removeAll();\n\t\t// hiddenSegmentsLayer.removeAll();\n\t\tmMapViewHelper.removeAllGraphics();\n\t\tmResults = null;\n\n\t}", "public void reset() {\n\t\ttilePath.clear();\n\t}", "public static void reset() {\n\t\tbat1.reset();\n\t\tbat2.reset();\n\t\tball.reset();\n\t}", "public void resetAll() {\n Random random = new Random();\r\n for (int layer = 0; layer < neurons.length; layer++) {\r\n for (int index = 0; index < neurons[layer].length; index++) {\r\n neurons[layer][index] = new Neuron(random.nextDouble());\r\n }\r\n }\r\n for (int layer = 0; layer < connections.length; layer++) {\r\n for (int startIndex = 0; startIndex < connections[layer].length; startIndex++) {\r\n for (int endIndex = 0; endIndex < connections[layer][startIndex].length; endIndex++) {\r\n connections[layer][startIndex][endIndex] = new Connection(random.nextDouble()*10-5, random.nextDouble()*10-5);\r\n }\r\n }\r\n }\r\n }", "public void reset() {\n\n\t\tazDiff = 0.0;\n\t\taltDiff = 0.0;\n\t\trotDiff = 0.0;\n\n\t\tazMax = 0.0;\n\t\taltMax = 0.0;\n\t\trotMax = 0.0;\n\n\t\tazInt = 0.0;\n\t\taltInt = 0.0;\n\t\trotInt = 0.0;\n\n\t\tazSqInt = 0.0;\n\t\taltSqInt = 0.0;\n\t\trotSqInt = 0.0;\n\n\t\tazSum = 0.0;\n\t\taltSum = 0.0;\n\t\trotSum = 0.0;\n\n\t\tcount = 0;\n\n\t\tstartTime = System.currentTimeMillis();\n\t\ttimeStamp = startTime;\n\n\t\trotTrkIsLost = false;\n\t\tsetEnableAlerts(true);\n\n\t}", "public void reset() {\n\t\tfor (int x = 0; x < worldWidth; x++) {\n\t\t\tfor (int y = 0; y < worldHeight; y++) {\n\t\t\t\ttileArr[x][y].restart();\n\t\t\t}\n\t\t}\n\t\tlost = false;\n\t\tisFinished = false;\n\t\tplaceBombs();\n\t\tsetNumbers();\n\t}", "private void reset(){\n //stop les threads\n if(jeuPousse != null) {jeuPousse = null;}\n if(jeuDeBalle != null) {jeuDeBalle.setFinPartie(true); jeuDeBalle = null;}\n if(jeuEquipe != null) {jeuEquipe.setFinPartie(true); jeuEquipe = null;}\n\n simpleLogo.getFeuille().getListeTortues().clear();\n effacer();\n courante = null;\n }", "public void clearGenus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void reset() {\n\t\tx = 0;\n\t\ty = 0;\n\t\tdir = -90;\n\t\tcoul = 0;\n\t\tcrayon = true;\n\t\tlistSegments.clear();\n \t}", "@AfterClass\n public static void teardown() {\n consecutiveNumbers= null;\n\n }", "public void clear() {\n\t\tsystems.clear();\n\t}", "private void clearTemporaryData() {\n\n numbers.stream().forEach(n -> {\n n.setPossibleValues(null);\n n.setUsedValues(null);\n });\n }", "public void reset() {\n this.predictor.reset();\n for(int i=0; i<this.predictedIntraday.length; i++) {\n this.predictedIntraday[i] = 0;\n }\n }", "public void resetSkills()\r\n\t{\r\n\t\t// TODO Keep Skill List upto date\r\n\t\tfarming = 0;\r\n\t}", "private void clear() {\n\t\tremoveAll();\n\t\taddCircle();\n\t}", "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 }", "@After\r\n\tpublic void tearDown() {timeslots = null; timetable = null; System.setOut(null);}", "@AfterAll\n static void cleanOperate()\n { \n //clear reference of operate after all the tests done\n operate = null;\n System.out.println(\"only After all the tests....\");\n }", "public static void stopSimulation()\r\n {\r\n stopSimulation=true;\r\n }", "public void reset() {\n unvisitedPOIs = new LinkedList<>(instance.getPlaceOfInterests());\n unvisitedPOIs.remove(instance.getStartPOI());\n unvisitedPOIs.remove(instance.getEndPOI());\n\n // initially, all the unvisited POIs should be feasible.\n feasiblePOIs = new LinkedList<>(unvisitedPOIs);\n feasiblePOIs.remove(instance.getStartPOI());\n feasiblePOIs.remove(instance.getEndPOI());\n\n tour.reset(instance);\n currDay = 0;\n\n // update features for the feasible POIs\n for (PlaceOfInterest poi : feasiblePOIs)\n updateFeatures(poi);\n }", "public void clearAreaReset() {\n for(int x = 0; x < buildSize; x++) {\n for(int y = 4; y < 7; y++) {\n for(int z = 0; z < buildSize; z++) {\n myIal.removeBlock(x, y, z);\n }\n }\n }\n\n myIal.locx = 0; myIal.locy = 0; myIal.locz = 0;\n my2Ial.locx = 0; my2Ial.locy = 0; my2Ial.locz = 0;\n }", "public static void reset() {\n start = new Date().getTime();\n killed = 0;\n time = 0;\n }", "public final void resetAll() {\r\n this._queue = null;\r\n this._delayed = null;\r\n }", "public void ClearAll()\r\n {\r\n balls.clear();\r\n board.SetMissedBall(0);\r\n }", "public void clearState(){\r\n\t\tinsideSemiringWeightsTable.clear();\r\n\t}", "public static void clearWinners(){winners.clear();}", "private void reset () {\n this.logic = null;\n this.lastPulse = 0;\n this.pulseDelta = 0;\n }", "public void finishSimulation() {\n finishSimulation(0.0);\n }", "void reset() {\n blocks.clear();\n }", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "public void reset () {}", "public void reset() {\n // stop motors\n Motor.A.stop();\t\n Motor.A.setPower(0);\t\n Motor.B.stop();\n Motor.B.setPower(0);\t\n Motor.C.stop();\n Motor.C.setPower(0);\t\n // passivate sensors\n Sensor.S1.passivate();\n Sensor.S2.passivate();\n Sensor.S3.passivate();\n for(int i=0;i<fSensorState.length;i++)\n fSensorState[i] = false;\n }", "void clearInstances() {\n\t\t\tinterceptor.printer = null;\n\t\t\tinterceptor.converter = null;\n\t\t}", "void removeAllSpawn();", "public static void Reset(){\n\t\ttstr = 0;\n\t\ttluc = 0;\n\t\ttmag = 0; \n\t\ttacc = 0;\n\t\ttdef = 0; \n\t\ttspe = 0;\n\t\ttHP = 10;\n\t\ttMP = 0;\n\t\tstatPoints = 13;\n\t}", "public void clear() {\r\n\t\t//this method clears all the arrays and initiallizes them to 0.\r\n Arrays.fill(co,0);\r\n Arrays.fill(degree,0); \r\n Arrays.fill(sinc,0); \r\n Arrays.fill(sind,0); \r\n Arrays.fill(cosc,0); \r\n Arrays.fill(cosd,0); \r\n Arrays.fill(tanc,0); \r\n Arrays.fill(tand,0);\r\n cindex = 0;\r\n sinindex = 0;\r\n cosindex = 0;\r\n tanindex = 0; \r\n\t}", "public void clearMotors() {\n\t\tmotors.clear();\n\t}", "public void clearWaves()\n\t{\t\t\n\t\tactive = false;\n\t\tspawnCurrent = 0;\n\t\tcurrentWaveNumber = 0;\n\t\ttotalWaves = -1;\n\t\tcurrentWave = null;\n\t\twaveList.clear();\n\t\twaveTimer = null;\n\t\tspawnTimer = null;\n\t\ttimeUntilNextWaveTimer = null;\n\t}", "protected void reset() {\n speed = 2.0;\n max_bomb = 1;\n flame = false;\n }", "static void wipeLocations(){\n\t \tfor (int i= 0; i < places.length; i++){\n\t\t\t\tfor (int j = 0; j < places[i].items.size(); j++)\n\t\t\t\t\tplaces[i].items.clear();\n\t\t\t\tfor (int k = 0; k < places[i].receptacle.size(); k++)\n\t\t\t\t\tplaces[i].receptacle.clear();\n\t \t}\n\t \tContainer.emptyContainer();\n\t }", "void nuke() {\n\t\tfor (int a = 0; a < height; a++) {\n\t\t\tfor (int b = 0; b < width; b++) {\n\t\t\t\tif (FWorld[a][b] != null) {\n\t\t\t\t\tEZ.removeEZElement(FWorld[a][b]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tEZ.removeEZElement(background);\n\t\tEZ.removeEZElement(explosion);\n\t\tturtle.kill();\n\t}", "public void resetFactory() {\n\t\tcurrent = null;\n\t\tnb_rounds = 0;\n\t\tnb_to_train = 0;\n\t\twhile(!training_queue.isEmpty())\n\t\t\ttraining_queue.remove();\n\t}", "private void clearLists() {\n\t\tobjects = new ArrayList<Entity>();\n\t\tenemies.clear();\n\t\titemList.clear();\n\t}", "public void reset() {\n\t\tAssets.playSound(\"tweet\");\n\t\tscore = respawnTimer = spawnCount= 0;\n\t\t\n\t\twalls = new ArrayList<Wall>();\n\t\tcheckPoints = new ArrayList<Wall>();\n\t\tground = new ArrayList<Ground>();\n\n\t\tGround g;\n\t\tPoint[] points = new Point[21];\n\t\tfor (int i = 0; i < 21; i++) {\n\t\t\tpoints[i] = new Point(i * 32, 448);\n\t\t}\n\t\tfor (int j = 0; j < points.length; j++) {\n\t\t\tg = new Ground();\n\t\t\tg.setBounds(new Rectangle(points[j].x, 448, 32, 32));\n\t\t\tground.add(g);\n\t\t}\n\n\t\tsky = new Background(-0.2);\n\t\tsky.setImage(Assets.sprite_sky);\n\t\t\n\t\tmountains = new Background(-0.4);\n\t\tmountains.setImage(Assets.sprite_mountains);\n\t\t\n\t\ttrees = new Background(-1.4);\n\t\ttrees.setImage(Assets.sprite_trees);\n\n\t\tstarted = false;\n\t\tplayer.reset();\n\n\t}", "private void reset() {\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.clear();\n dominator = \"\";\n firstBlood = false;\n }", "public void clear() {\n\t\tList<CartLine> cartLines = getCartLineList();\n\t\tcartLines.clear();\n\t}", "public void resetObjects() {\n if (wind1.isOffScreen()) {\n wind1.reset(wind3.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n if (wind2.isOffScreen()) {\n wind2.reset(wind1.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n if (wind3.isOffScreen()) {\n wind3.reset(wind2.getBoundingRectangle().y - buffer - rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4));\n }\n\n //Again, check if the clouds go off the screen and then reset them.\n cloudBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 4) + AssetHandler.SCREEN_HEIGHT / 4;\n if (cloud1.isOffScreen()) {\n cloud1.reset(cloud4.y - cloudBuffer);\n }\n if (cloud2.isOffScreen()) {\n cloud2.reset(cloud1.y - cloudBuffer);\n }\n if (cloud3.isOffScreen()) {\n cloud3.reset(cloud2.y - cloudBuffer);\n }\n if (cloud4.isOffScreen()) {\n cloud4.reset(cloud3.y - cloudBuffer);\n }\n\n //Check if birds (drones) go above the screen and reset them\n birdBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 2 + AssetHandler.SCREEN_HEIGHT / 3) + AssetHandler.SCREEN_HEIGHT / 2;\n if (drone1.isOffScreen()) {\n drone1.reset(drone2.y - birdBuffer);\n }\n birdBuffer = rand.nextInt(AssetHandler.SCREEN_HEIGHT / 2 + AssetHandler.SCREEN_HEIGHT / 3) + AssetHandler.SCREEN_HEIGHT / 2;\n if (drone2.isOffScreen()) {\n drone2.reset(drone1.y - birdBuffer);\n }\n\n }", "public void reset() {\n\t\tmakeSolutionState();\n\t\twhile (isSolution(this.gameBoard)) {\n\t\t\trandomizeBoard();\n\t\t}\n\t\tlog.clear();\n\t\twon =false;\n\t\twasReset=true;\n\t\t\n\t\tsetChanged();\n\t\tnotifyObservers();\t\t\n\t}", "public void clearSpecies() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }", "public void clear(){\n this.entities.clear();\n /*for(QuadTree node: this.getNodes()){\n node.clear();\n this.getNodes().remove(node);\n }*/\n this.nodes.clear();\n }" ]
[ "0.6815085", "0.66289", "0.659707", "0.6582119", "0.65733516", "0.6536", "0.65186226", "0.64956415", "0.6451933", "0.6443428", "0.6436835", "0.64366233", "0.6393146", "0.638888", "0.6379623", "0.63632196", "0.6341647", "0.633829", "0.6330496", "0.6322127", "0.6321607", "0.6299156", "0.6285854", "0.62604785", "0.62560993", "0.62442464", "0.6243684", "0.62415683", "0.62395734", "0.62212324", "0.62087995", "0.62002105", "0.6199575", "0.6195856", "0.61881804", "0.61857617", "0.61857617", "0.61778766", "0.6168219", "0.6146559", "0.6146005", "0.6144058", "0.6124095", "0.6121958", "0.6121958", "0.6116129", "0.61149853", "0.611093", "0.6100982", "0.60939777", "0.6091754", "0.60911363", "0.60868025", "0.6081293", "0.6080734", "0.6078495", "0.60778254", "0.60591215", "0.6058133", "0.6057782", "0.60525566", "0.60476756", "0.603005", "0.60243183", "0.6022441", "0.60199434", "0.6014395", "0.6012257", "0.60090834", "0.60067165", "0.6006186", "0.6004569", "0.6001608", "0.5997098", "0.5996688", "0.5996363", "0.5993815", "0.59927815", "0.5990915", "0.5988071", "0.5983841", "0.5980947", "0.59808296", "0.59773725", "0.5976733", "0.5975967", "0.5975071", "0.59744364", "0.5972009", "0.59680015", "0.59670067", "0.59634876", "0.5958525", "0.5947453", "0.5945767", "0.5945532", "0.5942591", "0.5937475", "0.593218", "0.5931507" ]
0.6974034
0
Creates new form Venda
public Venda() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public frmVenda() {\n initComponents();\n }", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "FORM createFORM();", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\n\t}", "public Venda() {\n }", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public CrearQuedadaVista() {\n }", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "private static void CrearVenda (BaseDades bd, int idproducte, int quantitat) {\n Producte prod = bd.consultarUnProducte(idproducte);\n java.sql.Date dataActual = getCurrentDate();//Data SQL\n if (prod != null) {\n if (bd.actualitzarStock(prod, quantitat, dataActual)>0) {//Hi ha estoc\n String taula = \"VENDES\";\n int idvenda = bd.obtenirUltimID(taula);\n Venda ven = new Venda(idvenda, prod.getIdproducte(), dataActual, quantitat);\n \n if (bd.inserirVenda(ven)>0)\n System.out.println(\"VENDA INSERIDA...\");\n } else\n System.out.println(\"NO ES POT FER LA VENDA, NO HI HA ESTOC...\");\n \n } else {\n System.out.println(\"NO HI HA EL PRODUCTE\");\n }\n }", "public Ventaform() {\n initComponents();\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public frmTelaVendas() {\n initComponents();\n this.carrinho = new CarrinhoDeCompras();\n listaItens.setModel(this.lista);\n }", "public CrearPedidos() {\n initComponents();\n }", "public FormInserir() {\n initComponents();\n }", "public FrmCrearEmpleado() {\n initComponents();\n tFecha.setDate(new Date());\n }", "public VentasGUI() {\n initComponents();\n btnEliminarVenta.setEnabled(false);\n tablaVentasDefault = (DefaultTableModel) tablaVentas.getModel();\n tablaProductosDefault = (DefaultTableModel) tablaProductos.getModel();\n\n \n \n txtDesde.setToolTipText(\"Ver ventas desde la fecha\");\n txtDesde.setDateFormatString(\"dd/MM/yyyy\");\n txtHasta.setToolTipText(\"Ver ventas hasta la fecha\");\n txtHasta.setDateFormatString(\"dd/MM/yyyy\");\n txtDesde.getDateEditor().setEnabled(false);\n txtHasta.getDateEditor().setEnabled(false);\n txtHasta.setDate(Calendar.getInstance().getTime());\n\n SimpleDateFormat formatoDelTexto = new SimpleDateFormat(\"dd/MM/yyyy\");\n String strFecha = \"01/01/2015\";\n Date fecha = null;\n try {\n\n fecha = formatoDelTexto.parse(strFecha);\n\n } catch (ParseException ex) {\n\n ex.printStackTrace();\n\n }\n txtDesde.setDate(fecha);\n }", "public MostraVenta(String idtrasp, Object[][] clienteM1, Object[][] vendedorM1, String idmarc, String responsable,ListaTraspaso panel)\n{\n this.padre = panel;\n this.clienteM = clienteM1;\n this.vendedorM = vendedorM1;\n this.idtraspaso= idtrasp;\n this.idmarca=idmarc;\n//this.tipoenvioM = new String[]{\"INGRESO\", \"TRASPASO\"};\n String tituloTabla =\"Detalle Venta\";\n // padre=panel;\n String nombreBoton1 = \"Registrar\";\n String nombreBoton2 = \"Cancelar\";\n // String nombreBoton3 = \"Eliminar Empresa\";\n\n setId(\"win-NuevaEmpresaForm1\");\n setTitle(tituloTabla);\n setWidth(400);\n setMinWidth(ANCHO);\n setHeight(250);\n setLayout(new FitLayout());\n setPaddings(WINDOW_PADDING);\n setButtonAlign(Position.CENTER);\n setCloseAction(Window.CLOSE);\n setPlain(true);\n\n but_aceptar = new Button(nombreBoton1);\n but_cancelar = new Button(nombreBoton2);\n // addButton(but_aceptarv);\n addButton(but_aceptar);\n addButton(but_cancelar);\n\n formPanelCliente = new FormPanel();\n formPanelCliente.setBaseCls(\"x-plain\");\n //formPanelCliente.setLabelWidth(130);\n formPanelCliente.setUrl(\"save-form.php\");\n formPanelCliente.setWidth(ANCHO);\n formPanelCliente.setHeight(ALTO);\n formPanelCliente.setLabelAlign(Position.LEFT);\n\n formPanelCliente.setAutoWidth(true);\n\n\ndat_fecha1 = new DateField(\"Fecha\", \"d-m-Y\");\n fechahoy = new Date();\n dat_fecha1.setValue(fechahoy);\n dat_fecha1.setReadOnly(true);\n\ncom_vendedor = new ComboBox(\"Vendedor al que enviamos\", \"idempleado\");\ncom_cliente = new ComboBox(\"Clientes\", \"idcliente\");\n//com_tipo = new ComboBox(\"Tipo Envio\", \"idtipo\");\n initValues1();\n\n\n\n formPanelCliente.add(dat_fecha1);\n// formPanelCliente.add(com_tipo);\n// formPanelCliente.add(tex_nombreC);\n// formPanelCliente.add(tex_codigoBarra);\n // formPanelCliente.add(tex_codigoC);\nformPanelCliente.add(com_vendedor);\n formPanelCliente.add(com_cliente);\n add(formPanelCliente);\nanadirListenersTexfield();\n addListeners();\n\n }", "public frm_tutor_subida_prueba() {\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "private void createBtnActionPerformed(java.awt.event.ActionEvent evt) {\n\n staff.setName(regName.getText());\n staff.setID(regID.getText());\n staff.setPassword(regPwd.getText());\n staff.setPosition(regPos.getSelectedItem().toString());\n staff.setGender(regGender.getSelectedItem().toString());\n staff.setEmail(regEmail.getText());\n staff.setPhoneNo(regPhone.getText());\n staff.addStaff();\n if (staff.getPosition().equals(\"Vet\")) {\n Vet vet = new Vet();\n vet.setExpertise(regExp.getSelectedItem().toString());\n vet.setExpertise_2(regExp2.getSelectedItem().toString());\n vet.addExpertise(staff.getID());\n }\n JOptionPane.showMessageDialog(null, \"User added to database\");\n updateJTable();\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "public static void inserir(Venda venda)\r\n throws Exception {\r\n venda.setId(totalVenda++);\r\n listaVenda.add(venda);\r\n }", "public CadastroProdutoNew() {\n initComponents();\n }", "public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }", "public VendaView(int idVenda) throws SQLException {\n initComponents();\n\n jTextFieldIDFuncionario.setEnabled(false);\n jTextFieldNomeCliente.setEnabled(false);\n jTextFieldNomeFuncionario.setEnabled(false);\n// jTextFieldNotaFiscal.setEnabled(false);\n jTextFieldNumeroParcelas.setEnabled(false);\n jTextFieldValorVenda.setEnabled(false);\n jFormattedTextDataVenda.setEnabled(false);\n jTextFieldIDCliente.setEnabled(false);\n int idVenda1 = idVenda;\n buscarPressedEnter();\n\n if (idVenda != -1) {\n textFieldIDVenda.setText(\"\" + idVenda1);\n\n Connection connection;\n try {\n connection = new ConnectionFactory().getConnection();\n\n VendaDAO vendaDAO = new VendaDAO(connection);\n modeloVenda1 = vendaDAO.buscaPorId(Long.parseLong(String.valueOf(idVenda1)));\n\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ClienteDAO clienteDAO = new ClienteDAO(connection);\n ParcelaDAO parcelasDao = new ParcelaDAO(connection);\n List<ModeloParcela> modeloParcelas = new ArrayList<ModeloParcela>();\n\n if (null == pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())))) {\n\n } else {\n modeloPedido1 = pedidoDAO.buscaPorVenda(Integer.parseInt(String.valueOf(modeloVenda1.getId())));\n\n idPedidoClasse = modeloPedido1.getId();\n viewProdutoPedidos = pedidoDAO.buscarPedidoproduto(Integer.parseInt(String.valueOf(idPedidoClasse)));\n modeloParcelas = parcelasDao.listaPorIdVenda(modeloVenda1.getId());\n listarParcelas(modeloParcelas);\n PreencherTabela();\n PreencherTabela2();\n }\n\n FuncionarioDAO funcionarioDAO = new FuncionarioDAO(connection);\n ModeloFuncionario modeloFuncionario = new ModeloFuncionario();\n\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n ModeloCliente modeloCliente = new ModeloCliente();\n modeloFuncionario = funcionarioDAO.buscaPorId(modeloVenda1.getIdfuncionario());\n modeloCliente = clienteDAO.buscaPorId(modeloVenda1.getIdcliente());\n System.out.println(modeloVenda1.getIdcliente());\n jTextFieldIDFuncionario.setText(\"\" + modeloFuncionario.getId());\n jTextFieldNomeFuncionario.setText(modeloFuncionario.getNome());\n jFormattedTextDataVenda.setText(format.format(modeloVenda1.getDataVenda()));\n\n jTextFieldIDCliente.setText(\"\" + modeloCliente.getId());\n jTextFieldNomeCliente.setText(\"\" + modeloCliente.getNome());\n jTextFieldNotaFiscal.setText(modeloVenda1.getNotaFiscal());\n\n jTextFieldValorVenda.setText(\"\" + modeloVenda1.getValorVenda());\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(rootPane, ex);\n Logger.getLogger(VendaView.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n\n }", "public View onCreateView(@NonNull LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n \n View root = inflater.inflate(R.layout.fragment_add_training, container, false);\n controller = Controller.getInstance(root.getContext()); // database\n Button dateButton = root.findViewById(R.id.at_button_date);\n Button submit = root.findViewById(R.id.at_button_submit);\n\n // initialize form\n setCalendarToFrench();\n initForm(root);\n\n // event click on calendar button\n dateButton.setOnClickListener(v -> chooseDateFromCalendar(dateButton));\n\n // event click on submit button\n submit.setOnClickListener(v -> submitForm());\n\n return root;\n }", "public CreateTremaDbDialogForm(AnActionEvent event) {\n this.event = event;\n this.windowTitle = \"New Trema XML database file\";\n init();\n }", "Vaisseau createVaisseau();", "public Agenda() {\n initComponents();\n \n Deshabilitar();\n LlenarTabla();\n \n }", "public GestaoFormando() {\n \n initComponents();\n listarEquipamentos();\n listarmapainscritos();\n }", "@GetMapping(\"/cliente/new\")\n\tpublic String newCliente(Model model) {\n\t\tmodel.addAttribute(\"cliente\", new Cliente());\n\t\tControllerHelper.setEditMode(model, false);\n\t\t\n\t\t\n\t\treturn \"cadastro-cliente\";\n\t\t\n\t}", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "public static AddNewScheduleDialog createInstance(int quantity){\n AddNewScheduleDialog frag = new AddNewScheduleDialog();\n frag.quantity = quantity;\n return frag;\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public FormCadastroAutomovel() {\n initComponents();\n }", "@GetMapping(\"/createRegistro\")\n\tpublic String crearValidacion(Model model) {\n\t\tList<Barrio> localidades = barrioService.obtenerBarrios();\n\t\tmodel.addAttribute(\"localidades\",localidades);\n\t\tmodel.addAttribute(\"persona\",persona);\n\t\tmodel.addAttribute(\"validacion\",validacion);\n\t\tmodel.addAttribute(\"registro\",registro);\n\t\tmodel.addAttribute(\"barrio\",barrio);\n\t\treturn \"RegistroForm\";\n\t}", "public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }", "public VendaView() {\n initComponents();\n }", "public IfrViagem() {\n initComponents();\n v = new Viagem();\n criarViagem();\n\n Formatacao.formatarData(ftfDataSaida);\n Formatacao.formatarHora(ftfHoraSaida);\n Formatacao.formatarData(ftfDataRetorno);\n Formatacao.formatarHora(ftfHoraRetorno);\n Formatacao.formatarReal(ftfValorViagem);\n\n }", "public void fillForm(Event e){\n // name\n eventName.setText(e.getEventname().toString());\n // room\n room.setText(e.getRoom() + \"\");\n // dates\n Calendar from = extractDate(e.getFromDate());\n writeDateToButton(from, R.id.newEvent_button_from);\n Calendar to = extractDate(e.getToDate());\n writeDateToButton(to, R.id.newEvent_button_to);\n Calendar fromTime = null;\n Calendar toTime = null;\n if(e.getFromTime() == -1)\n wholeDay.setChecked(true);\n else {\n fromTime = extractTime(e.getFromTime());\n writeDateToButton(fromTime, R.id.newEvent_button_from_hour);\n toTime = extractTime(e.getToTime());\n writeDateToButton(toTime, R.id.newEvent_button_to_hour);\n }\n // notification\n spinner.setSelection(e.getNotificiation());\n // patient\n PatientAdapter pa = new PatientAdapter(this);\n Patient p = pa.getPatientById(e.getPatient());\n patient_id = p.getPatient_id();\n patient.setText(p.getName());\n // desc\n desc.setText(e.getDescription().toString());\n // putting time and date togehter\n this.fromDate = Calendar.getInstance();\n this.toDate = Calendar.getInstance();\n this.fromDate.set(from.get(Calendar.YEAR), from.get(Calendar.MONTH), from.get(Calendar.DAY_OF_MONTH),\n (fromTime != null ? fromTime.get(Calendar.HOUR_OF_DAY) : 0),\n (fromTime != null ? fromTime.get(Calendar.MINUTE) : 0));\n this.toDate.set(to.get(Calendar.YEAR), to.get(Calendar.MONTH), to.get(Calendar.DAY_OF_MONTH),\n (toTime != null ? toTime.get(Calendar.HOUR_OF_DAY) : 0),\n (toTime != null ? toTime.get(Calendar.MINUTE) : 0));\n startYear = fromDate.get(Calendar.YEAR);\n startMonth = fromDate.get(Calendar.MONTH);\n startDay = fromDate.get(Calendar.DAY_OF_MONTH);\n startHour = fromDate.get(Calendar.HOUR_OF_DAY);\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "Vaisseau_Vaisseau createVaisseau_Vaisseau();", "public TelaRegistroVendas() {\n initComponents();\n }", "private void generaVentana()\n {\n // Crea la ventana\n ventana = new JFrame(\"SpaceInvaders\");\n panel = (JPanel) ventana.getContentPane();\n \n // Establece el tamaño del panel\n panel.setPreferredSize(new Dimension(anchoVentana, altoVentana));\n\n // Establece el layout por defecto\n panel.setLayout(null);\n\n // Establece el fondo para el panel\n panel.setBackground(Color.black);\n\n // Establece el tamaño de Canvas y lo añade a la ventana\n setBounds(0,0,altoVentana,anchoVentana);\n panel.add(this);\n\n // Establece que el programa se cerrará cuando la ventana se cierre\n ventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n // Establece el tamaño de la ventana\n ventana.pack();\n\n // La ventana no se cambia de tamaño\n ventana.setResizable(false);\n\n // Centra la ventana en la pantalla\n ventana.setLocationRelativeTo(null);\n\n // Muestra la ventana\n ventana.setVisible(true);\n\n // Mantine el foco en la ventana\n requestFocusInWindow();\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }", "Compuesta createCompuesta();", "public agregarArticulo(String user, String password, String vend, String codigoVend) {\n initComponents();\n usu = user;\n contra = password;\n\n try {\n model = new ConnectionTableDB(usu, contra, \"adv_facturacion\", \"SELECT tipo_producto from tipo_producto\", false);\n\n for (int i = 0; i < model.getRowCount(); i++) {\n tipo.addItem(String.valueOf(model.getValueAt(i, 0)));\n }\n //this.getContentPane().setBackground(Color.white);\n } catch (SQLException ex) {\n Logger.getLogger(agregarArticulo.class.getName()).log(Level.SEVERE, null, ex);\n }\n model.desconectar();\n }", "public FrmCadastroVenda(JDesktopPane desktop, int permissao, int op, String nota) {\r\n\t\tsuper();\r\n\t\tthis.desk = desktop;\r\n\t\tthis.permissao = permissao;\r\n\t\tthis.op = op;\r\n\t\tinitialize();\r\n\t\ttxtCnpjCliente.setEditable(false);\r\n\t\ttxtCnpjRepresentada.setEditable(false);\r\n\t\ttxtVendedor.setEditable(false);\r\n\t\tchkComissionado.setEnabled(false);\r\n\t\ttxtVlFinal.setEditable(false);\r\n\t\ttxtVlFinal2.setEditable(false);\r\n\t\tif(getOp()==0){//Novo cadastro\r\n\r\n\t\t}else{//Exibir dados\r\n\t\t\tif(getPermissao()==1){\r\n\t\t\t\tabaPrincipal.addTab(\"Comissão\", null, abaComissao, null);\t\r\n\t\t\t\tajustaDados(nota);\r\n\t\t\t\tdesabilitaCampos();\r\n\t\t\t\tif(txtComissao.getText().equals(\"R$ 0,00\")){\r\n\t\t\t\t\ttxtComissao.setEditable(true);\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttxtComissao.setEditable(false);\r\n\t\t\t\t}\t\t\t\t\t\t\t\r\n\t\t\t}else{\r\n\t\t\t\tajustaDados(nota);\r\n\t\t\t\tdesabilitaCampos();\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected void doPost(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String nombre = request.getParameter(\"nombre\");\n String descripcion = request.getParameter(\"descripcion\");\n String cantidad = request.getParameter(\"cantidad\");\n String precio = request.getParameter(\"precio\");\n String pago = request.getParameter(\"pago\");\n \n //creando objeto del costructor\n modelo.ventas venta = new modelo.ventas();\n //almacenando datos en las variables con el constructor \n venta.setNombre(nombre);\n venta.setDescripcion(descripcion);\n venta.setCantidad(Integer.parseInt(cantidad));\n venta.setPrecio(Double.parseDouble(precio));\n venta.setPago(Integer.parseInt(pago));\n \n //creando objeto para guardar cliente\n modelo.addVenta addventa = new modelo.addVenta();\n try {\n addventa.agrega(venta);\n } catch (SQLException ex) {\n Logger.getLogger(formVenta.class.getName()).log(Level.SEVERE, null, ex);\n }\n response.sendRedirect(\"ventas\");//si se guarda exitosamente se redirecciona a membresia\n }", "public VentanaVentaTicket() {\n \n initComponents();\n VentanaVentaTicket.textoArea.append(\"************SPICY FACTORY***************\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~Detalle de la Venta ~~~~~~~~~~~~\\n\");\n VentanaVentaTicket.textoArea.append(\"~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\\n\");\n \n }", "public VistaInicial crearventanaInicial(){\n if(vistaInicial==null){\n vistaInicial = new VistaInicial();\n }\n return vistaInicial;\n }", "public VentanaCreaCategoria(VentanaPrincipal v, Categoria c) {\r\n\t\tthis.vp = v;\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tsetTitle(\"Crear categor\\u00EDa\");\r\n\t\tsetBounds(100, 100, 441, 237);\r\n\t\tgetContentPane().setLayout(new BorderLayout());\r\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\r\n\t\tcontentPanel.setLayout(null);\r\n\t\tcontentPanel.add(getBtnCrear());\r\n\t\tcontentPanel.add(getBtnCancelar());\r\n\t\tcontentPanel.add(getLblNombre());\r\n\t\tcontentPanel.add(getTfNombre());\r\n\t\tcontentPanel.add(getLblSexo());\r\n\t\tcontentPanel.add(getComboSexo());\r\n\t\tcontentPanel.add(getLblEdadDesde());\r\n\t\tcontentPanel.add(getTfedadMinima());\r\n\t\tcontentPanel.add(getLblHasta());\r\n\t\tcontentPanel.add(getTfEdadMaxima());\r\n\r\n\t\t// Cargamos los datos en las tf\r\n\t\tcargarDatosCategoria(c);\r\n\t}", "public New_appointment() {\n initComponents();\n }", "public void createTask(){\n final String name = newTaskNameField.getText().toString();\n final String description = newTaskDescriptionField.getText().toString();\n\n if (name.isEmpty()){\n newTaskNameField.setText(\"Please Enter a name\");\n newTaskNameField.requestFocus();\n newTaskNameField.selectAll();\n return;\n }\n\n if (description.isEmpty()){\n newTaskDescriptionField.setText(\"Please Enter a Description\");\n newTaskDescriptionField.requestFocus();\n newTaskDescriptionField.selectAll();\n return;\n }\n\n if(!getValidDate(newtaskDateField.getText().toString())) {\n handleInvalidDate();\n return;\n }\n\n if(newTaskAssignee == null) {\n newTaskAssigneeField.setText(\"Please assign a user\");\n newTaskAssigneeField.selectAll();\n return;\n }\n\n TaskManager.sharedInstance().CreateTask(name, description, newTaskAssignee, DueDate, false);\n newTaskDialog.dismiss();\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@GetMapping(\"/restaurante/new\")\n\tpublic String newRestaurante(Model model) {\n\t\tmodel.addAttribute(\"restaurante\", new Restaurante());\n\t\tControllerHelper.setEditMode(model, false);\n\t\tControllerHelper.addCategoriasToRequest(categoriaRestauranteRepository, model);\n\t\t\n\t\treturn \"restaurante-cadastro\";\n\t\t\n\t}", "public VistaCrearPedidoAbonado() {\n initComponents();\n errorLabel.setVisible(false);\n controlador = new CtrlVistaCrearPedidoAbonado(this);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n apagarVenda = new javax.swing.JButton();\n jLabel14 = new javax.swing.JLabel();\n jLabel36 = new javax.swing.JLabel();\n lucro = new javax.swing.JTextField();\n jLabel34 = new javax.swing.JLabel();\n codigoCliente = new javax.swing.JTextField();\n custoNaMadri = new javax.swing.JTextField();\n jLabel35 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n valorLiquidoML = new javax.swing.JTextField();\n jLabel29 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n dataVenda = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n precoVendido = new javax.swing.JTextField();\n jLabel15 = new javax.swing.JLabel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jLabel19 = new javax.swing.JLabel();\n codigoPeca = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n jLabel21 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n cadastroObservacoes = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n tarifaDoML = new javax.swing.JTextField();\n jLabel22 = new javax.swing.JLabel();\n porcentagemDoMercadoLivre = new javax.swing.JTextField();\n quantidadeVendida = new javax.swing.JTextField();\n botAtualizar = new javax.swing.JButton();\n botaoEntrarIniciall1 = new javax.swing.JButton();\n nomePeca = new javax.swing.JTextField();\n valorFrete = new javax.swing.JTextField();\n jLabel30 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel25 = new javax.swing.JLabel();\n jLabel31 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jLabel13 = new javax.swing.JLabel();\n jLabel27 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jLabel37 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n mostrarNivel = new javax.swing.JLabel();\n acessoUser = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"EDITAR VENDA\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowActivated(java.awt.event.WindowEvent evt) {\n formWindowActivated(evt);\n }\n });\n getContentPane().setLayout(null);\n\n apagarVenda.setBackground(new java.awt.Color(0, 0, 0));\n apagarVenda.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n apagarVenda.setForeground(new java.awt.Color(255, 255, 255));\n apagarVenda.setText(\"APAGAR\");\n apagarVenda.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n apagarVendaActionPerformed(evt);\n }\n });\n apagarVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n apagarVendaKeyPressed(evt);\n }\n });\n getContentPane().add(apagarVenda);\n apagarVenda.setBounds(300, 640, 160, 40);\n\n jLabel14.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/APAGAR.png\"))); // NOI18N\n getContentPane().add(jLabel14);\n jLabel14.setBounds(440, 610, 80, 70);\n\n jLabel36.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel36.setForeground(new java.awt.Color(255, 255, 255));\n jLabel36.setText(\"LUCRO\");\n getContentPane().add(jLabel36);\n jLabel36.setBounds(280, 350, 70, 17);\n\n lucro.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n lucro.setText(\"0,00\");\n lucro.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n lucroFocusGained(evt);\n }\n });\n lucro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n lucroActionPerformed(evt);\n }\n });\n lucro.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n lucroKeyPressed(evt);\n }\n });\n getContentPane().add(lucro);\n lucro.setBounds(280, 380, 140, 30);\n\n jLabel34.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel34.setForeground(new java.awt.Color(255, 255, 255));\n jLabel34.setText(\"CÓDIGO DA VENDA\");\n getContentPane().add(jLabel34);\n jLabel34.setBounds(480, 350, 180, 17);\n\n codigoCliente.setEditable(false);\n codigoCliente.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoCliente.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n codigoClienteFocusGained(evt);\n }\n });\n codigoCliente.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n codigoClienteActionPerformed(evt);\n }\n });\n codigoCliente.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoClienteKeyPressed(evt);\n }\n });\n getContentPane().add(codigoCliente);\n codigoCliente.setBounds(480, 380, 140, 30);\n\n custoNaMadri.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n custoNaMadri.setText(\"0,00\");\n custoNaMadri.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n custoNaMadriFocusGained(evt);\n }\n });\n custoNaMadri.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n custoNaMadriActionPerformed(evt);\n }\n });\n custoNaMadri.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n custoNaMadriKeyPressed(evt);\n }\n });\n getContentPane().add(custoNaMadri);\n custoNaMadri.setBounds(30, 380, 190, 30);\n\n jLabel35.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel35.setForeground(new java.awt.Color(255, 255, 255));\n jLabel35.setText(\"PREÇO DE CUSTO NA MADRI\");\n getContentPane().add(jLabel35);\n jLabel35.setBounds(30, 350, 210, 17);\n\n jLabel28.setFont(new java.awt.Font(\"Tahoma\", 1, 21)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel28.setText(\"EDITAR VENDA\");\n getContentPane().add(jLabel28);\n jLabel28.setBounds(260, 10, 320, 60);\n\n valorLiquidoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorLiquidoML.setText(\"0,00\");\n valorLiquidoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorLiquidoMLFocusGained(evt);\n }\n });\n valorLiquidoML.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorLiquidoMLActionPerformed(evt);\n }\n });\n valorLiquidoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorLiquidoMLKeyPressed(evt);\n }\n });\n getContentPane().add(valorLiquidoML);\n valorLiquidoML.setBounds(480, 300, 140, 30);\n\n jLabel29.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel29.setForeground(new java.awt.Color(255, 255, 255));\n jLabel29.setText(\"VALOR LÍQUIDO DO MERCADO LIVRE\");\n getContentPane().add(jLabel29);\n jLabel29.setBounds(480, 270, 270, 17);\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel2.setForeground(new java.awt.Color(255, 255, 255));\n jLabel2.setText(\"PORCENTAGEM DO MERCADO LIVRE\");\n getContentPane().add(jLabel2);\n jLabel2.setBounds(480, 190, 270, 17);\n\n jLabel3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"DATA\");\n getContentPane().add(jLabel3);\n jLabel3.setBounds(280, 110, 100, 17);\n\n dataVenda.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n dataVenda.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n dataVendaFocusGained(evt);\n }\n });\n dataVenda.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n dataVendaKeyPressed(evt);\n }\n });\n getContentPane().add(dataVenda);\n dataVenda.setBounds(280, 140, 140, 30);\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"QUANTIDADE VENDIDA\");\n getContentPane().add(jLabel4);\n jLabel4.setBounds(480, 110, 190, 17);\n\n precoVendido.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n precoVendido.setText(\"0,00\");\n precoVendido.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n precoVendidoFocusGained(evt);\n }\n });\n precoVendido.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n precoVendidoKeyPressed(evt);\n }\n });\n getContentPane().add(precoVendido);\n precoVendido.setBounds(280, 220, 140, 30);\n\n jLabel15.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel15.setForeground(new java.awt.Color(255, 0, 0));\n jLabel15.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel15.setText(\"*\");\n getContentPane().add(jLabel15);\n jLabel15.setBounds(230, 330, 40, 60);\n\n jLabel17.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel17.setForeground(new java.awt.Color(255, 0, 0));\n jLabel17.setText(\"*\");\n getContentPane().add(jLabel17);\n jLabel17.setBounds(330, 100, 30, 40);\n\n jLabel18.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel18.setForeground(new java.awt.Color(255, 0, 0));\n jLabel18.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel18.setText(\"*\");\n getContentPane().add(jLabel18);\n jLabel18.setBounds(660, 110, 20, 22);\n\n jLabel16.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel16.setForeground(new java.awt.Color(255, 0, 0));\n jLabel16.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel16.setText(\"*\");\n getContentPane().add(jLabel16);\n jLabel16.setBounds(90, 100, 30, 40);\n\n jLabel19.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel19.setForeground(new java.awt.Color(255, 255, 255));\n jLabel19.setText(\"CÓDIGO\");\n getContentPane().add(jLabel19);\n jLabel19.setBounds(30, 110, 70, 17);\n\n codigoPeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n codigoPeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n codigoPecaFocusLost(evt);\n }\n });\n codigoPeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n codigoPecaKeyPressed(evt);\n }\n });\n getContentPane().add(codigoPeca);\n codigoPeca.setBounds(30, 140, 130, 30);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/MER-LIVRE.png\"))); // NOI18N\n getContentPane().add(jLabel5);\n jLabel5.setBounds(715, 5, 70, 75);\n\n jLabel21.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel21.setForeground(new java.awt.Color(255, 255, 255));\n jLabel21.setText(\"OBSERVAÇÕES\");\n getContentPane().add(jLabel21);\n jLabel21.setBounds(30, 430, 200, 17);\n\n jLabel20.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel20.setForeground(new java.awt.Color(255, 255, 255));\n jLabel20.setText(\"TARIFA DO MERCADO LIVRE\");\n getContentPane().add(jLabel20);\n jLabel20.setBounds(30, 270, 210, 17);\n\n cadastroObservacoes.setColumns(20);\n cadastroObservacoes.setFont(new java.awt.Font(\"Tahoma\", 0, 16)); // NOI18N\n cadastroObservacoes.setRows(5);\n cadastroObservacoes.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n cadastroObservacoesKeyPressed(evt);\n }\n });\n jScrollPane1.setViewportView(cadastroObservacoes);\n\n getContentPane().add(jScrollPane1);\n jScrollPane1.setBounds(30, 460, 730, 140);\n\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/Sem título.png\"))); // NOI18N\n jLabel6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n getContentPane().add(jLabel6);\n jLabel6.setBounds(-4, 0, 150, 80);\n\n tarifaDoML.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n tarifaDoML.setText(\"0,00\");\n tarifaDoML.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n tarifaDoMLFocusGained(evt);\n }\n });\n tarifaDoML.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n tarifaDoMLKeyPressed(evt);\n }\n });\n getContentPane().add(tarifaDoML);\n tarifaDoML.setBounds(30, 300, 140, 30);\n\n jLabel22.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel22.setForeground(new java.awt.Color(255, 255, 255));\n jLabel22.setText(\"PREÇO DE VENDA\");\n getContentPane().add(jLabel22);\n jLabel22.setBounds(280, 190, 150, 17);\n\n porcentagemDoMercadoLivre.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n porcentagemDoMercadoLivre.setText(\"11,00\");\n porcentagemDoMercadoLivre.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n porcentagemDoMercadoLivreFocusGained(evt);\n }\n });\n porcentagemDoMercadoLivre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n porcentagemDoMercadoLivreActionPerformed(evt);\n }\n });\n porcentagemDoMercadoLivre.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n porcentagemDoMercadoLivreKeyPressed(evt);\n }\n });\n getContentPane().add(porcentagemDoMercadoLivre);\n porcentagemDoMercadoLivre.setBounds(480, 220, 140, 30);\n\n quantidadeVendida.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n quantidadeVendida.setText(\"1\");\n quantidadeVendida.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n quantidadeVendidaFocusGained(evt);\n }\n });\n quantidadeVendida.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n quantidadeVendidaKeyPressed(evt);\n }\n });\n getContentPane().add(quantidadeVendida);\n quantidadeVendida.setBounds(480, 140, 140, 30);\n\n botAtualizar.setBackground(new java.awt.Color(0, 0, 0));\n botAtualizar.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botAtualizar.setForeground(new java.awt.Color(255, 255, 255));\n botAtualizar.setText(\"ATUALIZAR\");\n botAtualizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botAtualizarActionPerformed(evt);\n }\n });\n botAtualizar.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botAtualizarKeyPressed(evt);\n }\n });\n getContentPane().add(botAtualizar);\n botAtualizar.setBounds(30, 640, 160, 40);\n\n botaoEntrarIniciall1.setBackground(new java.awt.Color(0, 0, 0));\n botaoEntrarIniciall1.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n botaoEntrarIniciall1.setForeground(new java.awt.Color(255, 255, 255));\n botaoEntrarIniciall1.setText(\"PESQUISAR\");\n botaoEntrarIniciall1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n botaoEntrarIniciall1ActionPerformed(evt);\n }\n });\n botaoEntrarIniciall1.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n botaoEntrarIniciall1KeyPressed(evt);\n }\n });\n getContentPane().add(botaoEntrarIniciall1);\n botaoEntrarIniciall1.setBounds(560, 640, 160, 40);\n\n nomePeca.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n nomePeca.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n nomePecaFocusGained(evt);\n }\n });\n nomePeca.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n nomePecaKeyPressed(evt);\n }\n });\n getContentPane().add(nomePeca);\n nomePeca.setBounds(30, 220, 210, 30);\n\n valorFrete.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n valorFrete.setText(\"0,00\");\n valorFrete.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n valorFreteFocusGained(evt);\n }\n });\n valorFrete.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n valorFreteActionPerformed(evt);\n }\n });\n valorFrete.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n valorFreteKeyPressed(evt);\n }\n });\n getContentPane().add(valorFrete);\n valorFrete.setBounds(280, 300, 140, 30);\n\n jLabel30.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel30.setForeground(new java.awt.Color(255, 255, 255));\n jLabel30.setText(\"VALOR DO FRETE\");\n getContentPane().add(jLabel30);\n jLabel30.setBounds(280, 270, 140, 17);\n\n jLabel23.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(255, 255, 255));\n jLabel23.setText(\"NOME\");\n getContentPane().add(jLabel23);\n jLabel23.setBounds(30, 190, 150, 17);\n\n jLabel25.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel25.setForeground(new java.awt.Color(255, 0, 0));\n jLabel25.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel25.setText(\"*\");\n getContentPane().add(jLabel25);\n jLabel25.setBounds(400, 170, 40, 60);\n\n jLabel31.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel31.setForeground(new java.awt.Color(255, 0, 0));\n jLabel31.setText(\"*\");\n getContentPane().add(jLabel31);\n jLabel31.setBounds(750, 160, 30, 80);\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel12.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel12.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel12);\n jLabel12.setBounds(-80, 4, 760, 77);\n\n jLabel24.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 0, 0));\n jLabel24.setText(\"*\");\n getContentPane().add(jLabel24);\n jLabel24.setBounds(90, 170, 30, 60);\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/PROCURA HEHE.png\"))); // NOI18N\n getContentPane().add(jLabel13);\n jLabel13.setBounds(700, 610, 80, 70);\n\n jLabel27.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel27.setForeground(new java.awt.Color(255, 0, 0));\n jLabel27.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel27.setText(\"*\");\n getContentPane().add(jLabel27);\n jLabel27.setBounds(230, 250, 40, 60);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/fundo preto.png\"))); // NOI18N\n jLabel1.setMinimumSize(new java.awt.Dimension(1057, 340));\n jLabel1.setPreferredSize(new java.awt.Dimension(1057, 350));\n getContentPane().add(jLabel1);\n jLabel1.setBounds(140, 4, 760, 77);\n\n jLabel37.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n jLabel37.setForeground(new java.awt.Color(255, 0, 0));\n jLabel37.setText(\"*\");\n getContentPane().add(jLabel37);\n jLabel37.setBounds(420, 250, 30, 60);\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/atua.png\"))); // NOI18N\n getContentPane().add(jLabel26);\n jLabel26.setBounds(170, 610, 80, 70);\n\n jLabel11.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/FUNDO AMARELO.jpg\"))); // NOI18N\n getContentPane().add(jLabel11);\n jLabel11.setBounds(0, -331, 810, 430);\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel7);\n jLabel7.setBounds(310, 10, 610, 530);\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel8);\n jLabel8.setBounds(320, 340, 570, 530);\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel9);\n jLabel9.setBounds(-20, 450, 570, 530);\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/imagens/RS.png\"))); // NOI18N\n getContentPane().add(jLabel10);\n jLabel10.setBounds(0, 0, 570, 530);\n\n mostrarNivel.setFont(new java.awt.Font(\"Tahoma\", 1, 18)); // NOI18N\n mostrarNivel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n mostrarNivel.setText(\"5\");\n getContentPane().add(mostrarNivel);\n mostrarNivel.setBounds(520, 130, 50, 70);\n\n acessoUser.setFont(new java.awt.Font(\"Tahoma\", 1, 10)); // NOI18N\n acessoUser.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n acessoUser.setText(\"ADMIN\");\n getContentPane().add(acessoUser);\n acessoUser.setBounds(520, 220, 70, 60);\n\n setBounds(427, 5, 790, 716);\n }", "public EditarVenda() {\n initComponents();\n URL caminhoIcone = getClass().getResource(\"/mklivre/icone/icone2.png\");\n Image iconeTitulo = Toolkit.getDefaultToolkit().getImage(caminhoIcone);\n this.setIconImage(iconeTitulo);\n conexao = ModuloConexao.conector();\n codigoCliente.setEnabled(false);\n lucro.setEnabled(false);\n valorLiquidoML.setEnabled(false);\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "public DCrearDisco( InterfazDiscotienda id ){\r\n super( id, true );\r\n principal = id;\r\n\r\n panelDatos = new PanelCrearDisco( );\r\n panelBotones = new PanelBotonesDisco( this );\r\n\r\n getContentPane( ).add( panelDatos, BorderLayout.CENTER );\r\n getContentPane( ).add( panelBotones, BorderLayout.SOUTH );\r\n\r\n setTitle( \"Crear Disco\" );\r\n pack();\r\n }", "public void newTask() {\r\n\r\n todoTaskGui(\"Create\", null);\r\n }", "public de_gestionar_contrato_añadir() {\n initComponents();\n lbl_error_nombre_cliente.setVisible(false);\n lbl_error_numero_contrato.setVisible(false);\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n\n // detectar cambio en jdateChoser (fecha de inicio en agregar contrato)\n fecha_inicio_contrato.getDateEditor().addPropertyChangeListener(\n new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent e) {\n if (\"date\".equals(e.getPropertyName())) {\n System.out.println(e.getPropertyName()\n + \": \" + (Date) e.getNewValue());\n if(fecha_inicio_contrato.getDate()!=null){\n lbl_fecha_expira_contrato.setText(toma_fecha(fecha_inicio_contrato).substring(0,6)+String.valueOf(Integer.parseInt(toma_fecha(fecha_inicio_contrato).substring(6))+1));\n lbl.setVisible(true);\n lbl_fecha_expira_contrato.setVisible(true);\n }\n }else{\n lbl_fecha_expira_contrato.setText(\"\");\n lbl_error_fecha_inicio.setVisible(false);\n lbl.setVisible(false);\n lbl_fecha_expira_contrato.setVisible(false);\n }\n }\n });\n this.add(fecha_inicio_contrato);\n \n deshabilitarPegar();\n }", "public ArticulosAdd() {\n initComponents();\n Sistema.lblNotificacion.setText(\"Ingreso Artítuclos\");\n this.setLocationRelativeTo(null);\n\n Date date = new Date();\n\n dtDesde.setDate(date);\n dtHasta.setDate(date);\n\n articulos.searchArticulo(cboArticulos, \"\", 0, 1000, 0);\n }", "Vaisseau_longueur createVaisseau_longueur();", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public Punto_venta() {\n initComponents();\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@GetMapping(\"/producto/nuevo\")\n\tpublic String nuevoProductoForm(Model model) {\n\t\tmodel.addAttribute(\"producto\", new Producto());\n\t\treturn \"app/producto/form\";\n\t}", "public JsfVenda() {\r\n litem = new ArrayList();\r\n }", "public VCrearGerente(JFrame vAnterior, Administrador admin) {\n this.vAnterior = vAnterior; \n this.admin = admin;\n initComponents();\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view =inflater.inflate(R.layout.activity_crearno, container, false);\n titulo = (EditText) view.findViewById(R.id.titulo);\n nota = (TextView) view.findViewById(R.id.titu1);\n Button btnCre = (Button) view.findViewById(R.id.crearno);\n\n btnCre.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n titu=titulo.getText().toString();\n\n NotasFragment fragment = new NotasFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.content_frame, fragment).commit();\n\n\n\n\n }\n });\n return view;\n }", "public frmAfiliado() {\n initComponents();\n \n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public String createQuiz() {\n quiz = quizEJB.createQuiz(quiz);\n quizList = quizEJB.listQuiz();\n FacesContext.getCurrentInstance().addMessage(\"successForm:successInput\", new FacesMessage(FacesMessage.SEVERITY_INFO, \"Success\", \"New record added successfully\"));\n return \"quiz-list.xhtml\";\n }", "private void nuevaLiga() {\r\n\t\tif(Gestion.isModificado()){\r\n\t\t\tint opcion = JOptionPane.showOptionDialog(null, \"¿Desea guardar los cambios?\", \"Nueva Liga\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE, null,null, null);\r\n\t\t\tswitch(opcion){\r\n\t\t\tcase JOptionPane.YES_OPTION:\r\n\t\t\t\tguardar();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.NO_OPTION:\r\n\t\t\t\tGestion.reset();\r\n\t\t\t\tbreak;\r\n\t\t\tcase JOptionPane.CANCEL_OPTION:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t\tGestion.reset();\r\n\t\tfrmLigaDeFtbol.setTitle(\"Liga de Fútbol\");\r\n\t}", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public void createEvent(View view){\n showDatePickerDialog();\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel();\n jblLogo = new javax.swing.JLabel();\n nome = new javax.swing.JLabel();\n txtNome = new javax.swing.JTextField();\n endereço = new javax.swing.JLabel();\n Cidade = new javax.swing.JLabel();\n txtCiddade = new javax.swing.JTextField();\n JbtnSair = new javax.swing.JButton();\n codClient = new javax.swing.JLabel();\n txtCodProduto = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n jComboBox1 = new javax.swing.JComboBox<>();\n JbtnSair1 = new javax.swing.JButton();\n nome1 = new javax.swing.JLabel();\n txtNome1 = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n nome2 = new javax.swing.JLabel();\n txtNome2 = new javax.swing.JTextField();\n jScrollPane2 = new javax.swing.JScrollPane();\n tblDetalhesVenda = new javax.swing.JTable();\n JbtnSair2 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n nome3 = new javax.swing.JLabel();\n txtNome3 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Venda\");\n setBackground(new java.awt.Color(204, 204, 204));\n setResizable(false);\n\n jPanel1.setToolTipText(\"Venda\");\n\n jblLogo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Pacote_imagens/Camada 2.png\"))); // NOI18N\n\n nome.setText(\"Cód. Produto:\");\n\n txtNome.setToolTipText(\"\");\n txtNome.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNomeActionPerformed(evt);\n }\n });\n\n endereço.setText(\"Tamanho:\");\n\n Cidade.setText(\"ID Cliente:\");\n\n txtCiddade.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCiddadeActionPerformed(evt);\n }\n });\n\n JbtnSair.setText(\"Cancelar\");\n JbtnSair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSairActionPerformed(evt);\n }\n });\n\n codClient.setText(\"Nome Produto:\");\n\n txtCodProduto.setEditable(false);\n txtCodProduto.setBackground(new java.awt.Color(255, 255, 255));\n txtCodProduto.setToolTipText(\"\");\n txtCodProduto.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtCodProdutoActionPerformed(evt);\n }\n });\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"IMAGEM\");\n jLabel1.setToolTipText(\"\");\n jLabel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"---\", \"35\", \"36\", \"37\", \"38\", \"39\", \"40\", \"41\", \"42\", \"43\" }));\n\n JbtnSair1.setText(\"Comprar\");\n JbtnSair1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSair1ActionPerformed(evt);\n }\n });\n\n nome1.setText(\"Valor:\");\n\n txtNome1.setEditable(false);\n txtNome1.setBackground(new java.awt.Color(255, 255, 255));\n txtNome1.setToolTipText(\"\");\n txtNome1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome1ActionPerformed(evt);\n }\n });\n\n jLabel2.setText(\"Nome Cliente:\");\n\n nome2.setText(\"Quantidade: \");\n\n txtNome2.setEditable(false);\n txtNome2.setBackground(new java.awt.Color(255, 255, 255));\n txtNome2.setToolTipText(\"\");\n txtNome2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome2ActionPerformed(evt);\n }\n });\n\n jScrollPane2.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Detalhes da venda\"));\n\n tblDetalhesVenda.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null},\n {null, null, null}\n },\n new String [] {\n \"Produtos\", \"Quantidade\", \"Valor Item\"\n }\n ));\n jScrollPane2.setViewportView(tblDetalhesVenda);\n\n JbtnSair2.setText(\"Carrinho\");\n JbtnSair2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n JbtnSair2ActionPerformed(evt);\n }\n });\n\n jLabel4.setFont(new java.awt.Font(\"Arial Black\", 1, 14)); // NOI18N\n jLabel4.setText(\"CARRINHO DE COMPRAS\");\n\n nome3.setText(\"Valor Total:\");\n\n txtNome3.setEditable(false);\n txtNome3.setBackground(new java.awt.Color(255, 255, 255));\n txtNome3.setToolTipText(\"\");\n txtNome3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtNome3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(353, 353, 353)\n .addComponent(nome3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtNome3, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(41, 41, 41)\n .addComponent(jblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(Cidade, javax.swing.GroupLayout.PREFERRED_SIZE, 68, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtCiddade, javax.swing.GroupLayout.PREFERRED_SIZE, 85, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 185, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(nome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, 204, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(codClient)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(endereço)\n .addComponent(nome1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nome2, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(txtNome1, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtNome2, javax.swing.GroupLayout.PREFERRED_SIZE, 35, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 127, Short.MAX_VALUE))\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 281, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addComponent(JbtnSair2)))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(JbtnSair)\n .addGap(18, 18, 18)\n .addComponent(JbtnSair1)\n .addGap(30, 30, 30)))\n .addGap(388, 388, 388))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(jblLogo, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(29, 29, 29)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cidade, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCiddade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(13, 13, 13)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(txtNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(codClient, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(endereço)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome2)\n .addComponent(txtNome2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(nome1)\n .addComponent(txtNome1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 8, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 182, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(JbtnSair2, javax.swing.GroupLayout.PREFERRED_SIZE, 47, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(53, 53, 53)))\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 145, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtNome3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(nome3))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(JbtnSair, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(JbtnSair1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(41, 41, 41))\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 571, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }" ]
[ "0.6643666", "0.6617271", "0.6599882", "0.6521472", "0.64106643", "0.63889396", "0.6386409", "0.6331269", "0.6308499", "0.6306714", "0.6256647", "0.6231167", "0.62144065", "0.62083745", "0.61847734", "0.61645615", "0.6136669", "0.6117701", "0.610413", "0.6096156", "0.6089788", "0.60607463", "0.6060478", "0.6038556", "0.60183865", "0.6004221", "0.5999588", "0.599391", "0.59914064", "0.59845763", "0.59763366", "0.5956389", "0.5956358", "0.5950209", "0.5921897", "0.59018236", "0.5894525", "0.58809006", "0.58502716", "0.5848179", "0.58344525", "0.5832596", "0.58236235", "0.58221585", "0.5815464", "0.5812125", "0.58059317", "0.58021164", "0.57996625", "0.57920057", "0.5786778", "0.5782537", "0.5782537", "0.5782537", "0.5782537", "0.57781404", "0.57768", "0.5763857", "0.5763558", "0.57606864", "0.5759508", "0.57380193", "0.5726894", "0.572511", "0.5714247", "0.5711802", "0.57067007", "0.5696078", "0.5695076", "0.5693501", "0.5687767", "0.5685136", "0.567619", "0.5675588", "0.5658585", "0.5652642", "0.5650238", "0.56500214", "0.56470394", "0.562576", "0.56241465", "0.5619382", "0.5611086", "0.55954087", "0.55802715", "0.5579835", "0.5576833", "0.55711293", "0.55662227", "0.55642813", "0.5561997", "0.55519766", "0.5550222", "0.554698", "0.5540163", "0.5539801", "0.55375373", "0.55351084", "0.55334073" ]
0.61947715
15
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jLabel2 = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); txtPesquisa = new javax.swing.JTextField(); btnBusca = new javax.swing.JButton(); txtQunatidade = new javax.swing.JTextField(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); txtValorItem = new javax.swing.JTextField(); txtValorTotal = new javax.swing.JTextField(); jLabel5 = new javax.swing.JLabel(); jScrollPane1 = new javax.swing.JScrollPane(); tabelaPesquisa = new javax.swing.JTable(); jLabel7 = new javax.swing.JLabel(); jScrollPane2 = new javax.swing.JScrollPane(); tabelaItemVenda = new javax.swing.JTable(); btnFinalizar = new javax.swing.JButton(); btnAdicionar = new javax.swing.JButton(); txtCodProduto = new javax.swing.JTextField(); jLabel8 = new javax.swing.JLabel(); btnAbirVenda = new javax.swing.JButton(); txtCodFuncionario = new javax.swing.JTextField(); jLabel6 = new javax.swing.JLabel(); txtCodVenda = new javax.swing.JTextField(); jLabel9 = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); setTitle("Formulario de Venda"); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 30)); // NOI18N jLabel2.setText("VENDAS"); jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder()); jLabel1.setText("Produto:"); txtPesquisa.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtPesquisaActionPerformed(evt); } }); btnBusca.setText("Busca"); btnBusca.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnBuscaActionPerformed(evt); } }); txtQunatidade.addFocusListener(new java.awt.event.FocusAdapter() { public void focusGained(java.awt.event.FocusEvent evt) { txtQunatidadeFocusGained(evt); } }); txtQunatidade.addKeyListener(new java.awt.event.KeyAdapter() { public void keyReleased(java.awt.event.KeyEvent evt) { txtQunatidadeKeyReleased(evt); } }); jLabel3.setText("Qtd:"); jLabel4.setText("Valor por item:"); txtValorItem.setEnabled(false); txtValorTotal.setEnabled(false); jLabel5.setText("Valor total:"); tabelaPesquisa.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {}, {}, {}, {} }, new String [] { } )); tabelaPesquisa.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { tabelaPesquisaMouseClicked(evt); } }); jScrollPane1.setViewportView(tabelaPesquisa); jLabel7.setText("Itens da venda:"); tabelaItemVenda.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {}, {}, {}, {} }, new String [] { } )); jScrollPane2.setViewportView(tabelaItemVenda); btnFinalizar.setText("FINALIZAR VENDA"); btnFinalizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnFinalizarActionPerformed(evt); } }); btnAdicionar.setText("ADD"); btnAdicionar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAdicionarActionPerformed(evt); } }); jLabel8.setText("Cod Produto:"); btnAbirVenda.setText("Abrir Venda"); btnAbirVenda.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnAbirVendaActionPerformed(evt); } }); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(39, 39, 39) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel7) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 660, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(txtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, 273, javax.swing.GroupLayout.PREFERRED_SIZE) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(btnAbirVenda) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel8) .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, 136, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnBusca)) .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup() .addGap(312, 312, 312) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel3) .addComponent(txtQunatidade, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addGap(41, 41, 41) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel4) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(txtValorItem, javax.swing.GroupLayout.PREFERRED_SIZE, 113, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(btnAdicionar))))) .addComponent(jLabel1))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(btnFinalizar) .addGap(112, 112, 112) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel5) .addComponent(txtValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addContainerGap(53, Short.MAX_VALUE)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(26, 26, 26) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jLabel4) .addComponent(jLabel8)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtQunatidade, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(txtValorItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnAdicionar) .addComponent(txtCodProduto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(btnAbirVenda, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(txtPesquisa, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnBusca)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 117, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(jLabel7) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jLabel5) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtValorTotal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(79, 79, 79)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup() .addComponent(btnFinalizar, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(21, 21, 21)))) ); txtCodFuncionario.setEnabled(false); jLabel6.setText("Cod Func"); txtCodVenda.setEnabled(false); jLabel9.setText("Cod Venda"); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap(38, Short.MAX_VALUE) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addGroup(layout.createSequentialGroup() .addComponent(jLabel2) .addGap(144, 144, 144) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtCodVenda, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jLabel9)) .addGap(39, 39, 39) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addComponent(txtCodFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, 59, javax.swing.GroupLayout.PREFERRED_SIZE))) .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(34, 34, 34)) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addGap(24, 24, 24) .addComponent(jLabel9) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtCodVenda, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addContainerGap() .addComponent(jLabel6) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(txtCodFuncionario, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jLabel2) .addGap(20, 20, 20))) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addGap(76, 76, 76)) ); setSize(new java.awt.Dimension(846, 714)); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public frmVenda() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public vpemesanan1() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public CovidGUI(){\n initComponents();\n }" ]
[ "0.73197734", "0.72908777", "0.72908777", "0.72908777", "0.72870827", "0.7248368", "0.7213462", "0.7208004", "0.7195763", "0.7189973", "0.7184436", "0.7159332", "0.71478266", "0.709268", "0.7080727", "0.7057287", "0.6986775", "0.6977119", "0.69554067", "0.69548035", "0.6945748", "0.69436246", "0.6936225", "0.69309264", "0.6927764", "0.6925464", "0.69240505", "0.6911828", "0.69114214", "0.6893614", "0.68917346", "0.6891525", "0.6891501", "0.6889125", "0.68829834", "0.6882533", "0.68808794", "0.687905", "0.687687", "0.68740726", "0.68708014", "0.68595254", "0.68561274", "0.68560076", "0.6854643", "0.6854604", "0.6853724", "0.685311", "0.685311", "0.6844816", "0.6836794", "0.6835743", "0.68294543", "0.6828841", "0.682637", "0.68245006", "0.6823792", "0.68175477", "0.6817179", "0.6811031", "0.68096155", "0.6809008", "0.68087083", "0.68081945", "0.6801884", "0.6795609", "0.6793828", "0.67930275", "0.67915165", "0.6789997", "0.6788734", "0.6788487", "0.67816335", "0.67663425", "0.6765744", "0.67648494", "0.6757314", "0.6755897", "0.67526966", "0.6750367", "0.67429197", "0.67399955", "0.6736908", "0.6736084", "0.6734342", "0.6726562", "0.67264515", "0.67205596", "0.6716381", "0.67154187", "0.67150515", "0.6709329", "0.6708348", "0.67050624", "0.67021835", "0.6700595", "0.6699073", "0.6698866", "0.66942847", "0.6690904", "0.66897583" ]
0.0
-1