query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
TODO Autogenerated method stub
public User getUserById(String userId) { return userMapper.selectByPrimaryKey(Long.parseLong(userId)); }
{ "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 List<User> getAllUser() { return userMapper.getAllUser(); }
{ "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 User getUserByNameAndPw(String username, String password) { LOG.info("======>1 name: " + username + " ,password" + password); return userMapper.selectByUserAndPw(username, password); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
The Bonjour Service is not used
@Override public void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice sourceDevice) { Log.i(TAG, "BonjourServiceAvailable: \ninstanceName: " + instanceName + "\n " + sourceDevice.toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }", "@Override\r\n public void onServiceDisconnected(ComponentName className) {\r\n isObdServiceBound = false;\r\n }", "private void bindNcService() {\n Intent intent = new Intent(\"com.miui.notification.NOTIFICATION_CENTER\");\n intent.setPackage(\"com.miui.notification\");\n this.mHasBind = this.mContext.bindServiceAsUser(intent, this.mNcConn, 1, UserHandle.CURRENT);\n String str = TAG;\n Log.i(str, \"NcService bind: \" + this.mHasBind);\n this.mBindTimes = this.mBindTimes + 1;\n if (!this.mHasBind && this.mBindTimes <= 3) {\n this.mHandler.removeMessages(10002);\n this.mHandler.sendEmptyMessageDelayed(10002, (long) DEFAULT_INTERVAL);\n }\n }", "public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);", "public UnbindService() {\n super(\"UNBIND SERVICE\");\n }", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t\t\tmBoundService = ((LocalService.LocalBinder) service).getService();\r\n\r\n\t\t\t// Wenn während des Setups der Service noch nicht fertig geladen\r\n\t\t\t// ist, wird solange Warte-Overlay angezeigt\r\n\t\t\t// Wenn der Service fertig ist wird das Overlay ausgeblendet\r\n\r\n\t\t\t// if (OverlayActivity.isCreated) {\r\n\t\t\t// OverlayActivity.getInstance().dismiss();\r\n\t\t\t// }\r\n\t\t\tSetupSearchDevicesFragment fragment = (SetupSearchDevicesFragment) getFragmentById(\"SetupSearchDevicesFragment\");\r\n\t\t\tif (fragment.isVisible()) {\r\n\t\t\t\tfragment.initViewBluetooth();\r\n\t\t\t}\r\n\r\n\t\t\t// Tell the user about this for our demo.\r\n\t\t\tLog.i(TAG, \"Service connected with app...\");\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service connected.\", Toast.LENGTH_SHORT).show();\r\n\r\n\t\t\t// Verbinde mit gespeichertem Device (falls noch keine Verbindung\r\n\t\t\t// besteht)\r\n\t\t\tif (mSharedPrefs.getConnectivityType() == 1) { // BEI BT\r\n\r\n\t\t\t\tfinal ConnectionInterface connection = mBoundService.getConnection();\r\n\t\t\t\tif (connection != null) {\r\n\t\t\t\t\tif (!connection.isConnected()) {\r\n\r\n\t\t\t\t\t\t// OnConnectedListener\r\n\t\t\t\t\t\tconnection.setOnConnectedListener(new OnConnectedListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onConnectedListener(String deviceName) {\r\n\r\n\t\t\t\t\t\t\t\tconnection.registerDisconnectHandler();\r\n\r\n\t\t\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\t\t\t// HELLO Nachricht senden\r\n\t\t\t\t\t\t\t\t\tString msg = mContext.getString(R.string.BABYFON_MSG_CONNECTION_HELLO) + \";\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ mSharedPrefs.getHostAddress() + \";\" + mSharedPrefs.getPassword();\r\n\t\t\t\t\t\t\t\t\tconnection.sendMessage(msg);\r\n\r\n\t\t\t\t\t\t\t\t\tmSharedPrefs.setRemoteOnlineState(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\r\n\t\t\t\t\t\tif (mSharedPrefs.getDeviceMode() == 1) { // ELTERN\r\n\t\t\t\t\t\t\tif (mSharedPrefs.getRemoteAddress() != null) { // Gespeichertes Gerät\r\n\t\t\t\t\t\t\t\t// Verbinde\r\n\t\t\t\t\t\t\t\tmBoundService.connectTo(mSharedPrefs.getRemoteAddress());\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (mSharedPrefs.getDeviceMode() == 0) { // BABY\r\n\t\t\t\t\t\t\t// Warte auf Verbindung\r\n\t\t\t\t\t\t\tmBoundService.startServer();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n mBound = false;\n }", "private void enableBtmon() {\n System.out.println(\"Starting Btmon Service...\");\n try {\n btmonProcess = new ProcessBuilder(\"/usr/bin/btmon\").start();\n InputStreamReader inputStream = new InputStreamReader(btmonProcess.getInputStream());\n int size;\n char buffer[] = new char[1024];\n while ((size = inputStream.read(buffer, 0, 1024)) != -1) {\n // System.out.println(\" --- Read ----\");\n String data = String.valueOf(buffer, 0, size);\n processBeaconMessage(data);\n // Thread.sleep(1000);\n }\n } catch (IOException ex ) {\n ex.printStackTrace();\n } catch (Exception ex ) {\n ex.printStackTrace();\n } finally {\n if (btmonProcess != null)\n btmonProcess.destroy();\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n serviceBound = false; // Indicates that the service is no longer bound.\n }", "public void onServiceDisconnected(ComponentName className) {\n _boundService = null; \n Toast.makeText(TestServiceHolder.this, \"Service connected\", \n Toast.LENGTH_SHORT).show(); \n }", "void doBindService() {\n\t\tbindService(new Intent(this, eidService.class), mConnection, Context.BIND_AUTO_CREATE);\n//\t\tLog.i(\"Convert\", \"At doBind2.\");\n\n\t\tmIsBound = true;\n\t\n\t\tif (mService != null) {\n//\t\t\tLog.i(\"Convert\", \"At doBind3.\");\n\t\t\ttry {\n\t\t\t\t//Request status update\n\t\t\t\tMessage msg = Message.obtain(null, eidService.MSG_UPDATE_STATUS, 0, 0);\n\t\t\t\tmsg.replyTo = mMessenger;\n\t\t\t\tmService.send(msg);\n\t\t\t\tLog.i(\"Convert\", \"At doBind4.\");\n\t\t\t\t//Request full log from service.\n\t\t\t\tmsg = Message.obtain(null, eidService.MSG_UPDATE_LOG_FULL, 0, 0);\n\t\t\t\tmService.send(msg);\n\t\t\t} catch (RemoteException e) {}\n\t\t}\n//\t\tLog.i(\"Convert\", \"At doBind5.\");\n\t}", "public void listen()\n {\n service = new BService (this.classroom, \"tcp\");\n service.register();\n service.setListener(this);\n }", "@Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }", "void doBindService() {\n\n if (bindService(new Intent(MainActivity.this, PositionService.class),\n mConnection, Context.BIND_AUTO_CREATE)) {\n mBound = true;\n } else {\n Log.e(\"MY_APP_TAG\", \"Error: The requested service doesn't \" +\n \"exist, or this client isn't allowed access to it.\");\n }\n }", "public void startConnection(){\n startBTConnection(mBTDevice,MY_UUID_INSECURE);\n }", "@Override\n public void onServiceDisconnected(ComponentName className) {\n Log.d(TAG, className.toString() + \" service is unbound\");\n }", "void doBindService() {\r\n\r\n bindService(new Intent(MainActivity.this, CurrentLocationUtil.class),\r\n connection, // ServiceConnection object\r\n Context.BIND_AUTO_CREATE); // Create service if not\r\n\r\n isBound = true;\r\n\r\n }", "protected boolean mStartServerService() {//170926 Start listening for a client to relay to (170926\n if (oBTServer == null) {\n oBTServer = new cRelay2Client();//170922\n }\n if (oBTServer.bRelayState ==cKonst.eSerial.kListening) {\n mMsgLog(9,\"Already listening\");\n return false;\n }\n oBTServer.mOpenService(mContext, oBTadapter);//170922\n return true;\n }", "private void setupBTService(){\n btService = new BluetoothService(this, mHandler);\n\n // Initialize the buffer for outgoing messages\n outStringBuffer = new StringBuffer(\"\");\n\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n messengerService = null;\n messengerServiceBound = false;\n }", "@Override\n\t\tpublic void emergencyServices() {\n\t\t\tSystem.out.println(\"FH--emergency services\");\t\n\t\t\t\n\t\t}", "public boolean ignoreService() {\n if (\"undef\".equalsIgnoreCase(type) || \"undef,1.0\".equalsIgnoreCase(type))\n return true;\n return false;\n }", "@Override\n public void run() {\n UpnpService upnpService = new UpnpServiceImpl(listener);\n\n // Send a search message to all devices and services, they should respond soon\n upnpService.getControlPoint().search(new STAllHeader());\n\n // Let's wait 10 seconds for them to respond\n// System.out.println(\"Waiting 10 seconds before shutting down...\");\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Release all resources and advertise BYEBYE to other UPnP devices\n// System.out.println(\"Stopping Cling...\");\n upnpService.shutdown();\n\n\n }", "private boolean takeBertyService() {\n Log.v(TAG, String.format(\"takeBertyService: called for device %s\", getMACAddress()));\n if (getBertyService() != null) {\n Log.d(TAG, String.format(\"Berty service already found for device %s\", getMACAddress()));\n return true;\n }\n\n setBertyService(getBluetoothGatt().getService(GattServer.SERVICE_UUID));\n\n if (getBertyService() == null) {\n Log.i(TAG, String.format(\"Berty service not found for device %s\", getMACAddress()));\n return false;\n }\n\n Log.d(TAG, String.format(\"Berty service found for device %s\", getMACAddress()));\n return true;\n }", "@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}", "@Override\n public void onServiceConnected(ComponentName componentName, IBinder service) {\n mNanoBLEService = ((NanoBLEService.LocalBinder) service).getService();\n\n //initialize bluetooth, if BLE is not available, then finish\n if (!mNanoBLEService.initialize()) {\n finish();\n }\n\n //Start scanning for devices that match DEVICE_NAME\n final BluetoothManager bluetoothManager =\n (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE);\n mBluetoothAdapter = bluetoothManager.getAdapter();\n mBluetoothLeScanner = mBluetoothAdapter.getBluetoothLeScanner();\n if(mBluetoothLeScanner == null){\n finish();\n Toast.makeText(NewScanActivity.this, \"Please ensure Bluetooth is enabled and try again\", Toast.LENGTH_SHORT).show();\n }\n mHandler = new Handler();\n if (SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null) != null) {\n preferredDevice = SettingsManager.getStringPref(mContext, SettingsManager.SharedPreferencesKeys.preferredDevice, null);\n scanPreferredLeDevice(true);\n } else {\n scanLeDevice(true);\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n mService = null;\n mKillBtn.setEnabled(false);\n mCallbackText.setText(\"Disconnected\");\n Log.i(TAG, \"Disconnected form remote service\");\n }", "public void onServiceDisconnected(ComponentName arg0) {\n\t\t\tmServiceBind = false;\n\t\t}", "@Override\r\n\t\t\tpublic void onServiceDisconnected(ComponentName name)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"disconnect\");\r\n\t\t\t}", "void doAccelBindService() {\n\t\tbindService(accelIntentDelay, accelConnection, Context.BIND_AUTO_CREATE);\n\t\taccelIsBound = true;\n\t}", "public void doBindService() {\n\r\n\t\tIntent serviceIntent = new Intent(MainActivity.this, LocalService.class);\r\n\r\n\t\tstartService(serviceIntent);\r\n\t\t// bindService(serviceIntent, mServiceConnection, 0);\r\n\t\tbindService(serviceIntent, mServiceConnection, BIND_AUTO_CREATE);\r\n\r\n\t\tmIsBound = true;\r\n\t}", "@Override\n public void serviceLost(DNSSDService browser, int flags, int ifIndex, String serviceName, String regType, String domain) {\n }", "@Override\n public int systemNotResponding(String msg) throws RemoteException {\n Log.i(TAG, String.format(\"System is not responding: %s\", msg));\n return 1;\n }", "private void initService() {\n \tlog_d( \"initService()\" );\n\t\t// no action if debug\n if ( BT_DEBUG_SERVICE ) return;\n // Initialize the BluetoothChatService to perform bluetooth connections\n if ( mBluetoothService == null ) {\n log_d( \"new BluetoothService\" );\n \t\tmBluetoothService = new BluetoothService( mContext );\n\t }\n\t\tif ( mBluetoothService != null ) {\n log_d( \"set Handler\" );\n \t\tmBluetoothService.setHandler( sendHandler );\n\t }\t\t\n }", "private void msgNoServerConnection() {\r\n\thandler.sendEmptyMessage(1); // enviar error al cargar\r\n }", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\n\t\t}", "@Override\r\n public void handleMessage(Message msg) {\n if (msg.what == Configuration.MSG_DISCONNECT_REMOTE_SERVER) {\r\n serviceStatus = false;\r\n }\r\n if (msg.what == Configuration.MSG_CONNECT_REMOTE_SERVER) {\r\n serviceStatus = true;\r\n }\r\n if (adbMainHandler != null) {\r\n // adbMainHandler.obtainMessage(msg.what,\r\n // msg.obj).sendToTarget();\r\n adbMainHandler.sendMessage(Message.obtain(msg));\r\n }\r\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n mSecondService = ISecondary.Stub.asInterface(service);\n mKillBtn.setEnabled(true);\n }", "public SayHelloServiceImpl() \n { \n try \n {\n this.hostname = InetAddress.getLocalHost().getHostName();\n } \n catch (UnknownHostException e) \n {\n this.hostname = \"Localhost\";\n }\n }", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n System.out.println(\"绑定成功\");\n }", "@Override\n public boolean onUnbind(Intent intent) {\n Log.i(TAG, \"Last client unbound from service\");\n // Called when the last client (MainActivity in case of this sample) unbinds from this\n // service. If this method is called due to a configuration change in MainActivity, we\n // do nothing. Otherwise, we make this service a foreground service.\n\n if (!mChangingConfiguration && mPrefs.getBoolean(\"switchTrack\", false)) {\n Log.i(TAG, \"Starting foreground service\");\n startForeground(NOTIFICATION_ID, getNotification());\n }\n return true; // Ensures onRebind() is called when a client re-binds.\n }", "@Override\n public void checkBluetoothInteface() {\n if (!isConnected) {\n checkForBluetooth();\n }\n }", "@Override\n\t\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t\t\t\n\t\t\t}", "private void bindService() {\n synchronized (mLock) {\n if (!mEnabled || mConnection != null || mRemoteService != null) {\n if (!mEnabled) {\n Slog.i(TAG, \"Not binding to service, service disabled\");\n } else if (mRemoteService != null) {\n Slog.i(TAG, \"Not binding to service, service already connected\");\n } else {\n Slog.i(TAG, \"Not binding to service, service already connecting\");\n }\n return;\n }\n ComponentName component = getServiceComponentNameLocked();\n if (component == null) {\n Slog.wtf(TAG, \"Explicit health check service not found\");\n return;\n }\n\n Intent intent = new Intent();\n intent.setComponent(component);\n mConnection = new ServiceConnection() {\n @Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n Slog.i(TAG, \"Explicit health check service is connected \" + name);\n initState(service);\n }\n\n @Override\n @MainThread\n public void onServiceDisconnected(ComponentName name) {\n // Service crashed or process was killed, #onServiceConnected will be called.\n // Don't need to re-bind.\n Slog.i(TAG, \"Explicit health check service is disconnected \" + name);\n synchronized (mLock) {\n mRemoteService = null;\n }\n }\n\n @Override\n public void onBindingDied(ComponentName name) {\n // Application hosting service probably got updated\n // Need to re-bind.\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }\n\n @Override\n public void onNullBinding(ComponentName name) {\n // Should never happen. Service returned null from #onBind.\n Slog.wtf(TAG, \"Explicit health check service binding is null?? \" + name);\n }\n };\n\n mContext.bindServiceAsUser(intent, mConnection,\n Context.BIND_AUTO_CREATE, UserHandle.of(UserHandle.USER_SYSTEM));\n Slog.i(TAG, \"Explicit health check service is bound\");\n }\n }", "@Override\n\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\tib = service;\n\t\t\tSystem.out.println(\"DEBUG>>>ServiceConnection.\");\n\t\t}", "@Override\r\n\tpublic void onServerDown() {\n\t\tString res=name + \" recived a notification\";\r\n\t\tLOGGER.info(res);\r\n\t\t\r\n\t}", "public void onServiceDisconnected(ComponentName className) {\n mBoundService = null;\n Log.i(TAG,\"Service DISconnected\");\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tLog.i(LOG_TAG, \"onService connected......method\");\n\t\t\tmBoundService = null;\n\t\t\t// Toast.makeText(ChatActivity.this, \"Disconnected to service\",\n\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t}", "private boolean checkServiceIsRunning(){\r\n if (CurrentLocationUtil.isRunning()){\r\n doBindService();\r\n return true;\r\n }else{\r\n return false;\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n//\t\t\t\tdevAddr = devices.get(position).split(\"\\\\|\")[1];\n//\t\t\t\tbtAdapt.cancelDiscovery();\n//\t\t\t\t\n//\t\t\t\tbtSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n//\t\t\t\tbtSocket.connect();Log.e(tag, \"connected\");\n\t\t\t\tInetAddress severInetAddr=InetAddress.getByName(\"120.105.129.108\");\n\t\t\t\tWifisocket = new Socket(severInetAddr, 8101);\n\t\t\t\t\n\t\t\t\tsynchronized (this) {\n//\t\t\t\t\tbtIn = btSocket.getInputStream();\n//\t\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\t\tbtIn = Wifisocket.getInputStream();\n\t\t\t\t\tbtOut = Wifisocket.getOutputStream();\n\t\t\t\t\tLog.e(tag, \"connected\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tThread.sleep(100);\n\t\t\t\tsetUpAsForeground(\"Wifi已連線\");\n\t\t\t} catch( IOException | InterruptedException e ){\n\t\t\t\te.printStackTrace();\n\t\t\t\ttry{\n//\t\t\t\t\tbtSocket.close();\n//\t\t\t\t\tWifisocket.close();\n\t\t\t\t\tThread.sleep(1500);\n\t\t\t\t\tsetUpAsForeground(\"Wifi未連線\");\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t} catch(InterruptedException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\tLog.i(\"exiconne\", \"bluetoohservice bye!;\");\n\t\t\t\t}\n//\t\t\t\tbtSocket = null;\n\t\t\t\tWifisocket = null;\n\t\t\t\tmBTState = BTState.stopped;\n\t\t\t\tBluetoothConnect.mBTstate = BTstate.opened;\n\t\t\t}\n\n\t\t}", "@Override\n\tpublic Service duplexstreamDeliverServiceInit() {\n\t\treturn null;\n\t}", "public void InitService() {\n\t\ttry {\r\n\t\t\tgetCommManager().register(this); \r\n\t\t} catch (CommunicationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service) {\n\t\t\t}", "private void sendNoSuchService(HttpRequest request, HttpResponse response,\n\t\t\tString service) {\n\t\tresponse.clearContent();\n\t\tresponse.setStatus( HttpResponse.STATUS_SERVICE_UNAVAILABLE );\n\t\tresponse.setContentType( \"text/plain\" );\n\t\tresponse.println ( \"The service you requested is not known to this server!\" );\n\t\t\n\t\tconnector.logError (\"Service not found: \" +service);\n\t}", "private void m22002a() {\n if (!this.f23836h) {\n this.f23835g = mo24758a(this.f23833e);\n try {\n this.f23833e.registerReceiver(this.f23837i, new IntentFilter(\"android.net.conn.CONNECTIVITY_CHANGE\"));\n this.f23836h = true;\n } catch (SecurityException e) {\n String str = \"ConnectivityMonitor\";\n if (Log.isLoggable(str, 5)) {\n Log.w(str, \"Failed to register\", e);\n }\n }\n }\n }", "@Override\n public void onBindingDied(ComponentName name) {\n Slog.i(TAG, \"Explicit health check service binding is dead. Rebind: \" + name);\n unbindService();\n bindService();\n }", "public interface OnServiceConnectionListener {\n}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t\tYC_SERVICE_BINDER = null;\n\n\t\t\tbindService();\n\n\t\t}", "public void notifyServerListening() {\r\n nui.notifyHostListening();\r\n }", "public void onServiceDisconnected(ComponentName className) {\n\t\t\tmBoundService = null;\r\n\t\t\t// Toast.makeText(MainActivity.this, \"Service disconnected.\", Toast.LENGTH_SHORT).show();\r\n\t\t}", "@Override\n public void onServiceDisconnected(ComponentName name) {\n \n }", "public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\t\t}", "public BroadcastService(String name) {\n super(name);\n }", "public void service() {\n\t}", "public void bluetooth_enable_discoverability()\r\n {\n\t\t\r\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\r\n\t\tdiscoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\r\n\t\tLoaderActivity.m_Activity.startActivity(discoverableIntent);\r\n\t\tserver_connect_thread = new Server_Connect_Thread();\r\n\t\tserver_connect_thread.start();\r\n\t\tmessages.clear();\r\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n\n }", "@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}", "public void onServiceDisconnected(ComponentName className) {\n\t\t\t\tservice = null;\n\t\t\t\tLog.d(\"OpenXC binding\", \"openXC service disconnected\");\n\t\t\t}", "void doAccelUnbindService() {\n\t\tif (accelIsBound) {\n\t\t\tunbindService(accelConnection);\n\t\t\taccelIsBound = false;\n\t\t}\n\t}", "@Override\r\n public void onCreate() {\n intent = new Intent(BROADCAST_ACTION);\r\n startBTService();\r\n// try{\r\n// mConnectedThread.write(\"2\".getBytes());\r\n// }catch(Exception e){\r\n//\r\n// }\r\n }", "@Override\n\tpublic Service upstreamDeliverServiceInit() {\n\t\treturn null;\n\t}", "public void startWithoutChecks() {\n service.enableMonitoring();\n for (ServiceNotifier serviceNotifier : serviceNotifiers) {\n serviceNotifier.onStart();\n }\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "@Override\n public void onServiceDisconnected(ComponentName name) {\n }", "private void assertService() {\n \t\n if(mLedService == null) {\n throw new IllegalStateException(\"LedClient not connected\");\n }\n }", "@Override\n public void onServiceConnected(ComponentName classname, IBinder obj) {\n Log.i(this.getClass().getName(), \"ServiceConnection\");\n mService = IAisinoService.Stub.asInterface(obj);\n }", "@Override\n public IBinder onBind(Intent intent) {\n\n AppConstants.RebootHF_reader = false;\n if (mBluetoothLeService != null) {\n final boolean result = mBluetoothLeService.connect(mDeviceAddress);\n Log.d(TAG, \"Connect request result=\" + result);\n }\n\n\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "private void processStart() {\n // broadcast HELLO to every neighbors\n for(int i = 0; i < this.nextAvailPort; i++) {\n if(this.ports[i].getRemoteRouterDesc() == null) {\n continue;\n }\n\n SOSPFPacket helloPak = SOSPFPacket.createHelloPak(this.routerDesc, this.ports[i].getRemoteRouterDesc());\n this.ports[i].send(helloPak);\n\n this.ports[i].initializeHeartbeat();\n }\n }", "@Test\n\tpublic void testActiveLoadBalancer_notifyNameService() throws IOException {\n\t\tSet<Server> servers = TestUtils.getServerSet(1);\n\t\tAbstractLoadBalancer activeLoadBalancer = new ActiveLoadBalancer(new LoadBalancerConnectionHandler(8001, TestUtils.getRemoteLoadBalancerSet(1)), TestUtils.getRemoteLoadBalancerSet(1),\n\t\t\t\tservers, new InetSocketAddress(\"localhost\", 8004), 1);\n\t\tServerSocketChannel nameServiceSocketChannel = getMockNameServiceSocketChannel();\n\t\tTestUtils.mockServerSockets(servers);\n\t\tThread activeLoadBalancerThread = new Thread(activeLoadBalancer);\n\t\tactiveLoadBalancerThread.start();\n\t\t\n\t\tSelector acceptSelector = Selector.open();\n\t\tnameServiceSocketChannel.configureBlocking(false);\n\t\tnameServiceSocketChannel.register(acceptSelector, SelectionKey.OP_ACCEPT);\n\t\tif (acceptSelector.select(1000) == 0) {\n\t\t\tthrow new SocketTimeoutException();\n\t\t}\n\t\tSocketChannel acceptedNameServiceSocketChannel = nameServiceSocketChannel.accept();\n\t\tByteBuffer buffer = ByteBuffer.allocate(5);\n\t\t\n\t\tSelector readSelector = Selector.open();\n\t\tacceptedNameServiceSocketChannel.configureBlocking(false);\n\t\tacceptedNameServiceSocketChannel.register(readSelector, SelectionKey.OP_READ);\n\t\tif (readSelector.select(1000) == 0) {\n\t\t\tthrow new SocketTimeoutException();\n\t\t}\n\t\tint bytesRead = acceptedNameServiceSocketChannel.read(buffer);\n\t\tassertEquals(5, bytesRead);\n\t\t\n\t\tbuffer.flip();\n\t\tMessageType messageType = MessageType.values()[buffer.get()];\n\t\tassertEquals(MessageType.HOST_ADDR_NOTIFY, messageType);\n\t\tint port = buffer.getInt();\n\t\tassertEquals(8001, port);\n\t\tactiveLoadBalancerThread.interrupt();\n\t\tacceptSelector.close();\n\t\treadSelector.close();\n\t\tnameServiceSocketChannel.close();\n\t}", "public boolean getIsServiceBound () ;", "public void onServiceConnected(ComponentName className, IBinder service) {\n \tmServiceMessenger = new Messenger(service);\r\n // We want to monitor the service for as long as we are\r\n // connected to it.\r\n try {\r\n Message message = Message.obtain(null, WATCHiTServiceInterface.REGISTER_CLIENT);\r\n message.replyTo = mMessenger;\r\n mServiceMessenger.send(message);\r\n } catch (RemoteException e) {\r\n // In this case the service has crashed before we could even\r\n // do anything with it; we can count on soon being\r\n // disconnected (and then reconnected if it can be restarted)\r\n // so there is no need to do anything here.\r\n }\r\n // Toast.makeText(MainActivity.this, R.string.remote_service_bound, Toast.LENGTH_SHORT).show();\r\n }", "@Override\n\t\t\t\tpublic void onServiceDisconnected(ComponentName p1)\n\t\t\t\t{\n\t\t\t\t}", "private Bluetooth() {}", "private void onUnavailable() {\n // TODO: broadcast\n }", "private void unbindService() {\n synchronized (mLock) {\n if (mRemoteService != null) {\n mContext.unbindService(mConnection);\n mRemoteService = null;\n mConnection = null;\n }\n Slog.i(TAG, \"Explicit health check service is unbound\");\n }\n }", "@Override\n\tprotected boolean isRegisterServerConnect()\n\t{\n\t\treturn false;\n\t}", "@Override\n public void onServiceConnected(ComponentName name, IBinder service) {\n\n messengerService = new Messenger(service);\n messengerServiceBound = true;\n }", "@Override\n\t\tpublic void onServiceDisconnected(ComponentName name) {\n\n\t\t}", "public boolean addService(BluetoothGattService service) {\n/* 60 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void handleMessage(Message object) {\n int n = ((Message)object).what;\n int n2 = ((Message)object).arg2;\n if (n == 69632) {\n NsdManager.this.mAsyncChannel.sendMessage(69633);\n return;\n }\n if (n == 69634) {\n NsdManager.this.mConnected.countDown();\n return;\n }\n if (n == 69636) {\n Log.e(TAG, \"Channel lost\");\n return;\n }\n Object object2 = NsdManager.this.mMapLock;\n // MONITORENTER : object2\n Object object3 = NsdManager.this.mListenerMap.get(n2);\n NsdServiceInfo nsdServiceInfo = (NsdServiceInfo)NsdManager.this.mServiceMap.get(n2);\n // MONITOREXIT : object2\n if (object3 == null) {\n object2 = TAG;\n object3 = new StringBuilder();\n ((StringBuilder)object3).append(\"Stale key \");\n ((StringBuilder)object3).append(((Message)object).arg2);\n Log.d((String)object2, ((StringBuilder)object3).toString());\n return;\n }\n switch (n) {\n default: {\n object2 = TAG;\n object3 = new StringBuilder();\n ((StringBuilder)object3).append(\"Ignored \");\n ((StringBuilder)object3).append(object);\n Log.d((String)object2, ((StringBuilder)object3).toString());\n return;\n }\n case 393236: {\n NsdManager.this.removeListener(n2);\n ((ResolveListener)object3).onServiceResolved((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393235: {\n NsdManager.this.removeListener(n2);\n ((ResolveListener)object3).onResolveFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393230: {\n NsdManager.this.removeListener(((Message)object).arg2);\n ((RegistrationListener)object3).onServiceUnregistered(nsdServiceInfo);\n return;\n }\n case 393229: {\n NsdManager.this.removeListener(n2);\n ((RegistrationListener)object3).onUnregistrationFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393227: {\n ((RegistrationListener)object3).onServiceRegistered((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393226: {\n NsdManager.this.removeListener(n2);\n ((RegistrationListener)object3).onRegistrationFailed(nsdServiceInfo, ((Message)object).arg1);\n return;\n }\n case 393224: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onDiscoveryStopped(NsdManager.getNsdServiceInfoType(nsdServiceInfo));\n return;\n }\n case 393223: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onStopDiscoveryFailed(NsdManager.getNsdServiceInfoType(nsdServiceInfo), ((Message)object).arg1);\n return;\n }\n case 393221: {\n ((DiscoveryListener)object3).onServiceLost((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393220: {\n ((DiscoveryListener)object3).onServiceFound((NsdServiceInfo)((Message)object).obj);\n return;\n }\n case 393219: {\n NsdManager.this.removeListener(n2);\n ((DiscoveryListener)object3).onStartDiscoveryFailed(NsdManager.getNsdServiceInfoType(nsdServiceInfo), ((Message)object).arg1);\n return;\n }\n case 393218: \n }\n object = NsdManager.getNsdServiceInfoType((NsdServiceInfo)((Message)object).obj);\n ((DiscoveryListener)object3).onDiscoveryStarted((String)object);\n }", "@Override\r\n\t\t\tpublic void onServiceConnected(ComponentName name, IBinder service)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"connect\");\r\n\t\t\t\tService_DealCloseReport mService = ((myBinder)service).getService();\r\n\t\t\t}", "public void onServiceConnected(ComponentName className, IBinder service) {\n\t mBoundAutopilotService = new Messenger(service);\n\t //mCallbackText.setText(\"Attached.\");\n\n\t // We want to monitor the service for as long as we are\n\t // connected to it.\n\t try {\n\t Message msg = Message.obtain(null, autopilotService.MSG_REGISTER_CLIENT);\n\t msg.replyTo = mMessenger;\n\t mBoundAutopilotService.send(msg);\n\n\t // Give it some value as an example.\n\t //msg = Message.obtain(null, autopilotService.MSG_ECHO, this.hashCode(), 0);\n\t //mBoundAutopilotService.send(msg);\n\t msg = Message.obtain(null, autopilotService.MSG_IS_SERVICE_RUNNING, 0, 0);\n\t mBoundAutopilotService.send(msg);\n\t Log.i(\"anemoi\", \"Here 0\");\n\t } catch (RemoteException e) {\n\t // In this case the service has crashed before we could even\n\t // do anything with it; we can count on soon being\n\t // disconnected (and then reconnected if it can be restarted)\n\t // so there is no need to do anything here.\n\t }\n\t Log.i(\"anemoi\", \"Buuu\");\n\t }", "@Override\n\tpublic Service duplexstreamReserveDeliverServiceInit() {\n\t\treturn null;\n\t}", "public void start(){\r\n\t\tLog.out(\"Start Service...listening on \" + port, 5);\r\n\t\ttry{\r\n\t\t\t//set up\r\n\t\t\tssocket = new ServerSocket(port);\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"Can't open the port\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttry{\r\n\t\t\twhile(isRun){\r\n\t\t\t\t//accept socket request,but only one.\r\n\t\t\t\tSocket socket = ssocket.accept();\r\n\t\t\t\tLog.out(\"Got a socket from \"+socket.getLocalAddress(), 5);\r\n\t\t\t\t//if no client now\r\n\t\t\t\tif(clientSocket == null){\r\n\t\t\t\t\tLog.out(\"Handle as client.\", 4);\r\n\t\t\t\t\tclientSocket = socket;\r\n\t\t\t\t\tnew Thread(new ServiceReciever(this, socket)).start();\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tLog.out(\"The server is already in use,refuse the request.\",2);\r\n\t\t\t\t\tnew DataOutputStream(socket.getOutputStream()).writeInt(SOCKET_REFUSE);\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tLog.out(\"There are something wrong when get the socket.\", 5);\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n public void onServiceDisconnected(ComponentName componentName) {\n //Log.e(\"SERVICE_DISCONNECTED\", \"Disconnecting service\");\n boundNewsService = null;\n }" ]
[ "0.6402497", "0.6372299", "0.62837076", "0.616974", "0.6165658", "0.61497283", "0.613877", "0.60837644", "0.60301626", "0.6024727", "0.60233253", "0.60147613", "0.60130286", "0.5957953", "0.5925744", "0.58966273", "0.58954185", "0.58767104", "0.58534193", "0.58512866", "0.5830041", "0.58280563", "0.58090264", "0.5797962", "0.57882863", "0.5779466", "0.5772326", "0.57674235", "0.57352257", "0.5734604", "0.57341903", "0.5730777", "0.5722946", "0.5710249", "0.57038647", "0.5687193", "0.5687193", "0.56817263", "0.5674018", "0.5669182", "0.56668407", "0.56560725", "0.565025", "0.5645896", "0.56391627", "0.5638518", "0.5609992", "0.56064266", "0.56057996", "0.56032646", "0.55996776", "0.5599506", "0.5593009", "0.55927855", "0.5587731", "0.5587176", "0.558255", "0.55820674", "0.55791104", "0.55791104", "0.55758566", "0.5572293", "0.5571645", "0.557109", "0.5558167", "0.55568206", "0.55568206", "0.55489933", "0.55489117", "0.5547015", "0.55457336", "0.5541459", "0.55400795", "0.55385375", "0.5538194", "0.55375546", "0.5536925", "0.5533554", "0.5533554", "0.55244344", "0.5522824", "0.5521572", "0.55104053", "0.55035603", "0.54998505", "0.54986745", "0.5498084", "0.549436", "0.54911643", "0.5488166", "0.548717", "0.5486573", "0.54808766", "0.54805344", "0.547537", "0.54738396", "0.5473348", "0.5469199", "0.54661274", "0.54658407" ]
0.58973974
15
Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY
@Override public void onFailure(int code) { Log.e(TAG, "addServiceRequest Failure " + code); mService.stopSelf(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onP2pNotEnabled();", "public void validateRpd8s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd2s8()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n public void onFailure(int i) {\n System.out.println(\"pca connect: Failed to connect = \" + i);\n }", "@Override\n public void onFailure(int code) {\n Log.e(TAG, \"discoverServices Failure \" + code);\n\n if (code == WifiP2pManager.BUSY && mDeviceRegistering != null) {\n discoverServices();\n } else {\n mService.stopSelf();\n }\n }", "public void validateRpd2s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd2s7()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean isStoredProcDB2Error(){\r\n\treturn getERR_FLAG().equals(STORED_PROC_ERROR_FLAG) && getRETURN_CODE().equals(DB2_ERROR_CODE);\r\n}", "@Override\n protected void onFailureComponentConnectionRequest(PlatformComponentProfile remoteParticipant) {\n System.out.println(\"************ Crypto Addresses -> FAILURE CONNECTION.\");\n checkFailedDeliveryTime(remoteParticipant.getIdentityPublicKey());\n }", "public void validateRpd7s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void c2pStart();", "public void validateRpd9s2()\n {\n // This guideline cannot be automatically tested.\n }", "public ConfigurationServerFailureException(String message) {\n\t\tsuper(PlatformErrorMessages.RPR_CMB_CONFIGURATION_SERVER_FAILURE_EXCEPTION.getCode(), message);\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-24 16:07:21.755 -0400\", hash_original_method = \"6CE719C205449F0EA4502B7666A015C0\", hash_generated_method = \"598EFFAE1DD0E9452464135FF7EE1426\")\n \npublic static String p2pConnect(WifiP2pConfig config, boolean joinExistingGroup) {\n if (config == null) return null;\n List<String> args = new ArrayList<String>();\n WpsInfo wps = config.wps;\n args.add(config.deviceAddress);\n\n switch (wps.setup) {\n case WpsInfo.PBC:\n args.add(\"pbc\");\n break;\n case WpsInfo.DISPLAY:\n //TODO: pass the pin back for display\n args.add(\"pin\");\n args.add(\"display\");\n break;\n case WpsInfo.KEYPAD:\n args.add(wps.pin);\n args.add(\"keypad\");\n break;\n case WpsInfo.LABEL:\n args.add(wps.pin);\n args.add(\"label\");\n default:\n break;\n }\n\n //TODO: Add persist behavior once the supplicant interaction is fixed for both\n // group and client scenarios\n /* Persist unless there is an explicit request to not do so*/\n //if (config.persist != WifiP2pConfig.Persist.NO) args.add(\"persistent\");\n\n if (joinExistingGroup) args.add(\"join\");\n\n int groupOwnerIntent = config.groupOwnerIntent;\n if (groupOwnerIntent < 0 || groupOwnerIntent > 15) {\n groupOwnerIntent = 3; //default value\n }\n args.add(\"go_intent=\" + groupOwnerIntent);\n\n String command = \"P2P_CONNECT \";\n for (String s : args) command += s + \" \";\n\n return doStringCommand(command);\n }", "public void validateRpd22s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n public void onMachineBroken()\n {\n \n }", "private void handlePasv() {\n // Using fixed IP for connections on the same machine\n // For usage on separate hosts, we'd need to get the local IP address from\n // somewhere\n // Java sockets did not offer a good method for this\n String myIp = \"127.0.0.1\";\n String myIpSplit[] = myIp.split(\"\\\\.\");\n\n int p1 = dataPort / 256;\n int p2 = dataPort % 256;\n\n sendMsgToClient(\"227 Entering Passive Mode (\" + myIpSplit[0] + \",\" + myIpSplit[1] + \",\" + myIpSplit[2] + \",\"\n + myIpSplit[3] + \",\" + p1 + \",\" + p2 + \")\");\n\n openDataConnectionPassive(dataPort);\n\n }", "public void validateRpd10s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(40, \"it was not registered as output parameter.\");\n String string0 = \"--D\";\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"--D\");\n FBProcedureParam fBProcedureParam2 = new FBProcedureParam(40, \"it was not registered as output parameter.\");\n fBProcedureParam0.clone();\n fBProcedureParam2.setType(31);\n fBProcedureParam1.setIndex((-587));\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addInputParam(fBProcedureParam2);\n fBProcedureCall0.getOutputParam((-1));\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n int int0 = (-201774121);\n try { \n fBProcedureCall1.registerOutParam(40, (-201774121));\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\n\tpublic void processPacketDecodeError() {\n\t\t\n\t}", "public void testLoginWithWrongPUK() {\r\n short i;\r\n byte[] modifiedPuk = new byte[pukCode.length];\r\n for (i = 0; i < pukCode.length; i++) {\r\n modifiedPuk[i] = (byte) (pukCode[i] ^ 0xFF);\r\n }\r\n\r\n try {\r\n tokenHandler.loginPUK(modifiedPuk);\r\n fail(\"Logging in with wrong PUK did not cause an exception\");\r\n } catch (TokenException e) {\r\n assertEquals(ReturnCodes.SW_PUK_VALIDATION_FAILED, e.getSW());\r\n }\r\n }", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "public CustomPdp() throws Exception {\r\n\r\n }", "public void failure(ActionInvocation actionInvocation, UpnpResponse upnpResponse, String s) {\n/* 152 */ UPNPService.logger.warning(\"unable to map port for \" + port.toString());\n/* 153 */ port.addException(port.toString(), new Exception(s));\n/* */ }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testFIT2P() {\n CuteNetlibCase.doTest(\"FIT2P.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeOut = DEFAULT_TEST_TIMEOUT, enabled=true)\n public void testFailedMachineDetails() throws Exception {\n deployPu();\n machineFailover(getAgent(pu));\n assertUndeployAndWait(pu);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.equals(fBProcedureCall0);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.clone();\n fBProcedureCall0.clone();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.clone();\n try { \n fBProcedureCall1.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\r\n\tpublic void onProcessFailure(ProcessFailureInfo processFailureInfo) {\n\t\t\r\n\t}", "@Override\n public void msrpTransferAborted() {\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n\n Log.d(TAG, \"onError: ======================\");\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n }", "@Test(expected = Exception.class)\n public void testDescUnSuportedContext() throws Throwable\n {\n testDescDeployment(\"unsupported\");\n }", "@Override\n public int systemNotResponding(String msg) throws RemoteException {\n Log.i(TAG, String.format(\"System is not responding: %s\", msg));\n return 1;\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n String string0 = \"it was not registered as output parameter.\";\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1107, \"it was not registered as output parameter.\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureParam0.setType(1107);\n fBProcedureParam0.setType(1107);\n fBProcedureParam0.setIndex(1107);\n fBProcedureParam0.setIndex(1107);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getOutputParam(2);\n fBProcedureCall0.addInputParam(fBProcedureParam1);\n fBProcedureCall0.getOutputParam(1107);\n try { \n fBProcedureCall0.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void testParsePortNumber_InsufficientParameters() throws UnknownHostException {\n try {\n PortParser.parsePortNumber(PARAMETERS_INSUFFICIENT);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2)\n {\n arg2.printStackTrace();\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2)\n {\n arg2.printStackTrace();\n }", "public void c2pAddModuleOk(IPModule module);", "public void validateRpd6s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(655, \"Ko>Ka3#t4!YRM*p\");\n fBProcedureCall0.addParam(3, \"Cannot set parameter, since it is constant.\");\n fBProcedureParam0.setIndex((-1663));\n fBProcedureParam0.setIndex(2168);\n fBProcedureParam0.setType(656);\n fBProcedureCall0.registerOutParam(2168, (-1663));\n FBProcedureParam fBProcedureParam1 = new FBProcedureParam();\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.registerOutParam(655, 18);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "private List<Action> peersV2NotSupported() {\n return Collections.singletonList(\n new MessageResponseAction(new Error(INVALID, \"Table system.peers_v2 does not exist\")));\n }", "void notSupported(String errorcode);", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureParam0.setType(655);\n fBProcedureParam0.setIndex(655);\n fBProcedureParam0.setType((-25));\n fBProcedureParam0.setIndex(655);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.registerOutParam(655, 4);\n int int0 = (-3720);\n try { \n fBProcedureCall0.registerOutParam(4, (-3720));\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, \"sh\");\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"sh\");\n fBProcedureParam0.setType(3674);\n fBProcedureParam0.setIndex(1);\n fBProcedureParam0.setType((-587));\n fBProcedureParam1.setIndex(2);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam(1);\n // Undeclared exception!\n fBProcedureCall0.registerOutParam(3674, (-1587));\n }", "@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}", "private void handleActionScanLanForPs4(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Test\n public void destiny2InsertSocketPlugTest() {\n InlineResponse20045 response = api.destiny2InsertSocketPlug();\n\n // TODO: test validations\n }", "public void validateRpd22s8()\n {\n // This guideline cannot be automatically tested.\n }", "private void handleActionConnectToPs4(String param1, String param2) {\n // TODO: Handle action Baz\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Test\n public void testSuccessfulSwPnoScan() throws Exception {\n startServiceAndLoadDriver();\n Handler handler = mock(Handler.class);\n BidirectionalAsyncChannel controlChannel = connectChannel(handler);\n InOrder order = inOrder(handler, mWifiScannerImpl);\n int requestId = 12;\n\n ScanResults scanResults = createScanResultsForPno();\n Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings =\n createScanSettingsForSwPno();\n Pair<WifiScanner.PnoSettings, WifiNative.PnoSettings> pnoSettings =\n createPnoSettings(scanResults);\n\n sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first);\n expectSwPnoScan(order, scanSettings.second, scanResults);\n verifyPnoNetworkFoundReceived(order, handler, requestId, scanResults.getRawScanResults());\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n int int0 = (-31);\n fBProcedureCall0.mapOutParamIndexToPosition(3828);\n fBProcedureParam0.clone();\n try { \n fBProcedureCall0.registerOutParam(3828, 1);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "void onConnectToNetByIPFailure();", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-1365), \"ls2j{k?Jb5 AQj?SI\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1365\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-3119), \"Wz'xnr=]|yB7w+`\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -3119\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam((FBProcedureParam) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void validateRpd8s8()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addParam(2, \"|(W|Q[Mp=^|o?B\");\n // Undeclared exception!\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Array index out of range: 2\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void communicationChannelBroken() {\n\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.addParam(0, \"|(W|Q[Mp=^|o?B\");\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(71, \"|(W|Q[Mp=^|o?B\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter -1 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test\n void testFailure_unrecognizedStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=foo\"));\n }", "private void handleEpsv() {\n sendMsgToClient(\"229 Entering Extended Passive Mode (|||\" + dataPort + \"|)\");\n openDataConnectionPassive(dataPort);\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(5985, \"68]z9?lgE]u@\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.mapOutParamIndexToPosition(2, true);\n // Undeclared exception!\n fBProcedureCall0.mapOutParamIndexToPosition(5985, true);\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-24 16:07:21.765 -0400\", hash_original_method = \"333132ED929A42A001D72A5CABDECB0D\", hash_generated_method = \"83E11547AB034F739098DE0B03C0B808\")\n \npublic static boolean p2pReinvoke(int netId, String deviceAddress) {\n if (deviceAddress == null || netId < 0) return false;\n\n return doBooleanCommand(\"P2P_INVITE persistent=\" + netId + \" peer=\" + deviceAddress);\n }", "public static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "void setP2p(int p2p);", "public byte getP2() {\n return this.apdu_buffer[P2];\n }", "public void validateRpd8s20()\n {\n // This guideline cannot be automatically tested.\n }", "public void c2pStop();", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall0.equals(fBProcedureCall1);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall1.clone();\n fBProcedureCall1.clone();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n fBProcedureCall3.clone();\n try { \n fBProcedureCall2.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\n public void onFailure(Throwable t) {\n if (t instanceof InvalidQueryException\n || (t instanceof ServerError\n && t.getMessage().contains(\"Unknown keyspace/cf pair (system.peers_v2)\"))) {\n isPeersV2 = false;\n MoreFutures.propagateFuture(peersFuture, selectPeersFuture(connection));\n } else {\n peersFuture.setException(t);\n }\n }", "public void deviceAndPhonVerificationErrMsg()\n\t{\n\t\tLog.info(\"======== Device Verification Error Message ========\");\n\n\t\ttry {\n\t\t\tsoftAssert.assertTrue(verifyPhoneErrMsg.getText().contains(\"failed\"));\n\t\t\tsoftAssert.assertAll();\n\t\t} catch (Exception e){} \n\t\t\n\t\tLog.info(\"======== Clicking on Verification failed OK button ========\");\n\t\tokButton.click();\n\t}", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n try { \n fBProcedureCall0.registerOutParam(3, 837);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public static void test_4b() {\r\n try {\r\n System.out.println(\"\\n\\nTest Case - 4B :\\n\\n\");\r\n TestNetwork n = new TestNetwork(5, 5, 2);\r\n Paxos p = new Paxos(n);\r\n p.runPaxos();\r\n n.change_DPmode(1, 1);\r\n n.dup_msg(5, 2);\r\n n.dup_msg(7, 2);\r\n n.dup_msg(9, 2);\r\n Thread.sleep(5000);\r\n n.terminate_run();\r\n Thread.sleep(2000);\r\n System.out.println(\"\\n\\nTERMINATED PAXOS RUN-4B\");\r\n n.printTrace();\r\n } catch(Exception e) {}\r\n}", "public CommandFailedByConfigException(String msg) {\n super(msg);\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(655, \"Ko>Ka3#t4!YRM*p\");\n fBProcedureParam0.setIndex(67);\n int int0 = 41;\n fBProcedureParam0.setIndex(41);\n fBProcedureParam0.setIndex((-1663));\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam((-1663));\n try { \n fBProcedureCall0.registerOutParam(1, 0);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void setPortDOutRegisters(byte p1, byte p2){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[3];\r\n cmd.bytes[0]=CMD_SET_PORT_DOUT;\r\n cmd.bytes[1]=(byte)(0x0f&p1);\r\n cmd.bytes[2]=(byte)(0xff&p2);\r\n submitCommand(cmd);\r\n\r\n }", "public UnsupportedCommandTypeException(String message) {\n super(message);\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(2, \"|(W|Q[Mp=^|o?B\");\n fBProcedureParam0.setIndex(351);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.mapOutParamIndexToPosition(2, false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Specified parameter does not exist.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-3648), \"SELECT * FROM\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void pairingError(MasterpassCheckoutCallback masterpassCheckoutCallback) {\n Log.e(TAG, \"Pairing without checkout is no longer supported\");\n\n MasterpassError error = new MasterpassError(MasterpassError.ERROR_CODE_NOT_SUPPORTED,\n \"Pairing without checkout is no longer supported\");\n\n masterpassCheckoutCallback.onCheckoutError(error);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n String string0 = \"mn(\";\n fBProcedureCall1.addParam(2, \"mn(\");\n fBProcedureCall0.equals(fBProcedureCall1);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.clone();\n fBProcedureCall2.clone();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n fBProcedureCall4.clone();\n try { \n fBProcedureCall3.registerOutParam(3674, 3674);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n int int0 = 2597;\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2597, \"xuL|;?{*vu=xht\");\n fBProcedureParam0.setType(2597);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.getSQL(false);\n fBProcedureParam0.setIndex((-408));\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getOutputParam((-408));\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n int int1 = 2168;\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-408), \"EXECUTE PROCEDURE null(xuL|;?{*vu=xht)\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -408\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1189, \"IN\\\"i,#!bKI~6`\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.mapOutParamIndexToPosition((-171433816));\n fBProcedureCall0.getInputParam(41);\n fBProcedureCall0.addParam(699, \"IN\\\"i,#!bKI~6`\");\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-1), (-1));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public InvalidCommandException(String message) {\n super(message);\n }", "@Test\n void testFailure_illegalStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=clientRenewProhibited\"));\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureParam0.setIndex(1043);\n fBProcedureParam0.setType(0);\n FBProcedureParam fBProcedureParam1 = new FBProcedureParam();\n fBProcedureParam1.setType(0);\n fBProcedureParam1.setIndex((-20664796));\n fBProcedureCall0.mapOutParamIndexToPosition(0, true);\n try { \n fBProcedureCall0.registerOutParam(1043, 31);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n String string0 = \"FgZRnc2Yp%jU?C2`8\";\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(40, \"FgZRnc2Yp%jU?C2`8\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3, \"FgZRnc2Yp%jU?C2`8\");\n fBProcedureParam1.setIndex(3);\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter 3 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void connect(final WifiP2pDevice device){\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC;\n\n manager.connect(channel, config, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n // keep the name of the latest device connected to keep track\n devicesConnected.add(device.deviceName);\n\n }\n\n\n @Override\n public void onFailure(int reason) {\n\n if(reason == WifiP2pManager.P2P_UNSUPPORTED){\n Toast.makeText(getContext(), \"P2P isn't supported on this device.\",\n Toast.LENGTH_SHORT).show();\n\n } else{\n Toast.makeText(getContext(), \"Connect failed. Retry.\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n });\n\n }", "public void validateRpd8s10()\n {\n // This guideline cannot be automatically tested.\n }", "public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n int int0 = 0;\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(0, \"lxA+jL0,5I?X^\");\n int int1 = 4926;\n fBProcedureParam0.setIndex(0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(4926, \"lxA+jL0,5I?X^\");\n fBProcedureParam0.setType(0);\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n try { \n fBProcedureCall0.getSQL(true);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter 0 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "int mo746p() throws RemoteException;", "public void testUnrecognizedCommand() throws Exception {\n CommandHandler commandHandler = new AbstractStubCommandHandler() {\n public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {\n session.sendReply(502, \"Unsupported\");\n commandHandled = true;\n }\n };\n // Register the UNSUPPORTED command handler instead of the command that will be sent. So when we\n // send the regular command, it will trigger the handling for unsupported/unrecognized commands.\n commandToRegister = CommandNames.UNSUPPORTED;\n runCommandAndVerifyOutput(commandHandler, \"502 Unsupported\");\n }", "public InvalidProcessException(String message) {\n super(message);\n }", "public void setP2PHandler(P2PHandler handler);", "public void validateRpd1s2()\n {\n // This guideline cannot be automatically tested.\n }", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "@Override\n\t\t\t\t\tpublic void onConnectionFailed(Robot arg0) {\n\n\t\t\t\t\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, \"250\");\n String string0 = \"oyA6@hY>6JL<<\";\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"oyA6@hY>6JL<<\");\n fBProcedureParam1.clone();\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n fBProcedureCall0.addParam(3674, \"250\");\n FBProcedureParam fBProcedureParam2 = new FBProcedureParam(1726, \"250\");\n fBProcedureParam2.clone();\n fBProcedureParam0.setType(45);\n fBProcedureCall0.addOutputParam(fBProcedureParam2);\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam(1726);\n int int0 = (-1587);\n // Undeclared exception!\n fBProcedureCall0.registerOutParam(3674, (-1587));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, \"HY105\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall1.getSQL(true);\n fBProcedureCall1.addParam(3, \"[s~dI}(-N'Z}]0T( .\");\n fBProcedureCall1.addParam(37, \"xk(*$z\\\"UCH%y0+y\");\n fBProcedureCall1.getSQL(false);\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n fBProcedureCall3.addInputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n try { \n fBProcedureCall4.registerOutParam(3674, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }" ]
[ "0.5916919", "0.5561951", "0.5416929", "0.518819", "0.5159551", "0.5038663", "0.5027617", "0.49865288", "0.49632508", "0.4950729", "0.49406672", "0.49255118", "0.4899673", "0.48870787", "0.48846847", "0.47962046", "0.47933203", "0.47624815", "0.47587317", "0.47436833", "0.47338766", "0.47224852", "0.47191155", "0.47171658", "0.47054008", "0.46955585", "0.46892232", "0.46828076", "0.46750614", "0.46659368", "0.4659063", "0.4659063", "0.46586117", "0.46509394", "0.46400452", "0.4637642", "0.46248388", "0.46248388", "0.46243605", "0.46214166", "0.46091565", "0.46022645", "0.46006045", "0.45971167", "0.45934805", "0.45920762", "0.4591269", "0.45821065", "0.45801604", "0.45736495", "0.45736337", "0.4572229", "0.45672166", "0.45668542", "0.45657033", "0.45646897", "0.45645297", "0.45597208", "0.4557625", "0.45496747", "0.4545867", "0.45377183", "0.45364046", "0.45345253", "0.45340523", "0.45293838", "0.4515706", "0.4514556", "0.45135137", "0.4510725", "0.45097765", "0.4505492", "0.44999042", "0.44976068", "0.44902545", "0.44901547", "0.4487798", "0.44797203", "0.44647095", "0.44617477", "0.44607323", "0.44554332", "0.44552433", "0.4448985", "0.44452232", "0.44441885", "0.44434714", "0.44414258", "0.44391376", "0.44377115", "0.4435704", "0.44352734", "0.44318125", "0.44263345", "0.44255063", "0.4422057", "0.4419702", "0.44191515", "0.44175553", "0.44119608", "0.4411136" ]
0.0
-1
Command failed. Check for P2P_UNSUPPORTED, ERROR, or BUSY
@Override public void onFailure(int code) { Log.e(TAG, "discoverServices Failure " + code); if (code == WifiP2pManager.BUSY && mDeviceRegistering != null) { discoverServices(); } else { mService.stopSelf(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onP2pNotEnabled();", "public void validateRpd8s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd2s8()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n public void onFailure(int i) {\n System.out.println(\"pca connect: Failed to connect = \" + i);\n }", "public void validateRpd2s9()\n {\n // This guideline cannot be automatically tested.\n }", "public void validateRpd2s7()\n {\n // This guideline cannot be automatically tested.\n }", "public boolean isStoredProcDB2Error(){\r\n\treturn getERR_FLAG().equals(STORED_PROC_ERROR_FLAG) && getRETURN_CODE().equals(DB2_ERROR_CODE);\r\n}", "@Override\n protected void onFailureComponentConnectionRequest(PlatformComponentProfile remoteParticipant) {\n System.out.println(\"************ Crypto Addresses -> FAILURE CONNECTION.\");\n checkFailedDeliveryTime(remoteParticipant.getIdentityPublicKey());\n }", "public void validateRpd7s2()\n {\n // This guideline cannot be automatically tested.\n }", "public void c2pStart();", "public void validateRpd9s2()\n {\n // This guideline cannot be automatically tested.\n }", "public ConfigurationServerFailureException(String message) {\n\t\tsuper(PlatformErrorMessages.RPR_CMB_CONFIGURATION_SERVER_FAILURE_EXCEPTION.getCode(), message);\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-24 16:07:21.755 -0400\", hash_original_method = \"6CE719C205449F0EA4502B7666A015C0\", hash_generated_method = \"598EFFAE1DD0E9452464135FF7EE1426\")\n \npublic static String p2pConnect(WifiP2pConfig config, boolean joinExistingGroup) {\n if (config == null) return null;\n List<String> args = new ArrayList<String>();\n WpsInfo wps = config.wps;\n args.add(config.deviceAddress);\n\n switch (wps.setup) {\n case WpsInfo.PBC:\n args.add(\"pbc\");\n break;\n case WpsInfo.DISPLAY:\n //TODO: pass the pin back for display\n args.add(\"pin\");\n args.add(\"display\");\n break;\n case WpsInfo.KEYPAD:\n args.add(wps.pin);\n args.add(\"keypad\");\n break;\n case WpsInfo.LABEL:\n args.add(wps.pin);\n args.add(\"label\");\n default:\n break;\n }\n\n //TODO: Add persist behavior once the supplicant interaction is fixed for both\n // group and client scenarios\n /* Persist unless there is an explicit request to not do so*/\n //if (config.persist != WifiP2pConfig.Persist.NO) args.add(\"persistent\");\n\n if (joinExistingGroup) args.add(\"join\");\n\n int groupOwnerIntent = config.groupOwnerIntent;\n if (groupOwnerIntent < 0 || groupOwnerIntent > 15) {\n groupOwnerIntent = 3; //default value\n }\n args.add(\"go_intent=\" + groupOwnerIntent);\n\n String command = \"P2P_CONNECT \";\n for (String s : args) command += s + \" \";\n\n return doStringCommand(command);\n }", "public void validateRpd22s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Override\n public void onMachineBroken()\n {\n \n }", "private void handlePasv() {\n // Using fixed IP for connections on the same machine\n // For usage on separate hosts, we'd need to get the local IP address from\n // somewhere\n // Java sockets did not offer a good method for this\n String myIp = \"127.0.0.1\";\n String myIpSplit[] = myIp.split(\"\\\\.\");\n\n int p1 = dataPort / 256;\n int p2 = dataPort % 256;\n\n sendMsgToClient(\"227 Entering Passive Mode (\" + myIpSplit[0] + \",\" + myIpSplit[1] + \",\" + myIpSplit[2] + \",\"\n + myIpSplit[3] + \",\" + p1 + \",\" + p2 + \")\");\n\n openDataConnectionPassive(dataPort);\n\n }", "public void validateRpd10s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(40, \"it was not registered as output parameter.\");\n String string0 = \"--D\";\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"--D\");\n FBProcedureParam fBProcedureParam2 = new FBProcedureParam(40, \"it was not registered as output parameter.\");\n fBProcedureParam0.clone();\n fBProcedureParam2.setType(31);\n fBProcedureParam1.setIndex((-587));\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addInputParam(fBProcedureParam2);\n fBProcedureCall0.getOutputParam((-1));\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n int int0 = (-201774121);\n try { \n fBProcedureCall1.registerOutParam(40, (-201774121));\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\n\tpublic void processPacketDecodeError() {\n\t\t\n\t}", "public void testLoginWithWrongPUK() {\r\n short i;\r\n byte[] modifiedPuk = new byte[pukCode.length];\r\n for (i = 0; i < pukCode.length; i++) {\r\n modifiedPuk[i] = (byte) (pukCode[i] ^ 0xFF);\r\n }\r\n\r\n try {\r\n tokenHandler.loginPUK(modifiedPuk);\r\n fail(\"Logging in with wrong PUK did not cause an exception\");\r\n } catch (TokenException e) {\r\n assertEquals(ReturnCodes.SW_PUK_VALIDATION_FAILED, e.getSW());\r\n }\r\n }", "public final boolean isNeedParseeErrorMsg() {\r\n return getCommand() == 10;\r\n }", "public CustomPdp() throws Exception {\r\n\r\n }", "public void failure(ActionInvocation actionInvocation, UpnpResponse upnpResponse, String s) {\n/* 152 */ UPNPService.logger.warning(\"unable to map port for \" + port.toString());\n/* 153 */ port.addException(port.toString(), new Exception(s));\n/* */ }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testFIT2P() {\n CuteNetlibCase.doTest(\"FIT2P.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeOut = DEFAULT_TEST_TIMEOUT, enabled=true)\n public void testFailedMachineDetails() throws Exception {\n deployPu();\n machineFailover(getAgent(pu));\n assertUndeployAndWait(pu);\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.equals(fBProcedureCall0);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.clone();\n fBProcedureCall0.clone();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.clone();\n try { \n fBProcedureCall1.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\r\n\tpublic void onProcessFailure(ProcessFailureInfo processFailureInfo) {\n\t\t\r\n\t}", "@Override\n public void msrpTransferAborted() {\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n\n Log.d(TAG, \"onError: ======================\");\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2) {\n arg2.printStackTrace();\n }", "@Test(expected = Exception.class)\n public void testDescUnSuportedContext() throws Throwable\n {\n testDescDeployment(\"unsupported\");\n }", "@Override\n public int systemNotResponding(String msg) throws RemoteException {\n Log.i(TAG, String.format(\"System is not responding: %s\", msg));\n return 1;\n }", "@Test(timeout = 4000)\n public void test22() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n String string0 = \"it was not registered as output parameter.\";\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1107, \"it was not registered as output parameter.\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureParam0.setType(1107);\n fBProcedureParam0.setType(1107);\n fBProcedureParam0.setIndex(1107);\n fBProcedureParam0.setIndex(1107);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getOutputParam(2);\n fBProcedureCall0.addInputParam(fBProcedureParam1);\n fBProcedureCall0.getOutputParam(1107);\n try { \n fBProcedureCall0.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void testParsePortNumber_InsufficientParameters() throws UnknownHostException {\n try {\n PortParser.parsePortNumber(PARAMETERS_INSUFFICIENT);\n fail(\"Expected CommandSyntaxException\");\n }\n catch (CommandSyntaxException expected) {\n LOG.info(\"Expected: \" + expected);\n }\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2)\n {\n arg2.printStackTrace();\n }", "@Override\n public void onError(Platform arg0, int arg1, Throwable arg2)\n {\n arg2.printStackTrace();\n }", "public void c2pAddModuleOk(IPModule module);", "public void validateRpd6s2()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(655, \"Ko>Ka3#t4!YRM*p\");\n fBProcedureCall0.addParam(3, \"Cannot set parameter, since it is constant.\");\n fBProcedureParam0.setIndex((-1663));\n fBProcedureParam0.setIndex(2168);\n fBProcedureParam0.setType(656);\n fBProcedureCall0.registerOutParam(2168, (-1663));\n FBProcedureParam fBProcedureParam1 = new FBProcedureParam();\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.registerOutParam(655, 18);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "private List<Action> peersV2NotSupported() {\n return Collections.singletonList(\n new MessageResponseAction(new Error(INVALID, \"Table system.peers_v2 does not exist\")));\n }", "void notSupported(String errorcode);", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureParam0.setType(655);\n fBProcedureParam0.setIndex(655);\n fBProcedureParam0.setType((-25));\n fBProcedureParam0.setIndex(655);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.registerOutParam(655, 4);\n int int0 = (-3720);\n try { \n fBProcedureCall0.registerOutParam(4, (-3720));\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, \"sh\");\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"sh\");\n fBProcedureParam0.setType(3674);\n fBProcedureParam0.setIndex(1);\n fBProcedureParam0.setType((-587));\n fBProcedureParam1.setIndex(2);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam(1);\n // Undeclared exception!\n fBProcedureCall0.registerOutParam(3674, (-1587));\n }", "@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}", "private void handleActionScanLanForPs4(String param1, String param2) {\n // TODO: Handle action Foo\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Test\n public void destiny2InsertSocketPlugTest() {\n InlineResponse20045 response = api.destiny2InsertSocketPlug();\n\n // TODO: test validations\n }", "public void validateRpd22s8()\n {\n // This guideline cannot be automatically tested.\n }", "private void handleActionConnectToPs4(String param1, String param2) {\n // TODO: Handle action Baz\n throw new UnsupportedOperationException(\"Not yet implemented\");\n }", "@Test\n public void testSuccessfulSwPnoScan() throws Exception {\n startServiceAndLoadDriver();\n Handler handler = mock(Handler.class);\n BidirectionalAsyncChannel controlChannel = connectChannel(handler);\n InOrder order = inOrder(handler, mWifiScannerImpl);\n int requestId = 12;\n\n ScanResults scanResults = createScanResultsForPno();\n Pair<WifiScanner.ScanSettings, WifiNative.ScanSettings> scanSettings =\n createScanSettingsForSwPno();\n Pair<WifiScanner.PnoSettings, WifiNative.PnoSettings> pnoSettings =\n createPnoSettings(scanResults);\n\n sendPnoScanRequest(controlChannel, requestId, scanSettings.first, pnoSettings.first);\n expectSwPnoScan(order, scanSettings.second, scanResults);\n verifyPnoNetworkFoundReceived(order, handler, requestId, scanResults.getRawScanResults());\n }", "@Test(timeout = 4000)\n public void test40() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n int int0 = (-31);\n fBProcedureCall0.mapOutParamIndexToPosition(3828);\n fBProcedureParam0.clone();\n try { \n fBProcedureCall0.registerOutParam(3828, 1);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "void onConnectToNetByIPFailure();", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-1365), \"ls2j{k?Jb5 AQj?SI\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -1365\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-3119), \"Wz'xnr=]|yB7w+`\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -3119\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n // Undeclared exception!\n try { \n fBProcedureCall0.addOutputParam((FBProcedureParam) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void validateRpd8s8()\n {\n // This guideline cannot be automatically tested.\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.addParam(2, \"|(W|Q[Mp=^|o?B\");\n // Undeclared exception!\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // Array index out of range: 2\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public void communicationChannelBroken() {\n\n }", "@Test(timeout = 4000)\n public void test38() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n fBProcedureCall0.addParam(0, \"|(W|Q[Mp=^|o?B\");\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(71, \"|(W|Q[Mp=^|o?B\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter -1 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test\n void testFailure_unrecognizedStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=foo\"));\n }", "private void handleEpsv() {\n sendMsgToClient(\"229 Entering Extended Passive Mode (|||\" + dataPort + \"|)\");\n openDataConnectionPassive(dataPort);\n }", "@Test(timeout = 4000)\n public void test21() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(5985, \"68]z9?lgE]u@\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.mapOutParamIndexToPosition(2, true);\n // Undeclared exception!\n fBProcedureCall0.mapOutParamIndexToPosition(5985, true);\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-24 16:07:21.765 -0400\", hash_original_method = \"333132ED929A42A001D72A5CABDECB0D\", hash_generated_method = \"83E11547AB034F739098DE0B03C0B808\")\n \npublic static boolean p2pReinvoke(int netId, String deviceAddress) {\n if (deviceAddress == null || netId < 0) return false;\n\n return doBooleanCommand(\"P2P_INVITE persistent=\" + netId + \" peer=\" + deviceAddress);\n }", "public static void handleInvalidCommandException() {\n System.out.println(\"\\tSorry sir, I do not recognise this command.\");\n Help.execute();\n Duke.jarvis.printDivider();\n }", "void setP2p(int p2p);", "public byte getP2() {\n return this.apdu_buffer[P2];\n }", "public void validateRpd8s20()\n {\n // This guideline cannot be automatically tested.\n }", "public void c2pStop();", "@Test(timeout = 4000)\n public void test42() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall0.equals(fBProcedureCall1);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureCall1.clone();\n fBProcedureCall1.clone();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n fBProcedureCall3.clone();\n try { \n fBProcedureCall2.registerOutParam(2, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Override\n public void onFailure(Throwable t) {\n if (t instanceof InvalidQueryException\n || (t instanceof ServerError\n && t.getMessage().contains(\"Unknown keyspace/cf pair (system.peers_v2)\"))) {\n isPeersV2 = false;\n MoreFutures.propagateFuture(peersFuture, selectPeersFuture(connection));\n } else {\n peersFuture.setException(t);\n }\n }", "public void deviceAndPhonVerificationErrMsg()\n\t{\n\t\tLog.info(\"======== Device Verification Error Message ========\");\n\n\t\ttry {\n\t\t\tsoftAssert.assertTrue(verifyPhoneErrMsg.getText().contains(\"failed\"));\n\t\t\tsoftAssert.assertAll();\n\t\t} catch (Exception e){} \n\t\t\n\t\tLog.info(\"======== Clicking on Verification failed OK button ========\");\n\t\tokButton.click();\n\t}", "@Test(timeout = 4000)\n public void test45() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n try { \n fBProcedureCall0.registerOutParam(3, 837);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public static void test_4b() {\r\n try {\r\n System.out.println(\"\\n\\nTest Case - 4B :\\n\\n\");\r\n TestNetwork n = new TestNetwork(5, 5, 2);\r\n Paxos p = new Paxos(n);\r\n p.runPaxos();\r\n n.change_DPmode(1, 1);\r\n n.dup_msg(5, 2);\r\n n.dup_msg(7, 2);\r\n n.dup_msg(9, 2);\r\n Thread.sleep(5000);\r\n n.terminate_run();\r\n Thread.sleep(2000);\r\n System.out.println(\"\\n\\nTERMINATED PAXOS RUN-4B\");\r\n n.printTrace();\r\n } catch(Exception e) {}\r\n}", "public CommandFailedByConfigException(String msg) {\n super(msg);\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(655, \"Ko>Ka3#t4!YRM*p\");\n fBProcedureParam0.setIndex(67);\n int int0 = 41;\n fBProcedureParam0.setIndex(41);\n fBProcedureParam0.setIndex((-1663));\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam((-1663));\n try { \n fBProcedureCall0.registerOutParam(1, 0);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void setPortDOutRegisters(byte p1, byte p2){\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[3];\r\n cmd.bytes[0]=CMD_SET_PORT_DOUT;\r\n cmd.bytes[1]=(byte)(0x0f&p1);\r\n cmd.bytes[2]=(byte)(0xff&p2);\r\n submitCommand(cmd);\r\n\r\n }", "public UnsupportedCommandTypeException(String message) {\n super(message);\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(2, \"|(W|Q[Mp=^|o?B\");\n fBProcedureParam0.setIndex(351);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n try { \n fBProcedureCall0.mapOutParamIndexToPosition(2, false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Specified parameter does not exist.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test48() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam((-3648), \"SELECT * FROM\");\n // Undeclared exception!\n try { \n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n }\n }", "private static void pairingError(MasterpassCheckoutCallback masterpassCheckoutCallback) {\n Log.e(TAG, \"Pairing without checkout is no longer supported\");\n\n MasterpassError error = new MasterpassError(MasterpassError.ERROR_CODE_NOT_SUPPORTED,\n \"Pairing without checkout is no longer supported\");\n\n masterpassCheckoutCallback.onCheckoutError(error);\n }", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n String string0 = \"mn(\";\n fBProcedureCall1.addParam(2, \"mn(\");\n fBProcedureCall0.equals(fBProcedureCall1);\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n fBProcedureCall2.clone();\n fBProcedureCall2.clone();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n fBProcedureCall4.clone();\n try { \n fBProcedureCall3.registerOutParam(3674, 3674);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n int int0 = 2597;\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(2597, \"xuL|;?{*vu=xht\");\n fBProcedureParam0.setType(2597);\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.getSQL(false);\n fBProcedureParam0.setIndex((-408));\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.getOutputParam((-408));\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n int int1 = 2168;\n // Undeclared exception!\n try { \n fBProcedureCall0.addParam((-408), \"EXECUTE PROCEDURE null(xuL|;?{*vu=xht)\");\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -408\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Test(timeout = 4000)\n public void test28() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(1189, \"IN\\\"i,#!bKI~6`\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n fBProcedureCall0.mapOutParamIndexToPosition((-171433816));\n fBProcedureCall0.getInputParam(41);\n fBProcedureCall0.addParam(699, \"IN\\\"i,#!bKI~6`\");\n // Undeclared exception!\n try { \n fBProcedureCall0.registerOutParam((-1), (-1));\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // -2\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "public InvalidCommandException(String message) {\n super(message);\n }", "@Test\n void testFailure_illegalStatus() {\n assertThrows(\n IllegalArgumentException.class,\n () ->\n runCommandForced(\n \"--client=NewRegistrar\",\n \"--registrar_request=true\",\n \"--reason=Test\",\n \"--domain_name=example.tld\",\n \"--apply=clientRenewProhibited\"));\n }", "@Test(timeout = 4000)\n public void test37() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam();\n fBProcedureParam0.setIndex(1043);\n fBProcedureParam0.setType(0);\n FBProcedureParam fBProcedureParam1 = new FBProcedureParam();\n fBProcedureParam1.setType(0);\n fBProcedureParam1.setIndex((-20664796));\n fBProcedureCall0.mapOutParamIndexToPosition(0, true);\n try { \n fBProcedureCall0.registerOutParam(1043, 31);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n String string0 = \"FgZRnc2Yp%jU?C2`8\";\n FBProcedureParam fBProcedureParam0 = new FBProcedureParam(40, \"FgZRnc2Yp%jU?C2`8\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3, \"FgZRnc2Yp%jU?C2`8\");\n fBProcedureParam1.setIndex(3);\n try { \n fBProcedureCall0.getSQL(false);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter 3 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "public void connect(final WifiP2pDevice device){\n WifiP2pConfig config = new WifiP2pConfig();\n config.deviceAddress = device.deviceAddress;\n config.wps.setup = WpsInfo.PBC;\n\n manager.connect(channel, config, new WifiP2pManager.ActionListener() {\n @Override\n public void onSuccess() {\n // keep the name of the latest device connected to keep track\n devicesConnected.add(device.deviceName);\n\n }\n\n\n @Override\n public void onFailure(int reason) {\n\n if(reason == WifiP2pManager.P2P_UNSUPPORTED){\n Toast.makeText(getContext(), \"P2P isn't supported on this device.\",\n Toast.LENGTH_SHORT).show();\n\n } else{\n Toast.makeText(getContext(), \"Connect failed. Retry.\",\n Toast.LENGTH_SHORT).show();\n }\n\n\n\n }\n });\n\n }", "public void validateRpd8s10()\n {\n // This guideline cannot be automatically tested.\n }", "public void checkOdlOpenflowInterface2(String x) throws SnmpStatusException;", "@Test(timeout = 4000)\n public void test31() throws Throwable {\n int int0 = 0;\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(0, \"lxA+jL0,5I?X^\");\n int int1 = 4926;\n fBProcedureParam0.setIndex(0);\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(4926, \"lxA+jL0,5I?X^\");\n fBProcedureParam0.setType(0);\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n try { \n fBProcedureCall0.getSQL(true);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Value of parameter 0 not set and it was not registered as output parameter.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }", "int mo746p() throws RemoteException;", "public void testUnrecognizedCommand() throws Exception {\n CommandHandler commandHandler = new AbstractStubCommandHandler() {\n public void handleCommand(Command command, Session session, InvocationRecord invocationRecord) {\n session.sendReply(502, \"Unsupported\");\n commandHandled = true;\n }\n };\n // Register the UNSUPPORTED command handler instead of the command that will be sent. So when we\n // send the regular command, it will trigger the handling for unsupported/unrecognized commands.\n commandToRegister = CommandNames.UNSUPPORTED;\n runCommandAndVerifyOutput(commandHandler, \"502 Unsupported\");\n }", "public InvalidProcessException(String message) {\n super(message);\n }", "public void setP2PHandler(P2PHandler handler);", "public void validateRpd1s2()\n {\n // This guideline cannot be automatically tested.\n }", "protected void setP2(byte p2) {\n\theader[3] = p2;\n }", "@Override\n\t\t\t\t\tpublic void onConnectionFailed(Robot arg0) {\n\n\t\t\t\t\t}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3674, \"250\");\n String string0 = \"oyA6@hY>6JL<<\";\n FBProcedureParam fBProcedureParam1 = fBProcedureCall0.addParam(3674, \"oyA6@hY>6JL<<\");\n fBProcedureParam1.clone();\n fBProcedureCall0.addOutputParam(fBProcedureParam1);\n fBProcedureCall0.addParam(3674, \"250\");\n FBProcedureParam fBProcedureParam2 = new FBProcedureParam(1726, \"250\");\n fBProcedureParam2.clone();\n fBProcedureParam0.setType(45);\n fBProcedureCall0.addOutputParam(fBProcedureParam2);\n fBProcedureCall0.addInputParam(fBProcedureParam0);\n fBProcedureCall0.getOutputParam(1726);\n int int0 = (-1587);\n // Undeclared exception!\n fBProcedureCall0.registerOutParam(3674, (-1587));\n }", "@Test(timeout = 4000)\n public void test36() throws Throwable {\n FBProcedureCall fBProcedureCall0 = new FBProcedureCall();\n FBProcedureParam fBProcedureParam0 = fBProcedureCall0.addParam(3, \"HY105\");\n fBProcedureCall0.addOutputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall1 = new FBProcedureCall();\n fBProcedureCall1.getSQL(true);\n fBProcedureCall1.addParam(3, \"[s~dI}(-N'Z}]0T( .\");\n fBProcedureCall1.addParam(37, \"xk(*$z\\\"UCH%y0+y\");\n fBProcedureCall1.getSQL(false);\n FBProcedureCall fBProcedureCall2 = new FBProcedureCall();\n FBProcedureCall fBProcedureCall3 = new FBProcedureCall();\n fBProcedureCall3.addInputParam(fBProcedureParam0);\n FBProcedureCall fBProcedureCall4 = new FBProcedureCall();\n try { \n fBProcedureCall4.registerOutParam(3674, 2);\n fail(\"Expecting exception: FBSQLException\");\n \n } catch(FBSQLException e) {\n //\n // Cannot find parameter with the specified position.\n //\n verifyException(\"org.firebirdsql.jdbc.FBProcedureCall\", e);\n }\n }" ]
[ "0.5916919", "0.5561951", "0.5416929", "0.518819", "0.5038663", "0.5027617", "0.49865288", "0.49632508", "0.4950729", "0.49406672", "0.49255118", "0.4899673", "0.48870787", "0.48846847", "0.47962046", "0.47933203", "0.47624815", "0.47587317", "0.47436833", "0.47338766", "0.47224852", "0.47191155", "0.47171658", "0.47054008", "0.46955585", "0.46892232", "0.46828076", "0.46750614", "0.46659368", "0.4659063", "0.4659063", "0.46586117", "0.46509394", "0.46400452", "0.4637642", "0.46248388", "0.46248388", "0.46243605", "0.46214166", "0.46091565", "0.46022645", "0.46006045", "0.45971167", "0.45934805", "0.45920762", "0.4591269", "0.45821065", "0.45801604", "0.45736495", "0.45736337", "0.4572229", "0.45672166", "0.45668542", "0.45657033", "0.45646897", "0.45645297", "0.45597208", "0.4557625", "0.45496747", "0.4545867", "0.45377183", "0.45364046", "0.45345253", "0.45340523", "0.45293838", "0.4515706", "0.4514556", "0.45135137", "0.4510725", "0.45097765", "0.4505492", "0.44999042", "0.44976068", "0.44902545", "0.44901547", "0.4487798", "0.44797203", "0.44647095", "0.44617477", "0.44607323", "0.44554332", "0.44552433", "0.4448985", "0.44452232", "0.44441885", "0.44434714", "0.44414258", "0.44391376", "0.44377115", "0.4435704", "0.44352734", "0.44318125", "0.44263345", "0.44255063", "0.4422057", "0.4419702", "0.44191515", "0.44175553", "0.44119608", "0.4411136" ]
0.5159551
4
Register Student Device Methods
private synchronized void beginRegistration() { if (mDeviceRegistering == null && mDevicesToRegister.size() > 0) { mDeviceRegistering = mDevicesToRegister.remove(0); if (!connectToDevice(mDeviceRegistering)) { endRegistration(); } } else if (mDeviceRegistering == null && mDevicesToRegister.size() == 0) { // Run out of devices, so revert wifi connection resetWifiConnection(); } else { // registering a device } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void registerPatientMethod1(Patient p);", "@PUT\n @Path(\"/register/{studentId}\")\n public void registerStudent() {\n }", "RegisterSensor() {\n }", "public void register(){\n }", "public static void registerISTERs() {\n\n\t}", "protected void __register()\n {\n }", "protected void __register()\n {\n }", "@Override\n\tpublic void register() {\n\t\tsdClass.withdraw();\n\t}", "public abstract void register();", "void register();", "public void register(RegistrationData d) {}", "private void registerSensors()\n {\n // Double check that the device has the required sensor capabilities\n\n if(!HasGotSensorCaps()){\n showToast(\"Required sensors not supported on this device!\");\n return;\n }\n\n // Provide a little feedback via a toast\n\n showToast(\"Registering sensors!\");\n\n // Register the listeners. Used for receiving notifications from\n // the SensorManager when sensor values have changed.\n\n sensorManager.registerListener(this, senStepCounter, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senStepDetector, SensorManager.SENSOR_DELAY_NORMAL);\n sensorManager.registerListener(this, senAccelerometer, SensorManager.SENSOR_DELAY_NORMAL);\n }", "static void register() {\n }", "public void beginRegister() {}", "public void register (java.lang.String userClass, java.lang.String udtClass) { throw new RuntimeException(); }", "public void testRegisterSubjectForStudent() {\n System.out.println(\"registerSubjectForStudent\");\n Map<String, Object> request = null;\n RegisterService instance = new RegisterService();\n instance.registerSubjectForStudent(request);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\r\n\t public void register2() {\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "public interface DeviceRegistry {\n void registerRS232Device(RS232Device device);\n}", "@Test\r\n\t public void register4() {\n\t\t \tthis.admin.createClass(\"ecs61\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs61\", 2017));\r\n\t \r\n\t }", "public void openRegister() {\n\n }", "DeviceSensor createDeviceSensor();", "public void sensorSystem() {\n\t}", "@Test\r\n\t public void registerBaseCase() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2017);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t //this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017);\r\n\t \r\n\t }", "@Test\r\n\t public void register5() {\n\t\t \tthis.admin.createClass(\"ecs60\",2018,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2018);\r\n\t assertTrue(this.student.isRegisteredFor(\"gurender1\", \"ecs60\", 2018));\r\n\t \r\n\t }", "public void registerClassMethods()\n {\n }", "void register(RegisterData data) throws Exception;", "int register(String clazz, String method, String branch);", "public void setRegisteredStudent(int registeredStudent)\r\n\t{\r\n\t\tthis.registeredStudent = registeredStudent;\r\n\t}", "protected void register(String data){\n }", "Device createDevice();", "public abstract void addDevice(Context context, NADevice device);", "@Override\n\tpublic void init(Student student) {\n\t\tSystem.out.println(\"Interface Obj Called\");\n\t}", "private void register() throws FileNotFoundException, ValidatorException {\n //Lesen wir die Daten\n Scanner sc = new Scanner(System.in);\n Student s;\n Course c;\n //Der Studenten ID muss gültig sein\n while (true) {\n System.out.print(\"Student ID: \");\n long ID = sc.nextLong();\n s = ctrl.getStudent(ID);\n if (s == null)\n System.out.println(\"Student with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n //Der Kursname muss vorhanden sein\n while (true) {\n System.out.print(\"Course ID: \");\n Long id = Long.parseLong(sc.next());\n c = ctrl.getCourse(id);\n if (c == null)\n System.out.println(\"Course with this ID doesn't exist! Please try again!\");\n else\n break;\n }\n\n //Wir rufen die resgister Funktion vom dem Controller mit den gelesenen Daten auf\n int res=ctrl.register(s, c);\n\n if (res==3)\n System.out.println(\"Student registred with success!\");\n else\n if(res==0)\n System.out.println(\"You can't choose this course. Course doesn't have any free places!\");\n else\n if(res==1)\n System.out.println(\"You can't choose this course. Maximum number of credits exceeded!\");\n else\n System.out.println(\"Student already takes this course!\");\n }", "void register( ServiceDescription sd) {\r\n DFAgentDescription dfd = new DFAgentDescription();\r\n dfd.setName(getAID());\r\n\r\n try {\r\n DFAgentDescription list[] = DFService.search( this, dfd );\r\n if ( list.length>0 )\r\n DFService.deregister(this);\r\n\r\n dfd.addServices(sd);\r\n DFService.register(this,dfd);\r\n }\r\n catch (FIPAException fe) { fe.printStackTrace(); }\r\n }", "DeviceActuator createDeviceActuator();", "@RequestMapping(value=\"/register\",method = RequestMethod.GET)\n\n public Student register(Student std) \n {\n return srt.saveAndFlush(std);\n }", "private void registToWX() {\n }", "private static native int initSPIDevice();", "@Override\n\tpublic boolean updateStudent(Student student) throws Exception {\n\t\ttry {\n\t\t\t\n\t\t\tint ret = registerMapper.updateRegInfo(student) ;\n\t\t\tif(ret==1){\n\t\t\t\treturn true ;\n\t\t\t}\n\t\t\treturn false;\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\t\n\t\t\tthrow new RunTimeException(e.getMessage()) ;\n\t\t}\n\t\t\n\t}", "@Override\n\t\t\tpublic void init(Student student) {\n\t\t\t\tSystem.out.println(\"Called\");\n\t\t\t}", "abstract protected void setDeviceName(String deviceName);", "@Test\r\n\t public void isRegisterIfdroped2() {\n\t\t \tthis.admin.createClass(\"ecs60\",2016,\"sean\",4);\r\n\t\t \tthis.student.registerForClass(\"gurender\", \"ecs60\", 2016);\r\n\t\t \tthis.student.dropClass(\"gurender\", \"ecs60\", 2016);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2016));\r\n\t // assertTrue(this.student.hasSubmitted(\"gurender\", \"p1\", \"ecs60\", 2017));\r\n\t \r\n\t }", "@Test\r\n\t public void register1() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",50);\r\n\t \t\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender\", \"ecs60\", 2017));\r\n\t \r\n\t }", "public interface PeripheralSoftwareDriverInterface extends DriverBaseDataEventListener {\r\n\r\n /**\r\n * Is set in the BaseDriver, you can overwrite it, but for debugging\r\n * purposes not handy\r\n */\r\n public final static String DriverBaseName = \"driver:port\";\r\n\r\n /**\r\n * Returns the driver DB id.\r\n * @return \r\n */\r\n public int getId();\r\n \r\n /**\r\n * Starts the driver and runs the thread\r\n */\r\n public void startDriver();\r\n\r\n /**\r\n * Stops the driver and the thread the driver is running in\r\n */\r\n public void stopDriver();\r\n\r\n /**\r\n * Returns the Hardware driver which belongs to the given running software\r\n * driver.\r\n *\r\n * @return\r\n */\r\n public Peripheral getHardwareDriverFromSoftwareDriver();\r\n\r\n \r\n /**\r\n * Returns the hardware driver.\r\n * @return \r\n */\r\n public PeripheralHardwareDriverInterface getHardwareDriver();\r\n \r\n /**\r\n * Returns the amount of active devices attached to this driver.\r\n *\r\n * @return\r\n */\r\n public int getRunningDevicesCount();\r\n\r\n /**\r\n * Returns a list of running devices whom belong to this driver.\r\n *\r\n * @return\r\n */\r\n public List<Device> getRunningDevices();\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay. this function\r\n * should create a batch with a default name (anonymous)\r\n *\r\n * @param batchData Strings with commands\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData);\r\n\r\n /**\r\n * Send a batch of commands through the proxy. This method is preferred when\r\n * sending multiple commands at once with a build in delay.\r\n *\r\n * @param batchData Strings with commands\r\n * @param batchName String with the name of the batch to use later on with\r\n * runBatch()\r\n * @see #runBatch()\r\n * @see #runBatch(java.lang.String)\r\n */\r\n public void addBatch(List<Map<String, String>> batchData, String batchName);\r\n\r\n /**\r\n * Runs the batch previously set with the anonymous addBatch\r\n */\r\n public void runBatch();\r\n\r\n /**\r\n * Runs the batch previously set with addBatch with a batchName\r\n *\r\n * @param batchName Name of the batch to run\r\n */\r\n public void runBatch(String batchName);\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @param prefix When having multiple devices supported by the hardware a\r\n * prefix can distinct the device in your hardware\r\n * @return result of the send command\r\n * @throws java.io.IOException\r\n * @Obsolete Use writeBytes.\r\n */\r\n public boolean sendData(String data, String prefix) throws IOException;\r\n\r\n /**\r\n * Sends the data to the hardware itself\r\n *\r\n * @param data The data to send\r\n * @return the result of the command\r\n * @throws java.io.IOException\r\n * @Obsolete Use WriteBytes.\r\n */\r\n public boolean sendData(String data) throws IOException;\r\n\r\n /**\r\n * Retrieves the name of the class.\r\n *\r\n * @return the name of the class\r\n */\r\n public String getName();\r\n\r\n /**\r\n * For adding an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void setPeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * for removing an hardware driver.\r\n *\r\n * @param l\r\n */\r\n public void removePeripheralEventListener(PeripheralHardwareDriverInterface l);\r\n\r\n /**\r\n * Handles data received from the hardware driver to be used by overwriting\r\n * classes.\r\n *\r\n * @param oEvent\r\n */\r\n @Override\r\n public void driverBaseDataReceived(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Driver proxy for hardware data.\r\n *\r\n * @param oEvent\r\n */\r\n public void driverBaseDataReceivedProxy(PeripheralHardwareDataEvent oEvent);\r\n\r\n /**\r\n * Returns the package name of the driver as used in the database.\r\n *\r\n * @return The package name of this class\r\n */\r\n public String getPackageName();\r\n\r\n /**\r\n * Adds a device to the listers for whom data can exist.\r\n *\r\n * @param device\r\n */\r\n public void addDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Removes a device from the listeners list.\r\n *\r\n * @param device\r\n */\r\n public void removeDeviceListener(DeviceDriverListener device);\r\n\r\n /**\r\n * Handle the data coming from a device driver to dispatch to the hardware\r\n * driver. With this function you can do stuff with the data. For example if\r\n * needed change from string to byte array?\r\n *\r\n * @param device\r\n * @param group\r\n * @param set\r\n * @param deviceData\r\n * @return A string which represents a result, human readable please.\r\n * @throws java.io.IOException\r\n */\r\n public boolean handleDeviceData(Device device, String group, String set, String deviceData) throws IOException;\r\n\r\n /**\r\n * Handles data coming from a device as is in the request!\r\n * @param device\r\n * @param request\r\n * @return\r\n * @throws IOException \r\n */\r\n public boolean handleDeviceData(Device device, DeviceCommandRequest request) throws IOException;\r\n \r\n /**\r\n * Sets the driver DB id.\r\n * @param driverDBId \r\n */\r\n public void setId(int driverDBId);\r\n \r\n /**\r\n * Sets the named id\r\n * @param dbNameId\r\n */\r\n public void setNamedId(String dbNameId);\r\n \r\n /**\r\n * Gets the named id\r\n * @return \r\n */\r\n public String getNamedId();\r\n \r\n /**\r\n * Returns if the driver supports custom devices.\r\n * @return \r\n */\r\n public boolean hasCustom();\r\n \r\n /**\r\n * Set if a driver has custom devices.\r\n * @param hasCustom\r\n * @return \r\n */\r\n public void setHasCustom(boolean hasCustom);\r\n \r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @param softwareId\r\n */\r\n public void setSoftwareDriverId(String softwareId);\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @param softwareIdVersion\r\n */\r\n public void setSoftwareDriverVersion(String softwareIdVersion);\r\n\r\n /**\r\n * Returns the software driver id.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverId();\r\n\r\n /**\r\n * Returns the version set in the driver.\r\n *\r\n * @return\r\n */\r\n public String getSoftwareDriverVersion();\r\n\r\n /**\r\n * Returns true if there is a web presentation present.\r\n *\r\n * @return\r\n */\r\n public boolean hasPresentation();\r\n\r\n /**\r\n * Sets a web presentation;\r\n *\r\n * @param pres\r\n */\r\n public void addWebPresentationGroup(WebPresentationGroup pres);\r\n\r\n /**\r\n * Returns the web presentation.\r\n *\r\n * @return\r\n */\r\n public List<WebPresentationGroup> getWebPresentationGroups();\r\n\r\n /**\r\n * Sets the friendlyname.\r\n * @param name \r\n */\r\n public void setFriendlyName(String name);\r\n \r\n /**\r\n * Returns the friendlyname.\r\n * @return \r\n */\r\n public String getFriendlyName();\r\n \r\n /**\r\n * Sets a link with the device service.\r\n * @param deviceServiceLink \r\n */\r\n public void setDeviceServiceLink(PeripheralDriverDeviceMutationInterface deviceServiceLink);\r\n \r\n /**\r\n * Removes a device service link.\r\n */\r\n public void removeDeviceServiceLink();\r\n \r\n /**\r\n * Indicator to let know a device is loaded.\r\n * @param device \r\n */\r\n public void deviceLoaded(Device device);\r\n \r\n}", "@Override\n public void addStudent(Student student) {}", "@Override\n protected void onRegister() {\n Core.register(this);\n }", "void onTapToRegister();", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "@Override\n\tpublic void registrarSalida() {\n\t\t\n\t}", "public void initDevice() {\r\n\t\t\r\n\t}", "public void register()\n {\n menu.registerDisplay();\n chooseRole();\n }", "@Override\n\tpublic Student selectStudentInfo(Student student) throws Exception {\n\t\treturn registerMapper.selectStudentInfo(student);\n\t}", "@Override\n\tpublic void registrarSalida() {\n\n\t}", "public void addDeviceListener(DeviceDriverListener device);", "public interface IDevicesModel {\n /**\n * action = addDevice\n userid = 12\n username = yuan\n devicename = demo\n deviceaddre = 00:00:00:00\n addtime = 152355660000\n * @param iDevicesListener\n */\n void addDevice(String userid,String username,String devicename,String deviceaddre,Long addtime,\n IDevicesListener iDevicesListener);\n\n void updateDevice(String deviceid,String userid,String username,String devicename,\n String deviceaddre,Long addtime,IDevicesListener iDevicesListener);\n\n void deleteDevice(String deviceid,String userid,String username,IDeleteDeviceListener iDeleteDeviceListener);\n}", "public void registerLedSystemListener(com.samsung.android.sdk.cover.ScoverManager.LedSystemEventListener r7) throws com.samsung.android.sdk.SsdkUnsupportedException {\r\n /*\r\n // Method dump skipped, instructions count: 180\r\n */\r\n throw new UnsupportedOperationException(\"Method not decompiled: com.samsung.android.sdk.cover.ScoverManager.registerLedSystemListener(com.samsung.android.sdk.cover.ScoverManager$LedSystemEventListener):void\");\r\n }", "public void createStudent(String name, String ID){}", "public void registerStudents(List<E> listStudents, int courseCode){}", "@Override\r\n public void onUserSet(GenericDevice dev, PDeviceHolder devh, PUserHolder us) {\n\r\n }", "@Override\r\n\tpublic void register() {\n\t\t\r\n\t}", "public X837Pro_2420D_REF_SupervisingProviderSecondaryIdentification() {}", "@GetMapping(\"/reg_m_student\")\r\n\tpublic String m_studentReg() {\r\n\t\treturn \"m_student_Form\";\r\n\t}", "public interface RegisterControlCenter {\n\tpublic RegisterController getRegisterController(); \n\tpublic UserStorage getUserStorage();\n}", "public void addStudent(Student student) {\n\t\t\r\n\t}", "public interface SerialHelper {\n\n interface DeviceReadyListener{\n void OnDeviceReady(boolean deviceReadyStatus);\n }\n\n ArrayList<String> enumerateDevices();\n void connectDevice(String id, DeviceReadyListener deviceReadyListener);\n void disconnect();\n boolean isDeviceConnected();\n boolean writeString(String data);\n boolean writeBytes(byte[] data);\n byte readByte();\n}", "private void registerService() {\r\n DFAgentDescription desc = new DFAgentDescription();\r\n desc.setName(getAID());\r\n ServiceDescription sd = new ServiceDescription();\r\n sd.setType(SERVICE_TYPE);\r\n sd.setName(SERVICE_NAME);\r\n desc.addServices(sd);\r\n try {\r\n DFService.register(this, desc);\r\n } catch (FIPAException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n }", "public StudentInteraction() {\n//\t\tsuper();\n\t\tsfCon = new StudentFunctionalityController();\n\t}", "public static int register() {\n\t\treturn 0;\n\t}", "public void register(Course crs)\r\n {\r\n crs.addProf(this);\r\n }", "@Override\n public boolean adminAddStudentToClass(Token token, int studentID, int courseID, String grading, String courseTerm) {\n try {\n adminAddStudentToClass1(token, studentID, courseID, grading, courseTerm);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "@Override\n\tpublic void onDeviceLoginSuccess(FunDevice funDevice) {\n\n\t}", "public void enrollStudent(Student student) {\n\n\t}", "@Override\n public boolean adminEditStudentRegisteredClass(Token token, int studentID, int courseID, String grading,\n String courseTerm) {\n try {\n adminEditStudentRegisteredClass1(token, studentID, courseID, grading, courseTerm);\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return false;\n }\n return true;\n }", "@Override\n public void register() {\n }", "@Test\r\n\t public void register3() {\n\t\t \tthis.admin.createClass(\"ecs60\",2017,\"sean\",2);\r\n\t\t \tthis.student.registerForClass(\"gurender1\", \"ecs60\", 2017);\r\n\t\t \tthis.student.registerForClass(\"gurender2\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender3\", \"ecs60\", 2017);\r\n\t \tthis.student.registerForClass(\"gurender4\", \"ecs60\", 2017);\r\n\t assertFalse(this.student.isRegisteredFor(\"gurender4\", \"ecs60\", 2017)); \r\n\t }", "public void addStudents(Student student) {\r\n System.out.println(\"conectado con model ---> metodo addStudents\");\r\n //TODO\r\n }", "abstract public void getStudent();", "private void register()\n {\n ScControlRegistry r = getRegistry();\n\n _key = r.getNextKey();\n r.register(this);\n }", "private Sensor registerSensor(HalSensorConfig config){\n Sensor sensor = new Sensor();\n sensor.setDeviceConfig(config);\n manager.addAvailableDeviceConfig(config.getClass());\n manager.register(sensor);\n return sensor;\n }", "static boolean registerStudent(String name, String id, String username, String password, String major) {\r\n Student student = new Student();\r\n if (!StudentSystem.accounts.containsKey(username)) {\r\n student.setName(name);\r\n student.setId(id);\r\n student.setUsername(username);\r\n student.setPassword(password);\r\n student.setMajor(major);\r\n student.setAccountType(1);\r\n\r\n accounts.put(username, student);\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n\tprotected void registerTouch() {\n\t\t\n\t}", "public interface RegistrationService {\n\n void registerUser(StudentUser studentUser);\n}", "@Override\n protected void onRegistered(Context context, String registrationId) {\n Log.i(TAG, \"Device registered: regId = \" + registrationId);\n UnityPlayer.UnitySendMessage(\"ECPNManager\",\"RegisterAndroidDevice\",registrationId);\n }", "public interface Student {\n}", "public interface ElectronicsDevice {\n}", "private native void nRegister();", "public Peripheral getHardwareDriverFromSoftwareDriver();", "void register() {\n Thread patientLoaderThread = new Thread(new RegistrationRunnable(true));\n patientLoaderThread.start();\n }", "public String register(String student, String courseCode){\n String query = \"INSERT INTO Registrations VALUES (?,?);\";\n try(PreparedStatement ps = conn.prepareStatement(query);){\n ps.setString(1,student);\n ps.setString(2,courseCode);\n ps.execute();\n ps.close();\n return \"{\\\"success\\\":true}\";\n } catch (SQLException e) {\n return \"{\\\"success\\\":false, \\\"error\\\":\\\"\"+getError(e)+\"\\\"}\";\n }\n }", "public IoTSecurityAlertedDevice() {\n }", "@PostMapping(\"/register\")\n\tpublic String doRegistration(Model model, @ModelAttribute Student student) {\n\t\tStudent temp = studentRepository.findByUserName(student.getUserName());\n\t\tif(temp !=null)\n\t\t{\n\t\t\tmodel.addAttribute(\"errMsg\", \"User Name already taken!\");\n\t\t\tmodel.addAttribute(\"student\", student);\n\t\t\treturn \"/register\";\n\t\t}\n\t\t\n\t\t// student should not be enabled by default\n//\t\tStudent student = Student.builder().firstName(firstname).lastName(lastname).email(email).userName(username)\n//\t\t\t\t.encryptedPassword(encodePassword(password)).enabled(Byte.valueOf(\"0\")).build();\n\t\tstudent.setEnabled(Byte.valueOf(\"0\"));\n\t\tstudent.setEncryptedPassword(encodePassword(student.getEncryptedPassword()));\n\t\tSystem.out.println(\"doRegistration start\");\n\n\t\t// default for all students\n\t\tRole userRole = roleRepository.findByRolename(\"ROLE_USER\");\n\t\tSystem.out.println(\"userRole is: \" + userRole);\n\t\tstudent.setRole(userRole);\n\t\tSystem.out.println(\"doRegistration Middle\");\n\t\tstudentRepository.save(student);\n\n\t\tConfirmationToken confirmationToken = new ConfirmationToken(student);\n\t\tconfirmationTokenRepository.save(confirmationToken);\n\t\tsendEmail(student.getEmail(), \"CourseAid Confirmation Email\", confirmationToken.getConfirmationToken());\n\t\tSystem.out.println(\"doRegistration about to finish\");\n\n\t\treturn \"redirect:/\";\n\t}", "private void regFliter() {\n\t\tIntentFilter filter = new IntentFilter();\r\n\t\tfilter.addAction(OsConstants.JSH.ADD_DEVICES_SUCCES);\r\n\t\tfilter.addAction(OsConstants.JSH.SETTIING_WIFI_SUCCESS);\r\n\t\tregisterReceiver(mReceiver, filter);\r\n\t}", "void enableDigital();", "private void AddMetaRegistrationInformation(Registration reg) {\n }", "public void registerWithServer();", "public interface IDeviceManager {\n\n //디바이스 제어시 사용\n ResultMessage deviceExecute(String commandId, String deviceId, String deviceCommand);\n}", "private void write(SidRegisterAddress reg) {\n\t\to.reg(reg).write(UnsignedByte.x01);\n\t}", "public DSMFunction( int keyCode, int deviceButtonIndex, int deviceType, int setupCode, Hex cmd, String notes )\n {\n super( keyCode, deviceButtonIndex, deviceType, setupCode, cmd, notes );\n }", "private void addStudent(Student student) {\n\t\tSystem.out.println(\"Add Student\");\n\t\tsmb.saveStudent(student);\n\t}", "public Register() {\n\t\tsuper();\n\t}", "private void initHardware(){\n }" ]
[ "0.61419904", "0.6126431", "0.60050523", "0.59042454", "0.58947647", "0.5878269", "0.5878269", "0.5860869", "0.5831502", "0.5803068", "0.5780197", "0.57596236", "0.5749035", "0.57429373", "0.57403344", "0.5726001", "0.57160664", "0.56742734", "0.55952203", "0.55808884", "0.55477357", "0.55262893", "0.5482175", "0.5469527", "0.5452276", "0.54408777", "0.54343575", "0.5394396", "0.5348249", "0.53413695", "0.5339663", "0.53278416", "0.5313112", "0.5308184", "0.53043544", "0.5299555", "0.52796096", "0.52526224", "0.52444786", "0.52420795", "0.5229885", "0.52256864", "0.520608", "0.5188998", "0.51818514", "0.51677895", "0.51645035", "0.51625824", "0.51625824", "0.5161411", "0.5161034", "0.51534677", "0.51370966", "0.5132795", "0.51262754", "0.5120334", "0.5119746", "0.51188254", "0.50966173", "0.50882006", "0.5074724", "0.50726646", "0.50686646", "0.50675493", "0.5066652", "0.50647384", "0.50636363", "0.50607884", "0.5052247", "0.50481814", "0.5034212", "0.5032513", "0.50301635", "0.50234", "0.50217885", "0.50174004", "0.5013103", "0.4998454", "0.49899212", "0.49877062", "0.49876848", "0.49801633", "0.49745232", "0.49632642", "0.49479315", "0.49352613", "0.49349046", "0.4934498", "0.49334508", "0.49315158", "0.49190152", "0.4918451", "0.49145153", "0.48984697", "0.48834947", "0.48816532", "0.48807907", "0.4879764", "0.48789346", "0.4878419", "0.48604575" ]
0.0
-1
Loader to VAO for 2D vertices
public static RawModel loadToVAO(float[] vertices, int dimensions){ int vaoID = createVAO(); storeDataInAttributeList(0,dimensions, vertices); unbindVAO(); return new RawModel(vaoID, vertices.length/dimensions); //?? }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setUpVAO() {\n\t\tfloat[] vertices = { -1, -1, -1, 1, 1, -1, 1, -1, -1, 1, 1, 1 };\n\t\tquad = Loader.loadToVAO(vertices, 2);\n\t}", "public abstract Vector2[] getVertices();", "public RawModel loadToVAO(float[] positions,float[] normals, int[] indices){\n\t\tint vaoID = createVAO();\n\t\tcreateIndexBuffer(indices);\n\t\tcreateVertexBuffer(0,positions);\n createVertexBuffer(1,normals);\n\t\tunbindVAO();\n\n\t\t// save VAO in RawModel\n\t\treturn new RawModel(vaoID,indices.length);\n\t}", "void ldraw_addVertexWithUV(double x, double y, double z, double u, double v) {\n lDraw.a(x, y, z, u, v);\n }", "public static VaoObject loadModel(int dataSize, float[] array, int vertCount)\n\t{\n\t\tVaoObject vaoObject = new VaoObject();\n\t\tvaoObject.bind();\n\n\t\tvaoObject.addAttribute(0, array, dataSize, GL15.GL_STATIC_DRAW);\n\n\t\tvaoObject.setVertexCount(vertCount);\n\n\t\tvaoObject.unbind();\n\t\treturn vaoObject;\n\t}", "public void createMesh(GL2 gl){\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(y + pos[1]*chunkHeight <= ChunkManager.map2D(x + pos[0]*chunkSize, z + pos[2]*chunkSize)){\r\n\t\t\t\t\t\tblocks[x][y][z] = (byte) (2.7*(y+pos[1]*chunkHeight)/13+1); // Initialize each block\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tblocks[x][y][z] = 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tvertexCount = 0;\r\n\t\t// Allocate the buffers (Change to one buffer, or use short/byte buffer for normals and color)\r\n\t\tvertexData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tnormalData = Buffers.newDirectFloatBuffer(chunkSize*chunkHeight*chunkSize*18*3);\r\n\t\tcolorsData = Buffers.newDirectFloatBuffer(chunkSize*chunkSize*chunkSize*18*3);\r\n\t\tfor(int x = 0; x < chunkSize; x++){\r\n\t\t\tfor(int y = 0; y < chunkHeight; y++){\r\n\t\t\t\tfor(int z = 0; z < chunkSize; z++){\r\n\t\t\t\t\tif(BlockType.isActive(blocks[x][y][z])){\r\n\t\t\t\t\t\tcreateCube(x, y, z); // If the cube is active, add it to the Buffer\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// correct the buffer size, and rewind\r\n\t\tnormalData.flip();\r\n\t\tvertexData.flip();\r\n\t\tcolorsData.flip();\r\n\t\tgl.glGenBuffers(3, buffer, 0); // allocate the buffers and get IDs\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[0]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, vertexData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[1]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, normalData, GL.GL_DYNAMIC_DRAW);\r\n\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, buffer[2]);\r\n\t\tgl.glBufferData(GL.GL_ARRAY_BUFFER, vertexCount*3*4, colorsData, GL.GL_DYNAMIC_DRAW);\r\n\t\t// set buffer as null now that it's done being used, hope it will be garbage collected\r\n\t\tvertexData = null;\r\n\t\tnormalData = null;\r\n\t\tcolorsData = null;\t\t\r\n\t}", "public static VaoObject loadModel(float[] positions, float[] textureCoords, float[] normals, float[] tangents,\n\t\t\t\t\t\t\t\t\t float[] boneIndices, float[] boneWeights, int[] indicies)\n\t{\n\t\tVaoObject vaoObject = new VaoObject();\n\t\tvaoObject.bind();\n\n\t\tvaoObject.setIndexArray(indicies, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.POSITIONS, positions, 3, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.TEXTURE_COORDS, textureCoords, 2, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.NORMALS, normals, 3, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.TANGENTS, tangents, 3, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.BONE_INDEX, boneIndices, 4, GL15.GL_STATIC_DRAW);\n\t\tvaoObject.addAttribute(VaoObject.BONE_WEIGHT, boneWeights, 4, GL15.GL_STATIC_DRAW);\n\n\t\tvaoObject.unbind();\n\t\treturn vaoObject;\n\t}", "static void initializeVertexBuffer(int divideCount)\n {\n ByteBuffer vb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 4 bytes per float)\n vertexData.length * 4);\n // use the device hardware's native byte order\n vb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n vertexBuffer = vb.asFloatBuffer();\n // add the coordinates to the FloatBuffer\n vertexBuffer.put(vertexData);\n // set the buffer to read the first coordinate\n vertexBuffer.position(0);\n\n // initialize index byte buffer for vertex indexes\n ByteBuffer sb = ByteBuffer.allocateDirect(\n // (number of coordinate values * 2 bytes per short)\n indexData.length * 2);\n // use the device hardware's native byte order\n sb.order(ByteOrder.nativeOrder());\n\n // create a floating point buffer from the ByteBuffer\n indexBuffer = sb.asShortBuffer();\n // add the coordinates to the FloatBuffer\n indexBuffer.put(indexData);\n // set the buffer to read the first coordinate\n indexBuffer.position(0);\n\n GLES20.glGenBuffers(1, vertexBufferObject, divideCount);\n GLES20.glGenBuffers(1, indexBufferObject, divideCount);\n\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER, indexBuffer.capacity() * BYTES_PER_SHORT,\n indexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vertexBufferObject[divideCount]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexBuffer.capacity() * BYTES_PER_FLOAT,\n vertexBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n }", "void SetUpMeshArrays(int PosHandle, int TexHandle, int NormalHandle)\n\t{\n\t\tm_VertexBuffer.position(m_MeshVerticesDataPosOffset);\n\t GLES20.glVertexAttribPointer(PosHandle, \n\t \t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\tm_VertexBuffer);\n\t \n\t GLES20.glEnableVertexAttribArray(PosHandle);\n\t \n\t \n\t if (m_MeshHasUV)\n\t {\n\t \t// Set up Vertex Texture Data stream to shader \n\t \tm_VertexBuffer.position(m_MeshVerticesDataUVOffset);\n\t \tGLES20.glVertexAttribPointer(TexHandle, \n\t \t\t\t\t\t\t\t\t2, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(TexHandle);\n\t }\n\t \n\t if (m_MeshHasNormals)\n\t {\n\t \t\n\t \t// Set up Vertex Texture Data stream to shader\n\t \tm_VertexBuffer.position(m_MeshVerticesDataNormalOffset);\n\t \tGLES20.glVertexAttribPointer(NormalHandle, \n\t \t\t\t\t\t\t\t\t3, \n\t \t\t\t\t\t\t\t\tGLES20.GL_FLOAT, \n\t \t\t\t\t\t\t\t\tfalse,\n\t \t\t\t\t\t\t\t\tm_MeshVerticesDataStrideBytes, \n\t \t\t\t\t\t\t\t\tm_VertexBuffer);\n\t \tGLES20.glEnableVertexAttribArray(NormalHandle);\n\t } \n\t \n\t \n\t \n\t}", "private void mkMesh()\n\t{\n\t\t/* this initialises the the two FloatBuffer objects */\n\t\n\t\tfloat vertices[] = {\n\t\t\t-0.5f, -0.5f, 0.0f,\t\t// V1 - bottom left\n\t\t\t-0.5f, 0.5f, 0.0f,\t\t// V2 - top left\n\t\t\t 0.5f, -0.5f, 0.0f,\t\t// V3 - bottom right\n\t\t\t 0.5f, 0.5f, 0.0f\t\t\t// V4 - top right\n\t\t\t};\n\t\tfloat texture[] = { \t\t\n\t\t\t// Mapping coordinates for the vertices\n\t\t\t0.0f, 1.0f,\t\t// top left\t\t(V2)\n\t\t\t0.0f, 0.0f,\t\t// bottom left\t(V1)\n\t\t\t1.0f, 1.0f,\t\t// top right\t(V4)\n\t\t\t1.0f, 0.0f\t\t// bottom right\t(V3)\n\t\t\t};\n\t\t/* cache the number of floats in the vertices data */\n\t\tvertexCount = vertices.length;\n\t\t\n\t\t// a float has 4 bytes so we allocate for each coordinate 4 bytes\n\t\tByteBuffer byteBuffer = ByteBuffer.allocateDirect(vertices.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\t\n\t\t// allocates the memory from the byte buffer\n\t\tvertexBuffer = byteBuffer.asFloatBuffer();\n\t\t\n\t\t// fill the vertexBuffer with the vertices\n\t\tvertexBuffer.put(vertices);\n\t\t\n\t\t// set the cursor position to the beginning of the buffer\n\t\tvertexBuffer.position(0);\n\t\t\n\t\tbyteBuffer = ByteBuffer.allocateDirect(texture.length * 4);\n\t\tbyteBuffer.order(ByteOrder.nativeOrder());\n\t\ttextureBuffer = byteBuffer.asFloatBuffer();\n\t\ttextureBuffer.put(texture);\n\t\ttextureBuffer.position(0);\n\t}", "@Override\n\t\t\tpublic void setUpData(int index, int[][] data, int dataSetupIndex) {\n\t\t\t\tint[] vboIds = data[dataSetupIndex];\n\t\t\t\tif(vboIds[0]!=0) { // le nombre de point\n\t\t\t\t\t// suppression des buffer inutilisés\n\t\t\t\t\tgl.glDeleteBuffers(vboIds.length-1, vboIds,1);\n\t\t\t\t}\n\t\t\t\t// création de deux nouveaux buffer\n\t\t\t\tvboIds = new int[] {0,0,0,0}; // nbPoints, vertex + texture\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\tgl.glGenBuffers(3, vboIds, 1);\n\t\t\t\tdata[dataSetupIndex] = vboIds;\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t// les points\n\t\t\t\tFloatBuffer vertices = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\tFloatBuffer text = Buffers.newDirectFloatBuffer(nbHeight*4*2);\n\t\t\t\tFloatBuffer normals = Buffers.newDirectFloatBuffer(nbHeight*4*3); // 4 points de 3 coordonnées\n\t\t\t\t\n\t\t\t\tfloat positiony=0;\n\t\t\t\tfor(int j = 0;j<nbHeight; j++) {\n\t\t\t\t\tint val = ms.getTheMap()[j][index]; \n\t\t\t\t\tif(val>0){\n\t\t\t\t\t\t// points BL, BR, UR, RL\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony-blockHeight); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(blockWidth); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\tvertices.put(0f); vertices.put(positiony); vertices.put(-distance);\n\t\t\t\t\t\t\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\tnormals.put(0f);normals.put(0f);normals.put(1f);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// texture\n\t\t\t\t\t\tfloat[] coords = textCoords[val-1];\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[3]);\n\t\t\t\t\t\ttext.put(coords[2]); text.put(coords[1]);\n\t\t\t\t\t\ttext.put(coords[0]); text.put(coords[1]);\n\t\t\t\t\t}\n\t\t\t\t\tpositiony-=blockHeight;\n\t\t\t\t}\n\t\t\t\tvertices.flip();\n\t\t\t\ttext.flip();\n\t\t\t\tnormals.flip();\n\t\t\t\tvboIds[0] = vertices.limit() / 3; // nb points\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\n\t\t\t\t// les points\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, vertices.limit() * Buffers.SIZEOF_FLOAT, vertices, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t\t\t\n\t\t // les textures\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL2.GL_ARRAY_BUFFER, text.limit() * Buffers.SIZEOF_FLOAT, text, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t // normals\n\t\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n//\t\t\t\tSystem.out.println(\"vboIds \"+vboIds[0]+\" \"+vboIds[1]+\" \"+vboIds[2]);\n\t\t gl.glBufferData(GL.GL_ARRAY_BUFFER, normals.limit() * Buffers.SIZEOF_FLOAT, normals, GL.GL_STATIC_DRAW);\n\t\t gl.glBindBuffer(GL.GL_ARRAY_BUFFER, 0);\n\t\t \n\t\t\t}", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "public PosicionVertice[] getVertices(PosicionVertice rpv[]) {\n \n // inicializacion\n rpv = (rpv == null) ? new PosicionVertice[2] : rpv;\n for (int i=0; i<rpv.length; i++) {\n rpv[i] = (rpv[i] == null) ? new PosicionVertice() : rpv[i];\n }\n normaliza();\n \n switch(getOrientacion()) {\n case Este:\n rpv[0].setPos(getX(), getY()-1);\n rpv[0].setOrientacion(OrientacionVertice.Sur);\n rpv[1].setPos(getX()+1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Norte);\n break;\n case NorEste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX(), getY()-1);\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n case NorOeste:\n rpv[0].setPos(getX(), getY());\n rpv[0].setOrientacion(OrientacionVertice.Norte);\n rpv[1].setPos(getX()-1, getY());\n rpv[1].setOrientacion(OrientacionVertice.Sur);\n break; \n }\n return rpv;\n }", "public abstract void updateVertices();", "public void setUV(float u0, float v0,\n float u1, float v1,\n float u2, float v2) {\n // sets & scales uv texture coordinates to center of the pixel\n u_array[0] = (u0 * F_TEX_WIDTH + 0.5f) * 65536f;\n u_array[1] = (u1 * F_TEX_WIDTH + 0.5f) * 65536f;\n u_array[2] = (u2 * F_TEX_WIDTH + 0.5f) * 65536f;\n v_array[0] = (v0 * F_TEX_HEIGHT + 0.5f) * 65536f;\n v_array[1] = (v1 * F_TEX_HEIGHT + 0.5f) * 65536f;\n v_array[2] = (v2 * F_TEX_HEIGHT + 0.5f) * 65536f;\n }", "public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n \n z_array[0] = z0;\n z_array[1] = z1;\n z_array[2] = z2;\n }", "public static void main(String args[]) {\n\n\t\tBufferedReader objFileBR;\n\t\tString line, tempstr;\n\t\tStringTokenizer st;\n\n\t\tString objfName = args[0]; // get the object file name from first command line parameter\n\n\t\tfinal int MAX_VERTICES = 400;\n\t\tfinal int MAX_POLYS = 200;\n\t\tfinal int MAX_EDGES = 7;\n\n\t\tv = new Vertex[MAX_VERTICES];\n\t\t/* index is the vertex number,\n\t\t and the Vertex is (x, y, z, 1) coordinates of a vertex of the object */\n\n\t\tpolyColor= new double[MAX_POLYS][3];\n\t\t/* first index is the polygon number, the next index goes from 0 to 2\n\t\t representing the RGB values of that polygon */\n\n\t\tpolygon = new int[MAX_POLYS][MAX_EDGES + 1];\n\t\t/* polygon[i][0] stores the number of vertices that describes \n\t\t the polygon i.\n\t\t polygon[i][1] through polygon[i][polygon[i][0]] store the \n\t\t vertex numbers in counter clockwise order\n\t\t */\n\n\t\tnumVs = 0;\n\t\tnumPolys = 0;\n\n\t\ttry {\n\t\t\tobjFileBR = new BufferedReader(new FileReader(objfName));\n\n\t\t\tline = objFileBR.readLine(); // should be the VERTICES line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VERTICES\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tnumVs = Integer.parseInt(tempstr);\n\t\t\t} else {\n\t\t\t\tnumVs = 0;\n\t\t\t\tSystem.out.println(\"Expecting VERTICES line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the POLYGONS line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"POLYGONS\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tnumPolys = Integer.parseInt(tempstr);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting POLYGONS line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the VERTEX LIST line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VERTEX\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tif (!tempstr.equals(\"LIST\")) {\n\t\t\t\t\tSystem.out.println(\"Expecting VERTEX LIST line in file \"\n\t\t\t\t\t\t\t+ objfName);\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VERTEX LIST line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t// if we get here we successfully processed the VERTEX LIST line\n\n\t\t\t// reads each of the vertex coordinates and creates a Vertex object for each one \n\t\t\tfor (int i = 0; i < numVs; i++) {\n\t\t\t\tline = objFileBR.readLine();\n\t\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tv[i] = new Vertex(x1,y1,z1,1.0);\n\t\t\t}\n\n\t\t\tline = objFileBR.readLine(); // should be the POLYGON LIST line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"POLYGON\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tif (!tempstr.equals(\"LIST\")) {\n\t\t\t\t\tSystem.out.println(\"Expecting POLYGON LIST line in file \"\n\t\t\t\t\t\t\t+ objfName);\n\t\t\t\t\tSystem.exit(1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting POLYGON LIST line in file \"\n\t\t\t\t\t\t+ objfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t// if we get here we successfully processed the POLYGON LIST line\n\n\t\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\t\tline = objFileBR.readLine();\n\t\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\t\tst.nextToken(); // ignore the string COUNT \n\t\t\t\ttempstr = st.nextToken(); // this is the value of count (number of vertices for this poly)\n\t\t\t\tint numVsForThisPoly = Integer.parseInt(tempstr);\n\t\t\t\tpolygon[i][0] = numVsForThisPoly;\n\t\t\t\tst.nextToken(); // ignore the string VERTICES \n\n\t\t\t\t//example line: COUNT 5 VERTICES 5 4 3 2 1 COLOR .4 .2 .4\n\n\t\t\t\tfor (int j = 1; j <=numVsForThisPoly; j++) {\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tpolygon[i][j] = Integer.parseInt(tempstr) - 1;\n\t\t\t\t}\n\n\t\t\t\tst.nextToken(); // ignore the string COLOR\n\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tpolyColor[i][j] = Double.parseDouble(tempstr);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\tobjFileBR.close();\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"couldn't read from file\");\n\t\t}\n\n\t\t// loops to print out the information just read ...\n\t\t// ******************************************************\n // ******************************************************\n // remove this printing before you submit the program\n // ******************************************************\n // ******************************************************\n\t\t\n\t\t// write code here to print out the vertices \n\n\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\tSystem.out.print(\"Polygon number \" + i + \" vertices:\");\n\t\t\tfor (int j = 1; j <= polygon[i][0]; j++)\n\t\t\t\tSystem.out.print(\" \" + polygon[i][j]);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\tfor (int i = 0; i < numPolys; i++) {\n\t\t\tSystem.out.print(\"Polygon number \" + i + \" RGB:\");\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\tSystem.out.print(\" \" + polyColor[i][j]);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t// ================================================================\n\t\t// ------READ VIEWING PARAMETER FILE \n\t\t// ================================================================\n\n\t\tString viewfName = args[1]; // second command line arg\n\t\tBufferedReader viewFileBR;\n\t\t/* Viewing parameters */\n\t\n\n\t\ttry {\n\t\t\tviewFileBR = new BufferedReader(new FileReader(viewfName));\n\n\t\t\tline = viewFileBR.readLine(); // should be the VRP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VRP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvrp = new Vertex(x1,y1,z1,1.0);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VRP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the VPN line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VPN\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvpn = new Vector(x1,y1,z1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VPN line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the VUP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"VUP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tvup = new Vector(x1,y1,z1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting VUP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the PRP line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"PRP\")) {\n\t\t\t\tdouble x1=0, y1=0, z1=0;\t\t\t\t\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tx1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\ty1 = Double.parseDouble(tempstr);\n\t\t\t\t\ttempstr = st.nextToken();\n\t\t\t\t\tz1 = Double.parseDouble(tempstr);\n\t\t\t\tprp = new Vertex(x1,y1,z1,1.0);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting PRP line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tline = viewFileBR.readLine(); // should be the WINDOW line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"WINDOW\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tumin = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tumax = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tvmin = Double.parseDouble(tempstr);\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tvmax = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting WINDOW line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\n\t\t\tline = viewFileBR.readLine(); // should be the FRONT line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"FRONT\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tfrontClip = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting FRONT line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\tline = viewFileBR.readLine(); // should be the BACK line\n\t\t\tst = new StringTokenizer(line, \" \");\n\t\t\ttempstr = st.nextToken();\n\t\t\tif (tempstr.equals(\"BACK\")) {\n\t\t\t\ttempstr = st.nextToken();\n\t\t\t\tbackClip = Double.parseDouble(tempstr);\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Expecting BACK line in file \"\n\t\t\t\t\t\t+ viewfName);\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tviewFileBR.close();\n\n\t\t} catch (FileNotFoundException fnfe) {\n\t\t\tSystem.out.println(\"File not found\");\n\t\t} catch (IOException ioe) {\n\t\t\tSystem.out.println(\"couldn't read from file\");\n\t\t}\n\n\n\t\t// write code here to print out the VRP, PRP, VUP and VPN\n\t\t\n\t\tSystem.out.print(\"WINDOW =\");\n\t\tSystem.out.println(\" \" + umin + \" \" + umax + \" \" + vmin + \" \" + vmax);\n\n\t\tSystem.out.print(\"FRONT =\");\n\t\tSystem.out.println(\" \" + frontClip);\n\n\t\tSystem.out.print(\"BACK =\");\n\t\tSystem.out.println(\" \" + backClip);\n\n\t}", "protected void updateGeometryAndUVs(float[] GeometryCoords, float[] UVCoords, int[] DrawOrder) {\n // carica il buffer per i vertici\n ByteBuffer bb = ByteBuffer.allocateDirect(\n // (# di punti * 4 bytes per float)\n GeometryCoords.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(GeometryCoords);\n vertexBuffer.position(0);\n\n // carica il buffer per l'ordine con cui i vertici devono essere disegnati\n ByteBuffer dlb = ByteBuffer.allocateDirect(\n // (# di elementi * 4 bytes per int)\n DrawOrder.length * 4);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asIntBuffer();\n drawListBuffer.put(DrawOrder);\n drawListBuffer.position(0);\n\n drawListBufferCapacity = drawListBuffer.capacity();\n\n // carica il buffer che conterrà i punti che descrivono come deve essere disegnata la texture\n bb = ByteBuffer.allocateDirect(UVCoords.length * 4);\n bb.order(ByteOrder.nativeOrder());\n uvBuffer = bb.asFloatBuffer();\n uvBuffer.put(UVCoords);\n uvBuffer.position(0);\n\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"updateGeometryAndUVs\");\n }", "private void defineVertexes(String orientation){\n if(\"down\".equals(orientation)){\n y2 = y1-height;\n y3 = y1-height;\n \n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"up\")){\n y2 = y1+height;\n y3 = y1+height;\n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"left\")){\n x2 = x1-height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }else if(orientation.equals(\"right\")){\n x2 = x1+height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }\n }", "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "public void setVertices(float[] points) {\n/* 810 */ COSArray ar = new COSArray();\n/* 811 */ ar.setFloatArray(points);\n/* 812 */ getCOSObject().setItem(COSName.VERTICES, (COSBase)ar);\n/* */ }", "public CPointer<SDefVert> getVerts() throws IOException\n\t{\n\t\tlong __dna__targetAddress;\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 136);\n\t\t} else {\n\t\t\t__dna__targetAddress = __io__block.readLong(__io__address + 108);\n\t\t}\n\t\tClass<?>[] __dna__targetTypes = new Class[]{SDefVert.class};\n\t\treturn new CPointer<SDefVert>(__dna__targetAddress, __dna__targetTypes, __io__blockTable.getBlock(__dna__targetAddress, SDefVert.__DNA__SDNA_INDEX), __io__blockTable);\n\t}", "public void onUpdateVertices() {\n getVertexBufferObject().onUpdateVertices(this);\n }", "public final boolean makeRenderable() {\n if (isRenderable()) {\n return false;\n }\n\n vboIdList = new ArrayList<>();\n \n FloatBuffer positionBuffer = null;\n FloatBuffer textureCoordsBuffer = null;\n FloatBuffer normalsBuffer = null;\n IntBuffer indicesBuffer = null;\n FloatBuffer weightsBuffer = null;\n IntBuffer jointIndicesBuffer = null;\n\n try {\n //Create VAO\n vaoId = glGenVertexArrays();\n glBindVertexArray(vaoId);\n\n //Create position VBO\n int positionVboId = glGenBuffers();\n vboIdList.add(positionVboId);\n positionBuffer = MemoryUtil.memAllocFloat(positions.length);\n positionBuffer.put(positions).flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVboId);\n glBufferData(GL_ARRAY_BUFFER, positionBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(0);\n glVertexAttribPointer(0, 3, GL_FLOAT, false, 0, 0);\n\n //Create index VBO\n int indicesVboId = glGenBuffers();\n vboIdList.add(indicesVboId);\n indicesBuffer = MemoryUtil.memAllocInt(indices.length);\n indicesBuffer.put(indices).flip();\n glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indicesVboId);\n glBufferData(GL_ELEMENT_ARRAY_BUFFER, indicesBuffer, GL_STATIC_DRAW);\n\n //Create texture VBO\n int textureCoordsVboId = glGenBuffers();\n vboIdList.add(textureCoordsVboId);\n textureCoordsBuffer = MemoryUtil.memAllocFloat(textureCoords.length);\n textureCoordsBuffer.put(textureCoords).flip();\n glBindBuffer(GL_ARRAY_BUFFER, textureCoordsVboId);\n glBufferData(GL_ARRAY_BUFFER, textureCoordsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(1);\n glVertexAttribPointer(1, 2, GL_FLOAT, false, 0, 0);\n\n //Create normal VBO\n int normalsVboId = glGenBuffers();\n vboIdList.add(normalsVboId);\n if (normals.length == 0) {\n normalsBuffer = MemoryUtil.memAllocFloat(normals.length);\n } else {\n normalsBuffer = MemoryUtil.memAllocFloat(positions.length);\n }\n normalsBuffer.put(normals).flip();\n glBindBuffer(GL_ARRAY_BUFFER, normalsVboId);\n glBufferData(GL_ARRAY_BUFFER, normalsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(2);\n glVertexAttribPointer(2, 3, GL_FLOAT, false, 0, 0);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n\n //Create weight VBO\n int weightVboId = glGenBuffers();\n vboIdList.add(weightVboId);\n weightsBuffer = MemoryUtil.memAllocFloat(weights.length);\n weightsBuffer.put(weights).flip();\n glBindBuffer(GL_ARRAY_BUFFER, weightVboId);\n glBufferData(GL_ARRAY_BUFFER, weightsBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(3);\n glVertexAttribPointer(3, 4, GL_FLOAT, false, 0, 0);\n \n //Create joint indices VBO\n int jointIndicesVboId = glGenBuffers();\n vboIdList.add(jointIndicesVboId);\n jointIndicesBuffer = MemoryUtil.memAllocInt(jointIndices.length);\n jointIndicesBuffer.put(jointIndices).flip();\n glBindBuffer(GL_ARRAY_BUFFER, jointIndicesVboId);\n glBufferData(GL_ARRAY_BUFFER, jointIndicesBuffer, GL_STATIC_DRAW);\n glEnableVertexAttribArray(4);\n glVertexAttribPointer(4, 4, GL_FLOAT, false, 0, 0); \n\n glDisableVertexAttribArray(0);\n glDisableVertexAttribArray(1);\n glDisableVertexAttribArray(2);\n glDisableVertexAttribArray(3);\n glDisableVertexAttribArray(4);\n glBindVertexArray(0);\n } finally {\n freeBuffer(positionBuffer);\n freeBuffer(textureCoordsBuffer);\n freeBuffer(normalsBuffer);\n freeBuffer(indicesBuffer);\n freeBuffer(weightsBuffer);\n freeBuffer(jointIndicesBuffer);\n }\n\n return true;\n }", "@Override\n\t@GLContextRequired\n\tpublic void initGL() {\n\t\tif(Objects.isNull(va)){\n\t\t\tva = new VertexArray(4);\n\t\t\tupdateGL(false);\t\t\n\t\t}\n\t}", "public void render() {\r\n glPushMatrix();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glVertexPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glColorPointer(3, GL_FLOAT, 0, 0l);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBindTexture(GL_TEXTURE_2D, 1);\r\n glTexCoordPointer(2, GL_FLOAT, 0, 0l);\r\n glDrawArrays(GL_QUADS, 0, CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 24);\r\n glPopMatrix();\r\n }", "public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoordinate = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureCoordinate = textureCoordinates[i];\n\t\t\t}\n\n\t\t\tint textureIdx;\n\t\t\tif (faceTextures == null)\n\t\t\t{\n\t\t\t\ttextureIdx = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureIdx = faceTextures[i] & 0xFFFF;\n\t\t\t}\n\n\t\t\tif (textureIdx != -1)\n\t\t\t{\n\t\t\t\tfloat[] u = new float[3];\n\t\t\t\tfloat[] v = new float[3];\n\n\t\t\t\tif (textureCoordinate == -1)\n\t\t\t\t{\n\t\t\t\t\tu[0] = 0.0F;\n\t\t\t\t\tv[0] = 1.0F;\n\n\t\t\t\t\tu[1] = 1.0F;\n\t\t\t\t\tv[1] = 1.0F;\n\n\t\t\t\t\tu[2] = 0.0F;\n\t\t\t\t\tv[2] = 0.0F;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttextureCoordinate &= 0xFF;\n\n\t\t\t\t\tbyte textureRenderType = 0;\n\t\t\t\t\tif (textureRenderTypes != null)\n\t\t\t\t\t{\n\t\t\t\t\t\ttextureRenderType = textureRenderTypes[textureCoordinate];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (textureRenderType == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint faceVertexIdx1 = faceVertexIndices1[i];\n\t\t\t\t\t\tint faceVertexIdx2 = faceVertexIndices2[i];\n\t\t\t\t\t\tint faceVertexIdx3 = faceVertexIndices3[i];\n\n\t\t\t\t\t\tshort triangleVertexIdx1 = textureTriangleVertexIndices1[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx2 = textureTriangleVertexIndices2[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx3 = textureTriangleVertexIndices3[textureCoordinate];\n\n\t\t\t\t\t\tfloat triangleX = (float) vertexPositionsX[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleY = (float) vertexPositionsY[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleZ = (float) vertexPositionsZ[triangleVertexIdx1];\n\n\t\t\t\t\t\tfloat f_882_ = (float) vertexPositionsX[triangleVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_883_ = (float) vertexPositionsY[triangleVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_884_ = (float) vertexPositionsZ[triangleVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_885_ = (float) vertexPositionsX[triangleVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_886_ = (float) vertexPositionsY[triangleVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_887_ = (float) vertexPositionsZ[triangleVertexIdx3] - triangleZ;\n\t\t\t\t\t\tfloat f_888_ = (float) vertexPositionsX[faceVertexIdx1] - triangleX;\n\t\t\t\t\t\tfloat f_889_ = (float) vertexPositionsY[faceVertexIdx1] - triangleY;\n\t\t\t\t\t\tfloat f_890_ = (float) vertexPositionsZ[faceVertexIdx1] - triangleZ;\n\t\t\t\t\t\tfloat f_891_ = (float) vertexPositionsX[faceVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_892_ = (float) vertexPositionsY[faceVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_893_ = (float) vertexPositionsZ[faceVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_894_ = (float) vertexPositionsX[faceVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_895_ = (float) vertexPositionsY[faceVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_896_ = (float) vertexPositionsZ[faceVertexIdx3] - triangleZ;\n\n\t\t\t\t\t\tfloat f_897_ = f_883_ * f_887_ - f_884_ * f_886_;\n\t\t\t\t\t\tfloat f_898_ = f_884_ * f_885_ - f_882_ * f_887_;\n\t\t\t\t\t\tfloat f_899_ = f_882_ * f_886_ - f_883_ * f_885_;\n\t\t\t\t\t\tfloat f_900_ = f_886_ * f_899_ - f_887_ * f_898_;\n\t\t\t\t\t\tfloat f_901_ = f_887_ * f_897_ - f_885_ * f_899_;\n\t\t\t\t\t\tfloat f_902_ = f_885_ * f_898_ - f_886_ * f_897_;\n\t\t\t\t\t\tfloat f_903_ = 1.0F / (f_900_ * f_882_ + f_901_ * f_883_ + f_902_ * f_884_);\n\n\t\t\t\t\t\tu[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tu[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tu[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\n\t\t\t\t\t\tf_900_ = f_883_ * f_899_ - f_884_ * f_898_;\n\t\t\t\t\t\tf_901_ = f_884_ * f_897_ - f_882_ * f_899_;\n\t\t\t\t\t\tf_902_ = f_882_ * f_898_ - f_883_ * f_897_;\n\t\t\t\t\t\tf_903_ = 1.0F / (f_900_ * f_885_ + f_901_ * f_886_ + f_902_ * f_887_);\n\n\t\t\t\t\t\tv[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tv[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tv[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.faceTextureUCoordinates[i] = u;\n\t\t\t\tthis.faceTextureVCoordinates[i] = v;\n\t\t\t}\n\t\t}\n\t}", "public void previewOglRender();", "public void draw(GLAutoDrawable drawable) {\n\t\tGL4 gl = drawable.getGL().getGL4();\n\t\n\t\t// rotate the sun around its Y axis\n\t\tthis.getTranslation().setToIdentity();\n\t\t//this.getTranslation().rotateX(45);\n\t\tthis.getTranslation().translate(location.getX(), location.getY(),location.getZ());\n\t\t\n\t\t//\n\t\tthis.getTranslation().rotateY(count);\n\t\tif(animated){\n\t\t\tthis.getTranslation().rotateZ(45);\n\t\t\n\t\t}\n\t\tcount += 0.5f;\n\n\t\t//this.getTranslation().rotateY(count);\n\t\tcount += 0.5f;\n\n\t\tnorBuf = FloatBuffer.wrap(this.getNormals(cylinderBuf));\n\t\tverBuf = FloatBuffer.wrap(cylinderBuf);\n\t\ttexBuf = FloatBuffer.wrap(texel_positions);\n\t\t// active the first buffer and load data for vertices into shader\n\t\tgl.glBindBuffer(GL4.GL_ARRAY_BUFFER, points_vbo[0]);\n\t\tgl.glBufferData(GL4.GL_ARRAY_BUFFER, verBuf.limit() * 4, verBuf,\n\t\t\t\tGL4.GL_STATIC_DRAW);\n\t\tgl.glVertexAttribPointer(0, 3, GL4.GL_FLOAT, false, 0, 0);\n\t\tgl.glEnableVertexAttribArray(0);\n\n\t\t// active the second buffer and load texture coord into shader\n\t\tgl.glBindBuffer(GL4.GL_ARRAY_BUFFER, points_vbo[1]);\n\t\tgl.glBufferData(GL4.GL_ARRAY_BUFFER, norBuf.limit() * 4, norBuf,\n\t\t\t\tGL4.GL_STATIC_DRAW);\n\t\tgl.glVertexAttribPointer(1, 3, GL4.GL_FLOAT, false, 0, 0);\n\t\tgl.glEnableVertexAttribArray(1);\n\n\t\tgl.glBindBuffer(GL4.GL_ARRAY_BUFFER, points_vbo[2]);\n\t\tgl.glBufferData(GL4.GL_ARRAY_BUFFER, texBuf.limit() * 4, texBuf,\n\t\t\t\tGL4.GL_STATIC_DRAW);\n\t\tgl.glVertexAttribPointer(2, 2, GL4.GL_FLOAT, false, 0, 0);\n\t\tgl.glEnableVertexAttribArray(2);\n\t\t\n\t\tgl.glDrawArraysInstanced(GL4.GL_TRIANGLES, 0, cylinderBuf.length, 1);\n\n\t}", "public Mesh load(String filename)\r\n\t{\r\n\t\tMesh mesh = new Mesh(); mesh.addFileMetaData(filename);\r\n \r\n\t\t//Open file and read in vertices/faces\r\n\t\tScanner sc;\r\n\t\tString line;\r\n\t\t\r\n\t\ttry{\r\n\t\t\tBufferedReader ins = new BufferedReader(new FileReader(filename));\r\n\t\t\tins.readLine(); //ID; always \"nff\"\r\n\t\t\tins.readLine(); //Version\r\n\t\t\t\r\n\t\t\t//We need to move through the header to find the start of the first object\r\n\t\t\t//This will be the first line that contains text that does not start with\r\n\t\t\t//\"viewpos\" or \"viewdir\" (optional features) or \"//\" (comment)\r\n\t\t\twhile(true){\r\n\t\t\t\tline = ins.readLine();\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\r\n\t\t\t\tif(sc.hasNext() == true){\r\n\t\t\t\t\tString token = sc.next();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif((\"viewpos\".equalsIgnoreCase(token) == false) && \r\n\t\t\t\t\t\t\t(\"viewdir\".equalsIgnoreCase(token) == false) &&\r\n\t\t\t\t\t\t\t(\"//\".equals(token.substring(0, 2)) == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsc.close();\r\n\t\t\t\r\n\t\t\t//The rest of the file is filled up with objects\r\n\t\t\twhile(true){\r\n\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\tString name = sc.next();\r\n\t\t\t\tsc.close();\r\n\t\t\t\t\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\r\n\t\t\t\tVector<Point> vertices = new Vector<Point>();\r\n\t\t\t\tVector<Face> faces = new Vector<Face>();\r\n\t\t\t\t\r\n\t\t\t\tint vertexCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have vertexCount lines next with 3 floats per line\r\n\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextFloat() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tfloat x = sc.nextFloat();\r\n\t\t\t\t\t\tfloat y = sc.nextFloat();\r\n\t\t\t\t\t\tfloat z = sc.nextFloat();\r\n\t\t\t\t\t\tvertices.add(new Point(x, y, z));\r\n\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tsc.close();\r\n\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\tint polygonCount = sc.nextInt();\r\n\t\t\t\t\r\n\t\t\t\t//We have polygonCount lines defining the faces\r\n\t\t\t\t//The first int on each line gives the number of\r\n\t\t\t\t//vertices making up that particular face\r\n\t\t\t\t//Then the indexes of those vertices are listed\r\n\t\t\t\twhile(polygonCount > 0){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(ins.readLine());\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(sc.hasNextInt() == false){\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tvertexCount = sc.nextInt();\r\n\t\t\t\t\t\tArrayList<Integer> al = new ArrayList<Integer>();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\twhile(vertexCount > 0){\r\n\t\t\t\t\t\t\tal.add(sc.nextInt());\r\n\t\t\t\t\t\t\tvertexCount--;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tfaces.add(new Face(al));\r\n\t\t\t\t\t\tpolygonCount--;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tmesh.addData(vertices, faces, -1, name);\r\n\t\t\t\t\r\n\t\t\t\t//The last thing we need to do is read up to and including\r\n\t\t\t\t//the next object's name or until we reach the end of the file\r\n\t\t\t\t\r\n\t\t\t\twhile((line = ins.readLine()) != null){\r\n\t\t\t\t\tsc.close();\r\n\t\t\t\t\tsc = new Scanner(line);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//The next non-blank line that doesn't start with \"//\" is the start of the next object\r\n\t\t\t\t\tif((sc.hasNext() == true) && (sc.next().substring(0, 2).equals(\"//\") == false)){\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tsc.close();\r\n\t\t\t\tif(line == null){ //EOF\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}catch(Exception e){\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null; \r\n\t\t}\r\n\t\t\r\n\t\tmesh.initialize();\r\n \r\n\t\treturn mesh;\r\n\t}", "public void create(final ArrayList<Vertice> _vertices, final int _plane){\n\t\tsetup();\n\t\tThread t = new Thread(){\n\t\t\tpublic void run(){\n\t\t\t\tdefaultGroup = new Group(\"default\");\n\t\t\t\tdefaultSegment = new Segment();\n\n\t\t\t\tgroups.clear();\n\t\t\t\tsegments.clear();\n\t\t\t\t// adding default variables to the global data table creating the\n\t\t\t\t// default group\n\t\t\t\tgroups.put(\"default\", defaultGroup);\n\n\t\t\t\tGroup currentGroup = defaultGroup;\n\n\t\t\t\t// creating the default model segment\n\t\t\t\tsegments.add(defaultSegment);\n\n\t\t\t\tcurrentGroup.segments.add(defaultSegment);\n\n\t\t\t\tSegment currentModelSegment = defaultSegment;\n\n\t\t\t\t// this factor will determine which plan the vector will be projected to.\n\t\t\t\tfloat[] fac = new float[]{(_plane == 2)?0:1, (_plane == 1)?0:1, (_plane == 0)?0:1};\n\n\t\t\t\tfor(Vertice vertice: _vertices){\n\t\t\t\t\tVertice tmpvOrig = new Vertice(vertice);\n\t\t\t\t\tmodelVertices.add(tmpvOrig);\n\t\t\t\t\ttmpvOrig.index = modelVertices.indexOf(tmpvOrig);\n\t\t\t\t\tVertice tmpvPrj = new Vertice(vertice.x() * fac[0], vertice.y() * fac[1], vertice.z() * fac[2]);\n\t\t\t\t\ttmpvPrj.isPickable = false;\n\t\t\t\t\tmodelVertices.add(tmpvPrj);\n\t\t\t\t\ttmpvPrj.index = modelVertices.indexOf(tmpvPrj);\n\n\t\t\t\t\tFace f = new Face();\n\t\t\t\t\tf.indexType = LINE;\n\n\t\t\t\t\t// we have to add a 1 here because obj files start their indices with 1 and not with 0\n\t\t\t\t\tf.vertexIndices.add(tmpvOrig.index + 1);\n\t\t\t\t\tf.vertexIndices.add(tmpvPrj.index + 1);\n\n\t\t\t\t\tcurrentModelSegment.faces.add(f);\n\t\t\t\t}\n\t\t\t\tupdateSegments();\n\t\t\t\trefreshGeometry();\n\t\t\t\tmyContainer.dataEvent(\"fileparsed\");\n\n\t\t\t}\n\t\t};\n\t\tt.start();\n\t}", "public void setVertex(Object vertex2){\r\n this.vertex = vertex2;\r\n }", "public lo(Entity paramwv)\r\n/* 15: */ {\r\n/* 16:23 */ this.a = paramwv.getID();\r\n/* 17:24 */ this.b = MathUtils.floor(paramwv.xPos * 32.0D);\r\n/* 18:25 */ this.c = MathUtils.floor(paramwv.yPos * 32.0D);\r\n/* 19:26 */ this.d = MathUtils.floor(paramwv.zPos * 32.0D);\r\n/* 20:27 */ this.e = ((byte)(int)(paramwv.yaw * 256.0F / 360.0F));\r\n/* 21:28 */ this.f = ((byte)(int)(paramwv.pitch * 256.0F / 360.0F));\r\n/* 22:29 */ this.g = paramwv.landing;\r\n/* 23: */ }", "public void setCamVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n camX[0] = x0;\n camX[1] = x1;\n camX[2] = x2;\n \n camY[0] = y0;\n camY[1] = y1;\n camY[2] = y2;\n \n camZ[0] = z0;\n camZ[1] = z1;\n camZ[2] = z2;\n }", "public void draw() {\n // añadimos el programa al entorno de opengl\n GLES20.glUseProgram(mProgram);\n\n // obtenemos el identificador de los sombreados del los vertices a vPosition\n positionHandle = GLES20.glGetAttribLocation(mProgram, \"vPosition\");\n\n // habilitamos el manejo de los vertices del triangulo\n GLES20.glEnableVertexAttribArray(positionHandle);\n\n // Preparamos los datos de las coordenadas del triangulo\n GLES20.glVertexAttribPointer(positionHandle, COORDS_PER_VERTEX,\n GLES20.GL_FLOAT, false,\n vertexStride, vertexBuffer);\n\n // Obtenemos el identificador del color del sombreado de los fragmentos\n colorHandle = GLES20.glGetUniformLocation(mProgram, \"vColor\");\n\n // Establecemos el color para el dibujo del triangulo\n GLES20.glUniform4fv(colorHandle, 1, color, 0);\n\n // SE dibuja el triangulo\n GLES20.glDrawArrays(GLES20.GL_LINE_LOOP, 0, vertexCount);\n\n // Deshabilitamos el arreglo de los vertices (que dibuje una sola vez)\n GLES20.glDisableVertexAttribArray(positionHandle);\n }", "public CubeGL2() {\n // Define points for a cube.\n // X, Y, Z\n mCubeVertexData = new float[]\n {\n // Front face\n -1.0f, 1.0f, 1.0f,\n -1.0f, -1.0f, 1.0f,\n 1.0f, 1.0f, 1.0f,\n -1.0f, -1.0f, 1.0f,\n 1.0f, -1.0f, 1.0f,\n 1.0f, 1.0f, 1.0f,\n // Right face\n 1.0f, 1.0f, 1.0f,\n 1.0f, -1.0f, 1.0f,\n 1.0f, 1.0f, -1.0f,\n 1.0f, -1.0f, 1.0f,\n 1.0f, -1.0f, -1.0f,\n 1.0f, 1.0f, -1.0f,\n // Back face\n 1.0f, 1.0f, -1.0f,\n 1.0f, -1.0f, -1.0f,\n -1.0f, 1.0f, -1.0f,\n 1.0f, -1.0f, -1.0f,\n -1.0f, -1.0f, -1.0f,\n -1.0f, 1.0f, -1.0f,\n // Left face\n -1.0f, 1.0f, -1.0f,\n -1.0f, -1.0f, -1.0f,\n -1.0f, 1.0f, 1.0f,\n -1.0f, -1.0f, -1.0f,\n -1.0f, -1.0f, 1.0f,\n -1.0f, 1.0f, 1.0f,\n // Top face\n -1.0f, 1.0f, -1.0f,\n -1.0f, 1.0f, 1.0f,\n 1.0f, 1.0f, -1.0f,\n -1.0f, 1.0f, 1.0f,\n 1.0f, 1.0f, 1.0f,\n 1.0f, 1.0f, -1.0f,\n // Bottom face\n 1.0f, -1.0f, -1.0f,\n 1.0f, -1.0f, 1.0f,\n -1.0f, -1.0f, -1.0f,\n 1.0f, -1.0f, 1.0f,\n -1.0f, -1.0f, 1.0f,\n -1.0f, -1.0f, -1.0f,\n };\n // R, G, B, A\n mCubeColourData = new float[]\n {\n // Front face\n 1.0f, 0.0f, 0.0f, 1.0f,\n 1.0f, 0.0f, 0.0f, 1.0f,\n 1.0f, 0.0f, 0.0f, 1.0f,\n 1.0f, 0.0f, 0.0f, 1.0f,\n 1.0f, 0.0f, 0.0f, 1.0f,\n 1.0f, 0.0f, 0.0f, 1.0f,\n // Right face\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n 0.0f, 1.0f, 0.0f, 1.0f,\n // Back face\n 0.0f, 0.0f, 1.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n 0.0f, 0.0f, 1.0f, 1.0f,\n // Left face\n 1.0f, 1.0f, 0.0f, 1.0f,\n 1.0f, 1.0f, 0.0f, 1.0f,\n 1.0f, 1.0f, 0.0f, 1.0f,\n 1.0f, 1.0f, 0.0f, 1.0f,\n 1.0f, 1.0f, 0.0f, 1.0f,\n 1.0f, 1.0f, 0.0f, 1.0f,\n // Top face\n 0.0f, 1.0f, 1.0f, 1.0f,\n 0.0f, 1.0f, 1.0f, 1.0f,\n 0.0f, 1.0f, 1.0f, 1.0f,\n 0.0f, 1.0f, 1.0f, 1.0f,\n 0.0f, 1.0f, 1.0f, 1.0f,\n 0.0f, 1.0f, 1.0f, 1.0f,\n // Bottom face\n 1.0f, 0.0f, 1.0f, 1.0f,\n 1.0f, 0.0f, 1.0f, 1.0f,\n 1.0f, 0.0f, 1.0f, 1.0f,\n 1.0f, 0.0f, 1.0f, 1.0f,\n 1.0f, 0.0f, 1.0f, 1.0f,\n 1.0f, 0.0f, 1.0f, 1.0f\n };\n // X, Y, Z\n mCubeNormalData = new float[]\n {\n // Front face\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n // Right face\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n // Back face\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n // Left face\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n // Top face\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n // Bottom face\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f\n };\n // X, Y\n // Texture coordinate data.\n mCubeTextureCoordinateData = new float[]\n {\n // Front face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n // Right face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n // Back face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n // Left face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n // Top face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f,\n // Bottom face\n 0.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 0.0f,\n 0.0f, 1.0f,\n 1.0f, 1.0f,\n 1.0f, 0.0f\n };\n // Initialize the buffers.\n mCubeVertices = ByteBuffer.allocateDirect(mCubeVertexData.length * 4)\n .order(ByteOrder.nativeOrder()).asFloatBuffer();\n mCubeVertices.put(mCubeVertexData).position(0);\n mCubeColours = ByteBuffer.allocateDirect(mCubeColourData.length * 4)\n .order(ByteOrder.nativeOrder()).asFloatBuffer();\n mCubeColours.put(mCubeColourData).position(0);\n mCubeNormals = ByteBuffer.allocateDirect(mCubeNormalData.length * 4)\n .order(ByteOrder.nativeOrder()).asFloatBuffer();\n mCubeNormals.put(mCubeNormalData).position(0);\n mCubeTextureCoordinates = ByteBuffer.allocateDirect(mCubeTextureCoordinateData.length * 4)\n .order(ByteOrder.nativeOrder()).asFloatBuffer();\n mCubeTextureCoordinates.put(mCubeTextureCoordinateData).position(0);\n Matrix.setIdentityM(mModelMatrix, 0);\n }", "public float[] getVertices() {\n/* 793 */ COSBase base = getCOSObject().getDictionaryObject(COSName.VERTICES);\n/* 794 */ if (base instanceof COSArray)\n/* */ {\n/* 796 */ return ((COSArray)base).toFloatArray();\n/* */ }\n/* 798 */ return null;\n/* */ }", "int getVertices();", "public int numVertices() { return numV; }", "public static Object[][] createVBO(Model model) \n\t{\n\t\tint vboVertexHandle = glGenBuffers();\n\t\tint vboNormalHandle = glGenBuffers();\n\t\tint vboColorHandle = glGenBuffers();\n\t\tint vboTexHandle = glGenBuffers();\n\t\tint vboTexIDHandle = glGenBuffers();\n\n\t\tFloatBuffer vertices = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer normals = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer colors = reserveData(model.faces.size() * 9);\n\t\tFloatBuffer textCoords = reserveData(model.faces.size() * 6);\n\t\tIntBuffer textID = BufferUtils.createIntBuffer(model.faces.size() * 3);//reserveData(model.faces.size() * 3);\n\n\t\tfor (Face face : model.faces)\n\t\t{\n\t\t\tvertices.put(asFloats(face.points[0]));\n\t\t\tvertices.put(asFloats(face.points[1]));\n\t\t\tvertices.put(asFloats(face.points[2]));\n\n\t\t\tnormals.put(asFloats(face.normals[0]));\n\t\t\tnormals.put(asFloats(face.normals[1]));\n\t\t\tnormals.put(asFloats(face.normals[2]));\n\n\t\t\tif(face.material!=null)\n\t\t\t{\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t\tcolors.put(asFloats(face.material.diffuse));\n\t\t\t}\n\t\t\tif(face.textureCoords!=null)\n\t\t\t{\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[0]));\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[1]));\n\t\t\t\ttextCoords.put(asFloats(face.textureCoords[2]));\n\t\t\t}\n\t\t\tif(face.material!=null)\n\t\t\t{\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t\ttextID.put(face.material.id);\n\t\t\t}\n\t\t}\n\t\tvertices.flip();\n\t\tnormals.flip();\n\t\tcolors.flip();\n\t\ttextCoords.flip();\n\t\ttextID.flip();\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboVertexHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertices, GL_STATIC_DRAW);\n\t\tglVertexPointer(3, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboNormalHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, normals, GL_STATIC_DRAW);\n\t\tglNormalPointer(GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboColorHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, colors, GL_STATIC_DRAW);\n\t\tglColorPointer(3, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboTexHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, textCoords, GL_STATIC_DRAW);\n\t\tglTexCoordPointer(2, GL_FLOAT, 0, 0L);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboTexIDHandle);\n\t\tglBufferData(GL_ARRAY_BUFFER, textID, GL_STATIC_DRAW);\n\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\n\t\treturn new Object[][]{\n\t\t\t\t{vboVertexHandle, vertices}, \n\t\t\t\t{vboNormalHandle, normals}, \n\t\t\t\t{vboTexHandle, textCoords}, \n\t\t\t\t{vboColorHandle, colors},\n\t\t\t\t{vboTexIDHandle, textID}\n\t\t};\n\t}", "private void process(ArrayList<Float> points) {\n downsample(3, points);\n vertices = new Vector3f[nrows * ncols];\n texcoord = BufferUtils.createFloatBuffer(2 * nrows * ncols);\n indexes = BufferUtils.createIntBuffer(6 * (nrows - 1) * (ncols - 1));\n Vector3f[][][] fnormals = new Vector3f[nrows - 1][ncols - 1][2];\n normals = new Vector3f[nrows * ncols];\n float x, z;\n\n System.out.println(\"Processing \" + nrows + \"x\" + ncols + \" terrain...\");\n\n // First make vertices + texcoords\n x = 0.0f;\n for (int row = 0; row < nrows; row++) {\n z = 0.0f;\n for (int col = 0; col < ncols; col++) {\n vertices[(row * ncols) + col] = new Vector3f(x, data[row][col], z);\n texcoord.put(col / (float) ncols);\n texcoord.put(row / (float) nrows);\n z += cellsize;\n }\n x += cellsize;\n }\n // Indexes + face normals\n System.out.println(\"Populating faces...\");\n for (int row = 0; row < (nrows - 1); row++) {\n for (int col = 0; col < (ncols - 1); col++) {\n int base = 6 * ((row * (ncols - 1)) + col);\n // Triangle 1\n indexes.put((row * ncols) + col); // a\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col); // c\n // Triangle 2\n indexes.put(((row + 1) * ncols) + col); // c\n indexes.put((row * ncols) + col + 1); // b\n indexes.put(((row + 1) * ncols) + col + 1); // d\n // Faces\n base = (row * ncols) + col;\n Vector3f a = vertices[base];\n Vector3f b = vertices[base + 1];\n Vector3f c = vertices[base + ncols];\n Vector3f d = vertices[base + ncols + 1];\n Vector3f ba = b.subtract(a);\n Vector3f ca = c.subtract(a);\n Vector3f bc = b.subtract(c);\n Vector3f dc = d.subtract(c);\n // ormal.subtractLocal(pointa).crossLocal(pointc.x - pointa.x,\n // pointc.y - pointa.y, pointc.z - pointa.z);\n fnormals[row][col][0] = ba.crossLocal(ca).normalizeLocal();\n fnormals[row][col][1] = bc.crossLocal(dc).normalizeLocal();\n // Triangle ta = new Triangle(a,b,c);\n // Triangle tb = new Triangle(c,b,d);\n }\n }\n System.out.println(\"Calculating face normals...\");\n // Vector normals\n Vector3f t;\n // Corners\n // TL\n t = fnormals[0][0][0].add(fnormals[0][0][1]);\n t.normalizeLocal();\n normals[0] = t;\n // TR\n t = fnormals[0][ncols - 2][0].add(fnormals[0][ncols - 2][1]);\n t.normalizeLocal();\n normals[ncols - 1] = t;\n // BL\n t = fnormals[nrows - 2][0][0].add(fnormals[nrows - 2][0][1]);\n t.normalizeLocal();\n normals[(nrows - 1) * ncols] = t;\n // BR\n t = fnormals[nrows - 2][ncols - 2][0].add(fnormals[nrows - 2][ncols - 2][1]);\n t.normalizeLocal();\n normals[(nrows * ncols) - 1] = t;\n // Do first row and last row\n for (int col = 1; col < (ncols - 1); col++) {\n // First row\n t = fnormals[0][col - 1][0].add(fnormals[0][col - 1][1]);\n t.addLocal(fnormals[0][col][0]);\n t.addLocal(fnormals[0][col][1]);\n t.normalizeLocal();\n normals[col] = t;\n // Last row\n t = fnormals[nrows - 2][col - 1][0].add(fnormals[nrows - 2][col - 1][1]);\n t.addLocal(fnormals[nrows - 2][col][0]);\n t.addLocal(fnormals[nrows - 2][col][1]);\n t.normalizeLocal();\n normals[((nrows - 1) * ncols) + col] = t;\n }\n // Do first and last column\n for (int row = 1; row < (nrows - 1); row++) {\n // First col\n t = fnormals[row - 1][0][0].add(fnormals[row - 1][0][1]);\n t.addLocal(fnormals[row][0][0]);\n t.addLocal(fnormals[row][0][1]);\n t.normalizeLocal();\n normals[row * ncols] = t;\n // Last col\n t = fnormals[row - 1][ncols - 2][0].add(fnormals[row - 1][ncols - 2][1]);\n t.addLocal(fnormals[row][ncols - 2][0]);\n t.addLocal(fnormals[row][ncols - 2][1]);\n t.normalizeLocal();\n normals[(row * ncols) + (ncols - 1)] = t;\n // Centre cols\n for (int col = 1; col < (ncols - 1); col++) {\n t = fnormals[row - 1][col - 1][0].add(fnormals[row - 1][col - 1][1]);\n t.addLocal(fnormals[row - 1][col][0]);\n t.addLocal(fnormals[row - 1][col][1]);\n t.addLocal(fnormals[row][col - 1][0]);\n t.addLocal(fnormals[row][col - 1][1]);\n t.addLocal(fnormals[row][col][0]);\n t.addLocal(fnormals[row][col][1]);\n t.normalizeLocal();\n normals[(row * ncols) + col] = t;\n }\n }\n System.out.println(\"Processing finished...\");\n setBuffer(VertexBuffer.Type.Position, 3, BufferUtils.createFloatBuffer(vertices));\n setBuffer(VertexBuffer.Type.TexCoord, 2, texcoord);\n setBuffer(VertexBuffer.Type.Index, 3, indexes);\n setBuffer(VertexBuffer.Type.Normal, 3, BufferUtils.createFloatBuffer(normals));\n updateBound();\n System.out.println(\"NE corner: \" + vertices[vertices.length - 1].mult(0.006f));\n // Hint to renderer that we don't plan on modifying the terrain.\n this.setStatic();\n }", "public void onUpdateTextureCoordinates() {\n getVertexBufferObject().onUpdateTextureCoordinates(this);\n }", "private void parseVertex(String line) {\n\n String first_float = line.substring(2);\n first_float = first_float.trim();\n int second_space_index = first_float.indexOf(' ') + 1;\n String second_float = first_float.substring(second_space_index);\n second_float = second_float.trim();\n int third_space_index = second_float.indexOf(' ') + 1;\n String third_float = second_float.substring(third_space_index);\n third_float = third_float.trim();\n\n float vx = parseFloat(first_float.substring(0, second_space_index - 1));\n float vy = parseFloat(second_float.substring(0, third_space_index - 1));\n float vz = parseFloat(third_float);\n\n mMaxX = Math.max(mMaxX, vx);\n mMaxY = Math.max(mMaxY, vy);\n mMaxZ = Math.max(mMaxZ, vz);\n\n mMinX = Math.min(mMinX, vx);\n mMinY = Math.min(mMinY, vy);\n mMinZ = Math.min(mMinZ, vz);\n\n mVertices.add(vx);\n mVertices.add(vy);\n mVertices.add(vz);\n mLastVertexNumber++;\n\n if (mHaveMaterialColor) {\n mColors.add(mMaterialColor[0]);\n mColors.add(mMaterialColor[1]);\n mColors.add(mMaterialColor[2]);\n }\n }", "public void rebuildMesh(float initX, float initY, float initZ) {\r\n VBOColorHandle = glGenBuffers();\r\n VBOVertexHandle = glGenBuffers();\r\n VBOTextureHandle = glGenBuffers();\r\n int height;\r\n FloatBuffer VertexPositionData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexColorData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n FloatBuffer VertexTextureData = BufferUtils.createFloatBuffer(CHUNK_SIZE * CHUNK_SIZE * CHUNK_SIZE * 72);\r\n for (float x = -initX; x < -initX + CHUNK_SIZE; x++) {\r\n for (float z = -initZ; z < -initZ + CHUNK_SIZE; z++) {\r\n height = (int) (((sNoise.getNoise((int)x + (int)initX/2, (int)z + (int)initZ/2)) + 1) / 2 * 10) + 5;\r\n for (float y = 0; y <= height; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n if (height < 11) {\r\n for (float y = height; y < 11; y++) {\r\n VertexPositionData.put(createCube((float)(initX + x * CUBE_LENGTH), (float)(initY + y * CUBE_LENGTH), (float)(initZ + z * CUBE_LENGTH)));\r\n VertexColorData.put(createCubeVertexCol(getCubeColor(blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ])));\r\n VertexTextureData.put(createTexCube((float) 0, (float) 0, blocks[(int) x + (int)initX][(int) y][(int) z + (int)initZ]));\r\n }\r\n }\r\n }\r\n }\r\n VertexColorData.flip();\r\n VertexPositionData.flip();\r\n VertexTextureData.flip();\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOVertexHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexPositionData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOColorHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexColorData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n glBindBuffer(GL_ARRAY_BUFFER, VBOTextureHandle);\r\n glBufferData(GL_ARRAY_BUFFER, VertexTextureData, GL_STATIC_DRAW);\r\n glBindBuffer(GL_ARRAY_BUFFER, 0);\r\n }", "public interface RenderMesh extends NvDisposeable{\n\n void initlize(MeshParams params);\n\n void draw();\n\n public static class MeshParams{\n public int posAttribLoc;\n public int norAttribLoc;\n public int texAttribLoc;\n public int tanAttribLoc = -1; // tangent attribution is diabled default.\n }\n}", "public void vertex(PointType p)\r\n\t{\r\n\t // System.out.println(\"vert: \"+p.x+\", \"+p.y+\", \"+p.z);\r\n\t\tgl.glVertex3d(p.x, p.y, p.z);\r\n\t}", "public Vertex[] getVertices() {\n return new Vertex[]{v1, v2};\n }", "public static InterleavedVertexBuffer createInterleavedQuadWithTextureCoords() {\n InterleavedVertexBuffer.Builder builder = new InterleavedVertexBuffer.Builder(BufferUsage.STATIC);\n builder.add(\"a_Pos\", new VerticesData(BufferTestUtil.createQuadStrip(0.5f, 0.5f, 0, 0)));\n builder.add(\"a_texCoord\", new TextureCoordData(BufferTestUtil.createQuadTextureCoords()));\n return builder.build();\n }", "public void createBufferObjects(GL gl) {\n int[] vboIds = new int[2];\r\n GL11 gl11 = (GL11) gl;\r\n gl11.glGenBuffers(2, vboIds, 0);\r\n mVertexBufferObjectId = vboIds[0];\r\n mElementBufferObjectId = vboIds[1];\r\n\r\n // Upload the vertex data\r\n gl11.glBindBuffer(GL11.GL_ARRAY_BUFFER, mVertexBufferObjectId);\r\n mVertexByteBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ARRAY_BUFFER, mVertexByteBuffer.capacity(), mVertexByteBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n gl11.glBindBuffer(GL11.GL_ELEMENT_ARRAY_BUFFER, mElementBufferObjectId);\r\n mIndexBuffer.position(0);\r\n gl11.glBufferData(GL11.GL_ELEMENT_ARRAY_BUFFER, mIndexBuffer.capacity() * CHAR_SIZE, mIndexBuffer, GL11.GL_STATIC_DRAW);\r\n\r\n // We don't need the in-memory data any more\r\n mVertexBuffer = null;\r\n mVertexByteBuffer = null;\r\n mIndexBuffer = null;\r\n }", "public void drawBale() {\n\t\tvertexData.position(0);\n\t\tglVertexAttribPointer(mPositionHandle, POSITION_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, vertexData);\n\n\t\tglEnableVertexAttribArray(mPositionHandle);\n\n\t\t// Pass in the color information\n\t\tcolorData.position(0);\n\t\tglVertexAttribPointer(mColorHandle, COLOR_COMPONENT_COUNT,\n\t\t\t\tGL_FLOAT, false, 0, colorData);\n\n\t\tglEnableVertexAttribArray(mColorHandle);\n\t\t\n\t\t// Pass in the texture coordinate information\n textureData.position(0);\n GLES20.glVertexAttribPointer(mTextureCoordHandle, TEXTURE_COMPONENT_COUNT, GLES20.GL_FLOAT, false, \n \t\t0, textureData);\n \n GLES20.glEnableVertexAttribArray(mTextureCoordHandle);\n\n\t\t// This multiplies the view matrix by the model matrix, and stores the\n\t\t// result in the MVP matrix\n\t\t// (which currently contains model * view).\n\t\tmultiplyMM(mMVPMatrix, 0, mViewMatrix, 0, mModelMatrix, 0);\n\n\t\t// Pass in the modelview matrix.\n\t\tglUniformMatrix4fv(mMVMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// This multiplies the modelview matrix by the projection matrix, and\n\t\t// stores the result in the MVP matrix\n\t\t// (which now contains model * view * projection).\n\t\tMatrix.multiplyMM(mMVPMatrix, 0, mProjectionMatrix, 0, mMVPMatrix, 0);\n\n\t\t// Pass in the combined matrix.\n\t\tglUniformMatrix4fv(mMVPMatrixHandle, 1, false, mMVPMatrix, 0);\n\n\t\t// Draw the cube.\n\t\tglDrawArrays(GL_TRIANGLES, 0, 60);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 60, 12);\n\t\tglDrawArrays(GL_TRIANGLE_FAN, 72, 12);\n\t}", "public java.util.List<V> getVertices();", "List<V> getVertexList();", "abstract public Vertex getReadIn();", "private void getVertex(int x, int y, Vector3f vertex) {\n\t\tfloat height = getRawHeightFieldValue(x, y);\n\n\t\tswitch (m_upAxis) {\n\t\tcase 0: {\n\t\t\tvertex.set(height - m_localOrigin.x, (-m_width / 2.0f) + x, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, height - m_localOrigin.y, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 2: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, (-m_length / 2.0f) + y, height - m_localOrigin.z);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\n\t\tvertex.x = vertex.x * m_localScaling.x;\n\t\tvertex.y = vertex.y * m_localScaling.y;\n\t\tvertex.z = vertex.z * m_localScaling.z;\n\t}", "@Override\n public void display(GLAutoDrawable drawable) {\n if (ds == null) {\n return;\n }\n\n //VolumetricDataSet ds = new VolumetricDataSet(FileReader.class.getResourceAsStream(\"/marschnerlobb.raw\"), 41, 41, 41);\n int[][][] allDimensions = ds.getVolumeData();\n\n int[] dimensions = ds.getDimensions();\n\n int x = dimensions[0];\n int y = dimensions[1];\n int z = dimensions[2];\n\n System.out.println(\"x = \" + x);\n System.out.println(\"y = \" + y);\n System.out.println(\"z = \" + z);\n\n GL gl = drawable.getGL();\n\n gl.glClear(GL.GL_COLOR_BUFFER_BIT);\n\n// gl.glColor3f(0.94f, 0.94f, 0.94f);\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(330, 0);\n// gl.glVertex2f(330, 720);\n// gl.glVertex2f(333, 0);\n// gl.glVertex2f(333, 720);\n// gl.glEnd();\n//\n// gl.glBegin(GL.GL_POLYGON);\n// gl.glVertex2f(165, 0);\n// gl.glVertex2f(165, 720);\n// gl.glVertex2f(168, 0);\n// gl.glVertex2f(168, 720);\n// gl.glEnd();\n// gl.glPushMatrix();\n// gl.glTranslated(-200.0, 0.0, 0.0);\n gl.glBegin(GL.GL_QUADS);\n\n for (int i = 0; i < z; i++) {\n for (int j = 0; j < y; j++) {\n float col = (float) allDimensions[j][100][i] / 255f;\n System.out.println(allDimensions[100][j][i] + \": \" + col);\n gl.glColor3f(col, col, col);\n\n gl.glVertex2d(i, j);\n gl.glVertex2d((i + 1), j);\n gl.glVertex2d((i + 1), (j + 1));\n gl.glVertex2d(i, (j + 1));\n System.out.println(\"x \" + i + \": y \" + j);\n }\n\n }\n gl.glEnd();\n //gl.glPopMatrix();\n\n// gl.glPushMatrix();\n// gl.glTranslated(0.0, 0.0, 0.0);\n// gl.glBegin(GL.GL_POLYGON);\n//\n// for (int i = 1; i < 41; i++) {\n// for (int j = 0; j < 41; j++) {\n// if (allDimensions[j][i][0] <= 225) {\n// gl.glColor3f(0, 1, 0);\n// } else {\n// gl.glColor3f(1, 1, 1);\n// }\n//\n// gl.glVertex2d(allDimensions[0][j][i], allDimensions[0][i][j]);\n// }\n//\n// }\n// gl.glEnd();\n// gl.glPopMatrix();\n gl.glFlush();\n }", "private void createVertexBuffer(int attributeNumber, float[] data){\n\t\tint vboID = glGenBuffers();\n\t\tvbos.add(vboID);\n\n\t\t// activate buffer and upload data\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vboID);\n\t\tFloatBuffer buffer = storeDataInFloatBuffer(data);\n\t\tglBufferData(GL_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n\n\t\t// tell OpenGL how to interpret the data\n\t\tglVertexAttribPointer(attributeNumber,3,GL_FLOAT,false,0,0);\n\n\t\t// unbind buffer\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t}", "public Vertex(){\n\n }", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "Vertex(){}", "public ObjModel(File file) throws FileNotFoundException {\r\n\r\n\t\tvertices = new ArrayList<>();\r\n\t\ttextureCoordinates = new ArrayList<>();\r\n\t\tfaces = new ArrayList<>();\r\n\r\n\t\tScanner scanner = new Scanner(file);\r\n\r\n\t\twhile (scanner.hasNextLine()) {\r\n\t\t\tString[] line = scanner.nextLine().split(\" \");\r\n\t\t\tif (line[0].equals(\"v\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\tfloat z = Float.parseFloat(line[3]);\r\n\t\t\t\tvertices.add(new Vector3f(x, y, z));\r\n\t\t\t} else if (line[0].equals(\"vt\")) {\r\n\t\t\t\tfloat x = Float.parseFloat(line[1]);\r\n\t\t\t\tfloat y = Float.parseFloat(line[2]);\r\n\t\t\t\ttextureCoordinates.add(new Vector3f(x, y));\r\n\t\t\t} else if (line[0].equals(\"f\")) {\r\n\t\t\t\tFace face = new Face();\r\n\t\t\t\tfor (int i = 1; i < line.length; i++) {\r\n\t\t\t\t\tString[] sections = line[i].split(\"/\");\r\n\t\t\t\t\tif (sections.length >= 1) {\r\n\t\t\t\t\t\tint vertex = Integer.parseInt(sections[0]);\r\n\t\t\t\t\t\tface.addVertex(vertex);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (sections.length >= 2) {\r\n\t\t\t\t\t\tint textureCoordinate = Integer.parseInt(sections[1]);\r\n\t\t\t\t\t\tface.addTextureCoordinate(textureCoordinate);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tfaces.add(face);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tscanner.close();\r\n\t}", "public static Model loadModel(File f)\n\t{\n\t\ttry\n\t\t{\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(f));\n\n\t\t\tModel m = new Model(f.getPath());\n\t\t\tMaterial cur = null;\n\t\t\tList<Material> mats = new ArrayList<Material>();\n\n\t\t\tString line;\n\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t{\n\t\t\t\t//Indicates a vertex\n\t\t\t\tif (line.startsWith(\"v \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.verts.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a vertex normal\n\t\t\t\telse if (line.startsWith(\"vn \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tfloat z = Float.valueOf(line.split(\" \")[3]);\n\t\t\t\t\tm.norms.add(new Vector3f(x, y, z));\n\t\t\t\t} \n\t\t\t\t//Indicates a texture coordinate\n\t\t\t\telse if (line.startsWith(\"vt \")) \n\t\t\t\t{\n\t\t\t\t\tfloat x = Float.valueOf(line.split(\" \")[1]);\n\t\t\t\t\tfloat y = Float.valueOf(line.split(\" \")[2]);\n\t\t\t\t\tm.textureCoords.add(new Vector2f(x, y));\n\t\t\t\t} \n\t\t\t\t//Indicates a face\n\t\t\t\telse if (line.startsWith(\"f \")) \n\t\t\t\t{\n\t\t\t\t\t//If face is triangulated\n\t\t\t\t\tif(line.split(\" \").length == 4)\n\t\t\t\t\t{\t\t\t\n\t\t\t\t\t\tVector3f vertexIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[0]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[0]));\n\n\n\t\t\t\t\t\t//Instantiate as null for scope reasons\n\t\t\t\t\t\tVector3f textureIndices = null;\n\n\t\t\t\t\t\tif(!line.split(\" \")[1].split(\"/\")[1].equals(\"\")&&!(line.split(\" \")[1].split(\"/\")[1].equals(null)))\n\t\t\t\t\t\t\ttextureIndices = new Vector3f(\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[1]),\n\t\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[1]));\n\n\t\t\t\t\t\tVector3f normalIndices = new Vector3f(\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[1].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[2].split(\"/\")[2]),\n\t\t\t\t\t\t\t\tFloat.valueOf(line.split(\" \")[3].split(\"/\")[2]));\n\n\t\t\t\t\t\tFace mf = new Face();\n\n\t\t\t\t\t\t//Instantiate all the arrays\n\t\t\t\t\t\tmf.normals = new Vector3f[3];\n\t\t\t\t\t\tmf.points = new Vector3f[3];\n\n\t\t\t\t\t\t//// SETUP NORMALS ////\n\t\t\t\t\t\tVector3f n1 = m.norms.get((int)normalIndices.x - 1);\n\t\t\t\t\t\tmf.normals[0] = n1;\n\t\t\t\t\t\tVector3f n2 = m.norms.get((int)normalIndices.y - 1);\n\t\t\t\t\t\tmf.normals[1] = n2;\n\t\t\t\t\t\tVector3f n3 = m.norms.get((int)normalIndices.z - 1);\n\t\t\t\t\t\tmf.normals[2] = n3;\n\n\t\t\t\t\t\t//// SETUP VERTICIES ////\n\t\t\t\t\t\tVector3f v1 = m.verts.get((int)vertexIndices.x - 1);\n\t\t\t\t\t\tmf.points[0] = v1;\n\t\t\t\t\t\tVector3f v2 = m.verts.get((int)vertexIndices.y - 1);\n\t\t\t\t\t\tmf.points[1] = v2;\n\t\t\t\t\t\tVector3f v3 = m.verts.get((int)vertexIndices.z - 1);\n\t\t\t\t\t\tmf.points[2] = v3;\n\n\t\t\t\t\t\t//// SETUP TEXTURE COORDS ////\n\t\t\t\t\t\tif(textureIndices!=null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.textureCoords = new Vector2f[3];\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfloat x1 = m.textureCoords.get((int)textureIndices.x - 1).x;\n\t\t\t\t\t\t\tfloat y1 = 1 - m.textureCoords.get((int)textureIndices.x - 1).y;\n\t\t\t\t\t\t\tVector2f t1 = new Vector2f(x1, y1);\n\t\t\t\t\t\t\tmf.textureCoords[0] = t1;\n\t\t\t\t\t\t\tfloat x2 = m.textureCoords.get((int)textureIndices.y - 1).x;\n\t\t\t\t\t\t\tfloat y2 = 1 - m.textureCoords.get((int)textureIndices.y - 1).y;\n\t\t\t\t\t\t\tVector2f t2 = new Vector2f(x2, y2);\n\t\t\t\t\t\t\tmf.textureCoords[1] = t2;\n\t\t\t\t\t\t\tfloat x3 = m.textureCoords.get((int)textureIndices.z - 1).x;\n\t\t\t\t\t\t\tfloat y3 = 1 - m.textureCoords.get((int)textureIndices.z - 1).y;\n\t\t\t\t\t\t\tVector2f t3 = new Vector2f(x3, y3);\n\t\t\t\t\t\t\tmf.textureCoords[2] = t3;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Set the face's material to the current material\n\t\t\t\t\t\tif(cur != null)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tmf.material = cur;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//Tell face to set up AABB\n\t\t\t\t\t\tmf.setUpAABB();\n\n\t\t\t\t\t\tm.faces.add(mf);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//Indicates a reference to an exterior .mtl file\n\t\t\t\telse if(line.startsWith(\"mtllib \"))\n\t\t\t\t{\n\t\t\t\t\t//The file being referenced by mtllib call\n\t\t\t\t\tFile lib = new File(f.getParentFile()+File.separator+line.split(\" \")[1]);\n\n\t\t\t\t\t//Parse it and add all generated Materials to the mats list\n\t\t\t\t\tmats.addAll(parseMTL(lib, m));\n\t\t\t\t}\n\t\t\t\t//Telling us to use a material\n\t\t\t\telse if(line.startsWith(\"usemtl \"))\n\t\t\t\t{\n\t\t\t\t\tString name = line.split(\" \")[1];\n\n\t\t\t\t\tif(mats!=null)\n\t\t\t\t\t\t//Find material with correct name and use it\n\t\t\t\t\t\tfor(Material material : mats)\n\t\t\t\t\t\t\tif(material.name.equals(name))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tcur = material;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.close();\n\n\t\t\t//Tell model to set up AABB\n\t\t\tm.setUpAABB();\n\t\t\t\n\t\t\t//Remove the first element, because...\n\t\t\tm.faces.remove(0);\n\n\t\t\treturn m;\n\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public Collection< VDataT > vertexData();", "public void upload() {\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, vboVertexId);\r\n\t\t\tFloatBuffer coordinates = shapePeer.shape.getVertexData().coordinates;\r\n\t\t\tint tempIdx=0;\r\n\t\t\tfor (int i=0; i<count; i++) {\r\n\t\t\t\ttempP3f.x = coordinates.get((minIndex+i)*3+0);\r\n\t\t\t\ttempP3f.y = coordinates.get((minIndex+i)*3+1);\r\n\t\t\t\ttempP3f.z = coordinates.get((minIndex+i)*3+2);\r\n\t\t\t\tshapePeer.shape.getModelMatrix().transform(tempP3f);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+0, tempP3f.x);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+1, tempP3f.y);\r\n\t\t\t\tuploadBuffer.put(tempIdx*3+2, tempP3f.z);\r\n\t\t\t\tif (tempIdx*3 >= uploadBuffer.capacity() || i==count-1) {\r\n\t\t\t\t\tint offset = (startIdx+i-tempIdx)*3;\r\n\t\t\t\t\tuploadBuffer.position(0).limit((tempIdx+1)*3);\r\n//\t\t\t\t\tSystem.out.println(\"upload \"+offset+\" \"+uploadBuffer.limit()+\" \"+startIdx);\r\n\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, uploadBuffer);\r\n\t\t\t\t\tuploadBuffer.position(0).limit(uploadBuffer.capacity());\r\n\t\t\t\t\ttempIdx=0;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttempIdx++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload colors\r\n\t\t\tFloatBuffer colors = shapePeer.shape.getVertexData().colors;\r\n\t\t\tif (colors != null) {\r\n\t\t\t\tcolors.position(minIndex).limit(minIndex+count*3);\r\n\t\t\t\tint offset = (numElements*3)+(startIdx*3);\r\n\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, colors);\r\n\t\t\t} else {\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// upload texture coordinates\r\n\t\t\tObjectArray<VertexData.TexCoordData> texCoords = shapePeer.shape.getVertexData().texCoords;\r\n\t\t\tif (texCoords != null) {\r\n\t\t\t\tfor (int unit=0; unit<texCoords.length(); unit++) {\r\n\t\t\t\t\tVertexData.TexCoordData texCoord = texCoords.get(unit);\r\n\t\t\t\t\tif (texCoord != null) {\r\n\t\t\t\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0 + unit);\r\n\t\t\t\t\t\ttexCoord.data.position(minIndex*2).limit(minIndex*2+count*2);\r\n//\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+(startIdx*2);\r\n\t\t\t\t\t\tint offset = (numElements*(6+unit*2))+startIdx+startIdx;\r\n\t\t\t\t\t\tARBVertexBufferObject.glBufferSubDataARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, offset*4, texCoord.data);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tGL13.glClientActiveTexture(GL13.GL_TEXTURE0);\r\n\t\t\t\r\n\t\t\tARBVertexBufferObject.glBindBufferARB(ARBVertexBufferObject.GL_ARRAY_BUFFER_ARB, 0);\r\n\r\n\t\t\tVertexData vertexData = shapePeer.shape.getVertexData();\r\n\t\t\tIntBuffer indices = vertexData.indices;\r\n\t\t\tindices.position(0).limit(indices.capacity());\r\n\t\t\tthis.indices = new int[indices.capacity()];\r\n\t\t\tindices.get(this.indices);\r\n\t\t\tfor (int i=0; i<this.indices.length; i++) {\r\n\t\t\t\tthis.indices[i] += startIdx-minIndex;\r\n\t\t\t}\r\n\t\t\tUtil.checkGLError();\r\n\t\t}", "private void initializeBuffers()\n\t{\n\t\t// format vertex data so it can be passed to openGL\n\t\tFloatBuffer vertexBuffer = \n\t\t\t\tUtility.floatArrayToBuffer(mesh.vertexData);\n\t\t \n\t // create a buffer object and store the vertex data there\n\t\tvertexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ARRAY_BUFFER, vertexBufferObject);\n\t\tglBufferData(GL_ARRAY_BUFFER, vertexBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ARRAY_BUFFER, 0);\n\t\t\n\t\t// format index data so it can be passed to openGL\n\t\tShortBuffer indexDataBuffer = \n\t\t\t\tUtility.shortArrayToBuffer(mesh.indexData);\n\t\t\n\t\t// create a buffer object and store the index data there\n\t\tindexBufferObject = glGenBuffers();\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, indexBufferObject);\n\t\tglBufferData(GL_ELEMENT_ARRAY_BUFFER, indexDataBuffer, GL_STATIC_DRAW);\n\t\tglBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);\n\t}", "float[][] getCameraVectorsNormal(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vectors[j*resX+i]=normalize(vectors[j*resX+i]);\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "public void drawMainRotor(float[] mvpMatrix)\n\t{\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper -- drawMainRotor: Use Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper -- rotors: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, mainRotorVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,1.0f,1.0f,0.0f,0.7f);\n }\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n\t\tGLES20.glLineWidth(lineWidth);\n GLES20.glDrawElements(GLES20.GL_LINES, mainRotorDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, mainRotorDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Rotor Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}", "public void buildVerticies(){\n\t\tfor(Entry<HexLocation, TerrainHex> entry : hexes.entrySet()){\n\t\t\t\n\t\t\tVertexLocation vertLoc1 = new VertexLocation(entry.getKey(), VertexDirection.NorthWest);\n\t\t\tVertex v1 = new Vertex(vertLoc1);\n\t\t\tverticies.put(vertLoc1, v1);\n\t\t\t\n\t\t\tVertexLocation vertLoc2 = new VertexLocation(entry.getKey(), VertexDirection.NorthEast);\n\t\t\tVertex v2 = new Vertex(vertLoc2);\n\t\t\tverticies.put(vertLoc2, v2);\n\t\t\t\n\t\t\tVertexLocation vertLoc3 = new VertexLocation(entry.getKey(), VertexDirection.East);\n\t\t\tVertex v3 = new Vertex(vertLoc3);\n\t\t\tverticies.put(vertLoc3, v3);\n\t\t\t\n\t\t\tVertexLocation vertLoc4 = new VertexLocation(entry.getKey(), VertexDirection.SouthEast);\n\t\t\tVertex v4 = new Vertex(vertLoc4);\n\t\t\tverticies.put(vertLoc4, v4);\n\t\t\t\n\t\t\tVertexLocation vertLoc5 = new VertexLocation(entry.getKey(), VertexDirection.SouthWest);\n\t\t\tVertex v5 = new Vertex(vertLoc5);\n\t\t\tverticies.put(vertLoc5, v5);\n\t\t\t\n\t\t\tVertexLocation vertLoc6 = new VertexLocation(entry.getKey(), VertexDirection.West);\n\t\t\tVertex v6 = new Vertex(vertLoc6);\n\t\t\tverticies.put(vertLoc6, v6);\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "float[][] getCameraVectors(int resX, int resY){\n float vectors[][]=new float[resX*resY][3];//first vector index, second the components of the vector\n float[] vect2=rotateYVector(dir);\n vect2[1]=0;\n vect2=normalize(vect2);\n float[] vect3=normalize(vectorProduct(dir, vect2));//dir, vect2, vect3 base vectors\n float[] x={0,0,0};\n float[] y={0,0,0};\n float[] temp={0,0,0};\n for(int i=0;i<3;i++){\n x[i]=(vect2[i])/(resX/2);\n y[i]=(vect3[i])/(resY/2);\n temp[i]=vect2[i];\n }\n \n for(int j=0;j<resY;j++){\n for(int i=0;i<resX;i++){\n vectors[j*resX+i][0]=dir[0]+vect2[0]+vect3[0];\n vectors[j*resX+i][1]=dir[1]+vect2[1]+vect3[1];\n vectors[j*resX+i][2]=dir[2]+vect2[2]+vect3[2];\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n if((vectorLength(vect2)>(-0.0001)&&vectorLength(vect2)<0.0001)&&(resX%2)==0){\n vect2[0]-=x[0];\n vect2[1]-=x[1];\n vect2[2]-=x[2];\n }\n }\n //printVector(temp);\n vect2[0]=temp[0];\n vect2[1]=temp[1];\n vect2[2]=temp[2];\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n if((vectorLength(vect3)>(-0.0001)&&vectorLength(vect3)<0.0001)&&(resY%2)==0){\n vect3[0]-=y[0];\n vect3[1]-=y[1];\n vect3[2]-=y[2];\n }\n }\n \n return vectors;\n }", "@Override\n public void onSurfaceCreated(EGLConfig config) {\n Log.i(TAG, \"onSurfaceCreated\");\n GLES20.glClearColor(0.1f, 0.1f, 0.1f, 0.5f); // Dark background so text shows up well\n\n ByteBuffer bb = ByteBuffer.allocateDirect(squareVertices.length * 4);\n bb.order(ByteOrder.nativeOrder());\n vertexBuffer = bb.asFloatBuffer();\n vertexBuffer.put(squareVertices);\n vertexBuffer.position(0);\n\n ByteBuffer dlb = ByteBuffer.allocateDirect(drawOrder.length * 2);\n dlb.order(ByteOrder.nativeOrder());\n drawListBuffer = dlb.asShortBuffer();\n drawListBuffer.put(drawOrder);\n drawListBuffer.position(0);\n\n ByteBuffer bb2 = ByteBuffer.allocateDirect(textureVertices.length * 4);\n bb2.order(ByteOrder.nativeOrder());\n textureVerticesBuffer = bb2.asFloatBuffer();\n textureVerticesBuffer.put(textureVertices);\n textureVerticesBuffer.position(0);\n\n int vertexShader = loadGLShader(GLES20.GL_VERTEX_SHADER, vertexShaderCode);\n int fragmentShader = loadGLShader(GLES20.GL_FRAGMENT_SHADER, fragmentShaderCode);\n\n mProgram = GLES20.glCreateProgram(); // create empty OpenGL ES Program\n GLES20.glAttachShader(mProgram, vertexShader); // add the vertex shader to program\n GLES20.glAttachShader(mProgram, fragmentShader); // add the fragment shader to program\n GLES20.glLinkProgram(mProgram);\n\n texture = createTexture();\n startCamera(texture);\n }", "private void createCube(float x, float y, float z){\r\n\t\tboolean[] sides = checkCubeSides((int)x,(int)y,(int)z);\r\n\t\tfloat[] color = BlockType.color(blocks[(int)x][(int)y][(int)z]);\r\n\t\t\r\n//\t\t gl.glNormal3f(0.0f, 1.0f, 0.0f);\r\n\t\tif(sides[0]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t \r\n//\t // Bottom-face\r\n//\t gl.glNormal3f(0.0f, -1.0f, 0.0f);\r\n\t\t\r\n\t\tif(sides[1]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Back-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, -1.0f);\r\n\t\tif(sides[2]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n//\t // Front-face\r\n//\t gl.glNormal3f(0.0f, 0.0f, 1.0f);\r\n\t\tif(sides[3]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t \r\n//\t // Left-face\r\n//\t gl.glNormal3f(-1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[4]){\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put(len*x);\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(-1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\r\n//\t // Right-face\r\n//\t gl.glNormal3f(1.0f, 0.0f, 0.0f);\r\n\t\tif(sides[5]){\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put((len)*(y+1.0f));\r\n\t\t\tvertexData.put(len*z);\r\n\t\t\t\r\n\t\t\tvertexData.put((len)*(x+1.0f));\r\n\t\t\tvertexData.put(len*y);\r\n\t\t\tvertexData.put((len)*(z+1.0f));\r\n\t\t\t\r\n\t\t\tvertexCount += 6;\r\n\t\t\tfor(int i = 0; i < 6; i++){\r\n\t\t\t\tnormalData.put(1f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tnormalData.put(0f);\r\n\t\t\t\tcolorsData.put(color[0]);\r\n\t\t\t\tcolorsData.put(color[1]);\r\n\t\t\t\tcolorsData.put(color[2]);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void build_buffers(float[] color /*RGBA*/) {\n int i;\n int offset = 0;\n final float[] vertexData = new float[\n mVertices.size() / 3\n * STRIDE_IN_FLOATS];\n\n float vx, vy, vz;\n\n /*\n * loop to generate vertices.\n */\n for (i = 0; i < mVertices.size(); i += 3) {\n\n vertexData[offset++] = mVertices.get(i + 0);\n vertexData[offset++] = mVertices.get(i + 1);\n vertexData[offset++] = mVertices.get(i + 2);\n\n vertexData[offset++] = 0.0f; // set normal to zero for now\n vertexData[offset++] = 0.0f;\n vertexData[offset++] = 0.0f;\n\n if (mHaveMaterialColor) {\n vertexData[offset++] = mColors.get(i + 0);\n vertexData[offset++] = mColors.get(i + 1);\n vertexData[offset++] = mColors.get(i + 2);\n vertexData[offset++] = 1.0f; // TODO: unwire the alpha?\n } else {\n // color value\n vertexData[offset++] = color[0];\n vertexData[offset++] = color[1];\n vertexData[offset++] = color[2];\n vertexData[offset++] = color[3];\n }\n }\n\n // calculate the normal,\n // set it in the packed VBO.\n // If current normal is non-zero, average it with previous value.\n\n int v1i, v2i, v3i;\n for (i = 0; i < mIndices.size(); i += 3) {\n v1i = mIndices.get(i + 0) - 1;\n v2i = mIndices.get(i + 1) - 1;\n v3i = mIndices.get(i + 2) - 1;\n\n v1[0] = mVertices.get(v1i * 3 + 0);\n v1[1] = mVertices.get(v1i * 3 + 1);\n v1[2] = mVertices.get(v1i * 3 + 2);\n\n v2[0] = mVertices.get(v2i * 3 + 0);\n v2[1] = mVertices.get(v2i * 3 + 1);\n v2[2] = mVertices.get(v2i * 3 + 2);\n\n v3[0] = mVertices.get(v3i * 3 + 0);\n v3[1] = mVertices.get(v3i * 3 + 1);\n v3[2] = mVertices.get(v3i * 3 + 2);\n\n n = XYZ.getNormal(v1, v2, v3);\n\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v1i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v2i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 0] = n[0] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 1] = n[1] * NORMAL_BRIGHTNESS_FACTOR;\n vertexData[v3i * STRIDE_IN_FLOATS + 3 + 2] = n[2] * NORMAL_BRIGHTNESS_FACTOR;\n\n }\n\n /*\n * debug - print out list of formated vertex data\n */\n// for (i = 0; i < vertexData.length; i+= STRIDE_IN_FLOATS) {\n// vx = vertexData[i + 0];\n// vy = vertexData[i + 1];\n// vz = vertexData[i + 2];\n// String svx = String.format(\"%6.2f\", vx);\n// String svy = String.format(\"%6.2f\", vy);\n// String svz = String.format(\"%6.2f\", vz);\n//\n// Log.w(\"data \", i + \" x y z \"\n// + svx + \" \" + svy + \" \" + svz + \" and color = \"\n// + vertexData[i + 6] + \" \" + vertexData[i + 7] + \" \" + vertexData[i + 8]);\n// }\n\n final FloatBuffer vertexDataBuffer = ByteBuffer\n .allocateDirect(vertexData.length * BYTES_PER_FLOAT)\n .order(ByteOrder.nativeOrder())\n .asFloatBuffer();\n vertexDataBuffer.put(vertexData).position(0);\n\n if (vbo[0] > 0) {\n GLES20.glDeleteBuffers(1, vbo, 0);\n }\n GLES20.glGenBuffers(1, vbo, 0);\n\n if (vbo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, vbo[0]);\n GLES20.glBufferData(GLES20.GL_ARRAY_BUFFER, vertexDataBuffer.capacity() * BYTES_PER_FLOAT,\n vertexDataBuffer, GLES20.GL_STATIC_DRAW);\n\n // GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n\n /*\n * create the buffer for the indices\n */\n offset = 0;\n int x;\n final short[] indexData = new short[mIndices.size()];\n for (x = 0; x < mIndices.size(); x++) {\n\n short index = mIndices.get(x).shortValue();\n indexData[offset++] = --index;\n }\n mTriangleIndexCount = indexData.length;\n\n /*\n * debug - print out list of formated vertex data\n */\n// short ix, iy, iz;\n// for (i = 0; i < indexData.length; i += 3) {\n// ix = indexData[i + 0];\n// iy = indexData[i + 1];\n// iz = indexData[i + 2];\n//\n// Log.w(\"data \", i + \" i1 i2 i3 \"\n// + ix + \" \" + iy + \" \" + iz );\n// }\n\n final ShortBuffer indexDataBuffer = ByteBuffer\n .allocateDirect(indexData.length * BYTES_PER_SHORT).order(ByteOrder.nativeOrder())\n .asShortBuffer();\n indexDataBuffer.put(indexData).position(0);\n\n if (ibo[0] > 0) {\n GLES20.glDeleteBuffers(1, ibo, 0);\n }\n GLES20.glGenBuffers(1, ibo, 0);\n if (ibo[0] > 0) {\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, ibo[0]);\n GLES20.glBufferData(GLES20.GL_ELEMENT_ARRAY_BUFFER,\n indexDataBuffer.capacity()\n * BYTES_PER_SHORT, indexDataBuffer, GLES20.GL_STATIC_DRAW);\n GLES20.glBindBuffer(GLES20.GL_ELEMENT_ARRAY_BUFFER, 0);\n GLES20.glBindBuffer(GLES20.GL_ARRAY_BUFFER, 0);\n } else {\n // errorHandler.handleError(ErrorHandler.ErrorType.BUFFER_CREATION_ERROR, \"glGenBuffers\");\n throw new RuntimeException(\"error on buffer gen\");\n }\n }", "@Override\n public void create() {\n tex = new Texture(Gdx.files.internal(\"data/scene.png\"));\n\n //important since we aren't using some uniforms and attributes that SpriteBatch expects\n ShaderProgram.pedantic = false;\n\n //print it out for clarity\n System.out.println(\"Vertex Shader:\\n-------------\\n\\n\" + VERT);\n System.out.println(\"\\n\");\n System.out.println(\"Fragment Shader:\\n-------------\\n\\n\" + FRAG);\n\n shader = new ShaderProgram(VERT, FRAG);\n if (!shader.isCompiled()) {\n System.err.println(shader.getLog());\n System.exit(0);\n }\n if (shader.getLog().length() != 0)\n System.out.println(shader.getLog());\n\n\n batch = new SpriteBatch(1000, shader);\n batch.setShader(shader);\n\n cam = new OrthographicCamera(Gdx.graphics.getWidth(), Gdx.graphics.getHeight());\n cam.setToOrtho(false);\n }", "void glVertexAttribPointer(int indx, int size, int type, boolean normalized,\n int stride, Buffer ptr, int bufferIndex, int bufferSize);", "final protected void prepareVertexBuffer() {\n vertexReference = new VectorQD[calculateVertexNumber()];\n vertexBuffer = new VectorQD[vertexReference.length];\n for (int i = 0; i < vertexBuffer.length; i++) {\n vertexBuffer[i] = new VectorQD();\n }\n }", "@Override\n public void onDrawFrame(GL10 glUnused) {\n glClear(GL_COLOR_BUFFER_BIT);\n \n \n multiplyMM(viewProjectionMatrix, 0, projectionMatrix, 0,\n viewMatrix, 0);\n invertM(invertedViewProjectionMatrix, 0, viewProjectionMatrix, 0);\n\n refreshGameState();\n \n setPerspectiveView();\n // Draw the table.\n positionTableInScene();\n textureProgram.useProgram();\n textureProgram.setUniforms(modelViewProjectionMatrix, texture);\n table.bindData(textureProgram);\n table.draw();\n\n // Draw the mallets.\n// positionObjectInScene(0f, mallet.height / 2f, -0.4f);\n colorProgram.useProgram();\n\n \n //draw grids\n for (int i = 0; i<lines.length; i++)\n {\n positionObjectInScene(0,0,0);\n colorProgram.setUniforms(modelViewProjectionMatrix,0.5f + i*0.1f, 0.4f+ i*0.1f, 1f);\n lines[i].bindData(colorProgram);\n lines[i].draw();\n }\n \n \n // Draw the puck.\n for (int i = 0; i<2; i++)\n {\n\t positionObjectInScene(puckPosition[i].x, puckPosition[i].y, puckPosition[i].z);\n\t colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f + i*0.2f, 0.015f + 0*0.1f, 0.9f);\n\t //colorProgram.setUniforms(modelViewProjectionMatrix, 0.5f, 0.01f , 0.9f);\n\t puck[i].bindData(colorProgram);\n\t puck[i].draw();\n }\n \n //draw Obstacles\n for (int i = 0; i< obstacles.length; i++){\n positionObjectInScene(obstaclePosition[i].x, obstaclePosition[i].y, obstaclePosition[i].z);\n colorProgram.setUniforms(modelViewProjectionMatrix, 0.1f, 0.3f, 0.11f);\n obstacles[i].bindData(colorProgram);\n obstacles[i].draw();\n \n \n }\n \n\n \n }", "Vertex createVertex();", "public void setLoad(Vec3D p) { p_ = p; }", "public void invertNormals() {\n mCubeNormalData = new float[]\n {\n // Front face\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n 0.0f, 0.0f, -1.0f,\n // Right face\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n -1.0f, 0.0f, 0.0f,\n // Back face\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n 0.0f, 0.0f, 1.0f,\n // Left face\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n 1.0f, 0.0f, 0.0f,\n // Top face\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n 0.0f, -1.0f, 0.0f,\n // Bottom face\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f,\n 0.0f, 1.0f, 0.0f\n };\n mCubeNormals.put(mCubeNormalData).position(0);\n\n }", "public Tile3D(Context context, int id, float w, float h) {\n\t // Setup vertex array buffer. Vertices in float. A float has 4 bytes\n\t ByteBuffer vbb = ByteBuffer.allocateDirect(12 * 4);\n\t vbb.order(ByteOrder.nativeOrder()); // Use native byte order\n\t vertexBuffer = vbb.asFloatBuffer(); // Convert from byte to float\n\t \n\t imageFileID = id;\n\t bitmap = BitmapFactory.decodeStream(context.getResources().openRawResource(imageFileID));\n\t //bitmap \n\t /*InputStream is= context.getResources().openRawResource(imageFileIDs);\n\t try {\n\t bitmap = BitmapFactory.decodeStream(is);\n\n\t } finally {\n\t //Always clear and close\n\t try {\n\t is.close();\n\t is = null;\n\t } catch (IOException e) {\n\t }\n\t }*/\n\t int imgWidth = bitmap.getWidth();\n\t int imgHeight = bitmap.getHeight();\n\t float faceWidth = w;\n\t float faceHeight = h;\n\t // Adjust for aspect ratio\n\t if (imgWidth > imgHeight) {\n\t faceHeight = faceHeight * imgHeight / imgWidth; \n\t }\n\t else {\n\t faceWidth = faceWidth * imgWidth / imgHeight;\n\t }\n\t float faceLeft = -faceWidth / 2;\n\t float faceRight = -faceLeft;\n\t float faceTop = faceHeight / 2;\n\t float faceBottom = -faceTop;\n\t \n\t \n\t \n\t // Define the vertices for this face\n\t float[] vertices = {\n\t faceLeft, faceBottom, 0.0f, // 0. left-bottom-front\n\t faceRight, faceBottom, 0.0f, // 1. right-bottom-front\n\t faceLeft, faceTop, 0.0f, // 2. left-top-front\n\t faceRight, faceTop, 0.0f, // 3. right-top-front\n\t };\n\t vertexBuffer.put(vertices); // Copy data into buffer\n\t\t vertexBuffer.position(0); // Rewind\n\t \n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t \n\t texBuffer.put(texCoords);\n\t \n\t texBuffer.position(0); // Rewind\n\t \n\t }", "void addTextureCoordinate(Vector t);", "@Override\r\n public Shape createShape(RenderContext ctx) {\n float v[] = { -1, -1, 1, 1, -1, 1, 1, 1, 1, -1, 1, 1, // front face\r\n -1, -1, -1, -1, -1, 1, -1, 1, 1, -1, 1, -1, // left face\r\n -1, -1, 1, -1, -1, -1, 1, -1, -1, 1, -1, 1 }; // bottom face\r\n\r\n // The vertex normals\r\n float n[] = { 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, // front face\r\n -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, // left face\r\n 0, -1, 0, 0, -1, 0, 0, -1, 0, 0, -1, 0 }; // bottom face\r\n\r\n // The vertex colors\r\n float c[] = { 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, //\r\n 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, //\r\n 0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 1 };\r\n\r\n // Texture coordinates\r\n float uv[] = { 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1, //\r\n 0, 0, 1, 0, 1, 1, 0, 1 };\r\n\r\n // The triangles (three vertex indices for each triangle)\r\n int indices[] = { 0, 2, 3, 0, 1, 2, // front face\r\n 4, 6, 7, 4, 5, 6, // left face\r\n 8, 10, 11, 8, 9, 10 }; // bottom face\r\n\r\n // Construct a data structure that stores the vertices, their\r\n // attributes, and the triangle mesh connectivity\r\n VertexData vertexData = ctx.makeVertexData(12);\r\n vertexData.addElement(c, VertexData.Semantic.COLOR, 3);\r\n vertexData.addElement(v, VertexData.Semantic.POSITION, 3);\r\n vertexData.addElement(n, VertexData.Semantic.NORMAL, 3);\r\n vertexData.addElement(uv, VertexData.Semantic.TEXCOORD, 2);\r\n vertexData.addIndices(indices);\r\n\r\n return new jrtr.Shape(vertexData);\r\n }", "public void setVertexes(Vertex[] vertexes) {\n int n, i;\n\n n = vertexes.length;\n\n initVertexPositionsArray(n);\n initVertexNormalsArray();\n //initVertexBinormalsArray();\n //initVertexTangentsArray();\n\n for ( i = 0; i < n; i++ ) {\n vertexPositions[3*i] = vertexes[i].position.x;\n vertexPositions[3*i+1] = vertexes[i].position.y;\n vertexPositions[3*i+2] = vertexes[i].position.z;\n vertexNormals[3*i] = vertexes[i].normal.x;\n vertexNormals[3*i+1] = vertexes[i].normal.y;\n vertexNormals[3*i+2] = vertexes[i].normal.z;\n //vertexBinormals[3*i] = vertexes[i].binormal.x;\n //vertexBinormals[3*i+1] = vertexes[i].binormal.y;\n //vertexBinormals[3*i+2] = vertexes[i].binormal.z;\n //vertexTangents[3*i] = vertexes[i].tangent.x;\n //vertexTangents[3*i+1] = vertexes[i].tangent.y;\n //vertexTangents[3*i+2] = vertexes[i].tangent.z;\n //vertexUvs[2*i] = vertexes[i].u;\n //vertexUvs[2*i+1] = vertexes[i].v;\n }\n\n boundingVolume = null;\n }", "public static void bgfx_set_instance_data_from_vertex_buffer(@NativeType(\"bgfx_vertex_buffer_handle_t\") short _handle, @NativeType(\"uint32_t\") int _start, @NativeType(\"uint32_t\") int _num) {\n long __functionAddress = Functions.set_instance_data_from_vertex_buffer;\n invokeCV(_handle, _start, _num, __functionAddress);\n }", "Obj(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3){\t// CAMBIAR LAS COORDENADAS X,Y,Z CON 0,1 PARA CONSTRUIR PRISMA, CILINDRO, PIRAMIDE, CONO Y ESFERA.\n w\t= new Point3D[4];\n\tvScr\t= new Point2D[4];\n \n w[0]\t= new Point3D(0, 0, 0); // desde la base\n\tw[1]\t= new Point3D(x1, y1, z1);\n\tw[2]\t= new Point3D(x2, y2, z2);\n\tw[3]\t= new Point3D(x3, y3, z3);\n \n\tobjSize = (float) Math.sqrt(12F); \n rho\t= 5 * objSize;\n }", "public void InitLinearLV() throws Exception{\n\tcommandExec c1 = new commandExec();\n\tc1.runCommand(\"lvcreate -n LinearLV -l 50%VG /dev/TargetVG\" );\n}", "public ElementBuffer(int[] indices, VertexArray vao)\n {\n this.ID = OpenGLMemoryManager.createVertexBuffer();\n this.size = indices.length;\n\n vao.bind();\n this.bind();\n IntBuffer buffer = OpenGLMemoryManager.toIntBuffer(indices);\n glBufferData(GL_ELEMENT_ARRAY_BUFFER, buffer, GL_STATIC_DRAW);\n this.unbind();\n vao.unbind();\n }", "public void drawTriangles(float[] mvpMatrix)\n\t{\n // Add program to OpenGL ES environment\n //GLES20.glUseProgram(mTriProgram);\n GLES20.glUseProgram(chopperProgram);\n int error = GLES20.glGetError();\n if (error != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper: Use Tri Program Error: \" + error);\n }\n\n // get handle to vertex shader's vPosition member\n mPositionHandle = GLES20.glGetAttribLocation(chopperProgram, \"vPosition\");\n if (mPositionHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get mPositionHandle\");\n }\n\n // get handle to shape's transformation matrix\n mMVPMatrixHandle = GLES20.glGetUniformLocation(chopperProgram, \"uMVPMatrix\");\n\n // Pass the projection and view transformation to the shader\n GLES20.glUniformMatrix4fv(mMVPMatrixHandle, 1, false, mvpMatrix, 0);\n\n // Enable a handle to the cube vertices\n GLES20.glEnableVertexAttribArray(mPositionHandle);\n\n // Prepare the cube coordinate data\n GLES20.glVertexAttribPointer(mPositionHandle, COORDS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false,\n\t\t\t\t\t\t\t\t\t vertexStride, triVertexBuffer);\n\n // get handle to vertex shader's vColor member\n if (vertexColor)\n {\n mColorHandle = GLES20.glGetAttribLocation(chopperProgram, \"vColor\");\n if (mColorHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get vColor\");\n }\n GLES20.glEnableVertexAttribArray(mColorHandle);\n\n GLES20.glVertexAttribPointer(mColorHandle, COLORS_PER_VERTEX,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, colorStride, triColBuffer);\n }\n else\n {\n mColorHandle = GLES20.glGetUniformLocation(chopperProgram, \"vColor\");\n\t\t\tGLES20.glUniform4f(mColorHandle,color[0],color[1],color[2],color[3]);\n }\n\n if (StigChopper.textures)\n {\n mTextureUniformHandle = GLES20.glGetUniformLocation(chopperProgram, \"u_texture\");\n if (mTextureUniformHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture uniform\");\n }\n\n mTextureCoordinateHandle = GLES20.glGetAttribLocation(chopperProgram, \"a_texCoordinate\");\n if (mTextureCoordinateHandle < 0)\n {\n System.out.println(\"StigChopper: Failed to get texture coordinates.\");\n }\n GLES20.glEnableVertexAttribArray(mTextureCoordinateHandle);\n\n // Prepare the uv coordinate data.\n GLES20.glVertexAttribPointer(mTextureCoordinateHandle, 2,\n\t\t\t\t\t\t\t\t\t\t GLES20.GL_FLOAT, false, 8, triUvBuffer);\n\n // Set the active texture unit to texture unit 0.\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n\n // Bind the texture to this unit.\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, -1);\n\n\t\t\t// Tell the texture uniform sampler to use this texture in the shader by binding to texture unit 0.\n\t\t\tGLES20.glUniform1i(mTextureUniformHandle, 0);\n }\n\n GLES20.glDrawElements(GLES20.GL_TRIANGLES, triDrawListBuffer.capacity(),\n\t\t\t\t\t\t\t GLES20.GL_UNSIGNED_INT, triDrawListBuffer);\n int drawError = GLES20.glGetError();\n if (drawError != GLES20.GL_NO_ERROR)\n {\n System.out.println(\"StigChopper:Triangle Draw Elements Error: \" + drawError + \", color: \" + vertexColor + \", text: \" + textures);\n }\n\n if (StigChopper.textures)\n {\n // Disable texture array\n GLES20.glDisableVertexAttribArray(mTextureCoordinateHandle);\n }\n\n // Disable vertex array\n GLES20.glDisableVertexAttribArray(mPositionHandle);\n if (vertexColor)\n {\n GLES20.glDisableVertexAttribArray(mColorHandle);\n }\n\t}", "@Override\r\n\tpublic Vector2f[] getVertices() {\n\t\treturn null;\r\n\t}", "public ArrayList<Triangle> getOccluderVertexData();", "public void getVertices (float[] vertices) {\r\n \t\tif (vertices.length < getNumVertices() * getVertexSize() / 4)\r\n \t\t\tthrow new IllegalArgumentException(\"not enough room in vertices array, has \" + vertices.length + \" floats, needs \"\r\n \t\t\t\t+ getNumVertices() * getVertexSize() / 4);\r\n \t\tint pos = getVerticesBuffer().position();\r\n \t\tgetVerticesBuffer().position(0);\r\n \t\tgetVerticesBuffer().get(vertices, 0, getNumVertices() * getVertexSize() / 4);\r\n \t\tgetVerticesBuffer().position(pos);\r\n \t}", "@ThreadOpenGL\n public void glTexCoord2f()\n {\n GL11.glTexCoord2f(this.x, this.y);\n }", "public VFunction2D() {\n \n \n }", "int glCreateProgram();", "public void onDrawFrame(GL10 unused) {\n\n \tGLES20.glClearColor(0.5f,0.5f,0.5f,0.5f);\n GLES20.glClear(GLES20.GL_COLOR_BUFFER_BIT | GLES20.GL_DEPTH_BUFFER_BIT);\n \n GLES20.glEnable(GLES20.GL_DEPTH_TEST);\n\n \t//GLES20.glCullFace(GLES20.GL_BACK);\n\n /* Update MVP matrix */\n\n mat4 mvp = mProj\n \t.mul(mat4.translation(0.0f, 0.0f, -5.0f))\n \t.mul(mat4.rotateY(-mAngleX))\n \t.mul(mat4.rotateX(mAngleY));\n \t\n \n // Add program to OpenGL environment\n GLES20.glUseProgram(mProgram);\n \n /* Set model view projection matrix */\n GLES20.glUniformMatrix4fv(muMVPHandle, 1, false, mvp.f(), 0);\n \n /*\n * Now we're ready to draw some 3D objects\n */\n mCube.draw(maPositionHandle, maColorHandle);\n }", "public void init(GLAutoDrawable drawable) {\n try {\n ds = new VolumetricDataSet(new File(\"BostonTeapot.raw\"), 256, 256, 178);\n\n GL gl = drawable.getGL();\n glu = new GLU();\n\n gl.glClearColor(0.0f, 0.0f, 0.0f, 1.0f);\n\n gl.glViewport(0, 0, 500, 300);\n gl.glMatrixMode(GL.GL_PROJECTION);\n gl.glLoadIdentity();\n glu.gluOrtho2D(0.0, 500.0, 0.0, 300.0);\n } catch (IOException ex) {\n Logger.getLogger(FileReader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "protected void initRender() {\n glActiveTexture(GL_TEXTURE0);\n // Bind the texture\n glBindTexture(GL_TEXTURE_2D, texture.getId());\n\n // Draw the mesh\n glBindVertexArray(vaoId);\n glEnableVertexAttribArray(0);\n glEnableVertexAttribArray(1);\n }", "public void loadFromOBJThreaded(Context context, String filename) {\n OBJParser objparser = new OBJParser();\n objparser.loadFromOBJ(context, filename);\n SquareCoords = objparser.getVertices();\n UVCoords = objparser.getUVVertices();\n DrawOrder = objparser.getOrder();\n\n resourcesLoaded++;\n }", "public void ignoreCreateArrayForVec2With6Position() {\r\n\r\n SXRMesh sxrMesh = TestDefaultSXRViewManager.mSXRContext.getAssetLoader().loadMesh(UtilResource.androidResource(TestDefaultSXRViewManager.mSXRContext,R.raw.cylinder3));\r\n float[] vec2 = {-0.5f, 0.5f, 0.0f, -0.5f, 0.5f, 0.0f};\r\n\r\n try {\r\n sxrMesh.setVec3Vector(\"ratio_r\", vec2);\r\n assertNotNull(sxrMesh.getVec4Vector(\"ratio_r\"));\r\n fail();\r\n } catch (Exception e) {\r\n assertEquals(e.getMessage(), \"setVec2Vector method support only three position array\");\r\n }\r\n }", "@Override\n\tpublic void render() {\n\t\tgl.glEnableClientState(GL2.GL_VERTEX_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n\t\tgl.glEnableClientState(GL2.GL_NORMAL_ARRAY);\n\t\tfloat posx = startxPos;\n\t\tint[] vboIds;\n\t\tfor(int i=0;i<nbWidth;i++) {\n//\t\t\tindexBuffer = cacheBands.getDataLocalIndex(i); // mapIndexBands[i]\n//\t\t\tindexBuffer.rewind();\n\t\t\tvboIds = cacheBands.getDataLocalIndex(i);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[1]);\n\t\t\tgl.glVertexPointer(3, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, vboIds[2]);\n\t\t\tgl.glTexCoordPointer(2, GL.GL_FLOAT, 0, 0);\n\t\t\tgl.glBindBuffer(GL.GL_ARRAY_BUFFER, vboIds[3]);\n\t\t\tgl.glNormalPointer(GL.GL_FLOAT, 0, 0);\n\n\t\t\t\n\t\t\tgl.glPushMatrix();\n\t\t\tgl.glTranslatef(posx, startyPos,0);\n\t\t\t//gl.glCallList(cacheBands.getDataLocalIndex(i));\n\t // gl.glDrawElements(GL2.GL_QUADS, indices.capacity(), GL.GL_UNSIGNED_SHORT, 0);\n\t gl.glDrawArrays(GL2.GL_QUADS, 0, vboIds[0]); \n\t\t\tgl.glPopMatrix();\n\t\t\tposx+=blockWidth;\n\t\t}\n\t\t// unbind vbo\n\t\tgl.glBindBuffer(GL2.GL_ARRAY_BUFFER, 0);\n\t\tgl.glDisableClientState(GL2.GL_NORMAL_ARRAY);\n gl.glDisableClientState(GL2.GL_TEXTURE_COORD_ARRAY);\n gl.glDisableClientState(GL2.GL_VERTEX_ARRAY);\n\n\t}" ]
[ "0.68123376", "0.6237747", "0.5792836", "0.57737464", "0.57450646", "0.5653938", "0.56321985", "0.562648", "0.56154794", "0.5594768", "0.5567333", "0.553367", "0.54980624", "0.54722506", "0.5460816", "0.54520166", "0.5428094", "0.5402415", "0.5400546", "0.5395391", "0.5348846", "0.5327487", "0.53217345", "0.53116393", "0.5309441", "0.52905864", "0.528868", "0.52854276", "0.5278779", "0.5275997", "0.52716446", "0.5254526", "0.5232827", "0.523228", "0.5229655", "0.5220811", "0.52167606", "0.52150565", "0.5200603", "0.5140786", "0.513588", "0.51333934", "0.5129562", "0.5127442", "0.512624", "0.51177794", "0.51086116", "0.5103387", "0.51007694", "0.509834", "0.50932956", "0.508907", "0.5080724", "0.5079786", "0.5074145", "0.5062131", "0.5051751", "0.50383466", "0.50349057", "0.503337", "0.50290865", "0.50185734", "0.50074214", "0.500581", "0.49982598", "0.49921003", "0.49913648", "0.498861", "0.4980708", "0.4972739", "0.4968252", "0.49611357", "0.49566418", "0.49559313", "0.49513128", "0.4950439", "0.4950304", "0.49483913", "0.49388823", "0.4934307", "0.49222615", "0.49218124", "0.4920485", "0.492012", "0.49152076", "0.4911535", "0.4905258", "0.49044666", "0.49033514", "0.48908594", "0.48876578", "0.48790476", "0.48783916", "0.48774445", "0.48719516", "0.48711136", "0.486864", "0.48675796", "0.48651654", "0.48621333" ]
0.6546162
1
Texture Loading and Data
public static int loadTexture(String fileName, String format){ int textureID = 0; try { Texture texture = TextureLoader.getTexture(format, new FileInputStream("res/" + fileName + "." + format)); textureID = texture.getTextureID(); GL30.glGenerateMipmap(GL11.GL_TEXTURE_2D); GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR_MIPMAP_LINEAR); GL11.glTexParameterf(GL11.GL_TEXTURE_2D, GL14.GL_TEXTURE_LOD_BIAS, -0.4f); } catch (IOException e) { e.printStackTrace(); } if (textureID == 0) System.out.println("The Texture maybe the false one."); texture.add(textureID); return textureID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void loadTexture() {\n\n }", "public static void load(){\n for(TextureHandler t : textures){\n if(t.texture!=null)t.texture.dispose();\n }\n textures.clear();\n \n //if the textures are corrupt or just arent there then the error TextureHandler will\n //be a placeholder which is generated programatically so it is always there\n int size = 64;\n Pixmap pixmap = new Pixmap(size,size, Format.RGBA8888 );\n pixmap.setColor(1f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,size/2);\n pixmap.setColor(0f,0f,0f,1f);\n pixmap.fillCircle(size/2,size/2,(size/2)-2);\n pixmap.setColor(1f,0f,0f,1f);\n int offset = size/6;\n int length = (size+size)/3;\n pixmap.drawLine(offset,offset,offset+length,offset+length);\n pixmap.drawLine(offset+length,offset,offset,offset+length);\n error = new Texture(pixmap);\n pixmap.dispose();\n //things that get rendered the most get put at the top so theyre the first in the list\n textures.add(new TextureHandler(\"Block\" ,\"Block.png\",true));\n textures.add(new TextureHandler(\"Block1\",\"Block1.png\",true));\n textures.add(new TextureHandler(\"Block2\",\"Block2.png\",true));\n textures.add(new TextureHandler(\"Block3\",\"Block3.png\",true));\n textures.add(new TextureHandler(\"Block4\",\"Block4.png\",true));\n textures.add(new TextureHandler(\"GameBackground\",\"GameBackground.png\",true));\n \n textures.add(new TextureHandler(\"Hints\",\"Hints.png\",false));\n textures.add(new TextureHandler(\"Left\" ,\"ButtonLeft.png\",true));\n textures.add(new TextureHandler(\"Right\" ,\"ButtonRight.png\",true));\n textures.add(new TextureHandler(\"Rotate\",\"ButtonRotate.png\",true));\n textures.add(new TextureHandler(\"Pause\" ,\"ButtonPause.png\",true));\n textures.add(new TextureHandler(\"Label\" ,\"TextBox.png\",true));\n \n textures.add(new TextureHandler(\"Locked\",\"levels/Locked.png\",false));\n textures.add(new TextureHandler(\"Timer\",\"levels/Clock.png\",false));\n \n textures.add(new TextureHandler(\"PauseSelected\",\"SelectedPause.png\",true));\n textures.add(new TextureHandler(\"LeftSelected\",\"SelectedLeft.png\",true));\n textures.add(new TextureHandler(\"RightSelected\",\"SelectedRight.png\",true));\n textures.add(new TextureHandler(\"RotateSelected\",\"SelectedRotate.png\",true));\n \n textures.add(new TextureHandler(\"Background\",\"Background.png\",false));\n textures.add(new TextureHandler(\"Title\",\"MainMenuTitle.png\",false));\n\n }", "private boolean load() {\r\n \t\r\n int[] textureIds = new int[1];\r\n GLES10.glGenTextures(1, textureIds, 0);\r\n this.textureId = textureIds[0];\r\n \r\n InputStream in = null;\r\n // try loading from assets\r\n try {\r\n \t\r\n in = FileIO.getInstance().readAsset(\"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e) {\r\n \t\r\n \t// if not found in assets try loading from sd-card\r\n try {\r\n \t\r\n \tin = FileIO.getInstance().readFile(APP_FOLDER + File.separator + \"textures\" + File.separator + this.fileName);\r\n Bitmap bitmap = BitmapFactory.decodeStream(in);\r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, this.textureId);\r\n GLUtils.texImage2D(GLES10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n this.setFilters(GLES10.GL_NEAREST, GLES10.GL_NEAREST); \r\n GLES10.glBindTexture(GLES10.GL_TEXTURE_2D, 0);\r\n this.width = bitmap.getWidth();\r\n this.height = bitmap.getHeight();\r\n bitmap.recycle();\r\n \r\n } catch (IOException e2) {\r\n \t\r\n \treturn false;\r\n \t\r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e2) {}\r\n }\r\n }\r\n \r\n } finally {\r\n \t\r\n if (in != null) {\r\n \r\n \ttry { in.close(); } catch (IOException e) {}\r\n }\r\n }\r\n \r\n return true;\r\n }", "private void loadTextures() {\r\n int[] imgData;\r\n int width;\r\n int height;\r\n\r\n BitmapFactory.Options options = new BitmapFactory.Options();\r\n //圖片質量,數字越大越差\r\n options.inSampleSize = 1;\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(path, 0, path.length, options);\r\n width = bitmap.getWidth();\r\n height = bitmap.getHeight();\r\n imgData = new int[width * height * 4];\r\n bitmap.getPixels(imgData, 0, width, 0, 0, width, height);\r\n bitmap.recycle();\r\n System.gc();\r\n\r\n mTextures.add(Texture.loadTextureFromIntBuffer(imgData, width, height));\r\n }", "public void loadTexture(String s) {\n\t\tFile file = new File(s);\n\t\ttry {\n\t\t\tbufferimage = ImageIO.read(file);\n\t\t\tint pixels[] = bufferimage.getRGB(0, 0, bufferimage.getWidth(),\n\t\t\t\t\tbufferimage.getHeight(), null, 0, bufferimage.getWidth());\n\t\t\tbuffer = IntBuffer.wrap(pixels);\n\t\t} catch (IOException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void loadResource() {\n\t\ttry {\n\t\t\ttarmacTexture = scaleResourceImagePaint(\"/textures/tarmac2.jpg\", 300, 300);\n\t\t\tgrassTexture = scaleResourceImagePaint(\"/textures/grass.jpg\", 300, 300);\n\t\t\tstopwayTexture = scaleResourceImagePaint(\"/textures/stopway.jpg\", 300, 300);\n\t\t} catch (IOException e) {\n\t\t\tsetUsingTextures(false);\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Texture loadTexture(String file, Format format, boolean useMipMap);", "public abstract TextureObject getTexture();", "private TextureImpl getTexture(InputStream in, String resourceName, int target, int magFilter, int minFilter, boolean flipped, int[] transparent) throws IOException {\n/* 291 */ LoadableImageData imageData = ImageDataFactory.getImageDataFor(resourceName);\n/* 292 */ ByteBuffer textureBuffer = imageData.loadImage(new BufferedInputStream(in), flipped, transparent);\n/* */ \n/* 294 */ int textureID = createTextureID();\n/* 295 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* 297 */ GL.glBindTexture(target, textureID);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 306 */ int width = imageData.getWidth();\n/* 307 */ int height = imageData.getHeight();\n/* 308 */ boolean hasAlpha = (imageData.getDepth() == 32);\n/* */ \n/* 310 */ texture.setTextureWidth(imageData.getTexWidth());\n/* 311 */ texture.setTextureHeight(imageData.getTexHeight());\n/* */ \n/* 313 */ int texWidth = texture.getTextureWidth();\n/* 314 */ int texHeight = texture.getTextureHeight();\n/* */ \n/* 316 */ IntBuffer temp = BufferUtils.createIntBuffer(16);\n/* 317 */ GL.glGetInteger(3379, temp);\n/* 318 */ int max = temp.get(0);\n/* 319 */ if (texWidth > max || texHeight > max) {\n/* 320 */ throw new IOException(\"Attempt to allocate a texture to big for the current hardware\");\n/* */ }\n/* */ \n/* 323 */ int srcPixelFormat = hasAlpha ? 6408 : 6407;\n/* 324 */ int componentCount = hasAlpha ? 4 : 3;\n/* */ \n/* 326 */ texture.setWidth(width);\n/* 327 */ texture.setHeight(height);\n/* 328 */ texture.setAlpha(hasAlpha);\n/* */ \n/* 330 */ if (this.holdTextureData) {\n/* 331 */ texture.setTextureData(srcPixelFormat, componentCount, minFilter, magFilter, textureBuffer);\n/* */ }\n/* */ \n/* 334 */ GL.glTexParameteri(target, 10241, minFilter);\n/* 335 */ GL.glTexParameteri(target, 10240, magFilter);\n/* */ \n/* */ \n/* 338 */ GL.glTexImage2D(target, \n/* 339 */ 0, \n/* 340 */ this.dstPixelFormat, \n/* 341 */ get2Fold(width), \n/* 342 */ get2Fold(height), \n/* 343 */ 0, \n/* 344 */ srcPixelFormat, \n/* 345 */ 5121, \n/* 346 */ textureBuffer);\n/* */ \n/* 348 */ return texture;\n/* */ }", "private void loadTextures() {\n textureIdMap.keySet().forEach((i) -> {\n //for (int i = 0; i < textureFileNames.length; i++) {\n try {\n URL textureURL;\n textureURL = getClass().getClassLoader().getResource(textureIdMap.get(i));\n if (textureURL != null) {\n BufferedImage img = ImageIO.read(textureURL);\n ImageUtil.flipImageVertically(img);\n Texture temp = AWTTextureIO.newTexture(GLProfile.getDefault(), img, true);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_S, GL2.GL_CLAMP_TO_EDGE);\n temp.setTexParameteri(gl, GL2.GL_TEXTURE_WRAP_T, GL2.GL_CLAMP_TO_EDGE);\n textures.put(i, temp);\n }\n } catch (IOException | GLException e) {\n e.printStackTrace();\n }\n });\n textures.get(0).enable(gl);\n }", "public void loadTextures(){\n switch (playerCarColor){\n case \"Black\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlack.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarBlackFaded.png\"));\n break;\n case \"White\":\n playerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhite.png\"));\n fadedPlayerTexture = new Texture(Gdx.files.internal(\"images/playerCarWhiteFaded.png\"));\n break;\n }\n\n enemyPistolTexture = new Texture(Gdx.files.internal(\"images/enemyPistol.png\"));\n enemyAWPTexture = new Texture(Gdx.files.internal(\"images/enemyAWP.png\"));\n enemyStalkerTexture = new Texture(Gdx.files.internal(\"images/enemyStalker.png\"));\n bulletTexture = new Texture(Gdx.files.internal(\"images/bullet.png\"));\n enemyBossTexture = new Texture(Gdx.files.internal(\"images/enemyBoss.png\"));\n }", "public void loadTexture(int imageNum, Texture atex)\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tgl.glTexImage2D(GL_TEXTURE_2D, imageNum, 3, atex.gTexW, atex.gTexH, 0,\r\n\t\t GL_BGRA_EXT, GL_UNSIGNED_BYTE, atex.pixels);\r\n\t}", "public Sprite loadBitmap(Context context, GL10 gl, int resourceId)\r\n\t{\r\n\t if(context != null && gl != null)\r\n\t {\r\n\t \t//Generate one texture pointer...\r\n\t gl.glGenTextures(1, mTexture, 0);\r\n\t \r\n\t //grab location index\r\n\t int textureID = mTexture[0];\r\n\t \r\n\t\t\t//...and bind it to our array\r\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);\r\n\t \r\n\t\t\t//Create Nearest Filtered Texture //GL_NEAREST\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n\t\r\n\t\t\t//Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_REPEAT);\r\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_REPEAT);\r\n\t\t\t\r\n\t // select modulate to mix texture with color for shading\r\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, /*GL10.GL_REPLACE*/ GL10.GL_MODULATE);\r\n\t\r\n\t InputStream is = context.getResources().openRawResource(resourceId);\r\n\t Bitmap bitmap;\r\n\t try\r\n\t {\r\n\t bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions);\r\n\t }\r\n\t finally\r\n\t {\r\n\t try\r\n\t {\r\n\t is.close();\r\n\t }\r\n\t catch(IOException e)\r\n\t {\r\n\t //Log.e(\"ImageLoaderIO\", \"DecodeStreamError: \" + e);\r\n\t }\r\n\t }\r\n\t\r\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\r\n\t int width = bitmap.getWidth();\r\n\t int height = bitmap.getHeight();\r\n\t \r\n\t // clean up\r\n\t bitmap.recycle();\r\n\t\r\n\t return new Sprite(textureID,width,height);\r\n\t }\r\n\t return null;\r\n\t}", "private void loadGLTextures(GL10 gl) throws IOException\t\t\t// Load Bitmaps And Convert To Textures\r\n {\r\n texture[0] = new Texture();\r\n texture[1] = new Texture();\r\n // Load The Bitmap, Check For Errors.\r\n TGALoader.loadTGA(texture[0], \"tga/uncompressed.tga\");\r\n TGALoader.loadTGA(texture[1], \"tga/compressed.tga\");\r\n for (int loop = 0; loop < 2; loop++)\t\t\t\t\t\t// Loop Through Both Textures\r\n {\r\n // Typical Texture Generation Using Data From The TGA ( CHANGE )\r\n gl.glGenTextures(1, texture[loop].texID, 0);\t\t\t\t// Create The Texture ( CHANGE )\r\n gl.glBindTexture(GL10.GL_TEXTURE_2D, texture[loop].texID[0]);\r\n gl.glTexImage2D(GL10.GL_TEXTURE_2D, 0, texture[loop].type, texture[loop].width, texture[loop].height, 0, texture[loop].type, GL10.GL_UNSIGNED_BYTE, texture[loop].imageData);\r\n gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_LINEAR);\r\n gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\r\n \r\n Log.i(\"40\", \"bpp = \" + texture[loop].bpp + \" type = \" + texture[loop].type);\r\n }\r\n }", "@Override\n\tpublic void load(String fileName) throws IOException\n\t{\n\t\tBufferedImage i;\n\t\t\n\t\tFile f = new File(fileName);\n\t\ti = ImageIO.read(f);\n\t\t\n\t\ttry {\n\t\t\tmethodRGBA(f,fileName);\n//\t\t\tmethodRGB(f,fileName);\n\t\t} catch (Exception e) {}\n\t\t\n\t\tgl.glPixelStorei(GL.GL_UNPACK_ALIGNMENT, 1);\n\t\tgl.glGenTextures(1, id);\n\t\tgl.glBindTexture(GL.GL_TEXTURE_2D, id.get(0));\n\n\t\tw = i.getWidth();\n\t\th = i.getHeight();\n\t\tIntBuffer buf = getData(i);\n\t\tgl.glTexImage2D(GL.GL_TEXTURE_2D, 0, GL.GL_RGBA, w, h, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE, buf);\t\t\t\n\t}", "TextureAtlas.AtlasRegion getTexture(FileHandle textureFile);", "public static void loadTextures() {\n loadFontTextures();\n loadAlternatePaletteTextures(); // Load alternate tiles.\n findAllTextures(); // Should be run last.\n System.out.println(\"Textures have been successfully loaded.\");\n }", "public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }", "public void loadFromSavedBitmap() {\n if (bitmap != null) {\n // genera un nuovo puntatore ad una texture\n GLES20.glGenTextures(1, texture, 0);\n // lega questo puntatore ad una variabile disponibile all'app\n GLES20.glBindTexture(GLES20.GL_TEXTURE_2D, texture[0]);\n\n // setta alcuni parametri che diranno a OpenGL come trattare la texture\n GLES20.glTexParameteri(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n // caricamento della texture\n GLUtils.texImage2D(GLES20.GL_TEXTURE_2D, 0, bitmap, 0);\n // libera memoria\n bitmap.recycle();\n }\n resourcesLoaded++;\n\n MyGLRenderer.checkGlError(\"loadFromSavedBitmap\");\n }", "protected int getTextureIndex() {\n/* 83 */ return getData() & 0x7;\n/* */ }", "private void graphicsLoader() {\n\t\tff2Logo = new Texture(Gdx.files.internal(uiName + \"/ff2logo.png\"));\n\t\tff2LogoHit = new Texture(Gdx.files.internal(uiName + \"/ff2logohit.png\"));\n\t\tplayerword = new Texture(Gdx.files.internal(uiName + \"/playerword.png\"));\n\t\tplayerwordHit = new Texture(Gdx.files.internal(uiName + \"/playerwordhit.png\"));\n\t\tturretword = new Texture(Gdx.files.internal(uiName + \"/turretword.png\"));\n\t\tturretwordHit = new Texture(Gdx.files.internal(uiName + \"/turretwordhit.png\"));\n\t\tfenceword = new Texture(Gdx.files.internal(uiName + \"/fenceword.png\"));\n\t\tfencewordHit = new Texture(Gdx.files.internal(uiName + \"/fencewordhit.png\"));\n\t\tbarrierword = new Texture(Gdx.files.internal(uiName + \"/barrierword.png\"));\n\t\tbarrierwordHit = new Texture(Gdx.files.internal(uiName + \"/barrierwordhit.png\"));\n\t\tgatewayword = new Texture(Gdx.files.internal(uiName + \"/gatewayword.png\"));\n\t\tgatewaywordHit = new Texture(Gdx.files.internal(uiName + \"/gatewaywordhit.png\"));\n\t\tpowerupword = new Texture(Gdx.files.internal(uiName + \"/powerupword.png\"));\n\t\tpowerupwordHit = new Texture(Gdx.files.internal(uiName + \"/powerupwordhit.png\"));\n\t\tswitchword = new Texture(Gdx.files.internal(uiName + \"/switchword.png\"));\n\t\tswitchwordHit = new Texture(Gdx.files.internal(uiName + \"/switchwordhit.png\"));\n\t\tenemyfighterword = new Texture(Gdx.files.internal(uiName + \"/enemyfighterword.png\"));\n\t\tenemyfighterwordHit = new Texture(Gdx.files.internal(uiName + \"/enemyfighterwordhit.png\"));\n\t\tmineword = new Texture(Gdx.files.internal(uiName + \"/mineword.png\"));\n\t\tminewordHit = new Texture(Gdx.files.internal(uiName + \"/minewordhit.png\"));\n\t\tpushblockword = new Texture(Gdx.files.internal(uiName + \"/pushblockword.png\"));\n\t\tpushblockwordHit = new Texture(Gdx.files.internal(uiName + \"/pushblockwordhit.png\"));\n\t\tbombupword = new Texture(Gdx.files.internal(uiName + \"/bombupword.png\"));\n\t\tbombupwordHit = new Texture(Gdx.files.internal(uiName + \"/bombupwordhit.png\"));\n\t\t\n\t\t// ui\n\t\tsoundonbutton = new Texture(Gdx.files.internal(uiName + \"/soundon.png\"));\n\t\tsoundoffbutton = new Texture(Gdx.files.internal(uiName + \"/soundoff.png\"));\n\t\tcreatebutton = new Texture(Gdx.files.internal(uiName + \"/createbutton.png\"));\n\t\tnocreatebutton = new Texture(Gdx.files.internal(uiName + \"/nocreatebutton.png\"));\n\t\tloaderTexture = new Texture(Gdx.files.internal(uiName + \"/ff2loader.png\"));\n\t\tgameOverTexture = new Texture(Gdx.files.internal(uiName + \"/gameover.png\"));\n\t\tnextFieldTexture = new Texture(Gdx.files.internal(uiName + \"/nextfield.png\"));\n\t\t\n\t\tmenubutton = new Texture(Gdx.files.internal(uiName + \"/menubutton.png\"));\n\t\tnomenubutton = new Texture(Gdx.files.internal(uiName + \"/nomenubutton.png\"));\n\t\tdiffEasyButton = new Texture(Gdx.files.internal(uiName + \"/diffeasybutton.png\"));\n\t\tdiffNormButton = new Texture(Gdx.files.internal(uiName + \"/diffnormbutton.png\"));\n\t\tdiffHardButton = new Texture(Gdx.files.internal(uiName + \"/diffhardbutton.png\"));\n\t\tosdButton = new Texture(Gdx.files.internal(uiName + \"/osdbutton.png\"));\n\t\t\n\t\texoFFfont = new BitmapFont(Gdx.files.internal(uiName + \"/font/exo-ff.fnt\"), true);\n\t\t\n\t\t// creator\n\t\texitbutton = new Texture(Gdx.files.internal(creatorName + \"/exitbutton.png\"));\n\t\tfilebutton = new Texture(Gdx.files.internal(creatorName + \"/filebutton.png\"));\n\t\ttoolsbutton = new Texture(Gdx.files.internal(creatorName + \"/toolsbutton.png\"));\n\t\tnextbutton = new Texture(Gdx.files.internal(creatorName + \"/nextbutton.png\"));\n\t\tprevbutton = new Texture(Gdx.files.internal(creatorName + \"/prevbutton.png\"));\n\t\tdeletebutton = new Texture(Gdx.files.internal(creatorName + \"/deletebutton.png\"));\n\t\tyesbutton = new Texture(Gdx.files.internal(creatorName + \"/yesbutton.png\"));\n\t\tnobutton = new Texture(Gdx.files.internal(creatorName + \"/nobutton.png\"));\n\t\tbuildbutton = new Texture(Gdx.files.internal(creatorName + \"/buildbutton.png\"));\n\t\tprocbutton = new Texture(Gdx.files.internal(creatorName + \"/procbutton.png\"));\n\t\trandbutton = new Texture(Gdx.files.internal(creatorName + \"/randbutton.png\"));\n\t\tgroupsbutton = new Texture(Gdx.files.internal(creatorName + \"/groupsbutton.png\"));\n\t\tarenabutton = new Texture(Gdx.files.internal(creatorName + \"/arenabutton.png\"));\n\t\tfileExitButton = new Texture(Gdx.files.internal(creatorName + \"/fileexitbutton.png\"));\n\t\tfileLoadButton = new Texture(Gdx.files.internal(creatorName + \"/loadbutton.png\"));\n\t\tfileSaveButton = new Texture(Gdx.files.internal(creatorName + \"/savebutton.png\"));\n\t\tfilePlayButton = new Texture(Gdx.files.internal(creatorName + \"/playbutton.png\"));\n\t\tfileNoPlayButton = new Texture(Gdx.files.internal(creatorName + \"/noplaybutton.png\"));\n\t\tfileSendButton = new Texture(Gdx.files.internal(creatorName + \"/sendbutton.png\"));\n\t\ttoasterBack = new Texture(Gdx.files.internal(creatorName + \"/toasterback.png\"));\n\t\twindowBack = new Texture(Gdx.files.internal(creatorName + \"/windowback.png\"));\n\t\temptyCellTexture = new Texture(Gdx.files.internal(creatorName + \"/emptycell.png\"));\n\t\tcreateSplashTexture = new Texture(Gdx.files.internal(creatorName + \"/createsplash.png\"));\n\t\t\n\t\tplayerDef = new Texture(Gdx.files.internal(creatorName + \"/player_def.png\"));\n\t\tgatewayDef = new Texture(Gdx.files.internal(creatorName + \"/gateway_def.png\"));\n\t\tpowerupDef = new Texture(Gdx.files.internal(creatorName + \"/powerup_def.png\"));\n\t\tbombupDef = new Texture(Gdx.files.internal(creatorName + \"/bombup_def.png\"));\n\t\tswitchDef = new Texture(Gdx.files.internal(creatorName + \"/switch_def.png\"));\n\t\tscaffoldDef = new Texture(Gdx.files.internal(creatorName + \"/scaffold_def.png\"));\n\t\tbarrierDef = new Texture(Gdx.files.internal(creatorName + \"/barrier_def.png\"));\n\t\tfenceDef = new Texture(Gdx.files.internal(creatorName + \"/fence_def.png\"));\n\t\tturretDef = new Texture(Gdx.files.internal(creatorName + \"/turret_def.png\"));\n\t\tenemyDef = new Texture(Gdx.files.internal(creatorName + \"/enemy_def.png\"));\n\t\tmineDef = new Texture(Gdx.files.internal(creatorName + \"/mine_def.png\"));\n\t\tpushblockDef = new Texture(Gdx.files.internal(creatorName + \"/pushblock_def.png\"));\n\t\thangerDef = new Texture(Gdx.files.internal(creatorName + \"/hanger_def.png\"));\n\t\t\n\t\tdeleteDef = new Texture(Gdx.files.internal(creatorName + \"/delete_def.png\"));\n\t\tdeleteSel = new Texture(Gdx.files.internal(creatorName + \"/delete_sel.png\"));\n\t\tlockUnlock = new Texture(Gdx.files.internal(creatorName + \"/lock_unlock.png\"));\n\t\tlockLock = new Texture(Gdx.files.internal(creatorName + \"/lock_lock.png\"));\n\t\ttoolSelect = new Texture(Gdx.files.internal(creatorName + \"/toolselect.png\"));\n\t\t\n\t\t// game stuff\n\t\tplayerShipTexture = new Texture(Gdx.files.internal(gameName + \"/player2ship.png\"));\n\t\tplayerShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shippowerup.png\"));\n\t\tplayerShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/player2shipbombup.png\"));\n\t\tenemyShipTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2ship.png\"));\n\t\tenemyShipPowerupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shippowerup.png\"));\n\t\tenemyShipBombupTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipbombup.png\"));\n\t\tenemyShipOrderedTexture = new Texture(Gdx.files.internal(gameName + \"/enemy2shipordered.png\"));\n\t\tplayerBulletTexture = new Texture(Gdx.files.internal(gameName + \"/playerlaser.png\"));\n\t\tplayerCableTexture = new Texture(Gdx.files.internal(gameName + \"/playercable.png\"));\n\t\tenemyBulletTexture = new Texture(Gdx.files.internal(gameName + \"/enemylaser.png\"));\n\t\tenemyCableTexture = new Texture(Gdx.files.internal(gameName + \"/enemycable.png\"));\n\t\tbombCableTexture = new Texture(Gdx.files.internal(gameName + \"/bombcable.png\"));\n\t\tturretTexture = new Texture(Gdx.files.internal(gameName + \"/turret.png\"));\n\t\tturrethitTexture = new Texture(Gdx.files.internal(gameName + \"/turrethit.png\"));\t\n\t\tfenceTexture = new Texture(Gdx.files.internal(gameName + \"/fence.png\"));\n\t\tfencehitTexture = new Texture(Gdx.files.internal(gameName + \"/fencehit.png\"));\n\t\tbarrierTexture = new Texture(Gdx.files.internal(gameName + \"/barrier.png\"));\n\t\tbarrierhitTexture = new Texture(Gdx.files.internal(gameName + \"/barrierhit.png\"));\n\t\tgatewayonTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayon.png\"));\n\t\tgatewayoffTexture = new Texture(Gdx.files.internal(gameName + \"/gatewayoff.png\"));\n\t\tpowerupTexture = new Texture(Gdx.files.internal(gameName + \"/powerup.png\"));\n\t\tbombupTexture = new Texture(Gdx.files.internal(gameName + \"/bombup.png\"));\n\t\tbombupCharge = new Texture(Gdx.files.internal(gameName + \"/bombupcharge.png\"));\n\t\texplosion = new Texture(Gdx.files.internal(gameName + \"/explosion.png\"));\n\t\tdeath = new Texture(Gdx.files.internal(gameName + \"/death.png\"));\n\t\tpowerupCharge = new Texture(Gdx.files.internal(gameName + \"/powerupcharge.png\"));\n\t\tswitchonTexture = new Texture(Gdx.files.internal(gameName + \"/switchon.png\"));\n\t\tswitchoffTexture = new Texture(Gdx.files.internal(gameName + \"/switchoff.png\"));\n\t\tscaffoldTexture = new Texture(Gdx.files.internal(gameName + \"/scaffold.png\"));\n\t\tmineTexture = new Texture(Gdx.files.internal(gameName + \"/mine.png\"));\n\t\tminehitTexture = new Texture(Gdx.files.internal(gameName + \"/minehit.png\"));\n\t\tmineDebrisTexture = new Texture(Gdx.files.internal(gameName + \"/minedebris.png\"));\n\t\tpushblockTexture = new Texture(Gdx.files.internal(gameName + \"/pushblock.png\"));\n\t\thangerTexture = new Texture(Gdx.files.internal(gameName + \"/hanger.png\"));\n\t\thangerhitTexture = new Texture(Gdx.files.internal(gameName + \"/hangerhit.png\"));\n\t\t// have a catch here for the loaded=true?\n\t\tloaded = true;\n\t}", "public void loadGLTexture(GL10 gl, Location location)\n\t{\n\t\tgl.glGenTextures(2, textures, 0);\n\n\t\t// loading texture\n\t\tBitmap bitmap;\n\t\tfloat width;\n\t\tfloat height;\n\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[0]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble longitude = location.getLongitude();\n\t\t\tif (longitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" E\" + df.format(Math.abs(longitude)) );\n\t\t\telse if (longitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" W\" + df.format(Math.abs(longitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LON\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_long[0] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[3] = LONGITUDE_POINT - width; // left\n\t\tvertices_long[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_long[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle();\n\n\t\t// ...and bind it to our array\n\t\tgl.glBindTexture(GL10.GL_TEXTURE_2D, textures[1]);\n\n\t\t// create nearest filtered texture\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t\tgl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\n\t\t// loading texture\n\t\tif (location != null){\n\t\t\tdouble latitude = location.getLatitude();\n\t\t\tif (latitude > 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" N\" + df.format(Math.abs(latitude)) );\n\t\t\telse if (latitude < 0)\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" S\" + df.format(Math.abs(latitude)) );\n\t\t\telse\n\t\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\" );\n\t\t}\n\t\telse\n\t\t\tbitmap = GraphicUtil.getLngLatBitmap(\"LAT\" + \" \" + \"000.0000\");\n\n\t\t// Use Android GLUtils to specify a two-dimensional texture image from our bitmap\n\t\tGLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\n\t\t// calculate the bitmap's size respectively to the size of the screen \n\t\twidth = bitmap.getWidth() / 1000f * FONT_SIZE;\n\t\theight = bitmap.getHeight() / 1000f * FONT_SIZE;\n\n\t\t//Log.v(TAG , \"width : \" + width + \" , height : \" + height );\n\n\t\t// resize the vertices according to the size of the bitmap\n\t\tvertices_lat[6] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[9] = LATITUDE_POINT + width; // right\n\t\tvertices_lat[1] = VERTICAL_POINT - height;// bottom\n\t\tvertices_lat[7] = VERTICAL_POINT - height;// bottom\n\n\t\t// Clean up\n\t\tbitmap.recycle(); \n\t}", "private void heroStandingTextureLoad() {\n standLeft = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n standBack = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_back.png\", Texture.class), 1, 1, 16, 21);\n standFront = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_front.png\", Texture.class), 1, 1, 17, 22);\n standRight = new TextureRegion(logicController.getGame().getAssetManager().get(\"Game/hero_left.png\", Texture.class), 1, 1, 16, 21);\n }", "private void chargerTextures() {\n String messageErreur = \"\";\n try {\n JETON_2 = new Texture(Gdx.files.internal(\"textures/jeton_2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_2.png\"+\"\\n\";\n }\n try {\n JETON_3 = new Texture(Gdx.files.internal(\"textures/jeton_3.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_3.png\"+\"\\n\";\n }\n try {\n JETON_4 = new Texture(Gdx.files.internal(\"textures/jeton_4.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_4.png\"+\"\\n\";\n }\n try {\n JETON_5 = new Texture(Gdx.files.internal(\"textures/jeton_5.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_5.png\"+\"\\n\";\n }\n try {\n JETON_6 = new Texture(Gdx.files.internal(\"textures/jeton_6.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_6.png\"+\"\\n\";\n }\n try {\n JETON_8 = new Texture(Gdx.files.internal(\"textures/jeton_8.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_8.png\"+\"\\n\";\n }\n try {\n JETON_9 = new Texture(Gdx.files.internal(\"textures/jeton_9.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_9.png\"+\"\\n\";\n }\n try {\n JETON_10 = new Texture(Gdx.files.internal(\"textures/jeton_10.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_10.png\"+\"\\n\";\n }\n try {\n JETON_11 = new Texture(Gdx.files.internal(\"textures/jeton_11.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_11.png\"+\"\\n\";\n }\n try {\n JETON_12 = new Texture(Gdx.files.internal(\"textures/jeton_12.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/jeton_12.png\"+\"\\n\";\n }\n try {\n FORET = new Texture(Gdx.files.internal(\"textures/texture_foret.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_foret.png\"+\"\\n\";\n }\n try {\n PRE = new Texture(Gdx.files.internal(\"textures/texture_pre.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_pre.png\"+\"\\n\";\n }\n try {\n CHAMP = new Texture(Gdx.files.internal(\"textures/texture_champ.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_champ.png\"+\"\\n\";\n }\n try {\n COLLINE = new Texture(Gdx.files.internal(\"textures/texture_colline.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_colline.png\"+\"\\n\";\n }\n try {\n MONTAGNE = new Texture(Gdx.files.internal(\"textures/texture_montagne.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_montagne.png\"+\"\\n\";\n }\n try {\n DESERT = new Texture(Gdx.files.internal(\"textures/texture_desert.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_desert.png\"+\"\\n\";\n }\n try {\n MER = new Texture(Gdx.files.internal(\"textures/texture_mer.jpg\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_mer.jpg\"+\"\\n\";\n }\n try {\n PORT = new Texture(Gdx.files.internal(\"textures/texture_port2.png\"));\n } catch (Exception e) {\n messageErreur += \"Erreur lors du chargement de la texture : \"+\"textures/texture_port2.png\"+\"\\n\";\n }\n System.err.println(messageErreur);\n }", "public void loadTexture(GL10 gl, Context context) {\n\t gl.glGenTextures(1, textureIDs, 0); // Generate texture-ID array\n\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureIDs[0]); // Bind to texture ID\n\t // Set up texture filters\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\t \n\t // Construct an input stream to texture image \"res\\drawable\\gadiworks.png\"\n\t InputStream istream = context.getResources().openRawResource(R.drawable.gadiworks);\n\t Bitmap bitmap = null;\n\t try {\n\t // Read and decode input as bitmap\n\t bitmap = BitmapFactory.decodeStream(istream);\n\t } finally {\n\t try {\n\t istream.close();\n\t } catch(IOException e) { }\n\t }\n\t // Build Texture from loaded bitmap for the currently-bind texture ID\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t bitmap.recycle();\n\t}", "public String getTexture(){\n\t\treturn texture;\n\t}", "public interface IGameAsset {\n\t\n\t/**\n\t * abstract method for load all game's resources in startup time.\n\t */\n\tpublic void load();\n\n\t/**\n\t * Dispose the resources in game asset when exiting game\n\t */\n\tpublic void dispose();\n\t\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param isLoop set audio is looping\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return the Music\n\t */\n\tpublic Music loadMusic(String fileName, boolean isLoop, float volumn);\n\t/**\n\t * Load Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName);\n\t/**\n\t * Load a Music by filepath name\n\t * @param fileName music filepath to load.\n\t * @param volumn the Volumn (0f -> 1f)\n\t * @return\n\t */\n\tpublic Music loadMusic(String fileName, float volume);\n\t/**\n\t * Load a Sound from filepath\n\t * @param file File to load\n\t * @return the Sound\n\t */\n\tpublic Sound loadSound(String file);\n\n\t/**\n\t * Load a shader from shader-vs and shader-fs from file path\n\t * @param vsProcess\n\t * @param fsProcess\n\t * @return ShaderProgram\n\t */\n\tpublic ShaderProgram loadShader(String vsProcess, String fsProcess);\n\n\t/**\n\t * Load a Model for object 3D from file path\n\t * @param filepath\n\t * @return\n\t */\n\tpublic StillModel loadModel(String filepath);\n\t/**\n\t * Load texture from file path\n\t * @param file File to load\n\t * @return The texture\n\t */\n\tpublic Texture loadTexture(String file, Format format, boolean useMipMap);\n\n//\t/**abstract method for load TextureRegion\n//\t * @param filepath File to load\n//\t * @param format format of texture\n//\t * @param useMipMap\n//\t * @param rec \n//\t * @return\n//\t */\n//\tTextureRegion loadTextureRegion(String filepath, Format format,\n//\t\t\tboolean useMipMap, Rectangle rec);\n\n\t/**abstract method for load TextureRegion\n\t * @param texture texture of TextureRegion\n\t * @param rec rectangle used to specify the region on texture\n\t * @return\n\t */\n\tpublic TextureRegion loadTextureRegion(Texture texture, Rectangle rec);\n\t/**\n\t * load a bitmap font by font file (*.fnt) and font image file\n\t * @param fileFont font\n\t * @param fileImage font image\n\t * @param flip Flip the font for axis-y down\n\t * @return\n\t */\n\tpublic BitmapFont loadBitmapFont(String fileFont, String fileImage, boolean flip);\n\n\tpublic TextureRegion loadTextureRegion(Texture t);\n\n\tTextureRegion loadTextureRegion(String textureFile, Rectangle rec);\n\n\tTextureRegion loadTextureRegion(String textureFile);\n\n\tTexture loadTexture(String filepath);\n\n\tBitmapFont loadBitmapFont(String fileFont);\n\n\tShaderProgram loadShader(String vsFilePath);\n}", "SurfaceTexture mo17006a();", "public void backBufferIntoTexture()\r\n\t{\r\n\t\tgl.glEnable(GL_TEXTURE_2D);\r\n\t\tgl.glShadeModel(GL_FLAT);\r\n\t\tif (InternalTexture[0] == 0) {\r\n\t\t\tgl.glGenTextures(1,InternalTexture);\r\n\t\t\tSystem.out.print(\"Initializing internal texture \"+InternalTexture[0]+\":[\"+getWidth()+\",\"+getHeight()+\"]\\n\");\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, 0, 0, this.getWidth(), this.getHeight(), 0);\r\n\t\t}\r\n\t\telse {\r\n\t\t\tgl.glBindTexture(GL_TEXTURE_2D, InternalTexture[0]);\r\n\t\t\tgl.glCopyTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, 0, 0, this.getWidth(), this.getHeight());\r\n\t\t}\r\n\t\tglut.glutReportErrors();\r\n\t}", "private void initTextures() {\n\n\t\ttextureManager.loadTexture(\"PNG\", \"menu_bg\", \"res/menu_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"mountain_bg\", \"res/mountain_bg.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"ball\", \"res/ball_sm.png\");\n\t\ttextureManager.loadTexture(\"PNG\", \"inner_bg1\", \"res/inner_bg1.png\");\r\n\t\ttextureManager.loadSheet(\"stand_still\", \"res/stand_still.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"testAnim\", \"res/testAnim.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"tileSet\", \"res/tileset_small.png\", 32, 32);\n\t\ttextureManager.loadSheet(\"walking\", \"res/walking.png\", 32, 64);\r\n\t\ttextureManager.loadSheet(\"jumping\", \"res/jumping.png\", 32, 64);\n\t\ttextureManager.loadSheet(\"slime_still\", \"res/slime_still_small.png\", 32, 32);\n\t}", "public TextureImpl getTexture(InputStream in, String resourceName, boolean flipped, int filter, int[] transparent) throws IOException {\n/* 215 */ if (this.deferred) {\n/* 216 */ return new DeferredTexture(in, resourceName, flipped, filter, transparent);\n/* */ }\n/* */ \n/* 219 */ HashMap<String, TextureImpl> hash = this.texturesLinear;\n/* 220 */ if (filter == 9728) {\n/* 221 */ hash = this.texturesNearest;\n/* */ }\n/* */ \n/* 224 */ String resName = resourceName;\n/* 225 */ if (transparent != null) {\n/* 226 */ resName = String.valueOf(resName) + \":\" + transparent[0] + \":\" + transparent[1] + \":\" + transparent[2];\n/* */ }\n/* 228 */ resName = String.valueOf(resName) + \":\" + flipped;\n/* */ \n/* 230 */ if (this.holdTextureData) {\n/* 231 */ TextureImpl textureImpl = (TextureImpl)hash.get(resName);\n/* 232 */ if (textureImpl != null) {\n/* 233 */ return textureImpl;\n/* */ }\n/* */ } else {\n/* 236 */ SoftReference<TextureImpl> ref = (SoftReference)hash.get(resName);\n/* 237 */ if (ref != null) {\n/* 238 */ TextureImpl textureImpl = ref.get();\n/* 239 */ if (textureImpl != null) {\n/* 240 */ return textureImpl;\n/* */ }\n/* 242 */ hash.remove(resName);\n/* */ } \n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 249 */ GL.glGetError();\n/* 250 */ } catch (NullPointerException e) {\n/* 251 */ throw new RuntimeException(\"Image based resources must be loaded as part of init() or the game loop. They cannot be loaded before initialisation.\");\n/* */ } \n/* */ \n/* 254 */ TextureImpl tex = getTexture(in, resourceName, \n/* 255 */ 3553, \n/* 256 */ filter, \n/* 257 */ filter, flipped, transparent);\n/* */ \n/* 259 */ tex.setCacheName(resName);\n/* 260 */ if (this.holdTextureData) {\n/* 261 */ hash.put(resName, tex);\n/* */ } else {\n/* 263 */ hash.put(resName, (TextureImpl)new SoftReference<>(tex));\n/* */ } \n/* */ \n/* 266 */ return tex;\n/* */ }", "public void load(String path) {\n try {\n texId = new TextureId(path);\n BufferedImage image = ImageIO.read(new FileInputStream(\"resources\" + texId.getPath()));\n createImage(image);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "SurfaceTexture mo17015a();", "public void loadAllTextures() {\n loadEntityTextures();\n loadDynamicEntityTextures();\n loadTileTextures();\n loadLiveTileTextures();\n }", "public Texture getTexture(ImageData dataSource, int filter) throws IOException {\n/* 387 */ int target = 3553;\n/* */ \n/* */ \n/* 390 */ ByteBuffer textureBuffer = dataSource.getImageBufferData();\n/* */ \n/* */ \n/* 393 */ int textureID = createTextureID();\n/* 394 */ TextureImpl texture = new TextureImpl(\"generated:\" + dataSource, target, textureID);\n/* */ \n/* 396 */ int minFilter = filter;\n/* 397 */ int magFilter = filter;\n/* 398 */ boolean flipped = false;\n/* */ \n/* */ \n/* 401 */ GL.glBindTexture(target, textureID);\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 410 */ int width = dataSource.getWidth();\n/* 411 */ int height = dataSource.getHeight();\n/* 412 */ boolean hasAlpha = (dataSource.getDepth() == 32);\n/* */ \n/* 414 */ texture.setTextureWidth(dataSource.getTexWidth());\n/* 415 */ texture.setTextureHeight(dataSource.getTexHeight());\n/* */ \n/* 417 */ int texWidth = texture.getTextureWidth();\n/* 418 */ int texHeight = texture.getTextureHeight();\n/* */ \n/* 420 */ int srcPixelFormat = hasAlpha ? 6408 : 6407;\n/* 421 */ int componentCount = hasAlpha ? 4 : 3;\n/* */ \n/* 423 */ texture.setWidth(width);\n/* 424 */ texture.setHeight(height);\n/* 425 */ texture.setAlpha(hasAlpha);\n/* */ \n/* 427 */ IntBuffer temp = BufferUtils.createIntBuffer(16);\n/* 428 */ GL.glGetInteger(3379, temp);\n/* 429 */ int max = temp.get(0);\n/* 430 */ if (texWidth > max || texHeight > max) {\n/* 431 */ throw new IOException(\"Attempt to allocate a texture to big for the current hardware\");\n/* */ }\n/* */ \n/* 434 */ if (this.holdTextureData) {\n/* 435 */ texture.setTextureData(srcPixelFormat, componentCount, minFilter, magFilter, textureBuffer);\n/* */ }\n/* */ \n/* 438 */ GL.glTexParameteri(target, 10241, minFilter);\n/* 439 */ GL.glTexParameteri(target, 10240, magFilter);\n/* */ \n/* */ \n/* 442 */ GL.glTexImage2D(target, \n/* 443 */ 0, \n/* 444 */ this.dstPixelFormat, \n/* 445 */ get2Fold(width), \n/* 446 */ get2Fold(height), \n/* 447 */ 0, \n/* 448 */ srcPixelFormat, \n/* 449 */ 5121, \n/* 450 */ textureBuffer);\n/* */ \n/* 452 */ return texture;\n/* */ }", "abstract public void loadSprite();", "String getTextureName();", "@Override\n\tpublic String getTexture() {\n\t\treturn type.getTextureString();\n\t}", "public static void loadBlockTextures() {\n\t\tspriteTopOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOn.png\");\n\t\tspriteTopOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/topOff.png\");\n\t\tspriteROn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOn.png\");\n\t\tspriteROff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/rxOff.png\");\n\t\tspriteTOn = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOn.png\");\n\t\tspriteTOff = ModLoader.addOverride(\"/terrain.png\",\n\t\t\t\t\"/WirelessSprites/txOff.png\");\n\t}", "@Override\n\tpublic int getTexture() {\n\t\treturn 0;\n\t}", "public Texture() {\n }", "public Texture(String path)\n {\n texture = load(path);\n }", "private void createImage(BufferedImage image) {\n texId.setId(glGenTextures());\n loaded = true;\n\n try {\n int[] pixels = new int[image.getHeight() * image.getWidth()];\n\n image.getRGB(0, 0, image.getWidth(), image.getHeight(), pixels, 0, image.getWidth());\n\n Window.console.println(\"Texture num : \" + texId.getId() + \" , loaded with path : \" + texId.getPath());\n\n ByteBuffer buffer = BufferUtils.createByteBuffer(image.getHeight() * image.getWidth() * 4);\n\n for (int i = 0; i < image.getHeight(); i++) {\n for (int j = 0; j < image.getWidth(); j++) {\n int pixel = pixels[i * image.getWidth() + j];\n buffer.put((byte) ((pixel >> 16) & 0xFF)); // RED\n buffer.put((byte) ((pixel >> 8) & 0xFF)); // GREEN\n buffer.put((byte) (pixel & 0xFF)); // BLUE\n buffer.put((byte) ((pixel >> 24) & 0xFF)); // ALPHA\n }\n }\n\n buffer.flip();\n\n this.width = image.getWidth();\n this.height = image.getHeight();\n\n setParam(GL_TEXTURE_WRAP_S, GL_CLAMP_TO_BORDER);\n setParam(GL_TEXTURE_WRAP_T, GL_CLAMP_TO_BORDER);\n setParam(GL_TEXTURE_MIN_FILTER, GL_LINEAR);\n setParam(GL_TEXTURE_MAG_FILTER, GL_LINEAR);\n\n upload(buffer);\n GameManager.texManager.add(texId);\n } catch (Exception e) {\n e.printStackTrace();\n unload();\n }\n }", "public TextureRegion loadTextureRegion(Texture texture, Rectangle rec);", "public Texture fetchTexture(String filename)\n throws IOException\n {\n Texture texture = (Texture)textureMap.get(filename);\n \n if(texture == null)\n {\n ImageComponent img = (ImageComponent)componentMap.get(filename);\n \n if(img == null)\n {\n img = load2DImage(filename);\n componentMap.put(filename, img);\n }\n \n int format = getTextureFormat(img);\n \n if(img instanceof ImageComponent2D)\n {\n texture = new Texture2D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight());\n }\n else\n {\n texture = new Texture3D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight(),\n ((ImageComponent3D)img).getDepth());\n }\n \n texture.setImage(0, img);\n \n textureMap.put(filename, texture);\n }\n \n return texture;\n }", "public void preload() {\n\t\ttry {\n\t\t\ttexture = TextureLoader.getTexture(\"PNG\",\n\t\t\t\t\tResourceLoader.getResourceAsStream(file));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tloaded = true;\n\t}", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCowTextures((EntityCow)par1Entity);\n }", "private int load(String path)\n {\n int pixels[] = null;\n int width = 0;\n int height = 0;\n\n try\n {\n BufferedImage image = ImageIO.read(new FileInputStream(\"res/\" + path));\n width = image.getWidth();\n height = image.getHeight();\n pixels = new int[width * height];\n image.getRGB(0, 0, width, height, pixels, 0, width);\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n int[] data = new int[width * height];\n\n for (int i = 0; i < width * height; i++)\n {\n int a = (pixels[i] & 0xff000000) >> 24;\n int r = (pixels[i] & 0xff0000) >> 16;\n int g = (pixels[i] & 0xff00) >> 8;\n int b = (pixels[i] & 0xff);\n\n data[i] = a << 24 | b << 16 | g << 8 | r;\n }\n\n int result = glGenTextures();\n allTextures.add(result);\n\n glBindTexture(GL_TEXTURE_2D, result);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, width, height, 0, GL_RGBA, GL_UNSIGNED_BYTE, BufferUtils.createIntBuffer(data));\n glActiveTexture(GL_TEXTURE0);\n glBindTexture(GL_TEXTURE_2D, 0);\n return result;\n }", "public void preLoadContent(AssetManager manager) {\n\t\tif (worldAssetState != AssetState.EMPTY) {\n\t\t\treturn;\n\t\t}\n\n\t\tworldAssetState = AssetState.LOADING;\n\n\t\tmanager.load(KOI_TEXTURE, Texture.class);\n\t\tassets.add(KOI_TEXTURE);\n\n\t\tmanager.load(ENEMY_TEXTURE, Texture.class);\n\t\tassets.add(ENEMY_TEXTURE);\n\n\t\tmanager.load(LILY_TEXTURE, Texture.class);\n\t\tassets.add(LILY_TEXTURE);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_N, Texture.class);\n\t\tassets.add(LILY_TEXTURE_N);\n\t\t\n\t\tmanager.load(LILY_TEXTURE_S, Texture.class);\n\t\tassets.add(LILY_TEXTURE_S);\n\n\t\tmanager.load(LANTERN_TEXTURE, Texture.class);\n\t\tassets.add(LANTERN_TEXTURE);\n\n\t\tmanager.load(LIGHTING_TEXTURE, Texture.class);\n\t\tassets.add(LIGHTING_TEXTURE);\n\n\t\tmanager.load(SHADOW_TEXTURE, Texture.class);\n\t\tassets.add(SHADOW_TEXTURE);\n\n\t\tmanager.load(GOAL_TEXTURE, Texture.class);\n\t\tassets.add(GOAL_TEXTURE);\n\n\t\tmanager.load(EARTH_FILE,Texture.class);\n\t\tassets.add(EARTH_FILE);\n\n\t\tmanager.load(EARTH_FILE_D,Texture.class);\n\t\tassets.add(EARTH_FILE_D);\n\t\tmanager.load(EARTH_FILE_N,Texture.class);\n\t\tassets.add(EARTH_FILE_N);\n\t\tmanager.load(EARTH_FILE_S,Texture.class);\n\t\tassets.add(EARTH_FILE_S);\n\t\tmanager.load(SHORE_FILE,Texture.class);\n\t\tassets.add(SHORE_FILE);\n\n\t\tmanager.load(ROCK_FILE_D,Texture.class);\n\t\tassets.add(ROCK_FILE_D);\n\t\tmanager.load(ROCK_FILE_N,Texture.class);\n\t\tassets.add(ROCK_FILE_N);\n\t\tmanager.load(ROCK_FILE_S,Texture.class);\n\t\tassets.add(ROCK_FILE_S);\n\n\t\tmanager.load(WHIRLPOOL_TEXTURE, Texture.class);\n\t\tassets.add(WHIRLPOOL_TEXTURE);\n\t\t\n\t\tmanager.load(ENERGYBAR_TEXTURE, Texture.class);\n\t\tassets.add(ENERGYBAR_TEXTURE);\n\n\t\tmanager.load(UI_FLOWER, Texture.class);\n\t\tassets.add(UI_FLOWER);\n\n\t\tmanager.load(OVERLAY, Texture.class);\n\t\tassets.add(OVERLAY);\n\n\t\tmanager.load(BACKGROUND_FILE_N, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_N);\n\n\t\tmanager.load(BACKGROUND_FILE_D, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_D);\n\n\t\tmanager.load(BACKGROUND_FILE_S, Texture.class);\n\t\tassets.add(BACKGROUND_FILE_S);\n\t\t\n\t\t\n\n\t\tmanager.load(OVERLAY_FILE, Texture.class);\n\t\tassets.add(OVERLAY_FILE);\n\n\t\tmanager.load(KOI_ARROW, Texture.class);\n\t\tassets.add(KOI_ARROW);\n\t\tmanager.load(WHIRL_ARROW, Texture.class);\n\t\tassets.add(WHIRL_ARROW);\n\t\t\n\t\tmanager.load(TUTORIAL_TEXTURE1, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE1);\n\t\tmanager.load(TUTORIAL_TEXTURE2, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE2);\n\t\tmanager.load(TUTORIAL_TEXTURE3, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE3);\n\t\tmanager.load(TUTORIAL_TEXTURE4, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE4);\n\t\tmanager.load(TUTORIAL_TEXTURE5, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE5);\n\t\tmanager.load(TUTORIAL_TEXTURE6, Texture.class);\n\t\tassets.add(TUTORIAL_TEXTURE6);\n\t\t\n\t\tmanager.load(HELP_TEXTURE, Texture.class);\n\t\tassets.add(HELP_TEXTURE);\n\t\t\n\n\t\treferenceC.a = 0f;\n\n\t\t// Load the font\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size2Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize2Params.fontFileName = FONT_FILE;\n\t\tsize2Params.fontParameters.size = FONT_SIZE;\n\t\tmanager.load(FONT_FILE, BitmapFont.class, size2Params);\n\t\tassets.add(FONT_FILE);\n\n\t\tFreetypeFontLoader.FreeTypeFontLoaderParameter size3Params = new FreetypeFontLoader.FreeTypeFontLoaderParameter();\n\t\tsize3Params.fontFileName = FONT_FILE2;\n\t\tsize3Params.fontParameters.size = FONT_SIZE2;\n\t\tmanager.load(FONT_FILE2, BitmapFont.class, size3Params);\n\t\tassets.add(FONT_FILE2);\n\t\t\n\t\t\n\t}", "protected Texture initializeTexture(DrawContext dc)\n {\n if (this.sourceTexture != null && dc.getTextureCache().get(sourceTexture.getImageSource()) == null)\n {\n // Limit FBO size to the max OGL size or 4k, whichever is smaller\n int maxSize = Math.min(dc.getGLRuntimeCapabilities().getMaxTextureSize(), 4096);\n\n sourceTexture.bind(dc); // bind loads the image and sets the width and height\n if (sourceTexture.getWidth(dc) != 0 && sourceTexture.getHeight(dc) != 0)\n {\n this.width = Math.min(maxSize, sourceTexture.getWidth(dc));\n this.height = Math.min(maxSize, sourceTexture.getHeight(dc));\n }\n }\n\n GL gl = GLContext.getCurrent().getGL();\n\n int[] fbo = new int[1];\n gl.glGenFramebuffersEXT(1, fbo, 0);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, fbo[0]);\n\n TextureData td = new TextureData(GL.GL_RGBA, this.width, this.height, 0, GL.GL_RGBA, GL.GL_UNSIGNED_BYTE,\n false, false, true, BufferUtil.newByteBuffer(this.width * this.height * 4), null);\n Texture t = TextureIO.newTexture(td);\n t.bind();\n\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MIN_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_MAG_FILTER, GL.GL_LINEAR);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_S, GL.GL_CLAMP_TO_EDGE);\n gl.glTexParameteri(GL.GL_TEXTURE_2D, GL.GL_TEXTURE_WRAP_T, GL.GL_CLAMP_TO_EDGE);\n\n gl.glFramebufferTexture2DEXT(GL.GL_FRAMEBUFFER_EXT, GL.GL_COLOR_ATTACHMENT0_EXT, GL.GL_TEXTURE_2D,\n t.getTextureObject(), 0);\n\n int status = gl.glCheckFramebufferStatusEXT(GL.GL_FRAMEBUFFER_EXT);\n if (status == GL.GL_FRAMEBUFFER_COMPLETE_EXT)\n {\n this.generateTexture(dc, this.width, this.height);\n gl.glBindFramebufferEXT(GL.GL_FRAMEBUFFER_EXT, 0);\n gl.glDeleteFramebuffersEXT(1, fbo, 0);\n }\n else\n {\n throw new IllegalStateException(\"Frame Buffer Oject not created.\");\n }\n\n dc.getTextureCache().put(this, t);\n\n return t;\n }", "public static Render loadBitmap(String location) {\n try {\n BufferedImage texture = ImageIO.read(new File(location));\n int width = texture.getWidth();\n int height = texture.getHeight();\n Render result = new Render(width, height);\n texture.getRGB(0, 0, width, height, result.pixels, 0, width);\n return result;\n } catch (Exception e) {\n System.out.println(\"Cannot load texture \" + location);\n throw new RuntimeException(e);\n }\n }", "@Override\n\tprotected ResourceLocation getEntityTexture(Entity entity) {\n\t\treturn texture;\n\t}", "private void setupTexture() {\n GLES20.glActiveTexture(GLES20.GL_TEXTURE0);\n GLES20.glGenTextures(1, textures, 0);\n checkGlError(\"Texture generate\");\n\n GLES20.glBindTexture(GLES11Ext.GL_TEXTURE_EXTERNAL_OES, textures[0]);\n checkGlError(\"Texture bind\");\n\n videoTexture = new SurfaceTexture(textures[0]);\n videoTexture.setOnFrameAvailableListener(this);\n }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityBat)p_110775_1_);\n }", "public Texture getTexture(File source, boolean flipped, int filter, int[] transparent) throws IOException {\n/* 153 */ String resourceName = source.getAbsolutePath();\n/* 154 */ InputStream in = new FileInputStream(source);\n/* */ \n/* 156 */ return getTexture(in, resourceName, flipped, filter, transparent);\n/* */ }", "@Override\n\tpublic String getTextureFile() \n\t{\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "public void loadAllTextures()\n {\n int numChildren = androidRobot3DObject.numChildren();\n for(int i = 0;i<numChildren;i++)\n {\n String name = androidRobot3DObject.getChildAt(i).name();\n\n Log.d(\"min3d\", \"Texture name: \" + name);\n\n // The name is either extracted from the _mtl file\n // or directly from the *.3ds file\n // The name can be given directly into Blender\n if(name.indexOf(\"body\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_body\");\n }\n\n if(name.indexOf(\"head\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_head\");\n }\n\n if(name.indexOf(\"foot\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_foot\");\n }\n\n\n if(name.indexOf(\"arm\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_arm\");\n }\n\n if(name.indexOf(\"antenna\")!=-1)\n {\n androidRobot3DObject.getChildAt(i).textures().clear();\n androidRobot3DObject.getChildAt(i).textures().addById(\"squared_robot_antenna\");\n }\n }\n\n }", "public Texture getTexture(String resourceName, boolean flipped, int filter, int[] transparent) throws IOException {\n/* 185 */ InputStream in = ResourceLoader.getResourceAsStream(resourceName);\n/* */ \n/* 187 */ return getTexture(in, resourceName, flipped, filter, transparent);\n/* */ }", "public native void setTexturePath ( String texturePath );", "public Texture fetchTexture(URL url)\n throws IOException\n {\n String file_path = url.toExternalForm();\n \n Texture texture = (Texture)textureMap.get(file_path);\n \n if(texture == null)\n {\n ImageComponent img = (ImageComponent)componentMap.get(file_path);\n \n if(img == null)\n {\n img = load2DImage(file_path);\n componentMap.put(file_path, img);\n }\n \n int format = getTextureFormat(img);\n \n if(img instanceof ImageComponent2D)\n {\n texture = new Texture2D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight());\n }\n else\n {\n texture = new Texture3D(Texture.BASE_LEVEL,\n format,\n img.getWidth(),\n img.getHeight(),\n ((ImageComponent3D)img).getDepth());\n }\n \n texture.setImage(0, img);\n \n textureMap.put(file_path, texture);\n }\n \n return texture;\n }", "private boolean isTextureLoaded() {\n return loaded;\n }", "@Override\n\t\tprotected ResourceLocation getEntityTexture(EntityLivingBase entity) {\n\t\t\treturn texture;\n\t\t}", "@Override\n\tpublic void onLoadResources() {\n\t\tBitmapTextureAtlasTextureRegionFactory.setAssetBasePath(\"gfx/\");\t\t\n\t\tmBitmapParralaxTextureAtlas=new BitmapTextureAtlas(1024,1024);\n\t\tmBitmapTextureAtlas=new BitmapTextureAtlas(512, 512);\n\t\tmTextureRegion=BitmapTextureAtlasTextureRegionFactory.createFromAsset(mBitmapParralaxTextureAtlas, this, \"parallax_background_layer_back.png\", 0, 0);\n\t\tbananaRegion=BitmapTextureAtlasTextureRegionFactory.createTiledFromAsset(mBitmapTextureAtlas, this, \"banana_tiled.png\", 0, 0, 4,2);\n\t\tmEngine.getTextureManager().loadTextures(mBitmapParralaxTextureAtlas,mBitmapTextureAtlas);\n\t}", "public void create() {\r\n\t\t\r\n\t\tTexture.setEnforcePotImages(false);\r\n\t\t\r\n\t\tGdx.input.setInputProcessor(new MyInputProcessor());\r\n\t\t\r\n\t\t\r\n\t\ttextures = Tex.getTex();\r\n\t\t// load images\r\n\t\ttextures.loadTexture(\"res/images/guyDown.png\", \"guyDown\");\r\n\t\ttextures.loadTexture(\"res/images/guyUp.png\", \"guyUp\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Down.png\", \"guyDown2\");\r\n\t\ttextures.loadTexture(\"res/images/guy2Up.png\", \"guyUp2\");\r\n\t\ttextures.loadTexture(\"res/images/enemyDown.png\", \"enemyDown\");\r\n\t\ttextures.loadTexture(\"res/images/enemyUp.png\", \"enemyUp\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/skyline.png\", \"skyline\");\r\n\t\ttextures.loadTexture(\"res/images/skyline2.jpg\", \"skyline2\");\r\n\t\ttextures.loadTexture(\"res/images/skyline3.png\", \"skyline3\");\t\t\r\n\t\ttextures.loadTexture(\"res/images/circuit board.jpg\", \"fundo2\");\r\n\t\ttextures.loadTexture(\"res/images/grav3.jpg\", \"menu\");\r\n\t\t\r\n\t\ttextures.loadTexture(\"res/images/singleplayer.png\", \"single\");\r\n\t\ttextures.loadTexture(\"res/images/multiplayer.png\", \"multi\");\r\n\t\ttextures.loadTexture(\"res/images/exit.png\", \"exit\");\r\n\t\ttextures.loadTexture(\"res/images/level1B.png\", \"B1\");\r\n\t\ttextures.loadTexture(\"res/images/level2B.png\", \"B2\");\r\n\t\ttextures.loadTexture(\"res/images/level3B.png\", \"B3\");\r\n\t\ttextures.loadTexture(\"res/images/mainMenuB.png\", \"mainB\");\r\n\t\ttextures.loadTexture(\"res/images/win1.png\", \"win1\");\r\n\t\ttextures.loadTexture(\"res/images/win2.png\", \"win2\");\r\n\t\ttextures.loadTexture(\"res/images/tryagain.png\", \"retry\");\r\n\t\ttextures.loadTexture(\"res/images/easy.png\", \"easy\");\r\n\t\ttextures.loadTexture(\"res/images/medium.png\", \"medium\");\r\n\t\ttextures.loadTexture(\"res/images/hard.png\", \"hard\");\r\n\t\ttextures.loadTexture(\"res/images/difficulty.png\", \"difficulty\");\r\n\t\ttextures.loadTexture(\"res/images/thunder2.png\", \"thunder\");\r\n\t\r\n\t\ttextures.loadTexture(\"res/images/levelcleared.png\", \"cleared\");\r\n\t\ttextures.loadTexture(\"res/images/you lost.png\", \"lost\");\r\n\t\ttextures.loadTexture(\"res/images/playerpress.png\", \"playerp\");\r\n\t\ttextures.loadTexture(\"res/images/player1press.png\", \"player1p\");\r\n\t\ttextures.loadTexture(\"res/images/player2press.png\", \"player2p\");\r\n\t\ttextures.loadTexture(\"res/images/selectthelevel.png\", \"select\");\r\n\t\t\r\n\t\t\r\n\t\tsb = new SpriteBatch();\r\n\t\tcam = new OrthographicCamera();\r\n\t\tcam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\thudCam = new OrthographicCamera();\r\n\t\thudCam.setToOrtho(false, V_WIDTH, V_HEIGHT);\r\n\t\tgsm = new GameStateManager(this);\r\n\t\t\t\t\r\n\t}", "@Override\n\tpublic final IRenderable load() {\n\t\tImage img = loadImage();\n\t\tassertImageIsValid(img);\n\t\treturn new ImageRenderable(img);\n\t}", "public static Texture getTexture(String resourceName, BufferedImage resourceimage, int target, int dstPixelFormat, int minFilter, int magFilter) throws IOException {\n/* 92 */ ImageIOImageData data = new ImageIOImageData(); int srcPixelFormat = 0;\n/* */ \n/* */ \n/* 95 */ int textureID = InternalTextureLoader.createTextureID();\n/* 96 */ TextureImpl texture = new TextureImpl(resourceName, target, textureID);\n/* */ \n/* */ \n/* 99 */ Renderer.get().glEnable(3553);\n/* */ \n/* */ \n/* 102 */ Renderer.get().glBindTexture(target, textureID);\n/* */ \n/* 104 */ BufferedImage bufferedImage = resourceimage;\n/* 105 */ texture.setWidth(bufferedImage.getWidth());\n/* 106 */ texture.setHeight(bufferedImage.getHeight());\n/* */ \n/* 108 */ if (bufferedImage.getColorModel().hasAlpha()) {\n/* 109 */ srcPixelFormat = 6408;\n/* */ } else {\n/* 111 */ srcPixelFormat = 6407;\n/* */ } \n/* */ \n/* */ \n/* 115 */ ByteBuffer textureBuffer = data.imageToByteBuffer(bufferedImage, false, false, null);\n/* 116 */ texture.setTextureHeight(data.getTexHeight());\n/* 117 */ texture.setTextureWidth(data.getTexWidth());\n/* 118 */ texture.setAlpha((data.getDepth() == 32));\n/* */ \n/* 120 */ if (target == 3553) {\n/* 121 */ Renderer.get().glTexParameteri(target, 10241, minFilter);\n/* 122 */ Renderer.get().glTexParameteri(target, 10240, magFilter);\n/* */ \n/* 124 */ if (Renderer.get().canTextureMirrorClamp()) {\n/* 125 */ Renderer.get().glTexParameteri(3553, 10242, 34627);\n/* 126 */ Renderer.get().glTexParameteri(3553, 10243, 34627);\n/* */ } else {\n/* 128 */ Renderer.get().glTexParameteri(3553, 10242, 10496);\n/* 129 */ Renderer.get().glTexParameteri(3553, 10243, 10496);\n/* */ } \n/* */ } \n/* */ \n/* 133 */ Renderer.get().glTexImage2D(target, \n/* 134 */ 0, \n/* 135 */ dstPixelFormat, \n/* 136 */ texture.getTextureWidth(), \n/* 137 */ texture.getTextureHeight(), \n/* 138 */ 0, \n/* 139 */ srcPixelFormat, \n/* 140 */ 5121, \n/* 141 */ textureBuffer);\n/* */ \n/* 143 */ return (Texture)texture;\n/* */ }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture0((EntityEnderPig)p_110775_1_);\n }", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.getCaveSpiderTextures((EntityCaveSpider)par1Entity);\n }", "public static InternalTextureLoader get() {\n/* 40 */ return loader;\n/* */ }", "public Sprite loadBitmap(Context context, GL10 gl, int resourceId, boolean rotatable, boolean flipable)\n\t{\n\t if(context != null && gl != null)\n\t {\n\t \t//Generate one texture pointer...\n\t gl.glGenTextures(1, mTextureNameWorkspace, 0);\n\t \n\t //grab location index\n\t int textureID = mTextureNameWorkspace[0];\n\t \n\t\t\t//...and bind it to our array\n\t gl.glBindTexture(GL10.GL_TEXTURE_2D, textureID);\n\t\n\t\t\t//Create Nearest Filtered Texture\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MIN_FILTER, GL10.GL_NEAREST);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_MAG_FILTER, GL10.GL_LINEAR);\n\t\n\t\t\t//Different possible texture parameters, e.g. GL10.GL_CLAMP_TO_EDGE\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_S, GL10.GL_CLAMP_TO_EDGE);\n\t gl.glTexParameterf(GL10.GL_TEXTURE_2D, GL10.GL_TEXTURE_WRAP_T, GL10.GL_CLAMP_TO_EDGE);\n\t\t\t\n\t gl.glTexEnvf(GL10.GL_TEXTURE_ENV, GL10.GL_TEXTURE_ENV_MODE, /*GL10.GL_REPLACE*/ GL10.GL_MODULATE);\n\t\n\t InputStream is = context.getResources().openRawResource(resourceId);\n\t Bitmap bitmap;\n\t try\n\t {\n\t bitmap = BitmapFactory.decodeStream(is, null, sBitmapOptions);\n\t }\n\t finally\n\t {\n\t try\n\t {\n\t is.close();\n\t }\n\t catch(IOException e)\n\t {\n\t // Ignore.\n\t }\n\t }\n\t\n\t GLUtils.texImage2D(GL10.GL_TEXTURE_2D, 0, bitmap, 0);\n\t\n\t //whether image can rotate or not\n\t if(!rotatable)\n\t {\n\t mCropWorkspace[0] = 0;\n\t mCropWorkspace[1] = bitmap.getHeight();\n\t mCropWorkspace[2] = bitmap.getWidth();\n\t mCropWorkspace[3] = -bitmap.getHeight();\n\t \n\t bitmap.recycle();\n\t\n\t ((GL11)gl).glTexParameteriv(GL10.GL_TEXTURE_2D, GL11Ext.GL_TEXTURE_CROP_RECT_OES, mCropWorkspace, 0);\n\t\n\t int error = gl.glGetError();\n\t if(error != GL10.GL_NO_ERROR)\n\t {\n\t //Log.e(\"SpriteMethodTest\", \"Texture Load GLError: \" + error);\n\t }\n\t }\n\t return new Sprite(textureID,bitmap.getWidth(),bitmap.getHeight(),rotatable,flipable);\n\t }\n\t return null;\n\t}", "@Override\n\tpublic String getTextureFile() {\n\t\treturn \"/reactioncraft/rcs/Blocks.png\";\n\t}", "public static void loadBg() {\n bg = new Texture (Gdx.files.internal(\"data/bbb.png\"));\n textureBg =new TextureRegion(bg);\n player = new Texture (Gdx.files.internal(\"data/nave2.png\"));\n texturePlayer =new TextureRegion(player);\n gameOver = new Texture (Gdx.files.internal(\"data/gameOver.png\"));\n textureGameOver =new TextureRegion(gameOver);\n textureGameOver.flip(false, true);\n laser= new Texture (Gdx.files.internal(\"data/disparo_sprite.png\"));\n textureLaser = new TextureRegion(laser);\n obstacle= new Texture (Gdx.files.internal(\"data/square.gif\"));\n textureObstacle = new TextureRegion(obstacle);\n title= new Texture (Gdx.files.internal(\"data/invadpt2.png\"));\n textureTitle = new TextureRegion(title);\n win = new Texture (Gdx.files.internal(\"data/win.png\"));\n textureWin =new TextureRegion(win);\n textureWin.flip(false, true);\n ranking = new Texture (Gdx.files.internal(\"data/ranking.png\"));\n textureRanking =new TextureRegion(ranking);\n textureRanking.flip(false, true);\n ranking1 = new Texture (Gdx.files.internal(\"data/ranking1.png\"));\n textureRanking1 =new TextureRegion(ranking1);\n textureRanking1.flip(false, true);\n ranking2 = new Texture (Gdx.files.internal(\"data/ranking2.png\"));\n textureRanking2 =new TextureRegion(ranking2);\n textureRanking2.flip(false, true);\n superEnemy= new Texture (Gdx.files.internal(\"data/superEnemy.png\"));\n textureSuperEnemy = new TextureRegion(superEnemy);\n textureSuperEnemy.flip(false, true);\n\n text1=new Texture(Gdx.files.internal(\"data/bg.jpg\"));\n text2 = new TextureRegion(text1);\n text= new TextureAtlas();\n text.addRegion(\"text\",text2);\n text.addRegion(\"text\",text1,0,0,20,30);\n loadColorInvaders();\n\n\n }", "private TextureLoader() {\n }", "private void bindTextures() {\n\t\ttry {\n//\t\t\tif (textureLoadIndex < maxNumTextures) {\n\t\t\tboundAll = true;\n\t\t\tfor (int n=0; n<sortedPanImageList.length; n++) {\n\t\t\t\tPanImageEntry panImageEntry = sortedPanImageList[n];\n\t\t\t\tif (panImageEntry.imageListEntry.enabled && (!panImageEntry.loaded)) {\n\t\t\t\t\tboundAll = false;\n\t\t\t\t}\n\t\t\t\tif (panImageEntry.loadImageBuffer != null) {\n\t\t\t\t\tif (panImageEntry.textureNumber < 0) {\n\t\t\t\t\t\t// find new texture number\n\t\t\t\t\t\tif (textureLoadIndex < maxNumTextures) {\n\t\t\t\t\t\t\tpanImageEntry.textureNumber = textures.get(textureLoadIndex);\n\t\t\t\t\t textureLoadIndex++;\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// no more textures available\n\t\t\t\t\t\t\tSystem.out.println(\"out of available textures\");\n\t\t\t\t\t\t\tpanImageEntry.loadImageBuffer = null;\n\t\t\t\t\t\t\timageLoader.suspend();\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n//\t\t\t\t System.out.println(\"*** binding texture \"+panImageEntry.textureNumber);\n//\t\t\t\t long startTime = System.currentTimeMillis();\n\t\t\t GL11.glBindTexture(GL11.GL_TEXTURE_2D, panImageEntry.textureNumber);\n/*\t\t\t \n\t\t\t if (mipmap) {\n\t\t\t GLU.gluBuild2DMipmaps(GL11.GL_TEXTURE_2D, GL11.GL_RGB8, panImageEntry.loadImageWidth, panImageEntry.loadImageHeight, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, panImageEntry.loadImageBuffer);\n\t\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR_MIPMAP_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n\t\t\t else {\n\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGB8, panImageEntry.loadImageWidth, panImageEntry.loadImageHeight, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, panImageEntry.loadImageBuffer);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n*/\n\t\t\t int numLevels = panImageEntry.loadImageBuffer.size();\n\t\t\t if (numLevels == 1) {\n\t\t\t \tint width = ((Integer) panImageEntry.loadImageWidth.get(0)).intValue();\n\t\t\t \tint height = ((Integer) panImageEntry.loadImageHeight.get(0)).intValue();\n\t\t\t \tByteBuffer buffer = (ByteBuffer) panImageEntry.loadImageBuffer.get(0);\n\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, 0, GL11.GL_RGB8, width, height, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, buffer);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR);\n\t\t\t }\n\t\t\t else {\n\t\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MIN_FILTER, GL11.GL_LINEAR_MIPMAP_LINEAR);\n\t\t\t GL11.glTexParameteri(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_MAG_FILTER, GL11.GL_LINEAR/*GL11.GL_NEAREST*/);\n\t\t\t \tfor (int level=0; level<numLevels; level++) {\n\t\t\t\t \tint width = ((Integer) panImageEntry.loadImageWidth.get(level)).intValue();\n\t\t\t\t \tint height = ((Integer) panImageEntry.loadImageHeight.get(level)).intValue();\n\t\t\t\t \tByteBuffer buffer = (ByteBuffer) panImageEntry.loadImageBuffer.get(level);\n\t\t\t\t GL11.glTexImage2D(GL11.GL_TEXTURE_2D, level, GL11.GL_RGB8, width, height, 0, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, buffer);\n\t\t\t \t}\n\t\t\t }\n\t\t\t panImageEntry.loadImageBuffer = null;\n\t\t\t panImageEntry.loadImageHeight = null;\n\t\t\t panImageEntry.loadImageWidth = null;\n\t\t\t panImageEntry.loaded = true;\n//\t\t\t\t System.out.println(\"done\");\n//\t\t\t long time = System.currentTimeMillis() - startTime;\n//\t\t\t System.out.println(\"took \"+time+\" millis\");\n\t\t\t break;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (Throwable e) {\n\t\t\tUnknownExceptionDialog.openDialog(this.getShell(), \"Error loading image\", e);\n\t\t\te.printStackTrace(); \n\t\t}\n\t\t\n\t}", "public Texture getTexture(String resourceName, boolean flipped, int filter) throws IOException {\n/* 169 */ InputStream in = ResourceLoader.getResourceAsStream(resourceName);\n/* */ \n/* 171 */ return getTexture(in, resourceName, flipped, filter, null);\n/* */ }", "public void addTexture (String path, String key) throws IOException {\n\t\tTexture texture = new Texture();\n\t\ttexture.load(path);\n\t\ttextures.put(key, texture);\n\t}", "private void loadTextures() {\n\t\tspriteSheet01 = new Texture(\"data/buttonsspritesheet02.png\");\n\n\t\tnew TextureRegion(spriteSheet01, BROKEN_COLUMN * SQUARE_SIZE,\n\t\t\t\tBROKEN_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, EMPTY_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tEMPTY_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, ACTIVATED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, DEPRESSED_BUTTON * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, HIGHLIGHTED_COLUMN * SQUARE_SIZE,\n\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, CAROUSEL_COLUMN * SQUARE_SIZE,\n\t\t\t\t(CAROUSEL_ROW * SQUARE_SIZE) + CAROUSEL_PIXELS, SQUARE_SIZE,\n\t\t\t\tCAROUSEL_PIXELS);\n\n\t\tnew TextureRegion(spriteSheet01, FIX_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tFIX_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tnew TextureRegion(spriteSheet01, WILD_BUTTON_COLUMN * SQUARE_SIZE,\n\t\t\t\tWILD_BUTTON_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\n\t\tcarousel = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tcarousel[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(CAROUSEL_COLUMN * SQUARE_SIZE) + (i * CAROUSEL_PIXELS),\n\t\t\t\t\tCAROUSEL_ROW * SQUARE_SIZE, CAROUSEL_PIXELS,\n\t\t\t\t\tCAROUSEL_PIXELS);\n\t\t}\n\n\t\trings = new TextureRegion[RING_AMOUNT];\n\t\tfor (int i = 0; i < RING_AMOUNT; i++) {\n\t\t\trings[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tRING_ROW * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tmainColour = new TextureRegion[MAIN_COLOUR_AMOUNT];\n\t\tfor (int i = 0; i < MAIN_COLOUR_AMOUNT; i++) {\n\t\t\tmainColour[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + MAIN_COLOUR_COLUMN) * SQUARE_SIZE, MAIN_COLOUR_ROW,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tspecials = new TextureRegion[SPECIALS_AMOUNT];\n\t\tfor (int i = 0; i < SPECIALS_ROW_ONE_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01, i * SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\t\tfor (int i = SPECIALS_ROW_ONE_AMOUNT; i < SPECIALS_AMOUNT; i++) {\n\t\t\tspecials[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i - SPECIALS_ROW_ONE_AMOUNT) * SQUARE_SIZE,\n\t\t\t\t\tSPECIALS_ROW_TWO * SQUARE_SIZE, SQUARE_SIZE, SQUARE_SIZE);\n\t\t}\n\n\t\tenemyBaseColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyBaseColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_BASE_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyHalfColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyHalfColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_HALF_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyThirdColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyThirdColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_THIRD_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyRimColours = new TextureRegion[ENEMY_COLOURS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_COLOURS_AMOUNT; i++) {\n\t\t\tenemyRimColours[i] = new TextureRegion(spriteSheet01, i\n\t\t\t\t\t* SQUARE_SIZE, ENEMY_RIM_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\n\t\tenemyConnectors = new TextureRegion[ENEMY_CONNECTORS_AMOUNT];\n\t\tfor (int i = 0; i < ENEMY_CONNECTORS_AMOUNT; i++) {\n\t\t\tenemyConnectors[i] = new TextureRegion(spriteSheet01,\n\t\t\t\t\t(i + ENEMY_CONNECTORS_COLUMN) * SQUARE_SIZE,\n\t\t\t\t\tENEMY_CONNECTORS_ROW * SQUARE_SIZE, SQUARE_SIZE,\n\t\t\t\t\tSQUARE_SIZE);\n\t\t}\n\t}", "public Texture getTexture(File source, boolean flipped, int filter) throws IOException {\n/* 136 */ String resourceName = source.getAbsolutePath();\n/* 137 */ InputStream in = new FileInputStream(source);\n/* */ \n/* 139 */ return getTexture(in, resourceName, flipped, filter, null);\n/* */ }", "@Override\n\tpublic void setTexture(int texID) {\n\n\t}", "public Texture(String path) {\n load(path);\n }", "@Override\r\n\tprotected ResourceLocation getEntityTexture(EntityAngel entity)\r\n {\r\n return ANGEL_TEXTURE;\r\n }", "public Texture getTexture() {\n\t\tPixmap pixmap = null;\n\t\t\n\t\ttry {\n\t\t\tpixmap = new Pixmap(responseBytes, 0, responseBytes.length);\n\t\t} catch (Exception e) {\n\t\t\tGdx.app.error(\"WWW\", \"Cannot get texture: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\tfinal int originalWidth = pixmap.getWidth();\n\t\tfinal int originalHeight = pixmap.getHeight();\n\t\tint width = MathUtils.nextPowerOfTwo(pixmap.getWidth());\n\t\tint height = MathUtils.nextPowerOfTwo(pixmap.getHeight());\n\n\t\tint deltaX = (int) ((width - originalWidth) / 2f);\n\t\tint deltaY = (int) ((height - originalHeight) / 2f);\n\n\t\tfinal Pixmap potPixmap = new Pixmap(width, height, pixmap.getFormat());\n\t\tpotPixmap.drawPixmap(pixmap, deltaX, deltaY, 0, 0, pixmap.getWidth(), pixmap.getHeight());\n\t\tpixmap.dispose();\n\t\tTexture texture = new Texture(potPixmap);\n\t\tpotPixmap.dispose();\n\t\treturn texture;\n\t}", "public void bind() {\n if (isTextureLoaded()) {\n glBindTexture(GL_TEXTURE_2D, texId.getId());\n } else {\n System.err.println(\"[Error] texture::bind() Binding a unloaded texture.\");\n }\n }", "protected ResourceLocation getEntityTexture(Entity par1Entity)\n {\n return this.func_110914_a((EntitySpiritWolf)par1Entity);\n }", "public Texture getTexture(InputStream in, String resourceName, boolean flipped, int filter) throws IOException {\n/* 200 */ return getTexture(in, resourceName, flipped, filter, null);\n/* */ }", "@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}", "public Tile3D(Context context, int id, float w, float h) {\n\t // Setup vertex array buffer. Vertices in float. A float has 4 bytes\n\t ByteBuffer vbb = ByteBuffer.allocateDirect(12 * 4);\n\t vbb.order(ByteOrder.nativeOrder()); // Use native byte order\n\t vertexBuffer = vbb.asFloatBuffer(); // Convert from byte to float\n\t \n\t imageFileID = id;\n\t bitmap = BitmapFactory.decodeStream(context.getResources().openRawResource(imageFileID));\n\t //bitmap \n\t /*InputStream is= context.getResources().openRawResource(imageFileIDs);\n\t try {\n\t bitmap = BitmapFactory.decodeStream(is);\n\n\t } finally {\n\t //Always clear and close\n\t try {\n\t is.close();\n\t is = null;\n\t } catch (IOException e) {\n\t }\n\t }*/\n\t int imgWidth = bitmap.getWidth();\n\t int imgHeight = bitmap.getHeight();\n\t float faceWidth = w;\n\t float faceHeight = h;\n\t // Adjust for aspect ratio\n\t if (imgWidth > imgHeight) {\n\t faceHeight = faceHeight * imgHeight / imgWidth; \n\t }\n\t else {\n\t faceWidth = faceWidth * imgWidth / imgHeight;\n\t }\n\t float faceLeft = -faceWidth / 2;\n\t float faceRight = -faceLeft;\n\t float faceTop = faceHeight / 2;\n\t float faceBottom = -faceTop;\n\t \n\t \n\t \n\t // Define the vertices for this face\n\t float[] vertices = {\n\t faceLeft, faceBottom, 0.0f, // 0. left-bottom-front\n\t faceRight, faceBottom, 0.0f, // 1. right-bottom-front\n\t faceLeft, faceTop, 0.0f, // 2. left-top-front\n\t faceRight, faceTop, 0.0f, // 3. right-top-front\n\t };\n\t vertexBuffer.put(vertices); // Copy data into buffer\n\t\t vertexBuffer.position(0); // Rewind\n\t \n\t ByteBuffer tbb = ByteBuffer.allocateDirect(texCoords.length * 4);\n\t tbb.order(ByteOrder.nativeOrder());\n\t texBuffer = tbb.asFloatBuffer();\n\t \n\t texBuffer.put(texCoords);\n\t \n\t texBuffer.position(0); // Rewind\n\t \n\t }", "public INTexture2D getTexture()\n {\n return this.texture.clone();\n }", "protected ResourceLocation getEntityTexture(Entity p_110775_1_)\n {\n return this.getEntityTexture((EntityMegaZombie)p_110775_1_);\n }", "Texture getIcon();", "static public int loadTextureFromAsset ( String fileName )\n {\n int[] textureId = new int[1];\n Bitmap bitmap = null;\n InputStream is = null;\n\n try\n {\n is = mContext.getAssets().open ( fileName );\n }\n catch ( IOException ioe )\n {\n is = null;\n }\n\n if ( is == null )\n {\n return 0;\n }\n\n bitmap = BitmapFactory.decodeStream(is);\n\n GLES30.glGenTextures ( 1, textureId, 0 );\n GLES30.glBindTexture(GLES30.GL_TEXTURE_2D, textureId[0]);\n\n GLUtils.texImage2D(GLES30.GL_TEXTURE_2D, 0, bitmap, 0);\n\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_MIN_FILTER, GLES30.GL_LINEAR);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_MAG_FILTER, GLES30.GL_LINEAR);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_S, GLES30.GL_CLAMP_TO_EDGE);\n GLES30.glTexParameteri(GLES30.GL_TEXTURE_2D, GLES30.GL_TEXTURE_WRAP_T, GLES30.GL_CLAMP_TO_EDGE);\n\n return textureId[0];\n }", "public static void loadImages(){\n\t\tsetPath(main.getShop().inventory.getEquipID());\n\t\ttry {\n\t\t\tbackground = ImageIO.read(new File(\"res/world/bg.png\"));\n\t\t\tterrain = ImageIO.read(new File(\"res/world/solids.png\"));\n\t\t\t// Character and Armour\n\t\t\tcharacters = ImageIO.read(new File(\"res/world/char3.png\"));\n\t\t\tcharactersHead =ImageIO.read(new File(\"res/world/charhead\"+path[0]+\".png\"));\n\t\t\tcharactersTop = ImageIO.read(new File(\"res/world/chartop\"+path[2]+\".png\"));\n\t\t\tcharactersShoulder = ImageIO.read(new File(\"res/world/charshoulders\"+path[3]+\".png\"));\n\t\t\tcharactersHand = ImageIO.read(new File(\"res/world/charhands\"+path[5]+\".png\"));\n\t\t\tcharactersBottom = ImageIO.read(new File(\"res/world/charbottom\"+path[8]+\".png\"));\n\t\t\tcharactersShoes = ImageIO.read(new File(\"res/world/charshoes\"+path[9]+\".png\"));\n\t\t\tcharactersBelt = ImageIO.read(new File(\"res/world/charBelt\"+path[4]+\".png\"));\n\n\t\t\tweaponBow = ImageIO.read(new File(\"res/world/bow.png\"));\n\t\t\tweaponArrow = ImageIO.read(new File(\"res/world/arrow.png\"));\n\t\t\tweaponSword = ImageIO.read(new File(\"res/world/sword.png\"));\n\t\t\titems = ImageIO.read(new File(\"res/world/items.png\"));\n\t\t\tnpc = ImageIO.read(new File(\"res/world/npc.png\"));\n\t\t\thealth = ImageIO.read(new File(\"res/world/health.png\"));\n\t\t\tenemies = ImageIO.read(new File(\"res/world/enemies.png\"));\n\t\t\tcoin = ImageIO.read(new File(\"res/world/coin.png\"));\n\t\t\tmana = ImageIO.read(new File(\"res/world/mana.gif\"));\n\t\t\tarrowP = ImageIO.read(new File(\"res/world/arrowP.png\"));\n\t\t\tbutton = ImageIO.read(new File(\"res/world/button.png\"));\n\t\t\tblood = ImageIO.read(new File(\"res/world/blood.png\"));\n\t\t\tarrowDisp = ImageIO.read(new File(\"res/world/arrowDisp.png\"));\n\t\t\tboss1 = ImageIO.read(new File(\"res/world/boss1.png\"));\n\t\t\tmagic = ImageIO.read(new File(\"res/world/magic.png\"));\n\t\t\tmainMenu = ImageIO.read(new File(\"res/world/MainMenu.png\"));\n\t\t\tinstructions = ImageIO.read(new File(\"res/world/instructions.png\"));\n\t\t\trespawn = ImageIO.read(new File(\"res/world/respawn.png\"));\n\t\t\tinventory = ImageIO.read(new File(\"res/world/inventory.png\"));\n shop = ImageIO.read(new File(\"res/world/shop.png\"));\n dizzy = ImageIO.read(new File(\"res/world/dizzy.png\"));\n pet = ImageIO.read(new File(\"res/world/pet.png\"));\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error Loading Images\");\n\t\t}\n\t}", "public static void init() {\n // init quad VAO\n vao = glGenVertexArrays();\n glBindVertexArray(vao);\n int positionVbo = glGenBuffers();\n FloatBuffer fb = BufferUtils.createFloatBuffer(2 * 4);\n fb.put(0.0f).put(0.0f);\n fb.put(1.0f).put(0.0f);\n fb.put(1.0f).put(1.0f);\n fb.put(0.0f).put(1.0f);\n fb.flip();\n glBindBuffer(GL_ARRAY_BUFFER, positionVbo);\n glBufferData(GL_ARRAY_BUFFER, fb, GL_STATIC_DRAW);\n glVertexAttribPointer(Main.shader.inPositionLoc, 2, GL_FLOAT, false, 0, 0L);\n glEnableVertexAttribArray(Main.shader.inPositionLoc);\n glBindBuffer(GL_ARRAY_BUFFER, 0);\n glBindVertexArray(0);\n \n // init texture\n IntBuffer width = BufferUtils.createIntBuffer(1);\n IntBuffer height = BufferUtils.createIntBuffer(1);\n IntBuffer components = BufferUtils.createIntBuffer(1);\n byte[] dataArr = Main.loadResource(\"resources/font DF.png\");\n ByteBuffer data = BufferUtils.createByteBuffer(dataArr.length);\n data.put(dataArr).rewind();\n data = Objects.requireNonNull(stbi_load_from_memory(data, width, height, components, 1));\n int imgWidth = width.get();\n int imgHeight = height.get();\n charWidth = imgWidth / 16;\n charHeight = imgHeight / 16;\n \n texture = glGenTextures();\n glBindTexture(GL_TEXTURE_2D, texture);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_NEAREST);\n glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_NEAREST);\n glTexImage2D(GL_TEXTURE_2D, 0, GL_RED, imgWidth, imgHeight, 0, GL_RED, GL_UNSIGNED_BYTE, data);\n stbi_image_free(data);\n \n // set texScale uniform\n glUniform2f(Main.shader.texScaleLoc, 1/16f, 1/16f);\n }", "public void setTexture(String texture) {\n this.texture = texture;\n }", "public ModelTexture(int textureID) {\n this.textureID = textureID;\n }", "public void loadObjData() {\n this.updateGeometryAndUVs(SquareCoords, UVCoords, DrawOrder);\n SquareCoords = new float[0];\n UVCoords = new float[0];\n DrawOrder = new int[0];\n }", "public interface TextureAtlas<T> {\n\t/**\n\t *\n\t * @param key\n\t * @return\n\t */\n\tRectangle quad(T key);\n\n\t/**\n\t *\n\t * @param <T>\n\t * @param atlas\n\t * @return\n\t */\n\tstatic <T> TextureAtlas<T> of(Map<T, Rectangle> atlas) {\n\t\treturn atlas::get;\n\t}\n\n\t/**\n\t * Loader for a texture atlas.\n\t * <p>\n\t * A texture atlas is specified as a JSON document illustrated by the following example:\n\t * <p>\n\t * <pre>\n\t * {\n\t * atlas: [\n\t * {\n\t * name: rectangle,\n\t * rect: [1, 2, 3, 4]\n\t * }\n\t * ]\n\t * }\n\t * </pre>\n\t */\n\tpublic static class Loader implements ResourceLoader<JSONObject, TextureAtlas<String>> {\n\t\t@Override\n\t\tpublic JSONObject map(InputStream in) throws IOException {\n\t\t\treturn new JSONObject(new JSONTokener(in));\n\t\t}\n\n\t\t@Override\n\t\tpublic TextureAtlas<String> load(JSONObject root) throws IOException {\n\t\t\t// Extract array of entries\n\t\t\tfinal JSONArray array = root.getJSONArray(\"atlas\");\n\n\t\t\t// Load texture atlas\n\t\t\treturn StreamSupport\n\t\t\t\t\t.stream(array.spliterator(), false)\n\t\t\t\t\t.map(JSONObject.class::cast)\n\t\t\t\t\t.map(Loader::entry)\n\t\t\t\t\t.collect(collectingAndThen(toMap(Entry::getKey, Entry::getValue), TextureAtlas::of));\n\t\t}\n\n\t\t/**\n\t\t * Loads a texture atlas entry.\n\t\t */\n\t\tprivate static Entry<String, Rectangle> entry(JSONObject entry) {\n\t\t\tfinal String name = entry.getString(\"name\").trim();\n\t\t\tfinal JSONArray array = entry.getJSONArray(\"rect\");\n\t\t\tfinal Rectangle rect = new Rectangle(\n\t\t\t\t\tarray.getInt(0),\n\t\t\t\t\tarray.getInt(1),\n\t\t\t\t\tarray.getInt(2),\n\t\t\t\t\tarray.getInt(3)\n\t\t\t);\n\t\t\treturn Map.entry(name, rect);\n\t\t}\n\t}\n}", "protected ResourceLocation getEntityTexture(T entity) {\n\t\treturn ORECART_TEXTURES;\n\t}", "private void initRendering() {\n\t\tmActivity.showDebugMsg(\" initRendering\");\n\t\tGLES20.glClearColor(0.0f, 0.0f, 0.0f, Vuforia.requiresAlpha() ? 0.0f : 1.0f);\n\n\t\tfor (Texture t : mTextures) {\n\t\t\tGLES20.glGenTextures(1, t.mTextureID, 0);\n\t\t\tGLES20.glBindTexture(GLES20.GL_TEXTURE_2D, t.mTextureID[0]);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MIN_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexParameterf(GLES20.GL_TEXTURE_2D, GLES20.GL_TEXTURE_MAG_FILTER, GLES20.GL_LINEAR);\n\t\t\tGLES20.glTexImage2D(GLES20.GL_TEXTURE_2D, 0, GLES20.GL_RGBA, t.mWidth, t.mHeight, 0, GLES20.GL_RGBA,\n\t\t\t\t\tGLES20.GL_UNSIGNED_BYTE, t.mData);\n\t\t}\n\n\t\tshaderProgramID = ArUtils.createProgramFromShaderSrc(\n\t\t\t\tShaders.CUBE_MESH_VERTEX_SHADER,\n\t\t\t\tShaders.CUBE_MESH_FRAGMENT_SHADER);\n\n\t\tvertexHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexPosition\");\n\t\ttextureCoordHandle = GLES20.glGetAttribLocation(shaderProgramID,\n\t\t\t\t\"vertexTexCoord\");\n\t\tmvpMatrixHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"modelViewProjectionMatrix\");\n\t\ttexSampler2DHandle = GLES20.glGetUniformLocation(shaderProgramID,\n\t\t\t\t\"texSampler2D\");\n\n\t\tif (!mModelIsLoaded) {\n\t\t\t//object = new Teapot();\n\t\t\tobject = mActivity.get3DObject();\n\t\t\tobjectScaleFloat *= object.getDefScale();\n\t\t\t//minObjectScale *= object.getDefScale();\n\t\t\t//maxObjectScale *= object.getDefScale();\n\n\t\t\tmActivity.showDebugMsg(\"Loading model Teapot\");\n\t\t\t// Hide the Loading Dialog\n\t\t\t//mActivity.loadingDialogHandler.sendEmptyMessage(LoadingDialogHandler.HIDE_DIALOG);\n\t\t}\n\n\t}", "private native void nativeRegisterTexture(long j, long j2, Object obj);" ]
[ "0.7873138", "0.719518", "0.7169055", "0.70595944", "0.6934611", "0.6896805", "0.6844518", "0.6790454", "0.6683397", "0.66797733", "0.6643579", "0.6642297", "0.6639648", "0.6632627", "0.6623715", "0.65882754", "0.657735", "0.6569362", "0.6513127", "0.6478182", "0.641558", "0.64114594", "0.63945746", "0.63782686", "0.6362872", "0.63517743", "0.63506234", "0.63413346", "0.6324764", "0.63159096", "0.62965137", "0.6278579", "0.62745", "0.6273686", "0.6272178", "0.6264348", "0.62521285", "0.6245248", "0.6243492", "0.6218592", "0.6204933", "0.61945", "0.61900395", "0.6183801", "0.61696565", "0.61628443", "0.61577636", "0.61497843", "0.6117129", "0.6104382", "0.6102966", "0.6102871", "0.6097956", "0.60954", "0.6092484", "0.6085914", "0.6071548", "0.6060832", "0.60525596", "0.60503584", "0.6048208", "0.6042522", "0.6031544", "0.60292834", "0.6015843", "0.6004851", "0.6000203", "0.5984345", "0.5975744", "0.59681493", "0.5963335", "0.5961216", "0.59487295", "0.5931578", "0.593055", "0.59231335", "0.5918587", "0.5918335", "0.5914479", "0.590655", "0.590206", "0.5897403", "0.58927107", "0.5888093", "0.58744204", "0.5861383", "0.58539885", "0.58379704", "0.5823606", "0.5816003", "0.58064914", "0.57936484", "0.5790016", "0.57893443", "0.57837725", "0.5779", "0.57668304", "0.576311", "0.5761195", "0.5759388" ]
0.6235868
39
Delete user like for Proposal
@Override @Transactional public void deleteLikesByProposalAndUser(Long proposalId, Long userId) { log.debug("Request to delete like of user : {} for Proposal : {}", userId, proposalId); alikeRepository.deleteByProposalIdAndAuthorId(proposalId, userId); proposalRepository.addLikeSumForProposal(proposalId, -1l); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int deleteByExample(LikeUserExample example);", "void delete(User user);", "void delete(User user);", "public boolean delete(User user);", "public void deleteUser(User userToDelete) throws Exception;", "@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}", "@Override\r\n\tpublic int delete(User user) {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void deleteUser(User user)\n\t{\n\n\t}", "public void delete(User user)throws Exception;", "public User delete(User user);", "boolean delete(User user);", "public void deleteLike() {\n // TODO implement here\n }", "public void delete(User usuario);", "@Override\n public boolean deleteUser(User user) {\n return false;\n }", "@Override\n\tpublic void delete(User entity) {\n\t\t\n\t}", "public void delete(User user){\n userRepository.delete(user);\n }", "CratePrize removeEditingUser(Player player);", "public User delete(String user);", "public void deleteUser(long userId);", "void deleteUser(String deleteUserId);", "void deleteUser(String userId);", "private void deleteTodoMenu(User u) {\n\t\t\n\t}", "@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}", "public boolean delete(int userId);", "public void delete(User obj) {\n\t\t\n\t}", "@Override\n\tpublic void deleteUser(User user) {\n\t\topenSession().createQuery(\"DELETE FROM User where userId =\" + user.getUserId()).executeUpdate();\n\t\t\n\t}", "@Override\r\n\tpublic void deleteByUser(User user) {\n\t\tuserReposotory.delete(user);\r\n\t}", "int deleteByExample(UUserExample example);", "@Override\n\tpublic void deleteUser(String userId) {\n\t\t\n\t}", "public void deleteExercise(User user) {\n\n\t}", "@Override\r\n\tpublic int deleteUser(Users user) {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void delete(FollowUp followup) {\n\t\t\r\n\t}", "public void deleteUser(String name);", "public void delete(User user) {\n repository.delete(user);\n }", "int deleteByExample(UserExample example);", "int deleteByExample(UserExample example);", "@Override\n\tpublic String delete(User user) {\n\t\treturn null;\n\t}", "public void deleteUserById(Long userId);", "@Override\n\tpublic void deleteUser(NguoiDung nd) {\n\n\t}", "@Override\r\n\tpublic void delete(UserMain user) {\n\t\tusermaindao.delete(user);\r\n\t}", "@Override\n public void delete(User user) {\n dao.delete(user);\n }", "@Override\n\tpublic Boolean deleteUser(User user) {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}", "public void dislikeContent(Integer userID, Integer contentID){\n\n String likeID = createLikeID(userID, contentID);\n Optional<Like> like = likeRepository.findById(likeID);\n\n if(like.isPresent()){\n\n likeRepository.deleteById(likeID);\n }\n }", "@Override\n\t@Transactional\n\tpublic void reviewLikeDelete(String reviewno, String userid) {\n\t\tMemberManage memberManage=new MemberManage();\n\t\tmemberManage.setNum(reviewno);\n\t\tmemberManage.setUserid(userid);\n\t\tmemberManageDAO.reviewLikeDelete(memberManage);\n\t\treviewDAO.minusReviewLikeCnt(reviewno);\n\t}", "int deleteByExample(CommentUserExample example);", "int deleteByExample(OfUserWechatExample example);", "int deleteByExample(ROmUsersExample example);", "int deleteByExample(UserTExample example);", "int deleteByExample(SelectUserRecruitExample example);", "int deleteByPrimaryKey(Integer user);", "public void deleteUser(ExternalUser userMakingRequest, String userId);", "@DeleteMapping(\"/{userId}\")\n @PreAuthorize(\"hasAnyAuthority('ADMIN','MANAGER')\")\n public void delete(@PathVariable(value=\"userId\") int userId){\n userService.delete(userData,userId);\n }", "int deleteByExample(UserTopicExample example);", "int deleteByExample(UserTopicExample example);", "int deleteByExample(UserOperateProjectExample example);", "int deleteByExample(TUserPermissionExample example);", "int deleteByExample(UserGiftCriteria example);", "int deleteByExample(RegsatUserExample example);", "@Override\n\tpublic void deleteUser(String id) throws Exception {\n\t\t\n\t}", "void deleteUser(int id);", "int deleteByExample(UserPonumberGoodsExample example);", "@Override\n public boolean deleteUser(User user) {\n return controller.deleteUser(user);\n }", "@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}", "@GetMapping(\"/deleteLike\")\n\tpublic void deleteLike(@RequestBody Likes deleteLike) {\n\t\tlikeRepo.deleteLike(deleteLike);\n\t}", "@Override\n\tpublic void delete(List<User> entity) {\n\t\t\n\t}", "void DeleteCompteUser(int id);", "@Override\r\n\tpublic void delete(User user) {\n\t\tint iRet = dao.delete(user);\r\n\t\tif(iRet != 1){\r\n\t\t\tlogger.error(\"删除失败\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tlogger.info(\"删除成功\");\r\n\t}", "@Override\r\n\tpublic int delete(ProfitUserDomain t) {\n\t\treturn profitUserDAO.delete(t);\r\n\t}", "public void delete(String username);", "@Override\r\n\tpublic void delete(User user) {\n\t\tuserDao.delete(user);\r\n\t}", "int deleteByExample(ParUsuariosExample example);", "public void deleteUser(Integer uid);", "@Override\n public void delete(Usuario usuario) {\n }", "public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}", "int deleteByExample(UserInfoUserinfoExample example);", "void deleteUserById(Long id);", "public void deleteUser(String username);", "@Override\n\tpublic void delete(String username) throws Exception {\n\t\t\n\t}", "@FXML\n\tpublic void deleteUser(ActionEvent e) {\n\t\tint i = userListView.getSelectionModel().getSelectedIndex();\n//\t\tUser deletMe = userListView.getSelectionModel().getSelectedItem();\n//\t\tuserList.remove(deletMe); this would work too just put the admin warning\n\t\tdeleteUser(i);\n\t}", "@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }", "void deleteUserLikeComment(long lifeHackId, long userId) throws DaoException;", "@Override\n\tpublic void delete(User user)\n\t{\n\t\tuserDAO.delete(user);\n\t}", "public void deleteUser(IndividualUser user) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Users WHERE userName=? AND id=? AND firstName=? AND lastName=?;\");\n s.setString(1, user.getId());\n s.setInt(2,user.getIdNum());\n s.setString(3, user.getFirstName());\n s.setString(4, user.getLastName());\n s.execute();\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }", "int deleteByExample(LitemallUserFormidExample example);", "int deleteByExample(UserRoleExample example);", "int deleteByExample(UserRoleExample example);", "@Override\n\tpublic void deleteOne(User u) {\n\t\tdao.deleteOne(u);\n\t}", "@Override\n\tpublic void delete(User user) throws DAOException {\n\t\t\n\t}", "public void deleteUsuario(Usuario usuario) {\n\t\t\n\t}", "@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}", "int deleteByExample(VisituserExample example);", "@Delete(\"delete from website_cooperativeuser where id = #{id}\")\r\n int deleteByPrimaryKey(String id);", "int deleteByExample(UUserRoleExample example);", "public void deleteUser(User user) {\n\t\t\r\n\t\tsessionFactory.getCurrentSession().delete(user);\t\r\n\t\t\r\n\t}", "@DeleteMapping(path=\"{id}\")\n public void deleteUserById(@PathVariable(\"id\") int id){\n ReviewDAOService.deleteUserById(id);\n }", "public Boolean DeleteUser(User user){\n\t\t\treturn null;\n\t\t}", "public void deleteUser(Userlist user) {\n SQLiteDatabase db = this.getWritableDatabase();\n // delete user record by id\n db.delete(TABLE_USERLIST, COLUMN_USER_ID + \" = ?\",\n new String[]{String.valueOf(user.getID())});\n db.close();\n }", "@Override\n\tpublic String deleteUser(UserKaltiaControlVO userKaltiaControl) {\n\t\treturn null;\n\t}", "public void deleteUtente(String user)\n\t{\n\t\tUtente daCanc=retriveByUsername(user);\n\t\tem.remove(em.merge(daCanc));\n\t}" ]
[ "0.7080212", "0.70346737", "0.70346737", "0.7026008", "0.6996104", "0.6991552", "0.6960671", "0.6949109", "0.691798", "0.6876801", "0.6875553", "0.6750225", "0.6726382", "0.6706678", "0.6691142", "0.6665279", "0.66494787", "0.66287005", "0.6627959", "0.66113013", "0.65874743", "0.65810543", "0.6578731", "0.65670246", "0.65534854", "0.65279144", "0.6526737", "0.6522087", "0.6513141", "0.65083325", "0.65046686", "0.6503195", "0.64782023", "0.64578736", "0.64493275", "0.64493275", "0.6448622", "0.64463615", "0.6426562", "0.6423469", "0.64189434", "0.6418437", "0.6406529", "0.64053917", "0.64016944", "0.6381525", "0.6370988", "0.63614935", "0.635272", "0.63477546", "0.63421917", "0.6330687", "0.6325451", "0.6318448", "0.6318448", "0.6318365", "0.63119805", "0.6308289", "0.6304433", "0.63039386", "0.63019884", "0.6293174", "0.62914634", "0.6273285", "0.6263645", "0.6262118", "0.6255327", "0.62429076", "0.6239971", "0.62288666", "0.6228413", "0.62251335", "0.62203354", "0.6217976", "0.62153584", "0.6209351", "0.62052196", "0.62051874", "0.6202844", "0.6198379", "0.6197613", "0.61926806", "0.61919105", "0.6191739", "0.6188311", "0.6183201", "0.6183201", "0.6171389", "0.6165617", "0.6164323", "0.6158888", "0.6154595", "0.6153499", "0.61482453", "0.6148157", "0.61476827", "0.61418945", "0.61381644", "0.6137859", "0.61377513" ]
0.7745275
0
Get all the proposals.
@Override @Transactional(readOnly = true) public Page<Proposal> findAll(Pageable pageable) { log.debug("Request to get all Proposals"); return proposalRepository.findAll(pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Map<Integer, Proposal> getProposals() { return proposals; }", "@NonNull\n public List<IkeSaProposal> getIkeSaProposals() {\n return Arrays.asList(mSaProposals);\n }", "public java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> process(java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> proposals) {\n\t\treturn proposals;\r\n\t}", "@Override\n \tpublic ArrayList<ICompletionProposal> getCompletionProposals() {\n\n \t\tif (region.getType() == DOMRegionContext.XML_TAG_OPEN) {\n \t\t\tcomputeTagOpenProposals();\n \t\t} else if (region.getType() == DOMRegionContext.XML_TAG_NAME) {\n \t\t\tcomputeTagNameProposals();\n \t\t}\n \t\treturn getAllCompletionProposals();\n \t}", "public Page<Proposal> findAllWithEagerRelationships(Pageable pageable) {\n return proposalRepository.findAllWithEagerRelationships(pageable);\n }", "@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}", "@Override\n\tpublic List<Projeto> findAll() {\n\t\treturn null;\n\t}", "public void sortProposals() {\n\n\t}", "public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}", "@Override\n\tpublic List<Profession> getAll() {\n\t\treturn dao.findAll();\n\t}", "private ICompletionProposal[] getCompletionProposals(int offset) throws BadLocationException {\n \t\treturn contentAssistant.getContentAssistProcessor(document.getContentType(offset))\n \t\t\t\t.computeCompletionProposals(editor.getProjectionViewer(), offset);\n \t}", "public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer, int documentOffset) {\n\t\tDatabaseNode activeDatabaseNode = DatabaseView.getActiveDatabase();\n\t\tif (activeDatabaseNode == null) {\n\t\t\treturn null;\n\t\t}\n\n\t\tString[] proposals = null;\n\t\tif (activeDatabaseNode != connectionModelCache) {\n\t\t\ttableNamesCache = getModelNames(activeDatabaseNode.getChildren());\n\t\t\tproposals = tableNamesCache;\n\t\t} else {\n\t\t\tdatabaseNamesCache = getModelNames(activeDatabaseNode.getChildren());\n\t\t\tproposals = databaseNamesCache;\n\t\t}\n\n\t\treturn getProposals(proposals, documentOffset);\n\t}", "@Override\r\n public List<Professor> findAll() {\r\n return getEntityManager().createNamedQuery(\"Professor.findAll\",Professor.class).getResultList();\r\n }", "@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }", "@Override\n\tpublic List<ICompletionProposal> computeCompletionProposals(ContentAssistInvocationContext context, IProgressMonitor monitor) {\n\t\treturn Arrays.asList(assistant.computeCompletionProposals(context.getViewer(), context.getInvocationOffset()));\n\t}", "@Override\n\tpublic List<Professor> getAllProfessors() {\n\t\treturn professorDao.findAll(Professor.class);\n\t}", "@Override\n\t\t\tpublic List<Dept> queryAll() {\n\t\t\t\treturn null;\n\t\t\t}", "public ArrayList<Paragraph> getParagraphs() {\r\n\t\treturn paragraphs;\r\n\t}", "@Override\n\t\t\tpublic List<Dept> findAll() {\n\t\t\t\treturn null;\n\t\t\t}", "@GetMapping(\"projekat\")\n\tpublic Collection<Projekat> getProjekat() {\n\t\treturn projekatRepository.findAll();\n\t}", "private ContentProposalList getEmptyProposalArray() {\n\t\treturn new ContentProposalList();\n\t}", "@Override\n\tpublic List<Pais> findAll() {\n\t\treturn (List<Pais>)paisRepository.findAll();\n\t}", "public static List<ProposalObj> getAllProposalsFromCache(String userId){\n\t\t\n\t\tList<ProposalObj> proposalList=null;\n\t\tString proposalKey=PROPOSAL_KEY+\"_all_user_\"+userId;\n \tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tproposalList=(List<ProposalObj>) memcache.get(proposalKey);\n \t} \n \tlog.info(\"In MemcacheUtil getAllProposalsFromCache ::\"+proposalKey);\n \treturn proposalList;\n\t}", "public Optional<List<Pessoa>> getList() {\n\t\treturn dao.getList();\n\t}", "public List<Promotion> getAllActivePromotions();", "public List<Idea> allIdeas() {\n return ideaRepo.findAll();\n }", "@Override\n\tpublic List<JobPreferences> findAll() {\n\t\treturn jobPreferenceDao.findAll();\n\t}", "public List<ProveedorEntity> getProveedores(){\n List<ProveedorEntity>proveedores = proveedorPersistence.findAll();\n return proveedores;\n }", "public ICompletionProposal[] computeCompletionProposals(ITextViewer viewer,\n\t\t\tint documentOffset) {\n\t\tboolean dotActivation = false;\n\n\t\tVector<ICompletionProposal> result = new Vector<ICompletionProposal>();\n\t\t// ICompletionProposal[] result= new\n\t\t// ICompletionProposal[fgProposals.length];\n\t\tIDocument doc = viewer.getDocument();\n\n\t\tFindReplaceDocumentAdapter frd = new FindReplaceDocumentAdapter(doc);\n\n\t\tint pos = documentOffset;\n\t\tdo {\n\t\t\tpos--;\n\t\t} while (pos >= 0 && !Character.isWhitespace(frd.charAt(pos)));\n\t\tpos++;\n\n\t\tString stp = \"\";\n\t\tif (pos >= 0)\n\t\t\tstp = frd.subSequence(pos, documentOffset).toString();\n\n\t\t// See if we have . activation\n\t\tif (frd.charAt(documentOffset - 1) == '.') {\n\t\t\tString props[] = dotActivation(stp, result);\n\t\t\tfor (int i = 0; i < props.length; i++) {\n\t\t\t\tString val = props[i];\n\t\t\t\tIContextInformation info = new ContextInformation(\n\t\t\t\t\t\tval,\n\t\t\t\t\t\tMessageFormat\n\t\t\t\t\t\t\t\t.format(\n\t\t\t\t\t\t\t\t\t\t\"CompletionProcessor.Proposal.ContextInfo.pattern\", new Object[] { val })); //$NON-NLS-1$\n\t\t\t\t// result.add(new CompletionProposal(fgProposals[i],\n\t\t\t\t// documentOffset, 0, fgProposals[i].length(), null,\n\t\t\t\t// fgProposals[i], info,\n\t\t\t\t// MessageFormat.format(\"CompletionProcessor.Proposal.hoverinfo.pattern\",\n\t\t\t\t// new Object[] { fgProposals[i]}))); //$NON-NLS-1$\n\t\t\t\tresult.add(new CompletionProposal(val, documentOffset, 0,\n\t\t\t\t\t\tval.length(), null, val, null, null)); //$NON-NLS-1$\n\t\t\t}\n\n\t\t} else {\n\t\t\t// System.out.println(\"String part:\" + stp);\n\t\t\tSet<String> comps = fgProposals.keySet();\n\t\t\tIterator<String> compitr = comps.iterator();\n\t\t\twhile (compitr.hasNext()) {\n\t\t\t\t// CompletionToken comp = comps.nextElement();\n\t\t\t\t// String val = comp.getKey();\n\t\t\t\tString val = compitr.next();\n\t\t\t\t// If there are too many matches (and it becomes annoying) then\n\t\t\t\t// remove the two calls to toLowerCase() below\n\t\t\t\t// if (val.toLowerCase().startsWith(stp.toLowerCase())) {\n\t\t\t\tif (val.startsWith(stp)) {\n\n\t\t\t\t\tString rep = val.substring(stp.length());\n\t\t\t\t\tIContextInformation info = new ContextInformation(\n\t\t\t\t\t\t\tval,\n\t\t\t\t\t\t\tMessageFormat\n\t\t\t\t\t\t\t\t\t.format(\n\t\t\t\t\t\t\t\t\t\t\t\"CompletionProcessor.Proposal.ContextInfo.pattern\", new Object[] { val })); //$NON-NLS-1$\n\t\t\t\t\t// result.add(new CompletionProposal(fgProposals[i],\n\t\t\t\t\t// documentOffset, 0, fgProposals[i].length(), null,\n\t\t\t\t\t// fgProposals[i], info,\n\t\t\t\t\t// MessageFormat.format(\"CompletionProcessor.Proposal.hoverinfo.pattern\",\n\t\t\t\t\t// new Object[] { fgProposals[i]}))); //$NON-NLS-1$\n\t\t\t\t\t\n\t\t\t\t\t// Do not show proposals with . if the stump does not have a .\n\t\t\t\t\tif(!((stp.indexOf('.') == -1) && val.indexOf('.') != -1)) {\n\t\t\t\t\t\tresult.add(new CompletionProposal(rep, documentOffset, 0,\n\t\t\t\t\t\t\t\trep.length(), null, val, null, null)); //$NON-NLS-1$\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\n\t\t// adding an empty string to ensure that the completion dialog appears\n\t\tif (result.size() == 0) {\n\t\t\tresult.add(new CompletionProposal(\n\t\t\t\t\t\"\", documentOffset, 0, 0, null, \"\", null, null)); //$NON-NLS-1$\n\t\t}\n\n\t\treturn result.toArray(new ICompletionProposal[result.size()]);\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Paciente> getAll() {\n return this.pacienteRepository.findAll();\n }", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public List<ProveedorPromocionHotelEntity> getPromociones(){\n List<ProveedorPromocionHotelEntity>promociones = proveedorPromocionHotelPersistence.findAll();\n return promociones;\n }", "public Collection<Proyecto> leerProyectosCollection() {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto[] proyecto = plantilla.getForObject(\"http://localhost:5000/proyectos\", Proyecto[].class);\n\t\t\tList<Proyecto> listaProyectos = Arrays.asList(proyecto);\n\t\t\treturn listaProyectos;\n\t\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "@Override\n\tpublic List<Paper> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public Collection<Parade> findPublishedParade() {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findPublishedParade();\n\n\t\treturn result;\n\t}", "public List<Parcheggio> getListParcheggi() {\n return mListParcheggi;\n }", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "public List findAll() {\n\t\ttry {\n\t\t\tString queryString = \"from Procurator\";\n\t\t\tQuery queryObject = getSession().createQuery(queryString);\n\t\t\treturn queryObject.list();\n\t\t} catch (RuntimeException re) {\n\t\t\tthrow re;\n\t\t}\n\t}", "@Override\n\tpublic List<Pais> findAllPaises() {\n\t\treturn getSession().createQuery(\"from Pais\").list();\n\t}", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "@Override\n @Transactional(readOnly = true)\n public Page<Proposal> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Proposals for query {}\", query);\n return proposalSearchRepository.search(queryStringQuery(query), pageable);\n }", "public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "public java.util.List<PoP> getPopsList() {\n return pops_;\n }", "@Generated\n public List<Proveedor> getProveedores() {\n if (proveedores == null) {\n __throwIfDetached();\n ProveedorDao targetDao = daoSession.getProveedorDao();\n List<Proveedor> proveedoresNew = targetDao._queryUsuarios_Proveedores(id);\n synchronized (this) {\n if(proveedores == null) {\n proveedores = proveedoresNew;\n }\n }\n }\n return proveedores;\n }", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "public String getProposal() {\n return proposal;\n }", "@GetMapping(\"/procesadors\")\n @Timed\n public List<Procesador> getAllProcesadors() {\n log.debug(\"REST request to get all Procesadors\");\n List<Procesador> procesadors = procesadorRepository.findAll();\n return procesadors;\n }", "@Transactional(readOnly=true)\n\t@Override\n\tpublic List<Prenotazione> getAll() {\n\t\treturn this.prenotazioneRepository.getAll();\n\t}", "@Override\n\tpublic List<Approvatore> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "@Override\n\tpublic List<PersonelContract> GetAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Iterable<Pessoa> findAll() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "public List<Proveedor> verProveedoresAll() {\n List<Proveedor> proveedores = new ArrayList<>();\n proveedores = dao.getProveedorAll();\n return proveedores;\n }", "public List<ProgressionCourrier> getAllUsers() {\n Query q = getEntityManager().createQuery(\"select U from ProgressionCourrier U order by U.nomPrenoms\");\n // set parameters\n List<ProgressionCourrier> suggestions = q.getResultList();\n\n // avoid returing null to managed beans\n if (suggestions == null) {\n suggestions = new ArrayList<>();\n }\n\n // return the suggestions\n return suggestions;\n\n }", "public void setProposals(ICompletionProposal[] preComputedProposals) {\n fPreComputedProposals = preComputedProposals;\n }", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "@Override\r\n\tpublic List<Prize> findAll() {\n\t\treturn prizeDao.findAll();\r\n\t}", "public ArrayList<Integer> getProfs(){\r\n\t\treturn this.listeProfs;\r\n\t}", "public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }", "private void asyncRecomputeProposals() {\n\t\tfooter.setText(\"Searching...\");\n\t\tif (isValid()) {\n\t\t\tsynchronized (uniqueId) {\n\t\t\t\tif (uniqueId == Long.MAX_VALUE)\n\t\t\t\t\tuniqueId = Long.MIN_VALUE;\n\t\t\t\tuniqueId++;\n\t\t\t}\n\t\t\tfinal Long currentId = new Long(uniqueId);\n\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tadapter.getProposals(new IContentProposalSearchHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleResult(\n\t\t\t\t\t\t\t\tfinal ContentProposalList proposalList) {\n\t\t\t\t\t\t\tif (control != null && !control.isDisposed()) {\n\t\t\t\t\t\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tif (currentId.equals(uniqueId))\n\t\t\t\t\t\t\t\t\t\t\trecomputeProposals(proposalList);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleTooltips(List<TooltipData> tooltips) {\n\t\t\t\t\t\t\tadapter.handleTooltipData(tooltips);\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}", "@Override\n\tpublic List<Parking> getAllParking() {\n\t\treturn parkingRepository.getAllParking();\n\t}", "public List<Professor> findAll();", "Page<Preferences> findAll(Pageable pageable);", "public List<Dept> list() {\n try {\n List<Dept> dept = new ArrayList<Dept>();\n PreparedStatement stmt = this.connection\n .prepareStatement(\"select * from dept_sr\"); //here\n\n ResultSet rs = stmt.executeQuery();\n\n while (rs.next()) {\n // adiciona a tarefa na lista\n dept.add(populateDept(rs));\n }\n\n rs.close();\n stmt.close();\n\n return dept;\n } catch (SQLException e) {\n throw new RuntimeException(e);\n }\n }", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "public String getAllPapers(){\r\n\t\tString allPapers = \"\";\r\n\t\tif(papers != null){\r\n\t\t\tfor(int index = 0; index < papers.size(); ++index){\r\n\t\t\t\tallPapers += papers.get(index).getTitleOfPaper() + \"\\n\\t\";\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tallPapers = \"No papers have been added.\";\r\n\t\t}\r\n\t\t\r\n\t\treturn allPapers;\r\n\t}", "@Override\n\tpublic Map<String, String> getAvailableProcedures(boolean refresh)\n\t{\n\t\treturn m_models.getAvailableProcedures(refresh);\n\t}", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "@Override\n\tpublic List<Resume> all() {\n\t\treturn resumeMapper.all();\n\t}", "public List<ProjectIdea> showAll(){\n try {\n List<ProjectIdea> result = new ArrayList<ProjectIdea>();\n CloseableIterator<ProjectIdea> itr = super.closeableIterator();\n try {\n while (itr.hasNext()) {\n ProjectIdea tmp = itr.next();\n result.add(tmp);\n }\n } finally {\n itr.close();\n }\n return result;\n }catch (Exception e){\n System.out.println(e.getMessage());\n return null;\n }\n }", "@External(readonly = true)\n\tpublic List<Address> get_score_list(){\n\t\t\n\t\tAddress[] proposal_list = new Address[this.proposal_list.size()];\n\n\t\tfor(int i= 0; i< this.proposal_list.size(); i++) {\n\t\t\tproposal_list[i] = this.proposal_list.get(i);\n\t\t}\t\t\n\t\treturn List.of(proposal_list);\n\t}", "@GetMapping(\"/getapprovals\")\n\t\tpublic @ResponseBody List<Approval> getapprovals()\n\t\t{\n\t\t\t\n\n\t\t\t/*\n\t\t\t * temporary list of approvals\n\t\t\t */\n\t\t\tList<Approval> tempList=new ArrayList<Approval>();\n\t\t\t\n\t\t\t//tempList=repository.findAll();\n\t\t\ttempList=service.getApprovals();\n\t\t\treturn tempList;\n\t\t}", "@Override\n\tpublic List<Professor> getProfessors() {\n\t\tList<Professor> pros=null;\n\t\tProfessor pro=null;\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tstmt=conn.prepareStatement(\"SELECT ssn,name,department,password FROM Professor\");\n\t\t\t/*stmt.setString(1, admin.getCname());\n\t\t\tstmt.setString(2, admin.getCplace());*/\n\t\t\tResultSet rs=stmt.executeQuery();\n\t\t\tpros=new ArrayList<Professor>();\n\t\t\twhile(rs.next()){\n\t\t\t\tpro=new Professor(rs.getString(\"name\"),rs.getString(\"ssn\"),\"\", rs.getString(\"department\"));\n\t\t\t\t\n\t\t\t\tpros.add(pro);\n\t\t\t}\n\t\t\t}catch(SQLException e){\n\t\t\t\tex=e;\n\t\t\t}finally{\n\t\t\t\tif(conn!=null){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tconn.close();\n\t\t\t\t\t}catch(SQLException e){\n\t\t\t\t\t\tif(ex==null){\n\t\t\t\t\t\t\tex=e;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(ex!=null){\n\t\t\t\tthrow new RuntimeException(ex);\n\t\t\t}\n\t\t\t}\n\t\treturn pros;\n\t}", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "@Override\n\tpublic List<PI> findAll() {\n\t\treturn null;\n\t}", "@Override\r\n\tpublic String queryAllGuns() throws InvalidArgumentException, ProposalException {\n\t\t\r\n\t\tQueryByChaincodeRequest request = BlockChainHFClient.getInstance().getClient().newQueryProposalRequest();\r\n\t\tChannel channel = BlockChainHFClient.getInstance().getCh();\r\n\t\tChaincodeID ccid = ChaincodeID.newBuilder().setName(\"facc\").build();\r\n\t\trequest.setChaincodeID(ccid);\r\n\t\trequest.setFcn(\"queryAllGuns\");\r\n\t\tString args = null;\r\n\t\tif (args != null)\r\n\t\t\trequest.setArgs(args);\r\n\r\n\t\tCollection<ProposalResponse> response = channel.queryByChaincode(request,BlockChainHFClient.getInstance().getAdminPeer());\r\n\t\tString stringResponse = null;\r\n\t\tfor (ProposalResponse pres : response) {\r\n\t\t\tstringResponse = new String(pres.getChaincodeActionResponsePayload());\r\n\t\t}\r\n\t\treturn stringResponse;\r\n\t}", "public java.util.List<PoP> getPopsList() {\n if (popsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(pops_);\n } else {\n return popsBuilder_.getMessageList();\n }\n }", "private List<ICompletionProposal> getSuggestions(ITextViewer viewer,\n \t\t\tint offset, String prefix) throws BadLocationException {\n \n \t\tProperties properties = loadProposalFile();\n \n \t\tMap<String, String> filteredSuggestions = new HashMap<String, String>();\n \n \t\tfor (Entry<Object, Object> property : properties.entrySet()) {\n \t\t\tif (((String) property.getValue()).startsWith(prefix)) {\n \t\t\t\tfilteredSuggestions.put((String) property.getKey(),\n \t\t\t\t\t\t(String) property.getValue());\n \t\t\t}\n \t\t}\n \n \t\tList<ICompletionProposal> suggestions = createProposals(viewer,\n \t\t\t\tfilteredSuggestions, offset, prefix);\n \n \t\treturn suggestions;\n \t}", "@GET()\n\t@Produces(\"application/json\")\n\tpublic List<Pizzerias> getAllPizzerias() {\n\t\tArrayList<Pizzerias> allPizzeriasList = new ArrayList<Pizzerias>();\n\t\tSystem.out.println(\"Hi..\");\n\t\tMongoCollection pizzerias = dbConnection.getCollection();\n\t\tMongoCursor<Document> cursor = pizzerias.find().iterator();\n\t\ttry {\n\t\t\twhile (cursor.hasNext()) {\n\t\t\t\tallPizzeriasList.add(this.populatePizzeriasInformation(cursor.next()));\n\t\t\t}\n\t\t} finally {\n\t\t\tcursor.close();\n\t\t}\n\n\t\treturn allPizzeriasList;\n\t}", "public List<Pokemon> showAllPokemon() {\r\n\t\tEntityManager em = emfactory.createEntityManager();\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Pokemon> allPokemon = em.createQuery(\"SELECT p FROM Pokemon p\").getResultList();\r\n\t\treturn allPokemon;\r\n\t}", "public ArrayList<ConferencePaper> getPapers(){\r\n\t\treturn papers;\r\n\t}", "public List<Pizza> getPizzas(){\n return new ArrayList<>(pizzas);\n }", "public final List<Produceable> findAllApplyable() {\r\n/* 29 */ return this.dao.findAll();\r\n/* */ }", "@Override\n\tpublic Iterable<Profesores> listaProfesores() {\n\t\treturn profesoresRepositorio.findAll();\n\t}", "public List<Pdfgenere> getlistePdfgenere() {\n\t\treturn em.createQuery(\"from Pdfgenere P\").getResultList();\n\t}", "List<CompositionSpaceToDraftAssociation> getAll() throws OXException;", "@Override\n\tpublic Iterable<Pedido> findAll() {\n\t\treturn null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<PermisoDTO> findAll() {\n log.debug(\"Request to get all Permisos\");\n List<PermisoDTO> result = permisoRepository.findAll().stream()\n .map(permisoMapper::permisoToPermisoDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "@Override\n\tpublic List<Problem> selectAll() {\n\t\treturn problemMapper.selectAll();\n\t}", "@Override\n public List<ProjectproductDTO> findAll() {\n log.debug(\"Request to get all Projectproducts\");\n List<ProjectproductDTO> result = projectproductRepository.findAll().stream()\n .map(projectproductMapper::projectproductToProjectproductDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "@Override\n public List<Patente> getAllPatente() {\n return this.getDaoPatente().takeAll();\n }", "@Override\n public List<FecetProrrogaOrden> findAll() {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SQL_SELECT).append(SQL_ALL_COLUMNS).append(SQL_FROM).append(getTableName())\n .append(\" ORDER BY ID_PRORROGA_ORDEN\");\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenMapper());\n\n }", "public Map<String, PeptideBean> getgPeptideList() {\n return gPeptideList;\n }", "public List<EstructuraContratosDatDTO> obtenerConsultaProsperaLista() {\n\t\tList<EstructuraContratosDatDTO> consultaNominaLista = consultaProsperaService.listaEstructuraProspera();\n\t\treturn consultaNominaLista;\n\t}", "public String getProposalId() {\n return this.proposalId;\n }", "public Iterable<PosicaoMapa> pegaPosicoes()\n\t{\n\t\treturn posicoes;\n\t}", "@Nonnull\n public List<Parcel> getParcels() {\n return parcels;\n }" ]
[ "0.7641806", "0.6741907", "0.6719285", "0.6620208", "0.6398398", "0.5995802", "0.59594375", "0.5957574", "0.59363467", "0.5926507", "0.5925271", "0.57768536", "0.5739734", "0.57212216", "0.56703085", "0.56335187", "0.5622325", "0.56039983", "0.55713093", "0.55696994", "0.55683", "0.5554124", "0.55467254", "0.5522956", "0.5518832", "0.54946893", "0.5494363", "0.5482708", "0.5481278", "0.54468024", "0.5436232", "0.5427916", "0.54276705", "0.5423775", "0.5422336", "0.5418733", "0.5411984", "0.54002815", "0.53996783", "0.53976125", "0.5384603", "0.53805315", "0.5379806", "0.5375754", "0.53600866", "0.5356631", "0.53425944", "0.5336211", "0.5331446", "0.5320409", "0.5319854", "0.5316462", "0.5314441", "0.5304507", "0.53004324", "0.52975196", "0.5264712", "0.52611816", "0.5259837", "0.5250744", "0.52417773", "0.5239201", "0.5238807", "0.5237573", "0.52291065", "0.5225111", "0.52083474", "0.5207566", "0.5202841", "0.52024776", "0.5201171", "0.5190994", "0.51740897", "0.51680195", "0.5162796", "0.51570344", "0.51490957", "0.5148974", "0.51406735", "0.51384246", "0.51258314", "0.5125779", "0.51204395", "0.5098074", "0.50972164", "0.5084439", "0.50836444", "0.50805813", "0.5068597", "0.50679874", "0.5063258", "0.5057511", "0.50277174", "0.5017863", "0.50158286", "0.50155133", "0.50018007", "0.49871585", "0.49852598", "0.49796772" ]
0.7287629
1
Get all the proposals with eager load of manytomany relationships.
public Page<Proposal> findAllWithEagerRelationships(Pageable pageable) { return proposalRepository.findAllWithEagerRelationships(pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n @Transactional(readOnly = true)\n public Page<Proposal> findAll(Pageable pageable) {\n log.debug(\"Request to get all Proposals\");\n return proposalRepository.findAll(pageable);\n }", "public static Map<Integer, Proposal> getProposals() { return proposals; }", "public List<ProveedorPromocionHotelEntity> getPromociones(){\n List<ProveedorPromocionHotelEntity>promociones = proveedorPromocionHotelPersistence.findAll();\n return promociones;\n }", "@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }", "public List<ProveedorEntity> getProveedores(){\n List<ProveedorEntity>proveedores = proveedorPersistence.findAll();\n return proveedores;\n }", "@Override\n\tpublic List<Profession> getAll() {\n\t\treturn dao.findAll();\n\t}", "@Override\r\n public List<Professor> findAll() {\r\n return getEntityManager().createNamedQuery(\"Professor.findAll\",Professor.class).getResultList();\r\n }", "public List<Promotion> getAllActivePromotions();", "Page<Fotografia> findAllWithEagerRelationships(Pageable pageable);", "@Override\n\tpublic List<Projeto> findAll() {\n\t\treturn null;\n\t}", "@Override\n\tpublic List<Professor> getAllProfessors() {\n\t\treturn professorDao.findAll(Professor.class);\n\t}", "Page<ParaUserDTO> findAllWithEagerRelationships(Pageable pageable);", "@NonNull\n public List<IkeSaProposal> getIkeSaProposals() {\n return Arrays.asList(mSaProposals);\n }", "@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}", "@Generated\n public List<Proveedor> getProveedores() {\n if (proveedores == null) {\n __throwIfDetached();\n ProveedorDao targetDao = daoSession.getProveedorDao();\n List<Proveedor> proveedoresNew = targetDao._queryUsuarios_Proveedores(id);\n synchronized (this) {\n if(proveedores == null) {\n proveedores = proveedoresNew;\n }\n }\n }\n return proveedores;\n }", "public java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> process(java.util.List<edu.ustb.sei.mde.xmu2.resource.xmu2.ui.Xmu2CompletionProposal> proposals) {\n\t\treturn proposals;\r\n\t}", "public XIterable<ArticleX> relateds() {\n\t\tfinal IteratorList<ReadNode> relateds = node().refChildren(\"related\").iterator() ;\n\t\treturn XIterable.create(domain(), relateds.toList(), MapUtil.<String, String>newMap(), ArticleX.class) ;\n\t}", "public List<Professor> findAll();", "public List<PrioritaetEntity> findAll() throws Exception;", "Page<GiftMatPromo> findAll(Pageable pageable);", "public List<ProfessionEntity> getAll() throws SQLException {\n openTransactionSession();\n\n String sql = \"SELECT * FROM profession\";\n\n Session session = getSession();\n Query query = session.createNativeQuery(sql).addEntity(ProfessionEntity.class);\n List<ProfessionEntity> professionList = query.list();\n\n //close session with a transaction\n closeTransactionSession();\n\n return professionList;\n }", "Page<Consulta> findAllWithEagerRelationships(Pageable pageable);", "@Override\n\tpublic List<Pais> findAll() {\n\t\treturn (List<Pais>)paisRepository.findAll();\n\t}", "public Collection<Parade> findPublishedParade() {\n\t\tCollection<Parade> result;\n\n\t\tresult = this.paradeRepository.findPublishedParade();\n\n\t\treturn result;\n\t}", "@Override\n\tpublic List<Personne> findAllPErsonne() {\n\t\treturn dao.findAllPErsonne();\n\t}", "@Override\n\tpublic List<Pais> findAllPaises() {\n\t\treturn getSession().createQuery(\"from Pais\").list();\n\t}", "public static List<ProposalObj> getAllProposalsFromCache(String userId){\n\t\t\n\t\tList<ProposalObj> proposalList=null;\n\t\tString proposalKey=PROPOSAL_KEY+\"_all_user_\"+userId;\n \tif(memcache !=null && memcache.contains(proposalKey)){\n \t\tproposalList=(List<ProposalObj>) memcache.get(proposalKey);\n \t} \n \tlog.info(\"In MemcacheUtil getAllProposalsFromCache ::\"+proposalKey);\n \treturn proposalList;\n\t}", "public Iterable<Relationship> getRelationships();", "@Transactional(readOnly = true)\n List<Protein> getProteinsByIds(Set<Long> proteinIds);", "public List<Proveedores> listProveedores() {\r\n\t\tString sql = \"select p from Proveedores p\";\r\n\t\tTypedQuery<Proveedores> query = em.createQuery(sql, Proveedores.class);\r\n\t\tSystem.out.println(\"2\");\r\n\t\tList<Proveedores> lpersonas = query.getResultList();\r\n\t\treturn lpersonas;\r\n\t}", "Page<Preferences> findAll(Pageable pageable);", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "@OneToMany(mappedBy=\"tipoPartida\", fetch=FetchType.LAZY)\r\n\tpublic List<PartidaIndividual> getPartidaIndividuals() {\r\n\t\treturn this.partidaIndividuals;\r\n\t}", "Page<HousingAssociation> findAll(Pageable pageable);", "List<CompositionSpaceToDraftAssociation> getAll() throws OXException;", "@Override\n\t\t\tpublic List<Dept> queryAll() {\n\t\t\t\treturn null;\n\t\t\t}", "Page<RequestOtherNiazsanjiDTO> findAllWithEagerRelationships(Pageable pageable);", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public ObservableList<Part> getAllAssociatedParts() {\n return associatedParts;\n }", "public List<Prodotto> getListaProdotti() {\n\t\treturn Shop.getInstance().getProdotti();\n\t}", "public List<Idea> allIdeas() {\n return ideaRepo.findAll();\n }", "public Set<ProjectRelationship<?, ?>> getAllRelationships()\n {\n return new HashSet<ProjectRelationship<?, ?>>( getConnectionInternal().getAllRelationships( params ) );\n }", "public ResultMap<Association> associations();", "public QuerySet<Perfil> getPerfilSet() {\n QuerySet<Perfil> perfilList = new QuerySet<Perfil>();\n Perfil perfil = null;\n for (Privilegio privilegio : getPrivilegioSet()) {\n perfil = Perfil.objects.<Perfil>get(\"id\", privilegio.getPerfil().getId());\n perfil.getPermissoes();\n perfilList.add(perfil);\n }\n return perfilList;\n }", "@Override\n\tpublic List<Resume> all() {\n\t\treturn resumeMapper.all();\n\t}", "Page<GroupMembers> findAllWithEagerRelationships(Pageable pageable);", "public List<Proveedor> verProveedoresAll() {\n List<Proveedor> proveedores = new ArrayList<>();\n proveedores = dao.getProveedorAll();\n return proveedores;\n }", "public Iterable<Post> findAll(){\n return postDao.findAll();\n }", "@Override\n\tpublic Iterable<Profesores> listaProfesores() {\n\t\treturn profesoresRepositorio.findAll();\n\t}", "@Override\n\tpublic List<JobPreferences> findAll() {\n\t\treturn jobPreferenceDao.findAll();\n\t}", "@Override\n\t\t\tpublic List<Dept> findAll() {\n\t\t\t\treturn null;\n\t\t\t}", "@Override\n\tpublic Iterable<Pedido> findAll() {\n\t\treturn null;\n\t}", "@Override\n\t@Transactional(readOnly=true)\n\tpublic List<QuestionMultiChoice> findAll() {\n\t\treturn Lists.newArrayList(qcmRepository.findAll());\n\t}", "Page<Expert> findAll(Pageable pageable);", "@Override\n @Transactional(readOnly = true)\n public List<PermisoDTO> findAll() {\n log.debug(\"Request to get all Permisos\");\n List<PermisoDTO> result = permisoRepository.findAll().stream()\n .map(permisoMapper::permisoToPermisoDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "public List<Pai> getPaises() {\n\t\tList<Pai> retorno = new ArrayList<Pai>();\n\n\t\tQuery query = getEntityManager().createNamedQuery(\"Pai.findAll\");\n\t\tretorno = (List<Pai>) query.getResultList();\n\n\t\treturn retorno;\n\n\t}", "@Override\r\n\tpublic List<Supplies> findall() {\n\t\treturn suppliesDao.findall();\r\n\t}", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public List<Paciente> getAll() {\n return this.pacienteRepository.findAll();\n }", "@Query(\"select classe from Classe classe join fetch classe.ecole\")\n public Iterable<Classe> findAll();", "@JsonIgnore public Collection<Mass> getProteinContents() {\n final Object current = myData.get(\"proteinContent\");\n if (current == null) return Collections.emptyList();\n if (current instanceof Collection) {\n return (Collection<Mass>) current;\n }\n return Arrays.asList((Mass) current);\n }", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "@ManyToMany//(cascade = {CascadeType.PERSIST, CascadeType.MERGE})\n public List<Person> getParticipants() {\n return participants;\n }", "@Override\r\n\tpublic List<Person> findAll(){\n\t\tQuery query=em.createQuery(\"Select p from Person p\");\r\n\t\tList<Person> list = query.getResultList();\r\n\t\treturn list;\r\n\t}", "public void setProposals(ICompletionProposal[] preComputedProposals) {\n fPreComputedProposals = preComputedProposals;\n }", "@Override\n public List<ProjectproductDTO> findAll() {\n log.debug(\"Request to get all Projectproducts\");\n List<ProjectproductDTO> result = projectproductRepository.findAll().stream()\n .map(projectproductMapper::projectproductToProjectproductDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n return result;\n }", "@Override\n \tpublic ArrayList<ICompletionProposal> getCompletionProposals() {\n\n \t\tif (region.getType() == DOMRegionContext.XML_TAG_OPEN) {\n \t\t\tcomputeTagOpenProposals();\n \t\t} else if (region.getType() == DOMRegionContext.XML_TAG_NAME) {\n \t\t\tcomputeTagNameProposals();\n \t\t}\n \t\treturn getAllCompletionProposals();\n \t}", "public final List<Produceable> findAllApplyable() {\r\n/* 29 */ return this.dao.findAll();\r\n/* */ }", "@Override\r\n\tpublic List<TopicContent> findAll() {\n\t\treturn topicContentDao.findAll();\r\n\t}", "public List findAll() {\n\t\ttry {\n\t\t\tString queryString = \"from Procurator\";\n\t\t\tQuery queryObject = getSession().createQuery(queryString);\n\t\t\treturn queryObject.list();\n\t\t} catch (RuntimeException re) {\n\t\t\tthrow re;\n\t\t}\n\t}", "@Override\n\tpublic Iterable<Pessoa> findAll() {\n\t\treturn null;\n\t}", "public List<PedidoProveedorEntity> getPedidos() {\r\n return pedidos;\r\n }", "public List<TagPregunta> getTagsPopulares(int limit);", "@Override\n\tpublic List<Provincia> fiindAll() {\n\t\treturn provincieRepository.findAllByOrderByNameAsc();\n\t}", "public Set getAllPersistableChildren() {\n \n Set children = new HashSet();\n children.addAll(comments);\n return children;\n }", "public Opportunities[] findAll() throws OpportunitiesDaoException\r\n\t{\r\n\t\treturn findByDynamicSelect( SQL_SELECT + \" ORDER BY id\", null );\r\n\t}", "@Override\n\tpublic Iterable<Person> findAll() {\n\t\treturn null;\n\t}", "@Override\n public List<Part> findAll() {\n List<Part> resultList = new ArrayList<>();\n repositoryPart.findAll().iterator().forEachRemaining(resultList::add);\n return resultList;\n }", "@Override\n\tpublic List<Pizza> getAllPizzas() {\n\t\treturn mongoTemplate.findAll(Pizza.class);\n\t}", "Collection<AssociationEnd> getAssociations();", "@Override\n\tpublic List<Problem> selectAll() {\n\t\treturn problemMapper.selectAll();\n\t}", "java.util.List<? extends hr.domain.ResumeDBOuterClass.ExperienceOrBuilder> \n getExperiencesOrBuilderList();", "public ReactorResult<InvolvedPerson> getAllInvolvedPerson_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INVOLVEDPERSON, InvolvedPerson.class);\r\n\t}", "public List<ProgressionCourrier> getAllUsers() {\n Query q = getEntityManager().createQuery(\"select U from ProgressionCourrier U order by U.nomPrenoms\");\n // set parameters\n List<ProgressionCourrier> suggestions = q.getResultList();\n\n // avoid returing null to managed beans\n if (suggestions == null) {\n suggestions = new ArrayList<>();\n }\n\n // return the suggestions\n return suggestions;\n\n }", "public Map<String, Set<String>> getRelatedEntities() {\n return relatedEntities;\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "@Override\n public List<Person> getPeople() {\n return this.personRepository.findAll();\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "@External(readonly = true)\n\tpublic List<Address> get_approved_games() {\n\t\t\n\t\t Address[] _proposal_list = new Address[this.proposal_list.size()];\n\t\t int j = 0;\n\t\t for (int i = 0; i< this.proposal_list.size();i++ ) {\n\t\t\t Address address = this.proposal_list.get(i);\n\t\t\t String gameApproved = this.status_data.get(address);\n\t\t\t if (gameApproved!=null && gameApproved.equals(\"gameApproved\") ) {\n\t\t\t\t _proposal_list[j] = address;\n\t\t\t\t j++;\n\t\t\t }\n\t\t }\n\t\t Address[] tmp = new Address[j];\n\t\t System.arraycopy(_proposal_list, 0, tmp, 0, j);\n\t\t return List.of(tmp);\n\t}", "@Transactional(readOnly = true)\n Protein getProteinAndCrossReferencesByProteinId(Long id);", "public ArrayList<Integer> getProfs(){\r\n\t\treturn this.listeProfs;\r\n\t}", "public abstract DtPropuesta[] getPropuestasPopulares();", "@Transactional(readOnly = true)\n List<Protein> getProteinsAndMatchesAndCrossReferencesBetweenIds(long bottom, long top);", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "@Override\n\t\tpublic Iterable<Relationship> getRelationships() {\n\t\t\treturn null;\n\t\t}", "@Override\n\tpublic List<Paper> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "Collection<P> getPointsOfInterest ();", "protected boolean[] getEntityEagerPropertyFetches() {\n \t\treturn null;\n \t}", "@SuppressWarnings(\"unchecked\")\n\tpublic List<AdmUserPruebas> findAll() {\n\t\tEntityManagerHelper.log(\"finding all AdmUserPruebas instances\",\n\t\t\t\tLevel.INFO, null);\n\t\ttry {\n\t\t\tfinal String queryString = \"select model from AdmUserPruebas model\";\n\t\t\tQuery query = getEntityManager().createQuery(queryString);\n\t\t\treturn query.getResultList();\n\t\t} catch (RuntimeException re) {\n\t\t\tEntityManagerHelper.log(\"find all failed\", Level.SEVERE, re);\n\t\t\tthrow re;\n\t\t}\n\t}", "@Transactional(readOnly=true)\n\t@Override\n\tpublic List<Prenotazione> getAll() {\n\t\treturn this.prenotazioneRepository.getAll();\n\t}" ]
[ "0.63123494", "0.615324", "0.56386733", "0.5509379", "0.5446744", "0.5412908", "0.5411423", "0.5392245", "0.5376338", "0.5319963", "0.5260286", "0.5229339", "0.51695585", "0.5058716", "0.5054969", "0.50219256", "0.50007796", "0.4954059", "0.49513027", "0.49496236", "0.4943007", "0.49223152", "0.49191955", "0.49189392", "0.49035573", "0.4900711", "0.4899096", "0.48917028", "0.48690492", "0.48621613", "0.4861975", "0.48586485", "0.48462453", "0.4845408", "0.48080823", "0.48060483", "0.4791833", "0.479101", "0.479101", "0.47868335", "0.4783308", "0.478192", "0.47777238", "0.47748074", "0.47622225", "0.47503522", "0.47279626", "0.47200835", "0.47196212", "0.47189584", "0.47178397", "0.4698386", "0.46865135", "0.46723297", "0.46519578", "0.4651141", "0.46511102", "0.4643333", "0.46324614", "0.46259594", "0.46125397", "0.46024328", "0.45910534", "0.45804825", "0.45601228", "0.45562387", "0.45556822", "0.45483142", "0.45439488", "0.45377755", "0.45360678", "0.45346442", "0.4519351", "0.45187488", "0.45165002", "0.45162794", "0.45161372", "0.45156413", "0.4515343", "0.4514585", "0.44968012", "0.44940612", "0.4486507", "0.44764847", "0.4475039", "0.44745782", "0.44734672", "0.44721192", "0.44721052", "0.44705698", "0.4462965", "0.44622084", "0.4457221", "0.44481573", "0.4445257", "0.444415", "0.4442872", "0.4442321", "0.44411305", "0.44403923" ]
0.7044915
0
Get one proposal by id.
@Override @Transactional(readOnly = true) public Optional<Proposal> findOne(Long id) { log.debug("Request to get Proposal : {}", id); return proposalRepository.findOneWithEagerRelationships(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Person getOne(Integer id) {\n\t\tPerson person = personRepository.getOne(id);\n\t\treturn person;\n\t}", "@Override\n\tpublic Propisi findOne(Long id) {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public Optional<SourceApprovEpDTO> findOne(Long id) {\n log.debug(\"Request to get SourceApprovEp : {}\", id);\n return sourceApprovEpRepository.findById(id).map(sourceApprovEpMapper::toDto);\n }", "public Person get( Integer id ) {\n\t\t// Retrieve existing person\n\t\tPerson person = (Person) entityManager.createQuery(\"FROM Person p where p.id = :id\")\n \t.setParameter(\"id\", id).getSingleResult();\n\t\treturn person;\n\t}", "public Person findOne(Long id) {\n\t\treturn personRepository.findById(id).get();\n\t}", "public Pessoa find(Long id){\n\t\treturn db.findOne(id);\n\t}", "public CyPoj findById(Integer id) {\n\t\treturn d.findById(id);\r\n\t}", "long getProposalId();", "@GetMapping(\"projekat/{id}\")\n\tprivate Projekat getProjekat(@PathVariable(\"id\") Integer id) {\n\t\treturn projekatRepository.getOne(id);\n\t}", "public String getProposalId() {\n return this.proposalId;\n }", "public Profilo get( Integer id ) {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Recupero il Profilo\r\n\t\tProfilo profilo = (Profilo) session.get(Profilo.class, id);\r\n\t\t\r\n\t\t//Restituisco il Profilo trovato\r\n\t\treturn profilo;\r\n\t}", "@Transactional(readOnly = true)\n public Optional<PizzaOrder> findOne(Long id) {\n log.debug(\"Request to get PizzaOrder : {}\", id);\n return pizzaOrderRepository.findById(id);\n }", "public PurchaseVO PFindByID(String id) {\n\t\treturn purchase.find(id);\r\n\t}", "public Publication get(Integer id) throws PersistException {\n try (Connection connection = pool.getConnection()) {\n MySqlPublicationDao productDao = (MySqlPublicationDao) factory.getDao(Publication.class, connection);\n return productDao.getByPrimaryKey(id);\n } catch (SQLException e) {\n throw new PersistException(e);\n }\n }", "@Override\r\n\tpublic PaymentPO findByID(String id) {\n\t\treturn null;\r\n\t}", "Optional<Preferences> findOne(Long id);", "@Override\n\tpublic Person findPersonById(long id){\n\t\tQuery q = em.createQuery(\"SELECT p FROM Person p WHERE p.id = :id\");\n\t\tq.setParameter(\"id\", id);\n\t\t\n\t\tList<Person> persons = q.getResultList();\n\t\t\n\t\tif(persons.size() == 1)\n\t\t\treturn persons.get(0);\n\t\telse return null;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<ProductPurchaseDTO> findOne(Long id) {\n log.debug(\"Solicitud para obtener ProductPurchase : {}\", id);\n return productPurchaseRepository.findById(id)\n .map(productPurchaseMapper::productPurchaseToProductPurchaseDTO);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<IdentityProofDTO> findOne(Long id) {\n log.debug(\"Request to get IdentityProof : {}\", id);\n return identityProofRepository.findById(id)\n .map(identityProofMapper::toDto);\n }", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<AcademicExperience> findOne(Long id) {\n log.debug(\"Request to get AcademicExperience : {}\", id);\n return academicExperienceRepository.findById(id);\n }", "@Override\n\tpublic Personnes findOne(Long id) {\n\t\treturn null;\n\t}", "@Transactional(readOnly = true)\n public Optional<CompetitionDTO> findOne(Long id) {\n log.debug(\"Request to get Competition : {}\", id);\n return competitionRepository.findById(id)\n .map(competitionMapper::toDto);\n }", "public Personel findPersonelById(int id) {\n\t\treturn personelDao.findPersonelById(id);\r\n\t}", "Optional<Expert> findOne(Long id);", "@Transactional(readOnly = true) \n public TaskProject findOne(Long id) {\n log.debug(\"Request to get TaskProject : {}\", id);\n TaskProject taskProject = taskProjectRepository.findOne(id);\n return taskProject;\n }", "public Procurator findById(java.lang.Integer id) {\n\t\ttry {\n\t\t\tProcurator instance = (Procurator) getSession().get(\"com.cargo.model.Procurator\", id);\n\t\t\treturn instance;\n\t\t} catch (RuntimeException re) {\n\t\t\tthrow re;\n\t\t}\n\t}", "@Transactional(readOnly = true) \n public PtoPeriodDTO findOne(Long id) {\n log.debug(\"Request to get PtoPeriod : {}\", id);\n PtoPeriod ptoPeriod = ptoPeriodRepository.findOne(id);\n PtoPeriodDTO ptoPeriodDTO = ptoPeriodMapper.ptoPeriodToPtoPeriodDTO(ptoPeriod);\n return ptoPeriodDTO;\n }", "@Override\n\tpublic Personne getPersonne(int id) {\n\t\treturn dao.getPersonne(id);\n\t}", "@GetMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Procesador> getProcesador(@PathVariable Long id) {\n log.debug(\"REST request to get Procesador : {}\", id);\n Procesador procesador = procesadorRepository.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(procesador));\n }", "public Personne find(int id) {\n\t\tPersonne p= null;\n\t\ttry {\n\t\t\t\tString req = \"SELECT id,nom, prenom, evaluation FROM PERSONNE_1 WHERE ID=?\";\n\t\t\t\tPreparedStatement ps= connect.prepareStatement(req);\n\t\t\t\tps.setInt(1, id);\n\t\t\t\tResultSet rs = ps.executeQuery();\n\t\t\t\tp =new Personne (id, rs.getString(1),rs.getString(2));\n\t\t\t}catch (SQLException e) {e.printStackTrace();}\n\t\t\t\t\n\t\treturn p;\n\t\t\n\t}", "PaperDTO findOne(Long id);", "public Person getPersonById(String id) {\n\t\tfor (Person person : persons) {\n\t\t\tif (person.getId().equals(id)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public ProjectproductDTO findOne(String id) {\n log.debug(\"Request to get Projectproduct : {}\", id);\n Projectproduct projectproduct = projectproductRepository.findOne(UUID.fromString(id));\n ProjectproductDTO projectproductDTO = projectproductMapper.projectproductToProjectproductDTO(projectproduct);\n return projectproductDTO;\n }", "public Paciente obtenerPorId(long id) {\n return pacienteRepository.findById(id);\n }", "@Transactional(propagation = Propagation.MANDATORY)\n\tpublic default E getOne(K id) {\n\t\treturn getRepository().getOne(id);\n\t}", "public Mono<Supplements> findOne(String id) {\n log.debug(\"Request to get Supplements : {}\", id);\n return supplementsRepository.findById(id);\n }", "@Override\n\tpublic Person findOne(Integer id) {\n\t\treturn null;\n\t}", "public Person get( Integer id ) {\n\t\t\n\t\tSession session = sessionFactory.getCurrentSession();\t\t\n\t\t\n\t\treturn(Person) session.get(Person.class,id);\n\t}", "Optional<EstimateProductDTO> findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<CentreCompositionDTO> findOne(Long id) {\n log.debug(\"Request to get CentreComposition : {}\", id);\n return centreCompositionRepository.findById(id)\n .map(centreCompositionMapper::toDto);\n }", "public Person findPerson(Long id) {\n\t\treturn personRepository.findById(id).orElse(null); \n\t}", "@Override\n\tpublic Person getPerson(int id) {\n\t\treturn new Person(\"Philippe\", \"Peeters\");\n\t}", "public Karton findOne(Integer id) {\n\t\treturn kartonRepository.findById(id).orElseGet(null);\n\t}", "@Transactional(readOnly = true)\n public Optional<Exam> findOne(Long id) {\n log.debug(\"Request to get Exam : {}\", id);\n return examRepository.findById(id);\n }", "@Override\n @Transactional(readOnly = true)\n public PermisoDTO findOne(Long id) {\n log.debug(\"Request to get Permiso : {}\", id);\n Permiso permiso = permisoRepository.findOne(id);\n PermisoDTO permisoDTO = permisoMapper.permisoToPermisoDTO(permiso);\n return permisoDTO;\n }", "@Override\n @Transactional(readOnly = true)\n public Paciente getById(String id) {\n Optional<Paciente> pacienteContainer = this.pacienteRepository.findById(id);\n if(pacienteContainer.isPresent()){\n return pacienteContainer.get();\n }\n return null;\n }", "public Paciente get( Long id ) {\r\n\t\t\tlogger.debug(\"Retrieving codigo with id: \" + id);\r\n\t\t\t\r\n\t\t\t/*for (Paciente paciente:codigos) {\r\n\t\t\t\tif (paciente.getId().longValue() == id.longValue()) {\r\n\t\t\t\t\tlogger.debug(\"Found record\");\r\n\t\t\t\t\treturn paciente;\r\n\t\t\t\t}\r\n\t\t\t}*/\r\n\t\t\t\r\n\t\t\tlogger.debug(\"No records found\");\r\n\t\t\treturn null;\r\n\t\t}", "@Transactional(readOnly = true)\n public Optional<CandidatoDTO> findOne(Long id) {\n log.debug(\"Request to get Candidato : {}\", id);\n return candidatoRepository.findById(id).map(candidatoMapper::toDto);\n }", "@Transactional(readOnly = true)\n public TipoSituacao findOne(Long id) {\n log.debug(\"Request to get TipoSituacao : {}\", id);\n return tipoSituacaoRepository.findOne(id);\n }", "Optional<ShipmentInfoPODDTO> findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public Optional<ProjectTypeId> findOne(Long id) {\n log.debug(\"Request to get ProjectTypeId : {}\", id);\n return projectTypeIdRepository.findById(id);\n }", "@Override\n @Transactional(readOnly = true)\n public MantisApproverDTO findOne(Long id) {\n log.debug(\"Request to get MantisApprover : {}\", id);\n MantisApprover mantisApprover = mantisApproverRepository.findOne(id);\n return mantisApproverMapper.toDto(mantisApprover);\n }", "@Nullable\n public DBObject findOne(final Object id) {\n return findOne(new BasicDBObject(\"_id\", id), new DBCollectionFindOptions());\n }", "public Producer getProducer(String id) {\n\n return (Producer) producers.get(id);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<Kontrachent> findOne(Long id) {\n log.debug(\"Request to get Kontrachent : {}\", id);\n return kontrachentRepository.findById(id);\n }", "@Transactional(readOnly = true)\n public AlterationPriceDTO findOne(Long id) {\n log.debug(\"Request to get AlterationPrice : {}\", id);\n AlterationPrice alterationPrice = alterationPriceRepository.findOne(id);\n AlterationPriceDTO alterationPriceDTO = alterationPriceMapper.alterationPriceToAlterationPriceDTO(alterationPrice);\n return alterationPriceDTO;\n }", "public T get( final int id )\n\t{\n\t\treturn this.dao.findById( id ).get();\n\t}", "@Override\n\tpublic T get(ID id) {\n\t\tOptional<T> obj = getDao().findById(id);\n\t\tif (obj.isPresent()) {\n\t\t\treturn obj.get();\n\t\t}\t\t\n\t\treturn null;\n\t}", "public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<PomocniMaterijal> findOne(Long id) {\n log.debug(\"Request to get PomocniMaterijal : {}\", id);\n return pomocniMaterijalRepository.findById(id);\n }", "public Proveedor findProveedorById(Long id) {\n\t\treturn findById(Proveedor.class, id);\n\t}", "@Override\r\n\tpublic Candidat findOne(String id) {\n\t\treturn null;\r\n\t}", "public Profesor selectByPrimaryKey(Integer id) {\n Profesor key = new Profesor();\n key.setId(id);\n Profesor record = (Profesor) getSqlMapClientTemplate().queryForObject(\"tbl_profesor.ibatorgenerated_selectByPrimaryKey\", key);\n return record;\n }", "@Transactional(readOnly = true) \n public Product findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOne(id);\n return product;\n }", "@Transactional(readOnly = true)\n\t@Override\n\tpublic Optional<Persona> findById(Integer id) throws Exception {\n\t\treturn personaRepository.findById(id);\n\t}", "@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}", "@Transactional(readOnly = true)\n public Optional<SolicitacaoExameDTO> findOne(Long id) {\n log.debug(\"Request to get SolicitacaoExame : {}\", id);\n return solicitacaoExameRepository.findById(id)\n .map(solicitacaoExameMapper::toDto);\n }", "@Override\n @Transactional(readOnly = true)\n public ProductDTO findOne(Long id) {\n log.debug(\"Request to get Product : {}\", id);\n Product product = productRepository.findOneWithEagerRelationships(id);\n return productMapper.toDto(product);\n }", "@Override\r\n\tpublic DeptBean findByPrimaryKey(BigDecimal id) throws SQLException {\n\t\tDeptBean ret[] = findByDynamicSelect( SQL_SELECT + \" WHERE ID = ?\", new Object[] { id } );\r\n\t\treturn ret.length==0 ? null : ret[0];\r\n\t}", "@Transactional(readOnly = true)\n public Optional<ChocolateDTO> findOne(Long id) {\n log.debug(\"Request to get Chocolate : {}\", id);\n return chocolateRepository.findById(id)\n .map(chocolateMapper::toDto);\n }", "@Transactional(readOnly = true)\n public Optional<ScriptParam> findOne(Long id) {\n log.debug(\"Request to get ScriptParam : {}\", id);\n return scriptParamRepository.findById(id);\n }", "@Transactional(readOnly = true)\n public Optional<ItemInstance> findOne(Long id) {\n log.debug(\"Request to get ItemInstance : {}\", id);\n return itemInstanceRepository.findById(id);\n }", "Optional<Job> findOne(String id);", "@Override\n @Transactional(readOnly = true)\n public Optional<JobTitleDTO> findOne(Long id) {\n log.debug(\"Request to get JobTitle : {}\", id);\n return jobTitleRepository.findById(id)\n .map(jobTitleMapper::toDto);\n }", "@Transactional(readOnly = true)\n public Optional<GeoTypeCommuneDTO> findOne(Long id) {\n log.debug(\"Request to get GeoTypeCommune : {}\", id);\n return geoTypeCommuneRepository.findById(id)\n .map(geoTypeCommuneMapper::toDto);\n }", "@Override\r\n\tpublic Product showOne(int id) throws Exception {\n\t\treturn this.dao.showOne(id);\r\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<DSCorrespondence> findOne(Long id) {\n log.debug(\"Request to get DSCorrespondence : {}\", id);\n return dSCorrespondenceRepository.findById(id);\n }", "public Proyecto proyectoPorId(int id) {\n\t\t\tRestTemplate plantilla = new RestTemplate();\n\t\t\tProyecto proyecto =plantilla.getForObject(\"http://localhost:5000/proyectos/\" + id, Proyecto.class);\n\t\t\treturn proyecto;\n\t\t}", "public ProfessionEntity getById(int id_pr) throws SQLException {\n openTransactionSession();\n\n String sql = \"SELECT * FROM profession WHERE id_prof = :id\";\n\n Session session = getSession();\n Query query = session.createNativeQuery(sql).addEntity(ProfessionEntity.class);\n query.setParameter(\"id\", id_pr);\n\n ProfessionEntity profession = (ProfessionEntity) query.getSingleResult();\n\n //close session with a transaction\n closeTransactionSession();\n\n return profession;\n }", "@Override\n\t@Transactional(readOnly = true)\n\tpublic Optional<Jobs> findOne(Long id) {\n\t\tlog.debug(\"Request to get Jobs : {}\", id);\n\t\treturn jobsRepository.findById(id);\n\t}", "public Epreuve getById(Long id) {\n\t\tEntityManager em = EntityManagerHolder.getCurrentEntityManager();\n\t\tEpreuve epreuve = em.find(Epreuve.class, id);\n\t\tSystem.out.println(\"Epreuve lu\");\n\t\treturn epreuve;\n\t}", "public Optional<Product> getProduct(final long id) {\n\t\treturn productRepository.findById(id);\n\t}", "@Override\n\tpublic DeptInf findDeptById(Integer id) {\n\t\treturn deptMapper.selectByPrimaryKey(id);\n\t}", "@Override\n public ModeloCuestionario findOne(Integer id) {\n return modeloCuestionarioRepository.findOne(id);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<RmsPersonDTO> findOne(Long id) {\n log.debug(\"Request to get RmsPerson : {}\", id);\n return rmsPersonRepository.findById(id)\n .map(rmsPersonMapper::toDto);\n }", "Optional<ParaUserDTO> findOne(Long id);", "@Transactional(readOnly = true)\n public Optional<Employee> findOne(Long id) {\n log.debug(\"Request to get Employee : {}\", id);\n return employeeRepository.findById(id);\n }", "@Transactional(readOnly = true)\n public Optional<Invitation> findOne(Long id) {\n log.debug(\"Request to get Invitation : {}\", id);\n return invitationRepository.findById(id);\n }", "public Product selectProduct(long id) {\n return entityManager.find(Product.class, id);\n }", "@Override\n @Transactional(readOnly = true)\n public Optional<StatusCandidatesDTO> findOne(Long id) {\n log.debug(\"Request to get StatusCandidates : {}\", id);\n return statusCandidatesRepository.findById(id)\n .map(statusCandidatesMapper::toDto);\n }", "@Override\n\tpublic Equipo get(Long id)\n\t{\n\t\tOptional<Equipo> entity = equipoRepository.findById(id);\n\t\treturn entity.orElse(null);\n\t}", "Optional<Person> findOne(Long id);", "PolicyRecord findOne(Long id);", "@Override\n @Transactional(readOnly = true)\n public ConferenceDTO findOne(Long id) {\n log.debug(\"Request to get Conference : {}\", id);\n Conference conference = conferenceRepository.findOne(id);\n return conferenceMapper.toDto(conference);\n }", "@Transactional(readOnly = true)\n public Optional<TechPracticesDTO> findOne(Long id) {\n log.debug(\"Request to get TechPractices : {}\", id);\n return techPracticesRepository.findById(id)\n .map(techPracticesMapper::toDto);\n }", "public Poses getPose(int id) {\n\t\tPoses newPose = null;\n\t\tthis.openDataBase();\n \tLog.d(\"We're Here\", \"getPose\");\n\t\ttry { \n\t\t\t\tCursor cursor = myDataBase.query(DataBaseHelper.TABLE_POSES,\n\t\t\t\tallColumns, DataBaseHelper.COLUMN_ID + \" = \" + id, null,\n\t\t\t\tnull, null, null);\n\t\n\t\tcursor.moveToFirst();\n\t\tLog.d(\"Database contents\", \"Graphic string: \" + cursor.getString(1));\n\t\tLog.d(\"Database contents\", \"YogaName: \" + cursor.getString(6));\n\t\tnewPose = new Poses(cursor.getLong(0),\n\t\t\t\tcursor.getString(1),\n\t\t\t\tcursor.getString(2),\n\t\t\t\tcursor.getString(3),\n\t\t\t\tcursor.getInt(4),\n\t\t\t\tcursor.getInt(5),\n\t\t\t\tcursor.getString(6),\n\t\t\t\tcursor.getInt(7));\n\t\tcursor.close();\n\t\t}\n\t\tcatch (SQLException sqle) {\n\t\t\tLog.d(\"Database Error\", \"Error getting Pose from database\");\n\t\t\tLog.d(\"SQL Exception\", sqle.toString());\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tLog.d(\"Exception\", e.toString());\n\t\t}\n\t\tthis.close();\n\t\treturn newPose;\n\t}", "@Override\n @Transactional(readOnly = true)\n public Optional<Goods> findOne(Long id) {\n log.debug(\"Request to get Goods : {}\", id);\n return goodsRepository.findById(id);\n }", "@Override\n public Optional<BookmarkDTO> findOne(String id) {\n log.debug(\"Request to get Bookmark : {}\", id);\n return bookmarkRepository.findById(id)\n .map(bookmarkMapper::toDto);\n }", "public Adjustment getOne(long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\treturn session.get(Adjustment.class, id);\r\n\t}" ]
[ "0.7080784", "0.7031324", "0.68022156", "0.6774677", "0.6686502", "0.6661941", "0.66258526", "0.6625678", "0.6616323", "0.6615531", "0.65786296", "0.65688187", "0.65669", "0.65467745", "0.648349", "0.6463337", "0.644877", "0.64134693", "0.64043397", "0.6393435", "0.6389606", "0.638314", "0.6377306", "0.63757914", "0.6373615", "0.6336614", "0.63339096", "0.6324927", "0.6304046", "0.630212", "0.6300007", "0.62938195", "0.6285376", "0.62831616", "0.62808204", "0.62797254", "0.6274516", "0.62632567", "0.62573564", "0.62531906", "0.62335336", "0.6227075", "0.6224753", "0.6212348", "0.620514", "0.6201722", "0.6201172", "0.62007934", "0.61867476", "0.61861837", "0.61827415", "0.6180114", "0.6178484", "0.6174395", "0.6173767", "0.6169981", "0.6165456", "0.61652744", "0.6154833", "0.6150479", "0.6136674", "0.6136519", "0.61354053", "0.6135135", "0.61304176", "0.61163986", "0.61057734", "0.61044455", "0.6103388", "0.6103169", "0.61013824", "0.6101223", "0.6099896", "0.60974836", "0.6097082", "0.6096303", "0.6095002", "0.6090869", "0.6090196", "0.6083947", "0.60794", "0.6075353", "0.60675406", "0.6060182", "0.6050532", "0.6048397", "0.6041079", "0.6039543", "0.6030388", "0.6024126", "0.6023907", "0.6021261", "0.601816", "0.6015121", "0.60147107", "0.60132664", "0.6008695", "0.6005768", "0.6005664", "0.60025865" ]
0.8443055
0
Delete the proposal by id.
@Override public void delete(Long id) { log.debug("Request to delete Proposal : {}", id); proposalRepository.deleteById(id); proposalSearchRepository.deleteById(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deleteById(final String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void delete(String id);", "public void deleteById(String id);", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete IdentityProof : {}\", id);\n identityProofRepository.deleteById(id);\n }", "public void delete(int id);", "void delete(final Long id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "void deleteById(String id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(Integer id);", "public void delete(int id) {\n\n\t}", "@Override\n public void delete(String id) {\n log.debug(\"Request to delete Projectproduct : {}\", id);\n projectproductRepository.delete(UUID.fromString(id));\n }", "@DeleteMapping(\"/procesadors/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProcesador(@PathVariable Long id) {\n log.debug(\"REST request to delete Procesador : {}\", id);\n procesadorRepository.delete(id);\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "public void delete(Long id) {\n log.debug(\"Request to delete SourceApprovEp : {}\", id);\n sourceApprovEpRepository.deleteById(id);\n sourceApprovEpSearchRepository.deleteById(id);\n }", "@Override\n\tpublic void deletePro(Integer id) {\n\t\tproblemMapper.deleteByPrimaryKey(id);\n\t}", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void delete(Long id);", "public void deleteByIdP(int id) {\n\t\tConnection connection = null;\n\t\tPreparedStatement st = null;\n\t\tString query = deleteQuery(\"id_produs\");\n\t\ttry {\n\t\t\tconnection = ConnectionFactory.createCon();\n\t\t\tst = connection.prepareStatement(query);\n\t\t\tst.setInt(1, id);\n\t\t\tst.executeUpdate();\n\t\t}catch(SQLException e) {\n\t\t\tLOGGER.fine(type.getName() + \"DAO:deleteByIdP\" + e.getMessage());\n\t\t}\n\t}", "public boolean delete(String id);", "public boolean delete(String id);", "boolean delete(final ID id);", "public void deleteById(Integer id) {\n\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete PizzaOrder : {}\", id);\n pizzaOrderRepository.deleteById(id);\n }", "public void delete(Integer id) {\n\t\tpersonRepository.delete(id);\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete MantisApprover : {}\", id);\n mantisApproverRepository.delete(id);\n }", "@Override\n\tpublic void deleteProfessor(int id) {\n\t\tprofessorDao.delete(Professor.class, id);\n\t}", "@Query(value = \"{ 'id': ?0}\", delete = true)\n\tLong deleteById(Integer id);", "public boolean deleteById(Object id);", "public boolean deleteById(Object id);", "public void deletePagoById(String id){\n pagoMongoRepository.deleteById(id);\n }", "public void deleteById(Long id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void delete(String id);", "void deleteById(int id);", "public void deleteById(long id) {\n\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete Permiso : {}\", id);\n permisoRepository.delete(id);\n }", "@Override\r\n\tpublic void delete(Long id) {\n\t\trepository.deleteById(id);\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\tlibroRepository.deleteById(id);\r\n\t}", "@Override\n\tpublic void deleteById(String id) {\n\t\t\n\t}", "public static void delete(int id){\n\t\tfind.byId(id).delete();\n\t}", "public void delete(Long id) {\n\t\tpersonRepository.deleteById(id);\n\t}", "@Override\r\n\tpublic void delete(String id) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteById(Long id) {\n\n\t}", "void deleteById(Integer id);", "void deleteById(Integer id);", "public void deleteById(long id) {\n\t\t\n\t}", "@Delete({\n \"delete from dept\",\n \"where id = #{id,jdbcType=INTEGER}\"\n })\n int deleteByPrimaryKey(Integer id);", "public void delete(Long id) {\n\r\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete Competition : {}\", id);\n competitionRepository.deleteById(id);\n }", "public boolean deleteById(final Long id);", "void delete(ID id);", "@Override\n public void delete(int id) {\n repr.delete(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Candidato : {}\", id);\n candidatoRepository.deleteById(id);\n }", "@Override\n\tpublic void deleteById(int id) {\n\t\t\n\t}", "void deletePersonById( final Long id );", "public void delete(Integer id) {\n\r\n\t}", "@DeleteMapping(\"projekat/{id}\")\n\tpublic ResponseEntity<Projekat> deleteProjekat(@PathVariable(\"id\") Integer id) {\n\t\tif (!projekatRepository.existsById(id))\n\t\t\treturn new ResponseEntity<>(HttpStatus.NO_CONTENT);\n\t\tprojekatRepository.deleteById(id);\n\t\treturn new ResponseEntity<>(HttpStatus.OK);\n\t}", "public void delete(int id) throws Exception {\n\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete PtoPeriod : {}\", id);\n ptoPeriodRepository.delete(id);\n }", "public void delete(Long id) {\n log.debug(\"Request to delete Exam : {}\", id);\n examRepository.deleteById(id);\n }", "@Override\r\n\tpublic void delete(int id) {\n\t\tshipperDao.delete(id);\r\n\t}", "@Override\r\n\tpublic void delete(int id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic int delete(int id) {\n\t\treturn jdbcTemplate.update(\"call PKG_ESTADO_CIVIL.PR_DEL_ESTADO_CIVIL(?)\", id);\r\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(Long id) {\n\n\t}", "@Override\n\tpublic void delete(String id) {\n\n\t}", "@Override\r\n\tpublic void delete(Long id) {\n\t\t\r\n\t}", "@Override\n\tpublic void deleteById(Integer id) {\n\t\t\n\t}", "public void delete(Long id) \n {\n LOGGER.log(Level.INFO, \"Borrando preferencias con id={0}\", id);\n PreferenciasEntity entity = em.find(PreferenciasEntity.class, id);\n em.remove(entity);\n }", "@Override\n\tpublic void deleteById(Integer id) throws Exception {\n\t\tcomproRepository.deleteById(id);\n\t}", "@Override\n\tpublic void delete(Long id) {\n\t}", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete PomocniMaterijal : {}\", id);\n pomocniMaterijalRepository.deleteById(id);\n }", "@Override\n public void delete(Long id) {\n log.debug(\"Request to delete AcademicExperience : {}\", id);\n academicExperienceRepository.deleteById(id);\n }", "void delete( Integer id );", "@Override\r\n\tpublic Result delete(int id) {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\n\tpublic void delete(String id) {\n\t\t\n\t}", "@Override\r\n\tpublic TaotaoResult DeletePunishment(Long id) {\n\t\treturn null;\r\n\t}", "public void delete(Long id) {\n log.debug(\"Request to delete AlterationPrice : {}\", id);\n alterationPriceRepository.delete(id);\n }", "void delete(String id) throws PSDataServiceException, PSNotFoundException;" ]
[ "0.7050066", "0.7012333", "0.7012333", "0.7012333", "0.7012333", "0.7012333", "0.6963117", "0.6890447", "0.6838598", "0.6825137", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.68121916", "0.6797459", "0.6797459", "0.6797459", "0.6781954", "0.67634493", "0.6754577", "0.67367953", "0.67322147", "0.67215115", "0.67215115", "0.67215115", "0.67215115", "0.67215115", "0.67128056", "0.669117", "0.669117", "0.6684799", "0.6675178", "0.66730523", "0.6665801", "0.6664699", "0.66600615", "0.66479015", "0.66435134", "0.66435134", "0.66373485", "0.6634874", "0.66199726", "0.66199726", "0.66199726", "0.66199726", "0.66199726", "0.66199726", "0.6616498", "0.66147035", "0.6614181", "0.66139513", "0.6612979", "0.6612307", "0.66054493", "0.66046274", "0.6597027", "0.6595904", "0.65869033", "0.65869033", "0.65799993", "0.65781116", "0.6576234", "0.65714854", "0.6565985", "0.6564817", "0.6558368", "0.6557086", "0.6552223", "0.6550651", "0.6548299", "0.65457773", "0.6544813", "0.65400594", "0.65310836", "0.6528225", "0.6521345", "0.6517703", "0.6516185", "0.6516185", "0.6514149", "0.65138215", "0.6512795", "0.6505909", "0.6499121", "0.64947665", "0.64920926", "0.6479197", "0.6471895", "0.6462973", "0.64590544", "0.64590544", "0.64486396", "0.6443543", "0.6443262" ]
0.8433318
0
Search for the proposal corresponding to the query.
@Override @Transactional(readOnly = true) public Page<Proposal> search(String query, Pageable pageable) { log.debug("Request to search for a page of Proposals for query {}", query); return proposalSearchRepository.search(queryStringQuery(query), pageable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Transactional(readOnly = true)\n public Page<SourceApprovEpDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of SourceApprovEps for query {}\", query);\n return sourceApprovEpSearchRepository.search(queryStringQuery(query), pageable).map(sourceApprovEpMapper::toDto);\n }", "List<ShipmentInfoPODDTO> search(String query);", "public String search(String query){\n Receipt receipt = receipts.get(query);\n String message;\n if(receipt != null)\n message = receipt.toString();\n else\n message = \"Receipt not found.\";\n return message;\n }", "Page<Preferences> search(String query, Pageable pageable);", "List<LectureDTO> search(String query);", "public void search() {\n String q = this.query.getText();\n String cat = this.category.getValue();\n if(cat.equals(\"Book\")) {\n searchBook(q);\n } else {\n searchCharacter(q);\n }\n }", "@Override\n @Transactional(readOnly = true)\n public Page<StatusCandidatesDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of StatusCandidates for query {}\", query);\n return statusCandidatesSearchRepository.search(queryStringQuery(query), pageable)\n .map(statusCandidatesMapper::toDto);\n }", "List<Codebadge> search(String query);", "Page<ParaUserDTO> search(String query, Pageable pageable);", "private Collection<Record> getResults(SimpleSurnameAndPostcodeQuery query) {\n\t\treturn search(query);\n\t}", "Search getSearch();", "void searchProbed (Search search);", "Page<Tbc_analises_componente> search(String query, Pageable pageable);", "@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query) {\n\t\t\t\treturn null;\r\n\t\t\t}", "Page<NoteDTO> search(String query, Pageable pageable);", "private Proposal getSelectedProposal() {\n\t\tif (isValid()) {\n\t\t\tint index = proposalTable.getSelectionIndex();\n\t\t\tif (proposalList == null || index < 0 || index >= getTableLength()) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tint proposalIndex = 0;\n\t\t\tfor (Proposal proposal : proposalList.getTopProposalList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn proposal;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t}\n\t\t\tfor (String provider : proposalList.getProviderList()) {\n\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\tproposalIndex++;\n\t\t\t\tfor (Proposal proposal : proposalList.getProposals(provider)) {\n\t\t\t\t\tif (index == proposalIndex) {\n\t\t\t\t\t\treturn proposal;\n\t\t\t\t\t}\n\t\t\t\t\tproposalIndex++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void searchBook(String query) {\n String filter = this.bookFilter.getValue();\n String sort = this.sort.getValue();\n \n // Get the user defined comparator\n Comparator<Book> c = getBookComparator(filter, sort);\n\n // Create a book used for comparison\n Book book = createBookForQuery(filter, query);\n \n // Find all matches\n GenericList<Book> results = DashboardController.library.getBookTable().findAll(book, c);\n\n // Cast results to an array\n Book[] bookResults = bookResultsToArray(results, c);\n\n // Load the results in a new scene\n this.loadBookResultsView(bookResults);\n }", "public Result search (SpanQuery query) {\n final Krill krill = new Krill(query);\n krill.getMeta().setSnippets(true);\n return this.search(krill);\n }", "Page<T> search(Pageable pageable, QueryBuilder query);", "private void asyncRecomputeProposals() {\n\t\tfooter.setText(\"Searching...\");\n\t\tif (isValid()) {\n\t\t\tsynchronized (uniqueId) {\n\t\t\t\tif (uniqueId == Long.MAX_VALUE)\n\t\t\t\t\tuniqueId = Long.MIN_VALUE;\n\t\t\t\tuniqueId++;\n\t\t\t}\n\t\t\tfinal Long currentId = new Long(uniqueId);\n\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\tpublic void run() {\n\t\t\t\t\tadapter.getProposals(new IContentProposalSearchHandler() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleResult(\n\t\t\t\t\t\t\t\tfinal ContentProposalList proposalList) {\n\t\t\t\t\t\t\tif (control != null && !control.isDisposed()) {\n\t\t\t\t\t\t\t\tcontrol.getDisplay().asyncExec(new Runnable() {\n\t\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\t\tif (currentId.equals(uniqueId))\n\t\t\t\t\t\t\t\t\t\t\trecomputeProposals(proposalList);\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void handleTooltips(List<TooltipData> tooltips) {\n\t\t\t\t\t\t\tadapter.handleTooltipData(tooltips);\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}", "@Override\n @Transactional(readOnly = true)\n public Page<RmsPersonDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of RmsPeople for query {}\", query);\n return rmsPersonSearchRepository.search(queryStringQuery(query), pageable)\n .map(rmsPersonMapper::toDto);\n }", "Page<T> search(Pageable pageable, String query);", "TSearchResults searchWithQuery(TSearchQuery searchQuery, SearchParametersAPI overrideParameters, TRepo repo, AreaFactory<TContent, TArea> areaFactory, ContentFactory<TContent> contentFactory);", "abstract public void search();", "Page<ConsultationInfoDTO> search(String query, Pageable pageable);", "List<SearchResult> search(SearchQuery searchQuery);", "Page<RefZoneGeoDTO> search(String query, Pageable pageable);", "@Override\n public List<Item> selectRecommendation(Query query) {\n return mongoTemplate.find(query, Item.class);\n }", "List<Corretor> search(String query);", "List<Revenue> search(String query);", "CampusSearchQuery generateQuery();", "@Override\n @Transactional(readOnly = true)\n public Page<JeuDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Jeus for query {}\", query);\n Page<Jeu> result = jeuSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(jeuMapper::toDto);\n }", "List<OwnerOperatorDTO> search(String query);", "Page<UserPortfolioDTO> search(String query, Pageable pageable);", "public void search() {\r\n \t\r\n }", "protected boolean query() {\r\n\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator())\r\n\t\t\t\t+ processQueryPublisher(queryBk.getPublisher()));\r\n\t\tSystem.out.println(queryStr);\r\n\t\t// if edition is 'lastest' (coded '0'), no query is performed; and\r\n\t\t// return false.\r\n\t\tif (queryBk.parseEdition() == 0) {\r\n\t\t\treturn false;\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * The following section adds edition info to the query string if edition no. is\r\n\t\t * greater than one. By cataloging practice, for the first edition, probably\r\n\t\t * there is NO input on the associated MARC field. Considering this, edition\r\n\t\t * query string to Primo is NOT added if querying for the first edition or no\r\n\t\t * edition is specified.\r\n\t\t */\r\n\t\tif (queryBk.parseEdition() > 1) {\r\n\t\t\tqueryStr += processQueryEdition(queryBk.parseEdition());\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * Querying the Primo X-service; and invoking the matching processes (all done\r\n\t\t * by remoteQuery()).\r\n\t\t */\r\n\t\tif (strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t/*\r\n\t\t * For various reasons, there are possibilities that the first query fails while\r\n\t\t * a match should be found. The follow work as remedy queries to ensure the\r\n\t\t * accuracy.\r\n\t\t */\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublisher())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryPublisher(queryBk.getPublisher()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()) + processQueryAuthor(queryBk.getCreator()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match && strHandle.hasSomething(queryBk.getPublishYear())) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryYear(queryBk.getPublishYear()));\r\n\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\tif (!match) {\r\n\t\t\tqueryStr = new String(\r\n\t\t\t\t\tprocessQueryAuthor(queryBk.getCreator()) + processQueryTitleShort(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional query for Chinese titles\r\n\r\n\t\tif (!match && (CJKStringHandling.isCJKString(queryBk.getTitle())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getCreator())\r\n\t\t\t\t|| CJKStringHandling.isCJKString(queryBk.getPublisher()))) {\r\n\r\n\t\t\tqueryStr = new String(processQueryTitle(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t} // end if\r\n\r\n\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition2(queryBk.parseEdition()));\r\n\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\tmatch = true;\r\n\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmatch = false;\r\n\t\t\t\t} // end if\r\n\r\n\t\t\t\tif (!match && queryBk.parseEdition() != -1) {\r\n\t\t\t\t\tqueryStr = new String(\r\n\t\t\t\t\t\t\tprocessQueryTitle(queryBk.getTitle()) + processQueryEdition3(queryBk.parseEdition()));\r\n\t\t\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\t\t\tmatch = true;\r\n\t\t\t\t\t\tsetBookInfo();\r\n\t\t\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tmatch = false;\r\n\t\t\t\t\t} // end if\r\n\t\t\t\t} // end if\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\r\n\t\t// Additional check for ISO Document number in <search> <genernal> PNX\r\n\t\t// tag\r\n\t\tif (!match && !CJKStringHandling.isCJKString(queryBk.getTitle())) {\r\n\t\t\tqueryStr = new String(processQueryTitleISODoc(queryBk.getTitle()));\r\n\t\t\tif (remoteQuery(queryStr)) {\r\n\t\t\t\tmatch = true;\r\n\t\t\t\tsetBookInfo();\r\n\t\t\t\tcheckAVA(queryBk.parseVolume());\r\n\t\t\t\treturn true;\r\n\t\t\t} else {\r\n\t\t\t\tmatch = false;\r\n\t\t\t\terrMsg += \"Query: No record found on Primo.\" + Config.QUERY_SETTING;\r\n\t\t\t} // end if\r\n\t\t} // end if\r\n\t\treturn false;\r\n\t}", "public PostingsList search( Query query, int queryType, int rankingType, int structureType ) {\r\n switch(queryType){\r\n case Index.INTERSECTION_QUERY : \r\n return searchIntersection( query, rankingType, structureType);\r\n\r\n case Index.PHRASE_QUERY :\r\n return searchPhrase( query, rankingType, structureType);\r\n default:\r\n break;\r\n }\r\n\r\n return null;\r\n }", "@Override\n public Data3DPlastic search() {\n return super.search();\n }", "public abstract S getSearch();", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "@Transactional(readOnly = true)\n public Page<SolicitacaoExameDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of SolicitacaoExames for query {}\", query);\n return solicitacaoExameSearchRepository.search(queryStringQuery(query), pageable)\n .map(solicitacaoExameMapper::toDto);\n }", "private QueryAndProgram queryAndProgFind(ProgramPath pp,String queryClause,String qp) {\n Optional opt = queryAndProgramLink.stream().filter(p -> p.qtp.queryClause.equals(queryClause) \n && p.getPaths().stream().anyMatch(q -> q.pathId.equals(pp.pathId))\n && p.queryPoint.equals(qp)).findFirst();\n // && p.getPaths().contains(pp)).findFirst();\n if(opt.isPresent())\n return (QueryAndProgram)opt.get();\n return null;\n \n \n }", "@Override\n @Transactional(readOnly = true)\n public Page<Kontrachent> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Kontrachents for query {}\", query);\n return kontrachentSearchRepository.search(queryStringQuery(query), pageable); }", "public Utwor search2(String query) {\n for (Utwor utwor : utwory) {\n if (utwor.getTitle().equals(query)) {\n return utwor;\n }\n }\n return null;\n }", "public void search() {\n }", "private void search(String product) {\n // ..\n }", "public List<Produit> searchProduitsByVendeur(String theVendeur);", "@Override\n @Transactional(readOnly = true)\n public Page<Books> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Books for query {}\", query);\n return booksSearchRepository.search(queryStringQuery(query), pageable); }", "@In String search();", "public static void search(){\n\t\tfor (Page p:heap){\n\t\t\tfor(Building b:p.buildings){\n\t\t\t\t\n\t\t\t\t//System.out.println(b.buildingName);\n\t\t\t\tif(b.getBuildingName()!=null) {\n\t\t\t\t\tif(b.getBuildingName().contains(searchQuery)){\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println(\"Building Name: \" + b.getBuildingName());\n\t\t\t\t\t\tSystem.out.println(\"Property ID: \" + b.getPropID());\n\t\t\t\t\t\tSystem.out.println(\"Census year: \" + b.getCensusYear());\n\t\t\t\t\t\tSystem.out.println(\"======================================================\");\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\tbuildingsFound++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tpagesSearched++;\n\t\t}\n\t}", "@Transactional(readOnly = true)\n public Page<TaskProject> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of TaskProjects for query {}\", query);\n Page<TaskProject> result = taskProjectSearchRepository.search(queryStringQuery(query), pageable);\n return result;\n }", "Page<TypeBonDTO> search(String query, Pageable pageable);", "List<ResultDTO> search(String query);", "public synchronized String querySearch(String query) {\n Set<Restaurant> matching;\n try {\n matching = getMatches(query);\n } catch (IllegalArgumentException e) {\n return \"ERR: INVALID_QUERY\";\n }\n if (matching.isEmpty()) {\n return \"ERR: NO_MATCH\";\n } else {\n return gson.toJson(matching);\n }\n }", "void search();", "void search();", "@Override\n @Transactional(readOnly = true)\n public List<CollegeDTO> search(String query) {\n log.debug(\"Request to search Colleges for query {}\", query);\n return StreamSupport\n .stream(collegeSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(collegeMapper::toDto)\n .collect(Collectors.toList());\n }", "@Override\n public List<ClarifaiProcessDTO> search(String query) {\n log.debug(\"Request to search ClarifaiProcesses for query {}\", query);\n return StreamSupport\n .stream(clarifaiProcessSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .map(clarifaiProcessMapper::toDto)\n .collect(Collectors.toList());\n }", "@Override\n @Transactional(readOnly = true)\n public List<PerSubmit> search(String query) {\n log.debug(\"Request to search PerSubmits for query {}\", query);\n return StreamSupport\n .stream(perSubmitSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@RequestMapping(value = \"/_search/producers\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE)\n @Timed\n public List<Producer> searchProducers(@RequestParam String query) {\n log.debug(\"REST request to search Producers for query {}\", query);\n return StreamSupport\n .stream(producerSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@Override\n @Transactional(readOnly = true)\n public List<Goods> search(String query) {\n log.debug(\"Request to search Goods for query {}\", query);\n return StreamSupport\n .stream(goodsSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "@Override\n @Transactional(readOnly = true)\n public Page<AdChoiseDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of AdChoises for query {}\", query);\n Page<AdChoise> result = adChoiseSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(adChoiseMapper::toDto);\n }", "public PostingsList search( Query query, int queryType, int rankingType,\n int structureType ) {\n double idf_threshold = new Double(0);\n double index_elimination = new Double(0.008);\n // System.err.println(pageRank[docNumber.get(\"121\")]);\n\n if (query.size()>0){\n switch (queryType){\n case Index.INTERSECTION_QUERY:\n System.err.println(\"Intersection query\");\n return intersect(query);\n case Index.PHRASE_QUERY:\n System.err.println(\"Phrase query\");\n return phrase_query(query);\n case Index.RANKED_QUERY:\n System.err.println(\"Ranked query\");\n switch(rankingType){\n case Index.TF_IDF: return ranked_query(query, 1, idf_threshold);\n case Index.PAGERANK: return ranked_query(query, 0, idf_threshold);//ranked_query(query, 0, idf_threshold);//ranked_query2(query, 0);\n case Index.COMBINATION: return ranked_query(query, index_elimination, idf_threshold);\n }\n default:\n System.out.println(\"not valid query\");\n return null;\n }\n }\n else\n // Query was empty\n return null;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.Search getSearch() {\n if (searchBuilder_ == null) {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 10) {\n return searchBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }\n }", "List<Cemetery> search(String query);", "@Override\n public Page<AlunoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Alunos for query {}\", query);\n Page<Aluno> result = alunoSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(alunoMapper::toDto);\n }", "@Override\n\tpublic NodeIterator search(String queryString) throws Exception {\n\t\treturn null;\n\t}", "List<TypePatientPropertyCondition> search(String query);", "@Override\n @Transactional(readOnly = true)\n public Page<CostoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Costos for query {}\", query);\n Page<Costo> result = costoSearchRepository.search(queryStringQuery(query), pageable);\n return result.map(costoMapper::toDto);\n }", "private Page<ElasticCandidate> search(CandidateSearchModel model, Pageable pageable){\n Integer experienceDuration = model.getSkillPlaceholder()\n .getExperienceDuration();\n String title = model.getSkillPlaceholder()\n .getSkill()\n .getTitle();\n RangeModel<Integer> rangeExperience = model.getSkillExperienceRange();\n Integer experienceUpperLimit = rangeExperience.getUpperLimit();\n Integer experienceLowerLimit = rangeExperience.getLowerLimit();\n\n // Prepares location\n String location = model.getLocation();\n\n // Prepare hourly rate\n Integer hourlyRate = model.getHourlyRate();\n RangeModel<Integer> rangeHourlyRate = model.getHourlyRateRange();\n Integer hourlyRateUpperLimit = rangeHourlyRate.getUpperLimit();\n Integer hourlyRateLowerLimit = rangeHourlyRate.getLowerLimit();\n\n // Prepares certifications\n Set<String> certifications = model.getCertifications();\n if (certifications != null && certifications.size() != 0) {\n Iterator iterator = certifications.iterator();\n String[] certificationsArray = new String[certifications.size()];\n for (int i = 0; i < certificationsArray.length; i++) {\n certificationsArray[i] = (String) iterator.next();\n }\n }\n\n // Prepares Starting date postponed !!\n// Long startingDate = model.getStartingDate().getTime();\n// Long startingDateUpperLimit = model.getStartingDateUpperRange().getTime();\n\n // Prepares time period\n String timePeriod = model.getTimePeriod();\n // endregion\n\n // region Build query\n SearchQuery searchQuery;\n\n\n if (certifications != null && certifications.size() != 0)\n searchQuery = new NativeSearchQueryBuilder().withQuery(matchAllQuery())\n\n\n .withQuery(\n boolQuery()\n .must(queryForMustSkill(title))\n .should(queryForExactValueSkill(title, experienceDuration))\n .should(queryForExactValueHourlyRate(hourlyRate))\n .should(queryForFuzzyHourlyRate(hourlyRate))\n .should(queryForFuzzySkill(title, experienceDuration))\n .should(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .should(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .must(queryForLocation(location))\n// .must(queryForStartingDay(startingDate, startingDateUpperLimit))\n .must(queryForTimePeriod(timePeriod))\n .must(queryForCertifications(certifications)))\n .withPageable(pageable)\n .withFilter(queryForMustSkill(title))\n .withFilter(queryForExactValueSkill(title, experienceDuration))\n .withFilter(queryForExactValueHourlyRate(hourlyRate))\n .withFilter(queryForFuzzyHourlyRate(hourlyRate))\n .withFilter(queryForFuzzySkill(title, experienceDuration))\n .withFilter(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .withFilter(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .withFilter(queryForLocation(location))\n .withFilter(queryForTimePeriod(timePeriod))\n .withFilter(queryForCertifications(certifications))\n// .withSort(SortBuilders.fieldSort(\"hourlyRate\")\n// .order(SortOrder.ASC))\n .build();\n\n else\n\n\n searchQuery = new NativeSearchQueryBuilder().withQuery(matchAllQuery())\n\n\n .withQuery(\n boolQuery()\n .must(queryForMustSkill(title))\n .should(queryForExactValueSkill(title, experienceDuration))\n .should(queryForExactValueHourlyRate(hourlyRate))\n .should(queryForFuzzyHourlyRate(hourlyRate))\n .should(queryForFuzzySkill(title, experienceDuration))\n .should(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .should(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .must(queryForLocation(location))\n// .must(queryForStartingDay(startingDate, startingDateUpperLimit))\n .must(queryForTimePeriod(timePeriod)))\n .withPageable(pageable)\n .withFilter(queryForMustSkill(title))\n .withFilter(queryForExactValueSkill(title, experienceDuration))\n .withFilter(queryForExactValueHourlyRate(hourlyRate))\n .withFilter(queryForFuzzyHourlyRate(hourlyRate))\n .withFilter(queryForFuzzySkill(title, experienceDuration))\n .withFilter(queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .withFilter(queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .withFilter(queryForLocation(location))\n .withFilter(queryForTimePeriod(timePeriod))\n// .withSort(SortBuilders.fieldSort(\"hourlyRate\")\n// .order(SortOrder.ASC))\n .build();\n\n // endregion\n\n // region Test\n Page<ElasticCandidate> queryForExactValueSkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForExactValueSkill(title, experienceDuration))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForExactValueHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForExactValueHourlyRate(hourlyRate))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForFuzzySkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForFuzzySkill(title, experienceDuration))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForFuzzyHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForFuzzyHourlyRate(hourlyRate))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForRangeSkill = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForRangeSkill(title, experienceLowerLimit, experienceUpperLimit))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForRangeHourlyRate = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForRangeHourlyRate(hourlyRateLowerLimit, hourlyRateUpperLimit))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForLocation = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForLocation(location))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForTimePeriod = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForTimePeriod(timePeriod))\n .build(), ElasticCandidate.class);\n Page<ElasticCandidate> queryForCertifications = elasticsearchTemplate.queryForPage(new NativeSearchQueryBuilder().withQuery(\n queryForCertifications(certifications))\n .build(), ElasticCandidate.class);\n // endregion\n\n\n Page<ElasticCandidate> sampleEntities = elasticsearchTemplate.queryForPage(searchQuery,\n ElasticCandidate.class);\n return sampleEntities;\n }", "public List<Product> search(String searchString);", "@Override\n @Transactional(readOnly = true)\n public Optional<Proposal> findOne(Long id) {\n log.debug(\"Request to get Proposal : {}\", id);\n return proposalRepository.findOneWithEagerRelationships(id);\n }", "@Transactional(readOnly = true)\n public Page<FormaDeAgendamentoDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of FormaDeAgendamentos for query {}\", query);\n return formaDeAgendamentoSearchRepository.search(queryStringQuery(query), pageable)\n .map(formaDeAgendamentoMapper::toDto);\n }", "@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);", "@Override\n @Transactional(readOnly = true)\n public Page<NotificationDTO> search(String query, Pageable pageable) {\n log.debug(\"Request to search for a page of Notifications for query {}\", query);\n Page<Notification> result = notificationSearchRepository.search(queryStringQuery(query),\n pageable);\n return result.map(notificationMapper::toDto);\n }", "@java.lang.Override\n public com.clarifai.grpc.api.SearchOrBuilder getSearchOrBuilder() {\n if (inputSourceCase_ == 10) {\n return (com.clarifai.grpc.api.Search) inputSource_;\n }\n return com.clarifai.grpc.api.Search.getDefaultInstance();\n }", "@Transactional(readOnly = true) \n public List<Product> search(String query) {\n \n log.debug(\"REST request to search Products for query {}\", query);\n return StreamSupport\n .stream(productSearchRepository.search(queryStringQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n }", "QueryRequest<Review> query();", "@Override\n\tpublic void search() {\n\t}", "public String getProposal() {\n return proposal;\n }", "SearchResponse search(Pageable pageable, QueryBuilder query, AggregationBuilder aggregation);", "public NsSearchResult<RecT> search() {\n Object searchRecord = toNativeQuery();\n NsSearchResult<RecT> result = clientService.search(searchRecord);\n if (!result.isSuccess()) {\n NetSuiteClientService.checkError(result.getStatus());\n }\n return result;\n }", "SearchResult search(State root, List<State> expanded_list, State goal);", "private static void search_by_id() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project id: \");\r\n\t\t\tString project_id_str = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_id_str, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project id cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t\r\n\t}", "Page<Examination> searchPageOfExamPackageByTitle(int examPackageID, String examinationTitle, int pageNo, int pageSize);", "void findSuggestions(String query) {\n \t\tif (suggestionsLoaderClient != null) {\n \t\t\tif (query.length() == 0) {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(\"default-query\",\n \t\t\t\t\t\tlimit);\n \t\t\t} else {\n \t\t\t\tsuggestionsLoaderClient.doLoadSuggestions(query, limit);\n \t\t\t}\n \t\t}\n \t}", "public void doSearch(String query)\n \t{\n \t\tlistener.onQueryTextSubmit(query);\n \t}", "public AddressBook search(String query)\n {\n Integer count = 0;\n Integer size = addressEntryList.size();\n AddressBook ab = new AddressBook();\n int indexes[] = new int[size];\n //For loop, iterating through our entire list of Address Entries\n for (int i = 0; i < addressEntryList.size(); i++)\n {\n //If the lastname is the search query\n if(addressEntryList.get(i).getLastName().contains(query))\n {\n indexes[count] = i;\n count++;\n }\n }\n //If we found anything\n if (count > 0)\n {\n //Add entries found\n for (int i = 0; i < count; i++)\n {\n ab.addressEntryList.add(addressEntryList.get(indexes[i]));\n }\n }\n //No entries were found\n else {\n System.out.println(\"No entries were found.\");\n }\n\n return ab;\n\n }", "public final void searchProducer(Input input) {\n switch (getProducerStrategy().toString()) {\n case \"GREEN\" -> new GreenStrategy().searchProducer(input, this);\n case \"PRICE\" -> new PriceStrategy().searchProducer(input, this);\n case \"QUANTITY\" -> new QuantityStrategy().searchProducer(input, this);\n default -> new BasicStrategy().searchProducer(input, this);\n }\n }", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String popupSearch(String criteria) {\n\t\treturn null;\r\n\t}", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "List<Job> findAllByJobPosition(String query);", "@Transactional(readOnly = true)\n public List<Patient> search(String query) {\n log.debug(\"Request to search Patients for query {}\", query);\n List<Patient> result = StreamSupport\n .stream(patientSearchRepository.search(wrapperQuery(query)).spliterator(), false)\n .collect(Collectors.toList());\n return result;\n }", "private void search(String querySearch) {\n searchResult = new ArrayList<>();\n for (MonitoringModel item : searchList) {\n if (item.getPROG_ID().toLowerCase().contains(querySearch) || item.getPROG_ID().contains(querySearch) ||\n item.getKEPUTUSAN().toLowerCase().contains(querySearch) || item.getKEPUTUSAN().contains(querySearch) ||\n Common.formatTgl(item.getTGL_TARGET()).toLowerCase().contains(querySearch) || Common.formatTgl(item.getTGL_TARGET()).contains(querySearch) ||\n Common.formatStatusMonitoringToString(item.getLAST_STATUS()).toLowerCase().contains(querySearch) || Common.formatStatusMonitoringToString(item.getLAST_STATUS()).contains(querySearch)) {\n searchResult.add(item);\n }\n }\n if (searchResult.isEmpty())\n tvEmptySearch.setText(\"No results found for '\" + querySearch + \"'\");\n else\n tvEmptySearch.setText(\"\");\n\n searchAdapter = new ListAdapter(getContext(), searchResult);\n rvList.setAdapter(searchAdapter);\n }", "interface FindByQueryWithQuery<T> extends TerminatingFindByQuery<T> {\n\n\t\t/**\n\t\t * Set the filter query to be used.\n\t\t *\n\t\t * @param query must not be {@literal null}.\n\t\t * @return new instance of {@link TerminatingFindByQuery}.\n\t\t * @throws IllegalArgumentException if query is {@literal null}.\n\t\t */\n\t\tTerminatingFindByQuery<T> matching(Query query);\n\n\t}", "public String getSearchHint();", "@Override\r\n\tpublic void search() {\n\r\n\t}", "abstract public boolean performSearch();", "public List<Produit> searchProduitsByQuartier(String theQuartier);" ]
[ "0.6187909", "0.6000768", "0.58227307", "0.5729966", "0.5577029", "0.55764574", "0.55634123", "0.5555412", "0.552886", "0.5514987", "0.55103004", "0.55023414", "0.54685706", "0.5447327", "0.54438835", "0.54158705", "0.5387874", "0.5378017", "0.5361947", "0.5360594", "0.53483343", "0.53450537", "0.53441054", "0.53255", "0.5325461", "0.5306872", "0.53051674", "0.52968", "0.52905864", "0.52887845", "0.5285452", "0.525937", "0.52470344", "0.52444667", "0.5240091", "0.5235226", "0.52341694", "0.5219636", "0.52186614", "0.521816", "0.52167684", "0.52153546", "0.5194276", "0.5190738", "0.51846355", "0.5175051", "0.5171663", "0.5159159", "0.51583576", "0.51560056", "0.51554585", "0.5151526", "0.51441675", "0.5140708", "0.51355064", "0.51355064", "0.5127835", "0.512762", "0.51233006", "0.512056", "0.51200724", "0.51108706", "0.5105227", "0.5076725", "0.5074803", "0.50680333", "0.5065908", "0.5065584", "0.50611675", "0.5046154", "0.5044782", "0.5032641", "0.50269157", "0.5021869", "0.5014562", "0.4999065", "0.4987272", "0.49661276", "0.49639964", "0.49638042", "0.49621314", "0.4949674", "0.4941939", "0.49360284", "0.49354514", "0.4932381", "0.4915395", "0.49122784", "0.49074936", "0.49013278", "0.49013278", "0.48952124", "0.48932981", "0.4891791", "0.4890704", "0.488244", "0.48813286", "0.48703113", "0.48682263", "0.48618463" ]
0.7600612
0
Get all histories of Proposal
@Override public List<History> getHistories(Long id) { return historyRepository.findByProposalIdOrderByCreatedDateDesc(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Historico> findAll() {\n\t\treturn null;\n\t}", "public List<HistoriaLaboral> getHistoriasQueAfectanDesignacion(Emp emp);", "public List<HistoriaLaboral> getHistoriasSanciones(Emp emp);", "public List<Order> getOrderHistory();", "private List<Performance> quizHistory(){\n\t\treturn history;\n\t}", "@Override\n public List<FecetProrrogaOrden> getHistoricoProrrogaPorOrden(final BigDecimal idOrden) {\n\n StringBuilder query = new StringBuilder();\n\n query.append(SELECT_PRORROGAS_RELACIONES).append(\" INNER JOIN \").append(NAME_TABLE_PRORROGA_ORDEN)\n .append(SQL_FP);\n query.append(SQL_INNER_ID_PRORROGA_ORDEN);\n query.append(\" WHERE P.ID_ORDEN = ? \");\n query.append(\" ORDER BY P.ID_PRORROGA_ORDEN, FP.ID_FLUJO_PRORROGA_ORDEN \");\n\n return getJdbcTemplateBase().query(query.toString(), new FecetProrrogaOrdenConRelacionesMapper(), idOrden);\n\n }", "public int[] getHistogram()\r\n {\r\n\treturn histogram;\r\n }", "public List getHistoricoCursoDictado(HistoricoCursoDictado historicoCursoDictado);", "public List<MyStockHist> getMystockHistAlltList(MyStockHist myStockHist) ;", "@SuppressWarnings(\"unchecked\")\n public <O> List<O> activeVersions() {\n return (List<O>) journal.journal\n .retrieve(BarbelQueries.allActive(journal.id), BarbelQueryOptions.sortAscendingByEffectiveFrom())\n .stream().map(d -> journal.processingState.expose(journal.context, (Bitemporal) d))\n .collect(Collectors.toList());\n }", "public int size() {\n \t\t\treturn hist.size();\n \t\t}", "public List<HistoriaLaboral> getHistoriasQueAfectanCargoRmu(Emp emp);", "List<HistoryData> loadAllHistoryData();", "public float[] getCountHistory() {\n return countMonitor.getHistory();\n }", "List<ServiceAppliedStatusHistory> findAll();", "@Override\n public List<Promocion> findAll() {\n return promocionRepository.findAll();\n }", "public List getHistoricoCapacitadasDetalle(HistoricoCapacitadasDetalle historicoCapacitadasDetalle);", "Collection<Book> getAll();", "List<CompositionSpaceToDraftAssociation> getAll() throws OXException;", "public List<DataGroupInfoActiveHistoryRecord> getActiveHistoryList()\n {\n return myActiveSetConfig.getActivityHistory();\n }", "@Override\r\n\tpublic List<Prize> findAll() {\n\t\treturn prizeDao.findAll();\r\n\t}", "public ArrayList<History> getPriceHistory() { return priceHistory; }", "public Map<String, PropertyHistoryDTO> getPropertyHistory() {\n return propertyHistory;\n }", "public static Collection<BookReview> getALL() {\n }", "List<EvaluationRecent> selectAll();", "public ArrayList<Integer> getPointsHistory() {\n return pointsHistory;\n }", "public String getHistorico() {\n return historico;\n }", "public Map<Integer, ShoppingItem> getPurchaseHistory() {\n return this.purchaseHistory;\n }", "@GetMapping(\"/family-histories\")\n @Timed\n public ResponseEntity<List<FamilyHistory>> getAllFamilyHistories(Pageable pageable) {\n log.debug(\"REST request to get a page of FamilyHistories\");\n Page<FamilyHistory> page = familyHistoryService.findAll(pageable);\n HttpHeaders headers = PaginationUtil.generatePaginationHttpHeaders(page, \"/api/family-histories\");\n return new ResponseEntity<>(page.getContent(), headers, HttpStatus.OK);\n }", "public ArrayList<BigInteger> getAll() {\n\t\treturn primes;\n\t}", "public IOperationHistory getOperationHistory() {\n\t\treturn OperationHistoryFactory.getOperationHistory();\r\n\t}", "Graph getRecentGraph();", "public List<GlucoseData> getCompleteHistory() {\n List<GlucoseData> history = new ArrayList<>();\n\n String selectQuery = \"SELECT * FROM \" + TABLE_HISTORY;\n\n SQLiteDatabase db = getReadableDatabase();\n Cursor cursor = db.rawQuery(selectQuery, null);\n\n cursor.moveToFirst();\n\n try {\n if (cursor.moveToFirst()) {\n do {\n GlucoseData glucosedata = new GlucoseData();\n glucosedata.setID(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_ID)));\n glucosedata.setDate(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_DATE)));\n glucosedata.setGlucoseLevel(cursor.getInt(cursor.getColumnIndex(KEY_HISTORY_GLUCOSELEVEL)));\n glucosedata.setComment(cursor.getString(cursor.getColumnIndex(KEY_HISTORY_COMMENT)));\n\n // Adding to list\n history.add(glucosedata);\n } while(cursor.moveToNext());\n }\n } catch (Exception e) {\n\n } finally {\n if (cursor != null && !cursor.isClosed()) {\n cursor.close();\n }\n }\n\n return history;\n }", "Page<PathHistory> findAll(Pageable pageable);", "@Override\n public List<Revue> getAll() {\n return null;\n }", "public java.util.Date getDateHist() {\n\t\treturn _pnaAlerta.getDateHist();\n\t}", "@Override\n\tpublic List<WxProcessDefinition> queryAll() {\n\t\tCriteriaBuilder cb = this.getCriteriaBuilder();\n\t\tCriteriaQuery<WxProcessDefinition> c = cb.createQuery(getEntityClass());\n\t\tRoot<WxProcessDefinition> root = c.from(getEntityClass());\n\t\tc.orderBy(cb.asc(root.get(\"index\")));\n\t\treturn super.query(c.select(root), null, null);\n\t}", "public List<HistoriaLaboral> getActualizacionesFinalizaciones(Emp emp);", "public List getResultSummaries(Query query)\n throws UnsupportedQueryException, IndexException, DocumentNotFoundException {\n List r = getResult(query);\n List result = new ArrayList();\n for (Object o : r) {\n ProbDoc pd = (ProbDoc) o;\n result.add(new XMLDoc(pd, getSummary(pd)));\n }\n return result;\n }", "public Object[] consultarDadosConsumoTipoConsumoHistorico(ConsumoHistorico consumoHistorico) throws ErroRepositorioException;", "public synchronized Map<String, Long> getHistory() {\r\n return settings.getMap(HISTORY_SETTING);\r\n }", "@JsonGetter(\"purchase_history\")\n public List<PurchaseInfo> getPurchaseHistory ( ) { \n return this.purchaseHistory;\n }", "List<JournalPage> getAllPages();", "@Override\n\tpublic List<TPaper> getPapers(String hql) {\n\t\tSession session=HibernateSessionFactory.getSession();\n\t\tTransaction transaction=session.beginTransaction();\n\t\tQuery query=session.createQuery(hql);\n\t\tList<TPaper> papers=new ArrayList<TPaper>();\n\t\tpapers=query.list();\n\t\ttransaction.commit();\n\t\tsession.close();\n\t\treturn papers;\n\t}", "public List<Promotion> getAllActivePromotions();", "@Override\n\tpublic Iterable<Profesores> listaProfesores() {\n\t\treturn profesoresRepositorio.findAll();\n\t}", "public List<TestPaper> showHistoryPaper() throws Exception {\n\t\tSession session = this.getSession();\n\t\tQuery query=session.createQuery(\"from TestPaper t where t.paperStatus='已考'\");\n\t\tList<TestPaper> testPaperList=(List<TestPaper>)query.list();\n\t\treturn testPaperList;\n\t}", "public HistoryCollection slice(HistoryCollection hc, Predicate p) {\n\t\tHistoryCollection result = options.newHistoryCollection();\n\t\tfor (History h : hc.getHistories()) {\n\t\t\tif (p.passes(h)) result.addHistory(h);\n\t\t}\n\t\treturn result;\n\t}", "List<Prize> getPrizeList();", "public List<Book> getAll() {\n return bookFacade.findAll(); \n }", "public Hashtable getSampleTotHistStats(Object o);", "@Override\n\tpublic List<Paper> findAll() {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public java.util.List<EncounterClassHistory> classHistory() {\n return getList(EncounterClassHistory.class, FhirPropertyNames.PROPERTY_CLASS_HISTORY);\n }", "public RecordSet loadAllProcessDetailHistory(Record inputRecord);", "@Override\n public List<Number> getRevisionHistory(Long id) {\n return null;\n }", "public List<HashMap<String, Object>> PromoList() {\n\t\treturn sqlSession.selectList(\"main.PromoList\");\r\n\t}", "public List<HistorialSolicitudConexion> getHistorialByIdSolicitud(SolicitudConexion solicitudConexion) {\n try {\n Query query = em.createNamedQuery(\"HistorialSolicitudConexion.findByIdSolicitudConexion\").setParameter(\"idSolicitudConexion\", solicitudConexion);\n return query.getResultList();\n } catch (Exception e) {\n UtilLogger.error(this.getClass().getName() + \".getHistorialByIdSolicitud\", e);\n return null;\n }\n }", "public Collection eleicoesHistoricoData(int tipo, Date dt_inicio, Date dt_fim){\n return this.eleicaoDB.eleicoesHistoricoData(tipo,dt_inicio,dt_fim);\n }", "public static Map<Integer, Proposal> getProposals() { return proposals; }", "public List<HistoriaLaboral> getAccionesMigradas(Emp emp);", "@Override\n\tpublic List<ShoppingCart> getAllBook() {\n\t\treturn dao.findAll();\n\t}", "public List<Book> findAll() {\n return bookRepository.findAll();\n }", "List<Book> findAll();", "@Override\n\tpublic List<Property> findAll() {\n\t\treturn pr.findAll();\n\t}", "Set<Art> getRecentArt();", "public List getAll(){\n\t\tList<Person> personList = personRepository.getAll();\n\t\treturn personList;\n\t}", "@Override\r\n public List<Professor> findAll() {\r\n return getEntityManager().createNamedQuery(\"Professor.findAll\",Professor.class).getResultList();\r\n }", "public void computeHistogram() {\n\t}", "@SuppressWarnings(\"unchecked\")\n public <T> List<T> list() {\n return (List<T>) journal\n .retrieve(BarbelQueries.all(id), queryOptions(orderBy(ascending(BarbelQueries.EFFECTIVE_FROM))))\n .stream().map(d -> processingState.expose(context, (Bitemporal) d)).collect(Collectors.toList());\n }", "public List<Professor> findAll();", "Page<HousingAssociation> findAll(Pageable pageable);", "public List<InteractionEvent> getInteractionHistory() {\n \t\tSet<InteractionEvent> events = new HashSet<InteractionEvent>();\n \t\tfor (InteractionContext taskscape : contexts.values()) {\n \t\t\tevents.addAll(taskscape.getInteractionHistory());\n \t\t}\n \t\treturn new ArrayList<InteractionEvent>(events);\n \t}", "@Override\n\tpublic List<Chapter> list() {\n\t\treturn rDao.list();\n\t}", "LazyDataModel<GuiObservation> getObservations();", "@Override\n\tpublic List<Projeto> findAll() {\n\t\treturn null;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<Profilo> getAll() {\r\n\t\t//Recupero la sessione da Hibernate\r\n\t\tSession session = sessionFactory.getCurrentSession();\r\n\t\t\t\r\n\t\t//Creo la query usando il linguaggio HQL (Hibernate Query Language)\r\n\t\tQuery query = session.createQuery(\"FROM Vocelicenza\");\r\n\t\t\t\r\n\t\t//Restituisco la lista di Profili\r\n\t\treturn query.list();\r\n\t}", "public ArrayList<MedEntry> allPrescriptions() {\n\n ArrayList<MedEntry> prescriptions = new ArrayList<MedEntry>();\n String query = \"SELECT * FROM \" + TABLE_NAME;\n SQLiteDatabase db = this.getWritableDatabase();\n Cursor cursor = db.rawQuery(query, null);\n MedEntry pres = null;\n\n if (cursor.moveToFirst()) {\n do {\n pres = new MedEntry(cursor.getString(1),cursor.getInt(2), cursor.getInt(3), cursor.getInt(4));\n prescriptions.add(pres);\n } while (cursor.moveToNext());\n }\n\n return prescriptions;\n }", "public ArrayList<Integer> getProfs(){\r\n\t\treturn this.listeProfs;\r\n\t}", "public List<Pagos> findAll(){\n return pagoMongoRepository.findAll();\n }", "public String histograph() {\r\n int collisions = 0;\r\n String hist = \"[START] Size: \" + tableSize + \"\\n\";\r\n for (int i = 0; i < tableSize; i++) {\r\n int length = table[i].length();\r\n hist += i + \": \";\r\n for (int j = 0; j < length; j++) {\r\n hist += \"*\";\r\n }\r\n hist += \"\\n\";\r\n if (length > 1) {\r\n collisions += (length - 1);\r\n }\r\n }\r\n hist += \"[END] Collisions: \" + collisions;\r\n return hist;\r\n }", "@Transactional(readOnly = true) \n public List<PtoPeriodDTO> findAll() {\n log.debug(\"Request to get all PtoPeriods\");\n List<PtoPeriodDTO> result = ptoPeriodRepository.findAll().stream()\n .map(ptoPeriodMapper::ptoPeriodToPtoPeriodDTO)\n .collect(Collectors.toCollection(LinkedList::new));\n\n if(result.isEmpty()){\n \tresult.add(initialPtoPeriod());\n }\n \n return result;\n }", "@Override\r\n\tpublic List<Book> getBooks() {\n\t\treturn bd.findAll();\r\n\t}", "@Override\n public ArrayList<PepDetailsHistory> getPepHistoryDetails(String orinNo) throws PEPPersistencyException{\n LOGGER.info(\"inside getPepHistoryDetails()\");\n List<PepDetailsHistory> pepList = new ArrayList<PepDetailsHistory>();\n Session session = this.sessionFactory.openSession();\n Query query = null;\n Transaction tx = session.beginTransaction();\n query = session.createSQLQuery(xqueryConstants.getPepHistoryDetails());\n query.setParameter(\"orinNo\", orinNo); \n query.setFetchSize(100);\n List<Object[]> rows = query.list();\n SimpleDateFormat formatter1 = new SimpleDateFormat(\"MM/dd/yyyy HH:mm\");\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ssZZZ\");\n Date date = null;\n Date date1 = null;\n String createdOn = \"\";\n String updatedDate = \"\";\n \n \n try{\n \tProperties prop =PropertyLoader.getPropertyLoader(ImageConstants.LOAD_IMAGE_PROPERTY_FILE);\n for(Object[] row: rows){\n LOGGER.info(\"iterating pep history\");\n PepDetailsHistory pepHist = new PepDetailsHistory();\n pepHist.setPepOrinNumber(row[0]!=null?row[0].toString():null);\n \n \n \n if(null != row[6]){\n \tif(\"01\".equalsIgnoreCase(row[6].toString())){\n \t\tpepHist.setHistoryStatus(\"Was Initiated\");\n \t}\n \tif(\"02\".equalsIgnoreCase(row[6].toString())){\n \t\tpepHist.setHistoryStatus(\"Was Completed\");\n \t}\n\t\t\t\tif(\"03\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Approved\");\n\t\t\t\t}\n\t\t\t\tif(\"04\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Failed RRD Check\");\n\t\t\t\t}\n\t\t\t\tif(\"05\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Deactivated\");\n\t\t\t\t}\n\t\t\t\tif(\"06\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Closed\");\n\t\t\t\t}\n\t\t\t\tif(\"07\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Rejected By DCA\");\n\t\t\t\t}\n\t\t\t\tif(\"08\".equalsIgnoreCase(row[6].toString())){\n\t\t\t\t\tpepHist.setHistoryStatus(\"Was Ready For Review\");\n\t\t\t\t}\n \t\n }else{\n \tpepHist.setHistoryStatus(\"\");\n }\n \n \n pepHist.setPepUpdatedBy(row[5]!=null?row[5].toString():null);\n \n if(row[2]!=null){\n \t\n \tdate = formatter.parse(row[2].toString());\n \tcreatedOn = formatter1.format(date);\n \tpepHist.setCreatedOn(createdOn!=null?createdOn.toString():null);\n \t\n \t\n }\n if(row[4]!=null){\n \tdate1 = formatter.parse(row[4].toString());\n \tupdatedDate = formatter1.format(date1);\n \tpepHist.setUpdateDate(updatedDate!=null?updatedDate.toString():null);\n }\n \n pepHist.setCreatedBy(row[1]!=null?row[1].toString():null);\n \n if(null != row[3]){\n \tString imageStateCode=row[3] == null? \"\" : row[3].toString();\n String imageStateDesc = prop.getProperty(\"Image\"+imageStateCode);\n \n String imageState = imageStateDesc == null ? \"\": imageStateDesc.toString();\n pepHist.setUpdatedStatus(imageState);\n }else{\n \tpepHist.setUpdatedStatus(\"\");\n }\n \n \n pepList.add(pepHist);\n \n }\n }catch(Exception e){\n \t\n }\n tx.commit();\n session.close();\n \n return (ArrayList<PepDetailsHistory>) pepList; \n }", "public HistoryGraph() {\n revisions = new HashSet<Revision>();\n orderedRevisions = new ArrayList<Revision>();\n }", "List<Book> getAllBooks();", "Collection<V> getAllEntries();", "public List<ProveedorPromocionHotelEntity> getPromociones(){\n List<ProveedorPromocionHotelEntity>promociones = proveedorPromocionHotelPersistence.findAll();\n return promociones;\n }", "public List<HistoriaLaboral> getContratosReporte(Date inicio, Date ffinal, String nombreDependencia,\r\n\t\t\tString nombreDependenciaDesignacion, String nombreCargo, String claseEmpleado, String nombreDesignacion,\r\n\t\t\tEmp empleado , boolean isFullReport);", "public Collection<Experiment> getExperiments();", "@Override\n\tpublic List<Proyecto> listarProyectos() {\n\t\treturn proyectoRepo.findAll();\n\t}", "@Override\n\tpublic List<Profession> getAll() {\n\t\treturn dao.findAll();\n\t}", "public List<Book> allBooks() {\n return bookRepository.findAll();\n }", "@Override\n\tpublic List<Policy> showAllPolicies() {\n\t\t// TODO Auto-generated method stub\n\t\tList<Policy> policy=policyDao.findAll();\n\t\treturn policy;\n\t}", "public abstract DtPropuesta[] getPropuestasPopulares();", "private List<E> snapshot() {\n\t\tList<E> list = Lists.newArrayListWithExpectedSize(size());\n\t\tfor (Multiset.Entry<E> entry : entrySet()) {\n\t\t\tE element = entry.getElement();\n\t\t\tfor (int i = entry.getCount(); i > 0; i--) {\n\t\t\t\tlist.add(element);\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}", "@Override\r\n\tpublic List<Applier> retrieveAllAppliers() {\n\t\treturn em.createQuery(\"Select a from Applier a\").getResultList();\r\n\t}", "public ArrayList<int[]> getRoundHistory()\n {\n return this.roundHistory;\n }", "List<RequestHistory> getQueries() throws RemoteException;", "public Book[] getFavoriteBooks()\n {\n String stmnt = String.format(\n \"SELECT * FROM book ORDER BY rating DESC LIMIT %d \",\n PAGE_LIMIT);\n ResultSet rs = executeQuery(stmnt);\n ArrayList<Book> arr = resultSetPacker(rs, Book.class);\n\n return arr.toArray(new Book[arr.size()]);\n\n }", "List<Penerbit> listPen() {\n return dao.getAll(Penerbit.class);\n }" ]
[ "0.6248334", "0.61469173", "0.6120217", "0.5875048", "0.57791156", "0.5763498", "0.570539", "0.5675734", "0.5632675", "0.5577904", "0.5571554", "0.5548628", "0.5488204", "0.5468422", "0.54186386", "0.53657717", "0.53412336", "0.5314043", "0.52966833", "0.52774096", "0.526574", "0.5246649", "0.5227863", "0.52277714", "0.5200805", "0.5182558", "0.51760024", "0.5152594", "0.5118511", "0.5113323", "0.5112473", "0.50941163", "0.50898963", "0.508001", "0.50668144", "0.50586516", "0.5041129", "0.50374657", "0.50345105", "0.50282615", "0.502642", "0.50258285", "0.5022774", "0.50219136", "0.5020208", "0.5018046", "0.5016208", "0.50159454", "0.50033885", "0.50033385", "0.499825", "0.4995464", "0.4991892", "0.49866107", "0.49844873", "0.49841225", "0.4981638", "0.4981187", "0.4980875", "0.4973542", "0.4971329", "0.4971216", "0.49634072", "0.4961321", "0.49507406", "0.49447894", "0.49418527", "0.49417868", "0.49412444", "0.4938444", "0.49345997", "0.4925719", "0.4923768", "0.49202144", "0.49188307", "0.49166724", "0.49165982", "0.49153543", "0.49142423", "0.4909498", "0.49077028", "0.49076468", "0.4906055", "0.4903654", "0.48982435", "0.4891153", "0.48858342", "0.4885619", "0.4882608", "0.48820394", "0.48815757", "0.48737976", "0.48736322", "0.48732695", "0.48708424", "0.48701873", "0.48687997", "0.4864224", "0.48602745", "0.48586115" ]
0.67840004
0
Save a history for proposal, update proposal status.
@Override @Transactional public History addHistory(History history, Long proposalId, Long userId) { log.debug("Request to save History : {}", history); User executive = userRepository.getOne(userId); Proposal proposal = proposalRepository.getOne(proposalId); Instant now = Instant.now(); history.setExecutive(executive); history.setProposal(proposal); history.setCreatedDate(now); proposal.setStatus(history.getStatus()); proposal.setUpdatedDate(now); // save history History result = historyService.save(history); // update proposal Proposal prop = proposalRepository.save(proposal); proposalSearchRepository.save(prop); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void saveEarningHistory(EarningHistory earningHistory){\n }", "protected void saveHistoryData() throws RemoteHomeManagerException {\n int expected = (isCurrentState()) ? 1 : 0;\n if (isEnabledScheduler()) {\n Boolean action = getLightSchedule().getCurrentSchedule();\n expected = action?1:0;\n }\n HistoryData history = new HistoryData();\n history.setDeviceId(getDeviceId());\n history.setDataName(\"ONOFF\");\n history.setDataValue(((isCurrentState())?1:0)+\"|\"+expected);\n history.setDataTimestamp();\n m.getPersistance().addHistoryData(history);\n RemoteHomeManager.log.debug(\"Saved history data: \"+history.toString());\n }", "public void saveHistory() {\r\n\t\tJFileChooser jfc = new JFileChooser();\r\n\t\tjfc.setFileSelectionMode(JFileChooser.FILES_ONLY);\r\n\t\tjfc.setDialogTitle(\"Save \" + curveName + \" history\");\r\n\t\tjfc.setSelectedFile(new File(\".txt\"));\r\n\t\tint returnVal = jfc.showSaveDialog(getRootPane());\r\n\t\tif(returnVal == JFileChooser.APPROVE_OPTION) {\r\n\t\t\tif (!cancelBecauseFileExist(jfc.getSelectedFile())) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\thistory.save(jfc.getSelectedFile());\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tJOptionPane.showMessageDialog(getRootPane(), \"Error while saving the history\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Transactional\n public History save(History history) {\n return historyRepository.save(history);\n }", "public void saveAllHistory() {\n\n\t\tfor (Map.Entry<Integer, History> entry : mapOfHistorys.entrySet()) {\n\t\t\tHistory history = entry.getValue();\n\t\t\thistory.save();\n\t\t\t\n\t\t}\n\t}", "public void saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "public void storeResidueHistory() {\n\t\ttheResidueHistory.store(theConfiguration);\n\t}", "public void saveHistoryToStorage() {\r\n\t\tfor(Document i: strategy.getEntireHistory()) {\r\n\t\t\tif(!i.getContent().isEmpty()) {\r\n\t\t\t\ti.save(\"\");\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void save(ElementHistory elementHistory) {\n\t\telementHistoryRepository.save(elementHistory);\n\t}", "public void saveState() { }", "public void save() {\n DataBuffer.saveDataLocally();\n\n //TODO save to db must be done properly\n DataBuffer.save(session);\n\n //TODO recording saved confirmation\n }", "public void save() {\r\n try {\r\n FileOutputStream fos = new FileOutputStream(REPO_STATE_FILE_NAME);\r\n fos.write(CodecUtils.toJson(this).getBytes());\r\n fos.close();\r\n } catch (Exception e) {\r\n Logging.logError(e);\r\n }\r\n }", "public interface Save {\n String writeHistory();\n}", "public void saveState() {\n mementos = new ArrayList<>(mementos.subList(0, statePointer + 1));\n Notebook notebookToAdd = new Notebook(this.notebook);\n notebookToAdd.setCurrentClassroom(this.notebook.getCurrentClassroom());\n Memento mementoToAdd = new Memento(notebookToAdd);\n mementos.add(mementoToAdd);\n statePointer++;\n }", "@Override\n\tpublic void saveOrUpdateElementHistory(ElementHistory elementHistory) {\n\t\telementHistoryRepository.save(elementHistory);\n\t}", "@Override\n\tpublic void writeToParcel(Parcel dest, int flags) {\n\t\tdest.writeInt(history.size());\n\n\t\t// Save each chat message\n\t\tfor (ChatMessage cm : history) {\n\t\t\tdest.writeInt(cm.getIdx());\n\t\t\tdest.writeString(cm.getUser().toString());\n\t\t\tdest.writeString(cm.getMessage().toString());\n\t\t\tdest.writeLong(cm.getTimestamp());\n\t\t}\n\t}", "public void saveJbdSendRecordHist(JbdSendRecordHist jbdSendRecordHist);", "void saveActivityHistForAddEntity(Record inputRecord);", "public void saveState(IMemento memento) {\n\t\t\r\n\t}", "public void save() {\n savePrefs();\n }", "public void saveHistory(OperatorSelectionHistory history,String filename){\n try(ObjectOutputStream os = new ObjectOutputStream(new FileOutputStream(filename));){\n os.writeObject(history);\n os.close();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void saveGoal(Goal goal);", "public void save() {\n\t\tpreferences().flush();\n\t}", "private void saveState() {\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n // Store our count..\n editor.putInt(\"count\", this._tally);\n\n // Save changes\n editor.commit();\n }", "public void storeFileHistory() {\n\t\ttheFileHistory.store(theConfiguration);\n\t}", "private void savePreferences() {\n SharedPrefStatic.mJobTextStr = mEditTextJobText.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobSkillStr = mEditTextSkill.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobLocationStr = mEditTextLocation.getText().toString().replace(\" \", \"\");\n SharedPrefStatic.mJobAgeStr = mEditTextAge.getText().toString().replace(\" \", \"\");\n\n SharedPreferences sharedPref = getSharedPreferences(AppConstants.PREF_FILENAME, 0);\n SharedPreferences.Editor editer = sharedPref.edit();\n editer.putString(AppConstants.PREF_KEY_TEXT, SharedPrefStatic.mJobTextStr);\n editer.putString(AppConstants.PREF_KEY_SKILL, SharedPrefStatic.mJobSkillStr);\n editer.putString(AppConstants.PREF_KEY_LOCATION, SharedPrefStatic.mJobLocationStr);\n editer.putString(AppConstants.PREF_KEY_AGE, SharedPrefStatic.mJobAgeStr);\n\n // The commit runs faster.\n editer.apply();\n\n // Run this every time we're building a query.\n SharedPrefStatic.buildUriQuery();\n SharedPrefStatic.mEditIntentSaved = true;\n }", "public static void commit(Commit proposal)\n {\n logger.debug(\"committing {}\", proposal);\n RowMutation rm = proposal.makeMutation();\n Table.open(rm.getTable()).apply(rm, true);\n\n synchronized (lockFor(proposal.key))\n {\n PaxosState state = SystemTable.loadPaxosState(proposal.key, proposal.update.metadata());\n SystemTable.savePaxosCommit(proposal, !state.inProgressCommit.isAfter(proposal));\n }\n }", "private void savePreferences() {\n SharedPreferences sp = getSharedPreferences(MY_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sp.edit();\n\n editor.putInt(\"entreeIndex\", spEntree.getSelectedItemPosition());\n editor.putInt(\"drinkIndex\", spDrink.getSelectedItemPosition());\n editor.putInt(\"dessertIndex\", spDessert.getSelectedItemPosition());\n\n editor.apply();\n }", "public void save(){\n checkpoint = chapter;\n }", "private void save(){\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(getApplicationContext());\n SharedPreferences.Editor editor = preferences.edit();\n Gson gson = new Gson();\n String json = gson.toJson(downloadedBooks);\n editor.putString( LISTS_DOWNLOADED, json);\n json = gson.toJson(progress);\n editor.putString( LISTS_PROGRESS, json);\n editor.apply();\n }", "@Override\n\tpublic void insertHistory(Map<String, Object> map) {\n\t\tapprovalDao.insertHistory(map);\n\t}", "@Override\n\tpublic JobPreferences save(JobPreferences educaiton) {\n\t\treturn jobPreferenceDao.save(educaiton);\n\t}", "public void save() {\n JobNotificationDao dao = new JobNotificationDao();\n projectBean.getWorkload().getJobConfiguration().getNotifications().clear();\n for (JobNotification notification : notifications) {\n notification.copyTransient();\n notification = dao.saveOrUpdate(notification);\n projectBean.getWorkload().getJobConfiguration().getNotifications().add(notification);\n }\n }", "private static void addToHistory() {\n\t\tFileInputStream fis = null;\n\t\tFileOutputStream fos = null;\n\t\tFileChannel resultChannel = null;\n\t\tFileChannel historyChannel = null;\n\t\ttry {\n\t\t\tfis = new FileInputStream(new File(\"result.txt\"));\n\t\t\tfos = new FileOutputStream(new File(\"history.txt\"), true);\n\t\t\t\n\t\t\tfos.write(\"\\n\\n\".getBytes(\"utf-8\"));\n\t\t\tfos.flush();\n\t\t\t\n\t\t\tresultChannel = fis.getChannel();\n\t\t\thistoryChannel = fos.getChannel();\n\n\t\t\tresultChannel.transferTo(0, resultChannel.size(), historyChannel);\n\t\t} catch (FileNotFoundException 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} finally {\n\t\t\ttry {\n\t\t\t\tif (fis != null) {\n\t\t\t\t\tfis.close();\n\t\t\t\t}\n\t\t\t\tif (fos != null) {\n\t\t\t\t\tfos.close();\n\t\t\t\t}\n\t\t\t\tif(resultChannel != null) {\n\t\t\t\t\tresultChannel.close();\n\t\t\t\t}\n\t\t\t\tif(historyChannel != null) {\n\t\t\t\t\thistoryChannel.close();\n\t\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void save(Bill bill);", "public void saveState() {\n\t\tsuper.saveState();\n\t}", "public void commitChanges()\n {\n }", "public boolean saveHistory(OperatorSelectionHistory history,String filename,String separator) {\n try(FileWriter fw = new FileWriter(new File(filename))){\n ArrayList<Variation> orderedHistory = history.getOrderedHistory();\n ArrayList<Integer> orderedTime = history.getOrderedSelectionTime();\n\n for(int i = 0; i < orderedHistory.size(); i++) {\n fw.append(Integer.toString(orderedTime.get(i)));\n fw.append(separator);\n String[] heuristicName = orderedHistory.get(i).toString().split(\"operator.\");\n String[] splitName = heuristicName[heuristicName.length - 1].split(\"@\");\n fw.append(splitName[0]);\n if(!orderedHistory.isEmpty())\n fw.append(\"\\n\");\n }\n fw.flush();\n } catch (IOException ex) {\n Logger.getLogger(IOSelectionHistory.class.getName()).log(Level.SEVERE, null, ex);\n return false;\n }\n return true;\n }", "void commit( boolean onSave );", "@Override\n public void save(Promocion prm) {\n promocionRepository.save(prm);\n }", "public void saveState() {\n table.saveState(store);\n }", "void save();", "void save();", "void save();", "public void commit() {\n\t\tcommitted = true;\n\t\tbackUp();\n\t\t//back up the current board info at the meanwhile\n\t}", "public void saveState() \n\t{\n\t\tsuper.saveState();\n\t}", "private void currentStateSaveToSharedPref() {\n sharedPreferences = getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(\"nameOfActiveChallenge\", nameOfCurrentChallenge);\n editor.putInt(\"key1OfActiveChallenge\", key1OfActiveChallenge);\n editor.putString(\"dateOfLastEdit\", dateOfLastEdit);\n editor.putFloat(\"goal\", goal);\n editor.putFloat(\"carry\", carry);\n editor.putInt(\"challengeDaysRunning\", challengeDaysRunning);\n editor.commit();\n }", "public void saveEditedUserHistoryEntry() {\n if (selectedUserHistoryEntry.getOvertime() == null || selectedUserHistoryEntry.getVacation() == null) {\n FacesContext.getCurrentInstance().validationFailed();\n } else {\n\n if (isEditing()) {\n UserHistoryService.updateUserHistoryEntry(selectedUserHistoryEntry);\n this.userHistoryEntrys.remove(selectedUserHistoryEntry);\n this.userHistoryEntrys.add(selectedUserHistoryEntry);\n } else {\n\n selectedUserHistoryEntry.setTimestamp(LocalDateTime.of(selectedYear, selectedMonth.plus(1), 1, 0, 0).minusMinutes(10));\n //System.out.println(selectedUserHistoryEntry);\n\n if (this.userHistoryEntrys.contains(this.selectedUserHistoryEntry)) {\n FacesContext.getCurrentInstance().validationFailed();\n FacesContext.getCurrentInstance().addMessage(\"uhEntryDialogForm\", new FacesMessage(FacesMessage.SEVERITY_WARN, \"Speichern fehlgeschlagen!\", \"Es ist bereits ein Eintrag für diesen Benutzer in diesem Monat verfügbar!\"));\n } else {\n //selectedUserHistoryEntry.setTimestamp(LocalDateTime.of(selectedYear, selectedMonth.plus(1), 1, 0, 0).minusMinutes(10));\n UserHistoryService.insertUserHistoryEntry(selectedUserHistoryEntry);\n this.userHistoryEntrys.add(selectedUserHistoryEntry);\n }\n }\n }\n }", "public void insertHistory(RecordDTO recordDTO);", "public void save();", "public void save();", "public void save();", "public void save();", "@Override\n\tpublic void savePengdingWaybill(List<WaybillPendingEntity> pendingList) {\n\t\t\n\t}", "public abstract void commitSprintBacklog();", "void save(JournalPage page);", "private void savePreferences(){\n SharedPreferences prefs = getPreferences(MODE_PRIVATE);\n SharedPreferences.Editor editor = prefs.edit();\n\n editor.putInt(\"p1Count\", pOneCounter);\n editor.putInt(\"p2Count\", pTwoCounter);\n editor.putInt(\"pAICount\", pAICounter);\n editor.putInt(\"tieCount\", tieCounter);\n\n editor.commit();\n }", "public void commitChanges(){\r\n try{\r\n //Record the state of unfinished set in unfinished.dat\r\n unfinishedFileOutputStream = new FileOutputStream(UNFINISHED_FILE_PATH);\r\n unfinishedSetOutputStream = new ObjectOutputStream(unfinishedFileOutputStream);\r\n unfinishedSetOutputStream.writeObject(unfinished);\r\n unfinishedSetOutputStream.close();\r\n unfinishedFileOutputStream.close();\r\n\r\n //Record the state of finished list in finished.dat\r\n finishedFileOutputStream = new FileOutputStream(FINISHED_FILE_PATH);\r\n finishedListOutputStream = new ObjectOutputStream(finishedFileOutputStream);\r\n finishedListOutputStream.writeObject(finished);\r\n finishedListOutputStream.close();\r\n finishedFileOutputStream.close();\r\n\r\n //Record the state of activities list in activities.dat\r\n activitiesFileOutputStream = new FileOutputStream(ACTIVITIES_FILE_PATH);\r\n activitiesListOutputStream = new ObjectOutputStream(activitiesFileOutputStream);\r\n activitiesListOutputStream.writeObject(activities);\r\n activitiesListOutputStream.close();\r\n activitiesFileOutputStream.close();\r\n }\r\n catch(Exception e){\r\n System.out.println(\"Stress in commiting changes: \" + e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "public void savePreferences() {\n\t\tfinal IEclipsePreferences prefs = getPreferences();\n\t\ttry {\n\t\t\tprefs.flush();\n\t\t} catch (BackingStoreException e) {\n\t\t\tgetILog().log(createStatus(IStatus.ERROR, e));\n\t\t}\n\t}", "private void pushSavedReport() throws JSONException {\n final Cursor cursor = getSavedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows = 0;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final int reportId = cursor.getInt(\n cursor.getColumnIndex(ReportEntry.COLUMN_REPORT_ID));\n ExpenseReport expenseReport = new ExpenseReport();\n expenseReport.setName(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_NAME)));\n expenseReport.setApproverEmail(cursor.getString(\n cursor.getColumnIndex(ReportEntry.COLUMN_APPROVER_EMAIL)\n ));\n\n expenseReport.setComment(cursor.getString(cursor.getColumnIndex(\n ReportEntry.COLUMN_COMMENT)));\n\n ERTRestApi.apiSaveReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n Gson gson = new GsonBuilder().setDateFormat\n (\"yyyy-MM-dd'T'HH:mm:ss\").create();\n ExpenseReport expenseReportResponse =\n gson.fromJson(\n response.toString(),\n ExpenseReport.class\n );\n\n if(!getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.EDITED_REPORT.toString())) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED);\n }\n\n\n updateExpenseLineItemReportId(reportBaseId,\n expenseReportResponse.getId()\n );\n setReportValuesFromServer(reportBaseId, expenseReportResponse);\n\n pushSavedExpenseLineItem();\n\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi.ERTRestApiError error) {\n int updatedRows = updateReportSyncStatus(reportBaseId, SyncStatus.SAVED_REPORT);\n Log.d(LOG_TAG, \"updated rows save report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n }\n }\n );\n\n if(getReportSyncStatus(getContext(), reportBaseId).equalsIgnoreCase(SyncStatus.SAVED_REPORT.toString())) {\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n }\n\n Log.d(LOG_TAG, \"updated rows save report:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "LoginHistory save(LoginHistory entity);", "private void Writehistory (List list, savekq savehistory){\n if (kiemtrasopt(list) < 10) {\n list.add(0, savehistory);\n } else {\n list.remove(9);\n list.add(0, savehistory);\n }\n }", "void writeToFile() throws IOException{\n\t\tString fileName = f.getTitle() + \".txt\";\n\t\tfileWrite = new BufferedWriter( new FileWriter(fileName));\n\t\tfileWrite.write(history);\n\t\tSystem.out.println(fileName + \" File Writing Successful!!\");\n\t\tSystem.out.println(\"Data in file :\\n\" + history);\n\t\tfileWrite.flush();\n\t\tFile file = new File(fileName);\n\t\tjava.awt.Desktop.getDesktop().open(file);\n\n\t}", "protected void toggleHistory(final Context ctx,\r\n final SubscriberNumberMgmtHistory history)\r\n throws AgentException\r\n {\r\n\r\n try\r\n {\r\n SubscriberNumberMgmtHistory cloneHistory = (SubscriberNumberMgmtHistory) history.clone();\r\n\r\n if (cloneHistory.getLatest() != latest_)\r\n {\r\n cloneHistory.setLatest(latest_);\r\n cloneHistory.setEndTimestamp(endTimestamp_);\r\n }\r\n setHistory((SubscriberNumberMgmtHistory)home_.store(ctx, cloneHistory));\r\n // there should only be one entry with latest set to true\r\n setAddNewHistoryRequired(true);\r\n count_++;\r\n throw new AbortVisitException();\r\n }\r\n catch(CloneNotSupportedException cloneEx)\r\n {\r\n throw new AgentException(cloneEx);\r\n }\r\n catch (HomeException hEx)\r\n {\r\n throw new AgentException(hEx);\r\n }\r\n }", "void addRecord(HistoryRecord record) throws IOException;", "private void saveGoal() {\n // Read from input fields\n // Use trim to eliminate leading or trailing white space\n String descriptionString = mDescriptionEditText.getText().toString().trim();\n\n\n // Check if this is supposed to be a new product\n // and check if all the fields in the editor are blank\n if (mCurrentGoalUri == null && (TextUtils.isEmpty(descriptionString) )) {\n Toast.makeText(this, \"Please add info to all the fields\",\n Toast.LENGTH_SHORT).show();\n // Since no fields were modified, we can return early without creating a new goal.\n // No need to create ContentValues and no need to do any ContentProvider operations.\n return;\n }\n\n // Create a ContentValues object where column names are the keys,\n // and goal attributes from the editor are the values.\n ContentValues values = new ContentValues();\n values.put(GoalandTaskMatcherContract.GoalEntry.COLUMN_GOAL_DESCRIPTION, descriptionString);\n\n // Determine if this is a new or existing goal by checking if mCurrentGoalUri is null or not\n if (mCurrentGoalUri == null) {\n // This is a NEW goal, so insert a new goal into the provider,\n // returning the content URI for the new goal.\n Uri newUri = getContentResolver().insert(GoalandTaskMatcherContract.GoalEntry.CONTENT_URI, values);\n\n // Show a toast message depending on whether or not the insertion was successful.\n if (newUri == null) {\n // If the new content URI is null, then there was an error with insertion.\n Toast.makeText(this, getString(R.string.editor_insert_goal_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the insertion was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_insert_goal_successful),\n Toast.LENGTH_SHORT).show();\n }\n } else {\n // Otherwise this is an EXISTING goal, so update the goal with content URI: mCurrentGoalUri\n // and pass in the new ContentValues. Pass in null for the selection and selection args\n // because mCurrentGoalUri will already identify the correct row in the database that\n // we want to modify.\n int rowsAffected = getContentResolver().update(mCurrentGoalUri, values, null, null);\n\n // Show a toast message depending on whether or not the update was successful.\n if (rowsAffected == 0) {\n // If no rows were affected, then there was an error with the update.\n Toast.makeText(this, getString(R.string.editor_update_goal_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the update was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_update_goal_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n }", "public void saveDetails() {\n\t\tTimelineUpdater timelineUpdater = TimelineUpdater.getCurrentInstance(\":mainForm:timeline\");\n\t\tmodel.update(event, timelineUpdater);\n\n\t\tFacesMessage msg =\n\t\t new FacesMessage(FacesMessage.SEVERITY_INFO, \"The booking details \" + getRoom() + \" have been saved\", null);\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\n\t}", "public void saveAndUpdateJobStatus(AbstractPersistedAnalysisJob job) {\r\n job.setLastUpdateDate(new Date());\r\n getWorkspaceService().savePersistedAnalysisJob(job);\r\n updateJobStatus(job);\r\n }", "private void saveData() {\n readViews();\n final BookEntry bookEntry = new BookEntry(mNameString, mQuantityString, mPriceString, mSupplier, mPhoneString);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n // Insert the book only if mBookId matches DEFAULT_BOOK_ID\n // Otherwise update it\n // call finish in any case\n if (mBookId == DEFAULT_BOOK_ID) {\n mDb.bookDao().insertBook(bookEntry);\n } else {\n //update book\n bookEntry.setId(mBookId);\n mDb.bookDao().updateBook(bookEntry);\n }\n finish();\n }\n });\n }", "private void save() {\n var boolGrid = editor.getBoolGrid();\n //Generate a track grid from the bool frid\n var grid = Track.createFromBoolGrid(boolGrid);\n var valid = Track.isValidTrack(grid);\n if (!valid) {\n //fire an error event\n MessageBus.fire(new ErrorEvent(\"Invalid track\", \"\", 2));\n } else {\n //Save the track and pop back\n var generator = new TrackFromGridGenerator(grid);\n var track = generator.generateTrack();\n (new TrackStorageManager()).saveTrack(track);\n menu.navigationPop();\n menu.showError(new ErrorEvent(\"Saved track!\", \"\", 2, Colour.GREEN));\n }\n }", "void save() {\r\n if (actionCompleted) {\r\n forget();\r\n } else {\r\n AccountSettings.stateStored = new Bundle();\r\n save(AccountSettings.stateStored);\r\n }\r\n }", "public void commit();", "public boolean save();", "public void save() {\t\n\t\n\t\n\t}", "public void saveCurrentRecord() {\n ThreadUtil.executeOnNewThread(new Runnable() {\n @Override\n public void run() {\n SharedPreferences recordPreferences = mContext.getSharedPreferences(RECORD_PREFERENCES, Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = recordPreferences.edit();\n if (mCurrentRecord == null) {\n editor.putString(CURRENT_RECORD_KEY, null);\n } else {\n String recordJson = mGson.toJson(mCurrentRecord);\n editor.putString(CURRENT_RECORD_KEY, recordJson);\n }\n editor.apply();\n\n if (mCurrentRecord != null) {\n saveRecord(mCurrentRecord);\n }\n }\n });\n }", "public void save() {\n }", "private void copyAndSave()\n {\n // create new branch\n if (NEW_BRANCH.equals(selectedBranch)) {\n createAndSetNewBranch();\n }\n List<String> updatePages = getAllPageIdsForUpdate();\n\n // copy current filestats entry to source target branch\n copyAndSaveFileStats(branch, selectedBranch, updatePages);\n\n // add new page information to filestats of new branch\n updateFileStats(FileState.valueOf(newPageState), selectedAssignee, selectedBranch, updatePages);\n\n // save page(s) in new branch\n wikiContext.runInTenantContext(selectedBranch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n for (GWikiElement pageToUpdate : getAllPagesForUpdate()) {\n wikiContext.getWikiWeb().saveElement(wikiContext, pageToUpdate, true);\n }\n return null;\n }\n });\n\n // remove page(s) in old branch\n wikiContext.runInTenantContext(branch, getWikiSelector(), new CallableX<Void, RuntimeException>()\n {\n @Override\n public Void call() throws RuntimeException\n {\n for (GWikiElement pageToUpdate : getAllPagesForUpdate()) {\n wikiContext.getWikiWeb().removeWikiPage(wikiContext, pageToUpdate);\n }\n return null;\n }\n });\n }", "private void savePrefsData() {\n SharedPreferences pref = getApplicationContext().getSharedPreferences(\"myPrefs\", MODE_PRIVATE);\n SharedPreferences.Editor editor = pref.edit();\n editor.putBoolean(\"isIntroOpnend\", true);\n editor.commit();\n }", "@Override\n public void onSaveInstanceState(Bundle savedInstanceState) {\n savedInstanceState.putInt(KEY_SAVED_BOOK, this.saved_book_index);\n\n // Always call the superclass so it can save the view hierarchy state\n super.onSaveInstanceState(savedInstanceState);\n }", "public void saveState() {\n savedPen.setValues(pm.pen);\n }", "public FinArFundsInActionAppliedHistory persistFinArFundsInActionAppliedHistory(FinArFundsInActionAppliedHistory finArFundsInActionAppliedHistory);", "@Override\n public void updateHistory() {\n List<Integer> allItemIds = determineItemIds();\n if (allItemIds == null || allItemIds.size() == 0) {\n Log.i(TAG, \"No Item Ids exists to create history data sets.\");\n return;\n }\n\n long processTs = System.currentTimeMillis();\n long startLastMonth;\n long endLastMonth;\n // determine the last month depending from the process timestamp. In the first iteration\n // the process timestamp is the current timestamp. With the second iteration,\n startLastMonth = DateHelper.startOfLastMonth(processTs);\n endLastMonth = DateHelper.endOfLastMonth(processTs);\n // iterate through all known IDs. This is required because we want to create a history entry\n // for each item\n for (int itemId : allItemIds) {\n updatePriceHistory(itemId, startLastMonth, endLastMonth);\n }\n }", "public void save(Storable storable) throws LogFile.LockException, IOException {\n // If the file has not been set, don't save.\n if (dataFile != null) {\n synchronized (dataFile) {\n // let the storable overwrite its values\n if (storable != null) {\n storable.store(properties);\n }\n if (autoStore) {\n storeProperties();\n }\n if (debug == 1) {\n System.err.println(\"save:JoinState.Join.Version=\"\n + properties.getProperty(\"JoinState.Join.Version\"));\n }\n }\n }\n }", "public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}", "private void save() {\n Saver.saveTeam(team);\n }", "void update(Map<Player, List<Move>> history);", "public void save () {\n preference.putBoolean(\"sound effect\", hasSoundOn);\n preference.putBoolean(\"background music\", hasMusicOn);\n preference.putFloat(\"sound volume\", soundVolume);\n preference.putFloat(\"music volume\", musicVolume);\n preference.flush(); //this is called to write the changed data into the file\n }", "private void pushEditedReport() throws JSONException {\n Cursor cursor = getEditedReportCursor();\n\n if(cursor.getCount() != 0) {\n cursor.moveToFirst();\n\n\n\n int updatedRows;\n\n do {\n final Long reportBaseId = cursor.getLong(\n cursor.getColumnIndex(ReportEntry._ID));\n final ExpenseReport expenseReport = Utility\n .createExpenseReportFromCursor(cursor);\n\n ERTRestApi.apiEditReport(\n expenseReport,\n new ERTRestApi.ERTRestApiListener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n\n pushSavedExpenseLineItem();\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId,\n SyncStatus.SYNCED\n );\n Log.d(LOG_TAG, \"SyncStatus after test \" +\n getReportSyncStatus(getContext(),\n reportBaseId));\n Log.d(LOG_TAG, \"Report ID: \" + expenseReport.getId());\n\n }\n },\n new ERTRestApi.ERTRestApiErrorListener() {\n @Override\n public void onErrorResponse(ERTRestApi\n .ERTRestApiError error) {\n\n int updatedRows = updateReportSyncStatus\n (reportBaseId, SyncStatus.EDITED_REPORT);\n Log.d(LOG_TAG, \"updated rows edit report error:\" + updatedRows);\n Log.e(LOG_TAG, error.getMessage());\n\n }\n });\n\n updatedRows = updateReportSyncStatus(reportBaseId,\n SyncStatus.SYNC_IN_PROGRESS\n );\n\n Log.d(LOG_TAG, \"updated rows edit report complete:\" + updatedRows);\n\n } while (cursor.moveToNext());\n }\n cursor.close();\n }", "public boolean bookSave(Book book) {\n\t\t\r\n\t\treturn true;\r\n\t}", "private void saveState() throws IOException {\n speakerManager.saveState();\n roomManager.saveState();\n organizerManager.saveState();\n eventManager.saveState();\n chatManager.saveState();\n attendeeManager.saveState();\n\n }", "@Test\n public void testNewJobHistoryProcessing()\n {\n Job job = jobFakery.makeFakeJob();\n JobHistory newJobHistory = jobHistoryTx.newJobHistoryProcessing(job, START_TIME);\n\n verify(mockJobHistoryDAO).persist(newJobHistory);\n assertEquals(newJobHistory.getStatus(), JobStatus.PROCESSING);\n assertNull(newJobHistory.getEndTime());\n }", "private void saveNote() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"E,MMM d, hh:mm a\");\n String lastSavedDate = sdf.format(new Date());\n String id;\n boolean isNew = true;\n if (oldNote != null && oldNote.getId() != null && !oldNote.getId().isEmpty()) {\n id = oldNote.getId();\n isNew = false;\n } else\n id = UUID.randomUUID().toString();\n Note note = new Note(id, etTitle.getText().toString().trim(), lastSavedDate, etNote.getText().toString().trim());\n note.setNew(isNew);\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"NEW_NOTE\", note);\n setResult(Activity.RESULT_OK, returnIntent);\n finish();\n }", "@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}", "public void saveLogEntry(LogEntry log){\n\t\tlog.creationTime = new Date();\n\t\tgetSession().save(log);\n\t}", "public abstract HistoricalEntity persistHistoricalWrapper();", "public void save(){\r\n\t\tmanager.save(this);\r\n\t}", "public void commit() {\n\t\tcommitted = true;\n\t}", "@Override\n\tpublic void persist() {\n\t\tif (this.isNew()) {\n\t\t\tQuxLocalServiceUtil.addQux(this);\n\t\t}\n\t\telse {\n\t\t\tQuxLocalServiceUtil.updateQux(this);\n\t\t}\n\t}", "private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}", "public void saveManyHistory() {\n Map<String, String> status = new HashMap<>();\n String userID = \"15\";\n List<User> allUsers = dumpDao.getAllUsers();\n Random random = new Random();\n for (int x = 0; x < 1000; x++) {\n System.out.println(\"Loop Counter : \" + x);\n userID = allUsers.get(random.nextInt(allUsers.size() - 1)).getId().toString();\n int numberOfHistory = random.nextInt(20);\n for (int y = 0; y < numberOfHistory + 1; y++) {\n System.out.println(\"\\nHistory Save\\n\");\n History history = new History();\n history.setUserId(userID);//will be set from service.\n history.setDate(DateUtil.getDate().toString());\n history.setLocation(DumpData.getLocation());\n history.setPatientDescription(DumpData.getPatientDescription());\n history.setRefferedBy(DumpData.getRefferedBy());\n history.setNote(DumpData.getNote());\n history.setUserId(userID);\n dao_history_i.save(history);\n System.out.println(history.getId());\n }//for\n }\n// bug : data are not being save\n// for (int x = 0; x < 100; x++) {\n// System.out.println(\"\\nHistory Save\\n\");\n// History history = new History();\n// history.setUserId(userID);//will be set from service.\n// history.setDate(DateUtil.getDate().toString());\n// history.setLocation(DumpData.getLocation());\n// history.setPatientDescription(DumpData.getPatientDescription());\n// history.setRefferedBy(DumpData.getRefferedBy());\n// history.setNote(DumpData.getNote());\n// history.setUserId(userID);\n// entityManager.persist(history);\n// System.out.println(history.getId());\n// }\n\n// bug : data are not being save\n// History history = new History();\n// history.setUserId(userID);//will be set from service.\n// history.setDate(DateUtil.getDate().toString());\n// history.setLocation(DumpData.getLocation());\n// history.setPatientDescription(DumpData.getPatientDescription());\n// history.setRefferedBy(DumpData.getRefferedBy());\n// history.setNote(DumpData.getNote());\n// history.setUserId(userID);\n// entityManager.persist(history);\n// System.out.println(history.getId());\n //working, insertion of history, just for one.\n// for (int x = 0; x < 10; x++) {\n// System.out.println(\"\\nHistory Save\\n\");\n// History history = new History();\n// history.setUserId(userID);//will be set from service.\n// history.setDate(DateUtil.getDate().toString());\n// history.setLocation(DumpData.getLocation());\n// history.setPatientDescription(DumpData.getPatientDescription());\n// history.setRefferedBy(DumpData.getRefferedBy());\n// history.setNote(DumpData.getNote());\n// history.setUserId(userID);\n// dao_history_i.save(history);\n// System.out.println(history.getId());\n// }//for\n }" ]
[ "0.6073165", "0.5983713", "0.58492905", "0.57939595", "0.575489", "0.57074136", "0.5692693", "0.56893146", "0.56676775", "0.5646871", "0.56284523", "0.5599861", "0.5589487", "0.5582052", "0.5551877", "0.5515916", "0.5509256", "0.5503824", "0.5488218", "0.54710346", "0.54710054", "0.54546696", "0.54535204", "0.5392857", "0.5354264", "0.5347384", "0.53113467", "0.53092563", "0.5303846", "0.52839166", "0.52405894", "0.52361256", "0.5221792", "0.5207695", "0.52008414", "0.5198059", "0.5180542", "0.5176894", "0.51701075", "0.51599205", "0.51583874", "0.5149396", "0.5149396", "0.5149396", "0.5148207", "0.5140256", "0.51380354", "0.51226544", "0.5088287", "0.50802815", "0.50802815", "0.50802815", "0.50802815", "0.50787264", "0.5057618", "0.50302523", "0.50251836", "0.5023159", "0.5016482", "0.50134563", "0.5008793", "0.5005846", "0.49983644", "0.4994558", "0.49884468", "0.49854442", "0.49797726", "0.49687198", "0.49673596", "0.49663502", "0.49616164", "0.49526978", "0.49499318", "0.49392492", "0.4933743", "0.49277726", "0.4926263", "0.4922258", "0.49161905", "0.49114755", "0.49095473", "0.48972723", "0.48904288", "0.4889302", "0.48773107", "0.48770884", "0.48764417", "0.48753962", "0.48743725", "0.48712322", "0.4866976", "0.48645183", "0.4850757", "0.48498338", "0.48497283", "0.4838089", "0.48347312", "0.48283637", "0.48250127", "0.48245636" ]
0.64063716
0
/Create a function named is anagram following your current language's style guide. It should take two strings and return a boolean value depending on whether its an anagram or not.
public static void main(String[] args) { System.out.println(isAnagram("dog", "cat")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean anagram(char [] a, char [] b);", "public static boolean isAnagramFuncApproach(String str1, String str2) {\n List<String> list1 = str1.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n List<String> list2 = str2.chars()\n .sorted()\n .mapToObj(c -> Character.valueOf((char) c))\n .map(object -> Objects.toString(object, null))\n .collect(Collectors.toList());\n\n return list1.equals(list2);\n }", "public static boolean isAnagram (String word1, String word2){\n boolean check = false;\n String one = \"\";\n String two = \"\";\n int counter =0;\n int counter1 =0;\n for(int i=0; i<word1.length(); i++){\n counter=0;\n for(int k=0; k<word2.length(); k++){\n if(word1.charAt(i) == word2.charAt(k) ){\n counter++;\n }\n }\n if(counter ==1){\n counter1++;\n }\n }\n if (counter1 == word1.length() && counter1 == word2.length() ){\n check = true;\n }\n return check;\n }", "@Test\n public void isAnagram() {\n\n Assert.assertEquals(true,Computation.isAnagram(\"read\",\"dear\"));\n Assert.assertEquals(false,Computation.isAnagram(\"read\",\"deard\"));\n Assert.assertEquals(false,Computation.isAnagram(\"read\",\"reaaad\"));\n Assert.assertEquals(false,Computation.isAnagram(\"readd\",\"reaad\"));\n }", "static boolean areAnagram(char[] str1, char[] str2)\n\t{\n\t\t// Get lengths of both strings\n\t\tint n1 = str1.length;\n\t\tint n2 = str2.length;\n\n\t\t// If length of both strings is not same,\n\t\t// then they cannot be anagram\n\t\tif (n1 != n2)\n\t\t\treturn false;\n\n\t\t// Sort both strings\n\t\tArrays.sort(str1);\n\t\tArrays.sort(str2);\n\n\t\t// Compare sorted strings\n\t\tfor (int i = 0; i < n1; i++)\n\t\t\tif (str1[i] != str2[i])\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static boolean isAnagram(char[]s1, char[]s2)\r\n{\n\t if(s1.length!=s2.length)\r\n\t\t return false; \r\n\t \r\n\t //sort both strings using Arrays sort method\r\n\t Arrays.sort(s1); \r\n\t Arrays.sort(s2);\r\n\t \r\n\t for(int i=0; i<s1.length;i++)\r\n\t if(s1[i]!=s2[i])\r\n\t\t return false; \r\n\t\r\n\treturn true; \r\n\t \r\n}", "public static boolean isAnagram(String first, String second) {\n first = first.toLowerCase();\n second = second.toLowerCase();\n // Two strings can't be anagrams if they're not the same length\n if (first.length() != second.length()){\n return false;\n }\n HashMap<Character, Integer> firstWord = new HashMap<Character, Integer>();\n HashMap<Character, Integer> secondWord = new HashMap<Character, Integer>();\n\n // Count character occurences in 1st word\n for(int i = 0; i < first.length(); i++){\n char key = first.charAt(i);\n firstWord.put(key, firstWord.getOrDefault(key, 0)+1);\n }\n // Count character occurrences in 2nd word\n for(int i = 0; i < second.length(); i++){\n char key = second.charAt(i);\n secondWord.put(key, secondWord.getOrDefault(key, 0)+1);\n }\n return firstWord.equals(secondWord);\n }", "public static boolean anagram() {\n\t\tboolean isAnagram = false;\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tSystem.out.println(\"enter first string\");\n\t\tString string1 = scanner.nextLine();\n\t\tSystem.out.println(\"enter second string\");\n\t\tString string2 = scanner.nextLine();\n\t\tString space1 = string1.replaceAll(\" \",\"\");\n\t\tString space2 = string2.replaceAll(\" \",\"\");\n\t\tString lower1 = string1.toLowerCase();\n\t\tString lower2 = string2.toLowerCase();\n\t\tchar[] array1 = space1.toCharArray();\n\t\tchar[] array2 = space2.toCharArray();\n\t\t\n\t\t\n\t\tif (array1.length == array2.length) \n\t\t{\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array1[i] > array1[j]) {\n\t\t\t\t\t\tchar temp = array1[i];\n\t\t\t\t\t\tarray1[i] = array1[j];\n\t\t\t\t\t\tarray1[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i+1; j < array1.length; j++) {\n\t\t\t\t\tif (array2[i] > array2[j]) {\n\t\t\t\t\t\tchar temp = array2[i];\n\t\t\t\t\t\tarray2[i] = array2[j];\n\t\t\t\t\t\tarray2[j] = temp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\t\tfor (int j = i; j <=i; j++) {\n\t\t\t\t\tif (array1[i] == array2[j]) {\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (count == array1.length) {\n\t\t\t\tisAnagram=true;\n\n\t\t\t} \n\t\t\telse {\n\t\t\t\tisAnagram = false;\n\n\t\t\t}\n\t\t} \n\t\telse \n\t\t{\n\t\t\tisAnagram = false;\n\t\t}\n\t\treturn isAnagram;\n\t}", "private static boolean anagramWord(String first, String second) {\n\t\tif(first.length()!=second.length())return false;\n\t\tint matches = 0;\n\t\tchar[] a = first.toLowerCase().toCharArray();\n\t\tchar[] b = second.toLowerCase().toCharArray();\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tfor(int j=0; j<b.length; j++){\n\t\t\t\tif(a[i]==b[j])matches++;\n\t\t\t}\n\t\t}\n\t\tif( matches==a.length && matches==b.length )return true;\n\t\treturn false;\n\t}", "private static boolean isAnagram(String a, String b) {\n\t\tint[] charsA = new int[26];\n\t\tint[] charsB = new int[26];\n\t\t\n\t\tfor(int i = 0 ; i < a.length(); i++)\n\t\t\tcharsA[a.charAt(i) - 'a']++;\n\t\tfor(int i = 0 ; i < b.length(); i++)\n\t\t\tcharsB[b.charAt(i) - 'a']++;\n\t\t\n\t\tfor(int i = 0 ; i < 26 ; i++) \n\t\t\tif(charsA[i] != charsB[i])\n\t\t\t\treturn false;\n\t\treturn true;\n\t}", "boolean isAnagram(String str1, String str2){\n\t\tString s1 = str1.replaceAll(\"\\\\s\",\"\");\n\t\tString s2 = str2.replaceAll(\"\\\\s\",\"\");\n\t\t\n\t\t//\n\t\tboolean check = true;\n\t\tif(s1.length()!=s2.length())\n\t\t{\n\t\t\tcheck = false;\n\t\t}\n\t\telse{\n\t\t\ts1=sortArray(s1);\n\t\t\ts2=sortArray(s2);\n\t\t\tcheck = s1.equalsIgnoreCase(s2);\n\t\t}\n\treturn check;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tString str1 =\"army\";\n\t\tString str2 = \"mary\";\n\t\t\n\t\tSystem.out.println(isAnagram2(str1,str2));\n\n\t}", "public static boolean isAnagram(String str1, String str2) {\n\t\tif(str1.length() != str2.length())\n\t\t\treturn false;\n\t\t/* count chars for each string */ \n\t\tint[] charSet1 = countChar(str1);\n\t\tint[] charSet2 = countChar(str2);\n\t\t/* compare two char set to see if anagram */\n\t\tfor(int i = 0; i < charSet1.length; i++) {\n\t\t\tif(charSet1[i] != charSet2[i])\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean isAnagram(String a, String b) {\n if (a.length() != b.length()) {\n return false;\n }\n\n HashMap<Character, Integer> aTable = new HashMap<>();\n\n //Store the counts of all the characters of the first string in a hashmap\n for (int i = 0; i < a.length(); i++) {\n Character currChar = a.charAt(i);\n if (aTable.containsKey(currChar)) {\n aTable.put(currChar, aTable.get(currChar) + 1);\n } else {\n aTable.put(currChar, 1);\n }\n }\n\n //Now iterate through the second string and decrement the count of the characters\n for (int j = 0; j < b.length(); j++) {\n Character currChar = b.charAt(j);\n if (!aTable.containsKey(currChar)) {\n return false;\n } else if (aTable.get(currChar) == 0) {\n return false;\n } else if (aTable.get(currChar) > 0) {\n aTable.put(currChar, aTable.get(currChar) - 1);\n }\n\n }\n\n return true;\n\n\n }", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n String s1,s2;\n s1=sc.nextLine();\n s2=sc.nextLine();\n s1=s1.toLowerCase();\n s2=s2.toLowerCase();\n if(s1.length()!=s2.length()) \n System.out.println(\"Not an anagram\");\n char[] c1=s1.toCharArray();\n char[] c2=s2.toCharArray();\n Arrays.sort(c1);\n Arrays.sort(c2);\n \tif(Arrays.equals(c1, c2))\n System.out.println(\"anagram\");\n \telse\n System.out.println(\"Not an anagram\");\n }", "public static boolean checkForAnagram(final String a, final String b) {\n boolean isAnagram = false;\n\n if(a == null || b == null){\n throw new IllegalArgumentException(\"Invalid input\");\n }\n if(a.length() != b.length()){\n return isAnagram;\n }\n char [] lowerCaseA = a.trim().toLowerCase().toCharArray();\n String upperCaseB= b.trim().toLowerCase();\n boolean check =true;\n for(int i =0; i<lowerCaseA.length ; i++){\n Character c = lowerCaseA[i];\n int n = c;\n if(c >=95 && c <=122){\n if(! upperCaseB.contains(c.toString())){\n check=false;\n break;\n }\n }\n else {\n continue;\n }\n }\n if(check){\n isAnagram =true;\n }\n\n return isAnagram;\n }", "public static boolean isAnagram(String strOne, String strTwo) throws IllegalArgumentException {\n if (strOne == null || strTwo == null)\n throw new IllegalArgumentException(\"One or both strings is null\");\n\n /**\n * Replace spaces and lower case the strings, note that we could\n * do this check while building up the map, but this is somewhat simpler\n * to understand/read, and it also allows us to not have to check to index\n * out of bounds issues when iterating through characters\n */\n String strOneCopy = strOne.replaceAll(\"\\\\s\", \"\").toLowerCase();\n String strTwoCopy = strTwo.replaceAll(\"\\\\s\", \"\").toLowerCase();\n\n if (strOne.isEmpty() || strTwo.isEmpty())\n return false;\n\n int strOneLen = strOneCopy.length();\n int strTwoLen = strTwoCopy.length();\n\n // If the strings aren't the same length they cannot be anagrams\n if (strOneLen != strTwoLen)\n return false;\n\n HashMap<Character, Integer> charCount = new HashMap<Character, Integer>();\n\n\n /**\n * Build a map of the counts of each character.\n *\n * The count will be positive if a character appears in first string one or more\n * times more than it appears in the second string\n *\n * The count will be negative if a character appears in second string one or more\n * times more than it appears in the first string\n */\n for (int i = 0; i < strOneLen; i++) {\n\n /**\n * Get the character from string one, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n char charValKey = strOneCopy.charAt(i);\n\n int charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Increment the count\n charCount.put(charValKey, ++charKeyCount);\n\n\n /**\n * Get the character from string two, we're not worried about out of bound index issues here\n * as we've already checked that the strings are the same length so there should\n * be characters at every index here for both strings\n */\n charValKey = strTwoCopy.charAt(i);\n charKeyCount = 0;\n\n // Check if we've already seen this character and get the existing count if so\n if (charCount.containsKey(charValKey))\n charKeyCount = charCount.get(charValKey);\n\n // Decrement the count\n charCount.put(charValKey, --charKeyCount);\n\n }\n\n\n for (int value : charCount.values()) {\n if (value != 0)\n return false;\n }\n\n return true;\n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString s1=sc.nextLine();\r\nString s2=sc.nextLine();\r\ns1=s1.replaceAll(\"\\\\s\",\"\");\r\ns2=s2.replaceAll(\"\\\\s\",\"\");\r\ns1=s1.toLowerCase();\r\ns2=s2.toLowerCase();\r\nchar str1[]=s1.toCharArray();\r\nchar str2[]=s2.toCharArray();\r\nArrays.sort(str1);\r\nArrays.sort(str2);\r\nboolean k=true;\r\nif(s1.length()!=s2.length())\r\n\tk=false;\r\nelse\r\n{\r\nk=Arrays.equals(str1,str2);\t\r\n}\r\nif(k==false)\r\n\tSystem.out.print(\"not annagram\");\r\nelse\r\n\tSystem.out.print(\"annagram\");\r\n\t}", "public static boolean isAnagramImperApproach(char[] str1, char[] str2) {\n int n1 = str1.length;\n int n2 = str2.length;\n\n if (n1 != n2) return false;\n\n Arrays.sort(str1);\n Arrays.sort(str2);\n\n for (int i = 0; i < n1; i++) {\n if (str1[i] != str2[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean checkAnagram(char[] str1, char[] str2)\n {\n// Finding lengths of strings\n int len1 = str1.length;\n int len2 = str2.length;\n// If lengths do not match then they cannot be anagrams\n if (len1 != len2)\n return false;\n// Sort both strings\n Arrays.sort(str1);\n Arrays.sort(str2);\n// Comparing the strings which are sorted earlier\n for (int i = 0; i < len1; i++)\n if (str1[i] != str2[i])\n return false;\n return true;\n }", "private boolean isAnagrams(String s1, String s2) {\n char[] ss1 = s1.toCharArray();\n \n char[] ss2 = s2.toCharArray();\n \n Arrays.sort(ss1);\n Arrays.sort(ss2);\n return ss1.equals(ss2);\n\n }", "public static void main(String[] args) {\n String firstString = \"abcd\";\n String secondString = \"dcba\";\n\n // two string may be anagram of they are same in length, character wise.\n if (firstString.length() != secondString.length()) {\n System.out.println(\"Both string are not anagram\");\n }else {\n char[] firstArray = firstString.toCharArray();\n char[] secondArray = secondString.toCharArray();\n\n anagramDetection(firstArray, secondArray);\n }\n }", "private static boolean isAnagram(String str, String anagram) {\n\n\t\tchar[] string = str.toCharArray();\n\t\tchar[] anag = anagram.toCharArray();\n\n\t\tArrays.sort(string);\n\t\tArrays.sort(anag);\n\n\t\treturn Arrays.equals(string, anag);\n\n\t}", "public static void main(String[] args) {\n\t\tString str=\"army\";\n\t\tString str1=\"mary\";\n\t\tchar arr[]=str.toLowerCase().toCharArray();\n\t\tchar arr1[]=str1.toLowerCase().toCharArray();\n\t\tArrays.sort(arr);\n\t\tArrays.sort(arr1);\n\t\tif(Arrays.equals(arr, arr1))\n\t\t{\n\t\t\tSystem.out.println(\"given strings are anagrams\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"given strings are not anagram\");\n\t\t}\n\t\t\n\n\t}", "public static boolean areAnagrams(String firstWord, String secondWord) {\n\t\tif (firstWord.length() != secondWord.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tStringBuilder firstSequence = new StringBuilder(firstWord.toLowerCase());\n\t\tStringBuilder secondSequence = new StringBuilder(secondWord.toLowerCase());\n\t\t\n\t\tSort.quickSort(firstSequence);\n\t\tSort.quickSort(secondSequence);\n\t\n\t\tfor (int i = 0; i < firstSequence.length(); i++) {\n\t\t\tif (firstSequence.charAt(i) != secondSequence.charAt(i)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public boolean isAnagrams(String inputA, String inputB) {\n String one = inputA.toLowerCase();\n String two = inputB.toLowerCase();\n return sameLength(one, two) && sameLetters(one, two) && sameLetterCounts(one, two);\n }", "public void checkAnagram(String s, String s1) {\r\n\t\tint count=0;\r\n\t\tif(s.length()==s1.length()){\r\n\t\t\tfor(int i=0;i<s.length();i++){\r\n\t\t\t\tfor(int j=0;j<s1.length();j++){\r\n\t\t\t\t\tif(s.charAt(i)==s1.charAt(j)){\r\n\t\t\t\t\t\tcount++;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(count==s.length()){\r\n\t\t\tSystem.out.println(\"anagram\");\r\n\t\t}else\r\n\t\t\tSystem.out.println(\"not anagram\");\r\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String input1 = scanner.next();\n String input2 = scanner.next();\n\n scanner.close();\n boolean ret = isAnagram(input1, input2);\n System.out.println((ret) ? \"Anagrams\" : \"NotAnagrams\");\n }", "public static boolean isAnagram2(String word, String anagram) {\r\n\t\tchar[] charFromWord = word.toCharArray();\r\n\t\tchar[] charFromAnagram = anagram.toCharArray();\r\n\t\tArrays.sort(charFromWord);\r\n\t\tArrays.sort(charFromAnagram);\r\n\t\t\r\n\t\treturn Arrays.equals(charFromWord, charFromAnagram);\r\n\t}", "public static boolean isAnagram(String s, String t) {\n int a = 0;\n for(int i=0;i<s.length();i++){\n a = a^s.charAt(i);\n }\n for(int i=0;i<t.length();i++){\n a = a^t.charAt(i);\n }\n return a == 0;\n\n }", "public boolean checkAnagram(String s1, String s2) {\n if (s1.length() != s2.length()) {\n return false;\n }\n char[] stringArr1 = s1.toCharArray();\n char[] stringArr2 = s2.toCharArray();\n Arrays.sort(stringArr1);\n Arrays.sort(stringArr2);\n\n for (int i = 0; i < stringArr1.length; i++) {\n if (stringArr1[i] != stringArr1[i]) {\n return false;\n }\n }\n return true;\n }", "public boolean isAnagram1(String s, String t) {\n if (s.length() != t.length()) return false;\n Function<String, Integer> countCode = str -> {\n int code = 0;\n for (int i = 0; i < str.length(); i++)\n code ^= str.charAt(i);\n return code;\n };\n return countCode.apply(s).equals(countCode.apply(t));\n }", "public boolean isAnagram(String s, String t) {\n HashMap<Character, Integer> map = new HashMap<>();\n\n // Return false if the strings are of different length\n if (s.length() != t.length()) {\n return false;\n }\n\n /**\n * Loop through the string and update the count in the hashmap in the following\n * way Increment the counter for the character from string1 Decrement the\n * counter for the character from string2\n */\n\n for (int i = 0; i < s.length(); i++) {\n map.put(s.charAt(i), map.getOrDefault(s.charAt(i), 0) + 1);\n map.put(t.charAt(i), map.getOrDefault(t.charAt(i), 0) - 1);\n }\n\n /**\n * Check if all characters in the hashmap as 0, if yes, return true, \n * else return false, as it isn't a valid anagram\n */\n\n for (Map.Entry mapElement : map.entrySet()) {\n\n if ((int) mapElement.getValue() != 0) {\n return false;\n }\n\n }\n\n return true;\n }", "static void isAnagram(String s1, String s2) {\n\n String copyOfs1 = s1.replaceAll(\"s\", \"\");\n\n String copyOfs2 = s2.replaceAll(\"s\", \"\");\n\n //Initially setting status as true\n\n boolean status = true;\n\n if (copyOfs1.length() != copyOfs2.length()) {\n //Setting status as false if copyOfs1 and copyOfs2 doesn't have same length\n\n status = false;\n } else {\n //Changing the case of characters of both copyOfs1 and copyOfs2 and converting them to char array\n\n char[] s1Array = copyOfs1.toLowerCase().toCharArray();\n\n char[] s2Array = copyOfs2.toLowerCase().toCharArray();\n\n //Sorting both s1Array and s2Array\n\n Arrays.sort(s1Array);\n\n Arrays.sort(s2Array);\n\n //Checking whether s1Array and s2Array are equal\n\n status = Arrays.equals(s1Array, s2Array);\n }\n\n //Output\n\n if (status) {\n System.out.println(s1 + \" and \" + s2 + \" are anagrams\");\n } else {\n System.out.println(s1 + \" and \" + s2 + \" are not anagrams\");\n }\n }", "public static boolean isAnagram1(String s1, String s2) {\r\n int[] arr = new int[256]; //Number of Ascii Values\r\n\r\n for (int i = 0; i < s1.length(); i++) {\r\n arr[s1.charAt(i)]++;\r\n arr[s2.charAt(i)]--;\r\n }\r\n\r\n for (int i = 0; i < arr.length; i++) {\r\n if (arr[i] != 0) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }", "public static boolean isAnagram2(String s1, String s2) {\r\n List<Character> list = new ArrayList<>();\r\n\r\n for (char c : s1.toCharArray()) {\r\n list.add(c);\r\n }\r\n\r\n for (char c : s2.toCharArray()) {\r\n list.remove(new Character(c));\r\n }\r\n\r\n return (list.isEmpty());\r\n }", "public static boolean areAnagramsSlow(String a, String b) {\n\t\tif (a.length() != b.length()) {\n\t\t\treturn false;\n\t\t}\n\n\t\tboolean areAnagrams = false;\n\t\t\n\t\tStringBuilder secondWord = new StringBuilder(b.toLowerCase());\n\n\t\tfor(int i = 0; i < a.length(); i++) {\n\t\t\tchar firstChar = a.charAt(i);\n\n\t\t\tfor(int j = 0; j < secondWord.length(); j++) {\n\t\t\t\tchar secondChar = secondWord.charAt(j);\n\t\t\t\tif (firstChar == secondChar) {\n\t\t\t\t\tsecondWord.deleteCharAt(j);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (secondWord.length() == 0) {\n\t\t\tareAnagrams = true;\n\t\t}\n\t\t\n\t\treturn areAnagrams;\n\t}", "private static void anagramDetection(char[] firstArray, char[] secondArray) {\n int count = 0;\n for (int i = 0; i < firstArray.length; i++) {\n for (int j = 0; j < firstArray.length; j++) {\n if (firstArray[i] == secondArray[j]) {\n count += 1;\n }\n }\n }\n if (count == firstArray.length){\n System.out.println(\"Both strings are anagram\");\n }else {\n System.out.println(\"Both strings are not anagram\");\n }\n\n }", "public static boolean areAnagramStringsUsingOneFrequencyArray(String word1, String word2) {\n if (word1.length() != word2.length()) {\n return false;\n }\n int[] f = new int[256];\n\n for (int i = 0; i < word1.length(); i++) {\n f[word1.charAt(i)]++;\n f[word2.charAt(i)]--;\n }\n\n for (int i = 0; i < f.length; i++) {\n if (f[i] != 0) {\n return false;\n }\n\n }\n return true;\n\n }", "public boolean isAnagram(String s, String t) {\n if(s.length() != t.length()) return false;\n char[] chs = s.toCharArray();\n char[] cht = t.toCharArray();\n Arrays.sort(chs);\n Arrays.sort(cht);\n String ss = String.valueOf(chs);\n String tt = String.valueOf(cht);\n return ss.equals(tt);\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) {\n return false;\n }\n char[] sChars = s.toCharArray();\n Arrays.sort(sChars);\n char[] tChars = t.toCharArray();\n Arrays.sort(tChars);\n\n return new String(sChars).equals(new String(tChars));\n }", "static boolean areAnagram(String sa, String sb) {\n\n // **** populate character arrays ****\n char[] aa = sa.toCharArray();\n char[] ab = sb.toCharArray();\n\n // **** sort character arrays ****\n Arrays.sort(aa);\n Arrays.sort(ab);\n\n // **** traverse arrays checking for mismatches ****\n for (int i = 0; i < aa.length; i++) {\n if (aa[i] != ab[i]) {\n return false;\n }\n }\n\n // **** strings are anagrams ****\n return true;\n }", "public static void main(String[] args) {\r\n\t\tString s1 = \"ababab\";\r\n\t\tString s2 = \"bababa\";\r\n\t\tif(s1.length()!= s2.length()){\r\n\t\t\tSystem.out.println(\"not a anagram\");\r\n\t\t}else{\r\n\t\t\tchar[] c1 = s1.toCharArray();\r\n\t\t\tchar[] c2 = s2.toCharArray();\r\n\t\t//\tusingHashMap(c1, c2);\r\n\t\t\tusingArrays(c1,c2);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\tScanner scanner=new Scanner(System.in);\n\tSystem.out.println(\"enter the first string\");\n\tString firstString=scanner.nextLine();\n\tSystem.out.println(\"enter the second string\");\n\tString secondString=scanner.nextLine();\n\t/*\n\t * function call\n\t * to check the anagram or not\n\t * \n\t */\n\tUtility.isAnagram(firstString, secondString);\n\tscanner.close();\n}", "public static boolean IsAnagram(String word, String anagram) {\r\n\t\t//We ensure that the length are the same.\r\n\t\tif(word.length() != anagram.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tchar[] chars = word.toCharArray();\r\n\t\t\r\n\t\tfor(char c : chars) {\r\n\t\t\tint index = anagram.indexOf(c);\r\n\t\t\tif(index != -1) {\r\n\t\t\t\tanagram = anagram.substring(0, index) + anagram.substring(index +1, anagram.length());\r\n\t\t\t}else {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn anagram.isEmpty();\r\n\t}", "public boolean checkForAnagrams(String inp) {\n return (new StringBuffer(inp).reverse().toString().equals(inp));\n }", "public boolean isAnagram(String s, String t) {\n if (s.length() != t.length()) return false; // O(1)\n int[] charFrequency = new int[26]; // O(1)\n\n for (char c : s.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n charFrequency[index]++; // O(1)\n }\n\n for (char c : t.toCharArray()) { // O(N)\n int index = c - 'a'; // O(1)\n if (charFrequency[index] == 0) return false; // O(1)\n charFrequency[index]--; // O(1)\n }\n\n for (int i : charFrequency) { // O(26) -> O(1)\n if (i > 0) return false; // O(1)\n }\n\n return true; // O(1)\n }", "@Override\n\tpublic boolean checkAnagram(String firstString, String secondString) {\n\t\tchar[] characters = firstString.toCharArray();\n\t\tStringBuilder sbSecond = new StringBuilder(secondString);\n\n\t\tfor(char ch : characters){\n\t\t\tint index = sbSecond.indexOf(\"\" + ch);\n\t\t\tif(index != -1){\n\t\t\t\tsbSecond.deleteCharAt(index);\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "int main() \n{\n string s1,s2;\n cin>>s1>>s2;\n int freq[128]={0},i;\n for(i=0;i<s1.length();i++)\n freq[s1[i]]++;\n for(i=0;i<s2.length();i++)\n freq[s2[i]]--;\n for(i=0;i<128;i++)\n {\n if(freq[i]!=0)\n {\n cout<<\"Not anagrams\";\n return 0;\n }\n }\n cout<<\"Anagram\";\n}", "@Test\n public void testNormalAnagrams() {\n AnagramFinderImpl anagramFinderObj = new AnagramFinderImpl();\n boolean inputNormalAnagrams = anagramFinderObj.areAnagrams(\"aba\", \"aba\");\n assertTrue(\"true\", inputNormalAnagrams);\n }", "public static int isAnagram(String st,String st1) {\n\t\tint k=0;\n\t\tString str=remove(st);\n\t\tString str1=remove(st1);\n\t\t/*if(str.length()!=str1.length()){\n\t\t\tk=1;\n\t\t\treturn k;\n\t\t}*/\n\t\tchar[] c=toLowercase(str);\n\t\tchar[] c1=toLowercase(str1);\n\t\tchar[] stt=sort(c);\n\t\tchar[] stt1=sort(c1);\n\t\t/*for(int i=0;i<stt.length;i++)\n\t\t\tSystem.out.print(stt[i]);\n\t\tSystem.out.println();\n\t\tfor(int i=0;i<stt1.length;i++)\n\t\t\tSystem.out.print(stt1[i]);\n\t\tSystem.out.println();*/\n\t\tfor(int i=0;i<stt1.length;i++){\n\t\tif(stt[i]==stt1[i])\n\t\t\tk=1;\n\t\t}\n\t\treturn k;\n\t}", "public static boolean isAnagram(String str, String str1) {\n\t\tif (str.length() != str1.length()) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tchar[] strChArr = str.toCharArray();\n\t\tchar[] str1ChArr = str1.toCharArray();\n\t\t\n//\t\tSystem.out.println(Arrays.toString(strChArr));\n//\t\tSystem.out.println(Arrays.toString(str1ChArr));\n\t\t\n\t\tArrays.sort(strChArr);\n\t\tArrays.sort(str1ChArr);\n\t\t\n//\t\tSystem.out.println(Arrays.toString(strChArr));\n//\t\tSystem.out.println(Arrays.toString(str1ChArr));\n\t\t\n\n//\t\tfor (int i = 0; i < strChArr.length; i++) {\n//\t\t\tif(strChArr[i] != str1ChArr[i]) {\n//\t\t\t\treturn false;\n//\t\t\t}\n//\t\t}\n\t\t\n//\t\treturn true;\n\t\t\n\t\treturn Arrays.equals(strChArr, str1ChArr);\n\t}", "public static void main(String[] args) {\n String str1 = \"listen\";\n String str2 = \"silent\";\n for (int i = 0; i < str1.length(); i++) {\n str2 = str2.replaceFirst(\"\" + str1.charAt(i), \"\");\n }\n System.out.println(str2.isEmpty() ? \"Anagram\" : \"NOT Anagram\");\n\n/*\n //Approach Two:\n String str1 = \"listen\";\n String str2 = \"silent\";\n String str11 = \"\";\n String str22 = \"\";\n char[] ch1 = str1.toCharArray();\n char[] ch2 = str2.toCharArray();\n Arrays.sort(ch1);\n Arrays.sort(ch2);\n for (char each:ch1) {\n str11+=each;\n }\n for (char each:ch2) {\n str22+=each;\n }\n System.out.println(str11.equalsTo(str22)? \"Anagram\" : \"NOT Anagram\");\n\n */\n/*\n\n //Approach Three:\n public static boolean Same(String str12, String str2) {\n str1 = new TreeSet<String>(Arrays.asList( str1.split(\"\") ) ).toString( );\n str2 = new TreeSet<String>(Arrays.asList( str2.split(\"\") ) ).toString( );\n return str1.equals(str2); }\n*/\n }", "@Test\n\tvoid testValidAnagram() {\n\t\t// Test for ValidAnagram\n\t\tValidAnagram tester = new ValidAnagram();\n\t\tassertTrue(tester.isAnagram(\"anagram\", \"nagaram\"));\n\t\tassertFalse(tester.isAnagram(\"rat\", \"car\"));\n\t\tassertTrue(tester.isAnagram(\"\", \"\"));\n\t\t\n\t\t// Test for ValidAnagram2\n\t\tValidAnagram2 tester2 = new ValidAnagram2();\n\t\tassertTrue(tester2.isAnagram(\"anagram\", \"nagaram\"));\n\t\tassertFalse(tester2.isAnagram(\"rat\", \"car\"));\n\t\tassertTrue(tester2.isAnagram(\"\", \"\"));\n\t}", "public static boolean findStringAnagram(char[] str1Arr, char[] str2Arr) {\r\n\t\tif (str1Arr.length != str2Arr.length) {\r\n\t\t\treturn false;\r\n\t\t} else {\r\n\t\t\tArrays.sort(str1Arr);\r\n\t\t\tArrays.sort(str2Arr);\r\n\t\t\tfor (int i = 0; i < str1Arr.length; i++) {\r\n\t\t\t\tif (str1Arr[i] != str2Arr[i]) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t}", "public boolean containsAnagram(String s, String t) {\n\t\tint[] tmap = new int[26];\n\t\tfor (char c : t.toCharArray())\n\t\t\ttmap[c - 'A']++;\n\t\tint p1 = 0, p2 = 0;\n\t\tint minimumLen = Integer.MAX_VALUE;\n\t\tint expandedLength = t.length();\n\t\twhile (p1 < s.length() && p1 < s.length()) {\n\t\t\tif (tmap[s.charAt(p2++) - 'A']-- > 0) expandedLength--;\n\t\t\twhile (expandedLength == 0) {\n\t\t\t\tif (p2 - p1 < minimumLen) {\n\t\t\t\t\tminimumLen = p2 - p1;\n\t\t\t\t\tif (minimumLen == t.length()) return true;\n\t\t\t\t}\n\t\t\t\tif (p1 >= s.length()) break;\n\t\t\t\t// Exists in t.\n\t\t\t\tif (tmap[s.charAt(p1++) - 'A']++ == 0) expandedLength++;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(IsAnagrams(\"ACT\", \"TAC\"));\n\n\t}", "public boolean isAnagram(String firstWord, String secondWord) {\n HashMap<Character, Integer> charactersNoOccurrences = new HashMap<Character, Integer>();\n\n //Put that stuff in the hash map.\n for (char character: firstWord.toCharArray()) {\n int currentNoOccurrences = charactersNoOccurrences.containsKey(character) ?\n charactersNoOccurrences.get(character) : 0;\n\n charactersNoOccurrences.put(character, currentNoOccurrences + 1);\n }\n\n //Go through the hash map now to and retrieve occurrences, we want to finish with an empty map.\n for (char character: secondWord.toCharArray()) {\n if (!charactersNoOccurrences.containsKey(character)) {\n return false;\n }\n\n int remainingNoOccurrences = charactersNoOccurrences.get(character) - 1;\n\n if (remainingNoOccurrences < 1) {\n charactersNoOccurrences.remove(character);\n } else {\n charactersNoOccurrences.put(character, remainingNoOccurrences);\n }\n }\n\n return charactersNoOccurrences.isEmpty();\n }", "static int makeAnagram(String a, String b) {\n int[] frequencyA = countFrequency(a);\n int[] frequencyB = countFrequency(b);\n\n int count = 0;\n\n for (int i = 0; i < frequencyA.length; i++) {\n count += Math.abs(frequencyA[i] - frequencyB[i]);\n }\n return count;\n }", "private static boolean isAnagram2(String str, String anagram) {\n\n\t\tchar[] chararray = str.toCharArray();\n\n\t\tStringBuilder sb = new StringBuilder(anagram);\n\n\t\tfor (char ch : chararray) {\n\t\t\t\n\t\t\tint index = sb.indexOf(\"\" + ch);\n\n\t\t\tif (index != -1) {\n\n\t\t\t\tsb.deleteCharAt(index);\n\t\t\t} else {\n\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn sb.length() == 0 ? true : false;\n\t}", "static int makeAnagram(String a, String b) {\n int[] arr1 = new int[26];\n int[] arr2 = new int[26];\n\n for (int i = 0; i < a.length() ; i++) {\n arr1[a.charAt(i) - 'a']++;\n }\n\n for (int i = 0; i < b.length(); i++)\n arr2[b.charAt(i) - 'a']++;\n\n int times = 0;\n for (int i = 0; i < 26; i++)\n times += Math.abs(arr1[i] - arr2[i]);\n\n\n return times;\n }", "public static boolean areAnagramsUsingTwoFrequencyArrays(String firstString, String secondString) {\n if (firstString.length() != secondString.length()) {\n return false;\n }\n\n int[] f1 = new int[256];\n int[] f2 = new int[256];\n\n for (int i = 0; i < firstString.length(); i++) {\n f1[firstString.charAt(i)]++;\n }\n for (int i = 0; i < secondString.length(); i++) {\n f2[secondString.charAt(i)]++;\n }\n\n for (int i = 0; i < f1.length; i++) {\n for (int j = 0; j < f2.length; j++) {\n if (f1[i] != f2[i]) {\n return false;\n }\n }\n\n }\n return true;\n }", "public static boolean compare (TreeMap<Character, Integer> m1, TreeMap<Character, Integer> m2) {\n if (m1.keySet().size() != m2.keySet().size()) {\n return false; // Words do not contain the same number of variants of characters\n } else {\n for (char c : m1.keySet()) {\n if (!m2.containsKey(c)) {\n return false; // Words do not have the same characters\n } else {\n if (m1.get(c) != m2.get(c)) {\n return false; // Words do not have the same number of the same characters\n }\n }\n }\n }\n\n return true; // The word is an anagram\n }", "public static void main(String[] args) {\n// System.out.println(anagram1());\n// System.out.println(anagram2());\n// System.out.println(anagram3());\n System.out.println(anagram4());\n\n }", "static int makeAnagram(String a, String b) {\n int[] letters = new int[26];\n\n for (char c: a.toCharArray()){\n letters[c-'a']++;\n }\n\n for (char c: b.toCharArray()){\n letters[c-'a']--;\n }\n\n int sum = 0;\n\n for (int x:letters){\n sum+=Math.abs(x);\n }\n return sum;\n\n }", "static int makeAnagram(String a, String b) {\n List<String> arr = new ArrayList<>(Arrays.asList(a.split(\"(?<!^)\")));\n List<String> arr2 = new ArrayList<>(Arrays.asList(b.split(\"(?<!^)\")));\n Iterator<String> iter = arr.iterator();\n \n while (iter.hasNext()) {\n String s = iter.next();\n\n if (arr2.contains(s)) {\n arr2.remove(arr2.indexOf(s));\n iter.remove();\n }\n }\n\n return (arr.size()) + (arr2.size());\n }", "private boolean alphabCheck(String first, String second) {\n\t\tif (first.length() == 1 || second.length() == 1) {\n\t\t\tif (first.compareTo(second) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) < 0) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif (first.substring(0, 1).compareTo(second.substring(0,1)) == 0) {\n\t\t\t\t\treturn alphabCheck(first.substring(1, first.length()),second.substring(1,second.length()));\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "static int makeAnagram(String a, String b) {\r\n int[] charCount = new int[26];\r\n int deletions = 0;\r\n\r\n for(char c : a.toCharArray()) {\r\n charCount[c-'a'] += 1;\r\n }\r\n for(char c : b.toCharArray()) {\r\n charCount[c-'a'] -= 1;\r\n }\r\n for(int count : charCount) {\r\n deletions += Math.abs(count);\r\n }\r\n return deletions;\r\n }", "static int makeAnagram1(String a, String b) {\n int count = 0;\n Map<Character, Integer> mapA = initMap(a);\n Map<Character, Integer> mapB = initMap(b);\n\n Iterator<Character> it = mapA.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyA = mapA.get(c);\n if (mapB.containsKey(c)) {\n int frequencyB = mapB.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyA;\n }\n }\n\n it = mapB.keySet().iterator();\n while (it.hasNext()) {\n char c = it.next();\n int frequencyB = mapB.get(c);\n if (mapA.containsKey(c)) {\n int frequencyA = mapA.get(c);\n count += Math.abs(frequencyA - frequencyB);\n int min = Math.min(frequencyA, frequencyB);\n mapA.put(c, min);\n mapB.put(c, min);\n } else {\n count += frequencyB;\n }\n }\n return count;\n }", "public static void main(String[] args) {\n\t\tString str1,str2;\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tCheckAnagram obj=new CheckAnagram();\r\n\t\t\r\n\t\tSystem.out.println(\"Enter first string:\");\r\n\t\tstr1=sc.nextLine();\r\n\t\tSystem.out.println(\"Enter second string:\");\r\n\t\tstr2=sc.nextLine();\r\n\t\t\r\n\t\t\tSystem.out.println(obj.checkAnagram(str1,str2));\r\n\t}", "public static boolean areAnagrams(String anagram, String compare) {\n String sortedAnagram = AnagramUtil.sort(anagram);\n String sortedCompare = AnagramUtil.sort(compare);\n return sortedAnagram.equals(sortedCompare);\n }", "static String abbreviation(String a, String b) {\r\n \r\n HashSet<Character> aSet = new HashSet<>();\r\n\r\n for(int i = 0 ; i< a.length() ; i++){\r\n aSet.add(a.charAt(i));\r\n }\r\n \r\n for(int i = 0 ; i < b.length() ; i++){\r\n \r\n if(aSet.contains(b.charAt(i)) ){\r\n aSet.remove(b.charAt(i));\r\n }\r\n else if(aSet.contains(Character.toLowerCase(b.charAt(i)))){\r\n aSet.remove(Character.toLowerCase(b.charAt(i)));\r\n }\r\n else{\r\n return \"NO\";\r\n }\r\n \r\n\r\n }\r\n\r\n Iterator<Character> it = aSet.iterator();\r\n while(it.hasNext()){\r\n\r\n if(!isLowerCase(it.next())){\r\n return \"NO\";\r\n }\r\n }\r\n return \"YES\";\r\n \r\n /*\r\n String regex = \"\";\r\n for(int i = 0 ; i < b.length() ; i++){\r\n regex += \"[a-z]*\" + \"[\" + b.charAt(i) + \"|\" + Character.toLowerCase(b.charAt(i)) + \"]\";\r\n }\r\n regex += \"[a-z]*\";\r\n Pattern ptrn = Pattern.compile(regex);\r\n Matcher matcher = ptrn.matcher(a);\r\n\r\n return matcher.matches() ? \"YES\" : \"NO\";\r\n*/\r\n \r\n /*\r\n int aPtr = 0;\r\n\r\n //b e F g H\r\n // E F H\r\n for(int i = 0 ; i < b.length() ; i++){\r\n\r\n if(aPtr + 1 >= a.length())\r\n return \"NO\";\r\n //if(aPtr + 1 == a.length() && i + 1 == b.length())\r\n // return \"YES\";\r\n\r\n System.out.println(b.charAt(i) + \" \" + a.charAt(aPtr));\r\n if(b.charAt(i) == a.charAt(aPtr)){\r\n aPtr++;\r\n }else if(b.charAt(i) == Character.toUpperCase(a.charAt(aPtr)) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n\r\n } else if(b.charAt(i) != a.charAt(aPtr) && !isLowerCase(a.charAt(aPtr))){\r\n return \"NO\";\r\n }else if(b.charAt(i) != a.charAt(aPtr) && isLowerCase(a.charAt(aPtr))){\r\n aPtr++;\r\n i--;\r\n }\r\n\r\n\r\n\r\n }\r\n for(int i = aPtr ; i < a.length() ; i++){\r\n if(!isLowerCase(a.charAt(i)))\r\n return \"NO\";\r\n }\r\n\r\n return \"YES\";\r\n */\r\n\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Input Testing: anargram and margana\");\n\t\tSystem.out.println(\"Expercted output: Anagrams\");\n\t\tif (isAnagram(\"anagram\", \"margana\") ) \n\t\t\tSystem.out.println(\"Your output: Anagrams\");\n\t\telse\n\t\t\tSystem.out.println(\"Your output: Not Anagrams\");\n\t\t\n\t\t//Test Case 2\n\t\tSystem.out.println(\"\\nInput Testing: anagramm and marganaa\");\n\t\tSystem.out.println(\"Expercted output: Not Anagrams\");\n\t\tif (isAnagram(\"anagramm\", \"marganaa\") ) \n\t\t\tSystem.out.println(\"Your output: Anagrams\");\n\t\telse\n\t\t\tSystem.out.println(\"Your output: Not Anagrams\");\n\t\t\n\t\t//Test Case 3\n\t\tSystem.out.println(\"\\nInput Testing: Hello and hello\");\n\t\tSystem.out.println(\"Expercted output: Anagrams\");\n\t\tif (isAnagram(\"Hello\", \"hello\") ) \n\t\t\tSystem.out.println(\"Your output: Anagrams\");\n\t\telse\n\t\t\tSystem.out.println(\"Your output: Not Anagrams\");\n\t}", "static int anagram(String s){\n // Complete this function\n int len = s.length();\n if(len%2 != 0){\n return -1;\n }\n String a=s.substring(0,(len/2));\n StringBuilder b = new StringBuilder(s.substring((len/2),len)); \n //System.out.println(\"a: \" + a);\n //System.out.println(\"b: \" + b);\n //char[] aChar = a.toCharArray();\n //char[] bChar = b.toCharArray();\n //Arrays.sort(aChar);\n //Arrays.sort(bChar);\n int count =0;\n for(int i=0;i<len/2;i++){\n int j = b.indexOf(String.valueOf(a.charAt(i)));\n if(j > -1){\n b.deleteCharAt(j); \n }else{\n count++;\n }\n }\n return count;\n }", "public boolean isAPermutation(String st1, String st2) {\n\t\tif(st1.length() != st2.length() || st1.length() == 0 || st2.length() == 0) return false;\n\t\t\n\t\tHashMap<Character, Integer> cc1 = charactersCount(st1);\n\t\tHashMap<Character, Integer> cc2 = charactersCount(st2);\n\t\t\n\t\treturn sameCharactersCount(cc1, cc2);\n\t}", "public static void main(String[] args) {\n\t\tLinkedList<String> temp = new LinkedList<String>();\n\t\tboolean anagram;\n\t\tint count = 0;\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter two words: \");\n\t\twhile(sc.hasNext()){\n\t\t\ttemp.add( sc.next() );\n\t\t\tcount++;\n\t\t\tif(count==2)break;\n\t\t}\n\t\tsc.close();\n\t\tanagram = anagramWord(temp.peekFirst(), temp.peekLast());\n\t\tif(anagram) System.out.println(\"The word \\\"\"+temp.peekFirst()+\"\\\" and \\\"\"+temp.peekLast()\n\t\t\t\t\t\t\t\t\t +\"\\\" are Anagram.\");\n\t\telse System.out.println(\"The word \\\"\"+temp.peekFirst()+\"\\\" and \\\"\"+temp.peekLast()\n\t\t\t\t\t\t\t +\"\\\" are not Anagram.\");\n }", "public boolean isARotation(String s1, String s2) {\n\t\tif(s1.length() != s2.length()) return false;\n\t\t\n\t\tStringBuilder stb = new StringBuilder();\n\t\tint i = 0;\n\t\twhile(i < s1.length()) {\n\t\t\tif(s1.charAt(i) == s1.charAt(i)) {\n\t\t\t\treturn subString(s1.substring(0, i), s2) \n\t\t\t\t\t\t&& stb.toString().compareTo(s2.substring(i, s2.length()-1)) == 0;\n\t\t\t}\n\t\t\ti++;\n\t\t\tstb.append(s1.charAt(i));\n\t\t}\n\t\treturn false;\n\t}", "static int sherlockAndAnagrams(String s) {\n\n // **** initialize count of anagrams ****\n int count = 0;\n\n // **** loop once per grouping of characters [1 : s.length() - 1] ****\n for (int g = 1; g < s.length(); g++) {\n\n // **** generate the base sub string ****\n for (int i = 0; i < s.length() - g; i++) {\n\n // **** starting string ****\n String bs = s.substring(i, i + g);\n\n // **** generate sub strings ****\n for (int j = i + 1; j <= s.length() - g; j++) {\n\n // **** generate current sub string ****\n String cs = s.substring(j, j + g);\n\n // **** check if anagram ****\n if (areAnagram(bs, cs)) {\n count++;\n }\n }\n }\n }\n\n // **** count of anagrams ****\n return count;\n }", "static int makeAnagram(String a, String b) {\n \n \tchar arr[] = a.toCharArray();\n char brr[] = b.toCharArray();\n Arrays.sort(arr);\n Arrays.sort(brr);\n Map<Character, Integer> aMap = new HashMap<>();\n Map<Character, Integer> bMap = new HashMap<>();\n for(int i =0 ;i <arr.length;i++){\n \tif(!aMap.containsKey(arr[i])){\n \t\taMap.put(arr[i], 1);\n \t}else{\n \t\taMap.put(arr[i], aMap.get(arr[i])+1);\n \t}\n }\n for(int i =0 ;i <brr.length;i++){\n \tif(!bMap.containsKey(brr[i])){\n \t\tbMap.put(brr[i], 1);\n \t}else{\n \t\tbMap.put(brr[i], bMap.get(brr[i])+1);\n \t}\n }\n int removeCharCount = 0;\n \n for(char ch = 'a'; ch<='z';ch++){\n \tif(aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tif(aMap.get(ch) > bMap.get(ch)){\n \t\t\tint count = aMap.get(ch) - bMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, aMap.get(ch) - count);\n \t\t}else if(aMap.get(ch) < bMap.get(ch)){\n \t\t\tint count = bMap.get(ch) - aMap.get(ch);\n \t\t\tremoveCharCount+=count;\n \t\t\taMap.put(ch, bMap.get(ch) - count);\n \t\t}\n \t}else if(aMap.containsKey(ch) && !bMap.containsKey(ch)){\n \t\tint count = aMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\taMap.remove(ch);\n \t}else if(!aMap.containsKey(ch) && bMap.containsKey(ch)){\n \t\tint count = bMap.get(ch);\n \t\tremoveCharCount+=count;\n \t\tbMap.remove(ch);\n \t}\n }\n /* if(removeCharCount == Math.min(arr.length, brr.length)){\n \treturn 0;\n }*/\n return removeCharCount;\n }", "public static String isPanagram(String inputString) {\n\t\tchar[] inputStringChars = inputString.toCharArray();\n\t\tchar[] alphabets = new char[26];\n\t\tfor (int i = 0; i < inputStringChars.length; i++) {\n\t\t\tif ((inputStringChars[i] - 65) >= 0 && (inputStringChars[i] - 65) <= 97) {\n\t\t\t\talphabets[inputStringChars[i] - 65] = '1';\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i < alphabets.length; i++) {\n\t\t\tif (alphabets[i] == '\\u0000') {\n\t\t\t\treturn \"not pangram\";\n\t\t\t}\n\t\t}\n\t\treturn \"pangram\";\n\t}", "public static void main(String[] args) {\n\t\tString str = \"Nitin\";\n\t\tSystem.out.println(str.indexOf(\"i\"));\n\t\tSystem.out.println(str.substring(0,3));\n\t\tboolean s =str.endsWith(\"i\");\n\t\tSystem.out.println(s);\n\t\t//change to char array\n\t\tchar[] arr = str.toCharArray();\n\t\t//intialize another array of same length\n\t\tchar[] arr_new = new char[str.length()];\n\t\t//now reverse the string and store into new array\n\t\tint j = 0;\n\t\tfor(int i =str.length()-1;i>=0;i--) {\n\t\t\tarr_new[j++] = arr[i];\n\t\t\t\n\t\t}\n\t\t//now convert the new array into String\n\t\tString str_new = new String(arr_new);\n\t\t\n\t\t//Logic to compare the strings\n\t\tif(str.equalsIgnoreCase(str_new)) {\n\t\t\tSystem.out.print(\"Anagram\" + str);}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"Not Anagram\" + str);\n\t\t\t\t\n\t\t\t}\n\t\t}", "public Boolean stringScramble(String str1, String str2) {\n // code goes here\n return null;\n }", "static int makingAnagrams(String s1, String s2){\n // Complete this function\n StringBuilder b = new StringBuilder(s2);\n int delCount =0;\n for(int i=0;i<s1.length();i++){\n int index = b.indexOf(String.valueOf(s1.charAt(i)));\n if(index == -1){\n delCount++;\n }else{\n b.deleteCharAt(index);\n } \n }\n return delCount + b.length();\n }", "static boolean isPermutation_1(String a, String b){\n //get the sorted format of a string\n String sorted_A = sortString(a);\n String sorted_B = sortString(b);\n return sorted_A.equals(sorted_B);\n }", "static boolean isPermutation_2(String a, String b){\n boolean isPermutation = true;\n //lets store every char in an array of boolean\n int[] charCount = new int[256];\n for(char c:a.toCharArray()){\n charCount[c]++;\n }\n //now verify the count in another string and subtract the count\n for(char c:b.toCharArray()){\n charCount[c]--;\n }\n //now check if any count is non-zero then the two string have unequal count of that char\n for(int i=0;i<charCount.length;i++)\n if(charCount[i]!=0)\n return false;\n \n return isPermutation;\n }", "private static boolean isEnglishAlphabetPermutation(String str1, String str2) {\r\n if (!validate(str1, str2)) {\r\n return false;\r\n }\r\n if (str1.isEmpty() && str2.isEmpty()) { // simple case\r\n return true;\r\n }\r\n str1 = str1.toLowerCase();\r\n str2 = str2.toLowerCase();\r\n\r\n // we can use array instead of hash map\r\n // because we definitely know amount of characters\r\n int[] counter = new int[CHARS_AMOUNT];\r\n int startCode = Character.codePointAt(\"a\", 0);\r\n for (int i = 0; i < str1.length(); i++) {\r\n int idx = str1.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n counter[idx]++;\r\n }\r\n // no need to create another array for checking\r\n for (int i = 0; i < str2.length(); i++) {\r\n int idx = str2.codePointAt(i) - startCode;\r\n if (idx < 0 || idx >= CHARS_AMOUNT) {\r\n throw new IllegalArgumentException(\"Unsupported character.\");\r\n }\r\n int checkValue = --counter[idx];\r\n if (checkValue < 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "static int sherlockAndAnagrams(String s){\n // Complete this function\n ArrayList<String> substringArray = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n for(int j=i+1;j<s.length()+1;j++){\n substringArray.add(s.substring(i,j));\n }\n }\n int count = countAnagrams(substringArray);\n return count;\n }", "public static void main(String[] args) {\n\t\tString[] strs = {\"abc\",\"cba\",\"aaa\",\"aas\",\"saa\"};\r\n\t\tSystem.out.println(anagrams(strs));\r\n\t}", "boolean sameName(String a, String b){\n\t\tif(a.length()!=b.length()){\r\n\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tfor(int i=0;i<a.length();i++){\r\n\t\t\tif(a.charAt(i)!=b.charAt(i)){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=\"xheixhixhi\";\n\t\tint x=0;\n\t\tfor(int i=0;i<str.length();i++)\n\t\t{\n\t\t\tif(str.charAt(i)=='x')\n\t\t\t\tx++;\n\t\t\n\t\t\telse\n\t\t\t\tsb.append(str.charAt(i));\n\t\t}\n\t\tfor(int i=0;i<x;i++)\n\t\t\tsb.append('x');\n\t\tSystem.out.println(sb);\n\t\t\n\t\tString str1=\"xxxyyy\";\n\t\tStringBuffer sb1=new StringBuffer(str1);\n\t\tSystem.out.println(sb1.toString());\n\t\tfor(int i=0;i<(str1.length());i++)\n\t\t{\n\t\t\tif(sb1.charAt(i)==sb1.charAt(i+1))\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb1.insert(++i,'*');\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb1.toString());\n\t\t\n\t\t//anagram\n\t\tString s1=\"niveda\";\n\t\tString s2=\"Nivedas\";\n\t\tString s4=s2.toLowerCase();\n\t\tchar[] s3=s1.toCharArray();\n\t\tchar[] s5=s4.toCharArray();\n\t\tArrays.sort(s3);\n\t\tArrays.sort(s5);\n\t\tboolean result=Arrays.equals(s3, s5);\n\t\tSystem.out.println(\"result is \"+result);\n\t\t\n\t\t//check all digits\n\t\tString s=\"09779\";\n\t\tif (s.isEmpty())\n\t\t\tSystem.out.println(\"empty\");;\n\n\t\tfor (int i = 0; i < s.length(); i++) {\n\t\tint temp = s.charAt(i) - (int)'0';\n\t\tSystem.out.println(temp);\n\t\tif (temp < 0 || temp > 9)\n\t\t\tSystem.out.println(\"false\");\n\t\t\n\t\t}\n\n\t\tSystem.out.println(\"true\");\n\n\t\t//reverse a string\n\t\tString s6=\"niveda is\";\n\t\tString sb4=new StringBuffer(s6).reverse().toString();\n\t\tSystem.out.println(sb4);\n\t\t\n\t\tStringBuilder s7=new StringBuilder();\n\t\tchar[] c1=s6.toCharArray();\n\t\tfor(int i=c1.length-1;i>=0;i--)\n\t\t{\n\t\t\ts7.append(c1[i]);\n\t\t}\n\t\tSystem.out.println(s7);\n\t\t\n\t\t//replace with space\n\t\tString str5=\"xxx yyy\";\n\t\tStringBuilder sb6=new StringBuilder(str5);\n\t\tSystem.out.println(sb6.toString());\n\t\tfor(int i=0;i<(str5.length());i++)\n\t\t{\n\t\t\tif(sb6.charAt(i)==32)\n\t\t\t{\n\t\t\t\tSystem.out.println(i);\n\t\t\t\tsb6.replace(i,i+1,\"%20\");\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println(sb6.toString());\n\t\t\n\t\tString sentence=\"my name is niveda\";\n\t\tList< String> words = Arrays.asList(sentence.split(\"\\\\s\")); \n\t\tCollections.reverse(words); \n\t\t\n\t\tSystem.out.println(words);\n\t\tStringBuilder sb8 = new StringBuilder(sentence.length()); \n\t\t\n\t\tfor (int i = 0; i <=words.size() - 1; i++)\n\t\t{ \n\t\t\tsb8.append(words.get(i)); \n\t\t\t\n\t\tsb8.append(' ');\n\t\t}\n\t\tSystem.out.println(sb8.toString().trim());\n\t\t\n\t\tStringBuffer sb9=new StringBuffer(sentence);\n\t\tString sb10=sb9.reverse().toString();\n\t\tSystem.out.println(\"old \"+sb10.toString().trim());\n\t\t\n\t\tStringBuilder reverse = new StringBuilder(); \n\t\tString[] sa = sentence.trim().split(\"\\\\s\"); \n\t\tString newest=\"\";\n\t\tfor (int i = sa.length - 1; i >= 0; i--) \n\t\t{ \n\t\t\tString newword=sa[i]; \n\t\t\t//reverse.append(' '); \n\t\t\tString newstring=\"\";\n\t\t\tfor(int n=newword.length()-1;n>=0;n--)\n\t\t\t{\n\t\t\t\tnewstring=newstring+newword.charAt(n);\n\t\t\n\t\t\t}\n\t\t\tnewest=newest+newstring+\" \";\n\t\t} \n\t\tSystem.out.println( reverse.toString().trim());\n\t\tSystem.out.println(\"newest \"+newest);\n\t\tSystem.out.println(\"number of words in the string \"+sa.length);\n\n\t\t\n\t\t//reverse chars in the word in place\n\t\tString s11=\"my name is niveda\";\n\t\tString reversestring=\"\";\n\t\tString[] c11=s11.trim().split(\"\\\\s\");\n\t\tfor(int k=0;k<c11.length;k++)\n\t\t{\n\t\t\tString word=c11[k];\n\t\t\tString reverseword=\"\";\n\t\t\tfor(int m=word.length()-1;m>=0;m--)\n\t\t\t{\n\t\t\t\t\n\t\t\treverseword=reverseword+word.charAt(m);\n\t\t\t}\n\t\t\treversestring=reversestring+reverseword+\" \";\n\t\t}\n\t\t\n\t\tSystem.out.println( reversestring);\n\t}", "public static boolean is_rotation_of_another_string(String word1, String word2) {\n\n String s3 = word1 + word1;\n\n if (s3.contains(word2))\n return true;\n else\n return false;\n }", "public static void main(String[] args) {\n\t\t String s1=new String(\"great\");\n\t\t String s2=new String(\"rgtae\");\n\t\t if(isScrableString(s1, s2)){\n\t\t\t System.out.println(\"two string is scramble string!\");\n\t\t }else{\n\t\t\t System.out.println(\"two string is not scramble string!\");\n\t\t }\n\t}", "public boolean isActivationString(String word);", "public static void main(String[] args) {\r\n\r\n\t\tSystem.out.println(\"string=\\\"ppqp\\\", pattern=\\\"pq\\\" output:[1,2] got : \" + findStringAnagrams(\"ppqp\", \"pq\"));\r\n\t\tSystem.out.println(\r\n\t\t\t\t\"string=\\\"abbcabc\\\", pattern=\\\"abc\\\" output:[2,3,4] got : \" + findStringAnagrams(\"abbcabc\", \"abc\"));\r\n\t}", "public boolean rotationCheck(String a, String b) {\r\n\t\tif(a.length() != b.length()) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t\r\n\t\tString c = a + a;\r\n\t\tif(c.contains(b)) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n HashMap<String, Integer> map = new HashMap<>();\n\n int length = s.length();\n int wordSize = 1;\n while (wordSize != length) {\n for(int i = 0; i <= length-wordSize; i++) {\n char[] charArray = s.substring(i, i+wordSize).toCharArray();\n Arrays.sort(charArray);\n String sortedWord = new String(charArray);\n Integer num = map.get(sortedWord);\n if(num == null)\n map.put(sortedWord, 1);\n else {\n map.put(sortedWord, num+1);\n anagramCount += num;\n }\n }\n wordSize++;\n }\n\n return anagramCount;\n }", "public boolean isScramble(String s1, String s2) {\n int lena = s1.length();\n int lenb = s2.length();\n if(lena != lenb) return false;\n if(lena == 0||s1.equals(s2)) return true;\n char[] crr1 = s1.toCharArray();\n char[] crr2 = s2.toCharArray();\n Arrays.sort(crr1);\n Arrays.sort(crr2);\n if(!Arrays.equals(crr1,crr2)) return false;\n \n int i = 1; \n while(i< lena){\n String a1 = s1.substring(0,i);\n String b1 = s1.substring(i);\n String a2 = s2.substring(0,i);\n String b2 = s2.substring(i);\n if(isScramble(a1,a2) && isScramble(b1,b2)) return true;\n String a3 = s2.substring(lenb - i);\n String b3 = s2.substring(0, lenb-i);\n if(isScramble(a1,a3) && isScramble(b1,b3)) return true;\n i++;\n }\n return false;\n }", "static int sherlockAndAnagrams(String s) {\n int anagramCount = 0;\n Map<String, Integer> map = new HashMap<>();\n for (int i = 0; i < s.length(); i++) {\n for (int k = i + 1; k <= s.length(); k++) {\n String sub = s.substring(i, k);\n System.out.println(sub);\n sub = new String(sort(sub.toCharArray()));\n int value = map.getOrDefault(sub, 0);\n if(value > 0) {\n anagramCount = anagramCount + value;\n }\n map.put(sub, value+1);\n\n }\n }\n return anagramCount;\n }", "public boolean isScramble(String s1, String s2) {\n if (s1.length() != s2.length())\n return false;\n \n if (hash.containsKey(s1 + \"#\" + s2))\n return hash.get(s1 + \"#\" + s2);\n \n int n = s1.length();\n if (n == 1) {\n return s1.charAt(0) == s2.charAt(0);\n }\n for (int k = 1; k < n; ++k) {\n if (isScramble(s1.substring(0, k), s2.substring(0, k)) &&\n isScramble(s1.substring(k, n), s2.substring(k, n)) ||\n isScramble(s1.substring(0, k), s2.substring(n - k, n)) &&\n isScramble(s1.substring(k, n), s2.substring(0, n - k))\n ) {\n hash.put(s1 + \"#\" + s2, true);\n return true;\n }\n }\n hash.put(s1 + \"#\" + s2, false);\n return false;\n }", "public boolean isAlienSorted(String[] words, String order) {\n int[] alphabet = new int[26];\n for (int i = 0; i < order.length(); i++) {\n alphabet[order.charAt(i) - 'a'] = i;\n }\n \n // compare each two words together\n for (int i = 0; i < words.length - 1; i++) {\n \n // minimum length of the two word\n int min = Math.min(words[i].length(), words[i + 1].length());\n \n for (int m = 0; m < min; m++) {\n int charI = words[i].charAt(m);\n int charJ = words[i + 1].charAt(m);\n if (alphabet[charI - 'a'] < alphabet[charJ - 'a']) {\n break;\n } else if (alphabet[charI - 'a'] > alphabet[charJ - 'a']) {\n return false;\n // at the minimum and the shorter word is before longer word\n } else if (m == min - 1 && words[i].length() > words[i + 1].length()) {\n return false;\n }\n }\n }\n \n return true; \n }" ]
[ "0.82326543", "0.7904526", "0.77971023", "0.77955836", "0.7787062", "0.77742475", "0.77649707", "0.7740485", "0.7691154", "0.76730365", "0.7651788", "0.7587044", "0.758563", "0.7544495", "0.7486283", "0.7443603", "0.7435597", "0.7423508", "0.7407411", "0.73862165", "0.7378804", "0.73265445", "0.73227155", "0.73069304", "0.7277395", "0.7249311", "0.72401166", "0.72309965", "0.72106314", "0.71974874", "0.7192608", "0.71859556", "0.71806383", "0.7171022", "0.71681976", "0.71362", "0.71069795", "0.71013373", "0.70819646", "0.707616", "0.70656717", "0.7040411", "0.7035392", "0.6983145", "0.6961183", "0.6954511", "0.6952849", "0.69467354", "0.69187033", "0.6880141", "0.68792415", "0.68764156", "0.685664", "0.68536156", "0.6765028", "0.6764689", "0.66962594", "0.6665658", "0.6638254", "0.6633139", "0.66322976", "0.6569536", "0.65189195", "0.6491108", "0.647228", "0.64604235", "0.64562863", "0.64438266", "0.6414438", "0.6412183", "0.64034075", "0.64009887", "0.63353604", "0.6259626", "0.6229005", "0.62005734", "0.6200429", "0.6181747", "0.6176102", "0.60830677", "0.60310256", "0.6001197", "0.59382176", "0.5929814", "0.58777595", "0.5859645", "0.5847899", "0.58266675", "0.5817642", "0.5802675", "0.57905376", "0.57650703", "0.57562697", "0.573252", "0.57158506", "0.56942344", "0.56924665", "0.5692271", "0.5688105", "0.56790584" ]
0.7229641
28
Returns the value of the 'Instrument Derived' attribute. The default value is "false". If the meaning of the 'Instrument Derived' attribute isn't clear, there really should be more of a description here...
boolean isInstrumentDerived();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isDerived() {\n return fDerived;\n }", "public boolean isIncludeDerived() {\n return includeDerived;\n }", "public boolean getBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(BASE$18);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public Boolean getBase() {\n return base;\n }", "public void setDerived(boolean derived) {\n this.fDerived = derived;\n }", "public InstrumentDescription getInstrument();", "boolean isDerived();", "public Object getInstrument() {\n\t\treturn null;\r\n\t}", "public Instrument getInstrument()\n {\n return instrument;\n }", "@Override\r\n\tpublic Instrument getInstrument() {\n\t\treturn null;\r\n\t}", "protected String getInstrumentName() {\n\t\treturn this.instrument;\n\t}", "public String getInstrumentType() {\n return instrumentType;\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.String getCustomInstrumentationData() {\n return (java.lang.String)__getInternalInterface().getFieldValueForCodegen(CUSTOMINSTRUMENTATIONDATA_PROP.get());\n }", "public boolean isSetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().find_attribute_user(BASE$18) != null;\r\n }\r\n }", "@Override\n public boolean isAttribute()\n {\n return attribute;\n }", "public org.apache.xmlbeans.XmlBoolean xgetBase()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(BASE$18);\r\n }\r\n return target;\r\n }\r\n }", "public boolean isDAX() {\n return false;\n }", "public String getIsDerate() {\n return isDerate;\n }", "public boolean isAttribute() {\n\t\treturn false;\n\t}", "protected String getFalse() {\n return \"false\";\n }", "public Number getIdexped()\n {\n return (Number)getAttributeInternal(IDEXPED);\n }", "public double getBase()\r\n {\r\n return Base;\r\n }", "public String getDerivedFrom()\n {\n return derivedFrom;\n }", "public boolean getEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "public boolean getIsAnimal()\r\n/* 34: */ {\r\n/* 35:53 */ return this.isAnimal;\r\n/* 36: */ }", "public boolean isSoftlyInherited() {\r\n\treturn bgclip.equals(inherit);\r\n }", "public boolean isUseBase()\n {\n return (isPragma() && getModule().toKeyword().isBaseKeyword());\n }", "public boolean getIsDisassembled() {\n\t\treturn isDisassembled;\n\t}", "public boolean isMeasured() {\n return _isMeasured;\n }", "@Override\r\n public boolean removeDerivedValues() {\n return false;\r\n }", "public Boolean getIsCalculated() {\n return this.isCalculated;\n }", "public String getIndicative() {\n\t\treturn null;\r\n\t}", "public String noise() {\n return \"not overridden\";\n }", "public abstract String getInstrumentationClass();", "public boolean isDnAttributes()\n {\n return dnAttributes;\n }", "public String getOnHoldFlag()\n {\n return (String)getAttributeInternal(ONHOLDFLAG);\n }", "public Boolean deceasedBoolean() {\n return data.getBoolean(FhirPropertyNames.PROPERTY_DECEASED_BOOLEAN);\n }", "public String getBooltax() {\n return booltax;\n }", "public boolean hasDynamicAttributes();", "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "private java.util.HashSet<String> getRedefinedDerivedAttributeTypes()\n\t{\n\t\tjava.util.HashSet<String> redefinedDerivedAttributes = new java.util.HashSet<String>();\n\t\treturn redefinedDerivedAttributes;\t}", "public boolean getItalic() {\r\n return Italic;\r\n }", "@Override\n public final boolean hasSpecialDefenseValueAttribute() {\n return true;\n }", "public char getIsBidder() {\n\treturn isBidder;\n}", "@Override\r\n\tpublic boolean getIntentValue() {\n\t\treturn true;\r\n\t}", "public void setBase(boolean base)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(BASE$18);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(BASE$18);\r\n }\r\n target.setBooleanValue(base);\r\n }\r\n }", "public Boolean getBooleanAttribute();", "public double getBase() {\n\t\treturn base;\n\t}", "@Override\n public String toString() {\n return \"FalseSampler\";\n }", "public String getPartOfDRC() {\n\t\tif (isPartOfDRC())\n\t\t\treturn \"true\";\n\t\telse\n\t\t\treturn \"false\";\n\t}", "public boolean getSpecial() {\n return isSpecial;\n }", "public String getValue() {\n return super.getAttributeValue();\n }", "public String getExtAttribute4() {\n return (String) getAttributeInternal(EXTATTRIBUTE4);\n }", "boolean hasBase();", "public static boolean getDefaultAttributeQuote()\n {\n return defaults.attribute_quote;\n }", "public String getIndicate() {\n return indicate;\n }", "public String showInstrument() {\n\t\treturn \"Pearl Drum\";\n\t}", "public String getAttr4() {\n return attr4;\n }", "public String getAttr4() {\n return attr4;\n }", "public boolean getAbstracto () {\n return abstracto;\n }", "public boolean isSetCombInstrumentID() {\n return this.combInstrumentID != null;\n }", "public String getAttr() {\n return attr;\n }", "public BasicAttributesGrammarAccess.AbstractValueElements getAbstractValueAccess() {\n\t\treturn gaBasicAttributes.getAbstractValueAccess();\n\t}", "public Boolean getPhysical() {\n return physical;\n }", "@Override\r\n\tpublic String getAttr_isrobot_ind() {\n\t\treturn super.getAttr_isrobot_ind();\r\n\t}", "public Long getInstrumentId() {\n\t\treturn instrumentId;\n\t}", "public boolean getExtendable()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(EXTENDABLE$22);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_default_attribute_value(EXTENDABLE$22);\r\n }\r\n if (target == null)\r\n {\r\n return false;\r\n }\r\n return target.getBooleanValue();\r\n }\r\n }", "@Transient\r\n\tpublic boolean isSurcharge() {\r\n\t\treturn false;\r\n\t}", "boolean isAttribute();", "public Instrument getPrideInstrument() {\n\n \n return prideInstrument;\n\n }", "public boolean isAcid() {\n return hasBase || deltas.size() > 0;\n }", "public String getQwBaselineFlag() {\n\t\treturn qwBaselineFlag;\n\t}", "public boolean isSetLegInstrumentID() {\n return this.legInstrumentID != null;\n }", "@Override\n\tpublic IAttributeValue value() { return value; }", "public String getPayInterestFlag() {\n return payInterestFlag;\n }", "public org.apache.xmlbeans.XmlBoolean xgetEffdatedOnly()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlBoolean target = null;\r\n target = (org.apache.xmlbeans.XmlBoolean)get_store().find_attribute_user(EFFDATEDONLY$20);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlBoolean)get_default_attribute_value(EFFDATEDONLY$20);\r\n }\r\n return target;\r\n }\r\n }", "public abstract boolean getEffectiveBooleanValue();", "public boolean isMetered() {\n return mIsMetered;\n }", "public abstract boolean isSynthetic();", "public BigDecimal getSMART_OPTION4() {\r\n return SMART_OPTION4;\r\n }", "public BigDecimal getSMART_OPTION4() {\r\n return SMART_OPTION4;\r\n }", "public Boolean getBoolean(String attr) {\n return (Boolean) super.get(attr);\n }", "public IRubyObject getDebug() {\n return debug ? trueObject : falseObject;\n }", "public IRubyObject getDebug() {\n return debug ? trueObject : falseObject;\n }", "public boolean hasBASECURRENCYID() {\n return fieldSetFlags()[2];\n }", "public abstract double baseExperience();", "public boolean getHasCustomArmor() {\n return this.hasCustomArmor;\n }", "public boolean d() {\n return false;\n }", "public String getBase()\n {\n return base;\n }", "protected boolean isInDerivedClass() {\n\t\treturn (getClass() != Main.class);\n\t}", "@Override\n public boolean getShowSimulatedValues() throws G2AccessException {\n java.lang.Object retnValue = getAttributeValue (SystemAttributeSymbols.SHOW_SIMULATED_VALUES_);\n return ((Boolean)retnValue).booleanValue ();\n }", "@Override\n\tpublic boolean isExpression() {\n\t\treturn heldObj.isExpression();\n\t}", "public String getIsrecordingguessdata() {\r\n return isrecordingguessdata;\r\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.lang.Boolean isTallied();", "public String getInteresting() {\n return interesting;\n }", "boolean getIsVirtual();", "@JsonIgnore\n public Boolean isStandard() {\n return this.standard;\n }", "public boolean getItalic() {\n\t\treturn this.italic;\n\t}", "public boolean isMostrarBaseImponible()\r\n/* 602: */ {\r\n/* 603:657 */ return this.mostrarBaseImponible;\r\n/* 604: */ }", "public boolean getCarry() {\n return mAndGate.getOutput();\n }" ]
[ "0.65393096", "0.6517792", "0.61243254", "0.5964515", "0.5885945", "0.58225095", "0.5775005", "0.5742029", "0.56816626", "0.5607011", "0.55865985", "0.5575", "0.5523126", "0.551052", "0.5491792", "0.54860806", "0.5477543", "0.5406562", "0.5388611", "0.53136915", "0.52545625", "0.5227093", "0.51992923", "0.51698583", "0.5163912", "0.5137755", "0.5134793", "0.5133711", "0.5097016", "0.5071216", "0.50469846", "0.50307506", "0.50200576", "0.5007467", "0.5003894", "0.5000728", "0.49849007", "0.49802342", "0.49777955", "0.49768496", "0.49768496", "0.49684504", "0.4960913", "0.49590716", "0.49482048", "0.49470922", "0.4943519", "0.49401408", "0.49328816", "0.49224892", "0.4915404", "0.49150652", "0.4895326", "0.48948938", "0.48900372", "0.48881283", "0.4883748", "0.48777628", "0.48777628", "0.48772863", "0.48692003", "0.48687086", "0.4867329", "0.48667806", "0.48617277", "0.48596978", "0.48592222", "0.48533326", "0.48481324", "0.4847315", "0.48371232", "0.4835147", "0.48309338", "0.4829597", "0.4817228", "0.48147756", "0.48140174", "0.4810577", "0.48104686", "0.4807117", "0.4807117", "0.4806257", "0.48046237", "0.48046237", "0.47914162", "0.47855642", "0.4773994", "0.47699782", "0.47646052", "0.476173", "0.47607774", "0.4759287", "0.4758174", "0.4755603", "0.47540414", "0.47506365", "0.47480345", "0.47457406", "0.47430417", "0.4740477" ]
0.77638084
0
Returns the value of the 'Method' reference. If the meaning of the 'Method' reference isn't clear, there really should be more of a description here...
Method getMethod();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Method getMethod();", "String getMethod();", "String getMethod();", "public String getMethod ()\n {\n return method;\n }", "public Method getMethod() {\n return mMethod;\n }", "public Method getMethod () {\n\t\treturn method;\n\t}", "public int getMethod(){\n return method;\n }", "Methodsig getMethod();", "public Method getMethod() {\n\t\treturn method;\n\t}", "public java.lang.reflect.Method getMethod()\n {\n return __m_Method;\n }", "public Method getMethod() {\n return method;\n }", "public Method getMethod() {\n return method;\n }", "MethodName getMethod();", "public int getMethodValue() {\n return method_;\n }", "ClassMember getMethod () { return method; }", "public Method method() {\n return method;\n }", "public String getMethod() {\n\t\treturn getParameter(\"method\");\n\t}", "public String getMethod() {\n\t\treturn method;\n\t}", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n return method;\n }", "public String getMethod() {\n\n return this.method;\n }", "protected Method getMethod() {\n return method;\n }", "public int getMethodValue() {\n return method_;\n }", "public Method getMethod() {\n\t\treturn this.currentAction.getMethod();\n\t}", "public String getMethod() {\n\t\t\treturn method;\n\t\t}", "@Override\n public String getMethod() {\n return METHOD_NAME;\n }", "int getMethodValue();", "String getMethodName();", "String getMethodName();", "private String getName() {\n return method.getName();\n }", "public Method getActionMethod() {\n return this.method;\n }", "public MethodProxy getMethod() {\n\t\treturn null;\n\t}", "protected ResourceMethod getMethod( int theMethodIndex ) {\r\n\t\tConditions.checkParameter( theMethodIndex >= 0 && theMethodIndex < methods.length, \"theMethodIndex\", \"The specific method index is not within range.\" );\r\n\t\t\r\n\t\treturn methods[ theMethodIndex ];\r\n\t}", "public StrColumn getMethod() {\n return delegate.getColumn(\"method\", DelegatingStrColumn::new);\n }", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "java.lang.String getMethodName();", "public InputMethod getMethod() {\n return method;\n }", "public String getMethod()\n {\n if (averageRating == null) {\n return \"\";\n } else {\n return averageRating.getMethod();\n }\n }", "public HttpMethod getMethod()\r\n/* 29: */ {\r\n/* 30:56 */ return this.method;\r\n/* 31: */ }", "public String getMethodName() {\n return methodName;\n }", "public String getMethodName() {\n return methodName;\n }", "@Nullable\n abstract Method getMethod();", "public String method_5903() {\r\n return this.field_5516.field_1822.method_110();\r\n }", "public String getGetMethodName() {\n return m_getMethodName;\n }", "public String getMethodName() {\r\n return _methodName;\r\n }", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public String getMethodName() {\n\t\treturn this.methodName;\n\t}", "public abstract RlcpMethod getMethod();", "String getCalled();", "public String getMethodName() {\n\t\treturn methodName;\n\t}", "public java.lang.String getMethodName() {\r\n\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\tif (ref instanceof java.lang.String) {\r\n\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t} else {\r\n\t\t\t\tcom.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;\r\n\t\t\t\tjava.lang.String s = bs.toStringUtf8();\r\n\t\t\t\tif (bs.isValidUtf8()) {\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t}\r\n\t\t\t\treturn s;\r\n\t\t\t}\r\n\t\t}", "public HttpMethod method() {\n\t\treturn method;\n\t}", "public HttpMethod method() {\n return method;\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n methodName_ = s;\n }\n return s;\n }\n }", "@JsonIgnore\n public java.lang.reflect.Method getMethod() {\n return this.method;\n }", "public String methodBase() {\n\t\tString tmp = name;\n\t\ttmp = tmp.replaceFirst(\"^get\", \"\");\n\t\ttmp = tmp.replaceFirst(\"^is\", \"\");\n\t\treturn tmp.substring(0,1).toLowerCase()+tmp.substring(1);\n\t}", "public interface MethodInfo {\n\t/**\n\t * Returns the class which declared the method.\n\t */\n\tpublic ClassInfo declaringClass();\n\n\t/**\n\t * Returns the index into the constant pool of the name of the method.\n\t */\n\tpublic int nameIndex();\n\n\t/**\n\t * Returns the index into the constant pool of the type of the method.\n\t */\n\tpublic int typeIndex();\n\n\t/**\n\t * Sets the index into the constant pool of the name of the method.\n\t */\n\tpublic void setNameIndex(int index);\n\n\t/**\n\t * Set the index into the constant pool of the type of the method.\n\t * \n\t * @param index\n\t * The index into the constant pool of the type of the method.\n\t */\n\tpublic void setTypeIndex(int index);\n\n\t/**\n\t * Set the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @param modifiers\n\t * A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic void setModifiers(int modifiers);\n\n\t/**\n\t * Get the modifiers of the method. The values correspond to the constants\n\t * in the Modifiers class.\n\t * \n\t * @return A bit vector of modifier flags for the method.\n\t * @see Modifiers\n\t */\n\tpublic int modifiers();\n\n\t/**\n\t * Get the indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t * \n\t * @return The indices into the constant pool of the types of the exceptions\n\t * thrown by the method.\n\t */\n\tpublic int[] exceptionTypes();\n\n\t/**\n\t * Get the maximum height of the operand stack.\n\t * \n\t * @return The maximum height of the operand stack.\n\t */\n\tpublic int maxStack();\n\n\t/**\n\t * Set the maximum height of the operand stack.\n\t * \n\t * @param maxStack\n\t * The maximum height of the operand stack.\n\t */\n\tpublic void setMaxStack(int maxStack);\n\n\t/**\n\t * Get the maximum number of locals used in the method.\n\t * \n\t * @return The maximum number of locals used in the method.\n\t */\n\tpublic int maxLocals();\n\n\t/**\n\t * Set the maximum number of locals used in the method.\n\t * \n\t * @param maxLocals\n\t * The maximum number of locals used in the method.\n\t */\n\tpublic void setMaxLocals(int maxLocals);\n\n\t/**\n\t * Get the byte code array of the method.\n\t * \n\t * @return The byte code array of the method.\n\t */\n\tpublic byte[] code();\n\n\t/**\n\t * Set the byte code array of the method.\n\t * \n\t * @param code\n\t * The byte code array of the method.\n\t */\n\tpublic void setCode(byte[] code);\n\n\t/**\n\t * Get the line number debug info of the instructions in the method.\n\t * \n\t * @return The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic LineNumberDebugInfo[] lineNumbers();\n\n\t/**\n\t * Set the line number debug info of the instructions in the method.\n\t * \n\t * @param lineNumbers\n\t * The line numbers of the instructions in the method. The array\n\t * will be of size 0 if the method has no line number debug info.\n\t */\n\tpublic void setLineNumbers(LineNumberDebugInfo[] lineNumbers);\n\n\t/**\n\t * Get the local variable debug information for the method.\n\t * \n\t * @return The local variables in the method. The array will be of size 0 if\n\t * the method has no local variable debug info.\n\t */\n\tpublic LocalDebugInfo[] locals();\n\n\t/**\n\t * Set the local variables in the method.\n\t * \n\t * @param locals\n\t * The local variables in the method.\n\t */\n\tpublic void setLocals(LocalDebugInfo[] locals);\n\n\t/**\n\t * Get the exception handlers in the method.\n\t * \n\t * @return The exception handlers in the method.\n\t */\n\tpublic Catch[] exceptionHandlers();\n\n\t/**\n\t * Set the exception handlers in the method.\n\t * \n\t * @param exceptions\n\t * The exception handlers in the method.\n\t */\n\tpublic void setExceptionHandlers(Catch[] exceptions);\n\n\t/**\n\t * Creates a clone of this <tt>MethodInfo</tt> except that its declaring\n\t * class does not know about it.\n\t */\n\tpublic Object clone();\n}", "public String toString() {\n\t\treturn methodName;\n\t}", "@Override\n public String getMethodName() {\n return null;\n }", "MethodType getMethodType();", "public HttpMethod getMethod() {\n return method;\n }", "public String isMethod() {\n return isNameExpr;\n }", "public Method getTestMethod()\r\n {\r\n return method.getMethod();\r\n }", "public java.lang.String getMethodName() {\r\n\t\t\t\tjava.lang.Object ref = methodName_;\r\n\t\t\t\tif (!(ref instanceof java.lang.String)) {\r\n\t\t\t\t\tjava.lang.String s = ((com.google.protobuf.ByteString) ref)\r\n\t\t\t\t\t\t\t.toStringUtf8();\r\n\t\t\t\t\tmethodName_ = s;\r\n\t\t\t\t\treturn s;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn (java.lang.String) ref;\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\tpublic String getMethod() {\n\t\t\treturn null;\n\t\t}", "@Nullable @NotEmpty public String getMethod() {\n return StringSupport.trimOrNull(method);\n }", "public String getMethodName() {\n\t\t\treturn methodName;\n\t\t}", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getMethodName() {\n java.lang.Object ref = methodName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n methodName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "public String getMethodName() {\n return LOG_TAG + \":\" + this.getClass().getSimpleName() + \".\" + new Throwable().getStackTrace()[1].getMethodName();\n }", "@Override\n public int getMethod() {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"b89def63-26ff-4cb0-98cc-9b6cee3e0e29\");\n return method;\n }", "public static String getCurrentMethodName(){\n\t\tString s2 = Thread.currentThread().getStackTrace()[2].getMethodName();\n// System.out.println(\"s0=\"+s0+\" s1=\"+s1+\" s2=\"+s2);\n\t\t//s0=getStackTrace s1=getCurrentMethodName s2=run\n\t\treturn s2;\n\t}", "public static Method getMethod(String method) throws IllegalArgumentException {\n/* 119 */ return getMethod(method, false);\n/* */ }", "public String getCurrentMethodName () {\n String currentMethod = getCurrentElement(ElementKind.METHOD);\n if (currentMethod == null) return \"\";\n else return currentMethod;\n }", "public String methodInvoke() {\n\t\treturn \"1.1.1版本\";\n\t}", "protected Method getMethod(String mangledName)\n {\n return (Method) _methodMap.get(mangledName);\n }", "public int isMethod() {\n return isNameExpr;\n }", "private String getGetMethodName() {\n assert name != null;\n if (field != null && (field.getType() == Boolean.class\n || \"boolean\".equals(field.getType().getName()))) {\n return \"is\" + upperFirstChar(name);\n }\n return \"get\" + upperFirstChar(name);\n }", "public HttpMethod getMethod()\r\n/* 44: */ {\r\n/* 45: 78 */ return HttpMethod.valueOf(this.servletRequest.getMethod());\r\n/* 46: */ }", "public boolean isMethod() {\n return isNameExpr;\n }", "public interface MethodHandleInfo {\n\n\t/**\n\t * Getter MethodHandle for an instance field\n\t */\n\tstatic final int REF_getField = 1;\n\n\t/**\n\t * Getter MethodHandle for an static field\n\t */\n\tstatic final int REF_getStatic = 2;\n\n\t/**\n\t * Setter MethodHandle for an instance field\n\t */\n\tstatic final int REF_putField = 3;\n\n\t/**\n\t * Setter MethodHandle for an static field\n\t */\n\tstatic final int REF_putStatic = 4;\n\n\t/**\n\t * MethodHandle for an instance method\n\t */\n\tstatic final int REF_invokeVirtual = 5;\n\n\t/**\n\t * MethodHandle for a static method\n\t */\n\tstatic final int REF_invokeStatic = 6;\n\n\t/**\n\t * MethodHandle for an special method\n\t */\n\tstatic final int REF_invokeSpecial = 7;\n\n\t/**\n\t * MethodHandle for a constructor\n\t */\n\tstatic final int REF_newInvokeSpecial = 8;\n\n\t/**\n\t * MethodHandle for an interface method\n\t */\n\tstatic final int REF_invokeInterface = 9;\n\n\t/**\n\t * Returns the Class where the cracked MethodHandle's underlying method, field or constructor is declared.\n\t *\n\t * @return class that declares the underlying member\n\t */\n\tClass<?> getDeclaringClass();\n\n\t/**\n\t * Returns the simple name of the MethodHandle's underlying member.\n\t *\n\t * @return A string representing the name of the method or field, or \"&lt;init&gt;\" for constructor.\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the type of the MethodHandle's underlying member as a MethodType.\n\t * If the underlying member is non-static, the receiver parameter will not be included.\n\t * If the underlying member is field getter, the MethodType will take no parameters, and the return type will be the field type.\n\t * If the underlying member is field setter, the MethodType will take one parameter of the field type, and the return type will be void.\n\t *\n\t * @return A MethodType object representing the signature of the method or field\n\t */\n\tMethodType getMethodType();\n\n\t/**\n\t * Returns the modifiers of the MethodHandle's underlying member.\n\t *\n\t * @return An int representing the member's modifiers, or -1 if the underlying member is not accessible.\n\t */\n\tint getModifiers();\n\n\t/**\n\t * Returns the reference kind of the MethodHandle. The possible reference kinds are the declared MethodHandleInfo.REF fields.\n\t *\n\t * @return Returns one of the defined reference kinds which represent the MethodHandle kind.\n\t */\n\tint getReferenceKind();\n\n\t/**\n\t * Returns whether the MethodHandle's underlying method or constructor has variable argument arity.\n\t *\n\t * @return whether the underlying method has variable arity\n\t */\n\tdefault boolean isVarArgs() {\n\t\t// Check whether the MethodHandle refers to a Method or Contructor (not Field)\n\t\tif (getReferenceKind() >= REF_invokeVirtual) {\n\t\t\treturn ((getModifiers() & MethodHandles.Lookup.VARARGS) != 0);\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * Reflects the underlying member as a Method, Field or Constructor. The member must be accessible to the provided lookup object.\n\t * Public members are reflected as if by <code>getMethod</code>, <code>getField</code> or <code>getConstructor</code>.\n\t * Non-public members are reflected as if by <code>getDeclearedMethod</code>, <code>getDeclaredField</code> or <code>getDeclaredConstructor</code>.\n\t *\n\t * @param expected The expected type of the returned Member\n\t * @param lookup The lookup that was used to create the MethodHandle, or a lookup object with equivalent access\n\t * @return A Method, Field or Constructor representing the underlying member of the MethodHandle\n\t * @throws NullPointerException If either argument is null\n\t * @throws IllegalArgumentException If the underlying member is not accessible to the provided lookup object\n\t * @throws ClassCastException If the underlying member is not of the expected type\n\t */\n\t<T extends java.lang.reflect.Member> T reflectAs(Class<T> expected, MethodHandles.Lookup lookup);\n\n\t/**\n\t * Returns a string representing the equivalent bytecode for the referenceKind.\n\t *\n\t * @param referenceKind The referenceKind to lookup\n\t * @return a String representing the equivalent bytecode\n\t * @throws IllegalArgumentException If the provided referenceKind is invalid\n\t */\n\tstatic String referenceKindToString(int referenceKind) throws IllegalArgumentException {\n\t\tswitch(referenceKind) {\n\t\tcase REF_getField: \t\t\treturn \"getField\"; //$NON-NLS-1$\n\t\tcase REF_getStatic: \t\treturn \"getStatic\"; //$NON-NLS-1$\n\t\tcase REF_putField: \t\t\treturn \"putField\"; //$NON-NLS-1$\n\t\tcase REF_putStatic: \t\treturn \"putStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeVirtual: \treturn \"invokeVirtual\"; //$NON-NLS-1$\n\t\tcase REF_invokeStatic: \t\treturn \"invokeStatic\"; //$NON-NLS-1$\n\t\tcase REF_invokeSpecial: \treturn \"invokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_newInvokeSpecial: \treturn \"newInvokeSpecial\"; //$NON-NLS-1$\n\t\tcase REF_invokeInterface: \treturn \"invokeInterface\"; //$NON-NLS-1$\n\t\t}\n\t\t// K0582 = Reference kind \"{0\"} is invalid\n\t\tthrow new IllegalArgumentException(com.ibm.oti.util.Msg.getString(\"K0582\", referenceKind)); //$NON-NLS-1$\n\t}\n\n\t/**\n\t * Answers a string containing a concise, human-readable description of the receiver.\n\t *\n\t * @param kind the reference kind, one of the declared MethodHandleInfo.REF fields.\n\t * @param defc the class where the member is declared\n\t * @param name the name of the member\n\t * @param type the member's MethodType\n\t * @return a String of the format \"K C.N:MT\"\n\t */\n\tstatic String toString(int kind, Class<?> defc, String name, MethodType type) {\n\t\treturn referenceKindToString(kind) + \" \" + defc.getName() + \".\" + name + \":\" + type; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$\n\t}\n\n}", "private void isMethod() {\n ArrayAdapter<String> isVariable = new ArrayAdapter<>(this, isNameExpr.isFieldAccessExpr.isFieldAccessExpr, isNameExpr);\n isNameExpr.isMethod(isNameExpr);\n isNameExpr.isMethod((isParameter, isParameter, isParameter, isParameter) -> {\n isNameExpr = isNameExpr.isMethod(isNameExpr.isMethod(isNameExpr), isNameExpr);\n isMethod(isNameExpr);\n isNameExpr = isNameExpr;\n });\n }", "public com.palantir.paxos.persistence.generated.remoting.PaxosLearnerPersistence.LearnerMethodProto getMethod() {\n return method_;\n }", "public AnalysisMethod getAnalysisMethod() {\n return method;\n }", "private ELOperandToken readMethodToken() {\r\n \t\tfState = STATE_METHOD;\r\n \t\tint endOfToken = index;\r\n \t\t\r\n \t\t// read the method parameters\r\n \t\tif (!skipMethodParameters()) \r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t\r\n \t\t// skip spaces between the method's name and it's parameters\r\n \t\tif (!skipSpaceChars())\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t// read the method name\r\n \t\tif (!skipMethodName())\r\n \t\t\treturn ELOperandToken.EOF;\r\n \t\t\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), ELOperandToken.EL_METHOD_TOKEN) : ELOperandToken.EOF);\r\n \t}", "public Method getLoadedMethod() {\n return method;\n }", "public String getCheckMethod() {\r\n return checkMethod;\r\n }", "protected abstract MethodDescription accessorMethod();", "public com.palantir.paxos.persistence.generated.remoting.PaxosLearnerPersistence.LearnerMethodProto getMethod() {\n return method_;\n }", "com.palantir.paxos.persistence.generated.remoting.PaxosLearnerPersistence.LearnerMethodProto getMethod();", "MethodSynthesizer getMethodSynthesizer();", "public class_1661 method_2248() {\r\n return this.field_1820.method_6175();\r\n }", "@Override\n protected String getMethodName() {\n return suitename() + \"-\" + super.getMethodName();\n }", "public String method_374() {\r\n return this.field_8705.method_374();\r\n }" ]
[ "0.7487461", "0.7449966", "0.7449966", "0.7405633", "0.7399275", "0.7368203", "0.7267897", "0.7262881", "0.7249966", "0.7218663", "0.71860904", "0.71860904", "0.7170702", "0.71319556", "0.71167964", "0.711426", "0.7080614", "0.7077464", "0.70517206", "0.70517206", "0.70517206", "0.7025788", "0.7023958", "0.7007846", "0.6992183", "0.691145", "0.6714749", "0.6707054", "0.66088176", "0.66088176", "0.6488372", "0.6473744", "0.64585304", "0.644823", "0.6444604", "0.64421207", "0.64421207", "0.64421207", "0.64421207", "0.6409207", "0.64054257", "0.6372547", "0.63615113", "0.63615113", "0.6356901", "0.6338408", "0.6327891", "0.6319814", "0.62940204", "0.62940204", "0.6275463", "0.6272328", "0.6267659", "0.62590426", "0.6238185", "0.62200165", "0.6218352", "0.6218352", "0.62021554", "0.61954206", "0.6173531", "0.6172388", "0.616367", "0.61599743", "0.61573404", "0.61526203", "0.61341625", "0.612094", "0.60981303", "0.6092766", "0.60892147", "0.6082224", "0.6082224", "0.60618", "0.60339046", "0.5998642", "0.59968257", "0.5988809", "0.5977261", "0.5974086", "0.5960216", "0.59510267", "0.5934717", "0.59089875", "0.59018177", "0.58922666", "0.5889214", "0.58873016", "0.5876709", "0.5858742", "0.5858248", "0.585103", "0.5845507", "0.5836796", "0.583244", "0.58141035", "0.5812405", "0.58044267", "0.580053" ]
0.73257124
7
TODO Autogenerated method stub
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { this.doPost(request, response); }
{ "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 Integer deleteByPrimaryKey(Integer id) { return filteringMapper.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
TODO Autogenerated method stub
@Override public Integer insert(Filtering record) { return filteringMapper.insert(record); }
{ "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 Integer insertSelective(Filtering record) { return filteringMapper.insertSelective(record); }
{ "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 Filtering selectByPrimaryKey(Integer id) { return filteringMapper.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 Integer updateByPrimaryKeySelective(Filtering record) { return filteringMapper.updateByPrimaryKeySelective(record); }
{ "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 Integer updateByPrimaryKey(Filtering record) { return filteringMapper.updateByPrimaryKey(record); }
{ "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<Filtering> selectByAll() { return filteringMapper.selectByAll(); }
{ "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 Integer getFiltering(String sn, String mac, String model) { return filteringMapper.getFiltering(sn, mac, model); }
{ "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 Integer countFiltering(Map<String, Object> map) { return filteringMapper.countFiltering(map); }
{ "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
Launch the application. Create the application.
public RegCita() { initialize(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void launchApp();", "public static void main(String[] args) {\n // Create the system.\n Application.launch( args );\n }", "public static void main(String[] args) \r\n\t {\r\n\t\tApplication.launch(args);\r\n\t }", "public static void main(String[] args){\r\n //Launch the JavaFX app\r\n Application.launch(args);\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tApplication.launch(args);\n\t\t\n\t\t\n\t\t\n\n\t}", "public static void main(String[] args) {\n\n Application.launch(args);\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args); // Not needed for running from the command line\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tApplication.launch(args);\r\n\t}", "public static void main(String[] args) {\n Application.launch(args);\n }", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(args);\n\t}", "public void startApp()\r\n\t{\n\t}", "public static void main(final String... args) {\n\n Application.launch();\n }", "public void start() {\n\t\tSystem.out.println(\"Starting new application\");\n\t\texec.init(this);\n\t\tthread = new Thread(this);\n\t\trunning = true;\n\t\tgd.setFullScreenWindow(screen.getFrame());\n\t\tscreen.getFrame().setVisible(true);\n\t\tthread.start();\n\t}", "public static void main(String[] args) {\n Application.launch(App.class, args);\n }", "void launch();", "void launch();", "void launch();", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet();\n } else {\n initialize();\n startMIDlet();\n }\n midletPaused = false;\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public void startApp() {\n if (midletPaused) {\n resumeMIDlet ();\n } else {\n initialize ();\n startMIDlet ();\n }\n midletPaused = false;\n }", "public void startApp() {\n\n\t\tboolean isContinue = true;\n\t\tint i = 0;\n\t\twhile (isContinue) {\n\t\t\ti = displayAppMenu();\n\t\t\texecuteMenuItem(i);\n\n\t\t\tif (i == APP_EXIT) {\n\t\t\t\tisContinue = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void startApplication() {\n\t\tgameView = new GameGUI(this);\n\t\t\n\t\t/*\n\t\t * Create bonus GUI now.\n\t\t * TODO: Use swing worker thread to create bonus GUI\n\t\t * \t\t that way if GUI had more bells and whistles to it\n\t\t * \t\t the bonus GUI creation wouldn't take up processing time\n\t\t * \t\t on the main thread.\n\t\t */\n\t\tcreateBonusGUI();\n\t\t\n\t\t//GUI created and ready to show to the user\n\t\tgameView.allowVisibility();\n\t\tGameSounds.startBackgroundMusic();\n\t}", "public static void main(String... args) {\n\t\tApplication.launch(View.class, args);\n\t}", "@Test\n @RunIn(TestGroup.QA_UNRELIABLE)\n public void importAndRunInstantApp() throws Exception {\n String runConfigName = \"topekabundle\";\n IdeFrameFixture ideFrame = guiTest.importProjectAndWaitForProjectSyncToFinish(\"TopekaInstantApp\");\n\n String avdName = EmulatorGenerator.ensureAvdIsCreated(\n ideFrame.invokeAvdManager(),\n new AvdSpec.Builder()\n .setSystemImageGroup(AvdSpec.SystemImageGroups.X86)\n .setSystemImageSpec(O_AVD_IMAGE)\n .build()\n );\n\n ideFrame.runApp(runConfigName, avdName);\n\n Pattern CONNECTED_APP_PATTERN = Pattern.compile(\".*Connected to process.*\", Pattern.DOTALL);\n\n ExecutionToolWindowFixture.ContentFixture runWindow = ideFrame.getRunToolWindow().findContent(runConfigName);\n runWindow.waitForOutput(new PatternTextMatcher(CONNECTED_APP_PATTERN), TimeUnit.MINUTES.toSeconds(2));\n\n runWindow.waitForStopClick();\n }", "public static void main(String[] args) {\n launch(RestaurantManagementApp.class, args);\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tApplication.launch(TamaView.class, args);\n\n\t}", "private void launchMain() {\n\t\tfinal Intent i = new Intent(this, MainActivity.class);\n\t\tstartActivity(i);\n\t}", "public static void main(String[] args) {\r\n\t launch(args); \r\n \r\n}", "public LocalAppLauncher() {\n }", "public static void main(String[] args) {\n\t\tlaunch(PhotoFlowApplication.class, args);\n\t}", "public static void main(String[] args) {\n launch(BlaiseGraphicsTestApp.class, args);\n }", "public static void main( String[] args) {\n\t\t// this method start the javaFX application.\n\t\t// some IDEs are capable of starting JavaFX without this method.\n\t\tlaunch( args);\n\t}", "public static void main(String[] args) {\n // Start App\n EventQueue.invokeLater(new Runnable() {\n @Override\n public void run() { new App(); }\n });\n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public void launchProcWindow() {\n\t\t\n\t\ttry {\n\t\t\tdbProcRoot = new ProcController(this);\n\t\t\tScene scene = new Scene(dbProcRoot.getRootView(), 640, 480);\n\t\t\tmainStage.setScene(scene);\n\t\t} catch(IOException e ) {\n\t\t\tsendConnectionError(e.toString(), true);\n\t\t}\n\t}", "public void open() {\n\t\ttry {\n\t\t\tdisplay = Display.getDefault();\n\t\t\tcreateContents();\n\t\t\tcreateTray(display);\t//system tray\n\t\t\tshell.open();\n\t\t\tshell.layout();\n\t\t\twhile (!shell.isDisposed()) {\n\t\t\t\tthis.setAppEnd(true);\n\t\t\t\tif (!display.readAndDispatch()) {\n\t\t\t\t\tdisplay.sleep();\n\t\t\t\t}\n\t\t\t}\n\t\t\tterminarPWs(); //cerrar todos los trabajos de impresion que hay dando vueltas por ahi.\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\tSystem.out.print(e.getMessage());\n\t\t}\n\t}", "public static void main(String[] args) {\n //launch it\n launch();\n }", "public static void main(String[] args) {\n launch(GretellaApp.class, args);\n }", "public SimpleWorkspaceApplication (String[] args) {\n super (args, false);\n Frame f;\n commandHandler = new ApplicationCommandHandler ();\n MenuBar mb = setupMenu ();\n String title = getTitleInformation ();\n setCurrentFrame (f = new Frame (title != null ? title : \"Simple Workspace Application\"));\n f.setMenuBar (mb);\n String geometry = getGeometryInformation ();\n if (geometry == null)\n f.setBounds (0, 0, 600, 400);\n else {\n Rectangle desiredBounds = parseBounds (geometry);\n f.setBounds (desiredBounds.x, desiredBounds.y, desiredBounds.width, desiredBounds.height);\n }\n\n f.add (multiWkspView = new MultipleWorkspaceView (), BorderLayout.CENTER);\n f.addWindowListener(new WindowAdapter() {\n @Override\n public void windowClosing(WindowEvent e) {\n\tSystem.exit(0);\n }\n });\n }", "public static void main(String[] args) {\n\t\tGameEnvironment runningGame = new GameEnvironment();\n\t\trunningGame.launchStartupScreen();\n\t}", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "protected void startApp() throws MIDletStateChangeException {\n\t\tform = new Form(\"Welcome\");\r\n\t\tform.append(\"Welcome to demo app\");\r\n\t\tdisplay = Display.getDisplay(this);\r\n\t\tdisplay.setCurrent(form);\r\n\t}", "public void open() {\n display = Display.getDefault();\n createContents();\n shell.open();\n shell.layout();\n while (!shell.isDisposed()) {\n if (!display.readAndDispatch()) {\n display.sleep();\n }\n }\n\n // programme stop with exit 0\n System.exit(0);\n\n }", "public void startApp() {\r\n\t\ttry {\r\n\t\t\tFXMLLoader loader;\r\n\t\t\t// load the FXML resource\r\n\t\t\tif (isRegister) {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeRegister.fxml\", new BorderPane(), \"Register\");\r\n\t\t\t\tHomeRegisterController regiController = loader.getController();\r\n\t\t\t\tregiController.setMain(this);\r\n\t\t\t} else {\r\n\t\t\t\tloader = changeScreen(\"/view/HomeIdentification.fxml\", new BorderPane(), \"Identification\");\r\n\t\t\t\tHomeIdentificationController identiController = loader.getController();\r\n\t\t\t\tidentiController.setMain(this);\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n launch(args);\r\n \r\n }", "public static void launchingBrowser() throws Exception {\n\n\t\tString applicationURL = merchEnv.getProtocol() + \"://\"\n\t\t\t\t+ merchEnv.getHost() + \":\" + merchEnv.getPort() + \"/\";\n\t\tselectedBrowser = merchEnv.getBrowser();\n\t\ttry {\n\t\t\tbaseScreen = new BaseScreen(selectedBrowser, applicationURL,\n\t\t\t\t\tmerchEnv.getContext(), merchEnv, merchUserInfo, merchUI);\n\t\t} catch (ScreenException e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void main(String[] args)\n {\n new Launcher();\n }", "public void launch() {\n m_frame.pack();\n m_frame.setVisible(true);\n }", "public static void main(String[] args) {\n launch(args); \n }", "public static void main(String[] args) throws Exception {\n Path selfPath = Paths.get(TestBrowser.class.getProtectionDomain().getCodeSource().getLocation().toURI());\n ModuleFinder finder = ModuleFinder.of(\n Paths.get(System.getProperty(\"javafx.sdk.path\")),\n selfPath\n );\n\n // Load the application as a named module and invoke it\n ModuleLayer parent = ModuleLayer.boot();\n Configuration cf = parent.configuration().resolve(finder, ModuleFinder.of(), Set.of(\"ReproduceOpenjfxCrash2\"));\n ClassLoader scl = ClassLoader.getSystemClassLoader();\n ModuleLayer layer = parent.defineModulesWithOneLoader(cf, scl);\n Class appClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"javafx.application.Application\");\n Class testClass = layer.findLoader(\"ReproduceOpenjfxCrash2\").loadClass(\"eu.doppel_helix.dev.jdk.reproducecrash.TestBrowserImpl\");\n Method launchMethod = appClass.getMethod(\"launch\", Class.class, String[].class);\n launchMethod.invoke(null, new Object[]{testClass, args});\n }", "public static void main(String[] args)\n {\n launch(args);\n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void launch(String[] args)\n {\n launch_WIN(filter(args));\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main (String[] args) {\n launch(args);\n }", "public static void main(String args[]) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tnew AppStarter();\n\t\t\t}\n\t\t});\t\n\t}", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "public static void main(String[] args) {\r\n launch(args);\r\n }", "@Override\n protected final void startApplication() throws Exception {\n if (!checkSimulationDirectory()) {\n // There is no path and it is either not possible to set a path or the user aborted the corresponding dialog.\n System.exit(0);\n }\n \n MessageDialog.getInstance();\n \n try {\n SwingUtilities.invokeAndWait(() -> {\n try{\n initializeComponentContainer();\n } catch(Exception e){\n MessageDialog.getInstance().message(\"Exception while initializing component container: \" + e.getMessage());\n }\n });\n } catch (InterruptedException | InvocationTargetException e) {\n throw new Exception(\"Exception during startup.\", e);\n }\n createMainClass();\n }", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public static void main(String[] args) {\n\t launch(args);\n\t }", "public abstract void start(String[] args, Window window);", "public static void main(String[] args) {\n launch(MIDLetParamsApp.class, args);\n }", "public static void main(String[] args) {\r\n\t launch(args);\r\n\t}", "public static void main (String[] args) {\n SimpleWorkspaceApplication applcn = new SimpleWorkspaceApplication (args);\n applcn.getCurrentFrame().setVisible (true);\n }", "public static void main(String[] args) {\n launch(args);\n\n }", "public static void main(String[] args) {\n\n launch(args);\n }", "public static void main(String... args) throws IllegalAccessException, InstantiationException {\n parseArgs(ArgFilters.SELECT_ALL, Arrays.asList(args));\n new AppLauncher().run(APP_CLASS.get().newInstance());\n }", "public static void main(String[] args) {\n\t\tApplication.launch(Main.class, args);\n\t}", "public static void main(String[] args) {\n GameApplication application = new GameApplication();\n application.startApplication(args);\n }", "public static void main(String[] args)\r\n {\r\n launch(args);\r\n }", "public static void main(String[] args) {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n try {\n new LaunchGame().setVisible(true);\n } catch (IOException ex) {\n Logger.getLogger(LaunchGame.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n });\n }", "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 static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }", "public static void main(String[] args) {\n launch(args);\n }" ]
[ "0.7436104", "0.7024689", "0.669061", "0.66294146", "0.661498", "0.66077507", "0.6557844", "0.65565175", "0.65478927", "0.654669", "0.65287817", "0.65287817", "0.65202075", "0.64732826", "0.64714766", "0.6448685", "0.6383627", "0.6383627", "0.6383627", "0.6352159", "0.63314295", "0.63314295", "0.63252175", "0.6206424", "0.6163229", "0.6158495", "0.61516947", "0.6150253", "0.6150253", "0.6150253", "0.61290073", "0.611511", "0.6080299", "0.605576", "0.6055695", "0.6015722", "0.5981499", "0.59638625", "0.5955368", "0.5955368", "0.5955368", "0.5955368", "0.5955368", "0.59536296", "0.594604", "0.5937809", "0.59313154", "0.5927255", "0.5922297", "0.5917488", "0.59163994", "0.59163994", "0.59163994", "0.59133095", "0.59082717", "0.589748", "0.5894685", "0.5887841", "0.58844376", "0.58832943", "0.58776855", "0.5876367", "0.5871924", "0.5871122", "0.5868603", "0.58643895", "0.58571136", "0.58571136", "0.58571136", "0.58571136", "0.58571136", "0.58571136", "0.5847449", "0.5847426", "0.58395416", "0.58395416", "0.58395416", "0.58395416", "0.58395416", "0.58395416", "0.58395416", "0.5825707", "0.5825291", "0.5825291", "0.5824361", "0.58158517", "0.58125824", "0.5811546", "0.5809973", "0.58096766", "0.58056664", "0.5804466", "0.5798893", "0.5790971", "0.57808673", "0.5780237", "0.57779866", "0.57779866", "0.57779866", "0.57779866", "0.57779866" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.setBounds(100, 100, 695, 385); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); JPanel panel = new JPanel(); frame.getContentPane().add(panel, BorderLayout.CENTER); panel.setLayout(null); JPanel panel_1 = new JPanel(); panel_1.setBounds(6, 6, 472, 121); panel.add(panel_1); panel.setLayout(null); panel_1.setBorder(new TitledBorder(null, "Datos Generales", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_1.setLayout(null); JLabel lblNombre = new JLabel("Nombre:"); lblNombre.setBounds(6, 21, 61, 16); panel_1.add(lblNombre); JLabel lblApellido = new JLabel("Apellido:"); lblApellido.setBounds(6, 49, 61, 16); panel_1.add(lblApellido); JLabel lblCedula = new JLabel("Cedula:"); lblCedula.setBounds(6, 77, 61, 16); panel_1.add(lblCedula); textField = new JTextField(); textField.setBounds(79, 16, 130, 26); panel_1.add(textField); textField.setColumns(10); textField_1 = new JTextField(); textField_1.setBounds(79, 44, 130, 26); panel_1.add(textField_1); textField_1.setColumns(10); textField_2 = new JTextField(); textField_2.setBounds(79, 72, 130, 26); panel_1.add(textField_2); textField_2.setColumns(10); JLabel lblEdad = new JLabel("Edad:"); lblEdad.setBounds(221, 21, 61, 16); panel_1.add(lblEdad); JLabel lblEstadoCivil = new JLabel("Estado Civil:"); lblEstadoCivil.setBounds(221, 49, 86, 16); panel_1.add(lblEstadoCivil); JComboBox comboBox = new JComboBox(); comboBox.setModel(new DefaultComboBoxModel(new String[] {"<Seleccione>", "Casado", "Soltero"})); comboBox.setBounds(308, 48, 147, 20); panel_1.add(comboBox); JSpinner spinner = new JSpinner(); spinner.setBounds(308, 16, 46, 26); panel_1.add(spinner); JPanel panel_2 = new JPanel(); panel_2.setBounds(6, 139, 423, 180); panel.add(panel_2); panel_2.setBorder(new TitledBorder(null, "Fecha y Hora", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_2.setLayout(null); JCalendar calendar = new JCalendar(); calendar.setBounds(10, 26, 305, 137); panel_2.add(calendar); JLabel lblHora = new JLabel("Hora:"); lblHora.setBounds(327, 26, 61, 16); panel_2.add(lblHora); JSpinner spinner_1 = new JSpinner(); spinner_1.setBounds(327, 54, 42, 26); panel_2.add(spinner_1); JSpinner spinner_2 = new JSpinner(); spinner_2.setBounds(327, 92, 42, 26); panel_2.add(spinner_2); JLabel lblNewLabel = new JLabel("Hr"); lblNewLabel.setBounds(381, 59, 36, 16); panel_2.add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("Min"); lblNewLabel_1.setBounds(381, 97, 36, 16); panel_2.add(lblNewLabel_1); JPanel panel_3 = new JPanel(); panel_3.setBorder(new TitledBorder(null, "Motivo de cita", TitledBorder.LEADING, TitledBorder.TOP, null, null)); panel_3.setBounds(453, 139, 236, 180); panel.add(panel_3); panel_3.setLayout(null); JTextArea textArea = new JTextArea(); textArea.setBounds(6, 29, 224, 145); panel_3.add(textArea); JButton btnNewButton = new JButton("Cancel"); btnNewButton.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { frame.dispose(); } }); btnNewButton.setBounds(572, 328, 117, 29); panel.add(btnNewButton); JButton btnNewButton_1 = new JButton("Confirmar"); btnNewButton_1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { } }); btnNewButton_1.setBounds(443, 328, 117, 29); panel.add(btnNewButton_1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
ProvisioningService registers and deregisters physical and virtual resources that the management server can use.
public interface ProvisioningService { StorageEntity registerStorage(String name, List<String> tags, Map<String, String> details); ZoneEntity registerZone(String zoneUuid, String name, String owner, List<String> tags, Map<String, String> details); PodEntity registerPod(String podUuid, String name, String owner, String zoneUuid, List<String> tags, Map<String, String> details); ClusterEntity registerCluster(String clusterUuid, String name, String owner, List<String> tags, Map<String, String> details); HostEntity registerHost(String uuid, String name, String owner, List<String> tags, Map<String, String> details); void deregisterStorage(String uuid); void deregisterZone(String uuid); void deregisterPod(String uuid); void deregisterCluster(String uuid); void deregisterHost(String uuid); void changeState(String type, String entity, Status state); List<Host> listHosts(); List<PodEntity> listPods(); List<ZoneEntity> listZones(); List<StoragePool> listStorage(); ZoneEntity getZone(String id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean registerNewResource(API api, Map resourceAttributes) throws APIManagementException {\n\n return true;\n }", "@Host(\"{$host}\")\n @ServiceInterface(name = \"ComputeManagementCli\")\n private interface VirtualMachineScaleSetVMsService {\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimage\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> reimage(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") VirtualMachineScaleSetVMReimageParameters vmScaleSetVMReimageInput,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/reimageall\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> reimageAll(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/deallocate\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> deallocate(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Put(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> update(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") VirtualMachineScaleSetVMInner parameters,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Delete(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200, 202, 204})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> delete(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMInner>> get(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"$expand\") InstanceViewTypes expand,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/instanceView\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMInstanceViewInner>> getInstanceView(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMListResult>> list(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"virtualMachineScaleSetName\") String virtualMachineScaleSetName,\n @QueryParam(\"$filter\") String filter,\n @QueryParam(\"$select\") String select,\n @QueryParam(\"$expand\") String expand,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> powerOff(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"skipShutdown\") Boolean skipShutdown,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> restart(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> start(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> redeploy(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ApiErrorException.class)\n Mono<Response<RetrieveBootDiagnosticsDataResultInner>> retrieveBootDiagnosticsData(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"sasUriExpirationTimeInMinutes\") Integer sasUriExpirationTimeInMinutes,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> performMaintenance(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Accept: application/json;q=0.9\", \"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction\")\n @ExpectedResponses({204})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Void>> simulateEviction(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Post(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute\"\n + \"/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand\")\n @ExpectedResponses({200, 202})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<Flux<ByteBuffer>>> runCommand(\n @HostParam(\"$host\") String endpoint,\n @PathParam(\"resourceGroupName\") String resourceGroupName,\n @PathParam(\"vmScaleSetName\") String vmScaleSetName,\n @PathParam(\"instanceId\") String instanceId,\n @QueryParam(\"api-version\") String apiVersion,\n @PathParam(\"subscriptionId\") String subscriptionId,\n @BodyParam(\"application/json\") RunCommandInput parameters,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n\n @Headers({\"Content-Type: application/json\"})\n @Get(\"{nextLink}\")\n @ExpectedResponses({200})\n @UnexpectedResponseExceptionType(ManagementException.class)\n Mono<Response<VirtualMachineScaleSetVMListResult>> listNext(\n @PathParam(value = \"nextLink\", encoded = true) String nextLink,\n @HostParam(\"$host\") String endpoint,\n @HeaderParam(\"Accept\") String accept,\n Context context);\n }", "@Override\n protected void reconfigureService() {\n }", "private void releaseObjects() {\n if (fPermStorage != null) {\n Iterator<IJavaObject> iterator = fPermStorage.iterator();\n while (iterator.hasNext()) {\n IJavaObject object = iterator.next();\n try {\n object.enableCollection();\n } catch (CoreException e) {\n if ((e.getStatus().getException() instanceof VMDisconnectedException)) {\n break;\n }\n JDIDebugPlugin.log(e);\n }\n }\n fPermStorage = null;\n }\n }", "public interface VirtualisedNetworkResourceManagementInterface {\n\n /**\n * This operation allows an authorized consumer functional block to request the allocation of\n * virtualised network resources as indicated by the consumer functional block.\n *\n * @param allocateNetworkRequest\n * @return allocateNetworkResponse\n */\n AllocateNetworkResponse allocateVirtualisedNetworkResource(\n AllocateNetworkRequest allocateNetworkRequest, PoP poP) throws AdapterException;\n\n /**\n * This operation allows querying information about instantiated virtualised network resources.\n *\n * @param queryNetworkRequest\n * @return queryNetworkResponse\n */\n QueryNetworkResponse queryVirtualisedNetworkResource(\n QueryNetworkRequest queryNetworkRequest, PoP poP) throws AdapterException;\n\n /**\n * This operation allows updating the information of an instantiated virtualised network resource.\n *\n * @param updateNetworkRequest\n * @return updateNetworkResponse\n */\n UpdateNetworkResponse updateVirtualisedNetworkResource(\n UpdateNetworkRequest updateNetworkRequest, PoP poP);\n\n /**\n * This operation allows de-allocating and terminating one or more instantiated virtualised\n * network resource(s). When the operation is done on multiple ids, it is assumed to be\n * best-effort, i.e. it can succeed for a subset of the ids, and fail for the remaining ones.\n *\n * @param terminateNetworkRequest\n * @return terminateNetworkResponse\n */\n TerminateNetworkResponse terminateVirtualisedNetworkResource(\n TerminateNetworkRequest terminateNetworkRequest, PoP poP) throws AdapterException;\n}", "@Override\n public void clearAllRegistrations()\n {\n writeRegistryStoreProperties(null);\n }", "public synchronized void releaseServices()\n\t{\n\t\tsvcDelegate.releaseServices();\n\t}", "@Override\n public boolean shutdownProviderInstances(PhysicalNetworkServiceProvider provider, ReservationContext context) throws ConcurrentOperationException,\n ResourceUnavailableException {\n return true;\n }", "protected abstract void deAllocateNativeResource();", "public synchronized void start(String hostname, Registration naming_server)\n throws RMIException, UnknownHostException, FileNotFoundException\n {\n if( !root.isDirectory() || !root.exists() ) {\n throw new FileNotFoundException(\"Server root not found or is not a directory\");\n }\n storage.start();\n command.start();\n \n // Wait for it to start?\n\n Path[] serverFiles = naming_server.register(\n Stub.create(Storage.class, storage, hostname),\n Stub.create(Command.class, command, hostname),\n Path.list(root));\n\n // Storage Server startup deletes all duplicate files on server.\n for(Path p : serverFiles) {\n p.toFile(root).delete();\n File parent = new File(p.toFile(root).getParent());\n \n while(!parent.equals(root)) {\n if(parent.list().length == 0) {\n parent.delete();\n } else {\n break;\n }\n parent = new File(parent.getParent());\n }\n } \n }", "public void hardwareResources() {\n\t\t\r\n\t}", "public abstract void unregister();", "public void setProvisioning(Boolean provisioning) {\r\n this.provisioning = provisioning;\r\n }", "@Override\n @POST\n @Path(\"/vms\")\n @Consumes(\"application/json\")\n public Response registerVM(String requestBody) throws Exception {\n if (log.isTraceEnabled()) {\n log.trace(\"registerVM() started. Data: \" + requestBody);\n }\n\n Vm vm;\n try {\n JSONObject json = new JSONObject(requestBody);\n String vmURI = json.getString(\"vmURI\");\n Pattern uriPattern = Pattern.compile(\n String.format(\"^/providers/%d/vms/(\\\\d+)$\", provider.getProviderId()));\n Matcher m = uriPattern.matcher(vmURI);\n if (!m.find()) {\n throw new Exception(\"Invalid VM URI: \" + vmURI);\n }\n int vmId = Integer.parseInt(m.group(1));\n vm = VmDAO.findById(provider, vmId);\n if (vm == null) {\n throw new Exception(String.format(\"VM '%s' not found.\", vmURI));\n }\n }\n catch (Exception e) {\n throw new WebApplicationException(\n Response.status(Response.Status.BAD_REQUEST).entity(e.getMessage()).build());\n }\n\n EntityManager em = PersistenceUtils.getInstance().getEntityManager();\n\n try {\n if (!cluster.getVmList().contains(vm)) {\n em.getTransaction().begin();\n vm.getClusterList().add(cluster);\n cluster.getVmList().add(vm);\n vm = em.merge(vm);\n cluster = em.merge(cluster);\n em.getTransaction().commit();\n }\n // no problem if VM is already registered\n\n URI resourceUri = new URI(String.format(\"/%d\", vm.getVmId()));\n log.trace(\"registerVM() finished successfully.\");\n return Response.created(resourceUri).build();\n }\n finally {\n PersistenceUtils.getInstance().closeEntityManager(em);\n }\n }", "void handleNewResource() {\n System.out.println(\"Here at VMLeaseProcessor#handleNewResource\");\n callForBackup();\n resourceManager.createRedundant();\n }", "@Produces(MediaType.APPLICATION_JSON)\n@Path(\"/stores/{store_id}/register\")\npublic interface RegisterResource {\n\n /**\n * GET endpoint for <code>Register</code> entity with given id.\n * \n * @param registerId <code>Register</code> entity id\n * @return <code>Response</code> object which holds response status \n * code and representation of <code>Register</code> entity\n */\n @GET\n @Path(\"/{register_id}\")\n Response getRegisterById(@PathParam(\"register_id\") Long registerId);\n\n /**\n * Creates endpoint for <code>Register</code> entity.\n * \n * @param registerDto <code>Register</code> data transfer object to which request\n * payload will be mapped to\n * @param storeId <code>Store</code> id to which <code>Register</code> entity\n * relates to\n * @param uriInfo an object that provides access to application and request URI\n * information\n * @return <code>Response</code> object which holds representation of saved\n * <code>Register</code> entity, response status code and URI of\n * newly created entity\n */\n @POST\n @Consumes(MediaType.APPLICATION_JSON)\n Response create(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @Context UriInfo uriInfo);\n\n /**\n * Update endpoint for <code>Register</code> entity.\n * \n * @param registerDto <code>Register</code> data transfer object to which request\n * payload data will be mapped to\n * @param registerId id of <code>Register</code> entity to be updated\n * @return <code>Response</code> object containing representation of \n * updated <code>Store</code> entity and response status code\n */\n @PUT\n @Path(\"/{register_id}\")\n @Consumes(MediaType.APPLICATION_JSON)\n Response update(@Valid @NotNull RegisterDTO registerDto, @PathParam(\"store_id\") Long storeId, @PathParam(\"register_id\") Long registerId);\n\n /**\n * Delete endpoint for <code>Register</code> entity.\n * \n * @param registerId id of <code>Register</code> entity to be deleted\n * @return <code>Response</code> object containing response status code\n */\n @DELETE\n @Path(\"/{register_id}\")\n Response delete(@PathParam(\"register_id\") Long registerId);\n\n}", "private void unregister() {\n Intent regIntent = new Intent(REQUEST_UNREGISTRATION_INTENT);\n regIntent.setPackage(GSF_PACKAGE);\n regIntent.putExtra(\n EXTRA_APPLICATION_PENDING_INTENT, PendingIntent.getBroadcast(context, 0, new Intent(), 0));\n setUnregisteringInProcess(true);\n context.startService(regIntent);\n }", "public void destroyHazelcastResources() {\n publishers.destroy();\n subscribers.destroy();\n registerCount.destroy();\n publishersStreamingFlags.destroy();\n }", "private static void deployStaticHEResources(String targetDir, boolean bootstrappingEnabled) throws URISyntaxException, IOException{\r\n \t\r\n\t\tClassLoader loader = ServiceGenerator.class.getClassLoader();\r\n\t\tURI jniInterfaceFilePath = loader.getResource(Constants.HE_SERVICE_RESOURCES_FOLDER \r\n\t\t\t\t+ Constants.SERVICE_JNI_INTERFACE_FILE_NAME).toURI();\r\n\t\tURI jniInterfaceHeaderFilePath = loader.getResource(Constants.HE_SERVICE_RESOURCES_FOLDER \r\n\t\t\t\t+ Constants.SERVICE_JNI_INTERFACE_HEADER_FILE_NAME).toURI();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tFile origJniInterfaceFile = new File(jniInterfaceFilePath);\r\n\t\tFile newJniInterfaceFile = new File(targetDir + origJniInterfaceFile.getName());\r\n\t\t\r\n\t\tFile origJniInterfaceHeaderFile = new File(jniInterfaceHeaderFilePath);\r\n\t\tFile newJniInterfaceHeaderFile = new File(targetDir + origJniInterfaceHeaderFile.getName());\r\n\t\t\t\t\t\t\r\n\t\t \t\t\r\n\t\tUtils.deployStaticResource(origJniInterfaceFile, newJniInterfaceFile);\r\n\t\tUtils.deployStaticResource(origJniInterfaceHeaderFile, newJniInterfaceHeaderFile);\r\n }", "private void registerSvcsForOrg(String subOrgName, String subOrgDN)\n {\n try {\n Set defaultServices =\n ServiceManager.servicesAssignedByDefault();\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\"OrganizationConfigManager::\"+\n \"registerSvcsForOrg. \"+\n \"defaultServices : \" + defaultServices);\n }\n \n // Register the default services to the newly created orgs,so\n // they will be marked with the OC sunRegisteredServiceName.\n if (defaultServices != null) {\n Set assignedServices = amsdk.getAssignedServices();\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\"OrganizationConfigManager::\" +\n \"registerSvcsForOrg:assignedServices: \" +\n assignedServices);\n }\n Iterator items = defaultServices.iterator();\n String serviceName = null;\n if (SMSEntry.getRootSuffix().equalsIgnoreCase(\n SMSEntry.getAMSdkBaseDN())) {\n amsdk = new OrgConfigViaAMSDK(token,\n orgNamingAttrInLegacyMode + SMSEntry.EQUALS +\n subOrgName + SMSEntry.COMMA +\n DNMapper.realmNameToAMSDKName(orgDN), subOrgDN);\n } else {\n amsdk = new OrgConfigViaAMSDK(token,\n orgNamingAttrInLegacyMode + SMSEntry.EQUALS +\n subOrgName + SMSEntry.COMMA + amSDKOrgDN, subOrgDN);\n }\n while (items.hasNext()) {\n serviceName = (String) items.next();\n if (assignedServices.contains(serviceName)) {\n if (SMSEntry.debug.messageEnabled()) {\n SMSEntry.debug.message(\n \"OrganizationConfigManager::\"+\n \"registerSvcsForOrg:ServiceName : \" +\n serviceName);\n }\n amsdk.assignService(serviceName);\n }\n }\n }\n } catch (SMSException smse) {\n // Unable to load default services\n if (SMSEntry.debug.warningEnabled()) {\n SMSEntry.debug.warning(\"OrganizationConfigManager::\" +\n \"registerSvcsForOrg. \" +\n \"SMSException in registering services: \", smse);\n }\n }\n }", "void unregisterAll();", "public void clean(){\n\t\tsynchronized(this.lock){\n\t\t\tint index=0;\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\tif(!resourceStatus.isInUse()){\n\t\t\t\t\t\tlong lastTime=resourceStatus.getLastNotInUseTime();\n\t\t\t\t\t\tlong currentTime=System.currentTimeMillis();\n\t\t\t\t\t\tT resource=resourceStatus.getResource();\n\t\t\t\t\t\tif((currentTime-lastTime)>=this.resourceAliveTime){\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tdestroyResource(resource);\n\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\tlogger.error(Constants.Base.EXCEPTION, e);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tthis.resourcesStatus[index]=null;\n\t\t\t\t\t\t\tthis.currentSize--;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tindex++;\n\t\t\t}\n\t\t}\n\t}", "public void provision(Path provisioningXml) throws ProvisioningException {\n provision(provisioningXml, Collections.emptyMap());\n }", "@Override\n protected void onUnregistered() throws RemoteException {\n\n }", "@Override\n @DELETE\n @Path(\"/vms/{id}\")\n @Produces(\"application/json\")\n public Response unregisterVM(@PathParam(\"id\") int id) throws JSONException {\n if (log.isTraceEnabled()) {\n log.trace(String.format(\"unregisterVM(%d) started.\", id));\n }\n\n for (Vm vm : cluster.getVmList()) {\n if (vm.getVmId() == id) {\n EntityManager em = PersistenceUtils.getInstance().getEntityManager();\n try {\n em.getTransaction().begin();\n vm.getClusterList().remove(cluster);\n cluster.getVmList().remove(vm);\n vm = em.merge(vm);\n cluster = em.merge(cluster);\n em.getTransaction().commit();\n\n return Response.status(Response.Status.NO_CONTENT).build();\n }\n finally {\n PersistenceUtils.getInstance().closeEntityManager(em);\n }\n }\n }\n\n log.trace(\"VM is not registered at given cluster.\");\n throw new WebApplicationException(Response.Status.NOT_FOUND);\n }", "ProvisionProductResult provisionProduct(ProvisionProductRequest provisionProductRequest);", "public void reload() throws HpcException {\n\tif(useSecretsManager) {\n\t\trefreshAwsSecret();\n\t}\n initSystemAccountsData();\n initDataTransferAccountsData();\n this.dataMgmtConfigLocator.reload();\n }", "@Mixins( OSGiEnabledService.OSGiEnabledServiceMixin.class )\n@Activators( OSGiEnabledService.Activator.class )\npublic interface OSGiEnabledService extends ServiceComposite\n{\n\n void registerServices()\n throws Exception;\n\n void unregisterServices()\n throws Exception;\n\n class Activator\n extends ActivatorAdapter<ServiceReference<OSGiEnabledService>>\n {\n\n @Override\n public void afterActivation( ServiceReference<OSGiEnabledService> activated )\n throws Exception\n {\n activated.get().registerServices();\n }\n\n @Override\n public void beforePassivation( ServiceReference<OSGiEnabledService> passivating )\n throws Exception\n {\n passivating.get().unregisterServices();\n }\n\n }\n\n\n public abstract class OSGiEnabledServiceMixin\n implements OSGiEnabledService\n {\n @Uses\n ServiceDescriptor descriptor;\n\n @Structure\n private Module module;\n\n private ServiceRegistration registration;\n\n @Override\n public void registerServices()\n throws Exception\n {\n BundleContext context = descriptor.metaInfo( BundleContext.class );\n if( context == null )\n {\n return;\n }\n for( ServiceReference ref : module.findServices( first( descriptor.types() ) ) )\n {\n if( ref.identity().equals( identity().get() ) )\n {\n Iterable<Type> classesSet = cast(descriptor.types());\n Dictionary properties = descriptor.metaInfo( Dictionary.class );\n String[] clazzes = fetchInterfacesImplemented( classesSet );\n registration = context.registerService( clazzes, ref.get(), properties );\n }\n }\n }\n\n private String[] fetchInterfacesImplemented( Iterable<Type> classesSet )\n {\n return toArray( String.class, map( toClassName(), typesOf( classesSet ) ) );\n }\n\n @Override\n public void unregisterServices()\n throws Exception\n {\n if( registration != null )\n {\n registration.unregister();\n registration = null;\n }\n }\n }\n}", "private void registerOrUpdateResourceInKeyManager(API api, String tenantDomain) throws APIManagementException {\n //get new key manager instance for resource registration.\n Map<String, KeyManagerDto> tenantKeyManagers = KeyManagerHolder.getTenantKeyManagers(tenantDomain);\n for (Map.Entry<String, KeyManagerDto> keyManagerDtoEntry : tenantKeyManagers.entrySet()) {\n KeyManager keyManager = keyManagerDtoEntry.getValue().getKeyManager();\n if (keyManager != null) {\n try {\n Map registeredResource = keyManager.getResourceByApiId(api.getId().toString());\n if (registeredResource == null) {\n boolean isNewResourceRegistered = keyManager.registerNewResource(api, null);\n if (!isNewResourceRegistered) {\n log.warn(\"APIResource registration is failed while adding the API- \" +\n api.getId().getApiName()\n + \"-\" + api.getId().getVersion() + \" into Key Manager : \" +\n keyManagerDtoEntry.getKey());\n }\n } else {\n //update APIResource.\n String resourceId = (String) registeredResource.get(\"resourceId\");\n if (resourceId == null) {\n handleException(\"APIResource update is failed because of empty resourceID.\");\n }\n keyManager.updateRegisteredResource(api, registeredResource);\n }\n } catch (APIManagementException e) {\n log.error(\"API Resource Registration failed in Key Manager \" + keyManagerDtoEntry.getKey(), e);\n }\n }\n }\n }", "protected abstract ServiceRegistry getNewServiceRegistry();", "@PostConstruct\n public void initPool() {\n SpringHelper.setApplicationContext(applicationContext);\n if (!initialized) {\n try {\n final File configDirectory = ConfigDirectory.setupTestEnvironement(\"OGCRestTest\");\n final File dataDirectory2 = new File(configDirectory, \"dataCsw2\");\n dataDirectory2.mkdir();\n\n try {\n serviceBusiness.delete(\"csw\", \"default\");\n serviceBusiness.delete(\"csw\", \"intern\");\n } catch (ConfigurationException ex) {}\n\n final Automatic config2 = new Automatic(\"filesystem\", dataDirectory2.getPath());\n config2.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"default\", config2, null);\n\n writeProvider(\"meta1.xml\", \"42292_5p_19900609195600\");\n\n Automatic configuration = new Automatic(\"internal\", (String)null);\n configuration.putParameter(\"shiroAccessible\", \"false\");\n serviceBusiness.create(\"csw\", \"intern\", configuration, null);\n\n initServer(null, null, \"api\");\n pool = GenericDatabaseMarshallerPool.getInstance();\n initialized = true;\n } catch (Exception ex) {\n Logger.getLogger(OGCRestTest.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n }", "public void cleanup() throws ResourceException {\n checkIfDestroyed();\n\n logger.fine(\" 8.- (\" + myId + \") ManagedConnection::cleanup called\");\n\n invalidateJavaMailConnections();\n }", "protected void tearDownServiceRegistry() throws Exception {\n }", "@Override\n\tpublic void releaseAllResources() {\n\t}", "public static void install() {\n for (String s : RESOURCES) INSTANCE.ensureResourceExists(s);\n }", "@Override\n public AutoScalingData provision()\n {\n final String project = envConfig.getProjectId();\n final String zone = envConfig.getZoneName();\n final int numInstances = envConfig.getNumInstances();\n final String managedInstanceGroupName = envConfig.getManagedInstanceGroupName();\n\n try {\n List<String> before = getRunningInstances();\n log.debug(\"Existing instances [%s]\", String.join(\",\", before));\n\n int toSize = Math.min(before.size() + numInstances, getMaxNumWorkers());\n if (before.size() >= toSize) {\n // nothing to scale\n return new AutoScalingData(new ArrayList<>());\n }\n log.info(\"Asked to provision instances, will resize to %d\", toSize);\n\n Compute computeService = createComputeService();\n Compute.InstanceGroupManagers.Resize request =\n computeService.instanceGroupManagers().resize(project, zone,\n managedInstanceGroupName, toSize);\n\n Operation response = request.execute();\n Operation.Error err = waitForOperationEnd(computeService, response);\n if (err == null || err.isEmpty()) {\n List<String> after = null;\n // as the waitForOperationEnd only waits for the operation to be scheduled\n // this loop waits until the requested machines actually go up (or up to a\n // certain amount of retries in checking)\n for (int i = 0; i < RUNNING_INSTANCES_MAX_RETRIES; i++) {\n after = getRunningInstances();\n if (after.size() == toSize) {\n break;\n }\n log.info(\"Machines not up yet, waiting\");\n Thread.sleep(POLL_INTERVAL_MS);\n }\n after.removeAll(before); // these should be the new ones\n log.info(\"Added instances [%s]\", String.join(\",\", after));\n return new AutoScalingData(after);\n } else {\n log.error(\"Unable to provision instances: %s\", err.toPrettyString());\n }\n }\n catch (Exception e) {\n log.error(e, \"Unable to provision any gce instances.\");\n }\n\n return new AutoScalingData(new ArrayList<>());\n }", "protected void resetContainer() throws PlatformException {\r\n\t\tfor (Iterator<ServiceKey> it = serviceCompartments.keySet().iterator(); it.hasNext();) { \r\n\t\t\tServiceKey key = (ServiceKey) it.next(); \r\n\t\t\tServiceCompartment<T,S> serviceCompartment = (ServiceCompartment<T,S>) serviceCompartments.get(key); \r\n\t\t\tserviceCompartment.destroy();\r\n\t\t}\r\n\t\tserviceInfos.clear();\r\n\t\tserviceCompartments.clear();\r\n\t\tserviceInfos=null;\r\n\t\tserviceCompartments=null;\r\n\t\t// do not change the below order of closing app contexts. Always close children first before the parent context\r\n\t\tthis.servicesContext.close();\r\n\t\tthis.servicesContext = null;\t\t\t\t\r\n\t\tthis.commonServiceBeansContext.close();\r\n\t\tthis.commonServiceBeansContext = null;\r\n\t}", "void unsetRequiredResources();", "public void dispose()\n {\n if (monitoringProbeItemProvider != null) monitoringProbeItemProvider.dispose();\n if (resizingActionItemProvider != null) resizingActionItemProvider.dispose();\n if (softwareDependencyItemProvider != null) softwareDependencyItemProvider.dispose();\n if (userApplicationItemProvider != null) userApplicationItemProvider.dispose();\n if (keyPairItemProvider != null) keyPairItemProvider.dispose();\n if (virtualMachineImageFlavorItemProvider != null) virtualMachineImageFlavorItemProvider.dispose();\n if (virtualNetworkItemProvider != null) virtualNetworkItemProvider.dispose();\n if (cloudProviderItemProvider != null) cloudProviderItemProvider.dispose();\n if (virtualMachineImageItemProvider != null) virtualMachineImageItemProvider.dispose();\n if (deploymentItemProvider != null) deploymentItemProvider.dispose();\n if (moduleItemProvider != null) moduleItemProvider.dispose();\n if (virtualInstanceItemProvider != null) virtualInstanceItemProvider.dispose();\n if (securityGroupItemProvider != null) securityGroupItemProvider.dispose();\n if (rootItemProvider != null) rootItemProvider.dispose();\n if (imagesItemProvider != null) imagesItemProvider.dispose();\n if (networksItemProvider != null) networksItemProvider.dispose();\n if (securityItemProvider != null) securityItemProvider.dispose();\n if (keysItemProvider != null) keysItemProvider.dispose();\n if (groupsItemProvider != null) groupsItemProvider.dispose();\n if (flavorsItemProvider != null) flavorsItemProvider.dispose();\n if (monitoringItemProvider != null) monitoringItemProvider.dispose();\n if (monitoringServiceItemProvider != null) monitoringServiceItemProvider.dispose();\n }", "public void unregisterService(Registrant r) {\n namingService.unregisterService(r);\n }", "@Test\n public void testPrimaryFailureInUNregisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n\n registerK1AndK2();\n\n VM oldPrimary = getPrimaryVM();\n stopPrimaryAndUnregisterRegisterK1();\n\n verifyDeadAndLiveServers(1, 2);\n\n VM newPrimary = getPrimaryVM(oldPrimary);\n newPrimary.invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n newPrimary.invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "public void setupSubscriptions()\n {\n String debug = System.getProperty(\"SAFE.debug\");\n if (debug != null && debug.equalsIgnoreCase(\"true\")) {\n _debug = true;\n }\n \n // get handle to message transport service \n try {\n MessageTransportService mts = (MessageTransportService) this.getBindingSite().getServiceBroker().getService(this,\n MessageTransportService.class,\n null);\n \n // get the name of the domain we are managing\n String domainName = System.getProperty(\"org.cougaar.safe.domainName\");\n if (domainName == null) {\n throw new NullPointerException(\"System property org.cougaar.safe.domainName is not set\");\n } \n\n // create MessageSender and MessageReceiver for DM\n // create local locator and bind MessageReceiver to it\n CougaarMessageTransportService messageTransport = new CougaarMessageTransportService(mts);\n MessageSender sender = messageTransport.newMessageSender();\n MessageReceiver receiver = messageTransport.newMessageReceiver(); \n CougaarLocator myLocator = new CougaarLocator(domainName);\n receiver.bindToLocalLocator(myLocator);\n \n // create Domain Manager\n _dm = new MyDomainManager(domainName,\n receiver,\n sender);\n \n }\n catch (Exception xcp) {\n xcp.printStackTrace();\n }\n \n // BEGIN rehydrate \n \n // rehydrate: get entity descriptions from the blackboard and register them\n // with the domain manager\n Iterator entityDescriptions = query(_entityDescriptionPredicate).iterator();\n Vector nonGuardDescrips = new Vector();\n while (entityDescriptions.hasNext()) { \n KAoSEntityDescription entityDescrip = (KAoSEntityDescription) entityDescriptions.next();\n // register all the guards first\n if (entityDescrip.getEntityType().equals(KAoSConstants.GUARD)) { \n _dm.register(entityDescrip, true);\n }\n else {\n nonGuardDescrips.addElement(entityDescrip);\n }\n }\n // then register the other entities\n for (int i=0; i<nonGuardDescrips.size(); i++) {\n _dm.register((KAoSEntityDescription) nonGuardDescrips.elementAt(i), true);\n }\n \n // rehydrate: get policies from the blackboard and give\n // them to the domain manager\n Iterator policyMsgs = query(_policyMsgPredicate).iterator();\n Vector policyMsgsV = new Vector();\n while (policyMsgs.hasNext()) {\n policyMsgsV.addElement(policyMsgs.next());\n }\n _dm.rehydratePolicies(policyMsgsV);\n \n // END rehydrate\n \n _proposedPolicyUpdate = (IncrementalSubscription) subscribe(_proposedPolicyUpdatePredicate); \n }", "public void destroyOsgi();", "public UMOManagementContext configure(String[] configResources, Properties startupProperties)\n throws ConfigurationException\n {\n try\n {\n MuleApplicationContext context = new MuleApplicationContext(new String[]{getDefaultConfigResource()});\n managementContext = context.getManagementContext();\n MuleServer.setManagementContext(managementContext);\n\n // Load startup properties.\n Registry registry = RegistryContext.getOrCreateRegistry();\n try\n {\n registry.registerObjects(startupProperties);\n }\n catch (RegistrationException e)\n {\n throw new ConfigurationException(e);\n }\n\n for (int i = 0; i < configResources.length; i++)\n {\n String configResource = configResources[i];\n scriptComponent.setScriptFile(configResource);\n scriptComponent.initialise();\n Bindings ns = scriptComponent.getScriptEngine().createBindings();\n populateBindings(ns);\n scriptComponent.runScript(ns);\n }\n\n if (!managementContext.isInitialised() && !managementContext.isInitialising())\n {\n managementContext.initialise();\n }\n\n if (System.getProperty(MuleProperties.MULE_START_AFTER_CONFIG_SYSTEM_PROPERTY, \"true\")\n .equalsIgnoreCase(\"true\") && isStartContext())\n {\n if (!managementContext.isStarted())\n {\n managementContext.start();\n }\n }\n\n }\n catch (Exception e)\n {\n throw new ConfigurationException(e);\n }\n return managementContext;\n }", "public void deregister(SvcInfo svcInfo);", "public void updateProductResourceMappings(API api, String organization, List<APIProductResource> productResources)\n throws APIManagementException {\n Map<String, URITemplate> apiResources = apiMgtDAO.getURITemplatesForAPI(api);\n\n for (APIProductResource productResource : productResources) {\n URITemplate uriTemplate = productResource.getUriTemplate();\n String productResourceKey = uriTemplate.getHTTPVerb() + \":\" + uriTemplate.getUriTemplate();\n\n //set new uri template ID to the product resource\n int updatedURITemplateId = apiResources.get(productResourceKey).getId();\n uriTemplate.setId(updatedURITemplateId);\n }\n\n apiMgtDAO.addAPIProductResourceMappings(productResources, organization, null);\n }", "public void registerUser(User user) throws UserManagementException;", "public interface ResourceManager extends RemoteService{\n\n /**\n * This method returns a list of the resources.\n *\n * @return This list of resources.\n * @throws ResourcesException\n */\n public List<ResourceBase> listTypes() throws ResourceException;\n}", "@Override\r\n\tpublic void shutdown() {\n\t\tunRigisterMBean();\r\n\t}", "@Local\npublic interface AdminService {\n /**\n * Creates a user of the system. The user is created with USER privileges.\n *\n * @param newUser the user to add.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN permissions\n * @throws InvalidUserException when the user to add is not valid.\n */\n void createUser(User newUser, String token) throws AuthenticationException, InvalidUserException, UserAlreadyExistsException;\n\n /**\n * Deletes a user from the system.\n *\n * @param user the user that want to be deleted.\n * @param token identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void deleteUser(User user, String token) throws AuthenticationException;\n\n /**\n * Change the permissions of a user to a training. The permissions are: CREATE, READ.\n *\n * @param training the training.\n * @param user the user for whom the permissions will be changed.\n * @param permission the new permissions.\n * @param token the identifier of the session\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changePermissions(Training training, User user, Permission permission, String token) throws AuthenticationException;\n\n /**\n * CHange the privileges of a user to the system. Roles are: ADMINISTRATOR, TRAINER, USER.\n *\n * @param user the user for whom the role will be changed.\n * @param role the new role.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void changeRole(User user, Role role, String token) throws AuthenticationException;\n\n /**\n * Add a new Device to the system.\n *\n * @param device the device to be added.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to add is not a valid one.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n * @throws DeviceAlreadyExistsException thrown when the device is already on the database.\n */\n void addDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException,\n DeviceAlreadyExistsException;\n\n /**\n * Disable a device from the System. This happens when the device is broken.\n *\n * @param device the device to be disabled.\n * @param token the identifier of the session.\n * @throws AuthenticationException when the caller has not ADMIN privileges.\n */\n void disableDevice(Device device, String token) throws AuthenticationException;\n\n /**\n * Gets a User from the database by its username.\n *\n * @param name the username.\n * @return The User with the username specified.\n * @throws InvalidUserException when there is no user with the username specified.\n */\n User getUserByUsername(String name) throws InvalidUserException;\n\n /**\n * Modifies a Device that already exists on the system.\n *\n * @param device the device to be changes.\n * @param token the identifier of the session.\n * @throws InvalidDeviceException when the device to modify isn' on the database.\n * @throws AuthenticationException when the caller has no privileges to perform this action.\n */\n void modifyDevice(Device device, String token) throws InvalidDeviceException, AuthenticationException;\n\n /**\n * @return all the devices of the system. Doesn't need a token because only the admin can call the service.\n */\n List<Device> getAllDevices();\n\n /**\n * @param token the identifier of the session.\n * @return all the users from the system.\n * @throws AuthenticationException\n */\n List<User> getAllUsers(String token) throws AuthenticationException;\n}", "public void dispose() {\r\n\t\tif (ihsDeployRootItemProvider != null) ihsDeployRootItemProvider.dispose();\r\n\t\tif (ihsModuleItemProvider != null) ihsModuleItemProvider.dispose();\r\n\t\tif (ihsServerItemProvider != null) ihsServerItemProvider.dispose();\r\n\t\tif (ihsServerUnitItemProvider != null) ihsServerUnitItemProvider.dispose();\r\n\t\tif (ihsSystemItemProvider != null) ihsSystemItemProvider.dispose();\r\n\t\tif (ihsSystemUnitItemProvider != null) ihsSystemUnitItemProvider.dispose();\r\n\t\tif (ihsUserItemProvider != null) ihsUserItemProvider.dispose();\r\n\t\tif (ihsUserRepositoryItemProvider != null) ihsUserRepositoryItemProvider.dispose();\r\n\t\tif (ihsUserUnitItemProvider != null) ihsUserUnitItemProvider.dispose();\r\n\t\tif (ihsWasAdminModuleItemProvider != null) ihsWasAdminModuleItemProvider.dispose();\r\n\t\tif (ihsWasAdminModuleUnitItemProvider != null) ihsWasAdminModuleUnitItemProvider.dispose();\r\n\t\tif (ihsWasModuleItemProvider != null) ihsWasModuleItemProvider.dispose();\r\n\t\tif (ihsWasModuleUnitItemProvider != null) ihsWasModuleUnitItemProvider.dispose();\r\n\t\tif (linuxIhsSystemItemProvider != null) linuxIhsSystemItemProvider.dispose();\r\n\t\tif (windowsIhsSystemItemProvider != null) windowsIhsSystemItemProvider.dispose();\r\n\t}", "public synchronized void clearResources()\r\n {\r\n // create a new root, making old tree eligible for GCing\r\n createRootNode();\r\n\r\n // clear all registered objects\r\n unRegisterAll();\r\n }", "public interface VCenterHAService {\n\n List<ESightHAServer> getServerList(VCenterInfo vCenterInfo) throws Exception;\n\n void removeMonitored(VCenterInfo vCenterInfo, List<ESightHAServer> list);\n\n /**\n * create provider if it doesn't exist\n *\n * @param enable Whether to enable\n * @return providerId\n */\n String createProvider(ConnectedVim connectedVim, boolean enable);\n\n /**\n * remove provider if it exist\n *\n * @param vCenterInfo vCenter account info\n * @return null: provider not exist<br/> true: remove success<br/> false: remove fail or other\n * exception\n */\n Boolean removeProvider(VCenterInfo vCenterInfo);\n\n /**\n * create alarm definition in vcenter and DB in a new lowest priority thread\n */\n void registerAlarmDefInVcenterAndDB(VCenterInfo vCenterInfo,\n List<AlarmDefinition> alarmDefinitionList, boolean result);\n\n ConnectedVim getConnectedVim();\n\n /**\n * unregister alarm definitions from vCenter\n */\n int unregisterAlarmDef(VCenterInfo vCenterInfo, List<String> morList);\n\n}", "public void provision(ProvisioningConfig provisioningConfig, Map<String, String> options) throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = newConfigLayout(provisioningConfig, options)) {\n doProvision(layout, getFsDiff(), false);\n }\n }", "public void provision(ProvisioningConfig provisioningConfig) throws ProvisioningException {\n provision(provisioningConfig, Collections.emptyMap());\n }", "public void cleanup() {\n try {\n resManager.stopVirtualNodes();\n } catch (Exception e) {\n logger.error(ITConstants.TS + \": \" + DEL_VM_ERR, e);\n }\n logger.info(\"Cleanup done\");\n }", "public void cleanOrphanServices() {\n log.info(\"Cleaning orphan Services...\");\n List<String> serviceNames = getServices();\n for (String serviceName : serviceNames) {\n if (serviceName.startsWith(Constants.BPG_APP_TYPE_LAUNCHER + \"-\") && !deploymentExists(serviceName)) {\n log.info(\"Cleaning orphan Service [Name] \" + serviceName + \"...\");\n\n unregisterLauncherIfExistsByObjectName(serviceName);\n\n if (!runtimeClient.deleteService(serviceName)) {\n log.error(\"Service deletion failed [Service Name] \" + serviceName);\n }\n }\n }\n }", "public void unRegisterService(String serviceKey, Node node) {\n\t\tlog.info(\"UnRegistering the service \" + serviceKey);\n\t\ttry {\n\t\t\tString authToken = getAuthToken(node.getSecurityUrl()); \n\t\t\tDeleteService deleteService = new DeleteService();\n\t\t\tdeleteService.setAuthInfo(authToken);\n\t\t\tdeleteService.getServiceKey().add(serviceKey);\n\t\t\tgetUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteService(deleteService);\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Unable to register service \" + serviceKey\n\t\t\t\t\t+ \" .\" + e.getMessage(),e);\n\t\t}\n\t}", "@Override\n public void deleted(String pid) {\n ServiceRegistration oldRegistration = registrations.remove(pid);\n if (bundleContext != null) {\n Connect connect = (Connect) bundleContext.getService(oldRegistration.getReference());\n try {\n connect.close();\n } catch (LibvirtException e) {\n LOG.error(\"Error closing libvirt connection\", e);\n }\n }\n if (oldRegistration != null) {\n oldRegistration.unregister();\n }\n }", "public final void release() throws Exception {\n mbs.unregisterMBean(name);\n MBeanServerFactory.releaseMBeanServer(mbs);\n }", "private void cleanup() throws RemoteException {\n log.info(\"GP run complete.\");\n running = false;\n\n log.info(\"Releasing clients.\");\n for (IClient client : clients)\n client.release();\n clients.clear();\n\n writeCheckpoint(\"final_generation\");\n }", "@Transactional(readOnly = true, propagation = Propagation.REQUIRED)\n public String reconfigureVirtualMachine(final VirtualMachine vm,\n final VirtualMachineDescriptionBuilder originalConfig,\n final VirtualMachineDescriptionBuilder newConfig)\n {\n Datacenter datacenter = vm.getHypervisor().getMachine().getDatacenter();\n\n RemoteService vsmRS =\n remoteServiceService.getRemoteService(datacenter.getId(),\n RemoteServiceType.VIRTUAL_SYSTEM_MONITOR);\n\n if (vsm.isVirtualMachineSubscribed(vsmRS, vm.getName()))\n {\n logger.debug(\"Unsubscribing virtual machine {} from VSM\", vm.getName());\n vsm.unsubscribe(vsmRS, vm);\n logger.debug(\"Virtual machine {} unsubscribed from VSM\", vm.getName());\n }\n else\n {\n // The machine must be subscribed\n logger\n .error(\n \"Unsubscribing virtual machine {} from VSM: Error: the virtual machine was not subscribed. Was the Subscription deleted manually outside Abiquo?\",\n vm.getName());\n }\n\n try\n {\n HypervisorConnection conn =\n jobCreator.hypervisorConnectionConfiguration(vm.getHypervisor());\n DatacenterTaskBuilder builder =\n new DatacenterTaskBuilder(originalConfig.build(), conn, userService\n .getCurrentUser().getNick());\n\n DatacenterTasks reconfigTask =\n builder.addReconfigure(newConfig.build()).buildTarantinoTask();\n\n enqueueTask(datacenter,\n builder.buildAsyncTask(String.valueOf(vm.getId()), TaskType.RECONFIGURE),\n builder.buildTarantinoTask(), EventType.VM_RECONFIGURE);\n\n return reconfigTask.getId();\n\n }\n catch (NotFoundException e)\n {\n logger\n .debug(\"Error enqueuing the reconfiguretask dto to the virtual factory with error: \"\n + e.getMessage() + \" unmonitoring the machine: \" + vm.getName());\n\n vsm.subscribe(vsmRS, vm);\n throw e;\n }\n catch (RuntimeException e)\n {\n logger\n .error(\"Error enqueuing the reconfigure task dto to the virtual factory with error: \"\n + e.getMessage());\n\n tracer.log(SeverityType.CRITICAL, ComponentType.VIRTUAL_MACHINE,\n EventType.VM_RECONFIGURE, APIError.GENERIC_OPERATION_ERROR.getMessage());\n\n // For the Admin to know all errors\n tracer.systemLog(SeverityType.CRITICAL, ComponentType.VIRTUAL_MACHINE,\n EventType.VM_RECONFIGURE, \"tarantino.reconfigureVMError\", e.getMessage());\n\n // We need to re subscribe to the machine\n vsm.subscribe(vsmRS, vm);\n\n // There is no point in continue\n addUnexpectedErrors(APIError.GENERIC_OPERATION_ERROR);\n flushErrors();\n }\n return null;\n }", "public void setProvisioningUri(String uri);", "public interface IResteasyService {\r\n\t\r\n\t/**\r\n\t * Service name inside OSGi namespace service registration.\r\n\t */\r\n\tpublic static final String SERVICE_NAME = ResteasyService.class.getName();\r\n\r\n\t/**\r\n\t * Add a SingletonResource.\r\n\t * @param resource\r\n\t */\r\n\tpublic void addSingletonResource(Object resource);\r\n\t\r\n\t/**\r\n\t * Remove a SingletonResource.\r\n\t * @param clazz\r\n\t */\r\n\tpublic void removeSingletonResource(Class<?> clazz);\r\n\r\n}", "ManagementLockObject refresh();", "@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}", "static public void unregisterAllRoot()\n {\n java.lang.SecurityManager sm = System.getSecurityManager();\n if( sm != null )\n {\n sm.checkPermission( new RuntimePermission( \"modifyRepository\" ) );\n }\n\n rootMap.clear();\n }", "static void refreshFileSystem() {\n \t// Clear all existing registrations on the server via CORBA for this username\n server.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n // Register the files on the server through CORBA that have been added to the directories manually\n server.registerFiles(username);\n System.out.println();\n return;\n }", "public void resetResources() {\n sharedResource = new Resources();\n }", "public void softwareResources() {\n\t\t\r\n\t}", "@Override\n public boolean release(List<ResourceAllocation> allocations) {\n return false;\n }", "public void registerWithServer();", "public void initRMIBindings() {\n\tString name = null;\n\ttry {\n Configuration configuration=proxy.getConfiguration();\n if (configuration.accessLogViaRMI) {\n SipStack sipStack=proxy.getSipStack();\n Iterator it =sipStack.getListeningPoints();\n ListeningPoint lp = (ListeningPoint) it.next();\n String stackIPAddress = sipStack.getIPAddress();\n name = \"//\" + stackIPAddress + \":\" + 0 + \"/\" +\n sipStack.getStackName()\n + \"/\" + \"test.jainproxy.Registrar\";\n if (ProxyDebug.debug) {\n ProxyDebug.println(\"Exporting Registration Table \" + name);\n }\n Naming.rebind(name,this);\n }\n else {\n if (ProxyDebug.debug)\n ProxyDebug.println\n (\"We don't export the registrations because RMI is disabled.\");\n }\n } \n catch (Exception ex) {\n if (ProxyDebug.debug) {\n ProxyDebug.println\n (\"Problem trying to export the Registration Table: \" + name);\n }\n\t ex.printStackTrace();\n\t}\n }", "public interface ServicesManager {\n\tCompletable sendGCMToken();\n\n\tCompletable clearGCMToken();\n}", "void recallProviderTypeResource(String id, String resourceType, String resourceName, String version)\n throws IOException;", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "private static void performChefComputeServiceBootstrapping(Properties properties) throws \n IOException, InstantiationException, IllegalAccessException, \n NoSuchMethodException, IllegalArgumentException, InvocationTargetException {\n String rsContinent = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), \n RS_CONTINENT, \"rackspace-cloudservers-us\");\n String rsUser = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_USERNAME, \"asf-gora\");\n String rsApiKey = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_APIKEY, null);\n String rsRegion = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), RS_REGION, \"DFW\");\n String client = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_CLIENT, System.getProperty(\"user.name\"));\n String organization = DataStoreFactory.findProperty(properties, MemStore.class.getDeclaredConstructor().newInstance(), CHEF_ORGANIZATION, null);\n String pemFile = System.getProperty(\"user.home\") + \"/.chef/\" + client + \".pem\";\n String credential = Files.toString(new File(pemFile), Charsets.UTF_8);\n\n // Provide the validator information to let the nodes to auto-register themselves\n // in the Chef server during bootstrap\n String validator = organization + \"-validator\";\n String validatorPemFile = System.getProperty(\"user.home\") + \"/.chef/\" + validator + \".pem\";\n String validatorCredential = Files.toString(new File(validatorPemFile), Charsets.UTF_8);\n\n Properties chefConfig = new Properties();\n chefConfig.put(ChefProperties.CHEF_VALIDATOR_NAME, validator);\n chefConfig.put(ChefProperties.CHEF_VALIDATOR_CREDENTIAL, validatorCredential);\n\n // Create the connection to the Chef server\n ChefApi chefApi = ContextBuilder.newBuilder(new ChefApiMetadata())\n .endpoint(\"https://api.opscode.com/organizations/\" + organization)\n .credentials(client, credential)\n .overrides(chefConfig)\n .buildApi(ChefApi.class);\n\n // Create the connection to the compute provider. Note that ssh will be used to bootstrap chef\n ComputeServiceContext computeContext = ContextBuilder.newBuilder(rsContinent)\n .endpoint(rsRegion)\n .credentials(rsUser, rsApiKey)\n .modules(ImmutableSet.<Module> of(new SshjSshClientModule()))\n .buildView(ComputeServiceContext.class);\n\n // Group all nodes in both Chef and the compute provider by this group\n String group = \"jclouds-chef-goraci\";\n\n // Set the recipe to install and the configuration values to override\n String recipe = \"apache2\";\n JsonBall attributes = new JsonBall(\"{\\\"apache\\\": {\\\"listen_ports\\\": \\\"8080\\\"}}\");\n\n // Check to see if the recipe you want exists\n List<String> runlist = null;\n Iterable< ? extends CookbookVersion> cookbookVersions =\n chefApi.chefService().listCookbookVersions();\n if (any(cookbookVersions, CookbookVersionPredicates.containsRecipe(recipe))) {\n runlist = new RunListBuilder().addRecipe(recipe).build();\n }\n for (Iterator<String> iterator = runlist.iterator(); iterator.hasNext();) {\n String string = (String) iterator.next();\n LOG.info(string);\n }\n\n // Update the chef service with the run list you wish to apply to all nodes in the group\n // and also provide the json configuration used to customize the desired values\n BootstrapConfig config = BootstrapConfig.builder().runList(runlist).attributes(attributes).build();\n chefApi.chefService().updateBootstrapConfigForGroup(group, config);\n\n // Build the script that will bootstrap the node\n Statement bootstrap = chefApi.chefService().createBootstrapScriptForGroup(group);\n\n TemplateBuilder templateBuilder = computeContext.getComputeService().templateBuilder();\n templateBuilder.options(runScript(bootstrap));\n // Run a node on the compute provider that bootstraps chef\n try {\n Set< ? extends NodeMetadata> nodes =\n computeContext.getComputeService().createNodesInGroup(group, 1, templateBuilder.build());\n for (NodeMetadata nodeMetadata : nodes) {\n LOG.info(\"<< node %s: %s%n\", nodeMetadata.getId(),\n concat(nodeMetadata.getPrivateAddresses(), nodeMetadata.getPublicAddresses()));\n }\n } catch (RunNodesException e) {\n throw new RuntimeException(e.getMessage());\n }\n\n // Release resources\n chefApi.close();\n computeContext.close();\n\n }", "public interface RegistryReplicationService extends RegistryService {\n\n GetServicesResponse getServices(GetServicesRequest request);\n\n}", "protected void close() {\n \t\tvalid = false; /* invalidate context */\n \n \t\tfinal ServiceRegistry registry = framework.getServiceRegistry();\n \n \t\tregistry.removeAllServiceListeners(this);\n \t\tsynchronized (framework.frameworkEvent) {\n \t\t\tif (frameworkEvent != null) {\n \t\t\t\tframework.frameworkEvent.remove(this);\n \t\t\t\tframeworkEvent = null;\n \t\t\t}\n \t\t}\n \t\tsynchronized (framework.bundleEvent) {\n \t\t\tif (bundleEvent != null) {\n \t\t\t\tframework.bundleEvent.remove(this);\n \t\t\t\tbundleEvent = null;\n \t\t\t}\n \t\t}\n \t\tsynchronized (framework.bundleEventSync) {\n \t\t\tif (bundleEventSync != null) {\n \t\t\t\tframework.bundleEventSync.remove(this);\n \t\t\t\tbundleEventSync = null;\n \t\t\t}\n \t\t}\n \n \t\t/* service's registered by the bundle, if any, are unregistered. */\n \t\tregistry.unregisterServices(this);\n \n \t\t/* service's used by the bundle, if any, are released. */\n \t\tregistry.releaseServicesInUse(this);\n \n \t\tsynchronized (contextLock) {\n \t\t\tservicesInUse = null;\n \t\t}\n \t}", "private void register() throws IOException {\n while( true ) {\n try {\n dnRegistration = namenode.register( dnRegistration );\n break;\n } catch( SocketTimeoutException e ) { // namenode is busy\n LOG.info(\"Problem connecting to server: \" + getNameNodeAddr());\n try {\n Thread.sleep(1000);\n } catch (InterruptedException ie) {}\n }\n }\n if( storage.getStorageID().equals(\"\") ) {\n storage.setStorageID( dnRegistration.getStorageID());\n storage.writeAll();\n }\n }", "public void provision(Path provisioningXml, Map<String, String> options) throws ProvisioningException {\n try(ProvisioningLayout<FeaturePackRuntimeBuilder> layout = newConfigLayout(ProvisioningXmlParser.parse(provisioningXml), options)) {\n doProvision(layout, getFsDiff(), false);\n }\n }", "public void DFRemoveAllMyServices() {\n try {\n DFService.deregister(this);\n } catch (FIPAException ex) {\n\n }\n }", "@Bean\n @Profile(PROFILE_REGISTRY_MANAGEMENT)\n public DeviceManagementService deviceManagementService(final AbstractDeviceManagementStore store, final DeviceServiceProperties properties) {\n return new DeviceManagementServiceImpl(store, properties);\n }", "Service_Resource createService_Resource();", "public final void onDeregistration()\n {\n onObjectDeregistration();\n this.container = null;\n }", "public interface IMiddlewareResourceManager extends Remote, IProxiable {\n /**\n * Add seats to a flight.\n * <p>\n * In general this will be used to create a new\n * flight, but it should be possible to add seats to an existing flight.\n * Adding to an existing flight should overwrite the current price of the\n * available seats.\n *\n * @return Success\n */\n public boolean addFlight(int id, int flightNum, int flightSeats, int flightPrice)\n throws RemoteException, DeadlockException;\n\n /**\n * Add car at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addCars(int id, String location, int numCars, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add room at a location.\n * <p>\n * This should look a lot like addFlight, only keyed on a string location\n * instead of a flight number.\n *\n * @return Success\n */\n public boolean addRooms(int id, String location, int numRooms, int price)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer.\n *\n * @return Unique customer identifier\n */\n public int newCustomer(int id)\n throws RemoteException, DeadlockException;\n\n /**\n * Add customer with id.\n *\n * @return Success\n */\n public boolean newCustomer(int id, int cid)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete the flight.\n * <p>\n * deleteFlight implies whole deletion of the flight. If there is a\n * reservation on the flight, then the flight cannot be deleted\n *\n * @return Success\n */\n public boolean deleteFlight(int id, int flightNum)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all cars at a location.\n * <p>\n * It may not succeed if there are reservations for this location\n *\n * @return Success\n */\n public boolean deleteCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete all rooms at a location.\n * <p>\n * It may not succeed if there are reservations for this location.\n *\n * @return Success\n */\n public boolean deleteRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Delete a customer and associated reservations.\n *\n * @return Success\n */\n public boolean deleteCustomer(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Number of empty seats\n */\n public int queryFlight(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Number of available cars at this location\n */\n public int queryCars(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Number of available rooms at this location\n */\n public int queryRooms(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the customer reservations.\n *\n * @return A formatted bill for the customer\n */\n public String queryCustomerInfo(int id, int customerID)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a flight.\n *\n * @return Price of a seat in this flight\n */\n public int queryFlightPrice(int id, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a car location.\n *\n * @return Price of car\n */\n public int queryCarsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Query the status of a room location.\n *\n * @return Price of a room\n */\n public int queryRoomsPrice(int id, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a seat on this flight.\n *\n * @return Success\n */\n public boolean reserveFlight(int id, int customerID, int flightNumber)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a car at this location.\n *\n * @return Success\n */\n public boolean reserveCar(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a room at this location.\n *\n * @return Success\n */\n public boolean reserveRoom(int id, int customerID, String location)\n throws RemoteException, DeadlockException;\n\n /**\n * Reserve a bundle for the trip.\n *\n * @return Success\n */\n public boolean bundle(int id, int customerID, Vector<Integer> flightNumbers, String location, boolean car, boolean room)\n throws RemoteException, DeadlockException;\n\n /**\n * Convenience for probing the resource manager.\n *\n * @return Name\n */\n public String getName()\n throws RemoteException, DeadlockException;\n\n public int start()\n throws RemoteException;\n\n public boolean commit(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public boolean abort(int xid) \n throws RemoteException, InvalidTransactionException;\n\n public void shutdown()\n throws RemoteException;\n\n}", "void onUnregisterForPremount();", "public interface ResourceProvidersClient {\n /**\n * Request to mitigate for a given job.\n *\n * @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and\n * 24 characters in length and use any alphanumeric and underscore only.\n * @param resourceGroupName The Resource Group Name.\n * @param mitigateJobRequest Mitigation Request.\n * @param context The context to associate with this operation.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n * @return the {@link Response}.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n Response<Void> mitigateWithResponse(\n String jobName, String resourceGroupName, MitigateJobRequest mitigateJobRequest, Context context);\n\n /**\n * Request to mitigate for a given job.\n *\n * @param jobName The name of the job Resource within the specified resource group. job names must be between 3 and\n * 24 characters in length and use any alphanumeric and underscore only.\n * @param resourceGroupName The Resource Group Name.\n * @param mitigateJobRequest Mitigation Request.\n * @throws IllegalArgumentException thrown if parameters fail the validation.\n * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.\n * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.\n */\n @ServiceMethod(returns = ReturnType.SINGLE)\n void mitigate(String jobName, String resourceGroupName, MitigateJobRequest mitigateJobRequest);\n}", "InstallerRegistry() {\n this.lookup = Lookups.forPath(INSTALLER_REGISTRY_FOLDER);\n this.platformInstalls = null;\n }", "@Override\n public void refreshResources() {\n\n }", "private void resetResources() {\n resourceManager.resetAllResources();\n resourceManager=ResourceManager.getInstance(getApplicationContext()); //need update resourceManager upon reset\n }", "private ServiceManage() {\r\n\t\tInitialThreads();\r\n\t}", "void dispose() throws RemoteException;", "public synchronized void unRegisterAll()\r\n {\r\n clearNameObjectMaps();\r\n }", "@Test\n public void testSecondaryFailureInUNRegisterInterest() throws Exception {\n createClientPoolCache(getName(), NetworkUtils.getServerHostName(server1.getHost()));\n createEntriesK1andK2();\n server1.invoke(HAInterestTestCase::createEntriesK1andK2);\n server2.invoke(HAInterestTestCase::createEntriesK1andK2);\n server3.invoke(HAInterestTestCase::createEntriesK1andK2);\n registerK1AndK2();\n VM stoppedBackup = stopSecondaryAndUNregisterK1();\n verifyDeadAndLiveServers(1, 2);\n // still primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyDispatcherIsAlive);\n // primary\n getPrimaryVM().invoke(HAInterestTestCase::verifyInterestUNRegistration);\n // secondary\n getBackupVM(stoppedBackup).invoke(HAInterestTestCase::verifyInterestUNRegistration);\n }", "private void createRemoteAdministration(\n String routingServiceName,\n ConfigurationFilterProvider configurationFilterProvider\n ) {\n checkArgument(\n !Strings.isNullOrEmpty(routingServiceName),\n \"Routing Service name is expected not to be null or empty\"\n );\n checkNotNull(\n configurationFilterProvider,\n \"Configuration Filter Provider must not be null\"\n );\n\n // create domain participant for administration interface and ensure it will be enabled\n domainParticipantAdministration = createRemoteAdministrationDomainParticipant(\n Integer.parseInt(StringSubstitutor.replace(getProperty(PROPERTY_ADMINISTRATION_DOMAIN_ID), System.getenv()))\n );\n domainParticipantAdministration.enable();\n\n // create routing service administration\n routingServiceCommandInterface = new RoutingServiceCommandInterface(\n domainParticipantAdministration);\n\n // wait for routing service to be discovered\n LOGGER.info(\"Waiting for remote administration interface of routing service to be discovered\");\n if (routingServiceCommandInterface.waitForDiscovery(\n routingServiceName,\n Long.parseLong(StringSubstitutor.replace(\n getProperty(\n PROPERTY_ADMINISTRATION_DISCOVERY_WAIT_TIME,\n DEFAULT_PROPERTY_ADMINISTRATION_DISCOVERY_WAIT_TIME\n ),\n System.getenv()\n )),\n TimeUnit.MILLISECONDS)) {\n LOGGER.info(\"Remote administration interface of routing service was discovered\");\n } else {\n LOGGER.warn(\"Remote administration interface of routing service could not be discovered within time out\");\n }\n\n // create commander\n dynamicPartitionCommanderRemote = new DynamicPartitionCommander(\n routingServiceCommandInterface,\n configurationFilterProvider,\n routingServiceName,\n Long.parseLong(StringSubstitutor.replace(\n getProperty(\n PROPERTY_ADMINISTRATION_REQUEST_RETRY_DELAY,\n DEFAULT_PROPERTY_ADMINISTRATION_REQUEST_RETRY_DELAY\n ),\n System.getenv()\n )),\n TimeUnit.MILLISECONDS,\n Long.parseLong(StringSubstitutor.replace(\n getProperty(\n PROPERTY_ADMINISTRATION_REQUEST_TIMEOUT,\n DEFAULT_PROPERTY_ADMINISTRATION_REQUEST_TIMEOUT\n ),\n System.getenv()\n )),\n TimeUnit.MILLISECONDS\n );\n\n // add listener to dynamic partition observer\n dynamicPartitionObserver.addListener(dynamicPartitionCommanderRemote);\n }", "public void registerService(Registrant r) {\n namingService.registerService(r);\n }", "void release(Service service);", "public void resetServers() {\n EventHandlerService.INSTANCE.reset();\n UserRegistryService.INSTANCE.reset();\n }", "public void removeDeviceServiceLink();" ]
[ "0.5463457", "0.51296884", "0.5098058", "0.50857913", "0.50664955", "0.50367266", "0.49982545", "0.49096915", "0.48996657", "0.48945737", "0.488084", "0.48773557", "0.48627922", "0.48441893", "0.48440176", "0.48364407", "0.48180118", "0.47718564", "0.47701797", "0.47690773", "0.47334567", "0.47333696", "0.47284406", "0.4715979", "0.47100165", "0.47068068", "0.47051713", "0.47025406", "0.46982417", "0.46970066", "0.46916494", "0.46779713", "0.46724492", "0.4668296", "0.46658137", "0.4662476", "0.46525994", "0.46509853", "0.4650915", "0.46171463", "0.46155837", "0.4610768", "0.46076268", "0.45795363", "0.45738918", "0.45630765", "0.45586413", "0.45555323", "0.45533022", "0.45526552", "0.4551266", "0.4546023", "0.45449468", "0.45408338", "0.45394778", "0.45383418", "0.4537652", "0.4529643", "0.45233068", "0.45222032", "0.45203796", "0.4520226", "0.451933", "0.45154038", "0.4514964", "0.4506822", "0.45056185", "0.45044327", "0.4501998", "0.4501353", "0.44997197", "0.44927222", "0.4484404", "0.44821948", "0.4479363", "0.44769725", "0.44708622", "0.44640744", "0.44637606", "0.44608274", "0.44569394", "0.4456729", "0.44520974", "0.44505206", "0.44498634", "0.44463667", "0.44451934", "0.44447944", "0.4444433", "0.4444293", "0.4438892", "0.44379988", "0.44365603", "0.44283175", "0.44244564", "0.44222432", "0.4419263", "0.44157988", "0.44147164", "0.44125593" ]
0.57085943
0
Occurs after this view is loaded.
@Override protected void onFinishInflate() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void viewInit() {\n }", "@Override\n\tpublic void InitView() {\n\t\t\n\t}", "@Override\n\tpublic void onNaviViewLoaded() {\n\t\t\n\t}", "@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\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 void initView() {\n }", "public void onAfterLoad()\n\t{\n\t\tJLog.info(\" --- POSTINIT --- \");\n\n\t}", "@Override\n protected void initView() {\n }", "@Override\n protected void initView() {\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\tpublic void initView() {\n\t\t\n\t}", "public void onLoadComplete() {\n\t\t\r\n\t}", "public void onViewLoaded(XViewLink link, XView view);", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t}", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t}", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}", "@Override\n public void initView() {\n\n }", "public void onActivityViewReady() {\n if (Logging.DEBUG_LIFECYCLE && Email.DEBUG) {\n Log.d(Logging.LOG_TAG, this + \" onActivityViewReady\");\n }\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n }", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\n\t\tdisplayPolicy();\n\t}", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "private void initView() {\n\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initView();\n }", "public void initView(){}", "@Override\r\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t}", "@Override\r\n\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\r\n\t\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n }", "@Override\n public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\t\r\n\t\tinitView();\r\n\t}", "protected abstract void initializeView();", "protected void onViewReady(Bundle savedInstanceState, Intent intent) {\n }", "@Override\n\t\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\t\t\t\t\t\t}", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "@Override\n\t\t\t\t\tpublic void onLoadingStarted(String arg0, View arg1) {\n\n\t\t\t\t\t}", "@Override\r\n\tprotected void initViews(Bundle savedInstanceState) {\n\t\t\r\n\t}", "protected void onViewCreated(@Nullable Bundle savedInstanceState) {\n }", "@Override\n public void prepareView() {\n }", "@Override public void postInit()\n\t\t{\n\t\t}", "@Override\r\n\tprotected void initViews() {\n\t\t\r\n\t}", "public void onLoad() {\n\t}", "@Override\n public void onLoadingStarted(String arg0, View arg1) {\n }", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void initViews() {\n\t\t\r\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n\n }", "@Override\r\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\r\n\t\tfindViews(view);\r\n\t\tinitViews(savedInstanceState);\r\n\t}", "private void doAfterRestoreView(final PhaseEvent arg0) {\n\t}", "@Override\n\tpublic void onViewCreated(View view, Bundle savedInstanceState) {\n\t\tsuper.onViewCreated(view, savedInstanceState);\n\t\tinitView();\n//\t\tgetUserInfo();\n\t\tmHandler.sendEmptyMessageAtTime(READ_CACHE_SIZE, 3000);\n\t}", "@Override\n public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {\n }", "public void observeRenderView(\n @Observes @RenderView(controller = MessageLabelController.class) final RenderViewEvent event) {\n onLoadPage();\n }", "public void loaded(){\n\t\tloaded=true;\n\t}", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tViewUtils.inject(this);\n\t\tsetView();\n\t}", "private void observeView() {\n viewModel.state.loginLoading.observe(this, new Observer<Boolean>() {\n @Override\n public void onChanged(Boolean isLoading) {\n if (isLoading) {\n dialog.show();\n } else {\n dialog.dismiss();\n }\n }\n });\n }", "@Override\n\tprotected void initComplete() throws Exception\n\t{\n\t\tAlignment eViewAlignment =\n\t\t\tgetUIProperty(VERTICAL_ALIGN, aViewContentParam);\n\n\t\tif (eViewAlignment != null)\n\t\t{\n\t\t\tsetUIProperty(VERTICAL_ALIGN, eViewAlignment, aViewFragmentParam);\n\t\t}\n\t}", "protected abstract void initView();", "protected void setLoadedForThisRequest() {\r\n\t\tContextUtils.setRequestAttribute(getRequestLoadedMarker(), Boolean.TRUE);\r\n\t}", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n initViews(view);\n // L.e(TAG, \"msg: onViewCreated\" + city);\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterCompletion(HttpServletRequest arg0, HttpServletResponse arg1, Object arg2, Exception arg3)\n\t\t\tthrows Exception {\n\t\tSystem.out.println(\"方法执行之后视图生成之前拦截\");\n\t\t\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}", "@Override\n protected void initViewSetup() {\n }", "@Override\n public void onViewCreated(@NonNull View view, Bundle savedInstanceState) {\n\n }", "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 protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initView();\n }", "protected void onLoadLayout(View view) {\n }", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "public void setLoaded();", "public void thePageIsLoaded() {\r\n this.page.isLoaded();\r\n }", "protected void onAfterCreateView(View view) {\n\n }", "public void initView() {\n\t\t view.initView(model);\t \n\t }", "@Override\n public void onPostInit()\n {\n\n }", "@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n if (mHasLoad) {\n return;\n }\n initFragment();\n }", "public void webControlLoaded() {\n scriptExecutor.setJavaScriptMember(\"app\", this);\n }", "@Override\n public void onViewCreated(View view , Bundle savedInstanceState) {\n }", "public abstract void initView();", "protected void onStartLoading() { forceLoad();}", "@Override\n protected void initView() {\n springView.setListener(new SpringView.OnFreshListener() {\n @Override\n public void onRefresh() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = true;\n currentPage = 1;\n handler.sendEmptyMessage(ConstantValue.SHUAXIN_SUCESS);\n }\n }).start();\n }\n\n @Override\n public void onLoadmore() {\n new Thread(new Runnable() {\n @Override\n public void run() {\n isRefresh = false;\n currentPage++;\n handler.sendEmptyMessage(ConstantValue.JIAZAI_SUCESS);\n }\n }).start();\n }\n });\n }", "@Override\n\tpublic void onActivityCreated(@Nullable Bundle savedInstanceState) {\n\t\tinitView();\n\t\tinitListener();\n\t\tinitData();\n\t\tsuper.onActivityCreated(savedInstanceState);\n\t}", "@Override\n public void onLoadingStarted(String paramString, View paramView) {\n\n }", "@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tinitView();\r\n\t\tgetListDataFromLocal();\r\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}", "@AfterViews\r\n\tprotected void afterViewInjection() {\n\t\tserver = BulletZoneLocalProxy.createBulletZoneServer();\r\n\t\tserver.joinServer(null, \"Zeus\", this);\r\n\r\n\t\tgridView.setAdapter(mGridAdapter);\r\n\t}", "public void loadPage() {\n\t\tLog.i(TAG, \"MyGardenListActivity::LoadPage ! Nothing to do anymore here :)\");\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tloadLayout.setVisibility(View.VISIBLE);\n\t\t}", "public void initViews(){\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\tprotected void initViews(View view) {\n\t\tsuper.initViews(view);\n//\t\tsendRequestData();\n\t}", "@Override\n public void onViewDestroyed() {\n\n }", "@Override\n public void hiddenLoading() {\n Log.i(Tag, \"hiddenLoading\");\n }", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "private void initViews() {\n\n\t}", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "private void initViews() {\n\n }", "@Override\n public void PageFistLoad() {\n }", "@Override\n public void Create() {\n\n initView();\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceBundle)\n\t{\n\t\tsuper.onCreate(savedInstanceBundle);\n\t\tView initView = initView();\n\t\tsetBaseView(initView);\n\t\tinitValues();\n\t\tinitListeners();\n\t}", "@Override\n public void onLoadFinished(Loader<MailItem> loader, MailItem email) {\n emailViewer.loadDataWithBaseURL(null, email.getContent(),\n \"text/html\", \"utf-8\", null);\n // Hide progress bar spinner from view\n viewerSpinner.setVisibility(View.GONE);\n\n }" ]
[ "0.6996135", "0.6902412", "0.6768414", "0.6616082", "0.6616082", "0.66080904", "0.66080904", "0.65835726", "0.65744877", "0.65696335", "0.65696335", "0.6565616", "0.6565616", "0.6548042", "0.6542999", "0.65131485", "0.6510744", "0.6500705", "0.6500705", "0.64962846", "0.64661384", "0.6413861", "0.6407019", "0.6407019", "0.64004785", "0.63674265", "0.63545614", "0.63415307", "0.63346195", "0.63204074", "0.629799", "0.62934595", "0.62876135", "0.6277924", "0.62733525", "0.6267064", "0.626332", "0.626206", "0.62473935", "0.62367624", "0.62196195", "0.62161225", "0.61800414", "0.61663014", "0.6151879", "0.6150955", "0.6149816", "0.6149816", "0.6139477", "0.6113163", "0.6112592", "0.6109235", "0.6107891", "0.61022514", "0.6093164", "0.60888827", "0.6087597", "0.6086663", "0.6086458", "0.60855895", "0.6083822", "0.6082356", "0.6082356", "0.6047999", "0.6047351", "0.6044518", "0.60369205", "0.6035859", "0.6012571", "0.60117376", "0.60025424", "0.60016376", "0.5998836", "0.59963", "0.5991475", "0.5990222", "0.5980786", "0.5971012", "0.5930006", "0.5929642", "0.59214956", "0.5912383", "0.5911088", "0.59007055", "0.58980346", "0.5864036", "0.58623964", "0.58603406", "0.5858604", "0.58452415", "0.5841809", "0.5827696", "0.5821181", "0.582014", "0.5811464", "0.5808516", "0.5806349", "0.5801104", "0.5796623", "0.57773226", "0.5775177" ]
0.0
-1
Adds a IStreamEventListener to this view.
@Override public void addStreamEventListener(IStreamEventListener eventListener) { listener = eventListener; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void addListener(StreamListener listener) {\n streamListeners.add(listener);\n }", "public void addAlpacaStreamListener(AlpacaStreamListener streamListener) {\n alpacaWebSocketClient.addListener(streamListener);\n }", "public void addDatastream(EventDataStream stream)\n\t{\n\t\tthis.eventDataStreams.add(stream);\n\t}", "public void addListener(\n IListener listener\n )\n {listeners.add(listener);}", "public void addEventListener(EventListener listener){\n listenerList.add(EventListener.class, listener);\n }", "public void addListener(EventListener listener);", "public void addSocketNodeEventListener(final SocketNodeEventListener l) {\n listenerList.add(l);\n }", "public void addConnectionEventListener(ConnectionEventListener listener) {\n eventListener.addConnectorListener(listener);\n }", "@SuppressWarnings(\"unchecked\")\n public void addViewChangeListener(IPSViewChangeListener listener)\n {\n if(listener == null)\n throw new IllegalArgumentException(\"listener may not be null.\");\n\n m_viewChangeListeners.add(listener);\n }", "public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void addListener(LogListener listener) {\n\t\tthis.eventListeners.add(listener);\n\t}", "void addListener(IEventChannelListener<K, V> listener);", "@Override\n public void addListener(DisplayEventListener listener) {\n listenerList.add(DisplayEventListener.class, listener);\n }", "public void addListener(Listener listener) {\n m_listeners.add(listener);\n }", "void onPlaybackStarted(Consumer<Void> listener) {\n playbackStartedListeners.add(listener);\n }", "void subscribeToEvents(Listener listener);", "@NonNull\n\t\tBuilder addStream(@NonNull InputStream stream);", "public synchronized void addEventListener(InputListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void addEventListener(@NotNull EventListener<? extends Event> listener) {\n this.eventListeners.get(listener.getSupportedEventType()).add(listener);\n }", "public void addListener(UIEventListener uel) {\n this.listeners.add(uel);\n }", "public void addConnectionEventListener(OfficeConnectionEventListener connectionEventListener) {\n\t\tconnectionEventListeners.add(connectionEventListener);\n\t}", "public void addStreamManager(StreamSpec streamSpec);", "void addTagListener(final TagListener tagListener);", "@Override\n\tpublic void addSinkLogEventListener(SinkLogEventListener listener) {\n\t\tsynchronized (logListeners) {\n\t\t\tlogListeners.add(listener);\n\t\t}\n\t}", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "public void streamSubscriberStart(ISubscriberStream stream);", "public void subscribe(IMouseListener l)\n {\n // ADD new listener to the listeners list:\n _listeners.add(l);\n }", "public void addChangeListener(ChangeListener<BufferedImage> listener) {\n observer.add(listener);\n }", "public void addEventListener(EventListener evl) {\n m_eventSender.addListener(evl);\n }", "public abstract void addListener(EventListener eventListener, String componentName);", "public void registerStream(String route, StreamFunction lambda) throws IOException {\n registerStream(route, lambda, false);\n }", "public void addListener(@NotNull ReceiverListener listener) {\n myListeners.add(listener);\n }", "private void addFileOpenListener() {\n\t\tview.addFileOpenListener(new FileOpenListener());\n\t}", "public void addEvent(Event event) {\n events.add(event);\n }", "public interface IOStreamConnectorListener extends EventListener {\n /**\n * Implement to be informed when data is sent from the <code>InputStream</code>\n * to the <code>OutputStream</code>\n *\n * @param data the data sent\n * @param count the number of bytes in <code>data</code> that were sent\n */\n public void data(byte[] data, int count);\n}", "@Override\n public void registerConnectorListener(RemoteConnectorListener listener) {\n connectorListeners.add(listener);\n }", "public void registerAnnotEventListener(AnnotEventListener listener) {\n mAnnotEventListenerList.add(listener);\n }", "public void addEvent(TimelineEvent event) {\n events.add(event);\n }", "public void addOnDataChangedListener(OnDataChangedListener listener) {\n dataChangedListeners.add(listener);\n }", "public void addReadingPointListener(ReadingPointListener l) {\n\t\tif(l != null) listeners.add(l);\n\t}", "public synchronized void addConnectionEventListener(ConnectionEventListener connectioneventlistener) {\n/* 130 */ if (this.connectionEventListeners != null) {\n/* 131 */ this.connectionEventListeners.put(connectioneventlistener, connectioneventlistener);\n/* */ }\n/* */ }", "public void addOffsetListener(IOffsetListener listener) {\r\n\t\toffsetListeners.add(listener);\r\n\t}", "public void addKernelEventListener( KernelEventListener listener )\n {\n m_state.addKernelEventListener( listener );\n }", "private void addListener(final @NonNull Consumer<E> listener) {\n if (eventListeners.isEmpty()) {\n PLUGIN_MANAGER.registerEvent(\n configuration.getType(), this, configuration.getPriority(), this, configuration.getPlugin()\n );\n LISTENERS_GROUPS.putIfAbsent(configuration, this);\n }\n\n eventListeners.add(listener);\n }", "@Override\n public void attach(IObserver observer) {\n listeners.add(observer);\n }", "private void addEventListener(IEventListener<T> listener) {\n\t\t\tevent.addEventListener(listener);\n\t\t}", "public void addMessageReceivedEventListener(ILogCatMessageEventListener l) {\n mLogCatMessageListeners.add(l);\n }", "public void addFileChangeEventListener(final FileChangeEventListener listener) {\r\n\t\tlistenerList.add(FileChangeEventListener.class, listener);\r\n\t}", "String registerObserver(StreamObserver observer);", "public void addListener(TransferListener listener) {\n listeners.add(listener);\n }", "public void addChangeListener(ChangeListener listener)\r\n {\r\n listeners.add(listener);\r\n }", "public MockRestRequest addListener(EventListener listener) {\n if (listener != null) {\n synchronized (listeners) {\n listeners.add(listener);\n }\n }\n return this;\n }", "public void addChangeListener(ChangeListener listener) { _changeListeners.add(listener); }", "static //@Override\n\tpublic void addListener(final Listener listener) {\n\t\tif (null == stListeners) {\n\t\t\tstListeners = new LinkedList<>();\n\t\t}\n\t\tstListeners.add(listener);\n\t}", "public synchronized void addWindowListener(WindowListener l) {\n windowListener = AWTEventMulticaster.add(windowListener, l);\n newEventsOnly = true;\n }", "public void addListener(final T listener) {\n if (listener == null)\n throw new IllegalArgumentException(\"Parameter 'listener' must not be null!\");\n _elements.add(listener);\n }", "@Override\n\tpublic void addActionListener(ActionListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void registerListener(FragmentListener listener) {\n mListeners.add(listener);\n }", "void subscribe(LogListener listener);", "public synchronized void addPlotNotificationListener(\n PlotNotificationListener listener) {\n m_plotListeners.add(listener);\n }", "public void addListener(Listener l) {\n\t\tmListenerSet.add(l);\n\t}", "@Override\n public <T extends EventListener> void addListener(T t) {\n\n }", "public void addNavigatorListener(NavigatorListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void addSiteListener(Site.Listener listener) {\r\n getManager().addSiteListener(listener);\r\n }", "public void addTaskListener(TaskListener task){\n initListener();\n listeners.add(task);\n }", "public interface StreamListener {\n\n default void onNextEntry(CorfuStreamEntries results) {\n onNext(results);\n }\n\n /**\n * A corfu update can/may have multiple updates belonging to different streams.\n * This callback will return those updates as a list grouped by their Stream UUIDs.\n *\n * Note: there is no order guarantee within the transaction boundaries.\n *\n * @param results is a map of stream UUID -> list of entries of this stream.\n */\n void onNext(CorfuStreamEntries results);\n\n /**\n * Callback to indicate that an error or exception has occurred while streaming or that the stream is\n * shutting down. Some exceptions can be handled by restarting the stream (TrimmedException) while\n * some errors (SystemUnavailableError) are unrecoverable.\n * @param throwable\n */\n void onError(Throwable throwable);\n}", "public void addFlickListener(FlickListener l) {\r\n\t\tlisteners.add(l);\r\n\t}", "@ReactMethod\n public void addListener(String eventName) {\n }", "public void addStreamItem(StreamBean streamBean) {\n\t\tstreamList.add(streamBean.getDisplayName());\n\t\tmapStream.put(streamBean.getDisplayName(), streamBean);\n\t\tstreamListAdapter.notifyDataSetChanged();\n\t}", "@Override\n\tpublic void addLifecycleListener(LifecycleListener listener) {\n\t\tlifecycle.addLifecycleListener(listener);\n\t}", "public interface EventListener {\n\t/**\n\t * Add an EventHandler to handle events for processing.\n\t * @param handler the EventHandler to add\n\t */\n\tpublic void addHandler(EventHandler handler);\n}", "public void addViewportListener(ViewportListener l) {\n viewportListeners.addElement(l);\n l.setViewport(getXOrigin(), getYOrigin(),\n\t\t panelWidth, panelHeight);\n }", "public void addListener(StatisticsListener listener)\r\n\t{\r\n\t\tlisteners.add(listener);\r\n\t}", "public void addListener(DirectionsListener listener) {\n this.listeners.add(listener);\n }", "public void addEvent(Event event) {\n getEvents().add(event);\n }", "public static void listen(HistoryListener hl) {\n\t\tlisteners.add(hl);\n\t}", "public void addListener(IMXEventListener listener) {\n if (isAlive() && (null != listener)) {\n synchronized (mMxEventDispatcher) {\n mMxEventDispatcher.addListener(listener);\n }\n\n if (null != mInitialSyncToToken) {\n listener.onInitialSyncComplete(mInitialSyncToToken);\n }\n }\n }", "public void addTuioListener(TuioListener listener)\n\t{\n\t\tlistenerList.addElement(listener);\n\t}", "public void addConnectionListener(ConnectionListener listener);", "@ReactMethod\n public void addListener(String eventName) {\n }", "@ReactMethod\n public void addListener(String eventName) {\n }", "public void addListener(DCCSessionListener listener) {\n listener.setSession(this);\n this.chatListeners.add(listener);\n }", "@Override\n public void addListener(Class<? extends EventListener> listenerClass) {\n\n }", "synchronized public void addLogListener(LogListener l) {\n\t\tif (listeners == null)\n\t\t\tlisteners = new Vector();\n\t\tlisteners.addElement(l);\n\t}", "ISubscription addEventHandler(EventType type, IEventHandler<DetectionEvent> handler);", "public void addChangeListener (ChangeListener listener)\n {\n listenerList.add(ChangeListener.class, listener);\n }", "@Override\n public void start(ClientStreamListener listener) {\n listener.onReady();\n }", "public void addListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;", "public void addChangeListener(ChangeListener listener) {\n listenerList.add(ChangeListener.class, listener);\n }", "public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }", "public void addChangeListener(ChangeListener l) {\r\n listenerList.add(ChangeListener.class, l);\r\n }", "public void addListener(SerialConnectionReadyListener listener) {\n listeners.add(listener);\n }", "public void addReadyListener(ComponentSystemEventListener listener) {\n listeners.add(listener);\n }", "public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }", "abstract public void addListener(Listener listener);", "public void addHitTestListener(HitTestListener l) {\n hitTestListenerList.add(HitTestListener.class, l);\n }", "protected void register() {\r\n\t\tif ((audioFile != null) && (audioFile instanceof AudioFileURL)) {\r\n\t\t\t((AudioFileURL) audioFile).addListener(this);\r\n\t\t}\r\n\t}", "private void gotRemoteStream(MediaStream stream) {\n //we have remote video stream. add to the renderer.\n final VideoTrack videoTrack = stream.videoTracks.get(0);\n if (mEventUICallBack != null) {\n mEventUICallBack.showVideo(videoTrack);\n }\n// runOnUiThread(() -> {\n// try {\n// binding.remoteGlSurfaceView.setVisibility(View.VISIBLE);\n// videoTrack.addSink(binding.remoteGlSurfaceView);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n// });\n }", "void addSessionListener(SessionListener listener);" ]
[ "0.730687", "0.61413693", "0.5882812", "0.57685745", "0.5679094", "0.56738704", "0.56315106", "0.5561839", "0.54962015", "0.54618317", "0.5433833", "0.5411679", "0.5382591", "0.5379821", "0.5374267", "0.536927", "0.5359549", "0.53482103", "0.5295738", "0.5270425", "0.52124035", "0.52082753", "0.520379", "0.5198453", "0.51945657", "0.5145694", "0.51407814", "0.5098486", "0.5093384", "0.5081212", "0.5079693", "0.5077874", "0.50763005", "0.5073104", "0.5056608", "0.5051921", "0.5047491", "0.504253", "0.50376606", "0.50369614", "0.5035504", "0.5032941", "0.5024938", "0.501563", "0.5012139", "0.50090337", "0.50072026", "0.5005025", "0.49931183", "0.49904108", "0.49846846", "0.49763137", "0.4970112", "0.49683008", "0.49628344", "0.4934776", "0.49166656", "0.49107835", "0.49105877", "0.49018204", "0.48897633", "0.48812008", "0.4876862", "0.4874145", "0.48643988", "0.4862555", "0.48575366", "0.4845659", "0.48451295", "0.48415536", "0.4834813", "0.48347166", "0.4832838", "0.48309684", "0.4828684", "0.48282555", "0.4826479", "0.48221081", "0.48109335", "0.48083028", "0.48077238", "0.48077238", "0.48056692", "0.48033032", "0.47947478", "0.47939888", "0.47865313", "0.47844723", "0.4784195", "0.47834674", "0.4778916", "0.4778916", "0.4778069", "0.4774469", "0.47735092", "0.47720158", "0.4770746", "0.47622886", "0.47598", "0.47532555" ]
0.78361195
0
Updates the view with the stethoscope's metrics.
@Override public void updateStethoscopeInformation(StethoscopeInformation info) { update(info.getModelNumber(), modelNumber); update(info.getFirmwareVersion() + "", firmwareVersion); update(info.getBatteryLevel() + "", batteryLevel); update(info.getIsAutoBluetoothOn() + "", autoBluetooth); update(info.getTotalBytesRead() + "", bytesRead); update(info.getBytesReadPerSecond() + "", bytesReadSecond); update(info.getTotalBytesWritten() + "", bytesWritten); update(info.getBytesWrittenPerSecond() + "", bytesWrittenSecond); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void updateSummaries() { }", "protected void updateSummaries() { }", "void updateView();", "void updateView();", "public void showMetrics() {\n }", "public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tviewPort.getGraphicsPainter().repaint();\n\t\t}\n\t}", "public void updateViews() {\n updateViews(null);\n }", "@Override\n public void updateStats() {\n if (entering || isLogoutStarted()) {\n return;\n }\n\n refreshOverloaded();\n refreshExpertisePenalty();\n super.updateStats();\n }", "public void updateStats() {\n ObservableList<Node> children = gpLocations.getChildren();\n for (int i = 0; i < gpLocations.getChildren().size() / 2; i++)\n for (Node n : children)\n if (gpLocations.getRowIndex(n) == i + 1 && gpLocations.getColumnIndex(n) == 1) {\n Text t = (Text) n;\n t.setText(String.format(\n \"\\t\\t%.1f\", activeCar.getCurrentLocation().getDistanceToLocation(locations.get(i))));\n }\n\n children = gpCars.getChildren();\n for (int j = 0; j < gpCars.getChildren().size() / 2; j++)\n for (Node m : children)\n if (gpCars.getRowIndex(m) == j + 1 && gpCars.getColumnIndex(m) == 1) {\n Text tmpM = (Text) m;\n tmpM.setText(String.format(\"\\t\\t%.1f\", cars.get(j).getTime()));\n }\n\n children = gridPane.getChildren();\n for (Node o : children)\n if (gridPane.getRowIndex(o) == 5 && gpCars.getColumnIndex(o) == 0) {\n Text tmpO = (Text) o;\n tmpO.setText(\"Active Car\\t\" + activeCar.getIdentifier() + \" \" + activeCar.getEnd().getName());\n }\n }", "private void updateOsMetrics()\n {\n Driver.updateOsMetric();\n }", "public void updateConicalView();", "public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }", "private void refreshView() {\n this.view.updateRobots();\n }", "private void updateView() {\n model.inlezenHighscore();\n for (int i = 0; i < 10; i++) {\n view.getNaamLabels(i).setText(model.getNaam(i));\n view.getScoreLabels(i).setText(model.getScores(i));\n }\n }", "private void updateStats()\n\t{\n\n\t\tint[] temp = simulation.getStatValue();\n\t\tfor(int i = 0; i < temp.length; i++)\n\t\t{\n\t\t\tthis.statsValues[i].setText(Integer.toString(temp[i]));\n\t\t}\n\t\t\n\t\tint[] temp2 = simulation.getNumberInEachLine();\n\t\tfor(int i = 0; i < temp2.length; i++)\n\t\t{\n\t\t\tthis.eatValues[i].setText(Integer.toString(temp2[i]));\n\t\t}\n\t}", "@Update\n void update(Measurement measurement);", "public StatisticsOverviewView() {\n statisticsOverviewView = this;\n }", "public void updateView(ClientView view);", "public void updateTimeSpansCache()\n {\n _timeSpans = null;\n getTimeSpans();\n }", "@Override\n\tpublic void updateData() {\n\t\tSpendPage spend = new SpendService().getSpendPage();\n\t\tvMonthSpend.setText(spend.monthSpend);\n\t\tvTodaySpend.setText(spend.todaySpend);\n\t\tvAvgSpendPerDay.setText(spend.avgSpendPerDay);\n\t\tvMonthAvailable.setText(spend.monthAvailable);\n\t\tvDayAvgAvailable.setText(spend.avgAvailablePerDay);\n\t\tvMonthLeftDay.setText(spend.leftDay);\n\t\t\n\t\tbar.setProgress(spend.usagePercentage);\n\t\tif (spend.isOverSpend) {\n\t\t\tvMonthAvailable.setForeground(ColorUtil.warningColor);\n\t\t\tvMonthSpend.setForeground(ColorUtil.warningColor);\n\t\t\tvTodaySpend.setForeground(ColorUtil.warningColor);\n\t\t} else {\n\t\t\tvMonthAvailable.setForeground(ColorUtil.grayColor);\n vMonthSpend.setForeground(ColorUtil.blueColor);\n vTodaySpend.setForeground(ColorUtil.blueColor);\n\t\t}\n\t\tbar.setForegroundColor(ColorUtil.getByPercentage(spend.usagePercentage));\n\t}", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "private void updateRecord(){\r\n\t\tgameStats.setVictory(victory);\r\n\t\tgameStats.setDays(days);\r\n\t\tgameStats.setBuildings(buildingCount);\r\n\t\tgameStats.setResources(wood + stone + food);\r\n\t}", "void updateMetrics(boolean isSuspended);", "public void updateChart(){\n for(Pair<Number,Number> p : sss.getPopulationQueue()){\n this.population.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getDeathsQueue()){\n this.deaths.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getInfectionsQueue()){\n this.infections.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n for(Pair<Number,Number> p : sss.getHealsQueue()){\n this.heals.getData().add(new XYChart.Data<>(p.getKey(),p.getValue()));\n }\n sss.clearPopulationQueue();\n sss.clearDeathsQueue();\n sss.clearInfectionsQueue();\n sss.clearHealsQueue();\n }", "@Override\n public void update(Observable o, Object arg) {\n if (o instanceof ChartDataHolder)\n displayStatistics(((ChartDataHolder) o).getCMCSpecificStats(cmc - 1));\n }", "public void refresh() {\n\t\tthis.viewer.refresh();\n\t}", "public void updateDimensions() {\n }", "public final void updateTimeline()\r\n {\r\n Kml placesKml = myModel.getMyPlaces();\r\n\r\n Feature feature = placesKml.getFeature();\r\n\r\n if (feature instanceof Document)\r\n {\r\n Document doc = (Document)feature;\r\n List<Placemark> timedPoints = New.list();\r\n getTimedPlacemarks(doc.getFeature(), timedPoints);\r\n\r\n myTimelineRegistry.removeLayer(ourKey);\r\n if (!timedPoints.isEmpty())\r\n {\r\n Placemark mark = timedPoints.get(0);\r\n Color color = PlacemarkUtils.getPlacemarkColor(mark);\r\n myTimelineRegistry.addLayer(ourKey, \"My Places\", color, true);\r\n addPointsToTimeline(timedPoints);\r\n }\r\n }\r\n }", "com.google.dataflow.v1beta3.MetricUpdate getMetrics(int index);", "@Override\n public void updateStats() {\n if (isEnglish) {\n String moves = NUM_MOVES + presenter.getNumMoves();\n String time = TIME_LEFT + presenter.getTimeLeft();\n String points = POINTS + presenter.getPoints();\n painterTextViewMoves.setText(moves);\n painterTextViewTime.setText(time);\n painterTextViewPoints.setText(points);\n } else {\n String moves = NUM_MOVES_CHINESE + presenter.getNumMoves();\n String time = TIME_LEFT_CHINESE + presenter.getTimeLeft();\n String points = POINTS_CHINESE + presenter.getPoints();\n painterTextViewTime.setText(time);\n painterTextViewMoves.setText(moves);\n painterTextViewPoints.setText(points);\n }\n }", "public void update() {\n\n\t\tdisplay();\n\t}", "private void update(LinkedTaskList linkedTaskList){\n dispose();\n new View(linkedTaskList);\n }", "@Override\n protected void update()\n {\n final double DENSITY = this.getResources().getDisplayMetrics().scaledDensity;\n final ArrayList<BarChart.SeriesInfo> SERIES = new ArrayList<>();\n\n final Thread LOAD_GRAPH = new Thread() {\n @Override\n public void run() {\n final StatsActivity SELF = StatsActivity.this;\n int idForLegendX = R.string.label_week;\n\n SELF.getSelections();\n\n if( SELF.graphType == GraphType.Yearly ) {\n idForLegendX = R.string.label_year;\n }\n else\n if( SELF.graphType == GraphType.Monthly ) {\n idForLegendX = R.string.label_month;\n }\n\n final String LEGEND_X = SELF.getString( idForLegendX );\n\n SELF.runOnUiThread( () -> {\n switch( SELF.graphType ) {\n case Yearly:\n SELF.calculateDataForYearsStats( SELF.selectedYear, SERIES );\n break;\n case Monthly:\n SELF.calculateDataForMonthsStats( SELF.selectedYear, SERIES );\n break;\n case Weekly:\n SELF.calculateDataForWeeksStats(\n SELF.selectedYear, SELF.selectedMonth, SERIES );\n break;\n default:\n Log.e( LOG_TAG, \"unsupported graph type\" );\n }\n\n final BarChart CHART = new BarChart( DENSITY, SERIES );\n\n CHART.setLegendX( LEGEND_X );\n CHART.setLegendY( settings.getDistanceUnits().toString() );\n CHART.setShowLabels( true );\n SELF.chartView.setScaleType( ImageView.ScaleType.MATRIX );\n SELF.chartView.setImageDrawable( CHART );\n });\n }\n };\n\n LOAD_GRAPH.start();\n }", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "private void updateViews() {\n if (mStructure == null || mThermostat == null) {\n return;\n }\n\n display_temp = mThermostat.getTargetTemperatureC();\n Log.v(TAG,\"updateViews: display_temp=\"+display_temp);\n // updates all views\n updateAmbientTempTextView();\n updateMenuItems();\n updateThermostatViews();\n updateControlView();\n\n //update the seekbar progress\n double temp = display_temp;\n mTempSeekbar.setProgress(0);\n display_temp = temp;\n mTempSeekbar.setProgress((int)((display_temp-9)/(32-9)*100));\n }", "@Override\n\tpublic void onViewChanged(JFrame frame) {\n\t\tupdateCourses();\n\t}", "void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }", "private void updateView()\n {\n System.out.println(this);\n repaint();\n }", "@Override\n public void refreshView() {\n WSDLActivityConfigurationBean configuration = activity.getConfiguration();\n description.setText(\"VPH-Share service \" + configuration.getWsdl());\n }", "public void statsAction() {\n StatsWin newWindow = getSelectedCell().mkStatsWin();\n WindowUtils.avoidParent(newWindow, parentFrame);\n watchers.add(newWindow);\n }", "void updateViewFromModel();", "public\n void\n updateView(Date start, Date end, TotalFilter filter)\n {\n // Clear data.\n getExpensePanel().clear();\n getIncomePanel().clear();\n getTransferPanel().clear();\n\n createReportAndDisplayResults(start, end, filter);\n }", "@Override\n\tpublic void updatePanel() {\n\t\tstatTable.setStatTable(getModel().getRowCount(),\n\t\t\t\tgetModel().getRowNames(), getModel().getColumnCount(),\n\t\t\t\tgetModel().getColumnNames());\n\t\tgetModel().updatePanel();\n\t}", "public void updateStats( ) {\r\n\t\tperseverance = owner.perseverance;\r\n\t\tobservation = owner.observation;\r\n\t\tintellect = owner.intellect;\r\n\t\tnegotiation = owner.negotiation;\r\n\t\ttact = owner.tact;\r\n\t\tstrength = owner.strength;\r\n\r\n\t\txCoord = owner.xCoord;\r\n\t\tyCoord = owner.yCoord;\r\n\r\n\t\tmaxHealth = 2400 + ( perseverance * 200 );\r\n\r\n\t\thealth = maxHealth;\r\n\r\n\t\tsetDamages( );\r\n\t}", "private void refreshWeeklyStats() {\n TextView weekView = findViewById(R.id.weekView);\n weekView.setText(WeeklyStatistics.getWeek());\n\n String userId = Login.getUserId();\n DocumentReference cycleReference = WeeklyStatistics.getSportWeeklyStat(userId, Sport.CYCLING);\n DocumentReference runReference = WeeklyStatistics.getSportWeeklyStat(userId, Sport.RUNNING);\n DocumentReference walkReference = WeeklyStatistics.getSportWeeklyStat(userId, Sport.WALKING);\n\n setCycleStats(cycleReference);\n setRunStats(runReference);\n setWalkStats(walkReference);\n }", "public PlotViewStatsAndMaths() {\n \t}", "private void updateHistorgamView(IWorkbenchPart part) {\r\n\t\tif (part instanceof TrackerEditor) {\r\n\t\t\tTracker tracker=TrackerHistogramViewUtils.getTracker();\r\n\t\t\tview.setTracker(tracker);\r\n\t\t\tview.refresh(true);\r\n\t\t}\r\n\t}", "private void observeViewModel(MeasureListViewModel measureListViewModel, SheetListViewModel sheetListViewModel) {\n measureListViewModel.getMeasuresBySheet(getApplication()).observe(this, new Observer<List<Measure>>() {\n @Override\n public void onChanged(@Nullable List<Measure> measures) {\n if (measures != null && measures.size() != 0) {\n\n if (measuresAdapter == null) {\n\n measuresAdapter = new MeasuresAdapter(getApplicationContext(), beatClickCallback);\n recyclerView.setAdapter(measuresAdapter);\n }\n measuresAdapter.setMeasuresList(measures, getApplicationContext());\n\n// recyclerView.smoothScrollToPosition(measures.size()-1);\n Log.d(\"ADD_MEASURE\", \"updated view\");\n\n }\n }\n });\n\n }", "public void updateStatisticsData() {\r\n\t\tif (this.statisticsTabItem != null && !this.statisticsTabItem.isDisposed()) {\r\n\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\tthis.statisticsTabItem.updateStatisticsData(true);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\tDataExplorer.this.statisticsTabItem.updateStatisticsData(true);\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onChanged(Measurement measurement) {\n updateTextViews(measurement.getTimeStamp(),\n measurement.isGi(), measurement.getAmount(),\n measurement.getStress(), measurement.getTired(), measurement.isPhysicallyActivity(),\n measurement.isAlcoholConsumed(), measurement.isIll(), measurement.isMedication(),\n measurement.isPeriod(), measurement.getGlucoseStart(), measurement.getGlucose15(),\n measurement.getGlucose30(), measurement.getGlucose45(), measurement.getGlucose60(),\n measurement.getGlucose75(), measurement.getGlucose90(), measurement.getGlucose105(),\n measurement.getGlucose120()\n );\n }", "public void updateView() {\n// LocalDate startDate = LocalDate.of(2017, Month.SEPTEMBER, 1);\n// LocalDate endDate = LocalDate.of(2017, Month.SEPTEMBER, 6);\n// getRecords(startDate, endDate);\n }", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "@Override\n\tpublic void updateStyleBars() {\n\t\tsuper.updateStyleBars();\n\t\tif (showView(App.VIEW_EUCLIDIAN3D) && getEuclidianView3D().hasStyleBar()) {\n\t\t\tgetEuclidianView3D().getStyleBar().updateStyleBar();\n\t\t}\n\t}", "public void update() {\n\t\tremoveAll();\n\t\tdrawGraph();\n\t\tplotEntries();\n\t}", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "final void updateSpan(){\n setEdited();\n if (this instanceof Document){\n ((Document)this).updateDoc();\n } else {\n getParent().updateParent();\n }\n }", "private void refreshUI(){\r\n\t\t//update text fields\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tm_MCSTf.setText(String.valueOf(conf.getMCSScore()));\r\n\t\tm_RelScoreTf.setText(String.valueOf(conf.getRelevanceWeight()));\r\n\t\tm_CohScoreTf.setText(String.valueOf(conf.getCoherenceWeight()));\r\n\t\tm_KeyTf.setText(String.valueOf(conf.getKeywordsWeight()));\r\n\t\tm_CatConfTf.setText(String.valueOf(conf.getCategoryConfidenceWeight()));\r\n\t\tm_RepeatTf.setText(String.valueOf(conf.getRepeatedConceptWeight()));\r\n\t\tm_MinCatsTf.setText(String.valueOf(conf.getMinOutputCategories()));\r\n\t\tm_MaxCatsTf.setText(String.valueOf(conf.getMaxOutputCategories()));\r\n\t\tm_MinCatScoreTf.setText(String.valueOf(conf.getMinScore()));\r\n\t\t//refresh tables\r\n\t\tm_DatasetTable.refresh();\r\n\t\tm_ConceptTable.refresh();\r\n\t\t//refresh statistics window\r\n\t\tm_StatisticsWindow.refresh();\r\n\t\t//refresh filter choicebox\r\n\t\tupdateFilterChoiceBox();\r\n\t}", "protected void updateTelemetry(){\n telemetry.addData(\"Runtime\", this.getRuntime());\n Robot.outputToTelemetry(this);\n telemetry.update();\n }", "public void growStats() {\r\n\t\tLIFE += increment;\r\n\t\tSTRENGTH += increment;\r\n\t}", "@Override\n\tpublic void refreshView() {\n\n\t}", "private void updateQueryViews() {\n for (QueryView view : queryViews) {\n updateQueryView(view);\n }\n }", "public void refresh(){\n\t\tint i=0;\n\t\tEntity editedEntity=getEditedEntity();\n\t\tfor(FloatTrait t:swat.dk.getTraits(tt)){\n\t\t\t((Swat.Slider)((JComponent)slidersPanel.getComponent(i)).getComponent(1)).mSetValue(toSlider(getValue(editedEntity,t)));\n\t\t\ti++;\n\t\t}\n\t}", "void updateDashboard() {\n\t}", "private void updateStationViews() {\n // set name, image, metadata and url\n updateStationNameView(mThisStation);\n updateStationImageView(mThisStation);\n updateStationMetadataView(mThisStation);\n mStationDataSheetStreamUrl.setText(mThisStation.getStreamUri().toString());\n }", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "@Override\n\tpublic boolean updateWithStats(Calendar fromC, Calendar toC, Context context) {\n\t\tlong from = fromC.getTimeInMillis()/1000;\n\t\tlong to = toC.getTimeInMillis()/1000;\n\t\t\n\t\tif (CACHE_HISTORY_TO_DB) {\n\t\t\tupdateWithStatsToDB(context, from, to);\n\t\t} else {\n\t\t\t\n\t\t\t// immer live abholen\n\t\t\tActuator updated = RuntimeStorage.getMyHttp().get_states_actuator(this, from, to);\n\n\t\t\tif (updated != null) {\n\t\t\t\tthis.setNumber(updated.getNumber());\n\t\t\t\tthis.setName(updated.getName());\n\t\t\t\tthis.setType(updated.getType());\n\t\t\t\tthis.setValue(updated.getValue(), false);\n\t\t\t\tthis.setUnit(updated.getUnit());\n\t\t\t\tthis.setUtime(updated.getUtime());\n\t\t\t\tthis.setNewvalue(updated.getNewvalue());\n\t\t\t\tthis.setStatistics(updated.getStatistics());\n\t\t\t} else {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\n public void updateView(Intent intent)\n {\n \n }", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "@Override\n\t\tpublic void update() {\n\n\t\t}", "public void updateStatistics(List<Creature> mobs) {\n time++;\n statisticsPane.printStatistics(mobs, time);\n }", "public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }", "public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }", "public void update() {\r\n\t\tremoveAll();\r\n\t\tdrawGrid();\r\n\t\tplotDecades();\r\n\t\tgetEntries();\r\n\t}", "private void updateManualVisit() {\n // scroll to expandable RecyclerView\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(scrollTo());\n\n // scroll to visit group and click to expand\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(RecyclerViewActions.scrollToPosition(POS_VISIT_GROUP))\n .perform(click());\n\n // click the visit that was added to update it\n onView(withId(R.id.expanding_rv_manual_visits))\n .perform(RecyclerViewActions.actionOnItemAtPosition(POS_NEW_VISIT, click()));\n\n // pick updated date\n onView(withId(R.id.date_picker)).perform(PickerActions.setDate(\n UPDATED_YEAR, UPDATED_MONTH, UPDATED_DAY));\n\n // scroll to time picker\n onView(withId(R.id.time_picker))\n .perform(scrollTo());\n\n // pick updated time\n onView(withId(R.id.time_picker)).perform(PickerActions.setTime(UPDATED_HOUR, UPDATED_MINUTE));\n\n // scroll to set button\n onView(withId(R.id.btn_date_time_set))\n .perform(scrollTo());\n\n // click to set updated date and time\n onView(withId(R.id.btn_date_time_set)).perform(click());\n }", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "private void displayStats(CheckListView<String> checkview, TextArea stats) {\n\t\tStringBuilder start = new StringBuilder();\n\t\tfor(String critter_name:checkview.getCheckModel().getCheckedItems()){\n\t\t\ttry {\n\t\t\t\tClass classTemp = Class.forName(this.getClass().getPackage().getName() + \".\" + critter_name);\n\t\t\t\tMethod m = classTemp.getMethod(\"runStats\", List.class); //Get method\n\t\t\t\tList<Critter> instances = Critter.getInstances(critter_name);\n\t\t\t\tString output = (String)m.invoke(null, instances); //Invoke with instances\n\t\t\t\tstart.append(output).append(\"\\n\");\n\t\t\t} catch (Exception e) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tstats.clear();\n\t\tstats.appendText(start.toString());\n\t}", "private final void updateStatistics(){\r\n\t\tstatisticsText_.setLength(0); \t//reset\r\n\t\t\r\n\t\tRegion[][] regions = Map.getInstance().getRegions();\r\n\t\tVehicle[] vehicles;\r\n\t\tVehicle vehicle;\r\n\t\tint i, j, k;\r\n\t\tint activeVehicles = 0;\r\n\t\tint travelledVehicles = 0;\r\n\t\tint wifiVehicles = 0;\r\n\t\tlong messagesCreated = 0;\r\n\t\tlong IDsChanged = 0;\r\n\t\tdouble messageForwardFailed = 0;\r\n\t\tdouble travelDistance = 0;\r\n\t\tdouble travelTime = 0;\r\n\t\tdouble speed = 0;\r\n\t\tdouble knownVehicles = 0;\r\n\t\tfor(i = 0; i < regions.length; ++i){\r\n\t\t\tfor(j = 0; j < regions[i].length; ++j){\r\n\t\t\t\tvehicles = regions[i][j].getVehicleArray();\r\n\t\t\t\tfor(k = 0; k < vehicles.length; ++k){\r\n\t\t\t\t\tvehicle = vehicles[k];\r\n\t\t\t\t\tif(vehicle.getTotalTravelTime() > 0){\r\n\t\t\t\t\t\t++travelledVehicles;\r\n\t\t\t\t\t\ttravelDistance += vehicle.getTotalTravelDistance();\r\n\t\t\t\t\t\ttravelTime += vehicle.getTotalTravelTime();\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(vehicle.isActive()){\r\n\t\t\t\t\t\t++activeVehicles;\r\n\t\t\t\t\t\tspeed += vehicle.getCurSpeed();\r\n\t\t\t\t\t\tif(vehicle.isWiFiEnabled()){\r\n\t\t\t\t\t\t\t++wifiVehicles;\r\n\t\t\t\t\t\t\tmessageForwardFailed += vehicle.getKnownMessages().getFailedForwardCount();\r\n\t\t\t\t\t\t\tknownVehicles += vehicle.getKnownVehiclesList().getSize();\r\n\t\t\t\t\t\t\tIDsChanged += vehicle.getIDsChanged();\r\n\t\t\t\t\t\t\tmessagesCreated += vehicle.getMessagesCreated();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.currentTime\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(Renderer.getInstance().getTimePassed()));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.activeVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(activeVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageSpeed\")); //$NON-NLS-1$\r\n\t\tif(activeVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(speed/activeVehicles/100000*3600));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" km/h\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelDistance\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelDistance/travelledVehicles/100));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" m\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageTravelTime\")); //$NON-NLS-1$\r\n\t\tif(travelledVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(travelTime/travelledVehicles/1000));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\" s\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.wifiVehicles\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(wifiVehicles));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.averageKnownVehicles\")); //$NON-NLS-1$\r\n\t\tif(wifiVehicles > 0) statisticsText_.append(INTEGER_FORMAT_FRACTION.format(knownVehicles/wifiVehicles));\r\n\t\telse statisticsText_.append(\"0\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.uniqueMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messagesCreated));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.failedMessages\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(messageForwardFailed));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(Messages.getString(\"ReportingControlPanel.totalIDchanges\")); //$NON-NLS-1$\r\n\t\tstatisticsText_.append(INTEGER_FORMAT.format(IDsChanged));\r\n\t\tstatisticsText_.append(\"\\n\"); //$NON-NLS-1$\r\n\t\t\r\n\t\tstatisticsTextArea_.setText(statisticsText_.toString());\r\n\t}", "private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }", "public void addScopeMetric(int sgold, int ssystem, int stp, int sfp,\n \t\t\tint sfn, float sprec, float srec, float sf) {\n \t\tthis.sgold = sgold;\n \t\tthis.ssystem = ssystem;\n \t\tthis.stp = stp;\n \t\tthis.sfp = sfp;\n \t\tthis.sfn = sfn;\n \t\tthis.sprec = sprec;\n \t\tthis.srec = srec;\n \t\tthis.sf = sf;\n \t}", "public void refresh() {\n\t\tgetData();\n\t\trender();\n\t}", "private void expensesUpdateWaterfallChart() {\n\n waterfallData.clear();\n waterfallData = DBGetExpenses.forEachDayChallengeWasRunning(key1OfActiveChallenge, goal);\n //waterfall.data(waterfallData);\n //waterfallView.invalidate();\n }", "void updateModelFromView();", "public void savePerfMeasure(View view) {\n \tdouble[] gps = getGPS();\n \tPerfMeasure.Save(gps);\n \talertbox(\"Save Results\",\"The performance results are saved successfully.\");\n }", "public void dailyStats(){\n\t\tString outputString = \"\\nTotal Money Made Today: $\" + (float)Math.round(dailyMoneyMade * 100.0) / 100.0 + \" \\n\";\n\t\toutputString = outputString + \"Catering Sales: $\" + (float)Math.round(cateringDailyMade * 100.0) / 100.0 + \" Business Sales: $\" \n\t\t+ (float)Math.round(businessDailyMade * 100.0) / 100.0 +\" Casual Sales: $\" + (float)Math.round(casualDailyMade * 100.0) / 100.0 +\"\\n\";\n\t\t\n\n\t\toutputString = outputString + \"\\nTotal Outages Today: \" + dailyDisruptions + \" \\n\";\n\t\toutputString = outputString + \"Catering Outages: \" + cateringOuttages + \" Business Outages: \" + businessOuttages +\" Casual Outages: \" + casualOuttages +\"\\n\";\n\n\t\tSystem.out.println(outputString);\n\t\tthis.status = outputString;\n\t\tsetChanged();\n notifyObservers();\n\t}", "void setStats(double newWidth, double newHeight) {\n width = newWidth;\n height = newHeight;\n }", "public void dataChanged() {\n // get latest data\n runs = getLatestRuns();\n wickets = getLatestWickets();\n overs = getLatestOvers();\n\n currentScoreDisplay.update(runs, wickets, overs);\n averageScoreDisplay.update(runs, wickets, overs);\n }", "private void update() {\r\n\t\t\r\n\t\tfor(int r = 0; r < seatGrid.length; r++) {\r\n\t\t\tfor(int c =0; c< seatGrid[0].length; c++) {\r\n\t\t\t\tseatGrid[r][c].setText(chart.getStudentName(r, c));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\tpublic void sessionChanged(ExerciseSessionData newSession) {\n\t\tlargeStatsFragment.setExerciseSession(newSession);\n\t\tsmallStatsFragment.setExerciseSession(newSession);\n\t}", "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "public void editMeasures() {\r\n \t\tdialogFactory.getDialog(new MeasurePanel(model, model, model), \"Define performance indices\");\r\n \t}", "private void updateView(){\n \n camera.updateView();\n }", "@Override\r\n\tpublic void updateView(List<Pays> models) {\n\t}", "private void updateOverview() {\n\t\t\n\t\t//check if anything is selected\n\t\tif (!listView.getSelectionModel().isEmpty()) {\n\t\t\tItemBox itemBox = listView.getSelectionModel().getSelectedItem();\n\n\t\t\tnameLabel.setText(itemBox.getName());\n\t\t\tamountLabel.setText(String.valueOf(itemBox.getAmount()) + \"x\");\n\t\t\tgtinLabel.setText(itemBox.getGtin());\n\t\t\tcategoriesLabel.setText(itemBox.getCategoriesText(\"long\"));\n\t\t\tattributesLabel.setText(itemBox.getAttributes());\n\t\t\tlog.info(\"Overview set to \" + itemBox.getName());\n\t\t}\t\n\t}", "public void refresh() {\n\n odp.refresh();\n\n\n }", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "private void refresh() {\n updatePopulationInfo();\n\n // Update current production info\n updateProductionInfo();\n\n // Update the building grid\n updateBuildingInfo();\n\n // Update the warehouse display\n updateWarehouse();\n\n // Update the list of ships/carriers in port\n updateInPortInfo();\n\n // Update the list of cargo on the selected carrier\n updateCargoInfo();\n }" ]
[ "0.5839616", "0.5839616", "0.57477707", "0.57477707", "0.5738202", "0.56748044", "0.5659381", "0.56093717", "0.546619", "0.5418556", "0.5400436", "0.53723574", "0.5362481", "0.5323832", "0.5283118", "0.52793", "0.5234988", "0.5226227", "0.52137643", "0.520083", "0.5195347", "0.51740336", "0.5173208", "0.5163532", "0.51529783", "0.5151415", "0.5150905", "0.51440305", "0.51326203", "0.51285964", "0.5128046", "0.5120456", "0.5106995", "0.51045775", "0.509745", "0.5095367", "0.5084306", "0.5078972", "0.50739473", "0.50682837", "0.50659037", "0.50657874", "0.5062605", "0.5051679", "0.5044083", "0.5040132", "0.50385046", "0.50263584", "0.5025123", "0.502263", "0.50167805", "0.50077087", "0.49887276", "0.49719352", "0.4966012", "0.49608067", "0.49581477", "0.49491972", "0.49488586", "0.49474952", "0.49424785", "0.49383295", "0.49305728", "0.49241364", "0.4922385", "0.49143904", "0.49133688", "0.49110875", "0.49044174", "0.49044174", "0.49044174", "0.49016872", "0.49014303", "0.48957184", "0.48913398", "0.48906744", "0.48904967", "0.48845515", "0.48790312", "0.48783052", "0.4875899", "0.48664048", "0.48652908", "0.48579013", "0.48572534", "0.48558652", "0.48532742", "0.48517042", "0.48451427", "0.48442358", "0.4836466", "0.48244077", "0.48229662", "0.48119944", "0.48117468", "0.4805811", "0.4803949", "0.48021957", "0.4800638", "0.4800355" ]
0.48540667
86
Sets the title for this view.
@Override public void setViewTitle(String title) { stethoscopeLabel.setText(title); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setTitle(String title) {\r\n _title = title;\r\n }", "public void setTitle(String title) {\n mTitle = title;\n }", "public void setTitle_(String title_) {\n this.title_ = title_;\n }", "public void setTitle(String title)\n {\n mTitle = title;\n }", "public void setTitle(String title) {\n mTitle = title;\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 }", "public void setTitle(String title) {\n this.title = title;\n }", "@Override\n public void setTitle(String title) {\n this.title = title;\n }", "@Override\r\n\tpublic void setTitle(String title) {\n\t\tthis.title = title;\r\n\t}", "public void setTitle( String title ) {\n\t\t_title = title;\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 }", "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(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(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(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(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n this.title = title;\n }", "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 {\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 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 }", "protected void setTitle(String title) {\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(Title title) {\r\n this.title = title;\r\n }", "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(String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) {\n this.title = title;\n etvTitle.setText(title);\n }", "public void setTitle(final String title) {\n this.title = title;\n }", "public void setTitle(final String title)\n {\n this.title = title;\n }", "@Override\n\tpublic void setTitle(String title) {\n\t\tmodel.setTitle(title);\n\t}", "public void setTitle(String title) {\r\n\tthis.title = title;\r\n }", "public void setTitle( String title )\n {\n _strTitle = title;\n }", "public void setTitle(String title){\n \tthis.title = title;\n }", "public void setTitle(String title)\n\t{\n\t\tthis.title = title;\n\t}", "public void setTitle(String title) { this.title = title; }", "public void setTitle(String title) {\n\tthis.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(java.lang.String title) {\n this.title = title;\n }", "public void setTitle(java.lang.String title)\n {\n this.title = title;\n }", "public void setTitle(final String title) {\n\t\tthis.title = title;\n\t}", "public void setTitle(java.lang.String title);", "public void setTitle(String title) {\n m_title.setText(title);\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);", "public void setTitle(String title);", "public void setTitle(String title);", "void setTitle(@NonNull String title);", "public void setTitle(String title){\n lblTitle.setText(title);\n }", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_scienceApp.setTitle(title);\n\t}", "@Element \n public void setTitle(String title) {\n this.title = title;\n }", "public void setTitle(Title Title) {\n\t\ttitle = Title;\n\t}", "void setTitle(java.lang.String title);", "private void setTitle(java.lang.String title) {\n System.out.println(\"setting title \"+title);\n this.title = title;\n }", "@Override\n public void setTitle(CharSequence title) {\n mTitle = title;\n getSupportActionBar().setTitle(mTitle);\n }", "@Override\n\tpublic void setTitle(java.lang.String title) {\n\t\t_esfTournament.setTitle(title);\n\t}", "public void setTitle(java.lang.Object title) {\n this.title = title;\n }", "public void setTitle(String mTitle) {\n this.mTitle = mTitle;\n }", "public void setTitle(String strTitle) { m_strTitle = strTitle; }", "@Override\n\tpublic void setTitle(String title) {\n\t\t\n\t}", "public void setTitle(java.lang.String value) {\n this.title = value;\n }", "private void setWindowTitle(String title) {\n this.title = title;\n }", "public void setTitle(String title) {\n setDialogTitle(title);\n }", "public void setTitle(String title) {\n\t\tthis.title = title;\n\t\tthis.dirtyAttributes.add(Constants.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 }", "public void setTitle(String title) {\n// toolbar.setTitle(title);\n// setSupportActionBar(toolbar);\n// resetNavigationOnClickListener();\n titleTextView.setText(title);\n }", "void setTitle(String title);", "void setTitle(String title);", "void setTitle(String title);" ]
[ "0.8146299", "0.8100029", "0.8095949", "0.80768245", "0.80670583", "0.804122", "0.804122", "0.80371743", "0.8035206", "0.8029878", "0.8029403", "0.8028358", "0.8028358", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.80147004", "0.79927534", "0.79927534", "0.79927534", "0.79927534", "0.79927534", "0.7986505", "0.7986505", "0.7986505", "0.7984997", "0.7984997", "0.7984997", "0.7984997", "0.7958856", "0.79476464", "0.79461867", "0.7943599", "0.79418373", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.79159796", "0.791136", "0.7908237", "0.79009944", "0.7899901", "0.78969586", "0.7882231", "0.78757954", "0.78708565", "0.7868208", "0.7823558", "0.7821681", "0.7821681", "0.7821681", "0.78038853", "0.77957374", "0.7784967", "0.7777598", "0.77418447", "0.7713342", "0.7713342", "0.7713342", "0.7707563", "0.7676851", "0.7655356", "0.7648842", "0.7640685", "0.76394945", "0.7633674", "0.7625166", "0.7596694", "0.75856704", "0.7568739", "0.7532936", "0.7515577", "0.750049", "0.74625754", "0.7446888", "0.7441294", "0.74272543", "0.7398176", "0.7378749", "0.7378749", "0.7378749" ]
0.7688279
79
Sets the text for this view's "switch metrics" button.
@Override public void setSwitchText(String text) { switchButton.setText(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setText(String st){\n\t\tbutton.setText(st);\n\t}", "public void setLabelText(String text);", "public void setButtonText(String str){\r\n SWINGButton.setText(str);\r\n }", "@Override\r\n\tpublic void setText() {\n\t\t\r\n\t}", "public void setText( String text );", "public void setText(String text);", "public void setText(String text) {\n\t\tif (measureType != null) {\n\t\t\tsuper.setText(text + \" \" + measureType);\n\t\t} else {\n\t\t\tsuper.setText(text);\n\t\t}\n\t}", "@Override\n public void setText(String text) {\n myProgressManager.setText2(this, text);\n }", "@Override\n\tpublic void setText(String arg0) {\n\t\t\n\t}", "public void setNewButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_newButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_newButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setNewButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setText(String text) {\n\t\t_coolBar.setText(text);\n\t}", "void setEvaluateClickText(String title);", "@Override\n\t\t\t\tpublic void setTextView(String str) {\n\t\t\t\t\ttextView_setpsd_info.setText(str);\n\t\t\t\t}", "public void setText(String text) {\n\t\ttextLabel.setText(text);\n\t}", "public void setText(String text) {\r\n\r\n\t}", "public void setEditButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_editButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_editButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setEditButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setText(String s)\n {\n \tLongTermResult.setText(s);\n }", "public void onClick(View v) {\n lbl.setText(\"Hola jose\");\n }", "@Override\n public void setText(String promptText) {\n super.setText(promptText); \n if (promptText != null) {\n ResizeUtils.updateSize(this, actions);\n }\n }", "public void setText() {\n\t\ttxtPower.setText(\"\");\n\t\ttxtPower.setText(\"Battery Info: \\n\" + getBatteryInfo() + \"\\n\"\n\t\t\t\t+ \"Battery Status: \" + getStatus() + \"\\n\"\n\t\t\t\t+ \"External AC Power: \" + getExtPowerStatus() + \"\\n\"\n\t\t\t\t+ \"External USB Power: \" + getUsbPowerStatus() + \"\\n\"\n\t\t\t\t+ \"Current level: \" + getCurrentLevel() + \"\\n\"\n\t\t);\n\t}", "public void configure(T aView) { aView.setText(\"Button\"); }", "void setText(String text);", "private void updateActionText() {\n getTemplatePresentation().setText(myIsExpanded ? myToCollapseText : myToExpandText);\n }", "public void button0OnClick(View view){ display.setText(display.getText()+ \"0\");}", "public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb1);\n }", "public void setText(String text) {\n\t\t\n\t}", "@Override\n public void setPriorityText(int textResId) {\n btnPrioritySet.setText(getText(textResId));\n }", "public void setText(String text) {\n\t\tthis.textPane.setText(text);\n\t}", "public void actionPerformed(ActionEvent e) {\r\n mode = InputMode.CHG_TEXT;\r\n instr.setText(\"Click one node to change the text on the node.\");\r\n }", "void setText(String string) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setText(String s) {\n text = s;\n }", "public void setText(String name) {\n\t\tmetroText.setText( name );\n\t}", "public void setText(String text) {\n this.text.setText(text);\n }", "public void setText(String text) {\r\n this.text = text;\r\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n this.text = text;\n }", "public void setText(String text) {\n\t\tthis.text = text;\n\t\tupdateView();\n\t}", "@Override\n public void choiced(String result) {\n target.setText(result);\n target.setTextColor(getResources().getColor(R.color.app_color));\n }", "@Override\n\t\t\tpublic void setTextView(String str) {\n\t\t\t\t\n\t\t\t}", "void setText(@StringRes int resId) {\n setText(getContext().getText(resId));\n }", "public void setText(String text) {\n likeCountLabel.setText(text);\n }", "void setText (String text);", "public void setText(String text)\n {\n this.text = text;\n }", "public void setText(String text) {\n mText = text;\n }", "public void setText(String S) {\n str = S;\n compute();\n }", "public void setVisualizerButtonSelected(String btnText) {\n visualizerButtonSelected = btnText;\n }", "public void setText(String text) {\r\n\t\tthis.text = text;\r\n\t}", "@Override\n public void setText(String text) {\n label.setText(text);\n textArea.setText(text);\n }", "@Override\n public void setText(String englishText) {\n\n }", "public static ViewAction setTextInTextView(final String value){\n return new ViewAction() {\n @SuppressWarnings(\"unchecked\")\n @Override\n public Matcher<View> getConstraints() {\n return allOf(isDisplayed(), isAssignableFrom(TextView.class));\n }\n\n @Override\n public void perform(UiController uiController, View view) {\n ((TextView) view).setText(value);\n }\n\n @Override\n public String getDescription() {\n return \"replace text\";\n }\n };\n }", "public void switchToLabel() {\n if (deckPanel.getVisibleWidget() == LABEL_INDEX) {\n return;\n }\n // Fires the ValueChanged event.\n setValue(textArea.getText(), true);\n deckPanel.showWidget(LABEL_INDEX);\n }", "public void setText(String t) {\n\t\t\ttext.set(t);\n\t\t}", "public void buttonMod (View view){ expressionView.setText(expressionView.getText() + \"Mod\");}", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void setText(String t) {\n\t\ttext = t;\n\t\tb.setText(t);\n\t}", "public void setText(String text) {\r\n\t\tthis.text= text;\r\n\t}", "public void setText(String text)\n {\n getComponent().setText(text);\n invalidateSize();\n }", "public void setCustomText(String text) {\n\t\tthis.text = text;\n\t\tcustomUpdateView();\n\t}", "public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb2);\n }", "public void showButtonText( boolean b ) {\n if ( b ) {\n _run_btn.setText( \"Run\" );\n _trace_btn.setText( \"Trace\" );\n _edit_btn.setText( \"Edit\" );\n _props_btn.setText( \"Properties\" );\n _options_btn.setText( \"Options\" );\n _reload_btn.setText( \"Reload\" );\n }\n else {\n _run_btn.setText( \"\" );\n _trace_btn.setText( \"\" );\n _edit_btn.setText( \"\" );\n _props_btn.setText( \"\" );\n _options_btn.setText( \"\" );\n _reload_btn.setText( \"\" );\n }\n }", "private void updateLabel(String text) {\r\n labelT.setText(text);\r\n labelT.setToolTipText(text);\r\n }", "@objid (\"5c3d048f-2049-4d54-b5e2-eb8c3afe4b1d\")\r\n public void setText(final String label) {\r\n if (label != null)\r\n this.text.setText(label);\r\n }", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "public void setText(String text) {\n\t\tthis.text = text;\n\t}", "public void setTextOfStartPause() {\n if (play) {\n startButton.setText(\"Start\");\n } else {\n startButton.setText(\"Pause\");\n }\n }", "public void setSearchButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_searchButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_searchButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setSearchButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setInstructions(String text){\n instructions.setText(text);\n }", "public void setLanguageEnglishButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageEnglishButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageEnglishButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageEnglishButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@Override\n public void onClick(View v) {\n if (tvHello.getText().equals(getText(R.string.helloWorld)))\n {\n tvHello.setText(R.string.agur);\n }\n\n else\n {\n tvHello.setText(R.string.helloWorld);\n }\n }", "public void setText(String text) {\n\t\tcurrentTrack.setText(text);\n\t}", "public void setLabelText(String text) {\n label.setText(text);\n }", "private void setTextValue(boolean update) {\r\n\t\t\tString s = \"\";\r\n\t\t\tString updateS = \"\";\r\n\r\n\t\t\tif (update)\r\n\t\t\t\tupdateS = \" (update)\";\r\n\t\t\ts = prefDescriptor + updateS + \": \" + AttendanceReport.preferences.getProperty(pref);\r\n\t\t\tthis.setText(s);\r\n\t\t}", "public void onClick(View arg0) {\n // change the text to state that radio button one was clicked\n tv_display.setText(R.string.tv_display_rb3);\n }", "@Test\n public void testAccessText() throws Throwable {\n mSwitch = new Switch(new ContextThemeWrapper(mActivity, android.R.style.Theme_Holo_Light));\n final ViewGroup container = (ViewGroup) mActivity.findViewById(R.id.container);\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, container,\n () -> container.addView(mSwitch));\n\n // Set \"on\" text and verify it\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setTextOn(\"Text on\"));\n assertEquals(\"Text on\", mSwitch.getTextOn());\n\n // Set \"off\" text and verify it\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setTextOff(\"Text off\"));\n assertEquals(\"Text off\", mSwitch.getTextOff());\n\n // Turn text display on\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setShowText(true));\n assertTrue(mSwitch.getShowText());\n\n // Use custom text appearance. Since we don't have APIs to query this facet of Switch,\n // just test that it's not crashing.\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setSwitchTextAppearance(mActivity, R.style.TextAppearance_WithColor));\n\n // Use custom typeface. Since we don't have APIs to query this facet of Switch,\n // just test that it's not crashing.\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setSwitchTypeface(Typeface.MONOSPACE));\n\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setSwitchTypeface(Typeface.SERIF, Typeface.ITALIC));\n\n // Set and verify padding between the thumb and the text\n final int thumbTextPadding = mActivity.getResources().getDimensionPixelSize(\n R.dimen.switch_thumb_text_padding);\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setThumbTextPadding(thumbTextPadding));\n assertEquals(thumbTextPadding, mSwitch.getThumbTextPadding());\n\n // Set and verify padding between the switch and the text\n final int switchPadding = mActivity.getResources().getDimensionPixelSize(\n R.dimen.switch_padding);\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setSwitchPadding(switchPadding));\n assertEquals(switchPadding, mSwitch.getSwitchPadding());\n\n // Turn text display off\n WidgetTestUtils.runOnMainAndDrawSync(mActivityRule, mSwitch,\n () -> mSwitch.setShowText(false));\n assertFalse(mSwitch.getShowText());\n }", "public void setExportButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_exportButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_exportButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_exportButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setExportButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}", "public void setText(String text)\n\t{\n\t\tthis.text = text;\n\t}", "@SuppressWarnings(\"unused\")\n public void setInfoText(int resourceId) {\n\n mInfoText.setText(resourceId);\n mInfoText.setVisibility(View.VISIBLE);\n }", "public static void setTextInTile(String s) {\n tiles.get(lastClicked).setTextValue(s);\n }", "public void setText ( String text ) {\r\n\t\tgetStateHelper().put(PropertyKeys.text, text);\r\n\t\thandleAttribute(\"text\", text);\r\n\t}", "public void setVisualizerText(String text) {\n this.visualizerText = text;\n }", "private static void setTextInWidget(String message,Context context){\n RemoteViews remoteViews = new RemoteViews(context.getPackageName(),\n R.layout.widget_layout);\n remoteViews.setTextViewText(R.id.sadness_button, message);\n AppWidgetManager.getInstance(context).updateAppWidget(\n new ComponentName(context, DarknessProvider.class),remoteViews);\n }", "public void setLanguageGermanButtonText(String text) {\n/*Generated! Do not modify!*/ replyDTO.getVariablesToSet().add(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ if (text == null) {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().remove(\"overviewSmall_languageGermanButton_propertyText\");\n/*Generated! Do not modify!*/ } else {\n/*Generated! Do not modify!*/ replyDTO.getVariableValues().put(\"overviewSmall_languageGermanButton_propertyText\", text);\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"setLanguageGermanButtonText(\" + escapeString(text) + \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ }", "@Override\n public void setStatusText(String text) {\n status.setText(text);\n }", "public void setInstruction(String ins)\n\t{\n\t\tgetJLabel().setText(ins);\n\t}", "void setLabel(String label);", "public void setText(String text) {\n GtkEntry.setText(this, text);\n }", "public void setLabelToBeShown(String label);", "public void setText(String text) {\n\t\tthis.text = text;\n\t\thandleConfig(\"text\", text);\n\t}", "public void setInfoLabelText(String text) {\n Label infoLabel = s.findNiftyControl(\"infoLabel\", Label.class);\n if (text != null) {\n infoLabel.setText(text);\n infoPanel.setVisible(true);\n } else\n infoPanel.setVisible(false);\n }", "private void setText(Text text) {\n \t\tthis.text = text;\n \t}", "@Override\r\n\tpublic void setText(String text) {\n\t\tsuper.setText(foundedRecords + \" : \" +text);\r\n\t}", "private void setText(View view, String text) {\n\t\t((TextView) view.findViewById(android.R.id.text1)).setText(text);\n\t}", "public void setStatus(String text) {\n labelStatus.setText(text);\n }" ]
[ "0.65501475", "0.6396912", "0.6333347", "0.61392516", "0.60888714", "0.60438544", "0.6039374", "0.6008074", "0.5956116", "0.5944541", "0.5932316", "0.5876281", "0.5859604", "0.58520186", "0.5825692", "0.5818239", "0.58180887", "0.5805887", "0.5804017", "0.579804", "0.57709", "0.5770353", "0.57586896", "0.57570875", "0.57569915", "0.5752961", "0.57396793", "0.572462", "0.572276", "0.5719406", "0.571753", "0.57135427", "0.57012147", "0.5688861", "0.5680974", "0.5680974", "0.5680974", "0.5680974", "0.5680974", "0.5680974", "0.5680974", "0.56735575", "0.56724733", "0.567104", "0.5665928", "0.56587213", "0.56539375", "0.56515276", "0.5642513", "0.56414354", "0.56365645", "0.5628659", "0.5624265", "0.5613616", "0.5610622", "0.5600795", "0.5599218", "0.5596857", "0.5592094", "0.55789346", "0.5576362", "0.55743414", "0.5566443", "0.55640763", "0.5562045", "0.5561378", "0.5553424", "0.55496883", "0.55496883", "0.55496883", "0.5546561", "0.5546095", "0.55444413", "0.5536968", "0.5535483", "0.5535024", "0.5532991", "0.5522594", "0.55144435", "0.55000305", "0.54969317", "0.54944795", "0.54944795", "0.54936063", "0.5486454", "0.54765105", "0.54692256", "0.54653096", "0.5453469", "0.5453296", "0.5427733", "0.54125327", "0.5408152", "0.5404553", "0.54025424", "0.5390056", "0.5389091", "0.5382323", "0.5377368", "0.5369753" ]
0.75360876
0
Helper method to update the information on the screen.
private void update(String text, TextView view) { handler.post(new TextUpdater(text, view)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateScreen(){}", "public void update() {\n\n\t\tdisplay();\n\t}", "public void updateOnScreen() {\n\t\tscreen.updateBox();\n\n\t}", "private void updateInformation(){\n view.getPrompt().setText(getPrompt());\n view.getScore().setText(getScore());\n }", "public void updateScreen()\n {\n super.updateScreen();\n }", "public void updateInfo()\n\t{\n\t\twidth = Game.frame.getWidth();\n\t\theight = Game.frame.getHeight();\n\t\tGame.frame.revalidate();\n\t\tGame.frame.repaint();\n\t}", "public void update() {\n this.infoWindowManager.update();\n }", "private void updateInfoValues() {\n menuPanel.updateInfoPanel( tugCount, simulation.getShipsOnSea(), simulation.getShipsDocked(), simulation.getShipsTugged());\n }", "public void updateInfo() {\n\t}", "void updateInformation();", "public void updateScreen()\n {\n field_50064_a.updateCursorCounter();\n }", "public void updateInformation() {\r\n onFirstCycle = false;\r\n lastLocation = player.getLocation();\r\n preparedAppearance = false;\r\n }", "@Override\n\tpublic void updateScreen()\n {\n super.updateScreen();\n ++this.updateCount;\n }", "void updateScreen() {\n\t\tZone possibleNewZone = currentZone.getSpace(playerY, playerX).getNextZone();\n\t\tif (possibleNewZone != null) {\n\t\t\tString oldBGMusic = currentZone.getBackgroundMusic();\n\t\t\tcurrentZone = possibleNewZone;\n\t\t\tcurrentZone.enableZoneWarpSpaces();\n\t\t\tplayerX = currentZone.getPlayerStartX();\n\t\t\tplayerY = currentZone.getPlayerStartY();\n\t\t\t\n\n\t\t\tif (!oldBGMusic.equals(currentZone.getBackgroundMusic())) {\n\t\t\t\tmusicPlayer.stop();\n\t\t\t\tmusicPlayer.play(currentZone.getBackgroundMusic(), 100);\n\t\t\t}\n\t\t}\n\n\t\t// Update Panel Colors\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\t\t\t\tpanels[i][a].setBackground(currentZone.getSpace(i, a).getColor());\n\t\t\t}\n\t\t}\n\n\t\t// Update Labels\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tfor (int a = 0; a < 10; a++) {\n\n\t\t\t\tlabels[i][a].setIcon(currentZone.getSpace(i, a).getPic());\n\t\t\t}\n\t\t}\n\t\t// Shows player in the new space\n\t\tlabels[playerY][playerX].setIcon(playerPic);\n\n\t\t// Shows enemy in the new space\n\t\t// labels[enemyY][enemyX].setIcon(enemyPic);\n\t}", "public Update_info() {\n initComponents();\n display_data();\n }", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }", "private String updateWindow()\n\t{\n \t return String.format(\"Batt: %d Alt: %d Hdg: %d Rdy: %b Track: %b Id: %d\", drone.getBattery(), drone.getHeight(), \n \t\t\tdrone.getHeading(), drone.isFlying(), trackMarker, markerId);\n\t}", "public void updateUI(){}", "@Override\r\n public void updateUI() {\r\n }", "@Override\n public void updateScreen() {\n if (dirty) {\n Alkahestry.logger.info(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// String name = String.valueOf(((ContainerMoleculeSplitter) container).moleculeSplitterTileEntity.progress);\n// fontRenderer.drawString(name, xSize / 2 - fontRenderer.getStringWidth(name) / 2, 6, 0x404040);\n// fontRenderer.drawString(playerInv.getDisplayName().getUnformattedText(), 8, ySize - 94, 0x404040);\n dirty = false;\n }\n// ((ContainerMoleculeSplitter) container)\n// .moleculeSplitterTileEntity\n// .\n super.updateScreen();\n }", "@Override\n\tprotected void UpdateUI() {\n\t\tFineModulationDisplay(FineModulation);\n\t\tAutoGreaseDisplay(AutoGrease);\n\t\tQuickcouplerDisplay(Quickcoupler);\n\t\tRideControlDisplay(RideControl);\n\t\tBeaconLampDisplay(BeaconLamp);\n\t\tMirrorHeatDisplay(MirrorHeat);\n//\t\tFNKeyDisplay(ParentActivity.LockEntertainment);\n\t}", "@Override\n\tpublic void updateScreen() {\n\t\tfield_154330_a.tick();\n\t\tsuper.updateScreen();\n\t}", "public void updateDisplayInfo() {\n updateBaseDisplayMetricsIfNeeded();\n this.mDisplay.getDisplayInfo(this.mDisplayInfo);\n this.mDisplay.getMetrics(this.mDisplayMetrics);\n onDisplayChanged(this);\n }", "private void updatescreen2(){\n screen2.setText(displayscreen2);}", "public void update(){\n infoBar = new GreenfootImage (960, 50);\n infoBar.setFont(textFont);\n infoBar.setColor(textColor);\n String output = (\"Trees: \" + numTrees + \" Bushes: \" + numBushes + \" Prey: \" + numPrey + \" Predators: \" + numPredators);\n\n //centres the output on the bar.\n int centre = (960/2) - ((output.length() * 14)/2);\n\n infoBar.drawString(output, centre, 22); //draw the bar.\n this.setImage(infoBar);\n }", "@Override\n public void update() {\n if (oldFloorIndex != root.floorsController.getCurrentFloor()) {\n view.floorTitle.setText(\"Floor: \" + root.floorsController.getCurrentFloor());\n oldFloorIndex = root.floorsController.getCurrentFloor();\n }\n }", "public void updateScreen()\r\n\t{\r\n\t\tif (this.areRealmsNotificationsEnabled())\r\n\t\t{\r\n\t\t\tthis.realmsNotification.updateScreen();\r\n\t\t}\r\n\t}", "private void updateUI() {\n Bite bite = BiteLab.get(getActivity()).getBite(mBiteId);\n\n mPlacementTextView.setText(bite.getPlacement());\n\n Calendar c = bite.getCalendar();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH)+1;\n int day = c.get(Calendar.DAY_OF_MONTH);\n mDateTextView.setText(getString(R.string.show_date, day, month, year));\n\n mDaysSinceBiteTextView.setText(getString(R.string.days_since_bite\n , bite.getDaysSinceBite()));\n\n mStageTextView.setText(getString(R.string.show_stage, bite.getStage()));\n }", "public void update(){\n\t\tsetChanged();\n\t\trender();\n\t\tprintTimer();\n\t}", "protected void updateDisplay() {\r\n setValue(Integer.toString(value.getValue()));\r\n }", "public void updateUi() {\n updateTextView(R.id.blindword, gameInstance.getBlindWord(), EditMode.ADDSPACING);\n updateTextView(R.id.guessedletters, gameInstance.getGuessedSoFar(), EditMode.ADDSPACING);\n\n int livesTotal = settings.getInt(\"lives\", 7);\n int livesLeft = gameInstance.getLives();\n StringBuilder healthbar = new StringBuilder();\n for(int i=0;i<livesLeft;i++) {\n healthbar.append('\\u2764'); //black heart\n }\n\n for(int i=0;i<(livesTotal - livesLeft);i++) {\n healthbar.append('\\u2661'); //white heart\n }\n\n updateTextView(R.id.healthbar, healthbar.toString(), EditMode.NONE);\n\n gameOverListener();\n\n }", "private void updateViews() {\n titleTextView.setText(currentVolume.getTitle());\n descTextView.setText(Html.fromHtml(currentVolume.getDesc(), Html.FROM_HTML_MODE_COMPACT));\n authorsTextView.setText(currentVolume.getAuthors());\n\n retrieveImage();\n }", "private void updateUI() {\n// if (mCurrentLocation != null) {\n// mLatitudeTextView.setText(String.valueOf(mCurrentLocation.getLatitude()));\n// mLongitudeTextView.setText(String.valueOf(mCurrentLocation.getLongitude()));\n// mLastUpdateTimeTextView.setText(mLastUpdateTime);\n// }\n }", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public void updateUI(){\n\t\t\n\t\ttimeTV.setText(\"\"+String.format(\"\" + gameClock%10));\n\t\ttimeTV2.setText(\"\"+ gameClock/10+\".\");\n\t\tif (currentGameEngine!=null) {\n\t\t\tmultLeft.setText(\"multiplier: \"+currentGameEngine.getMultiplier()+\"X\");\n\t\t\tscoreTV.setText(\"\"+currentGameEngine.getScore());\n\t\t} else {\n\t\t\tscoreTV.setText(\"0\");\n\t\t}\n\n\t\t//errorTV.setText(\"\"+mFrameNum);\n\t\t\n\t\t\n\t}", "void updateView();", "void updateView();", "@Override\n\tprotected void UpdateUI() {\n\t\tDisplayFuelData(AverageFuelRate, LatestFuelConsumed);\n\t\t\n\t\tif(bCursurIndex == false && ParentActivity.ScreenIndex == Home.SCREEN_STATE_MENU_MONITORING_FUELHISTORY_GENERALRECORD)\n\t\t\tCursurDisplay(CursurIndex);\n\t}", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "@Override\n public void updateUi() {\n\n }", "public void updateScreen() {\n\t\t++this.panoramaTimer;\n\t}", "public void updateDisplay() {\n imageCutLevels.updateDisplay();\n }", "public void updatePlayerPanel()\n {\n playerInfoPanel.updateLabel();\n }", "protected void updateDisplays() {\n \trecordDisplay.setText(formatField());\n \tif(updated) {\n \t\trecordDisplay.setFont(regularFont);\n \t} else {\n \t\trecordDisplay.setFont(italicFont);\n \t}\n }", "private void updateDisplay() \n\t{\n\t\t// updates the date in the TextView\n if(bir.hasFocus())\n {\n\t\tbir.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }else\n {\n\t\taniv.setText(\n\t\t\t\tnew StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t\n\t\t\t\t.append(mDay).append(\"-\")\n\t\t\t\t.append(mMonth + 1).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \"));\n }\n\n\n\t}", "public void updateDetailWindow();", "private void updateDisplay() {\n btnScheduleTime.setText(new StringBuilder().append(PHHelper.pad(mHour))\n .append(\":\").append(PHHelper.pad(mMinute)));\n }", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "@Override\n\tprotected void UpdateUI() {\n\t\t\n\t}", "public void refresh() {\r\n\t\tneeds.setText(needs());\r\n\t\tproduction.setText(production());\r\n\t\tjobs.setText(jobs());\r\n\t\tmarketPrices.setText(marketPrices());\r\n\t\tmarketSellAmounts.setText(marketSellAmounts());\r\n\t\tmarketBuyAmounts.setText(marketBuyAmounts());\r\n\t\tcompanies.setText(companies());\r\n\t\tmoney.setText(money());\r\n\t\ttileProduction.setText(tileProduction());\r\n\t\tcapital.setText(capital());\r\n\t\thappiness.setText(happiness());\r\n\t\tland.setText(land());\r\n\t\t//ArrayList of Agents sorted from lowest to highest in money is retrieved from Tile\r\n\t\tagents=tile.getAgentsByMoney();\r\n\t\tgui3.refresh();\r\n\t\tsliderPerson.setText(\"\"+agents.get(slider.getValue()).getMoney());\r\n\t\ttick.setText(tick());\r\n\t\tthis.pack();\r\n\t}", "@Override\n public void update() {\n jTextField1.setText(mCalculator.getDisplay());\n }", "public void updateUi() {\n\t\t// // update the car color to reflect premium status or lack thereof\n\t\t// ((ImageView)findViewById(R.id.free_or_premium)).setImageResource(mIsPremium\n\t\t// ? R.drawable.premium : R.drawable.free);\n\t\t//\n\t\t// // \"Upgrade\" button is only visible if the user is not premium\n\t\t// findViewById(R.id.upgrade_button).setVisibility(mIsPremium ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // \"Get infinite gas\" button is only visible if the user is not\n\t\t// subscribed yet\n\t\t// findViewById(R.id.infinite_gas_button).setVisibility(mSubscribedToInfiniteGas\n\t\t// ?\n\t\t// View.GONE : View.VISIBLE);\n\t\t//\n\t\t// // update gas gauge to reflect tank status\n\t\t// if (mSubscribedToInfiniteGas) {\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(R.drawable.gas_inf);\n\t\t// }\n\t\t// else {\n\t\t// int index = mTank >= TANK_RES_IDS.length ? TANK_RES_IDS.length - 1 :\n\t\t// mTank;\n\t\t// ((ImageView)findViewById(R.id.gas_gauge)).setImageResource(TANK_RES_IDS[index]);\n\t\t// }\n\t}", "protected void updateUI() {\n this.runOnUiThread(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n xWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro X:\\n\"\n + mWakeupUncalibratedGyroData[0]);\n yWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Y:\\n\"\n + mWakeupUncalibratedGyroData[1]);\n zWakeupUncalibratedGyro.setText(\"Wakeup Uncalibrated Gyro Z:\\n\"\n + mWakeupUncalibratedGyroData[2]);\n }\n });\n }", "private void updateUi() {\n this.tabDetail.setDisable(false);\n this.lblDisplayName.setText(this.currentChild.getDisplayName());\n this.lblPersonalId.setText(String.format(\"(%s)\", this.currentChild.getPersonalId()));\n this.lblPrice.setText(String.format(\"%.2f\", this.currentChild.getPrice()));\n this.lblAge.setText(String.valueOf(this.currentChild.getAge()));\n this.dtBirthDate.setValue(this.currentChild\n .getBirthDate()\n .toInstant()\n .atZone(ZoneId.systemDefault())\n .toLocalDate());\n this.lblWeight.setText(String.format(\"%.1f kg\", this.currentChild.getWeight()));\n this.sldWeight.setValue(this.currentChild.getWeight());\n this.checkboxTrueRace.setSelected(!this.currentChild.isRace());\n this.imgChildProfile.setImage(this.currentChild.getAvatar());\n if (this.currentChild.getGender().equals(GenderType.MALE)){\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/boy.png\"));\n this.lblSex.setText(\"Male\");\n }\n else {\n this.imgSex.setImage(FileUtils.loadImage(\"assets/image/gender/girl.png\"));\n this.lblSex.setText(\"Female\");\n }\n if (this.currentChild.isVirginity()){\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/virgin.png\"));\n this.lblVirginity.setText(\"Virgin\");\n }\n else {\n this.imgVirginity.setImage(FileUtils.loadImage(\"assets/image/virginity/not-virgin.png\"));\n this.lblVirginity.setText(\"Not Virgin\");\n }\n\n // TODO [assignment2] nastavit obrazek/avatar ditete v karte detailu\n // TODO [assignment2] nastavit spravny obrazek pohlavi v karte detailu\n // TODO [assignment2] nastavit spravny obrazek virginity atribut v v karte detailu\n }", "public void update() {\n\tfireContentsChanged(this, 0, getSize());\n }", "@Override\n\t\tpublic void update() {\n\t\t\tSystem.out.println(\"새로운 수정\");\n\t\t}", "public void update() {\r\n\t\t\r\n\t}", "public void updateDisplay(){\r\n //Update the display\r\n DefaultTableModel regs = (DefaultTableModel)tblRegisters.getModel();\r\n regs.setValueAt(Integer.toHexString(board.getA()),0,0);\r\n regs.setValueAt(Integer.toHexString(board.getB()),0,1);\r\n regs.setValueAt(Integer.toHexString(board.getX()),0,2);\r\n regs.setValueAt(Integer.toHexString(board.getY()),0,3);\r\n regs.setValueAt(Integer.toBinaryString(board.getIntCCR()),0,4);\r\n lblPC.setText(Integer.toHexString(board.getPC()));\r\n lblSP.setText(Integer.toHexString(board.getSP()));\r\n }", "@Override\r\n\tpublic void update() {\n\t\tsuper.update();\r\n\t}", "public void update() {\n\t\tVec2 newPos = calculatePos();\n\t\t/* energy bar */\n\t\tfloat newEnergy = actor.getEnergy();\n\t\tfloat maxEnergy = actor.getEnergyLimit();\n\t\tenergy.setPosition(newPos.getX(), newPos.getY() + paddingHealth / Application.s_Viewport.getX(), newEnergy,\n\t\t\t\tmaxEnergy);\n\t\t/* health bar */\n\t\tfloat newHealth = actor.getHealth();\n\t\tfloat maxHealth = actor.getHealthLimit();\n\t\thealth.setPosition(newPos.getX(), newPos.getY() + paddingEnergy / Application.s_Viewport.getX(), newHealth,\n\t\t\t\tmaxHealth);\n\t\t/* name label */\n\t\tplayerName.setPosition(newPos.getX(), newPos.getY() + paddingName / Application.s_Viewport.getY());\n\t}", "public static void updateStatusBar(){\n\t\tstatus.setText(\"Sensors: \"+Sensor.idToSensor.size()+(TurnController.getInstance().getCurrentTurn()!=null?\", Turn: \"+TurnController.getInstance().getCurrentTurn().turn:\"\"));\n\t}", "@Override\r\n\tpublic void update() {\n\t\tthis.repaint();\r\n\t}", "public void update() {\n System.out.println(\"\\n\\n Board: \\n\");\n System.out.println(\" \" + pos1 + \" | \" + pos2 + \" | \" + pos3 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos4 + \" | \" + pos5 + \" | \" + pos6 + \" \");\n System.out.println(\" ---+---+--- \");\n System.out.println(\" \" + pos7 + \" | \" + pos8 + \" | \" + pos9 + \" \");\n }", "public void update()\n {\n int screenHeight;\n int screenWidth;\n \n // Only update if the video memory has been updated\n// if (!videocard.vgaMemReqUpdate)\n// return;\n\n // Determine if in graphic/text mode; this is set in graphics register 0x06\n if (videocard.graphicsController.alphaNumDisable != 0)\n {}\n\n // alphaNumDisable == 0; Text mode\n else\n {\n // Cursor attributes\n int cursorXPos; // Cursor column position\n int cursorYPos; // Cursor row position\n int cursorWidth = 8; // 8 or 9 pixel cursor width\n int fullCursorAddress = 162; // Cursor location (byte number in vga memory) \n\n // Screen attributes \n int maxScanLine = 15; // Character height - 1\n int numColumns = 80; // (Char. clocks - 1) + 1 , i.e. number of columns\n int numRows = 25; // Number of text rows in screen \n screenWidth = cursorWidth * numColumns; // Screen width in pixels\n videocard.verticalDisplayEnd = 399;\n screenHeight = videocard.verticalDisplayEnd + 1; // Screen height in pixels\n \n int fullStartAddress = 0; // Upper left character of screen\n\n logger.log(Level.INFO, \"[\" + MODULE_TYPE + \"]\" + \" update() in progress; text mode\");\n \n // Collect text features to be passed to screen update\n textModeAttribs.fullStartAddress = (short) 0; \n textModeAttribs.cursorStartLine = (byte) 14;\n textModeAttribs.cursorEndLine = (byte) 15;\n textModeAttribs.lineOffset = (short) 160;\n textModeAttribs.lineCompare = (short) 1023;\n textModeAttribs.horizPanning = (byte) 0;\n textModeAttribs.vertPanning = (byte) 0;\n textModeAttribs.lineGraphics = 1;\n textModeAttribs.splitHorizPanning = 0;\n \n // Check if the GUI window needs to be resized\n if ((screenWidth != oldScreenWidth) || (screenHeight != oldScreenHeight) || (maxScanLine != oldMaxScanLine))\n {\n screen.updateScreenSize(screenWidth, screenHeight, cursorWidth, maxScanLine + 1);\n oldScreenWidth = screenWidth;\n oldScreenHeight = screenHeight;\n oldMaxScanLine = maxScanLine;\n }\n\n // Determine cursor position in terms of rows and columns\n if (fullCursorAddress < fullStartAddress) // Cursor is not on screen, so set unreachable values\n {\n cursorXPos = 0xFFFF;\n cursorYPos = 0xFFFF;\n }\n else // Cursor is on screen, calculate position\n {\n cursorXPos = ((fullCursorAddress - fullStartAddress) / 2) % (screenWidth / cursorWidth);\n cursorYPos = ((fullCursorAddress - fullStartAddress) / 2) / (screenWidth / cursorWidth);\n }\n \n // Call screen update for text mode\n screen.updateText(0, fullStartAddress, cursorXPos, cursorYPos, textModeAttribs.getAttributes(), numRows);\n \n // Screen has been updated, copy new contents into 'snapshot'\n System.arraycopy(videocard.vgaMemory, fullStartAddress, videocard.textSnapshot, 0, 2 * numColumns * numRows);\n \n videocard.vgaMemReqUpdate = false;\n }\n }", "public void refreshMapInformation() {\n\t\t((JLabel)components.get(\"timeElapsedLabel\")).setText(Integer.toString(ABmap.instance().getTimeElapsed()));\n\t\t((JLabel)components.get(\"oilInMapLabel\")).setText(Integer.toString(ABmap.instance().getOilInMap()));\n\t\t((JLabel)components.get(\"oilInStorageLabel\")).setText(Integer.toString(ABmap.instance().getOilInStorage()));\n\t\t((JProgressBar)components.get(\"oilCleanedProgressBar\")).setValue(100-((ABmap.instance().getOilInMap()*100)/ABmap.instance().initialOilCount));\n\t\t((JLabel)components.get(\"fuelUsedLabel\")).setText(Integer.toString(ABmap.instance().getFuelUsed()));\n\t\t((JLabel)components.get(\"simCompletedLabel\")).setText(Boolean.toString(ABmap.instance().isDone()));\n\t}", "private void update() {\n\t\tColor fColor = fgColorProvider.getCurrentColor();\n\t\tColor bColor = bgColorProvider.getCurrentColor();\n\t\tsetText(String.format(\"Foreground color: (%d, %d, %d), background color: (%d, %d, %d).\", \n\t\t\t\tfColor.getRed(), fColor.getGreen(), fColor.getBlue(),\n\t\t\t\tbColor.getRed(), bColor.getGreen(), bColor.getBlue()));\n\t}", "void update(Information info);", "public void update() {\r\n\t\tthis.removeAll();\r\n\t\tdrawLinesAndLabels(this.getWidth(), this.getHeight());\r\n\t\tdrawNameSurferEntries();\r\n\t}", "private void updateGUIStatus() {\r\n\r\n }", "private void update() {\n\t\t\n\t\tlinkID.setText(\"\"+workingLink.ID);\n\t\t\n\t\troomIDA.setText(\"\"+this.workingLink.targetRooms[0].ID);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetRooms[1] == null)\n\t\t\troomIDB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\troomIDB.setText(\"\"+this.workingLink.targetRooms[1].ID);\n\t\t\n\t\t\n\t\tfieldPosA.setText(\"\"+this.workingLink.targetFields[0].pos);\n\t\t\n\t\t//Falls bisher nur ein Link-Part gesetzt wurde\n\t\tif(workingLink.targetFields[1] == null)\n\t\t\tfieldPosB.setText(\"nicht gesetzt\");\n\t\telse\n\t\t\tfieldPosB.setText(\"\"+this.workingLink.targetFields[1].pos);\n\t}", "public void update() {}", "public void update() {\n\t\tImage background_buffer = createImage(stats.getWidth(),\n\t\t\t\tstats.getHeight());\n\t\tGraphics background_buffer_graphics = background_buffer.getGraphics();\n\t\t// updates the stats on screen\n\t\tbackground_buffer_graphics.drawString(\n\t\t\t\t\"Current Move: \" + (model.isWhiteToPlay() ? \"White\" : \"Black\"),\n\t\t\t\t5, 20);\n\t\tbackground_buffer_graphics.drawString(\"White Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getWhiteScore()), 20, 125);\n\t\tbackground_buffer_graphics.drawString(\"Black Points: \"\n\t\t\t\t+ (((Game) model).getBoard().getBlackScore()), 20, 145);\n\n\t\tImage wc = null;\n\t\tImage bc = null;\n\t\t//\n\t\ttry {\n\t\t\twc = ImageIO.read(new File((\"images/white_piece.png\")));\n\t\t\tbc = ImageIO.read(new File((\"images/black_piece.png\")));\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (model.isWhiteToPlay()) {\n\t\t\tbackground_buffer_graphics.drawImage(wc, 25, 30, null, null);\n\n\t\t} else {\n\t\t\tbackground_buffer_graphics.drawImage(bc, 25, 30, null, null);\n\n\t\t}\n\n\t\tstats.getGraphics().drawImage(background_buffer, 0, 0, null);\n\n\t}", "public void update()\n\t{\n\t\tsuper.update();\n\t}", "private void updateUI() {\n mUser.weight.sortListByDate();\n mUser.bloodPressure.sortListsByDate();\n updateText();\n updateChart();\n }", "public void update(){\n\t\tthis.setVisible(true);\n\t}", "@FXML\n private void updateGUI(){\n\n spriteImage.setImage(new Image(Main.gang.getCarSpriteURL()));\n\n // updating labels\n distanceLabel.setText(\"Travelled: \"+ Main.gang.getDistance() +\"Mi\");\n conditionsLabel.setText(\"Health Cond: \"+ Main.gang.getHealthConditions());\n daysLabel.setText(\"Days: \"+ Main.gang.getDays());\n\n if (Main.gang.isMoving()) {\n setOutBtn.setText(\"Speedup\");\n statusLabel.setText(\"Status: Moving\");\n } else {\n setOutBtn.setText(\"Set out\");\n statusLabel.setText(\"Status: Resting\");\n }\n }", "@Override\n public void update() {\n \n }", "public void update() {\n\t\t\n\t}", "public void updateDisplayRoom() {\n roomDisplayArray = new String[roomHeight][roomWidth];\n initalizeRoomDisplayArray();\n addDoorsToRoomDisplayArray();\n addContentsToRoomDisplayArray();\n }", "public void updateHud() {\r\n\r\n\t\tif (m_planet.getCoordinateSystemType() == Planet.CoordinateSystemType.GEOCENTRIC) {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Hud.getSexagesinal(m_planet.getLongitude(), true);\r\n\t\t\tlat = Hud.getSexagesinal(m_planet.getLatitude(), false);\r\n\t\t\t\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t} else {\r\n\t\t\t// Getting longitud and latitud informacion from planet\r\n\t\t\tlon = Double.toString(m_planet.getLongitude());\r\n\t\t\tlat = Double.toString(m_planet.getLatitude());\r\n\r\n\t\t\t// Updating text information\r\n\t\t\ttextoHud.setText(lonText + \" \" + lon + \" \" + latText + \" \" + lat);\r\n\t\t}\r\n\t\t\r\n\t\tcompass.setScale(new Vec3(75,75,75));\r\n\t\tcompass.setPosition(new Vec3(m_canvas3d.getWidth()-70,m_canvas3d.getHeight()-70,0));\r\n\t\t// Repainting view\r\n\t\tif (m_canvas3d != null)\r\n\t\t\tm_canvas3d.repaint();\r\n\t}", "private synchronized void updateScreen(String arg){\n Platform.runLater(new Runnable() {\n @Override\n public void run() {\n setChanged();\n notifyObservers(arg);\n }\n });\n }", "public void update()\r\n\t{\r\n\t\tAndroidGame.camera.update(grid, player);\r\n\t\tplayer.update(grid);\r\n\t\tplayButton.update(player, grid);\r\n\t\tmenu.update(grid);\r\n\t\tgrid.update();\r\n\t\tif(grid.hasKey())\r\n\t\t\tgrid.getKey().update(player, grid.getFinish());\r\n\t\tif(levelEditingMode)//checking if the make button is clicked\r\n\t\t{\r\n\t\t\tif(makeButton.getBoundingRectangle().contains(Helper.PointerX(), Helper.PointerY()))\r\n\t\t\t{\r\n\t\t\t\tgrid.makeLevel();\r\n\t\t\t}\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tdoorBubble.update();\r\n\t\t\tif(hasKey)\r\n\t\t\t\tkeyBubble.update();\r\n\t\t}\r\n\t}", "public void updateVariables(){\n Map<String, Integer> specialParameter = myLogic.getSpecialParameterToDisplay();\n liveScore.setText(Double.toString(myLogic.getScore()));\n for (String parameter: specialParameter.keySet()) {\n numLives.setText(parameter + specialParameter.get(parameter));\n }\n myMoney.setText(Double.toString(myLogic.getCash()));\n }", "private void updateTurnInfo(){\n String info = players[blackPlayer] + \" plays Black\";\n turnInfo.setText(info);\n }", "public void update( )\n {\n FormPortletHome.getInstance( ).update( this );\n }", "public void update()\r\n {\n for (MapObject mo : gameData.getMap().getObjects())\r\n {\r\n mo.getAI().advance();\r\n }\r\n \r\n // update the UI\r\n for (UIElement uiEl : ui.getUIElements())\r\n {\r\n uiEl.update();\r\n }\r\n\r\n // Move the map objects\r\n movHandler.moveObjects();\r\n\r\n // Refresh the screen position\r\n Player player = gameData.getPlayer();\r\n this.centerScreen((int) player.getX() + Tile.TILESIZE / 2, (int) player.getY() + Tile.TILESIZE / 2);\r\n }", "public void update(){\r\n\t\t\r\n\t}", "private void updateStatus() {\n String statusString = dataModel.getStatus().toString();\n if (dataModel.getStatus() == DefinitionStatus.MARKER_DEFINITION) {\n statusString += \" Number of markers: \" + dataModel.getNumberOfMarkers() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n if (dataModel.getStatus() == DefinitionStatus.POINTS_DEFINITION) {\n statusString += \" Number of point fields: \" + dataModel.getNumberOfPoints() + \". Current position: \"\n + dataModel.getTempMousePosition();\n }\n statusLabel.setText(statusString);\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "public void refreshDisplayData() {\n if (useLiveDisplayUpdates && displaySection.isOpen()) {\n displayPanel.setValue(device.getDisplayData(), true);\n }\n\n }", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update() {\n\t}", "public void update( ) {\n\t\tdraw( );\n\t}", "private void updateLocation(String info)\n {\n popup.setText(info);\n\n listView.animate().alpha(0.3f).setDuration(1000);\n\n popup.setVisibility(View.VISIBLE);\n\n }", "public void updateScreen() {\n/* 25 */ this.ipEdit.updateCursorCounter();\n/* */ }", "public void update() {\n }", "private void refreshInformation () {\n if (textInformation != null) {\n String messageInfo = \"\";\n\n while (!listMessageInfo.isEmpty()) {\n messageInfo = listMessageInfo.getLast() + \"\\n\" + messageInfo;\n listMessageInfo.removeLast();\n }\n\n if (textInformation.getText() != null) {\n textInformation.setText(messageInfo + textInformation.getText());\n } else {\n textInformation.setText(messageInfo);\n }\n }\n }", "public void updateViews() {\n\t\tif (App.isInitialized() && App.getPlayer().isPlaying()) {\r\n\t\t\tactionButton.setImageResource(R.drawable.ic_media_pause);\r\n\t\t} else {\r\n\t\t\tactionButton.setImageResource(R.drawable.ic_media_play);\r\n\t\t}\r\n\t\t\r\n\t\t// Update the seek text\r\n\t\tint seek = App.getPlayer().getSeek();\r\n\t\tint duration = App.getPlayer().getDuration();\r\n\t\tseekText.setText(Utilities.formatTime(seek));\r\n\t\tdurationText.setText(Utilities.formatTime(duration));\r\n\t\t\r\n\t\t// Update the seek progress\r\n\t\tseekBar.setMax(duration);\r\n\t\tif (autoUpdateSeek) {\r\n\t\t\tseekBar.setProgress(seek);\r\n\t\t}\r\n\t}" ]
[ "0.7838724", "0.78138864", "0.7767076", "0.77484876", "0.7663979", "0.73894465", "0.73678964", "0.72973776", "0.7237341", "0.7193286", "0.7179483", "0.71717983", "0.71676034", "0.71412206", "0.71139765", "0.7111661", "0.7059761", "0.7006302", "0.6974512", "0.6955541", "0.69409025", "0.6910985", "0.6906202", "0.6893124", "0.6862734", "0.68105114", "0.680395", "0.6796501", "0.6767756", "0.67632526", "0.6758801", "0.67393106", "0.67393076", "0.67336875", "0.67208904", "0.66633505", "0.66633505", "0.66087794", "0.65941703", "0.65941703", "0.65941703", "0.6587332", "0.6570823", "0.6567607", "0.65609086", "0.6551947", "0.65515", "0.65423495", "0.6523209", "0.6523209", "0.6522067", "0.6517138", "0.6494606", "0.6485537", "0.6482399", "0.6469456", "0.64615244", "0.64533347", "0.6450915", "0.6446723", "0.64387196", "0.643642", "0.6430355", "0.6429846", "0.6416427", "0.6414168", "0.64133537", "0.6413285", "0.6412562", "0.641242", "0.64084667", "0.6402918", "0.639793", "0.63974744", "0.6396338", "0.6386906", "0.6380835", "0.63765603", "0.6373643", "0.63721484", "0.6370174", "0.63692725", "0.63669807", "0.63633466", "0.6363223", "0.6363007", "0.6362569", "0.6361668", "0.63608783", "0.6357865", "0.63577795", "0.6357532", "0.6357532", "0.6357532", "0.6357532", "0.635717", "0.6355306", "0.63501894", "0.63484794", "0.6343363", "0.6325937" ]
0.0
-1
Gets the components of this view and adds any necessary listeners.
private void initComponents() { stethoscopeLabel = (TextView) findViewById(R.id.stethoscope_label); modelNumber = (TextView) findViewById(R.id.model); firmwareVersion = (TextView) findViewById(R.id.firmware_version); batteryLevel = (TextView) findViewById(R.id.battery_level); autoBluetooth = (TextView) findViewById(R.id.auto_bluetooth); bytesRead = (TextView) findViewById(R.id.bytes_read); bytesReadSecond = (TextView) findViewById(R.id.bytes_read_sec); bytesWritten = (TextView) findViewById(R.id.bytes_written); bytesWrittenSecond = (TextView) findViewById(R.id.bytes_written_sec); switchButton = (Button) findViewById(R.id.stethoscope_switch_button); switchButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { listener.switchStethoscopeInformation(); } }); stopStreamingButton = (Button) findViewById(R.id.stop_streaming_button); stopStreamingButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { listener.stopStreaming(); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void addListeners() {\n\n\t\tfinal ComponentsController serviceController = (ComponentsController) componentsService;\n\t\t/*\n\t\t * service controller listener:\n\t\t */\n\t\tfinal ChangeListener changeListener = new ChangeListener() {\n\t\t\tpublic void modelChanged(ChangeEvent ce) {\n\t\t\t\tPmsChangeEvent event = (PmsChangeEvent) ce;\n\t\t\t\tswitch (event.getType()) {\n\t\t\t\t\tcase PmsChangeEvent.UPDATE:\n\t\t\t\t\t\tonComponentUpdate((InheritedComponentInstanceSelDTO) event.getEventInfo());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase PmsChangeEvent.IMPORT:\n\t\t\t\t\t\ttryGetComponents();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault: // event not expected: nothing to do here.\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tserviceController.addChangeListener(changeListener);\n\t\t\n\t\t// remove listener from components controller when this panel is detached\n\t\taddListener(Events.Detach, new Listener<BaseEvent>() {\n\t\t\tpublic void handleEvent(BaseEvent be) {\n\t\t\t\tserviceController.removeChangeListener(changeListener);\n\t\t\t}\n\t\t});\n\n\t\t/*\n\t\t * Grid RowClick listener\n\t\t */\n\t\tgrid.addListener(Events.RowClick, new Listener<GridEvent<InheritedComponentInstanceSelModelData>>() {\n\t\t\tpublic void handleEvent(GridEvent<InheritedComponentInstanceSelModelData> ge) {\n\t\t\t\tInheritedComponentInstanceSelModelData model = grid.getSelectionModel().getSelectedItem();\n\t\t\t\tif (model != null) {\n\t\t\t\t\tenableDisableButtons(model);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void addListeners()\n {\n view.addListeners(new FileButtonClick(view, this), new ViewButtonClick(view, this), new ClassClick(view, this), new RelationshipClick(view, this), new RightClickListenerFactory(view, this));\n\t}", "public void createEventListeners() {\n this.addComponentListener(new ComponentAdapter() {\n @Override\n public void componentResized(ComponentEvent e) {\n super.componentResized(e);\n //canvas.setSize(J2DNiftyView.this.getSize());\n }\n });\n }", "private void getViewComponents() {\n _gameView = (GameView) findViewById(R.id.game_cv_gameview);\n _levelView = (TextView) findViewById(R.id.game_tv_curlevel);\n _scoreView = (TextView) findViewById(R.id.game_tv_curscore);\n _startBtn = (Button) findViewById(R.id.game_btn_start);\n _gestureOverlay = (GestureOverlayView) findViewById(R.id.game_gov_gestures);\n\n }", "protected final void addCollectableComponentModelListeners() {\n\t\tfor (CollectableComponentModel clctcompmodel : this.getCollectableComponentModels()) {\n\t\t\t// clctcompmodel.addCollectableComponentModelListener(this.getCollectableComponentModelListener());\n\t\t\tListenerUtil.registerCollectableComponentModelListener(clctcompmodel, null, getCollectableComponentModelListener());\n\t\t}\n\t}", "void installListeners() {\n\t\t\t// Listeners on this popup's table and scroll bar\n\t\t\tproposalTable.addListener(SWT.FocusOut, this);\n\t\t\tScrollBar scrollbar = proposalTable.getVerticalBar();\n\t\t\tif (scrollbar != null) {\n\t\t\t\tscrollbar.addListener(SWT.Selection, this);\n\t\t\t}\n\n\t\t\t// Listeners on this popup's shell\n\t\t\tgetShell().addListener(SWT.Deactivate, this);\n\t\t\tgetShell().addListener(SWT.Close, this);\n\n\t\t\t// Listeners on the target control\n\t\t\tcontrol.addListener(SWT.MouseDoubleClick, this);\n\t\t\tcontrol.addListener(SWT.MouseDown, this);\n\t\t\tcontrol.addListener(SWT.Dispose, this);\n\t\t\tcontrol.addListener(SWT.FocusOut, this);\n\t\t\t// Listeners on the target control's shell\n\t\t\tShell controlShell = control.getShell();\n\t\t\tcontrolShell.addListener(SWT.Move, this);\n\t\t\tcontrolShell.addListener(SWT.Resize, this);\n\t\t}", "private void componentsListeners() {\r\n\t\t// NIFs\r\n\t\tbtnRefrescarnifs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcb_nifCliente.setModel(new DefaultComboBoxModel(ContenedorPrincipal.getContenedorPrincipal().getContenedorClientes().getNifs()));\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Clientes\r\n\t\tbtnClientes.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarClientes();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Reparaciones\r\n\t\tbtnRepararVehvulo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarReparaciones();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Anterior vehiculo\r\n\t\tbuttonLeftArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarLeftArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Siguiente vehiculo\r\n\t\tbuttonRightArrow.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tif (!Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarRightArrow();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t// Atras\r\n\t\tbtnAtrs.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tcontroladorVehiculos.pulsarAtras();\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Guarda el vehiculo\r\n\t\tbtnGuardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontroladorVehiculos.guardarVehiculo();\r\n\t\t\t\t\t} catch (NumberFormatException e1) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Hay campos vacios\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t} catch (Exception e2) {\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Algo ha ido mal\", \"Error\", JOptionPane.ERROR_MESSAGE);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\t// Borra el vehículo\r\n\t\tbtnBorrarVehiculo.addMouseListener(new MouseAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\r\n\t\t\t\tif (Constantes.MODO_CREAR) {\r\n\t\t\t\t\tcontroladorVehiculos.pulsarBorrarVehiculo();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void getComponents() {\n drawerLayout = binding.activityMainDrawerLayout;\n navigationView = binding.navigationView;\n floatingActionButton = binding.flAddPet;\n shareAppButton = binding.flShareApp;\n }", "void addListeners() {\n\t\t/* Get a handle to the views */\n\t\tmsgText = (TextView) findViewById(R.id.msgView); //TextView handle\n\t\tviewAgainButton = (Button) findViewById(R.id.button_viewAgain); //Button handle\n\t\t\n\t\t/* Add a click listener to the View Again button */\n\t\tviewAgainButton.setOnClickListener(this);\n\t\t\n\t\t/* Add a click listener to the Instructions button */\n\t\tButton buttonInstructions = (Button) findViewById(R.id.button_instructions2);\n\t\tbuttonInstructions.setOnClickListener(this);\n\t\t\n\t\t/* Add listeners to the ImageViews */\n\t\taddImageViewListeners();\n\t}", "public void setupUIListeners() {\n\t\tsetupEditTextListeners();\n\t\tsetupSeekBarsListeners();\n\t}", "@Override\n\tpublic ElementView getComponent() {\n\t\treturn jc;\n\t}", "public void addListeners() {\r\n\t\tbtnLogin.addActionListener(listener);\r\n\t\tbtnChooseFile.addActionListener(listener);\r\n\t\tbtnSendMessage.addActionListener(listener);\r\n\t\tbtnRemoveImage.addActionListener(listener);\r\n\t\tbtnUpdateMessages.addActionListener(listener);\r\n\t\tbtnUpdateUsers.addActionListener(listener);\r\n\t}", "private void addChangeListeners() {\r\n myTetrisPanel.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myKeyAdapter);\r\n myTetrisMenuBar.addPropertyChangeListener(myTetrisPanel);\r\n addPropertyChangeListener(myTetrisMenuBar);\r\n myInfoPanel.addPropertyChangeListener(myTetrisMenuBar);\r\n }", "private void init()\n {\n // Add listeners to the view\n addEventListeners();\n addSelectionChangeListeners();\n\n // Add listeners to the model\n addBackgroundImageHandler();\n addFrameWidgetHandler();\n addWidgetShapeChangeHandler();\n\n project.addHandler(this,\n Project.DesignChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Project.DesignChange chg =\n (Project.DesignChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == design))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.FrameChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Design.FrameChange chg =\n (Design.FrameChange) alert;\n\n if ((! chg.isAdd) &&\n (chg.element == frame))\n {\n closeOpenController();\n }\n }\n });\n\n design.addHandler(this,\n Design.DeviceTypeChange.class,\n new AlertHandler()\n {\n\n public void handleAlert(EventObject alert)\n {\n Set<DeviceType> dts =\n design.getDeviceTypes();\n int deviceTypes =\n DeviceType.buildDeviceSet(dts);\n\n view.resetDeviceTypes(deviceTypes);\n }\n });\n\n // Add listeners to rename events on project and design\n frame.addHandler(this, NameChangeAlert.class, renameHandler);\n design.addHandler(this,\n NameChangeAlert.class,\n renameHandler);\n\n // Some items should always be enabled.\n // Should be the last call in the constructor\n setInitiallyEnabled(true);\n }", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void initListeners() {\n comboBox.comboBoxListener(this::showProgramData);\n view.refreshListener(actionEvent -> scheduledUpdate());\n\n }", "public interface ComponentsAware \n{\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns an empty List.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\n\tpublic abstract List<Component> getComponentsByName(String name);\n\t\n\t/**\n\t * This method retrieves components by its name. If the component doesn't exist\n\t * it returns <code>null</code>.\n\t * \n\t * @param name The name of the component we want to retrieve\n\t * @return The Component\n\t */\t\n\tpublic abstract Component getComponentByName(String name);\n\t\n\t/**\n\t * It retrieves all the named components within the main Container\n\t * returned by this view.\n\t * \n\t * @return A map with all the named components\n\t */\n\tpublic abstract Map<String,List<Component>> getNamedComponents();\n\t\n\t/**\n\t * NamedComponents should be filled by an external delegator. It should inspect\n\t * the rootPane of the view and retrieve all named java.awt.Component components.\n\t * \n\t * @param namedComponents\n\t */\n\tpublic abstract void setNamedComponents(Map<String,List<Component>> namedComponents);\n}", "public Collection<T> getListeners() {\n return new ArrayList(_elements);\n }", "private void listenersInitiation() {\n ActionSelectors listener = new ActionSelectors();\n submit.addActionListener(listener);\n goBack.addActionListener(listener);\n }", "public ViewClass() {\n\t\tcreateGUI();\n\t\taddComponentsToFrame();\n\t\taddActionListeners();\n\t}", "@Override\n public void bindView() {\n this.addSearchBtnClickHandler();\n this.addAdvanceSearchBtnClickHandler();\n this.addSearchContentBoxClickHandler();\n }", "void addListeners() {\n final FilteredList<GenomePath> filteredList = new FilteredList<>(graphVisualizer.getGenomePathsProperty(),\n s -> s.getName().contains(searchField.textProperty().get()));\n\n pathTable.setItems(filteredList);\n\n // Updates the filtered list predicate on a search\n searchField.textProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(newValue)));\n\n matchCase.selectedProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(searchField.getText())));\n\n regex.selectedProperty().addListener((observable, oldValue, newValue) ->\n filteredList.setPredicate(getPredicate(searchField.getText())));\n\n // Updates the label with the number of paths that are displayed\n filteredList.getSource().addListener((ListChangeListener<GenomePath>) c ->\n pathsFound.textProperty().setValue(\"Paths found: \" + filteredList.size()));\n }", "protected void addEventListeners()\n {\n // Add them to the contents.\n InteractionFigure interactionLayer =\n view.getEditor().getInteractionFigure();\n\n // let mouseState handle delete key events\n interactionLayer.addKeyListener(mouseState);\n getShell().addShellListener(new ShellAdapter() {\n @Override\n public void shellDeactivated(ShellEvent e)\n {\n mouseState.cancelDynamicOperation();\n }\n });\n }", "private void addListeners(){\n Conservable[] listenerFromProductTypeRelation = this.productRelation.getListener();\n this.listener[0] = listenerFromProductTypeRelation[0];\n this.listener[1] = listenerFromProductTypeRelation[1];\n this.listener[2] = this.post;\n this.listener[3] = this.productRelation;\n this.listener[4] = this;\n }", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "private void addListeners() {\n table.addValueChangeListener((Property.ValueChangeListener) this);\n// selectedCustomer.comboBoxSelectCustomer.addValueChangeListener((Property.ValueChangeListener) this);\n }", "@Override\r\n\tprotected void attachListeners() {\n\t\t\r\n\t}", "private void initMyComponents() {\n this.jPanel1.setLayout(new BoxLayout(this.jPanel1, BoxLayout.Y_AXIS));\n this.jPanel1.add(controller.getPressureController().getEMeasureBasicView());\n this.jPanel1.add(controller.getTemperatureController().getEMeasureBasicView());\n this.controller.getPressureController().getListeners().add(this);\n this.controller.getTemperatureController().getListeners().add(this);\n this.jComboBox1.setModel(new DefaultComboBoxModel(FluidKind.values()));\n this.changeResponce();\n }", "private void initPluginComponents()\n {\n // Make sure that we don't miss any event.\n GuiActivator.getUIService().addPluginComponentListener(this);\n\n pluginPanelEast.setLayout(\n new BoxLayout(pluginPanelEast, BoxLayout.Y_AXIS));\n pluginPanelSouth.setLayout(\n new BoxLayout(pluginPanelSouth, BoxLayout.Y_AXIS));\n pluginPanelWest.setLayout(\n new BoxLayout(pluginPanelWest, BoxLayout.Y_AXIS));\n\n this.getContentPane().add(pluginPanelEast, BorderLayout.EAST);\n this.getContentPane().add(pluginPanelWest, BorderLayout.WEST);\n this.mainPanel.add(pluginPanelSouth, BorderLayout.SOUTH);\n\n // Search for plugin components registered through the OSGI bundle\n // context.\n Collection<ServiceReference<PluginComponentFactory>> serRefs;\n String osgiFilter\n = \"(|(\" + Container.CONTAINER_ID + \"=\"\n + Container.CONTAINER_CHAT_WINDOW.getID() + \")(\"\n + Container.CONTAINER_ID + \"=\"\n + Container.CONTAINER_CHAT_STATUS_BAR.getID() + \"))\";\n\n try\n {\n serRefs\n = GuiActivator.bundleContext.getServiceReferences(\n PluginComponentFactory.class,\n osgiFilter);\n }\n catch (InvalidSyntaxException ex)\n {\n serRefs = null;\n logger.error(\"Could not obtain plugin component reference.\", ex);\n }\n\n if ((serRefs != null) && !serRefs.isEmpty())\n {\n for (ServiceReference<PluginComponentFactory> serRef : serRefs)\n {\n PluginComponentFactory factory\n = GuiActivator.bundleContext.getService(serRef);\n Component comp\n = (Component)\n factory\n .getPluginComponentInstance(ChatWindow.this)\n .getComponent();\n\n // If this component has been already added, we have nothing\n // more to do here.\n if (comp.getParent() != null)\n return;\n\n Object borderLayoutConstraints\n = UIServiceImpl.getBorderLayoutConstraintsFromContainer(\n factory.getConstraints());\n\n addPluginComponent(\n comp,\n factory.getContainer(),\n borderLayoutConstraints);\n }\n }\n }", "void initializeView() {\n displayProjectFilter();\n displayTimeFrameFilter();\n\n setUsersIntoComboBox();\n setClientsIntoComboBox();\n setProjectsIntoComboBox();\n setDateRestrictions();\n setValidators();\n setTable();\n\n selectUser();\n selectClient();\n selectProject();\n listenDatePickerStart();\n listenDatePickerEnd();\n\n removeUserFilter();\n removeProjectFilter();\n removeTimeFrameFilter();\n clearAllFilters();\n\n // this is important for hiding user combo box and stuff\n setUpUserRules();\n\n //vBox.translateXProperty().bind((scrollPane.widthProperty().subtract(vBox.widthProperty())).divide(2));\n scrollPane.widthProperty().addListener((observable, oldValue, newValue) -> {\n if (newValue != null) {\n grid.setPrefWidth(newValue.doubleValue() - (oldValue.doubleValue() - scrollPane.getViewportBounds().getWidth()));\n }\n });\n\n //TODO: Refactor this.\n setUpBarChart();\n tbvTasks.getItems().addListener((ListChangeListener.Change<? extends TaskConcrete2> c) -> {\n setUpBarChart();\n });\n\n setToolTipsForButtons();\n changeTableSize();\n }", "protected void CriarComponentes(){\n\n //VINCULANDO A LISTA DA TELA AO LISTVIEW QUE DECLARAMOS\n ListMenu = (ListView) this.findViewById(R.id.ListMenu);\n }", "public viewForm() {\n this.addGLEventListener(this);\n }", "private void setupListeners() {\n\t\tfor (int i = 0; i < _controlPoints.length; i++) {\n\t\t\taddControlPointListener(_controlPoints[i][0], i);\n\t\t\taddControlPointListener(_controlPoints[i][1], i);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < _selectionButtons.length; i++) {\n\t\t\taddPointSelectionButtonListener(i);\n\t\t}\n\t}", "public void initListeners()\n {\n _removeItemView = _packItemView.getRemoveItemView();\n if(_removeItemView != null)\n {\n _removeItemView.setOnClickListener(ViewHolder.this);\n }\n // Subscribe to item clicked event\n itemView.setOnClickListener(new View.OnClickListener() {\n @Override public void onClick(View v) {\n _listener.onPackItemClicked(_packItemView, ViewHolder.this.getAdapterPosition());\n }\n });\n }", "private void setViewListeners() {\n // Set an OnClickListener for each button.\n btnDecrease.setOnClickListener(this);\n btnIncrease.setOnClickListener(this);\n btnOrder.setOnClickListener(this);\n\n // Set an OnTouchListener for each view.\n btnDecrease.setOnTouchListener(touchListener);\n btnIncrease.setOnTouchListener(touchListener);\n etTitle.setOnTouchListener(touchListener);\n etAuthor.setOnTouchListener(touchListener);\n etPrice.setOnTouchListener(touchListener);\n etEditQuantity.setOnTouchListener(touchListener);\n etSupplier.setOnTouchListener(touchListener);\n etPhoneNumber.setOnTouchListener(touchListener);\n\n /* Format the phone number as the user types it.\n Reference: https://stackoverflow.com/a/15647444\n Date: 8/1/18\n */\n etPhoneNumber.addTextChangedListener(new PhoneNumberFormattingTextWatcher());\n // End referenced code.\n }", "void initializeUIComponents(View v);", "protected void installListeners() {\n\t\tMappingMouseWheelListener mouseWheelHandler = \n\t\t\t\tnew MappingMouseWheelListener(this);\n\n\t\t// Handles mouse wheel events in the outline and graph component\n\t\tgraphOutline.addMouseWheelListener(mouseWheelHandler);\n\t\tgraphComponent.addMouseWheelListener(mouseWheelHandler);\n\n\t\tGraphOutlinePopupMouseAdapter outlinePoputListener = new \n\t\t\t\tGraphOutlinePopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the outline\n\t\tgraphOutline.addMouseListener(outlinePoputListener);\n\n\t\tGraphComponentPopupMouseAdapter componentPoputListener = new \n\t\t\t\tGraphComponentPopupMouseAdapter(this);\n\t\t\n\t\t// Installs the popup menu in the graph component\n\t\tgraphComponent.getGraphControl().addMouseListener(\n\t\t\t\tcomponentPoputListener);\n\t}", "protected void installListeners() {\n spinner.addPropertyChangeListener(propertyChangeListener); }", "private void addListeners()\n {\n // Enable LDAP Checkbox\n addDirtyListener( enableLdapCheckbox );\n addSelectionListener( enableLdapCheckbox, enableLdapCheckboxListener );\n\n // LDAP Port Text\n addDirtyListener( ldapPortText );\n addModifyListener( ldapPortText, ldapPortTextListener );\n\n // LDAP Address Text\n addDirtyListener( ldapAddressText );\n addModifyListener( ldapAddressText, ldapAddressTextListener );\n\n // LDAP nbThreads Text\n addDirtyListener( ldapNbThreadsText );\n addModifyListener( ldapNbThreadsText, ldapNbThreadsTextListener );\n\n // LDAP BackLogSize Text\n addDirtyListener( ldapBackLogSizeText );\n addModifyListener( ldapBackLogSizeText, ldapBackLogSizeTextListener );\n\n // Enable LDAPS Checkbox\n addDirtyListener( enableLdapsCheckbox );\n addSelectionListener( enableLdapsCheckbox, enableLdapsCheckboxListener );\n\n // LDAPS Address Text\n addDirtyListener( ldapsAddressText );\n addModifyListener( ldapsAddressText, ldapsAddressTextListener );\n\n // LDAPS Port Text\n addDirtyListener( ldapsPortText );\n addModifyListener( ldapsPortText, ldapsPortTextListener );\n\n // LDAPS nbThreads Text\n addDirtyListener( ldapsNbThreadsText );\n addModifyListener( ldapsNbThreadsText, ldapsNbThreadsTextListener );\n\n // LDAPS BackLogSize Text\n addDirtyListener( ldapsBackLogSizeText );\n addModifyListener( ldapsBackLogSizeText, ldapsBackLogSizeTextListener );\n \n // Enable wantClientAuth Checkbox\n addDirtyListener( wantClientAuthCheckbox );\n addSelectionListener( wantClientAuthCheckbox, wantClientAuthListener );\n\n // Enable needClientAuth Checkbox\n addDirtyListener( needClientAuthCheckbox );\n addSelectionListener( needClientAuthCheckbox, needClientAuthListener );\n\n // Auth Mechanisms Simple Checkbox\n addDirtyListener( authMechSimpleCheckbox );\n addSelectionListener( authMechSimpleCheckbox, authMechSimpleCheckboxListener );\n\n // Auth Mechanisms GSSAPI Checkbox\n addDirtyListener( authMechGssapiCheckbox );\n addSelectionListener( authMechGssapiCheckbox, authMechGssapiCheckboxListener );\n\n // Auth Mechanisms CRAM-MD5 Checkbox\n addDirtyListener( authMechCramMd5Checkbox );\n addSelectionListener( authMechCramMd5Checkbox, authMechCramMd5CheckboxListener );\n\n // Auth Mechanisms DIGEST-MD5 Checkbox\n addDirtyListener( authMechDigestMd5Checkbox );\n addSelectionListener( authMechDigestMd5Checkbox, authMechDigestMd5CheckboxListener );\n\n // Auth Mechanisms NTLM Checkbox\n addDirtyListener( authMechNtlmCheckbox );\n addSelectionListener( authMechNtlmCheckbox, authMechNtlmCheckboxListener );\n\n // Auth Mechanisms NTLM Text\n addDirtyListener( authMechNtlmText );\n addModifyListener( authMechNtlmText, authMechNtlmTextListener );\n\n // Auth Mechanisms GSS SPNEGO Checkbox\n addDirtyListener( authMechGssSpnegoCheckbox );\n addSelectionListener( authMechGssSpnegoCheckbox, authMechGssSpnegoCheckboxListener );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Auth Mechanisms GSS SPNEGO Text\n addDirtyListener( authMechGssSpnegoText );\n addModifyListener( authMechGssSpnegoText, authMechGssSpnegoTextListener );\n\n // Keystore File Text\n addDirtyListener( keystoreFileText );\n addModifyListener( keystoreFileText, keystoreFileTextListener );\n\n // Keystore File Browse Button\n addSelectionListener( keystoreFileBrowseButton, keystoreFileBrowseButtonSelectionListener );\n\n // Password Text\n addDirtyListener( keystorePasswordText );\n addModifyListener( keystorePasswordText, keystorePasswordTextListener );\n\n // Show Password Checkbox\n addSelectionListener( showPasswordCheckbox, showPasswordCheckboxSelectionListener );\n\n // SASL Host Text\n addDirtyListener( saslHostText );\n addModifyListener( saslHostText, saslHostTextListener );\n\n // SASL Principal Text\n addDirtyListener( saslPrincipalText );\n addModifyListener( saslPrincipalText, saslPrincipalTextListener );\n\n // SASL Seach Base Dn Text\n addDirtyListener( saslSearchBaseDnText );\n addModifyListener( saslSearchBaseDnText, saslSearchBaseDnTextListener );\n\n // SASL Realms Table Viewer\n addSelectionChangedListener( saslRealmsTableViewer, saslRealmsTableViewerSelectionChangedListener );\n addDoubleClickListener( saslRealmsTableViewer, saslRealmsTableViewerDoubleClickListener );\n addSelectionListener( editSaslRealmsButton, editSaslRealmsButtonListener );\n addSelectionListener( addSaslRealmsButton, addSaslRealmsButtonListener );\n addSelectionListener( deleteSaslRealmsButton, deleteSaslRealmsButtonListener );\n\n // Max Time Limit Text\n addDirtyListener( maxTimeLimitText );\n addModifyListener( maxTimeLimitText, maxTimeLimitTextListener );\n\n // Max Size Limit Text\n addDirtyListener( maxSizeLimitText );\n addModifyListener( maxSizeLimitText, maxSizeLimitTextListener );\n\n // Max PDU Size Text\n addDirtyListener( maxPduSizeText );\n addModifyListener( maxPduSizeText, maxPduSizeTextListener );\n\n // Enable TLS Checkbox\n addDirtyListener( enableTlsCheckbox );\n addSelectionListener( enableTlsCheckbox, enableTlsCheckboxListener );\n\n // Hashing Password Checkbox\n addDirtyListener( enableServerSidePasswordHashingCheckbox );\n addSelectionListener( enableServerSidePasswordHashingCheckbox, enableServerSidePasswordHashingCheckboxListener );\n\n // Hashing Method Combo Viewer\n addDirtyListener( hashingMethodComboViewer );\n addSelectionChangedListener( hashingMethodComboViewer, hashingMethodComboViewerListener );\n\n // Advanced SSL Cipher Suites\n ciphersSuiteTableViewer.addCheckStateListener( ciphersSuiteTableViewerListener );\n\n // Advanced SSL Enabled Protocols\n // Enable sslv3 Checkbox\n addDirtyListener( sslv3Checkbox );\n addSelectionListener( sslv3Checkbox, sslv3CheckboxListener );\n\n // Enable tlsv1 Checkbox\n addDirtyListener( tlsv1_0Checkbox );\n addSelectionListener( tlsv1_0Checkbox, tlsv1_0CheckboxListener );\n\n // Enable tlsv1.1 Checkbox\n addDirtyListener( tlsv1_1Checkbox );\n addSelectionListener( tlsv1_1Checkbox, tlsv1_1CheckboxListener );\n\n // Enable tlsv1.2 Checkbox\n addDirtyListener( tlsv1_2Checkbox );\n addSelectionListener( tlsv1_2Checkbox, tlsv1_2CheckboxListener );\n\n // Replication Pinger Sleep\n addDirtyListener( replicationPingerSleepText );\n addModifyListener( replicationPingerSleepText, replicationPingerSleepTextListener );\n\n // Disk Synchronization Delay\n addDirtyListener( diskSynchronizationDelayText );\n addModifyListener( diskSynchronizationDelayText, diskSynchronizationDelayTextListener );\n }", "protected void installListeners() {\n Window topLevelWindows[] = EventQueueMonitor.getTopLevelWindows();\n if (topLevelWindows != null) {\n for (int i = 0; i < topLevelWindows.length; i++) {\n if (topLevelWindows[i] instanceof Accessible) {\n installListeners((Accessible) topLevelWindows[i]);\n }\n }\n }\n }", "private void createUIComponents() {\n this.removeAll();\n this.setLayout(new GridBagLayout());\n\n selectionListener = e -> update();\n\n categorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategorySet.class, new Full_Set<>(database, CategorySet.class), false, this);\n categorySet_panel.addControlButtons(new CategorySet_ElementController(database, this));\n categorySet_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n virtualCategory_set = new OneParent_Children_Set<>(VirtualCategory.class, null);\n virtualCategory_elementController = new VirtualCategory_ElementController(database, this);\n virtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), VirtualCategory.class, virtualCategory_set, false, this);\n virtualCategory_panel.addControlButtons(virtualCategory_elementController);\n virtualCategory_panel.getMainPanel().getListSelectionModel().addListSelectionListener(selectionListener);\n\n categoryToCategorySet_set = new OneParent_Children_Set<>(CategoryToCategorySet.class, null);\n categoryToCategorySet_elementController = new CategoryToCategorySet_ElementController(database, this);\n categoryToCategorySet_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToCategorySet.class, categoryToCategorySet_set, false, this);\n categoryToCategorySet_panel.addControlButtons(categoryToCategorySet_elementController);\n\n categoryToVirtualCategory_set = new OneParent_Children_Set<>(CategoryToVirtualCategory.class, null);\n categoryToVirtualCategory_elementController = new CategoryToVirtualCategory_ElementController(database, this);\n categoryToVirtualCategory_panel = new DataObject_DisplayList<>(database.getSchema(), CategoryToVirtualCategory.class, categoryToVirtualCategory_set, false, this);\n categoryToVirtualCategory_panel.addControlButtons(categoryToVirtualCategory_elementController);\n\n GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = GridBagConstraints.BOTH;\n gridBagConstraints.weightx = 1;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridheight = 2;\n\n gridBagConstraints.gridx = 0;\n this.add(categorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 1;\n gridBagConstraints.gridx = 1;\n this.add(virtualCategory_panel, gridBagConstraints);\n\n gridBagConstraints.weighty = 2;\n this.add(categoryToCategorySet_panel, gridBagConstraints);\n\n gridBagConstraints.gridheight = 2;\n gridBagConstraints.weighty = 1;\n gridBagConstraints.gridx = 2;\n this.add(categoryToVirtualCategory_panel, gridBagConstraints);\n }", "public void createListeners() {\n\n addRow.addActionListener(e -> gui.addRow());\n deleteRow.addActionListener(e -> gui.deleteRow());\n }", "protected void attachListeners() {\n\t\t\n\t}", "public static ArrayList<HeadingListener> getListeners() {\n return _listeners;\n }", "public void enableMultiTouchElementListeners() {\r\n\t\tif (itemListeners == null) {\r\n\t\t\titemListeners = new ArrayList<ItemListener>();\r\n\t\t}\r\n\t\tif (screenCursorListeners == null) {\r\n\t\t\tscreenCursorListeners = new ArrayList<ScreenCursorListener>();\r\n\t\t}\r\n\t\tif (orthoControlPointRotateTranslateScaleListeners == null) {\r\n\t\t\torthoControlPointRotateTranslateScaleListeners = new ArrayList<OrthoControlPointRotateTranslateScaleListener>();\r\n\t\t}\r\n\t\tif (bringToTopListeners == null) {\r\n\t\t\tbringToTopListeners = new ArrayList<BringToTopListener>();\r\n\t\t}\r\n\t\tif (orthoSnapListeners == null) {\r\n\t\t\torthoSnapListeners = new ArrayList<OrthoSnapListener>();\r\n\t\t}\r\n\t\tif (flickListeners == null) {\r\n\t\t\tflickListeners = new ArrayList<OrthoFlickListener>();\r\n\t\t}\r\n\t\t\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addBringToTopListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addItemListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addOrthoControlPointRotateTranslateScaleListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addSnapListener(this);\r\n\t\t((IOrthoContentItemImplementation) this.contentItemImplementation)\r\n\t\t\t\t.addFlickListener(this);\r\n\t}", "private void registerListeners() {\n\t\t\n\t\t//Vertical coupler action listener\n\t\tvC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button not enabled for couplers\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button not enabled for couplers\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Setting cursor icon configuration for vertical coupler\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore vertical coupler option\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\n //Filter valid coupler verticals\n List<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n List<TypeCouplerMullion> validDividers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.DIVIDER.getValue(),\n ValidOrientations.VERTICAL.getValue());\n\n validCouplers.addAll(validDividers);\n\n //Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n\t\t\t\tcouplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Horizontal coupler action listener\n\t\thC.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Semaphore divide facet option FALSE\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//Edit button disabled for horizontal coupler\n\t\t\t\tedit.setEnabled(false);\n\t\t\t\t//Extend button disabled for horizontal coupler\n\t\t\t\textend.setEnabled(false);\n\t\t\t\t//Semaphore level selected\n\t\t\t\tselectedLevel = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Setting cursor icon configuration for horizontal coupler\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//MType for couplers equals 1\n\t\t\t\tmType = ValidCouplerMullions.COUPLER.getValue();\n\t\t\t\t//Semaphore horizontal coupler option\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validCouplers = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.COUPLER.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init coupler types comboBox\n\t\t\t\tDefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validCouplers.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\t\t\t\t\n\t\t\t\t//Remove components options which feature\n\t\t\t\twhichFeature.remove(couplerTypeC);\n\t\t\t\twhichFeature.remove(edit);\n\t\t\t\twhichFeature.remove(extend);\n\t\t\t\t\n\t\t\t\twhichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tvM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Vertical mullions position\n\t\t\t\tselectedHV = ValidOrientations.VERTICAL.getValue();\n\t\t\t\t//Level selected for mullions\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit button enabled for vertical mullions\n\t\t\t\tbuttonAction(ValidOrientations.VERTICAL.getValue());\n\t\t\t\t//Extends button enabled for vertical mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\t\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.VERTICAL.getValue());\n\t\t\t\t\n\t\t\t\t//Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\thM.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//myParent.clearCMAlignEdit();\n\t\t\t\tdivideFacet = false;\n\t\t\t\t//MType for mullions equals 2\n\t\t\t\tmType = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Horizontal mullions position\n\t\t\t\tselectedHV = ValidOrientations.HORIZONTAL.getValue();\n\t\t\t\t//Selected level for mullions equals 2\n\t\t\t\tselectedLevel = ValidCouplerMullions.MULLION.getValue();\n\t\t\t\t//Edit panel enabled for mullions\n\t\t\t\tenableDisableBySeries();\n\t\t\t\tbuttonAction(ValidOrientations.HORIZONTAL.getValue());\n\t\t\t\t//Filter valid coupler verticals\n\t\t\t\tList<TypeCouplerMullion> validMullions = couplerMullionController.filterCouplerMullion(ValidCouplerMullions.MULLION.getValue(),\n\t\t\t\t\t\t\tValidOrientations.HORIZONTAL.getValue());\n\n //Init mullion types comboBox\n DefaultComboBoxModel comboBoxModel = new DefaultComboBoxModel(validMullions.toArray());\n couplerTypeC.setModel(comboBoxModel);\n couplerTypeC.setSelectedIndex(0);\n\n whichFeature.remove(couplerTypeC);\n\n\t\t\t\twhichFeature.add(edit, new XYConstraints(132, 0, 24, 19));\n\t\t\t\twhichFeature.add(extend, new XYConstraints(156, 0, 24, 19));\n whichFeature.add(couplerTypeC, new XYConstraints(2, 22, 180, 19));\n\t\t\t\t\n\t\t\t\twhichFeature.validate();\n\t\t\t\twhichFeature.repaint();\n\t\t\t}\n\t\t});\n\t\t\n\t\tcancel.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t//Setting edit visible\n\t\t\t\tsetEditVisible(false, null);\n\t\t\t\t\n\t\t\t\tif (hM.isSelected() || vM.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t} else if (hC.isSelected() || vC.isSelected()) {\n\t\t\t\t\tenableDisableBySeries();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Edit mullions action listener\n\t\tedit.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(false);\n\t\t\t\tedit.setSelected(true);\n\t\t\t\t\n\t\t\t\t//Call edit action event\n\t\t\t\tedit_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfCombo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcomboPF(true);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Coupler type comboBox listener\n\t\tthis.couplerTypeC.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcoupleTypeAction();\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.part.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif (part.isSelected()) {\n\t\t\t\t\tparts.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tparts.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tthis.extend.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\textend.setSelected(true);\n\t\t\t\tedit.setSelected(false);\n\t\t\t\tcont_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeLT.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeLT.isSelected()) {\n\t\t\t\t\tlCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tlCut.setEnabled(false);\n\t\t\t\t\tif (!part.isSelected() && !endTypeRB.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tendTypeRB.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (endTypeRB.isSelected()) {\n\t\t\t\t\trCut.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\trCut.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !pfFormL.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tpfFormL.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (pfFormL.isSelected()) {\n\t\t\t\t\tpfCombo.setEnabled(true);\n\t\t\t\t\toffsetLT.setEnabled(true);\n\t\t\t\t\toffsetRB.setEnabled(true);\n\t\t\t\t\tdeltaL.setEnabled(true);\n\t\t\t\t\tdeltaR.setEnabled(true);\n\t\t\t\t\toffsetL.setEnabled(true);\n\t\t\t\t\toffsetR.setEnabled(true);\n\t\t\t\t\tsetGo.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\tpfCombo.setEnabled(false);\n\t\t\t\t\toffsetLT.setEnabled(false);\n\t\t\t\t\toffsetRB.setEnabled(false);\n\t\t\t\t\tdeltaL.setEnabled(false);\n\t\t\t\t\tdeltaR.setEnabled(false);\n\t\t\t\t\toffsetL.setEnabled(false);\n\t\t\t\t\toffsetR.setEnabled(false);\n\t\t\t\t\tif (!endTypeLT.isSelected() && !part.isSelected() && !part.isSelected()) {\n\t\t\t\t\t\tsetGo.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tsetGo.addActionListener(new ActionListener() {\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tset_actionPerformed(e);\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void bindViewsListener() {\n seekbar.setOnSeekBarChangeListener(mOnSeekBarChangeListener);\n }", "void addComponents();", "public List<GComponent> getComponents()\n {\n return this.components;\n }", "private void addEventHandlers()\n {\n DepartureBox self = this;\n\n departureTimeField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (null != currentDeparture) {\n Change<Departure, String> change = new Change<>(currentDeparture, oldValue, newValue, \"departureTime\");\n self.execute(IEventListener.EVENT_CHANGE, change, \"depbox\");\n }\n });\n\n destinationField.textProperty().addListener((observable, oldValue, newValue) -> {\n if (null != currentDeparture) {\n Change<Departure, String> change = new Change<>(currentDeparture, oldValue, newValue, \"destination\");\n self.execute(IEventListener.EVENT_CHANGE, change, \"depbox\");\n }\n });\n }", "public List<LComponent> getComponents()\n\t{\n\t\treturn this.components;\n\t}", "@Override\npublic void descendentUIComponentsAdded() {\n\t\n}", "public void setListeners(){\n\t\t\n\t\tthis.addActionListener(new ActionListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t// chosen to add new patient\n\t\t\t\t\n\t\t\t\tArrayList<String> constructorInput = null;\n\t\t\t\tconstructorInput = NewPatientWindow.showInputdialog(true);\n\t\t\t\t\n\t\t\t\t// if cancel or close chosen on new patient window:\n\t\t\t\tif (constructorInput == null)\n\t\t\t\t\treturn; \n\t\t\t\t\n\t\t\t\t//else:\n\t\t\t\tBrainFreezeMain.patients.add(new Patient(\n\t\t\t\t\t\t(constructorInput.toArray( new String[constructorInput.size()]))));\n\t\t\t\tBrainFreezeMain.currentPatientIndex = BrainFreezeMain.patients.size()-1;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tLeftPanel.refreshPatientLabel(); // change to patient list, update label\n\t\t\t\tLeftPanel.refreshPatientData(); // change to patient, update data\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t}", "private void addComponents() {\n LOOGER.info(\"Get add Components Entry\");\n // Adding loadButton to first row.\n this.add(loadButton);\n\n // Adding fillButton to first row.\n this.add(fillButton);\n\n // Adding deleteButton to first row.\n this.add(deleteButton);\n LOOGER.info(\"add Components exit\");\n }", "public Vector getBuildListeners() {\n return (Vector) listeners.clone();\n }", "private void bindView() {\n mToolbar = (Toolbar) findViewById(R.id.tb_main);\n mMainLayout = (CoordinatorLayout) findViewById(R.id.crdl_main);\n mProgressDialog = (AVLoadingIndicatorView) findViewById(R.id.avi_progress_dialog);\n mPersonsView = (RecyclerView) findViewById(R.id.rv_persons);\n mPersonsView.setLayoutManager(new LinearLayoutManager(context));\n }", "public void setListeners() {\n coachName.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n coachSurname.textProperty().addListener( observable -> {\n if(warningText.isVisible()) {\n warningText.setVisible(false);\n }\n });\n }", "@Override\n\tpublic synchronized void registerEventListeners() {\n\t\tif (eventListeners != null) // already called\n\t\t\treturn;\n\t\teventListeners = EventListenerManagers.wrap(this);\n\t\tSelectionUpdateListener selectionUpdateListener = new SelectionUpdateListener();\n\t\tselectionUpdateListener.setHandler(this);\n\t\teventListeners.register(SelectionUpdateEvent.class, selectionUpdateListener);\n\n\t\tSelectionCommandListener selectionCommandListener = new SelectionCommandListener();\n\t\tselectionCommandListener.setHandler(this);\n\t\t// selectionCommandListener.setDataDomainID(dataDomain.getDataDomainID());\n\t\teventListeners.register(SelectionCommandEvent.class, selectionCommandListener);\n\n\t\tsuper.registerEventListeners();\n\n\n\t}", "public void registerComponents() {\r\n maintainSponsorHierarchyBaseWindow.addVetoableChangeListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnChangeGroupName.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnClose.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnCreateNewGroup.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnDelete.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnDetails.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnMoveDown.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnMoveUp.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnSave.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnSearchSponser.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.btnPanel.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangeGroupName.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmChangePassword.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmClose.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmCreateNewGroup.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDetails.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelete.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmExit.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmInbox.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveDown.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmMoveUp.addActionListener(this);\r\n //Added for Case#3682 - Enhancements related to Delegations - Start\r\n maintainSponsorHierarchyBaseWindow.mnuItmDelegations.addActionListener(this);\r\n //Added for Case#3682 - Enhancements related to Delegations - End\r\n maintainSponsorHierarchyBaseWindow.mnuItmPreferences.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSave.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmPanel.addActionListener(this);\r\n maintainSponsorHierarchyBaseWindow.mnuItmSearchSponser.addActionListener(this);\r\n //Case 2110 Start\r\n maintainSponsorHierarchyBaseWindow.mnuItmCurrentLocks.addActionListener(this);\r\n //Case 2110 End\r\n //Addded for Case#2445 - proposal development print forms linked to indiv sponsor, should link to sponsor hierarchy - Start\r\n maintainSponsorHierarchyBaseWindow.mnuItmSponsorForm.addActionListener(this);\r\n //Case#2445 - End \r\n sponsorHierarchyTree.addTreeSelectionListener(this);\r\n sponsorHierarchyTree.addMouseListener(this);\r\n model.addTreeModelListener(this);\r\n }", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "private void notifyListeners() {\n IDisplayPaneContainer container = (IDisplayPaneContainer) activeEditorMap\n .get(currentWindow);\n for (IVizEditorChangedListener listener : changeListeners) {\n listener.editorChanged(container);\n }\n }", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "protected void initializeComponents() {\n\t\t/* Create fonts for information nodes */\n\t\tFont titleFont = Font.font(\"Arial\", FontWeight.BOLD, 18);\n\t\tFont descriptionFont = Font.font(\"Arial\", 14);\n\t\t/* Configure information nodes */\n\t\tconfigureTitle(titleFont);\n\t\tconfigureDescription(descriptionFont);\n\t\tconfigureIconContainer();\n\t\tconfigureWindow();\n\t\t/* set scene */\n\n\t\tgetContent().add(notificationContainer);\n\t}", "public void addComponentsToContainer() {\n container.add(userLabel);\n container.add(passwordLabel);\n container.add(userTextField);\n container.add(passwordField);\n container.add(loginButton);\n container.add(exitButton);\n\n }", "private void bindView() {\n\n\t\tfindViewById(R.id.issue_feedback_container).addOnLayoutChangeListener(\n\t\t\t\tnew OnLayoutChangeListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLayoutChange(View v, int left, int top,\n\t\t\t\t\t\t\tint right, int bottom, int oldLeft, int oldTop,\n\t\t\t\t\t\t\tint oldRight, int oldBottom) {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tint addItem = bottom - oldBottom;\n\t\t\t\t\t\tif (addItem > 0 && oldBottom > 0) {\n\t\t\t\t\t\t\tScrollView scrollView = (ScrollView) findViewById(R.id.container);\n\t\t\t\t\t\t\tLog.i(TAG, \"deltaHeight=\" + addItem + \";bottom=\"\n\t\t\t\t\t\t\t\t\t+ bottom + \";oldBottom=\" + oldBottom);\n\t\t\t\t\t\t\tscrollView.scrollBy(0, addItem);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\tissueDescView = (UserInputItemView) findViewById(R.id.issue_desc);\n\t\tissueTopic = (EditItemView) findViewById(R.id.issue_topic);\n\t\taddFile = (AddItemView) findViewById(R.id.issue_add_file);\n\t\tsolverMan = (ChooseItemView) findViewById(R.id.issue_choose_deliver);\n\t\tsolverMan.setContent(\"选择解决人\");\n\t\taddPerson = (AddItemView) findViewById(R.id.issue_add_person);\n\t\taddPerson.setVisibility(View.GONE);\n\t\tsolverMan.setChooseItemClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tgetDeliveryList(true, solverMan);\n\t\t\t}\n\t\t});\n\n\t\taddFile.setOnCreateItemViewListener(addfileListenr);\n\t\taddPerson.setOnCreateItemViewListener(addfoucsPersonCreateListenr);\n\n\t}", "private void createComponents() {\n \n Dimension thisSize = this.getSize();\n \n this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));\n \n ArrayList<Integer> numbers = new ArrayList<>();\n for (int i = 0; i < recordCount; ++i) {\n numbers.add(i);\n }\n \n recordList = new JList(numbers.toArray());\n recordList.addListSelectionListener(selectionListener);\n JScrollPane listPane = new JScrollPane(recordList);\n listPane.setPreferredSize(new Dimension(thisSize.width / 3, thisSize.height));\n \n select(0, 0);\n \n this.add(listPane);\n \n recordForm = new RecordForm(fields, thisSize);\n entryForm = new JScrollPane(recordForm);\n \n this.add(entryForm);\n \n selectionAction = WAITING_ON_SELECTION;\n \n }", "private void installListeners() {\r\n\t\tcboText.addActionListener(this);\r\n\r\n\t\tComponent c = cboText.getEditor().getEditorComponent();\r\n\t\tif (c instanceof JTextComponent) {\r\n\t\t\t((JTextComponent) c).getDocument().addDocumentListener(this);\r\n\t\t}\r\n\r\n\t\tbtnFind.addActionListener(this);\r\n\t\tbtnReplace.addActionListener(this);\r\n\t\tbtnReplaceAll.addActionListener(this);\r\n\t\tbtnReplaceFind.addActionListener(this);\r\n\r\n\t\trbAll.addActionListener(this);\r\n\t\trbSelectedLines.addActionListener(this);\r\n\r\n\t\tcbUseRegex.addItemListener(this);\r\n\t}", "public synchronized List<EventListener> getListeners() {\n \treturn listeners;\n }", "public CViewTableListener() {\n m_originContainer.addListener(m_containerListener);\n }", "private void addComponents(){\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.anchor = GridBagConstraints.WEST;\n constraints.insets = new Insets(5, 5, 5, 5);\n constraints.fill = GridBagConstraints.BOTH;\n \n // Add components to the panel\n // Note>> the constraints are applied to both panels\n constraints.gridx = 0;\n constraints.gridy = 0; \n subPanel1.add(onDo1, constraints); // Add button to pane 1\n\n constraints.gridx = 1;\n subPanel1.add(onDo2, constraints); // Add button to pane 1\n \n constraints.gridx = 0;\n constraints.gridy = 1; \n subPanel1.add(onDo3, constraints); // Add button to pane 1\n subPanel2.add(l1, constraints); // Add button to pane 2\n \n constraints.gridx = 1;\n constraints.gridy = 1;\n subPanel1.add(onDo4, constraints); // Add button to pane 1\n \n\n // Set border for sub panel 1 \n subPanel1.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Events\"));\n \n // Set border for sub panel 2 \n subPanel2.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createEtchedBorder(), \"Debug\"));\n }", "protected void installListeners() {\n\t}", "private void registerEventListeners() {\n addDisposeListener(new DisposeListener() {\n @Override\n public void widgetDisposed(DisposeEvent de) {\n Display display = getDisplay();\n display.removeFilter(SWT.Move, moveFilter);\n OldFXCanvas.this.widgetDisposed(de);\n }\n });\n\n addPaintListener(pe -> {\n OldFXCanvas.this.paintControl(pe);\n });\n\n addMouseListener(new MouseListener() {\n @Override\n public void mouseDoubleClick(MouseEvent me) {\n // Clicks and double-clicks are handled in FX\n }\n @Override\n public void mouseDown(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }\n @Override\n public void mouseUp(MouseEvent me) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_RELEASED);\n }\n });\n\n addMouseMoveListener(me -> {\n if ((me.stateMask & SWT.BUTTON_MASK) != 0) {\n // FX only supports 3 buttons so don't send the event for other buttons\n if ((me.stateMask & (SWT.BUTTON1 | SWT.BUTTON2 | SWT.BUTTON3)) != 0) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_DRAGGED);\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n } else {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_MOVED);\n }\n });\n\n addMouseWheelListener(me -> {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_WHEEL);\n });\n\n addMouseTrackListener(new MouseTrackListener() {\n @Override\n public void mouseEnter(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_ENTERED);\n }\n @Override\n public void mouseExit(MouseEvent me) {\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_EXITED);\n }\n @Override\n public void mouseHover(MouseEvent me) {\n // No mouse hovering in FX\n }\n });\n\n addControlListener(new ControlListener() {\n @Override\n public void controlMoved(ControlEvent ce) {\n OldFXCanvas.this.sendMoveEventToFX();\n }\n @Override\n public void controlResized(ControlEvent ce) {\n OldFXCanvas.this.sendResizeEventToFX();\n }\n });\n\n addFocusListener(new FocusListener() {\n @Override\n public void focusGained(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, true);\n }\n @Override\n public void focusLost(FocusEvent fe) {\n OldFXCanvas.this.sendFocusEventToFX(fe, false);\n }\n });\n\n addKeyListener(new KeyListener() {\n @Override\n public void keyPressed(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyDown);\n \n }\n @Override\n public void keyReleased(KeyEvent e) {\n OldFXCanvas.this.sendKeyEventToFX(e, SWT.KeyUp);\n }\n });\n \n addMenuDetectListener(e -> {\n Runnable r = () -> {\n if (isDisposed()) {\n return;\n }\n OldFXCanvas.this.sendMenuEventToFX(e);\n };\n // In SWT, MenuDetect comes before the equivalent mouse event\n // On Mac, the order is MenuDetect, MouseDown, MouseUp. FX\n // does not expect this order and when it gets the MouseDown,\n // it closes the menu. The fix is to defer the MenuDetect\n // notification until after the MouseDown is sent to FX.\n if (\"cocoa\".equals(SWT.getPlatform())) {\n getDisplay().asyncExec(r);\n } else {\n r.run();\n }\n });\n }", "private void setListeners() {\n\n }", "void addImageViewListeners() {\n\t\tfor (int i=0; i<NUM[TOTAL]; i++) {\n\t\t\tpieceViews.get(i).setOnClickListener(this); //OnClickListener for rotation \n\t\t\tpieceViews.get(i).setOnLongClickListener(this); //OnLongClickListener to start dragging\n\t\t\tpieceViews.get(i).setOnDragListener(new DragListener()); //OnDragListener for dragging\t\t\t\n\t\t}\n\t}", "protected void setupListeners() {\n\t\t\n\t\tloginBtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\tSession session = theController.validateUser(usernameField.getText(), passwordField.getText());\n\t\t\t\tif(session != null) {\n\t\t\t\t\ttheController.login();\n\t\t\t\t} else {\n\t\t\t\t\tlblInvalid.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnRegister.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.register();\n\t\t\t}\n\t\t});\n\t\t\n\t\tbtnGuide.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent click) {\n\t\t\t\ttheController.viewGuide();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void initView() {\n TIMManager.getInstance().addMessageListener(this);\n initAdapter();\n initRefresh();\n }", "@Override\r\n\tprotected void setListeners() {\n\t\t\r\n\t}", "private Vector getProjectChangedListeners() {\r\n return this.projectChangedListeners;\r\n }", "protected void installListeners() {\n\n\t}", "List<UIComponent> getChildren();", "private void addBindingAndListener() {\n // When the simulation has more than one time of simulation this property change the selected element\n // of time series.\n this.changeListener = (observable, oldValue, newValue) -> {\n if (newValue instanceof Component) { // IS LINK OR NODE\n Component comp = (Component) newValue;\n idTextField.setText(comp.getId());\n }\n };\n this.selectableItem.addListener(changeListener);\n }", "private void createComponents() {\n\n add(createSetDataPanel(), BorderLayout.NORTH);\n add(createResourcesListAndButtonsPanel(), BorderLayout.CENTER);\n }", "private void adicionaListeners() {\r\n\t\t\taddFocusListener(this);\r\n\t\t\taddKeyListener(this);\r\n\t\t\taddMouseListener(this);\r\n\t\t}", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "private void AddUIViewAndHandlers()\n\t{\n\t\t// Set view and autocomplete text\t\t\n\t\tSetViewAndAutoCompleteText(VIEW_ID_COMMAND);\n\t\tSetViewAndAutoCompleteText(VIEW_ID_KEY);\n\t\t\n\t\t// Set handler\n\t\tmCommandViewHandler = MakeViewHandler(VIEW_ID_COMMAND);\t\t\n\t\tmKeyViewHandler = MakeViewHandler(VIEW_ID_KEY);\n\t}", "public Iterator<Object> listeners() {\n return Arrays.asList(fListeners).iterator();\n }", "private void bindHandlers() {\n content.getLoginView().getLoginBtn().addClickHandler(new LoginClickHandler());\n content.getLoginView().getRegisterBtn().addClickHandler(new RegisterBtnClickHandler());\n content.getRegisterView().getRegisterBtn().addClickHandler(new RegisterClickHandler());\n content.getRegisterView().getGobackBtn().addClickHandler(new GoBack());\n }", "protected void au() {\n View view = this.ln.get();\n if (view == null) {\n return;\n }\n ViewTreeObserver viewTreeObserver = this.lm.get();\n if ((view = view.getViewTreeObserver()) == viewTreeObserver) return;\n this.lm = new WeakReference<View>(view);\n view.addOnScrollChangedListener((ViewTreeObserver.OnScrollChangedListener)this);\n view.addOnGlobalLayoutListener((ViewTreeObserver.OnGlobalLayoutListener)this);\n }", "private void setListeners() {\n\t\trefreshButton.addActionListener(new refreshButtonListener());\n\n\t\tthis.list.addMouseListener(new MouseAdapter() {\n\n\t\t\t@Override\n\t\t\tpublic void mouseClicked(MouseEvent event) {\n\t\t\t\tif (event.getClickCount() == 2 && list.getSelectedValue() != null && !list.getSelectedValue().equals(\"\") && tabs.getSelectedIndex() != -1) {\n\t\t\t\t\tlaunchDocument(tabs.getTitleAt(tabs.getSelectedIndex()), list.getSelectedValue());\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttabs.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tif (!tabs.getTitleAt(tabs.getSelectedIndex()).equals(\"Chat\")) {\n\t\t\t\t\tlistmodel.clear();\n\t\t\t\t\tmakeRequest();\n\t\t\t\t}\n\t\t\t}\n\n\t\t});\n\t}", "private void registerListeners() {\n\n\t\tline.addActionListener(new LineButtonListener());\n\t\trect.addActionListener(new RectButtonListener());\n\t\toval.addActionListener(new OvalButtonListener());\n\t\timage.addActionListener(new ImageButtonListener());\n\n\t\tMouseListener listener = new ListenToMouse();\n\t\tMouseMotionListener motionListener = new ListenToMouse();\n\n\t\tcanvas.addMouseMotionListener(motionListener);\n\t\tcanvas.addMouseListener(listener);\n\n\t}", "private void addComponents() {\r\n\t\t// initialize properties and add.\r\n\t\tthis.add(initializeChatArea(), BorderLayout.CENTER);\r\n\t\tthis.add(initializeSubPanel(), BorderLayout.SOUTH);\r\n\t}", "public void initListeners() {\n\t\tlogoGrabListener = new LogoGrabListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onResponse(JSONObject response) {\n\t\t\t\tLog.i(TAG, \"LogoGrab Application responded with: \" + response.toString());\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onError(String error) {\n\t\t\t\tLog.e(TAG, error);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set LogoGrabListener\n\t\tLogoGrabInterface.setLogoGrabListener(logoGrabListener);\n\t\t\n\t\t\n\t\t// init OnClickListener\n\t\tonClickListener = new OnClickListener() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLogoGrabInterface.startLogoGrab(MainActivity.this);\n\t\t\t}\n\t\t};\n\t\t\n\t\t// set OnClickListener\n\t\tlogoGrabButton.setOnClickListener(onClickListener);\n\t}", "private void agregarListeners() {\n this.vista.jbAceptar.addActionListener(this);\n this.vista.jbAgregar.addActionListener(this);\n this.vista.jbCancelar.addActionListener(this);\n this.vista.jbQuitar.addActionListener(this);\n this.vista.jtPermisosDisponibles.addMouseListener(this);\n this.vista.jtPermisosSeleccionados.addMouseListener(this);\n }", "private void addComponents() {\n\t\tadd(newGame);\n\t\tadd(nameLabel);\n\t\tadd(nameField);\n\t\tadd(addPlayer);\n\t\tadd(gameTextPane);\n\t\tadd(playGame);\t\n\t\tadd(takeTurn);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//v0.1.1 change\n\t}", "private void addListeners() {\r\n updateMethod.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n enableFieldBasedOnUpdateMethod();\r\n }\r\n });\r\n cbUseLeakyLearning.addActionListener(this);\r\n cbUseLeakyLearning.setActionCommand(\"useLeakyLearning\");\r\n }", "@Override\n\tpublic void getListener(){\n\t}", "private void addListeners()\r\n {\r\n Actions act = new Actions();\r\n btnCountA.addActionListener(act);\r\n btnSearch.addActionListener(act);\r\n btnFindL.addActionListener(act);\r\n }", "private void addListeners() {\n \t\tfHistoryListener= new HistoryListener();\n \t\tfHistory.addOperationHistoryListener(fHistoryListener);\n \t\tlistenToTextChanges(true);\n \t}", "private void initializeListeners() {\n llBack.setOnClickListener(this);\n btnChange.setOnClickListener(this);\n btnNext.setOnClickListener(this);\n }", "@Override\npublic void childComponentsAdditionStarted() {\n\t\n}" ]
[ "0.7061884", "0.6741033", "0.6617922", "0.64301217", "0.6206889", "0.61158323", "0.6086565", "0.5995161", "0.59878385", "0.59251744", "0.59164554", "0.58383083", "0.5833009", "0.5832287", "0.58206856", "0.5810231", "0.5806972", "0.578409", "0.5772486", "0.5762648", "0.5746111", "0.5727769", "0.57274425", "0.56896704", "0.56853706", "0.5683061", "0.56733495", "0.56715286", "0.5670061", "0.5666831", "0.5659097", "0.56461537", "0.5614828", "0.5608505", "0.5596689", "0.5594243", "0.5592503", "0.5590147", "0.55781585", "0.5568745", "0.5567518", "0.55569506", "0.5552711", "0.5549703", "0.55367494", "0.5531114", "0.5526794", "0.55146986", "0.55138266", "0.54975516", "0.54913175", "0.5487634", "0.54784566", "0.5476804", "0.5471794", "0.5471133", "0.5469808", "0.5466872", "0.54619616", "0.54599756", "0.54599756", "0.545765", "0.5453338", "0.5451978", "0.54439133", "0.5442118", "0.5434341", "0.543114", "0.5430327", "0.5428787", "0.5427845", "0.5426138", "0.5421515", "0.5412335", "0.54106843", "0.53999656", "0.5399905", "0.53874534", "0.53770363", "0.53764266", "0.53759325", "0.5352244", "0.53450286", "0.53397024", "0.5337779", "0.53337836", "0.53333324", "0.53288966", "0.53269696", "0.53247064", "0.53174454", "0.5315029", "0.53136986", "0.53117514", "0.53116375", "0.53079706", "0.53010565", "0.5296091", "0.5294695", "0.5292085", "0.5290985" ]
0.0
-1
90.0% == 1ms 95.0% == 10ms 1000 50 > 10ms 99.0% == 100ms 1000 10 > 100ms 99.9% == 1000ms1000 1 > 1000ms
@RequestMapping("/index") public String index() { int level = ThreadLocalRandom.current().nextInt(1, 1000); int time; if (level <= 900) { time = 1; } else if (level <= 950) { time = 10; } else if (level <= 990) { time = 100; } else { time = 1000; } try { Thread.sleep(time); } catch (InterruptedException e) { } return "1"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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}", "private void computePerformance(int ticks) {\n System.out.println(\"Avergae number of packets in queue: \" + (_cumulativePacketsInQueue / (double)ticks));\n \n // Average time spent in queue per packet\n System.out.println(\"Average sojurn time: \" + (_totalSojurnTime / (double)_numPacketsProcessed));\n\n // Percentage idle time\n System.out.println(\"Percentage idle time: \" + ((_totalIdleTime / (double)ticks) * 100) + \"%\");\n\n // Packet loss probability\n System.out.println(\"Packet loss proability: \" + ((_numPacketsDropped / (double)(_numPacketsDropped + _numPacketsProcessed)) * 100) + \"%\");\n }", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "private static void testDelayOverhead() throws InterruptedException {\n Object m = \"\";\n int iters = 1000;\n long delay = 50;\n\n long before = System.currentTimeMillis();\n\n for (int i = 0; i < iters; i++) {\n\n synchronized (m) {\n m.wait(delay);\n }\n }\n\n long after = System.currentTimeMillis();\n\n long tottime = after - before;\n System.out.println(\"total time: \" + tottime + \"ms\");\n long ovhd = tottime - iters * delay;\n System.out.println(\"overhead: \" + ovhd + \"ms (\" + (100 * (ovhd / ((double) tottime))) + \"%)\");\n }", "private void updateNetworkSpeed() {\n Message obtain = Message.obtain();\n obtain.what = 200000;\n long j = 0;\n if (isDemoOrDrive() || this.mDisabled || !this.mIsNetworkConnected) {\n obtain.arg1 = 0;\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n return;\n }\n long currentTimeMillis = System.currentTimeMillis();\n long totalByte = getTotalByte();\n if (totalByte == 0) {\n this.mLastTime = 0;\n this.mTotalBytes = 0;\n totalByte = getTotalByte();\n }\n long j2 = this.mLastTime;\n if (j2 != 0 && currentTimeMillis > j2) {\n long j3 = this.mTotalBytes;\n if (!(j3 == 0 || totalByte == 0 || totalByte <= j3)) {\n j = ((totalByte - j3) * 1000) / (currentTimeMillis - j2);\n }\n }\n obtain.arg1 = 1;\n obtain.obj = Long.valueOf(j);\n this.mHandler.removeMessages(200000);\n this.mHandler.sendMessage(obtain);\n this.mLastTime = currentTimeMillis;\n this.mTotalBytes = totalByte;\n postUpdateNetworkSpeedDelay((long) this.mNetworkUpdateInterval);\n }", "public static void main(String[] args) throws Exception {\n \r\n long beginTime = System.nanoTime();\r\n for (int i = 0; i < 50000000; i++) {\r\n// System.out.println(getFlowNo());\r\n getFlowNo();\r\n \r\n }\r\n long endTime = System.nanoTime();\r\n System.out.println(\"onLineWithTransaction cost:\"+((endTime-beginTime)/1000000000) + \"s \" + ((endTime-beginTime)%1000000000) + \"us\");\r\n// \r\n// System.out.println(System.currentTimeMillis());\r\n// TimeUnit.SECONDS.sleep(3);\r\n// System.out.println(System.currentTimeMillis());\r\n }", "int getMPPerSecond();", "@Override\r\n\tpublic double getSlowness() {\n\t\treturn 10;\r\n\t}", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "int getSampleMs();", "@Test\n public void testRandomSeries() {\n\tlong overallStart = System.currentTimeMillis();\n for (long a = Short.MIN_VALUE ; a <= Short.MAX_VALUE; a+= random.nextInt(300) + 113) {\n for (long b = Short.MAX_VALUE; b >= Short.MIN_VALUE; b-= random.nextInt(300) + 113) {\n\t\tlong start = System.currentTimeMillis();\n\t\tint ua = (int)(a + Short.MAX_VALUE + 1),\n\t\t\tub = (int)(b + Short.MAX_VALUE + 1);\n verify(ua, ub, false);\n verify(a, b, true);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(\"a \" + a + \"b \" + b + \": \" + (end - start) + \"ms\");\n }\n }\n\tlong overallEnd = System.currentTimeMillis();\n\tSystem.out.println(\"Test Duration: \" + ((overallEnd - overallStart) / 1000) + \"s\");\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "@DISPID(56)\r\n\t// = 0x38. The runtime will prefer the VTID if present\r\n\t@VTID(54)\r\n\tint actualCPUTime_Milliseconds();", "@Ignore\r\n @Test\r\n public void speedTest() throws InterruptedException {\n for (int i = 0; i < 10; i++) {\r\n singleSpeedTest();\r\n }\r\n }", "public double CPUServiceTime()\r\n\t{\r\n\t\treturn Math.random()* (30.0 - 10.0) + 10.0;\r\n\t}", "public void testPerformance() {\n \t}", "public void faster()\n {\n if(speed < 9){\n speed += 1;\n }\n }", "private void timeSync() throws InterruptedException {\n long realTimeDateMs = currentTimeMs - System.currentTimeMillis();\n long sleepTime = periodMs + realTimeDateMs + randomJitter();\n\n if (slowdownFactor != 1) {\n sleepTime = periodMs * slowdownFactor;\n }\n\n if (sleepTime > 0) {\n Thread.sleep(sleepTime);\n }\n }", "public void AlgoTimeTrials() {\n\t\n\tSystem.out.println( \"\\nQuestion (7) AlgoTimeTrials\" );\n\tSystem.out.println( \"---------------------------\");\n\tint start = 100 , end = 1000000 , mult = 10;\n\tint NTrials = 5;\n\tdouble Range = 9.0;\n\tStopWatch watch = new StopWatch();\n\tdouble target = Math.PI;\n\tSystem.out.format( \"%10s %12s %12s %12s\\n\" , \"Size\" , \"AvgSort(us)\" , \"AvgBinary(us)\" , \"AvgLinear(us)\" );\n\tSystem.out.format( \"%10s %12s %12s %12s\\n\" , \"----\" , \"-----------\" , \"-------------\" , \"-------------\" );\n\tfor( int Size = start ; Size <= end ; Size *= mult ) {\n\t double [] sortTimes = new double[NTrials];\n\t double [] binarySearchTimes = new double[NTrials];\n\t double [] linearSearchTimes = new double[NTrials];\n\t for( int i = 0; i < NTrials ; i++ ) {\n\t\tdouble [] A = createRandomDoubleArray(Size,Range);\n\t\tA[A.length-1] = target;\n\t\tsortTimes[i] = getSortTime( A , watch );\n\t\tbinarySearchTimes[i] = getBinarySearchTime(A,target,watch);\n\t\tlinearSearchTimes[i] = getLinearSearchTime(A,target,watch);\n\t }\n\t double avgSort = getAverage( sortTimes );\n\t double avgBinary = getAverage( binarySearchTimes);\n\t double avgLinear = getAverage( linearSearchTimes);\n\t System.out.format( \"%10d %12.1f %12.1f %12.1f\\n\" , Size , avgSort , avgBinary , avgLinear );\n\t}\n }", "double get_system_time(int n)\n {\n long start = System.nanoTime();\n for (int i = 1; i < n; i*=2)\n {\n // free process..\n }\n long end = System.nanoTime();\n double t = (end - start) / 1000000000.0;\n return t;\n }", "int getCPU_time();", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "static UINT32 update_cycle_counting(void)\n\t{\n\t\tUINT32 count = (activecpu_gettotalcycles64() - mips3.count_zero_time) / 2;\n\t\tUINT32 compare = mips3.cpr[0][COP0_Compare];\n\t\tUINT32 cyclesleft = compare - count;\n\t\tdouble newtime;\n\t\n\t//printf(\"Update: count=%08X compare=%08X delta=%08X SR=%08X time=%f\\n\", count, compare, cyclesleft, (UINT32)SR, TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu()));\n\t\n\t\t/* modify the timer to go off */\n\t\tnewtime = TIME_IN_CYCLES(((UINT64)cyclesleft * 2), cpu_getactivecpu());\n\t\tif (SR & 0x8000)\n\t\t\ttimer_adjust(mips3.compare_int_timer, newtime, cpu_getactivecpu(), 0);\n\t\telse\n\t\t\ttimer_adjust(mips3.compare_int_timer, TIME_NEVER, cpu_getactivecpu(), 0);\n\t\treturn count;\n\t}", "public double DiskServiceTime()\r\n\t{\r\n\t\tdouble rand = 0.0;\r\n\t\tdouble sum = 0.0;\r\n\t\tfor(int i=0; i<10; i++)\r\n\t\t{\r\n\t\t\tsum += Math.random();\r\n\t\t}\r\n\t\tsum = (sum - 10.0/2.0) / Math.sqrt(10.0/12.0);\r\n\t\trand = 20.0 * sum - 100.0;\r\n\t\trand = Math.abs(rand);\r\n\t\treturn rand;\r\n\t}", "public void crunch(){\n cpuBurstTime--;\n rem--;\n }", "private static int benchmarkedMethod() {\n return 3;\n }", "static long GetCycleCount() {\n\t\treturn System.currentTimeMillis();\n\t}", "public double getSlowToFire();", "public void faster() {\n myTimer.setDelay((int) (myTimer.getDelay() * SPEED_FACTOR));\n }", "@Test\n\tpublic void testPerformance()\n\t{\n\t\tString\t\ttestName\t= logTestName();\n\n\t\tint\t\tcPass\t\t\t= 5;\n\t\tint\t\tiMax\t\t\t= 1000 * 1000;\n//\t\tint[]\tcThreadList\t\t= { 1, 2, 4, 6, 8 };\n\t\tint[]\tcThreadList\t\t= { 1, 2, 4 };\n\n\t\tStringGroup\t\t\t\tnameList\t\t\t= new StringGroup(testName);\n\t\tLockCounterFamily\t\tcounterFamily\t\t= new LockCounterFamily(nameList);\n\t\tMagicNamedCounter\t\tnamedCounter\t\t= new MagicNamedCounter(counterFamily);\n\t\tfor (int cThread : cThreadList)\n\t\t{\n\t\t\tmeasurePerformance(new SynchronizedCounter(),\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new AtomicCounter(),\t\t\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new MagicReadCounter(),\t\tcPass, iMax, cThread);\n\t\t\tmeasurePerformance(new PlainWriteCounter(),\t\tcPass, iMax / 20, cThread);\n\t\t\tmeasurePerformance(new MagicWriteCounter(),\tcPass, iMax, cThread);\n\n\t\t\tmeasurePerformance(namedCounter,\t\t\tcPass, iMax, cThread);\n\t\t}\n\t}", "@Override\r\n\tpublic void perSecond() {\n\r\n\t}", "public static void startTimeMeasure() {\n \tstartTime = System.nanoTime();\n }", "public abstract void twist(long ms);", "public static void throughput(BasicGraphService bgs) {\n \tRandom random = new Random();\n \tlong timer = System.currentTimeMillis();\n\t\tlong dif = 0l;\n\t\tint ops = 0;\n\t\twhile(dif < 1000) {\n\t\t\tint key = random.nextInt(maxRandInt);\n\t\t\tbgs.getConnections(key);\n\t\t\tdif = System.currentTimeMillis() - timer;\n\t\t\tops++;\n\t\t}\n\t\tdebug(debug, \"operations in 1 second: \" + ops);\n }", "private static void asymptoticAnalysis() {\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\tint[] array = getMeRandomArray(100*i);\n\t\t\t// Start timer here\n\t\t\tSystem.out.println(maximumSubarray(array));\n\t\t\t// End timer here\n\t\t\t// Print time here\n\t\t}\n\t\t\n\t}", "private int micRecTime(long freeSpace) {\n\n return (int) (freeSpace / 5898240);\n }", "void speedUp(int a);", "public static void main(String[] args) {\n double SumOfTimes = 0;\n for(int j=0; j<100; j++) {\n\n TimeCounter timer = new TimeCounter();\n timer.StartToCount();\n\n for (int i = 1; i <= 100000; i++) {\n if (i % 3 == 0) {\n System.out.print(\"fizz \");\n }\n if (i % 5 == 0) {\n System.out.print(\"buzz\");\n }\n if (i % 3 != 0 && i % 5 != 0) {\n System.out.print(i);\n }\n System.out.println();\n }\n\n timer.FinishToCount();\n SumOfTimes+=timer.GetCountedTime();\n\n }\n System.out.println(\"Average time = \"+SumOfTimes/100); // Average time = 0.318....... (in my processor)\n }", "@Test\n @Tag(\"slow\")\n public void testSTANDMPS() {\n CuteNetlibCase.doTest(\"STANDMPS.SIF\", \"1406.0175\", null, NumberContext.of(7, 4));\n }", "public void measure(){\n \tend = System.nanoTime(); \n \tlong elapsedTime = end - start;\n\n \t//convert to seconds \n \tseconds = (double)elapsedTime / 1000000000.0f;\n \tend =0; //歸零\n \tstart =0;\n }", "public static void main(String[] args) throws InterruptedException {\n int limit = args.length == 1 ? Integer.parseInt(args[0]) : 1000;\n int[] values = new int[20000000];\n values[500000] = -2;\n values[1000000] = -1;\n values[1500000] = -3;\n long[] times = new long[limit];\n for (int round = 0; round < limit; round++) {\n long start = System.currentTimeMillis();\n int smallest = min(values);\n long end = System.currentTimeMillis();\n times[round] = end - start;\n }\n System.out.println(\"Average time taken (ms): \" + Arrays.stream(times).sum() / limit);\n }", "public double getCpuTimeSec() {\n\treturn getCpuTime() / Math.pow(10, 9);\t\t\n}", "public static void main(String[] args) throws InterruptedException {\n LongCounter lc = LongCounter.newUnsynchronized(\"\", \"\");\r\n for (int i = 0; i < 1000000; i++) {\r\n lc.addAndGet(i);\r\n }\r\n Thread.sleep(400);\r\n long start = System.nanoTime();\r\n lc.set(0);\r\n for (int i = 0; i < 100000000; i++) {\r\n lc.addAndGet(i);\r\n }\r\n long finish = System.nanoTime();\r\n System.out.println(lc);\r\n System.out.println((finish - start) / 100000000.0);\r\n }", "private static void compute_performances(Server server) {\n System.out.println(\"E[N]: Average number of packets in the buffer/queue: \" + round((double) runningBufferSizeCount / totalTicks));\n System.out.println(\"E[T]: Average sojourn time: \" + round((double) server.getTotalPacketDelay() / totalPackets + (double) serviceTime)\n + \"/packet\");\n System.out.println(\"P(idle): The proportion of time the server is idle: \"\n + round((double) server.getIdleServerCount() / totalTicks * 100) + \"%\");\n if (maxBufferSize >= 0) {\n System.out.println(\"P(loss): The packet loss probability: \" + round((double) droppedPacketCount / totalPackets * 100) + \"%\");\n }\n }", "public static void basicTime(){\t\n\t\tint[] array;\n\t\t//Basic sort timings\n\t\tSystem.out.printf(\"%12s%10s%10s%10s%10s%10s%n\", \"Size\", \"Bubble\", \"Insertion\", \"Selection\", \"Quick\", \"Merge\");\n\t\t//1K\n\t\tarray = generateArray(1000, 0, 1000);\n\t\tallSorts(array);\n\t\t//5K\n\t\tarray = generateArray(5000, 0, 5000);\n\t\tallSorts(array);\n\t\t//10K\n\t\tarray = generateArray(10000, 0, 10000);\n\t\tallSorts(array);\n\t\t//50K\n\t\tarray = generateArray(50000, 0, 50000);\n\t\tallSorts(array);\n\t\t//100K\n\t\tSystem.out.printf(\"%12d%10s\",100000,\"N/A\");\n\t\tarray = generateArray(100000, 0, 100000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//500K\n\t\tSystem.out.printf(\"%12d%10s\",500000,\"N/A\");\n\t\tarray = generateArray(500000, 0, 500000);\n\t\tfourSorts(array);\n\t\tSystem.out.println();\n\t\t//1M\n\t\tSystem.out.printf(\"%12d%10s%10s%10s\",1000000,\"N/A\", \"N/A\", \"N/A\");\n\t\tarray = generateArray(1000000, 0, 1000000);\n\t\t//Performs quick sort\n\t\tStopWatch1 timer;\n\t\tint[] temp;\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.quickSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\t\n\t\t\n\t\t//Performs merge sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.mergeSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tSystem.out.println();\n\t\t//5M\n\t\tarray = generateArray(5000000, 0, 5000000);\n\t\tSystem.out.printf(\"%12d%10s%10s%10s\",5000000,\"N/A\", \"N/A\", \"N/A\");\n\t\t//Performs quick sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.quickSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\n\t\t//Performs merge sort\n\t\ttimer = new StopWatch1();\n\t\ttemp = copyArray(array);\n\t\ttimer.start();\n\t\tSort.mergeSort(temp);\n\t\ttimer.stop();\n\t\tSystem.out.printf(\"%10d\",timer.getElapsedTime());\n\t\tSystem.out.println();\n\t}", "@Benchmark\n @Fork(1)\n public void baseline(SleepyState s) throws InterruptedException {\n TimeUnit.MILLISECONDS.sleep(s.sleepTime);\n }", "public static void main(String... args){\n\n long millisecsStart = System.currentTimeMillis();\n\n LongStream.range(0, 50).forEach(i -> {\n System.out.println( i + \" -> \" + calc(i));\n });\n\n long millisecsEnd = System.currentTimeMillis();\n\n System.out.println(\"Total Time Millis = \" + (millisecsEnd - millisecsStart));\n }", "private static void speedup(String [] args){\n\t\t\n\t\tint warningCnt = 0;\n\t\t\n\t\tString applicationPath = convertApplication(args[2], null);\n\t\tConfMan baseConfigManager;\n\t\t\n\n\n\n\n\t\tbaseConfigManager = new ConfMan(args[1], applicationPath, false);\n\t\tConfMan[] cms;\n\t\t\n\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/cacheSpeedupSweep.json\",true);\n//\t\tSweepConfig sweepConfig = new SweepConfig(baseConfigManager, \"config/sweep/speedupSweep.json\",true);\n\n\t\tcms = sweepConfig.getConfManager();\n\t\tString[] configNames = sweepConfig.getSweepConfigurations();\n//\t\tString[] speedupIdentifier = sweepConfig.getSpeedupIdentifier();\n//\t\tboolean[] isShortTest = sweepConfig.getIsShortTest();\n\n\t\tTrace speedupTrace = new Trace(System.out, System.in, \"\", \"\");\n\t\tspeedupTrace.setPrefix(\"basic config\");\n\t\tbaseConfigManager.printConfig(speedupTrace);\n\n\t\tspeedupTrace.setPrefix(\"speedup\");\n\t\t\n//\t\tLinkedHashMap<String, SpeedupMeasurementResult> speedupResults = new LinkedHashMap<>();\n\t\tMeasurementResult[] measurementResults = new MeasurementResult[cms.length];\n\t\tLinkedHashMap<String, BaseLineStorage> baseLineStorage = new LinkedHashMap<String, BaseLineStorage>();\n\t\t\n//\t\tAmidarSimulationResult[] results = parallelRemoteSimulation(sweepConfig, \"trav\", 1099, 8, speedupTrace);\n\t\t\n\t\tdouble overhead = 0;\n\t\tint transmission = 0;\n\t\tint run = 0;\n\t\tdouble overheadCnt = 0;\n\t\t\n\n\t\t////////////////////////// SIMULATE //////////////////////////////////////////////\n\t\tfor(int i = 0; i<cms.length; i++){\n\t\t\t\n\t\t\t/////// FIRST SHORT /////////////////////////////\n\t\t\tConfMan conf = cms[i];\n\t\t\t\n\t\t\tboolean isShort = true;\n\t\t\tString appBaseName = conf.getApplicationPath();\n\t\t\tString [] appBasePath = appBaseName.split(\"/\");\n\t\t\t\n\t\t\t\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_short/\" + appBasePath[appBasePath.length-1] + \"_short.axt\");\n\n\t\t\tMeasurementResult speedupRes = measurementResults[i];\n\t\t\tif(speedupRes == null){\n\t\t\t\tspeedupRes = new MeasurementResult();\n\t\t\t\tmeasurementResults[i] = speedupRes;\n\t\t\t}\n\t\t\t\n\t\t\tString app = conf.getApplicationPath();\n\t\t\tint benchmarkScale = conf.getBenchmarkScale();\n\t\t\tapp = app+\"-benchMarkScale-\"+benchmarkScale;\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" SHORT\");\n\t\t\tif(!baseLineStorage.containsKey(app)){\n\t\t\t\tbaseLineStorage.put(app, new BaseLineStorage());\n\t\t\t}\n\t\t\t\n\t\t\tBaseLineStorage baseLine = baseLineStorage.get(app);\n \t\t\t\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tAmidarSimulationResult currentResult = null;\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t\t\n\t\t\t/////// THEN LONG /////////////////////////////\n\t\t\t\n\t\t\tisShort = false;\n\t\t\tconf.setApplication(\"../axt/\" + appBaseName+ \"_long/\" + appBasePath[appBasePath.length-1] + \"_long.axt\");\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tspeedupTrace.printTableHeader(\"Running: \" + configNames[i] + \" LONG\");\n\t\t\tif(!baseLine.isBaselineAvailable(isShort)){\n\t\t\t\tconf.setSynthesis(false);\n\t\t\t\tspeedupTrace.println(\"Running without synthesis...\");\n\t\t\t\tAmidarSimulationResult currentRes = run(conf, null, false);\n\t\t\t\tspeedupRes.addBaseline(currentRes, isShort);\n\t\t\t\tbaseLine.addBaseLine(isShort, currentRes);\n\t\t\t} else {\n\t\t\t\tspeedupRes.addBaseline(baseLine.getBaseLine(isShort), isShort);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tconf.setSynthesis(true);\n\t\t\tspeedupTrace.println(\"Running with synthesis...\");\n\t\t\ttry{\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t} catch(AmidarSimulatorException e ){\n\t\t\t\tspeedupTrace.println(\"WARNING: Aliasing speculation failed. Switching of speculation and repeat...\");\n\t\t\t\twarningCnt++;\n\t\t\t\tconf.getSynthesisConfig().put(\"ALIASING_SPECULATION\", AliasingSpeculation.OFF);\n\t\t\t\tcurrentResult = run(conf, null, false);\n\t\t\t\t\n\t\t\t}\n\t\t\t\n//\t\t\tif(isShort){\n//\t\t\t\tHashMap<String, Integer> stateCNT = currentResult.getCgraStateCount();\n//\t\t\t\tdouble transmissionCnt = stateCNT.get(\"SEND\") + stateCNT.get(\"REC\") +stateCNT.get(\"WAIT\");\n//\t\t\t\tdouble runCnt = stateCNT.get(\"RUN\");\n//\t\t\t\t\n//\t\t\t\tdouble overheadCurrent = transmissionCnt/(transmissionCnt + runCnt);\n//\t\t\t\t\n//\t\t\t\toverhead += overheadCurrent;\n//\t\t\t\ttransmission +=transmissionCnt;\n//\t\t\t\trun += runCnt;\n//\t\t\t\toverheadCnt++;\n//\t\t\t}\n\t\t\t\n\t\t\tspeedupRes.addResults(currentResult, isShort);\n\t\t}\n\t\t////////////////////////SIMULATE END//////////////////////////////////////////////\n\n\t\tspeedupTrace.printTableHeader(\"Speedup\");\n\t\t\n\t\tDecimalFormatSymbols symbols = new DecimalFormatSymbols();\n\t\tsymbols.setGroupingSeparator(',');\n\t\tsymbols.setDecimalSeparator('.');\n\t\tDecimalFormat formater = new DecimalFormat(\"#0.000\", symbols);\n\t\t\n\t\t\n\t\t/// GATHER INFORMATION //////////////////////////////////////////\n\t\t\n\t\tdouble[] speedupList = new double[cms.length];\n\t\tdouble[] communicationOverhead = new double[cms.length];\n\t\tdouble[] dmaOverhead = new double[cms.length];\n\t\tdouble[] l1usage = new double[cms.length];\n\t\tdouble[] l2usage = new double[cms.length];\n\t\tdouble[] averageMemTime = new double[cms.length];\n\t\t\n\t\tdouble[][] blockTimesPrefetch = new double[TaskType.values().length][cms.length];\n\t\tdouble[][] blockTimesRegular = new double[TaskType.values().length][cms.length];\n\t\t\n\t\tint[] nrOfContexts = new int[cms.length];\n\t\tint[] nrOfL1Prefetches = new int[cms.length];\n\t\tint[] nrOfL2Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL1Prefetches = new int[cms.length];\n\t\tint[] nrOfUsedL2Prefetches = new int[cms.length];\n\t\t\n\t\tint[] nrOfHandledPrefetchRequests = new int[cms.length];\n\t\tint[] nrOfHandledPrefetchRequestsAlreadyAvailable = new int[cms.length];\n\t\t\n\t\tint[] cachelineFills = new int[cms.length];\n\t\tlong[] synthTime = new long[cms.length];\n\t\t\n\t\tfor(int i = 0; i < measurementResults.length; i++){\n\t\t\tString res = \"Speedup of \" + configNames[i] + \"\\t\";\n\t\t\tdouble speedup = measurementResults[i].getSpeedup();\n\t\t\tspeedupList[i] = speedup;\n\t\t\tres = res + \": \" + formater.format(speedup);\n\t\t\tspeedupTrace.println(res);\n\t\t\t\n\t\t\tcommunicationOverhead[i] = measurementResults[i].getCommunicationOverhead();\n\t\t\tdmaOverhead[i] = measurementResults[i].getDMAOverhead();\n\t\t\tl1usage[i]= measurementResults[i].getL1Usage();\n\t\t\tl2usage[i]= measurementResults[i].getL2Usage();\n\t\t\taverageMemTime[i] = measurementResults[i].getAverageMemoryAccessTime();\n\t\t\tfor(TaskType tt: TaskType.values()){\n\t\t\t\tblockTimesPrefetch[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Prefetch, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Pref\" +tt + \":\\t\" +blockTimesPrefetch[tt.ordinal()][i]);\n\t\t\t\tblockTimesRegular[tt.ordinal()][i] = measurementResults[i].getBlockTimesInPercent(RequestType.Regular, tt);\n//\t\t\t\tSystem.out.println(\"\\tBlocktime Regu\" +tt + \":\\t\" +blockTimesRegular[tt.ordinal()][i]);\n \t\t\t}\n\t\t\tnrOfContexts[i] = measurementResults[i].getNrOfContexts();\n\t\t\tnrOfL1Prefetches[i] = measurementResults[i].getNrOfL1Prefetches();\n\t\t\tnrOfUsedL1Prefetches[i] = measurementResults[i].getNrOfUsedL1Prefetches();\n\t\t\tnrOfHandledPrefetchRequests[i] = measurementResults[i].getNrOfHandledPrefetchRequests();\n\t\t\tnrOfHandledPrefetchRequestsAlreadyAvailable[i] = measurementResults[i].getNrOfHandledPrefetchRequestsAlreadyAvailable();\n\t\t\tcachelineFills[i] = measurementResults[i].getCachelineFills();\n\t\t\tsynthTime[i] = measurementResults[i].getSynthTime();\n\t\t}\n\t\t///// PLOT INFORMATION //////////////////////////////////////////////\n\t\tSweepResultPlotter plotter = new SweepResultPlotter();\n//\t\tplotter.configurePlotter( \"UNROLL\", \"\", true);\n\t\tLinkedHashMap<String, LinkedHashSet<String>> sweepInfo = sweepConfig.getSweepInfo();\n\t\t\n\t\tString path = \"log/sweep\"+new Date().toString();\n\t\tplotter.setPath(path);\n\t\tplotter.saveSweepInfo(sweepInfo);\n\t\t\n\t\tplotter.saveResults(speedupList,\"speedup\");\n\t\tplotter.saveResults(communicationOverhead, \"communicationOverhead\");\n\t\tplotter.saveResults(dmaOverhead, \"dmaOverhead\");\n\t\tplotter.saveResults(l1usage,\"l1usage\");\n\t\tplotter.saveResults(l2usage, \"l2usage\");\n\t\tplotter.saveResults(averageMemTime, \"memTime\");\n\t\tplotter.saveResults(nrOfContexts, \"contexts\");\n\t\tplotter.saveResults(nrOfL1Prefetches, \"l1prefetches\");\n\t\tplotter.saveResults(nrOfUsedL1Prefetches, \"usedL1prefetches\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequests, \"handledPrefetchRequests\");\n\t\tplotter.saveResults(nrOfHandledPrefetchRequestsAlreadyAvailable, \"handledPrefetchRequestsAvail\");\n\t\tplotter.saveResults(cachelineFills, \"cachelineFills\");\n\t\tplotter.saveResults(synthTime, \"Synthtime\");\n\t\t\n\t\t\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\t\n//\t\t}\n\t\t\n\t\t///// PRINT ON CONSOLE ///////////////////////////////\n\t\tspeedupTrace.printTableHeader(\"Average Speedup\");\n\t\tplotter.plot(sweepInfo, speedupList, speedupTrace,\"log/\", \"\");\n\t\t\n\t\tif(warningCnt > 1){\n\t\t\tspeedupTrace.println(warningCnt + \" Warnings\");\n\t\t} else if(warningCnt == 1){\n\t\t\tspeedupTrace.println(\"1 Warning\");\n\t\t}\n\t\t\n//\t\tspeedupTrace.println(\"CGRA transmission overhead in Percent: \" + formater.format(overhead*100/overheadCnt) + \" Ticks Running: \" + (int)(run/overheadCnt+0.5) + \" Ticks Transmitting: \" + (int)(transmission/overheadCnt+0.5));\n\t\t\n\t\t\n//\t\tspeedupTrace.println(ObjectHistory.indep*100/(ObjectHistory.indep+ObjectHistory.dep)+\"% of all memory accesses are independant\");\n//\n//\t\t\n\t\tspeedupTrace.printTableHeader(\"Average Communication Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), communicationOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Average DMA Overhead\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), dmaOverhead, speedupTrace, null, \"\");\n\t\tspeedupTrace.printTableHeader(\"Memtime\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] cffd = new double[cachelineFills.length];\n\t\tfor(int i = 0; i < cffd.length; i++){\n\t\t\tcffd[i] = cachelineFills[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Cacheline fills\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), cffd, speedupTrace, null, \"\");\n\t\t\n\t\tdouble[] stdd = new double[synthTime.length];\n\t\tfor(int i = 0; i < stdd.length; i++){\n\t\t\tstdd[i] = synthTime[i];\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tspeedupTrace.printTableHeader(\"Synth time\");\n\t\tplotter.plot(sweepConfig.getSweepInfo(), stdd, speedupTrace, null, \"\");\n\t\t\n//\t\t\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l1usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), l2usage, speedupTrace, null, \"\");\n//\t\tplotter.plot(sweepConfig.getSweepInfo(), averageMemTime, speedupTrace, null, \"\");\n\t\t\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Prefetch\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesPrefetch[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n//\t\tspeedupTrace.printTableHeader(\"CGRA blocked by Regular Access\");\n//\t\tfor(TaskType tt: TaskType.values()){\n//\t\t\tplotter.plot(sweepConfig.getSweepInfo(), blockTimesRegular[tt.ordinal()], speedupTrace,null, tt.toString());\n//\t\t}\n\t\n\t}", "@DISPID(71)\r\n\t// = 0x47. The runtime will prefer the VTID if present\r\n\t@VTID(69)\r\n\tint averageCPUTime_Milliseconds();", "public float getSpeed(List<Integer> collectTime);", "public static void speedup(){\n\t\tif(bossair.periodairinit > Framework.nanosecond){\n\t\t\t\tbossair.periodair-=Framework.nanosecond/18; \n\t\t\t\tbossair.xmoving-=0.03; \n\t\t}\n\t\t\t\n\t}", "public static void main(String[] args) {\n\n\n BasicProducer basicProducer = new BasicProducer(\"3-part-topic\");\n long t0 = System.currentTimeMillis();\n basicProducer.postSynchMessage(\"Synched 8 Message\");\n long t1 = System.currentTimeMillis();\n System.out.println(\"time taken basicProducer.postSynchMessage=\" + (t1-t0)); // 192 // 193\n\n long t2 = System.currentTimeMillis();\n basicProducer.postAsynchMessage(\"async 8 Message\");\n long t3 = System.currentTimeMillis();\n System.out.println(\"time taken basicProducer.postSynchMessage=\" + (t3-t2)); //14\n\n\n }", "@Override\r\n\tpublic float getSimilarityTimingEstimated(final String string1, final String string2) {\r\n //timed millisecond times with string lengths from 1 + 50 each increment\r\n //0\t5.97\t11.94\t27.38\t50.75\t73\t109.5\t148\t195.5\t250\t297\t375\t437\t500\t594\t672\t781\t875\t969\t1079\t1218\t1360\t1469\t1609\t1750\t1906\t2063\t2203\t2375\t2563\t2734\t2906\t3110\t3312\t3500\t3688\t3906\t4141\t4375\t4594\t4844\t5094\t5328\t5609\t5860\t6156\t6422\t6688\t6984\t7235\t7547\t7859\t8157\t8500\t8813\t9172\t9484\t9766\t10125\t10516\r\n final float str1Tokens = this.tokeniser.tokenizeToArrayList(string1).size();\r\n final float str2Tokens = this.tokeniser.tokenizeToArrayList(string2).size();\r\n return (((str1Tokens + str2Tokens) * str1Tokens) + ((str1Tokens + str2Tokens) * str2Tokens)) * this.ESTIMATEDTIMINGCONST;\r\n }", "Integer networkTickRate();", "public long elapsedMillis() {\n/* 162 */ return elapsedTime(TimeUnit.MILLISECONDS);\n/* */ }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "private long getSampleTime() {\n return System.currentTimeMillis();\n\n }", "private static double pythonTime() {\n return System.currentTimeMillis() / 1000;\n }", "public static void main(String[] args) throws Exception {\n long start = System.nanoTime();\n TimeUnit.SECONDS.sleep(1);\n long end = System.nanoTime();\n System.out.println(String.format(\"start: %d\", start));\n System.out.println(String.format(\"end: %d\", end));\n System.out.println(String.format(\"span: %d\", end - start));\n }", "public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }", "public static double doCPU_usage() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (processingTimeTotal / totalProgramRunTime) * 100;\n }", "public float getFrameRate() { return 1000f/_interval; }", "public int minimumWaitingTime(int[] queries) {\n\t\tArrays.sort(queries);\n\t\t\n\t\tint answer = 0;\n\t\tfor(int i=0; i<queries.length-1; i++){\n\t\t\tint sum = queries[i]*(queries.length-1-i);\n\t\t\tanswer += sum;\n\t\t}\n return answer;\n }", "private double getReadTime(int wordCount) {\n return wordCount / 130.0;\n }", "@Test\n\tvoid testCost() {\n\t\tint nbCores = 16;\n\t\tlong duration = 2000;\n\t\tDate requestDate = new Date(\"01/01/2000\");\n\t\tJob j1 = new Job(nbCores,requestDate,duration,mediumQ);//16 cores less than 1h\n\t\tJob j2 = new Job(nbCores*2,requestDate,duration,mediumQ);//32 cores less than 1h\n\t\tJob j3 = new Job(nbCores*2+1,requestDate,duration,mediumQ);//33 cores less than 1h\n\t\tJob j4 = new Job(nbCores,requestDate,duration*2,mediumQ);//16 cores more than 1h\n\t\tJob j5 = new Job(nbCores*2+1,requestDate,duration*2,mediumQ);//33 cores more than 1h\n\t\tassertEquals(j1.getCost(),0.05f);\n\t\tassertEquals(j2.getCost(),0.05f);\n\t\tassertEquals(j3.getCost(),0.1f);\n\t\tassertEquals(j4.getCost(),0.1f);\n\t\tassertEquals(j5.getCost(),0.2f);\n\t}", "private void m128168k() {\n C42962b.f111525a.mo104671a(\"upload_page_duration\", C22984d.m75611a().mo59971a(\"first_selection_duration\", System.currentTimeMillis() - this.f104209S).mo59971a(\"page_stay_duration\", System.currentTimeMillis() - this.f104208R).f60753a);\n }", "@Ignore\n @Test\n public void testPerformanceFuserOnly() throws JAXBException, ClassNotFoundException, Exception\n {\n int num_messages = 20000;\n int num_samples = 10;\n \n long total = 0;\n long min = Long.MAX_VALUE;\n long max = Long.MIN_VALUE;\n \n for( int i = 0; i < num_samples; i++ )\n {\n long proc_time = sendMatmFlightMsgs( num_messages );\n total = total + proc_time;\n min = Math.min( min, proc_time );\n max = Math.max( max, proc_time );\n }\n \n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" );\n log.info( \"Ran \" + num_samples + \" samples. Avg Time = \" + ( total / num_samples ) + \n \", Min Time = \" + min + \", Max Time = \" + max );\n log.info( \"!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\" ); \n }", "@Test\n public void testTimelyTest() {\n }", "public long getTimeTaken();", "private boolean updateCPUTime(long[] data){\n\t\tif(data == null || data.length < 7)\n\t\t\treturn false;\n\n\t\tlong usr = data[0] + data[1];\n\t\tlong sys = data[2] + data[5] + data[6];\n\t\t\n\t\tmRelCPUTime = (usr - mBaseUserTime) + (sys - mBaseSysTime);\n\t\tmBaseUserTime = usr;\n\t\tmBaseSysTime = sys;\t\t\t\t\n\t\t\n\t\tdouble activeTime = 1.0 * mRelCPUTime / coreNumber;\n\t\tcpuUtilization = 100.0 * activeTime / Math.max(getSpeedStepTotalTime(), activeTime);\n\t\tlastData = java.util.Arrays.copyOf(data, data.length);\n\t\t\n\t\treturn true;\n\t}", "public abstract float getSecondsPerUpdate();", "public static void main(String[] args) \n\t{\n\t \n\t\tlong startTimer = System.currentTimeMillis();\n\t\t//mrethod 1\n\t\tint res=Utility.binarySearchWord();\n\t\tif(res==-1)\n\t\t\tSystem.out.println(\"your word not found\");\n\t\t else\n\t\t System.out.println(\"your word found at index:\"+res);\n\t\tlong first=System.currentTimeMillis();\n\t\tSystem.out.println((first-startTimer)/1000+\"seconds\");\n\t \n\t\t//method 2\n\t\tint res1=Utility.binarySearchForInteger();\n\t\tif(res1==-1)\n\t\t\tSystem.out.println(\"your no. not found\");\n\t\t else\n\t\t System.out.println(\"your no.found at index:\"+res1);\n\t\tlong second=System.currentTimeMillis();\n\t\tSystem.out.println((second-first)/1000+\"seconds\");\n\t\t\n\t\t//method 3\n\t\tint res3[]=Utility.bubbleSortForIntegers();\n\t\tfor(int i=0;i<res3.length;i++)\n\t\t\tSystem.out.println(res3[i]);\n\t\tlong third=System.currentTimeMillis();\n\t\tSystem.out.println((third-second)/1000+\"seconds\");\n\t\t\n\t\t//method 4\n\t\tString res4[]=Utility.bubbleSortForStrings();\n\t\tfor(int i=0;i<res4.length;i++)\n\t\t\tSystem.out.println(res4[i]);\n\t\tlong fourth=System.currentTimeMillis();\n\t\tSystem.out.println((fourth-third)/1000+\"seconds\");\n\t\t\n\t\t//method 5\n\t\tint res5[]=Utility.insertionSortForInteger();\n\t\tfor(int i=0;i<res5.length;i++)\n\t\t\tSystem.out.println(res5[i]);\n\t\tlong fifth=System.currentTimeMillis();\n\t\tSystem.out.println((fifth-fourth)/1000+\"seconds\");\n\t\t\n\t\t//method 6\n\t\tString res6[]=Utility.insertionSortForString();\n\t\tfor(int i=0;i<res6.length;i++)\n\t\t\tSystem.out.println(res6[i]);\n\t\tlong sixth=System.currentTimeMillis();\n\t\tSystem.out.println((sixth-fifth)/1000+\"seconds\");\n\t}", "private long getPTSUs() {\n long result = System.nanoTime() / 1000L;\n if (result < prevOutputPTSUs)\n result = (prevOutputPTSUs - result) + result;\n return result;\n }", "@Test\n @Tag(\"slow\")\n public void testFIT1D() {\n CuteNetlibCase.doTest(\"FIT1D.SIF\", \"-9146.378092421019\", \"80453.99999999999\", NumberContext.of(7, 4));\n }", "@DISPID(66)\r\n\t// = 0x42. The runtime will prefer the VTID if present\r\n\t@VTID(64)\r\n\tint averageRunTime_Milliseconds();", "public static int sleep(final long ms) {\n if (ms <= 0) {\n Thread.yield();\n return 0;\n }\n final long s = System.nanoTime();\n try {\n Thread.sleep((long) (ms * Random.nextDouble(VARIANCE[0], VARIANCE[1])));\n } catch (final InterruptedException ignored) {\n }\n return (int) ((System.nanoTime() - s) / 1000000L);\n }", "@DISPID(55)\r\n\t// = 0x37. The runtime will prefer the VTID if present\r\n\t@VTID(53)\r\n\tint actualCPUTime_Seconds();", "public static void main(String[] args){\r\n\t\tputSPECmeasurement(System.nanoTime(), 100, 1000, \"nix1\", 5000);\r\n\t\tputSPECmeasurement(System.nanoTime(), 200, 2000, \"nix2\", 10000);\r\n\t}", "@Test\n public void test_connection_time() throws Exception\n {\n long nano = nanoTime();\n\n MosServiceHttp service = new MosServiceHttp();\n\n // todo time consuming test log\n System.out.println(\"operation \" + \"login\" + \" cost \" + (nanoTime() - nano) + \" ns\");\n\n for (int i = 0; i < 10; i++)\n {\n // todo time consuming test\n nano = nanoTime();\n\n service.get(new DN(\"/Ems/1\"));\n\n // todo time consuming test log\n System.out.println(\"operation \" + \"get\" + \" cost \" + (nanoTime() - nano) + \" ns\");\n }\n }", "double getThroughput();", "public int getSpeed() {\r\n\t\t\tlong elapsedTime = System.currentTimeMillis() - tStartTime;\r\n\t\t\t\r\n\t\t\t// Refresh cache every 5 secs & prevent fake speed when resume\r\n\t\t\tif (elapsedTime > 5000) {\r\n\t\t\t\tspeedRefresh();\r\n\t\t\t\treturn 0;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn Math.round(1000f * tDownloaded / elapsedTime);\r\n\t\t}", "int getChronicDelayTime();", "private int calcOrderDelay()\r\n {\r\n int frameDelay = 0;\r\n if (totalSecondsElapsed >= 120)\r\n {\r\n frameDelay = 2;\r\n }\r\n else if (totalSecondsElapsed >= 90)\r\n {\r\n frameDelay = 3;\r\n }\r\n else if (totalSecondsElapsed >= 60)\r\n {\r\n frameDelay = 4;\r\n }\r\n else if (totalSecondsElapsed >= 45)\r\n {\r\n frameDelay = 5;\r\n }\r\n else if (totalSecondsElapsed >= 30)\r\n {\r\n frameDelay = 6;\r\n }\r\n else if (totalSecondsElapsed >= 15)\r\n {\r\n frameDelay = 7;\r\n }\r\n else if (totalSecondsElapsed >= 0)\r\n {\r\n frameDelay = 8;\r\n }\r\n \r\n return frameDelay * 60;\r\n }", "long toMillisecond(long timelineValue);", "public void testTime()\n {\n SudokuTimer test = new SudokuTimer();\n\n mTimer.start();\n test.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertTrue(mTimer.toString().equals(test.toString()));\n\n mTimer.stop();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n assertFalse(mTimer.toString().equals(test.toString()));\n\n test.stop();\n mTimer.start();\n\n for (int i = 0; i < 1000000000; i++)\n {\n }\n\n mTimer.stop();\n\n //checks to the nearest second\n assertEquals(mTimer.getElapsedTime() / 1000,\n test.getElapsedTime() / 1000);\n }", "@Test\n void shouldIncrementCounter100kTimes() throws InterruptedException {\n Collection<Thread> threads = new ArrayList<>();\n for (int threadIdx = 0; threadIdx < 20; threadIdx++) {\n Thread thread = new Thread(() -> {\n for (int i = 0; i < 100_000 / 20; i++) {\n counter.increment();\n }\n });\n thread.start();\n threads.add(thread);\n }\n for (Thread thread : threads) {\n thread.join();\n }\n\n // then: counter value should be 100k\n assertEquals(100_000, counter.total(),\n \"Counter wasn't incremented expected number of times\");\n }", "@Test\n @Tag(\"slow\")\n public void testMODSZK1() {\n CuteNetlibCase.doTest(\"MODSZK1.SIF\", \"320.6197293824883\", null, NumberContext.of(7, 4));\n }", "@Override\n protected float calculateSpeedPerPixel\n (DisplayMetrics displayMetrics) {\n return MILLISECONDS_PER_INCH/displayMetrics.densityDpi;\n }", "public static void main(String[] args) {\n \tfinal long SYSTEM_RESOLUTION = 393;\n \tlong startTime, endTime;\n \t\n startTime = System.nanoTime(); \t\t\t\t\t// 시작시간\n // 빈 작업\n while ((endTime = System.nanoTime()) == startTime);\t\t// 끝시간\n \n long time = endTime - startTime - SYSTEM_RESOLUTION;\t// 시간 계산\n System.out.println(\"Execition Time = \" + time + \" ns\");\n }", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "@Test\n @Tag(\"slow\")\n public void testSTANDGUB() {\n CuteNetlibCase.doTest(\"STANDGUB.SIF\", \"1257.6995\", null, NumberContext.of(7, 4));\n }", "public static double doThroughPut() {\n double totalProgramRunTime = endProgramTime - startProgramTime;\n return (count / totalProgramRunTime) * 100000.0;\n\n }", "private float getRefreshRate() {\n return 1;\n }", "@Test\n public void largeMessageVolumeTest_buffered() {\n int batches = 15;\n int batchSize = 5_000;\n List<Long> sendReceiveTimings = new ArrayList<>();\n List<Long> sendTimings = new ArrayList<>();\n for(int i = 0; i< batches; i++) {\n List<String> messages = messages(batchSize, 100);\n long startTime = System.currentTimeMillis();\n for (String message : messages) {\n publisher.publishBuffered(topic, message.getBytes());\n }\n publisher.flushBatchers();\n sendTimings.add(System.currentTimeMillis()-startTime);\n List<NSQMessage> nsqMessages = handler1.drainMessagesOrTimeOut(batchSize);\n sendReceiveTimings.add(System.currentTimeMillis()-startTime);\n\n validateReceivedAllMessages(messages,nsqMessages,true);\n LOGGER.info(\"published batch {} of {}\",i,batches);\n }\n\n double sendAverageMillis = sendTimings.stream().mapToLong(e -> e).average().getAsDouble();\n double throughput = batchSize/sendAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, sendAverageMillis, throughput);\n\n double totalAverageMillis = sendReceiveTimings.stream().mapToLong(e -> e).average().getAsDouble();\n throughput = batchSize/totalAverageMillis*1000;\n LOGGER.info(\"Average send time for {} messages: {} millis, {} op/s\", batchSize, totalAverageMillis, throughput);\n }", "public int getCycles();", "@Test\n public void currentProgressTest() {\n\n smp.checkAndFillGaps();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n smp.increaseCurrentProgress();\n\n assertEquals(5, smp.getCurrentProgress());\n assertEquals(30, smp.getUnitsTotal() - smp.getCurrentProgress());\n assertEquals(Float.valueOf(30), smp.getEntriesCurrentPace().lastEntry().getValue());\n assertTrue(smp.getEntriesCurrentPace().size() > 0);\n assertFalse(smp.isFinished());\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MMM-YY\", Locale.getDefault());\n\n for (Map.Entry<Date, Float> entry : smp.getEntriesCurrentPace().entrySet()) {\n System.out.println(dateFormat.format(entry.getKey()) + \" : \" + entry.getValue());\n }\n\n\n for (int i = 0; i < 30; i++) {\n smp.increaseCurrentProgress();\n }\n\n assertTrue(smp.isFinished());\n\n smp.increaseCurrentProgress();\n\n assertEquals(Float.valueOf(0), smp.getEntriesCurrentPace().lastEntry().getValue());\n\n }", "@Test\n public void orgApacheFelixEventadminAsyncToSyncThreadRatioTest() {\n // TODO: test orgApacheFelixEventadminAsyncToSyncThreadRatio\n }", "public static void concurrency() {\n List<String> words = new ArrayList<>();\n for (int i = 0; i < 500000; i++)\n words.add(UUID.randomUUID().toString());\n\n //Groups the list into a map of strings by length in serial\n long t2s = System.nanoTime();\n Map<Integer, List<String>> a = words.stream()\n .collect(Collectors.groupingBy(String::length));\n long t2d = System.nanoTime() - t2s;\n\n //Groups the list into a map of strings by length in parallel\n long t1s = System.nanoTime();\n ConcurrentMap<Integer, List<String>> b = words.parallelStream()\n .collect(Collectors.groupingByConcurrent(String::length));\n long t1d = System.nanoTime() - t1s;\n\n System.out.println(\"Collect Serial time : \" + t2d);\n System.out.println(\"Collect Parallel time : \" + t1d);\n }", "protected static double getFPGATime() {\n return (System.currentTimeMillis() - startTime) / 1000.0;\n }", "private static float calculateStepRate(int stepCount) {\n\n return (float) stepCount / (float) secsPerMinute;\n\n }" ]
[ "0.61591995", "0.6092463", "0.608034", "0.60685766", "0.6046011", "0.6002438", "0.5990797", "0.5987445", "0.5982243", "0.59491515", "0.5914935", "0.5910716", "0.5910716", "0.589107", "0.58362985", "0.5814802", "0.5769604", "0.5711686", "0.56894773", "0.56501037", "0.56469345", "0.5586611", "0.5571207", "0.55697316", "0.55679476", "0.55586237", "0.55562025", "0.55535674", "0.5539985", "0.5536189", "0.55361575", "0.55319136", "0.5513682", "0.55009526", "0.5494881", "0.5468719", "0.5464209", "0.54579854", "0.54564744", "0.54414827", "0.54407656", "0.54275936", "0.5426926", "0.5425866", "0.5424974", "0.5423986", "0.5416706", "0.5415185", "0.541409", "0.54086185", "0.5405834", "0.53991205", "0.5397111", "0.53943413", "0.53896236", "0.5387897", "0.5385619", "0.53812754", "0.537445", "0.5366917", "0.5361532", "0.536103", "0.5357326", "0.53525954", "0.5349221", "0.53477925", "0.534367", "0.5342274", "0.53404784", "0.53321487", "0.5331354", "0.5331249", "0.53267133", "0.5326296", "0.53185964", "0.53179085", "0.53148544", "0.5309375", "0.52982074", "0.52947474", "0.5284222", "0.5283676", "0.5281496", "0.52809316", "0.5271214", "0.5270354", "0.52649903", "0.52578354", "0.52556205", "0.52515984", "0.52501255", "0.52468246", "0.52434903", "0.52421", "0.52418154", "0.5238794", "0.5228912", "0.5227986", "0.5223526", "0.5219728", "0.52168196" ]
0.0
-1
Shoot will shoot a projectile constructed in this class at the direction the player is faced
public boolean shoot() { if (!isReloading && System.currentTimeMillis() - previousShotTime > shootInterval * 1000 && ammoRemaining > 0) { previousShotTime = System.currentTimeMillis(); ammoRemaining--; audioPlayer.setSpatial(holder); audioPlayer.playOnce(); // score -= 50; Vec2 angle = Vec2 .Vector2FromAngleInDegrees(transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)); Vec2 spawnPosition = transform.getWorldPosition(); Projectile p = new Projectile(spawnPosition, Vec2 .Vector2FromAngleInDegrees( transform.getGlobalRotation().getAngleInDegrees() - 90 + (Math.random() * spread * 2 - spread)), new Sprite(projectilePath)); p.setSpeed(speed); p.setSource(holder); p.getCollider().addInteractionLayer("Block"); p.getCollider().addInteractionLayer("Hittable"); p.getCollider().addInteractionLayer("Walk"); p.setOnCollisionListener(other -> { if (other.getGameObject() instanceof Player && other.getGameObject() != holder) { Player player = (Player) other.getGameObject(); player.hit(alteredDmg); if (GameEngine.DEBUG) { System.out.println("Bullet Hit " + other.getName()); } p.destroy(); // player.destroy(); } else if (other.getGameObject() instanceof Enemy) { Enemy e = ((Enemy) other.getGameObject()); e.hit(alteredDmg); if (!e.isAlive()) { // CHeck if enemy survived ((Player) p.getSource()).killedEnemy(); } p.destroy(); } else if (other.getTag() == "Block") { p.destroy(); } }); return true; } else if(ammoRemaining <= 0){ reloadWeapon(); return false; }else return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "void shoot();", "public void shoot(float direction) {\n\t\tif(pause != 0) return;\n\t\tbullets.add(new Bullet(player.getPosition(),direction));\n\t\tpause = cooldown;\n\t}", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "private void shoot() {\n }", "private void shoot() {\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "public void fireProjectile(String direction){\r\n\t\tif(name.equals(\"Robot\"))AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 5, \"laser\"));\r\n\t\telse AdventureManager.currentRoom.enemyProjectiles.add(new Projectile(x,y, direction, 3, \"fireball\"));\r\n\t}", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public M_Bullet shoot() {\n Point leftCorner = this.getLocation();\n // get the center of the character\n int x = leftCorner.x;\n int y = leftCorner.y;\n Point dim = this.getDimensions();\n int h = dim.y;\n int w = dim.x;\n h = h / 2;\n w = w / 2;\n Point center = new Point(x + w, y + h);\n // get the velocity for the bullet\n Point vel = new Point(this.getDirection() * 3, 0);\n // set the enemy's shot cooldown to its shot interval.\n setShotCooldown(getShotInterval());\n // return the new bullet\n return new M_Bullet(center, this.getStrength(), vel, true);\n }", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "public void shoot() {\n\n //DOWN\n if (moveDown && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveDown && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n } else if (moveDown && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveDown && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //UP\n else if (moveUp && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (5 + this.getySpeed() / 2) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), (-5 + this.getySpeed()) * this.getBulletSpeedMulti());\n\n } else if (moveUp && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n } else if (moveUp && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), (this.getySpeed()) * this.getBulletSpeedMulti());\n }\n\n //LEFT \n else if (moveLeft && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveLeft && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n }\n\n //RIGHT\n else if (moveRight && shootDown) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootUp) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (this.getxSpeed()) * this.getBulletSpeedMulti(), (-5) * this.getBulletSpeedMulti());\n } else if (moveRight && shootLeft) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (-5 + this.getxSpeed() / 2) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } else if (moveRight && shootRight) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), (5 + this.getxSpeed()) * this.getBulletSpeedMulti(), (0) * this.getBulletSpeedMulti());\n } //STANDING STILL\n \n \n if (shootDown && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), 5 * this.getBulletSpeedMulti());\n } else if (shootUp && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 0 * this.getBulletSpeedMulti(), -5 * this.getBulletSpeedMulti());\n\n } else if (shootLeft && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), -5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n } else if (shootRight && !moving) {\n bController.addBullet(\"playerbullet.png\",this.getxPos(), this.getyPos(), this.getRadius(), 5 * this.getBulletSpeedMulti(), 0 * this.getBulletSpeedMulti());\n\n }\n }", "public void Attack(){\n float randomx = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/10;\n float randomy = (float)(Math.random()-0.5)*attackRange*GameView.instance.cameraSize/5;\n Vector2 target = GameView.instance.player.aimFor();\n float dx = target.x-creationPoint.x;\n float dy =target.y-creationPoint.y;\n float l= (float)Math.sqrt(dx*dx+dy*dy);\n dx = dx/l-((float)Math.random()-0.5f)/2;\n dy = dy/l-(float)(Math.random())/10;\n ProjectilePool.instance.shootArrow(creationPoint.x, creationPoint.y, 1, dx, dy, 3);\n }", "boolean shootArrow(Direction dir, int power) throws\r\n PlayerKillsWumpusException, RecoverableException, PlayerKilledException;", "public void avatarShoot()\r\n\t{\r\n\t\tBullet avatarPew = avatar.shoot();\r\n\t\tif (avatarPew!= null)\r\n\t\t{\r\n\t\t\tbullets.add(avatarPew);\r\n\t\t}\r\n\t}", "public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }", "protected void execute() {\n timeRunning = timeSinceInitialized();\n if (!Robot.lifter2.getunder15()) {\n Robot.shooter.set(190);\n System.out.println(\"In position: \"+inPosition.get());\n } else {\n System.out.println(\"under angle don't shoot!\");\n }\n \n }", "@Override\n\tpublic void shoot() {\n\t\tthis.fired = true;\n\t\tghost.shot=true;\n\t}", "private void shoot(GObject bottom, GObject bottomLeft, GObject topRight, GObject bottomRight, GObject topLeft) {\r\n\t\t//if(bullet == null && bottom != null && bottomLeft == null && topRight == null && bottomRight == null && topLeft == null) {\r\n\t\t\t{bullet = new GRect(BULLET_WIDTH, BULLET_HEIGHT);\r\n\t\t\tbullet.setFilled(true);\r\n\t\t\tbullet.setColor(Color.green);\r\n\t\t\tif(facingEast == true) {\r\n\t\t\t\tbulletVelocity = BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() + player.getWidth() + 1, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t} else {\r\n\t\t\t\tbulletVelocity = -BULLET_SPEED;\r\n\t\t\t\tadd(bullet, player.getX() - BULLET_WIDTH, player.getY() + player.getHeight() * 3/5.0);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void shoot(Graphics g) {\r\n\t\tlevelManager.shoot(g);\r\n\t}", "public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }", "public static void shoot(double speed)\n\t{\n\t\trunIntake(0, 0, true, speed, speed, false);\n\t}", "public void fire (double angle) {\n\t\tnew Projectile(sim, new Coord.Unique(model().position()), model().speedVector(), model.ownerId(), angle, model().type.firingRange);\n\t}", "public void shoot(){\r\n \tgame.pending.add(new Bullet(this, bulletlife));\t\r\n }", "@Override\r\n\tboolean shootAt(int row, int column) {\r\n\t\t\r\n\t\t\tthis.getHit()[0]=true;\r\n\t\t\treturn false;\r\n\t\t\t\r\n\t}", "public void shoot(){\r\n\t\tif(numberOfArrows>0){\r\n\t\t\tnumberOfArrows--;\r\n\t\t\tPosition positionWumpus = b.getWumpus().getPosition();\r\n\t\t\tif (position.checkShoot(positionWumpus))\r\n\t\t\t\tb.getWumpus().kill();\r\n\t\t}\r\n\t\telse\r\n\t\t\tSystem.out.println(\"There are no more arrows.\");\r\n\t}", "public void shootIntoCargoShip(){\n shoot.set(SHIP_SHOOT);\n }", "public void shoot(int bulletLeft) {\n float xValue = canon.getX();\n float yValue = canon.getY();\n bullets.get(bulletLeft).setVisibility(View.VISIBLE);\n shootingMotion(bullets.get(bulletLeft), xValue, yValue);\n\n }", "public void makeProjectile(float time){\n Geometry proj_geo = new Geometry(\"bullet projectile\", sphere);\n proj_geo.setMaterial(proj_mat);\n \n //Attach geometry to rootNode\n rootNode.attachChild(proj_geo);\n //Configure position and direction vectors\n proj_geo.setLocalTranslation(cam.getLocation());\n proj_geo.lookAt(cam.getDirection(), cam.getUp());\n \n proj_ctrl = new ProjectileControl();\n //proj_phy = new ProjectilePhysicsControl();\n proj_geo.addControl(proj_ctrl);\n \n proj_ctrl.setLinearVelocity(cam.getDirection().mult(40));\n proj_ctrl.setLifetime(1f);\n \n //proj_geo.addControl(proj_phy);\n bulletAppState.getPhysicsSpace().addCollisionListener(this);\n }", "public void shootIntoRocket(){\n shoot.set(ROCKET_SHOOT);\n }", "private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}", "public Answer shoot(){\n if (this.isOccuped()){\n this.ship.hit();\n if (this.ship.hasBeenSunk()){\n\tthis.hasBeenShot = true;\n return Answer.SUNK;\n }\n else{\n\tthis.hasBeenShot = true;\n return Answer.HIT;\n }\n }\n else{\n this.hasBeenShot = true;\n return Answer.MISSED;\n }\n }", "private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}", "public void onShootPressed(){\n if(player.getRechargeTimer()<=0) {\n playShootingSound();\n Bullet bullet = new Bullet();\n player.setRechargeTimer(shotRechargeTime);\n bullet.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet.setRotation(player.getRotation());\n bullet.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet.getRotation() - 90))));\n if(player.getTripleShotTimer()>0){\n Bullet bullet1 = new Bullet();\n bullet1.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet1.setRotation(player.getRotation()+15);\n bullet1.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet1.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet1.getRotation() - 90))));\n Bullet bullet2 = new Bullet();\n bullet2.moveCentreTo(player.getCentreX(), player.getCentreY());\n bullet2.setRotation(player.getRotation()-15);\n bullet2.setSpeed(new Point2D(15 * Math.cos(Math.toRadians(bullet2.getRotation() - 90)), 15 * Math.sin(Math.toRadians(bullet2.getRotation() - 90))));\n }\n }\n }", "public void attack()\n {\n getWorld().addObject(new RifleBullet(player.getX(), player.getY(), 1, 6, true), getX(), getY()); \n }", "public void shootGun() {\n\t\tammo--;\n\t}", "@Override\r\n\tboolean shootAt(int row, int col) {\r\n\t\tboolean[] newHit = new boolean[1]; \r\n\t\tnewHit[0] = true; \r\n\t\tthis.setHit(newHit); \r\n\t\treturn false; \r\n\t}", "@Override\n\tpublic Bullet shoot(int hx, int hy) {\n\t\treturn null;\n\t}", "void fire() {\r\n // firing a shot takes energy\r\n if (!expendEnergy(BULLET_ENERGY))\r\n return;\r\n\r\n //create a bullet object so it doesn't hit the ship that's firing it\r\n double xV = getXVel() + BULLET_SPEED * (Math.cos(orientation));\r\n double yV = getYVel() + BULLET_SPEED * (Math.sin(orientation));\r\n\r\n // create the actual bullet\r\n new Bullet(\r\n getGame(),\r\n (getXPos() + ((getSize()/2 + 2) * (Math.cos(orientation))) + xV),\r\n (getYPos() + ((getSize()/2 + 2) * (Math.sin(orientation))) + yV),\r\n xV,\r\n yV);\r\n }", "void doGun() {\r\n\t\tlong time = getTime()\r\n\t\t\t\t+ (int) Math\r\n\t\t\t\t\t\t.round((getRange(getX(), getY(), target.x, target.y) / (20 - (3 * firePower))));\r\n\t\tPoint2D.Double p = target.guessPosition(time);\r\n\r\n\t\t// offsets the gun by the angle to the next shot based on linear\r\n\t\t// targeting provided by the enemy class\r\n\t\tdouble gunOffset = getGunHeadingRadians()\r\n\t\t\t\t- (Math.PI / 2 - Math.atan2(p.y - getY(), p.x - getX()));\r\n\t\tsetTurnGunLeftRadians(normaliseBearing(gunOffset));\r\n\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public void shoot(GraphicsContext graphicsContext) {\n TankBullet bullet = new TankBullet(new FixedCoordinates(getCoordinates().getX() + 17, getCoordinates().getY() + 100), gameEnded, graphicsContext);\n bullet.draw(graphicsContext);\n CoordinatesCache.getInstance().getEnemyBullets().add(bullet);\n }", "@Override\n public void onUpdate(double tpf) {\n int x = (int)((entity.getX() + 30/2 ) / 30);\n int y = (int)((entity.getY() + 30/2 ) / 30);\n\n int px = (int)((player.getX() + 30/2 ) / 30);\n int py = (int)((player.getY() + 30/2 ) / 30);\n\n if (x == px || y == py) {\n shoot();\n }\n }", "public void fireShot() {\n\t\tVector3 position = player.getPositionVector();\n\t\tVector3 rotation = player.getRotationVector();\n\t\tVector3 scale = player.getScaleVector();\n\t\tAsteroidsLaser laser = new AsteroidsLaser(GameObject.ROOT, this, rotation.z);\n\t\tlaser.translate(position);\n\t\tlaserShots.add(laser);\n\t}", "@Override\n\tpublic void shoot(Plateau p) {\n\t\tif(!noMunition()) {\n\t\t\tuseMunition();\n\t\t\t//complete\n\t\t}\n\t\t\n\t}", "void logShot(UUID shooter, UUID projectile);", "public void manualShoot(double speed) {\n shooter1.set(speed);\n }", "public void shootAimingBullet(){\n bossBullet = new BossBullet(bossBulletImage,this.getXposition() + 100, this.getYposition() + 100, 8, player, true);\n bulletList.add(bossBullet);\n }", "private void shootMove() {\n for (int i = 0; i < fires.size(); i++) {\n //子弹往上移动\n fires.get(i).move();\n //注意这里remove需要放在下面\n if (fires.get(i).y < -1000) {\n fires.remove(fires.get(i));\n }\n }\n\n }", "public boolean isShooting()\r\n\t{\r\n\t\treturn false;\r\n\t}", "private void initiateProjectile() {\n\t}", "public boolean shoot(float startX, float startY, float touchX, float touchY, int screenX, int screenY) {\n if(!isActive){\n x = (startX+((screenX/5)/2));\n y = (startY+((screenX/10)/2));\n\n LEFT = false;\n BOTTOM = false;\n\n targetX = touchX;\n targetY = touchY;\n\n slopeX = (x/targetX);\n slopeY = (y/targetY);\n\n\n if(targetX < (screenX/2)) {\n LEFT = true;\n }\n\n if(targetY < (screenY/2)) {\n BOTTOM = true;\n }\n\n slope = slopeY/slopeX;\n\n isActive = true;\n return false;\n }\n\n //Bullet is already Active\n return false;\n }", "@Override\n\tpublic void drawProjectile(final SpriteBatch spriteBatch) {\n\t}", "public void stopShoot(){\n\t\tshoot.set(0);\n\t}", "private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }", "private void shoot(int x, int y, int choice) {\n\t\tif (heroi.getDardos() > 0) {\n\t\t\t//left\n\t\t\tif (x == 1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getX_coord()-i) > 0 && (labirinto.getLab()[heroi.getX_coord()-i][heroi.getY_coord()] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord()-i))\n\t\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0)\t\n\t\t\t\t\t\t\t\t\t\tconsole_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) \n\t\t\t\t\t\t\t\t\t\tMazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotLeft();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//right\n\t\t\telse if (x == -1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getX_coord()+i) < labirinto.getSize() && (labirinto.getLab()[heroi.getX_coord()+i][heroi.getY_coord()] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord()+i))\n\t\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) \n\t\t\t\t\t\t\t\t\t\tconsole_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) \n\t\t\t\t\t\t\t\t\t\tMazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotRight();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//up\n\t\t\telse if (y == 1) {\n\t\t\t\tint i = 1;\n\t\t\t\twhile ((heroi.getY_coord()-i) > 0 && (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()-i] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord()-i))\n\t\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) console_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) MazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0)\n\t\t\t\t\tconsole_interface.shotUp();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\n\t\t\t//down\n\t\t\telse { \n\t\t\t\tint i = 1;\n\t\t\t\twhile ((i+heroi.getY_coord()) < labirinto.getSize() && (labirinto.getLab()[heroi.getX_coord()][heroi.getY_coord()+i] != 'X')) {\n\t\t\t\t\tfor (int j = 0; j < dragoes.length; j++) {\n\t\t\t\t\t\tif (dragoes[j].getY_coord() == (heroi.getY_coord()+i))\n\t\t\t\t\t\t\tif (dragoes[j].getX_coord() == (heroi.getX_coord())) {\n\t\t\t\t\t\t\t\tif (dragoes[j].isAlive()) {\n\t\t\t\t\t\t\t\t\tdragoes[j].setAlive(false);\n\t\t\t\t\t\t\t\t\tlabirinto.setLabCell(dragoes[j].getX_coord(), dragoes[j].getY_coord(), ' ');\n\t\t\t\t\t\t\t\t\tif (inter == 0) console_interface.dragonKilled();\n\t\t\t\t\t\t\t\t\telse if (inter == 3) MazeDisplay.messageDragonKilled();\n\t\t\t\t\t\t\t\t\telse {}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t//-----------------------------------------------------------------\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t\tif (inter == 0) \n\t\t\t\t\tconsole_interface.shotDown();\n\t\t\t\telse if (inter == 3) {} //shooting function\n\t\t\t\telse {}\n\t\t\t}\n\t\t\theroi.dec_dardos();\n\t\t}\n\t\telse\n\t\t\tif (inter == 0)\n\t\t\t\tconsole_interface.no_darts();\n\t\t\telse if (inter == 3) MazeDisplay.noDarts();\n\t\t\telse {}\n\n\t\tdisplayDragoes();\n\t\tchange_hero_pos();\n\t}", "private void attackPlayer()\n\t{\n\t\tif(shootTimer.done())\n\t\t{\n\t\t\tProjectile spiderWeb = new SpiderWeb(x, y);\n\t\t\tGame.objectWaitingRoom.add(spiderWeb);\n\t\t\tspiderWeb.shoot();\n\t\t\tshootTimer.setTime(200);\n\t\t}\n\t}", "@Override\n\tpublic void movment() {\n\t\tif(ghost.shot && fired) {\n\t\t\tif(direction == RIGHT)\n\t\t\t\tmove(RIGHT);\n\t\t\telse if(direction == LEFT)\n\t\t\t\tmove(LEFT);\n\t\t\telse if(direction == UP)\n\t\t\t\tmove(UP);\n\t\t\telse if(direction == DOWN)\n\t\t\t\tmove(DOWN);\n\t\t}\n\t}", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "public void enemyShoot()\r\n\t{\r\n\t\tfor (Enemy enemies : enemy)\r\n\t\t{\r\n\t\t\tif (enemies.getHasFired())\r\n\t\t\t{\r\n\t\t\t\tBullet enemyPew = enemies.shoot();\r\n\t\t\t\tif (enemyPew != null)\r\n\t\t\t\t{\r\n\t\t\t\t\tbullets.add(enemyPew);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Projectile(Vec2 position, Vec2 direction, Sprite sprite) {\n super(position, direction, sprite);\n allProjectilse.add(this);\n startPosition = transform.getGlobalPosition();\n setCollider(new CircleCollider(this, 30));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n\n collider.setName(\"Bullet\");\n collider.setTag(\"DMG\");\n\n startTime = System.currentTimeMillis();\n startSize = new Vec2(1, 1);\n squareHeightStart = 1;\n squareWithStart = 1;\n }", "public Shooter() {\n fire1 = new Solenoid(1);\n fire2 = new Solenoid(4);\n returnValve = new Solenoid(3);\n latchSolenoid = new Solenoid(2);\n FFM = true;\n m_enabled = true;\n shooting = false;\n reloading = false;\n initShooter();\n }", "public void setShooting(boolean TorF) {\n this.shooting = TorF;\n }", "public void procectileShoot(ItemStack it, Projectile a) {\r\n\t\tif(it==null) return;\r\n\t\t\r\n\t\tAttributeStorage storage = AttributeStorage.newTarget(it, SpellItems.itemUUID);\r\n\t\tif(!storage.getData(\"\").startsWith(\"si_customenchant_\")) return;\r\n\t\tString enchants = storage.getData(\"\").replace(\"si_customenchant_\", \"\");\r\n\t\t\r\n\t\tint pos = 0;\r\n\t\tfor(String st : enchants.split(\"|\")) {\r\n\t\t\tString[] info = st.split(\":\");\r\n\t\t\tCustomEnchant ce = getEnchantmentByName(info[0]);\r\n\t\t\tif(ce!=null) {\r\n\t\t\t\ta.setMetadata(\"spellitems_enchant_\"+pos, new FixedMetadataValue(SpellItems.instance, ce.getInternalName()));\r\n\t\t\t\tpos++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Missile(Shooter shooter, Point2D.Double start, double speed, double direction)\n {\n this.shooter = shooter;\n this.direction = direction;\n \n location = start;\n \n velocity = new Point2D.Double(-speed*Math.sin(direction), speed*Math.cos(direction));\n }", "public void shot(int xp,int yp,int x2,int y2){\n yp += 10;\n xp += 10;\n rp = 1;\n float atan = (float) Math.atan2(yp-y2, xp-x2);\n theta = (float) (Math.PI/2 - atan);\n this.xp = xp;\n this.yp = yp;\n active = true;\n ready = false;\n }", "public boolean isShooting() {\n return shooting;\n }", "public void shoot(Agent agent) throws RemoteException {\n\t}", "@Override\n public void attack(){\n int xBullet=0,yBullet=0;\n switch(direction){\n case 0:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()*3/4);\n break;\n case 1:\n xBullet=(int)(x+Sprite.python_left.getWidth()*3/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 2:\n xBullet=(int)(x+Sprite.python_left.getWidth()/3);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n case 3:\n xBullet=(int)(x+Sprite.python_left.getWidth()/4);\n yBullet=(int)(y+Sprite.python_left.getHeight()/4);\n break;\n }\n PythonBullet pythonBullet=new PythonBullet(xBullet,yBullet,board,Player.PLAYER_SPEED*1.5);\n pythonBullet.setDirection(direction);\n board.addBullets(pythonBullet);\n\n }", "public boolean shootoutEntity(Entity ent, boolean simulate);", "public boolean isProjectile();", "public projectile(double x, double y, int d, boolean a, boolean h, double xSpeed, double ySpeed) {\r\n this.xPos = x;\r\n yPos = y;\r\n damage = d;\r\n active = a;\r\n hit = h;\r\n this.xSpeed = xSpeed;\r\n this.ySpeed = ySpeed;\r\n }", "private void shootingMotion(final View v, final float x, final float y) {\n setBulletLocation(v, x, y);\n ObjectAnimator animation = ObjectAnimator.ofFloat(v, \"translationY\", -300f);\n animation.setDuration(2000);\n animation.start();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n checkOnHit(v);\n }\n }, 1300);\n }", "public void act ()\n {\n checkScroll();\n checkPlatform();\n checkXAxis();\n checkDeath();\n // get the current state of the mouse\n MouseInfo m = Greenfoot.getMouseInfo();\n // if the mouse is on the screen...\n if (m != null)\n {\n // if the mouse button was pressed\n if (Greenfoot.mousePressed(null))\n {\n // shoot\n player.shoot(m.getX(), m.getY());\n }\n }\n }", "@Override\r\n\tpublic void execute() {\n\t\tm_FlywheelSubsystem.shoot();\r\n\t}", "public void isShooting(GameContainer gc) throws LineUnavailableException{\r\n\t\tif(gc.getInput().isKeyPressed(Input.KEY_SPACE) || gc.getInput().isKeyPressed(Input.KEY_UP)){\r\n\t\t\tif(!this.bullet.isMoved()){\r\n\t\t\t\tthis.playSound();\r\n\t\t\t\tanimation = this.shooting;\r\n\t\t\t\tthis.bullet.position.x = super.getShape().getCenterX();\r\n\t\t\t\tthis.bullet.position.y = super.getShape().getCenterY();\r\n\t\t\t\tthis.getBullet().setMoved(true);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getBullet().isMoved()){\r\n\t\t\tthis.bullet.move();\r\n\t\t}\r\n\t}", "protected void execute() {\n \tif(Robot.robotState != Robot.RobotState.Climbing)\n \t\tRobot.shooter.speed(speed);\n }", "private void handleShooting(SpaceWars game, GameGUI gui) {\r\n\t\tif (gui.isShotPressed()) {\r\n\t\t\tfire(game);\r\n\t\t}\r\n\t}", "public projectile(double x, double y, double xSpeed, double ySpeed) {\r\n this.xPos = x;\r\n yPos = y;\r\n this.xSpeed = xSpeed;\r\n this.ySpeed = ySpeed;\r\n active = false;\r\n }", "public Projectile fire() {\n\t\tNode component = new Rectangle(PROJECTILE_WIDTH, PROJECTILE_HEIGHT, Color.RED);\n\t\tint xVelocity = isFacingRight ? projectileXSpeed : -projectileXSpeed;\n\t\tProjectile projectile = new Projectile(this, projectileDamage, projectileRange, xVelocity, projectileYVelocity, component);\n\t\tdouble offset = components.get(0).getBoundsInParent().getWidth() / 2;\n\t\tcomponent.setTranslateX(isFacingRight ? components.get(0).getTranslateX() + offset : components.get(0).getTranslateX() - offset);\n\t\tcomponent.setTranslateY(components.get(0).getTranslateY() + 20);\n\t\treturn projectile;\n\t}", "@Override\n public void execute() {\n // finds goal and gets speed to turn\n double speed = vision.getPIDOfGoal();\n if (speed == -1000)\n return;\n\n // System.out.println(speed);\n drivetrain.tankDrive(speed, -speed);\n }", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "public void shoot(Graphics g, Pea[] p, Dooley d, int numPeas) {\r\n\t\tfor(int i = 0; i < numPeas; i++) {\r\n \t\tif(p[i].getMoving()) {\t\r\n \t\t\tp[i].setX(d.getX() + 17);\r\n \t\t\tp[i].paint(g);\r\n \t\t}\r\n \t}\r\n\t}", "public void shoot(ArrayList<Bullet> alienBullets)\r\n\t{\r\n\t\t//do nothing usually\r\n\t}", "@Override\r\n\tpublic void shoot(Robot robot) throws UnsupportedOperationException\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif(robot.canShoot())\r\n\t\t\t{\r\n\t\t\t\trobot.shoot();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(IllegalStateException exc)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"A terminated robot cannot shoot.\");\r\n\t\t}\r\n\t}", "public void setShootingDirection(short x){\n this.shootingDirection = x;\n }", "public void onHitByBullet(HitByBulletEvent e) {\n\t\t// Paramos tudo o que estamos fazendo.\n\t\tstop();\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\n\t\t// Giramos a arma na direção do disparo\n\t\tdouble turnGunAmt = Utils.normalRelativeAngleDegrees(e.getBearing() + getHeading() - getGunHeading());\n\t\tturnGunRight(turnGunAmt);\n\n\t\tscan(); // Escaneamos para verificar a ocorrência de um inimigo na direção\n\t\tback(400); // Recuamos\n\t}", "protected void execute() {\n\t//\tif (Math.abs(Robot.launcher.getDegrees()) < 5.5) {\n\t\t\tif (up)\n\t\t\t\tRobot.launcher.tiltDown();\n\t\t\telse\n\t\t\t\tRobot.launcher.tiltUp();\n//\t\t} else {\n//\t\t\tLog.warn(\"Turret rotated too much to tilt\");\n//\t\t\tend();\n//\t\t}\n\t}", "private void shoot(int mode, EntityManager manager) {\r\n switch (mode) {\r\n case 0:\r\n normal(manager);\r\n break;\r\n case 1:\r\n shotgun(manager);\r\n break;\r\n case 2:\r\n shield(manager);\r\n break;\r\n case 3:\r\n laser(manager);\r\n break;\r\n case 4:\r\n multi(manager);\r\n break;\r\n case 5:\r\n shrapnel(manager);\r\n break;\r\n }\r\n }", "public short getShootingDirection() {\n return shootingDirection;\n }", "@Override\r\n\tpublic void act() {\r\n\t\tdouble tankx, tanky;\r\n\t\ttankx = tank.getX();\r\n\t\ttanky = tank.getY();\r\n\t\t\r\n\t\t// If we're not in the center, rotate toward the center and move.\r\n\t\tif (tankx < 300 || tankx > 500 || tanky < 250 || tanky > 350) {\r\n\t\t\treceiver.receiveCommand(new RotateTowardsCommand(player, 400, 300));\r\n\t\t\treceiver.receiveCommand(new MoveCommand(player, false));\r\n\t\t}\r\n\t\telse {\r\n\t\t\t// We are in the center. Just move the gun around and shoot.\r\n\t\t\treceiver.receiveCommand(new RotateGunCommand2(player, 0.05));\r\n\t\t\treceiver.receiveCommand(new FireCommand(player));\r\n\t\t}\r\n\t}", "public void ballShoot() {\n\n ballRight.setPower(-1);\n ballLeft.setPower(1);\n\n wait(2.0);\n\n flipper.setPosition(0.7);\n\n wait(0.5);\n\n flipper.setPosition(0.9);\n ballLeft.setPower(0);\n ballRight.setPower(0);\n\n\n }", "public void shoot() {\r\n\t\twhile (rounds > 1) {\r\n\t\t\trounds--;\r\n\t\t\tSystem.out.println(gunType + \" is shooting now\\n\" + rounds + \" \\nCLACK! CLACK! CLAK! CLAK! CLAK!\");\r\n\t\t\tif (rounds == 1) {\r\n\t\t\t\tSystem.out.println(\"Magazine's Empty!! \\nRELOAD!!\\nRELOAD!!!\\nRELAOD!!!\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t}", "public Projectile(String name, boolean unique_id, double x, double y,\n\t\t\tint collisionid, String gfxname, int tilebbox_x, int tilebbox_y,\n\t\t\tint tilebbox_width, int tilebbox_height, int expiry, long start,\n\t\t\tboolean grav, boolean insul, boolean byRB, boolean byField, boolean byTile,\n\t\t\tboolean move, double mspeed) {\n\t\tsuper(name, unique_id, x, y, collisionid, gfxname, tilebbox_x, tilebbox_y,\n\t\t\t\ttilebbox_width, tilebbox_height, expiry, start, grav, insul, byRB,\n\t\t\t\tbyField, byTile, move);\n\t\tprojectileCount++;\n\t\tmaxSpeed = mspeed;\n\t}", "public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(singlespeed);\r\n Components.shootermotorleft2.setX(singlespeed);\r\n Components.shootermotorright.setX(-singlespeed);\r\n Components.shootermotorright2.setX(-singlespeed);\r\n\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n\r\n }\r\n shootpothigh = shootsinglepot;\r\n shootstate = movingup;\r\n } else if (Components.trusshp == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trusshpspeed);\r\n Components.shootermotorleft2.setX(trusshpspeed);\r\n Components.shootermotorright.setX(-trusshpspeed);\r\n Components.shootermotorright2.setX(-trusshpspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusshppothigh;\r\n shootstate = movingup;\r\n }else if (Components.truss == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trussspeed);\r\n Components.shootermotorleft2.setX(trussspeed);\r\n Components.shootermotorright.setX(-trussspeed);\r\n Components.shootermotorright2.setX(-trussspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusspothigh;\r\n shootstate = movingup;\r\n } else if (Components.pass == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(passspeed);\r\n Components.shootermotorleft2.setX(passspeed);\r\n Components.shootermotorright.setX(-passspeed);\r\n Components.shootermotorright2.setX(-passspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = passpot;\r\n shootstate = movingup;\r\n } else if (Components.longdistanceshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(longdistancespeed);\r\n Components.shootermotorleft2.setX(longdistancespeed);\r\n Components.shootermotorright.setX(-longdistancespeed);\r\n Components.shootermotorright2.setX(-longdistancespeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = longdistancepot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.shoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(shooterspeed);\r\n Components.shootermotorleft2.setX(shooterspeed);\r\n Components.shootermotorright.setX(-shooterspeed);\r\n Components.shootermotorright2.setX(-shooterspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = shootpot;\r\n shootstate = movingup;\r\n }else if (Components.slowmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(slowmovingspeed);\r\n Components.shootermotorleft2.setX(slowmovingspeed);\r\n Components.shootermotorright.setX(-slowmovingspeed);\r\n Components.shootermotorright2.setX(-slowmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n slowmovingpot = shootpot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.fastmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(fastmovingspeed);\r\n Components.shootermotorleft2.setX(fastmovingspeed);\r\n Components.shootermotorright.setX(-fastmovingspeed);\r\n Components.shootermotorright2.setX(-fastmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n fastmovingpot = shootpot;\r\n\r\n }\r\n case movingup:\r\n if (islimitshooterup() == false || Components.potvalue >= shootpothigh) {\r\n shootstate = stopped;\r\n oldTime = DS.getMatchTime();\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n\r\n case stopped:\r\n try {\r\n if (/*Components.shooterdown && */time - oldTime > .2 && islimitshooterdown() == true && Components.DownPickupLimit.get()) {\r\n\r\n Components.shootermotorleft.setX(shootdownspeed);\r\n Components.shootermotorleft2.setX(shootdownspeed);\r\n\r\n Components.shootermotorright.setX(-shootdownspeed);\r\n Components.shootermotorright2.setX(-shootdownspeed);\r\n\r\n shootstate = movingdown;\r\n }\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n\r\n case movingdown:\r\n if ((islimitshooterdown() == false) || (Components.potvalue < shootpotdown)) {\r\n\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootstate = down;\r\n }\r\n }\r\n }", "public PointBullet( final FloatVector position, final double direction, final int damage, final boolean doubleSized, final Player shooterPlayer ) {\r\n super( MASS, SHAPE_RESISTANCE_RATE, CAPACITY, ANTI_GRAVITATION_RATE, WIDTH, HEIGHT, -1, position, direction, VELOCITY, shooterPlayer );\r\n this.damage = damage;\r\n this.doubleSized = doubleSized;\r\n }", "public Projectile(String name, boolean unique_id, double x, double y,\n\t\t\tint collisionid, String gfxname, int tilebbox_x, int tilebbox_y,\n\t\t\tint tilebbox_width, int tilebbox_height, int expiry, long start,\n\t\t\tboolean grav, boolean insul, boolean byRB, boolean byField, boolean byTile,\n\t\t\tboolean move) {\n\t\tsuper(name, unique_id, x, y, collisionid, gfxname, tilebbox_x, tilebbox_y,\n\t\t\t\ttilebbox_width, tilebbox_height, expiry, start, grav, insul, byRB,\n\t\t\t\tbyField, byTile, move);\n\t\tprojectileCount++;\n\t\tmaxSpeed = 0.0;\n\t}", "void alien_shoot_missile(Alien alien) {\n Missile missile = alien.shootMissile();\n ImageView alien_missile_image_view;\n switch(alien.missile_type) {\n case ALIEN1:\n alien_missile_image_view = new ImageView(alien1_missile_image);\n break;\n case ALIEN2:\n alien_missile_image_view = new ImageView(alien2_missile_image);\n break;\n default:\n alien_missile_image_view = new ImageView(alien3_missile_image);\n break;\n }\n alien_missile_image_view.setX(missile.x_position);\n alien_missile_image_view.setY(missile.y_position);\n alien_missile_image_view.setFitWidth(alien.missile_width);\n alien_missile_image_view.setFitHeight(alien.missile_height);\n alien_missile_image_views.add(alien_missile_image_view);\n game_pane.getChildren().add(alien_missile_image_view);\n }" ]
[ "0.76310736", "0.7418972", "0.7285851", "0.7051607", "0.70277536", "0.6966984", "0.6966984", "0.6956811", "0.6942415", "0.69355536", "0.6817778", "0.6816234", "0.6790153", "0.6722656", "0.671542", "0.66868246", "0.66601247", "0.65618885", "0.6481551", "0.6471839", "0.645303", "0.6425983", "0.64248073", "0.64031696", "0.64009595", "0.63850296", "0.6381513", "0.63806725", "0.63126963", "0.63067544", "0.63007015", "0.6259546", "0.62465113", "0.6230317", "0.622511", "0.62233496", "0.6220127", "0.62068963", "0.61731267", "0.61699617", "0.6168442", "0.61559117", "0.6126049", "0.6110368", "0.609296", "0.608195", "0.6063038", "0.6018455", "0.6012419", "0.59985876", "0.59809875", "0.59590787", "0.59463865", "0.5943998", "0.58936906", "0.5883571", "0.5881216", "0.5881033", "0.58781", "0.5869765", "0.58542955", "0.5840995", "0.5840414", "0.58321536", "0.5824065", "0.58223194", "0.58106464", "0.5809344", "0.5806978", "0.58062315", "0.5799351", "0.5759841", "0.5752292", "0.57499474", "0.5745282", "0.574327", "0.5738433", "0.57273114", "0.571945", "0.5692616", "0.5690617", "0.5688871", "0.5670531", "0.5664009", "0.5661374", "0.56580406", "0.56547254", "0.5651393", "0.5647463", "0.5624458", "0.5602726", "0.5598277", "0.55904925", "0.5586352", "0.55824125", "0.5581589", "0.5563298", "0.55511695", "0.5546326", "0.5542339" ]
0.6453192
20
Creating the DisplayInput class singleton
public static DisplayInput getInstance() { if (input == null) { synchronized (DisplayInput.class) { if (input == null) { input = new DisplayInput(); } } } return input; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public InputManager(){\n this.view = new View();\n }", "private Input()\n {\n }", "private MulticastInputUI()\n\t{\n\t}", "Input createInput();", "public InputView()\n\t{\n\t\tthis.layoutView();\n\t\tthis.registerButtons();\n\t}", "public DMXUserInput() {\n }", "public GameInput() {\n keyboard = new Keyboard();\n mouse = new Mouse();\n mouseWheel = new MouseWheel();\n }", "public Output(Input input)\n {\n outputHelper = new OutputHelper();\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n add(outputHelper);\n setSize(Constants.WIDTH, Constants.HEIGHT);\n setVisible(true);\n addMouseListener(input);\n addMouseMotionListener(input);\n addKeyListener(input);\n }", "public TextInput() {\n // initialise instansvariables\n }", "public static DisplayDevice getInstance(){\t\t\r\n\t\treturn instance;\r\n\t}", "private DisplayDevice(){\t\t\r\n\t\t\r\n\t}", "INPUT createINPUT();", "public TrackdInputDevice() {\n }", "public UserInputField() {\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public Ui() {\n this.scanner = new Scanner(System.in);\n }", "public TextUI() {\n rand = new Random(System.nanoTime());\n scan = new Scanner(System.in);\n }", "public abstract Display getDisplay();", "public Display() {\n initComponents();\n }", "public PInputPane() {\r\n initComponents();\r\n }", "public RegisterDisplay() {\n initComponents();\n }", "public ClockDisplay()\r\n\t{\t\t\r\n\t\t\r\n\t\tthis.numberDisplay1 = new NumberDisplay();\r\n\t}", "protected JoystickInput() {\n }", "private InstructGui() {\n }", "public ConsoleView() {\n\t\tcrapsControl = new CrapsControl();\n\t\tinput = new Scanner(System.in);\n\t}", "public TextDisplay(){\n // Default values for all TextDisplays \n fontSize = 20.0f;\n fontColor = new Color(0, 0, 0);\n fieldWidth = 100;\n fieldHeight = 30;\n drawStringX = 0;\n drawStringY = 15;\n input = \"\";\n hasBackground = false;\n \n // TextDisplays' TextArea specifics\n borderWidth = 5;\n borderHeight = 5;\n borderColor = new Color(0, 0, 0, 128);\n backgroundColor = new Color (255, 255, 255, 128);\n }", "public ManualInput() {\n Globals.Status =\" \";\n initComponents();\n }", "public MyInput() {\r\n\t\tthis.scanner = new Scanner(System.in);\r\n\t}", "public static IInputFactory getInputFactory() {\n\n return m_InputFactory;\n\n }", "protected Display getDisplay() {\n return display;\n }", "@Implementation\n protected void __constructor__(IDisplayManager dm) {\n }", "public StreamRecorderDisplay() {\n initialize();\n }", "public static Input getInput() {\r\n return input;\r\n }", "public static Display getDisplay(){\r\n return THIS;\r\n }", "private IngenicoDisplay(){\n\n }", "QDisplayTerm createDisplayTerm();", "public DQLEditorInput()\n\t{\n\n\t\tsuper();\n\t\tsetStorage(new DQLStorage(this));\n\t}", "public static InputParametersI getInstance() {\n\n return inputParamsObj;\n }", "private SearchUI()\n\t{\n\t}", "private ServiceDisplay() {\n\t\tthis.idisplays = new ArrayList<IDisplay>();\n\t\tthis.idisplays.add(DisplayPorConsola.getInstancia());\n\t}", "public MainEntry() {\n initComponents();\n }", "public LiveScanDisplayBase(FORMAT fmtPlt) {\n super(fmtPlt);\n \n// this.lstActDevs = new LinkedList<AcceleratorNode>();\n this.mplLiveData = new SmfPvMonitorPool();\n }", "protected abstract void registerInput();", "private UI()\n {\n this(null, null);\n }", "public GuiInput(Updater updater){\n UpdaterGui updaterGui = (UpdaterGui) updater;\n this.guiController = (MainGuiController)((UpdaterGui) updater).getControllerFromString(\"gui.fxml\");\n this.guiController.setInput(this);\n }", "private void init() {\n\r\n\t\tmyTerminal.inputSource.addUserInputEventListener(this);\r\n//\t\ttextSource.addUserInputEventListener(this);\r\n\r\n\t}", "public abstract Object getInput ();", "GameGUI() {\r\n _randomSource = new Random();\r\n _players = new Player[2];\r\n _input = new BufferedReader(new InputStreamReader(System.in));\r\n _players[0] = new HumanPlayer(BP, this);\r\n _players[1] = new MachinePlayer(WP, this);\r\n _playing = false;\r\n }", "private void constructor(){\n\t\tdp_scale = getResources().getDisplayMetrics().density;\n\t\t\n\t\tfloat font_size = 16;\n\t\t\n\t\t// Initialize paints\n\t\tpaint = new Paint();\n\t\tpaint.setColor(Color.GRAY);\n\t\tpaint.setAntiAlias(true);\n\t\tpaint.setStrokeWidth(1);\n\t\t\n\t\tpaint.setTextSize(font_size*dp_scale);\n\t\ttext_paint = new TextPaint(paint);\n\t\t\n\t\t// setup listeners\n\t\t/*\n\t\tsetOnTouchListener(new OnTouchListener() {\n\t\t\tpublic boolean onTouch(View arg0, MotionEvent arg1) {\n\t\t\t\tswitch(arg1.getAction()){\n\t\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t\t\t\tentry.select();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\treturn false;\n\t\t\t}\n\t\t});\n\t\t*/\n\t\t\n\t\tsetOnClickListener(new OnClickListener() {\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tactivity.view_entry(entry);\n\t\t\t}\n\t\t});\n\t\t\n\t\tif (camera == null){\n\t\t\tcamera = ((BitmapDrawable)this.getResources().getDrawable(R.drawable.camera)).getBitmap();\n\t\t}\n\t}", "public GUI(Display display) {\n\t\t/* Init fields */\n\t\tGUI.display = display;\n\t\tGUI.gui = this;\n\t\t// displayThread = Thread.currentThread();\n\t\t/* Startup process */\n\t}", "public StimuliFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public Project() {\n inputHandler = new DefaultInputHandler();\n }", "public Console() {\n instance = this;\n\n this.setPrefViewportHeight(300);\n lb = new Label();\n lb.setWrapText(true);\n instance.setContent(lb);\n\n }", "private void createDisplayEditOverlay() {\n\t}", "public SetupScreen() \r\n { \r\n _userLabel = new LabelField(Ipoki._resources.getString(LBL_USER), DrawStyle.ELLIPSIS);\r\n add(_userLabel);\r\n _userEdit = new EditField(\"\", Ipoki._user, 20, Field.EDITABLE);\r\n add(_userEdit);\r\n _passLabel = new LabelField(Ipoki._resources.getString(LBL_PASSWORD), DrawStyle.ELLIPSIS);\r\n add(_passLabel);\r\n _passEdit = new PasswordEditField(\"\", Ipoki._pass, 20, Field.EDITABLE);\r\n add(_passEdit);\r\n _freqLabel = new LabelField(Ipoki._resources.getString(LBL_FREQ), DrawStyle.ELLIPSIS);\r\n add(_freqLabel);\r\n _freqEdit = new EditField(\"\", String.valueOf(Ipoki._freq), 20, Field.EDITABLE | EditField.FILTER_INTEGER);\r\n add(_freqEdit);\r\n }", "private ChatUI()\n\t{\n\t}", "public void manageInputPointCreation(){\n Button addInputButton = new Button();\n addInputButton.setId(\"addInputListButton\");\n\n addInputButton.setOnAction(new EventHandler<ActionEvent>() {\n public void handle(ActionEvent event) {\n try {\n Map<String, IYamlDomain> newMap = new HashMap<String, IYamlDomain>();\n newMap.put(Integer.toString(_addCounter), _class.newInstance());\n _abstractUiNode.getChilds().get(0).addInputData(newMap);\n _addCounter ++;\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n });\n\n _abstractUiNode.getChildren().add(addInputButton);\n addInputButton.setVisible(true);\n StackPane.setAlignment(addInputButton, Pos.BOTTOM_LEFT);\n\n }", "public Ui() {\n this.sc = sc;\n }", "public static void init(GameContainer c) {\r\n \t//if an older input exists, remove the listener\r\n \tif (input!=null)\r\n \t\tinput.removeListener(INPUT_LISTENER);\r\n \t\r\n \t//update fields\r\n container = c;\r\n input = c.getInput();\r\n defaultFont = c.getDefaultFont();\r\n\r\n \t//add listener\r\n input.addPrimaryListener(INPUT_LISTENER);\r\n }", "public TextInputList() {\n\n\t}", "private FormMediator() {\n queryViews = new LinkedList<QueryView>();\n searchAction = Actions.SEARCH_ACTION;\n }", "public TextUI(Scanner input, PrintStream output) {\n\t\tthis.in = input;\n\t\tthis.out = output;\n\t}", "@Override\n\tpublic void show()\n\t{\n\t\tGdx.input.setInputProcessor(this);\n\t}", "public SupportSystem()\n {\n reader = new InputReader();\n responder = new Responder();\n }", "protected Object getInitialInput() {\n return this;\n }", "public Node makeInputPanel() {\r\n VBox result = new VBox();\r\n myCommandLine = makeInputArea(350, 250);\r\n Button clearButton = makeButton(\"Clear\", event -> clear());\r\n Button runButton = makeButton(\"Run\", event -> {\r\n try {\r\n runInput(\"script\");\r\n updateModelWithInput( scriptFilePath + \"script.txt\");\r\n } catch (IOException e) {\r\n showError(e.getMessage());\r\n return;\r\n }\r\n });\r\n result.getChildren().addAll(myCommandLine, runButton, clearButton);\r\n result.setAlignment(Pos.CENTER);\r\n result.setSpacing(20);\r\n result.setMargin(myCommandLine, new Insets(0, 20, 0, 10));\r\n return result;\r\n }", "public InputDataHandler() {}", "protected abstract void getInput();", "public Entry() {\n this(GtkEntry.createEntry());\n }", "public Ui() { }", "public UserInput()\n {\n try\n {\n scanner = new Scanner(System.in);\n input = new InputMethods();\n citiesTotal = new CityContainer();\n\n if(scanner != null)\n {\n askUser();\n }\n } catch(Exception ex)\n {\n }\n }", "public GameScreen() {\n\n\t\tint midPointY = (int) (Const.GAME_HEIGHT / 2);\n\n\t\tworld = new GameWorld(midPointY);\n\t\trenderer = new GameRenderer(world);\n\n\t\tGdx.input.setInputProcessor(new InputHandler(world.getVentilatorUp(), world.getVentilatorDown()));\n\t\t// Gdx.input.setInputProcessor(new\n\t\t// InputHandler(world.getVentilatorTwo()));\n\t}", "interface InputField {\r\n\r\n /**\r\n * Since the solve() method must be placed in a class implementing the\r\n * InputField interface, I need a reference to the Console where output,\r\n * solveInfo, tuProlog engine and the ProcessInput thread are placed.\r\n *\r\n * This behaviour will change as soon as there will be no need of\r\n * separate input components for .NET and Java2, i.e. as soon as\r\n * the AltGr bug in Thinlet, preventing the use of italian keycombo\r\n * AltGr + '?' and AltGr + '+' to write '[' and ']', will be solved.\r\n */\r\n void setConsole(ConsoleManager console);\r\n\r\n /**\r\n\t * Get the goal displayed in the input field.\r\n\t * @return The goal displayed in the input field.\r\n\t */\r\n public String getGoal();\r\n\r\n /**\r\n * Add the displayed goal to the history of the requested goals.\r\n */\r\n //public void addGoalToHistory();\r\n\r\n /**\r\n * Enable or disable the possibility of asking for goals to be solved.\r\n *\r\n * @param flag true if the query device has to be enabled, false otherwise.\r\n */\r\n //public void enableSolveCommands(boolean flag);\r\n\r\n}", "public UserInterface() { // UserInterface constructor\n\t\tscan = new Scanner(System.in); // initializes scan to new Scanner(System.in)\n\t\tinventoryObject = new InventoryManagement(); // initializes inventoryObject as a new InventoryManagement object\n\t}", "public MainDisplay(){\n /*\n Create both label and textfield for the input\n */\n Infix = new JLabel(\"Enter Infix: \");\n inputInfix = new JTextField(10);\n inputInfix.setBackground(Color.YELLOW);\n inputInfix.addActionListener(new textListener());\n add(Infix);\n add(inputInfix);\n\n /*\n Create label for the postfix expression\n */\n postExpression = new JLabel(\"Postfix expression: \");\n outputPostfix = new JLabel();\n add(postExpression);\n add(outputPostfix);\n\n /*\n Create label for the result\n */\n evaluateResult = new JLabel(\"Result: \");\n outputResult = new JLabel();\n add(evaluateResult);\n add(outputResult);\n\n /*\n Create label for the error message\n */\n errorMessage = new JLabel(\"Error Messages: \");\n outputError = new JLabel(\"[]\");\n add(errorMessage);\n add(outputError);\n outputError.setForeground(Color.decode(\"#651200\"));\n\n setLayout(new GridLayout(4,2));\n\n /*\n Set the size and background color\n */\n setPreferredSize(new Dimension(700, 150));\n\n setBackground(Color.GRAY);\n }", "public SearchEntry() {\n initComponents();\n }", "public Display getDisplay() {\n return display;\n }", "public Ipoki()\r\n {\r\n _mainScreen = new IpokiMainScreen();\r\n _label = new LabelField(\"\");\r\n _mainScreen.add(_label);\r\n _gaugeScreen = new PopupScreen(new VerticalFieldManager());\r\n _gauge = new GaugeField(\"\", 0, 9, 0, GaugeField.LABEL_AS_PROGRESS);\r\n _gaugeScreen.add(_gauge);\r\n\r\n \r\n //start the helper threads\r\n _connectionThread.start();\r\n _listenThread.start();\r\n \r\n // Show main screen\r\n pushScreen(_mainScreen);\r\n\r\n // If persistent store is empty, show setup screen\r\n if (_user == \"\")\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }\r\n \r\n // Start retrieving location data\r\n startLocationUpdate();\r\n }", "public Core(Window window) throws IOException {\n this.window = window;\n window.use();\n input = Input.init();\n window.setInput(input);\n renderer = new Renderer();\n }", "private void initInputListeners() {\n focusGrabber = new FocusGrabber();\r\n mouseClickScroller = new MouseClickScroller();\r\n cursorChanger = new CursorChanger();\r\n wheelScroller = new MouseWheelScroller();\r\n keyScroller = new KeyScroller();\r\n }", "private void initInputPanel() {\n\t\tinputPanel = new JPanel();\n\t\tinputPanel.setBorder(BorderFactory.createTitledBorder(\"Enter Words Found\"));\n\t\t\n\t\t// User Text Input Area\n\t\t// Shows the words the user has entered.\n\t\tusedWordList = new ArrayList<String>();\n\t\tinputArea = new JEditorPane(\"text/html\", \"\");\n\t\tkit = new HTMLEditorKit();\n\t\tdoc = new HTMLDocument();\n\t\tinputArea.setEditorKit(kit);\n\t\tinputArea.setDocument(doc);\n\t\tinputArea.setText(\"\");\n\t\tinputArea.setEditable(false);\n\t\tinputScroll = new JScrollPane(inputArea);\n\t\tinputScroll.setPreferredSize(new Dimension(180, 250));\n\t\tinputScroll.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\tinputScroll.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);\n\t\tinputPanel.add(inputScroll);\n\t\t\n\t\t// Timer Label\n\t\ttimerLabel = new JLabel(\"3:00\", SwingConstants.CENTER);\n\t\ttimerLabel.setBorder(BorderFactory.createTitledBorder(\"Timer\"));\n\t\ttimerLabel.setPreferredSize(new Dimension(180, 80));\n\t\ttimerLabel.setFont(new Font(\"Arial\", Font.BOLD, 50));\n\t\tinputPanel.add(timerLabel);\n\t\t\n\t\t// Shake Button\n\t\tshakeButton = new JButton(\"Shake Dice\");\n\t\tshakeButton.setPreferredSize(new Dimension(170, 50));\n\t\tshakeButton.setFont(new Font(\"Arial\", Font.BOLD, 24));\n\t\tshakeButton.setFocusable(false);\n\t\tshakeButton.addActionListener(new ShakeListener());\n\t\tinputPanel.add(shakeButton);\n\t}", "private void init() {\n\t\t\n\t\tdisplay = new Display(title, width, height);\n\t\tdisplay.getFrame().addKeyListener(keyManager);\n\t\tdisplay.getFrame().addMouseListener(mouseManager);\n\t\tdisplay.getFrame().addMouseMotionListener(mouseManager);\n\t\t\n\t\t//Adding the mouseManager to the canvas reduces glitches\n\t\tdisplay.getCanvas().addMouseListener(mouseManager); \n\t\tdisplay.getCanvas().addMouseMotionListener(mouseManager);\n\t\t\n\t\t\n\t\tVisuals.init();\n\n\t\tManager.init(this); // Setting up our manager singleton\n\n\t\tgameCamera = new GameCamera(0, 0);\n\t\tgameTimer = new GameTimer();\n\n\t\tgameState = new GameState();\n\t\t//We want to initialise the states we may switch to for easy access\n\t\t//The main menu state\n\t\tState menuState = new MenuState();\n\t\t//The state for the settings menu\n\t\tState settingState = new SettingState();\n\t\t\n\t\tState.setState(gameState); //This sets the state of the program to our game\n\t\t\n\t}", "public DQLEditorInput(IStorage aStorage)\n\t{\n\n\t\tsuper();\n\t\tsetStorage(aStorage);\n\t}", "private void setupDisplay() {\n sizeFirstField_.setText(Double.toString(af_.SIZE_FIRST));\n numFirstField_.setText(Double.toString(af_.NUM_FIRST));\n sizeSecondField_.setText(Double.toString(af_.SIZE_SECOND));\n numSecondField_.setText(Double.toString(af_.NUM_SECOND));\n cropSizeField_.setText(Double.toString(af_.CROP_SIZE));\n thresField_.setText(Double.toString(af_.THRES));\n channelField1_.setText(af_.CHANNEL1);\n channelField2_.setText(af_.CHANNEL2);\n }", "public void showUserDefinedInputCreateDialog() {\r\n FXMLLoader loader = fxmlLoaderService.getLoader(getClass().getResource(FXML_USER_DEFINED_INPUT_CREATE_DIALOG));\r\n\r\n Parent page;\r\n\r\n try {\r\n page = loader.load();\r\n } catch (IOException ex) {\r\n logger.warn(\"Failed to load: \" + FXML_USER_DEFINED_INPUT_CREATE_DIALOG, ex);\r\n\r\n return;\r\n }\r\n\r\n // set the stage\r\n Stage stage = new Stage();\r\n stage.setTitle(\"Create Custom Input\");\r\n stage.initModality(Modality.APPLICATION_MODAL);\r\n stage.centerOnScreen();\r\n stage.initOwner(mainStage);\r\n\r\n Scene scene = new Scene(page);\r\n scene.getStylesheets().add(getClass().getResource(STYLESHEET_DEFAULT).toExternalForm());\r\n\r\n stage.setScene(scene);\r\n\r\n // Set the item into the controller.\r\n UserDefinedInputCreateDialogController controller = loader.getController();\r\n controller.setStage(stage);\r\n\r\n stage.showAndWait();\r\n }", "public Terminal() {\n initComponents();\n }", "public UI() {\n boolean keepGoing = true;\n\n while (keepGoing) {\n try {\n System.out.println(\"Which digit position of pi do you want to retrieve (starting from position 0)?\");\n\n int next = scanner.nextInt();\n\n String digit = Pi.findNthPiDigit(next);\n System.out.println(\"The digit at position \" + next + \" is \" + digit);\n } catch (OutOfBoundsException e) {\n System.out.println(e.getMessage());\n } catch (Exception e) {\n System.out.println(\"Invalid entry.\");\n }\n }\n }", "private void initComponent() {\n\n mEdit = (EditText) findViewById(R.id.edit_key);\n }", "private GUIMain() {\n\t}", "public void setInput(Input input) {\n this.input = input;\n }", "public PanelInput() {\n initComponents();\n judul_1.setText(\"\");\n judul_2.setText(\"\");\n clear();\n }", "private NovaInstanceDisplayPropertyToken(DisplayProperty displayProperty) {\n\t\t\tthis.displayProperty = displayProperty;\n\t\t}", "private static void createAndShowGUI()\n {\n Sudoku s = new Sudoku();\n }", "public SnakeUI() {\r\n setFrame(); \r\n setKeyListener();\r\n setTimer();\r\n startGame();\r\n this.setVisible(true);\r\n }", "public void registerDisplayPanel(Displayable d);", "public Gui() {\n initComponents();\n encrypter = new DesEncrypter();\n }", "public EditorDriver() {\r\n\t\tgui = new GUI(this);\r\n\t\treadingInputPath = true;\r\n\t\tinputFileFound = false;\r\n\t\teditor = new Editor();\r\n\t\tgui.println(IN_FILE_PROMPT);\r\n\t}", "protected void inputListener(){\n }", "com.ctrip.ferriswheel.proto.v1.Display getDisplay();", "public GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }" ]
[ "0.71463954", "0.649855", "0.645201", "0.63881093", "0.6382887", "0.6326965", "0.62915385", "0.629118", "0.62879336", "0.62217546", "0.6164568", "0.6131166", "0.60375166", "0.6030894", "0.59671205", "0.59671205", "0.59536994", "0.59069014", "0.58831763", "0.5875851", "0.58745605", "0.5817244", "0.58065176", "0.58055353", "0.5801568", "0.57842404", "0.5777554", "0.5766599", "0.5700081", "0.5698096", "0.56931573", "0.5686776", "0.5683932", "0.56833357", "0.56743485", "0.567148", "0.56294465", "0.5625924", "0.56162006", "0.5614363", "0.56013274", "0.5593069", "0.55835027", "0.5562312", "0.55503505", "0.5545342", "0.5543942", "0.55339825", "0.5510834", "0.55026317", "0.5496062", "0.54879516", "0.54658103", "0.5455858", "0.5451731", "0.5451529", "0.544653", "0.54409975", "0.543788", "0.5436277", "0.54256856", "0.54220504", "0.5421386", "0.5402038", "0.5389366", "0.5371516", "0.5370865", "0.5370599", "0.53486824", "0.5342475", "0.5333355", "0.5324605", "0.53230506", "0.5306873", "0.5302944", "0.5299654", "0.5284461", "0.52842975", "0.5283498", "0.5281376", "0.527909", "0.527768", "0.5275547", "0.52714753", "0.5270627", "0.5268866", "0.5267083", "0.5259767", "0.52578133", "0.52551216", "0.5253833", "0.5252902", "0.5246142", "0.52459246", "0.52443016", "0.5233022", "0.52304876", "0.52292717", "0.52283543", "0.52253443" ]
0.79570556
0
Display the main menu
public void displayInput() { scan = new Scanner(System.in); boolean exit = false; while (!exit) { System.out.println("\n1.Display Product"); System.out.println("2.Buy Product"); System.out.println("3.Cart"); System.out.println("4.Exit"); System.out.println("Enter Your Choice:-"); choice = getValidInteger("Enter Your Choice:-"); switch (choice) { case 1: StoreController.getInstance().displayProduct(); break; case 2: buyProduct(); break; case 3: cart(); break; case 4: exit = true; break; default: System.out.println("Enter correct choice\n"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "private static void displayMainMenu() {\n\t\tSystem.out.println(\"\\t Main Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"au <username> : Registers as a new user \\n\"\n\t\t\t\t+ \"du <username> : De-registers a existing user \\n\"\n\t\t\t\t+ \"li <username> : To login \\n\"\n\t\t\t\t+ \"qu : To exit \\n\"\n\t\t\t\t+\"====================================\\n\");\n\t}", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "public void showMenu() {\n menuController.showMenuPanel();\n }", "private void displayMainMenu () {\n System.out.println();\n System.out.println(\n \"Enter the number of the action to perform: \");\n System.out.println(\n \"Run game...............\" + PLAY_GAME);\n System.out.println(\n \"Exit...................\" + EXIT);\n }", "public void mainMenu() {\n\t\t// main menu\n\t\tdisplayOptions();\n\t\twhile (true) {\n\t\t\tString choice = ValidInputReader.getValidString(\n\t\t\t\t\t\"Main menu, enter your choice:\",\n\t\t\t\t\t\"^[aAcCrRpPeEqQ?]$\").toUpperCase();\n\t\t\tif (choice.equals(\"A\")) {\n\t\t\t\taddPollingPlace();\n\t\t\t} else if (choice.equals(\"C\")) {\n\t\t\t\tcloseElection();\n\t\t\t} else if (choice.equals(\"R\")) {\n\t\t\t\tresults();\n\t\t\t} else if (choice.equals(\"P\")) {\n\t\t\t\tperPollingPlaceResults();\n\t\t\t} else if (choice.equals(\"E\")) {\n\t\t\t\teliminate();\n\t\t\t} else if (choice.equals(\"?\")) {\n\t\t\t\tdisplayOptions();\n\t\t\t} else if (choice.equals(\"Q\")) {\n\t\t\t\tSystem.out.println(\"Goodbye.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }", "public static void displayMainMenu() {\n\t\tSystem.out.println(\"1.) Scan network\");//looks for IP address\n\t\tSystem.out.println(\"2.) Wait for connections\");//server\n\t\tSystem.out.println(\"3.) Connect to client\");//client\n\t\tSystem.out.println(\"4.) Exit\");\n\t}", "static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}", "public void showMainMenu() {\r\n\t\tmenu.setThreadSuspended(false);\r\n\t\tmenu.setVisible(true);\r\n\t\tsetVisible(false);\r\n\t\tsetVisible(true);\r\n\t}", "private static void printMainMenu() {\n\t\tprintln(\"Main Menu:\");\n\t\tprintln(\"\\tI: Import Movie <Title>\");\n\t\tprintln(\"\\tD: Delete Movie <Title>\");\n\t\tprintln(\"\\tS: Sort Movies\");\n\t\tprintln(\"\\tA: Sort Actors\");\n\t\tprintln(\"\\tQ: Quit\");\n\t}", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "public abstract void displayMenu();", "public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }", "public void mainMenu() {\n Game.stage.setScene(mainMenuScene);\n Game.stage.show();\n }", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "void printMainMenu(){\n\t\tSystem.out.println(\"\\n\\nMarketo Music\");\n\t\tSystem.out.println(\"Main Menu\");\n\t\tSystem.out.println(\"1. Create Playlist: create <playlist name>\");\n\t\tSystem.out.println(\"2. Edit Playlist: edit <playlist id>\");\n\t\tSystem.out.println(\"3. Print Song: song <song id>\");\n\t\tSystem.out.println(\"4. Print Playlist: playlist <playlist id>\");\n\t\tSystem.out.println(\"5. Print All Songs or Playlists: print song/playlist\");\n\t\tSystem.out.println(\"6. Search Song: search artist/title <string of words to be searched>\");\n\t\tSystem.out.println(\"7. Sort songs: sort artist/title\");\n\t\tSystem.out.println(\"8. Quit: quit\");\n\t\tSystem.out.print(\"Enter a Command : \");\n\t}", "public void menu() {\n\t\tstate.menu();\n\t}", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public static void displayMenu() {\n while (true) {\n m.display();\n int i = m.choice();\n m.execute1(i);\n }\n }", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "private void printMainMenu() {\n\t\tSystem.out.println(\"1. Go adventuring\");\n\t\tSystem.out.println(\"2. Enter tavern\");\n\t\tSystem.out.println(\"3. Show details about your character\");\n\t\tSystem.out.println(\"4. Exit game\");\n\t}", "public static void mainMenu() throws InterruptedException {\n\n // Calling the delay method to slow down the speed of the menu presentation\n delay();\n\n //Displaying the menu options by using the system out method\n System.out.println(\"Menu Main: \\n\");\n System.out.println(\"1 - Create a project\");\n System.out.println(\"2 - View projects\");\n System.out.println(\"3 - Completed projects\");\n System.out.println(\"4 - Customer information\");\n System.out.println(\"5 - Architect information\");\n System.out.println(\"6 - Project Manager Information\");\n System.out.println(\"7 - Structural Engineer Information\");\n System.out.println(\"8 - Past Due projects\\n\");\n System.out.println(\"0 - Exit\\n\");\n }", "public MainMenu() {\n initComponents();\n formDashboardHeaderLabelId.setVisible(false);\n formDashboardHeaderLabelNik.setVisible(false);\n }", "public static void main(String[] args) {\n Graphics.graphicsMainMenu();\r\n //Print main menu\r\n Menu.mainMenu();\r\n }", "public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }", "private static void displayUserMenu() {\n\t\tSystem.out.println(\"\\t User Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"ar <reponame> : To add a new repo \\n\"\n\t\t\t\t+ \"dr <reponame> : To delete a repo \\n\"\n\t\t\t\t+ \"or <reponame> : To open repo \\n\"\n\t\t\t\t+ \"lr : To list repo \\n\"\n\t\t\t\t+ \"lo : To logout \\n\"\n\t\t\t\t+ \"====================================\\n\");\n\t}", "public static void structEngineerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Structural Engineer's Information\");\n System.out.println(\"2 - Would you like to search for a Structural Engineer's Information\");\n System.out.println(\"3 - Adding a new Structural Engineer's Information\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public static void displayMenu() {\r\n System.out.print(\"\\nName Saver Server Menu\\n\\n\"\r\n +\"1. Add a name\\n2. Remove a name\\n3. List all names\\n\"\r\n +\"4. Check if name recorded\\n5. Exit\\n\\n\"\r\n +\"Enter selection [1-5]:\");\r\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "public static void main(String[] args) throws IOException {\n\n\n Menu.displayMenu();\n }", "public MainMenu() {\n initComponents();\n lblWelcome.setVisible(false);\n jPanel1.setVisible(false);\n \n miLogout.setEnabled(false);\n \n mData.setVisible(false);\n mPelayanan.setVisible(false);\n mLaporan.setVisible(false);\n }", "public void showMenu() {\n\t\tSystem.out.println(\"Please, choose one option!\");\n\t\tSystem.out.println(\"[ 1 ] - Highest Company Capital\");\n\t\tSystem.out.println(\"[ 2 ] - Lowest Company Capital\");\n\t\tSystem.out.println(\"[ 3 ] - Best Investor of the Day\");\n\t\tSystem.out.println(\"[ 4 ] - Worst Investor of the Day\");\n\t\tSystem.out.println(\"[ 0 ] - Exit\");\n\t}", "@Override\n\tpublic void display() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twelcomeMessage();\n\t\tloggy.info(\"User sees the welcome menu\");\n\t\t\n\t\tboolean loggingIn = true;\n\t\tUser user = null;\n\t\twhile(loggingIn) {\n\t\t\tuser = loginMenu(sc);\n\t\t\t\n\t\t\tif(user != null) {\n\t\t\t\tloggingIn = false;\n\t\t\t\tloggy.info(\"User logged in!\");\n\t\t\t}else {\n\t\t\t\tloggy.warn(\"User failed to login\");\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(\"Welcome user! Here are your tasks!\");\n\t\tboolean running = true;\n\t\t\n\t\t\n\t\twhile(running) {\n\t\t\t\n\t\t\tSystem.out.println(\"Here is the todo menu!\");\n\t\t\tSystem.out.println(\"1) See all todos\");\n\t\t\tSystem.out.println(\"2) Add a todo\");\n\t\t\tSystem.out.println(\"3) Delete a todo\");\n\t\t\tSystem.out.println(\"4) Set a todo to complete\");\n\t\t\tSystem.out.println(\"0) Exit the application \");\n\t\t\t\n\t\t\tString input = sc.nextLine();\n\t\t\t\n\t\t\tswitch(input) {\n\t\t\t\n\t\t\tcase \"1\": \n\t\t\t\tseeAllTodos(user);\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\taddTodoMenu(user, sc);\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdeleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"4\":\n\t\t\t\tcompleteTodoMenu(user);\n\t\t\t\tbreak;\n\t\t\tcase \"0\":\n\t\t\t\trunning = false;\n\t\t\t\tSystem.out.println(\"Thanks for using my service!\");\n\t\t\t\tbreak;\n\t\t\tdefault: \n\t\t\t\tSystem.out.println(\"Invalid input, try again!\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\n\t}", "public void displayMenu() {\n\t\tSystem.out.println(\"\\n1 to see vehicles in a date interval\");\n\t\tSystem.out.println(\"2 to see a specific reservation\");\n\t\tSystem.out.println(\"3 to see all reservations\");\n\t\tSystem.out.println(\"9 to exit\\n\");\n\t\ttry {\n\t\t\tString in = reader.readLine();\n\t\t\tswitch (in) {\n\t\t\tcase \"1\":\n\t\t\t\tdisplayCarsInInterval();\n\t\t\t\tbreak;\n\t\t\tcase \"2\":\n\t\t\t\tdisplaySpecificBooking();\n\t\t\t\tbreak;\n\t\t\tcase \"3\":\n\t\t\t\tdisplayBookings();\n\t\t\t\tbreak;\n\t\t\tcase \"9\":\n\t\t\t\tSystem.out.println(\"Client application terminated\");\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Please insert a valid number\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Unexpected problem with reading your input, please try again.\");\n\t\t}\n\t\tdisplayMenu();\n\t}", "public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}", "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "private static void mainMenuLines(){\n setMenuLines(\"\",4,6,7,8,9,10,11,12,13,14,15,16,17,18,19);\n setMenuLines(\"Welcome to Ben's CMR program.\",1);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"help\" + ANSI_RESET + \" for a list of valid commands!\",20);\n setMenuLines(\"Enter \" + HIGHLIGHT_COLOR + \"exit\" + ANSI_RESET + \" to close the application!\",21);\n }", "public static void main(String[] args){\n\n main_menu();\n\n }", "public void display() {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new ProviderMenu().setVisible(true);\n\n }\n });\n }", "public void displayMenu() {\n \n menuFrame = new JFrame(\"SnakeTrain\");\n menuFrame.setSize(1024, 768);\n menuFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n JPanel menuPanel = new JPanel();\n \n Play.setPreferredSize(new Dimension(250, 100));\n Instructions.setPreferredSize(new Dimension(250, 100));\n Exit.setPreferredSize(new Dimension(250, 100));\n \n Play.addActionListener(this);\n Instructions.addActionListener(this);\n Exit.addActionListener(this);\n \n //c = new JLabel(/*background image*/);\n menuFrame.setLayout(new FlowLayout());\n menuFrame.add(Play);\n menuFrame.add(Instructions);\n menuFrame.add(Exit);\n menuFrame.setVisible(true);\n \n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "private void printMainMenu(){\n\t\tprint(\"Please choose from the options below\", System.lineSeparator()+\"1.Login\", \"2.Exit\");\n\t}", "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }", "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "public static void f_menu(){\n System.out.println(\"╔══════════════════════╗\");\r\n System.out.println(\"║ SoftAverageHeight ║\");\r\n System.out.println(\"║Version 1.0 20200428 ║\");\r\n System.out.println(\"║Created by:Andres Diaz║\");\r\n System.out.println(\"╚══════════════════════╝\");\r\n\r\n }", "private void presentMenu() {\n System.out.println(\"\\nHi there, kindly select what you would like to do:\");\n System.out.println(\"\\ta -> add a task\");\n System.out.println(\"\\tr -> remove a task\");\n System.out.println(\"\\tc -> mark a task as complete\");\n System.out.println(\"\\tm -> modify a task\");\n System.out.println(\"\\tv -> view all current tasks as well as tasks saved previously\");\n System.out.println(\"\\tct -> view all completed tasks\");\n System.out.println(\"\\ts -> save tasks to file\");\n System.out.println(\"\\te -> exit\");\n }", "public void setMenu() {\n\t \n\t\ttop = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t add(top, BorderLayout.CENTER);\n\t \n\t lPro = new JLabel(\"Projects: \");\n\t top.add(lPro);\n\t \n\t cPro = new JComboBox();\n\t getProject();\n\t\ttop.add(cPro);\n\t\t\n\t\tview = new JButton(\"View Sample\");\n\t\ttop.add(view);\n\t\t\n\t\tbottom = new JPanel(new FlowLayout(FlowLayout.CENTER));\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tcancel = new JButton(\"Cancel\");\n\t\tbottom.add(cancel);\n\t\t\n\t\tdownload = new JButton(\"Download\");\n\t\tbottom.add(download);\n\t\t\n\t\tsetActionListener();\t\n\t}", "public static void openMainMenu() {\r\n\t\tif(!STATUS.equals(Gamestatus.STOPPED)) return;\r\n\t\tgui.setMenu(new MainMenu(), true);\r\n\t}", "@Override\r\n public final void display() {\r\n System.out.println(\"\\n\\t===============================================================\");\r\n System.out.println(\"\\tEnter the letter associated with one of the following commands:\");\r\n \r\n for (String[] menuItem : HelpMenuView.menuItems) {\r\n System.out.println(\"\\t \" + menuItem[0] + \"\\t\" + menuItem[1]);\r\n }\r\n System.out.println(\"\\t===============================================================\\n\");\r\n }", "private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }", "public static void main(String[] args) {\n System.out.println(\"\\t\\t____________________________________\"); \r\n System.out.println(\"\\t\\t| |\");\r\n System.out.println(\"\\t\\t| Maintain Delivery man module |\");\r\n System.out.println(\"\\t\\t|____________________________________|\\n\\n\");\r\n mainMenu(); //call main menu \r\n }", "@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}", "IMenu getMainMenu();", "public static void activateMenu() {\n instance.getMenu().show();\n }", "@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}", "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "private void goToMenu() {\n\t\tgame.setScreen(new MainMenuScreen(game));\n\n\t}", "public static void updateMainMenu() {\n instance.updateMenu();\n }", "void Menu();", "static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "public static void mainMenu() {\n\t\tStdDraw.setCanvasSize(600, 600);\n\t\tStdDraw.setScale(0, 1000);\n\t\tStdDraw.setPenColor(StdDraw.RED);\n\t\tStdDraw.filledRectangle(500, 500, 1000, 1000);\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tFont font = new Font(\"Sans Serif\", 20, 20);\n\t\tStdDraw.setFont(font);\n\t\tStdDraw.text(500, 850, \"Six Men Morris Game\");\n\t\tStdDraw.text(500, 750, \"Game Created By: \");\n\t\tStdDraw.text(500, 700, \"Phillip Pavlich, Prakhar Jalan, Dinesh Balakrishnan\");\n\t\tStdDraw.filledRectangle(500, 500, 205, 75);\n\t\tStdDraw.filledRectangle(500, 300, 205, 75);\n\t\tStdDraw.filledRectangle(500, 100, 205, 75);\n\t\t\n\t\tStdDraw.setFont();\n\t\tStdDraw.setPenColor(StdDraw.ORANGE);\n\t\tStdDraw.setPenRadius(0.05);\n\n\t\tStdDraw.filledRectangle(500, 500, 200, 70);\n\t\tStdDraw.filledRectangle(500, 300, 200, 70);\n\t\tStdDraw.filledRectangle(500, 100, 200, 70);\n\n\t\tStdDraw.setPenColor(StdDraw.BLACK);\n\t\tStdDraw.text(500, 500, \"Start New Game\");\n\t\tStdDraw.text(500, 300, \"Continue Game\");\n\t\tStdDraw.text(500, 100, \"Load Saved Game\");\n\t}", "public static void printMenu(){\n System.out.print(\"1. List all writing groups\\n\" +\n \"2. List all the data for one writing group\\n\"+\n \"3. List all publishers\\n\"+\n \"4. List all the data for one publisher\\n\"+\n \"5. List all books\\n\"+\n \"6. List all the data for one book\\n\"+\n \"7. Insert new book\\n\"+\n \"8. Insert new publisher\\n\"+\n \"9. Remove a book\\n\"+\n \"10. Quit\\n\\n\");\n }", "public void showTitleScreen() {\n frame.showMenu();\n }", "@Override\n\t\tpublic void openMenu() {\n\t\t}", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "protected void showSystemMenu() {\n windowMenu.doClick(0);\n }", "public static void archMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Architect Profile\");\n System.out.println(\"2 - Search for Architect Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "public void pressMainMenu() {\n }", "private static void displayRepoMenu() {\n\t\tSystem.out.println(\"\\t Repo Menu Help \\n\" \n\t\t\t\t+ \"====================================\\n\"\n\t\t\t\t+ \"su <username> : To subcribe users to repo \\n\"\n\t\t\t\t+ \"ci: To check in changes \\n\"\n\t\t\t\t+ \"co: To check out changes \\n\"\n\t\t\t\t+ \"rc: To review change \\n\"\n\t\t\t\t+ \"vh: To get revision history \\n\"\n\t\t\t\t+ \"re: To revert to previous version \\n\"\n\t\t\t\t+ \"ld : To list documents \\n\"\n\t\t\t\t+ \"ed <docname>: To edit doc \\n\"\n\t\t\t\t+ \"ad <docname>: To add doc \\n\"\n\t\t\t\t+ \"dd <docname>: To delete doc \\n\"\n\t\t\t\t+ \"vd <docname>: To view doc \\n\"\n\t\t\t\t+ \"qu : To quit \\n\" \n\t\t\t\t+ \"====================================\\n\");\n\t}", "public static void loadMainMenu()\n\t{\n\t\tinSubMenu = false;\n\t\t\n\t\tframe.getContentPane().remove(newGamePanel);\n\t\t\n\t\tmainLabel.setVisible(true);\n\t\t\n\t\tframe.getContentPane().add(mainPanel);\n\t\tframe.getContentPane().repaint();\n\t\tframe.setVisible(true);\n\t}", "public void initMenu(){\n\t}", "public static void printMenu()\r\n\t{\r\n\t\tSystem.out.println(\"A) Add Scene\");\r\n\t\tSystem.out.println(\"R) Remove Scene\");\r\n\t\tSystem.out.println(\"S) Show Current Scene\");\r\n\t\tSystem.out.println(\"P) Print Adventure Tree\");\r\n\t\tSystem.out.println(\"B) Go Back A Scene\");\r\n\t\tSystem.out.println(\"F) Go Forward A Scene \");\r\n\t\tSystem.out.println(\"G) Play Game\");\r\n\t\tSystem.out.println(\"N) Print Path To Cursor\");\r\n\t\tSystem.out.println(\"M) Move Scene\");\r\n\t\tSystem.out.println(\"Q) Quit\");\r\n\t\tSystem.out.println();\r\n\t}", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "public int displayMainMenu() {\n while (true) {\n int index = requestFromList(guestPresenter.getMenu(), true);\n if (index == -1) {\n return -1;\n }\n if (index == 0) {\n int id = logIn();\n if (id != -1) {\n return id;\n }\n }\n if (index == 1) {\n register();\n }\n }\n }", "@Override\n\tpublic void showContents() {\n\t\tt1.start();\n\t\tif (menuAnimation.title_showing())\n\t\t{\n\t\t\tprogram.add(Play);\n\t\t\tprogram.add(Settings);\n\t\t\tprogram.add(Credits);\n\t\t\tprogram.add(Exit);\n\t\t\tprogram.add(barrel);\n\t\t\tprogram.add(tank);\n\t\t\ttitle.setLocation(30,80);\n\t\t\ttitle.changeTransparent(1);\n\t\t\tprogram.add(title);\n\t\t\tbackground.setImage(\"otherImages/background.png\");\n\t\t\tbackground.setSize(900,620);\n\t\t\tbackground.setLocation(-50,0);\n\t\t\tbg.start();\n\t\t\tbackground.sendToBack();\n\t\t\tprogram.add(background);\n\t\t}\n\t}", "private void displayMenuOptions()\n {\n // display user options menu\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n System.out.println(\"COMMAND OPTIONS:\");\n System.out.println(\"\");\n System.out.println(\" 'on' to force power controller to ON state\");\n System.out.println(\" 'off' to force power controller to OFF state\");\n System.out.println(\" 'status' to see current power controller state\");\n System.out.println(\" 'sunrise' to display sunrise time.\");\n System.out.println(\" 'sunset' to display sunset time.\");\n System.out.println(\" 'next' to display next scheduled event.\");\n System.out.println(\" 'time' to display current time.\");\n System.out.println(\" 'coord' to display longitude and latitude.\");\n System.out.println(\" 'help' to display this menu.\");\n System.out.println(\"\");\n System.out.println(\"PRESS 'CTRL-C' TO TERMINATE\");\n System.out.println(\"\");\n System.out.println(\"----------------------------------------------------\");\n System.out.println(\"\");\n }" ]
[ "0.82881314", "0.8241537", "0.8206119", "0.804325", "0.7894385", "0.77765685", "0.77372414", "0.7734793", "0.7628095", "0.7606216", "0.7560275", "0.75600487", "0.75546455", "0.7554428", "0.75462615", "0.7538548", "0.7525449", "0.75063133", "0.7490616", "0.7456502", "0.7452195", "0.74414504", "0.7431004", "0.73956615", "0.73789394", "0.73758614", "0.7362696", "0.73583543", "0.73515326", "0.7327737", "0.731272", "0.7301627", "0.7286991", "0.72240615", "0.72235096", "0.7217451", "0.7207956", "0.7207663", "0.72066414", "0.7196713", "0.71856767", "0.7180481", "0.7179485", "0.71411127", "0.7138058", "0.7137185", "0.7115387", "0.71152085", "0.7099524", "0.70784295", "0.7069094", "0.7054965", "0.70534885", "0.70366096", "0.70348406", "0.7010239", "0.70021963", "0.6994563", "0.69810116", "0.69726825", "0.6969625", "0.6944947", "0.6938469", "0.69303626", "0.69151044", "0.6909494", "0.6907918", "0.69066876", "0.6897183", "0.689004", "0.6889904", "0.68834704", "0.68702465", "0.686575", "0.68639207", "0.68635136", "0.6854305", "0.68507373", "0.6850698", "0.6844987", "0.6831315", "0.68270504", "0.6824967", "0.68243223", "0.6814687", "0.6790427", "0.67873895", "0.67793494", "0.6767341", "0.6764075", "0.6756004", "0.6744025", "0.67418814", "0.6737341", "0.67281514", "0.672689", "0.6720817", "0.67196494", "0.6714081", "0.67011815", "0.66964006" ]
0.0
-1
Get the input until the user enter Integer
private int getValidInteger(String msg) { while (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) { System.out .print("Error ---> Enter Positive Integer Value:\n" + msg); scan.next(); } return choice; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int getIntegerInput() {\n\t\tScanner integer_input = new Scanner(System.in);\n\t\tboolean valid_inputType = false;\n\t\tint menu_option = -1;\n\t\t\n\t\t/*Repeatedly asks user to enter input until user enters an integer value as input*/\n\t\twhile(!valid_inputType){\n\t\t\ttry{\n\t\t\t\tmenu_option = integer_input.nextInt(); //get menu option to execute\n\t\t\t\tvalid_inputType = true;\n\t\t\t}\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.out.println(\"ERROR! Invalid Input Type: Input must be a number\");\n\t\t\t\tSystem.out.println(\"Re-enter input: \");\n\t\t\t\tinteger_input = new Scanner(System.in); //clears value previously in integer_input so that user can enter a new value into menu_option.\n\t\t\t}\n\t\t}\n\t\treturn menu_option;\n\t}", "public static Integer getInteger()\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(\"Please enter an integer\");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }", "private int getUserInput() {\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n int input = scanner.nextInt();\n while(input < 1 || input > 3) {\n System.out.println(\"only enter 1 2 or 3.\");\n input = scanner.nextInt();\n }\n return input;\n }", "public static Integer getInteger(String prompt)\n {\n Integer i = 0;\n while(true)\n {\n try\n {\n System.out.print(prompt + \" \");\n i = Integer.parseInt(in.nextLine());\n break;\n }\n catch(Exception e)\n {\n System.out.println(\"Not a valid Integer\");\n }\n }\n return i; \n }", "public static void WaitForKey(){\n // returns only if a correct value is given.\n do {\n System.out.println(\"Press any key to continue\");\n try { // read the integer, parse it and break.\n Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n //System.out.println(\"Your input is invalid!\");\n break;\n }//end try\n }while (true);\n }", "public static int getInt()\n {\n int num=0;\n while (true)\n {\n Scanner keyboard = new Scanner(System.in);\n try{\n num = keyboard.nextInt();\n return num;\n }\n catch (java.util.InputMismatchException textException)\n {\n System.out.printf(\"result:\");\n }\n }\n }", "public int user_integer() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (condition) {\n int user_input = input.nextInt();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return 0;\n }", "private int receiveNumberInput() {\n int number;\n while (true) {\n try {\n String temp = userInput.nextLine();\n number = Integer.parseInt(temp);\n break;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid Input. Please enter a valid number.\");\n continue;\n }\n\n }\n return number;\n }", "public static Integer scanInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "public static int inputInt(String p) {\n String tmp;\n int i = 0;\n\n do {\n System.out.print(p);\n try {\n tmp = in.nextLine();\n if (Integer.parseInt(tmp) == Integer.parseInt(tmp)) {\n i = Integer.parseInt(tmp);\n }\n break;\n } catch (Exception e) {\n System.err.print(\"You must be enter interger number, enter again.\\n\");\n }\n } while (true);\n return i;\n }", "private int getNumber() {\n while (!scanner.hasNextInt()) {\n scanner.nextLine();\n System.out.print(\"Please, Enter a munber : \");\n }\n return scanner.nextInt();\n }", "private static int validateInput() {\n Scanner genericInt = new Scanner(System.in);\n int number = 0;\n if (genericInt.hasNextInt()) {\n number = genericInt.nextInt();\n return number;\n }\n else {\n validateInput();\n }\n return number;\n }", "public int userInputInteger() {\n Scanner scanner = new Scanner(System.in);\n int userInputInteger;\n try {\n userInputInteger = Integer.parseInt(scanner.nextLine());\n } catch (NumberFormatException e) {\n System.out.print(\"Please input a valid Integer number: \");\n return userInputInteger();\n } finally {\n System.out.print(\"\");\n }\n return userInputInteger;\n }", "private void getInput() {\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter a number\");\r\n\t\tn=scan.nextInt();\r\n\r\n\t}", "public static int getValidInteger() {\n\n // This keeps looping until integer input is received.\n while (!scnr.hasNextInt()) {\n scnr.nextLine(); // clear the buffer\n System.out.print(\"Please enter an integer! \");\n }\n\n int integerNum = scnr.nextInt();\n scnr.nextLine();\n\n return integerNum;\n }", "private int intKeyboardInput() {\n\t\tint input = 0;\n\t\tboolean tryAgain = true;\n\t\twhile (tryAgain) {\n\t\t\ttry {\n\t\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t\tinput = scanner.nextInt();\n\t\t\t\ttryAgain = false;\n\t\t\t} catch (InputMismatchException ime) {\n\t\t\t\tSystem.out.println(\"Invalid input.\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "public static int integerValidation() {\n\t\tboolean flag = true;\n\t\tint input = 0;\n\t\tString temp = \"\";\n\t\twhile (flag) {\n\t\t\ttry {\n\t\t\t\ttemp = in.nextLine().trim();\n\t\t\t\tinput = Integer.parseInt(temp);\n\t\t\t\tflag = false;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Please Enter a valid input\");\n\t\t\t}\n\t\t}\n\t\treturn input;\n\t}", "private static int getNumberAnswer(){\r\n\t\tint answer=0;\r\n\t\tBoolean isNumber = false ;\r\n\t\tdo {\r\n\t\t\ttry{\r\n\t\t\t\tanswer = Integer.parseInt(input.nextLine());\r\n\t\t\t\tisNumber =true;\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e){\r\n\t\t\t\tSystem.out.println(\"Nope, that's not a number/integer.\");\r\n\t\t\t\tSystem.out.println(\"Provide an integer answer.\");\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tisNumber = false;\r\n\t\t\t}\r\n\t\t} while (!isNumber);\r\n\t\treturn answer;\r\n\t}", "private Integer askInt(String label){\n try{\n System.out.println(label);\n String input = in.nextLine();\n if (input.isEmpty()){\n return null;\n }\n else {\n return Integer.parseInt(input);\n }\n }\n catch(NumberFormatException e){\n return askInt(label);\n }\n }", "static int promptForNumber() {\n String input;\n int value = -1;\n\n\n while (value == -1) {\n System.out.print(\">\");\n\n if (Menus.reader.hasNext()) {\n input = Menus.reader.nextLine().strip();\n try {\n value = Integer.parseInt(input);\n } catch (NumberFormatException e) {\n value = -1;\n }\n }\n }\n return value;\n }", "private int getInput()\n {\n int input = 0;\n Scanner scanner = new Scanner(System.in);\n\n try {\n input = scanner.nextInt();\n }\n catch(Exception e) {\n System.out.println(\"Vælg et tal fra menuen.\");\n scanner.nextLine();\n }\n\n return input;\n }", "int getNumericalUserInput() {\n String input = userInput.next();\n int i = -1; //holds converted input\n boolean success = false;\n\n while (!success) {\n if (input.toLowerCase().equals(\"c\")) {\n i = -1;\n success = true;\n } else {\n try {\n i = Integer.parseInt(input);\n success = true;\n } catch (NumberFormatException e) {\n System.out.println(\"Invalid entry.\");\n break;\n }\n }\n }\n return i;\n }", "public static int inputInteger()\n\t{\n\t\treturn(sc.nextInt());\n\t}", "public static int getInput() {\n Scanner in = new Scanner(System.in);\n\n return in.nextInt();\n }", "private static int getN ()\n\t{\n\t int inputInt = 1;\n\t BufferedReader in = new BufferedReader (new InputStreamReader (System.in));\n\t String inStr = new String();\n\n\t try\n\t {\n\t inStr = in.readLine ();\n\t inputInt = Integer.parseInt(inStr);\n\t }\n\t catch (IOException e)\n\t {\n\t System.out.println (\"Could not read input, choosing 1.\");\n\t }\n\t catch (NumberFormatException e)\n\t {\n\t System.out.println (\"Entry must be a number, choosing 1.\");\n\t }\n\n\t return (inputInt);\n\t}", "public int checkValidate() {\n while (true) {\n if (scanner.hasNextInt()) {\n // Get input from user\n int choice = scanner.nextInt();\n scanner.nextLine(); // Remove enter key\n return choice; // Return choice\n } else {\n // Show out error if not an interger number\n System.out.println(\"Your inputted not an integer number!\");\n System.out.print(\"Choice again: \"); // Retype\n scanner.next();\n }\n }\n }", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "protected static int easyIn() {\n // ADDITIONAL CHECKS?\n int a;\n debug(\"Please enter your selection: \");\n scanner = new Scanner(System.in);\n\t\ta = scanner.nextInt();\n return a;\n }", "public Integer getData() {\r\n Scanner cs = new Scanner(System.in);\r\n int data = 0;\r\n while (true) {\r\n try {\r\n data = cs.nextInt();\r\n break;\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"You should insert an Integer\");\r\n cs.next();\r\n }\r\n }\r\n return data;\r\n }", "public static int readChoice() {\n int input;\n // returns only if a correct value is given.\n do {\n System.out.print(\"Please make your choice: \");\n try { // read the integer, parse it and break.\n input = Integer.parseInt(in.readLine());\n break;\n }catch (Exception e) {\n System.out.println(\"Your input is invalid!\");\n continue;\n }//end try\n }while (true);\n return input;\n }", "public int getInputForNumber() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\treturn Integer.parseInt(bufferedReader.readLine());\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getLocalizedMessage());\n\t\t\t}\n\t\t}\n\t}", "public static int awaitInt(String prefix) {\r\n System.out.print(prefix);\r\n Scanner scanner = new Scanner(System.in);\r\n String inputString = scanner.nextLine().trim().toUpperCase();\r\n\r\n try {\r\n int inputInt = Integer.parseInt(inputString);\r\n return inputInt;\r\n } catch (NumberFormatException e) {\r\n System.out.println(\"Please enter a valid number\");\r\n return awaitInt(prefix);\r\n }\r\n }", "public String user_string() {\n Scanner input = new Scanner(System.in);\n boolean conditional = true;\n while (conditional) {\n boolean condition = input.hasNextInt();\n if (!condition) {\n String user_input = input.nextLine();\n conditional = false; \n return user_input; \n }\n else {\n System.out.println(\"Invalid Input!\");\n conditional = true;\n input.next();\n }\n }\n return \"0\";\n }", "public static int getUserInput(){\r\n String input;\r\n Integer selection;\r\n while(true){\r\n try {\r\n input = JOptionPane.showInputDialog(null, \"Please enter the desired side size or press cancel for default size,\\n\"\r\n + \"you should enter a valid integer between 3 and 100.\");\r\n if (input == null) {\r\n selection = DEFAULT_SIZE;\r\n }\r\n else {\r\n selection = Integer.parseInt(input);\r\n if (selection > UPPER_BOUND) selection = UPPER_BOUND;\r\n else if (selection < LOWER_BOUND) selection = LOWER_BOUND;\r\n }\r\n break;\r\n }\r\n catch (NumberFormatException e){\r\n continue;\r\n }\r\n }\r\n return selection;\r\n \r\n }", "public static int f_number_user() {\n Scanner keyboard = new Scanner(System.in);\n System.out.println(\"Input the number\");\n int number = keyboard.nextInt();\n return number;\n }", "private static int getIntFromUser(String prompt)\n\t {\n\t System.out.print(prompt); // Prompt user to enter input value\n\t return input.nextInt(); // Read and return user's response\n\t }", "public static Integer getIntegerFromDialog(String prompt){\n Integer i = 0;\n while(true)\n {\n try\n {\n i = Integer.parseInt(JOptionPane.showInputDialog(prompt + \" \"));\n break;\n }\n catch(Exception e)\n {\n //System.out.println(\"Not a valid Integer\");\n break;\n }\n }\n return i;\n }", "public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }", "public static int checkInt() {\n\n\t{\n\t\tint userInput;\n\t\tboolean validInt = false;\n\t\tuserInput = 0;\n\t\tdo\n\t\t{\n\t\t\t\n\t\t\tScanner sc = new Scanner(System.in);\n\t\t\t\n\t\t\t//checks if the next entered value is an integer\n\t\t\tif (sc.hasNextInt())\n\t\t\t{\n\t\t\t // do-while loop breaks here\n\t\t\t\tuserInput = sc.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\tUserInterface.displayError(\"Input is not an integer. Please enter again\");\n\t\t\t}\n\t\t}while(validInt == false);\n\t\treturn userInput;\n\t}\n\n}", "public static int queryMenuInput(){\n System.out.println(queryMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\",\"4\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }", "private static Long userInputInt(String message) {\n\t\tLong result = 0L;\n\t\tboolean answer = false;\n\t\twhile (!answer) {\n\t\t\tSystem.out.println(message);\n\t\t\ttry {\n\t\t\t\tresult = scanner.nextLong();\n\t\t\t\tif (result >= 0) {\n\t\t\t\t\tanswer = true;\n\t\t\t\t} else {\n\t\t\t\t\tSystem.err.println(\"Please could you indicate a positive number.\");\n\t\t\t\t}\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.err.println(\"Your answer is not a correct number, please try again.\");\n\t\t\t} finally {\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private static int IntInput(){\n\t\tScanner input = new Scanner(System.in); \n\t\t// set the interger Value to less then the threshold minimum (-1)\n\t\tint Value = -1 ;\n\t\twhile (Value < 0){\n\t\t\tValue = input.nextInt();\n\t\t\tif (Value < 0){\n\t\t\t\tSystem.out.printf(\"The number must be greater than or equal to to 0 \\nPlease enter a different value: \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn Value;\n\t}", "public static int f_number_user(){\n Scanner keyboard=new Scanner(System.in);\r\n int digits;\r\n System.out.println(\"input the entire number \");\r\n digits=keyboard.nextInt();\r\n return digits;\r\n }", "private static int getInt()\n\t{\n\t\tScanner kb;\n\t\tint Val;\n\t\tkb = new Scanner(System.in);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\n\t\twhile (!kb.hasNextInt())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\tkb = new Scanner(System.in);\n\t\t}\n\t\t\n\t\tVal = kb.nextInt();\n\t\t\n\t\twhile (Val < 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Fail. Try harder!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\t\n\t\t\twhile (!kb.hasNextInt())\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\t\tkb = new Scanner(System.in);\n\t\t\t}\n\t\t\tVal = kb.nextInt();\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\treturn Val;\n\t\t\n\t}", "public static int userInput() {\n\n\t\tScanner myscanner = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter Number\");\n\t\tint userinput = 0;\n\n\t\t// validation to accept only numbers\n\t\ttry {\n\t\t\tuserinput = myscanner.nextInt();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Please enter only numbers\");\n\t\t}\n\n\t\treturn userinput;\n\n\t}", "private int takeChangeInput() {\n\t\tSystem.out.println(\"Enter desired change amount\");\n\n\t\tString amount = scan.next();\n\t\twhile (!amount.matches(\"\\\\d+\")) {\n\t\t\tSystem.out.println(\"Invalid input, please try again.\");\n\t\t\tamount = scan.next();\n\t\t}\n\n\t\tint change = Integer.valueOf(amount);\n\n\t\treturn change;\n\t}", "private int read()\r\n {\r\n Scanner keyboard = new Scanner(System.in);\r\n System.out.println(\"Enter the number: \");\r\n int i = keyboard.nextInt();\r\n if (i > 999999999){\r\n System.out.println(\"The number you have introduced is too big!\");\r\n i = read();\r\n }\r\n if (i < 0){\r\n System.out.println(\"The number you have introduced is negative!\");\r\n i = read();\r\n }\r\n return i;\r\n }", "public Integer readIntegerFromCmd() throws IOException {\r\n\t\tSystem.out.println(\"Enter your number:\");\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tString number = null;\r\n\t\tnumber = br.readLine();\r\n\t\treturn new Integer(number);\r\n\t}", "public static int input(int grade){\n Scanner myScanner=new Scanner(System.in);\n boolean flag=true;\n while(flag){ \n if(myScanner.hasNextInt()){\n while(flag){\n grade=myScanner.nextInt();\n if(grade>=0&&grade<=100){ \n flag=false;break;}\n else{\n System.out.println(\"ERROR: Please input an integer between 0-100.\");// if input is not in range 0-100, then reinput\n System.out.print(\"Please input again: \");\n flag=true; }}}\n else{\n System.out.println(\"ERROR: Please input an integer.\"); // if input is not an integer, then reinput\n System.out.print(\"Please input again: \");\n myScanner.next();flag=true;}}\n return grade; }", "public static Integer nextInteger(String prompt)\n { // Gets an integer value.\n int originalLength = prompt.length();\n boolean done = false;\n Integer i = null;\n String input;\n\n\n // Get the integer.\n while (!done)\n {\n input = JOptionPane.showInputDialog(prompt);\n if (input == null || input.isEmpty())\n {\n break;\n }\n\n // Try to get something meaningful out of this.\n try\n {\n i = Integer.parseInt(input);\n done = true;\n }\n catch (NumberFormatException ex)\n {\n // Change the prompt if we need to do so.\n if (prompt.length() == originalLength)\n {\n prompt = \"Please enter a numeric value.\\n\" + prompt;\n }\n }\n }\n\n // Return the integer that was entered.\n return i;\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public int getInt(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n Integer num = Integer.valueOf(item);\n return num.intValue();\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public static int userInput(int maxNum) {\n Scanner scan = new Scanner(System.in);\n int userInput = 0;\n\n // unchecked exception for user input\n do {\n try {\n System.out.println(\"Please input a number between 1 and \" + maxNum);\n userInput = Integer.parseInt(scan.nextLine());\n } catch (NumberFormatException e) {\n System.out.println(\"Not a number. Please try again.\");\n }\n } while (userInput < 1 || userInput > maxNum);\n\n System.out.println(\"You entered \" + userInput + \"\");\n\n return userInput;\n }", "public static int getNumber(){\r\n\t\tint number=0;\r\n\t\twhile(true){\r\n\t\t\tString value = \"\" + input.next().charAt(0);\r\n\t\t\tif(Character.isDigit(value.charAt(0))){\r\n\t\t\tnumber = Integer.parseInt(value);\r\n\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"Incorrect input! try again.\");\r\n\t\t}\r\n\t\treturn number;\r\n\t}", "static int checkIfInt(int check)\n {\n Scanner input = new Scanner(System.in);\n String str;\n int temp=0;\n int hold = 0;\n do{\n output(check);\n if(input.hasNextInt())\n {\n temp = input.nextInt();\n if(temp >0)\n {\n break;\n }\n }\n str = input.nextLine();\n if(check != 1)\n {\n count++;\n }\n System.out.println(\"Sorry. That's not a valid input\");\n }while(hold == 0);\n return temp;\n }", "public int getUserGuess(){\n int n;\n\n System.out.print(\"Guess a number between 1 and 100:\\t\"); // Prompts for input\n while (!scanner.hasNextInt()) { // Checks to see if input is an integer\n System.out.print(\"Enter a number please: \\t\");\n scanner.next();\n }\n\n n = scanner.nextInt();\n return n;\n }", "static int getStudentID() {\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tScanner s = new Scanner(System.in);\n\t\t\t\tSystem.out.print(\"Enter in student ID: \");\n\t\t\t\tint sID = s.nextInt();\n\t\t\t\treturn sID;\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tSystem.out.println(\"Please enter in an integer for student ID\");\n\t\t\t}\n\t\t}\n\t}", "public static int mainMenuInput(){\n System.out.println(mainMenu);\n String input = sc.nextLine();\n String[] valid = {\"1\",\"2\",\"3\"};\n if(Arrays.asList(valid).contains(input)){\n return Integer.parseInt(input);\n } else {\n return -1;\n }\n }", "public int getUserIntInput(String question) {\r\n System.out.print(question);\r\n while (!scanner.hasNextInt()) {\r\n scanner.next();\r\n }\r\n int result = scanner.nextInt();\r\n return result;\r\n }", "private int readIntWithPrompt (String prompt) {\n System.out.print(prompt); System.out.flush();\n while (!in.hasNextInt()) {\n in.nextLine();\n System.out.print(prompt); System.out.flush();\n }\n int input = in.nextInt();\n in.nextLine();\n return input;\n }", "public int getInteger(String prompt) {\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tString item = getToken(prompt);\r\n\t\t\t\tInteger number = Integer.valueOf(item);\r\n\t\t\t\treturn number.intValue();\r\n\t\t\t} catch (NumberFormatException nfe) {\r\n\t\t\t\tSystem.out.println(\"Please input a number.\");\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t}", "private static String validateInputStr() {\n String str = \"\";\n Scanner genericString = new Scanner(System.in);\n if (!genericString.hasNextInt()) {\n str = genericString.nextLine();\n return str;\n }\n else {\n validateInputStr();\n }\n return str;\n }", "public static int getInt(String prompt) throws Exception {\n if (scanner == null) {\n throw new Exception(\"Input Utility's scanner is not set\");\n }\n String localPrompt = prompt;\n boolean validInput = false;\n int num = 0;\n\n // enter the number\n do {\n if (localPrompt != null) {\n System.out.print(localPrompt);\n }\n try { // If (works)\n num = scanner.nextInt();\n scanner.nextLine();\n validInput = true;\n } catch (InputMismatchException ime) { // else (fails)\n System.out.println(\"That is not an integer.\");\n scanner.nextLine();\n if (localPrompt == null)\n localPrompt = \"Enter an integer: \";\n num = 0;\n }\n } while (!validInput);\n return num;\n }", "public static int inputInt(String prompt) {\n String errorMsg = \"Must be a positive integer >= 0\\n\";\n\n int input = -1;\n // keep prompting user until int >= 0 is input\n while (input < 0) {\n // print prompt\n System.out.print(prompt);\n\n // if the user input an int\n if (GolferScoresTree.scanner.hasNextInt()) {\n // scan the user input\n input = GolferScoresTree.scanner.nextInt();\n\n // if the input is < 0, it is invalid\n if (input < 0) {\n // print error message defining a valid value\n System.out.println(errorMsg);\n // loops and prompt user for another input\n }\n }\n // else if the user did not input an int, input is invalid\n else {\n System.out.println(errorMsg);\n }\n }\n\n return input;\n }", "private int takeCoinInput() {\n\t\tSystem.out.println(\"Enter a denomination\");\n\n\t\tString denomination = scan.next();\n\t\twhile (!denomination.matches(\"\\\\d+\")) {\n\t\t\tSystem.out.println(\"Invalid input, please try again.\");\n\t\t\tdenomination = scan.next();\n\t\t}\n\n\t\tint coin = Integer.valueOf(denomination);\n\n\t\treturn coin;\n\t}", "public static int promptUserForInt(String prompt){\n Scanner scannerln = new Scanner(System.in);\n System.out.print(prompt);\n return scannerln.nextInt();\n }", "private static int getUserOption () {\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint input;\n\t\t\n\t\tdo {\n\t\t\tlistMainMenuOptions();\n\n\t\t\ttry {\n\t\t\t\tinput = Integer.parseInt(myReader.readLine());\n\n\t\t\t\tif ((input < 1) || (input>9)) {\n\t\t\t\t\tSystem.out.println(\"Please type in a number between 1-9 according to your choice\");\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid. Please enter a number from 1-9 according to your choice\");\n\t\t\t\tinput = 0;\n\t\t\t}\n\t\t\t\n\t\t}while ((input < 1) || (input>9));\n\n\t\treturn input;\n\t\t\n\t}", "private int insertSearchMenuAnswer()\n {\n boolean valid = false;\n String answer = \"\";\n Scanner content = new Scanner(System.in);\n \n while (!valid)\n {\n menu.searchOptions();\n answer = content.nextLine().trim();\n valid = validation.integerValidation(answer, 1, 3);\n }\n \n int ans = Integer.parseInt(answer);\n return ans;\n }", "public int readInt() {\n\t\tif(!isInit) return 0;\n\t\tint result = 0;\n\t\tisListening = true;\n\t\twriteLine(\"Waiting for Integer input...\");\n\t\twhile(isListening) {\n\t\t\ttry {\n\t\t\t\tresult = Integer.parseInt(inputArea.getText());\n\t\t\t} catch(NumberFormatException nfe) {\n\t\t\t\tresult = 0;\n\t\t\t}\n\t\t}\n\t\tinputArea.setText(\"\");\n\t\twriteLine(\"Input: \" + result);\n\t\treturn result;\n\t}", "public static int getUserOption(){\n\n String numberAsString;\n int userOption;\n java.util.Scanner scanner = new java.util.Scanner(System.in);\n\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n while ( ( userOption < 0 )|| (userOption > 4 ) ) { // check if input is valid\n System.out.println(\"You did not enter a valid option. Try again.\");\n listMenuOptions();\n numberAsString = scanner.nextLine();\n userOption = Integer.parseInt(numberAsString); // Convert string to a integer\n }\n return userOption;\n }", "private static int userInterface()\n {\n int uinput = 0;\n boolean badInput = true;\n\n System.out.println(\"This program will print a table of x\");\n System.out.println(\"and f(x) for x from 0 to the user\");\n System.out.println(\"inputted integer with f(x) being\");\n System.out.println(\"equal to:\");\n System.out.println(\"x^2 for x < 5\");\n System.out.println(\"x^2 - 3x - 10 for 5 <= x < 10\");\n System.out.println(\"x^2 - 7x - 8 for 10 <= x.\");\n \n Scanner read = new Scanner(System.in);\n System.out.print(\"Enter number of x: \");\n \n while (badInput)\n {\n if (read.hasNextInt())\n {\n uinput = read.nextInt();\n \t \tbadInput = false;\n\n if (uinput <= 0)\n {\n System.out.print(\"Enter a positive integer: \");\n badInput = true;\n }\n }\n else\n {\n \tSystem.out.print(\"Enter a positive integer: \");\n \t \tbadInput = true;\n \t }\n read.nextLine();\n }\n\n return uinput;\n }", "public static int askUser(Scanner in)\n {\n System.out.println(\"What do you want, respectable human being?\");\n System.out.println(\"1. Add Reminder\");\n System.out.println(\"2. View Reminder\");\n System.out.println(\"3. Edit Reminder\");\n System.out.println(\"4. Delete Reminder\");\n System.out.println(\"5. Exit\");\n System.out.print(\"User Input : \");\n return in.nextInt();\n }", "public static int ReadNum(InputStream input,PrintStream output) {\r\n\t\t//Scanner in = new Scanner(System.in);\r\n\t\tScanner in = new Scanner(new FilterInputStream(input){public void close(){}});\r\n\t\tin.reset();\r\n\t\toutput.println(\"Please provide with a positive intiger.\\nNegative intiger will terminate the loop\");\r\n\t\tint num;\r\n\t\ttry {\r\n\t\t\tnum = Integer.parseInt(in.next()); // To do: Verify user input\r\n\t\t} catch (InputMismatchException e) { // Catch input mismatch Exception\r\n\t\t\toutput.printf(\"Invalid input:\\\"%s\\\" :( . Please provide an integer.\\n\",in.next());\r\n\t\t\tnum = ReadNum(input, output);\r\n\t\t}finally{\r\n\t\t\t//do nothing\r\n\t\t\t//\r\n\t\t}\r\n\t\tin.close();\r\n\t\treturn num;\r\n\t}", "public static int sLlegirNumero(String Text){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n int iNumero;\r\n \r\n System.out.print(Text);\r\n iNumero = sc.nextInt();\r\n \r\n return iNumero;\r\n }", "private int nextPick(Scanner scanner) {\n String input = scanner.nextLine();\n try {\n int result = Integer.parseInt(input);\n return result;\n } catch (Exception e) {\n System.out.println(\"Enter a number from the menu.\");\n return -1;\n }\n\n }", "private static int getIntReply(String prompt) {\n System.out.print(prompt + \": \");\n String input = sc.nextLine();\n if (input.charAt(0) < 48 || input.charAt(0) > 57) {\n System.out.println(\"Invalid input\");\n return -1;\n } else return Integer.parseInt(input);\n }", "public static int promptInt(Scanner console) {\n int num = 0;\n try {\n num = console.nextInt();\n } catch (InputMismatchException e) {\n console.next();\n }\n return num;\n }", "public static int getInt(String prompt) {\n Scanner sc = new Scanner(System.in);\n int userInput;\n\n System.out.println(prompt);\n\n try {\n userInput = sc.nextInt();\n sc.close();\n return userInput;\n } catch (InputMismatchException e) {\n return getInt(prompt);\n }\n\n }", "private int errorCheckingInt(String display) {\n\n\t\tint tempChoice;\n\t\tScanner input = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\tSystem.out.print(\"\\n\" + display);\n\t\t\ttry {\n\t\t\t\ttempChoice = input.nextInt();\n\t\t\t\tif(display.equals(\"Enter number of kids: \")) { //only for kids\n\t\t\t\t\tif(tempChoice < 0)\n\t\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\t}\n\t\t\t\telse if (tempChoice < 1)\n\t\t\t\t\tthrow new IllegalArgumentException(\"Error input\\n\");\n\t\t\t\tbreak;\n\t\t\t} catch (InputMismatchException e) {\n\t\t\t\tSystem.out.println(\"Error input \\n\");\n\t\t\t\tinput.next();\n\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\tSystem.out.println(e);\n\t\t\t}\n\t\t}\n\n\t\tinput.nextLine();\n\n\t\treturn tempChoice;\n\t}", "public static int readInt(){\n\t\tSystem.out.println();\n\t\tstringInput = readInput();\n\t\ttry{\n\t\t\tintInput = Integer.parseInt(stringInput);\n\t\t}\n\t\tcatch (NumberFormatException ex) {\n\t\t System.err.println(\"Not a valid number: \" + stringInput);\n\t\t}\n\t\treturn intInput; \t\t\n\t}", "public int getInput() {\n setEnableDigitInput(true);\n synchronized (inputLock) {\n try {\n inputLock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n int result;\n try {\n result = Integer.parseInt(inputBuffer);\n } catch (NumberFormatException e) {\n resetInput();\n result = getInput();\n }\n resetInput();\n return result;\n }", "public static int getIntInput(Scanner console, int min, int max)\n {\n if (console.hasNextInt())\n {\n int num = console.nextInt();\n console.nextLine();\n if (min <= num && num <= max)\n {\n return num;\n }\n }\n console.nextLine();\n System.out.print(\"Invalid input. Please enter an integer between \" + min + \" and \" + max +\": \");\n return getIntInput(console, min, max);\n }", "public static int getNumber(Scanner input) {\r\n int number = 6;\r\n try {\r\n while (true) {\r\n System.out.print(\"Input a number: \");\r\n if (input.hasNextInt())\r\n number = input.nextInt();\r\n else {\r\n System.out.println(\"Incorrect input!\");\r\n input.next();\r\n continue;\r\n }\r\n break;\r\n }\r\n } catch (Exception ignored) { }\r\n return number;\r\n }", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}", "private static int readIdFromConsole() {\n\t\tboolean validInput = false; \n\t\tint id = -1; \n\t\twhile (! validInput) {\n\t\t\ttry {\n\t\t\t\tOut.print(\" Bitte Id eingeben: \");\n\t\t\t\tid = Integer.parseInt(In.readLine());\n\t\t\t\tif (id > 0) validInput = true; \n\t\t\t\telse Out.print(\" Falsche Eingabe!\");\n\t\t\t} catch (Exception e) {\n\t\t\t\tOut.print(\" Falsche Eingabe!\");\n\t\t\t}\n\t\t}\n\t\treturn id; \n\t}", "private static void requestInput() {\n Scanner in = new Scanner(System.in);\n System.out.println(\"Enter Item ID\");\n int usedId = 0;\n int usedWithId = 0;\n int level = 0;\n int productId = 0;\n int xp = 0;\n int low = 0;\n int high = 0;\n Scanner scanner = new Scanner(System.in);\n while (true) {\n try {\n usedId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Secondary Item ID\");\n usedWithId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Level Requirement\");\n level = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Product Item ID\");\n productId = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Action XP\");\n xp = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter Low Roll\");\n low = Integer.parseInt(in.nextLine());\n\n System.out.println(\"Enter High Roll\");\n high = Integer.parseInt(in.nextLine());\n\n createPotionAction(usedId, usedWithId, level, productId, xp, low, high);\n } catch (NumberFormatException e) {\n System.out.println(\"Please input an integer.\");\n }\n }\n }", "public static int inputMes(){\r\n Scanner sc = new Scanner(System.in);\r\n \r\n // creamos while-loop, si el formato del numero es incorrecto la pregunta se repute\r\n while(true){\r\n System.out.print(\"Intoduce un mes en formato numerico: \");\r\n \r\n // ponems InputMismactException si el usuario no introduce el numero entero\r\n try{\r\n mes = sc.nextInt();\r\n return mes;\r\n }\r\n \r\n catch(InputMismatchException ex){\r\n System.out.println(\"Formato incorrecto!\");\r\n sc.nextLine();\r\n } \r\n }\r\n }", "private void getInput() {\n\t\tSystem.out.println(\"****Welcome to TNEB online Payment*****\");\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Enter your current unit\");\r\n\t\tunit = scan.nextInt();\r\n\t}", "public static int solicitarSueldo(){\n int sueldo;\r\n Scanner teclado = new Scanner(System.in);\r\n System.out.println(\"Introduce sueldo\");\r\n sueldo= teclado.nextInt();\r\n return sueldo;\r\n }", "private static int getInt(String prompt) {\n \t\n Scanner input;\n \n int result = 10; // default if there's no input\n \n \n try {\n \n \tinput = new Scanner(System.in);\n \n System.out.println(prompt);\n \n result = input.nextInt(); //take input\n \n //in case user enters something else than int\n } catch (NumberFormatException e) {\n System.out.println(\"Could not convert to int\");\n System.out.println(e.getMessage());\n System.out.println(\"Value has been set to default (10)\");\n \n //other error exception\n } catch (Exception e) {\n System.out.println(\"There was an error with System.in\");\n System.out.println(e.getMessage()); \n System.out.println(\"Value has been set to default (10)\");\n }\n return result;\n }", "public void takeInput() {\n\t\tboolean flag = true;\n\t\tMain test = new Main();\n\t\twhile(flag) {\n\t\t\tLOGGER.info(\"Enter an option 1.Calculate Simple Interest 2.Calculate Compound Interest 3.exit\");\n\t\t\tint val = sc.nextInt();\n\t\t\tswitch(val) {\n\t\t\tcase 1:\n\t\t\t\ttest.takeInputForSimpleInterest();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\ttest.takeInputForCompoundInterest();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tLOGGER.info(\"Enter valid input\");\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private int pickIdNumber(String type) {\n\t\tint xGetNum = -1;\n\t\ttry {\n\t\t\tSystem.out.println(\"\\nEnter the number 0 if the \" + type + \" is NOT on the list. \");\n\t\t\tSystem.out.print(\"Enter the \" + type + \"'s ID# : \");\n\t\t\txGetNum = Integer.parseInt(scanner.nextLine());\n\t\t\t//return xGetNum;\n\t\t\t}\n\t\t\tcatch(NumberFormatException e) {\n\t\t\t\tSystem.out.println(\"\\n\\t*****\\tSelection must be a number\\t*****\");\n\t\t\t}\t\t\n\t\treturn xGetNum;\t\t\n\t}", "public int lecturaNumero()\n {\n boolean error = false; \n int numero = 0;\n System.out.print(\">\");\n try {\n numero = lectura.nextInt();\n\n } catch (InputMismatchException ime){\n error = true; \n lectura.next();\n }\n if (!error){\n return numero; \n }else{\n return -1;\n }\n }", "public void execute() {\n String input;\n boolean isInputValid;\n\n do {\n isInputValid = true;\n\n System.out.print(\"Please send me the numbers using space between them like \\\"1 2 3\\\": \");\n input = sc.nextLine();\n\n try {\n validateData(input);\n } catch (NumberFormatException e) {\n System.err.println(\"NumberFormatException \" + e.getMessage());\n isInputValid = false;\n }\n\n } while (!isInputValid);\n\n System.out.println(\"Result: \" + find(input));\n }", "public static int prompt_input1(int mx){\n System.out.print(\"Please select your option: \");\n String choice = in.nextLine(); \n boolean invalid = !U.isInteger(choice);\n int c=-1;\n if(!invalid)c = Integer.parseInt(choice)-1;\n while(invalid||c<0||c>=mx){\n System.out.println(\"Invalid Input.\");\n System.out.printf(\"%s %d %s %d: \",\"Enter your choice between\",1,\"-\",mx);\n choice = in.nextLine(); \n invalid = !U.isInteger(choice);\n if(!invalid)c = Integer.parseInt(choice)-1;\n //System.err.println(\"choice: \"+choice);\n }\n return c;\n }", "public static int getInt(Scanner console, String prompt) {\r\n System.out.print(prompt);\r\n while (!console.hasNextInt()) {\r\n console.next(); // to discard the input\r\n System.out.println(\"Not an integer; try again.\");\r\n System.out.print(prompt);}return console.nextInt();\r\n }", "public static int askInt(String message) {\n return askObject(message, \"Please enter a Number!\", Scanner::nextInt);\n }", "int promptNumber();", "public int parseInt() {\n\t\tboolean validInt = false;\n\t\tint num = -1;\n\t\twhile(!validInt) {\n\t\t\ttry {\n\t\t\t\tnum = scanner.nextInt();\n\t\t\t\tvalidInt = true;\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(ConsoleColors.RED +\"Invalid input. Please enter a number\" + ConsoleColors.RESET);\n\t\t\t\tscanner.next();\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}", "boolean isInt(TextField input);" ]
[ "0.7999455", "0.7951633", "0.7612444", "0.75928396", "0.75886244", "0.7576665", "0.75703615", "0.754852", "0.74515283", "0.74399155", "0.74378604", "0.7414507", "0.7334872", "0.7310743", "0.72187775", "0.72180283", "0.7212801", "0.7187389", "0.71580356", "0.7157686", "0.71466494", "0.7118056", "0.71015084", "0.70965093", "0.70716774", "0.70148903", "0.700291", "0.69751483", "0.6974861", "0.6966212", "0.6954297", "0.6938962", "0.6929565", "0.68803924", "0.6856369", "0.6827791", "0.6815318", "0.6803858", "0.67887133", "0.6784538", "0.6783304", "0.6782894", "0.6767991", "0.6743752", "0.6710451", "0.670645", "0.6702096", "0.66906357", "0.6673199", "0.6656157", "0.66543084", "0.66543084", "0.66414124", "0.6637793", "0.6631475", "0.66314244", "0.6608845", "0.66036767", "0.65975666", "0.6570169", "0.6567295", "0.6536845", "0.6519323", "0.6501751", "0.6489681", "0.64885557", "0.6475265", "0.6474739", "0.647421", "0.6473027", "0.6468353", "0.6461556", "0.64601135", "0.6450535", "0.6441556", "0.64239", "0.6403143", "0.640196", "0.63806444", "0.6378574", "0.6378224", "0.6344343", "0.63283914", "0.6328229", "0.63248754", "0.631971", "0.6318185", "0.6314139", "0.63055915", "0.62983704", "0.6284695", "0.62840146", "0.62728053", "0.6269089", "0.6255427", "0.6250251", "0.62403417", "0.62364125", "0.623383", "0.62264436" ]
0.6292963
90
Display the cart menu
private void cart() { boolean back = false; while (!back) { System.out.println("1.Display Cart"); System.out.println("2.Remove Product From Cart"); System.out.println("3.Edit Product in Cart"); System.out.println("4.Checkout"); System.out.println("5.Back"); System.out.println("Enter Your Choice:-"); choice = getValidInteger("Enter Your Choice :-"); switch (choice) { case 1: CartController.getInstance().displayCart(); break; case 2: removeProduct(); break; case 3: editProduct(); break; case 4: checkout(); break; case 5: back = true; break; case 6: System.out.println("Enter Correct Choice :-"); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}", "private static void displayCartMenu() {\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please make your choice, by entering the assigned number\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" 1: Remove an item from the cart\");\r\n\t\tSystem.out.println(\" 2: Modify the number of a certain item in the cart\");\r\n\t\tSystem.out.println(\" 3: Checkout cart\");\r\n\t\tSystem.out.println(\" 0: Quit to main manu\");\r\n\t\tint value = getValidUserInput(scanner, 4);\r\n\t\tswitch (value) {\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" Going back to main menu\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tremoveItemFromCart();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tmodifyItemNumberInCart();\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcheckoutCart();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}", "public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "public void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }", "public static void viewCart() {\n click(CART_BUTTON);\n click(VIEW_CART_BUTTON);\n }", "public static void goToCart() {\n click(SHOPPING_CART_UPPER_MENU);\n }", "public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }", "public void displayMenu() {\r\n\t\tSystem.out.println(\"Enter a number between 0 and 8 as explained below: \\n\");\r\n\t\tSystem.out.println(\"[\" + ADD_CUSTOMER + \"] Add a customer.\");\r\n\t\tSystem.out.println(\"[\" + ADD_MODEL + \"] Add a model.\");\r\n\t\tSystem.out.println(\"[\" + ADD_TO_INVENTORY + \"] Add a washer to inventory.\");\r\n\t\tSystem.out.println(\"[\" + PURCHASE + \"] Purchase a washer.\");\r\n\t\tSystem.out.println(\"[\" + LIST_CUSTOMERS + \"] Display all customers.\");\r\n\t\tSystem.out.println(\"[\" + LIST_WASHERS + \"] Display all washers.\");\r\n\t\tSystem.out.println(\"[\" + DISPLAY_TOTAL + \"] Display total sales.\");\r\n\t\tSystem.out.println(\"[\" + SAVE + \"] Save data.\");\r\n\t\tSystem.out.println(\"[\" + EXIT + \"] to Exit\");\r\n\t}", "public void cartMenu(int userId) {\n System.out.println(Constants.DECOR+\"WELCOME TO CART MENU\"+Constants.DECOR_END);\n int choice = InputUtil.getInt(Constants.CART_MENU);\n while(4 >= choice) {\n switch(choice) {\n case 1:\n showAllProducts();\n getCartProducts(userId);\n showCart(userId);\n break;\n\n case 2:\n removeCart(userId);\n showCart(userId);\n break;\n \n case 3:\n modifyCart(userId);\n showCart(userId);\n break;\n \n case 4:\n showCart(userId);\n break;\n\n }\n choice = InputUtil.getInt(Constants.CART_MENU);\n if(5 == choice) {\n showCart(userId);\n break;\n }\n } \n }", "public static void displayMenu(){\n //*Displays the Menu\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Food Item\", \"Size\", \"Options\", \"Price\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"---------\", \"----\", \"-------\", \"-----\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Drink\", \"S,M,L\", \"Sprite, Rootbeer, and Orange Fanta\", \"$5.50 for small, +$.50 for each size increase\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Burger\", \"N/A\", \"Extra Patty, bacon, cheese, lettuce\", \"$3.00 for a burger, +$.50 for additional toppings\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"tomato, pickles, onions\", \"\\n\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"Pizza\", \"S,M,L\", \"Pepperoni, sausage, peppers, chicken\", \"$5.00 for small, +$2.50 for each size increase,\" );\n System.out.printf( \"%-15s%-10s%-40s%-5s\\n\", \"\", \"\", \"salami, tomatoes, olives, anchovies\", \"+$1.00 for each extra topping\" );\n }", "private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }", "private static void displayMenu() {\n System.out.println(\"Menu : \");\n System.out.println(\"Type any number for selection\");\n for (int i = 1; i <= totalPlayers; i++) {\n System.out.println(i + \")View \" + playerList.get(i - 1) + \" cards\");\n }\n System.out.println(\"8)Display Each Player's Hand Strength\");\n System.out.println(\"9)Declare Winner\");\n System.out.println(\"10)Exit\");\n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "public void showMenu()\r\n {\r\n System.out.println(\"Enter Truck order: \");\r\n \r\n super.showCommon();\r\n \r\n \r\n super.showMenu(\"What size truck is this? \", SIZE);\r\n \r\n \r\n \r\n \r\n \r\n \r\n super.showMenu(\"What is the engine size of the truck?\", ENGINE_SIZE);\r\n \r\n \r\n \r\n }", "private static void displayMenu() {\n\t\tSystem.out.println(\"\\n\\nWelcome to Seneca@York Bank!\\n\" +\n\t\t\t\t\"1. Open an account.\\n\" +\n\t\t\t\t\"2. Close an account.\\n\" +\n\t\t\t\t\"3. Deposit money.\\n\" +\n\t\t\t\t\"4. Withdraw money.\\n\" +\n\t\t\t\t\"5. Display accounts. \\n\" +\n\t\t\t\t\"6. Display a tax statement.\\n\" +\n\t\t\t\t\"7. Exit\\n\");\n\t}", "private void goToShop() {\n shopMenu.runMenu();\n }", "public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}", "public void printCarte() {\r\n\r\n\t\tSystem.out.println(\"Welcome to Yoyo-Restaurant <3\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"-<3----<3----<3----<3----<3----<3----<3----<3----<3----<3\");\r\n\t\tSystem.out.println(\"Our Menu \");\r\n\t\tfor (Menu menu : items) {\r\n\t\t\tmenu.print();\r\n\t\t}\r\n\r\n\t}", "private void printToolListMenu(Shop shop) {\n System.out.println(shop.getInventory());\n }", "private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}", "public void Cart_icon() {\r\n\t\tthis.Cart_icon.click();\r\n\t}", "@GetMapping(\"/show-cart\")\r\n\tpublic List<Cart> showCart() throws CartEmptyException {\r\n\t\tlog.info(\"showCart -Start\");\r\n\t\t//Cart cart = null;\r\n\t\tList<Cart> cart;\r\n\t\tcart = service.getAllCartItems(1);\r\n\t\tint total=0;\r\n\t\tif(cart.size()==0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor(Cart carts:cart)\r\n\t\t{\r\n\t\t\ttotal+=carts.getMenuItem().getPrice();\r\n\t\t}\r\n\t System.out.println(\"*************************************************\"+total);\r\n\t\tlog.info(\"showCart -End\");\r\n\t\treturn cart;\r\n\r\n\t}", "private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }", "@Override\n protected int generateMenuScreen() {\n printHeader(\"Checkout\");\n System.out.println(\"1) Checkout\");\n System.out.println(\"2) Reprint Invoice\");\n System.out.println(\"3) Back to main menu\");\n System.out.println(\"0) Exit Application\");\n printBreaks();\n\n int choice = doMenuChoice(34, 0);\n switch (choice) {\n case 1:\n if (checkout()) {\n System.out.println();\n return -1; // If completed, go back to main menu\n }\n System.out.println();\n break;\n case 2:\n reprint();\n break;\n case 3:\n return -1;\n case 0:\n return 1;\n\n default:\n throw new MenuChoiceInvalidException(\"Checkout\");\n }\n return 0;\n }", "public void displayCartContents() {\r\n for (int i = 0; i < numItems; i++) { // Checks all objects in the cart\r\n if ((cart[i].getContents() != \"\")) { // If not item\r\n System.out.println(cart[i].getDescription()); // Display bag description\r\n System.out.println(cart[i].getContents()); // Display contents of bag\r\n } else { // Else it must be item\r\n System.out.println(cart[i].getDescription()); // Display item description\r\n }\r\n }\r\n }", "public static void customerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the customers\");\n System.out.println(\"2 - Would you like to search for a customer's information\");\n System.out.println(\"3 - Adding a new customer's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "private void printMenu() {\n\t\tSystem.out.printf(\"\\n********** MiRide System Menu **********\\n\\n\");\n\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Create Car\", \"CC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Book Car\", \"BC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Complete Booking\", \"CB\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Display ALL Cars\", \"DA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Specific Car\", \"SS\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Search Available Cars\", \"SA\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Seed Data\", \"SD\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Load Cars\", \"LC\");\n\t\tSystem.out.printf(\"%-30s %s\\n\", \"Exit Program\", \"EX\");\n\t\tSystem.out.println(\"\\nEnter your selection: \");\n\t\tSystem.out.println(\"(Hit enter to cancel any operation)\");\n\t}", "private void displayMenu() {\n\t\tSystem.out.println(\"********Loan Approval System***********\");\n\t\tSystem.out.println(\"\\n\");\n\t\tSystem.out.println(\n\t\t\t\t\"Choose the following options:\\n(l)Load Applicaitons\\n(s)Set the Budget\\n(m)Make a decision\\n(p)Print\\n(u)Update the application\");\n\n\t}", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"AVAILABLE ORDERS\");\n\t\tSystem.out.println(\"================\");\n\t\tSystem.out\n\t\t\t\t.println(\"HELP - shows information on \" +\n\t\t\t\t\t\t\"available orders\");\n\t\tSystem.out\n\t\t\t\t.println(\"DIR - displays the content \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t .println(\"DIRGALL - displays the content\" +\n\t\t\t\t \" of current directory\");\n System.out\n\t\t .println(\" and all its internal\" +\n\t\t\t\t \" subdirectories\"); \t\t\n\t\tSystem.out\n\t\t\t\t.println(\"CD dir - changes the current \" +\n\t\t\t\t\t\t\"directory to its subdirectory [dir]\");\n\t\tSystem.out\n\t\t\t\t.println(\"CD .. - changes the current \" +\n\t\t\t\t\t\t\"directory to its father directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"WHERE - shows the path and name \" +\n\t\t\t\t\t\t\"of current directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"FIND text - shows all the images \" +\n\t\t\t\t\t\t\"whose name includes [text]\");\n\t\tSystem.out\n\t\t\t\t.println(\"DEL text - information and delete \" +\n\t\t\t\t\t\t\"a picture named [text] of current \" +\n\t\t\t\t\t\t\"directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"MOVE text - move an image named \" +\n\t\t\t\t\t\t\"[text] to another directory\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMG time - displays a carousel \" +\n\t\t\t\t\t\t\"with the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" each image is displayed\" +\n\t\t\t\t\t\t\" [time] seconds\");\n\t\tSystem.out\n\t\t\t\t.println(\"IMGALL time - displays a carousel with\" +\n\t\t\t\t\t\t\" the images in current directory;\");\n\t\tSystem.out\n\t\t\t\t.println(\" and in all its internal\" +\n\t\t\t\t\t\t\" subdirectories; each image is\");\n\t\tSystem.out.println(\" displayed [time] \" +\n\t\t\t\t\"seconds\");\n\t\tSystem.out.println(\"BIGIMG - displays the bigest image int the current\" +\n\t\t\t\t\"directory\");\n\t\tSystem.out.println(\"END - ends of program \" +\n\t\t\t\t\"execution\");\n\t}", "public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }", "public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_menu, menu);\n MenuItem menuItem = menu.findItem(R.id.cartFragment);\n View actionView = menuItem.getActionView();\n TextView cartShapeTextView = actionView.findViewById(R.id.cart_shape_text_view);\n\n cartShapeTextView.setText(String.valueOf(cartQuantity));\n cartShapeTextView.setVisibility(cartQuantity == 0 ? View.GONE : View.VISIBLE);\n\n actionView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onOptionsItemSelected(menuItem);\n }\n });\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.cart_menu, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_cart, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_cart, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.search_and_cart_icon, menu);\n//cart notifictaion\n// //cart icon ar upora badge number show\n// MenuItem cartItem=menu.findItem(R.id.maincartId);\n// if (DBqueries.cartList.size()>0)\n// {\n// cartItem.setActionView((int) R.layout.badge_layout);\n// ImageView badgeIcon=cartItem.getActionView().findViewById(R.id.badgeIcon);\n// badgeIcon.setImageResource(R.mipmap.cart_white);\n// TextView badgeCount=cartItem.getActionView().findViewById(R.id.badgeCountId);\n// badgeCount.setText(String.valueOf(DBqueries.cartList.size()));\n//\n// cartItem.getActionView().setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View v) {\n// if (currentUser == null) {\n// signindialog.show();\n// } else {\n// Intent cartIntent = new Intent(getApplicationContext(), MainActivity.class);\n// show_cart = true;\n// startActivity(cartIntent);\n// }\n// }\n// });\n// }else\n// {\n// cartItem.setActionView(null);\n// }\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n MenuItem menuItem = menu.findItem(R.id.action_cart);\n View cart = MenuItemCompat.getActionView(menuItem);\n textItemCount = cart.findViewById(R.id.cart_badge);\n setBadge();\n\n }", "private void printCurrentOrderMenu(Shop shop) {\n System.out.println(shop.orderListToString());\n }", "public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_main, menu);\n MenuItem itemCart = menu.findItem(R.id.cart);\n icon = (LayerDrawable) itemCart.getIcon();\n return true;\n }", "private static void displayItems()\n {\n System.out.println(\"\\n\\tCurrent List of Products in the Store:\\n\");\n for(Sales s : store)\n System.out.println(s.toString());\n }", "private static void showMenu() {\n System.out.println(\"1. Dodaj zadanie\");\n System.out.println(\"2. Wykonaj zadanie.\");\n System.out.println(\"3. Zamknij program\");\n }", "public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }", "public void showMenu() {\n menuController.showMenuPanel();\n }", "public void displayProduct() {\n\t\tDisplayOutput.getInstance()\n\t\t\t\t.displayOutput(StoreFacade.getInstance());\n\t}", "protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }", "static void displayMenu(){\n\t\tSystem.out.println(\"\");\n\t\tSystem.out.println(\"Select operation:\");\n\t\tSystem.out.println(\"1-List movies\");\n\t\tSystem.out.println(\"2-Show movie details\");\n\t\tSystem.out.println(\"3-Add a movie\");\n\t\tSystem.out.println(\"4-Add an example set of 5 movies\");\n\t\tSystem.out.println(\"5-Exit\");\n\t}", "public void displaymenu()\r\n\t{\r\n\t\tSystem.out.println(\"Welcome to the COMP2396 Authentication system!\");\r\n\t\tSystem.out.println(\"1. Authenticate user\");\r\n\t\tSystem.out.println(\"2. Add user record\");\r\n\t\tSystem.out.println(\"3. Edit user record\");\r\n\t\tSystem.out.println(\"4. Reset user password\");\r\n\t\tSystem.out.println(\"What would you like to perform?\");\r\n\t}", "private void displayEditMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Edit Menu ------------\");\r\n System.out.println(\"(1) Edit Car Colour\");\r\n System.out.println(\"(2) Edit Car Price\");\r\n System.out.println(\"(3) Back to Main Menu\");\r\n }", "public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }", "public void viewMenu() {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(\"menuData\");\n\t\t\tObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\tmm.clear();\n\n\t\t\tmm = (ArrayList<AlacarteMenu>) ois.readObject();\n\n\t\t\tString leftAlignFormat = \"| %-10s | %-37s | %-5s | %-12s | %n\";\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t\n\t\t\t\n\t\t\tCollections.sort(mm); \n\t\t\tfor (AlacarteMenu item : mm) {\n\t\t\t\t\n\t\t\t\t \n\t\t\t\t\n\t\t\t\tSystem.out.format(leftAlignFormat, item.getMenuName(), item.getMenuDesc(), item.getMenuPrice(),\n\t\t\t\t\t\titem.getMenuType());\n\t\t\t}\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tois.close();\n\t\t\tfis.close();\n\t\t} catch (IOException e) {\n\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\tSystem.out.format(\"| Menu ID | Description | Price | Type |%n\");\n\t\t\tSystem.out.format(\"+------------+---------------------------------------+-------+--------------+%n\");\n\t\t\t//System.out.println(\"No menu items found!\");\n\t\t\treturn;\n\t\t} catch (ClassNotFoundException c) {\n\t\t\tc.printStackTrace();\n\t\t\treturn;\n\t\t}\n\t}", "public Menu_deleted_panel() {\n initComponents();\n MenuList();\n show_product();\n }", "public void menuDisplay() {\n\t\t\n\t\tjava.lang.System.out.println(\"\");\n\t\tjava.lang.System.out.println(\"~~~~~~~~~~~~Display System Menu~~~~~~~~~~~~\");\n\t\tjava.lang.System.out.println(\"**** Enter a Number from the Options Below ****\");\n\t\tjava.lang.System.out.println(\"Choice 1 – Print System Details\\n\" + \n\t\t\t\t\t\t \"Choice 2 - Display System Properties\\n\" +\n\t\t\t\t\t\t \"Choice 3 – Diagnose System\\n\" + \n\t\t\t\t\t\t \"Choice 4 – Set Details\\n\" + \n\t\t\t\t\t\t \"Choice 5 – Quit the program\");\n\t\t\n\t}", "public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private void printCreateOrderMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Opret Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Tilføj Medarbejder\");\n System.out.println(\"(2) Tilføj Kunde\");\n System.out.println(\"(3) Tilføj Produkt\");\n System.out.println(\"(4) Bekræft\");\n System.out.print(\"Valg: \");\n }", "private void displayMenu() {\n\t\tint option = MenuView.getMenuOption(\n\t\t\t\"Welcome \" + movieGoer.getName() + \"!\",\n\t\t\t\"View movie showtimes\",\n\t\t\t\"Book a ticket\",\n\t\t\t\"View movie details\",\n\t\t\t\"List top 5 movies\",\n\t\t\t\"View booking history\",\n\t\t\t\"Exit\"\n\t\t);\n\t\t\n\t\tswitch (option) {\n\t\t\tcase 1:\n\t\t\t\tNavigationController.load(new ShowTimeController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 2:\n\t\t\t\tNavigationController.load(new BookingController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 3:\n\t\t\t\tNavigationController.load(new MovieController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\n\t\t\tcase 4:\n\t\t\t\tNavigationController.load(new TopMoviesController());\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 5:\n\t\t\t\tNavigationController.load(new BookingHistoryController(movieGoer));\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase 6:\n\t\t\t\tNavigationController.goBack();\n\t\t\t\tbreak;\n\t\t}\n\t}", "private static void showMenu(){\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"What would you like to do?\");\r\n\t\tSystem.out.println(\"0) Show Shape information\");\r\n\t\tSystem.out.println(\"1) Create Shape\");\r\n\t\tSystem.out.println(\"2) Calculate perimeter\");\r\n\t\tSystem.out.println(\"3) Calculate area\");\r\n\t\tSystem.out.println(\"4) Scale shape\");\r\n\t}", "public void clickOnViewCartButton()\n \t{\n \t\tproductRequirementsPageLocators.clickOnViewCartButton.click();\n\n \t}", "@Override\n\tpublic void printMenuHeader() {\n\t\tSystem.out.println(\"***** CHECKOUT *****\");\n\t\tSystem.out.print(\"Enter your credit card number without spaces and press enter if you confirm purchase: \");\n\n\t}", "public static void printMenu() {\n System.out.print(\"\\n(A)dd Item (R)emove Item (F)ind Item (I)nitialize Tree (N)ew Tree (Q)uit\\n\");\n }", "public static void printCart(User currentUser) {\r\n\t\tSystem.out.println(\"\\n Cart\\n\");\r\n\t\tMap<Long, Integer> userCart = currentUser.getCart();\r\n\t\tif (userCart.size() == 0) {\r\n\t\t\tSystem.out.println(\"Your cart is empty...\");\r\n\t\t} else {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", \"Id\", \"Name\", \"Quantity\", \"Price\");\r\n\t\t\tfor (Long id : userCart.keySet()) {\r\n\t\t\t\tFruit fruit = fruits.get(id);\r\n\t\t\t\tdouble price = fruit.getPrice() * userCart.get(id);\r\n\t\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", id, fruit.getName(), userCart.get(id), price);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void menuForProductManagement(){\r\n\r\n System.out.println(\"## ORGANICS ' E HOSGELDINIZ \"+ currentGuest.getName() + \" ##\");\r\n\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# GIRIS PANELI #\");\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# 1-Urun ekle #\");\r\n System.out.println(\"# 2-Urunleri Goster #\");\r\n System.out.println(\"# 3-Urun sil #\");\r\n System.out.println(\"# 4-Cıkıs #\");\r\n System.out.println(\"##############################\");\r\n\r\n Scanner scanner = new Scanner(System.in);\r\n int choice;\r\n int indexDelete;\r\n choice = scanner.nextInt();\r\n while(choice!=4){\r\n if(choice == 1){\r\n addProduct();\r\n }\r\n else if(choice ==2){\r\n printAllProduct();\r\n }\r\n else if(choice ==3){\r\n printAllProduct();\r\n System.out.print(\"Urunu silmek icin index' i giriniz -->\");\r\n indexDelete = scanner.nextInt();\r\n deleteProduct(indexDelete);\r\n printAllProduct();\r\n\r\n }\r\n System.out.print(\"\\n(1: Urun ekle)\\n\"+ \"(2: Urunleri Goster)\\n\" +\"(3: Urun Sil)\\n\" +\r\n \"(4: Cıkıs) -->\");\r\n System.out.println(\"\\nDevam etmek icin seciminizi giriniz :\\n\");\r\n choice = scanner.nextInt();\r\n }\r\n\r\n\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.home_page, menu);\n final MenuItem menuItem = menu.findItem(R.id.message);\n View actionView = menuItem.getActionView();\n textCartItemCount = (TextView) actionView.findViewById(R.id.cart_badge);\n setupBadge();\n\n actionView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n onOptionsItemSelected(menuItem);\n\n }\n });\n return true;\n }", "public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}", "private void checkout() {\n System.out.printf(\n \"Total + Tax %12s%n\", getTotal(cart)\n );\n }", "public void transactionMenu(){\n\t\tstate = ATM_State.TRANSACTION;\n\t\tgui.setDisplay(\"Transaction menu\\n\"\n\t\t\t\t+ \"1. Balance\\n\"\n\t\t\t\t+ \"2. Deposit\\n\"\n\t\t\t\t+ \"3. Withdraw\\n\"\n\t\t\t\t+ \"4. Log out\\n\"\n\t\t\t\t+ \"Enter choice: \");\n\t}", "public static void inventoryMenuHeader() {\n System.out.print(\"Welcome to Inventory Menu!\\nType \\\"help\\\" for Inventory menu commands\\n\");\n }", "@FXML\r\n\tpublic void goToShoppingCart() {\r\n\t\tViewNavigator.loadScene(\"Your Shopping Cart\", ViewNavigator.SHOPPING_CART_SCENE);\r\n\t}", "public void show() {\r\n\t\tfor (Carta carta: baraja) {\r\n\t\t\tSystem.out.println(carta);\r\n\t\t}\r\n\t}", "private void displayMenu() {\r\n\t\tif (this.user instanceof Administrator) {\r\n\t\t\tnew AdminMenu(this.database, (Administrator) this.user);\r\n\t\t} else {\r\n\t\t\tnew BorrowerMenu(this.database);\r\n\t\t}\r\n\t}", "private void makeStockMenu() {\r\n\t\tJMenu stockMnu = new JMenu(\"Inventario\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Inventario\")) {\r\n\t\t\tisAccesible = true;\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarInventario\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Articulo\");\r\n\t\t\t\taddItem.setMnemonic('a');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo articulo\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddStockItem(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tstockMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"world.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'v', \"Ver el inventario\",\r\n\t\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), Stock.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t\tstockMnu.addSeparator();\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Kardex\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ver Kardex\", \r\n\t\t\t\t\timageLoader.getImage(\"kardexSingle.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'k', \"Ver el kardex\", null,\r\n\t\t\t\t\tKardex.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tstockMnu.setMnemonic('i');\r\n\t\t\tadd(stockMnu);\r\n\t\t}\r\n\t}", "static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}", "public void displayProductsMenu(ArrayList<Product> Products) {\n char A = 'A';\n for (Product p: Products) {\n System.out.println(A + \") \" + p.getName() + \" @ $\" + p.getPrice());\n A++; // counter to increment the ASCII of the character\n }\n }", "public void showPanel(String carta) {\n Application.saveData(Application.getApplication());\n Application.getApplication().checkFinance();\n Application.getApplication().checkExpired();\n\t\tCardLayout layout = (CardLayout)contentPane.getLayout();\n\t\tlayout.show(contentPane, carta);\n }", "public void showCart(int userId) {\n try {\n List<Cart> carts = cartService.getUserCarts(userId);\n System.out.println(\"\\n\"+Constants.DECOR+\"YOUR CART\"+Constants.DECOR_END);\n System.out.println(Constants.CART_HEADER);\n for(Cart cart : carts) {\n System.out.println(String.valueOf(userId)\n +\"\\t\\t\"+String.valueOf(cart.getCartId())+(\"\\t\\t\"+String.valueOf(cart.getProduct().getId())\n +\"\\t\\t\"+String.valueOf(cart.getQuantity())+\"\\t\\t\"+cart.getCreated()+\"\\t\\t\"+cart.getModified()));\n }\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }", "public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }", "public void printMenu()\n {\n String menu = (\"------------- Menu -------------\\nDisplay collection\\nCheck out materials\\nQuit\\n--------------------------------\\nPlease click one of the buttons to the right\");\n jTextPane1.setText(menu);\n jButton1.enableInputMethods(true);\n jButton2.enableInputMethods(true);\n jButton3.enableInputMethods(true);\n jButton4.enableInputMethods(false);\n }", "public void displayProducts() {\r\n\t\tSystem.out.println(\"All Products : \");\r\n\t\tfor(int i=0; i<currentBranchNumber; ++i) \r\n\t\t\tbranchs[i].displayProducts();\r\n\t}", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "private void displayColourMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"------------- Colour Menu ---------------\");\r\n System.out.println(\"(1) To edit Colour1\");\r\n System.out.println(\"(2) To edit Colour2\");\r\n System.out.println(\"(3) To edit Colour3\");\r\n }", "public void showMenu() {\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\t1. Show vertices\");\n\t\tSystem.out.println(\"\\t2. Show adjacent vertices\");\n\t\tSystem.out.println(\"\\t3. Get vertex count\");\n\t\tSystem.out.println(\"\\t4. Get edge count\");\n\t\tSystem.out.println(\"\\t5. Add vertex\");\n\t\tSystem.out.println(\"\\t6. Add edge\");\n\t\tSystem.out.println(\"\\t7. Remove vertex\");\n\t\tSystem.out.println(\"\\t8. Remove edge\");\n\t\tSystem.out.println(\"\\t9. Check connectivity\");\n\t\tSystem.out.println(\"\\t0. Check adjacency\");\n\t\tSystem.out.println(\"\\tTRAVERSAL ALGORITHMS\");\n\t\tSystem.out.println(\"\\t11. Depth-first traversal\");\n\t\tSystem.out.println(\"\\t12. Breadth-first traversal\");\n\t\t\n\t\tSystem.out.println(\"\\tINPUT -1 TO EXIT\");\n\t\tSystem.out.println();\n\t}", "public void displayMenu()\n {\n System.out.println(\"-----------------Welcome to 256 Game------------------\");\n System.out.println(\"press 1 to register a player\");\n System.out.println(\"press 2 to start a new game\");\n System.out.println(\"press 3 to view a help menu\");\n System.out.println(\"press 4 to exist\");\n System.out.println(\"------------------------------------------------------\");\n }", "public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }", "private void ShowProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowProductActionPerformed\n alert.setText(\"\");\n if (displayMgr.mainMgr.orderMgr.getCart().isEmpty())\n RowItem.setText(\"Add items to the cart first\");\n else {\n displayMgr.POU.addRowToTable();\n displayMgr.showProductScreen();\n }\n }", "private void printWelcomeMenu() {\n System.out.println(\"Welcome to Michael's Retail Shop Inventory Management App!\");\n }", "public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "public void init(){\n\t\tthis.removeAll();\n\t\tthis.setLayout(null);//not using layout manager, placing components.\n\t\tcart = new Cart();//instantiate the shopping cart.\n\t\t\n\t\t//Sets up 'add item' label.\n\t\tJLabel addLabel = new JLabel(\"Add Item:\");\n\t\taddLabel.setBounds(10, 0, 75, 20);\n\t\tadd(addLabel);\n\n\t\tinitializeButtons();\n\t\t\n\t\t//Sets up the cart label, this will display how many items are currently in your cart.\n\t\tcartLabel = new JLabel(cart.size() + \" items in your cart\");\n\t\tcartLabel.setBounds(10, 200, 150, 20);\n\t\tadd(cartLabel);\n\n\t\t//Sets up the checkout button. calls the checkOut() method when clicked.\n\t\tJButton checkoutButton = new JButton(\"CHECKOUT\");\n\t\tcheckoutButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcheckOut(true);\n\t\t\t}\n\t\t});\n\t\tcheckoutButton.setBounds(10, 225, 100, 20);\n\t\tadd(checkoutButton);\n\t\t\n\t}", "public interface CartView {\n\tvoid showState(int state);\n\n\tLifecycleTransformer<List<StoreInfoBean>> bindLife();\n\n\tvoid showCart(List<StoreInfoBean> groups);\n\n\tvoid showGood(RecomGoodModel goodModel);\n\n\tvoid deteleGood(boolean result);\n\n void postOrder();\n}", "private void showFullMenu() {\r\n Menu[] menu = MenuFactory.showMenu();\r\n System.out.println(\"Menu_Id \\t Food_Name \\t Food_Type \\t\\t Calories \\t Food_Amount\");\r\n for (Menu m : menu) {\r\n System.out.println(m.getFoodId() + \"\\t\\t\" + m.getFoodName() + \"\\t\\t\" + m.getFoodType() + \"\\t\\t\\t\" + m.getCalories() + \"\\t\\t\" + m.getFoodAmt());\r\n }\r\n }", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}" ]
[ "0.8149651", "0.767014", "0.7657458", "0.7595456", "0.75851727", "0.7529229", "0.7346966", "0.7110521", "0.7088064", "0.70501316", "0.67298335", "0.67186004", "0.6711618", "0.6693275", "0.6661708", "0.6611208", "0.6596743", "0.65943336", "0.65787286", "0.6575369", "0.65434533", "0.6522866", "0.6512294", "0.64946204", "0.6490425", "0.64679337", "0.6452403", "0.6452041", "0.64459115", "0.6441967", "0.6404386", "0.63850987", "0.6349189", "0.6339171", "0.6332514", "0.63297397", "0.63220334", "0.63177353", "0.63148195", "0.6309442", "0.6291524", "0.6291524", "0.6277541", "0.62673587", "0.6256016", "0.62532395", "0.6245465", "0.6232381", "0.6210734", "0.61954325", "0.61755", "0.6172515", "0.6154123", "0.6150555", "0.6125314", "0.6112906", "0.61061555", "0.610065", "0.6096878", "0.6082031", "0.6079256", "0.6066079", "0.6065477", "0.6059251", "0.6039581", "0.6032533", "0.60312945", "0.6028038", "0.6009026", "0.6007232", "0.6006582", "0.59997374", "0.5999737", "0.599781", "0.59948224", "0.598538", "0.5984868", "0.5983146", "0.59826326", "0.59723294", "0.5968834", "0.5962279", "0.59511405", "0.59498596", "0.59333473", "0.59280694", "0.59233904", "0.5922289", "0.59148365", "0.5910696", "0.5910273", "0.59093606", "0.59038574", "0.58909017", "0.5883902", "0.58836275", "0.5881684", "0.58729875", "0.5858242", "0.58578515" ]
0.68802434
10
Checkout and call generate Bill
private void checkout() { if (!CartController.getInstance().isCartEmpty()) { System.out.println("Enter your Name :"); scan.nextLine(); CartController.getInstance().generateBill(scan.nextLine()); } else { System.out .println("\n--------------No Product Available in Cart for Checkout-----------------\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void generateBill(){\n System.out.println(\" Supermercado la 33 \");\n System.out.println(getName());\n System.out.println(getId());\n System.out.println(LocalDate.now() + \" -- \" +LocalTime.now());\n //System.out.println(\"Cantidad Denominacion nombre precio \");\n for (int i=0; i<bill.getProducts().size(); i++){\n Product temporal = bill.getProducts().get(i);\n System.out.println(temporal.getAvailableQuantity().getAmount() + \" \" + temporal.getAvailableQuantity().getProductDenomination() + \" \"\n + temporal.getName() + \" \" + temporal.getAvailableQuantity().getAmount() * temporal.getPrice());\n }\n System.out.println(\"Total : \" + bill.calculateTotal());\n System.out.println(\" Gracias por su compra vuelva pronto \");\n\n }", "@Override\r\n\tpublic void billGenerate() {\n\t\t\r\n\t}", "private void handleConfirmBillPayment() {\n\t\t// TODO Auto-generated method stub\n\t\ttry {\n\t\t\tPaymentBiller request = new PaymentBiller();\n\t\t\tObjectFactory f = new ObjectFactory();\n\t\t\tCommonParam2 commonParam = f.createCommonParam2();\n\t\t\t\n\t\t\tcommonParam.setProcessingCode(f.createCommonParam2ProcessingCode(\"100601\"));\n\t\t\tcommonParam.setChannelId(f.createCommonParam2ChannelId(\"6018\"));\n\t\t\tcommonParam.setChannelType(f.createCommonParam2ChannelType(\"PB\"));\n\t\t\tcommonParam.setNode(f.createCommonParam2Node(\"WOW_CHANNEL\"));\n\t\t\tcommonParam.setCurrencyAmount(f.createCommonParam2CurrencyAmount(\"IDR\"));\n\t\t\tcommonParam.setAmount(f.createCommonParam2Amount(String.valueOf(billPayBean.getBillAmount())));\n\t\t\tcommonParam.setCurrencyfee(f.createCommonParam2Currencyfee(billPayBean.getFeeCurrency()));\n\t\t\tcommonParam.setFee(f.createCommonParam2Fee(String.valueOf(billPayBean.getFeeAmount())));\n\t\t\tcommonParam.setTransmissionDateTime(f.createCommonParam2TransmissionDateTime(PortalUtils.getSaveXMLGregorianCalendar(Calendar.getInstance()).toXMLFormat()));\n\t\t\tcommonParam.setRequestId(f.createCommonParam2RequestId(MobiliserUtils.getExternalReferenceNo(isystemEndpoint)));\n\t\t\tcommonParam.setAcqId(f.createCommonParam2AcqId(\"213\"));\n\t\t\tcommonParam.setReferenceNo(f.createCommonParam2ReferenceNo(String.valueOf(billPayBean.getReferenceNumber())));\n\t\t\tcommonParam.setTerminalId(f.createCommonParam2TerminalId(\"WOW\"));\n\t\t\tcommonParam.setTerminalName(f.createCommonParam2TerminalName(\"WOW\"));\n\t\t\tcommonParam.setOriginal(f.createCommonParam2Original(billPayBean.getAdditionalData()));\n\t\t\t\n\t\t\trequest.setCommonParam(commonParam);\n\t\t\tPhoneNumber phone = new PhoneNumber(this.getMobiliserWebSession().getBtpnLoggedInCustomer().getUsername());\n\t\t\trequest.setAccountNo(phone.getNationalFormat());\n\t\t\trequest.setBillerCustNo( billPayBean.getSelectedBillerId().getId()); \n\t\t\trequest.setDebitType(\"0\");\n\t\t\trequest.setInstitutionCode(billPayBean.getBillerId());\n\t\t\trequest.setProductID(billPayBean.getProductId());\n\t\t\trequest.setUnitId(\"0901\");\n\t\t\trequest.setProcessingCodeBiller(\"501000\");\n\t\t\t\n\t\t\tString desc1=\"Bill Payment\";\n\t\t\tString desc2= billPayBean.getBillerId();\n\t\t\tString desc3=\"\";\n\t\t\t\n\t\t\trequest.setAdditionalData1(desc1);\n\t\t\trequest.setAdditionalData2(desc2);\n\t\t\trequest.setAdditionalData3(desc3);\n\t\t\t\n\t\t\tPaymentBillerResponse response = new PaymentBillerResponse();\n\t\t\t\n\t\t\tresponse = (PaymentBillerResponse) webServiceTemplete.marshalSendAndReceive(request, \n\t\t\t\t\tnew WebServiceMessageCallback() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void doWithMessage(WebServiceMessage message) throws IOException,\n\t\t\t\t\t\tTransformerException {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t((SoapMessage) message)\n\t\t\t\t\t.setSoapAction(\"com_btpn_biller_ws_provider_BtpnBillerWsTopup_Binder_paymentBiller\");\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tif (response.getResponseCode().equals(\"00\")) {\n\t\t\t\tbillPayBean.setStatusMessage(getLocalizer().getString(\"success.perform.billpayment\", this));\n\t\t\t\tsetResponsePage(new BankBillPaymentStatusPage(billPayBean));\n\t\t\t}\n\t\t\telse {\n\t\t\t\terror(MobiliserUtils.errorMessage(response.getResponseCode(), response.getResponseDesc(), getLocalizer(), this));\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\terror(getLocalizer().getString(\"error.exception\", this));\n\t\t\tLOG.error(\"An exception was thrown\", e);\n\t\t}\n\t}", "void payBills();", "@Test\n\tpublic void testPayBill() {\n\t\tAccount acc1 = new Account(00000, \"acc1\", true, 1000.00, 0, false);\n\t\taccounts.add(acc1);\n\n\t\ttransactions.add(0, new Transaction(10, \"acc1\", 00000, 0, \"\"));\n\t\ttransactions.add(1, new Transaction(03, \"acc1\", 00000, 100.00, \"CC\"));\n\t\ttransactions.add(2, new Transaction(00, \"acc1\", 00000, 0, \"\"));\n\n\t\ttransHandler = new TransactionHandler(accounts, transactions);\n\t\toutput = transHandler.HandleTransactions();\n\n\t\tif (outContent.toString().contains(\"Bills Paid\")) {\n\t\t\ttestResult = true;\n\t\t} else {\n\t\t\ttestResult = false;\n\t\t}\n\n\t\tassertTrue(\"unable to pay bills\", testResult);\n\t}", "private Bill generateBill(String productName, Integer quantity) throws ScriptException {\n Bill bill = null;\n Optional<Product> optional = productCatalogueRepository.getProduct(productName);\n if (optional.isPresent()) {\n Product product = optional.get();\n bill = new Bill();\n BigDecimal totalAmount = calculateTotalAmount(product, quantity);\n BigDecimal amountPayable = calculateAmountPayable(product, quantity);\n BigDecimal savings = totalAmount.subtract(amountPayable);\n bill.setQuantity(quantity);\n bill.setProduct(product);\n bill.setTotalAmountPayable(amountPayable);\n bill.setTotalSavings(savings);\n }\n return bill;\n }", "private static void generateMoneyTransfer(int branchID) {\n long accountNo1 = getRandAccountFromBranch(branchID), accountNo2 = getRandAccount();\n int amount = getRandomAmount();\n writeToFile(String.format(\"%d %d %d\\n\", accountNo1, accountNo2, amount));\n }", "private void calculateBill() {\n\t\tif (unit <= 100) {\r\n\t\t\tbill = unit * 5;\r\n\t\t}else if(unit<=200){\r\n\t\t\tbill=((unit-100)*7+500);\r\n\t\t}else if(unit<=300){\r\n\t\t\tbill=((unit-200)*10+1200);\r\n\t\t}else if(unit>300){\r\n\t\t\tbill=((unit-300)*15+2200);\r\n\t\t}\r\n\t\tSystem.out.println(\"EB amount is :\"+bill);\r\n\t}", "public _179._6._235._119.cebwebservice.Bill billing_CalculateDetailMonthlyBill(java.lang.String accessToken, int tariff, int kwh) throws java.rmi.RemoteException;", "public void ventaBilleteMaquina1()\n {\n maquina1.insertMoney(500);\n maquina1.printTicket();\n }", "public void PDFBill(Orders o) throws FileNotFoundException, DocumentException {\n\n\t\tOrdersBLL orderBLL = new OrdersBLL();\n\t\t\n\t\tDate d = new Date();\n\t\t\n\t\tDocument document = new Document();\n\t\t\n\t\tString fileName = \"Bill-report\" + countBills + \".pdf\";\n\t\tcountBills++;\n\t\tPdfWriter.getInstance(document, new FileOutputStream(fileName));\n\t\t\n\t\tdocument.open();//open document\n\n\t\t//create paragraph\n\t\tParagraph intro = new Paragraph(\"Bill\");\n\t\tParagraph space = new Paragraph(\" \");\n\t\tParagraph date = new Paragraph(d.toString());\n\t\tPdfPTable table = new PdfPTable(5);\n\n\t\t//create a cell\n\t\tPdfPCell c1 = new PdfPCell(new Paragraph(\"Id\"));\n\t\tPdfPCell c2 = new PdfPCell(new Paragraph(\"Customer Name\"));\n\t\tPdfPCell c3 = new PdfPCell(new Paragraph(\"Product Name\"));\n\t\tPdfPCell c4 = new PdfPCell(new Paragraph(\"Quantity\"));\n\t\tPdfPCell c5 = new PdfPCell(new Paragraph(\"Total price\"));\n\n\n\t\t//add the cells to the table\n\t\ttable.addCell(c1);\n\t\ttable.addCell(c2);\n\t\ttable.addCell(c3);\n\t\ttable.addCell(c4);\n\t\ttable.addCell(c5);\n\n\t\tString[] arr = orderBLL.printBill(o);\n\t\tc1 = new PdfPCell(new Paragraph(arr[0]));\n\t\tc2 = new PdfPCell(new Paragraph(arr[1]));\n\t\tc3 = new PdfPCell(new Paragraph(arr[2]));\n\t\tc4 = new PdfPCell(new Paragraph(arr[3]));\n\t\tc5 = new PdfPCell(new Paragraph(arr[4]));\n\n\n\t\ttable.addCell(c1);\n\t\ttable.addCell(c2);\n\t\ttable.addCell(c3);\n\t\ttable.addCell(c4);\n\t\ttable.addCell(c5);\n\n\n\t\t//add the objects to the document\n\t\tdocument.add(space);\n\t\tdocument.add(intro);\n\t\tdocument.add(space);\n\t\tdocument.add(date);\n\t\tdocument.add(space);\n\t\tdocument.add(table);\n\n\t\tdocument.close();\n\t}", "public void credit(){\n\t\tSystem.out.println(\"HSBC BANK :: CREDIT\");\n\t}", "@Override\r\n\tpublic ResponseDTO create(BillDTO bill) throws ServiceException {\r\n\t\tfloat netAmount=0;\r\n\t\t\r\n\t\tif(bill.getItem()!=null){\r\n\t\t\tnetAmount+=taxService.calItemTax(bill.getItem());\r\n\t\t}\r\n\t\tif(bill.getSupport()!=null){\r\n\t\t\tnetAmount+=taxService.calSupportTax(bill.getSupport());\r\n\t\t}\r\n\t\tif(bill.getBed()!=null){\r\n\t\t\tnetAmount+=taxService.calBedTax(bill.getBed());\r\n\t\t}\r\n\t\tbill.setGrandTotal(netAmount);\r\n\t\t\r\n\t\tif(bill.getDiscount()!=null){\r\n\t\t\t//find discount from discount module and set the values\r\n\r\n\t\t\tBillDiscountDetailsDTO\tdiscountDetails=discountService.calculateBillDiscount(bill.getDiscount(), netAmount);\r\n\t\t\tif(discountDetails!=null){\r\n\r\n\t\t\t\tbill.setDiscount(discountDetails.getBillDiscountList());\r\n\t\t\t\tbill.setBillAmount(discountDetails.getBillAmount());\r\n\t\t\t}\r\n\t\t}\r\n\t\tbillValidator.createBillValidator(bill);\r\n\r\n\t\ttry {\r\n\t\t\treturn billDao.create(bill);\r\n\t\t} catch (PersistenceException e) {\r\n\t\t\tthrow new ServiceException(e.getError(),e);\t\r\n\t\t}\r\n\t}", "@Override\n public void printBill() {\n System.out.println(\"BILL FOR TABLE #\" + id);\n for (MenuItem item : bill.getItems()) {\n if (item.getPrice() == 0.0) {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()) + \" Sent back because: \" + item.getComment() + \".\");\n } else {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()));\n }\n for (Ingredient addedIng : item.getExtraIngredients()) {\n System.out.println(\"add \" + item.getQuantity() + \" \" + addedIng.getName() + \": $\" + String.format(\"%.2f\", addedIng.getPrice() * item.getQuantity()));\n }\n for (Ingredient removedIng : item.getRemovedIngredients()) {\n System.out.println(\"remove \" + item.getQuantity() + \" \" + removedIng.getName() + \": -$\" + String.format(\"%.2f\", removedIng.getPrice() * item.getQuantity()));\n }\n\n }\n System.out.println(\"Total: $\" + getBillPrice() + \"\\n\");\n }", "void makeMarketBuyOrder(AuthInfo authInfo, String pair, String money,HibtcApiCallback<Object> callback);", "@RequestMapping(value = \"/checkout\", method = RequestMethod.POST)\n\tpublic String checkOut(HttpSession session, @RequestParam(\"payment\") String payment,\n\t\t\t@RequestParam(\"address_payment\") String address_payment, @RequestParam(\"phone\") int phone) {\n\t\tCart cart = (Cart) session.getAttribute(\"cart\");\n\t\tSystem.out.println(\"Run into checkout \");\n\t\tUser user = (User) session.getAttribute(\"user\");\n\t\tSystem.out.println(user.getUserId());\n\t\tSystem.out.println(user.getUserName());\n\t\tchar[] chars = \"0123456789abcdefghijklmnopqrstuvwxyz\".toCharArray();\n\t\tStringBuilder sb = new StringBuilder(30);\n\t\tRandom random = new Random();\n\t\tfor (int i = 0; i < 30; i++) {\n\t\t\tchar c = chars[random.nextInt(chars.length)];\n\t\t\tsb.append(c);\n\t\t}\n\n\t\tString billId = sb.toString();\n\n\t\ttry {\n\t\t\tBill bill = new Bill();\n\t\t\tbill.setBillId(billId);\n\t\t\tbill.setPayment(payment);\n\t\t\tbill.setUser(user);\n\t\t\tbill.setDate(new Timestamp(new Date().getTime()));\n\t\t\tbill.setTotal(cart.totalCart());\n\t\t\tbill.setPhone(phone);\n\t\t\tbill.setAddress_payment(address_payment);\n\t\t\t// bill.setState(\"not yet\");\n\t\t\tbillService.insertBill(bill);\n\t\t\tfor (Map.Entry<String, Item> list : cart.getCartItems().entrySet()) {\n\t\t\t\tbillDetailDao.insertBill(new Billdetail(bill, list.getValue().getProduct(),\n\t\t\t\t\t\tlist.getValue().getProduct().getProductPrice(), list.getValue().getQuanlity()));\n\t\t\t}\n\t\t\tsession.removeAttribute(\"cart\");\n\t\t\tString checkOutOk = \"successful\";\n\t\t\tsession.setAttribute(\"checkOutOk\", checkOutOk);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn \"redirect:/contact\";\n\t}", "public void CashPayment()\n {\n }", "String makePayment(String userName, String teamName, Payment payment) throws RemoteException, InterruptedException;", "public static void main(String[] args) throws FileNotFoundException\r\n\t{\n\t\tBank b1 = new Bank();\r\n//\t\tb1.setCustomers(b1.LoadCustomersFromFile());\r\n\t\tSystem.out.println(b1.printCustomersToString());\r\n\t\tSystem.out.println(b1.printTransactionsToString());\r\n\t\tCustomer customer = b1.getCustomers().get(5);\r\n\t\tAccount account = b1.getCustomers().get(5).getAccounts().get(0);\r\n//\t\taccount.createMonthlyStatement(\"Oct\", 2019, account, customer, b1);\r\n//\t\tb1.setTransactions(b1.LoadTransactionsFromFile());\r\n\t\tSystem.out.println(b1);\r\n//\t\tBank b1=runcreate();\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSaveorLoadBank.LoadBankFromFile();\r\n//\t\tArrayList<Customer> customers = b1.getCustomers();\r\n//\t\tCustomer c1 = customers.get(4);\r\n//\t\tCustomer c2 = customers.get(5);\r\n//\t\tSystem.out.println(customers.get(4));\r\n//\t\tSystem.out.println(customers.get(5));\r\n//\t\tAccount a1 = customers.get(4).getAccounts().get(0);\r\n//\t\tAccount a2 = customers.get(5).getAccounts().get(0);\r\n//\t\tTransferManager.Transfer(c1, a1, c2, a2, (long) 100);\r\n//\t\tSystem.out.println(c1);\r\n//\t\tSystem.out.println(c2);\r\n//\t\tSystem.out.println(b1);\r\n//\t\tSystem.out.println(b1);\r\n\t\tb1.saveTofilePrintWriter();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public String handleGenerate()\n throws HttpPresentationException\n\t {\n String month = this.getComms().request.getParameter(MONTH);\n \tString year = this.getComms().request.getParameter(YEAR);\n \tString description = this.getComms().request.getParameter(DESCRIPTION);\n \t\n/*\tString billingflag = this.getbillreportflag();\n\tSystem.out.println(\"flag off bill_report\"+billingflag);\n\t\n\tthis.setbillreportflag(billingflag);*/\n\n \t System.out.println(\"Month off credit hours module \"+month); \t\n int lastday;\n\tint daysPerMonth[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};\n\tString monthnames[] = {\"Jan\",\"Feb\",\"March\",\"April\",\"May\",\"June\",\"July\",\"August\",\"September\",\"October \",\"November\",\"December\"};\n/*\tint billsdate = Integer.parseInt(sdate);\n\tint billedate = Integer.parseInt(edate);*/\n\tint billmonth = Integer.parseInt(month);\n\tint billyear = Integer.parseInt(year);\n\tString username = null, firstname=null, lastname=null;\n\t\n\t// get the last day of the month check for leap year\n\tif (billmonth == 1 && (billyear % 400 == 0 && billyear % 100 != 0))\n\t\t{\n\t\t\tlastday = 29;\n\t\t} else {\n\t\t\tlastday = daysPerMonth [billmonth];\n\t\t}\n\n/* \tthis.setbillsday(billsdate);\n\tthis.setbilleday(billedate);*/\n\tthis.setbillmonth(billmonth);\n\tthis.setbillyear(billyear);\n\tthis.setbilldescription(description);\n\t\n\t\n\t//calculation for the time right now\n \tCalendar cancelinfo = Calendar.getInstance();\n \tint todaydate = cancelinfo.get(cancelinfo.DAY_OF_MONTH);\n \tint todaymonth = cancelinfo.get(cancelinfo.MONTH);\n \tint todayyear = cancelinfo.get(cancelinfo.YEAR);\n\t\n\ttry {\n\t// report info = 1 for debt and 0 for credit\n\t//Check if the credit hours has been generate for the spec. month and year\n\tif (null == ReporttrackFactory.findReporttrackForMonth(billyear,billmonth,0))\n\t {\n\t Reporttrack report = new Reporttrack();\n\t report.setDay(todaydate);\n\t report.setMonth(todaymonth);\n\t report.setYear(todayyear);\n\t report.setStartday(1);\n\t report.setStartm(billmonth);\n\t report.setStartyear(billyear);\n\t report.setEndday(31);\n\t report.setEndmonth(billmonth);\n\t report.setEndyear(billyear);\n\t report.setPreparedby(description);\n\t report.setInvoice_num(0);\n\t report.setReportinfo(1);\n\t report.save();\n\t throw new ClientPageRedirectException(DEBT_PILOT_HOURS_PAGE);\t\n\t } else {\nreturn showPage(\"The debt hours for month \" + month + \" year \"+year+\" has been debited\"); \n\t }\n\t } catch(webscheduleBusinessException ex) {\n throw new webschedulePresentationException(\"Exception logging in user: \", ex);\n }\t\n\t\t\t\n\t}", "public static void main(String[] args) {\n Teller t = new Teller();\n Customer c1 = new Customer(\"Suthee\", 'F', \"11/22 BKK\", 30);\n t.newAccount(c1, 500);\n t.newAccount(c1, 1000);\n\n t.deposit(c1, 100, 500);\n t.withdraw(c1,100,200);\n\n t.deposit(c1,101,1200);\n t.withdraw(c1,101,500);\n\n System.out.println(\"Transaction Information\");\n ArrayList<Account> list = c1.getListBankAccount();\n for (Account account:list) {\n System.out.println(account);\n }\n }", "public void ventaBilleteMaquina2()\n {\n maquina2.insertMoney(600);\n maquina1.printTicket();\n }", "public abstract void msgComputeBill(String choice, Customer c, Waiter w, int tableNumber, Map<String, Double> menu);", "@RequestMapping(path=\"/checkout/{order_id}/{idMagazine}\", method = RequestMethod.POST, produces = \"application/json\", consumes = \"application/json\")\n\tpublic ResponseEntity<Object> checkout(@PathVariable Integer order_id, @PathVariable Long idMagazine) { \n\t\tlogger.info(\"Init checkout\");\n\t\t\n\t\tCheckoutResponseDTO checkoutDTO = new CheckoutResponseDTO();\n\t\t\n\t\tSellerBitcoinInfo sbi = bitcoinRepo.findByidMagazine(idMagazine);\n\t\t\n\t\tSystem.out.println(\"ADDRESS \" + sbi.getBitcoinAddress());\n\t\t\n\t\tString token = sbi.getBitcoinAddress();\n\t\t\n\t\tString authToken = \"Bearer \" + token;\n\t\t//trebali bismo da kreiramo transakciju koja ce biti u stanju \"pending\" sve dok korisnik ne plati ili mu ne istekne odredjeno vreme\n\t\t\n\t\t//txRepo.save(tx);\n\t\t//RestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t//restTemplate.getForEntity(\"https://google.rs\", String.class);\n\t\t//restTemplate.getForEntity(\"https://api.coingate.com/v2/ping\", String.class);\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.add(\"Authorization\", authToken);\t \n\t\t\n\t\tResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders\" + Integer.toString(order_id), HttpMethod.POST,\n\t\t\t\tnew HttpEntity<Object>(checkoutDTO, headers), Object.class);\n\t\t\n\t\tlogger.info(responseEntity.getBody().toString());\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\tCheckoutResponseDTO btcResponse = new CheckoutResponseDTO();\n\n\t\tbtcResponse = mapper.convertValue(responseEntity.getBody(), CheckoutResponseDTO.class);\n\t\t\n\t\tString paymentUrl = btcResponse.getPayment_url();\n\t\t\n\t\tlogger.info(paymentUrl);\n\t\t\n\t\t\n\t\t//BitCoinResponseDTO response = parser.parseList(responseEntity.getBody().toString());\n\t\t\n\t\t//BitCoinResponseDTO responseDTO = responseEntity.;\n\t\t\n\t\t//String pageToRedirec = responseDTO.getPayment_url();\n\t\t\n\t\t//restTemplate.exchange\n\t\t//ResponseEntity<String> response = restTemplate.postForEntity(\"https://api-sandbox.coingate.com/v2/orders\", btcDTO, String.class);\n\t\t\n\t\treturn new ResponseEntity<Object>(responseEntity,HttpStatus.OK);\n\t}", "public abstract void generateReceipt(Transaction trans);", "public void startSale() {\r\n System.out.println(\"[CashRegister] startSale\");\r\n System.out.println(\"\");\r\n\r\n //receipt = new Receipt(customerId); \r\n receipt = new Receipt(\"100\");\r\n\r\n //addItemToSale(productId, quantity);\r\n addItemToSale(\"A101\", 10);\r\n\r\n addItemToSale(\"B205\", 6);\r\n\r\n addItemToSale(\"C222\", 12);\r\n\r\n }", "Long addWayBill(WayBill wayBill);", "private Transaction creatTransaction(Bill bill, boolean b) {\n Transaction transaction = new Transaction();\n transaction.setDateOfTransaction(new Date());\n transaction.setCostOfTransaction(String.valueOf(bill.getCostOfBill()));\n transaction.setSerialOfTransaction(new TransactionSerialProducer().serialProducer());\n transaction.setFinished(b);\n transaction.setTypeOfTransaction(\"پرداخت قبض\");\n transaction.setBillingId(bill.getBillingId());\n transaction.setPaymentCode(bill.getPaymentCode());\n dbHelper = new DBHelper();\n dbHelper.insertTransaction(transaction);\n return transaction;\n }", "private static void generateAddCustomer(int branchID) {\n long accountNo = getNewAccountNo(branchID);\n int balance = getRandomBalance();\n writeToFile(String.format(\"%d %d\\n\", accountNo, balance));\n }", "private void makeDeposit() {\n\t\t\r\n\t}", "private void generateAndSubmitOrder()\n {\n OrderSingle order = Factory.getInstance().createOrderSingle();\n order.setOrderType(OrderType.Limit);\n order.setPrice(BigDecimal.ONE);\n order.setQuantity(BigDecimal.TEN);\n order.setSide(Side.Buy);\n order.setInstrument(new Equity(\"METC\"));\n order.setTimeInForce(TimeInForce.GoodTillCancel);\n if(send(order)) {\n recordOrderID(order.getOrderID());\n }\n }", "@Override\r\n\tpublic List<CoinsResponse> billsToCoinstRef(List<BillToExchange> lstBillToExchange) throws ExchangeMachineException {\n\t\t\r\n\t\tDouble dTotal = 0.0;\r\n\t\tList<CoinsResponse> lstCoinsResponse = new ArrayList<CoinsResponse>();\r\n\t\tString erroMessage = null;\r\n\t\t\r\n\t\tfor(BillToExchange billToExchange : lstBillToExchange) {\r\n\t\t\tdTotal = dTotal + (billToExchange.getBillQuantity() * billToExchange.getBillAmount().doubleValue());\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\t\t//Iterate over coins denomination for calculation\r\n\t\t\tcoinExchangeWrapper.setTotal(new BigDecimal(dTotal).setScale(2, RoundingMode.FLOOR));\r\n\t\t\tfor(CoinsDTO coins : coinsDispenser.getCoinsDispenser() ) {\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"Coin id : \" + coins.getId() + \" Denomination : \" + coins.getCoinDenomination() + \" Quantity : \" + coins.getCoinQuantity());\r\n\t\t\t\t\r\n\t\t\t\tif(coins.getCoinQuantity() > 0) {\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinDenomination(coins.getCoinDenomination());\r\n\t\t\t\t\tcoinExchangeWrapper.setCurrentCoinQuantity(coins.getCoinQuantity());\r\n\t\t\t\t\tcoinExchangeWrapper.setMaxCoinQuantity(coins.getCoinMaxQuantity());\r\n\t\t\t\t\tgetCoinsCalculation(coinExchangeWrapper, lstCoinsResponse);\r\n\t\t\t\t\tcoins.setCoinQuantity(coinExchangeWrapper.getCurrentCoinQuantity());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"Total Remain for Calculation : \" + coinExchangeWrapper.getTotal());\r\n\t\t\t\t\r\n\t\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) == 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//Amount still not completed, needs to raise error\r\n\t\t\tif(coinExchangeWrapper.getTotal().compareTo(BigDecimal.ZERO) != 0) {\r\n\t\t\t\t//Raise exception\r\n\t\t\t\terroMessage = \"Not Enough coins to complete exchange\";\r\n\t\t\t\tthrow new Exception();\r\n\t\t\t}\r\n\t\t\r\n\t\t}catch(Exception e) {\r\n\t\t\tif(erroMessage != null) {\r\n\t\t\t\tthrow getExchangeMachineException(erroMessage, e);\r\n\t\t\t}else {\r\n\t\t\t\tthrow getExchangeMachineException(e.getMessage(), e);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn lstCoinsResponse;\r\n\t}", "private static void generateCashWithdraw(int branchID) {\n long accountNo = getRandAccountFromBranch(branchID);\n int amount = getRandomAmount();\n writeToFile(String.format(\"%d %d\\n\", accountNo, amount));\n }", "public void enterPayment(int coinCount, Coin coinType)\n {\n balance = balance + coinType.getValue() * coinCount;\n // your code here\n \n }", "public void makePayment(String amount, String paymentRef) {\n JudoSDKManager.setKeyAndSecret(getApplicationContext(), API_TOKEN, API_SECRET);\n\n// Set environment to Sandbox\n JudoSDKManager.setSandboxMode(getApplicationContext());\n\n String customerRef = Settings.Secure.getString(getApplicationContext().getContentResolver(),\n Settings.Secure.ANDROID_ID);\n\n Intent intent = JudoSDKManager.makeAPayment(getApplicationContext(), JUDO_ID, \"GBP\", amount, paymentRef, customerRef, null);\n startActivityForResult(intent, ACTION_CARD_PAYMENT);\n }", "private int doComp() {\n\t\tDbTime totalTime = pubService.getDbTime();\n\t\tString beginDate = \"\";\n\t\tString endDate = pubService.getTotalDateStr();\n\t\tString yesterdayStr = pubService.getYesterdayStr();\n\t\t\n\t\tReBankAccept reBankAccept = new ReBankAccept();\n\t\treBankAccept.setOrgId(1);\n\t\treBankAccept.setCheckType(\"N\");\n\t\tList<ReBankAccept> reBankAcceptList= sqlSessionTemplate.selectList(\"com.tmount.db.order.dao.ReBankAcceptMapper.selectBySelective\",reBankAccept);\n\t\tSystem.out.println(\"...records...\"+reBankAcceptList.size()+\"...\");\n\t\tfor(ReBankAccept aReBankAccept:reBankAcceptList){\n\t\t\t\n\t\t\tString billOrder = aReBankAccept.getBankAccept()+\"\";\n\t\t\tDate payTime = aReBankAccept.getPayTime();\n\t\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyyMMdd\");\n\t\t\tGregorianCalendar gc = new GregorianCalendar();\n\t\t\tgc.setTime(payTime); \n\t\t\tString payDate=df.format(gc.getTime());\n\t\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"payDate = \"+ payDate);\n\t\t\tSystem.out.println(\"billOrder = \"+ billOrder);\n\t\t\t\n\t\t\tStringBuffer strbuf = new StringBuffer();\n\t\t\tiRet = settle.QuerySingleOrder(payDate,billOrder,strbuf);\n\t\t\tif (iRet == 0)\n\t\t\t{\n\t\t\t\t//System.out.println(strbuf);\n\t\t\t\tString[] strArr = strbuf.toString().split(\"\\n\");\n\t\t\t\tif(strArr.length!=4){\n\t\t\t\t\tSystem.out.println(\"...strbuf format error...\");\n\t\t\t\t\treturn -1;\n\t\t\t\t}\n\t\t\t\tString billData = strArr[0];//交易日期\n\t\t\t\tString dealData = strArr[1];//处理日期\n\t\t\t\tString orderStatus = strArr[2];//定单状态 0-已结帐,1-已撤销,2-部分结帐,3-退款,4-未结帐,5-无效状态,6-未知状态\n\t\t\t\tString strAmount = strArr[3];//定单金额\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"billData:[\"+billData+\"]\");\n\t\t\t\tSystem.out.println(\"dealData:[\"+dealData+\"]\");\n\t\t\t\tSystem.out.println(\"orderStatus:[\"+orderStatus+\"]\");\n\t\t\t\tSystem.out.println(\"strAmount:[\"+strAmount+\"]\");\n\t\t\t\t\n\t\t\t\tif(\"0\".equals(orderStatus)){\n\t\t\t\t\tif(\"Y\".equals(aReBankAccept.getPayType())){//已经是支付状态\n\t\t\t\t\t\t\n\t\t\t\t\t}else{\n\t\t\t\t\t\tint payCount = sqlSessionTemplate.selectOne(\"com.tmount.db.order.dao.ReBankOrderAcceptMapper.countPayStatusByBankAccept\",aReBankAccept.getBankAccept());\n\t\t\t\t\t\tif(payCount>0){//银行流水对应的商城订单有支付完成的\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else{//银行流水对应的商城订单没有支付完成的,对该未结账订单进行 支付(商城的支付服务逻辑)、结账\n\t\t\t\t\t\t\tOrderService orderservice = new OrderService();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tlong payId = 0;\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tpayId = orderService.userBankOrderPay(aReBankAccept.getBankAccept(),1,\"通过对账程序对本地的订单进行缴费\");\n\t\t\t\t\t\t\t\tSystem.out.println(\"@:***payId***[\"+payId+\"]\");\n\t\t\t\t\t\t\t} catch (ShopBusiException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (ShopParamException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//此处调用封装支付服务的函数,并将函数返回值赋给payId\n\t\t\t\t\t\t\taReBankAccept.setPayType(\"Y\");\n\t\t\t\t\t\t\taReBankAccept.setPayCommitTime(pubService.getDbTime().getDbTime());\n\t\t\t\t\t\t\taReBankAccept.setPayId(payId);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\taReBankAccept.setCheckType(\"Y\");\t\n\t\t\t\t\tsqlSessionTemplate.update(\"com.tmount.db.order.dao.ReBankAcceptMapper.updateByPrimaryKeySelective\", aReBankAccept);\n\t\t\t\t\t\n\t\t\t\t\t//入银行结算表 对账成功写结算表\n\t\t\t\t\tBkBankChangeAccept bkBankChangeAccept = new BkBankChangeAccept();\n\t\t\t\t\tbkBankChangeAccept.setBankAccept(aReBankAccept.getBankAccept());\n\t\t\t\t\tbkBankChangeAccept.setOrgId(aReBankAccept.getOrgId());\n\t\t\t\t\tbkBankChangeAccept.setPrice(aReBankAccept.getPrice());\n\t\t\t\t\tbkBankChangeAccept.setPayTime(aReBankAccept.getPayTime());\n\t\t\t\t\tbkBankChangeAccept.setPayId(aReBankAccept.getPayId());\n\t\t\t\t\tsqlSessionTemplate.insert(\"com.tmount.db.order.dao.BkBankChangeAcceptMapper.insertSelective\",bkBankChangeAccept);\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"...iRet...\"+iRet);\n\t\t\t\tSystem.out.println(settle.GetLastErr(iRet));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"...totalTime.getDbTime().getHours()...\"+totalTime.getDbTime().getHours());\n\t\t\t\tSystem.out.println(\"...Long.parseLong(payDate)...\"+Long.parseLong(payDate));\n\t\t\t\tSystem.out.println(\"...Long.parseLong(pubService.getYesterdayStr())...\"+Long.parseLong(pubService.getYesterdayStr()));\n\t\t\t\t//招商银行订单的有效期是到第二天的1点(这里防止有遗漏,设置到两点之后失效)\n\t\t\t\tif(totalTime.getDbTime().getHours()>1&&Long.parseLong(payDate)<= Long.parseLong(pubService.getYesterdayStr())){\n\t\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tmoveHis(aReBankAccept);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic void makePayment(int price) {\n\t\tSystem.out.println(\"Payment Of Rs. \"+price+\" Through COD Successfull. Thank You!\");\r\n\t}", "private void mSaveBillData(int TenderType) { // TenderType:\r\n // 1=PayCash\r\n // 2=PayBill\r\n\r\n // Insert all bill items to database\r\n InsertBillItems();\r\n\r\n // Insert bill details to database\r\n InsertBillDetail(TenderType);\r\n\r\n updateMeteringData();\r\n\r\n /*if (isPrintBill) {\r\n // Print bill\r\n PrintBill();\r\n }*/\r\n }", "public void startPayment() {\r\n final Activity activity = this;\r\n\r\n final Checkout co = new Checkout();\r\n\r\n try {\r\n JSONObject options = new JSONObject();\r\n options.put(\"name\", \"Farm2Home\");\r\n options.put(\"description\", \"Consumption charges\");\r\n //You can omit the image option to fetch the image from dashboard\r\n // options.put(\"image\", \"https://rzp-mobile.s3.amazonaws.com/images/rzp.png\");\r\n options.put(\"currency\", \"INR\");\r\n options.put(\"amount\", \"500\");\r\n\r\n // JSONObject preFill = new JSONObject();\r\n // preFill.put(\"email\", \"[email protected]\");\r\n // preFill.put(\"contact\", \"9876543210\");\r\n\r\n // options.put(\"prefill\", preFill);\r\n\r\n co.open(activity, options);\r\n } catch (Exception e) {\r\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\r\n .show();\r\n e.printStackTrace();\r\n }\r\n }", "private void PayBill() {\r\n Cursor crsrBillDetail = dbBillScreen.getBillDetailByCustomer(iCustId, 2, Float.parseFloat(tvBillAmount.getText().toString()));\r\n if (crsrBillDetail.moveToFirst()) {\r\n strPaymentStatus = \"Paid\";\r\n PrintNewBill(businessDate, 1);\r\n } else {\r\n if (strPaymentStatus== null || strPaymentStatus.equals(\"\"))\r\n strPaymentStatus = \"CashOnDelivery\";\r\n\r\n\r\n ArrayList<AddedItemsToOrderTableClass> orderItemList = new ArrayList<>();\r\n int taxType =0;\r\n for (int iRow = 0; iRow < tblOrderItems.getChildCount(); iRow++) {\r\n\r\n int menuCode =0;\r\n String itemName= \"\";\r\n double quantity=0.00;\r\n double rate=0.00;\r\n double igstRate=0.00;\r\n double igstAmt=0.00;\r\n double cgstRate=0.00;\r\n double cgstAmt=0.00;\r\n double sgstRate=0.00;\r\n double sgstAmt=0.00;\r\n double cessRate=0.00;\r\n double cessAmt=0.00;\r\n double subtotal=0.00;\r\n double billamount=0.00;\r\n double discountamount=0.00;\r\n\r\n TableRow RowBillItem = (TableRow) tblOrderItems.getChildAt(iRow);\r\n\r\n\r\n // Item Number\r\n if (RowBillItem.getChildAt(0) != null) {\r\n CheckBox ItemNumber = (CheckBox) RowBillItem.getChildAt(0);\r\n menuCode = (Integer.parseInt(ItemNumber.getText().toString()));\r\n }\r\n\r\n // Item Name\r\n if (RowBillItem.getChildAt(1) != null) {\r\n TextView ItemName = (TextView) RowBillItem.getChildAt(1);\r\n itemName = (ItemName.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Quantity\r\n if (RowBillItem.getChildAt(3) != null) {\r\n EditText Quantity = (EditText) RowBillItem.getChildAt(3);\r\n String qty_str = Quantity.getText().toString();\r\n double qty_d = 0.00;\r\n if(qty_str==null || qty_str.equals(\"\"))\r\n {\r\n Quantity.setText(\"0.00\");\r\n }else\r\n {\r\n qty_d = Double.parseDouble(qty_str);\r\n }\r\n quantity = (Double.parseDouble(String.format(\"%.2f\",qty_d)));\r\n\r\n }\r\n\r\n // Rate\r\n if (RowBillItem.getChildAt(4) != null) {\r\n EditText Rate = (EditText) RowBillItem.getChildAt(4);\r\n String rate_str = Rate.getText().toString();\r\n double rate_d = 0.00;\r\n if((rate_str==null || rate_str.equals(\"\")))\r\n {\r\n Rate.setText(\"0.00\");\r\n }else\r\n {\r\n rate_d = Double.parseDouble(rate_str);\r\n }\r\n rate = (Double.parseDouble(String.format(\"%.2f\",rate_d)));\r\n\r\n }\r\n\r\n\r\n // Service Tax Percent\r\n\r\n if(chk_interstate.isChecked()) // IGST\r\n {\r\n cgstRate =0;\r\n cgstAmt =0;\r\n sgstRate =0;\r\n sgstAmt =0;\r\n if (RowBillItem.getChildAt(23) != null) {\r\n TextView iRate = (TextView) RowBillItem.getChildAt(23);\r\n igstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iRate.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(24) != null) {\r\n TextView iAmt = (TextView) RowBillItem.getChildAt(24);\r\n igstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(iAmt.getText().toString())));\r\n }\r\n\r\n\r\n }else // CGST+SGST\r\n {\r\n igstRate =0;\r\n igstAmt =0;\r\n if (RowBillItem.getChildAt(15) != null) {\r\n TextView ServiceTaxPercent = (TextView) RowBillItem.getChildAt(15);\r\n sgstRate = (Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxPercent.getText().toString()))));\r\n }\r\n\r\n // Service Tax Amount\r\n if (RowBillItem.getChildAt(16) != null) {\r\n TextView ServiceTaxAmount = (TextView) RowBillItem.getChildAt(16);\r\n sgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(ServiceTaxAmount.getText().toString())));\r\n }\r\n\r\n // Sales Tax %\r\n if (RowBillItem.getChildAt(6) != null) {\r\n TextView SalesTaxPercent = (TextView) RowBillItem.getChildAt(6);\r\n cgstRate = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxPercent.getText().toString())));\r\n }\r\n // Sales Tax Amount\r\n if (RowBillItem.getChildAt(7) != null) {\r\n TextView SalesTaxAmount = (TextView) RowBillItem.getChildAt(7);\r\n cgstAmt = Double.parseDouble(String.format(\"%.2f\",\r\n Double.parseDouble(SalesTaxAmount.getText().toString())));\r\n }\r\n }\r\n if (RowBillItem.getChildAt(25) != null) {\r\n TextView cessRt = (TextView)RowBillItem.getChildAt(25);\r\n if(!cessRt.getText().toString().equals(\"\"))\r\n cessRate = Double.parseDouble(cessRt.getText().toString());\r\n }\r\n if (RowBillItem.getChildAt(26) != null) {\r\n TextView cessAt = (TextView)RowBillItem.getChildAt(26);\r\n if(!cessAt.getText().toString().equals(\"\"))\r\n cessAmt = Double.parseDouble(cessAt.getText().toString());\r\n }\r\n\r\n\r\n\r\n // Tax Type\r\n if (RowBillItem.getChildAt(13) != null) {\r\n TextView TaxType = (TextView) RowBillItem.getChildAt(13);\r\n taxType = (Integer.parseInt(TaxType.getText().toString()));\r\n }\r\n // subtotal\r\n subtotal = (rate*quantity) + igstAmt+cgstAmt+sgstAmt;\r\n\r\n AddedItemsToOrderTableClass orderItem = new AddedItemsToOrderTableClass( menuCode, itemName, quantity, rate,\r\n igstRate,igstAmt, cgstRate, cgstAmt, sgstRate,sgstAmt, rate*quantity,subtotal, billamount,cessRate,cessAmt,discountamount);\r\n orderItemList.add(orderItem);\r\n }\r\n\r\n Bundle bundle = new Bundle();\r\n bundle.putDouble(Constants.TOTALBILLAMOUNT, Double.parseDouble(tvBillAmount.getText().toString()));\r\n bundle.putDouble(Constants.TAXABLEVALUE, Double.parseDouble(tvSubTotal.getText().toString()));\r\n\r\n// bundle.putDouble(Constants.ROUNDOFFAMOUNT, Double.parseDouble(edtRoundOff.getText().toString()));\r\n if (tvOthercharges.getText().toString().isEmpty()) {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n } else {\r\n bundle.putDouble(Constants.OTHERCHARGES, Double.parseDouble(tvOthercharges.getText().toString()));\r\n }\r\n bundle.putDouble(Constants.DISCOUNTAMOUNT, Double.parseDouble(tvDiscountAmount.getText().toString()));\r\n bundle.putInt(Constants.TAXTYPE, isForwardTaxEnabled);\r\n //bundle.putInt(CUSTID, Integer.parseInt(tvCustId.getText().toString()));\r\n bundle.putString(Constants.PHONENO, edtCustPhoneNo.getText().toString());\r\n bundle.putParcelableArrayList(Constants.ORDERLIST, orderItemList);\r\n if (chk_interstate.isChecked()) {\r\n double igstAmount = Double.parseDouble(tvIGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, igstAmount + cessAmount);\r\n } else {\r\n double sgstAmount = Double.parseDouble(tvSGSTValue.getText().toString());\r\n double cgstAmount = Double.parseDouble(tvCGSTValue.getText().toString());\r\n double cessAmount = Double.parseDouble(tvcessValue.getText().toString());\r\n bundle.putDouble(Constants.TAXAMOUNT, cgstAmount + sgstAmount + cessAmount);\r\n }\r\n\r\n fm = getSupportFragmentManager();\r\n proceedToPayBillingFragment = new PayBillFragment();\r\n proceedToPayBillingFragment.initProceedToPayListener(this);\r\n proceedToPayBillingFragment.setArguments(bundle);\r\n proceedToPayBillingFragment.show(fm, \"Proceed To Pay\");\r\n\r\n /* Intent intentTender = new Intent(myContext, PayBillActivity.class);\r\n intentTender.putExtra(\"TotalAmount\", tvBillAmount.getText().toString());\r\n intentTender.putExtra(\"CustId\", edtCustId.getText().toString());\r\n intentTender.putExtra(\"phone\", edtCustPhoneNo.getText().toString());\r\n intentTender.putExtra(\"USER_NAME\", strUserName);\r\n intentTender.putExtra(\"BaseValue\", Float.parseFloat(tvSubTotal.getText().toString()));\r\n intentTender.putExtra(\"ORDER_DELIVERED\", strOrderDelivered);\r\n intentTender.putExtra(\"OtherCharges\", Double.parseDouble(tvOthercharges.getText().toString()));\r\n intentTender.putExtra(\"TaxType\", taxType);// forward/reverse\r\n intentTender.putParcelableArrayListExtra(\"OrderList\", orderItemList);\r\n startActivityForResult(intentTender, 1);*/\r\n //mSaveBillData(2, true);\r\n //PrintNewBill();\r\n }\r\n\r\n /*int iResult = dbBillScreen.deleteKOTItems(iCustId, String.valueOf(jBillingMode));\r\n Log.d(\"Delivery:\", \"Items deleted from pending KOT:\" + iResult);*/\r\n\r\n //ClearAll();\r\n //Close(null);\r\n }", "private static void generateTransferCustomer(int branchID) {\n long oldAccountNo = getRandAccountFromBranchD(branchID);\n int newBranch = getRandBranchExcept(branchID);\n long newAccountNo = getNewAccountNo(newBranch);\n writeToFile(String.format(\"%d %d\\n\", oldAccountNo, newAccountNo));\n }", "public IBankTransfert payment();", "String printCheckout(Checkout checkout) throws CheckoutProcessingException;", "public void createAccount() {\n\t\tSystem.out.print(\"Enter Name: \");\n\t\tString name = nameCheck(sc.next());\n\t\tSystem.out.print(\"Enter Mobile No.: \");\n\t\tlong mobNo = mobCheck(sc.nextLong());\n\t\tlong accNo = mobNo - 1234;\n\t\tSystem.out.print(\"Enter Balance: \"); \n\t\tfloat balance = amountCheck(sc.nextFloat());\n\t\tuserBean BeanObjCreateAccountObj = new userBean(accNo, name, mobNo, balance);\n\t\tSystem.out.println(\"Account created with Account Number: \" +accNo);\n\t\tServiceObj.bankAccountCreate(BeanObjCreateAccountObj);\n\t\t\n\t\n\t}", "static void CreateBillboard(Billboard billboard) throws IOException, ClassNotFoundException {\n\n // Initializing connections\n Socket client = ConnectionToServer(); // User socket connection\n OutputStream outputStream = client.getOutputStream(); // Server output to user\n InputStream inputStream = client.getInputStream(); // User input to server\n\n ObjectOutputStream send = new ObjectOutputStream(outputStream);\n ObjectInputStream receiver = new ObjectInputStream(inputStream);\n\n send.writeUTF(\"CreateBillboard\");\n send.flush();\n\n send.writeUTF(loggedInUser);\n send.writeUTF(token);\n send.flush();\n\n if (WasRequestSuccessful(receiver.readBoolean(), receiver.readUTF())) {\n int val = receiver.read();\n if (val == 1) {\n send.writeObject(billboard);\n send.flush(); // Must be done before switching to reading state\n// System.out.println(receiver.readUTF());\n if (receiver.read() == 1) {\n DialogWindow.ShowInformationPane(\"Billboard finished creating.\", \"Completion of Billboard\");\n }\n } else {\n DialogWindow.ShowErrorPane(\"Sorry you don't have permission to edit\", \"Error Can't Make Billboard\");\n }\n }\n\n// End connections\n send.close();\n receiver.close();\n client.close();\n }", "public void generateBillFile(int orderId, ArrayList<MenuItem> items, float price, Date date) {\r\n String name = \"Bill\" + orderId;\r\n this.output = new File(name);\r\n try {\r\n output.createNewFile();\r\n writer = new FileWriter(output);\r\n\r\n writer.write(\"Order id: \" + orderId + \"\\n \\n\");\r\n writer.write(\"Ordered items: \\n\");\r\n for (MenuItem i: items) {\r\n writer.write(i.toString() + \"\\n\");\r\n }\r\n writer.write(\"Total price: \" + price + \"\\n\");\r\n writer.write(date + \"\");\r\n\r\n writer.close();\r\n } catch (Exception e) {\r\n }\r\n }", "public Bill getBill() {\n return bill;\n }", "public void credit() {\n \tSystem.out.println(\"HSBC--Credit--from US Bank\");\n }", "public static void main(String[] args) {\n\t\tBank b = new Bank();\n\t\tRandom r = new Random();\n\t\tfor(int i = 0; i < 29; i++) {\n\t\t\tb.addAccount(new Account(i*100000, r.nextInt(1000000)*r.nextDouble(),Integer.toString(i)));\n\t\t}\n\t\tSystem.out.println(b);\n\t\tSystem.out.println(b.addAccount(new Account(1500l, r.nextInt(1000000)*r.nextDouble(), \"100\")));\n\t\tSystem.out.println(b.removeAccount(1500l));\n\t\tSystem.out.println(b.deposit(1500l, 1000d));\n\t\tSystem.out.println(b.deposit(0l, 1000d));\n\t\tSystem.out.println(b.withdraw(0l, 1000000000000000000d));\n\t}", "void save(Bill bill);", "public void makePayment() {\r\n System.out.println(\"pay\");\r\n setPayed(true);\r\n }", "public void calculatePayment() {}", "@RequestMapping(value = \"createBankPayment\", method = RequestMethod.POST)\n public Invoice addBankPayment(@RequestParam(value = \"jobIdList\") ArrayList<Integer> jobIdList,\n @RequestParam(value = \"jobseekerId\") int jobseekerId,\n @RequestParam(value = \"adminFee\") int adminFee) {\n try {\n ArrayList<Job> jobs = new ArrayList<>();\n for (Integer id : jobIdList) {\n jobs.add(DatabaseJobPostgre.getJobById(id));\n }\n Invoice invoice = new BankPayment(DatabaseInvoicePostgre.getLastId() + 1,\n jobs,\n DatabaseJobseekerPostgre.getJobseekerById(jobseekerId),\n adminFee);\n invoice.setTotalFee();\n System.out.println(invoice.getTotalFee());\n DatabaseInvoicePostgre.insertInvoice(invoice);\n return invoice;\n } catch (OngoingInvoiceAlreadyExistsException e) {\n return null;\n }\n }", "public static void main(String[] args) {\n\t\tEB_Bill obj = new EB_Bill();\r\n\t\tobj.getInput();\r\n\t\tobj.calculateBill();\r\n\t}", "public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}", "public static void main(String[] args) {\n bankChargesDemo();\n }", "@RequestMapping(path=\"/createOrder\", method = RequestMethod.POST, produces = \"application/json\", consumes = \"application/json\")\n\tpublic ResponseEntity<PaymentResponseDTO> createOrder(@RequestBody PaymentRequestDTO btcDTO) { \n\t\tlogger.info(\"Init payment\");\n\t\t\n\t\tSellerBitcoinInfo sbi = bitcoinRepo.findByidMagazine(btcDTO.getSellerId());\n\t\t\n\t\tSystem.out.println(\"ADDRESS \" + sbi.getBitcoinAddress());\n\t\t\n\t\tString token = sbi.getBitcoinAddress();\n\t\t\n\t\tString authToken = \"Bearer \" + token;\n\t\t//trebali bismo da kreiramo transakciju koja ce biti u stanju \"pending\" sve dok korisnik ne plati ili mu ne istekne odredjeno vreme\n\t\t\n\t\t//txRepo.save(tx);\n\t\t//RestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t//restTemplate.getForEntity(\"https://google.rs\", String.class);\n\t\t//restTemplate.getForEntity(\"https://api.coingate.com/v2/ping\", String.class);\n\t\t\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.add(\"Authorization\", authToken);\t \n\t\t\n\t\tSystem.out.println(\"Amount: \" + btcDTO.getAmount());\n\t\t\n\t\tCreateOrderRequestDTO order = new CreateOrderRequestDTO(\"1111\", btcDTO.getAmount(), \"BTC\", \"DO_NOT_CONVERT\", \"Title\", \"Description\", \"https://localhost:4200/success\", \"https://localhost:4200/failed\", \"https://localhost:4200/success\", \"token\");\n\t\t\n\t\tResponseEntity<Object> responseEntity = new RestTemplate().exchange(\"https://api-sandbox.coingate.com/v2/orders\", HttpMethod.POST,\n\t\t\t\tnew HttpEntity<Object>(order, headers), Object.class);\n\t\t\n\t\tlogger.info(responseEntity.getBody().toString());\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.configure(Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);\n\t\tBitCoinResponseDTO btcResponse = new BitCoinResponseDTO();\n\n\t\tbtcResponse = mapper.convertValue(responseEntity.getBody(), BitCoinResponseDTO.class);\n\t\t\n\t\tString paymentUrl = btcResponse.getPayment_url();\n\t\t\n\t\tlogger.info(paymentUrl);\n\t\t\n\t\tTx tx = createTransaction(btcResponse,sbi);\n\t\ttxRepo.save(tx);\n\t\t\n\t\tTxInfoDto txInfo = new TxInfoDto();\n\t\ttxInfo.setOrderId(btcDTO.getOrderId());\n\t\ttxInfo.setServiceWhoHandlePayment(\"https://localhost:8764/bitCoin\");\n\t\ttxInfo.setPaymentId(tx.getorder_id()); //ovde se nalazi orderId koji je i na coingate-u\n\t\t\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\tResponseEntity<TxInfoDto> r = restTemplate.postForEntity(\"https://localhost:8111/request/updateTxAfterPaymentInit\", txInfo, TxInfoDto.class);\n\t\t\n\t\t//BitCoinResponseDTO response = parser.parseList(responseEntity.getBody().toString());\n\t\t\n\t\t//BitCoinResponseDTO responseDTO = responseEntity.;\n\t\t\n\t\t//String pageToRedirec = responseDTO.getPayment_url();\n\t\t\n\t\t//restTemplate.exchange\n\t\t//ResponseEntity<String> response = restTemplate.postForEntity(\"https://api-sandbox.coingate.com/v2/orders\", btcDTO, String.class);\n\t\t\n\t\tPaymentResponseDTO responseDTO = new PaymentResponseDTO();\n\t\tresponseDTO.setPaymentUrl(paymentUrl);\n\t\tresponseDTO.setPaymentId(1l);\n\n\t\tSTATIC_ID = btcResponse.getId();\n\t\tSTATIC_TOKEN = authToken;\n\t\tIS_CREATE = true;\n\t\t\n\t\t//scheduleFixedDelayTask();\n\t\t//scheduleFixedDelayTask(btcResponse.getId(), authToken);\n\t\t\n\t\treturn new ResponseEntity<PaymentResponseDTO>(responseDTO,HttpStatus.OK);\n\t}", "protected PaymentDetail populatePaymentDetail(VendorCreditMemoDocument creditMemoDocument, Batch batch) {\r\n PaymentDetail paymentDetail = new PaymentDetail();\r\n if (creditMemoDocument.getCreditMemoNumber() != null) {\r\n String invoiceNumber = creditMemoDocument.getCreditMemoNumber();\r\n if (invoiceNumber.length() > 25) {\r\n invoiceNumber = invoiceNumber.substring(0, 25);\r\n } else {\r\n paymentDetail.setInvoiceNbr(invoiceNumber);\r\n }\r\n paymentDetail.setInvoiceNbr(invoiceNumber);\r\n } else {\r\n paymentDetail.setInvoiceNbr(\"\");\r\n }\r\n paymentDetail.setCustPaymentDocNbr(creditMemoDocument.getDocumentNumber());\r\n\r\n\r\n if (creditMemoDocument.getPurchaseOrderIdentifier() != null) {\r\n paymentDetail.setPurchaseOrderNbr(creditMemoDocument.getPurchaseOrderIdentifier().toString());\r\n }\r\n\r\n if (creditMemoDocument.getPurchaseOrderDocument() != null) {\r\n if (creditMemoDocument.getPurchaseOrderDocument().getRequisitionIdentifier() != null) {\r\n paymentDetail.setRequisitionNbr(creditMemoDocument.getPurchaseOrderDocument().getRequisitionIdentifier().toString());\r\n }\r\n\r\n if (creditMemoDocument.getDocumentHeader().getOrganizationDocumentNumber() != null) {\r\n paymentDetail.setOrganizationDocNbr(creditMemoDocument.getDocumentHeader().getOrganizationDocumentNumber());\r\n }\r\n }\r\n\r\n paymentDetail.setCustomerInstitutionNumber(StringUtils.defaultString(creditMemoDocument.getVendorCustomerNumber()));\r\n\r\n final String creditMemoDocType = getDataDictionaryService().getDocumentTypeNameByClass(creditMemoDocument.getClass());\r\n paymentDetail.setFinancialDocumentTypeCode(creditMemoDocType);\r\n paymentDetail.setFinancialSystemOriginCode(OLEConstants.ORIGIN_CODE_KUALI);\r\n\r\n paymentDetail.setInvoiceDate(creditMemoDocument.getCreditMemoDate());\r\n paymentDetail.setOrigInvoiceAmount(creditMemoDocument.getCreditMemoAmount().negated());\r\n paymentDetail.setNetPaymentAmount(creditMemoDocument.getFinancialSystemDocumentHeader().getFinancialDocumentTotalAmount().negated());\r\n\r\n KualiDecimal shippingAmount = KualiDecimal.ZERO;\r\n KualiDecimal discountAmount = KualiDecimal.ZERO;\r\n KualiDecimal creditAmount = KualiDecimal.ZERO;\r\n KualiDecimal debitAmount = KualiDecimal.ZERO;\r\n\r\n for (Iterator iter = creditMemoDocument.getItems().iterator(); iter.hasNext(); ) {\r\n CreditMemoItem item = (CreditMemoItem) iter.next();\r\n\r\n KualiDecimal itemAmount = KualiDecimal.ZERO;\r\n if (item.getExtendedPrice() != null) {\r\n itemAmount = item.getExtendedPrice();\r\n }\r\n if (PurapConstants.ItemTypeCodes.ITEM_TYPE_PMT_TERMS_DISCOUNT_CODE.equals(item.getItemTypeCode())) {\r\n discountAmount = discountAmount.subtract(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_SHIP_AND_HAND_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.subtract(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_FREIGHT_CODE.equals(item.getItemTypeCode())) {\r\n shippingAmount = shippingAmount.add(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MIN_ORDER_CODE.equals(item.getItemTypeCode())) {\r\n debitAmount = debitAmount.subtract(itemAmount);\r\n } else if (PurapConstants.ItemTypeCodes.ITEM_TYPE_MISC_CODE.equals(item.getItemTypeCode())) {\r\n if (itemAmount.isNegative()) {\r\n creditAmount = creditAmount.subtract(itemAmount);\r\n } else {\r\n debitAmount = debitAmount.subtract(itemAmount);\r\n }\r\n }\r\n }\r\n\r\n paymentDetail.setInvTotDiscountAmount(discountAmount);\r\n paymentDetail.setInvTotShipAmount(shippingAmount);\r\n paymentDetail.setInvTotOtherCreditAmount(creditAmount);\r\n paymentDetail.setInvTotOtherDebitAmount(debitAmount);\r\n\r\n paymentDetail.setPrimaryCancelledPayment(Boolean.FALSE);\r\n\r\n addAccounts(creditMemoDocument, paymentDetail, creditMemoDocType);\r\n addNotes(creditMemoDocument, paymentDetail);\r\n\r\n return paymentDetail;\r\n }", "public java.lang.String billing_GetLastPrintedBill(java.lang.String accessToken, java.lang.String accountNumber) throws java.rmi.RemoteException;", "public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"[email protected]\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "public int createBill() throws ClassNotFoundException \n\t{\n\t\tint result=0;\n\t\tString CREATE_BILL_SQL=\"INSERT INTO bills\" +\n\t\t\t\t\"(clients_username, telephone_number, idprogram, month) VALUES\" +\n\t\t\t\t\"(?, ?, ?, ?);\";\n\t\tClass.forName(\"com.mysql.cj.jdbc.Driver\");\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(CREATE_BILL_SQL))\n\t\t{\n\t\t\tpreparedStatement.setString(1, getUsername());\n\t\t\tpreparedStatement.setString(2, telnum);\n\t\t\tpreparedStatement.setInt(3, progid);\n\t\t\tpreparedStatement.setInt(4, getMonth());\n\t\t\t\n\t\t\tSystem.out.println(preparedStatement);\n\t\t\tresult = preparedStatement.executeUpdate();\n\t\t}\n\t\tcatch(SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n BankAccount bankAccount = new BankAccount(11211, 0, \"adam smith\", \"[email protected]\", \"9090980980\");\n BankAccount tim = new BankAccount(\"tim\", \"[email protected]\", \"9090980980\");\n System.out.println(\"Account Number = \" + tim.getAccountNumber());\n System.out.println(\"Balance = \"+ tim.getBalance());\n System.out.println(\"Customer Name = \" + bankAccount.getCustomerName());\n System.out.println(\"Email = \" + bankAccount.getEmailAddress());\n System.out.println(\"Phone Number = \" + bankAccount.getPhoneNumber());\n System.out.println(\"deposit = \"+ bankAccount.getDeposit(90));\n System.out.println(\"new balance = \"+ bankAccount.getWithdrawal(200));\n }", "public void createInvoice() {\n\t}", "@Override\n\tpublic boolean createOrderBill(OrderBill orderBill) {\n\t\treturn false;\n\t}", "private String CreateInvoice() throws Exception {\n\n\t\tgetDriver().get(\"https://stg.autobrain.com/worker/retail_fulfillment/new_invoice\");\n\n\t\t// Add Quantity\n\t\tString s = prop.getProperty(\"no_of_devices\");\n\t\tint quantity = Integer.parseInt(s);\n\n\t\tfor (int i = 0; i < quantity; i++) {\n\t\t\tVisibilityOfElementByXpath(\"//div[@class='input-group number-picker']/span[2]/button\", 15).click();\n\t\t\tThread.sleep(500);\n\t\t}\n\n\t\t// Get invoice auto-generated number\n\t\tinvoice_id_before = VisibilityOfElementByXpath(\"//code[@class='name-preview']\", 15).getText();\n\t\tinvoice_id_before = invoice_id_before.replace(\"#\", \"\");\n\n\t\t// Description\n\t\tVisibilityOfElementByID(\"invoice_description\", 15).sendKeys(\"testing_\" + invoice_id_before);\n\n\t\t// Select account type\n\t\tSelect select = new Select(VisibilityOfElementByID(\"invoice_account_type\", 15));\n\n\t\tif (prop.getProperty(\"account_type\").equalsIgnoreCase(\"Autobrain Family\")) {\n\t\t\tinvoice_account_type = \"personal\";\n\t\t}\n\n\t\telse if (prop.getProperty(\"account_type\").equalsIgnoreCase(\"Autobrain Business\")) {\n\t\t\tinvoice_account_type = \"business\";\n\t\t}\n\n\t\tselect.selectByVisibleText(invoice_account_type);\n\n\t\t// Submit button\n\t\twait(getDriver(), 10).until(ExpectedConditions.visibilityOfElementLocated(By.name(\"commit\"))).click();\n\n\t\t// Validate invoice created\n\t\t// Get invoice auto-generated number\n\t\tString invoice_id_after = VisibilityOfElementByXpath(\"//code[@class='name-preview']\", 15).getText();\n\n\t\tif (!invoice_id_before.equals(invoice_id_after)) {\n\t\t\tSystem.out.println(\"Invoice created successfully!\");\n\t\t}\n\n\t\telse if (invoice_id_before.equals(invoice_id_after)) {\n\t\t\tAssert.assertEquals(true, false, \"Invoice not created successfully!\");\n\t\t}\n\n\t\treturn invoice_name = \"testing_\" + invoice_id_before;\n\n\t}", "public static String addBill(String account, String amount, String duedate){\n return \"insert into current_bills(cb_account,cb_bill,cb_duedate,cb_paid,cb_late) values('\"+account+\"'\"+\",'\"+amount+\"'\"+\",'\"+duedate+\"',0,0)\";\n }", "public void printBill(){\r\n\t\tint numOfItems = ItemsList.size();\r\n\t\tfor(int i = 0;i<numOfItems;i++){\r\n\t\t\tSystem.out.println(\"1\" + ItemsList.get(i).getName() + \"at \" + ItemsList.get(i).getPrice());\r\n\t\t}\r\n\t\tSystem.out.printf(\"Sales Tax: %.2f\\n\", taxTotal);\r\n\t\tSystem.out.println(\"Total: \" + total);\r\n\t}", "public String createSubscriptionWithAccount(Account acct, PaymentMethod pm, String productCode) {\n\t\t\n\t\tString VID = null; \n\t\n\t\t// Construct the AutoBill object given the payment method and the account object\n\t\tAutoBill abill = new AutoBill();\n\t\tabill.setMerchantAutoBillId(VindiciaUtil.createUniqueId(\"autobill\"));\t//Unique subscription ID, required\n\t\tabill.setAccount(acct); // customer who is purchasing this subscription\n\t\tabill.setPaymentMethod(pm); \n\t\tabill.setSourceIp(\"233.56.67.23\"); // customer's IP address - necessary for fraud screening\n\t\tabill.setCurrency(\"USD\"); // price in this currency must be specified on Product or BillingPlan\n\t\t\n\t\t// Set the name to the email address so that we can look this up in prodtest\n\t\tabill.setCustomerAutoBillName(acct.getEmailAddress());\n\t\t\n\t\t// This subscription uses a single Product. Create an AutoBillItem for it in order to assign it to an autobill\n\t\tAutoBillItem item = new AutoBillItem();\n\t\t// Assign a product to the AutoBillItem\n\t\tProduct prod = new Product();\n\t\tprod.setMerchantProductId(productCode);\n\t\titem.setProduct(prod);\n\n\t\t// Unique ID for the AutoBill item\n\t\titem.setMerchantAutoBillItemId(VindiciaUtil.createUniqueId(\"autobill_item\"));\t\n\t\tabill.setItems(new AutoBillItem[] {item});\n\t\t\n\t\t// Now make the CashBox SOAP API call to create the AutoBill in CashBox\n\t\ttry {\n\t\t\t\n\t\t\t\tSystem.out.println(\"Creating autobill...\");\n\n\t\t\t\tAutoBillUpdateReturn abur = abill.update(\n\t\t\t\t\t\tnull, \n\t\t\t\t\t\tcom.vindicia.soap.v20_0.Vindicia.ImmediateAuthFailurePolicy.doNotSaveAutoBill, \n\t\t\t\t\t\tfalse, // validate PaymentMethod, if Full Amount Auth setting for merchant is turned on \n\t\t\t\t\t\t // this results into first cycle's bill being fully authorized\n\t\t\t\t\t\t100, // fraud score tolerance - scoring turned off here\n\t\t\t\t\t\tfalse, // do not ignore avs policy evaluation\n\t\t\t\t\t\tfalse, // do not ignore cvv policy evaluation\n\t\t\t\t\t\tnull, // promo or coupon code\n\t\t\t\t\t\tfalse // no dry run\n\t\t\t\t\t\t, new com.vindicia.soap.v20_0.Vindicia.CancelReason().getReason_code());\n\t\t\t\t\n\t\t\t\t// If we are here, we got a 200 response back from the server - meaning\n\t\t\t\t// payment method validation, avs check, and cvv check succeeded\n\t\t\t\t// \n\t\t\t\tif (abur.getReturnObject().getReturnCode().getValue() == 200) {\n\t\t\t\t\tVID = abill.getVID();\n\t\t\t\t\tSystem.out.println(\"Successfully created autobill with Vindicia id \" + VID);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t// We should not reach here\n\t\t\t\t\tSystem.out.println(\"AutoBill creation failed, return code: \" + abur.getReturnObject().getReturnCode() + \" return string: '\" + abur.getReturnObject().getReturnString() + \"'\");\n\t\t\t\t\tSystem.out.println(\"Soap id \" + abur.getReturnObject().getSoapId());\n\t\t\t\t}\n\t\t\t\n\t\t}\n\t\tcatch (VindiciaReturnException vre) {\n\t\t\t// If we are here, we should assume that the AutoBill creation failed\n\t\t\t// Example below shows various return codes from CashBox and what they mean\n\t\t\t\n\t\t\tif (vre.getReturnCode().equals(\"408\")) {\n\t\t\t\t//CVV check failed\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (vre.getReturnCode().equals(\"407\")) {\n\n\t\t\t\t//AVS Check Failed\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t}\n\t\t\telse if (vre.getReturnCode().equals(\"409\")){\n\n\t\t\t\t//AVS and CVV Check Failed\t\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t}\n\t\t\telse if (vre.getReturnCode().equals(\"410\")) {\n\t\t\t\t//AVS and CVV check could not be performed\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t\t\t\n\t\t\t}\n\t\t\telse if (vre.getReturnCode().equals(\"402\")) {\n\t\t\t\t// Card authorization failed\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t}\n\t\t\telse if (vre.getReturnCode().equals(\"400\")) {\n\t\t\t\t// Other failure\n\t\t\t\tSystem.out.println(\"Vindicia response string: \" + vre.getMessage() + \" , Call SOAP ID: \" + vre.getSoapId());\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\t// System exception such as time out or network connectivity issue \n\t\t\t// Here we have not received any response or unexpected response from our request\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t// return the VID of the subscription to the caller\n\t\treturn VID;\n\t}", "private void designBillTransactionInfo(CartReceiptResponse receiptResponse, final Document document, Locale locale)\n throws DocumentException, IOException {\n LOGGER.debug(\"Entered in designBillTransactionInfo() method\");\n SubmittedBill[] submittedBills = receiptResponse.getSubmittedBills();\n /* Start of Bill Submit Section */\n PdfPTable paymentSectionTable = new PdfPTable(3);\n paymentSectionTable.setWidths(new int[]{50, 150, 50});\n PdfPCell paymentSectionBlankSpaceCell = new PdfPCell(new Phrase(\" \", getFont(WHITE_COLOR, 8, Font.BOLD)));\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, GRAY_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n BigDecimal totalBillAmount = new BigDecimal(0);\n BigDecimal totalFeeAmount = new BigDecimal(0);\n Boolean flag = true;\n\n if (submittedBills != null && receiptResponse.getReturnedItems().length != 0) {\n returnPaymentHeading(locale, paymentSectionTable);\n for (final SubmittedBill submittedBill : submittedBills) {\n final ReturnReceiptItem[] returnReceiptItems = receiptResponse.getReturnedItems();\n for (final ReturnReceiptItem returnReceiptItem : returnReceiptItems) {\n long cartId = returnReceiptItem.getCartItemId();\n if (cartId == submittedBill.getId() &&\n submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n designReturnHeaderBillSection(submittedBill,\n returnReceiptItem,\n locale,\n paymentSectionTable,\n paymentSectionBlankSpaceCell, receiptResponse);\n }\n }\n }\n }\n\n if (submittedBills != null) {\n for (final SubmittedBill submittedBill : submittedBills) {\n BigDecimal transactionFee = new BigDecimal(0);\n if (submittedBill.getFee() != null) {\n transactionFee = submittedBill.getFee();\n }\n if (flag.equals(true)) {\n setTableForCells(paymentSectionTable, locale);\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n flag = false;\n }\n\n\t\t\t\t/* Paid Biller Details Start */\n if (getStatusForPaid(submittedBill.getStatus().name())) {\n designSubmittedBillsSection(submittedBill, locale, paymentSectionTable);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n /* End Paid Biller Details */\n\n\t\t\t\t/* Failed Biller Details Start */\n if (getStatusForRejected(submittedBill.getStatus().name())) {\n LOGGER.debug(\"Enterd in to REJECTED Related section after checking all status\");\n designFailedBillsSection(locale, paymentSectionTable,\n submittedBill);\n }\n /* End Failed Biller Details */\n\n if (submittedBill.getStatus().name().equalsIgnoreCase(PdfConstants.RETURNED)) {\n LOGGER.debug(\"Enterd in to RETURNED Related section after checking all status\");\n designReturnedBillsSection(locale, paymentSectionTable, paymentSectionBlankSpaceCell,\n submittedBill);\n totalBillAmount = totalBillAmount.add(submittedBill.getAmount());\n totalFeeAmount = totalFeeAmount.add(transactionFee);\n }\n }\n }\n\n\t\t/* add blank Space Start */\n cellAlignment(paymentSectionBlankSpaceCell, Element.ALIGN_LEFT, WHITE_COLOR, 0);\n cellAddingToTable(paymentSectionTable, paymentSectionBlankSpaceCell, Rectangle.NO_BORDER, 3, 0);\n /* add blank space end */\n\n\t\t/* Calculating and displaying card service fee amount and service fee percent*/\n totalBillAmount = totalBillAmount.add(getCardServiceFeeAmount(receiptResponse, paymentSectionTable\n , paymentSectionBlankSpaceCell, locale));\n\t\t/* End of Card service fee */\n\n\t\t/* bill Total Paid start */\n drawTotalAmountCell(paymentSectionTable, paymentSectionBlankSpaceCell, locale, totalBillAmount, totalFeeAmount);\n /* bill Total Paid End */\n /* Add Line separator to the PDF document */\n addLineSeperator(paymentSectionTable, paymentSectionBlankSpaceCell);\n /* End of line separator */\n\n document.add(paymentSectionTable);\n LOGGER.debug(\"End pdfPaymentSection Table \");\n\n\n }", "Receipt chargeOrder(PizzaOrder order, CreditCard creditCard);", "ShipmentItemBilling createShipmentItemBilling();", "public void autoPay() {}", "public void checkout() {\n\t}", "public static void main(String[] args) {\n\t\t Scanner input=new Scanner(System.in);//Input through Scanner Class\n\t\t System.out.println(\"You have Rs 500 in account\"); \n\t\t System.out.println(\"Enter the amount to be withdrawed\");\n\t\t int amount = input.nextInt();\n\t\t //Enter the amount \n\t\t CurrentAccount deposit=new CurrentAccount();\n\t\t payment(deposit, amount);\n\t\t //Withdraw the amount from bank\n\t\t System.out.println(\"Enter the amount to be deposited\");\n\t\t amount = input.nextInt();\n\t deposit(new SavingsAccount(), amount);\n //Deposit the amount bank\n }", "@Override\n\tpublic String printBillInvoice(Billing bill) {\n\t\tStringBuilder stringBuilder = new StringBuilder();\n\t\tstringBuilder.append(\"RetailCustomer Details:\");\n\t\tstringBuilder.append(retailCustomer);\n\t\tstringBuilder.append(\"Shop the following:\");\n\t\tstringBuilder.append(bill.getOnlineShoppingCartItem());\n\t\tstringBuilder.append(\" Total Bill Amount : \");\n\t\tstringBuilder.append(bill.getTotalBill());\n\t\tstringBuilder.append(\" Bill Amount After RetailCustomer Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillAfterRetailCustomerTypeDiscount());\n\t\tstringBuilder.append(\" Bill Amount After final Discount:\");\n\t\tstringBuilder.append(bill.getTotalBillCost());\n\t\treturn stringBuilder.toString();\n\t}", "void pay(Order order);", "public void makePayment()\n\t{\n\t\tif(this.inProgress())\n\t\t{\n\t\t\tthis.total += this.getPaymentDue();\n\t\t\tthis.currentTicket.setPaymentTime(this.clock.getTime());\n\t\t}\t\t\n\t}", "private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }", "private static void generateCashDeposit(int branchID) {\n long accountNo = getRandAccountFromBranch(branchID);\n int amount = getRandomAmount();\n writeToFile(String.format(\"%d %d\\n\", accountNo, amount));\n }", "int payInTurbo(String turboCardNo, float turboAmount, String destinationTurboOfCourse, String installmentsButInTurbo);", "void joinBill(Bill toJoin);", "public void startgetBillInfo(\r\n org.tempuri.HISWebServiceStub.GetBillInfo getBillInfo76,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[38].getName());\r\n _operationClient.getOptions().setAction(\"http://tempuri.org/GetBillInfo\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n getBillInfo76,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"getBillInfo\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"GetBillInfo\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.GetBillInfoResponse.class);\r\n callback.receiveResultgetBillInfo((org.tempuri.HISWebServiceStub.GetBillInfoResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorgetBillInfo(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(), \"GetBillInfo\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetBillInfo\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"GetBillInfo\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrorgetBillInfo(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorgetBillInfo(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetBillInfo(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetBillInfo(f);\r\n }\r\n } else {\r\n callback.receiveErrorgetBillInfo(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorgetBillInfo(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[38].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[38].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "void generate(List<Customer> customers);", "@PostMapping(\"/checkout\")\n ResponseEntity<OrderCompletionReport> checkout(@RequestParam int amount,\n @RequestParam(\"crate_size\") CrateSize crateSize) {\n verify(cart);\n\n Order order = new Order();\n transferItems(cart, order, Long.valueOf(crateSize.times(amount)).intValue());\n order.complete();\n repository.save(order);\n cart.clear();\n\n return ResponseEntity.ok(OrderCompletionReport.success(order));\n }", "public void cashReceipt(int amount){\r\n System.out.println(\"Take the receipt\");\r\n }", "public static String payCurrentBill(String account){\n return \"update current_bills set cb_paid = 1 where cb_account = '\"+account+\"'\";\n }", "public void setBillNo(Long billNo) {\n this.billNo = billNo;\n }", "public ReturnCash(){\n\t\t\n\t}", "public static void openBillingPage (final Object... args)\n {\n if (CShell.isGuest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustLogon(), _cmsgs.gobuyLogon(), Link.createHandler(\n Pages.ACCOUNT, \"logon\"));\n\n } else if (CShell.isPermaguest()) {\n MsoyUI.infoAction(_cmsgs.gobuyMustRegister(), _cmsgs.gobuyRegister(),\n NaviUtil.onMustRegister());\n\n } else if (MemberMailUtil.isPlaceholderAddress(CShell.creds.accountName)) {\n MsoyUI.infoAction(_cmsgs.gobuyMustConfigure(), _cmsgs.gobuyConfigure(),\n Link.createHandler(Pages.ACCOUNT, \"config\"));\n\n } else {\n Link.go(Pages.BILLING, args);\n }\n }", "@Test\n public void makeAndRetrievePbaPaymentsByProbate() {\n String accountNumber = testProps.existingAccountNumber;\n CreditAccountPaymentRequest accountPaymentRequest = PaymentFixture.aPbaPaymentRequestForProbate(\"90.00\",\n \"PROBATE\",accountNumber);\n accountPaymentRequest.setAccountNumber(accountNumber);\n PaymentDto paymentDto = paymentTestService.postPbaPayment(USER_TOKEN, SERVICE_TOKEN, accountPaymentRequest).then()\n .statusCode(CREATED.value()).body(\"status\", equalTo(\"Success\")).extract().as(PaymentDto.class);\n\n assertTrue(paymentDto.getReference().startsWith(\"RC-\"));\n\n // Get pba payment by reference\n PaymentDto paymentsResponse =\n paymentTestService.getPbaPayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then()\n .statusCode(OK.value()).extract().as(PaymentDto.class);\n\n assertThat(paymentsResponse.getAccountNumber()).isEqualTo(accountNumber);\n\n // delete payment record\n paymentTestService.deletePayment(USER_TOKEN, SERVICE_TOKEN, paymentDto.getReference()).then().statusCode(NO_CONTENT.value());\n\n }", "private void demoDeliverProducts()\n {\n System.out.println(\"\\nDelivering all the products\\n\");\n System.out.println(\"============================\");\n System.out.println();\n for(int id = 101; id <= 110; id++)\n {\n amount = generator.nextInt(20);\n manager.delivery(id, amount);\n }\n \n manager.printAllProducts();\n }", "public void processBills() {\r\n \r\n System.out.printf(\"%nHow many bills are there to process? \");\r\n int numBills = input.nextInt(); //local variable captures int from user.\r\n \r\n cableBills = new Invoice[numBills];\r\n billingStmts = new String[numBills];\r\n \r\n for(int i=0; i < numBills; i++) {\r\n cableBills[i] = new Invoice();\r\n cableBills[i].setCustNm(i);\r\n cableBills[i].determineCableSrv(i);\r\n cableBills[i].setMoviesPurchased(i);\r\n \r\n double total = cableBills[i].getMoviePurchased() + cableBills[i].getCableSrv(); //local variable calculates the total/\r\n double movieCharges = cableBills[i].getMoviePurchased(); //local variable calculates the movie charges.\r\n \r\n billingStmts[i] = String.format(\"%nCustomer: %S\"\r\n + \"%n%nCable Service: %20c%,10.2f\"\r\n + \"%nMovies-On-Demand-HD: %14c%,10.2f\"\r\n + \"%n%nTOTAL DUE: %24c%,10.2f%n\",\r\n cableBills[i].getCustNm(), '$',\r\n cableBills[i].getCableSrv(), ' ', movieCharges, '$', total);\r\n }\r\n }", "int insertGenDetail(Integer uid, Integer merid, Double paymoney, Double sendmoney, Double tomoney, Double balance, Double topupbalance, Double givebalance, String ordernum, Date createTime, Integer paysource, String remark);", "void makeLimitBuyOrder(AuthInfo authInfo, String pair, String price, String amount,HibtcApiCallback<Object> callback);", "String getBillString();", "public static void main(String[] args) throws ParseException {\n\t\tString key = \"0_NJTIPIpaJTl1XOyn9SmfFFrK0=\";\n\t\tCompanyID = FindConcurCompany.getCompanyID(key);// get the CompanyID for the company associated to the owner of the key\n\n\t\t// Begin by deleting any existing batch definitions for this company\n\t\tmyMongoCompanyFunctions.deleteDoc(batCollection, \"CompanyID\", CompanyID);\n\t\t\n\t\t\n\t\t// Create the Batch Definitions\n\n\t\t// Batch Definition for the Cash payment type\n\t\tdefinition.setID(GUID.getGUID(2));\n\t\tdefinition.setCompanyID(CompanyID);\n\t\tdefinition.setPaymentTypeCode(\"CASH\");// Payment Type Code for Cash\n\t\tdefinition.setPaymentTypeName(\"Cash\");// Payment Type Code for Cash\n\t\tdefinition.setPaymentMethod(\"CNQRPAY\");// Payment Method for Concur Pay\n\t\tdefinition.setTransactionType(\"BILL\");// Transaction Type for a Bill or AP Transactions\n\t\tdefinition.setCountry(\"US\");\n\t\tdefinition.setCurrency(\"USD\");\n\t\tdefinition.setPayeeType(\"EMP\");\n\t\t\n\t\t// Set Ledger ID HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Apex\");// set to use the constant, Apex\n\t\tdefinition.setLedgerID(map);\n\t\t\n\t\t// Set Entity ID to the Employee ID\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"EmployeeID\");// set to use the EmployeeID Expense field\n\t\tdefinition.setEntityID(map);\n\t\t\n\t\t// Set Invoice Number HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"ReportID\");// set to use the ReportID Expense field\n\t\tdefinition.setInvoiceNumber(map);\n\t\t\n\t\t// Set Posting Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Today\", \"\");// set to use today's date\n\t\tdefinition.setPostingDate(map);\n\t\t\n\t\t// Set Invoice Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"PaidDate\");// set to use the PaidDate Expense field\n\t\tdefinition.setInvoiceDate(map);\n\t\t\n\t\t// Set the Header Accounting Object HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Accounts Payable\");// set to use the constant Accounts Payable\n\t\tdefinition.setHeaderAccountObject(map);\n\t\t\n\t\t// Set Header Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"ReportName\");// set to use the ReportName Expense field\n\t\tdefinition.setHeaderDescription(map);\n\t\t\n\t\t// Set PrivateNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Private Note\");// set to use the ReportName Expense field\n\t\tdefinition.setPrivateNote(map);\n\t\t\n\t\t// Set VendorNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Vendor Note\");// set to use the ReportName Expense field\n\t\tdefinition.setVendorNote(map);\n\t\t\n\t\t// Set Header Custom Field Mappings\n\n\t\tArrayList<FieldMapping> mappings = new ArrayList<FieldMapping>();\n\t\tFieldMapping mapping = new FieldMapping();\n\t\tString SourceFormName = \"ExpenseField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tString SourceFieldName = \"ReportName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tString TargetFormName=\"Bill Header\";// the name of the data entry form or \"object\" in the target application\n\t\tString TargetFieldName= \"Memo\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ExpenseField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"EmployeeID\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Header\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Reference\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setHeaderCustomFields(mappings);\n\t\t\n\t\t// Set Detail Account HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Lookup\", \"BRNA2204PYOC9531\");// set to use the constant Accounting Object Lookup\n\t\tdefinition.setDetailAccountObject(map);\n\t\t\n\t\t// Set Detail Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"Description\");// set to use the ReportName Expense field\n\t\tdefinition.setDetailDescription(map);\n\t\t\n\t\t// Set Detail OrgUnit HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Org Unit\");// set to use the ReportName Expense field\n\t\tdefinition.setOrgUnitID(map);\n\t\t\n\t\t// Set Customer HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom2\");// set to use the ReportName Expense field\n\t\tdefinition.setCustomerID(map);\n\t\t\n\t\t// Set Billable HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom3\");// set to use the ReportName Expense field\n\t\tdefinition.setBillable(map);\n\t\t\n\t\t// Set Detail Custom Field Mappings\n\n\t\tmappings = new ArrayList<FieldMapping>();\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"ExpenseTypeName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Expense Type\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"Date\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Date\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setDetailCustomFields(mappings);\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\tout.println(\"----------------------\");\n\t\tmyDoc = definition.getDocument();\n\t\tmyMongoCompanyFunctions.addDoc(batCollection, myDoc);\n\t\tdefinition.display();\n\n\n\t\t\n\t\t//Batch Definition for Company Paid Credit Card\n\t\tdefinition.setID(GUID.getGUID(2));\n\t\tdefinition.setCompanyID(CompanyID);\n\t\tdefinition.setPaymentTypeCode(\"COPD\");// Payment Type Code for Company Paid\n\t\tdefinition.setPaymentTypeName(\"Company Paid\");// Payment Type Code for Company Paid\n\t\tdefinition.setPaymentMethod(\"AP\");\n\t\tdefinition.setTransactionType(\"CARD\");// Transaction Type for a Bill or AP Transactions\n\t\tdefinition.setCountry(\"US\");\n\t\tdefinition.setCurrency(\"USD\");\n\t\tdefinition.setPayeeType(\"CARD\");\n\t\t\n\t\t// Set Ledger ID HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Apex\");// set to use the constant, Apex\n\t\tdefinition.setLedgerID(map);\n\t\t\n\t\t// Set the Header Accounting Object HashMap to the Asset account for the Credit Card\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"American Express\");// set to use the constant American Express\n\t\tdefinition.setHeaderAccountObject(map);\n\t\t\t\n\t\t// Set Entity ID to the Merchant Name\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"MerchantName\");// set to use the MerchantName Expense field\n\t\tdefinition.setEntityID(map);\n\t\t\n\t\t// Set Transaction Currency to the OriginalCurrency\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"OriginalCurrency\");// set to use the OriginalCurrency Expense field\n\t\tdefinition.setTransactionCurrency(map);\n\t\t\n\t\t\n\t\t// Set Posting Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"PostingDate\");// set to the PostingDate Expense Field\n\t\tdefinition.setPostingDate(map);\n\t\t\n\t\t// Set Invoice Date HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"TransactionDate\");// set to use the TransactionDate Expense field\n\t\tdefinition.setInvoiceDate(map);\n\t\t\n\t\n\t\t\n\t\t// Set PrivateNote HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Private Note\");// set to use the ReportName Expense field\n\t\tdefinition.setPrivateNote(map);\n\t\t\n\t\tdefinition.setHeaderCustomFields(null);// set Header Custom fields to Null\n\t\t// Set Detail Account HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Lookup\", \"BRNA2204PYOC9531\");// set to use the constant Accounting Object Lookup\n\t\tdefinition.setDetailAccountObject(map);\n\t\t\n\t\t// Set Detail Description HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"ExpenseField\", \"Description\");// set to use the ReportName Expense field\n\t\tdefinition.setDetailDescription(map);\n\t\t\n\t\t// Set Detail OrgUnit HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"Constant\", \"Test Org Unit\");// set to use the ReportName Expense field\n\t\tdefinition.setOrgUnitID(map);\n\t\t\n\t\t// Set Customer HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom2\");// set to use the ReportName Expense field\n\t\tdefinition.setCustomerID(map);\n\t\t\n\t\t// Set Billable HashMap\n\t\tmap = new HashMap<String, String>();\n\t\tmap.put(\"AllocationField\", \"Custom3\");// set to use the ReportName Expense field\n\t\tdefinition.setBillable(map);\n\t\t\n\t\t// Set Detail Custom Field Mappings\n\n\t\tmappings = new ArrayList<FieldMapping>();\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"ExpenseTypeName\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Expense Type\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\t\n\t\tmapping = new FieldMapping();\n\t\tSourceFormName = \"ItemField\" ;// the name of the data entry form or \"object\"; Constant means instead of using a form field, use a constant value. The value is the SourceFieldName.\n\t\tSourceFieldName = \"Date\";// the name of the field on this data entry form or object, or the value of the constant\n\t\tTargetFormName=\"Bill Detail\";// the name of the data entry form or \"object\" in the target application\n\t\tTargetFieldName= \"Date\";// the name of the field on this data entry form or object\n\t\tmapping.setSourceFormName(SourceFormName);\n\t\tmapping.setSourceFieldName(SourceFieldName);\n\t\tmapping.setTargetFormName(TargetFormName);\n\t\tmapping.setTargetFieldName(TargetFieldName);\n\t\tmappings.add(mapping);\n\t\tdefinition.setDetailCustomFields(mappings);\n\t\t\n\t\tout.println(\"----------------------\");\n\n\t\tmyDoc = definition.getDocument();\n\t\tmyMongoCompanyFunctions.addDoc(batCollection, myDoc);\n\t\tdefinition.display();\n\t\t\t\t\n\n\t}", "public void startautoOPBillCharge(\r\n org.tempuri.HISWebServiceStub.AutoOPBillCharge autoOPBillCharge78,\r\n final org.tempuri.HISWebServiceCallbackHandler callback)\r\n throws java.rmi.RemoteException {\r\n org.apache.axis2.client.OperationClient _operationClient = _serviceClient.createClient(_operations[39].getName());\r\n _operationClient.getOptions()\r\n .setAction(\"http://tempuri.org/AutoOPBillCharge\");\r\n _operationClient.getOptions().setExceptionToBeThrownOnSOAPFault(true);\r\n\r\n addPropertyToOperationClient(_operationClient,\r\n org.apache.axis2.description.WSDL2Constants.ATTR_WHTTP_QUERY_PARAMETER_SEPARATOR,\r\n \"&\");\r\n\r\n // create SOAP envelope with that payload\r\n org.apache.axiom.soap.SOAPEnvelope env = null;\r\n final org.apache.axis2.context.MessageContext _messageContext = new org.apache.axis2.context.MessageContext();\r\n\r\n //Style is Doc.\r\n env = toEnvelope(getFactory(_operationClient.getOptions()\r\n .getSoapVersionURI()),\r\n autoOPBillCharge78,\r\n optimizeContent(\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"autoOPBillCharge\")),\r\n new javax.xml.namespace.QName(\"http://tempuri.org/\",\r\n \"AutoOPBillCharge\"));\r\n\r\n // adding SOAP soap_headers\r\n _serviceClient.addHeadersToEnvelope(env);\r\n // create message context with that soap envelope\r\n _messageContext.setEnvelope(env);\r\n\r\n // add the message context to the operation client\r\n _operationClient.addMessageContext(_messageContext);\r\n\r\n _operationClient.setCallback(new org.apache.axis2.client.async.AxisCallback() {\r\n public void onMessage(\r\n org.apache.axis2.context.MessageContext resultContext) {\r\n try {\r\n org.apache.axiom.soap.SOAPEnvelope resultEnv = resultContext.getEnvelope();\r\n\r\n java.lang.Object object = fromOM(resultEnv.getBody()\r\n .getFirstElement(),\r\n org.tempuri.HISWebServiceStub.AutoOPBillChargeResponse.class);\r\n callback.receiveResultautoOPBillCharge((org.tempuri.HISWebServiceStub.AutoOPBillChargeResponse) object);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n callback.receiveErrorautoOPBillCharge(e);\r\n }\r\n }\r\n\r\n public void onError(java.lang.Exception error) {\r\n if (error instanceof org.apache.axis2.AxisFault) {\r\n org.apache.axis2.AxisFault f = (org.apache.axis2.AxisFault) error;\r\n org.apache.axiom.om.OMElement faultElt = f.getDetail();\r\n\r\n if (faultElt != null) {\r\n if (faultExceptionNameMap.containsKey(\r\n new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"AutoOPBillCharge\"))) {\r\n //make the fault by reflection\r\n try {\r\n java.lang.String exceptionClassName = (java.lang.String) faultExceptionClassNameMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"AutoOPBillCharge\"));\r\n java.lang.Class exceptionClass = java.lang.Class.forName(exceptionClassName);\r\n java.lang.reflect.Constructor constructor = exceptionClass.getConstructor(java.lang.String.class);\r\n java.lang.Exception ex = (java.lang.Exception) constructor.newInstance(f.getMessage());\r\n\r\n //message class\r\n java.lang.String messageClassName = (java.lang.String) faultMessageMap.get(new org.apache.axis2.client.FaultMapKey(\r\n faultElt.getQName(),\r\n \"AutoOPBillCharge\"));\r\n java.lang.Class messageClass = java.lang.Class.forName(messageClassName);\r\n java.lang.Object messageObject = fromOM(faultElt,\r\n messageClass);\r\n java.lang.reflect.Method m = exceptionClass.getMethod(\"setFaultMessage\",\r\n new java.lang.Class[] { messageClass });\r\n m.invoke(ex,\r\n new java.lang.Object[] { messageObject });\r\n\r\n callback.receiveErrorautoOPBillCharge(new java.rmi.RemoteException(\r\n ex.getMessage(), ex));\r\n } catch (java.lang.ClassCastException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (java.lang.ClassNotFoundException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (java.lang.NoSuchMethodException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (java.lang.reflect.InvocationTargetException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (java.lang.IllegalAccessException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (java.lang.InstantiationException e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n } catch (org.apache.axis2.AxisFault e) {\r\n // we cannot intantiate the class - throw the original Axis fault\r\n callback.receiveErrorautoOPBillCharge(f);\r\n }\r\n } else {\r\n callback.receiveErrorautoOPBillCharge(f);\r\n }\r\n } else {\r\n callback.receiveErrorautoOPBillCharge(f);\r\n }\r\n } else {\r\n callback.receiveErrorautoOPBillCharge(error);\r\n }\r\n }\r\n\r\n public void onFault(\r\n org.apache.axis2.context.MessageContext faultContext) {\r\n org.apache.axis2.AxisFault fault = org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(faultContext);\r\n onError(fault);\r\n }\r\n\r\n public void onComplete() {\r\n try {\r\n _messageContext.getTransportOut().getSender()\r\n .cleanup(_messageContext);\r\n } catch (org.apache.axis2.AxisFault axisFault) {\r\n callback.receiveErrorautoOPBillCharge(axisFault);\r\n }\r\n }\r\n });\r\n\r\n org.apache.axis2.util.CallbackReceiver _callbackReceiver = null;\r\n\r\n if ((_operations[39].getMessageReceiver() == null) &&\r\n _operationClient.getOptions().isUseSeparateListener()) {\r\n _callbackReceiver = new org.apache.axis2.util.CallbackReceiver();\r\n _operations[39].setMessageReceiver(_callbackReceiver);\r\n }\r\n\r\n //execute the operation client\r\n _operationClient.execute(false);\r\n }", "public static void makePayment(Project proj) {\n System.out.print(\"Add client's next payment: \");\n int newAmmount = input.nextInt();\n input.nextLine();\n proj.addAmount(newAmmount);\n }", "public static void main(String[] args) {\n FundsTransfer transfer = new FundsTransfer(clientId, clientSecret, Interswitch.ENV_DEV);\n\n try {\n\n BankResponse response = transfer.fetchBanks(); // makes network call\n\n Bank[] bank = response.getBanks(); // a bank array of all banks\n\n if (bank instanceof Object) {\n\n // successful\n Bank testBank = bank[0]; // bank at index 0\n\n String cbnCode = testBank.getCbnCode(); // Central bank code\n String bankName = testBank.getBankName(); // bank name: \n String bankCode = testBank.getBankCode(); // bankcode in alphabetical form: UBA, GTB, FBN\n\n } else {\n\n // error occured\n }\n\n } catch (\n\n Exception ex) {\n // request was not completed\n }\n }", "public static void main(String[] args)\r\n\t{\r\n\t\t\r\n\t\tCalendar calendarInstance = Calendar.getInstance();\r\n\t\t\r\n\t\tint monthInt = calendarInstance.get(Calendar.MONTH) + 1;\r\n\t\tint dayInt = calendarInstance.get(Calendar.DAY_OF_MONTH);\r\n\t\tint yearInt = calendarInstance.get(Calendar.YEAR);\r\n\t\t\r\n\t\tString year = Integer.toString(yearInt);\r\n\t\tString month = Integer.toString(monthInt);\r\n\t\tString day = Integer.toString(dayInt);\r\n\t\t\r\n\t\tString calendarDate = new String(year + \"-\" + month + \"-\" + day);\r\n\t\t\r\n\t\tCustomerAccount geckoAccount = new CustomerAccount(1, \"Gordon Gecko\", \"1 Wall Street New York, NY 10002\", 100000000);\r\n\t\t\r\n\t\tgeckoAccount.addPurchase(250000.00, \"2012-09-08\", \"Rolls Royce\", \"New York\", \"NY\");\r\n\t\tgeckoAccount.addPurchase(300000.00, \"2012-09-10\", \"Tiffany's\", \"New York\", \"NY\");\r\n\t\tgeckoAccount.addPurchase(250000.00, \"2012-09-15\", \"Alfa Romero\", \"New York\", \"NY\");\r\n\t\t\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Valued CardHolder:\\t\" + geckoAccount.getCustName());\r\n\t\tSystem.out.println(\"Cardholder Address:\\t\" + geckoAccount.getCustAddress());\r\n\t\tSystem.out.println(\"Credit Limit:\\t\\t\" + geckoAccount.getCreditLimit());\r\n\t\tSystem.out.println(\"Current Unpaid Balance:\\t\" + geckoAccount.getUnpaidBalance());\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"Transactions on this account as of \" + calendarDate + \":\\n\");\r\n\t\tSystem.out.println(\"\\tDate:\\t\\t\\tMerchant:\\t\\tCity:\\t\\t\\tState:\\t\\tAmount:\\n\");\r\n\t\t\r\n\t\tString purchaseDate = \"\";\r\n\t\tString merchantName = \"\";\r\n\t\tString merchantCity = \"\";\r\n\t\tString merchantState = \"\";\r\n\t\tString purchaseAmount = \"\";\r\n\t\t\r\n\t\t// Initializes a purchase object in order to access the transactionList array and then prints the\r\n\t\t// purchase data via calling the appropriate getter methods\r\n\t\tfor(int index = 0; index < transactionList.size(); index++)\r\n\t\t{\r\n\t\t\t\r\n\t\t\tPurchase purchase = transactionList.get(index);\r\n\t\t\t\r\n\t\t\tpurchaseDate = purchase.getPurchaseDate();\r\n\t\t\tmerchantName = purchase.getMerchantName();\r\n\t\t\tmerchantCity = purchase.getMerchantCity();\r\n\t\t\tmerchantState = purchase.getMerchantState();\r\n\t\t\t\r\n\t\t\tdouble amount = purchase.getPurchaseAmount();\r\n\t\t\tpurchaseAmount = Double.toString(amount);\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"\\t\" + purchaseDate + \"\\t\\t\" + merchantName + \"\\t\\t\" + merchantCity + \"\\t\\t\" + merchantState + \"\\t\\t$\" + purchaseAmount);\r\n\t\t\t\r\n\t\t}\t// End of for loop\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}" ]
[ "0.72936565", "0.6851724", "0.68041193", "0.6642061", "0.63083667", "0.6231446", "0.60976815", "0.6095518", "0.608602", "0.6065969", "0.5914535", "0.59015983", "0.59013605", "0.5879795", "0.5878662", "0.58350575", "0.58146244", "0.5804777", "0.57948816", "0.57455593", "0.5732838", "0.57217646", "0.57186675", "0.5713875", "0.5709517", "0.56976104", "0.5688588", "0.5676336", "0.56724477", "0.5668032", "0.5645146", "0.56344706", "0.5630438", "0.5629884", "0.5629464", "0.56262916", "0.5619912", "0.5619781", "0.56168425", "0.56106585", "0.5610545", "0.5610142", "0.5602789", "0.5594165", "0.55904156", "0.55889404", "0.5582426", "0.5580312", "0.5578703", "0.55714524", "0.5564002", "0.5558431", "0.55514294", "0.55511194", "0.5542053", "0.5542045", "0.5538132", "0.55351824", "0.55336756", "0.55327475", "0.5531666", "0.55304784", "0.5530002", "0.55297667", "0.55274737", "0.55273426", "0.55198485", "0.55186874", "0.55172956", "0.55145717", "0.551331", "0.55123585", "0.5499705", "0.5495402", "0.5490548", "0.5490022", "0.5482026", "0.54793155", "0.5479055", "0.54682285", "0.54588133", "0.5450137", "0.5449074", "0.54352796", "0.5431311", "0.54294306", "0.54220366", "0.54220283", "0.54146415", "0.54123884", "0.54093665", "0.54086", "0.54064757", "0.54041517", "0.5384138", "0.5377862", "0.5375102", "0.53733385", "0.53701115", "0.5365854" ]
0.6008295
10
Edit product from cart
private void editProduct() { if (!CartController.getInstance().isCartEmpty()) { System.out.println("Enter Product Id - "); int productId = getValidInteger("Enter Product Id -"); while (!CartController.getInstance().isProductPresentInCart( productId)) { System.out.println("Enter Valid Product Id - "); productId = getValidInteger("Enter Product Id -"); } System.out.println("Enter new Quantity of Product"); int quantity = getValidInteger("Enter new Quantity of Product"); CartController.getInstance().editProductFromCart(productId, quantity); } else { DisplayOutput.getInstance().displayOutput( "\n-----Cart Is Empty----\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Product editProduct(Product product);", "public void Editproduct(Product objproduct) {\n\t\t\n\t}", "public void editProduct(int index, String description, String category, int quantity, int weight, int price, int stocknumber) {\t\t\n\t}", "public String editProduct() {\n ConversationContext<Product> ctx = ProductController.newEditContext(products.getSelectedRow());\n ctx.setLabelWithKey(\"part_products\");\n ctx.setCallBack(editProductCallBack);\n getCurrentConversation().setNextContextSub(ctx);\n return ctx.view();\n }", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "public void editProduct(SiteProduct product) {\n showForm(product != null);\n //form.editProduct(product);\n }", "ProductView updateProduct(int productId, EditProductBinding productToEdit) throws ProductException;", "@RequestMapping(value=\"/manage_product_edit/{id}\", method=RequestMethod.GET)\n\tpublic ModelAndView editProduct(@PathVariable(\"id\")String id)\n\t{\n\t\tModelAndView mv = new ModelAndView(\"/admin/Product\");\n\t\tProduct prod =productDAO.getProductById(id);\n\t\tmv.addObject(\"product\",prod);\n\t\tmv.addObject(\"isEditing\",true);\n\t\t\n\t\treturn mv;\t\n\t}", "public void editProduct(String newProductId) {\n fill(\"#productId\").with(newProductId);\n fill(\"#name\").with(newProductId);\n fill(\"#description\").with(\"A nice product\");\n submit(\"#update\");\n }", "@Override\n\tpublic boolean editProduct(ProductDTO product) throws ProductException {\n\t\t\n\t\t// if the productID is not valid then it will throw the Exception\n\t\tif (product.getProductid() == null) {\n\t\t\tthrow new InValidIdException(\"Incorrect Id \");\n\t\t} \n\t\t\n\t\t// if the productID is valid then it will edit the product\n\t\t\n\t\telse {\n\t\t\tProduct pro = ProductUtil.convertToProduct(product);\n\t\t\tProductStore.map.put(pro.getProductid(), pro);\n\t\t\treturn true;\n\n\t\t}\n\n\t}", "@PostMapping(\"/editCart\")\n @PermissionStoreItemRead\n public String editCart(@RequestParam @Min(0) long productID,\n @RequestParam @Min(0) Integer numberOfItems,\n HttpSession session,\n Model model,\n RedirectAttributes redirectAttributes) {\n\n log.debug(\"Cart editing| product \" + productID + \" set to \" + numberOfItems);\n ShoppingCart cart = (ShoppingCart) session.getAttribute(\"cart\");\n Item item = itemService.findById(productID).orElseThrow(() -> new RuntimeException(\"Item not found\"));\n if (numberOfItems > item.getStock()) {\n redirectAttributes.addFlashAttribute(\"error\", \"Not enough items\");\n return \"redirect:/user/cart\";\n }\n cart.editItemQuantity(item, numberOfItems);\n log.debug(\"Total size of cart : \" + cart.numberOfItems());\n return \"redirect:/user/cart\";\n }", "Product updateProductInStore(Product product);", "@GetMapping(\"/edit\")\r\n\tpublic String showEdit(@RequestParam Integer id,Model model)\r\n\t{\r\n\t\tProduct p=service.getOneProduct(id);\r\n\t\tmodel.addAttribute(\"product\", p);\r\n\t\treturn \"ProductEdit\";\r\n\t}", "public void editProduct(int id, String description, String pricePerUnit, String quantity)\n\t{\n\t\tProduct oldProduct = productDAO.select(id);\n\t\tProduct newProduct = new Product();\n\t\tnewProduct.setId(id);\n\t\tif (description.isEmpty())\n\t\t{\n\t\t\tnewProduct.setDescription(oldProduct.getDescription());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewProduct.setDescription(description);\n\t\t}\n\t\tif (pricePerUnit.isEmpty())\n\t\t{\n\t\t\tnewProduct.setPricePerUnit(oldProduct.getPricePerUnit());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewProduct.setPricePerUnit(Double.parseDouble(pricePerUnit));\n\t\t}\n\t\tif (quantity.isEmpty())\n\t\t{\n\t\t\tnewProduct.setQuantity(oldProduct.getQuantity());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewProduct.setQuantity(Integer.parseInt(quantity));\n\t\t}\n\t\tproductDAO.update(newProduct);\n\t}", "@RequestMapping(value = {\"/product_detail/{id}\"}, method = RequestMethod.POST)\n public String updateProduct(Model model, @PathVariable(\"id\") long id, HttpServletRequest request) {\n updateProductByRest(id, request);\n Product product = getProduct(id, request);\n model.addAttribute(\"product\", product);\n return \"product_detail\";\n }", "public void updateProduct() throws ApplicationException {\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\n\n try {\n session.beginTransaction();\n Menu updateProduct = (Menu) session.get(Menu.class, menuFxObjectPropertyEdit.getValue().getIdProduct());\n\n updateProduct.setName(menuFxObjectPropertyEdit.getValue().getName());\n updateProduct.setPrice(menuFxObjectPropertyEdit.getValue().getPrice());\n\n session.update(updateProduct);\n session.getTransaction().commit();\n } catch (RuntimeException e) {\n session.getTransaction().rollback();\n SQLException sqlException = getCauseOfClass(e, SQLException.class);\n throw new ApplicationException(sqlException.getMessage());\n }\n\n initMenuList();\n }", "Product updateProductById(Long id);", "@PutMapping(\"/update\")\r\n\tpublic ProductDetails updateProduct(@RequestBody @Valid UpdateProduct request) {\r\n\t\r\n\t\tProduct product = productService.searchProduct(request.getProduct_Id());\r\n\t\tproduct.setProduct_Name(request.getProduct_Name());\r\n\t\tproduct.setProduct_Price(request.getProduct_Price());\r\n\t\tproduct.setProduct_Quantity(request.getProduct_Quantity());\r\n\t\tproduct.setProduct_Availability(request.isProduct_Availability());\r\n\t\treturn productUtil.toProductDetails(productService.updateProduct(product));\r\n\t}", "public void updateProduct(Product catalog) throws BackendException;", "@Override\n public void onAddToCart(Product product) {\n }", "void updateOfProductById(long id);", "public static void editItem(int id,int quantity){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.ITEM_NOT_IN_CART);\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(CartMessage.ITEM_EDITED);\n\t\t\tuserCart.get(id).setQuantity(quantity);\n\t\t}\n\t}", "public synchronized void update(Product product, String quantity){\n ShoppingCartItem item = carrito.get(product.getId());\n item.setQuantity(Integer.parseInt(quantity));\n }", "@Then(\"^: update the cart$\")\r\n\tpublic void update_the_cart() throws Throwable {\n\t\tobj.search2();\r\n\t}", "@Override\r\n\tpublic int editProductRaw(ProductRaw productRaw) {\n\t\treturn productRawDao.updateByPrimaryKey(productRaw);\r\n\t}", "Product update(Product product, long id);", "@GetMapping(\"/update_to_cart\")\n\t@ResponseBody\n\tpublic String updateQuantity(@RequestParam(name = \"productId\") int id, @RequestParam(name = \"qty\", required = false) Integer qty, HttpSession session) {\n\t\tObject obj = session.getAttribute(Constant.CART_INFOR);\n\t\tMap<Integer, OrderItem> map;\n\t\tif(obj!=null) {\n\t\t\tmap = (Map<Integer, OrderItem>) obj;\n\t\t\tOrderItem orderItem = map.get(id);\n\t\t\torderItem.setQuantity(qty);\n\t\t\tsession.setAttribute(Constant.CART_INFOR, map);\n\t\t}\n\t\treturn \"\";\n\t}", "public void update(Product product) {\n\n\t}", "public boolean update(Product product);", "public void perform(HttpServletRequest req, HttpServletResponse resp) {\n HttpSession session = req.getSession(true);\r\n\r\n //information needed to proccess the updatecart action\r\n ShoppingCart carrito = (ShoppingCart) session.getAttribute(\"carrito\");\r\n Product product = productModel.retrieve(Integer.parseInt(req.getParameter(\"productid\")));\r\n int newQuantity = Integer.parseInt(req.getParameter(\"itemQuantity\"));\r\n\r\n //if the quantity is set to zero we need to delete the product from the cart\r\n if (newQuantity == 0) {\r\n carrito.deleteItem(product);\r\n } else {//if not, we just update the quantity\r\n carrito.update(product, Integer.toString(newQuantity));\r\n }\r\n\r\n \r\n //in case we have deleted the last item of the cart, we need to remove the cart from the session because there isn't any product in it.\r\n if (carrito.isEmpty() == true) {\r\n session.removeAttribute(\"carrito\");\r\n \r\n //if the cart is empty we will forward the request to category page\r\n req.setAttribute(\"productsById\", productModel.retrieveByCategory(product.getCategoryid()));\r\n req.setAttribute(\"categorySelected\", categoryModel.retrieve(product.getCategoryid()));\r\n req.setAttribute(\"categories\", categoryModel.retrieveAll());\r\n\r\n ViewManager.nextView(req, resp, \"/view/category.jsp\");\r\n } else {\r\n //otherwise we will show the cart updated\r\n req.setAttribute(\"carrito\", session.getAttribute(\"carrito\"));\r\n ViewManager.nextView(req, resp, \"/view/viewcart.jsp\");\r\n }\r\n }", "public void updateShoppingCart(ShoppingCart cart) {\n\t\t PersistenceManager pm = PMF.get().getPersistenceManager();\r\n\t\t Transaction tx = pm.currentTransaction();\r\n\t\t try{\r\n\t\t\ttx.begin();\r\n\t\t\tShoppingCart cartdb = (ShoppingCart)pm.getObjectById(ShoppingCart.class, cart.getUserId());\r\n\t\t\tcartdb.addItems(cart.getItems());\r\n\t\t\tcartdb.retainItems(cart.getItems());\r\n\t\t\ttx.commit();\r\n\r\n\t\t }\r\n\t\t catch (JDOCanRetryException ex) {\r\n\t\t\t\tex.printStackTrace();\r\n\t\t\t\tlogger.warning(\"Error updating cart \"+ cart);\r\n\t\t\t\tthrow ex;\r\n\t\t\t}\r\n\t\t\tcatch(JDOFatalException fx){\r\n\t\t\tlogger.severe(\"Error updating cart :\"+ cart);\r\n\t\t\tthrow fx;\r\n\t\t\t}\r\n\t\t finally{\r\n\t\t\t if (tx.isActive()){\r\n\t\t\t\t\ttx.rollback();\r\n\t\t\t }\r\n\t\t\t pm.close();\r\n\t\t }\r\n\t}", "ResponseEntity<Price> updatePrice(String cartId);", "@RequestMapping(path = \"/carta/update\", method = RequestMethod.POST)\n public ModelAndView updateCarta(@ModelAttribute(\"carta\") CartaViewModel model) {\n\n Restaurant restaurant = restaurantServicio.get(model.getRestaurantId());\n TipoProducto tipoProducto = tipoProductoServicio.get(model.getTipoProductoId());\n Carta carta = cartaServicio.get(model.getId());\n cartaServicio.update(model.toCarta(carta, tipoProducto, restaurant));\n\n return new ModelAndView(\"redirect:/carta/\" + model.getRestaurantId());\n }", "Product updateProductDetails(ProductDTO productDTO, Authentication authentication);", "@Override\n\tpublic void modifypro(ProductBean p) {\n\t\tsession.update(namespace+\".modifypro\", p);\n\t}", "public void modifyCart(int userId) {\n try {\n int cartId = InputUtil.getInt(\"Enter cart Id : \");\n int newQuantity = InputUtil.getInt(\"Enter new quantity: \");\n Cart cart = cartService.getCart(cartId);\n cartService.checkUserCart(cart,userId);\n cartService.modifyItem(cart,userId,newQuantity);\n System.out.println(\"\\nProduct quantity changed for cart Id : \"+String.valueOf(cartId));\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "@Override\n\tpublic void updateProduct(ProductVO vo) {\n\n\t}", "public UpdateProduct() {\n\t\tsuper();\t\t\n\t}", "public void testUpdateProduct() {\n\t\tProduct product=productDao.selectProducts(33);\n\t\tproduct.setPrice(100.0);\n\t\tproduct.setQuantity(1);\n\t\tproductDao.updateProduct(product);//product has updated price and update quantity\n\t\tassertTrue(product.getPrice()==100.0);\n\t\tassertTrue(product.getQuantity()==1);\n\t}", "ResponseEntity<Cart> updateCartItemQuantity(CartFormData formData);", "@GetMapping(\"/updateProduct\")\n\tpublic String updateProduct(@RequestParam(\"productId\") int productId , Model theModel) {\n\t\tProduct product = productDAO.getProduct(productId);\n\n\t\t// add the users to the model\n\t\ttheModel.addAttribute(\"product\", product);\n\t\t \n\t\treturn \"update-product\";\n\t}", "@Override\r\n\tpublic int updateProductById(HashMap<String, Object> map) {\n\t\tProduct product = (Product) map.get(\"product\");\r\n\t\tdao.updateProductById(product);\r\n\t\tList<ProductOption> oldList = (List<ProductOption>) map.get(\"oldList\");\r\n\t\tfor(int idx=0; idx<oldList.size(); idx++){\r\n\t\t\toldList.get(idx).setProductId(product.getProductId());\r\n\t\t\tdao.updateProductOptionById(oldList.get(idx));\r\n\t\t}\r\n\t\tList<ProductOption> newList = (List<ProductOption>) map.get(\"newList\");\r\n\t\tif(map.get(\"newList\")!=null){\r\n\t\t\tfor(int idx=0; idx<newList.size(); idx++){\r\n\t\t\t\tnewList.get(idx).setProductId(product.getProductId());\r\n\t\t\t\toptionDao.insertOption(newList.get(idx));\r\n\t\t\t}\r\n\t\t}\r\n\t\tif( map.get(\"image\")!=null){\r\n\t\t\tProductDetailImage image = ((ProductDetailImage) map.get(\"image\"));\r\n\t\t\tdao.updateDetailImageById(image);\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "@GlobalCommand\n\t@NotifyChange({\"cartItems\", \"shoppingCart\"})\n\tpublic void updateShoppingCart() {\n\t}", "public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }", "void viewProductById(long id);", "@Override\r\n\tpublic void prodUpdate(ProductVO vo) {\n\t\tadminDAO.prodUpdate(vo);\r\n\t}", "public void update(Product prod) {\n\t\tentities.put(prod.getName(), prod);\n\t\tif (prod.quantity==0) {\n\t\t\tavailableProducts.remove(prod.getName());\n\t\t}\n\t}", "void edit(Price Price);", "private void updateProduct(HttpServletRequest request, HttpServletResponse response) throws Exception {\n\t\tCookie[] theCookieLoop=request.getCookies();//tạo một cái mảng cookie có \n\t\tString idProduct=null;\n\t\t\t\t\t\t\t//có tên là theCookieloop sau đó lấy ra các đối tượng trong mảng Cookie\n\t\t\tif(theCookieLoop !=null) {\n\t\t\t\tfor(Cookie tempCookie:theCookieLoop)//dùng để duyệt qu các mảng cookie \n\t\t\t\t{\n\t\t\t\t\tif(\"ID\".equals(tempCookie.getName())) {\n\t\t\t\t\t\tidProduct=tempCookie.getValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t\n\t\t\tString location =request.getParameter(\"linkIMG\");\n\t\t\tif(location.equals(\"false\")) {\n\t\t\t\tPart part = request.getPart(\"linkImage\");\n\t\t\t\tString fileName = extractFileName(part);\n\t\t\t\tString savePath = \"G:\\\\java\\\\WebBuyPhoneJavaFull\\\\WebBuyPhone\\\\WebContent\\\\admin\" +File.separator + SAVE_DIR;\n\t\t\t\tpart.write(savePath + File.separator + fileName);\n\t\t\t\tlocation=\"Image/\"+fileName;\n\t\t\t}\n\t\t\t\tdaoPageAdmin.UpdateProduct(idProduct, request.getParameter(\"NameProduct\")\n\t\t\t\t\t\t, Double.parseDouble(request.getParameter(\"PriceProduct\")), location,\n\t\t\t\t\t\t request.getParameter(\"Newfeature\"), request.getParameter(\"DetailsProduct\"),request.getParameter(\"Screen\"), request.getParameter(\"Operating\"),\n\t\t\t\t\t\t request.getParameter(\"FrontCamera\"), request.getParameter(\"RearCamera\"),request.getParameter(\"CPU\"), request.getParameter(\"RAM\"),\n\t\t\t\t\t\t request.getParameter(\"InternalMemory\"), request.getParameter(\"MemoryStick\"),request.getParameter(\"SIM\"), request.getParameter(\"BatteryCapacity\"));\n\t\t\t\n\t\t\t\n\t\tloadProduct(request, response);\n\t}", "public void updateProductByRest(long id, HttpServletRequest request) {\n // set URL\n String url = String.format(\"%s://%s:%d/products/\" + id, request.getScheme(), request.getServerName(), request.getServerPort());\n // execute rest api update product request using RestTemplate.put method\n HttpEntity<Product> entity = getHttpEntity(request);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.put(url, entity, id);\n }", "@Override\n\tpublic void editar(ProdutoPedido produtoPedido) {\n\t\tdao.update(produtoPedido);\n\t}", "void update(Product product) throws IllegalArgumentException;", "@PutMapping(\"/products\")\r\n\t@ApiOperation(value=\"Change a product details.\")\r\n\tpublic Product changeProduct(@RequestBody Product product) {\r\n\t\treturn productRepository.save(product);\r\n\t}", "public void updateProduct(SiteProduct product) {\n dataProvider.save(product);\n }", "public void editProductPrice(String price){\r\n\t\twdlib.waitForElement(getProductText());\r\n\t\tif(getProductText().getText().equals(\"None Included\")){\r\n\t\t\tselPproductBtn.click();\r\n\t\t\tProductsPage pdpage=new ProductsPage();\r\n\t\t\tpdpage.selectProducts();\r\n\t\t\tdriver.navigate().refresh();\r\n\t\t\tselProductOpt.click();\r\n\t\t\twdlib.waitForElement(getProductText());\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\telse{\r\n\t\t\t\r\n\t\t\teditBtn.click();\r\n\t\t\taddNewPrice(price);\r\n\t\t}\r\n\t\tdriver.navigate().refresh();\r\n\t}", "@Override\n\tpublic void updateProduct(Product p) {\n\t\tProduct product = productRepository.getOne(p.getId());\n\t\tproduct.setName(p.getName());\n\t\tproduct.setPrice(150000);\n\t\tproductRepository.save(product);\n\t}", "private void changeProductQuantity(Product product, int position) {\n if (position == -1) {\n for (int i=0; i<productList.size();i++) {\n if (productList.get(i).getProductName().equals(product.getProductName())) {\n position = i;\n }\n }\n }\n //set new quantity\n productList.get(position).setQuantity(product.getQuantity());\n\n //update user\n user.setShoppingLists(shoppingLists);\n dataController.saveUser(user);\n\n //set total price\n totalPriceTextView.setText(utils.calculateTotalPrice(productList));\n }", "@RequestMapping(value = { \"/shoppingCart\" }, method = RequestMethod.POST)\n public String shoppingCartUpdateQty(HttpServletRequest request, Authentication authentication, ModelMap map, //\n Model model, //\n @ModelAttribute(\"cartForm\") CartInfo cartForm) {\n\n if (authentication != null) {\n Collection<? extends GrantedAuthority> authorities = authentication.getAuthorities();\n List<String> roles = new ArrayList<String>();\n for (GrantedAuthority a : authorities) {\n roles.add(a.getAuthority());\n }\n if (isUser(roles)) {\n map.addAttribute(\"header\", \"header_user\");\n map.addAttribute(\"footer\", \"footer_user\");\n } else if (isAdmin(roles)) {\n map.addAttribute(\"header\", \"header_admin\");\n map.addAttribute(\"footer\", \"footer_admin\");\n }\n } else {\n map.addAttribute(\"header\", \"header_login\");\n map.addAttribute(\"footer\", \"footer_login\");\n }\n\n CartInfo cartInfo = Utils.getCartInSession(request);\n cartInfo.updateQuantity(cartForm);\n\n return \"redirect:/shoppingCart\";\n }", "@Override\r\n\tpublic Long update(Producto entity) throws Exception {\n\t\treturn productRepository.update(entity);\r\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\n\t\t\tString name=\"\";\n\t\t\tname=view.getNameTF().getText();\n\t\t\tString price=\"\";\n\t\t\tprice=view.getPriceTF().getText();\n\t\t\t\n\t\t\tMenuItem item=searchInMenu();\n\t\t\t\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(!name.equals(bpSelected.get(0)))\n\t\t\t\t{\n\t\t\t\t\tthrow new BadInput(\"Numele nu poate fi editat!\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdouble p=Double.parseDouble(price);\n\t\t\t\t\n\t\t\t\tMenuItem nou=new BaseProduct(name,p);\n\t\t\t\t\n\t\t\t\trestaurant.editMenuItem(item,nou);\n\t\t\n\t\t\t\tview.showError(\"Produsul \"+name+\" a fost editat cu succes!\");\n\t\t\t\t\n\t\t\t}catch(NumberFormatException ex)\n\t\t\t{\n\t\t\t\tview.showError(\"Nu s-a introdus o valoare valida pentru pret!\");\n\t\t\t}\n\t\t\tcatch(BadInput ex)\n\t\t\t{\n\t\t\t\tview.showError(ex.getMessage());\n\t\t\t}\n\t\t\tcatch(AssertionError er)\n\t\t\t{\n\t\t\t\tview.showError(\"Operatia de EDIT a esuat!!!\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "@PutMapping(path =\"/products\")\n public ResponseEntity<Product> updateProduct(@RequestBody Product product) throws URISyntaxException {\n if (product.getId() == null) {\n return createProduct(product);\n }\n log.debug(\"REST request to update Product : {}\", product);\n Product result = productService.save(product);\n return ResponseEntity.ok()\n .headers(HeaderUtil.createEntityUpdateAlert(ENTITY_NAME, result.getId().toString()))\n .body(result);\n }", "@Allow(Permission.UpdateCatalog)\n public Product updateProduct(UpdateProductInput input, DataFetchingEnvironment dfe) {\n RequestContext ctx = RequestContext.fromDataFetchingEnvironment(dfe);\n ProductEntity productEntity = this.productService.update(ctx, input);\n return BeanMapper.map(productEntity, Product.class);\n }", "@Test\n public void testEditProduct() throws Exception {\n System.out.println(\"editProduct\");\n Product p;\n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n p = prs.get(0);\n String nameNew = \"newName\", nameOld = p.getName();\n p.setName(nameNew);\n dao.editProduct(p);\n \n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.isEmpty());\n prs = dao.getProductsByName(nameNew);\n assertTrue(prs.contains(p));\n assertTrue(prs.size() == 1);\n p.setName(nameOld);\n dao.editProduct(p);\n \n prs = dao.getProductsByName(p1.getName());\n assertTrue(prs.contains(p1));\n assertTrue(prs.size() == 1);\n prs = dao.getProductsByName(nameNew);\n assertTrue(prs.isEmpty());\n }", "@Override\r\n\tpublic int updateProduct(Product product) {\n\t\treturn 0;\r\n\t}", "@FXML\r\n public void onActionToModifyProductScreen(ActionEvent actionEvent) throws IOException {\r\n\r\n try {\r\n\r\n //Get product information from the Product Controller in order to populate the modify screen text fields\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(getClass().getResource(\"/View_Controller/modifyProduct.fxml\"));\r\n loader.load();\r\n\r\n ProductController proController = loader.getController();\r\n\r\n if (productsTableView.getSelectionModel().getSelectedItem() != null) {\r\n proController.sendProduct(productsTableView.getSelectionModel().getSelectedItem());\r\n\r\n Stage stage = (Stage) ((Button) actionEvent.getSource()).getScene().getWindow();\r\n Parent scene = loader.getRoot();\r\n stage.setTitle(\"Modify In-house Part\");\r\n stage.setScene(new Scene(scene));\r\n stage.showAndWait();\r\n }\r\n else {\r\n Alert alert2 = new Alert(Alert.AlertType.ERROR);\r\n alert2.setContentText(\"Click on an item to modify.\");\r\n alert2.showAndWait();\r\n }\r\n } catch (IllegalStateException e) {\r\n //ignore\r\n }\r\n catch (NullPointerException n) {\r\n //ignore\r\n }\r\n }", "@RequestMapping(value = { \"/edit-product-{id}\" }, method = RequestMethod.POST)\r\n\tpublic String updateProduct(@Valid Product product, BindingResult result,\r\n\t\t\tModelMap model, @PathVariable int id) {\r\n\r\n\t\tif (result.hasErrors()) {\r\n\t\t\treturn \"registration\";\r\n\t\t}\r\n\r\n\t\tproductService.updateProduct(product);\r\n\r\n\t\tmodel.addAttribute(\"success\", \"Product \" + product.getName() + \" \"+ product.getId() + \" updated successfully\");\r\n\t\treturn \"registrationsuccess\";\r\n\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(mContext,EditItemActivity.class);\n intent.putExtra(\"position\",position);\n intent.putExtra(\"Edit_item\",1);\n intent.putExtra(\"price\",mItemsList.get(position).getPrice());\n intent.putExtra(\"description\",mItemsList.get(position).getDescription());\n intent.putExtra(\"imageURL\",mItemsList.get(position).getImageURL());\n mContext.startActivity(intent);\n }", "public void updateDb(View view) {\n String productName = getIntent().getStringExtra(\"product\");\n Product p = db.getProductByName(productName);\n p.setName(name.getText().toString());\n p.setAvail(availSpinner.getSelectedItem().toString());\n p.setDescription(desc.getText().toString());\n p.setPrice(new BigDecimal(price.getText().toString()));\n p.setWeight(Double.parseDouble(weight.getText().toString()));\n db.updateProduct(p);\n finish();\n }", "@Override\n\tpublic int update(ShoppingCartDetailEntity shoppingCart) {\n\t\treturn 0;\n\t}", "private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }", "@Override\n\tpublic int update(ProductDTO dto) {\n\t\treturn 0;\n\t}", "public void setProduct(Product product) {\n this.product = product;\n }", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "@Override\r\n\tpublic void updateProduct(String name,int cost,List<Product> custlist) {\n\t\tfor(Product p:custlist) {\r\n\t\tif(name.equals(p.getName())) {\r\n\t\t\t\tp.setCost(cost);\r\n\t\t\t}\r\n\t\t\r\n\t\t\r\n\t}\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t}", "public boolean updateProduct(int prod_id, Product new_product) \n\t{\n\t\treturn false;\n\t}", "public Product getProductToModify()\n {\n if (productTable.getSelectionModel().getSelectedItem() != null)\n {\n return ((Product) productTable.getSelectionModel().getSelectedItem());\n }\n return null;\n }", "public void editItem(String name, String source, int position, String image, String id){\n PriceFinder pf = this.itm.getItem(position);\n this.itm.editItem(pf, pf.getPrice(), name, source, image);\n try {\n save();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n DecimalFormat f = new DecimalFormat(\"##.00\");\n\n this.itemTitle.setText(pf.getName());\n String op = String.valueOf(f.format(pf.getPrice()));\n\n this.oldPrice.setText(\"Initial price: $\" + op);\n this.newPrice.setText(\"Current Price: $\" + String.valueOf(f.format(pf.getNewPrice())));\n this.itemUrl.setText(this.itm.getItem(position).getUrl());\n diff.setText(\"Price change: \" +f.format(pf.calculatePrice())+\"%\");\n }", "@Override\n\tpublic String updateProduct() throws AdminException {\n\t\treturn null;\n\t}", "void editTariff(int idTariff, String title, String description, String price) throws ServiceException;", "@Override\n\tpublic boolean updateProduct(Product p) {\n\t\treturn false;\n\t}", "public void handleModifyProducts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/product.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n if (getProductToModify() != null)\n {\n // Get controller and configure controller settings\n ProductController productController = fxmlLoader.getController();\n productController.setModifyProducts(true);\n productController.setProductToModify(getProductToModify());\n productController.setInventory(inventory);\n productController.setHomeController(this);\n productController.updateParts();\n\n // Spin up product form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Products\");\n stage.setScene(new Scene(root));\n stage.show();\n }\n else\n {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No product was selected!\");\n alert.setContentText(\"Please select a product to modify from the product table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\n\tpublic void updateProduct(ActionEvent event) {\n\t\tProduct productToUpdate = restaurant.returnProduct(LabelProductName.getText());\n\t\tif (!txtUpdateProductName.getText().equals(\"\") && !txtUpdateProductPrice.getText().equals(\"\")\n\t\t\t\t&& selectedIngredients.isEmpty() == false) {\n\n\t\t\ttry {\n\t\t\t\tproductToUpdate.setName(txtUpdateProductName.getText());\n\t\t\t\tproductToUpdate.setPrice(txtUpdateProductPrice.getText());\n\t\t\t\tproductToUpdate.setSize(ComboUpdateSize.getValue());\n\t\t\t\tproductToUpdate.setType(toProductType(ComboUpdateType.getValue()));\n\t\t\t\tproductToUpdate.setIngredients(toIngredient(selectedIngredients));\n\n\t\t\t\tproductToUpdate.setEditedByUser(restaurant.returnUser(empleadoUsername));\n\n\t\t\t\trestaurant.saveProductsData();\n\t\t\t\tproductOptions.clear();\n\t\t\t\tproductOptions.addAll(restaurant.getStringReferencedIdsProducts());\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Producto actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateProductName.setText(\"\");\n\t\t\t\ttxtUpdateProductPrice.setText(\"\");\n\t\t\t\tComboUpdateSize.setValue(\"\");\n\t\t\t\tComboUpdateType.setValue(\"\");\n\t\t\t\tChoiceUpdateIngredients.setValue(\"\");\n\t\t\t\tLabelProductName.setText(\"\");\n\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los productos\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader optionsFxml = new FXMLLoader(getClass().getResource(\"Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\n\t}", "@Override\n public void updateProduct(TradingQuote tradingQuote) {\n }", "private void updateProduct(Product productUpdated, int productId) {\n try {\n ConDB conn = new ConDB();\n String query = \"UPDATE products SET productName = ?,\"\n + \"total = ?, remaining = ?, warehouse_id = ? WHERE id = \" + productId;\n \n \n PreparedStatement pst = conn.getConnection().prepareStatement(query);\n pst.setString(1, productUpdated.getProductName());\n pst.setInt(2, productUpdated.getTotal());\n pst.setInt(3, productUpdated.getRemaining());\n pst.setInt(4, productUpdated.getWarehouse_id());\n \n pst.executeUpdate();\n JOptionPane.showMessageDialog(null, \"Product updated\");\n closeUpdateProduct();\n } catch (SQLException ex) {\n System.out.println(ex.getLocalizedMessage());\n }\n }", "public int updateProduct(Product product){\n int rowsAffected = 0;\n connect();\n String sql = \"UPDATE productos SET descripcion = ?, presentacion = ?, cantidad = ?, \"\n + \"precio = ?, subtotal = ? WHERE id_producto = ?\";\n \n try{\n PreparedStatement ps = connect.prepareStatement(sql);\n ps.setString(1, product.getProductDescription());\n ps.setString(2, product.getProductPresentation());\n ps.setInt(3, product.getProductCuantity());\n ps.setFloat(4, product.getProductPrice());\n ps.setFloat(5, (product.getProductCuantity() * product.getProductPrice())); \n ps.setInt(6, Integer.parseInt(product.getProductId()));\n \n rowsAffected = ps.executeUpdate();\n connect.close();\n }catch(SQLException ex){\n ex.printStackTrace();\n }\n return rowsAffected;\n }", "@Override\n\tpublic void update(Product product) {\n\t\tTransaction txTransaction = session.beginTransaction();\n\t\tsession.update(product);\n\t\ttxTransaction.commit();\n\t\tSystem.out.println(\"Product Updated\");\n\n\t}", "public void update(SgfensPedidoProductoPk pk, SgfensPedidoProducto dto) throws SgfensPedidoProductoDaoException;", "@Override\r\n\tpublic Product updateProduct(Product s) {\n\t\treturn null;\r\n\t}", "@FXML\n void saveModifyProductButton(ActionEvent event) throws IOException {\n\n try {\n int id = selectedProduct.getId();\n String name = productNameText.getText();\n Double price = Double.parseDouble(productPriceText.getText());\n int stock = Integer.parseInt(productInventoryText.getText());\n int min = Integer.parseInt(productMinText.getText());\n int max = Integer.parseInt(productMaxText.getText());\n\n if (name.isEmpty()) {\n AlartMessage.displayAlertAdd(5);\n } else {\n if (minValid(min, max) && inventoryValid(min, max, stock)) {\n\n Product newProduct = new Product(id, name, price, stock, min, max);\n\n assocParts.forEach((part) -> {\n newProduct.addAssociatedPart(part);\n });\n\n Inventory.addProduct(newProduct);\n Inventory.deleteProduct(selectedProduct);\n mainScreen(event);\n }\n }\n } catch (IOException | NumberFormatException e){\n AlartMessage.displayAlertAdd(1);\n }\n }", "protected abstract Product modifyProduct(ProductApi api,\n Product modifyReq) throws RestApiException;", "public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }", "@GetMapping(value = \"/editOrderPlus\", produces = {MediaType.APPLICATION_JSON_VALUE})\n @ResponseBody\n public ResponseEntity<List> editOrderFromBasketPlusAjax(@RequestParam(name = \"editOrderPlus\") int id,\n HttpSession session) {\n List<Number> result = basketService.editOrderPlus(id, session);\n logger.info(\"Item of product added to basket\");\n return new ResponseEntity<>(result, HttpStatus.OK);\n }", "@Override\n\t@Transactional\n\tpublic void updateProduct(Product product) {\n\t\tproductDAO.save(product);\n\t\t\n\t}", "public static void updateProduct(Supermarket supermarket, Product product, String action) throws SQLException {\r\n\t\tPreparedStatement statement = null;\r\n\t\tString query;\r\n\t\ttry {\r\n\t\t\tif(action.equals(\"add\")) {\r\n\t\t\t\tquery = \"UPDATE CS_\"+supermarket.getSuper_name()+\" SET PRODUCT_EXIST=?, PRODUCT_PRICE=? WHERE PRODUCT_NAME=? and PRODUCT_COMPANY=?\";\r\n\t\t\t\tstatement = JdbcCommon.connection.prepareStatement(query);\r\n\t\t\t\tstatement.setBoolean(1, true);\r\n\t\t\t\tstatement.setDouble(2,product.getProduct_price());\r\n\t\t\t\tstatement.setString(3, product.getProduct_name());\r\n\t\t\t\tstatement.setString(4, product.getProduct_company());\r\n\t\t\t\tstatement.executeUpdate();\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tquery = \"UPDATE CS_\"+supermarket.getSuper_name()+\" SET PRODUCT_EXIST=?, PRODUCT_PRICE=? WHERE PRODUCT_NAME=? and PRODUCT_COMPANY=?\";\r\n\t\t\t\tstatement = JdbcCommon.connection.prepareStatement(query);\r\n\t\t\t\tstatement.setBoolean(1, false);\r\n\t\t\t\tstatement.setDouble(2,0);\r\n\t\t\t\tstatement.setString(3, product.getProduct_name());\r\n\t\t\t\tstatement.setString(4, product.getProduct_company());\r\n\t\t\t\tstatement.executeUpdate();\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {e.printStackTrace();}\r\n\t\tstatement.close();\r\n\t}", "@Override\r\n\tpublic boolean updateProduct(ProductDAO product) {\n\t\treturn false;\r\n\t}", "@Override\r\n\tpublic boolean updateProduct(Product product) {\n\t\treturn dao.updateProduct(product);\r\n\t}", "@GetMapping(\"/sysadmin/product/view/{id}\")\n public String showProductPage(@PathVariable(value = \"id\") Integer id, ModelMap model) {\n Product product = productService.findById(id);\n if (product == null) {\n return \"redirect:/admin/product\";\n }\n\n ProductUpdateDTO productDTO = new ProductUpdateDTO();\n productDTO.setProductCode(product.getProductCode());\n productDTO.setCategory(product.getCategory());\n productDTO.setDescription(product.getDescription());\n productDTO.setPrice(product.getPrice());\n productDTO.setTitle(product.getTitle());\n productDTO.setType(product.getType());\n productDTO.setPublished(product.isPublish());\n\n List<CodeValue> lstCode = codeValueService.getByType(\"product_category\");\n for(int i = 0; i < lstCode.size(); i++){\n CodeValue code = lstCode.get(i);\n if(code.getCode() == productDTO.getCategory()){\n productDTO.setCategoryDescription(code.getDescription());\n break;\n }\n }\n model.addAttribute(\"product\", productDTO);\n model.addAttribute(\"productCategory\", codeValueService.getByType(\"product_category\"));\n\n return \"admin/sysadm/productFormView\";\n }", "public void addProductToCart(String product) {\n\t\tpause(1000);\n\t\tBy bySelector = By.cssSelector(\"button.prdbox\");\n\t\tList<WebElement> elements = driver.findElements(bySelector);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(product)){\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\t\n\t}", "@Override\n\tpublic Product update(Product entity) {\n\t\treturn null;\n\t}" ]
[ "0.78995246", "0.78364", "0.7195877", "0.7165601", "0.7124654", "0.70865566", "0.70393395", "0.6913506", "0.6847924", "0.67580277", "0.67553884", "0.67529273", "0.6742063", "0.6665155", "0.6662733", "0.665638", "0.6635936", "0.65764606", "0.65178424", "0.6504542", "0.64921147", "0.6485788", "0.64554393", "0.64281154", "0.64009035", "0.6371837", "0.63677925", "0.63631046", "0.6350624", "0.6332856", "0.6270632", "0.62680835", "0.6255699", "0.6251721", "0.6231888", "0.6202975", "0.61855936", "0.6184385", "0.61639136", "0.6147589", "0.6140093", "0.61063623", "0.6090022", "0.60834175", "0.6079885", "0.60776484", "0.607527", "0.6075215", "0.6069194", "0.6063402", "0.6059541", "0.60577184", "0.6048327", "0.6038851", "0.60267204", "0.6017005", "0.6013119", "0.60071087", "0.60029596", "0.59994423", "0.59961", "0.5994331", "0.599423", "0.5970358", "0.5957217", "0.5947105", "0.5942928", "0.5939764", "0.5938768", "0.59387356", "0.5920988", "0.59172064", "0.5915295", "0.591262", "0.5909932", "0.59082544", "0.59072834", "0.5907134", "0.5899648", "0.5891229", "0.5887775", "0.5886084", "0.58826905", "0.5876718", "0.5869114", "0.5863202", "0.5848363", "0.5843732", "0.583234", "0.5830554", "0.58265066", "0.58222234", "0.5818204", "0.5817337", "0.580863", "0.5802673", "0.5799606", "0.57982713", "0.57952696", "0.5794971" ]
0.8134409
0
Remove product from cart
private void removeProduct() { if (!CartController.getInstance().isCartEmpty()) { System.out.println("Enter Product Id - "); int productId = getValidInteger("Enter Product Id - "); while (!CartController.getInstance().isProductPresentInCart( productId)) { System.out.println("Enter Valid Product Id - "); productId = getValidInteger("Enter Product Id - "); } CartController.getInstance().removeProductFromCart(productId); } else { DisplayOutput.getInstance().displayOutput( "\n-----Cart Is Empty----\n"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void removeProduct(Product product);", "public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}", "void removeCartItem(int cartItemId);", "ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "public void removeTopProductFromCart() {\n\t\tWebElement result=null;\n\t\tString xpath=buildXPathToRemove(1);\n\t\tresult = selenium.findElement(By.xpath(xpath));\n\t\tresult.click();\n\t}", "void removeProduct(int position) throws ProductNotFoundException;", "private void removeProduct(int id)\n {\n manager.removeProduct(id);\n }", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "public static void removeProductInCart(Cart cart, CartGyftyProduct cartProduct) {\n\n GyftyProductsGroup productGrp = cart.getProducts();\n if (productGrp.getGyftyProductGroup().size() > 0) {\n productGrp.removeGyftyProductsFromGrp(cartProduct.getGyftyProduct());\n try {\n productGrp.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to remove product from productGrp\", e);\n }\n }\n int indexToRemove = 0;\n for(ProductPriceRow pprow : cart.productPrice) {\n if (pprow.getProduct().getGyftyProduct().equals(cartProduct.getGyftyProduct())\n && pprow.getProduct().getSellerNotes().equals(cartProduct.getSellerNotes())) {\n break;\n }\n indexToRemove++;\n }\n cart.productPrice.remove(indexToRemove);\n calculateTotal(cart);\n }", "Cart deleteFromCart(String code, Long quantity, String userId);", "public void deleteProduct(CartProduct p) {\n\t\tcart.deleteFromCart(p);\n\t}", "private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }", "public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }", "@Test(groups = \"suite2-2\", dependsOnMethods = \"addItemToCart\")\n\tpublic void removeItemFromCart() {\n\n\t\tdriver.get(CART_URL);\n\n\t\tWebElement itemInCartMessage = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"checkout-header\\\"]/H1\"));\n\n\t\tassertEquals(itemInCartMessage.getText().trim().substring(0, 1), \"1\",\n\t\t\t\t\"1 item expected in cart\");\n\n\t\tWebElement clearButton = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/FORM[1]/H2/SPAN[2]/A\"));\n\n\t\tclearButton.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.presenceOfElementLocated(By\n\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"newempty\\\"]/DIV\")));\n\t\t} catch (NoSuchElementException e) {\n\t\t\tfail(\"Cart should be empty\");\n\t\t}\n\t}", "ResponseEntity<Cart> removeCartItem(CartFormData formData);", "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }", "public void removeFromCart(final Item item) {\n for (Item f : cart) {\n if (f.getName().equals(item.getName())) {\n if (\n f.getQuantity() == item.getQuantity()) {\n cart.remove(f);\n return;\n }\n f.setQuantity(f.getQuantity() - item.getQuantity());\n return;\n }\n }\n }", "public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}", "@Override\r\n public void removeProduct(ProductBarcode code) throws NoSuchElementException\r\n {\r\n \tif (products.contains(code))\r\n {\r\n products.remove(code);\r\n }\r\n else\r\n {\r\n throw new NoSuchElementException(\"Product not in this container!\");\r\n }\r\n }", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public void removeProduct(SiteProduct product) {\n dataProvider.delete(product);\n }", "public void removeItemCart(int code) {\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tif (itemCart.getP().getId() == code) {\n\t\t\t\tlistItemcart.remove(itemCart);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void removeCart(Items cartItem) {\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(cartItem);\n }\n Items menuItem = cartItem.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() - 1);\n updateCartMenu();\n }", "public void deleteFromCart(int product_code) {\n\t\tif(validateItem(product_code, 1) ||\n\t\t user_cart.deleteFromCart(product_code) ){\n\t\t\tdisplayMessage(\"Product deleted from cart. View Cart?\");\n\t\t}else {\n\t\t\tdisplayMessage();\n\t\t}\n\t}", "public void removeProduct(int id)\n {\n Product product = findProduct(id);\n \n System.out.println(\"Removing product \" + product.getName() +\n \" from the stock list\");\n \n if(product != null)\n {\n stock.remove(product);\n }\n }", "@Override\n\tpublic boolean deleteShopCartItem(int cart) {\n\t\treturn false;\n\t}", "public void removeAllCartItems(Cart cart) {\n\t\t\t\r\n\t\t}", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "public synchronized void deleteItem(Product product){\n carrito.set(product.getId(), null);\n }", "private void removeProducto(int position) {\n losproductos.remove(position);\n // Notificamos de un item borrado en nuestro array\n eladaptador.notifyItemRemoved(position);\n }", "@RequestMapping(\n method = RequestMethod.DELETE,\n path = \"{productId}\"\n )\n public void deleteProductFromShoppingCartById(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.deleteProductFromShoppingCartById(productId);\n }", "@Override\r\n\tpublic int deleteProduct(Product product) {\n\t\treturn 0;\r\n\t}", "public void clearCart() {\n this.items.clear();\n }", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "@Test\r\n\tvoid testdeleteProductFromCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tcart=cartdao.deleteProductByIdInCart(1001);\r\n\t\tassertEquals(1,l.size());\r\n\t}", "public void Deleteproduct(Product objproduct) {\n\t\t\n\t}", "@GetMapping(\"/remove-cart/{id}\")\r\n\tpublic String removeCart(@PathVariable(\"id\") long id) {\r\n\t\tlog.info(\"removeCart -Start\");\r\n\t\tservice.removeCartItem( id);\r\n\t\tlog.info(\"removeCart -End\");\r\n\t\treturn \"Succesfully removed\";\r\n\t}", "public void removeItem(Product p) throws ProductNotFoundException {\n\t\tif (!_items.remove(p)) {\n\t\t\tthrow new ProductNotFoundException(\"No existeix producte\");\n\t\t}\n\t}", "public void deleteProduct(Product product) {\n allProducts.remove(product);\n }", "public boolean removeAndCheck(String product) {\n\t\tif(this.product.contains(product)) {\n\t\t\tthis.product.remove(product);\n\t\t\tif(!this.product.isEmpty()) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(\"This item is not in the cart.\");\n\t\t\treturn false;\n\t\t}\n\t\t//TODO Create a new method that will check for it.\n\t}", "public void decrement(Product product, Variant variant) {\n String key = product.name + \" \" + variant.amount;\n\n //Update cart quantity\n cartItems.get(key).quantity--;\n\n //Update cart Summary\n total -= variant.price;\n noOfItems--;\n\n //Remove a function when if quantity = 0\n if (cartItems.get(key).quantity == 0)\n cartItems.remove(key);\n }", "@DeleteMapping(value = \"/deleteproduct\")\n public ResponseEntity<String> deleteProduct(@RequestBody String productName, final HttpSession session) {\n log.info(session.getId() + \" : Reviewing the initial cart\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n\n //check if the cart is empty\n ControllerUtils.checkEmptyCart(initialCart, session.getId());\n\n if (!initialCart.containsKey(productName)) {\n log.error(session.getId() + \" : Error removing product not present in the cart\");\n throw new ProductNotFoundException(productName);\n }\n\n log.info(session.getId() + \" : Remove the product from the cart\");\n initialCart.remove(productName);\n session.setAttribute(CART_SESSION_CONSTANT, initialCart);\n return ResponseEntity.status(HttpStatus.OK).body(\"Product \" + productName + \" removed\");\n }", "@Override\n\tpublic void remove(Long id) {\n\t\tproductRepository.delete(id);\n\t}", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "@Override\n\tpublic boolean deleteShopCart(int cart) {\n\t\treturn false;\n\t}", "public boolean delete(Product product) {\n return cartRepository.delete(product);\n }", "@Test\n public void testRemoveItem() throws Exception {\n \n System.out.println(\"RemoveItem\");\n \n /*ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n Product p4 = new Product(\"Monitor 4K\", 550.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n fail(\"No existe\");\n \n }*/\n \n /*---------------------------------------------*/\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n assertTrue(instance.isEmpty());\n \n }\n \n }", "private void eliminarProducto(HttpServletRequest request, HttpServletResponse response) {\n\t\tString codArticulo = request.getParameter(\"cArticulo\");\n\t\t// Borrar producto de la BBDD\n\t\ttry {\n\t\t\tmodeloProductos.borrarProducto(codArticulo);\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\t// Volver al listado con la info actualizada\n\t\tobtenerProductos(request, response);\n\n\t}", "public void deleteCartRow() {\n CarComponent selectedRow = cartTable.getSelectionModel().getSelectedItem();\n cartTable.getItems().remove(selectedRow);\n componentsCart.remove(selectedRow);\n\n updateTotal();\n }", "public boolean removeProductFromWishlist(String productId) {\n\t\t// TODO Auto-generated method stub\n\t\tboolean result=false;\n\t\tif(WishlistDaoImpl.wlist.get(productId) != null)\n\t\t{\n\t\t\n\t\t\tresult=WishlistDaoImplObj.removeProductFromWishlist(productId);\n\t\t\treturn result;\n\t\t}\n\t\telse\n\t\t{ \n\t\t\tint x=3;\n\t\t\tint y=0;\n\t\t\tint z=x/y;\n\t\t\treturn false;\n\t\t\n\t\t\t//throw new WishListException(\"Product ID not found in Wishlist to REMOVE\");\n\t\t}\n\t\n}", "public void removeProduct(ProductBarcode code) throws NoSuchElementException;", "public RemoveProductCart(WebDriver driver) {\n\t\tthis.driver=driver;\n\t}", "public void decrement(Product product, Variant variant) {\n String key = product.name + \" \" + variant.name;\n cartItems.get(key).qty--;\n total -= variant.price;\n if (cartItems.get(key).qty == 0) {\n cartItems.remove(key);\n noOfItems--;\n }\n }", "@SuppressWarnings(\"unused\")\n\tpublic void removeFromShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tfor (int j = 0; j < SHOPPING_CART_ARRAY.length; j++) {\n\t\t\t\tif (prod.getDescription().equals(SHOPPING_CART_ARRAY[j][0]) && \n\t\t\t\t\t\tInteger.toString(quantity).equals(SHOPPING_CART_ARRAY[j][1])) {\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][0] = null;\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][1] = null;\n\t\t\t\t\ttotalNumOfItems = totalNumOfItems - quantity;\n\t\t\t\t\tdecreaseTotalPayment(item, quantity);\n\t\t\t\t\tBARCODE_ARRAY[j] = null;\n\t\t\t\t\tBARCODEDITEM_ARRAY[j] = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} \n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\n\n\t}", "public void deletesingleCart(ProductDetail productDetail) {\n SQLiteDatabase db = helper.getWritableDatabase();\n db.delete(DatabaseConstant.TABLE_NAME_CART, DatabaseConstant.TABLE_CART_ID + \" = ?\",\n new String[]{String.valueOf(productDetail.getId())});\n db.close();\n }", "void deleteProduct(Integer productId);", "public void removeItem(int position) {\n cartList.remove(position);\n notifyItemRemoved(position);\n }", "void deleteProduct(Product product) throws ServiceException;", "@Override\n\tpublic void removeOrderLine(int cartIndex) {\n\t\t\n\t}", "@Override\n public void removeFromCart(Publication book) {\n if(shoppingCart.contains(book)){\n shoppingCart.remove(book);\n } else throw new NoSuchPublicationException();\n }", "@Override\n\tpublic void deleteProduct(int product_id) {\n\n\t}", "public void deleteProduct(Product product) throws BackendException;", "public void removeCart(int userId) {\n try {\n int cartId = InputUtil.getInt(\"Enter cart Id : \");\n Cart cart = cartService.getCart(cartId);\n cartService.checkUserCart(cart,userId);\n cartService.removeCart(cartId);\n System.out.println(Constants.DECOR+\"CART REMOVED : \"+String.valueOf(cartId)+Constants.DECOR_END);\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "void deleteProduct(Long id);", "public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}", "public void eliminar(Producto producto) throws BusinessErrorHelper;", "public void deleteProduct(Product product_1) {\n\r\n\t}", "public boolean removeProduct(int productToRemove_id) \n\t{\n\t\treturn false;\n\t}", "public static void removePickUpFromCart(Cart cart) {\n\n cart.setPickup(null);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n\n }", "public void delete(Product product) {\n\t\tif (playerMap.containsKey(product.getOwner())) {\n\t\t\tplayerMap.get(product.getOwner())[product.getSlot()] = null;\n\t\t}\n\t\tMap<Integer, Set<Product>> itemMap = typeMap.get(product.getType()).get(product.getState());\n\t\tif (itemMap.containsKey(product.getItemId())) {\n\t\t\titemMap.get(product.getItemId()).remove(product);\n\t\t}\n\t}", "@Transactional\n public void deleteProduct(Integer productId) {\n ProductEntity productEntity = productRepository\n .findById(productId)\n .orElseThrow(() -> new NotFoundException(getNotFoundMessage(productId)));\n productEntity.setRemoved(true);\n productRepository.save(productEntity);\n cartRepository.deleteRemovedFromCart(productId);\n }", "public void removeFromCart(String code, float price) {\n if(itemExists(code)) {\n int currentQuantity = cart.get(code);\n if(currentQuantity == 1) {\n cart.remove(code);\n } else {\n cart.put(code, cart.get(code) - 1);\n }\n }\n total -= price;\n }", "public static void removeItem(int id){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.INVALID_ID);\n\t\t}\n\t\telse{\n\t\t\tuserCart.remove(id);\n\t\t\tSystem.out.println(CartMessage.ITEM_REMOVED);\n\t\t}\n\t}", "private void deleteProduct() {\n // Only perform the delete if this is an existing Product.\n if (mCurrentProductUri != null) {\n // Call the ContentResolver to delete the pet at the given content URI.\n // Pass in null for the selection and selection args because the mCurrentProductUri\n // content URI already identifies the pet that we want.\n int rowsDeleted = getContentResolver().delete(mCurrentProductUri, null, null);\n\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.editor_delete_product_failed),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful),\n Toast.LENGTH_SHORT).show();\n }\n }\n\n // Close the activity\n finish();\n }", "@Override\r\n public boolean removeProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n\r\n //checks if quantity value is invalid or if not enough stocks\r\n if (quantity <= 0 || stock < quantity) {\r\n this.productQuantity.set(i, 0);\r\n return true;\r\n }\r\n this.productQuantity.set(i, stock - quantity);\r\n return true;\r\n }\r\n i++;\r\n }\r\n return false;\r\n }", "public boolean removeProduct(Product p) {\n\tsynchronized (this.productList) {\n\t boolean returned = this.productList.remove(p);\n\t this.setChanged();\n\t this.notifyObservers();\n\t return returned;\n\t}\n }", "public void deleteProduct() {\n deleteButton.click();\n testClass.waitTillElementIsVisible(emptyShoppingCart);\n Assert.assertEquals(\n \"Message is not the same as expected\",\n MESSAGE_EMPTY_SHOPPING_CART,\n emptyShoppingCart.getText());\n }", "private void deleteProduct() {\n // Only perform the delete if this is an existing product.\n if (currentProductUri != null) {\n // Call the ContentResolver to delete the product at the given content URI.\n // Pass in null for the selection and selection args because the currentProductUri\n // content URI already identifies the product that we want.\n int rowsDeleted = getContentResolver().delete(currentProductUri, null, null);\n // Show a toast message depending on whether or not the delete was successful.\n if (rowsDeleted == 0) {\n // If no rows were deleted, then there was an error with the delete.\n Toast.makeText(this, getString(R.string.no_deleted_products),\n Toast.LENGTH_SHORT).show();\n } else {\n // Otherwise, the delete was successful and we can display a toast.\n Toast.makeText(this, getString(R.string.editor_delete_product_successful), Toast.LENGTH_SHORT).show();\n }\n }\n finish();\n }", "void deleteProduct(int productId) throws ProductException;", "@Test\n void deleteTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes two apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 2);\n //then basket contains two apples\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(2, appleNb);\n }", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "public void deleteBasketItem(String sku) { \n Iterator<BasketItem> iter = basketItems.iterator();\n \n while(iter.hasNext()) {\n BasketItem basketItem = (BasketItem) iter.next();\n if(basketItem.getVariant().getSku().equals(sku)) {\n iter.remove();\n }\n }\n }", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "public void removeProductFromWishlist(ProductItem product, User user) {\n this.removeProductFromWishlist(product, this.getWishlistByUser(user));\r\n }", "public SimpleProductWithSpecialPriceDetailPage removeProductGalleryFromSimpleProducttWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProductWithSpecialPriceDetailPage();\n }", "@DeleteMapping(\"/products/{id}\")\n\tpublic List<Product> removeOneProduct(@PathVariable(\"id\") int id){\n\t\t//counter for loop \n\t\tfor (int i=0; i < products.size(); i++) {\n\t\t\tif (products.get(i).getId() == id) {\n\t\t\t\tproducts.remove(i);\n\t\t\t\treturn products;\n\t\t\t}\n\t\t}\n\t\t\n\t\tthrow new ProductNotFoundException();\n\t\t\n\t}", "public SimpleProduct3WithSpecialPriceDetailPage removeProductGalleryFromSimpleProduct3tWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new SimpleProduct3WithSpecialPriceDetailPage();\n }", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "public void removeItem(int position) {\r\n productList.remove(position);\r\n notifyItemRemoved(position);\r\n }", "public void userClicksRemoveItemsFromCartButton() {\n UtilityHelper.waitUntilClickable(UnavailableItems_Modal_Button);\n UtilityHelper.click(UnavailableItems_Modal_Button);\n UtilityHelper.waitUntilElementNotVisible(UnavailableItems_Modal);\n }", "public void removeOrderItem(int prodID)\r\n\t{\r\n\t\t//create temporary variables\r\n\t\tOrderItem temp;\r\n\t\tint test = 0;\r\n\r\n\t\t//iterate through list and compare product ID of each item against the \r\n\t\t//parameter, then remove any items that match\r\n\t\tfor (int x = 0; x < orderItemList.size(); x++) \r\n\t\t{\r\n\t\t\ttemp = orderItemList.get(x);\r\n\t\t\ttest = temp.getProductID();\r\n\t\t\tif (test == prodID) \r\n\t\t\t{\r\n\t\t\t\torderItemList.remove(x);\r\n\t\t\t} //end if\r\n\t\t} //end for\t\t\r\n\t}", "public void deleteProduct(Product product){\n\t\tdao.deleteProduct(product);\n\t}", "public void deleteProduct()\n {\n ObservableList<Product> productRowSelected;\n productRowSelected = productTableView.getSelectionModel().getSelectedItems();\n int index = productTableView.getSelectionModel().getFocusedIndex();\n Product product = productTableView.getItems().get(index);\n if(productRowSelected.isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"Please select the Product you want to delete.\");\n alert.show();\n } else if (!product.getAllAssociatedParts().isEmpty())\n {\n alert.setAlertType(Alert.AlertType.ERROR);\n alert.setContentText(\"This Product still has a Part associated with it. \\n\" +\n \"Please modify the Product and remove the Part.\");\n alert.show();\n } else {\n alert.setAlertType(Alert.AlertType.CONFIRMATION);\n alert.setContentText(\"Are you sure you want to delete this Product?\");\n alert.showAndWait();\n ButtonType result = alert.getResult();\n if(result == ButtonType.OK)\n {\n Inventory.deleteProduct(product);\n }\n }\n }", "public int removeProduct(String product) {\n Collection<String> collection = shoppingBasket.keySet();\n\n for (String key : collection) {\n if (key != null) {\n if (product.equals(key) == true) {\n // нашли наше значение равное ключу\n shoppingBasket.remove(product);\n return 1;\n } else {\n return 0;\n }\n }\n }\n return 0;\n }", "public ConfigProductWithSpecialPriceDetailPage removeProductGalleryFromConfigProductWithSpecialPrice() {\n SpriiTestFramework.getInstance().waitForElement(By.xpath(firstImageElement), 20);\n Actions actions = new Actions(driver);\n WebElement target = driver.findElement(By.xpath(firstImageElement));\n actions.moveToElement(target).perform();\n SpriiTestFramework.getInstance().waitForElement(By.xpath(removeElement), 20);\n driver.findElement(By.xpath(removeElement)).click();\n return new ConfigProductWithSpecialPriceDetailPage();\n }", "public JavaproductModel deleteproduct(JavaproductModel oJavaproductModel){\n\n \t\t/* Create a new hibernate session and begin the transaction*/\n Session hibernateSession = HibernateUtil.getSessionFactory().openSession();\n Transaction hibernateTransaction = hibernateSession.beginTransaction();\n\n /* Retrieve the existing product from the database*/\n oJavaproductModel = (JavaproductModel) hibernateSession.get(JavaproductModel.class, oJavaproductModel.getproductId());\n\n /* Delete any collection related with the existing product from the database.\n Note: this is needed because some hibernate versions do not handle correctly cascade delete on collections.*/\n oJavaproductModel.deleteAllCollections(hibernateSession);\n\n /* Delete the existing product from the database*/\n hibernateSession.delete(oJavaproductModel);\n\n /* Commit and terminate the session*/\n hibernateTransaction.commit();\n hibernateSession.close();\n return oJavaproductModel;\n }", "@org.junit.Test\r\n\tpublic void itemNotInCartException() throws ProductNotFoundException{\r\n\t\tShoppingCart cart=new ShoppingCart();\r\n\t\tProduct tomato=new Product(\"Tomato\",3);\r\n\t\tcart.addItem(new Product(\"Orange\",5));\r\n\t\t\r\n\t\t//trying to remove a tomato from the cart\r\n\t\ttry {\r\n\t\t\tcart.removeItem(tomato);\r\n\t\t\tfail();\r\n\t\t\t\r\n\t\t}catch(ProductNotFoundException e) {\r\n\t\t\t\r\n\t\t}\r\n\t}" ]
[ "0.8087064", "0.78115356", "0.76996076", "0.75562805", "0.74278176", "0.7408061", "0.7389758", "0.73490846", "0.7197401", "0.7160954", "0.71513", "0.714524", "0.7116054", "0.7104262", "0.7071764", "0.7041259", "0.70242655", "0.7016195", "0.6942913", "0.6929534", "0.6883479", "0.6865336", "0.6841004", "0.68129885", "0.68081266", "0.6798061", "0.67945045", "0.6767483", "0.67538935", "0.674905", "0.6737483", "0.6736999", "0.6681029", "0.66779816", "0.66757905", "0.66682804", "0.6666916", "0.66632587", "0.6650996", "0.66480255", "0.6627038", "0.662431", "0.66204846", "0.66131115", "0.6611683", "0.66081077", "0.6606553", "0.6598821", "0.65947807", "0.6594363", "0.65853983", "0.65762824", "0.65580815", "0.6555706", "0.6555502", "0.6541227", "0.65390974", "0.6536881", "0.651927", "0.6484604", "0.6470855", "0.6468593", "0.6463069", "0.64618", "0.64615995", "0.64559186", "0.6455388", "0.6439511", "0.64187086", "0.6400235", "0.63967484", "0.6392219", "0.63848287", "0.63681895", "0.63674575", "0.63616586", "0.6345379", "0.63379574", "0.6333885", "0.6315498", "0.62918514", "0.62880135", "0.62780553", "0.62741727", "0.62710243", "0.6269046", "0.62402683", "0.6220036", "0.62129533", "0.6202228", "0.6174431", "0.61688584", "0.6167557", "0.6166143", "0.6164655", "0.6151156", "0.6149117", "0.6142651", "0.6142317", "0.61389565" ]
0.790923
1
Buy Product or add Product to Cart
private void buyProduct() { System.out.println("Enter Number of Product :- "); int numberOfProduct = getValidInteger("Enter Number of Product :- "); while (!StoreController.getInstance().isValidNumberOfProduct( numberOfProduct)) { System.out.println("Enter Valid Number of Product :- "); numberOfProduct = getValidInteger("Enter Number of Product :- "); } for (int number = 1; number <= numberOfProduct; number++) { System.out.println("Enter " + number + " Product Id"); int productId = getValidInteger("Enter " + number + " Product Id"); while (!StoreController.getInstance().isValidProductId(productId)) { System.out.println("Enter Valid Product Id"); productId = getValidInteger("Enter " + number + " Product Id"); } System.out.println("Enter product Quantity"); int quantity = getValidInteger("Enter product Quantity"); CartController.getInstance().addProductToCart(productId, quantity); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buyProduct(String productName) throws ProductNotFoundException {\r\n\r\n if (doesRecentOrderExist(productName)) {\r\n reorderProduct(productName);\r\n } else {\r\n //Create a new order to be given to the WebMarket\r\n Order newOrder = new Order(this, productName, \"buy\", \"pending\");\r\n\r\n //Acknowlegement print statment\r\n System.out.println(\"CUSTOMER: Request NEW purchase of - \" + newOrder.getProductName());\r\n\r\n //Send the order to WebMarket via placeNewOrder()\r\n market.placeNewOrder(newOrder);\r\n\r\n //Add this order to the customers personel list of orders\r\n orderHistory.add(newOrder);\r\n }\r\n }", "public void productsToBuy(Product purchase){\n bill.getProducts().add(purchase);\n }", "void addProduct(Product product);", "public void addProduct(Product product);", "Cart addToCart(String productCode, Long quantity, String userId);", "public void onClick(View v)\n {\n // Add to cart model\n for (int i = 0; i < productQuantity; i++)\n {\n dbManager.addToCart(activeProduct.getID());\n }\n }", "public void addToBasket(Product product){\n\n Purchaseitem purchaseitem = new Purchaseitem();\n purchaseitem.setProduct(product.getId());\n purchaseitem.setProductByProduct(product);\n boolean toAdd = false;\n if(basket.isEmpty()){\n purchaseitem.setQuantity(1);\n basket.add(purchaseitem);\n }else {\n for(int i = 0; i < basket.size(); i++){\n if(basket.get(i).getProduct() == product.getId()){\n basket.get(i).setQuantity(basket.get(i).getQuantity() + 1);\n return;\n } else {\n purchaseitem.setQuantity(1);\n toAdd = true;\n }\n }\n }\n if(toAdd){\n basket.add(purchaseitem);\n }\n }", "@Override\n public void onAddToCart(Product product) {\n }", "public CheckoutPage AddProductToCartAndCheckout(String strProductName)\n\t{\n\t\twaittillResultload(\".//*[@name='\"+strProductName+\"']/div[2]/div/span/input\", \"xpath\");\n\t\t\n\t\tinputAddToCart.click();\n\t\t\n\t\twaittillResultload(\".go_to_checkout\", \"css\");\n\t\t\n\t\tbuttonCheckout.click();\n\t\t\n\t\treturn new CheckoutPage(driver);\n\t\t\n\t}", "@Override\n public String addToCart(TicketDTO buy) throws InvalidQuantityException, ProductNotFoundException {\n\n return catalogueRepository.addToCart(buy);\n }", "public void addProduct() {\n Product result;\n String prodName = getToken(\"Enter product name: \");\n double price = getDouble(\"Enter price per unit: $\");\n result = warehouse.addProduct(prodName, price);\n if (result != null) {\n System.out.println(result);\n }\n else {\n System.out.println(\"Product could not be added.\");\n }\n }", "@Test\n\tpublic void testAddProductToCart() {\n\t\tdouble startBalance = cart.getBalance();\n\t\tassertEquals(0,startBalance,0.01);\n\t\t\n\t\t\n\t\t\t // 4. CHECK NUM ITEMS IN CART BEFORE ADDING PRODUCT\n\t\t\t // \t\t - PREV NUM ITEMS\n\t\t\n\t\tint StartingNumItems = cart.getItemCount();\n\t\tassertEquals(0,StartingNumItems);\n\t\t\n\t\t\t // 5. ADD THE PRODUCT TO THE CART \n\t\tcart.addItem(phone);\n\t\t\n\t\t\t // 6. CHECK THE UPDATED NUMBER OF ITEMS IN CART \n\t\t\t // \t\t-- EO: NUM ITEMS + 1\n\t\tassertEquals(StartingNumItems + 1, cart.getItemCount());\n\t\t\t // -----------------------\n\t\t\t // 7. CHECK THE UPDATED BALANCE OF THE CART\n\t\t\t // \t\t-- EO: PREVIOUS BALANCE + PRICE OF PRODUCT\n\t\t\n\t\tdouble expectedBalance = startBalance + phone.getPrice();\n\t\t\n\t\tassertEquals(expectedBalance,cart.getBalance(),0.01);\n\t\t\n\t\t\n\t\t\n\t}", "private void addProductToCart(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String productID = request.getParameter(\"ProductID\");\n\n HttpSession session = request.getSession();\n\n List<Product> cartProducts = (List<Product>) session.getAttribute(\"cartProducts\");\n\n if (productID != null) {\n\n int id = Integer.parseInt(productID);\n\n if (cartProducts != null) {\n\n if (getCartSize(cartProducts) < Constants.CART_LIMIT) {\n\n if (!productIsAlreadyInCart(id, cartProducts))\n cartProducts.add(productDAO.getProduct(id));\n else\n increaseProductCountInCart(id, cartProducts);\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n response.sendRedirect(Constants.PATH_CATALOG);\n } else\n response.getWriter().write(notifyCartIsFull());\n\n } else {\n cartProducts = new ArrayList<>();\n cartProducts.add(productDAO.getProduct(Integer.parseInt(productID)));\n\n logger.info(\"Product (ID=\" + productID + \") has been added to the cart\");\n session.setAttribute(\"cartProducts\", cartProducts);\n response.sendRedirect(Constants.PATH_CATALOG);\n }\n }\n }", "public void addProduct(Product item)\n {\n stock.add(item);\n }", "public void addProductToCart(String product) {\n\t\tpause(1000);\n\t\tBy bySelector = By.cssSelector(\"button.prdbox\");\n\t\tList<WebElement> elements = driver.findElements(bySelector);\n\t\t\n\t\tfor (WebElement item : elements) {\n\t\t\tString test = item.getAttribute(\"innerHTML\");\n\t\t\tif (test.contains(product)){\n\t\t\t\titem.click();\n\t\t\t}\n\t\t}\t\n\t}", "public CategoryIPhone AddProductToCartAndContinue(String strProductName)\n\t{\n\t\t\n\t\twaittillResultload(\".//*[@name='\"+strProductName+\"']/div[2]/div/span/input\", \"xpath\");\n\t\t\n\t\tinputAddToCart.click();\n\t\t\n\t\twaittillResultload(\".continue_shopping\", \"css\");\n\t\t\n\t\tbuttonContinueShopping.click();\n\t\t\n\t\treturn this;\n\t\t\n\t}", "public void addProduct(Product p){\n stock.add(p);\n }", "Product addNewProductInStore(Product newProduct);", "public void addProduct(Product p) {\n c.addProduct(p);\n }", "public synchronized void addItem(Product product){\n \n ShoppingCartItem item = carrito.get(product.getId());\n int new_quantity;\n \n if(item==null){\n carrito.set(product.getId(), new ShoppingCartItem(product));\n new_quantity = 1;\n }else{\n new_quantity = item.getQuantity()+1;\n }\n //even if it's added or not, we call update method to update the quantity of the product\n this.update(product,Integer.toString(new_quantity));\n }", "public void addProductToBuyBasket(Product product, int count) {\n if (buyBasket.containsKey(product.getId()))\n buyBasket.replace(product.getId(), buyBasket.get(product.getId() + count));\n else\n buyBasket.put(product.getId(), count);\n }", "private void buyButtonClicked(final ShopItem shopItem) {\n int cost = shopItem.getPrice();\n if (GameActivity.buyItem(cost)) {\n shopItem.setState(ItemStatusID.BOUGHT);\n updateUI();\n }\n }", "public void Addproduct(Product objproduct) {\n\t\t\n\t}", "Product addOneProduct(String name, String imgNameBarcode, String imgName, String barcode) throws Exception;", "@Step(\"Add product to cart and proceed to checkout\")\n public HomeSteps addProductToCart(String productName) {\n homePage\n .openPage()\n .clickAddToCartButton(productName)\n .clickProceedToCheckoutButton();\n return this;\n }", "@Then(\"the product is added to my cart\")\n\t\tpublic void the_product_is_added_to_my_cart() throws Exception {\n\n\t\t\t//Waits for the cart page to load\n\t\t\tdriver.manage().timeouts().implicitlyWait(120, TimeUnit.SECONDS);\n\t\t\tcartElement = driver.findElement(By.xpath(itemSacola)).getText();\n\t\t\t\n\t\t\t//Verify that the product on the shopping cart is the correct one\n\t\t\tAssert.assertEquals(cartElement, TituloFinal);\n\n\t\t\t// Take snapshot as evidence\n\t\t\tFunctions.takeSnapShot(driver, null);\n\t\t}", "@Test\n public void addToCart() throws Exception {\n\n ReadableProducts product = super.readyToWorkProduct(\"addToCart\");\n assertNotNull(product);\n\n PersistableShoppingCartItem cartItem = new PersistableShoppingCartItem();\n cartItem.setProduct(product.getId());\n cartItem.setQuantity(1);\n\n final HttpEntity<PersistableShoppingCartItem> cartEntity =\n new HttpEntity<>(cartItem, getHeader());\n final ResponseEntity<ReadableShoppingCart> response =\n testRestTemplate.postForEntity(\n String.format(\"/api/v1/cart/\"), cartEntity, ReadableShoppingCart.class);\n\n // assertNotNull(response);\n // assertThat(response.getStatusCode(), is(CREATED));\n\n }", "public void addProduct(Product product) {\n int newQuantity = product.getQuantity();\n try {\n Product productInCart = getProductInCartCorrespondentTo(product);\n int previousQuantity = productInCart.getQuantity();\n productInCart.setQuantity(newQuantity + previousQuantity);\n this.amount += newQuantity * product.getPrice();\n } catch (NoSuchProductException e) {\n // the product isn't already in the list -> add it\n int index;\n try {\n index = getCategoryIndex(product.getCategory().name());\n } catch (NoSuchCategoryException e2) {\n index = categoryNames.indexOf(Category.OTHER.name());\n }\n shoppingCart.get(index).add(product);\n float price = product.getPrice() * newQuantity;\n this.amount += price;\n }\n for (int i = 0; i < newQuantity; i ++)\n lastProductList.add(product);\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "@Override\n public TicketDTO buyCart() throws InvalidQuantityException, IOException, ProductNotFoundException {\n\n return catalogueRepository.buyCart();\n }", "private void addProduct() {\n String type = console.readString(\"type (\\\"Shirt\\\", \\\"Pant\\\" or \\\"Shoes\\\"): \");\n String size = console.readString(\"\\nsize: \");\n int qty = console.readInt(\"\\nQty: \");\n int sku = console.readInt(\"\\nSKU: \");\n Double price = console.readDouble(\"\\nPrice: \");\n int reorderLevel = console.readInt(\"\\nReorder Level: \");\n daoLayer.addProduct(type, size, qty, sku, price, reorderLevel);\n\n }", "public void addProduct(CartProduct p) throws InsufficientQuantityException {\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\tif (product.getDescription().equals(p.getDescription()) && (product.getQuantity() >= 1)) {\n\t\t\t\tcart.addToCart(p);\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthrow new InsufficientQuantityException(\"Out of Stock\");\n\t\t\t}\n\t\t}\n\t}", "public static void addToCart() {\n List<WebElement> buttonsAddItem = Browser.driver.findElements(ADD_TO_CART_BUTTON);\n buttonsAddItem.get(0).click();\n Browser.driver.navigate().refresh();\n }", "public void buy(int index, int quantity){\n if (index>=1 && index<=car.size()){\n car.get(index-1).getAvailableQuantity().setAmount(quantity);\n bill.getProducts().add(car.get(index-1));\n car.remove(index-1);\n }\n }", "public void buyItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, in a normal shop */\n\t\tif(m_currentShop == null)\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tint price = GameServer.getServiceManager().getItemDatabase().getItem(id).getPrice();\n\t\t\tif(m_money - q * price >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\n\t\t\t\tm_money = m_money - q * price;\n\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\tupdateClientMoney();\n\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tgetSession().Send(message);\n\t\t\t\t/* Update player inventory. */\n\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tupdate.addInt(q);\n\t\t\t\tgetSession().Send(update);\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(m_bag.hasSpace(id))\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tif(m_money - q * m_currentShop.getPriceForItem(id) >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\t\t\t\tif(m_currentShop.buyItem(id, q))\n\t\t\t\t{\n\t\t\t\t\tm_money = m_money - q * m_currentShop.getPriceForItem(id);\n\t\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\t\tupdateClientMoney();\n\t\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tgetSession().Send(message);\n\t\t\t\t\t/* Update player inventory. */\n\t\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tupdate.addInt(1);\n\t\t\t\t\tgetSession().Send(update);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Send You cant carry any more items! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.POCKET_FULL);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "public void purchaseCart (View view) {\n Utility.showMyToast(\"Purchasing now!\", this);\n\n // Also send an Analytics hit\n sendPurchaseHit();\n }", "public void addProduct(MarketObject<?> product) throws IllegalStateException{\n\t\tPlayer sellingPlayer=game.getCurrentPlayer();\n\n\t\tif(product.getObject().getClass().getSuperclass().equals(PoliticsCard.class))\n\t\t\tif(sellingPlayer.getCardsOwned().contains(product.getObject()))\n\t\t\t{\n\t\t\t\tsellingPlayer.getCardsOwned().remove((PoliticsCard)product.getObject());\n\t\t\t\tthis.products.add(product);\n\t\t\t}\n\t\t\telse\n\t\t\t\tthrow new IllegalStateException(\"Impossible to add \"+PoliticsCard.class.getSimpleName()+\n\t\t\t\t\t\t\". You don't own one.\");\n\t\telse if(product.getObject().getClass().equals(Assistant.class))\n\t\t\tif(sellingPlayer.checkAssistants(((Assistant)product.getObject()).getNumber()))\n\t\t\t\tthis.products.add(product);\n\t\t\telse \n\t\t\t\tthrow new IllegalStateException(\"Impossible to add \"+Assistant.class.getSimpleName()+\n\t\t\t\t\t\t\". You own just \"+sellingPlayer.getAssistants()+\" \"+Assistant.class.getSimpleName());\n\t\telse if(product.getObject().getClass().equals(BuildingPermit.class))\n\t\t\tif(sellingPlayer.getAllPermits().contains(product.getObject()))\n\t\t\t{\n\t\t\t\tsellingPlayer.getBuildingPermits().remove((BuildingPermit)product.getObject());\n\t\t\t\tthis.products.add(product);\n\t\t\t}\n\t\t\telse \n\t\t\t\tthrow new IllegalStateException(\"Impossible to add \"+BuildingPermit.class.getSimpleName()+\n\t\t\t\t\t\t\". You don't own one.\");\n\t\tgame.notifyObservers(new ModelChange(game));\n\t}", "public void buy() throws CannotAffordException {\r\n\t\tGame game = Game.getInstance();\r\n\t\tgame.decreaseBudget(price);\r\n\t\tgame.getInventory().add(id);\r\n\t}", "public void addBuy() {\r\n\t\tbuys++;\r\n\t\tnotifyObservers();\r\n\t}", "Product storeProduct(Product product);", "public addproduct() {\n\t\tsuper();\n\t}", "public void addProductToBuyBasket(int productId, int count) {\n if (buyBasket.containsKey(productId))\n buyBasket.replace(productId, buyBasket.get(productId + count));\n else\n buyBasket.put(productId, count);\n }", "public void addProduct(Product pProduct)\n\t{\n\t\tmyProductInventory.add(pProduct);\n\n\n\t}", "public void addProduct(Product item){\n inventory.add(item);\n }", "public boolean addProductToBasket(Product product, Order order) {\n \tint quantity = orderService.getQuanity(product);\n \treturn orderService.addProductToBasket(order, product, quantity);\n }", "public void addProduct(Product p) {\n if(products.size() != 0 && products.get(0).getPricingDetails().equals(p.getPricingDetails()))\n return;\n\n products.add(p);\n quantity++;\n price = price.add(p.getPricingDetails());\n }", "public void addItemToSale(String productId, int quantity) {\r\n if (productId.isEmpty()) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id is missing - enter valid product id\");\r\n System.exit(1);\r\n }\r\n if (quantity <= 0) {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"quantity is less than or equal to 0 - enter valid quantity\");\r\n System.exit(1);\r\n }\r\n FakeDatabase db = new FakeDatabase();\r\n Product product = db.findProduct(productId);\r\n\r\n if (product != null) { //product found in database\r\n receipt.addLineItem(product, quantity);\r\n } else {\r\n System.out.println(\"Class CashRegister, method addItemToSale\");\r\n System.out.println(\"product id not found in database - enter valid product id\");\r\n System.exit(1);\r\n }\r\n }", "public void addProduct(String product, int quantity) {\n if (shoppingBasket.containsKey(product) != true) {\n shoppingBasket.put(product, quantity);\n } else {\n shoppingBasket.put(product, shoppingBasket.get(product) + quantity);\n }\n }", "public void add(int index){\n int i = 0;\n boolean isFound = false;\n for (Product product:inventory.getProducts().keySet())\n {\n i++;\n if (i == index && inventory.getProducts().get(product) > 0)\n {\n if (myBasket.containsKey(product))\n {\n System.out.println(\"One more of this product added.\");\n myBasket.replace(product , myBasket.get(product) + 1);\n }\n else {\n System.out.println(\"Product added to your basket.\");\n myBasket.put(product , 1);\n }\n totalCost = totalCost + product.getPrice();\n isFound = true;\n inventory.updateStock(product , '-');\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index or not enough product in stock!\");\n }", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "public void sendPurchaseHit() {\n\n // In production code, would need to iterate\n // over all the products in the cart\n // Here we assume that the currently selected dinner\n // is the only thing in the cart\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n // Get a unique transaction ID\n String tID = Utility.getUniqueTransactionId(thisDinnerId);\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_PURCHASE)\n .setTransactionId(tID);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Purchase\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "public void handleBuyGuppyCommand() {\n if (Aquarium.money >= GUPPYPRICE) {\n guppyController.addNewEntity();\n Aquarium.money -= GUPPYPRICE;\n }\n }", "@RequestMapping(\n method = RequestMethod.POST,\n consumes = MediaType.APPLICATION_JSON_VALUE,\n path = \"{productId}\"\n )\n public void addProductToShoppingCart(@PathVariable(\"productId\") UUID productId){\n shoppingCartService.insertProduct(productId);\n }", "@Override\r\n\tpublic void buy(String uname, String bname, Double price) {\n\t\tSystem.out.println(uname + \"购买图书:\" + bname);\r\n\t\tSystem.out.println(\"消费金额:\" + price);\r\n\t\tSystem.out.println(\"支付成功!向物流系统下发货单!\");\r\n\t}", "@Override\n public FlashMessage addQuantity(ShoppingCart cart, Long productId, int changeQuantity) {\n FlashMessage flashMessage;\n Product product = productService.findById(productId);\n if (product == null) {\n throw new ProductNotFoundException(\"Attempt to buy unknown product: \"+productId);\n }\n\n Purchase purchase = cart.getPurchase();\n boolean productAlreadyInCart = false;\n if (purchase == null) {\n purchase = new Purchase();\n cart.setPurchase(purchase);\n }\n else {\n for (ProductPurchase pp : purchase.getProductPurchases()) {\n if (pp.getProduct() != null) {\n if (pp.getProduct().getId().equals(productId)) {\n if ((pp.getQuantity()+changeQuantity) > product.getQuantity()) { // We want buy more than have\n throw new ExceedsProductQuantityException(FlashMessage.outOfStock(product));\n }\n pp.setQuantity(pp.getQuantity() + changeQuantity);\n productAlreadyInCart = true;\n break;\n }\n }\n }\n }\n\n if (!productAlreadyInCart) {\n if (changeQuantity>product.getQuantity()) { // We want buy more than have in stock that product\n throw new ExceedsProductQuantityException(FlashMessage.outOfStock(product));\n }\n\n ProductPurchase newProductPurchase = new ProductPurchase();\n newProductPurchase.setProduct(product);\n newProductPurchase.setQuantity(changeQuantity);\n newProductPurchase.setPurchase(purchase);\n purchase.getProductPurchases().add(newProductPurchase);\n }\n\n flashMessage = new FlashMessage (String.format(\"Added %d of %s to cart.\", changeQuantity, product.getName()), FlashMessage.Status.SUCCESS);\n cart.setPurchase(purchaseService.save(purchase));\n return flashMessage;\n }", "private void addProduct()\n {\n System.out.println(\"|➕| Add new Product:\\n\");\n System.out.println(\"|➕| Enter ID\\n\");\n int id = Integer.parseInt(reader.getInput());\n System.out.println(\"|➕| Enter Name\\n\");\n String name = reader.getInput();\n manager.addProduct(id, name);\n }", "private void buy() {\n if (asset >= S_I.getPirce()) {\n Item item = S_I.buy();\n asset -= item.getPrice();\n S_I.setAsset(asset);\n } else {\n System.out.println(\"cannot afford\");\n }\n }", "public void add() {\n\t\tcart.add(item.createCopy());\n\t}", "public void add(WebSite website, int nProductID, int nQuantity) {\r\n\t\tfor (int i = 0; i < orderedItems.size(); i++) {\r\n\t\t\tOrderedItem oi = (OrderedItem) orderedItems.elementAt(i);\r\n\t\t\tif (oi.nProductID == nProductID) {\r\n\t\t\t\toi.nQuantity += nQuantity;\r\n\t\t\t\tcalculate(website);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tOrderedItem oi = new OrderedItem();\r\n\t\toi.nProductID = nProductID;\r\n\t\toi.nQuantity = nQuantity;\r\n\t\tProduct product = website.products.get(nProductID);\r\n\t\toi.dblPrice = product.dblPrice;\r\n\t\toi.dblCost = product.dblCost;\r\n\t\torderedItems.addElement(oi);\r\n\r\n\t\tcalculateCart(website);\r\n\t}", "public void addProduct() throws Throwable\r\n\t{\r\n\t\tgoToProductsSection();\r\n\t\tverifyProduct();\r\n\t\tselPproductBtn.click();\r\n\t\twdlib.verify(wdlib.getPageTitle(),flib.getPropKeyValue(PROP_PATH, \"ProductsPage\") , \"Products Page \");\r\n\t\tProductsPage pdpage=new ProductsPage();\r\n\t\tpdpage.selectProducts();\r\n\t}", "public boolean add(Product product) {\n return cartRepository.add(product);\n }", "@When(\"I click on the product I want to buy\")\n\t\tpublic void i_click_on_the_product_I_want_to_buy() {\n\t\t\tWebDriverWait wait = new WebDriverWait(driver, 20);\n\t\t\twait.until(ExpectedConditions.visibilityOfElementLocated(By.xpath(book)));\n\t\t\tbookElement = driver.findElement(By.xpath(book));\n\t\t\t//scroll down the page to my product\n\t\t\t((JavascriptExecutor) driver).executeScript(\"arguments[0].scrollIntoView(true);\", bookElement);\n\t\t\tdriver.findElement(By.xpath(book)).click();\n\t\t}", "public void insertIntoProduct() {\n\t\ttry {\n\t\t\tPreparedStatement statement = connect.prepareStatement(addProduct);\n\t\t\tstatement.setString(1, productName);\n\t\t\tstatement.setString(2, quantity);\n\t\t\t\n\t\t\tstatement.executeUpdate();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t}", "public void AddSpecificProduct(String productName) {\n\t\t\n\t\ttest = report.startTest(\"TC: AddSpecificProduct\");\n\t\t\n\t\t// -- Step 1: Ensure we're in the right page after login\n\t\tif (!verifyInProductPage()) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// -- Step 2: Construct Dynamic XPath & Add the item\n\t\t\n\t\t// construct dynamic xpath\n\t\tString dynXpath = new String();\n\n\t\t/* method 1\n\t\t\t// Example: //button[@data-test=\"add-to-cart-sauce-labs-bike-light\"]\n\t\t\tproductName.toLowerCase();\n\t\t\tdynXpath=\"//button[@data-test=\\\"add-to-cart-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t*/\n\n\t\t/* method 2 */\n\t\tdynXpath=\"//*[text()='\"+ productName +\"']//following::button[1]\";\n\n\t\t\n\t\t// Check if product listed in the page? If yes, click ADD TO CART button\n\t try {\n\t \twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t \tdriver.findElement(By.xpath(dynXpath)).click();\n\t\t\ttest.log(LogStatus.INFO, \"Product [\" + productName + \"] found, clicked ADD TO CART button.\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Product [\" + productName + \"] not found\");\n\t\t\treturn;\n\t }\n\t\t\n\n\t\t// -- Step 3: Verify item added via number(s) of item in Cart Badge\n\t \n\t\t// Perform simple verification using the Cart Badge on Top Right of the page\n\t\t// Now we update the dynXpath to remove pattern\n\t\tdynXpath=\"//button[@data-test=\\\"remove-\" + productName.toLowerCase().replace(\" \", \"-\") +\"\\\"]\";\n\t\t\n\t\twait.until(ExpectedConditions.presenceOfElementLocated(By.xpath(dynXpath)));\n\t try {\n\t \tdriver.findElement(By.xpath(dynXpath));\n\t\t\ttest.log(LogStatus.PASS, \"Successful added [\" + productName + \"] to cart\");\t\n\t } catch (TimeoutException e) {\n\t\t\ttest.log(LogStatus.FAIL, \"Fail to add [\" + productName + \"] to cart\");\n\t\t\tsoft.fail(\"Failed to add item to cart!\");\t\n\t }\n\t\t\n\t\t\n\t}", "@Override\n public void onClick(View v) {\n Context context = getContext();\n SharedPreferences mSharedPreference1 = PreferenceManager.getDefaultSharedPreferences(context);\n float fTotal = mSharedPreference1.getFloat(\"CartTotal\", 0);\n fTotal += (float)Integer.parseInt(product.getPrice());\n\n //throwback in\n SharedPreferences sp = PreferenceManager.getDefaultSharedPreferences(context);\n SharedPreferences.Editor mEdit1 = sp.edit();\n mEdit1.putFloat(\"CartTotal\", fTotal);\n mEdit1.commit();\n\n //add to my cart array if item doesn't exist.\n String prodID = Integer.toString(product.getP_id());\n if(!Arrays.asList(myCartArray).contains(prodID)){\n myCartArray.add(prodID);\n saveArray();\n //display dialog saying added to cart successful\n\n Toast.makeText(getActivity(), \"Succesfully added to your cart!\",\n Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(getActivity(), \"This lot was already in your cart!\",\n Toast.LENGTH_LONG).show();\n }\n\n }", "public static void addProductToCart(Cart cart, GyftyProduct product) {\n cart.addProduct(product);\n CartGyftyProduct cartProduct = new BaseCartGyftyProduct(product);\n addCartProductPriceRows(cart, cartProduct);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n }", "public void add(Product product) {\r\n sessionFactory.getCurrentSession()\r\n .save(product);\r\n }", "@Test\n\tpublic void testAddingItemsToShoppingCart() {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\ttry {\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), new BigDecimal(1));\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phoneCase.getProductId(), new BigDecimal(2));\n\t\t} catch (InsufficientStockException e) {\n\t\t\tfail(\"Inventory check failed while adding a product in shopping cart\");\n\t\t}\n\n\t\tPurchaseOrderAggregate purchaseOrderAggregate = shoppingCartAggregate.checkoutCart();\n\t\tassertNotNull(purchaseOrderAggregate);\n\n\t\tPurchaseOrder purchaseOrder = purchaseOrderAggregate.getPurchaseOrder();\n\t\tassertNotNull(purchaseOrder);\n\n\t\tassertEquals(2, purchaseOrder.getOrderItems().size());\n\n\t\tassertEquals(ShoppingCart.CartStatus.CHECKEDOUT, shoppingCartAggregate.getShoppingCart().getCartStatus());\n\t}", "public void addProduct(Product product) {\n allProducts.add(product);\n }", "@Override\n\tpublic void addProductToCart(ShoppingCartItem cart_items) {\n\t\tthis.shoppingCartList.add(cart_items);\n\t}", "public void addItem(Product p, int qty){\n //store info as an InventoryItem and add to items array\n this.items.add(new InventoryItem(p, qty));\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew sell().execute(CartActivity.sendObject.toString());\n\t\t\t}", "@PostMapping(\"/add\")\n public String addToCart(@RequestHeader(\"Authorization\") String authorizationToken,@RequestParam Integer userId,@RequestParam Integer productId,@RequestParam Integer quantity){\n \tProductDTO pDTO = productMS.getProductById(authorizationToken,productId);\n \t CartDTO cartDTO = new CartDTO();\n \tBeanUtils.copyProperties(pDTO,cartDTO);\n \tcartDTO.setUserId(userId);\n \tcartDTO.setQuantity(quantity);\n return cartService.addToCart(cartDTO);\n }", "public void addProduct(Product toAdd) {\n\t\tthis.products.add(toAdd);\n\t}", "Product postProduct(Product product);", "public static final void activateProduct(String productKey, int quantity) {\n\t\tInteger tValue = sConsumableProducts.get(productKey);\n\t\tif (tValue == null) {\n\t\t\tsConsumableProducts.put(productKey, new Integer(quantity));\n\t\t} else {\n\t\t\tint tQuantity = tValue.intValue();\n\t\t\ttQuantity += quantity;\n\t\t\tsConsumableProducts.put(productKey, new Integer(tQuantity));\n\t\t}\n\t\tsaveSettings();\n\t}", "public static String handleAddToCart(Request req, Response res) {\n\n int quantity = Integer.parseInt(req.queryParams(\"quantity\"));\n int productId = Integer.parseInt(req.queryParams(\"product_id\"));\n int userId = req.session().attribute(\"user_id\");\n\n Order order = DaoFactory.getOrderDao().findOpenByUserId(userId);\n if (order == null) {\n order = DaoFactory.getOrderDao().createNewOrder(userId);\n }\n\n Product product = DaoFactory.getProductDao().find(productId);\n if (product == null || quantity < 1 || quantity > 99) {\n return \"invalid_params\";\n }\n\n LineItem lineItemToAdd = DaoFactory.getOrderDao().findLineItemInCart(productId, order);\n if (lineItemToAdd == null) {\n\n lineItemToAdd = new LineItem(\n order.getId(),\n productId,\n product.getName(),\n product.getImageFileName(),\n quantity,\n product.getDefaultPrice(),\n product.getDefaultCurrency()\n );\n\n DaoFactory.getOrderDao().addLineItemToCart(lineItemToAdd, order);\n return \"new_item\";\n }\n\n DaoFactory.getOrderDao().increaseLineItemQuantity(order, lineItemToAdd, quantity);\n return \"quantity_change\";\n }", "public void sendStartCheckoutHit() {\n Product product = new Product()\n .setName(\"dinner\")\n .setPrice(5)\n .setVariant(thisDinner)\n .setId(thisDinnerId)\n .setQuantity(1);\n\n ProductAction productAction =\n new ProductAction(ProductAction.ACTION_CHECKOUT);\n\n Tracker tracker = ((MyApplication) getApplication()).getTracker();\n\n tracker.send(new HitBuilders.EventBuilder()\n .setCategory(\"Shopping steps\")\n .setAction(\"Start checkout\")\n .setLabel(thisDinner)\n .addProduct(product)\n .setProductAction(productAction)\n .build());\n }", "public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}", "@Override\r\n\t\t\tpublic void buy(String security, double price, int volume) {\n\t\t\t\tSystem.out.println(\"buy is\"+price+volume);\r\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic boolean addProduct(Product p) {\n\t\treturn false;\n\t}", "public void addProductToWishlist(Product product, long accountId) {\n wishlistService.addProduct(product, accountId);\n }", "public void addItem(Product p) throws IOException, ClassNotFoundException {\n SortByName sortByName = new SortByName();\n Collections.sort(cartContents, sortByName.productSearch());\n\n int m = this.getQuantity(p);\n //check if in cart will exceed available amount\n if (p.getAvailableQuantity() > m)\n {\n cartContents.add(p);\n }\n saveCart();\n }", "@Override\n\t//用户将商品添加到购物车\n\tpublic int addProductIntoCartByUserIdAndProductId(Integer userid, Integer productid, int quantity) {\n\t\tSqlSessionFactory factory=MyBatisUtils.getSqlSessionFactory();\n\t\tSqlSession session=factory.openSession(true);\n\t\tMap<String,Integer> map=new HashMap<String,Integer>();\n\t\tmap.put(\"userid\", userid);\n\t\tmap.put(\"productid\", productid);\n\t\tmap.put(\"quantity\", quantity);\n\t\tint result=session.insert(\"com.neusoft.entity.Cart.addProductIntoCartByUserIdAndProductId\", map);\n\t\tsession.close();\n\t\treturn result;\n\t}", "public boolean buyItem(Product n){\n\n if (balance.buyItem(n.getPrice()) == true & n.getQuantity() != 0 & vending_balance != 0) {\n validPurchase = true; // valid purchase was made\n vending_balance = 0; // resets vending balance to 0\n n.setQuantity(); // product quantity is -1\n return true;\n }\n\n else { // if quantity is 0 or balance is does not meet or exceed product's price\n return false;\n }\n }", "public void onBuyPressed() {\n PayPalPayment payment = new PayPalPayment(new BigDecimal(String.valueOf(totalAmount)), \"USD\", \"Total Price\",\n PayPalPayment.PAYMENT_INTENT_SALE);\n\n Intent intent = new Intent(this, PaymentActivity.class);\n\n // send the same configuration for restart resiliency\n intent.putExtra(PayPalService.EXTRA_PAYPAL_CONFIGURATION, config);\n\n intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);\n\n startActivityForResult(intent, 0);\n }", "@Override\r\n public void addProductQuantity(Product product, int quantity) {\r\n int stock;\r\n int i = 0;\r\n for (Product p : this.productList) {\r\n if (p.getId() == product.getId()) {\r\n stock = this.productQuantity.get(i);\r\n this.productQuantity.set(i, stock + quantity);\r\n break;\r\n }\r\n i++;\r\n }\r\n this.productList.add(product);\r\n this.productQuantity.add(quantity);\r\n }", "public String addToInventory(Product productDetails){\n productDetails.setProductForSale(\"Y\");\n productDetails = mongoDbConnector.addToInventory(productDetails);\n return productDetails.getProductName();\n }", "@Override\r\n\tpublic void ManageProduct() {\n\t\tint id = this.view.enterId();\r\n\t\tString name = this.view.enterName();\r\n\t\tfloat price = this.view.enterPrice();\r\n\t\tint quantity = this.view.enterQuantity();\r\n\t\t\r\n\t\tthis.model.updProduct(id, name, price, quantity);\r\n\t}", "private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}", "@Test\r\n\tvoid testaddProductToCart() throws Exception\r\n\t{\r\n\t\tCart cart=new Cart();\r\n\t\tcart.setProductId(1001);\r\n\t\tcartdao.addProductToCart(cart);\r\n\t\tList<Cart> l=cartdao.findAllProductsInCart();\r\n\t\tassertEquals(1,l.size());\r\n\t}", "public ModelAndView handleAddToCart(Request req, Response res) throws SQLException {\n Product prod = productDaoJdbc.find(Integer.parseInt(req.params(\":prodID\")));\n Integer qty = Integer.parseInt(req.queryParams(\"prodQty\"));\n ShoppingCart cart = new ShoppingCart();\n if (req.session().attribute(\"cart\") != null) {\n cart = req.session().attribute(\"cart\");\n }\n cart.addToCart(prod, qty);\n req.session().attribute(\"cart\", cart);\n res.redirect(UrlController.getLastURL(req));\n return null;\n }", "ProductView addProduct(ProductBinding productToAdd) throws ProductException;", "public void purchase(){\n\t\t\n\t\t//Ask the user for notes about the item\n\t\tSystem.out.println(\"Please enter any special requests regarding your \" +\n\t\t\t\t\t\t\t\"food item for our staff to see while they prepare it.\");\n\t\tScanner scan = new Scanner(System.in);\n\t\tString foodNotes = scan.nextLine();\n\t\tnotes = foodNotes;\n\t\t\n\t\t//Add this item's price to the order total\n\t\tMenu.orderPrice += price;\n\t\t\n\t}", "public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }", "@Override\r\n\tpublic boolean addProduct(Product product) {\n\t\treturn dao.addProduct(product);\r\n\t}", "@PostMapping(value = \"/addcart\")\n public ResponseEntity<String> addCart(@RequestBody @Valid OrderProduct orderProduct, final HttpSession session) throws Exception {\n\n //Get the initial cart\n log.info(session.getId() + \" : Reviewing the initial cart\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n\n Integer quantity = orderProduct.getQuantity();\n\n //Check if cart is empty and instantiate it, if product is already there in the cart, update them\n if (CollectionUtils.isEmpty(initialCart)) {\n log.info(\"No Items added yet\");\n initialCart = new HashMap<>();\n } else {\n if (initialCart.containsKey(orderProduct.getProductName()))\n quantity = quantity + initialCart.get(orderProduct.getProductName()).getQuantity();\n }\n\n //check if the store has the available quantity and update the cart\n log.info(session.getId() + \" : Processing the addition of product to the cart\");\n Product product = prodService.getProd(orderProduct.getProductName());\n if (product.getQuantity() >= quantity) {\n CartProduct cartProduct = ControllerUtils.buildCartProduct(product, quantity);\n initialCart.put(orderProduct.getProductName(), cartProduct);\n session.setAttribute(CART_SESSION_CONSTANT, initialCart);\n return ResponseEntity.status(HttpStatus.OK).body(\"Product \" + orderProduct.getProductName() + \" added to the cart\");\n } else {\n log.error(session.getId() + \" : Error updating cart for products unavailable\");\n throw new AvailabilityException(orderProduct.getProductName());\n }\n\n }", "@FXML\r\n\tpublic void addToShoppingCart() {\r\n\t\t\r\n\t\tWatch w = listView.getSelectionModel().getSelectedItem();\r\n\t\tboolean add = controller.addWatchToShoppingCart(w);\r\n\t\tcontroller.deleteWishlistItem(w.getId());\r\n\t\tlistView.setItems(controller.getWishlistWatchesForCurrentUser());\r\n\t\tlistView.getSelectionModel().select(-1);\r\n\t\tcheckSelected();\r\n\t}", "@Override\n\t public void onClick(View v)\n\t {\n\t\t\t sqLite=context.openOrCreateDatabase(\"basketbuddy\", context.MODE_PRIVATE, null);\n\t\t\t \n\t\t\t Cursor cc = sqLite.rawQuery(\"SELECT PRODUCT_QTY, PRODUCT_VALUE FROM CART WHERE PRODUCT_CODE =\"+Integer.parseInt(prod_name.getProductCode()), null);\n\t\t\t \n\t\t\t if (cc.getCount()== 0)\n\t\t\t {\n\t \t\t //product not already there in cart..add to cart\n\t\t\t\t sqLite.execSQL(\"INSERT INTO CART (PRODUCT_CODE, PRODUCT_NAME, PRODUCT_BARCODE, PRODUCT_GRAMMAGE\"+\n\t \t \", PRODUCT_MRP, PRODUCT_BBPRICE, PRODUCT_DIVISION, PRODUCT_DEPARTMENT,PRODUCT_QTY,PRODUCT_VALUE) VALUES(\"+\n\t \t\t prod_name.getProductCode()+\",'\"+ prod_name.getProductName()+ \"','\" +\n\t \t prod_name.getProductBarcode()+\"','\"+ prod_name.getProductGrammage()+\"',\"+\n\t \t\t Integer.parseInt(prod_name.getProductMRP())+\",\"+ Integer.parseInt(prod_name.getProductBBPrice())+\",\"+\n\t \t Integer.parseInt(prod_name.getProductDivision())+\",\"+Integer.parseInt(prod_name.getProductDepartment())+\n\t \t \",1,\"+ Integer.parseInt(prod_name.getProductBBPrice())+\")\");\n\t \t\t \n\t \t\tToast.makeText(context,\"Item \"+prod_name.getProductName()+\" added to Cart\", Toast.LENGTH_LONG).show();\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t \n\t\t\t\t //product already there in cart\n\t\t\t\t if(cc.moveToFirst())\n\t\t\t\t\t{\n\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\ttempQty=cc.getInt(0);\n\t\t\t\t\t\t\ttempValue = cc.getInt(1);\n\t\t\t\t\t\t}while(cc.moveToNext());\n\t\t\t\t\t}\n\t\t\t\t \n\t\t\t\t if (tempQty < 10)\n\t\t\t\t {\n\t\t\t\t\t sqLite.execSQL(\"UPDATE CART SET PRODUCT_QTY = \"+ (tempQty+1)+\",PRODUCT_VALUE = \"+ \n\t\t\t\t\t(Integer.parseInt(prod_name.getProductBBPrice())+tempValue)+\" WHERE PRODUCT_CODE =\"+\n\t\t\t\t\tprod_name.getProductCode());\n\t\t\t\t\t \n\t\t\t\t\t Toast.makeText(context,\"Item \"+prod_name.getProductName()+\" added to Cart\", Toast.LENGTH_LONG).show();\n\t\t\t\t }\n\t\t\t }\n\n\t\t\t sqLite.close();\n\t \t \n\t }", "@Override\r\n\tpublic int addProduct(ClosedOrder co) {\n\t\tint flag=0;\r\n\t\ttry {\r\n\t\t\tString sql=\"INSERT INTO closedorder VALUES(?,?,?,?,?,?,?,?,?,?)\";\r\n\t\t\tflag= qr.update(sql,co.getClosedorder_id(),co.getClosedorder_name(),co.getClosedorder_payId(),co.getClosedorder_location(),co.getClosedorder_picturename(),co.getClosedorder_price(),co.getClosedorder_count(),co.getClosedorder_closetime(),co.getClosedorderproduct_orderId(),co.getShoppingcart_orderStatus());\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn flag;\r\n\t}" ]
[ "0.73756206", "0.72294635", "0.71982574", "0.71401316", "0.70903194", "0.7057781", "0.7045902", "0.7001395", "0.6955249", "0.6930564", "0.69276166", "0.6923371", "0.6916958", "0.6883205", "0.683428", "0.68241256", "0.68041474", "0.6786956", "0.67645", "0.6728834", "0.67249113", "0.67168105", "0.6694653", "0.6668547", "0.6663881", "0.6637426", "0.6622011", "0.6619822", "0.65981704", "0.65967697", "0.65588325", "0.65568775", "0.65564185", "0.65561897", "0.6540642", "0.65372455", "0.65305096", "0.6524444", "0.6511568", "0.6510511", "0.6502527", "0.6500595", "0.64989954", "0.6498454", "0.64705527", "0.64555883", "0.6451873", "0.64186877", "0.6407287", "0.6404194", "0.6401454", "0.6398107", "0.6386972", "0.63818246", "0.63618964", "0.6360454", "0.6350124", "0.63472074", "0.6341472", "0.63353497", "0.63242924", "0.6305563", "0.63018554", "0.6294282", "0.62820095", "0.6263479", "0.62589407", "0.6251875", "0.62498254", "0.6248869", "0.6241435", "0.6236113", "0.62278116", "0.6220822", "0.6215995", "0.621444", "0.6213207", "0.621148", "0.6205822", "0.62025344", "0.6197611", "0.61869824", "0.6186795", "0.61856246", "0.6180242", "0.61663324", "0.61540556", "0.61524904", "0.61456627", "0.6143816", "0.6137885", "0.6137569", "0.6135751", "0.61350006", "0.61347663", "0.61337656", "0.61265767", "0.61241066", "0.61223453", "0.6117781" ]
0.702992
7
Un accessseur vers le compte
public Compte getCompte() { return compte; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ControleurAcceuil(){ }", "public void acionarInadimplencia(CestaGarantiasDO cesta);", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "private void valider() {\n\n\t\t/**\n\t\t * Renvoie un tableau de caractères qui sera transformé en chaine de caractère\n\t\t **/\n\n\t\tString passewordTraduit = new String(passeword.getPassword());\n\n\t\t/**\n\t\t * login.getText() récupère le contenu de la barre de saisie\n\t\t **/\n\t\t\n\t\tString user = login.getText();\n\t\tString passwd = passewordTraduit;\n\t\t/**\n\t\t *Permettra de savoir si la connexion à la BDD SQL c'est bien passée.\n\t\t */\n\t\tboolean reussite;\n\t\t/**\n\t\t * On va créer la BDD si elle n'existe pas\n\t\t */\n\t\t\n\t\treussite = Initialisation.getInstance().creerBDD(user, passwd);\n\t\t/**\n\t\t * On set le password et l'utilisateur pour que les paramètres de connexion soient les bons\n\t\t */\n\t\tInitialisation.getInstance().setPasswd(passwd);\n\t\tInitialisation.getInstance().setUser(user);\n\t\tModification.getInstance().setPasswd(passwd);\n\t\tModification.getInstance().setUser(user);\n\t\tif(reussite) {\n\t\t\t/**\n\t\t\t *Si tout c'est bien passé on regarde si l'utilisateur existe dans le fichier et dans le cas contraire on le crée.\n\t\t\t */\n\t\t\tif(personnesDejaInscrite.getInstance().getMaListDePersonneInscrite().get(user) == null) {\n\t\t\t\tpersonnesDejaInscrite.getInstance().getMaListDePersonneInscrite().put(user, new CompteAdministrateur(passwd));\n\t\t\t\tpersonnesDejaInscrite.getInstance().sauvegarder();\n\t\t\t}\n\t\t\tFenetreLogin.getInstance().dispose();\n\t\t\tFenetreFond.getInstance().changerFenetre(login.getText());\n\t\t\t/**\n\t\t\t *On remet les champs à nul pour que quand on se déconnecte on est pas le login et le mot de passe de l'utilisateur précédent.\n\t\t\t */\n\t\t\tlogin.setText(\"\");\n\t\t\tpasseword.setText(\"\");\n\t\t}\n\t\n\t}", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "@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 void annuler(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public void Ordenamiento() {\n\n\t}", "public void nouveau(){\r\n try {\r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n echeance_etudiant = new EcoEcheanceEtudiant(); \r\n \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur capturée : \"+e);\r\n }\r\n }", "public void recibeOrden() {\r\n\t\tSystem.out.println(\"Ordene mi General\");\r\n\t}", "public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getUsername());\n txt_nombre_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getNombre() + \" \" + GestorAdministrativo.getInstance().getAdministrativo().getApellido());\n //borrar hasta aca\n }", "void testeAcessos() {\n System.out.println(formaDeFalar);// acessa por herança\n System.out.println(todosSabem);\n }", "public abstract java.lang.String getAcma_cierre();", "void entrerAuGarage();", "private void cargarContrarreferencia() {\r\n\t\tif (admision_seleccionada != null\r\n\t\t\t\t&& !admision_seleccionada.getAtendida()) {\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_CONTRAREFERENCIA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTRAREFERENCIA, parametros);\r\n\t\t}\r\n\r\n\t}", "protected void accionUsuario() {\n\t\t\r\n\t}", "public static void afficherCatalogueComplet() {\r\n Catalogue.afficher();\r\n System.out.println();\r\n }", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public void modifier(){\r\n try {\r\n //affectation des valeur \r\n echeance_etudiant.setIdEcheanceEtu(getViewEtudiantInscripEcheance().getIdEcheanceEtu()); \r\n \r\n echeance_etudiant.setAnneeaca(getViewEtudiantInscripEcheance().getAnneeaca());\r\n echeance_etudiant.setNumetu(getViewEtudiantInscripEcheance().getNumetu());\r\n echeance_etudiant.setMatricule(getViewEtudiantInscripEcheance().getMatricule());\r\n echeance_etudiant.setCodeCycle(getViewEtudiantInscripEcheance().getCodeCycle());\r\n echeance_etudiant.setCodeNiveau(getViewEtudiantInscripEcheance().getCodeNiveau());\r\n echeance_etudiant.setCodeClasse(getViewEtudiantInscripEcheance().getCodeClasse());\r\n echeance_etudiant.setCodeRegime(getViewEtudiantInscripEcheance().getCodeRegime());\r\n echeance_etudiant.setDrtinscri(getViewEtudiantInscripEcheance().getInscriptionAPaye());\r\n echeance_etudiant.setDrtforma(getViewEtudiantInscripEcheance().getFormationAPaye()); \r\n \r\n echeance_etudiant.setVers1(getViewEtudiantInscripEcheance().getVers1());\r\n echeance_etudiant.setVers2(getViewEtudiantInscripEcheance().getVers2());\r\n echeance_etudiant.setVers3(getViewEtudiantInscripEcheance().getVers3());\r\n echeance_etudiant.setVers4(getViewEtudiantInscripEcheance().getVers4());\r\n echeance_etudiant.setVers5(getViewEtudiantInscripEcheance().getVers5());\r\n echeance_etudiant.setVers6(getViewEtudiantInscripEcheance().getVers6()); \r\n \r\n //modification de l'utilisateur\r\n echeance_etudiantFacadeL.edit(echeance_etudiant); \r\n } catch (Exception e) {\r\n System.err.println(\"Erreur de modification capturée : \"+e);\r\n } \r\n }", "private void liberateAroom() {\n\t\tif(this.adminLogin() == 1) {\n\t\t\tSystem.out.println(\"\\n------------------\\n| Bonjour Ibobai |\\n------------------\");\n\t\t\tfor(Chambre chambre : this.getChambres()) {\n\t\t\t\tif(chambre.equals(this.chambresNonVides().get(this.chambresNonVides().size()-1))) {\n\t\t\t\t\tchambre.setReserve(false);\n\t\t\t\t\tSystem.err.println(\"--------------------------------------------------\\nVous avez bien libérée cette chambre:\\n--------------------------------------------------\\n\");\n\t\t\t\t\tSystem.out.println(chambre.toString());\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tSystem.err.println(\"----------------------------\\nVous n'êtes pas un admin! |\\n----------------------------\");\n\t\t}\n\t\t\n\t}", "public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }", "public AAccessLevel() {\n initComponents();\n }", "String getAccess();", "String getAccess();", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "public void asetaTeksti(){\n }", "public DTEdicionCurso mostrarEdicionVigente(String nomCurso) throws CursoExcepcion;", "public void effacerUtilisateur() {\r\n this.modele.effacerUtilisateur(this.modele);\r\n this.modele = new Utilisateurs();\r\n }", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "public void mostrarMenuLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "private void ajoutAffichage(int choix) {\n switch(choix) {\n case AFFICHE_SPOOL :\n ecranSpool.createContents();\n afficheChoix = AFFICHE_SPOOL;\n mntmSpoolUsage.setEnabled(false);\n mntmUser.setEnabled(true);\n mntmConfig.setEnabled(true);\n shell.layout();\n break;\n case AFFICHE_USER :\n ecranUser.createContents();\n afficheChoix = AFFICHE_USER;\n mntmSpoolUsage.setEnabled(true);\n mntmUser.setEnabled(false);\n mntmConfig.setEnabled(true);\n shell.layout();\n break;\n case AFFICHE_CONFIG :\n ecranConfig.createContents();\n afficheChoix = AFFICHE_CONFIG;\n mntmSpoolUsage.setEnabled(true);\n mntmUser.setEnabled(true);\n mntmConfig.setEnabled(false);\n shell.layout();\n break;\n default: break;\n }\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\tJSpinner spinnerQuantite = panelCde.getPanelMajCde()\n\t\t\t\t\t\t.getSpinnerQuantite();\n\t\t\t\t// recuperation de la valeur dans le combo\n\t\t\t\t// reference\n\t\t\t\t// panelCde.getPanelMajCde().getComboReference();\n\t\t\t\tJComboBox comboref = panelCde.getPanelMajCde().getComboReference();\n\t\t\t\t// recuperation de la ligne selectionée dans\n\t\t\t\t// le tableau de la cde\n\t\t\t\trowCde = panelCde.getPanelTableCde().getTable().getSelectedRow();\n\t\t\t\t// initialisation de la valeur du combo\n\t\t\t\t// quantite par rapport\n\t\t\t\t// à la quantité de la ligne selectionnées\n\t\t\t\tspinnerQuantite.setValue(GetCdeTableModel().getValueAt(rowCde, 2));\n\t\t\t\t// recuperation de la reference a la ligne\n\t\t\t\t// selectionnées dans le tableau de la cde\n\t\t\t\tString refint = (String) GetCdeTableModel().getValueAt(rowCde, 1);\n\n\t\t\t\tArticle art;\n\n\t\t\t\t// on parcourt la liste dans le comboref et on\n\t\t\t\t// compare ce qui est ecrit dans le tableau\n\t\t\t\t// avec ce qui est ecrit dans la liste et on\n\t\t\t\t// affiche dans le combo la bonne reference.\n\t\t\t\tfor (int i = 0; i < comboref.getItemCount(); i++) {\n\t\t\t\t\tart = (Article) comboref.getItemAt(i);\n\t\t\t\t\tif (art.getIntitule().equals(refint)) {\n\t\t\t\t\t\tcomboref.setSelectedIndex(i);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}", "public String desactivarEditarLicencia() {\r\n\r\n this.bandMod = true;\r\n if (puntAnt.compareTo(\"2\") == 0) {\r\n this.activeTabIndex = Constantes.TAB_BUSQUEDA;\r\n } else {\r\n\r\n if (puntAnt.compareTo(\"1\") == 0) {\r\n\r\n this.activeTabIndex = Constantes.TAB_MODIFICAR;\r\n \r\n }\r\n }\r\n\r\n Mensaje.guardarMensajeExito(\"Cancelar, Editar Licencia !!!\", \"Licencias\");\r\n\r\n return null;\r\n }", "public String getAccess();", "Activite getActiviteCourante();", "public void modifica(DTOAcreditacionGafetes acreGafete) throws Exception ;", "private void jTabPane_AccueilMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTabPane_AccueilMouseClicked\n if(numOnglet() == 0 ){\n // On cache le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(false);\n if(jTable_Clients.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n }\n else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n }\n }else{\n if(jTable_Prospects.getRowCount() == 0){\n jBtn_Modifier.setVisible(false);\n jBtn_Supprimer.setVisible(false);\n jBtn_ProspectToClient.setVisible(false);\n }else{\n jBtn_Modifier.setVisible(true);\n jBtn_Supprimer.setVisible(true);\n // On fait apparaitre le bouton qui lance la procedure Prospect vers Client\n jBtn_ProspectToClient.setVisible(true);\n }\n }\n }", "public void supprimerInaccessibles(){\n grammaireCleaner.nettoyNonAccGramm();\n setChanged();\n notifyObservers(\"3\");\n }", "public Cotisant visite(Contributeur c){ \n int somme = this.state.get(c); \n c.affecterSolde(somme); \n return c ; \n }", "void usada() {\n mazo.habilitarCartaEspecial(this);\n }", "private UsineJoueur() {}", "public void verSeleccionarAccion(String entidad)\r\n\t{\r\n\t\tseleccionaraccion = new SeleccionarAccion(this, entidad);\r\n\t\tseleccionaraccion.setVisible(true);\r\n\t}", "private void sceltapannelli(String utilizzatore){\n\n if(utilizzatore.equals(\"Registrazione\")){\n\n sez_managerview.setSezA(new Sez_AView().getIntermedio0());\n sez_managerview.setSezB(new Sez_BView().getIntermedio0());\n sez_managerview.setSezC(new Sez_CView().getIntermedio0());\n\n }\n\n }", "private void abrirVentanaChatPrivada() {\n\t\tthis.chatPublico = new MenuVentanaChat(\"Sala\", this, false);\n\t}", "private void suono(int idGioc) {\n\t\tpartita.effettoCasella(idGioc);\n\t}", "private void studenti(reusablemenu.sample.Student curent) {\n\t\t\r\n\t}", "void courir();", "private void remplirUtiliseData() {\n\t}", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "public void setAccession(String accession) {\n this.accession = accession;\n }", "public void setAccession(String accession) {\n this.accession = accession;\n }", "public void rechercheEtudiantInscripEcheanceParMatricule(){\r\n try { \r\n setViewEtudiantInscripEcheance(viewEtudiantInscripEcheanceFacadeL.findByMatricule(getViewEtudiantInscripEcheance().getMatricule())); \r\n \r\n //initialisation des echeances\r\n// viewEtudiantInscripEcheance.setVers1(0); \r\n// viewEtudiantInscripEcheance.setVers2(0); \r\n// viewEtudiantInscripEcheance.setVers3(0); \r\n// viewEtudiantInscripEcheance.setVers4(0); \r\n// viewEtudiantInscripEcheance.setVers5(0); \r\n// viewEtudiantInscripEcheance.setVers6(0); \r\n } catch (Exception e) {\r\n FacesMessage message = new FacesMessage(\"Accun étudiant n'a été trouvé! \");\r\n message.setSeverity(FacesMessage.SEVERITY_WARN);\r\n FacesContext.getCurrentInstance().addMessage(null, message); \r\n \r\n viewEtudiantInscripEcheance = new ViewEtudiantInscriptionEcheance();\r\n } \r\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 }", "public CarteCaisseCommunaute() {\n super();\n }", "public void comprobarEficaciaAccion() throws IOException{\n if((fVerif.SetVerificacionEficaciaAccion(FechaComprobacionEficacia, ObservacionesEficacia, ComprobacionSeleccionadaEficacia, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_eficacia\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar eficacia\", \"No se pudo comprobar eficacia\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public void mouseClicked(MouseEvent e) {\n\t\t if (jtableAulas.getSelectedRow() != -1) {\n\t\t valor = (String) modelo.getValueAt(jtableAulas.getSelectedRow(), 0);\n\t\t eleccion = jtableAulas.getSelectedRow();\n\t\t btnModificarUsuario.setEnabled(true);\n\t\t \n\t\t } \n\t\t\t\t\n\t\t\t}", "public void actualiserAffichage();", "protected Asignatura()\r\n\t{}", "public void setAuteur(String auteur) {\n this.auteur = auteur;\n }", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "@Override\r\n public String toString() {\r\n return \"(\" + idn + \",\" + this.n + \")\"; //il y avait un rpobleme avec id -> me disait que acces privé dans noeud\r\n }", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "@Override\n\tpublic int sacameVida(ElementoSoldado a) {\n\t\treturn 0;\n\t}", "void salirDelMazo() {\n mazo.inhabilitarCartaEspecial(this);\n }", "private DittaAutonoleggio(){\n \n }", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "public void mostrarLectura(TomarLectura tomarLectura, Lectura lecturaActual);", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public Stupide(Plateau p,String nom) {\r\n\t\tsuper(p,nom);\r\n\t\tcapaciteMemoire = 0;\r\n\t}", "public void modificarCompraComic();", "public void MieiOrdini()\r\n {\r\n getOrdini();\r\n\r\n }", "@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 boolean abilitaNuovoAccertamento(){\n\t\t\n\t\tif(isAzioneAbilitata(CodiciOperazioni.OP_ENT_insAcc)){\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public String getAccession() {\n return accession;\n }", "private void mostrarEmenta (){\n }", "@Override\n\tpublic void transmetDonnee() {\n\n\t}", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void asignarVida();", "public CtrlEditGrupos() {\n edEsc = EditEscenario.getInstance();\n try {\n cd = CtrlDomain.getInstance();\n } catch (Exception e) {\n System.out.println(\"ERROR EN LA CARGA DEL CONTROLADOR DE DOMINIO\");\n }\n planEstudiosFinal = edEsc.getPlanEstudiosFinal();\n asignaturasFinal = edEsc.getAsignaturasFinal();\n restriccionesFinal = edEsc.getRestriccionesFinal();\n }", "public ApercuEnseignantsAssignesFrame(String nomClasse, boolean retrait) {\n initComponents();\n setTitle(\"Aperçu des enseignants\");\n setVisible(true);\n setLocationRelativeTo(null);\n\n enseignantsAssignes = new AffectationEnseignants();\n responsable = new Responsable();\n this.nomClasse = nomClasse;\n jLabel1.setText(nomClasse);\n \n enseignantsAssignes.afficherEnseignantsAssignes(jTable1, nomClasse);\n if(retrait)\n jButton1.setEnabled(true);\n }", "Reserva Obtener();", "public String editar()\r\n/* 59: */ {\r\n/* 60: 74 */ if ((getMotivoLlamadoAtencion() != null) && (getMotivoLlamadoAtencion().getIdMotivoLlamadoAtencion() != 0)) {\r\n/* 61: 75 */ setEditado(true);\r\n/* 62: */ } else {\r\n/* 63: 77 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_seleccionar\"));\r\n/* 64: */ }\r\n/* 65: 79 */ return \"\";\r\n/* 66: */ }", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\tString numCde = panelCde.getPanelInfosCde().getEtNumCde().getText()\n\t\t\t\t\t\t\t\t.toString();\n\t\t\t\t\t\t// convertion du numero de commande en integer\n\t\t\t\t\t\tint i = Integer.parseInt(numCde);\n\t\t\t\t\t\t// recuperation du statut choisi\n\n\t\t\t\t\t\tArticle ref = new Article();\n\t\t\t\t\t\t// recuperation de la reference choisie dans\n\t\t\t\t\t\t// le combo ref\n\t\t\t\t\t\tref = (Article) panelCde.getPanelMajCde().getComboReference()\n\t\t\t\t\t\t\t\t.getSelectedItem();\n\t\t\t\t\t\tString refer = ref.getReference();\n\n\t\t\t\t\t\t// recuperation de la quantité dans le spinner\n\t\t\t\t\t\t// quantite\n\t\t\t\t\t\tint quantite = (int) panelCde.getPanelMajCde().getSpinnerQuantite()\n\t\t\t\t\t\t\t\t.getValue();\n\t\t\t\t\t\t// recuperation de la reference à la ligne\n\t\t\t\t\t\t// Selectionée dans le tableau cde et de sa\n\t\t\t\t\t\t// valeur (reference)\n\n\t\t\t\t\t\tint rowCde = panelCde.getPanelTableCde().getTable()\n\t\t\t\t\t\t\t\t.getSelectedRow();\n\t\t\t\t\t\tif (rowCde < 0) {\n\t\t\t\t\t\t\tjavax.swing.JOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\t\"Veuillez choisir une ligne à modifier\");\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tString oldRef = (String) GetCdeTableModel().getValueAt(rowCde, 0);\n\t\t\t\t\t\t\t// initialisation de la quantité pour etre\n\t\t\t\t\t\t\t// entrée dans la base de données\n\t\t\t\t\t\t\tArticleCde art = new ArticleCde();\n\t\t\t\t\t\t\tart.setQuantite(quantite);\n\n\t\t\t\t\t\t\ttry {\n\n\t\t\t\t\t\t\t\tif (checkMinimum(refer, quantite)) {\n\t\t\t\t\t\t\t\t\t// appel de la methode qui met à jour la\n\t\t\t\t\t\t\t\t\t// commande\n\t\t\t\t\t\t\t\t\tgestion.updateCommande(i, refer, oldRef, quantite);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t// rechargement du panel cde\n\t\t\t\t\t\t\tchangePanel(panelCde);\n\t\t\t\t\t\t\tGetCdeTableModel().clearCde();\n\n\t\t\t\t\t\t\tCommande cde1;\n\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t// rechargement du tableau cde\n\t\t\t\t\t\t\t\tcde1 = gestion.getCde(i);\n\t\t\t\t\t\t\t\tarticlesCdes = cde1.getArticlesCde();\n\t\t\t\t\t\t\t\tif (!articlesCdes.isEmpty()) {\n\t\t\t\t\t\t\t\t\tfor (ArticleCde articlecde : articlesCdes) {\n\t\t\t\t\t\t\t\t\t\tGetCdeTableModel().addRowCde(articlecde);\n\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\tcontentPane.repaint();\n\t\t\t\t\t\t\t\t\tcontentPane.revalidate();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} catch (Exception e) {\n\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\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 VistaDenunciaA() {\n initComponents();\n listaDenuncias=new LinkedList<>();\n mostrarDenuncias1();\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "public abstract void setAcma_cierre(java.lang.String newAcma_cierre);", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "private void procedureBasePrDessin(){\n if(courante == null){\n reset();\n courante = new Tortue(simpleLogo.getFeuille(), true);\n simpleLogo.setBarreOutilsVisible(true);\n }\n }", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public void avvia() {\n /* variabili e costanti locali di lavoro */\n\n try { // prova ad eseguire il codice\n getModuloRisultati().avvia();\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n super.avvia();\n\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void placerBateauSurVue() {\n\t\tint compteur = 1;\n\t\tif (partie.verifierSiPoseBateauPossible()) {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, true);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i : partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()].getCaseOnId()) {\n\t\t\t\tif (i != -1)\n\t\t\t\t\tvue.setfield(i, partie.getJoueur().getBateau()[partie.getJoueur().getIndiceBateauEnCours()]\n\t\t\t\t\t\t\t.getImageDirectoryFinal(), compteur, false);\n\n\t\t\t\tcompteur++;\n\t\t\t}\n\t\t}\n\t}", "private static void modifVecteurTrans(int valeur) {\r\n\t\tif (valeur == REFEXT || desc.getUnite().equals(\"module\")) {\r\n\t\t\tpo.vecteurTrans(valeur);\r\n\t\t\tdesc.incrNbTansExt();\r\n\t\t}\r\n\t}", "public void afficher (UneCommande22<Integer> cde){ //POURQUOI CETTE MÉTHODE EST STATIQUE??? LA DEPLACER PE DANS COMMANDE\n\t\t\t\tif(cde.taille()==0) {ClientJava1DateUser.affiche(\"\\n\\t\\t COMMANDE EST VIDE\");\n\t\t\t\t}\n\t\t\t\telse {ClientJava1DateUser.affiche(cde.toString());}\t\n\t\t\t}", "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 tela_GerencLogin() {\n initComponents();\n lb_NomeLogin.setText(Sessao.getLogin());\n lb_Id.setText(Integer.toString(Sessao.getId()));\n \n }", "@Override\r\n public void onClick(View v) {\n comunicadorRutinas.irADetalle(rutina.getListaEjsCalentamiento(), rutina.getListaEjercicios(), rutina.getListaEjesEstiramiento());\r\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "protected void pokazOblicz() {\n if (czyImie && czyNazwisko && czyLiczby)\n oblicz.setVisibility(Button.VISIBLE);\n\n else\n oblicz.setVisibility(Button.INVISIBLE);\n }" ]
[ "0.6413222", "0.6266325", "0.60420793", "0.603071", "0.602124", "0.60177046", "0.59984565", "0.59448236", "0.59437126", "0.58556336", "0.5849107", "0.5830004", "0.58086187", "0.5798536", "0.5796861", "0.5793079", "0.5778917", "0.5769458", "0.57663435", "0.575193", "0.5745968", "0.5728708", "0.5722229", "0.5722229", "0.56846815", "0.5683372", "0.56650513", "0.5659847", "0.56592536", "0.56577164", "0.5652555", "0.56411016", "0.563718", "0.56316364", "0.56278765", "0.5625753", "0.56244123", "0.56186527", "0.5617735", "0.5616675", "0.5611476", "0.5608011", "0.56025934", "0.55889285", "0.5588642", "0.55871373", "0.5586803", "0.5583953", "0.5582278", "0.55622315", "0.55622315", "0.5559554", "0.55549204", "0.5553817", "0.55537325", "0.55530745", "0.5549011", "0.5546918", "0.5546468", "0.55422086", "0.5541303", "0.5536719", "0.55364865", "0.55296737", "0.55272657", "0.552655", "0.55245537", "0.5517833", "0.55147004", "0.55142564", "0.55088377", "0.55070466", "0.550506", "0.5503369", "0.5495778", "0.54948497", "0.54938114", "0.54798734", "0.54796314", "0.5478405", "0.54766494", "0.54765964", "0.5474501", "0.5469688", "0.5468109", "0.54677814", "0.54673654", "0.54659677", "0.5465579", "0.54560083", "0.5454149", "0.54539406", "0.5452307", "0.5447098", "0.5446832", "0.54444975", "0.54440606", "0.54428846", "0.5440697", "0.54363614", "0.5434315" ]
0.0
-1
Un accesseur vers le montant
public double getMontant() { return montant; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void calculerAire() {\r\n\t\taire = Math.PI * rayonV * rayonH;\r\n\t\t\r\n\t}", "@Override\n public void cantidad_Ataque(){\n ataque=5+2*nivel+aumentoT;\n }", "public void aumentarAciertos() {\r\n this.aciertos += 1;\r\n this.intentos += 1; \r\n }", "public static void atacar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int ataqueJugador;\n //acciones de la funcion atacar sobre vida del enemigo\n aleatorio = (numeroAleatorio.nextInt(20-10+1)+10);\n ataqueJugador= ((nivel+1)*10)+aleatorio;\n puntosDeVidaEnemigo= puntosDeVidaEnemigo-ataqueJugador;\n \n }", "void establecerPuntoAM(int pos){\n this.emisoraAMActual = pos;\n }", "public static void aceleracion(int distancia) {\n\t\t\n\t\tDifferentialPilot pilot = new DifferentialPilot(9.5, 3, Motor.A, Motor.B, true); \n\t\tpilot.travel(distancia);\n\t}", "public void acionarInadimplencia(CestaGarantiasDO cesta);", "public int fondMagasin(){\n\tint total =this.jeton;\n\tfor(Caisse c1 : this.lesCaisses){\n\ttotal = c1.getTotal()+total;\n\t}\n\treturn total;\n}", "private void comerFantasma(Fantasma fantasma) {\n // TODO implement here\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "public void ajouterMontant( double montant){\r\n\t\tthis.solde += montant;\r\n\t}", "public double getCustoAluguel(){\n return 2 * cilindradas;\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 anterior() {\n canalAtual--;\n televisao.mudarCanal(canalAtual);\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "public void addCredito(double montante) {\r\n\t\tcredito += montante;\r\n\t}", "public void acelera(double aceleracion){\n\t\tsuVelocidad += aceleracion;\n\t}", "@Override\r\n\tpublic double getSalaire() {\n\t\treturn nbJoursTravailles*montantJournalier;\r\n\t}", "public Maquina() {\n savia = 0;\n reflejosLagrimas = 0;\n estado = false;\n }", "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}", "public int usaAtaque() {\n\t\treturn dano;\n\t}", "public void sumar() {\n Acumula.acumulador++;\n }", "private static void cajas() {\n\t\t\n\t}", "public void llenarCafetera() {\n\t\tthis.setCantidadActual(this.get_capacidadMaxima());\n\t}", "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 void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void comportement() {\n\t\tif (compteurPas > 0) {\n seDeplacer(deplacementEnCours);\n compteurPas--;\n\n // sinon charge le prochain deplacement\n\t\t} else {\n\t\t // recalcul le chemin si la cible a bouge\n boolean cibleBouger = calculPosCible();\n if (cibleBouger)\n calculerChemin();\n\n if (suiteDeDeplacement.size() > 0) {\n deplacementEnCours = suiteDeDeplacement.pollFirst();\n compteurPas = Case.TAILLE / vitesse;\n // pour le sprite\n if (deplacementEnCours == 'E')\n direction = true;\n else if (deplacementEnCours == 'O')\n direction = false;\n }\n }\n\t\tattaque = attaquer();\n\t}", "public void calculoPersonal(){\n ayudantes = getAyudantesNecesarios();\n responsables = getResponsablesNecesarios();\n \n //Calculo atencion al cliente (30% total trabajadores) y RRPP (10% total trabajadores):\n \n int total = ayudantes + responsables;\n \n atencion_al_cliente = (total * 30) / 100;\n \n RRPP = (total * 10) / 100;\n \n //Creamos los trabajadores\n \n gestor_trabajadores.crearTrabajadores(RRPP, ayudantes,responsables,atencion_al_cliente);\n \n }", "public void sacarPaseo(){\r\n\t\t\tSystem.out.println(\"Por las tardes me saca de paseo mi dueño\");\r\n\t\t\t\r\n\t\t}", "private static void statACricri() {\n \tSession session = new Session();\n \tNSTimestamp dateRef = session.debutAnnee();\n \tNSArray listAffAnn = EOAffectationAnnuelle.findAffectationsAnnuelleInContext(session.ec(), null, null, dateRef);\n \tLRLog.log(\">> listAffAnn=\"+listAffAnn.count() + \" au \" + DateCtrlConges.dateToString(dateRef));\n \tlistAffAnn = LRSort.sortedArray(listAffAnn, \n \t\t\tEOAffectationAnnuelle.INDIVIDU_KEY + \".\" + EOIndividu.NOM_KEY);\n \t\n \tEOEditingContext ec = new EOEditingContext();\n \tCngUserInfo ui = new CngUserInfo(new CngDroitBus(ec), new CngPreferenceBus(ec), ec, new Integer(3065));\n \tStringBuffer sb = new StringBuffer();\n \tsb.append(\"service\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"agent\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"contractuel\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"travaillees\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"conges\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"dues\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \tsb.append(\"restant\");\n \tsb.append(ConstsPrint.CSV_NEW_LINE);\n \t\n \n \tfor (int i = 0; i < listAffAnn.count(); i++) {\n \t\tEOAffectationAnnuelle itemAffAnn = (EOAffectationAnnuelle) listAffAnn.objectAtIndex(i);\n \t\t//\n \t\tEOEditingContext edc = new EOEditingContext();\n \t\t//\n \t\tNSArray array = EOAffectationAnnuelle.findSortedAffectationsAnnuellesForOidsInContext(\n \t\t\t\tedc, new NSArray(itemAffAnn.oid()));\n \t\t// charger le planning pour forcer le calcul\n \t\tPlanning p = Planning.newPlanning((EOAffectationAnnuelle) array.objectAtIndex(0), ui, dateRef);\n \t\t// quel les contractuels\n \t\t//if (p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())) {\n \t\ttry {p.setType(\"R\");\n \t\tEOCalculAffectationAnnuelle calcul = p.affectationAnnuelle().calculAffAnn(\"R\");\n \t\tint minutesTravaillees3112 = calcul.minutesTravaillees3112().intValue();\n \t\tint minutesConges3112 = calcul.minutesConges3112().intValue();\n \t\t\n \t\t// calcul des minutes dues\n \t\tint minutesDues3112 = /*0*/ 514*60;\n \t\t/*\tNSArray periodes = p.affectationAnnuelle().periodes();\n \t\tfor (int j=0; j<periodes.count(); j++) {\n \t\t\tEOPeriodeAffectationAnnuelle periode = (EOPeriodeAffectationAnnuelle) periodes.objectAtIndex(j);\n \t\tminutesDues3112 += periode.valeurPonderee(p.affectationAnnuelle().minutesDues(), septembre01, decembre31);\n \t\t}*/\n \t\tsb.append(p.affectationAnnuelle().structure().libelleCourt()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().nomComplet()).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(p.affectationAnnuelle().individu().isContractuel(p.affectationAnnuelle())?\"O\":\"N\").append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesConges3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesDues3112)).append(ConstsPrint.CSV_COLUMN_SEPARATOR);\n \t\tsb.append(TimeCtrl.stringForMinutes(minutesTravaillees3112 - minutesConges3112 - minutesDues3112)).append(ConstsPrint.CSV_NEW_LINE);\n \t\tLRLog.log((i+1)+\"/\"+listAffAnn.count() + \" (\" + p.affectationAnnuelle().individu().nomComplet() + \")\");\n \t\t} catch (Throwable e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t\tedc.dispose();\n \t\t//}\n \t}\n \t\n\t\tString fileName = \"/tmp/stat_000_\"+listAffAnn.count()+\".csv\";\n \ttry {\n\t\t\tBufferedWriter fichier = new BufferedWriter(new FileWriter(fileName));\n\t\t\tfichier.write(sb.toString());\n\t\t\tfichier.close();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tLRLog.log(\"writing \" + fileName);\n\t\t}\n }", "public Ej_varclase1() {\n\t\t//contador++; \n\t\tcontador = contador + 1;\n\t\t\n\t}", "public void hallarPerimetroEscaleno() {\r\n this.perimetro = this.ladoA+this.ladoB+this.ladoC;\r\n }", "public void montarArma(ArmaDeAsedio arma) {\n this.esUnidadPropia(arma);\n arma.montarArma();\n }", "public void gastarDinero(double cantidad){\r\n\t\t\r\n\t}", "@Override\r\n public void hallarPerimetro() {\r\n this.perimetro = this.ladoA*3;\r\n }", "public void cumplirAños(){\n this.setEdad(((byte)(this.getEdad()+1)));\n }", "public void nourrir() {\n if (!autoriseOperation()) {\n return;\n }\n\n incrFaim(-2);\n incrPoids(1);\n incrHumeur(1);\n incrXp(1);\n\n System.out.println(tamagoStats.getXp());\n setChanged();\n notifyObservers();\n\n }", "@Override\n\tpublic void acelerar() {\n\t\t// TODO Auto-generated method stub\n\t\t\t\tvelocidadActual += 40;\n\t\t\t\tif(velocidadActual>250) {\n\t\t\t\t\tvelocidadActual = 250;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdepositoActual -= 10;\n\t\t\t\tSystem.out.println(\"Velocidad del ferrari: \"+velocidadActual);\n\t}", "public void niveauSuivant() {\n niveau = niveau.suivant();\n }", "@Override\r\n\tpublic float chekearDatos(){\r\n\t\t\r\n\t\tfloat monto = 0f;\r\n\t\tfloat montoPorMes = creditoSolicitado/plazoEnMeses;\r\n\t\tdouble porcentajeDeSusIngesosMensuales = (cliente.getIngresosMensuales()*0.7);\r\n\t\t\r\n\t\tif(cliente.getIngresoAnual()>=15000f && montoPorMes<=porcentajeDeSusIngesosMensuales){\r\n\t\t\t\r\n\t\t\tmonto = this.creditoSolicitado;\r\n\t\t\tsetEstadoDeSolicitud(true);\r\n\t\t}\t\r\n\t\t\r\n\t\t\r\n\t\treturn monto;\r\n\t}", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "private void afficheSuiv(){\n\t\ttry{ // Essayer ceci\n\t\t\tif(numCourant <= rep.taille()){\n\t\t\t\tnumCourant ++;\n\t\t\t\tPersonne e = rep.recherchePersonne(numCourant); // Rechercher la personne en fonction du numCourant\n\t\t\t\tafficherPersonne(e);\n\t\t\t}else{\n\t\t\t\tafficherMessageErreur();\n\t\t\t}\n\t\t}catch(Exception e){ // Permet de voir s'il y a cette exception\n\t\t\tafficherMessageErreur();\n\t\t\tnumCourant --;\n\t\t}\n\t}", "public void VaciarPila()\n {\n this.tope = 0;\n }", "public Summalista()\r\n\t{\r\n\t\tthis.summa = 0;\r\n\t\tthis.alkiot = 0;\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 double calculoCuotaEspecialOrdinario() {\n\tdouble resultado =0;\n\tresultado = (getMontoCredito()+(getMontoCredito()*getInteres()/100))/getPlazo(); \n\treturn resultado;\n}", "public void distribuirAportes2(){\n\n if(comprobanteSeleccionado.getAporteorganismo().floatValue() > 0f){\n comprobanteSeleccionado.setAportecomitente(comprobanteSeleccionado.getMontoaprobado().subtract(comprobanteSeleccionado.getAporteuniversidad().add(comprobanteSeleccionado.getAporteorganismo())));\n }\n }", "@Override\n\tpublic double calculaImc() {\n\t\t imc = peso / (altura * altura);\n\t\treturn imc;\n\t}", "public void zeraEmpates() {\r\n contaEmpates = 0;\r\n }", "public int choixAttaque(Caracter monstre, Caracter player){\n Inventory inventaire = monstre.getInventory();\n Weapon armeSecondaire = inventaire.getSecondWeapon();\n Weapon armePrincipale = inventaire.getMainWeapon();\n Spell conso = inventaire.getSpell();\n \n if (armeSecondaire == null)\n {\n return 1;\n }\n else if(armeSecondaire != null)\n {\n if(armePrincipale.dmin + armePrincipale.dmax > armeSecondaire.dmin + armeSecondaire.dmax){\n return 1;\n }\n else{\n return 2;\n }\n }\n \n return 1;\n }", "private ControleurAcceuil(){ }", "EcirdelAubrac(Machecoulais machecoulais) {\n super(1);\n this.f16565a = machecoulais;\n }", "public Scacchiera()\n {\n contenutoCaselle = new int[DIM_LATO][DIM_LATO];\n statoIniziale();\n }", "public void act() \n {\n if(getY()>=30 && !cambia)\n {\n direccion = -1;\n }\n else\n {\n cambia = true;\n }\n if(getY() <= getWorld().getHeight()-30 && cambia)\n {\n direccion = 1;\n }\n else\n {\n cambia = false;\n }\n \n setLocation(getX(),getY()+(velocidad*direccion));\n reglas();\n ataque();\n \n \n \n }", "public int getAantalCalimiteiten()\n\t{\n\t\treturn _AantalCalimiteiten;\n\t}", "@Override\r\n public void moverAyuda() {\n System.out.println(\"La reina puede mover hacia cualquier dirección en linea recta / diagonal\");\r\n }", "@Override\n public void calcularIntGanado() {\n intGanado = saldo;\n for(int i = 0; i < plazoInv; i++){\n intGanado += inve * 12;\n intGanado += intGanado * (intAnual / 100);\n }\n intGanado = intGanado - (inve + saldo);\n }", "@Override\n public void cantidad_Punteria(){\n punteria=69.5+05*nivel+aumentoP;\n }", "public Automato(TabelaDeTransicao _tabela) {\n tabela = _tabela;\n estadosDeterminizados = (Vector) _tabela.getEstados().clone();\n }", "public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }", "public void aggiungiPecoraCasualmente() {\n\t\tif (((int) (Math.random() * 3)) >= 1) {\n\t\t\tPecoraAdulta nuovaPecoraAdulta = new PecoraAdulta();\n\t\t\tpecore.add(nuovaPecoraAdulta);\n\t\t\tif (nuovaPecoraAdulta.isMaschio())\n\t\t\t\tnumMontoni++;\n\t\t\telse\n\t\t\t\tnumPecoreFemmine++;\n\t\t} else {\n\t\t\tpecore.add(new Agnello());\n\t\t\tnumeroAgelli++;\n\t\t}\n\t}", "public void hallarPerimetroIsosceles() {\r\n this.perimetro = 2*(this.ladoA+this.ladoB);\r\n }", "public void simulerCreditConso(Client client, float emprunt, int nbMois) {\n\t\tSystem.out.println(\"Proposition de credit consommation : \");\n\t\tCredit creditconso = new Credit(emprunt, nbMois);\n\t\tcreditconso.CreditConso(emprunt, nbMois);\n\t\t\n\t\t\n\t}", "private boolean procesoComer(int a, int b)\n {\n ArrayList<Integer> muertes;\n muertes = animales.get(a).get(b).come();\n if (muertes.get(0) > krill) {\n krill = 0;\n return false;\n } else {\n krill -= muertes.get(0);\n }\n for (int i = 1; i < muertes.size(); i++) {\n for (int j = 0; j < muertes.get(i); j++) {\n if (animales.get(i).size() > 0) {\n animales.get(i).get(0).destruir(); //Reduce en 1 la cantidad\n animales.get(i).remove(0);\n } else {\n return false;\n }\n }\n }\n return true;\n }", "public void calcularQuinA(){\n sueldoQuinAd = sueldoMensual /2;\n\n }", "Activite getActiviteCourante();", "public static void main(String[] arhg) {\n\n Conta p1 = new Conta();\n p1.setNumConta(1515);\n p1.abrirConta(\"cp\");\n p1.setDono(\"wesley\");\n p1.deposita(500);\n // p1.saca(700); -> irá gera um erro pois o valor de saque especificado é superior ao valor que tem na conta\n\n p1.estadoAtual();\n }", "@Override\n public void cantidad_Defensa(){\n defensa=2+nivel+aumentoD;\n }", "private Pares(){\n\t\t\tprimero=null;\n\t\t\tsegundo=null;\n\t\t\tdistancia=0;\n\t\t}", "public Moto(float cilindrada,String _patente, int _cantRuedas)\n {\n super(_patente, _cantRuedas, eMarca.ZANELLA);\n this._cilindrada=cilindrada;\n }", "private void calcularDistanciaRecorrer(){\r\n\t\tfloat diferenciax = siguientePunto.x - posicion.x;\r\n\t\tfloat diferenciay = siguientePunto.y - posicion.y;\r\n\t\tdistanciaRecorrer = (float) Math.sqrt(diferenciax*diferenciax+diferenciay*diferenciay);\r\n\t}", "public int precioFinal(){\r\n int monto=super.PrecioFinal();\r\n\t \t \r\n\t if (pulgadas>40){\r\n\t monto+=precioBase*0.3;\r\n\t }\r\n\t if (sintonizador){\r\n\t monto+=50;\r\n\t }\r\n\t \r\n\t return monto;\r\n\t }", "public Transferencia(double monto, int plazo, int frecuencia) {\r\n\t\tsuper(monto);\r\n\t\tthis.plazo = plazo;\r\n\t\tthis.frecuencia = frecuencia;\r\n\t}", "void evoluer()\n {\n int taille = grille.length;\n int nbVivantes = 0;\n for(int i=-1; i<2; i++)\n {\n int xx = ((x+i)+taille)%taille; // si x+i=-1, xx=taille-1. si x+i=taille, xx=0\n for(int j=-1; j<2; j++)\n {\n if (i==0 && j==0) continue;\n int yy = ((y+j)+taille)%taille;\n if (grille[xx][yy].vivante) nbVivantes++;\n }\n }\n if (nbVivantes<=1 || nbVivantes>=4) {vientDeChanger = (vivante==true); vivante = false;}\n if (nbVivantes==3) {vientDeChanger = (vivante==false); vivante = true;}\n }", "@Override\r\n public void combattre(Creature c) {\r\n System.out.println(\"Tour de combat de \" + getNom() + \" :\");\r\n if (this.getPtMana() > 0) {\r\n this.setPtMana(this.getPtMana() - 1);\r\n Random rand = new Random();\r\n int success = rand.nextInt(100), distance;\r\n distance = this.getPos().distance(c.getPos());\r\n if (distance <= this.getDistAttMax()) {//On vérifie que l'on peut toucher l'adversaire\r\n if (success < this.getPourcentageMag()) { // L'attaque réussie\r\n c.setPtVie(c.getPtVie() - this.getDegAtt()); //on inflige des dégats à l'adversaire.\r\n System.out.println(\"Attaque réussie de \" + getNom() + \" : \" + this.getDegAtt() + \" dégats infligés.\");\r\n } else {\r\n System.out.println(\"Dans le vide!\");\r\n }\r\n } else {\r\n System.out.println(\"Trop loin.\");\r\n }\r\n } else {\r\n System.out.println(\"Oups... plus de mana.\");\r\n }\r\n }", "public void creditar(int valor){\r\n this.contaCorrente.creditar(valor);\r\n }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "@Override public int conocerMonto(){\n\treturn 120;\n }", "@Override public void realizarCobro(Persona persona){\n\tpersona.cuenta.retiro(120);\n }", "@Override\n\tpublic int sacameVida(ElementoPiedra a) {\n\t\treturn 20;\n\t}", "public logicaEnemigos(){\n\t\t//le damos una velocidad inicial al enemigo\n\t\tsuVelocidad = 50;\n\t\tsuDireccionActual = 0.0;\n\t\tposX = 500 ;\n\t\tposY = 10;\n\t}", "@Override\r\n\tpublic double obliczCenePoRabacie(double cena){\n\t\tcena = cena - kwotaRabatu;\r\n\t\treturn cena;\r\n\t\t\r\n\t}", "public void venceuRodada () {\n this.pontuacaoPartida++;\n }", "public void recarga(){\n \tthis.fuerza *= 1.1;\n \tthis.vitalidad *= 1.1; \n }", "public void calcularIndicePlasticidad(){\r\n\t\tindicePlasticidad = limiteLiquido - limitePlastico;\r\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 void simulerCreditImmo(Client client, float emprunt, int nbMois) {\n\t\tSystem.out.println(\"Proposition de credit immobilier : \");\n\t\tCredit creditimmo = new Credit(emprunt, nbMois);\n\t\tcreditimmo.CreditImmo(emprunt, nbMois);\n\t}", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "public boolean retirer(float montant) {\r\n\t\t\tboolean etat = false;\r\n\t\t\t\r\n\t\t\t// on ne retire le montant que si le solde reste positif ou nul\r\n\t\t\tif ((this.solde - montant) >= 0) {\r\n\t\t\t\tthis.solde=this.solde-montant;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"Solde insuffisant !!!!!!\");\r\n\t\t\t\tetat=false;\r\n\t\t\t}\r\n\t\t\t// affichage du nouveau solde apr�s retrait ou pas\r\n\t\t\tthis.afficheSolde();\r\n\t\t\treturn etat;\r\n\t\t}", "public void comenzarDiaLaboral() {\n\t\tSystem.out.println(\"AEROPUERTO: Inicio del dia laboral, se abren los puestos de informe, atención y freeshops al público, el conductor del tren llega a tiempo como siempre\");\n\t\tthis.turnoPuestoDeInforme.release();\n\t\t}", "public int jogadorAtual() {\n return vez;\n }", "public void donnerArtefact() {\r\n\t\tZone z = j.getZone();\r\n\t\tif (z.getElement() == modele.Element.Neutre) {\r\n\t\t\tSystem.out.println(\"Cette zone ne contient pas d'artefact !\");\r\n\t\t}\r\n\t\tif (this.clefsMinimum <= j.combienCles(z.getElement())) {\r\n\t\t\tj.recupereObjet(new Artefact(z.getElement()));\r\n\t\t\tj.enleveCles(new Clef(z.getElement()), clefsMinimum);\r\n\t\t\t\r\n\t\t\tthis.incrNbAction();\r\n\t\t\tthis.notifyObservers();\r\n\t\t\tj.getIle().notifyObservers(); // Pour l'affichage d'inventaire.\r\n\t\t}\r\n\t}", "public int cima(){\n return VectorPila[cima];\n }", "public static void curar(){\n int aleatorio; //variables locales a utilizar\n Random numeroAleatorio = new Random(); //declarando variables tipo random para aleatoriedad\n int curador;\n //condicion de puntos de mana para ejecutar la curacion del jugador\n if(puntosDeMana>=1){\n //acciones de la funcion curar en el jugador\n aleatorio = (numeroAleatorio.nextInt(25-15+1)+15);\n curador= ((nivel+1)*5)+aleatorio;\n puntosDeVida= puntosDeVida+curador;\n puntosDeMana=puntosDeMana-1;\n }\n else{//imprimiendo el mensaje de curacion fallada\n System.out.println(\"no cuentas con Puntos De mana (MP) para curarte\");\n }\n }", "public Conta(String numero, String agencia, Double saldo) { // Construtor 1\n this.numero = numero;\n this.agencia = agencia;\n this.saldo = saldo;\n }", "public float carga(){\n return (this.capacidade/this.tamanho);\n }", "public void AumentarVictorias() {\r\n\t\tthis.victorias_actuales++;\r\n\t\tif (this.victorias_actuales >= 9) {\r\n\t\t\tthis.TituloNobiliario = 3;\r\n\t\t} else if (this.victorias_actuales >= 6) {\r\n\t\t\tthis.TituloNobiliario = 2;\r\n\t\t} else if (this.victorias_actuales >= 3) {\r\n\t\t\tthis.TituloNobiliario = 1;\r\n\t\t} else {\r\n\t\t\tthis.TituloNobiliario = 0;\r\n\t\t}\r\n\t}", "@Override\n public double perimetro() {\n return 4 * this.lado;\n }", "public void principal() {\r\n int opciones = 0;\r\n do {\r\n opciones = op.capInt(\"CLINICA LA EVALUACIÓN\\n\\n\"\r\n + \"1. Gestionar Pacientes.\\n\"\r\n + \"2. Gestionar Médicos.\\n\"\r\n + \"3. Gestionar Historial Clínico.\\n\"\r\n + \"4. Salir\");\r\n switch (opciones) {\r\n case 1:\r\n gesPaciente();\r\n break;\r\n case 2:\r\n gesMedico();\r\n break;\r\n case 3:\r\n gesHistoria();\r\n break;\r\n case 4:\r\n op.mensaje(\"Hasta la proxima\");\r\n break;\r\n default:\r\n op.mensajeError(\"La opcione Ingresada no es valida\");\r\n break;\r\n }\r\n } while (opciones != 4);\r\n }", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }" ]
[ "0.6431539", "0.63756627", "0.6314812", "0.62180114", "0.61820865", "0.6166776", "0.61557156", "0.61511254", "0.6129224", "0.6127166", "0.60949165", "0.6090203", "0.6067288", "0.604642", "0.6034562", "0.6028027", "0.6018741", "0.59852916", "0.5980245", "0.5959306", "0.59565544", "0.5949168", "0.59474427", "0.59471524", "0.58993345", "0.58858347", "0.5882107", "0.5880752", "0.5880427", "0.5873717", "0.5870034", "0.5868262", "0.5829429", "0.58261544", "0.5823588", "0.5822776", "0.5799818", "0.5795891", "0.57869893", "0.5780645", "0.5774497", "0.57709384", "0.5748347", "0.5726319", "0.57129633", "0.57085466", "0.5702148", "0.5694233", "0.5682415", "0.5677315", "0.5674946", "0.5674188", "0.5672198", "0.5670449", "0.5667313", "0.56647795", "0.5661668", "0.564621", "0.5644646", "0.56440544", "0.56428796", "0.56295496", "0.56203675", "0.56192136", "0.561758", "0.56160194", "0.5614633", "0.5612401", "0.56112003", "0.5610347", "0.5607321", "0.5601753", "0.55999047", "0.559312", "0.55860674", "0.5584616", "0.5582366", "0.558135", "0.5580374", "0.5578625", "0.55760014", "0.55754125", "0.5571377", "0.556859", "0.55678993", "0.5567339", "0.55656856", "0.55643415", "0.5563957", "0.5563443", "0.556152", "0.5561253", "0.55611825", "0.5557767", "0.5555107", "0.5554204", "0.5547748", "0.55467343", "0.5544861", "0.55432445", "0.55425966" ]
0.0
-1
Called when the 'loadIMEI' function is triggered.
public void loadIMEI() { // Check if the READ_PHONE_STATE permission is already available. if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) { // READ_PHONE_STATE permission has not been granted. requestReadPhoneStatePermission(); } else { // READ_PHONE_STATE permission is already been granted. doPermissionGrantedStuffs(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void loadIMEI() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_PHONE_STATE)) {\n// get_imei_data();\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE},\n MY_PERMISSIONS_REQUEST_READ_PHONE_STATE);\n }\n } else {\n\n TelephonyManager mngr = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n mImei.setText(mngr.getDeviceId());\n }\n }", "public void setIMEI(String IMEI) {\n this.IMEI = IMEI;\n }", "public String getIMEI() {\n return this.IMEI;\n }", "@Override\n public void getMosIMEIAndId(String IMEI,\n String sourceId) {\n MyLog.log(\"IMEI::\" + IMEI);\n Message message = handler.obtainMessage();\n message.obj = \"IMEI::\" + IMEI + \"\\n\" + \"sourceID:\\n\" + sourceId;\n message.what = 8;\n handler.sendMessage(message);\n\n }", "@Override\r\n\tpublic void initialLoad() throws IOException {\n\t\t\r\n\t}", "public void InitLoadingInRecognition() {\n Point screen = MainView.GetScreenSize();\n // image setting\n int x = (screen.x - LOADING_IMAGE_SIZE.x) >> 1;\n int y = 100;\n this.m_LoadingImage.InitCharacterEx(\n \"recognizerimages\",\n x, y,\n LOADING_IMAGE_SIZE.x,\n LOADING_IMAGE_SIZE.y,\n 255, 1.0f, 0);\n // animation setting\n this.m_LoadingImage.InitAnimation(\n ANIMATION_LOADING_COUNT_MAX,\n ANIMATION_LOADING_FRAME, 0);\n }", "public void updateIM(){\n \n }", "public static void setImei(Object imei) {\n\t\t\n\t}", "public void setInit(){\n anInterface.SetInit();\n }", "public void get_IMEI(){\n TelephonyManager mngr = (TelephonyManager) getSystemService(this.TELEPHONY_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mngr.getDeviceId();\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void showItext() {\n\n\t\tFormUtil.dlg.setText(\"Opening...\");\n\t\tFormUtil.dlg.show();\n\n\n\t\t\n\t\tScheduler.get().scheduleDeferred(new Command() {\n\t\t\tpublic void execute() {\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (formDef == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\ttabs.selectTab(TAB_INDEX_DESIGN);\n\t\t\t\t\t\n\t\t\t\t\t//update the itext map\n\t\t\t\t\tcontroller.updateLanguage(Context.getLocale(), Context.getLocale(), formDef);\n\t\t\t\t\tFormDef form = controller.getSelectedForm();\n\t\t\t\t\t\n\t\t\t\t\t//clear the itext list\n\t\t\t\t\tContext.getItextList().removeAll();\n\t\t\t\t\t//copy over the map to the list\n\t\t\t\t\tSet<String> keys = form.getITextMap().keySet();\n\t\t\t\t\tfor(String key : keys)\n\t\t\t\t\t{\n\t\t\t\t\t\tItextModel itext = form.getITextMap().get(key);\n\t\t\t\t\t\tContext.getItextList().add(itext);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\titextWidget.loadItext(Context.getItextList());\n\t\t\t\t\titextWidget.showWindow();\n\n\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t} catch (Exception ex) {\n\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void init() {\n\n stevens_IMU = new AdafruitBNO055IMU(hardwareMap.i2cDeviceSynch.get(\"IMU\"));\n\n parameters = new BNO055IMU.Parameters();\n\n success = stevens_IMU.initialize(parameters);\n telemetry.addData(\"Success: \", success);\n\n doDaSleep(500);\n\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 boolean isDeviceIdentifierIMEINoFieldPresent() {\r\n\t\treturn isElementPresent(vehicleNameField.replace(\"vehicle_name\", \"imei\"), SHORTWAIT);\r\n\t}", "public void updateIM() {\n\t\tScalarIMR imr = imrGuiBean.getSelectedIMR_Instance();\n//\t\timtGuiBean.setIM(imr,imr.getSupportedIntensityMeasuresIterator()) ;\n\t}", "void imReady();", "protected void initialize() {\n\t\tthis.oi = Robot.getInstance().getOI();\n\n }", "void onLoadInteraction(String name, String tag);", "public final void mo30922I() {\n super.mo30922I();\n if (this.f102278H != null) {\n this.f102278H.run();\n }\n }", "@Override\n public void load() {\n }", "public void setItime(String itime) {\n this.itime = itime;\n }", "public AISDecoder() {\n initComponents();\n }", "public void onLoad() {\n\t}", "@Override\r\n\tpublic void load() {\n\t}", "public void load() {\n handleLoad(false, false);\n }", "@Override\n protected void declareInteroperability() {\n\n // Add handler to load one new oifits\n new SampMessageHandler(SampCapability.LOAD_FITS_TABLE) {\n @Override\n protected void processMessage(final String senderId, final Message message) throws SampException {\n final String url = (String) message.getParam(\"url\");\n\n if (!StringUtils.isEmpty(url)) {\n // bring this application to front and load data\n SwingUtils.invokeLaterEDT(new Runnable() {\n @Override\n public void run() {\n App.showFrameToFront();\n\n Exception e = null; // Store exception if something bad occurs \n try {\n\n if (FileUtils.isRemote(url)) {\n final URI uri = new URI(url);\n File tmpFile = FileUtils.getTempFile(ResourceUtils.filenameFromResourcePath(url));\n if (Http.download(uri, tmpFile, false)) {\n IRModelManager.getInstance().loadOIFitsFile(tmpFile);\n } else {\n e = new IOException();\n }\n\n } else {\n IRModelManager.getInstance().loadOIFitsFile(new File(new URI(url))); \n }\n } catch (IllegalArgumentException ex) {\n e = ex;\n } catch (URISyntaxException ex) {\n e = ex;\n } catch (IOException ex) {\n e = ex;\n }\n\n if (e != null) {\n MessagePane.showErrorMessage(\"Could not load oifits file from samp message : \" + message, e);\n }\n }\n });\n }\n }\n };\n \n // Add handler to load one new oifits\n new SampMessageHandler(SampCapability.LOAD_FITS_IMAGE) {\n @Override\n protected void processMessage(final String senderId, final Message message) throws SampException {\n final String url = (String) message.getParam(\"url\");\n\n if (!StringUtils.isEmpty(url)) {\n // bring this application to front and load data\n SwingUtils.invokeLaterEDT(new Runnable() {\n @Override\n public void run() {\n App.showFrameToFront();\n\n Exception e = null; // Store exception if something bad occurs\n try {\n\n if (FileUtils.isRemote(url)) {\n final URI uri = new URI(url);\n File tmpFile = FileUtils.getTempFile(ResourceUtils.filenameFromResourcePath(url));\n if (Http.download(uri, tmpFile, false)) {\n IRModelManager.getInstance().loadFitsImageFile(tmpFile); \n } else {\n e = new IOException();\n }\n\n } else {\n IRModelManager.getInstance().loadFitsImageFile(new File(new URI(url)));\n }\n\n } catch (IllegalArgumentException ex) {\n e = ex;\n } catch (URISyntaxException ex) {\n e = ex;\n } catch (IOException ex) {\n e = ex;\n }\n\n if (e != null) {\n MessagePane.showErrorMessage(\"Could not load fits image file from samp message : \" + message, e);\n }\n }\n });\n }\n }\n };\n \n }", "public static void saveIMEI(Context context, String imei) {\n SharedPreferences sharedPreferences = PreferenceManager\n .getDefaultSharedPreferences(context);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putString(GMSConstants.KEY_IMEI, imei);\n editor.apply();\n }", "public void onLoad()\n\t{\n\t\tJLog.info(\" --- INIT --- \");\n\t\t\n\t}", "@Override\n public void load() {\n }", "@Override\r\n\tprotected void initLoad() {\n\r\n\t}", "protected abstract void onLoad() throws IOException, ConfigInvalidException;", "@Override\n protected void onResume() {\n super.onResume();\n mIccReader = new IccManager();\n }", "@Override\r\n\tpublic void load() {\n\r\n\t}", "private void setIMUParameters(){\n BNO055IMU.Parameters parameters = getIMUParameters();\n imu.initialize(parameters);\n }", "public boolean isDeviceIdentifierIMEINoLabelPresent() {\r\n\t\treturn isElementPresent(vehicleName.replace(\"Vehicle Name\", \"Device Identifier / IMEI No.\"), SHORTWAIT);\r\n\t}", "void onIconify() {\n\t}", "public static void initImageLoader() {\n }", "public void load() {\n\t}", "public void load() {\n }", "public void onLoadingStart() {\n\t\tsession.getUiElements().setLogText(\"Loading attribute definitions started.\");\n\t\tevents.onLoadingStart();\n\t}", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "public abstract void loaded();", "private void appInitialization(){\n openRom();\n openGuide();\n setOffset(0);\n addressChanged();\n }", "public void setupIMU() {\n // Initalize IMU\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n\n parameters.mode = BNO055IMU.SensorMode.IMU;\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\";\n parameters.loggingEnabled = false;\n\n // Retrieve and initialize the IMU. We expect the IMU to be attached to an I2C port\n // on a Core Device Interface Module, configured to be a sensor of type \"AdaFruit IMU\",\n // and named \"imu\".\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n\n imu.initialize(parameters);\n\n\n // Set PID proportional value to start reducing power at about 50 degrees of rotation.\n pidRotate = new PIDController(.005, 0, 0); // Kp was 0 1/24/19\n\n // Set PID proportional value to produce non-zero correction value when robot veers off\n // straight line. P value controls how sensitive the correction is.\n pidDrive = new PIDController(0.02, 0, 0); // Kp was .02 1/24/19\n\n telemetry.addData(\"Mode\", \"calibrating IMU.....\");\n telemetry.update();\n\n // make sure the imu gyro is calibrated before continuing.\n while (!isStopRequested() && !imu.isGyroCalibrated()) {\n sleep(50);\n idle();\n }\n\n telemetry.addData(\"Mode\", \"waiting for start\");\n telemetry.addData(\"imu calib status\", imu.getCalibrationStatus().toString());\n telemetry.update();\n }", "@Override\r\n\tprotected void load() {\n\t\t\r\n\t}", "public final void mo39709I() {\n if (this.f40706G == null) {\n this.f40706G = C15593cd.m50345a(this.f40707H.f44224a);\n this.f40707H.mo41452a(\"native:view_load\", this.f40706G);\n }\n }", "public static void init() {\r\n load();\r\n registerEventListener();\r\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\t\t\t\t\tpublic void beginLoad(int type) {\n\n\t\t\t\t\t}", "public void init()\r\n\t{\r\n\t\tStaticAppletData.setCodeBase(getCodeBase().toString()); // set the code base\r\n\t\tStaticAppletData.setCodeBaseURL(getCodeBase()); // set the code base URL\r\n\t\t\r\n\t\tloadLoginUI(); // load the login UI first\r\n\t\t//loadRoomViewerUI();\r\n\t}", "public void _read(org.omg.CORBA.portable.InputStream istream)\n {\n value = autorisationCollabInterditeHelper.read(istream);\n }", "@Override\n\t\tvoid loadData() throws IOException {\n\t\t\tsuper.loadData();\n\t\t}", "private void init() {\n if (placeholder == null) {\n IdentificationManager.getInstance().registerIdentification(this);\n Optional<Identification> identification = IdentificationManager.getInstance().getIdentification(this);\n if (!identification.isPresent()) {\n throw new IllegalStateException(\"Unable to obtain Identification\");\n } else {\n placeholder = identification.get();\n }\n }\n }", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tprotected void load() {\n\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}", "public void initInterfaces() {\r\n scheduleUpdate(theCounter.countIs());\r\n scheduleState(StateEvent.MINIMUM);\r\n }", "@SideOnly(Side.CLIENT)\n private void onClientLoadComplete() {\n ((IReloadableResourceManager) Minecraft.getMinecraft().getResourceManager()).registerReloadListener(listener -> {\n\n if (Loader.isModLoaded(\"jei\") && GameUtils.isClient()) {\n\n LOGGER.info(\"Resyncing JEI info.\");\n PluginJEI.syncHiddenItems(PlayerUtils.getClientPlayer());\n }\n });\n }", "@Override\r\n\tpublic void load() {\n\t\ts.load();\r\n\r\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n mIccManager = new IccManager();\n mIccReader = new IccReaderThread(\"ReaderThread\");\n mIccReader.start();\n }", "public void load() {\n theDataSet = getParent().getCurrentDataset();\n currentSession = getParent().getSession();\n\n airlineContainer.setOnKeyPressed(new EventHandler<KeyEvent>(){\n @Override\n public void handle(KeyEvent event) {\n if (event.getCode().equals(KeyCode.ENTER)){\n editAirline();\n }\n }\n });\n\n toEdit = theDataSet.getAirlineDictionary().get(currentSession.getAirlineToEdit());\n\n airlNameEdit.setText(toEdit.getName());\n airlAliasEdit.setText(toEdit.getAlias());\n airlIATAEdit.setText(toEdit.getIATA());\n airlICAOEdit.setText(toEdit.getICAO());\n airlCallsignEdit.setText(toEdit.getCallSign());\n airlCountryEdit.setText(toEdit.getCountryName());\n airlActiveEdit.setText(toEdit.getActive());\n }", "public void load (IFile file) throws Exception;", "public abstract void onInit();", "@Override\n\tpublic void onLoad() {\n\t\t\n\t}", "public void setImsi(String imsi) {\r\n this.imsi = imsi == null ? null : imsi.trim();\r\n }", "private void initIMR_GuiBean() {\n\n imrGuiBean = new IMR_GuiBean(this);\n imrGuiBean.getParameterEditor(imrGuiBean.IMR_PARAM_NAME).getParameter().addParameterChangeListener(this);\n // show this gui bean the JPanel\n imrPanel.add(this.imrGuiBean,new GridBagConstraints( 0, 0, 1, 1, 1.0, 1.0,\n GridBagConstraints.CENTER, GridBagConstraints.BOTH, defaultInsets, 0, 0 ));\n //sets the Intensity measure for the IMR\n imrGuiBean.getSelectedIMR_Instance().setIntensityMeasure(this.SA_NAME);\n //initialise the SA Peroid values for the IMR\n this.getSA_PeriodForIMR(imrGuiBean.getSelectedIMR_Instance());\n }", "@Override\n\tpublic void init() {\n\t\tif (myScreensContainer.getUserData() != null) {\n\t\t\tWebEngine webEngine = show_problem.getEngine();\n\t\t\twebEngine.load((String) myScreensContainer.getUserData());\n\t\t}\n\t}", "@Override\n\tpublic void onStartInstrExecution(Instruction instr) {\n\t\t\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}", "protected void _notifyInterpreterReady() {\n for (int i=0; i < _listeners.size(); i++) {\n ((InteractionsListener)_listeners.get(i)).interpreterReady();\n }\n }", "public void setImei(String imei) {\n this.imei = imei == null ? null : imei.trim();\n }", "public void setImei(String imei) {\n this.imei = imei == null ? null : imei.trim();\n }", "@Override\n public void initializedModule(final INaviModule module) {\n }", "public InfoDataIF() {\n initComponents();\n }", "@Override\n\tpublic void loadPlayerData(InputStream arg0)\n\t{\n\n\t}", "public INTF_Itau_CMX_Import() {\r\n\t\tsuper();\r\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream arg0) {\n\n\t}", "void initAitalk() {\n\t\tAsr.JniBeginLexicon(\"menu\", false);\n \tfor(int i = 0; i < mAiStrings.length; i++){\n \t\tAsr.JniAddLexiconItem(mAiStrings[i], i);\n \t}\n \tAsr.JniEndLexicon();\n \tmMsgHandler.sendEmptyMessage(MSG_HANDLE_START_REG);\n }", "@EventHandler\r\n\tpublic void init(FMLInitializationEvent event){\n\t\tInterfacePacket.init();\r\n\t\t\r\n\t\t//Put all liquids into the config file for use by modpack makers.\r\n\t\tConfigSystem.configObject.fuel.lastLoadedFluids = InterfaceCore.getAllFluids();\r\n\t\tConfigSystem.saveToDisk();\r\n\t\t\r\n\t\t//Init chunkloader system.\r\n\t\tForgeChunkManager.setForcedChunkLoadingCallback(INSTANCE, InterfaceChunkloader.INSTANCE);\r\n\t\t\r\n\t\t//Init keybinds if we're on the client.\r\n\t\tif(event.getSide().isClient()){\r\n\t\t\tInterfaceInput.initConfigKey();\r\n\t\t}\r\n\t}", "protected void initialize() {\n drivebase.engageOmni();\n }", "private void setData() {\n populateInterfaceElements();\n }", "protected void onChange_InitInfected() {\n onChange_InitInfected_xjal( InitInfected );\n }", "public void visitILOAD(ILOAD o){\n\t\t// All done by visitLocalVariableInstruction(), visitLoadInstruction()\n\t}", "public abstract void load();", "public void init(HardwareMap hardwareMap) {\n imu = hardwareMap.get(BNO055IMU.class, \"imu\");\n\n //Initialize IMU parameters\n BNO055IMU.Parameters parameters = new BNO055IMU.Parameters();\n parameters.angleUnit = BNO055IMU.AngleUnit.DEGREES;\n parameters.accelUnit = BNO055IMU.AccelUnit.METERS_PERSEC_PERSEC;\n parameters.calibrationDataFile = \"BNO055IMUCalibration.json\"; // see the calibration sample opmode\n parameters.loggingEnabled = true;\n parameters.loggingTag = \"IMU\";\n parameters.accelerationIntegrationAlgorithm = new JustLoggingAccelerationIntegrator();\n imu.initialize(parameters);\n\n /*\n telemetry.addData(\"Odometry System Calibration Status\", \"IMU Init Complete\");\n telemetry.clear();\n\n //Odometry System Calibration Init Complete\n telemetry.addData(\"Odometry System Calibration Status\", \"Init Complete\");\n telemetry.update();\n */\n\n }", "protected void notifyMessageFromUI() throws IOException {\r\n\t\tfor (IUIMessageGettable messageGettable : getUIMessageGettables()) {\r\n\t\t\tmessageGettable.messageReceivedFromUI(messageField.getText());\r\n\t\t}\r\n\t}", "@Override\n\tprotected void load() {\n\t\tisPageLoaded = true;\n\t}", "public String getIID();", "private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}", "public interface OnLoadMapListener {\n public void onLoadMapSelected(String mapFilePath);\n }", "public static void load() {\n }", "@Override\r\n\tpublic String getImei() {\n\t\treturn this.imei;\r\n\t}", "public void SetICFilePath(String path) {\r\n\t\ticFilePath = path;\r\n\t}", "@Override\r\n protected void initData(Bundle savedInstanceState) {\r\n mControl = new IPsetControl(this);\r\n mControl.getMainIp();\r\n// Resources res = getResources();\r\n// String[] stringArray = res.getStringArray(R.array.IpsetSpinner1);\r\n// data1.clear();\r\n// data2.clear();\r\n// for (int i = 0; i < stringArray.length; i++) {\r\n// data1.add(stringArray[i]);\r\n// }\r\n// Resources res1 = getResources();\r\n// String[] stringArray1 = res1.getStringArray(R.array.IpsetSpinner2);\r\n// for (int i = 0; i < stringArray1.length; i++) {\r\n// data2.add(stringArray1[i]);\r\n//\r\n// }\r\n// adapter1 = new SpinnerAdapter(data1, this);\r\n// adapter2 = new SpinnerAdapter(data2, this);\r\n// mTerminalipSp3.setAdapter(adapter1);\r\n// mTerminalipSp5.setAdapter(adapter2);\r\n }", "public void setItmProvider(IITMProvider itmProvider) {\n this.itmProvider = itmProvider;\n }", "@Override\r\n public void loadPianoAudioStart() {\n }", "@Override\n\tpublic void load(DataKey arg0) throws NPCLoadException {\n\t\t\n\t}" ]
[ "0.7435986", "0.6709062", "0.5979175", "0.5821586", "0.5813812", "0.56588334", "0.5595336", "0.5546258", "0.54959583", "0.54466444", "0.5434751", "0.5403506", "0.53941137", "0.53813845", "0.5370015", "0.53554547", "0.5354979", "0.5297067", "0.5296433", "0.52956784", "0.5279777", "0.5263028", "0.5254716", "0.52336246", "0.5229111", "0.52115417", "0.52111864", "0.52032155", "0.5198135", "0.5198001", "0.51899487", "0.5173725", "0.5172162", "0.514329", "0.51274973", "0.5118149", "0.5117098", "0.51075137", "0.51061755", "0.510146", "0.51012915", "0.508543", "0.50718695", "0.5069569", "0.5066495", "0.50595355", "0.504733", "0.5036868", "0.5033815", "0.5033815", "0.5033815", "0.5030972", "0.5030136", "0.5028585", "0.5014719", "0.5012748", "0.5012051", "0.5012051", "0.5002", "0.49987793", "0.49950296", "0.49939182", "0.49891436", "0.49788734", "0.49602687", "0.49570653", "0.49481106", "0.494472", "0.49408343", "0.4920025", "0.49145758", "0.4906035", "0.49044403", "0.4903993", "0.4903993", "0.49028474", "0.48977637", "0.48942506", "0.48896727", "0.48895994", "0.4882999", "0.48821443", "0.48787665", "0.487836", "0.4877863", "0.487579", "0.48721147", "0.48704734", "0.48672444", "0.4866324", "0.48650357", "0.48644462", "0.48639372", "0.48621425", "0.48618144", "0.4859293", "0.48582825", "0.48556396", "0.4854968", "0.4854107" ]
0.7118108
1
Requests the READ_PHONE_STATE permission. If the permission has been denied previously, a dialog will prompt the user to grant the permission, otherwise it is requested directly.
private void requestReadPhoneStatePermission() { if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.READ_PHONE_STATE)) { // Provide an additional rationale to the user if the permission was not granted // and the user would benefit from additional context for the use of the permission. // For example if the user has previously denied the permission. new AlertDialog.Builder(AddAssetActivity.this) .setTitle("Permission Request") .setMessage("Allow Cover app to read phone state") .setCancelable(false) .setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { //re-request ActivityCompat.requestPermissions(AddAssetActivity.this, new String[]{Manifest.permission.READ_PHONE_STATE}, MY_PERMISSIONS_REQUEST_READ_PHONE_STATE); } }) //.setIcon(R.drawable.onlinlinew_warning_sign) .show(); } else { // READ_PHONE_STATE permission has not been granted yet. Request it directly. ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.READ_PHONE_STATE}, MY_PERMISSIONS_REQUEST_READ_PHONE_STATE); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void requestPhoneStatePermission() {\n if (ContextCompat.checkSelfPermission(mContext,\n Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_PHONE_STATE)) {\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.READ_PHONE_STATE},\n Constants.COOPER_PERMISSIONS_REQUEST_READ_PHONE_STATE);\n\n // MY_PERMISSIONS_REQUEST_READ_PHONE_STATE is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "public void phoneStatePermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M && checkSelfPermission(Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED && checkSelfPermission(Manifest.permission.PROCESS_OUTGOING_CALLS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_PHONE_STATE, Manifest.permission.PROCESS_OUTGOING_CALLS}, PERMISSIONS_REQUEST_PHONE_STATE);\n } else {\n Utils.log(\"already phoneStatePermission\");\n Utils.showToast(\"already phoneStatePermission\");\n// IntentFilter filter = new IntentFilter();\n// filter.addAction(Intent.ACTION_NEW_OUTGOING_CALL);\n// registerReceiver(new PhoneStateReceiver(), filter);\n// Intent i = new Intent(MainActivity.this, PhoneCallStatesService.class);\n// startService(i);\n\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n\n if (requestCode == MY_PERMISSIONS_REQUEST_READ_PHONE_STATE) {\n // Received permission result for READ_PHONE_STATE permission.est.\");\n // Check if the only required permission has been granted\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // READ_PHONE_STATE permission has been granted, proceed with displaying IMEI Number\n //alertAlert(getString(R.string.permission_available_read_phone_state));\n doPermissionGrantedStuffs();\n } else {\n alertAlert(\"permissions not granted read phone state\");\n addImeiCard.setVisibility(View.VISIBLE);\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case REQUEST_READ_PHONE_STATE:\n if ((grantResults.length > 0) && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n //TODO\n }\n break;\n\n default:\n break;\n }\n }", "private boolean checkPermission() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);\n\n if (result == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n return false;\n }\n }", "public void loadIMEI() {\n // Check if the READ_PHONE_STATE permission is already available.\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE)\n != PackageManager.PERMISSION_GRANTED) {\n // READ_PHONE_STATE permission has not been granted.\n requestReadPhoneStatePermission();\n } else {\n // READ_PHONE_STATE permission is already been granted.\n doPermissionGrantedStuffs();\n }\n }", "private void requestPermission() {\n\n ActivityCompat.requestPermissions(CalltoVendor.this, new String[]\n {\n CALL_PHONE\n }, RequestPermissionCode);\n }", "public static boolean isReadCallAllowed(FragmentActivity act) {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(act, Manifest.permission.CALL_PHONE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == READ_SMS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Read SMS permission granted\", Toast.LENGTH_SHORT).show();\n getPermission(Manifest.permission.READ_CONTACTS, getString(R.string.request_read_contact_permission), READ_CONTACTS_PERMISSIONS_REQUEST);\n\n\n } else {\n Toast.makeText(getApplicationContext(), \"Read SMS permission denied :(\", Toast.LENGTH_SHORT).show();\n\n }\n } else if (requestCode == READ_CONTACTS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Read contacts permission granted\", Toast.LENGTH_SHORT).show();\n if (getPermission(Manifest.permission.READ_SMS, getString(R.string.request_read_sms_permission), READ_SMS_PERMISSIONS_REQUEST)) {\n MessageList.refreshFromSMSInbox(getApplicationContext());\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Read contacts permission denied :(\", Toast.LENGTH_SHORT).show();\n }\n } else if (requestCode == READ_PHONE_STATE_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(getApplicationContext(), \"Read phone state permission granted\", Toast.LENGTH_SHORT).show();\n if (getPermission(Manifest.permission.READ_PHONE_STATE, getString(R.string.request_read_phone_state_permission), READ_PHONE_STATE_PERMISSIONS_REQUEST)) {\n MessageList.refreshFromSMSInbox(getApplicationContext());\n }\n } else {\n Toast.makeText(getApplicationContext(), \"Read phone state permission denied :(\", Toast.LENGTH_SHORT).show();\n }\n } else {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "int getPermissionRead();", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_DANGEROUS_PERMISSION) {\n boolean isGranted = true;\n for (int grantResult : grantResults) {\n isGranted = isGranted && grantResult == PackageManager.PERMISSION_GRANTED;\n }\n if (isGranted) {\n locationPermission = true;\n readPhoneStatePermission = true;\n Intent result = new Intent();\n setResult(RESULT_OK, result);\n finish();\n // doBindBleMessagingService();\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n\n } else {\n requestDangerousPermission();\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "public void askPermission() {\n try {\n if (Build.VERSION.SDK_INT >= 23) {\n //call the function to ask for permission\n try {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, 100);\n return;\n }\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void requestReadAndSendSmsPermission()\n {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.READ_SMS))\n {\n\n }\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.READ_SMS,\n android.Manifest.permission.SEND_SMS,\n android.Manifest.permission.RECEIVE_SMS,\n Manifest.permission.READ_PHONE_STATE}, 1);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermissionLlamada() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CALL_PHONE)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "private void requestPermissions() {\r\n ActivityCompat.requestPermissions(ContactActivity.this,new String[]{Manifest.permission.CALL_PHONE},1);\r\n }", "@RequiresApi(api = M)\n public void getPermissionToReadSMS() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_SMS)\n != PackageManager.PERMISSION_GRANTED) {\n if (shouldShowRequestPermissionRationale(\n Manifest.permission.READ_SMS)) {\n Toast.makeText(this, \"Please allow permission!\", Toast.LENGTH_SHORT).show();\n }\n requestPermissions(new String[]{Manifest.permission.READ_SMS},\n READ_SMS_PERMISSIONS_REQUEST);\n }\n }", "public void doPermissionGrantedStuffs() {\n TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);\n //Get IMEI Number of Phone //////////////// for this example i only need the IMEI\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n IMEINumber = tm.getDeviceId();\n SharedPreferences settings = getSharedPreferences(\"prefs\", 0);\n SharedPreferences.Editor editor = settings.edit();\n editor.putString(\"IMEI\", IMEINumber);\n editor.apply();\n\n IMEI = settings.getString(\"IMEI\", null);\n if (accessToken == null) {\n\n\n goToLogin(true);\n }\n\n }", "private void askForPermission(){\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)\n != PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG,\"don't have permission\");\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.ACCESS_NOTIFICATION_POLICY)) {\n Log.i(TAG,\"Asking for permission with explanation\");\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n } else {\n Log.i(TAG,\"Asking for permission without explanation\");\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_NOTIFICATION_POLICY},\n MY_PERMISSIONS_MODIFY_AUDIO_SETTINGS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n Log.i(TAG,\"Already had permission\");\n }\n\n }", "protected void setPermissions(){\n //Set permissions\n //READ_PHONE_STATE\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n ) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n //Show an explanation to the user *asynchronously* -- don't block\n //this thread waiting for the user's response! After the user\n //sees the explanation, request the permission again.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n } else {\n //No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n\n //MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n //app-defined int constant. The callback method gets the\n //result of the request.\n }\n }\n }", "private void makePhoneCall(){\n if(ContextCompat.checkSelfPermission(NotificationHelper.this, android.Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n Toast.makeText(this, \"Phone call permission not given\", Toast.LENGTH_SHORT).show();\n // ActivityCompat.requestPermissions(Alarm2Activity.this, new String[] {android.Manifest.permission.CALL_PHONE}, REQUEST_CALL);\n }\n else{\n String number = \"+213658305662\";\n String phoneNum = \"tel:\" + number;\n startActivity(new Intent(Intent.ACTION_CALL, Uri.parse(phoneNum)));\n }\n }", "private void checkPermissionReadBook() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, android.Manifest.permission.READ_CONTACTS)) {\n dialogPermissionReadBook();\n } else {\n ActivityCompat.requestPermissions(this, new String[]{android.Manifest.permission.READ_CONTACTS}, CODE_READ_BOOK);\n }\n } else {\n setListBook();\n }\n }", "void askForPermissions();", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void getNecessaryPermissions() {\n final String TAG_getNecessaryPermissions = \" getNecessartPermissions(): \";\n Log.d(TAG, TAG_getNecessaryPermissions + \" called\");\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_SMS) != PackageManager.PERMISSION_GRANTED) {\n //if permission is not granted then show an education UI to give reason to user\n if (shouldShowRequestPermissionRationale(Manifest.permission.READ_SMS)) {\n Toast.makeText(this, \"Please allow permission!\", Toast.LENGTH_SHORT).show();\n }\n //and then let the system request permission from user for your app.\n //results in callback to onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n requestPermissions(new String[]{Manifest.permission.READ_SMS, Manifest.permission.READ_CONTACTS}, REQUESTCODEFORPERMISSIONS_READSMS_READCONTACTS_ENDOFPERMISSIONS);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void getPermissionToReadUserContacts() {\n // 1) Use the support library version ContextCompat.checkSelfPermission(...) to avoid\n // checking the build version since Context.checkSelfPermission(...) is only available\n // in Marshmallow\n // 2) Always check for permission (even if permission has already been granted)\n // since the user can revoke permissions at any time through Settings\n if (ContextCompat.checkSelfPermission (this, Manifest.permission.READ_CONTACTS)\n != PackageManager.PERMISSION_GRANTED) {\n\n // The permission is NOT already granted.\n // Check if the user has been asked about this permission already and denied\n // it. If so, we want to give more explanation about why the permission is needed.\n if (shouldShowRequestPermissionRationale (\n Manifest.permission.READ_CONTACTS)) {\n // Show our own UI to explain to the user why we need to read the contacts\n // before actually requesting the permission and showing the default UI\n }\n\n // Fire off an async request to actually get the permission\n // This will show the standard permission request dialog UI\n requestPermissions (new String[]{Manifest.permission.READ_CONTACTS},\n READ_CONTACTS_PERMISSIONS_REQUEST);\n }\n }", "private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void checkPermissions(){\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(this,Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n ActivityCompat.requestPermissions(this, new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION\n },PERMS_CALL_ID);\n\n }\n\n\n }", "public void askForPermissionsGrant(){\n int res =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n int res2 =ContextCompat.checkSelfPermission(this,Manifest.permission.ACCESS_FINE_LOCATION);\n if (res!= PackageManager.PERMISSION_GRANTED || res2!= PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"We need to access your location\")\n .setMessage(\"We want to track every breath you take\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n });\n builder.create().show();\n }\n else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n publishLastLocation();\n }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n // Make sure it's our original READ_CONTACTS request\n if (requestCode == READ_CONTACTS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText (this, \"Read Contacts permission granted\", Toast.LENGTH_SHORT).show ();\n } else {\n // showRationale = false if user clicks Never Ask Again, otherwise true\n// boolean showRationale = shouldShowRequestPermissionRationale( this, Manifest.permission.READ_CONTACTS);\n\n// if (showRationale) {\n // do something here to handle degraded mode\n// } else {\n// Toast.makeText(this, \"Read Contacts permission denied\", Toast.LENGTH_SHORT).show();\n// }\n// }\n// } else {\n// super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n// }\n// }\n\n // private boolean shouldShowRequestPermissionRationale(MainActivity mainActivity, String readContacts) {\n// }\n////}\n//\n }\n }\n }", "public void checkPermission() {\n Log.e(\"checkPermission\", \"checkPermission\");\n\n // Here, thisActivity is the current activity\n if (ContextCompat.checkSelfPermission(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_ACCESS_FINE_LOCATION);\n\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n PERMISSIONS_ACCESS_COARSE_LOCATION);\n } else {\n isPermission = true;\n }\n }", "private void requestPermission() {\n if (shouldShowRequestPermissionRationale(android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(this.getResources().getString(R.string.request_location_permission_message))\n .setPositiveButton(this.getResources().getString(R.string.OK), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n });\n AlertDialog alertDialog = builder.create();\n alertDialog.show();\n } else {\n ActivityCompat.requestPermissions((Activity) mContext,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},\n REQUEST_LOCATION);\n }\n }", "private void callPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED) {\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\r\n PERMISSIONS_ACCESS_FINE_LOCATION);\r\n\r\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M\r\n && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION)\r\n != PackageManager.PERMISSION_GRANTED){\r\n\r\n requestPermissions(\r\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\r\n PERMISSIONS_ACCESS_COARSE_LOCATION);\r\n } else {\r\n isPermission = true;\r\n }\r\n }", "private void dialogPermissionReadBook() {\n android.app.AlertDialog.Builder adb = new android.app.AlertDialog.Builder(this);\n adb.setCancelable(false);\n adb.setMessage(R.string.dialogCheckPermissionContact);\n adb.setPositiveButton(R.string.btnOK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(Book.this, new String[]{android.Manifest.permission.READ_CONTACTS}, CODE_READ_BOOK);\n dialog.dismiss();\n }\n });\n adb.show();\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "@Test\n public void testRequestGrantedPermission() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // Request the permission and allow it\n BasePermissionActivity.Result firstResult = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class, () -> {\n try {\n clickAllowButton();\n getUiDevice().waitForIdle();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n });\n\n // Expect the permission is granted\n assertPermissionRequestResult(firstResult, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Request the permission and do nothing\n BasePermissionActivity.Result secondResult = requestPermissions(new String[] {\n Manifest.permission.WRITE_CONTACTS}, REQUEST_CODE_PERMISSIONS + 1,\n BasePermissionActivity.class, null);\n\n // Expect the permission is granted\n assertPermissionRequestResult(secondResult, REQUEST_CODE_PERMISSIONS + 1,\n permissions, new boolean[] {true});\n }", "private void permissionLocationRequest() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n int hasLocationPermission = checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION);\n if (hasLocationPermission != PackageManager.PERMISSION_GRANTED) {\n if (!shouldShowRequestPermissionRationale(Manifest.permission.ACCESS_FINE_LOCATION)) {\n showMessageOKCancel(\"You need to allow access to Location\",\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n });\n }\n }\n\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n // Make sure it's our original READ_CONTACTS request\n if (requestCode == READ_SMS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Read SMS permission granted\", Toast.LENGTH_SHORT).show();\n refreshSmsInbox();\n } else {\n Toast.makeText(this, \"Read SMS permission denied\", Toast.LENGTH_SHORT).show();\n }\n } else {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "void requestNeededPermissions(int requestCode);", "public void askContactsPermission(){\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M ) {\n\n ArrayList<String> permissionList=new ArrayList<String>();\n if(checkSelfPermission(Manifest.permission.READ_CONTACTS) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_CONTACTS);\n\n }\n if(checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n if(checkSelfPermission(Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED){\n\n permissionList.add(Manifest.permission.CALL_PHONE);\n }\n\n if(permissionList.size()>0) {\n ActivityCompat.requestPermissions(this, permissionList.toArray(new String[permissionList.size()]), 100);\n }\n\n //After this point you wait for callback in onRequestPermissionsResult(int, String[], int[]) overriden method\n }\n }", "private void requestLocationPermission() {\n Log.d(MainActivity.TAG,\"Requesting location permission.\");\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (shouldShowRequestPermissionRationale(\n android.Manifest.permission.ACCESS_FINE_LOCATION)) {\n Toast.makeText(this, R.string.location_permission_request_rationale, Toast.LENGTH_SHORT).show();\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n }\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n MainActivity.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Checking run time permission status\n if(requestCode == AllKeys.REQUEST_PERMISSION){\n\n // When all required permission is granted\n if (hasPermissions(this, permissions)){\n // Permission is granted so we can retrieve call list\n getCallList();\n }else{\n Toast.makeText(getApplicationContext(),this.getResources().getString(R.string.permission_denied),Toast.LENGTH_SHORT).show();\n }\n }\n }", "private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n if (requestCode == READ_SMS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Read SMS permission granted\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Read SMS permission denied\", Toast.LENGTH_SHORT).show();\n }\n\n } else {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "public void runtimePermission() {\r\n if (ButtonClickedChecked == 111) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) == PackageManager.PERMISSION_GRANTED) {\r\n selectContact();\r\n } else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.READ_CONTACTS)) {\r\n Toast.makeText(this, \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, REQUEST_CODE_READ_CONTACT);\r\n } else {\r\n selectContact();\r\n }\r\n }\r\n } else if (ButtonClickedChecked == 222) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED) {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n } else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.SEND_SMS)) {\r\n Toast.makeText(this, \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.SEND_SMS}, REQUEST_CODE_SEND_SMS);\r\n } else {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n }\r\n }\r\n } else if (ButtonClickedChecked == 333){\r\n if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {\r\n makeCall(phoneNumber);\r\n }else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.CALL_PHONE)){\r\n Toast.makeText(getApplicationContext(), \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE}, REQUEST_CODE_CALL);\r\n }else{\r\n makeCall(phoneNumber);\r\n }\r\n }\r\n }\r\n }", "private void requestCameraPermission() {\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.CALL_PHONE},\n REQUEST_CALL);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n switch (requestCode) {\n case CALL_PHONE_PERMISSION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n showCallDialog();\n }\n }\n break;\n default:\n break;\n }\n }", "public int checkCallingPermission(String permission) {\n return this.mService.checkCallingPermission(permission);\n }", "public int checkNotificationPermission() throws android.os.RemoteException;", "private void askForPermission(String permission) {\n ActivityCompat.requestPermissions(\n this,\n new String[] {Manifest.permission.ACCESS_COARSE_LOCATION},\n PERM_REQUEST_CODE\n );\n }", "private void askForLocationPermission() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n //this code will be executed on devices running on DONUT (NOT ICS) or later\n askForPermission(Manifest.permission.ACCESS_FINE_LOCATION, Extra.LOCATION);\n }\n }", "public void askPermission() {\n if (ContextCompat.checkSelfPermission(getActivity()\n , android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(getActivity(),\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n reqestLocationPermission);\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "public void requestPermissions(){\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (!ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n }\n }", "private void requestPermission() {\n boolean shouldProvideRationale = ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (shouldProvideRationale) {\n Log.i(TAG, \"requestPermission: \" + \"Displaying the permission rationale\");\n // provide a way so that user can grant permission\n\n showSnackbar(R.string.warning_txt, android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n startLocationPermissionRequest();\n }\n });\n\n } else {\n startLocationPermissionRequest();\n }\n }", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode){\n case PHONE_CALL_PERMISSION_REQUEST:\n if(grantResults.length > 0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + contactDetails.getNumbers().get(0)));\n startActivity(intent);\n }else{\n\n }\n }\n }", "public void getLocationPermission() {\n if (!isPermissionGranted())\n // get the location permission from user\n // this will prompt user a dialog to give the location permission\n requestPermissionLauncher.launch(Manifest.permission.ACCESS_FINE_LOCATION);\n /*ActivityCompat.requestPermissions(activity,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);*/\n }", "private void requestReadStoragePermission(){\n if (ActivityCompat.shouldShowRequestPermissionRationale(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)) {\n //show explanation to user\n Toast.makeText(this, \"Read storage permission is needed to send photos/videos\", Toast.LENGTH_LONG).show();\n //request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n READ_EXTERNAL_STORAGE_CODE);\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n READ_EXTERNAL_STORAGE_CODE);\n\n // READ_EXTERNAL_STORAGE_CODE is an\n // app-defined int constant. The onRequestPermissionsResult method gets the code\n }\n }", "protected void checkReceivePermission() throws InterruptedIOException {\n\t/* Check if we have permission to recieve. */\n\tif (!readPermission) {\n\t try {\n\t\tmidletSuite.checkForPermission(Permissions.SMS_RECEIVE,\n\t\t\t\t\t\t\"sms:receive\");\n\t\treadPermission = true;\n\t } catch (InterruptedException ie) {\n\t\tthrow new InterruptedIOException(\"Interrupted while trying \" +\n\t\t\t\t\t\t \"to ask the user permission\");\n\t }\n\t}\n }", "@Override\n public void onGetPermissionState(int error) {\n if (error != 0) {\n Toast.makeText(CirclePlusApp.getInstance().getApplicationContext(),\n \"Please enter correct key and check your network state. Error code: \" + error,\n Toast.LENGTH_LONG).show();\n CirclePlusApp.getInstance().mKeyRight = false;\n } else {\n if (D) {\n Toast.makeText(CirclePlusApp.getInstance().getApplicationContext(),\n \"Authentication success\", Toast.LENGTH_LONG).show();\n }\n CirclePlusApp.getInstance().mKeyRight = true;\n }\n }", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "@Override\n public void onClick(View view) {\n if (ContextCompat.checkSelfPermission(PhoneDialerActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n // cerem permisiuni de CALL\n ActivityCompat.requestPermissions(\n PhoneDialerActivity.this,\n new String[]{Manifest.permission.CALL_PHONE},\n Constants.PERMISSION_REQUEST_CALL_PHONE);\n // daca avem permisiunea de a efectua CALL\n } else {\n // generam o intentie pentru CALL\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(\"tel:\" + phoneNumberEditText.getText().toString()));\n // pornim activitatea de CALL\n startActivity(intent);\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n if (ButtonClickedChecked == 111) {\r\n if (requestCode == REQUEST_CODE_READ_CONTACT) {\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n selectContact();\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Contact not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n } else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n } else if (ButtonClickedChecked == 222) {\r\n if (requestCode == REQUEST_CODE_SEND_SMS) {\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Contact not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n } else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n }else if (ButtonClickedChecked == 333){\r\n if (requestCode == REQUEST_CODE_CALL){\r\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED){\r\n makeCall(phoneNumber);\r\n }else {\r\n Toast.makeText(getApplicationContext(), \"Call not processed\", Toast.LENGTH_SHORT).show();\r\n }\r\n }else {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n }\r\n }\r\n }", "private void showRequestPermissionsInfoAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.permission_alert_dialog_title);\n builder.setMessage(R.string.permission_dialog_message);\n builder.setPositiveButton(R.string.action_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n requestReadAndSendSmsPermission();\n }\n });\n builder.show();\n }", "private void MakeCall() {\n String number = content_txt.getText().toString();\n if (number.trim().length() > 0) {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.CALL_PHONE);\n\n if (permissionCheck != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(\n this,\n new String[]{Manifest.permission.CALL_PHONE},\n 123);\n } else {\n String dial = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_DIAL, Uri.parse(dial));\n startActivity(intent);\n }\n }\n }", "public static void verifyCallPermissions(Activity activity) {\n int permission = ActivityCompat.checkSelfPermission(activity, Manifest.permission.CALL_PHONE);\n\n if (permission != PackageManager.PERMISSION_GRANTED) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n activity,\n PERMISSIONS_CALL,\n REQUEST_CALL\n );\n }\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "void permissionGranted(int requestCode);", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(@NonNull int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (permissions.length == 0) {\n return;\n }\n boolean allPermissionsGranted = true;\n if (grantResults.length > 0) {\n for (int grantResult : grantResults) {\n if (grantResult != PackageManager.PERMISSION_GRANTED) {\n allPermissionsGranted = false;\n break;\n }\n }\n }\n if (!allPermissionsGranted) {\n boolean somePermissionsForeverDenied = false;\n for (String permission : permissions) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permission)) {\n //denied\n } else {\n if (ActivityCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_GRANTED\n && requestCode == Extra.LOCATION) {\n getLocation();\n } else {\n //set to never ask again\n somePermissionsForeverDenied = true;\n }\n }\n }\n if (somePermissionsForeverDenied) {\n final AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n alertDialogBuilder.setTitle(R.string.permissions_required)\n .setMessage(R.string.you_have_explicitly_denied_permissions_which_are_required_by_this_app_to_run_for_this_action_open_settings_go_to_permissions_and_allow_them)\n .setPositiveButton(R.string.settings, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS,\n Uri.fromParts(Extra.PACKAGE, getPackageName(), null));\n intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .setNegativeButton(R.string.cancel, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }\n } else if (requestCode == Extra.LOCATION) {\n getLocation();\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public static void requestPermission(Activity activity, int requestCode,\n PermissionHandler permissionHandler, String permission) {\n\n if (ContextCompat.checkSelfPermission(activity, permission)\n != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(activity,\n permission)) {\n showPrompt(activity, permissionHandler, permission, requestCode, false);\n } else {\n\n if (permissionHandler.isFirstTimeAsking(permission)) {\n permissionHandler.firstTimeAsking(permission, false);\n ActivityCompat.requestPermissions(activity, new String[]{permission},\n requestCode);\n } else {\n showPrompt(activity, permissionHandler, permission, requestCode, true);\n }\n }\n }\n }", "public void checkPermission(String permission, int requestCode)\n {\n if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {\n // Requesting the permission\n ActivityCompat.requestPermissions(this, new String[] { permission }, requestCode);\n }\n else {\n Toast.makeText(this, \"Permission already granted\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_READ_CONTACTS) {\n if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n }\n }\n }", "@Override\n public int checkNotificationPermission() throws android.os.RemoteException {\n android.os.Parcel _data = android.os.Parcel.obtain();\n android.os.Parcel _reply = android.os.Parcel.obtain();\n int _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n boolean _status = mRemote.transact(\n Stub.TRANSACTION_checkNotificationPermission, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readInt();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }", "private void requestPermissionAccessLocation() {\n int permissionCheck = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n Log.d(TAG, \"permissionCheck: \" + permissionCheck);\n\n if (permissionCheck == PackageManager.PERMISSION_GRANTED) {\n updateFragmentOnLocationSuccess();\n } else {\n ActivityCompat\n .requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n REQUEST_CODE_PERMISSION_LOCATION);\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\r\n private void callToHelplineNumber(String number) {\r\n Intent intentCall = new Intent(Intent.ACTION_CALL);\r\n intentCall.setData(Uri.parse(\"tel:\"+number));\r\n if (ActivityCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED)\r\n {\r\n Toast.makeText(getApplicationContext(),\"Please grant permission\",Toast.LENGTH_SHORT).show();\r\n requestPermissions();\r\n }\r\n else\r\n {\r\n startActivity(intentCall);\r\n }\r\n }", "public void getPermissiontoAccessInternet() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.INTERNET)\n != PackageManager.PERMISSION_GRANTED) {\n\n // The permission is NOT already granted.\n // Check if the user has been asked about this permission already and denied\n // it. If so, we want to give more explanation about why the permission is needed.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.INTERNET)) {\n // Show our own UI to explain to the user why we need to read the contacts\n // before actually requesting the permission and showing the default UI\n }\n\n // Fire off an async request to actually get the permission\n // This will show the standard permission request dialog UI\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNET},\n INTERNET_PERMISSIONS_REQUEST);\n }\n }", "private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }", "public void onRequestPermissionsResult(View root, int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_CALL){\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){\n makePhoneCall(root);\n }\n else{\n Toast.makeText(root.getContext(), \"Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n public void requestPermission() {\n //shouldShowRequestPermissionRationale es verdadero solamente si ya se había mostrado\n //anteriormente el dialogo de permisos y el usuario lo negó\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.SEND_SMS)) {\n } else {\n //si es la primera vez se solicita el permiso directamente\n requestPermissions(new String[]{Manifest.permission.SEND_SMS},\n MY_WRITE_EXTERNAL_STORAGE);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n // Make sure it's our original READ_CONTACTS request\n if (requestCode == INTERNET_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Internet permission granted\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Internet permission denied\", Toast.LENGTH_SHORT).show();\n }\n } else {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "private void requestPermission(){\r\n ActivityCompat.requestPermissions(activity,new String[]{Manifest.permission.ACCESS_FINE_LOCATION},1);\r\n }", "private boolean mayRequestContacts() {\n if (checkSelfPermission(READ_CONTACTS) == PackageManager.PERMISSION_GRANTED) {\n return true;\n }\n if (shouldShowRequestPermissionRationale(READ_CONTACTS)) {\n // Requests permission to read contacts if it has not been granted yet\n Snackbar.make(mEmailView, R.string.permission_rationale, Snackbar.LENGTH_INDEFINITE)\n .setAction(android.R.string.ok, new View.OnClickListener() {\n @Override\n @TargetApi(Build.VERSION_CODES.M)\n public void onClick(View v) {\n requestPermissions(new String[]{READ_CONTACTS}, REQUEST_READ_CONTACTS);\n }\n });\n } else {\n requestPermissions(new String[]{READ_CONTACTS}, REQUEST_READ_CONTACTS);\n }\n return false;\n }", "private boolean checkPermissonLocationRequest(int requestCode) {\n if (Build.VERSION.SDK_INT >= 23) {\n if (checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED\n && checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.ACCESS_FINE_LOCATION}, requestCode);\n return false;\n }\n } else {\n return true;\n }\n }", "private void checkBluetoothPermissions() {\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {\n int permissionCheck = activity.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += activity.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n ((Activity) activity).requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION},\n 1001); //Any number\n }\n } else {\n Log.d(TAG, \"checkBluetoothPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\n }\n }", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "public void makeCall(Context context){\n dbAdapter = new ContactsDbAdapter(context);\n dbAdapter.open();\n\n Cursor contactsCursor= dbAdapter.fetchAllContacts();\n if (contactsCursor.getCount()!=0){\n contactsCursor.moveToFirst();\n\n System.out.println(\"NOMBRE: \" + contactsCursor.getString(1));\n System.out.println(\"TELEFONO: \" + contactsCursor.getString(2));\n phoneNumber=contactsCursor.getString(2);\n\n try{\n\n System.out.println(\"ey\");\n\n if(ContextCompat.checkSelfPermission(context, Manifest.permission.CALL_PHONE)\n != PackageManager.PERMISSION_GRANTED){\n\n System.out.println(\"No hay permiso de llamada\");\n\n }\n\n Intent intentLlamada = new Intent(Intent.ACTION_CALL, Uri.parse(\"tel:\"+phoneNumber));\n intentLlamada.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n context.startActivity(intentLlamada);\n\n } catch (Exception e){\n System.out.println(\"err\");\n e.printStackTrace();\n }\n\n }\n\n\n\n }", "private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED\n ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_CONTACTS)\n != PackageManager.PERMISSION_GRANTED\n ) {\n\n //Request Permissions\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.READ_CONTACTS\n }, REQUEST_CODE_PERMISSION);\n return;\n }\n\n locationManager.requestLocationUpdates(\n LocationManager.GPS_PROVIDER, 0, 0,\n this);\n }", "@Override\n\t\tpublic void onCallStateChanged(int state, String incomingNumber) {\n\t\t\tswitch (state) {\n\t\t\t/* 取得手机是待机状态 */\n\t\t\tcase TelephonyManager.CALL_STATE_IDLE:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_IDLE);\n\n\t\t\t\ttry {\n\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t/* 设置手机为待机时响铃为正常模式 */\n\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_NORMAL);\n\t\t\t\t\t\taudioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为通话中 */\n\t\t\tcase TelephonyManager.CALL_STATE_OFFHOOK:\n\t\t\t\tstateTips.setText(R.string.str_CALL_STATE_OFFHOOK);\n\t\t\t\tbreak;\n\n\t\t\t/* 取得手机状态为来电 */\n\t\t\tcase TelephonyManager.CALL_STATE_RINGING:\n\t\t\t\t/* 显示来电信息 */\n\t\t\t\tstateTips.setText(getResources().getText(\n\t\t\t\t\t\tR.string.str_CALL_STATE_RINGING)\n\t\t\t\t\t\t+ incomingNumber);\n Log.i(\"电话\",phoneView.getText().toString());\n\t\t\t\t/* 判断与输入电话是否为一样,一样则转为静音模式 */\n\t\t\t\tif (incomingNumber.equals(phoneView.getText().toString())) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n\t\t\t\t\t\tif (audioManager != null) {\n\t\t\t\t\t\t\t/* 设置响铃模式为静音 */\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.setRingerMode(AudioManager.RINGER_MODE_SILENT);\n\t\t\t\t\t\t\taudioManager\n\t\t\t\t\t\t\t\t\t.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\tToast.makeText(MainActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.str_msg),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_LONG).show();\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tstateTips.setText(e.toString());\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuper.onCallStateChanged(state, incomingNumber);\n\n\t\t\tetPhone.setOnKeyListener(new EditText.OnKeyListener() {\n\t\t\t\tpublic boolean onKey(View v, int keyCode, KeyEvent event) {\n\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t/* 同步显示TextView */\n\t\t\t\t\tphoneView.setText(etPhone.getText());\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t});\n\t\t}", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "private void requestPermissions() {\n mWaiting4Permission = Boolean.TRUE;\n\n ActivityCompat.requestPermissions(this, permissionsToAsk(), PERMISSIONS_REQUEST_CODE);\n }", "public boolean CC_SetMobileLoginAccessState(java.lang.String accessToken, java.lang.String accessCode, java.lang.String deviceID, java.lang.String CCCode, java.lang.String activity) throws java.rmi.RemoteException;", "boolean isReadAccess();", "private boolean isReadAudioAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "@Override\n public void onClick(View v) {\n number = \"112\";\n String s = \"tel:\" + number;\n Intent intent = new Intent(Intent.ACTION_CALL);\n intent.setData(Uri.parse(s));\n if (ActivityCompat.checkSelfPermission(MainActivity.this, Manifest.permission.CALL_PHONE) != PackageManager.PERMISSION_GRANTED) {\n return;\n }\n startActivity(intent);\n\n //for Location:\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (getApplicationContext().checkSelfPermission(Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n\n fusedLocationProviderClient.getLastLocation()\n .addOnSuccessListener(new OnSuccessListener<Location>() {\n @Override\n public void onSuccess(Location location) {\n if (location != null) {\n latitude = location.getLatitude();\n longitude = location.getLongitude();\n\n sendsms();\n\n }\n }\n });\n\n\n } else\n requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, 0);\n }\n }", "private void getLocationPermission(){\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED){\n locationAccess = true;\n } else {\n locationAccess = false;\n ActivityCompat.requestPermissions(this, new String[]{Manifest.permission.ACCESS_FINE_LOCATION}, REQUEST_LOCATION_PERMISSION);\n }\n }", "private void callPermissionSettings() {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", HomeActivity.this.getApplicationContext().getPackageName(), null);\n intent.setData(uri);\n startActivityForResult(intent, 300);\n }" ]
[ "0.83754706", "0.72339684", "0.668558", "0.66776806", "0.6615996", "0.6019767", "0.60177827", "0.6013293", "0.599237", "0.5975478", "0.59671783", "0.59249735", "0.59182787", "0.58690506", "0.585425", "0.5839011", "0.5806926", "0.57610637", "0.5659537", "0.5610642", "0.5589625", "0.55671203", "0.5563548", "0.5532812", "0.5528115", "0.5510467", "0.5509154", "0.54971635", "0.5416441", "0.5402969", "0.5397481", "0.5390888", "0.5381076", "0.53730595", "0.53489125", "0.53436726", "0.5326285", "0.5320948", "0.5307888", "0.53072995", "0.5299294", "0.5293217", "0.52931017", "0.5283889", "0.5271616", "0.5241295", "0.5228181", "0.5226743", "0.52260405", "0.52129644", "0.5212863", "0.52121496", "0.51928407", "0.51895326", "0.5176457", "0.51552075", "0.5144654", "0.51195073", "0.5114523", "0.51100737", "0.5086946", "0.5085574", "0.5082718", "0.50810564", "0.5080226", "0.5079166", "0.5072877", "0.50684905", "0.5066748", "0.5066234", "0.5064505", "0.5063817", "0.5058583", "0.50547665", "0.5053923", "0.5052574", "0.50484014", "0.50227165", "0.50064063", "0.4987642", "0.49858966", "0.49737895", "0.49686322", "0.49665657", "0.49556187", "0.49428606", "0.49281055", "0.49236265", "0.4920694", "0.49199378", "0.49143907", "0.49093834", "0.49082735", "0.4904713", "0.48928183", "0.48850086", "0.4879507", "0.48790196", "0.4877928", "0.48762664" ]
0.7964459
1
Callback received when a permissions request has been completed.
@Override public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { if (requestCode == MY_PERMISSIONS_REQUEST_READ_PHONE_STATE) { // Received permission result for READ_PHONE_STATE permission.est."); // Check if the only required permission has been granted if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { // READ_PHONE_STATE permission has been granted, proceed with displaying IMEI Number //alertAlert(getString(R.string.permission_available_read_phone_state)); doPermissionGrantedStuffs(); } else { alertAlert("permissions not granted read phone state"); addImeiCard.setVisibility(View.VISIBLE); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }", "@Override\n public void onAction(List<String> permissions) {\n Log.e(TAG, \"permission success\");\n callback.onSuccess(permissions);\n\n }", "public interface PermissionCallbacks {\n /**\n * request successful list\n * @param requestCode\n * @param perms\n */\n void onPermissionsGranted(int requestCode, List<String> perms);\n\n /**\n * request denied list\n * @param requestCode\n * @param perms\n */\n void onPermissionsDenied(int requestCode, List<String> perms);\n}", "void permissionGranted(int requestCode);", "void requestNeededPermissions(int requestCode);", "@Override\n public void onPermissionGranted() {\n }", "@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"Permission result received\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n permissionsManager.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n }", "@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }", "@Override\n public void onPermissionGranted() {\n }", "public void onPermissionGranted() {\n\n }", "public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Checking run time permission status\n if(requestCode == AllKeys.REQUEST_PERMISSION){\n\n // When all required permission is granted\n if (hasPermissions(this, permissions)){\n // Permission is granted so we can retrieve call list\n getCallList();\n }else{\n Toast.makeText(getApplicationContext(),this.getResources().getString(R.string.permission_denied),Toast.LENGTH_SHORT).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == PERMISSION_REQUEST) {\n // Do some action after result return of a permission request\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n for (int i = 0; i < grantResults.length; i++) {\n Log.d(\"onReqPermissionsResult\", \"grantResults[\" + i + \"]= \" + grantResults[i] + \" , Granted = \" + PackageManager.PERMISSION_GRANTED);\n }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions,\n int[] grantResults) {\n mConfiguration.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n AndPermission.onRequestPermissionsResult(requestCode, permissions, grantResults, listener);\n }", "void askForPermissions();", "@Override\r\n public void onRequestPermissionResult(int requestCode, String[] permissions,\r\n int[] grantResults) throws JSONException\r\n {\r\n if (mPermissionCallbackContext == null) {\r\n Log.e(TAG, \"No context - got a permission result we didnt ask for...??? \");\r\n return;\r\n }\r\n\r\n for(int r:grantResults)\r\n {\r\n if(r == PackageManager.PERMISSION_DENIED)\r\n {\r\n Log.d(TAG, \"User refused us access to the camera - there is nothing we can do\");\r\n return;\r\n }\r\n }\r\n\r\n int whatNext = requestCode;\r\n CallbackContext ctx = mPermissionCallbackContext;\r\n mPermissionCallbackContext = null; // if there's a race-condition, let's make life hard for it...\r\n switch (whatNext) {\r\n case CALL_START_WHEN_DONE:\r\n retryStartScanning(ctx);\r\n break;\r\n default:\r\n Log.e(TAG, \"Unexpected requestCode - got a permission result we didnt ask for...???\");\r\n ctx.error(\"Application error requesting permissions - see the log for details\");\r\n PluginResult r = new PluginResult(PluginResult.Status.ERROR);\r\n ctx.sendPluginResult(r);\r\n break;\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case 1: {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n } else {\n }\n return;\n }\n }\n }", "public interface IPermissionCallback {\n /**\n * Gets called if the permission/permissions you requested are granted successfully by the user.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n */\n void permissionGranted(int requestCode);\n\n /**\n * Gets called if the permission/permissions you requested are denied by the user.\n * If user denies a permission once, next time that permission comes with a check box(never ask again).\n * If user check that box and denies again, no permission dialog is shown to the user next time and permission will be denied automatically.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n * @param willShowCheckBoxNextTime - For a request of multiple permissions at the same time, you will always receive false.\n */\n void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);\n}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if(grantResults.length>0 && grantResults[0]== PackageManager.PERMISSION_GRANTED){\n Log.v(\"Permission: \",permissions[0]+ \"was \"+grantResults[0]);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults)\n {\n switch (requestCode)\n {\n case 0:\n {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n }\n else\n {\n }\n return;\n }\n }\n }", "public static void onRequestPermissionsResult(Activity activity, int requestCode, int[] grantResults) {\n PermissionsRequestCallback callback = sCallbacks.get(requestCode);\n Log.i(TAG, \"onRequestPermissionsResult callback = \" + callback + \",requestCode = \" + requestCode);\n\n if (callback == null) {\n Log.e(TAG, \"onRequestPermissionsResult callback is null.\");\n return;\n } else {\n sCallbacks.remove(requestCode);\n }\n\n if (BuildUtil.getTargetSdkVersion(activity) < 23\n && !PermissionUtil.hasPermissions(activity, callback.onGetPermissions())) {\n callback.onPermissionDenied();\n return;\n }\n\n if (PermissionUtil.verifyPermissions(grantResults)) {\n callback.onPermissionAllowed();\n } else {\n callback.onPermissionDenied();\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\r\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\r\n EasyPermissions.onRequestPermissionsResult( requestCode, permissions, grantResults, this);\r\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Permission Granted!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionGranted(requestCode);\n } else {\n Toast.makeText(this, \"Permission Denied!\", Toast.LENGTH_SHORT).show();\n permissionResponseHandler.permissionDenied(requestCode);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case RequestPermissionCode:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Permission was granted\n Log.d(TAG, \"onRequestPermissionsResult: Permission Granted\");\n Toast.makeText(MainActivity.this, \"Permission Granted\", Toast.LENGTH_SHORT).show();\n } else {\n //Permission Denied\n Log.d(TAG, \"onRequestPermissionsResult: Permission Denied\");\n Toast.makeText(MainActivity.this, \"Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n return;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n Log.d(TAG, \"requestCode:\" + requestCode);\n int inx = 0;\n for(String i : permissions) {\n Log.d(TAG, \"permission: \" + i + \", \" + grantResults[inx]);\n if(i.equals(Manifest.permission.ACCESS_COARSE_LOCATION)){\n if(grantResults[inx] == 0){\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n }\n else{\n finish();\n }\n }\n }\n /*\n if (requestCode == PERMISSION_REQUEST_COARSE_LOCATION) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n mBluetoothAdapter = BluetoothAdapter.getDefaultAdapter();\n }\n */\n }", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n boolean flag = true;\n switch (requestCode) {\n case RESULT_PERMISSION: {\n if (grantResults.length == 0)\n flag = false;\n else {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n flag = false;\n break;\n }\n }\n }\n close(flag);\n }\n }\n }", "private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n RequestPermissionsResultCallback callback = this.j.remove(Integer.valueOf(requestCode));\n if (callback != null) {\n callback.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(\"INFO\", \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(\"INFO\", \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n getLastLocation();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n Log.v(TAG, \"onPermissionsResult counts: \" + permissions.length + \" : \" + grantResults.length);\n mSettingsManager.set(\n SettingsManager.SCOPE_GLOBAL,\n Keys.KEY_HAS_SEEN_PERMISSIONS_DIALOGS,\n true);\n\n if (mShouldRequestCameraPermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestCamera] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasCameraPermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n if (mShouldRequestMicrophonePermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestMicrophone] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasMicrophonePermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n if (mShouldRequestStoragePermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestStorage] ==\n PackageManager.PERMISSION_GRANTED) {\n mFlagHasStoragePermission = true;\n } else {\n handlePermissionsFailure();\n }\n }\n\n if (mShouldRequestLocationPermission) {\n if (grantResults.length > 0 && grantResults[mIndexPermissionRequestLocation] ==\n PackageManager.PERMISSION_GRANTED) {\n // Do nothing\n } else {\n // Do nothing\n }\n }\n\n if (mFlagHasCameraPermission && mFlagHasMicrophonePermission && mFlagHasStoragePermission) {\n handlePermissionsSuccess();\n }\n }", "@Override\n public void onRequestRefuse(String permissionName) {\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions,\n int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Forward results to EasyPermissions\n EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);\n }", "private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n }", "private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n int length = grantResults.length;\n if(length > 0)\n {\n int grantResult = grantResults[0];\n\n if(grantResult == PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(getApplicationContext(), \"You allowed permission.\", Toast.LENGTH_LONG).show();\n }else\n {\n Toast.makeText(getApplicationContext(), \"You denied permission.\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestAllow(String permissionName) {\n }", "void onRequestPermissionsResult(int reqCode, String[] permissions, int[] grants) {\n if (reqCode == REQ_PERMISSIONS) {\n Log.d(TAG, \"onRequestPermissionsResult\");\n for (int i = 0; i < permissions.length; i++) {\n if (grants[i] != PackageManager.PERMISSION_GRANTED) {\n String text = activity.getString(R.string.toast_scanning_requires_permission, permissions[i]);\n Toast.makeText(activity, text, Toast.LENGTH_SHORT).show();\n return;\n }\n }\n startScan1();\n }\n }", "@Override\n public void onRequestPermissionsResult (int requestCode, String[] permissions,\n int[] grantResults) {\n int index = 0;\n Map<String, Integer> PermissionsMap = new HashMap<String, Integer>();\n for (String permission : permissions){\n PermissionsMap.put(permission, grantResults[index]);\n index++;\n }\n\n if((PermissionsMap.get(Manifest.permission.ACCESS_FINE_LOCATION) != 0)\n || PermissionsMap.get(Manifest.permission.ACCESS_COARSE_LOCATION) != 0){\n Toast.makeText((AppCompatActivity)getActivity(), \"Location permission is a must\", Toast.LENGTH_SHORT).show();\n// finish();\n }\n else\n {\n// this.ble.initializeBle((AppCompatActivity)getActivity());\n }\n }", "@Override\n\t\tfinal public FREObject call(FREContext context, FREObject[] args) {\n\t\t\ttry {\n\t\t\t\tif (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP_MR1) {\n\t\t\t\t\tActivity act = context.getActivity();\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\tfinal FREArray array = (FREArray) args[0];\n\t\t\t\t\tfinal int lng = (int) array.getLength();\n\t\t\t\t final String[] permissions = new String[(int) array.getLength()];\n\t\t\t\t \n\t\t\t\t for (int i = 0; i < lng; i += 1) {\n\t\t\t\t \tString permission = array.getObjectAt(i).getAsString();\n\t\t\t\t \tif(permission != null) permissions[i] = permission;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t if(PermissionsExtension.VERBOSE > 0) Log.d(PermissionsExtension.TAG, \"Checking permissions: \"+ permissions);\n\t\t\t\t \n\t\t\t\t\tfinal Intent intent = new Intent(act, PermissionsRequestActivity.class);\n\t\t\t\t\tintent.putExtra(\"permissions\", permissions);\n\t\t\t\t\tact.startActivity(intent);\n\t\t\t\t\t\n\t\t\t\t\tact.overridePendingTransition(0,0);\n\t\t\t\t\t\n\t\t\t\t\treturn FREObject.newObject(true); //true means that we should wait for callback on AS3 side\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\treturn FREObject.newObject(false); //false means that we can continue without waiting for callback\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n /** Se validan los permisos devueltos de la socilicitud y en caso de ser haber sido aceptados por el usuario\n * el metodo validateRequestPermissionCode envia a la actividad solicitada, de acuerdo con el identificador\n * tambie se alamcena el valor devuelto ya que se utilizara para determinar si hay permisos de almacenamiento,\n * los permisos de Camara y Galeria no hacen uso de esta variable unicamente*/\n permissionStorgare= metodosImagenes.validateRequestPermissionCode(requestCode,permissions,grantResults,CreacionPerfiles.this);\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }", "private void requestPermissions() {\n mWaiting4Permission = Boolean.TRUE;\n\n ActivityCompat.requestPermissions(this, permissionsToAsk(), PERMISSIONS_REQUEST_CODE);\n }", "protected void handlePermissionResult() {\n for (String permission : Constants.PERMISSIONS_NEEDED) {\n if (mUtils.hasPermission(permission)) {\n // User granted this permission, check for next one\n continue;\n }\n // User not granted permission\n if (SpyState.Listeners.permissionsListener != null) // Let app handle this\n {\n SpyState.Listeners.permissionsListener.onPermissionDenied(!mActivity.shouldShowRequestPermissionRationale(permission));\n return;\n }\n\n AlertDialog.Builder permissionRequestDialog = new AlertDialog.Builder(mActivity)\n .setTitle(R.string.dialog_permission_title)\n .setMessage(R.string.dialog_permission_message)\n .setCancelable(false)\n .setNegativeButton(R.string.exit,\n (dialog, whichButton) -> {\n mUtils.showToast(R.string.closing_app);\n mActivity.finish();\n });\n if (!mActivity.shouldShowRequestPermissionRationale(permission)) {\n // User clicked on \"Don't ask again\", show dialog to navigate him to\n // settings\n permissionRequestDialog\n .setPositiveButton(R.string.go_to_settings,\n (dialog, whichButton) -> {\n Intent intent =\n new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri =\n Uri.fromParts(\"package\", mActivity.getPackageName(), null);\n intent.setData(uri);\n mActivity.startActivityForResult(intent,\n OPEN_SETTINGS_REQUEST_CODE);\n })\n .show();\n } else {\n // User clicked on 'deny', prompt again for permissions\n permissionRequestDialog\n .setPositiveButton(R.string.try_again,\n (dialog, whichButton) -> grantPermissions())\n .show();\n }\n return;\n }\n Log.i(TAG, \"All required permissions have been granted!\");\n }", "@TargetApi(23)\r\n public void requestPermission() {\r\n ArrayList<String> arrayList;\r\n String[] strArr = this.mPermissions;\r\n for (String str : strArr) {\r\n if (this.mActivity.checkCallingOrSelfPermission(str) != 0) {\r\n if (shouldShowRequestPermissionRationale(str) || !PermissionUtils.isNeverShowEnabled(PermissionUtils.getRequestCode(str))) {\r\n if (this.normalPermissions == null) {\r\n this.normalPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.normalPermissions;\r\n } else {\r\n if (this.settingsPermissions == null) {\r\n this.settingsPermissions = new ArrayList<>(this.mPermissions.length);\r\n }\r\n arrayList = this.settingsPermissions;\r\n }\r\n arrayList.add(str);\r\n }\r\n }\r\n Log.d(TAG, \"requestPermission() settingsPermissions:\" + this.settingsPermissions);\r\n Log.d(TAG, \"requestPermission() normalPermissions:\" + this.normalPermissions);\r\n ArrayList<String> arrayList2 = this.normalPermissions;\r\n if (arrayList2 == null || arrayList2.size() <= 0) {\r\n ArrayList<String> arrayList3 = this.settingsPermissions;\r\n if (arrayList3 == null || arrayList3.size() <= 0) {\r\n IGrantedTask iGrantedTask = this.mTask;\r\n if (iGrantedTask != null) {\r\n iGrantedTask.doTask();\r\n }\r\n } else {\r\n Activity activity = this.mActivity;\r\n PermissionUtils.showPermissionSettingsDialog(activity, activity.getResources().getString(R.string.app_name), this.settingsPermissions, true);\r\n this.settingsPermissions = null;\r\n }\r\n finishFragment();\r\n return;\r\n }\r\n requestPermissions((String[]) this.normalPermissions.toArray(new String[this.normalPermissions.size()]), 5003);\r\n this.normalPermissions = null;\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n presenter.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n //Passing request code to request for the permissions\n switch (requestCode) {\n case WRITE_REQUEST_CODE:\n if(grantResults[0] == PackageManager.PERMISSION_GRANTED){\n Toast.makeText(getApplicationContext(), \"Permission Granted \", //Toast Message\n Toast.LENGTH_SHORT).show();\n }\n else{\n Toast.makeText(getApplicationContext(), \"Permission Denied \", //Toast Message\n Toast.LENGTH_SHORT).show();\n\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n // getAddress();\n } }\n\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == PERMISSION_REQUEST_CODE) {\n if (grantResults.length > 0) {\n\n // after requesting permissions we are showing\n // users a toast message of permission granted.\n boolean writeStorage = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n boolean readStorage = grantResults[1] == PackageManager.PERMISSION_GRANTED;\n\n if (writeStorage && readStorage) {\n Toast.makeText(this, \"Permission Granted..\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"Permission Denied.\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == tag) {\r\n\r\n //If permission is granted\r\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\r\n\r\n //Displaying a toast\r\n Toast.makeText(this, \"Permission granted \", Toast.LENGTH_LONG).show();\r\n } else {\r\n //Displaying another toast if permission is not granted\r\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String permissions[], @NonNull int[] grantResults) {\n switch (requestCode) {\n case REQUEST_PERMISSION_WRITE:\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n Toast.makeText(this, \"External storage permission granted.\",\n Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(this, \"You must grant permission!\", Toast.LENGTH_SHORT).show();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(\n int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQ:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n fineLocationPermissionGranted();\n }\n }\n }", "protected void setPermissions(){\n //Set permissions\n //READ_PHONE_STATE\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED ||\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED\n ) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.RECORD_AUDIO)) {\n //Show an explanation to the user *asynchronously* -- don't block\n //this thread waiting for the user's response! After the user\n //sees the explanation, request the permission again.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n } else {\n //No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION, Manifest.permission.CAMERA,Manifest.permission.READ_PHONE_STATE},\n GET_PERMISSION);\n\n //MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n //app-defined int constant. The callback method gets the\n //result of the request.\n }\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n Log.d(TAG, \"onRequestPermissionsResult()\");\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == REQ_PERMISSION) {\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted\n getLastKnownLocation();\n\n } else {\n // Permission denied\n permissionsDenied();\n }\n }\n }", "public void requestPermissions(String[] permissions, int requestCode, RequestPermissionsResultCallback callback) {\n this.j.put(Integer.valueOf(requestCode), callback);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n try {\n switch (requestCode) {\n case REQUEST_CODE_ASK_PERMISSIONS_RECORD_AUDIO:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 121);\n }\n break;\n\n case REQUEST_CODE_ASK_PERMISSIONS_STORAGE:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission Granted\n checkRuntimePermisson(false);\n } else {\n // Permission Denied\n utils.showAlert(ctx, (InterfaceAlertDissmiss) MicManualFragment.this, ctx.getResources().getString(R.string.txtPermissionMessageMic), ctx.getResources().getString(R.string.txtPermissionRequired),\n ctx.getResources().getString(R.string.txtRetry), ctx.getResources().getString(R.string.Cancel), 1234);\n }\n break;\n\n default:\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }\n } catch (Exception e) {\n logException(e, \"MicManualFragment_onRequestPermissionsResult()\");\n }\n\n }", "@Override\n @TargetApi(23)\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n mCameraPermissionManager.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n EasyPermissions.onRequestPermissionsResult(\n requestCode, permissions, grantResults, this);\n }", "public void onRequestPermissionsResult(@NonNull Activity activity, int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n List<String> declinedPermissions = handler.parseRequestResult(requestCode, permissions, grantResults);\n\n if (declinedPermissions.isEmpty()) {\n Log.v(TAG, \"All permissions were granted!\");\n requestAuth(activity, authenticationRequestCode);\n } else if (callback != null) {\n Log.e(TAG, \"Permission Request failed. Some permissions were not granted!\");\n String message = String.format(activity.getString(R.string.com_auth0_webauth_permission_missing_description), declinedPermissions);\n Dialog permissionDialog = new AlertDialog.Builder(activity)\n .setTitle(R.string.com_auth0_webauth_permission_missing_title)\n .setMessage(message)\n .setPositiveButton(android.R.string.ok, null)\n .create();\n callback.onFailure(permissionDialog);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission granted.\n getLastLocation();\n } else {\n // Permission denied.\n\n // Notify the user via a SnackBar that they have rejected a core permission for the\n // app, which makes the Activity useless. In a real app, core permissions would\n // typically be best requested during a welcome-screen flow.\n\n // Additionally, it is important to remember that a permission might have been\n // rejected without asking the user for permission (device policy or \"Never ask\n // again\" prompts). Therefore, a user interface affordance is typically implemented\n // when permissions are denied. Otherwise, your app could appear unresponsive to\n // touches or interactions which have required permissions.\n showSnackbar(R.string.permission_denied_explanation, R.string.settings,\n new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Build intent that displays the App settings screen.\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n });\n }\n }\n }", "public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n permissionUtils.onRequestPermissionsResult(requestCode,permissions,grantResults);\n }", "private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (!ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n } else {\n // Permission has already been granted\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n if (grantResults.length > 0\n && !(grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Without granting all permissions the app may not work properly. Please consider granting this permission in settings\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n EasyPermissions.onRequestPermissionsResult(requestCode, permissions, grantResults, this);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults)\n {\n super .onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == 101) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n else if (requestCode == 100) {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"Storage Permission Granted\", Toast.LENGTH_SHORT).show();\n }\n else {\n Toast.makeText(this, \"Storage Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n }\n }", "@TargetApi(23)\n @Override\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n // Check for granted permission and remove from missing list\n if (requestCode == REQUEST_PERMISSION_CODE) {\n for (int i = grantResults.length - 1; i >= 0; i--) {\n if (grantResults[i] == PackageManager.PERMISSION_GRANTED) {\n missingPermission.remove(permissions[i]);\n }\n }\n }\n // If there is enough permission, we will start the registration\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else {\n Toast.makeText(getApplicationContext(), \"Missing permissions!!!\", Toast.LENGTH_LONG).show();\n }\n }", "@Override\n public void onRequestPermissionsResult(final int iRequestCode, @NotNull final String xstrPermissions[], @NotNull final int[] xiGrantResults) {\n boolean bAllPermissionsGranted = true;\n if (iRequestCode == PERMISSION_GALLERY) {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n } else {\n for (int iPermission : xiGrantResults) {\n if (iPermission != PackageManager.PERMISSION_GRANTED) {\n bAllPermissionsGranted = false;\n break;\n }\n }\n }\n\n // If we have all the needed permissions, trigger directly the capture button handler\n if (bAllPermissionsGranted) {\n if (iRequestCode == PERMISSION_GALLERY) {\n onLaunchGallerySelection();\n } else {\n gotToListing();\n }\n }\n // Otherwise, display an alert dialog indicating that the sample needs those permissions\n else {\n final AlertDialog.Builder objAlertBuilder = new AlertDialog.Builder(HomeActivity.this, R.style.PopupTheme);\n objAlertBuilder.setTitle(R.string.about_permission)\n .setMessage(R.string.dokmee_permission)\n .setPositiveButton(R.string.ok, null)\n .setIcon(android.R.drawable.ic_dialog_alert)\n .show();\n }\n }", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n if (requestCode != REQUEST_CODE_REQUIRED_PERMISSIONS) {\n return;\n }\n\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"No Permission\", Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n }\n recreate();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n if (requestCode == REQUEST_PERMISSION) {\n HashMap<String, Integer> permissionResult = new HashMap<>();\n int deniedCount = 0;\n //count denied permission\n for (int i = 0; i < grantResults.length; i++) {\n if (grantResults[i] == PackageManager.PERMISSION_DENIED) {\n permissionResult.put(permission[i], grantResults[i]);\n deniedCount++;\n }\n }\n if (deniedCount == 0)\n deviceSettings = true;\n else {\n for (Map.Entry<String, Integer> entry : permissionResult.entrySet()) {\n String permName = entry.getKey();\n int permResult = entry.getValue();\n // alert the user that the application needs the permissions\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, permName)) {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Camera, Read Contacts and Write External\" +\n \" Storage permissions are required to do the task.\");\n builder.setTitle(\"Please grant those permissions\");\n //create alert dialog\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n deviceSettings = checkDeviceSettings();\n }\n });\n builder.setNeutralButton(\"Cancel\", null);\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n }\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n switch (requestCode) {\n case PERMISSION_REQUEST:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if ((ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED)) {\n openSongsList();\n permissionGranted = true;\n }\n } else {\n closeNow();\n }\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n\n Log.d(TAG, \"onRequestPermissionsResult: \"+requestCode);\n\n switch (requestCode) {\n case PERMISSION_REQUEST_COARSE_LOCATION:\n Log.d(TAG, \"grantResults.length: \"+grantResults.length);\n if(grantResults.length>0){\n Log.d(TAG, \"grantResults[0]: \"+grantResults[0]);\n }\n\n if (grantResults.length>0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // TODO request success\n\n startScan();\n }else {\n Toast.makeText(context, \"Bluetooth need some permisssions ,please grante permissions and try again !\", Toast.LENGTH_SHORT).show();\n }\n break;\n\n }\n }", "public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n if (requestCode == PETICION_DE_PERMISOS) {\n if (grantResults.length > 0) {\n boolean todosLosPemisosOk = true;\n for (int i = 0; i < permissions.length; i++) {\n if (!(grantResults[i] == PackageManager.PERMISSION_GRANTED)) {\n todosLosPemisosOk = false;\n }\n }\n if (todosLosPemisosOk) {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE CUANDO HAY PERMISOS ---------------\n //-- LO NORMAL ES LLAMAR A UN METODO QUE COMPLETE EL ONCREATE ---------------\n //onCreate_conAccionesSoloConPermiso();\n\n } else {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE SI NO HAY PERMISOS ---------------\n //finish(); // algun permiso no se otorgó, terminamos la actividad, no se deja seguir\n }\n } else {\n //-- RECORDAR HACER AQUI LO QUE SE DESEE SI NO HAY PERMISOS ---------------\n //finish(); // se canceló al solicitar permisos, terminamos la actividad, no se deja seguir\n }\n }\n }", "public interface PermissionFailDefaultCallBack {\r\n void onRequestRefuse(int requestCode, String refuseTip);\r\n void onRequestForbid(int requestCode, String forbidTip);\r\n}", "@CallSuper\n @Override\n public void onRequestPermissionsResult(\n int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_CODE_REQUIRED_PERMISSIONS) {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n Toast.makeText(this, \"error: missing permissions\", Toast.LENGTH_LONG).show();\n finish();\n return;\n }\n }\n recreate();\n }\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case FILEPICKER_PERMISSIONS: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(\n ct5.this,\n \"Permission granted! Please click on pick a file once again.\",\n Toast.LENGTH_SHORT\n ).show();\n } else {\n Toast.makeText(\n ct5.this,\n \"Permission denied to read your External storage :(\",\n Toast.LENGTH_SHORT\n ).show();\n }\n\n return;\n }\n }\n }", "@Override\r\n public void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults) {\n switch (requestCode) {\r\n case REQUEST_AUDIO_PERMISSION_CODE:\r\n if (grantResults.length > 0) {\r\n boolean permissionToRecord = grantResults[0] == PackageManager.PERMISSION_GRANTED;\r\n boolean permissionToStore = grantResults[1] == PackageManager.PERMISSION_GRANTED;\r\n if (permissionToRecord && permissionToStore) {\r\n Toast.makeText(getApplicationContext(), \"Permission Granted\", Toast.LENGTH_LONG).show();\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Permission Denied\", Toast.LENGTH_LONG).show();\r\n }\r\n }\r\n break;\r\n }\r\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n if (requestCode == REQUEST_DANGEROUS_PERMISSION) {\n boolean isGranted = true;\n for (int grantResult : grantResults) {\n isGranted = isGranted && grantResult == PackageManager.PERMISSION_GRANTED;\n }\n if (isGranted) {\n locationPermission = true;\n readPhoneStatePermission = true;\n Intent result = new Intent();\n setResult(RESULT_OK, result);\n finish();\n // doBindBleMessagingService();\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n\n } else {\n requestDangerousPermission();\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n //Depending on whether the request is audio or picture, attempt to grant request\n switch (requestCode) {\n case REQUEST_RECORD_AUDIO_PERMISSION:\n permissionToRecordAccepted = grantResults[0] == PackageManager.PERMISSION_GRANTED;\n break;\n case CAMERA_REQUEST:\n if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText(this, \"camera permission granted\", Toast.LENGTH_LONG).show();\n } else {\n Toast.makeText(this, \"camera permission denied\", Toast.LENGTH_LONG).show();\n }\n break;\n }\n\n //If permission to record is denied, close request.\n if (!permissionToRecordAccepted) {\n\n finish();\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case REQUEST_READ_PHONE_STATE:\n if ((grantResults.length > 0) && (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n //TODO\n }\n break;\n\n default:\n break;\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,\n @NonNull int[] grantResults) {\n Log.i(TAG, \"onRequestPermissionResult\");\n if (requestCode == REQUEST_PERMISSIONS_REQUEST_CODE) {\n if (grantResults.length <= 0) {\n // If user interaction was interrupted, the permission request is cancelled and you\n // receive empty arrays.\n Log.i(TAG, \"User interaction was cancelled.\");\n } else if (grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n // Permission was granted.\n mService.requestLocationUpdates();\n } else {\n // Permission denied.\n setButtonsState(false);\n Snackbar.make(\n findViewById(R.id.drawer_layout),\n R.string.permission_denied_explanation,\n Snackbar.LENGTH_INDEFINITE)\n .setAction(R.string.settings, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // Build intent that displays the App settings screen.\n Intent intent = new Intent();\n intent.setAction(\n Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\",\n BuildConfig.APPLICATION_ID, null);\n intent.setData(uri);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n }\n })\n .show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Displaying a toast\n Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults){\n switch (requestCode){\n case MY_PERMISSIONS_LOCATIONS: {\n if(grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED){\n mFusedClient.requestLocationUpdates(mLocationRequest,mLocationCallback, Looper.myLooper());\n }\n } else {\n Toast.makeText(this, \"permission denied\", Toast.LENGTH_LONG).show();\n }\n return;\n }\n }\n }", "@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getPermissions();\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[],\n int[] grantResults) {\n //In our example we only have one permission, but we could have more\n //we use the requestCode to distinguish them\n switch (requestCode) {\n case LOCATION_PERMISSION: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n permissionGranted = true;\n checkAndStartLocationUpdate();\n } else {\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n AlertDialog.Builder builder = new AlertDialog.Builder(AggStato.this);\n builder.setMessage(\"Questa app necessita dei permessi di locazione\").setTitle(\"Login Error\");\n\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n }\n });\n\n AlertDialog dialog = builder.create();\n dialog.show();\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request\n }\n }", "public void onRequestPermissionResult(int requestCode, String[] permissions, int[] grantResults) throws JSONException\n {\n PluginResult result;\n for (int r : grantResults) {\n if (r == PackageManager.PERMISSION_DENIED) {\n Log.d(LOG_TAG, \"Permission Denied!\");\n result = new PluginResult(PluginResult.Status.ILLEGAL_ACCESS_EXCEPTION);\n this.callbackContext.sendPluginResult(result);\n return;\n }\n }\n startCamera(requestCode, this.callbackContext, this.reqArgs);\n }", "@Override\n public void onSucceed(int requestCode, List<String> grantedPermissions) {\n if (requestCode == PERMISSION_CODE_WRITE_EXTERNAL_STORAGE) {\n getFile(rootPath);\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n if (requestCode == STORAGE_PERMISSION_CODE) {\n\n //If permission is granted\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Displaying a toast\n Toast.makeText(this, \"Permission granted now you can read the storage\", Toast.LENGTH_LONG).show();\n } else {\n //Displaying another toast if permission is not granted\n Toast.makeText(this, \"Oops you just denied the permission\", Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n\n //Checking the request code of our request\n if(requestCode == STORAGE_PERMISSION_CODE){\n\n //If permission is granted\n if(grantResults.length >0 && grantResults[0] == PackageManager.PERMISSION_GRANTED){\n\n //Displaying a toast\n Toast.makeText(this,\"Permission granted now you can read the storage\",Toast.LENGTH_LONG).show();\n }else{\n //Displaying another toast if permission is not granted\n Toast.makeText(this,\"Oops you just denied the permission\",Toast.LENGTH_LONG).show();\n }\n }\n }", "@Override\n public void onRequestPermissionsResult(int requestCode,\n String permissions[], int[] grantResults) {\n switch (requestCode) {\n case ACCESS_LOCATION_CODE: {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0\n && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n // permission was granted, yay! Do the\n // contacts-related task you need to do.\n mLocationPermissionsGranted = true;\n\n } else {\n\n // permission denied, boo! Disable the\n // functionality that depends on this permission.\n mLocationPermissionsGranted = false;\n }\n return;\n }\n\n // other 'case' lines to check for other\n // permissions this app might request.\n }\n }" ]
[ "0.7307336", "0.7307336", "0.7267918", "0.6999627", "0.68490314", "0.6796219", "0.67612785", "0.67542094", "0.6754114", "0.6750372", "0.67407227", "0.67374456", "0.67353004", "0.66154015", "0.65923184", "0.65722334", "0.6563058", "0.6555676", "0.6520609", "0.6518065", "0.6514363", "0.65003914", "0.64532596", "0.64490074", "0.6419994", "0.6415919", "0.6412765", "0.64078665", "0.63960475", "0.6387032", "0.6380264", "0.6375363", "0.63714564", "0.63711375", "0.6362848", "0.6356779", "0.6342518", "0.63154894", "0.63010085", "0.6294232", "0.6292487", "0.62790114", "0.6278866", "0.62684965", "0.62669843", "0.6251252", "0.62511075", "0.6249909", "0.62476647", "0.6226963", "0.6215906", "0.62065464", "0.62063426", "0.6199922", "0.61980104", "0.61980104", "0.61980104", "0.61793786", "0.6172059", "0.61707777", "0.6168858", "0.61678255", "0.6166377", "0.614573", "0.61455876", "0.61454237", "0.61280084", "0.61280084", "0.61280084", "0.6127993", "0.6127584", "0.61230725", "0.6122088", "0.60944545", "0.6086093", "0.6084302", "0.6082639", "0.60704845", "0.6068853", "0.6063979", "0.6044093", "0.6041167", "0.6021947", "0.6002743", "0.5999676", "0.5995695", "0.59951586", "0.5986245", "0.5985485", "0.5983614", "0.59822786", "0.59763265", "0.5959928", "0.59585977", "0.59585816", "0.5957552", "0.5955915", "0.59446955", "0.59402823", "0.593743", "0.5931661" ]
0.0
-1
Have an object of TelephonyManager
public void doPermissionGrantedStuffs() { TelephonyManager tm =(TelephonyManager)getSystemService(Context.TELEPHONY_SERVICE); //Get IMEI Number of Phone //////////////// for this example i only need the IMEI String IMEINumber=tm.getDeviceId(); // Now read the desired content to a textview. addImeiCard.setVisibility(View.GONE); asset_serial.setText(IMEINumber); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static boolean HasTelephony(Context context){\r\n PackageManager packageManager = context.getPackageManager();\r\n\r\n if(packageManager == null){\r\n return false;\r\n }\r\n\r\n return packageManager.hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\r\n }", "@CalledByNative\n public static DeviceTelephonyInfo create(Context context) {\n return new DeviceTelephonyInfo(context);\n }", "SipInstanceManager getSipInstanceManager();", "public String getPhoneNumber(){\n\t\t \n\t\t TelephonyManager mTelephonyMgr;\n\t\t mTelephonyMgr = (TelephonyManager)\n\t\t activity.getSystemService(Context.TELEPHONY_SERVICE); \n\t\t return mTelephonyMgr.getLine1Number();\n\t\t \n\t\t}", "public static PhoneWifiManager getInstance(Context context) {\n\t\tif (instance == null) {\n\t\t\tsynchronized (PhoneWifiManager.class) {\n\t\t\t\tif (instance == null) {\n\t\t\t\t\tinstance = new PhoneWifiManager(context);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn instance;\n\t}", "public String getMyPhoneNumber() {\n return ((TelephonyManager) mContext.getSystemService(Context.TELEPHONY_SERVICE))\n .getLine1Number();\n }", "public Protocol() {\n super();\n ADDRESS_PREFIX = \"sms://\";\n }", "public void teleopInit(){\n\n }", "@SuppressWarnings(\"unused\")\n public static boolean isTelephonyReady(Context context) {\n boolean teleEnable = true;\n\n try {\n TelephonyManagerEx telephonyManagerEx = new TelephonyManagerEx(context);\n telephonyManagerEx.hasIccCard(0);\n\n } catch (NullPointerException e) {\n Log.e(TAG, \"TelephonyManager(Ex) is not ready\");\n teleEnable = false;\n }\n\n return teleEnable;\n }", "public String getManagerPhone() {\n return managerPhone;\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "Manager getManager() {\n return Manager.getInstance();\n }", "public final T getManager() {\n return this.manager;\n }", "public static ElectronicDevice getDevice(){\n\t\treturn new Television();\n\t\t\n\t}", "public synchronized static final LinphoneManager createAndStart(\n\t\t\tContext c , LinphoneServiceListener listener){\n\t\t\n\t\tif (instance != null )\n\t\t\tthrow new RuntimeException(\"Myphone Manager is already initialized\") ;\n\t\tinstance = new LinphoneManager(c, listener) ;\n\t\tinstance.startLibLinphone(c);\n\t\tTelephonyManager tm = (TelephonyManager) c.getSystemService(Context.TELEPHONY_SERVICE);\n\t\tboolean gsmIdle = tm.getCallState() == TelephonyManager.CALL_STATE_IDLE;\n\t\tsetGsmIdle(gsmIdle);\n\t\t\n\t\tif (Version.isVideoCapable())\n\t\t\tAndroidVideoApi5JniWrapper.setAndroidSdkVersion(Version.sdk());\n\t\t\n\t\t\n\t\treturn instance ;\n\t}", "public Smartphone() {\n this.typ = \"Smartphone\";\n }", "@Override\npublic void teleopInit() {\n\n}", "public interface ITelephonyConnectionServiceExt {\n\n /**\n * Check courrent mode is 4G data only mode.\n *\n * @param context from telephony connection service.\n * @param phone is call via by user\n * @return true if in 4G data only mode.\n */\n boolean isDataOnlyMode(Context context, Phone phone);\n}", "Identification getManagerIdentification();", "public PhoneAccountHandle getSimCallManagerFromCall(Call call) {\n if (call == null) {\n return null;\n }\n UserHandle userHandle = call.getInitiatingUser();\n if (userHandle == null) {\n userHandle = call.getTargetPhoneAccount().getUserHandle();\n }\n return getSimCallManager(userHandle);\n }", "public java.lang.String getTel() {\r\n return localTel;\r\n }", "@Override\n public GenericManager<TraitementCourrier, Long> getManager() {\n return manager;\n }", "@Override\n public void teleopInit() {\n\n }", "@Override\n public GenericManager<Societe, Long> getManager() {\n return manager;\n }", "protected WifiManager getWifiManager()\r\n\t{\r\n\t\t//return (WifiManager) context.getSystemService(Context.WIFI_SERVICE);\r\n\t\treturn wifiManager;\r\n\t}", "public String getTel() {\r\n return tel;\r\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public String getTel() {\n return tel;\n }", "public Telefone() {\n\t}", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public String getTelphone() {\n return telphone;\n }", "public static boolean canSendSMS2(Context context) {\n //возможно, так нужно вызывать?\n try{\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\n\n }\n catch(Exception e) {\n // code that doesn't use telephony features\n return true;\n }\n }", "public Integer getTel() {\n return tel;\n }", "public void teleopInit() {\n \n }", "public NotificationManager getManager() {\n if (mManager == null) {\n mManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n }\n return mManager;\n }", "public void teleopInit() {\n }", "public void teleopInit() {\n }", "public void register(OpModeManager manager) {\n\n final Class<?> activityThreadClass;\n try {\n activityThreadClass = Class.forName(\"android.app.ActivityThread\");\n\n final Method method = activityThreadClass.getMethod(\"currentApplication\");\n Context context = (Application) method.invoke(null, (Object[]) null);\n DexFile df = new DexFile(context.getPackageCodePath());\n for (Enumeration<String> iter = df.entries(); iter.hasMoreElements(); ) {\n String s = iter.nextElement();\n Class<RegisterOpMode> activeClass = RegisterOpMode.class;\n Class currentClass = Class.forName(s);\n if (currentClass.isAnnotationPresent(activeClass)) {\n Annotation annotation = currentClass.getAnnotation(activeClass);\n String name = ((RegisterOpMode) annotation).value();\n if (name.length() == 0) {\n name = currentClass.getSimpleName();\n }\n manager.register(name, currentClass);\n }\n }\n } catch (ClassNotFoundException e) {\n //This should never happen in a running Android application\n e.printStackTrace();\n } catch (NoSuchMethodException e) {\n //This should never happen in a running Android application\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n //This should never happen in a running Android application\n e.printStackTrace();\n } catch (InvocationTargetException e) {\n //This should never happen in a running Android application\n e.printStackTrace();\n } catch (IOException e) {\n //This should never happen in a running Android application\n e.printStackTrace();\n }\n }", "public Telefone() {\n\t\t\n\t}", "public String getSenderPhoneNumber();", "@Override\r\n public GenericManager<TraitSalaire, Long> getManager() {\r\n return manager;\r\n }", "public String getAnserTelphone() {\r\n return anserTelphone;\r\n }", "private Teller() {\n }", "public ActivityManager getManager() {\r\n return manager;\r\n }", "private PhoneUtils() {\n }", "private void registerWithService() {\n\n try {\n\n Message msg = Message.obtain(null, TallyDeviceService.MSG_REGISTER_MESSAGE_ACTIVITY);\n if (msg == null) { return; }\n msg.obj = this;\n msg.replyTo = messenger;\n service.send(msg);\n\n } catch (Exception e) {\n Log.e(LOG_TAG, \"Line 306 :: \" + e.getMessage());\n service = null;\n }\n\n }", "public static boolean canSendSMS(Context context) {\n return context.getPackageManager().hasSystemFeature(PackageManager.FEATURE_TELEPHONY);\n }", "@NonNull\n public static ProtocolManager manager() {\n return ProtocolLibrary.getProtocolManager();\n }", "@Override\r\n public GenericManager<LigneReponseDP, Long> getManager() {\r\n return manager;\r\n }", "public MBMobilePhoneLocalService getMBMobilePhoneLocalService() {\n return mbMobilePhoneLocalService;\n }", "@Override\n default ManagerPrx ice_datagram()\n {\n return (ManagerPrx)_ice_datagram();\n }", "public static NetworkRequestManager getInstance(Context context) {\n if(requestQueue == null){\n initQueue(context);\n mContext = context.getApplicationContext();\n }\n return mManager;\n }", "static ManagerPrx checkedCast(com.zeroc.Ice.ObjectPrx obj, java.util.Map<String, String> context)\n {\n return com.zeroc.Ice.ObjectPrx._checkedCast(obj, context, ice_staticId(), ManagerPrx.class, _ManagerPrxI.class);\n }", "public Phonenumber.PhoneNumber getPhoneNumber() {\n return mCurrentPhoneNumber;\n }", "private static NotificationManagerProxy getNotificationManager() {\n return new NotificationManagerProxyImpl(ContextUtils.getApplicationContext());\n }", "private DeviceWifiManager(Context context) {\n\t\tif (null != context) {\n\t\t\tmWifiManager = (WifiManager) context\n\t\t\t\t\t.getSystemService(Context.WIFI_SERVICE);\n\t\t\tconnManager = (ConnectivityManager) context\n\t\t\t\t\t.getSystemService(Context.CONNECTIVITY_SERVICE);\n\t\t\tmWifiInfo = mWifiManager.getConnectionInfo();\n\t\t} else {\n\t\t\tmInstance = null;\n\t\t}\n\t}", "@Override\n default ManagerPrx ice_twoway()\n {\n return (ManagerPrx)_ice_twoway();\n }", "public String getUserTel() {\n return userTel;\n }", "public String getUserTel() {\n return userTel;\n }", "static <T> T m61431a(Context context, String str) {\n return context.getSystemService(str);\n }", "Transaction parseFromSms(SMSNotification sms);", "private synchronized void initNetwork() {\n if (connectivityManager == null) {\n ConnectivityManager tryConnectivityManager =\n (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n TelephonyManager tryTelephonyManager =\n (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE);\n\n // Assign to member vars only after all the get calls succeeded,\n // so that either all get assigned, or none get assigned.\n connectivityManager = tryConnectivityManager;\n telephonyManager = tryTelephonyManager;\n \n // Some interesting info to look at in the logs\n NetworkInfo[] infos = connectivityManager.getAllNetworkInfo();\n for (NetworkInfo networkInfo : infos) {\n Logger.i(\"Network: \" + networkInfo);\n }\n Logger.i(\"Phone type: \" + getTelephonyPhoneType() +\n \", Carrier: \" + getTelephonyCarrierName());\n }\n assert connectivityManager != null;\n assert telephonyManager != null;\n }", "private Manager() {\n _transportViews = new ArrayList<TransportView>();\n _transportersClient = new ArrayList<TransporterClient>();\n }", "public final SensorManager invoke() {\n Object systemService = this.this$0.c().getSystemService(\"sensor\");\n if (systemService != null) {\n return (SensorManager) systemService;\n }\n throw new d.m(\"null cannot be cast to non-null type android.hardware.SensorManager\");\n }", "public synchronized boolean start(Context context, BTManager btManager) {\n mBTManager = btManager;\n if (mLocationManager == null)\n mLocationManager = (LocationManager) context.getSystemService(Context.LOCATION_SERVICE);\n if (mLocationManager != null) {\n // check permissions.\n if (ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED\n && ActivityCompat.checkSelfPermission(context, Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n // retrive provider from settings\n int provider = Integer.parseInt(PreferenceManager.getDefaultSharedPreferences(context).getString(context.getString(R.string.pref_key_location_provider), \"0\"));\n mLocationManager.requestLocationUpdates((provider == 0) ? LocationManager.GPS_PROVIDER : LocationManager.NETWORK_PROVIDER,\n 0, 0, mLocationListener);\n mLocationManager.addNmeaListener(mNmeaMessageListener);\n return true;\n }\n return false;\n }", "public static synchronized ConnectivityReceiver m30311a(Context context) {\n ConnectivityReceiver connectivityReceiver;\n synchronized (ConnectivityReceiver.class) {\n if (f30040e == null) {\n f30040e = new ConnectivityReceiver(context.getApplicationContext());\n f30040e.mo34038a((ConnectivityListener) new NativeConnectivityListener());\n }\n connectivityReceiver = f30040e;\n }\n return connectivityReceiver;\n }", "@Override\n default ManagerPrx ice_oneway()\n {\n return (ManagerPrx)_ice_oneway();\n }", "public String getManager()\r\n {\r\n return (m_manager);\r\n }", "public static boolean hasTelephonyHardware(Context context) {\n if (context.getPackageManager().hasSystemFeature(\"android.hardware.telephony\")) {\n Log.d(\"HardwareFeatureTest\", \"Device can make phone calls\");\n return true;\n }\n return false;\n }", "public Long getMobile_phone();", "private Boolean getUseMicrophone() {\n return true;\n }", "static ManagerPrx checkedCast(com.zeroc.Ice.ObjectPrx obj)\n {\n return com.zeroc.Ice.ObjectPrx._checkedCast(obj, ice_staticId(), ManagerPrx.class, _ManagerPrxI.class);\n }", "public final static InformationManager getInformationManager() {\n\t\treturn informationManager;\n\t}", "public String getPhoneUseType() {\n return phoneUseType;\n }", "public NotificationManager getNotificationManager(){\n\n if (mNotificationManager==null){\n mNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n }\n return mNotificationManager;\n }", "@Override\n\tpublic TelefonoDAO getTelefonoDAO() {\n\t\treturn new JPATelefonoDAO();\n\t}", "public static RestaurantManager getManagerInstance () {\n if (managerInstance == null) {\n managerInstance = new RestaurantManager();\n }\n return managerInstance;\n }", "public BillingManager(Activity _activity) {\n mActivity = _activity;\n connectBillingClient();\n }", "public SystemServiceManager getSystemServiceManager() {\n return this.mService.mSystemServiceManager;\n }", "BigInteger getTelefone();", "public interface IConnectionManager {\n void dial(String phoneNumber);\n\n void hangup();\n}", "public GPSManager(Activity context) {\n this.mContext = context;\n //Get the current location\n getLocation();\n }", "Messenger getMessenger();", "public String getTelNo()\r\n\t{\r\n\t\treturn this.telNo;\r\n\t}", "public java.lang.String getTelphone () {\r\n\t\treturn telphone;\r\n\t}", "public java.lang.String getTelePhone() {\r\n return telePhone;\r\n }", "public String getManager() {\n return manager;\n }", "public void get_IMEI(){\n TelephonyManager mngr = (TelephonyManager) getSystemService(this.TELEPHONY_SERVICE);\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // ActivityCompat#requestPermissions\n // here to request the missing permissions, and then overriding\n // public void onRequestPermissionsResult(int requestCode, String[] permissions,\n // int[] grantResults)\n // to handle the case where the user grants the permission. See the documentation\n // for ActivityCompat#requestPermissions for more details.\n return;\n }\n mngr.getDeviceId();\n }", "public MobileInfo getPhoneInfo(String number) {\n\t\tMobileInfo mobileInfo = new MobileInfo();\n\t\ttry {\n\t\t\tmobileInfo = readJsonFromUrl(\"http://apilayer.net/api/validate?access_key=ac5c6b3772430c1154575b8ce8b77a7b&number=\"+number+\"&country_code=&format=1\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"\", e);\n\t\t}\n\t\t\n\t\treturn mobileInfo;\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 12:36:02.868 -0500\", hash_original_method = \"E552E8F41A6230395AD2464B82A88215\", hash_generated_method = \"B474121E171E0C15AB9C9C17C2686C0E\")\n \npublic static android.net.wifi.IWifiManager asInterface(android.os.IBinder obj)\n{\nif ((obj==null)) {\nreturn null;\n}\nandroid.os.IInterface iin = (android.os.IInterface)obj.queryLocalInterface(DESCRIPTOR);\nif (((iin!=null)&&(iin instanceof android.net.wifi.IWifiManager))) {\nreturn ((android.net.wifi.IWifiManager)iin);\n}\nreturn new android.net.wifi.IWifiManager.Stub.Proxy(obj);\n}", "public String getTelNo() {\n return telNo;\n }", "public String getManager() {\n\n return this.manager;\n }" ]
[ "0.65340006", "0.6456384", "0.6067117", "0.59115404", "0.5725304", "0.5647575", "0.5582822", "0.55641854", "0.55346394", "0.5463266", "0.54590404", "0.54590404", "0.54590404", "0.5454348", "0.5431115", "0.5428664", "0.5366248", "0.5352931", "0.5342611", "0.5318315", "0.531587", "0.5291073", "0.52860445", "0.52746683", "0.52474153", "0.52434516", "0.52242595", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.52130485", "0.5196304", "0.5191309", "0.5191309", "0.5191309", "0.51883405", "0.51756173", "0.51751447", "0.5167608", "0.51665825", "0.51665825", "0.5160345", "0.51415825", "0.51408136", "0.5132157", "0.512355", "0.5103147", "0.5100695", "0.5095811", "0.5088236", "0.5070574", "0.50682616", "0.5064361", "0.5061285", "0.5060979", "0.50584537", "0.5054243", "0.50524116", "0.5049384", "0.50315803", "0.50307256", "0.50294906", "0.50294906", "0.50293213", "0.5025534", "0.5024635", "0.50235724", "0.50226015", "0.5017219", "0.50145435", "0.5011899", "0.5009603", "0.5000015", "0.49920484", "0.49905694", "0.49887168", "0.49852687", "0.49808928", "0.49730814", "0.49494895", "0.49433213", "0.49394378", "0.49371317", "0.49356183", "0.4925783", "0.4915449", "0.4913731", "0.4910942", "0.4891216", "0.4890269", "0.48901114", "0.4889961", "0.48812413", "0.48800567", "0.4877236", "0.4872462" ]
0.0
-1
TODO get the image bitmap to solve the error
private void saveAssetPhone() { mProgressDialog.show(); L.m("Saving asset..."); final VolleyMultipartRequest request = new VolleyMultipartRequest(Request.Method.POST, getString(R.string.baseUrl) + "/asset", new Response.Listener<NetworkResponse>() { @Override public void onResponse(NetworkResponse asset) { L.m(asset.toString()); L.t(MyApplication.getAppContext(), "Asset saved successful"); mProgressDialog.hide(); asset_serial.setText(""); asset_name.setText(""); asset_desc.setText(""); startActivity(new Intent(MyApplication.getAppContext(), MainActivity.class)); MainActivity.fragment_id = "1"; } }, new Response.ErrorListener() { @Override public void onErrorResponse(VolleyError error) { mProgressDialog.hide(); NetworkResponse response = error.networkResponse; if (response != null && response.data != null) { L.m(new String(response.data)); switch (response.statusCode) { case 400: //parsing the error JSONObject obj; JSONArray message; JSONObject jsonRowObj; String json = new String(response.data);//string L.m(new String(response.data)); try { obj = new JSONObject(json); if (ParseUtil.contains(obj, "text")) { L.t(MyApplication.getAppContext(), obj.getString("text")); } } catch (JSONException e) { e.printStackTrace(); } break; default: //VolleyCustomErrorHandler.errorMessage(error); startActivity(new Intent(MyApplication.getAppContext(), MainActivity.class)); MainActivity.fragment_id = "1"; break; } } else { VolleyCustomErrorHandler.errorMessage(error); } } }) { @Override protected Map<String, String> getParams() throws AuthFailureError { String image = getStringImage(bitmap); Map<String, String> parameters = new HashMap<String, String>(); parameters.put("asset_name", asset_name.getText().toString().trim()); parameters.put("asset_desc", asset_desc.getText().toString().trim()); parameters.put("asset_serial", asset_serial.getText().toString().trim()); parameters.put("asset_category", category); parameters.put("asset_type", type); parameters.put("image_asset", image); L.m(parameters.toString()); return parameters; } @Override public Map<String, String> getHeaders() throws AuthFailureError { HashMap<String, String> map = new HashMap<String, String>(); map.put("Authorization", "Bearer " + token); return map; } }; request.setRetryPolicy(new DefaultRetryPolicy( Keys.keys.MY_SOCKET_TIMEOUT_MS, Keys.keys.MY_DEFAULT_MAX_RETRIES, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT)); VolleySingleton.getInstance().getRequestQueue().add(request); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getImage();", "public BufferedImage getImage() {\n/* 81 */ return this.bufImg;\n/* */ }", "String getImage();", "private static Bitmap getImage(byte[] image) {\n /**\n * @brief convert from byte array to bitmap\n */\n return BitmapFactory.decodeByteArray(image, 0, image.length);\n }", "public int getImage();", "Imagem getImagem();", "public Image getBassClef();", "public void getImage(){\n Cursor c = db.rawQuery(\"SELECT * FROM Stories\",null);\n if(c.moveToNext()){\n byte[] image = c.getBlob(0);\n Bitmap bmp = BitmapFactory.decodeByteArray(image,0,image.length);\n }\n}", "private Bitmap postBitmap(Post p) {\n byte[] loadedBytes = Base64.decode(p.getImageURL(), Base64.DEFAULT);\n Bitmap loadedBitmap = BitmapFactory.decodeByteArray(loadedBytes, 0, loadedBytes.length);\n return loadedBitmap;\n }", "private byte[] getImage(){\n byte image[] = null;\n try {\n if(isImageGiven()) {\n image = getImageBytes();\n }\n }catch (IOException e){\n Toast.makeText(this,\"Error in Creating the image \"+e, Toast.LENGTH_SHORT).show();\n }\n return image;\n }", "protected abstract Image loadImage();", "private void loadBitmap() {\n\n BitmapDrawable bitmapDrawable = (BitmapDrawable) this.getDrawable();\n\n if (bitmapDrawable != null)\n image = bitmapDrawable.getBitmap();\n }", "private byte[] getImageOne() {\n Bitmap icon = BitmapFactory.decodeResource(getApplicationContext().getResources(),\n R.drawable.image0);\n return ImageConvert.convertImage2ByteArray(icon);\n }", "public String getImage() { return image; }", "private static native void getPageImage(Bitmap bitmap);", "public Bitmap getFinalShapesImage();", "@Override\r\n\tpublic int getImage() {\n\t\treturn Parametre.BALLE;\r\n\t}", "Picture binaryComponentImage() throws Exception;", "void mo12205a(Bitmap bitmap);", "@Test\n public void getPicture_Exists(){\n Bitmap image = BitmapFactory.decodeResource(appContext.getResources(),R.drawable.ic_add);\n testRecipe.setImage(image, appContext);\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "@Test\n public void getPicture_NoPictureExist(){\n Bitmap retrieved = testRecipe.getImage(appContext);\n assertNotEquals(\"getPicture - Not Null\", null, retrieved);\n }", "public Image getHotImage () {\r\n\tcheckWidget();\r\n\treturn hotImage;\r\n}", "public abstract Image getImage();", "public abstract Image getImage();", "Bitmap m7900a(Bitmap bitmap);", "static Bitmap getImage(byte[] image) {\n return BitmapFactory.decodeByteArray(image, 0, image.length);\n }", "public Bitmap getShapesImage();", "protected int getImageIndex() {\n/* 216 */ return this.mlibImageIndex;\n/* */ }", "static void processPicture(byte[][] img) {\n\t\tcontrastImage(img);\n\t\t//generateDebugImage(img);\n\t\t\n\t\t\n\t\tPoint[] ergs = raster(img);\n\t\tprintPoints(ergs);\n\t\tergs = Cluster.cluster(ergs);\n\t\tprintPoints(ergs);\n\t\tBlume[] blumen = Radiuserkennung.erkennen(img, ergs);\n\t\t\n\t\t//Blumen veröffentlichen!\n\t\tDaten.setNewBlumen(blumen);\n\t\t\n\t\tprintBlumen(blumen);\n\t}", "private Bitmap getGoodsImageFromDatabase(String goodId) {\r\n Cursor cursor = helper.getSpecifyGoodImage(goodId);\r\n cursor.moveToFirst();\r\n byte bytes[] = Base64.decode(cursor.getString(0), Base64.DEFAULT);\r\n cursor.close();\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\r\n return bitmap;\r\n }", "@Override\n\tpublic Image getImage() {\n\t\treturn img;\n\t}", "private ImageUtils() {}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByTransform();", "private void callbitmapmethod() {\n\t\ttry {\n\t\t\tencode.clear();\n\t\t\tfor (int i = 0; i < queueItemforApproval.size(); i++) {\n\t\t\t\t/**/\n\t\t\t\tQueueString en = new QueueString();\n\t\t\t\tif (queueItemforApproval.get(i).bitmap != null) {\n\t\t\t\t\tSystem.out.println(\"bitmap is:\"\n\t\t\t\t\t\t\t+ queueItemforApproval.get(i).bitmap);\n\t\t\t\t\ten.path = convertintobase64(queueItemforApproval.get(i).bitmap);\n\t\t\t\t\tSystem.out.println(\"path is :\" + en.path);\n\t\t\t\t\t// Bitmap bitmap = decodeBase64(en.path, i);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"bitmap is null\");\n\t\t\t\t}\n\t\t\t\tencode.add(en);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImageByHandler();", "private void setImage(Bitmap image) {\n }", "@TargetApi(Build.VERSION_CODES.HONEYCOMB_MR1)\n private byte[] profileImage(Bitmap b){\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n b.compress(Bitmap.CompressFormat.JPEG, 30, bos);\n return bos.toByteArray();\n\n }", "private void enhanceImage(){\n }", "public BufferedImage getImage ( ) {\n\n BufferedImage img =\n param.Parameters.PROBLEM.getData(param.Parameters.STATE, program, 0, 0);\n\n System.gc();\n\n return img;\n \n }", "@Override\n public void onFailure(@NonNull Exception e) {\n e.printStackTrace();\n Toast.makeText(context, \"Image process failed\", Toast.LENGTH_SHORT).show();\n }", "private void manuallyPushImageToImageReader(){\n mImageReader = VNCUtility.createImageReader(this);\n mImageReader.setOnImageAvailableListener(new ImageReader.OnImageAvailableListener() {\n @Override\n public void onImageAvailable(ImageReader reader) {\n Log.d(TAG, \"NEW IMAGE AVAILABLE\");\n\n DisplayMetrics metrics = getResources().getDisplayMetrics();\n\n\n Image image = reader.acquireLatestImage();\n VNCUtility.printReaderFormat(image.getFormat());\n Log.d(TAG, \"IMAGE FORMAT: \" + image.getFormat());\n final Image.Plane[] planes = image.getPlanes();\n final ByteBuffer buffer = planes[0].getBuffer();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * mWidth;\n int w = mWidth + rowPadding / pixelStride;\n Bitmap bmp = Bitmap.createBitmap(mWidth, mHeight, Bitmap.Config.RGB_565);\n bmp.copyPixelsFromBuffer(buffer);\n mBmp = bmp;\n\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n try {\n //saveScreen(mBmp);\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }\n });\n t.start();\n\n image.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n\n\n /*\n Image img = reader.acquireLatestImage();\n Image.Plane[] planes = img.getPlanes();\n int width = img.getWidth();\n int height = img.getHeight();\n int pixelStride = planes[0].getPixelStride();\n int rowStride = planes[0].getRowStride();\n int rowPadding = rowStride - pixelStride * width;\n ByteBuffer buffer = planes[0].getBuffer();\n byte[] data = new byte[buffer.capacity()];\n buffer.get(data);\n\n for(int i = 10000; i < 100; i++){\n Log.d(TAG, getColourForInt(data[i]));\n }\n\n int offset = 0;\n Bitmap bitmap = Bitmap.createBitmap(metrics, width, height, Bitmap.Config.ARGB_8888);\n for (int i = 0; i < height; ++i) {\n for (int j = 0; j < width; ++j) {\n int pixel = 0;\n pixel |= (buffer.get(offset) & 0xff) << 16; // R\n pixel |= (buffer.get(offset + 1) & 0xff) << 8; // G\n pixel |= (buffer.get(offset + 2) & 0xff); // B\n pixel |= (buffer.get(offset + 3) & 0xff) << 24; // A\n bitmap.setPixel(j, i, pixel);\n offset += pixelStride;\n }\n offset += rowPadding;\n }\n mBmp = bitmap;\n img.close();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n mImageView.setImageBitmap(mBmp);\n }\n });\n */\n }\n }, null);\n Surface surface = mImageReader.getSurface();\n if(surface == null){\n Log.d(TAG, \"SURFACE IS NULL\");\n }\n else{\n Log.d(TAG, \"SURFACE IS NOT NULL\");\n Canvas canvas = surface.lockCanvas(null);\n\n int[] ints = new int[mWidth * mHeight];\n for (int i = 0; i < mWidth * mHeight; i++) {\n ints[i] = Color.MAGENTA;//0x00FF0000;\n }\n\n //final Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, ints.length);\n Bitmap bitmap = Bitmap.createBitmap(ints, mWidth, mHeight, Bitmap.Config.RGB_565);\n //canvas.drawARGB(255, 255, 0, 255);\n canvas.drawBitmap(bitmap,0,0,null);\n surface.unlockCanvasAndPost(canvas);\n }\n }", "byte[] getProfileImage();", "private void putProfPic(Blob gbPhoto) throws SQLException, FileNotFoundException, IOException {\n if(gbPhoto == null){\n ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();\n File file = new File(externalContext.getRealPath(\"\")+\"\\\\resources\\\\images\\\\user_default.png\");\n imagePic = new OracleSerialBlob(FileUtils.getBytes(file));\n Long size = imagePic.length();\n photo_profile = new ByteArrayContent(imagePic.getBytes(1, size.intValue()));\n }else{\n imagePic = gbPhoto;\n Long size = gbPhoto.length();\n photo_profile = new ByteArrayContent(gbPhoto.getBytes(1, size.intValue()));\n }\n }", "private boolean checkBarcodeImg(Barcode barcode) {\n//\t\tif(barcode.getImg())\n\t\treturn true;\n\t}", "@Override\n protected Map<String, DataPart> getByteData() {\n Map<String, DataPart> params = new HashMap<>();\n long imagename = System.currentTimeMillis();\n params.put(\"pic\", new DataPart(imagename + \".jpg\", getFileDataFromDrawable(bitmap)));\n return params;\n }", "PImage getImage() {\n return _img;\n }", "@Override\n public Image getImage(Photo photo) {\n return null;\n }", "public Bitmap getImage(){\n return images[currentFrame];\n }", "public Bitmap getBitmap(){\n return bitmap;\n }", "public byte[] bitmap();", "@Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if(resultCode == RESULT_OK && requestCode ==200){\n Uri uri_img=data.getData();\n try{\n assert uri_img != null;\n InputStream input_img = updateView.getContext().getContentResolver().openInputStream(uri_img);\n DecodeImage_stream = BitmapFactory.decodeStream(input_img);\n chooseImage.setImageBitmap(DecodeImage_stream);\n }catch (FileNotFoundException f){\n Log.d(\"add new file not found:\",f.getMessage());\n }\n }\n }", "BufferedImage getImage();", "BufferedImage getImage();", "BufferedImage getImage();", "public String getImage() {\n\t\treturn null;\n\t}", "private Bitmap imageLoadedFromInternalStorage(String imageName)\n\t{\n\t\ttry {\n\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", imageName.replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\tBitmap b = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\treturn b;\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\ttry{\n\t\t\t\tFile f=new File(getApplicationContext().getDir(\"imageDir\", MODE_PRIVATE).getPath()+\"/\", getLogoID(shopName).replaceFirst(\"/\", \"\") +\".jpg\");\n\t\t\t\tBitmap c = BitmapFactory.decodeStream(new FileInputStream(f));\n\t\t\t\treturn c;\n\t\t\t\t\n\t\t\t} catch (Exception e2)\t{\n\t\t\t\t\n\t\t\t\tint lId = getResources().getIdentifier(\"shoplogo_no_image\", \"drawable\", \"com.loyal3.loyal3\");\n\t\t\t\t\n\t\t\t\tBitmap noImage = BitmapFactory.decodeResource(getResources(), lId);\n\t\t\t\t\n\t\t\t\treturn noImage;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "Image createImage();", "Picture identifyComponentImage() throws Exception;", "@Override\n\tpublic Image getImage() {\n\t\treturn image;\n\t}", "@Override\n\tprotected String getImage(int row, int col) {\n\t\treturn null;\n\t}", "public BufferedImage readImage(String id) {\n BufferedImage bufImg = null;\n try {\n PreparedStatement pstmt = conn.prepareStatement(\n \"SELECT photo FROM vehicles WHERE veh_reg_no = ?\");\n pstmt.setString(1, id);\n System.out.println(pstmt); // for debugging\n ResultSet rset = pstmt.executeQuery();\n // Only one result expected\n rset.next();\n // Read image via InputStream\n InputStream in = rset.getBinaryStream(\"photo\"); \n // Decode the inputstream as BufferedImage\n bufImg = ImageIO.read(in); \n } catch(Exception ex) {\n ex.printStackTrace();\n }\n return bufImg;\n }", "public static Bitmap getBitmap(String path) {\n Bitmap bitmap = null;\n try {\n Log.i(\"FileManager\", \"GetBitmap: \" + path);\n FileInputStream imgIS = new FileInputStream(new File(path));\n BufferedInputStream bufIS = new BufferedInputStream(imgIS);\n bitmap = BitmapFactory.decodeStream(bufIS);\n Log.i(\"FileManager\", \"GetBitmap Finished: \" + bitmap);\n } catch (FileNotFoundException e) { //catch fileinputstream exceptions\n e.printStackTrace();\n } //trying to get wallpaper from display cycle node\n return bitmap;\n }", "public void openImage() {\n InputStream f = Controller.class.getResourceAsStream(\"route.png\");\n img = new Image(f, mapImage.getFitWidth(), mapImage.getFitHeight(), false, true);\n h = (int) img.getHeight();\n w = (int) img.getWidth();\n pathNodes = new GraphNodeAL[h * w];\n mapImage.setImage(img);\n //makeGrayscale();\n }", "public Image getImage() {\n return null;\r\n }", "private RoundImage img(String imgAddress) {\n return new RoundImage(\"frontend/src/images/books.png\",\"64px\",\"64px\");\n }", "private void updateFingerprintImage(FingerprintImage fi) {\n\n try {\n byte[] fpBmp = null;\n Bitmap bitmap;\n if (fi == null || (fpBmp = fi.convert2Bmp()) == null || (bitmap = BitmapFactory.decodeByteArray(fpBmp, 0, fpBmp.length)) == null) {\n //loger.addRecordToLog(\"updateFingerprintImage sin huella \");\n bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.sinhuella);\n }\n mHandler.sendMessage(mHandler.obtainMessage(MSG_UPDATE_IMAGE, bitmap));\n\n } catch (Exception e) {\n\n //loger.addRecordToLog(\"Exception updateFingerprintImage : \" + e.getMessage());\n\n //mFingerprintImage.setImageResource( R.drawable.errornuevahuella );\n\n //e.printStackTrace();\n\n }\n\n }", "private ImageIcon ImageIcon(byte[] pic) {\n throw new UnsupportedOperationException(\"Not Supported Yet.\");\n\n }", "private byte[] convertImageBitmanToByte(Bitmap bitmap){\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n bitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos); //bm is the bitmap object\n byte[] b = baos.toByteArray();\n\n return b;\n }", "public byte[] getImageBytes()\n {\n byte[] buff = null;\n \n try\n {\n ByteArrayOutputStream bos = new ByteArrayOutputStream() ;\n ImageIO.write(img, \"jpg\", bos);\n buff = bos.toByteArray();\n bos.flush();\n bos.close();\n }\n catch(Exception ex)\n {\n System.out.println(\"Problem Serializeing PicNode\");\n ex.printStackTrace();\n }\n return buff;\n }", "private void displayImage() {\n if (currentPhotoPath != null) {\n // checkPicture = true; depreciated, try catch to catch if photo exists\n Bitmap temp = fixOrientation(BitmapFactory.decodeFile(currentPhotoPath));\n bitmapForAnalysis = temp;\n imageView.setImageBitmap(temp);\n } else {\n Toast.makeText(this, \"Image Path is null\", Toast.LENGTH_LONG).show();\n }\n }", "protected Bitmap getImage(URL url) {\n\n HttpURLConnection iconConn = null;\n try {\n iconConn = (HttpURLConnection) url.openConnection();\n iconConn.connect();\n int response = iconConn.getResponseCode();\n //if the reponse 200 the successfull\n if (response == 200) {\n return BitmapFactory.decodeStream(iconConn.getInputStream());\n } else {\n return null;\n }\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n } finally {\n if (iconConn != null) {\n iconConn.disconnect();\n }\n }\n }", "public Image getImage()\n {\n return null;\n }", "private void processAndSetImage() {\n\n // Resample the saved image to fit the ImageView\n mResultsBitmap = resamplePic(this, mTempPhotoPath);\n\n// tv.setText(base64conversion(photoFile));\n//\n// Intent intent = new Intent(Intent.ACTION_SEND);\n// intent.setType(\"text/plain\");\n// intent.putExtra(Intent.EXTRA_TEXT, base64conversion(photoFile));\n// startActivity(intent);\n\n /**\n * UPLOAD IMAGE USING RETROFIT\n */\n\n retroFitHelper(base64conversion(photoFile));\n\n // Set the new bitmap to the ImageView\n imageView.setImageBitmap(mResultsBitmap);\n }", "List<Bitmap> getRecipeImgSmall();", "protected void setPic() {\n }", "public String getImage()\n {\n return image;\n }", "@Override\r\n public Object createImage(Object data) {\r\n\t // N/A in JS\r\n\t return null;\r\n\t}", "private Bitmap decodeBitmapImage(int image) {\n int targetW = 300;\n int targetH = 300;\n\n // Get the dimensions of the bitmap\n BitmapFactory.Options bmOptions = new BitmapFactory.Options();\n bmOptions.inJustDecodeBounds = true;\n\n BitmapFactory.decodeResource(getResources(), image,\n 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 bmOptions.inPurgeable = true;\n\n return BitmapFactory.decodeResource(getResources(), image,\n bmOptions);\n }", "private byte[] getImageBytes(File image){\n byte[] imageInByte = null;\n try{\n \n\tBufferedImage originalImage = \n ImageIO.read(image);\n \n\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\tImageIO.write( originalImage, \"png\", baos );\n\tbaos.flush();\n\timageInByte = baos.toByteArray();\n\tbaos.close();\n \n\t}catch(IOException e){\n\t\tSystem.out.println(e.getMessage());\n\t}finally{\n return imageInByte;\n }\n }", "private android.graphics.Bitmap m6555f() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r5 = this;\n r0 = r5.getWidth();\n r1 = r5.getHeight();\n r2 = m6543a(r0, r1);\t Catch:{ OutOfMemoryError -> 0x000d }\n return r2;\n L_0x000d:\n r2 = \"ShimmerFrameLayout failed to create working bitmap\";\n r3 = new java.lang.StringBuilder;\n r3.<init>(r2);\n r2 = \" (width = \";\n r3.append(r2);\n r3.append(r0);\n r0 = \", height = \";\n r3.append(r0);\n r3.append(r1);\n r0 = \")\\n\\n\";\n r3.append(r0);\n r0 = java.lang.Thread.currentThread();\n r0 = r0.getStackTrace();\n r1 = r0.length;\n r2 = 0;\n L_0x0033:\n if (r2 >= r1) goto L_0x0046;\n L_0x0035:\n r4 = r0[r2];\n r4 = r4.toString();\n r3.append(r4);\n r4 = \"\\n\";\n r3.append(r4);\n r2 = r2 + 1;\n goto L_0x0033;\n L_0x0046:\n r0 = r3.toString();\n r1 = \"ShimmerFrameLayout\";\n android.util.Log.d(r1, r0);\n r0 = 0;\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.shimmer.ShimmerFrameLayout.f():android.graphics.Bitmap\");\n }", "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 }", "private void openCVImage(){\n Imgcodecs codec = new Imgcodecs();\n image = codec.imread(currentPhotoPath, Imgcodecs.IMREAD_COLOR);\n }", "public void m2261I() {\n try {\n if (this.f2513n != null) {\n this.f2513n.setImageDrawable(C5150d.m3784a(mo61159b().getResources(), \"iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA39pVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozODRkZTAxYi00OWRkLWM4NDYtYThkNC0wZWRiMDMwYTZlODAiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkE0Q0U2MUY2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkE0Q0U2MUU2QzA0MTFFNUE3MkJGQjQ1MTkzOEYxQUUiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjlkZjAyMGU0LTNlYmUtZTY0ZC04YjRiLWM5ZWY4MTU4ZjFhYyIgc3RSZWY6ZG9jdW1lbnRJRD0iYWRvYmU6ZG9jaWQ6cGhvdG9zaG9wOmU1MzEzNDdlLTZjMDEtMTFlNS1hZGZlLThmMTBjZWYxMGRiZSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PngNsEEAAANeSURBVHjatFfNS1tBEH+pUZOQ0B4i3sTSxHMRFNQoFBEP7dHgvyDiKWgguQra9F+oxqNiwOTQ+oFI1ZM3jSf1YK5FL41ooaKZzu+x+4gv2bx9Rgd+JNn5zO7s7IzH0CQiCvLHZ8YnxkfGe8ZbwS4zSowTxi/GT4/Hc2u8BLHjCOM745b06VboRJpx7GN8ZfyDxUqlQgcHB5RMJmloaIg6Ozupra3NBL5jDTzIQFYQdDOw5db5B8YxLDw+PtLKygr19PQQWDqIRqOUzWZNXUHH2rvBgr2M39C6uLig/v5+bcd2QLdUKskgYLNX57yvIL2zs0OhUOjZziU6Ojro8PBQBnGl3Alm+BknkMI54mybdS4BW3t7ezKIInzVCwDJYm4Zon4p5xLYzfPzcxlEpl7S3SNpmjlznZwQiXn/5CjEnTUzt5GBsbExamlpUfLBg0wjG8vLy3IXlqTzEAoH7m4kElEqTk1Nmfd7bW2tbhBYAw8ykFXZgQ9RJ1CsQghgEr/29/eVStPT09XFhdbX18nr9Vr81tZWyuVyFh+yMzMzSnvwJWjyDS+MYic2NzeV17O7u9vg2m79jsfjBv9bg7PbxOrqqjExMWHxIdvV1aW0V+VrFDtwhFCGh4cbnl0mk6kp+BsbGybsBNlGtkZGRqToEQK4xjfUc6csXlhYcHyFFhcXHe3Al6BrQz427e3tWldpfn5e6Rw83cIkHyvXAUAZb4SdsKZbPe0BaB+Bz+cjTiDlDmxtbZkybo9AKwn9fj9tb2875gBkINvIFnzJJMQ1PMV9GBgYUF6bQCBgFAoFY3x8/Ml6KpUy0un0kzXIQBY6KqrydapViPL5fM0/Rfcj+fhuJw5CqxBpleJYLEY3NzeW8dnZ2RoZrEmCLHQcSvGdWYrFe7CEFTwUqqjR85XLZUokEkoZ8CADWe3HqKoTcnyOdW5KI5m+vj56eHiQz3G0bkNyeXn5ag3J2dmZ/PffVC1Z8bVast3d3eqWLKDVlAaDwaadh8Nhvaa0XluOHg7n9lzn0MWRarfltp0oysEErRqGDTeDCbK9ajApuh7TxGiWERlrjWZzc3M0ODhYM5phDTzbaHb/rNHMFkhUNK13LobTv6K2RJ3se1yO519s4/k7wf5jG89/6I7n/wUYAGo3YtcprD4sAAAAAElFTkSuQmCC\"));\n this.f2513n.setScaleType(ScaleType.FIT_CENTER);\n }\n } catch (Exception e) {\n C5017f.m3256a(mo61159b(), C5015d.EXCEPTION, \"MraidMode.showDefaultCloseButton\", e.getMessage(), \"\");\n }\n }", "public Image creerImage() {\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\r\n\t\ttry {\r\n\t\t\t// Transfert de l image dans le buffer de bytes\r\n\t\t\tImageIO.write(monImage.getImage(), \"png\", baos);\r\n\t\t\t\r\n\t\t\t// Creation d une instance d Image iText\r\n\t\t\tImage image = Image.getInstance(baos.toByteArray());\r\n\t\t\treturn image;\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (BadElementException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public WritableImage getImage(){\n\t\tWritableImage image = SwingFXUtils.toFXImage(BfImage, null);\r\n\t\treturn image;\r\n\t}", "public String getImage() {\n return image;\n }", "WorldImage getImage();", "private byte[] getBytesFromBitmap(Bitmap bitmap) {\r\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\r\n bitmap.compress(Bitmap.CompressFormat.JPEG, 70, stream);\r\n return stream.toByteArray();\r\n }", "com.google.protobuf.ByteString getPicture();", "@Override\r\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\r\n Bitmap b=(Bitmap)data.getExtras().get(\"data\");\r\n i1.setImageBitmap(b);\r\n\r\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByHandlerOrBuilder();", "private void getSampleImage() {\n\t\t_helpingImgPath = \"Media\\\\\"+_camType.toString()+_downStream.toString()+_camProfile.toString()+\".bmp\";\n//\t\tswitch( _downStream ){\n//\t\tcase DownstreamPage.LEVER_NO_DOWNSTREAM:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.LEVER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.LEVER_OUTER_CAM:\n//\t\t\t\tbreak;\t\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_CRANK:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_FOUR_JOIN:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.LEVER_PUSHER_TUGS:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_CRANK:\n//\t\t\tswitch ( _camProfile )\n//\t\t\t{\n//\t\t\tcase CamProfilePage.SLIDER_BEAD_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_DOUBLE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_GROOVE_CAM:\n//\t\t\t\tbreak;\n//\t\t\tcase CamProfilePage.SLIDER_OUTER_CAM:\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_DOUBLE_SLIDE:\n//\t\t\tbreak;\n//\t\tcase DownstreamPage.CAMS_NO_DOWNSTREAM:\n//\t\t\tbreak;\n//\t\t}\n\t\t\n\t}", "static byte[] getBytes(Bitmap bitmap) {\n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n bitmap.compress(CompressFormat.PNG, 0, stream);\n return stream.toByteArray();\n }", "public BufferedImage getImage()\n \t{\n \t\ttry\n \t\t{\n \t\t\tif(bi==null)\n \t\t\t{\n \t\t\t\tint\n \t\t\t\t\tiWidth=(int)(getInteger(PROPERTY_WIDTH)*getQuestion().getZoom()),\n \t\t\t\t\tiHeight=(int)(getInteger(PROPERTY_HEIGHT)*getQuestion().getZoom());\n \n \t\t\t\t// Create image\n \t\t\t\tbi=new BufferedImage(iWidth,iHeight,BufferedImage.TYPE_INT_RGB);\n \n \t\t\t\t// Fill to background\n \t\t\t\tGraphics g=bi.getGraphics();\n \t\t\t\tg.setColor(getBackground());\n \t\t\t\tg.fillRect(0,0,iWidth,iHeight);\n \t\t\t}\n \t\t\treturn bi;\n \t\t}\n \t\tcatch(OmDeveloperException ode)\n \t\t{\n \t\t\tthrow new OmUnexpectedException(ode);\n \t\t}\n \t}", "private static Bitmap m8222a(URLConnection uRLConnection) {\n InputStream inputStream = uRLConnection.getInputStream();\n try {\n Bitmap a = C2995v.f8235a.m8223a(inputStream);\n return a;\n } finally {\n inputStream.close();\n }\n }", "@Override\n\tpublic String getImagePathBig() {\n\t\treturn null;\n\t}", "private byte[] getGroupImage(Group group) {\n trGetGroupImage.setUser(user);\n trGetGroupImage.setGroup(group);\n trGetGroupImage.execute();\n\n return trGetGroupImage.getResult();\n }", "private void reanderImage(ImageData data) {\n \n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImageOrBuilder getImageByTransformOrBuilder();", "static Image bityNaObraz(String image) throws IOException\n {\n byte[] rysunek = DatatypeConverter.parseBase64Binary(image); \n BufferedImage img = ImageIO.read(new ByteArrayInputStream(rysunek));\n return img;\n }", "@Override\r\n public void handleMessage(Message msg) {\n ImgBeanHolder holder= (ImgBeanHolder) msg.obj;\r\n Bitmap bitmap = holder.bitmap;\r\n ImageView imageview= holder.imageView;\r\n String path = holder.path;\r\n if (imageview.getTag().toString().equals( path)){\r\n imageview.setImageBitmap(bitmap);\r\n }\r\n }" ]
[ "0.70703626", "0.6956369", "0.6797664", "0.6786563", "0.6687545", "0.6670781", "0.66379035", "0.65739393", "0.6557977", "0.6549068", "0.6540458", "0.6540222", "0.6538261", "0.65078646", "0.6504499", "0.65014476", "0.6483092", "0.64657825", "0.6465697", "0.64445245", "0.6430602", "0.639878", "0.63899237", "0.63899237", "0.63558817", "0.6336635", "0.6315755", "0.6306557", "0.6305534", "0.6304233", "0.6296551", "0.6289715", "0.62768394", "0.6274047", "0.6273888", "0.626915", "0.6262496", "0.6257899", "0.6250331", "0.62492806", "0.62380594", "0.6235699", "0.62245226", "0.6223881", "0.6216058", "0.6213475", "0.62114334", "0.62084967", "0.62021554", "0.61976105", "0.6196565", "0.6195005", "0.6195005", "0.6195005", "0.618977", "0.6188228", "0.61880404", "0.61855197", "0.6180965", "0.61704177", "0.6157907", "0.61534643", "0.61474705", "0.6145965", "0.61441505", "0.6134492", "0.6133138", "0.6115155", "0.61150146", "0.6111204", "0.61110884", "0.6108973", "0.6090455", "0.60901994", "0.6075755", "0.6072075", "0.6070341", "0.6059907", "0.60549164", "0.6053589", "0.60517746", "0.60477406", "0.60415053", "0.6039985", "0.60336584", "0.6033619", "0.60317457", "0.6030768", "0.60290635", "0.6027475", "0.602559", "0.60194993", "0.60180193", "0.6013637", "0.6011677", "0.6004717", "0.6003398", "0.59983826", "0.59972405", "0.5996271", "0.5991187" ]
0.0
-1
This method is common for all realizations. It resets player's points to zero.
@Override public final void disqualify(final int playerId) { this.setPointsByPlayerId(playerId, 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void resetPoints() {\n points = 0;\n }", "public void resetPlayer() {\n\t\tthis.carrotCards = 65;\n\t\tthis.playerSpace = 0;\n\n\t}", "public void ResetPlayer() {\n\t\tfor (int i = 0; i < moveOrder.length; i++) {\n\t\t\tmoves.add(moveOrder[i]);\n\t\t}\n\t\tthis.X = 0;\n\t\tthis.Y = 0;\n\t\tthis.movesMade = 0;\n\t\tthis.face = 1;\n\t}", "public void resetPlayer() {\n\t\thealth = 3;\n\t\tplayerSpeed = 5f;\n\t\tmultiBulletIsActive = false;\n\t\tspeedBulletIsActive = false;\n\t\tquickFireBulletIsActive = false;\n\t\tinvincipleTimer = 0;\n\t\txPosition = 230;\n\t}", "public void resetPlayerPassed() {\n d_PlayerPassed = false;\n }", "public void resetPose() {\n }", "@Override\n protected void resetVariables(){\n super.resetVariables();\n pointUp = false;\n }", "@Override\n public void reset() {\n updateDice(1, 1);\n playerCurrentScore = 0;\n playerScore = 0;\n updateScore();\n notifyPlayer(\"\");\n game.init();\n }", "public void setScoreZero() {\n this.points = 10000;\n }", "@Override\r\n\tpublic void reset() {\n\t\tposition.set(0, 0);\r\n\t\talive = false;\r\n\t}", "public void resetPuck() {\n this.puck.setPosition(new Point(this.center_point));\n }", "public static void reset(){\r\n\t\tx=0;\r\n\t\ty=0;\r\n\t}", "public final void reset() {\n\t\tscore = 0;\n\t\tlives = 10;\n\t\tshields = 3;\n\t}", "public void resetPlayerPosition() {\n\t\tthis.tilePositionX = this.STARTING_X;\n\t\tthis.tilePositionY = this.STARTING_Y;\n\t}", "public void resetGame(){\n\t\tPlayer tempPlayer = new Player();\n\t\tui.setPlayer(tempPlayer);\n\t\tui.resetCards();\n\t}", "public void resetPlayerInfo() {\r\n\t\tthis.damageDealt = 0;\r\n\t\tthis.damageTaken = 0;\r\n\t\tthis.robotsDestroyed = 0;\r\n\t\tthis.tilesMoved = 0;\r\n\t\tthis.turnsSinceLastMove = 0;\r\n\t\tthis.turnsSinceLastFire = 0;\r\n\t\t\r\n\t\tthis.robots = new ArrayList<Robot>(3);\r\n\t\t\r\n\t\t/* 0 = scout , 1 = sniper, 2 = tank */\r\n\t\tthis.robots.add(new Robot(playerID, 0));\r\n\t\tthis.robots.add(new Robot(playerID, 1));\r\n\t\tthis.robots.add(new Robot(playerID, 2));\r\n\t}", "public void resetTBPoints () {\n p1TBPoints = 0;\n p2TBPoints = 0;\n }", "public void reset() { \r\n myGameOver = false; \r\n myGamePaused = false; \r\n }", "final void reset() {\r\n\t\t\tsp = 0;\r\n\t\t\thp = 0;\r\n\t\t}", "private void resetPlayer() {\r\n List<Artefact> inventory = currentPlayer.returnInventory();\r\n Artefact item;\r\n int i = inventory.size();\r\n\r\n while (i > 0) {\r\n item = currentPlayer.removeInventory(inventory.get(i - 1).getName());\r\n currentLocation.addArtefact(item);\r\n i--;\r\n }\r\n currentLocation.removePlayer(currentPlayer.getName());\r\n locationList.get(0).addPlayer(currentPlayer);\r\n currentPlayer.setHealth(3);\r\n }", "public void reset()\n {\n playersPiece = -1;\n king = false;\n empty = true;\n setTileColor(-1);\n }", "private void reset() // reset the game so another game can be played.\n\t{\n\t\tenableControls(); // enable the controls again..\n\n\t\tfor (MutablePocket thisMutPocket: playerPockets) // Reset the pockets to their initial values.\n\t\t{\n\t\t\tthisMutPocket.setDiamondCount(3);\n\t\t}\n\n\t\tfor(ImmutablePocket thisImmPocket: goalPockets)\n\t\t{\n\t\t\tthisImmPocket.setDiamondCount(0);\n\t\t}\n\n\t\tfor(Player thisPlayer: players) // Same for the player..\n\t\t{\n\t\t\tthisPlayer.resetPlayer();\n\t\t}\n\n\t\tupdatePlayerList(); // Update the player list.\n\n\t}", "public void reset() {\n\t\t//reset player to 0\n\t\tplayer = 0;\n\t\t\n\t\tfor(int row = size - 1; row >= 0; row --)\n\t\t\tfor(int col = 0; col < size; col ++)\n\t\t\t\tfor(int dep = 0; dep < size; dep ++)\n\t\t\t\t\t//goes through all board positions and sets to -1\n\t\t\t\t\tboard[row][col][dep] = -1;\n\t}", "@Override\n public void reset() {\n mMoveButtonActive = true;\n mMoveButtonPressed = false;\n mFireButtonPressed = false;\n droidHitPoints = 0;\n totalKillCollectPoints = 0;\n totalCollectNum = 0;\n// mCoinCount = 0;\n// mRubyCount = 0;\n mTotalKillCollectPointsDigits[0] = 0;\n mTotalKillCollectPointsDigits[1] = -1;\n mTotalCollectNumDigits[0] = 0;\n mTotalCollectNumDigits[1] = -1;\n totalKillCollectPointsDigitsChanged = true;\n totalCollectNumDigitsChanged = true;\n// mCoinDigits[0] = 0;\n// mCoinDigits[1] = -1;\n// mRubyDigits[0] = 0;\n// mRubyDigits[1] = -1;\n// mCoinDigitsChanged = true;\n// mRubyDigitsChanged = true;\n \n levelIntro = false;\n// mLevelIntro = false;\n \n mFPS = 0;\n mFPSDigits[0] = 0;\n mFPSDigits[1] = -1;\n mFPSDigitsChanged = true;\n mShowFPS = false;\n for (int x = 0; x < mDigitDrawables.length; x++) {\n mDigitDrawables[x] = null;\n }\n// mXDrawable = null;\n mFadePendingEventType = GameFlowEvent.EVENT_INVALID;\n mFadePendingEventIndex = 0;\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 }", "private void resetAfterGame() {\n }", "public void reset()\r\n/* 89: */ {\r\n/* 90:105 */ this.pos = 0;\r\n/* 91: */ }", "public void reset() {\r\n active.clear();\r\n missioncontrollpieces = GameConstants.PIECES_SET;\r\n rolled = 0;\r\n phase = 0;\r\n round = 0;\r\n action = 0;\r\n }", "public void resetPlayer(){\n images = new EntitySet(true,false, 0);\n }", "public void reset()\n {\n currentScore = 0;\n }", "public void zero() {\r\n\t\tthis.x = 0.0f;\r\n\t\tthis.y = 0.0f;\r\n\t}", "public void clearAllPoints() {\n\t\tpoints.clear();\n\t\tnotifyListeners();\n\t}", "public void Reset(){\n py = 0f;\n }", "public void reset() {\n\t\tpos.tijd = 0;\r\n\t\tpos.xposbal = xposstruct;\r\n\t\tpos.yposbal = yposstruct;\r\n\t\tpos.hoek = Math.PI/2;\r\n\t\tpos.start = 0;\r\n\t\topgespannen = 0;\r\n\t\tpos.snelh = 0.2;\r\n\t\tbooghoek = 0;\r\n\t\tpos.geraakt = 0;\r\n\t\tgeraakt = 0;\r\n\t\t\r\n\t}", "private void setPointsAs0() {\n\n for (int counter = 0; counter < countOfPoints; counter++) {\n points[counter] = new Point(0,0);\n }\n\n }", "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 resetGameRoom() {\n gameCounter++;\n score = MAX_SCORE / 2;\n activePlayers = 0;\n Arrays.fill(players, null);\n }", "public void resetPlayers() {\n Player curPlayer;\n for(int i = 0; i < players.size(); i++){\n curPlayer = players.peek();\n curPlayer.resetRole();\n curPlayer.setLocation(board.getSet(\"trailer\"));\n curPlayer.setAreaData(curPlayer.getLocation().getArea());\n view.setDie(curPlayer);\n players.add(players.remove());\n }\n\n }", "public void reset ()\n\t{\n\t\t//The PaperAirplane and the walls (both types) use their reconstruct ()\n\t\t//method to set themselves back to their starting points.\n\t\tp.reconstruct ();\n\t\tfor (int i = 0; i < w.length; i++)\n\t\t\tw[i].reconstruct ();\n\t\t\n\t\tfor (int i = 0; i < sW.length; i++)\n\t\t\tsW[i].reconstruct ();\n\t\t\t\n\t\t//the time is reset using the resetTime () method from the Timer class.\n\t\ttime.resetTime ();\n\t\t\n\t\t//the score is reset using the reconstruct method from the Score class.\n\t\tscore.reconstruct ();\n\t\t\n\t\t//The following variables are set back to their original values set in\n\t\t//the driver class.\n\t\ttimePassed = 0;\t\n\t\tnumClicks = 0;\n\t\teventFrame = 0;\n\t\tlevel = 1;\n\t\txClouds1 = 0;\n\t\txClouds2 = -500;\n\t\tyBkg1 = 0;\n\t\tyBkg2 = 600;\t\t\n\t}", "public void reset() {\r\n\t\tplayAgain = false;\r\n\t\tmainMenu = false;\r\n\t\tachievement = 0;\r\n\t}", "public void reset(){\n\t\tfrogReposition();\n\t\tlives = 5;\n\t\tend = 0;\n\t}", "public void reset() {\n monster.setHealth(10);\n player.setHealth(10);\n\n }", "public void resetGame()\r\n\t{\r\n\t\tthis.inProgress = false;\r\n\t\tthis.round = 0;\r\n\t\tthis.phase = 0;\r\n\t\tthis.prices = Share.generate();\r\n\t\tint i = 0;\r\n\t\twhile(i < this.prices.size())\r\n\t\t{\r\n\t\t\tthis.prices.get(i).addShares(Config.StartingStockPrice);\r\n\t\t\t++i;\r\n\t\t}\r\n\t\tint p = 0;\r\n\t\twhile(p < Config.PlayerLimit)\r\n\t\t{\r\n\t\t\tif(this.players[p] != null)\r\n\t\t\t{\r\n\t\t\t\tthis.players[p].reset();\r\n\t\t\t}\r\n\t\t\t++p;\r\n\t\t}\r\n\t\tthis.deck = Card.createDeck();\r\n\t\tthis.onTable = new LinkedList<>();\r\n\t\tCollections.shuffle(this.deck);\r\n\t\tthis.dealToTable();\r\n\t}", "public void reset() {\n\t\tscore = 0;\n\t}", "private void ResetGame(){\n this.deck = new Deck();\n humanPlayer.getHand().clear();\n humanPlayer.setWager(0);\n dealer.getHand().clear();\n }", "private void reset() {\n\n try {\n if (playerOne.win() || playerTwo.win()) {\n Stage stage = application.getPrimaryStage();\n stage.setScene(new EndScene(application, playerOne, playerTwo));\n } else {\n ball.setLayoutX(WIDTH / 2 - LAYOUT / 2);\n ball.setLayoutY(HEIGHT / 2 - LAYOUT / 2);\n\n ball.randomiseDirection(new Random().nextInt(4));\n ball.resetMovementSpeed();\n\n playerOnePaddle.setLayoutY(HEIGHT / 2 - playerOnePaddle.getHeight() / 2);\n playerTwoPaddle.setLayoutY(playerOnePaddle.getLayoutY());\n\n countdown = 50;\n }\n } catch (Exception ex) {\n Logger.getLogger(GameScene.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void reset() {\n\t\tmCenterOfProjection = new Vector3f(0, 0, 15);\n\t\tmLookAtPoint = new Vector3f(0, 0, 0);\n\t\tmUpVector = new Vector3f(0, 1, 0);\n\t\tmCameraMatrix = new Matrix4f();\n\t\tthis.update();\n\t}", "private void resetPlayer(int playerID) {\n\n\t\tif(getPlayerMap().get(playerID) != null){\n\t\t\tgetPlayerMap().get(playerID).setParticipating(false);\n\t\t\tgetPlayerMap().get(playerID).setCrashed(false);\n\t\t\tgetPlayerMap().get(playerID).setCurrentPosition(null);\n\t\t\tgetPlayerMap().get(playerID).setCurrentVelocity(null);\n\t\t}\n\t}", "public Player(){\n reset();\n }", "public void reset() {\n\n players = new Player[numAIPlayers + 1];\n createHumanPlayer();\n createAIPlayers(numAIPlayers);\n wholeDeck.shuffle();\n\n // --- DEBUG LOG ---\n // The contents of the complete deck after it has been shuffled\n Logger.log(\"COMPLETE GAME DECK AFTER SHUFFLE:\", wholeDeck.toString());\n\n assignCards(wholeDeck, players);\n activePlayer = randomlySelectFirstPlayer(players);\n playersInGame = new ArrayList<>(Arrays.asList(players));\n winningCard = null;\n roundWinner = null;\n\n roundNumber = 1;\n drawRound = 0;\n }", "public void resetHealth(){\n curHp = healthPoint;\n }", "public void resetPlayerTime ( ) {\n\t\texecute ( handle -> handle.resetPlayerTime ( ) );\n\t}", "void reset() {\n myManager.reset();\n myScore = 0;\n myGameOver = false;\n myGameTicks = myInitialGameTicks;\n myOldGameTicks = myInitialGameTicks;\n repaint();\n }", "public static void clearXY()\r\n{\r\n\tx = 0;\r\n\ty = 0; \r\n\t\r\n}", "public void clear() {\n\t\tpoints.clear();\n\t\trepaint();\n\t}", "public void resetStats(){\n curA = attack;\n curD = defense;\n curSpA = spAttack;\n curSpD = spDefense;\n curS = speed;\n }", "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 }", "public void resetGame() {\r\n\t\tfor(Player p : players) {\r\n\t\t\tp.reset();\r\n\t\t}\r\n\t\tstate.reset();\r\n\t}", "void resetPositions() {\n position = new PVector(Constants.width/2, Constants.height/2);\n velocity = new PVector();\n acceleration = new PVector();\n bullets = new ArrayList<Bullet>();\n rotation = 0;\n }", "private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}", "@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n }", "public void reset() {\n gameStatus = null;\n userId = null;\n gameId = null;\n gameUpdated = false;\n selectedTile = null;\n moved = false;\n }", "public static void restartPositions() {\r\n\t\tnew GameStats();\r\n\t\tMain.initPlayers();\r\n\t\tif (CustomizeFrame.getInstance() != null) {\r\n\t\t\t((Player) GameStats.getPlayers().get(0)).setCustomGraphics(64, 64);// set default custom\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// graphics\r\n\t\t}\r\n\t}", "private void reset(){\n getPrefs().setEasyHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setMediumHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n getPrefs().setHardHighScore(new HighScore(\"Player\", 99 * 60 + 59));\n easyData.setText(formatHighScore(getPrefs().getEasyHighScore()));\n mediumData.setText(formatHighScore(getPrefs().getMediumHighScore()));\n hardData.setText(formatHighScore(getPrefs().getHardHighScore()));\n }", "@Override\n public void resetGame() {\n\n }", "public void reset() {\n\t\tplayerModelDiff1.clear();\n\t\tplayerModelDiff4.clear();\n\t\tplayerModelDiff7.clear();\n\t\tif(normalDiffMethods)\n\t\t{\t\n\t\tupdatePlayerModel();\n\t\tdisplayReceivedRewards();\n\t\t}\n\t\tint temp_diffsegment1;\n\t\tint temp_diffsegment2;\n\t\tif (currentLevelSegment == 0) {\n\t\t\t//System.out.println(\"-you died in the first segment, resetting to how you just started\");\n\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(0);\n\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(1);\n\t\t}\n\t\telse {\n\t\t\t//System.out.println(\"-nextSegmentAlreadyGenerated:\" + nextSegmentAlreadyGenerated);\n\t\t\tif (nextSegmentAlreadyGenerated) {\n\t\t\t\t//because the next segment is already generated (and so the previous does not exist anymore),\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment+1);\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//because the next segment is not yet generated\n\t\t\t\ttemp_diffsegment1 = (int) plannedDifficultyLevels.get(currentLevelSegment-1);\n\t\t\t\ttemp_diffsegment2 = (int) plannedDifficultyLevels.get(currentLevelSegment);\n\t\t\t}\n\t\t}\n\t\tplannedDifficultyLevels.clear();\n\n\t\t//System.out.println(\"-resetting to: \" + temp_diffsegment1 + \", \" + temp_diffsegment2);\n\t\tplannedDifficultyLevels.add(temp_diffsegment1);\n\t\tplannedDifficultyLevels.add(temp_diffsegment2);\n\t\tcurrentLevelSegment = 0;\n\n\t\tpaused = false;\n\t\tSprite.spriteContext = this;\n\t\tsprites.clear();\n\n\t\ttry {\n\t\t\tlevel2 = level2_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tlevel3 = level3_reset.clone();\n\t\t} catch (CloneNotSupportedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n fixborders();\n\t\tconjoin();\n\n\t\tlayer = new LevelRenderer(level, graphicsConfiguration, 320, 240);\n\t\tfor (int i = 0; i < 2; i++)\n\t\t{\n\t\t\tint scrollSpeed = 4 >> i;\n\t\tint w = ((level.getWidth() * 16) - 320) / scrollSpeed + 320;\n\t\tint h = ((level.getHeight() * 16) - 240) / scrollSpeed + 240;\n\t\tLevel bgLevel = BgLevelGenerator.createLevel(w / 32 + 1, h / 32 + 1, i == 0, levelType);\n\t\tbgLayer[i] = new BgRenderer(bgLevel, graphicsConfiguration, 320, 240, scrollSpeed);\n\t\t}\n\n\t\tdouble oldX = 0;\n\t\tif(mario!=null)\n\t\t\toldX = mario.x;\n\n\t\tmario = new Mario(this);\n\t\tsprites.add(mario);\n\t\tstartTime = 1;\n\n\t\ttimeLeft = 200*15;\n\n\t\ttick = 0;\n\n\t\t/*\n\t\t * SETS UP ALL OF THE CHECKPOINTS TO CHECK FOR SWITCHING\n\t\t */\n\t\t switchPoints = new ArrayList<Double>();\n\n\t\t//first pick a random starting waypoint from among ten positions\n\t\tint squareSize = 16; //size of one square in pixels\n\t\tint sections = 10;\n\n\t\tdouble startX = 32; //mario start position\n\t\tdouble endX = level.getxExit()*squareSize; //position of the end on the level\n\t\t//if(!isCustom && recorder==null)\n level2.playValues = this.valueList[0];\n\t\t\trecorder = new DataRecorder(this,level3,keys);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.COINS); //Sander disable\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_COINS);\n\t\t\t////System.out.println(\"\\n enemies LEFT : \" + recorder.level.BLOCKS_POWER);\n\t\t\tgameStarted = false;\n\t}", "@Override\r\n\tpublic void reset() {\r\n\t\tfor(int i = 0; i < rows_size; i++) {\r\n\t\t\tfor(int j = 0; j < columns_size; j++)\r\n\t\t\t\tgame[i][j].Clear();\r\n\t\t}\r\n\t\tcomputerTurn();\r\n\t\tcomputerTurn();\r\n\t\tfreeCells = rows_size*columns_size - 2;\r\n\t\ttakenCells = 2;\r\n\t}", "public void reset() {\n // corresponding function called in the Board object to reset piece\n // positions\n board.reset();\n // internal logic reset\n lastColor = true;\n gameOver = false;\n opponentSet = false;\n }", "public void restart() {\n this.getPlayerHand().getHandCards().clear();\n this.dealerHand.getHandCards().clear();\n this.getPlayerHand().setActualValue(0);\n this.getDealerHand().setActualValue(0);\n this.gameOver = false;\n this.playerBet = MIN_BET;\n this.roundCount = 0;\n this.isRunning = true;\n this.startGame();\n }", "public void reset()\n\t{\n\t\t\n\t\tif (lifeCount > 1)\n\t\t{\n\t\t\tthis.setCollisionOn(false);\n\t\t\tthis.setEingabe(false);\n\t\t\tthis.reduceLifeCount();\n\t\t\timg.setRotation(0);\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY + 105);\n\t\t\tthis.spdX = startSpdX;\n\t\t\tthis.setSpdY(-60);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tsetRupeesInBag(0);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/*\n\t\t\t * When Gameover\n\t\t\t */\n\t\t\t\n\t\t\tthis.posX = startPosX;\n\t\t\tthis.setPosY(startPosY);\n\t\t\tcollisionShape.setCenterX(startPosX);\n\t\t\tcollisionShape.setCenterY(startPosY);\n\t\t\tthis.reduceLifeCount();\n\t\t}\n\t}", "public void reset() {\n playing = true;\n won = false;\n startGame();\n\n // Make sure that this component has the keyboard focus\n requestFocusInWindow();\n }", "private void resetTankPoint() {\n\t\tmodifyMapStatus(0);// release the point where tank occupies\n\t\tif (direction == UP) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() - speed);\n\t\t} else if (direction == DOWN) {\n\t\t\tthis.centerPoint.setY(centerPoint.getY() + speed);\n\t\t} else if (direction == LEFT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() - speed);\n\t\t} else if (direction == RIGHT) {\n\t\t\tthis.centerPoint.setX(centerPoint.getX() + speed);\n\t\t}\n\t\tresetFrontPoint();\n\t\tmodifyMapStatus(1);\n\t}", "public void reset() {\n position = 0;\n }", "public void resetPotandWins() {\n setPot(0.0);\n setNumOfPaylines(0);\n }", "@Override\n public void reset(MiniGame game) {\n }", "private void resetValues() {\n teamAScoreInt = 0;\n teamBScoreInt = 0;\n teamAFoulScoreInt = 0;\n teamBFoulScoreInt = 0;\n }", "public void reset() {\n\t\txD = x;\n\t\tyD = y;\n\t\taction = 0;\n\t\tdir2 = dir;\n\t\tvisibleToEnemy = false;\n\t\tselected = false;\n\t\t\n\t\tif (UNIT_R == true) {\n\t\t\t// dir = 0;\n\t\t} else if (UNIT_G == true) {\n\t\t\t// dir = 180 / 2 / 3.14;\n\t\t}\n\t}", "private void resetForNextTurn() {\n\t\tremove(ball);\n\t\tdrawBall();\n\t\tsetInitialBallVelocity();\n\t\tpaddleCollisionCount = 0;\n\t\tpause(2000); \t\t\t\t\n }", "public void resetgamestate() {\n \tthis.gold = STARTING_GOLD;\n \tthis.crew = STARTING_FOOD;\n \tthis.points = 0;\n \tthis.masterVolume = 0.1f;\n this.soundVolume = 0.5f;\n this.musicVolume = 0.5f;\n \n this.ComputerScience = new Department(COMP_SCI_WEPS.getWeaponList(), COMP_SCI_UPGRADES.getRoomUpgradeList(), this);\n this.LawAndManagement = new Department(LMB_WEPS.getWeaponList(), LMB_UPGRADES.getRoomUpgradeList(), this);\n this.Physics = new Department(PHYS_WEPS.getWeaponList(), PHYS_UPGRADES.getRoomUpgradeList(), this);\n \n this.playerShip = STARTER_SHIP.getShip();\n this.playerShip.setBaseHullHP(700);\n this.playerShip.repairHull(700);\n this.combatPlayer = new CombatPlayer(playerShip);\n }", "public void resetMove() {\n pointer = 0;\n }", "public void reset(){\n x = originalX;\n y = originalY;\n dx = originalDX;\n dy = originalDY;\n }", "synchronized public void flush() {\n \t\tp = null;\n \t\tp_layer = null;\n \t\tn_points = -1; // flag that points exist but are not loaded\n \t}", "private void init() {\n this.playing = true;\n this.hand.clear();\n this.onTable = 0;\n this.points = 0;\n }", "public void resetScore() {\n\t\tthis.score = 0;\n\t}", "public void resetPlayerStats(PlayerStats oldStats) {\r\n\t\toldStats.numberOfWins = 0;\r\n\t\toldStats.numberOfGames = 0;\r\n\t\toldStats.numberOfAttacks = 0;\r\n\t\toldStats.numberOfSPAttacks = 0;\r\n\t\toldStats.numberOfMeals = 0;\r\n\t}", "private void resetParameters() {\n\t\twKeyDown = false;\n\t\taKeyDown = false;\n\t\tsKeyDown = false;\n\t\tdKeyDown = false;\n\t\tmouseDown = false;\n\t\t// reset mouse\n\t\tMouse.destroy();\n\t\ttry {\n\t\t\tMouse.create();\n\t\t} catch (LWJGLException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t// resets the player's hp\n\t\tplayer.setHP(1000);\n\t\t// resets the player's position\n\t\tplayer.setX(initPlayerX);\n\t\tplayer.setY(initPlayerY);\n\t\t// the game is not over\n\t\tgameOver = false;\n\t\tstopDrawingPlayer = false;\n\t\tgameWon = false;\n\t\t// clears the entity arraylists\n\t\tenemy.clear();\n\t\tbullet.clear();\n\t\tenemy_bullet.clear();\n\t\tpowerup.clear();\n\t\texplosion.clear();\n\t\t// cash and totalCash are 0\n\t\tcash = 0;\n\t\ttotalCash = 0;\n\t\t// bullet is activated, upgraded weapons are not activated\n\t\tbulletShot = true;\n\t\tdoubleShot = false;\n\t\tlaserShot = false;\n\t\t// boss\n\t\tbossSpawned = false;\n\t\tbossMovement = 3;\n\t\tbossExplosionNum = 0;\n\t}", "public synchronized void resetScore() {\n score = 0;\n char2Type = -1;\n setScore();\n }", "private void reset() {\n\t\tsnake.setStart();\n\n\t\tfruits.clear();\n\t\tscore = fruitsEaten = 0;\n\n\t}", "public void reset() {\n\t\tfor (int i = 0; i<DIVISIONS; i++){\n\t\t\tfor (int j = 0; j<DIVISIONS; j++){\n\t\t\t\tgameArray[i][j] = 0;\n\t\t\t}\n\t\t}\n\t\tgameWon = false;\n\t\twinningPlayer = NEITHER;\n\t\tgameTie = false;\n\t\tcurrentPlayer = USER;\n\t}", "private void reset() {\n ms = s = m = h = 0;\n actualizar();\n }", "public final synchronized void reset() {\n\t\tnumTypes = numCoords = 0;\n\t}", "public void clearDomainMarks(){\n for (int i = 0 ; i < getBoardSize(); i++)\n for (int j = 0 ; j < getBoardSize(); j++){\n getPoint(i, j).setHolder(GoPlayer.UNKNOWN);\n }\n }", "public void resetScore();", "@Override\n public void clear() {\n beginMyTurn();\n }", "public void reset(){\n star.clear();\n planet.clear();\n }", "void losePoints() {\n if (currentPoints >= POINTSGIVEN) {\n currentPoints -= POINTSGIVEN;\n feedback = \"Your current rating is: \" + currentPoints + \"%\";\n }\n }", "public void reset(){\r\n \ttablero.clear();\r\n \tfalling = null;\r\n \tgameOver = false;\r\n \tlevel = 0;\r\n \ttotalRows = 0;\r\n \tLevelHelper.setLevelSpeed(level, this);\r\n }", "@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }", "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}", "public void reset() {\n points.reset();\n paintPolygon = false;\n paintResult = false;\n repaint();\n }" ]
[ "0.79330736", "0.7298506", "0.72326946", "0.7099674", "0.6993738", "0.69407445", "0.69286555", "0.68734574", "0.68470293", "0.6832071", "0.6789691", "0.6778243", "0.6771399", "0.66867673", "0.6658163", "0.66539437", "0.663454", "0.6624452", "0.6613017", "0.6608346", "0.65884596", "0.6587787", "0.6569324", "0.6557457", "0.65480363", "0.6543128", "0.65109473", "0.65057814", "0.6505114", "0.6504114", "0.6503119", "0.648234", "0.6476336", "0.6475862", "0.6466878", "0.6462916", "0.64614683", "0.6459057", "0.64538544", "0.6452661", "0.64491105", "0.6447797", "0.64474326", "0.64419955", "0.64211404", "0.6406927", "0.64040244", "0.63931674", "0.6388951", "0.63863444", "0.6375923", "0.6369744", "0.63511544", "0.6347002", "0.63364506", "0.6331982", "0.63294804", "0.6328164", "0.63064057", "0.6286537", "0.62840265", "0.6280964", "0.6280923", "0.62804884", "0.6275361", "0.6270533", "0.6252234", "0.6247613", "0.62416184", "0.62397164", "0.6226073", "0.6221577", "0.62152874", "0.6214838", "0.6213684", "0.6211919", "0.62097013", "0.6209691", "0.6201095", "0.619787", "0.6196613", "0.61961645", "0.6195345", "0.61901754", "0.6176451", "0.6175544", "0.61701673", "0.6166873", "0.6164481", "0.6155697", "0.61540246", "0.61434424", "0.61432403", "0.6140421", "0.61401105", "0.61397266", "0.6137784", "0.6131224", "0.61305064", "0.6128459" ]
0.63931257
48
This method is for getting points of a player.
public final int getPointsByPlayerId(final int playerId) { for (final Score score : this.scoreArray) { if (score.getPlayerId() == playerId) { return score.getPoints(); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getPoints ( Player player );", "public Integer getPointsForPlayer(String playerName) {\r\n if (!points.containsKey(playerName))\r\n return null;\r\n return points.get(playerName);\r\n }", "protected int getExperiencePoints(PlayerEntity player) {\n return super.getExperiencePoints(player);\n }", "public int getPointsP() {\r\n\r\n pointsP = getPointsPlayer() + getPointsPlayer2();\r\n\r\n if (pointsP >= 10) {\r\n pointsP -= 10;\r\n }\r\n return pointsP;\r\n }", "public PlayerStart[] getPlayerStartingPoints() {\n if(mPlayerStartList == null) {\n generate();\n }\n return mPlayerStartList;\n }", "protected int getExperiencePoints(EntityPlayer player)\n {\n return super.getExperiencePoints(player);\n }", "public PlayerPoints(Player owner) {\n this.owner = owner;\n }", "public int getPlayerOnePoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerOnePoints();\n }", "MazePoint getActivePlayerCoordinates();", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public int getPoints(){\r\n\t\treturn this.points;\r\n\t}", "public int getPoints(){\n\t\t//add the player socres(including monster killing, powerUp points and winning points\n\t\tint points = this.player.getScore() + 200*this.player.getHealth();\n\t\t\n\t\t//since the better the less time used, we use 600 seconds to minus the total seconds being used\n\t\t//and add it to the points\n\t\t//600 seconds is 10 minutes, which is definity long enough\n\t\t//if exceeds 10 minutes, we will subtract total score\n\t\tif(this.player.win()){\t//only if the player wins will we calculate the time\n\t\t\tpoints += (int)(3600 - (this.time / 1000000000));\n\t\t}\n\t\t\n\t\tthis.totalLabel.setText(String.valueOf(points));\t//set the value of the JLabel\n\t\t\n\t\treturn points;\n\t\t\n\t}", "public int getPlayPoints() {\n return localPlayPoints;\n }", "public int getPoints() {\n return this.points;\n }", "public int getPoints() { return points; }", "@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }", "public List<Vector2f> getPlayerStartPositions() {\n \n List<Vector2f> list = new ArrayList();\n PlayerStart[] points = getPlayerStartingPoints();\n \n if(points == null || points.length <= 0) {\n return list;\n }\n \n for(int i = 0; i < points.length; i++) {\n PlayerStart p = points[i];\n list.add(new Vector2f( p.x, p.y ));\n }\n \n return list;\n \n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "public int getPoints() {\n return points;\n }", "int getPoints();", "public int getPoints();", "public double getPoints()\r\n {\r\n return points;\r\n }", "public int getPoints() {\r\n\t\treturn this.points;\r\n\r\n\t}", "public int getPoints() {\n\t\treturn this.points;\n\t}", "public int getPoints() {\r\n\t\treturn points;\r\n\t}", "public int getPoints() {\n\t\treturn points;\n\t}", "public Point getXyLocation() {\n return playerxy;\n }", "public int getPlayerPosition(int player)\n {\n return players[player];\n }", "@Override\r\n\tpublic int getPoints() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn this.points;\r\n\t}", "public void updatePlayerPoints() {\n setText(Integer.toString(owner.getPlayerPoints()) + \" points\");\n }", "public Integer getPoints() {\r\n return points;\r\n }", "public LiveData<Integer> getPoints() {\n Log.d(\"berttest\", \"getPoints works\");\n return points;\n }", "public Player getPlayer() {\n return p;\n }", "public List<SpawnPoint> getSpawnPoints(){\n return spawnPoints;\n }", "public void givePlayerPoints(int pointsToAdd) {\n this.points = this.points + pointsToAdd;\n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "public Point getPlayerStart() {\r\n\t\treturn this.playerStart;\r\n\t}", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public void takePlayerPoints(int pointsToTake) {\n this.points = this.points - pointsToTake;\n }", "public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}", "public int getPoints() {\r\n\t\treturn levelManager.getPoints();\r\n\t}", "public Player[] getPlayers() {\n return this.players;\n }", "public Player[] getPlayers() {\n return this.players;\n }", "@Override\n public int getPoints(){\n\n }", "public int getPlayerTwoPoints() {\n if (gameStatus == null) return -1;\n return gameStatus.getPlayerTwoPoints();\n }", "public int getPoints(int[] details) throws RemoteException {\n return sd.getGames().get(details[0]).getPlayerPoints(details[1]);\n }", "public Player getPlayer() {\n\t\treturn p;\n\t}", "public int getPointsP2() {\r\n\r\n pointsP2 = pointsP + getPointsPlayer3();\r\n\r\n if (pointsP2 >= 10) {\r\n pointsP2 -= 10;\r\n }\r\n return pointsP2;\r\n }", "public Player[] getPlayers() {\r\n return players;\r\n }", "public Vecteur[] getPoints() {\n Vecteur[] points = {this.OA, this.OB};\n return points;\n }", "private void getPoints()\n\t{\n\t\ttotalEntered = statsCollector.getTotalEnteredPoints();\n\t\taverageWait = statsCollector.getAverageWaitPoints();\n\t\tmaxWait = statsCollector.getMaxWaitPoints();\n\t\ttimeAlive = statsCollector.getTimeAlivePoints();\n\t}", "public int getPilotPoints() {\n\n return this.pilotPoints;\n }", "public void setPointsForPlayer(String playerName, Integer points) {\r\n this.points.put(playerName, points);\r\n }", "public java.math.BigDecimal getPoints() {\n return this.points;\n }", "@Override\n public List<Player> getPlayers() {\n return players;\n }", "public abstract int getPoints();", "public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}", "public Player[] getPlayers() {\n return players;\n }", "public void countAllPoints() {\n\t\tfor(ClientThread player: players) {\n\t\t\tplayer.points = PointCounter.countPoint(player.clientCards);\n\t\t\tview.writeLog(player.name+\" : \"+player.points);\n\t\t}\n\t}", "@java.lang.Override\n public double getPlayerLat() {\n return playerLat_;\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}", "public Player getPlayer();", "public Player getPlayer();", "public String getPoints();", "public PointsInfo[] getPointsInfo() {\n return pointsInfo;\n }", "private boolean checkPoints() {\n\n for (Map.Entry pair : playersAgentsMap.entrySet()) {\n ArrayList<IAgent> iAgentList = (ArrayList<IAgent>) pair.getValue();\n\n int points = 0;\n try {\n points = iPlayerList.get(iAgentList.get(0).getName()).getPoints();\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n try {\n for (Component comp : playerList.getComponents()) {\n if (comp instanceof PlayerPanel) {\n PlayerPanel panel = (PlayerPanel) comp;\n if (panel.getName().equals(iAgentList.get(0).getName())) {\n panel.setPlayerPoints(points);\n }\n }\n\n }\n } catch (RemoteException e1) {\n e1.printStackTrace();\n }\n if (points >= targetAmount) {\n try {\n System.out.println(iAgentList.get(0).getName() + \" has won with \" + points + \" points\");\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return false;\n }\n }\n\n return true;\n }", "public ChunkCoordinates getPlayerCoordinates()\n {\n return new ChunkCoordinates(0, 0, 0);\n }", "public int getPlayerX() {\n return playerX;\n }", "public List<Point3D> getPoints() {\n return mPoints;\n }", "public int getP1Points() {\n return p1Points;\n }", "public List<Integer> getGamePoints() {\n return gamePoints;\n }", "PVector[] _getPoints() {\n PVector cen = _getCenter();\n \n PVector[] points = new PVector[_hitbox.length];\n float angle = _rotVector.heading();\n for(int i = 0; i < _hitbox.length; i++) {\n points[i] = new PVector(_hitbox[i].x, _hitbox[i].y);\n points[i].rotate(angle);\n points[i].x += cen.x;\n points[i].y += cen.y;\n }\n return points;\n }", "public Player (String name, int pilotPoints, int fighterPoints, int traderPoints, int engineerPoints) {\n this.name = name;\n this.pilotPoints = pilotPoints;\n this.fighterPoints = fighterPoints;\n this.traderPoints = traderPoints;\n this.engineerPoints = engineerPoints;\n this.credits = 1000;\n this.ship = new Ship(ShipType.GNAT);\n }", "public int getPoints() {\n return this.difficulty;\n }", "public int getOtherPlayerPoints(int[] details) throws RemoteException {\n if (details[1] == 1) {\n return sd.getGames().get(details[0]).getPlayerPoints(0);\n }\n return sd.getGames().get(details[0]).getPlayerPoints(1);\n }", "@NotNull\n public Vector2D[] getPts() {\n return pts;\n }", "public int getP2Points() {\n return p2Points;\n }", "protected int getCivilPoints(Player player) {\n\t\tint sum = 0;\n\t\tfor (Card card : player.getBoard().getCivil())\n\t\t\tsum += card.getvPoints();\n\t\treturn sum;\n\t}", "public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }", "public void calculatePoints() {\n /*\n for (int i = 0; i < getRacers().size(); i++) {\n String username = getRacers().get(i).getUsername();\n int total = 0;\n for (int j = 0; j < getRounds().size(); j++) {\n Slot slot = getRounds().get(j).findRacerInRound(username);\n if (slot != null) {\n total = total + slot.getPoints();\n }\n }\n getRacers().get(i).setPoints(total);\n }*/\n }", "public int returnPoints()\n {\n return score ;\n }", "@java.lang.Override\n public double getPlayerLat() {\n return playerLat_;\n }", "public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}", "@Override\n public PlayerStatistics getPlayerStats() {\n return this.playerStats;\n }", "public int getPoint(){\n return point;\n }", "public Point getPoint() {\n return point;\n }", "public ArrayList<Point> getAllPoints() {\n return allPoints;\n }", "public Point getPoint(){\n\t\treturn _point;\n\t}", "public Player getPlayer()\r\n {\r\n return player;\r\n }", "public String getPlayer() {\n return p;\n }", "private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}", "@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}", "public ArrayList<Player> getPlayers() {\n return players;\n }", "List<Player> getPlayers();", "public Player getPlayer() {\r\n return player;\r\n }", "public int differencePoints(){\n return player1Score - player2Score;\n }" ]
[ "0.8032643", "0.7233089", "0.7101748", "0.7032083", "0.7025918", "0.70222336", "0.7021375", "0.68780214", "0.68620056", "0.6791307", "0.6791307", "0.678751", "0.6778438", "0.67461526", "0.67331314", "0.67078304", "0.6699082", "0.66975075", "0.66975075", "0.66975075", "0.66975075", "0.6690849", "0.6664746", "0.66169393", "0.66106695", "0.6592481", "0.6574071", "0.65330976", "0.65303177", "0.6529842", "0.65132636", "0.65086496", "0.64962596", "0.6488453", "0.6486624", "0.6482078", "0.64666206", "0.6446001", "0.6434139", "0.64246356", "0.6423992", "0.6392286", "0.63750637", "0.63686436", "0.63686436", "0.63640165", "0.63550156", "0.6350297", "0.63470507", "0.6342719", "0.63162863", "0.6313941", "0.63084376", "0.630073", "0.6300079", "0.6295493", "0.62904096", "0.62855625", "0.62844706", "0.6280186", "0.62716323", "0.62286496", "0.6220853", "0.6220853", "0.62201035", "0.62169594", "0.62169594", "0.6211791", "0.62112993", "0.6201889", "0.61998636", "0.6199198", "0.6192598", "0.6192436", "0.6189198", "0.61849284", "0.61620486", "0.61551315", "0.61550957", "0.6143917", "0.61436296", "0.6137438", "0.6135077", "0.61295855", "0.6129402", "0.6128651", "0.61195123", "0.611091", "0.61069244", "0.6105787", "0.60962063", "0.6095109", "0.6093944", "0.60847825", "0.60831887", "0.60755813", "0.60755384", "0.6073056", "0.6072959", "0.60709727" ]
0.62028074
69
This method sorts the list of players by points in descending order.
public abstract Score[] getScore();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private ArrayList<IPlayer> sortPlayerAfterPoints() {\n ArrayList<IPlayer> arrlist = new ArrayList<>();\n\n iPlayerList.entrySet().stream().map((pair) -> (IPlayer) pair.getValue()).forEachOrdered((ip) -> {\n arrlist.add(ip);\n });\n\n Collections.sort(arrlist, (IPlayer p1, IPlayer p2) -> {\n try {\n if (p1.getPoints() == p2.getPoints()) {\n return 0;\n } else if (p1.getPoints() > p2.getPoints()) {\n return -1;\n } else {\n return 1;\n }\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n return 0;\n });\n\n return arrlist;\n }", "private void sortResults(){\r\n this.sortedPlayers = new ArrayList<>();\r\n int size = players.size();\r\n while (size > 0) {\r\n Player lowestPointsPlayer = this.players.get(0);\r\n for(int i = 0; i<this.players.size(); i++){\r\n if(lowestPointsPlayer.getPoints() <= this.players.get(i).getPoints()){\r\n lowestPointsPlayer = this.players.get(i);\r\n }\r\n }\r\n this.sortedPlayers.add(lowestPointsPlayer);\r\n this.players.remove(lowestPointsPlayer);\r\n size--;\r\n }\r\n\r\n\r\n }", "public void putListInPointOrder() {\n for (int i = 0; i < players.size(); i++) {\n Player s = players.get(i);\n if (i < players.size() - 1) {\n for (int j = i; j < players.size(); j++) {\n while (s.getPoint() < players.get(j).getPoint()) {\n Collections.swap(players, i, j);\n }\n\n }\n }\n }\n }", "public static void SortPlayers () {\r\n boolean sorted = false;\r\n Player temp;\r\n\r\n while (!sorted) {\r\n sorted = true;\r\n for (int i = 0; i < player.length - 1; i++) {\r\n if (player[i].score > player[i + 1].score) {\r\n\r\n // SWAP THE OBJECTS' POSITION IN THE ARRAY\r\n temp = player[i];\r\n player[i] = player[i + 1];\r\n player[i + 1] = temp;\r\n\r\n sorted = false;\r\n }\r\n\r\n }\r\n }\r\n\r\n }", "public ArrayList<Player> getLeaderboard() {\n ArrayList<Player> result = new ArrayList(players);\n for (Player player : players) {\n Collections.sort(result);\n Collections.reverse(result);\n }\n return result;\n}", "public List<Player> getSortedListOfPlayersDesc(Long idGame) {\n Game game = this.getGameById(idGame);\n\n if(game == null) {\n return null;\n }\n\n List<Player> players= new ArrayList<>(game.getPlayers());\n game.getPlayers().sort((o1, o2) -> {\n if(o1.getHandValue() < o2.getHandValue())\n return 1;\n if(o1.getHandValue() > o2.getHandValue())\n return -1;\n return 0 ;\n });\n\n return players;\n }", "private void sortPlayerScores(){\n text=\"<html>\";\n for (int i = 1; i <= Options.getNumberOfPlayers(); i++){\n if(Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey() != null){\n Integer pl = Collections.max(playerScores.entrySet(), (entry1, entry2) -> entry1.getValue() - entry2.getValue()).getKey();\n if(pl != null && playerScores.containsKey(pl)){\n text += \"<p>Player \" + pl + \" Scored : \" + playerScores.get(pl) + \" points </p></br>\";\n playerScores.remove(pl);\n }\n }\n }\n text += \"</html>\";\n }", "public static void sortY(ArrayList<Point> points) {\n\t\tCollections.sort(points, new Comparator<Point>() {\n\t\t\t public int compare(Point p1, Point p2) {\n\t\t\t\tif (p1.getY() < p2.getY())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (p1.getY() > p2.getY())\n\t\t\t\t\treturn 1;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "public PlayerProfile[] getLeaderboardOrdered() {\r\n PlayerProfile[] temp = new PlayerProfile[players.length];\r\n for(int i = 0; i < players.length; i++) {\r\n temp[i] = players[i].getPlayerProfile();\r\n }\r\n int n = temp.length;\r\n //bubble sort...\r\n for (int i = 0; i < n-1; i++)\r\n for (int j = 0; j < n-i-1; j++)\r\n if (temp[j].getWins() > temp[j+1].getWins())\r\n {\r\n // swap arr[j+1] and arr[j]\r\n PlayerProfile temp2 = temp[j];\r\n temp[j] = temp[j+1];\r\n temp[j+1] = temp2;\r\n }\r\n return temp;\r\n }", "private static void multipleSortOfFinalPlayerList() {\n\n sortedFinalPlayerList = new ArrayList<>();\n\n Comparator<Player> byLastName = (e1, e2) -> e1\n .getLastName().compareTo(e2.getLastName());\n\n Comparator<Player> byFirstName = (e1, e2) -> e1\n .getFirstName().compareTo(e2.getFirstName());\n\n Comparator<Player> byCountry = (e1, e2) -> e1\n .getCountry().compareTo(e2.getCountry());\n\n streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry))\n .forEach(e -> System.out.print(e));\n Stream<Player> f = streamPlayerList.stream().sorted(byLastName.thenComparing(byFirstName).thenComparing(byCountry));\n f.forEach(r -> sortedFinalPlayerList.add(r));\n }", "public static ArrayList<FootballClub> sortClubsByPoints(ArrayList<FootballClub> guiSeasonFilteredClubs) {\n\n // comparator to sort the clubs by points\n Comparator<FootballClub> comparator = (club1, club2) -> {\n\n if(club1.getClubStatistics().getTotalPointsScored() == (club2.getClubStatistics()\n .getTotalPointsScored())){\n\n if(club1.getTotalGoalsScored() < club2.getTotalGoalsScored()){\n return 1;\n\n }\n\n }else{\n\n if(club1.getClubStatistics().getTotalPointsScored() < club2.getClubStatistics()\n .getTotalPointsScored()){\n return 1;\n\n }\n }\n return -1;\n };\n\n // sorting only if there are clubs to sort\n if (guiSeasonFilteredClubs != null) {\n guiSeasonFilteredClubs.sort(comparator);\n\n }\n\n return guiSeasonFilteredClubs;\n\n }", "@Override\n public int compareTo(Player p2)\n {\n if(this.points == p2.getPoints())\n return p2.getKillboardpoints() - this.killboardpoints;\n return p2.getPoints() - this.points;\n }", "@Override\r\n\tpublic int compare(Player o1, Player o2)\r\n\t{\r\n\t\tPlayer p1 = (Player) o1;\r\n\t\tPlayer p2 = (Player) o2;\r\n\t\tif (p1.count == p2.count)\r\n\t\t{\r\n\t\t\treturn p1.name.compareTo(p2.name);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\treturn p2.count - p1.count; // sorting by count in decreasing order.\r\n\t\t\t// p1.count - p2.count is for sorting by count in increasing order.\r\n\t\t}\r\n\t}", "public static ArrayList<FootballClub> sortByPoints(String season){\n PremierLeagueManager.loadingData();\n\n // filters the football clubs according to the season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // sorting by points only in descending order\n guiSeasonFilteredClubs = sortClubsByPoints(guiSeasonFilteredClubs);\n\n return guiSeasonFilteredClubs;\n }", "public List<Point> getPoints() {\n return pointRepository.findAll()//\n .stream() //\n .sorted((p1, p2) -> Integer.compare(p1.getPosition(), p2.getPosition()))//\n .collect(Collectors.toList());\n }", "public void sortScoresDescendently(){\n this.langsScores.sort((LangScoreBankUnit o1, LangScoreBankUnit o2) -> {\n return Double.compare(o2.getScore(),o1.getScore());\n });\n }", "@Override\n public int compareTo(Player p) {\n if (p.playerWorth>playerWorth)return 1;\n else if (p.playerWorth<playerWorth) return -1;\n return 0;\n }", "private static List<Point> reorder(List<Point> points) {\n Point tl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tl.x + tl.y) > (points.get(i).x + points.get(i).y)) {\n tl = points.get(i);\n }\n }\n\n // find bottom right => max sum\n Point br = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((br.x + br.y) < (points.get(i).x + points.get(i).y)) {\n br = points.get(i);\n }\n }\n\n // find top right => max x - y\n Point tr = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((tr.x - tr.y) < (points.get(i).x - points.get(i).y)) {\n tr = points.get(i);\n }\n }\n\n // find bottom left => min x - y\n Point bl = points.get(0);\n for (int i = 1; i< 4; i++) {\n if ((bl.x - bl.y) > (points.get(i).x - points.get(i).y)) {\n bl = points.get(i);\n }\n }\n\n List<Point> reorderList = new ArrayList<>();\n reorderList.add(tl);\n reorderList.add(tr);\n reorderList.add(br);\n reorderList.add(bl);\n\n return reorderList;\n }", "private void showFinalResults(){\r\n\r\n System.out.println(\"Player\\t\\t:\\t\\tPoints\");\r\n for(Player player : this.sortedPlayers){\r\n System.out.println(player.toString());\r\n }\r\n System.out.println();\r\n }", "public void ranking(ArrayList<Player> list) {\r\n\t\tCollections.sort(list, new Comparator<Player>(){\r\n\t\t\tpublic int compare(Player a1, Player a2) {\r\n\t\t\t\tint a = a2.getPercent()-a1.getPercent(); \r\n\t\t\t\treturn a==0?a1.getUserName().compareTo(a2.getUserName()):a;\r\n\t\t\t}\r\n\t\t});\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile(aa.hasNext()){\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tin.showRanking();\r\n\t\t}\r\n\t}", "public static List<Player> getRankedPlayers(List<Player> players) {\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n players.sort(playerComparator);\n return players;\n }", "@Override\n public int compareTo(Player p) {\n return getScore() - p.getScore();\n }", "private void sort() {\n ScoreComparator comparator = new ScoreComparator();\n Collections.sort(scores, comparator);\n }", "private void sortPlayers(List<Player> players, String sortField) {\n\t LOG.info(\"sortPlayers=(players=\" + players + \",sortField=\" + sortField);\n\t if (sortField != null && !sortField.equals(\"\")) {\n\t Comparator<Player> comp = new Comparator<Player>(){\n\t @Override\n\t public int compare(Player p1, Player p2) {\n\t // Descending if it begins with a -\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t};\n\t\t\tCollections.sort(players, comp);\n\t\t}\n\t}", "@Test\n\tpublic void testLLSort() {\n\t\tLinkedList playerList = new LinkedList();\n\t\tPlayer tempInsert5 = new Player();\n\t\ttempInsert5.setName(\"test5\");\n\t\ttempInsert5.setPoints(5);\n\t\ttempInsert5.setWins(4);\n\t\ttempInsert5.setLosses(3);\n\t\tplayerList.LLInsert(tempInsert5);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert2 = new Player();\n\t\ttempInsert2.setName(\"test2\");\n\t\ttempInsert2.setPoints(2);\n\t\ttempInsert2.setWins(1);\n\t\ttempInsert2.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert2);\n\t\t\n\t\tPlayer tempInsert3 = new Player();\n\t\ttempInsert3.setName(\"test3\");\n\t\ttempInsert3.setPoints(3);\n\t\ttempInsert3.setWins(2);\n\t\ttempInsert3.setLosses(1);\n\t\tplayerList.LLInsert(tempInsert3);\n\t\t\n\t\tPlayer tempInsert1 = new Player();\n\t\ttempInsert1.setName(\"test1\");\n\t\ttempInsert1.setPoints(1);\n\t\ttempInsert1.setWins(0);\n\t\ttempInsert1.setLosses(0);\n\t\tplayerList.LLInsert(tempInsert1);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tPlayer tempInsert4 = new Player();\n\t\ttempInsert4.setName(\"test4\");\n\t\ttempInsert4.setPoints(4);\n\t\ttempInsert4.setWins(3);\n\t\ttempInsert4.setLosses(2);\n\t\tplayerList.LLInsert(tempInsert4);\n\t\tplayerList.LLPrint();\n\t\t\n\t\tplayerList.LLSort();\n\t\tassertEquals(playerList.LLPrint(), \n\t\t\t\t\"test5: Points: 5, Wins/Losses: 4/3\\n\"\n\t\t\t\t\t\t+ \"test4: Points: 4, Wins/Losses: 3/2\\n\"\n\t\t\t\t\t\t+ \"test3: Points: 3, Wins/Losses: 2/1\\n\"\n\t\t\t\t\t\t+ \"test2: Points: 2, Wins/Losses: 1/0\\n\"\n\t\t\t\t\t\t+ \"test1: Points: 1, Wins/Losses: 0/0\\n\");\n\t}", "@Override\r\n\tpublic int compare(Player p1, Player p2) {\n\t\treturn p1.getSteps()-p2.getSteps();\r\n\t}", "public void sort() {\n Collections.sort(jumpers, new SortJumperByPoints()); \n }", "public void bubbleSort(ArrayList<Pokemon> p);", "public void sortPlayers(ArrayList<Player> playerRoster) {\n\n for (int i = 0; i < playerRoster.size(); i++) {\n setPlayerPosition(playerRoster.get(i));\n }\n }", "public int compareTo(Object player) {\n return ((Player) this).lives - ((Player) player).lives;\n }", "public void sortScores(){\r\n // TODO: Use a single round of bubble sort to bubble the last entry\r\n // TODO: in the high scores up to the correct location.\r\n \tcount=0;\r\n \tfor(int i=Settings.numScores-1; i>0;i--){\r\n \t\tif(scores[i]>scores[i-1]){\r\n \t\t\tint tempS;\r\n \t\t\ttempS=scores[i];\r\n \t\t\tscores[i]=scores[i-1];\r\n \t\t\tscores[i-1]=tempS;\r\n \t\t\t\r\n \t\t\tString tempN;\r\n \t\t\ttempN=names[i];\r\n \t\t\tnames[i]=names[i-1];\r\n \t\t\tnames[i-1]=tempN;\r\n \t\t\tcount++;\r\n \t\t}\r\n \t}\r\n }", "@Override\r\n\t\t\tpublic int compare(Presentor o1, Presentor o2) {\n\t\t\t\tint sort = 0;\r\n\t\t\t\tint a = o1.getZs() - o2.getZs();\r\n\t\t\t\tif (a != 0) {\r\n\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta = o1.getJd() - o2.getJd();\r\n\t\t\t\t\tif (a != 0) {\r\n\t\t\t\t\t\tsort = (a < 0) ? 1 : -1;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\treturn sort;\r\n\t\t\t}", "public void sortHighscores(){\n Collections.sort(highscores);\n Collections.reverse(highscores);\n }", "private List<Player> calculatePoints()\n\t{\n\t\tthis.systemDataInput.printMessage(\"Calculating points...\");\n\t\t\n\t\tArrayList<Player> winningPlayers = new ArrayList<Player>();\n\t\tint maxPoints = 0;\n\t\tint maxBuilding = 0;\n\t\t\n\t\tfor(Player player : playerList)\n\t\t{\n\t\t\tint points = 0;\n\t\t\tint bestBuilding = 0;\n\t\t\t\n\t\t\tfor(Area area : board.getAreaList())\n\t\t\t{\n\t\t\t\tif (!area.hasDemon())\n\t\t\t\t{\n\t\t\t\t\tif (area.hasBuilding(player))\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints += area.getCost();\n\t\t\t\t\t\tif (area.getCost() > bestBuilding)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tbestBuilding = area.getCost();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tpoints += 5 * area.getMinionList(player).size();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tint playerMoney = player.getMoneyAmount();\n\t\t\tpoints += playerMoney;\n\t\t\t\n\t\t\tfor(Card card : player.getInFrontOfHimDeck())\n\t\t\t{\n\t\t\t\tfor(Action action : card.getActions(BorrowMoneyFromTheBank.class))\n\t\t\t\t{\n\t\t\t\t\tint moneyToPayBack = ((BorrowMoneyFromTheBank)action).getMoneyToPayBack();\n\t\t\t\t\tif (playerMoney >= moneyToPayBack)\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= moneyToPayBack;\n\t\t\t\t\t\tplayerMoney -= moneyToPayBack;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tpoints -= ((BorrowMoneyFromTheBank)action).getPointsToLose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tplayer.addPoints(points);\n\t\t\tplayer.getDataInput().printMessage(points + \" points\");\n\t\t\t\n\t\t\tif (points > maxPoints || (points == maxPoints && bestBuilding > maxBuilding))\n\t\t\t{\n\t\t\t\tmaxPoints = points;\n\t\t\t\tmaxBuilding = bestBuilding;\n\t\t\t\twinningPlayers.clear();\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t\telse if (points == maxPoints && bestBuilding == maxBuilding)\n\t\t\t{\n\t\t\t\twinningPlayers.add(player);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn winningPlayers;\n\t}", "public void assignPointsToTeams(){\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRuns() < two.getTotalRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRuns(setvalue);\n }\n \n //SORTS FOR TOTALHOMERUNS THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalHomeRuns() < two.getTotalHomeRuns()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsHomeRuns(setvalue);\n }\n \n //SORTS FOR RunsBattedIn THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalRunsBattedIn() < two.getTotalRunsBattedIn()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsRunsBattedIn(setvalue);\n }\n \n //SORTS FOR STOLENBASES THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getTotalStolenBases() < two.getTotalStolenBases()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStolenBases(setvalue);\n }\n \n //SORTS FOR BATTINGAVERAGE THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getBattingAverage() < two.getBattingAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsBattingAverage(setvalue);\n }\n \n //SORTS FOR Wins THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWins() < two.getWins()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWins(setvalue);\n }\n \n //SORTS FOR Strikeouts THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getStrikeouts() < two.getStrikeouts()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsStrikeouts(setvalue);\n }\n \n //SORTS FOR Saves THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getSaves() < two.getSaves()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsSaves(setvalue);\n }\n \n //SORTS FOR ERA THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getEarnedRunAverage() < two.getEarnedRunAverage()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsERA(setvalue);\n }\n \n //SORTS FOR WHIP THEN ASSIGNS EACH THE CORRESPONDING POINT VALUE\n Collections.sort(this.teams, new Comparator<Object>() {\n @Override\n public int compare(final Object object1, final Object object2) {\n Team one = (Team)object1;\n Team two = (Team)object2;\n \n if(one.getWhip() < two.getWhip()){\n return 1;\n }\n else{\n return -1;\n }\n }\n });\n \n for(int i=0;i<teams.size();i++){\n int setvalue = 12-i;\n if(setvalue<0){\n setvalue = 0;\n }\n Team t = teams.get(i);\n t.setPointsWHIP(setvalue);\n } \n }", "public void sort() {\n /*int jokers = this.getJokers();\n\t\tif (jokers > 0 && this.size() > 2) {\n\t\t\tArrayList<Tile> list = new ArrayList<>();\n for (int i=0; i<this.size(); i++) {\n\t\t\t\tif (this.get(i).getColour() == 'J') {\n\t\t\t\t\tTile joker = this.remove(this.get(i));\n\t\t\t\t\tlist.add(joker);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (Tile j : list) {\n\t\t\t\tthis.addInSort(j);\n\t\t\t}\n }*/\n \n\n //may need something in here to accomodate a joker changing its form\n\n if (tiles.size() > 1) { //will only sort a meld with any tiles in it\n //Override default comparator to compare by tile value (ints)\n Collections.sort(tiles, new Comparator<Tile>() {\n @Override \n public int compare(Tile t1, Tile t2) { \n if (t1.getColour() > t2.getColour()) {\n return 1;\n } else if (t1.getColour() < t2.getColour()) {\n return -1;\n }\n if (t1.getValue() > t2.getValue()) {\n return 1;\n } else if (t1.getValue() < t2.getValue()) {\n return -1;\n } else {\n return 0;\n }\n }\n });\n }\n\n }", "public void move_elevator() {\n\n // Sort in descending order\n\n int temp;\n int n = passengers.size();\n\n\n\n\n\n\n }", "private void sortByX() {\n\t\tCollections.sort(pointList, getXComparator());\n\t}", "private void calcWinner(){\n //local class for finding ties\n class ScoreSorter implements Comparator<Player> {\n public int compare(Player p1, Player p2) {\n return p2.calcFinalScore() - p1.calcFinalScore();\n }\n }\n\n List<Player> winners = new ArrayList<Player>();\n int winningScore;\n\n // convert queue of players into List<Player> for determining winner(s)\n while (players.size() > 0) {\n winners.add(players.remove());\n } \n\n // scoreSorter's compare() should sort in descending order by calcFinalScore()\n // Arrays.sort(winnersPre, new scoreSorter()); // only works w/ normal arrays :(\n Collections.sort(winners, new ScoreSorter());\n\n // remove any players that don't have the winning score\n winningScore = winners.get(0).calcFinalScore();\n for (int i = winners.size()-1; i > 0; i--) { // remove non-ties starting from end, excluding 0\n if (winners.get(i).calcFinalScore() < winningScore) {\n winners.remove(i);\n }\n }\n\n // Announce winners\n boolean hideCalculatingWinnerPopUp = false;\n String winnersString = \"\";\n if (winners.size() > 1) {\n winnersString = \"There's a tie with \" + winners.get(0).calcFinalScore() + \" points. The following players tied: \";\n for (Player p : winners) {\n winnersString += p.getName() + \" \";\n }\n view.showPopUp(hideCalculatingWinnerPopUp, winnersString);\n } else {\n view.showPopUp(hideCalculatingWinnerPopUp, winners.get(0).getName() + \" wins with a score of \" + winners.get(0).calcFinalScore() + \" points! Clicking `ok` will end and close the game.\");\n }\n }", "public static void sortX(ArrayList<Point> points) {\n\t\tCollections.sort(points, new Comparator<Point>() {\n\t\t\tpublic int compare(Point p1, Point p2) {\n\t\t\t\tif (p1.getX() < p2.getX())\n\t\t\t\t\treturn -1;\n\t\t\t\tif (p1.getX() > p2.getX())\n\t\t\t\t\treturn 1;\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic int compare(GridPoint o1, GridPoint o2) {\n\t\treturn o1.getLesson()-o2.getLesson();\n\t}", "@Override\r\n\t\tpublic int compareTo(usrPoint a) {\n\t\t\tif(score > a.score)\r\n\t\t\t\treturn -1;\r\n\t\t\tif(score < a.score)\r\n\t\t\t\treturn 1;\r\n\t\t\treturn name.compareTo(a.name);\r\n\t\t}", "public static boolean testSort() {\r\n Manager inst;\r\n try {\r\n inst = new PokemonTable();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n return false;\r\n }\r\n LinkedList<Pokemon> list;\r\n list = inst.sortByAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() < list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getAttack() > list.get(i).getAttack()) {\r\n System.out.println(\"attack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() < list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getDefense() > list.get(i).getDefense()) {\r\n System.out.println(\"defense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).getFavorite() && list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByFavorite(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getFavorite() && !list.get(i).getFavorite()) {\r\n System.out.println(\"favorite sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() < list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByHp(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getHp() > list.get(i).getHp()) {\r\n System.out.println(\"hp sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (!list.get(i - 1).isLegendary() && list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByLegendary(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).isLegendary() && !list.get(i).isLegendary()) {\r\n System.out.println(\"legendary sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) > 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortByName(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getName().compareTo(list.get(i).getName()) < 0) {\r\n System.out.println(\"name sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() < list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpAttack(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpAttack() > list.get(i).getSpAttack()) {\r\n System.out.println(\"spAttack sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() < list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpDefense(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpDefense() > list.get(i).getSpDefense()) {\r\n System.out.println(\"spDefense sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(true);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() < list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n list = inst.sortBySpeed(false);\r\n for (int i = 1; i < list.size(); i++) {\r\n if (list.get(i - 1).getSpeed() > list.get(i).getSpeed()) {\r\n System.out.println(\"speed sort\");\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public void sortChart() {\n\t\tPassengerTrain temp;\n\t\tGoodsTrain temp1;\n\n\t\tfor (int index = 0; index < TrainDetails.passengerList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.passengerList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.passengerList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.passengerList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp = TrainDetails.passengerList.get(index);\n\t\t\t\t\tTrainDetails.passengerList.set(index,\n\t\t\t\t\t\t\tTrainDetails.passengerList.get(i));\n\t\t\t\t\tTrainDetails.passengerList.set(i, temp);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int index = 0; index < TrainDetails.goodsList.size(); index++) {\n\t\t\tfor (int i = 0; i < TrainDetails.goodsList.size(); i++) {\n\t\t\t\tdouble totalTime1 = ((TrainDetails.goodsList).get(index).duration);\n\t\t\t\tdouble totalTime2 = (TrainDetails.goodsList.get(i).duration);\n\t\t\t\tif (totalTime1 < totalTime2) {\n\t\t\t\t\ttemp1 = TrainDetails.goodsList.get(index);\n\t\t\t\t\tTrainDetails.goodsList.set(index,\n\t\t\t\t\t\t\tTrainDetails.goodsList.get(i));\n\t\t\t\t\tTrainDetails.goodsList.set(i, temp1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t}", "@Override\n\tpublic void sortDeck() {\n\t\tfor(int i = 0; i < getCount() - 1; i++) {\n\t\t\tfor(int j = i + 1; j < getCount(); j++) {\n\t\t\t\tif(aktuellesDeck[i].compareTo(aktuellesDeck[j]) == 1) {\n\t\t\t\t\tSkatCard speicherCard = new SkatCard(aktuellesDeck[i].getSuit(), aktuellesDeck[i].getRank());\n\t\t\t\t\taktuellesDeck[i] = null;\n\t\t\t\t\taktuellesDeck[i] = new SkatCard(aktuellesDeck[j].getSuit(), aktuellesDeck[j].getRank());\n\t\t\t\t\taktuellesDeck[j] = null;\n\t\t\t\t\taktuellesDeck[j] = new SkatCard(speicherCard.getSuit(), speicherCard.getRank());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic int compareTo(Card card) {\r\n\t\t\r\n\t\treturn this.getPoints()-card.getPoints();\r\n\t}", "public void sort()\n\t{\n\t\tfor(int i=0;i<bowlers.size()-1;i++)\n\t\t{\n\t\t\tfor(int j=i+1;j<bowlers.size();j++)\n\t\t\t{\n\t\t\t\tif(bowlers.get(i).getBall()<bowlers.get(j).getBall())\n\t\t\t\t{\n\t\t\t\t\tBowler bowler=bowlers.get(i);\n\t\t\t\t\tbowlers.set(i,bowlers.get(j));\n\t\t\t\t\tbowlers.set(j,bowler);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<bowlers.size();i++)\n\t\t{\n\t\tSystem.out.println(bowlers.get(i).getBall());\n\t\t}\n\t}", "public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }", "public CountryList sortByCountDesc() {\n\t\tCountryList sorted = new CountryList();\n\t\tfor (int i = 0; i < this.nextAvailable; i++)\n\t\t\tsorted.binInsertDesc(new Country(this.countries.get(i)));\n\t\tsorted.totalCount = this.totalCount;\n\t\treturn sorted;\n\t}", "public static List<Player> getRankedPlayersInTeam(List<Player> players, Player.PlayerTeam team) {\n List<Player> choosenTeam = players.stream()\n .filter(player -> player.getTeam() == team)\n .collect(Collectors.toList());\n\n\n Comparator<Player> playerComparator = new Comparator<Player>() {\n @Override\n public int compare(Player o1, Player o2) {\n return o2.getCurrentScore() - o1.getCurrentScore();\n }\n };\n choosenTeam.sort(playerComparator);\n return choosenTeam;\n\n }", "private static List<StudentRecord> vratiSortiranuListuOdlikasa(List<StudentRecord> records) {\n\t\treturn records.stream()\n\t\t\t\t\t\t.filter(s -> s.getGrade() == 5)\n\t\t\t\t\t\t.sorted(StudentRecord.BY_POINTS.reversed())\n\t\t\t\t\t\t.collect(Collectors.toList());\n\t}", "private void bubbleSort() {\r\n\r\n int n = leaderboardScores.size();\r\n int intChange;\r\n String stringChange;\r\n\r\n for (int i = 0 ; i < n - 1 ; i ++ ) {\r\n for (int j = 0 ; j < n - i - 1 ; j ++ ) {\r\n\r\n if (leaderboardScores.get(j) > leaderboardScores.get(j + 1)) {\r\n // swap arr[j+1] and arr[i]\r\n intChange = leaderboardScores.get(j);\r\n leaderboardScores.set(j, leaderboardScores.get(j + 1));\r\n leaderboardScores.set(j + 1, intChange);\r\n\r\n stringChange = leaderboardUsers.get(j);\r\n leaderboardUsers.set(j, leaderboardUsers.get(j + 1));\r\n leaderboardUsers.set(j + 1, stringChange);\r\n }\r\n\r\n }\r\n }\r\n }", "private List<Score> order(List<Score> s)\n {\n Collections.sort(s, new Comparator<Score>()\n {\n\n @Override\n public int compare(Score o1, Score o2) {\n // TODO Auto-generated method stub\n\n return o1.getSentId() - o2.getSentId();\n }\n });\n return s;\n }", "public List<PwPair> getPwPairsSortedByRank() {\n // Get all valid PwPairs.\n List<PwPair> allPwPairs = getPwPairs();\n\n // Sort the list in descending order.\n Collections.sort(allPwPairs, Collections.reverseOrder());\n\n // Filter the list.\n return removeDuplicateSiteUrls(allPwPairs);\n }", "public void sortObjectList(){\n\t\tint counter = gameObjectsList.size() - 1;\n\t\tif (gameObjectsList == null || gameObjectsList.size() == 0){\n\t\t\treturn;\n\t\t}\n\t\tquicksort(0, counter);\n\t}", "public ArrayList<Question> getQuestionsSortedByScore() {\n \t\tArrayList<Question> sortedQuestions = questions;\n \n \t\tCollections.sort(sortedQuestions, Collections.reverseOrder(new ScoreComparator()));\n \t\t\n \t\treturn sortedQuestions;\n \t}", "@Override\n\tpublic int compare(Player o1, Player o2) {\n\t\treturn (int) (o1.getTime() - o2.getTime());\t\t\t\t\t\t\t\t\t\t//returns the time difference, if big, then player two is better \n\t}", "@Override\n public int compare(QuickHull.Point p1, QuickHull.Point p2){\n if(p1.x== p2.x && p1.y==p2.y)\n return 0;\n //if x coordinate less or x coordinate equal, but\n //y coordinate is less (tie break)\n else if(p1.x<p2.x || p1.x==p2.x && p1.y<p2.y)\n return -1;\n else\n return 1;\n }", "@Override\n\tpublic int compareTo(Object player) {\n\t\t// TODO Auto-generated method stub\n\t\tPlayer p=(Player) player;\n\t\tif(this.Score>p.getscore()) {\n\t\t\treturn -1;\n\t\t}\n\t\telse if(this.Score<p.getscore()) {\n\t\t\treturn 1;\n\t\t}\n\t\telse\n\t\t\treturn 0;\n\t}", "public int sortPersonList(){\r\n\t\tPerson temp;\r\n\t\tint max = 0;\r\n\t\t\r\n\t\t//Sort the tours for each person.\r\n\t\tfor(int i = 0; i < personList.size(); i++){\r\n\t\t\tpersonList.get(i).sortTours();\r\n\t\t}\r\n\t\t\r\n\t\tif(personList.size() > 0){\r\n\t\t\tmax = personList.get(0).toursThisMonth;\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 1; i < personList.size(); i++){\r\n\t\t\tif(personList.get(i).toursThisMonth > max){\r\n\t\t\t\tmax = personList.get(i).toursThisMonth;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor(int j = i; j > 0; j--){\r\n\t\t\t\tint comparison = personList.get(j).name.toLowerCase().compareTo(personList.get(j-1).name.toLowerCase());\r\n\t\t\t\tif(comparison <= 0){\r\n\t\t\t\t\t//Swap.\r\n\t\t\t\t\ttemp = personList.get(j);\r\n\t\t\t\t\tpersonList.set(j, personList.get(j - 1));\r\n\t\t\t\t\tpersonList.set(j - 1, temp);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn max;\r\n\t}", "public void sortPassing(){\n\t\tpassing.sort(PlayingCard.PlayingCardComparator_ACEHIGH);\n\t}", "private List<DataPoint> getDeckPlottingPoints(List<Deck> decks) {\n // List<List<QuizAttempt>> listsToMerge = new ArrayList<>();\n //\n // for (Deck deck : decks) {\n // listsToMerge.add(deck.getQuizAttempts());\n // }\n\n List<DataPoint> ret = new ArrayList<>();\n\n Queue<QuizAttempt> pq = new PriorityQueue<>(Comparator.comparing(QuizAttempt::getTakenAt));\n\n for (Deck deck : decks) {\n for (QuizAttempt qa : deck.getQuizAttempts()) {\n pq.offer(qa);\n }\n }\n\n while (!pq.isEmpty()) {\n QuizAttempt attempt = pq.poll();\n LocalDateTime takenAt = attempt.getTakenAt();\n double scoreInPercentage = attempt.getScore().getScoreInPercentage();\n ret.add(new DataPoint(takenAt, scoreInPercentage));\n }\n\n return ret;\n\n // return mergeSortedListsOfAttempts(listsToMerge);\n }", "protected void sortPlayers(Node node1, Node node2) {\n\n\t\tif (node1.getNodeName().equals(\"player\")) {\n\t\t\tif (node2.getNodeName().equals(\"full_name\")) {\n\t\t\t\tplayerNameList.add(node2.getNodeValue());\n\t\t\t} else if (node2.getNodeName().equals(\"id\")) {\n\t\t\t\tplayerIDList.add(node2.getNodeValue());\n\t\t\t}\n\n\t\t}\n\t}", "public void sort() {\n Card.arraySort(this.cards, this.topCard);\n }", "private void sortScoreboard() {\n score.setSortType(TableColumn.SortType.DESCENDING);\n this.scoreboard.getSortOrder().add(score);\n score.setSortable(true);\n scoreboard.sort();\n }", "public List<Question> getQuestionsByPoints() {\n List<Membership> memberships = (ArrayList<Membership>) this.getMemberships();\n List<Question> questions = new ArrayList<Question>();\n\n for (Membership m : memberships) \n \tfor(Question q: m.getQuestions())\n \t\tquestions.add(q);\n // We want the most recent questions first so reverse the array with\n // Collections.reverse\n // PostPointsComparator returns questions in asc we want desc\n Collections.sort(questions, new PostPointsComparator());\n Collections.reverse(questions);\n\n return questions;\n }", "public void takePlayerPoints(int pointsToTake) {\n this.points = this.points - pointsToTake;\n }", "private ArrayList<BoulderProblem> SortBps()\n {\n ArrayList<BoulderProblem> sortedBps = displayBps;\n if(sortOption.equals(\"name\"))\n {\n Collections.sort(sortedBps, bpNameComparator);\n }\n else if(sortOption.equals(\"grade\"))\n {\n Collections.sort(sortedBps, bpGradeComparator);\n }\n else\n {\n Collections.sort(sortedBps, bpSetterComparator);\n }\n return sortedBps;\n }", "public static ArrayList<FootballClub> sortByGoals(String season){\n PremierLeagueManager.loadingData();\n\n // filters the football clubs according to the season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // sorting by points only in descending order goal scored\n guiSeasonFilteredClubs = sortClubsByGoals(guiSeasonFilteredClubs);\n\n return guiSeasonFilteredClubs;\n }", "public List<String[]> getUsersAndTotalPoints() {\r\n List<User> allUsers = userRepo.findAll();\r\n List<String[]> userAndTotaltPoints = new ArrayList<>();\r\n for(User user : allUsers) {\r\n String[] nameAndTotalPoints = new String[3];\r\n nameAndTotalPoints[0] = user.getFirstname();\r\n nameAndTotalPoints[1] = user.getLastname();\r\n nameAndTotalPoints[2] = String.valueOf(user.getTotalPoints());\r\n userAndTotaltPoints.add(nameAndTotalPoints);\r\n }\r\n userAndTotaltPoints.sort(Comparator.comparing(a -> Integer.parseInt(a[2])));\r\n Collections.reverse(userAndTotaltPoints);\r\n\r\n return userAndTotaltPoints;\r\n }", "public int compare(Player a1, Player a2) {\r\n\t\t\t\treturn a1.getUserName().compareTo(a2.getUserName());\r\n\t\t\t}", "public DataSet<T> sortByScoreDesc() {\n return toDS(this.getDataStream().sorted());\n }", "private ArrayList<Point2d> makeRightOrder(ArrayList<Point2d> points) {\n\n int sum = 0;\n for (int i = 0; i < points.size(); i++) {\n Point2d currentPoint = points.get(i);\n Point2d nextPoint = points.get((i + 1) % points.size());\n double x1 = currentPoint.getX();\n double x2 = nextPoint.getX();\n double y1 = currentPoint.getY();\n double y2 = nextPoint.getY();\n sum += (x2 - x1) * (y2 + y1);\n\n }\n// System.out.println(sum);\n if (sum < 0) {\n\n return points;\n } else {\n\n Collections.reverse(points);\n return points;\n\n }\n\n\n }", "public ArrayList<CollegeFootballTeam> selectionSort(ArrayList<CollegeFootballTeam> list)\r\n\t{\r\n\t\tCollegeFootballTeam highestRankedTeam;\r\n\t\tint maxI;\r\n\t\tfor(int i = 0; i < list.size(); i++)\r\n\t\t{\r\n\t\t\thighestRankedTeam = list.get(i);\r\n\t\t\tmaxI = i;\r\n\t\t\tfor(int j=i+1; j<list.size(); j++)\r\n\t\t\t{\r\n\t\t\t\tif(list.get(j).getSumOfVotes() < highestRankedTeam.getSumOfVotes())\r\n\t\t\t\t{\r\n\t\t\t\t\thighestRankedTeam = list.get(j);\r\n\t\t\t\t\tmaxI = j;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tCollegeFootballTeam temp = list.get(i);\r\n\t\t\tlist.set(i, highestRankedTeam);\r\n\t\t\tlist.set(maxI, temp);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void printTopAttackers(){\n Player topAttacker1 = players.get(0);\n Player topAttacker2 = players.get(0);\n // Iterates through the players ArrayList and sets the stop attacker as topAttacker1\n for (Player player : players){\n if (player.getAttackStat() > topAttacker1.getAttackStat()){\n topAttacker1 = player;\n }\n }\n\n // If topAttacker1 is the first item in the players ArrayList then topAttacker2 will be\n // initialized with the second item\n if (topAttacker1 == players.get(0)){\n topAttacker2 = players.get(1);\n }\n // Iterates through the players ArrayList and sets the stop attacker as topAttacker2\n for (Player player : players){\n if (player != topAttacker1){\n if (player.getAttackStat() > topAttacker2.getAttackStat()){\n topAttacker2 = player;\n }\n }\n }\n topAttacker1.printPlayerInfo();\n topAttacker2.printPlayerInfo();\n }", "private Map<String, Integer> getPuntuation(List<Point> points, Trial trial){\n\t\t//Resultados de la prueba sin dividir por categorias\n\t\tList<Result> results = trial.getResults();\n\t\t//ordenar los resultados de la prueba por segundos\n\t\tresults.sort((a,b) -> a.getSeconds() < b.getSeconds() ? -1 : a.getSeconds() == b.getSeconds() ? 0 : 1);\n\t\t\n\t\treturn setPuntuation(points, results);\n\t}", "List<Sppprm> exportPrimesJourToPaie(List<Pointage> pointagesOrderedByDateAsc);", "@Override\n\t public int compare(Player p1, Player p2) {\n\t boolean desc = sortField.startsWith(\"-\");\n\t String fieldToUse = desc ? sortField.substring(1): sortField; \n\n\t try {\n\t String field1 = BeanUtils.getProperty(p1, fieldToUse);\n\t String field2 = BeanUtils.getProperty(p2, fieldToUse);\n\t return (desc) ? field2.compareTo(field1) : field1.compareTo(field2);\n\t } catch (IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t// Again just for test purposes. Since we are in the service layer \n\t\t\t\t\t\t// and beyond the API. We will throw a Business Logic Exception.\n\t\t\t\t\t\tthrow new BusinessLogicException(e.getMessage(), \n\t\t\t\t\t\t\t\tBusinessErrorCodeEnum.INTERNAL_PROCESSING_ERROR);\n\t\t\t\t\t}\n\t\t\t\t}", "@Override\n\tpublic int compare(ObjectWithCoordinates p1, ObjectWithCoordinates p2) {\n\t\tif (p1.getX() < p2.getX()) return -1;\n\t\tif (p1.getX() > p2.getX()) return +1;\n\t\tif (p1.getY() < p2.getY()) return -1;\n\t\tif (p1.getY() > p2.getY()) return +1;\n\t\treturn 0;\n\t}", "public static ArrayList<FootballClub> sortByWins(String season){\n PremierLeagueManager.loadingData();\n\n // filters the football clubs according to the season\n guiSeasonFilteredClubs = getGuiSeasonFilteredClubs(season);\n\n // sorting by points only in descending order of wins\n guiSeasonFilteredClubs = sortClubsByWins(guiSeasonFilteredClubs);\n\n return guiSeasonFilteredClubs;\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\n\tprivate static ArrayList<Result> sortByScore(ArrayList<Result> sortThis){\n\t\tArrayList<Result> sorted = sortThis;\n\t\tCollections.sort(sorted, new Comparator(){\n\t\t\t\n\t\t\tpublic int compare(Object o1, Object o2){\n\t\t\t\tResult r1 = (Result) o1;\n\t\t\t\tResult r2 = (Result) o2;\n\n\t\t\t\tDouble Score1 = new Double(r1.getScore());\n\t\t\t\tDouble Score2 = new Double(r2.getScore());\n\t\t\t\treturn Score1.compareTo(Score2);\n\t\t\t}\n\t\t});\n\t\tCollections.reverse(sorted);\n\t\t\n\t\treturn sorted;\n\t}", "public void sortHighScores(){\n for(int i=0; i<MAX_SCORES;i++){\n long score = highScores[i];\n String name= names[i];\n int j;\n for(j = i-1; j>= 0 && highScores[j] < score; j--){\n highScores[j+1] = highScores[j];\n names[j+1] = names[j];\n }\n highScores[j+1] = score;\n names[j+1] = name;\n }\n }", "public static List<ScoreBean> sortDescending(List<ScoreBean> listScores) {\n Comparator<ScoreBean> comparator = new Comparator<ScoreBean>() {\n @Override\n public int compare(ScoreBean o1, ScoreBean o2) {\n return o2.getScore() - o1.getScore();\n }\n };\n Collections.sort(listScores, comparator);\n return listScores;\n }", "private void deductGamePoints(List<Integer> prevGamePoints) {\n for (int i = 0; i < numAlive; i++) {\n int playerTrickPoints = trickPoints.get(i);\n if (playerTrickPoints < 0) {\n int prevPoints = prevGamePoints.get(i);\n int newPoints = prevPoints + playerTrickPoints;\n \n if (newPoints < 0) {\n // Cannot have negative points\n gamePoints.set(i, 0);\n } else {\n gamePoints.set(i, newPoints);\n }\n }\n }\n }", "public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }", "private void scoreSumUp(ArrayList<Player> players){\n for (Player player: players) {\n System.out.println(\"The Player \" + player.getUsername() + \" has total points of \" + player.getScore());\n }\n }", "public static ArrayList<FootballClub> sortClubsByWins(ArrayList<FootballClub> guiSeasonFilteredClubs) {\n\n // comparator to sort the clubs in descending order of the their wins\n Comparator<FootballClub> comparator = (club1, club2) -> {\n\n if(club1.getClubStatistics().getTotalWins() < club2.getClubStatistics().getTotalWins()){\n return 1;\n }\n\n return -1;\n };\n\n // sorting only if there are clubs to sort\n if (guiSeasonFilteredClubs != null) {\n guiSeasonFilteredClubs.sort(comparator);\n\n }\n\n return guiSeasonFilteredClubs;\n }", "public void sortSpeeds() {\n\n//\t\tSystem.out.println(\"BEGIN: SORT SPEEDS\");\n\t\tthis.printMoves();\n\n\t\tArrayList<Move> temp = new ArrayList<Move>();\n\t\tint i = 1;\n\t\tint x = 0;\n\t\tboolean y = true;\n\n\t\ttemp.add(niceMoves.get(0));\n\t\tint size = niceMoves.size();\n\n\t\twhile (i < niceMoves.size()) {\n\n//\t\t\tSystem.out.println(\"Reiterating.\");\n\t\t\ty = true;\n\n\t\t\twhile (y) {\n\n\t\t\t\t//System.out.println(\"I: \" + i + \" X: \" + x);\n\n\t\t\t\ttry {\n\n\t\t\t\t\tif (niceMoves.get(i).getSpeed() > temp.get(x).getCalcedSpeed()) {\n\n//\t\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\t\ty = false;\n\t\t\t\t\t}\n\t\t\t\t\t//X has cycled through temp, meaning nicemoves.i should be added to the end\n\t\t\t\t\t//The only way to check for this is to let it overflow lol\n\t\t\t\t} catch (Exception E) {\n//\t\t\t\t\tSystem.out.println(\"Adding \" + niceMoves.get(i).getCaster() + \" to spot \" + x);\n\t\t\t\t\ttemp.add(x, niceMoves.get(i));\n\t\t\t\t\ty = false;\n\n\t\t\t\t}\n\n\t\t\t\tx += 1;\n\t\t\t}\n\n\t\t\ti += 1;\n\t\t\tx = 0;\n\t\t}\n\n\t\tniceMoves = temp;\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(\"Sorting Complete! New Order: \");\n//\t\tthis.printMoves();\n\t\t//end of sort speeds\n\t}", "public List<Player> getDisplayList(){\n\t\tList<Player> dis = new ArrayList<>(1);\n\t\tif(!playersFinished.isEmpty()){\n\t\t\tdis.add(playersFinished.get(tempNumber -1));//last to finish\n\t\t}\n\t\treturn dis;\n\t}", "private static ArrayList<Quest> sortAfterTimestamp(ArrayList<Quest> questListToSort) {\n\t\tfor (int i = 0; i < questListToSort.size() - 1; i++) {\n\t\t\tint index = i;\n\t\t\tfor (int j = i + 1; j < questListToSort.size(); j++) {\n\t\t\t\tif (questListToSort.get(j).getTimestamp() > questListToSort.get(index).getTimestamp()) {\n\t\t\t\t\tindex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\tCollections.swap(questListToSort, index, i);\n\t\t}\n\t\treturn questListToSort;\n\t}", "private KimPlayer mvpCompare(KimPlayer kp1, KimPlayer kp2) {\r\n if(kp1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(kp2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_kills < kp2.m_kills) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_kills > kp2.m_kills) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_deaths > kp2.m_deaths) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_deaths < kp2.m_deaths) {\r\n return kp1;\r\n }\r\n\r\n Player p1 = m_botAction.getPlayer(kp1.m_name);\r\n Player p2 = m_botAction.getPlayer(kp2.m_name);\r\n\r\n if(p1 == null) {\r\n return kp2;\r\n }\r\n\r\n if(p2 == null) {\r\n return kp1;\r\n }\r\n\r\n if(p1.getKillPoints() < p2.getKillPoints()) {\r\n return kp2;\r\n }\r\n\r\n if(p1.getKillPoints() > p2.getKillPoints()) {\r\n return kp1;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft < kp2.m_lagoutsLeft) {\r\n return kp2;\r\n }\r\n\r\n if(kp1.m_lagoutsLeft > kp2.m_lagoutsLeft) {\r\n return kp1;\r\n }\r\n\r\n return kp2;\r\n }", "public static void main(String[] args) {\n int[] arr1 = new int[]{49,123,6,90,5};\n Arrays.sort(arr1);\n System.out.println(Arrays.toString(arr1));\n System.out.println(\"=============================================\");\n\n //non primitive type sorting and reversing\n Integer[] arr = new Integer[]{49,123,6,90,5};\n Arrays.sort(arr, Collections.reverseOrder());\n System.out.println(Arrays.toString(arr));\n System.out.println(\"=============================================\");\n\n // using comparable and compareTo to sort the objects\n Coordinates[] pointers = new Coordinates[]{new Coordinates(1,5)\n ,new Coordinates(98,4)\n ,new Coordinates(0,76)\n ,new Coordinates(2,67)};\n\n Arrays.sort(pointers);\n for(int i=0;i<pointers.length;i++){\n System.out.println(pointers[i].getX()+\" \" + pointers[i].getY());\n }\n\n System.out.println(\"=============================================\");\n // using comparator to sort the objects of non primitive type\n Points[] points = new Points[]{new Points(1,5)\n ,new Points(98,4)\n ,new Points(0,76)\n ,new Points(2,67)};\n Arrays.sort(points,new ComparatorObj());\n for(int i=0;i<pointers.length;i++){\n System.out.println(points[i].getX()+\" \" + points[i].getY());\n }\n\n\n }", "@Test\n public void testSort() {\n initialize();\n var realList = new HighScoreList();\n realList.setList(list);\n realList.sort();\n\n assertEquals(300, realList.getList().get(0).getScore());\n assertEquals(200, realList.getList().get(1).getScore());\n assertEquals(100, realList.getList().get(2).getScore());\n }", "public void sortiereTabelleSpiele() {\n sortListe.sort(new Comparator<Spiel>() {\n @Override\n public int compare(Spiel o1, Spiel o2) {\n /*int a=0,b=0;\n if(o1.getStatus()==0)\n {\n a-=100000;\n }\n if(o2.getStatus()==0)\n {\n b-=100000;\n }*/\n return o1.getZeitplanNummer() - o2.getZeitplanNummer();\n }\n });\n tabelle_spiele.setItems(sortListe);\n }", "private List<Article> orderArticles(List<Article> things){\n\t\t Comparator<Article> comparatorPrizes = new Comparator<Article>() {\n\t public int compare(Article x, Article y) {\n\t return (int) (x.getPrize() - y.getPrize());\n\t }\n\t };\n\t Collections.sort(things,comparatorPrizes); \n\t Collections.reverse(things);\n\t return things;\n\t }", "public static List<Double> sortScores(List<Double> results) {\n\t\t\n\t\t\n\t\tfor (int i = 0; i < results.size()-1; i++) {\n\t\t\tif (results.get(i)>results.get(i+1)) {\n\t\t\t\t//highScore = results.get(i);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tDouble temp = results.get(i);\n\t\t\t\t\n\t\t\t\tresults.set(i, results.get(i+1));\n\t\t\t\t\n\t\t\tresults.set(i+1, temp);\n\t\t\t\t\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn results;\n\t\t//return null;\n\t}", "public void startOrder() {\n\t\tDeck tempDeck = new Deck();\n\t\tArrayList<Player> highPlayerList = new ArrayList<Player>();\n\t\tStrategy3 testPlayer = new Strategy3();\n\t\tint temp = 0;\n\t\tfor (Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t\tp.hand.add(tempDeck.dealTile());\n\t\t}\n\t\t\n\t\twhile (playerList.isEmpty() == false) {\t\n\t\t\tPlayer min = playerList.get(0);\n\t\t\tfor(Player i : playerList) {\n\t\t\t\tif (i.getHandValue() > min.getHandValue()) {min = i;}\n\t\t\t}\n\t\t\thighPlayerList.add(min);\n\t\t\tplayerList.remove(min);\n\t\t}\n\t\tthis.playerList = highPlayerList;\t\n\t\ttemp = 0; \n\t\tfor(Player p : this.playerList) {\n\t\t\ttemp++;\n\t\t}\n\t\t\n\t\tfor (Player p : playerList) {\n\t\t\tp.hand.clear();\n\t\t}\t\t\n\t}", "public List<PlayerRecord> display3() {\n List<PlayerRecord> l = new List<PlayerRecord>();\n int max = 0;\n PlayerRecord curr = playerlist.first();\n while (curr != null) {\n int c = curr.getWinninggoals();\n if (c > max) {// if is a new maximum value, empty the list\n l.clear();\n l.add(curr);\n max = c;\n } else if (c == max) { // if there are more than one maximum value,\n // add it\n l.add(curr);\n }\n curr = playerlist.next();\n }\n return l;\n }", "public int getPoints ( Player player );", "public void winner() {\n\t\tList<String> authors = new ArrayList<String>(scores_authors.keySet());\n\t\tCollections.sort(authors, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_authors.get(o1).compareTo(scores_authors.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des auteurs :\");\n\t\tfor(String a :authors) {\n\t\t\tSystem.out.println(a.substring(0,5)+\" : \"+scores_authors.get(a));\n\t\t}\n\t\t\n\t\tList<String> politicians = new ArrayList<String>(scores_politicians.keySet());\n\t\tCollections.sort(politicians, new Comparator<String>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\treturn scores_politicians.get(o1).compareTo(scores_politicians.get(o2));\n\t\t\t}\n\t\t});\n\t\tSystem.out.println(\"Score des politiciens :\");\n\t\tfor(String p :politicians) {\n\t\t\tSystem.out.println(p.substring(0,5)+\" : \"+scores_politicians.get(p));\n\t\t}\n\t}", "public void sortDescending()\r\n\t{\r\n\t\tList<Book> oldItems = items;\r\n\t\titems = new ArrayList<Book>(items);\r\n\t\tCollections.sort(items, Collections.reverseOrder());\r\n\t\tfirePropertyChange(\"books\", oldItems, items);\r\n\t}" ]
[ "0.8512184", "0.7907272", "0.69636583", "0.68905914", "0.6772796", "0.64220995", "0.6369992", "0.6356218", "0.6337947", "0.6335449", "0.6316056", "0.62748384", "0.6122125", "0.61066973", "0.59535515", "0.593704", "0.5914507", "0.59107316", "0.59045297", "0.5865021", "0.5838165", "0.58195233", "0.58147854", "0.58107567", "0.5803495", "0.5785549", "0.5746432", "0.5744124", "0.5729768", "0.5724873", "0.57156926", "0.5711756", "0.5660395", "0.5650926", "0.56001157", "0.5599479", "0.5598923", "0.55892944", "0.5579569", "0.5579036", "0.55782264", "0.55587125", "0.55562127", "0.55110425", "0.5506938", "0.55047566", "0.5503736", "0.5497356", "0.54948527", "0.54712266", "0.5444129", "0.5433794", "0.54300636", "0.5413123", "0.5411597", "0.5393771", "0.5392639", "0.5391076", "0.53899133", "0.5387619", "0.5374378", "0.53741086", "0.53520477", "0.5346471", "0.5337136", "0.5332223", "0.5328334", "0.5319145", "0.53185654", "0.5312495", "0.5312", "0.53033096", "0.52960044", "0.52843034", "0.5283065", "0.5276534", "0.52654046", "0.5263436", "0.5263266", "0.52535576", "0.5240457", "0.5235824", "0.5231863", "0.5221994", "0.52213347", "0.5217138", "0.52116126", "0.51976204", "0.51943475", "0.5187834", "0.51878315", "0.51845515", "0.51823246", "0.5179501", "0.51733977", "0.51686037", "0.5165104", "0.5122969", "0.5121828", "0.51158834", "0.5112221" ]
0.0
-1
This method returns the list of players.
public final Score[] getUnsortedScore() { return this.scoreArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ListResponse<PlayerResponse> getPlayers() {\n\t\tcheckProvided();\n\t\treturn players;\n\t}", "List<Player> getPlayers();", "public List<Player> findAllPlayers(){\n\t\treturn playerRepository.findAll();\n\t}", "@Override\n public List<Player> getPlayers() {\n return players;\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public List<Player> getPlayers() {\r\n return players;\r\n }", "public List<Player> getPlayers() {\r\n\t\treturn players;\r\n\t}", "public List<Player> getPlayers() {\n\n\t\treturn players;\n\t}", "@Override\n public List<Player> getPlayers() {\n return new ArrayList<Player>(players);\n }", "List<Player> listPlayers();", "public List<Player> getPlayers() {\n\t\treturn players;\n\t}", "static List<Player> getAllPlayers() {\n\t\treturn null;\r\n\t}", "public List<Player> getPlayers() {\r\n\t\tList<Player> playerList = new ArrayList<Player>();\r\n\r\n\t\tfor (Player p : players.values()) {\r\n\t\t\tif (p != null)\r\n\t\t\t\tplayerList.add(p);\r\n\t\t}\r\n\r\n\t\treturn playerList;\r\n\t}", "@Override\r\n\tpublic ArrayList<PlayerPO> getAllPlayers() {\n\t\treturn playerController.getAllPlayers();\r\n\t}", "public List<Player> getAllPlayers() {\r\n // TODO fix actual order of players in the List.\r\n\r\n List<Player> players = new ArrayList<>();\r\n players.addAll(teamRed.getPlayers());\r\n players.addAll(teamBlue.getPlayers());\r\n\r\n return players;\r\n }", "public ArrayList<Player> getPlayers() {\n return players;\n }", "public List<Player> getPlayerList(){\n return this.players;\n }", "public ArrayList<Player> getPlayers() {\n return players;\n }", "public List <FootballPlayer> getAllPlayers() {\n\t\treturn market.getAllPlayers();\n\t}", "public Player[] getPlayers() {\n return this.players;\n }", "public Player[] getPlayers() {\n return this.players;\n }", "public String[] getPlayers() {\r\n return playerIds;\r\n }", "public Player[] getPlayers()\r\n\t{\r\n\t\treturn this.players;\r\n\t}", "public EntityList<Player> getPlayers() {\n\t\treturn players;\n\t}", "public ArrayList<Entity> getPlayers() {\n ArrayList<Entity> players = new ArrayList<>();\n students.forEach(student -> players.add(student.getPlayer()));\n return players;\n }", "public Player[] getPlayers() {\n return players;\n }", "public Player[] getPlayers()\n\t{\n\t\treturn players;\n\t}", "public Player[] getPlayers() {\r\n return players;\r\n }", "public List<Player> getPlayerList()\n\t{\n\t\treturn playerList;\n\t}", "public ArrayList<Player> getPlayerList() {\n ArrayList<Player> ret = new ArrayList<>();\n ret.addAll(playerList);\n return ret;\n }", "@Override\n public ArrayList<Player> getPlayers() throws RemoteException {\n return players;\n }", "public List<ServerPlayerEntity> getPlayerList() {\n return this.players;\n }", "public List<Player> getAll() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAll();\n }", "public Set<Player> getPlayers() {\n return players;\n }", "public List<String> listPlayerNames() {\n return this.playersNames;\n }", "public LinkedList<Player> getPlayers() {\n\t\treturn this.players;\n\t}", "public List<String> getAllPlayerNames() {\n List<String> playerNames = new ArrayList<>(10);\n for (Player p : players) {\n playerNames.add(p.getName());\n }\n return playerNames;\n }", "public TennisPlayer[] getAllPlayers() throws TennisDatabaseRuntimeException {\n\t\t \t\n\t\tTennisPlayerContainerIterator iterator = this.iterator();\n\t\t\n iterator.setInorder();\n \t\n TennisPlayer[] outputArray = new TennisPlayer[playerCount];\n \n int index = 0;\n \n while (iterator.hasNext()) {\n \t\n outputArray[index] = iterator.next();\n \n index++;\n \n }\n \n return outputArray;\n \n\t}", "public List<String> getAllPlayers() throws ServerProblem {\r\n\ttry (Connection connTDB = ConnectionManager.getInstance().getConnection()) {\r\n\t LOGGER.debug(\"Getting all players\");\r\n\t List<String> results = engine.getAllPlayers(connTDB);\r\n\t LOGGER.debug(\"Players found in the database: \" + results);\r\n\t return results;\r\n\t} catch (Exception ex) {\r\n\t String error = \"Problem encountered getting all players: \" + ex;\r\n\t LOGGER.error(error);\r\n\t throw new ServerProblem(error, ex);\r\n\t}\r\n }", "@Override\n\tpublic List<Player> getPlayer() {\n\t\treturn ofy().load().type(Player.class).list();\n\t}", "List<Player> findAllPlayers();", "private Collection<Player> getPlayers() {\n\t\treturn players;\n\t}", "public List<Player> getPlayersOrdered() {\r\n ArrayList<Player> result = new ArrayList<>();\r\n for (PlayerContainer container : players) {\r\n result.add(container.player);\r\n }\r\n return result;\r\n }", "public List<PlayerInstance> getAllPlayers()\n\t{\n\t\tfinal List<PlayerInstance> players = new ArrayList<>();\n\t\tfor (Creature temp : getCharactersInside())\n\t\t{\n\t\t\tif (temp instanceof PlayerInstance)\n\t\t\t{\n\t\t\t\tplayers.add((PlayerInstance) temp);\n\t\t\t}\n\t\t}\n\t\treturn players;\n\t}", "@RequestMapping(\"/players\")\n public List<Player> getAllPlayers() {\n return playerService.getPlayerList();\n }", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "ArrayList<Player> getAllPlayer();", "public Collection<Player> getPlayersChunk() {\n var chunk = new Chunk<Player>();\n var playersChunk = chunk.get(this.players, ALL_PLAYERS_CHUNK_SIZE, allPlayersChunkIndex);\n\n // up to ALL_PLAYERS_CHUNK_SIZE with empty players\n // to have an even view\n var startIndex = playersChunk.size();\n for (var i = startIndex; i < ALL_PLAYERS_CHUNK_SIZE; i++) {\n playersChunk.add(new Player(new Person()));\n }\n\n return playersChunk;\n }", "public Set<String> getPlayers()\n\t{\n\t\tSet<String> player = playerPieces.keySet();\n\t\treturn player;\n\t}", "Collection<User> players();", "@Override\n public ArrayList<Player> getPlayers() {return steadyPlayers;}", "public Set<UUID> getAlivePlayers() {\n return new HashSet<>(players);\n }", "public ArrayList<CardGamePlayer> getPlayerList(){\n\t\treturn this.playerList;\n\t}", "public List<Player> getAllOrdered() {\n PlayerDB pdb = new PlayerDB();\n return pdb.getAllOrdered();\n }", "public Hashtable<Integer, Player> getPlayers() {\r\n\t\treturn players;\r\n\t}", "public List<Player> getPlayersInRoom() {\n\t\treturn playersInRoom;\n\t}", "public CompactPlayer[] getPlayers()\n {\n return players;\n }", "public static Map<String, PlayerConfig> getPlayers() {\n return players;\n }", "public static Collection<? extends Player> getOnlinePlayers() {\n return Bukkit.getServer().getOnlinePlayers();\n }", "public static ArrayList<Player> getPlayerAry(){\n\t\treturn players;\n\t}", "public ArrayList<CardGamePlayer> getPlayerList() {\n\t\treturn playerList;\n\t}", "protected ClientList getCurrentPlayers() {\r\n\t\treturn this.players;\r\n\t}", "public List<PlayerInfo> getPlayerList(GameInfo gi){\n\t\tClientModelFacade facade = ClientModelFacade.getInstance(null);\n\t\t\n\t\tGameInfo[] gameList = facade.getGamesList();\n\n\t\tfor(int i = 0; i < gameList.length; i++){\n\t\t\tif(gameList[i].getId() == gi.getId()){\n\t\t\t\treturn gameList[i].getPlayers();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Set<Player> getParticipants() { //TODO: not sure the validation needs to happend here\n\t\t// Run through the results and make sure all players have been pushed into the participants set.\n\t\tfor ( Result result : results ) {\n\t\t\tparticipants.add(result.getWinner());\n\t\t\tparticipants.add(result.getLoser());\n\t\t}\n\n\t\treturn participants;\n\t}", "public ArrayList<Player> getPlayersInGame() {\n return playersInGame;\n }", "@Override\r\n\tpublic List<Player> getAllPlayer(String email) {\n\t\treturn dao.getAllPlayer(email);\r\n\t}", "public List<PlayerItem> getAll();", "Set<String> getPlayers();", "public static List<Player> getTrackablePlayers() {\n\t\tPlayer[] players = Bukkit.getOnlinePlayers();\n\t\tList<Player> players1 = new ArrayList<Player>();\n\t\tfor (int i = 0; i < players.length; i++) {\n\t\t\tif (!players[i].hasMetadata(\"invisible\")) {\n\t\t\t\tplayers1.add(players[i]);\n\t\t\t}\n\n\t\t}\n\t\treturn players1;\n\t}", "public Set<Character> players(){\r\n\t\tSet<Character> players = new HashSet<Character>();\r\n\t\tfor(Character character: characters()){\r\n\t\t\tif(character.isPlayer())\r\n\t\t\t\tplayers.add(character);\r\n\t\t}\r\n\t\treturn players;\r\n\t}", "public List<PlayerItem> getAllPlayerItemById(Player player);", "public Connect4Player[] getPlayers(){\n\t\tConnect4Player[] output = new Connect4Player[4];\n\t\tif(players.isEmpty()){\n\t\t\tplayers.add(new Connect4Player(this, TOKEN.X));\n\t\t\tplayers.add(new Connect4Player(this, TOKEN.O));\n\t\t}\n\t\toutput[0] = players.get(0);\n\t\toutput[1] = players.get(1);\n\t\treturn output;\n\t}", "public Map<String, Player> getPlayersMap(){\n return this.players;\n }", "public List<Player> getPassengers() {\n\t\tList<Player> ret = new ArrayList<Player>();\n\t\t\n\t\tfor (Player p : Bukkit.getOnlinePlayers()) {\n\t\t\tif (isPassenger(p))\n\t\t\t\tret.add(p);\n\t\t}\n\t\treturn ret;\n\t}", "public ArrayList<Player> getPlayers() {\n return players;\n}", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public List<Player> getAllPlayersLimit(int limit) {\n\t\treturn repository.findAll(limit);\n\t}", "public int playersCount(){\r\n\t\treturn players.size();\r\n\t}", "public void getPlayerList() {\n if (connected == true) {\n try {\n write(\"get playerlist\");\n } catch (IOException e) {\n System.out.println(\"No connecting with server:ServerCommunication:getPlayerList()\");\n }\n }\n }", "public List<Player> getAvailablePlayers(Round round) {\r\n\t\tList<Player> availablePlayers = playerLogic.createNew(round.getPlayers());\r\n\r\n\t\tfor (Match match : round.getMatches()) {\r\n\t\t\tavailablePlayers.removeAll(match.getHomeTeam());\r\n\t\t\tavailablePlayers.removeAll(match.getAwayTeam());\r\n\t\t}\r\n\t\treturn availablePlayers;\r\n\t}", "public int getNumOfPlayers() {\n\t\treturn playerList.size();\n\t}", "public CopyOnWriteArrayList<Player> getPlayerList() \t\t\t\t\t\t\t{ return this.playerList; }", "public List<String> getToggledPlayers() {\n return toggledPlayers;\n }", "public List<LobbyPlayer> getPlayers(String code) throws NoDocumentException {\n return Firebase.requestDocument(\"lobbies/\" + code).toObject(LobbyDTO.class).toModel().getPlayers();\n }", "public List<Player> getAttackedPlayers() {\r\n\t\tArrayList<Player> output = new ArrayList<Player>();\r\n\t\tfor(Player p : getOtherPlayers()) {\r\n\t\t\tif(!(p.deck.hand.contains(new Moat()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Lighthouse()) \r\n\t\t\t\t\t|| p.deck.duration.contains(new Champion()) \r\n\t\t\t\t\t|| p.getPlayerNum() == getWhoseTurn())) {\r\n\t\t\t\toutput.add(p);\r\n\t\t\t}\r\n\t\t\tArrayList<Card> reactions = new ArrayList<Card>();\r\n\t\t\tfor(Card c : p.deck.hand) {\r\n\t\t\t\tif(c.isReaction()) reactions.add(c);\r\n\t\t\t}\r\n\t\t\tfor(Card c : reactions) {\r\n\t\t\t\tc.reactAttack();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public List<Player> list() throws Exception {\r\n this.players = new ArrayList<>();\r\n File folder = new File(filepath);\r\n File[] files = folder.listFiles();\r\n for (int i = 0 ; i<files.length ; i++){\r\n if (files[i].isFile()){\r\n players.add(i,get(filepath+\"\\\\\"+files[i].getName()));\r\n }\r\n }\r\n return players;\r\n }", "public static ArrayList<Player> getAllPlayingPlayers() {\n // Anton fix: Would copy the list itself, we want just the items.\n // Remove/add manipulations would affect original list\n /*\n * ArrayList<Player> all = players; for (Player player: all) { if\n * (!player.isPlaying()) { all.remove(player); } }\n */\n\n ArrayList<Player> all = new ArrayList<Player>();\n for (Player player : players) {\n if (player.isPlaying()) all.add(player);\n }\n\n return all;\n }", "public List<String> getRankingPlayer() throws IOException, ClassNotFoundException {\r\n return ctrlDomain.getRankingPlayer();\r\n }", "public ResultSet getPlayers() throws SQLException {\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tString playerRecords_sql = \"SELECT * FROM \" + player_table;\n\t\tconnection = connector.getConnection();\n\t\tstatement = connection.prepareStatement(playerRecords_sql);\n\t\trs = statement.executeQuery();\n\t\treturn rs;\n\t}", "public List<ColorId> getPlayerList() {\n return playerList;\n }", "public static ArrayList<Player> getWinners(){return winners;}", "public List<OpenPlayer> getOpenPlayers() {\r\n if(actuelAktionators.isEmpty()){\r\n throw new IllegalStateException(\"In der Liste der Spieler muss mindestens ein Spieler sein (der Hoechtbietende)\");\r\n }\r\n return actuelAktionators;\r\n }", "public static ArrayList<Player> getOtherPlayers() {\n ArrayList<Player> all = getAllPlayingPlayers();\n all.remove(getCurrentPlayer());\n\n return all;\n }", "public List<Result> getPlayerResults(Player player) {\t\n\t\treturn results.stream()\n\t\t\t\t.filter(result -> result.participated(player))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public List<Player> formatPlayers(ResultSet rs) {\n\t\tList<Player> pList = new ArrayList<Player>();\n\t\ttry {\n\t\t\twhile (rs.next()) {\n\t\t\t\tPlayer p = new Player(rs.getString(3), rs.getString(4), rs.getDate(5), rs.getInt(6));\n\t\t\t\tpList.add(p);\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn pList;\n\t}", "public Set<GamePiece> getPlayerPieces() \n\t{\n\t\tSet<GamePiece> pieces = new HashSet<GamePiece>();\n\t\tfor(GamePiece piece: playerPieces.values())\n\t\t{\n\t\t\tpieces.add(piece);\n\t\t}\n\t\treturn pieces;\n\t}", "public List<SkungeePlayer> getPlayers(UUID... uuids) throws TimeoutException, InterruptedException, ExecutionException {\n\t\tPlayersPacket packet = new PlayersPacket();\n\t\tpacket.setUniqueIds(uuids);\n\t\treturn japson.sendPacket(packet);\n\t}", "public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }", "public static ArrayList<EntityPlayer> getAll() {\r\n\t\ttry {\r\n\t\t\tArrayList<EntityPlayer> players = new ArrayList<EntityPlayer>();\r\n\t\t\t\r\n\t\t\tfor (EntityPlayer player : mc.world.playerEntities) {\r\n\t\t\t\tif (!player.isEntityEqual(mc.player)) {\r\n\t\t\t\t\tplayers.add(player);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn players;\r\n\t\t} catch (NullPointerException ignored) {\r\n\t\t\treturn new ArrayList<EntityPlayer>();\r\n\t\t}\r\n\t}", "List<Player> getViewers();", "public int numPlayers() {\n return playerList.size();\n }" ]
[ "0.857499", "0.8559041", "0.8520206", "0.84235895", "0.8422687", "0.8422687", "0.83980006", "0.8356277", "0.8356193", "0.8330178", "0.83236855", "0.83171654", "0.8168551", "0.8071186", "0.8065578", "0.8054073", "0.8034849", "0.80262494", "0.8025467", "0.80196744", "0.80196744", "0.800006", "0.7988877", "0.798878", "0.7986995", "0.79841757", "0.7978127", "0.797308", "0.7968126", "0.79578733", "0.7932303", "0.7919871", "0.7836737", "0.78012687", "0.7798801", "0.77548164", "0.77331084", "0.77106524", "0.7695276", "0.7690828", "0.7646033", "0.7631902", "0.75785077", "0.75659543", "0.75651115", "0.7526371", "0.7519013", "0.75014895", "0.74359274", "0.74260616", "0.74238074", "0.74117374", "0.7372573", "0.7369763", "0.7359633", "0.73319024", "0.73262376", "0.73046833", "0.73045135", "0.7290599", "0.7277027", "0.7212195", "0.72107804", "0.71825004", "0.7138683", "0.71323395", "0.71316326", "0.71133405", "0.7097605", "0.7080501", "0.70365196", "0.7029581", "0.7028937", "0.70173216", "0.70167565", "0.7016685", "0.70147824", "0.6957922", "0.69291615", "0.6907583", "0.68860227", "0.68682796", "0.6838457", "0.68383056", "0.68297315", "0.6805184", "0.680458", "0.6798121", "0.67630744", "0.67500764", "0.67245734", "0.67204887", "0.66977435", "0.669314", "0.66929746", "0.6681779", "0.6670022", "0.66654754", "0.66603297", "0.6654556", "0.6637818" ]
0.0
-1
This method sets points to player.
public final void setPointsByPlayerId(final int playerId, final int points) { for (final Score score : this.scoreArray) { if (score.getPlayerId() == playerId) { score.setPoints(points); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n public void givePlayerPoints(int player, int plValuePosition, int points) {\r\n // Incrememnt player values by the points passed in\r\n this.players.get(player).\r\n changePlayerValueNumeric(plValuePosition, points);\r\n }", "private void setPlayer()\t{\n\t\tgrid.setGameObject(spy, Spy.INITIAL_X, Spy.INITIAL_Y);\n\t}", "public void setPlayer(Player _player) { // beallit egy ezredest az adott mapElementre, ha az rajta van\n player = _player;\n }", "public void setCurrentPlayer(Player P){\n this.currentPlayer = P;\n }", "public void setPointsForPlayer(String playerName, Integer points) {\r\n this.points.put(playerName, points);\r\n }", "public void setPlayer(Player player) {\n this.currentPlayer = player;\n }", "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "public void givePlayerPoints(int pointsToAdd) {\n this.points = this.points + pointsToAdd;\n }", "private void setPoints () {\n\t\tArrayList<Point> emptySpot = new ArrayList<Point>();\n\t\tfor (int i = 0; i < width; i++) {\n\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\tif (maze[i][j] == 0) {\n\t\t\t\temptySpot.add(new Point (i, j));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tCollections.shuffle(emptySpot);\n\t\tthis.goal = emptySpot.get(0);\n\t\tdouble goalRange = this.goal.getX() + this.goal.getY();\n\t\tfor (int i = 1; i < emptySpot.size(); i++) {\n\t\t\tPoint playerStart = emptySpot.get(i);\n\t\t\tdouble playerRange = playerStart.getX() + playerStart.getY();\n\t\t\tif (Math.abs(playerRange - goalRange) > width/2)\n\t\t\tthis.playerStart = playerStart;\n\t\t}\n\t}", "public void setPlayer(Player player) {\n this.player = player;\n }", "public void takePlayerPoints(int pointsToTake) {\n this.points = this.points - pointsToTake;\n }", "public void setPlayer(Player player) {\n this.player = player;\n }", "public PlayerPoints(Player owner) {\n this.owner = owner;\n }", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public void updatePlayerPoints() {\n setText(Integer.toString(owner.getPlayerPoints()) + \" points\");\n }", "public void setPlayer(Player p) {\n\t\tplayer = p;\n\t}", "void setPosition(Point point);", "public void setCurrent(ServerPlayer p) {\n\t\tthis.current = p;\n\t}", "public void setPilotPoints(int points) {\n if (pointsPullCheck(points)) {\n pilotPoints += points;\n }\n }", "public void setPlayer(Player player) {\n\t\tthis.player = player;\r\n\t}", "public void setFighterPoints(int points) {\n if (pointsPullCheck(points)) {\n fighterPoints += points;\n }\n }", "public void setPoints(int points) {\n this.points = points;\n }", "public void setEngineerPoints(int points) {\n if (pointsPullCheck(points)) {\n engineerPoints += points;\n }\n }", "public void changePlayerPixels() {\n //change the player point2pixels\n if (!playerFlag) {\n game.getPlayer().setPixels(convertor.gps2Pixels(game.getPlayer().getPoint()));\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n\n }\n\n else {\n Point3D point = new Point3D(game.getPlayer().getPixels()[0] , game.getPlayer().getPixels()[1]);\n GraphNode playerNode = new GraphNode(point);\n vertices.add(playerNode);\n }\n\n playerFlag = true;\n\n }", "public void setPlayer(Player player) {\n\t\tthis.player = player;\n\t}", "public void setPlayersAtGo()\n {\n for(int i = 0; i < m_numPlayers; i++)\n {\n m_gameBoard.addPlayerToSpace(i + 1, 0);\n }\n }", "public abstract void changePlayerAt(ShortPoint2D pos, Player player);", "public void setPoints(int points)\n\t{\n\t\tthis.points = points;\n\t}", "public void setPlayer(Player player) {\n\t\t\tthis.player = player;\n\t\t}", "public void setPlayer(Player myPlayer){\n battlePlayer=myPlayer;\n }", "void setPlayerLocation(Player p, int bp) {\n\t\t\tplayerLocationRepo.put(p, bp);\n\t\t}", "public void setPoints(int points) {\n\t\tthis.points = points;\n\t}", "@Override\r\n public void updateMixer() {\n playerPosition = mixer.getGlobalCoordinates();\r\n }", "public void setPlayPoints(int param) {\n // setting primitive attribute tracker to true\n localPlayPointsTracker = param != java.lang.Integer.MIN_VALUE;\n\n this.localPlayPoints = param;\n }", "public void setPoints(Integer points) {\r\n this.points = points;\r\n }", "@Override\r\n\tpublic void set(final Player t) {\n\r\n\t}", "public void setPlayerPosition(Player player) {\n\n if (player.getPosition().equals(\"Left Wing\")) {\n\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][0] == null) {\n forwardLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Center\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][1] == null) {\n forwardLines[i][1] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Wing\")) {\n for (int i = 0; i < 2; i++) {\n if (forwardLines[i][2] == null) {\n forwardLines[i][2] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Left Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][0] == null) {\n defenceLines[i][0] = player;\n break;\n }\n }\n }\n\n else if (player.getPosition().equals(\"Right Defence\")) {\n for (int i = 0; i < 2; i++) {\n if (defenceLines[i][1] == null) {\n defenceLines[i][1] = player;\n break;\n }\n }\n }\n }", "public static void setPlayer(Player p) {\n\t\tUniverse.player = p;\n\t}", "private void setPlayer() {\n player = Player.getInstance();\n }", "public void setPosition(Point position);", "private void setupPlayerPosition() {\n\t\tHashMap<Suspect, Coordinates> startPositions = new HashMap<Suspect, Coordinates>();\r\n\t\tstartPositions.put(Suspect.KasandraScarlet, new Coordinates(18, 28));\r\n\t\tstartPositions.put(Suspect.JackMustard, new Coordinates(7, 28));\r\n\t\tstartPositions.put(Suspect.DianeWhite, new Coordinates(0, 19));\r\n\t\tstartPositions.put(Suspect.JacobGreen, new Coordinates(0, 9));\r\n\t\tstartPositions.put(Suspect.EleanorPeacock, new Coordinates(6, 0));\r\n\t\tstartPositions.put(Suspect.VictorPlum, new Coordinates(20, 0));\r\n\r\n\t\tfor (int i = 0; i < this.listOfPlayer.size(); i++) {\r\n\t\t\tPlayer p = this.listOfPlayer.get(i);\r\n\t\t\tSuspect sus = p.getSuspect().getData();\r\n\t\t\tboolean b = p.setCoord(startPositions.get(sus), this.grid);\r\n\t\t\t// should always be able to put character on starting position\r\n\t\t}\r\n\t\tSystem.out.println(\"Initial player starting positions set\");\r\n\t}", "public void pickUp(Player player) {\n player.setBox(this);\n }", "void playerPositionChanged(Player player);", "public void setP1(Player p1) {\n this.p1 = p1;\n }", "public void setPosition(Point newPosition);", "public void setGamePoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n gamePoints1.set(points);\n else\n gamePoints2.set(points);\n }", "public void addPoints(final int points) {\n\t\tPoints.addPoints(this.player, points);\n\t}", "public void setPlayer(Sprite player) {\n\t\tthis.player = player;\n\t}", "protected synchronized void updatePoints(double points)\n\t{\n\t\tif(Config.VIT_MAX_PLAYER_LVL > _player.getLevel())\n\t\t{\n\t\t\tif(Config.VIT_CHECK_LUCKY_SKILL)\n\t\t\t{\n\t\t\t\tif(_player.getSkillLevel(LUCKY_SKILL) > 0)\n\t\t\t\t\treturn;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn;\n\t\t}\n\n\t\tint prevLvl = getLevel();\n\t\tint prevPoints = (int) _vitPoints;\n\n\t\tchangePoints(points);\n\t\tsendChangeMessage(prevPoints, prevLvl);\n\t}", "public void setPlayers(Player[] players) {\n this.players = players;\n }", "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 setAsPlayer(){\n\t\tthis.isPlayer = true;\n\t}", "public void setPlayer(Player newPlayer) {\n roomPlayer = newPlayer;\n }", "public void teleportPlayer(int x, int y){\n hero.setX(x);\n hero.setY(y);\n }", "public void setOwner(Player player) {\n owner = player;\n }", "public void setPlayers(ArrayList<Player> players) {\n this.players = players;\n }", "public void set(Point p)\r\n\t{\r\n\t\tx = p.x;\r\n\t\ty = p.y;\r\n\t}", "public void setPlayer(ViewerManager2 player) {\n this.player = player;\n // the player is needed to be existent befor starting up the remote Server\n //startRemoteServer();\n\n }", "public void setPoints(String points);", "public void setPlayerPosition(CellView playerPosition) {\n this.playerPosition = playerPosition;\n }", "public void setP1(ServerPlayer p1) {\r\n\t\tthis.p1 = p1;\r\n\t}", "public void setTurnPoints(TeamId team, int points) {\n if(team == TeamId.TEAM_1)\n turnPoints1.set(points);\n else\n turnPoints2.set(points);\n }", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "public void setPlayer(Player player) {\n\t\tthis.player = player;\n\t\tplayer.resetAllPlayerGuesses();\n\t}", "public void setPlayers(ArrayList<Player> players) {\n\t\tthis.players = players;\n\t}", "public void setData(List<Player> players, Player owningPlayer) {\n this.players = players;\n thisPlayer = owningPlayer;\n }", "public abstract void setPoint(Point p);", "public void setPosition(ScreenPoint p) {\n setX(p.x);\n setY(p.y);\n }", "public void setPlayerAtStart(Player player) {\n\t\tplayer.moveTo(start.getX()*10, start.getY()*10, start.getZ()*10);\n\t}", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}", "private void movePlayer() {\r\n\t\tshipImageView.setX(ship.getCurrentLocation().x * scalingFactor);\r\n\t\tshipImageView.setY(ship.getCurrentLocation().y * scalingFactor);\r\n\t\tship.notifyObservers();\r\n\t}", "@Override\r\n public void allPlayersCreateValue() {\r\n // Loop through each player and create a new points value\r\n for (Player player : this.players) {\r\n player.createNewValue(0);\r\n }\r\n }", "public void setPosition(Point p) {\r\n\t\tthis.position = p;\r\n\t\tc.setPosition(p);\r\n\t}", "public void setStartPoint(int activePlayer, ShortPoint2D pos) {\n\t\tthis.undoDelta.setStartPoint(activePlayer, playerStarts[activePlayer]);\n\t\tthis.playerStarts[activePlayer] = pos;\n\t}", "public Player (String name, int pilotPoints, int fighterPoints, int traderPoints, int engineerPoints) {\n this.name = name;\n this.pilotPoints = pilotPoints;\n this.fighterPoints = fighterPoints;\n this.traderPoints = traderPoints;\n this.engineerPoints = engineerPoints;\n this.credits = 1000;\n this.ship = new Ship(ShipType.GNAT);\n }", "@Override\n public void antidote(Player p) {\n LOG.wtf(this.getClass().getSimpleName(), \"ANTIDOTE SET TO \" + p.toString());\n }", "public void setActivePlayer()\n {\n activePlayer = !activePlayer;\n }", "public void setP2(Player p2) {\n this.p2 = p2;\n }", "private void setInformationToDraw(Player player)\n {\n playerPieceList = player.getPieces();\n\n if (player == antagonistPlayer) {\n x = antagonistLocation[0];\n y = antagonistLocation[1];\n damageToAnnounce = antagonistDamage;\n healthBenefitToAnnounce = antagonistHealthBenefit;\n } else if (player == heroPlayer) {\n x = heroLocation[0];\n y = heroLocation[1];\n damageToAnnounce = heroDamage;\n healthBenefitToAnnounce = heroHealthBenefit;\n } else {\n x = 0;\n y = 0;\n }\n }", "public void set(GPointsArray pts) {\n\t\tif (pts.getNPoints() == points.size()) {\n\t\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\t\t} else if (pts.getNPoints() > points.size()) {\n\t\t\tfor (int i = 0; i < points.size(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = points.size(); i < pts.getNPoints(); i++) {\n\t\t\t\tpoints.add(new GPoint(pts.get(i)));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (int i = 0; i < pts.getNPoints(); i++) {\n\t\t\t\tpoints.get(i).set(pts.get(i));\n\t\t\t}\n\n\t\t\tpoints.subList(pts.getNPoints(), points.size()).clear();\n\t\t}\n\t}", "void setEnemyPos(Point2D pos);", "public void playerSet(Player player, long chips) {\n currentMatch.playerSet(player, chips);\n ifMatchIsFinishedGoAhead();\n }", "public void setPlayer(final AbstractGameObject player) {\n this.player = player;\n this.cameraHelper.setTarget(this.player);\n }", "public void putListInPointOrder() {\n for (int i = 0; i < players.size(); i++) {\n Player s = players.get(i);\n if (i < players.size() - 1) {\n for (int j = i; j < players.size(); j++) {\n while (s.getPoint() < players.get(j).getPoint()) {\n Collections.swap(players, i, j);\n }\n\n }\n }\n }\n }", "void setPos(float x, float y);", "public void setPlayers(Hashtable<Integer, Player> players) {\r\n\t\tthis.players = players;\r\n\t}", "public void setPosition(Point point) {\n setPosition(point.x, point.y);\n }", "private void setMapPos()\r\n {\r\n try\r\n {\r\n Thread.sleep(1000);//so that you can see players move\r\n }\r\n catch(Exception e){}\r\n int currentPlayer = worldPanel.getCurrentPlayer();\r\n int currentUnit = worldPanel.getCurrentUnit();\r\n int unitPos = 0;\r\n int firstX = 0;\r\n int firstY = 0;\r\n if (currentPlayer == 1)\r\n {\r\n unitPos = worldPanel.player1.units[currentUnit - 1].getPosition();\r\n }\r\n if (currentPlayer == 2)\r\n {\r\n unitPos = worldPanel.player2.units[currentUnit - 1].getPosition();\r\n }\r\n int tempX = unitPos % mapWidth;\r\n int tempY = unitPos - tempX;\r\n if (tempY == 0) {}\r\n else\r\n tempY = tempY / mapHeight;\r\n tempX = tempX - 11;\r\n tempY = tempY - 7;\r\n if (tempX >= 0)\r\n firstX = tempX;\r\n else\r\n firstX = tempX + mapWidth;\r\n if (tempY >= 0)\r\n firstY = tempY;\r\n else\r\n firstY = tempY + mapWidth;\r\n\r\n int drawWidth = worldPanel.getDrawWidth();\r\n int drawHeight = worldPanel.getDrawHeight();\r\n worldPanel.setNewXYPos(firstX, firstY);\r\n miniMap.setNewXY(firstX, firstY, drawWidth, drawHeight);\r\n }", "public void setRevisedPoints(int thePoints)\r\n {\r\n points = points + thePoints;\r\n }", "public void setMerchantPoints(int points) {\n if (pointsPullCheck(points)) {\n merchantPoints += points;\n }\n }", "private void setCurrentTurnpike(Point t){\n\t\t\n\t\t_currentTurnpikeStart = t;\n\t\n\t}", "public void points(int index, int points) {\n if (index == 1) {\n pointsPlayer1.setText(\"Spieler 1: \" + points);\n } else {\n pointsPlayer2.setText(\"Spieler 2: \" + points);\n }\n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "private void initPlayers() {\n this.playerOne = new Player(1, 5, 6);\n this.playerTwo = new Player(2, 0, 1);\n this.currentPlayer = playerOne;\n\n }", "public void resetPoints() {\n points = 0;\n }", "public void setPlayerPosition() throws IOException\r\n\t{\r\n\t\tboolean flag = false;\r\n\t\t\r\n\t\tint X = 0;\r\n\t\tint Y = 0;\r\n\t\t\r\n\t\twhile(flag == false)\r\n\t\t{\r\n\t\t\toStream.writeInt(X);\r\n\t\t\toStream.writeInt(Y);\r\n\t\t\tflag = iStream.readBoolean();\r\n\t\t\tX++;\r\n\t\t\tY++;\r\n\t\t}\r\n\t\tboard.makePlayer(X-1, Y-1);\r\n\t}", "public static void teleportPlayer(GamePlayer player, List<Location> spawnpoint) {\r\n\t\tRandom rand = new Random();\r\n\t\tLocation spawn = spawnpoint.get(rand.nextInt(spawnpoint.size()));\r\n\t\t\r\n\t\tplayer.getPlayer().setSaturation(100000);\r\n\t\tplayer.getPlayer().setHealth(20);\r\n\t\tplayer.getPlayer().teleport(spawn);\r\n\t\tgiveStuff(player);\r\n\t}", "public void resetPuck() {\n this.puck.setPosition(new Point(this.center_point));\n }", "public void setPlayer(Player player){\r\n\t\tif (!hasBeenAcquired()){\r\n\t\t\tthis.acquiredBy = player;\r\n\t\t}\r\n\t\telse{\r\n\t\t\tthrow new IllegalArgumentException(\"Cannot acquire a plot that has already been acquired!\");\r\n\t\t}\r\n\t}" ]
[ "0.7417199", "0.7061714", "0.6976192", "0.69535196", "0.6904775", "0.6788616", "0.67756504", "0.6758144", "0.675778", "0.6755314", "0.67388004", "0.67137516", "0.67023146", "0.66828936", "0.66648257", "0.6617799", "0.6616432", "0.660606", "0.65919906", "0.6577035", "0.6508823", "0.6481766", "0.64798933", "0.645217", "0.64449763", "0.64392346", "0.63989586", "0.63893026", "0.63774407", "0.6374241", "0.63710237", "0.63432795", "0.6317394", "0.63095313", "0.63006794", "0.62843937", "0.6283159", "0.6283098", "0.6272884", "0.62142885", "0.62045574", "0.61981857", "0.6188326", "0.6185482", "0.61710477", "0.6165828", "0.61207664", "0.6104514", "0.6101508", "0.6094402", "0.60938", "0.6079744", "0.60787255", "0.60737854", "0.6069689", "0.60635155", "0.6041842", "0.6017614", "0.6000693", "0.59937686", "0.5993241", "0.59860814", "0.59852654", "0.596519", "0.5949587", "0.59438926", "0.59301144", "0.5924176", "0.5923957", "0.59232014", "0.5918948", "0.5917151", "0.5916998", "0.59116966", "0.59084684", "0.5898694", "0.58974934", "0.5895182", "0.5892722", "0.5892672", "0.5886399", "0.588432", "0.58793443", "0.58787394", "0.58635056", "0.58554673", "0.58536404", "0.58500516", "0.58472395", "0.5838879", "0.58304125", "0.58238024", "0.5810353", "0.5808057", "0.5806544", "0.5806313", "0.5792712", "0.57791835", "0.57785594", "0.5777501" ]
0.6323399
32
nothing to do here
@Override public void beforeTextChanged(CharSequence s, int start, int count, int after) { }
{ "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 grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public final void mo51373a() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "private void strin() {\n\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void method_4270() {}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void redibujarAlgoformers() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public void mo4359a() {\n }", "@Override\n protected void prot() {\n }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "@Override\n\tprotected void prepare() {\n\t\t\n\t}", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "protected boolean func_70814_o() { return true; }", "private void m50366E() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\n\t}", "public abstract void mo70713b();", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\r\n\tprotected void compute() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n public void preprocess() {\n }", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "private void parseData() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo12628c() {\n }", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void apply() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private void sub() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "protected void additionalProcessing() {\n\t}", "void berechneFlaeche() {\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo21877s() {\n }", "@Override\r\n\tpublic int sub() {\n\t\treturn 0;\r\n\t}", "private void remplirFabricantData() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void preprocess() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo6081a() {\n }", "@Override\n protected void init() {\n }" ]
[ "0.63796103", "0.6334971", "0.63205105", "0.6302668", "0.62852556", "0.6225275", "0.6146525", "0.6146525", "0.6144452", "0.60714036", "0.6044127", "0.6036487", "0.6034698", "0.6028312", "0.6009376", "0.60046643", "0.6002409", "0.59945714", "0.5979857", "0.59783345", "0.59775615", "0.59374535", "0.5936246", "0.5920857", "0.59174806", "0.5909387", "0.58943886", "0.5893071", "0.58459413", "0.583889", "0.5836388", "0.5820018", "0.5816212", "0.58142424", "0.57704717", "0.5769853", "0.5769853", "0.57654554", "0.5753895", "0.57275426", "0.57217467", "0.5704513", "0.5688861", "0.56851494", "0.56822747", "0.5679117", "0.56702274", "0.56509894", "0.5639693", "0.5639693", "0.5638187", "0.5630849", "0.5626496", "0.56236434", "0.5616146", "0.5613672", "0.561237", "0.5611539", "0.560555", "0.56031746", "0.55898", "0.5586348", "0.558419", "0.5581198", "0.5571984", "0.5561442", "0.5556029", "0.55553496", "0.5535239", "0.5533034", "0.5520651", "0.5519025", "0.5518827", "0.5518372", "0.55165464", "0.55165464", "0.55157036", "0.550578", "0.5503049", "0.55027115", "0.5488437", "0.5488437", "0.5488437", "0.5488437", "0.5488437", "0.5488437", "0.5488437", "0.54883677", "0.54855114", "0.54682034", "0.5460719", "0.5455392", "0.54415506", "0.5440544", "0.54357344", "0.54306525", "0.54305184", "0.5427702", "0.5425335", "0.54150033", "0.5413145" ]
0.0
-1
Borra el estado del Bean sobreescribiendo las propiedades del mismo con sus valores por defecto.
public void clearStatus(){ msgActionResult=null; currentPasswordConfirmed = false; password = ""; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ObjetosBeans() {\n this.init();\n }", "public PersonaBean() {\n domicilio = new Domicilio();\n telefono = new Telefono();\n correoElectronico = new CorreoElectronico();\n persona = new Persona();\n this.tipoOperacion = \"Alta\";\n\n }", "@Override\r\n\t//InitializingBean 인터페이스 메소드 <= 스프링에서 제공하는 초기화 메소드\r\n\t//스프링컨테이너에 의해서 빈 객체가 생성되고, 빈 객체에 프로퍼티에 의존하는 객체, 혹은 값의 주입이 완료된 후 수행된다.\r\n\t//따라서, 프로퍼티에 값들이 제대로 주입되었는지 확인할 목적으로 사용할 수 있다.\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"afterPropertiesSet() 실행...\");\r\n\t}", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public ClasificacionBean() {\r\n }", "public AtributoAsientoBean() {\n }", "public ContactoBean() {\n nombres = \"\";\n apellidos = \"\";\n email = \"\";\n asunto = \"\";\n mensaje = \"\";\n }", "protected void resetValues(){\n bean.setName(\"\");\n bean.setPassword(\"\");\n bean.setPasswordRepeat(\"\");\n bean.setSurname(\"\");\n bean.setUsername(\"\");\n bean.setValidation(\"\");\n \n }", "protected List getProperties() {\n return null;\n }", "public PSBeanProperties()\n {\n loadProperties();\n }", "public GrlFornecedorNovoBean()\n {\n fornecedor = getInstanciaFornecedor();\n }", "@Override\n protected void updateProperties() {\n }", "private void setAllAttributesFromController() {\n obsoData.setSupplier(supplier);\n \n obsoData.setEndOfOrderDate(endOfOrderDate);\n obsoData.setObsolescenceDate(obsolescenceDate);\n \n obsoData.setEndOfSupportDate(endOfSupportDate);\n obsoData.setEndOfProductionDate(endOfProductionDate);\n \n obsoData.setCurrentAction(avlBean.findAttributeValueListById(\n ActionObso.class, actionId));\n obsoData.setMtbf(mtbf);\n \n obsoData.setStrategyKept(avlBean.findAttributeValueListById(\n Strategy.class,\n strategyId));\n obsoData.setContinuityDate(continuityDate);\n \n obsoData.setManufacturerStatus(avlBean.findAttributeValueListById(\n ManufacturerStatus.class, manufacturerStatusId));\n obsoData.setAirbusStatus(avlBean.findAttributeValueListById(\n AirbusStatus.class, airbusStatusId));\n \n obsoData.setLastObsolescenceUpdate(lastObsolescenceUpdate);\n obsoData.setConsultPeriod(avlBean.findAttributeValueListById(\n ConsultPeriod.class, consultPeriodId));\n \n obsoData.setPersonInCharge(personInCharge);\n obsoData.setCommentOnStrategy(comments);\n }", "public void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"Antes de inicializar el bean Persona: \" + nombre);\n\t}", "@PostConstruct\r\n public void inicializar() {\r\n try {\r\n anioDeclaracion = 0;\r\n existeDedPatente = false;\r\n deducciones = false;\r\n detaleExoDedMul = new ArrayList<String>();\r\n activaBaseImponible = 0;\r\n verBuscaPatente = 0;\r\n inicializarValCalcula();\r\n datoGlobalActual = new DatoGlobal();\r\n patenteActual = new Patente();\r\n patenteValoracionActal = new PatenteValoracion();\r\n verPanelDetalleImp = 0;\r\n habilitaEdicion = false;\r\n numPatente = \"\";\r\n buscNumPat = \"\";\r\n buscAnioPat = \"\";\r\n catDetAnio = new CatalogoDetalle();\r\n verguarda = 0;\r\n verActualiza = 0;\r\n verDetDeducciones = 0;\r\n verBotDetDeducciones = 0;\r\n listarAnios();\r\n } catch (Exception ex) {\r\n LOGGER.log(Level.SEVERE, null, ex);\r\n }\r\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.la.netco.solicitudes_sdisc.model.model.Estado\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Estado>> listenersList = new ArrayList<ModelListener<Estado>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Estado>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.generacionFirmas.model.TrabajadorEmpresa\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<TrabajadorEmpresa>> listenersList = new ArrayList<ModelListener<TrabajadorEmpresa>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<TrabajadorEmpresa>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public PacienteBean() {\r\n paciente = new Paciente();\r\n logueado = new Usuario();\r\n //datospersonales = new HelperDatosPersonales();\r\n this.resultado = \"\";\r\n pacienteSeleccionado = false;\r\n \r\n // Carga session\r\n faceContext=FacesContext.getCurrentInstance();\r\n httpServletRequest=(HttpServletRequest)faceContext.getExternalContext().getRequest();\r\n if(httpServletRequest.getSession().getAttribute(\"Usuario\") != null)\r\n {\r\n logueado = (Usuario)httpServletRequest.getSession().getAttribute(\"Usuario\");\r\n }\r\n \r\n if(httpServletRequest.getSession().getAttribute(\"Centro\") != null)\r\n {\r\n //logueadoCentro = (Centro)httpServletRequest.getSession().getAttribute(\"Centro\");\r\n CentroID = Integer.parseInt(httpServletRequest.getSession().getAttribute(\"Centro\").toString());\r\n }\r\n }", "public AsignacionCamaBean() {\r\n bussinessFacade = new BussinessFacade();\r\n apoderadoFacade = new ApoderadoFacade();\r\n especialidadFacade = new EspecialidadFacade();\r\n asignacionCama = new AsignacionCama();\r\n camaFacade = new CamaFacade();\r\n asignacionCamaFacade = new AsignacionCamaFacade();\r\n ingresoHospitalizadosFacade = new IngresoHospitalizadosFacade();\r\n estadoPacienteFacade = new EstadoPacienteFacade();\r\n tipoCamaFacade = new TipoCamaFacade();\r\n ih = new IngresoHospitalizados();\r\n }", "@Override\n public void afterPropertiesSet() {\n }", "public CalificacionBean() {\n }", "public FinPagamentosListagemBean()\n {\n }", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"InitializingBean.afterPropertiesSet\");\r\n\t}", "public PonenciaBean() {\r\n controlador= new PonenciaAutorJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorPonencia= new PonenciaJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorEvento= new EventoJpaController(JPAUtil.getEntityManagerFactory());\r\n controladorTrabajoInvestigacion= new TrabajoInvestigacionJpaController(JPAUtil.getEntityManagerFactory());\r\n \r\n ponenciaModificar= new Ponencia(0, \"\", new Date());\r\n ponenciaAgregar= new Ponencia(0, \"\", new Date());\r\n ponencias= new ArrayList<>();\r\n eventos= new ArrayList<>();\r\n trabajos= new ArrayList<>();\r\n String temp = ((HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest()).getParameter(\"identificacion\");\r\n identificacionInvestigador=Integer.parseInt(temp);\r\n \r\n eventos= controladorEvento.findEventoEntities();\r\n trabajos=controladorTrabajoInvestigacion.findTrabajoInvestigacionEntities();\r\n List<PonenciaAutor> listaPonenciaAutor = controlador.findPonenciaAutorEntities();\r\n for(PonenciaAutor pa: listaPonenciaAutor){\r\n if(pa.getInvestigadorIdentificacion().getIdentificacion()== identificacionInvestigador){\r\n ponencias.add(pa.getPonenciaId());\r\n }\r\n }\r\n }", "public DroitBean() {\n formdroit=new ProfilMenuItem();\n selectdroit=new ProfilMenuItem();\n dataListdroit=new ArrayList<>();\n }", "@Override\r\n\tpublic ContentValues beanToValues() {\n\t\treturn null;\r\n\t}", "public PerfilActBean() {\r\n }", "@Override\n protected Map<String, Object> getBeansMap()\n {\n return TestUtility.getCountyData();\n }", "@Override\n protected Map<String, Object> getBeansMap()\n {\n return TestUtility.getStateData();\n }", "@PostConstruct\r\n public void leerListaUsuarios() {\r\n listaUsuarios.addAll(usuarioFacadeLocal.findAll());\r\n }", "public ProductosBean() {\r\n }", "public ProduitManagedBean() {\r\n\t\tthis.produit = new Produit();\r\n//\t\tthis.categorie = new Categorie();\r\n\t}", "public ReservaBean() {\r\n nrohabitacion=1;\r\n createLista(nrohabitacion);\r\n editable=true;\r\n sino=\"\";\r\n \r\n reserva = new TReserva();\r\n }", "public ListUserBean(){\n \n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.dtt.duongbien.dao.vrcb.model.DmHistoryGoods\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<DmHistoryGoods>> listenersList = new ArrayList<ModelListener<DmHistoryGoods>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<DmHistoryGoods>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.it.bysoftware.ct.model.RigoDocumento\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<RigoDocumento>> listenersList = new ArrayList<ModelListener<RigoDocumento>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<RigoDocumento>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "public ProductoListarBean() {\r\n }", "private void guardarEstadoObjetosUsados() {\n }", "private void limpiarValores(){\n\t\tpcodcia = \"\";\n\t\tcedula = \"\";\n\t\tcoduser = \"\";\n\t\tcluser = \"\";\n\t\tmail = \"\";\n\t\taudit = \"\";\n\t\tnbr = \"\";\n\t\trol = \"\";\n\t}", "@Override\r\n\tprotected void criarNovoBean() {\r\n\t\tcurrentBean = new MarcaOsEntity();\r\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t\tSystem.out.println(\"Bean Initialization is completed from class!!\");\n\t\t\n\t}", "@PostConstruct\n\tpublic void inicializar() {\n\t}", "public CrudCasinosBean() {\r\n }", "protected void proccesValues() {\n Users user = new Users();\n user.setName(bean.getName());\n user.setSurname(bean.getSurname());\n user.setUsername(bean.getUsername());\n StrongPasswordEncryptor passwordEncryptor = new StrongPasswordEncryptor();\n String encryptedPassword = passwordEncryptor.encryptPassword(bean.getPassword());\n user.setPassword(encryptedPassword);\n \n usersService.persist(user);\n Notification.show(msgs.getMessage(INFO_REGISTERED), Notification.Type.ERROR_MESSAGE);\n resetValues();\n UI.getCurrent().getNavigator().navigateTo(ViewLogin.NAME);\n }", "public ModificarPerfilBean() {\r\n }", "public editarUsuarioBean() {\r\n }", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n public void onPutBeansRaised() {\n }", "public UsuariosBean() {\n }", "@PostConstruct\n public void SolicitudCajaCHMB() {\n long a = System.currentTimeMillis();\n try {\n System.out.println(\"@PostConstruct SolicitudCajaCHMB\");\n usuarioLogin = (UsuarioBean) new MaristaUtils().sesionObtenerObjeto(\"usuarioLogin\");\n getSolicitudCajaCHBean();\n TipoConceptoService conceptoCategoriaService = BeanFactory.getTipoConceptoService();\n getTipoConceptoBean();\n listaTipoConceptoBean = conceptoCategoriaService.obtenerTipoConcepto();\n\n ConceptoUniNegService conceptoUniNegService = BeanFactory.getConceptoUniNegService();\n getListaConceptoUniNegBean();\n\n listaConceptoUniNegBean = conceptoUniNegService.obtenerConceptoUniNegPorUni(usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n// listaConceptoUniNegBean = conceptoUniNegService.obtenerConceptoUniNegActivos();\n\n UniNegUniOrgService uniNegUniOrgService = BeanFactory.getUniNegUniOrgService();\n getListaUnidadOrganicaBean();\n listaUnidadOrganicaBean = uniNegUniOrgService.obtenerUniOrgPorUniNeg(usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n\n TipoSolicitudService tipoSolicitudService = BeanFactory.getTipoSolicitudService();\n getListaTipoSolicitudBean();\n listaTipoSolicitudBean = tipoSolicitudService.obtenerSolGenCajaCH(MaristaConstantes.TIP_SOL_GEN, MaristaConstantes.A_RENDIR, usuarioLogin.getPersonalBean().getUnidadNegocioBean().getUniNeg());\n for (TipoSolicitudBean lista : listaTipoSolicitudBean) {\n System.out.println(\"tip \" + lista.getNombre());\n if (lista.getNombre().equals(MaristaConstantes.TIP_SOL_GEN)) {\n lista.setNombre(MaristaConstantes.TIP_SOL_GEN + \" - \" + \"Pago Proveedores \");\n }\n break;\n }\n\n CentroResponsabilidadService centroResponsabilidadService = BeanFactory.getCentroResponsabilidadService();\n getListaCentroResponsabilidadBean();\n listaCentroResponsabilidadBean = centroResponsabilidadService.obtenerCentroResponsabilidad();\n PlanContableService planContableService = BeanFactory.getPlanContableService();\n listaPlanContableBean = planContableService.obtenerPlanContable();\n CodigoService codigoService = BeanFactory.getCodigoService();\n getListTipoMoneda();\n listTipoMoneda = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_MON));\n// getListTipoSolicitud();\n// listTipoSolicitud = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_STA_CCH));\n\n getListTipoPrioridad();\n listTipoPrioridad = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_PRIORIDAD));\n\n //Validar perfil gestor solicitudes\n PerfilService perfilService = BeanFactory.getPerfilService();\n getListaPerfilBean();\n listaPerfilBean = perfilService.obtenerUsarioPerfil(usuarioLogin);\n for (int i = 0; i < listaPerfilBean.size(); i++) {\n if (listaPerfilBean.get(i).getNombre().equals(MaristaConstantes.GESTOR_SOLI)) {\n this.flgGestorSoli = true;\n this.flgMostarListSoli = false;\n break;\n } else {\n this.flgGestorSoli = false;\n this.flgMostarListSoli = true;\n }\n }\n// if (this.flgGestorSoli == false) {\n solicitudCajaCHBean.setNombreSolicitante(usuarioLogin.getPersonalBean().getNombreCompleto());\n solicitudCajaCHBean.setPersonalBean(usuarioLogin.getPersonalBean());\n\n// }\n cargarUniOrgUniNeg();\n\n getListTipoStatusSolCajaCh();\n fechaActual = new GregorianCalendar();\n getSolicitudCajaCHBean().setFechaSol(fechaActual.getTime());\n getSolicitudCajaCHFiltroBean().setFechaInicio(fechaActual.getTime());\n getSolicitudCajaCHFiltroBean().setFechaFin(fechaActual.getTime());\n listTipoStatusSolCajaCh = codigoService.obtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIP_STA_CCH));\n getSolicitudCajaCHFiltroBean().setUnidadNegocioBean(usuarioLogin.getPersonalBean().getUnidadNegocioBean());\n getSolicitudCajaCHFiltroBean().setCreaPor(usuarioLogin.getUsuario());\n listaTipoDistribucionCRBean = codigoService.obtenerPorTipo(new TipoCodigoBean(\"TipoDistribucionCR\"));\n dualCentroResponsabilidadBean = new DualListModel<>(listaCentroResponsabilidadBean, getListaCentroResponsabilidadBeanB());\n listaTipoCajaChica = codigoService.funcionObtenerPorTipo(new TipoCodigoBean(MaristaConstantes.TIPO_CAJACH));\n\n CodigoBean codigoPrioridad = new CodigoBean();\n codigoPrioridad = codigoService.obtenerPorCodigo(new CodigoBean(0, \"Media\", new TipoCodigoBean(MaristaConstantes.TIP_PRIORIDAD)));\n getSolicitudCajaCHBean().setTipoPrioridadBean(codigoPrioridad);\n setIdTipoSol(\"COL\");\n solicitudCajaCHBean.setIdTipoSolicitante(idTipoSol);\n changeTipo(\"soli\");\n getListaSolicitudCajaDocEgresoBean();\n// Double i = 0.00;\n } catch (Exception ex) {\n new MensajePrime().addErrorGeneralMessage();\n GLTLog.writeError(this.getClass(), ex);\n }\n long b = System.currentTimeMillis();\n System.out.println(\"time out: \" + (b - a));\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.emp.model.Department\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<Department>> listenersList = new ArrayList<ModelListener<Department>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<Department>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public DonusturucuBean() {\n }", "public void comecar() { setEstado(estado.comecar()); }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.hrms.model.EmployeeComplaint\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<EmployeeComplaint>> listenersList = new ArrayList<ModelListener<EmployeeComplaint>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<EmployeeComplaint>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "private void storComponentProperties(){\n\t\t//IPreferenceStore prefStore = JFacePreferences.getPreferenceStore();\n\t\t//PreferenceStore prefStore = mOyster2.getPreferenceStore();\n\t\tProperties mprop = mOyster2.getProperties();\n\t\tint count = mprop.getInteger(Constants.NUMBER_OF_COLUMNS);\n\t\tfor(int i=0; i<count; i++){\n\t\t\tmprop.setString(Constants.COLUMN_TYPE+i, mprop.getDefaultString(Constants.COLUMN_TYPE+i));\n\t\t\tmprop.setString(Constants.COLUMN_NAME+i, mprop.getDefaultString(Constants.COLUMN_NAME+i));\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH+i, mprop.getDefaultString(Constants.COLUMN_WIDTH+i));\n\t\t\t/*\n\t\t\tprefStore.setToDefault(Constants.COLUMN_TYPE+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_NAME+i);\n\t\t\tprefStore.setToDefault(Constants.COLUMN_WIDTH+i);\n\t\t\t*/\n\t\t}\n\t\tmprop.setString(Constants.NUMBER_OF_COLUMNS, \"\"+columns.size());\n\t\tfor(int i=0; i<columns.size(); i++){\n\t\t\tResultViewerColumnInfo colInf = getColumnInfo(i);\n\t\t\tmprop.setString(Constants.COLUMN_NAME + i, colInf.getColumnName());\n\t\t\tmprop.setString(Constants.COLUMN_TYPE + i, colInf.getColumnType());\n\t\t\tmprop.setString(Constants.COLUMN_WIDTH + i, \"\"+colInf.getWidth());\n\t\t}\n\t\ttry{\n\t\t\tmprop.storeOn();\n\t\t\t//prefStore.save();\n\t\t}\n\t\tcatch(Exception IO){\n\t\t\tSystem.out.println(\"couldnt save properties\");\n\t\t}\n\t\t\n\t}", "@Override\n\tpublic void setColumnProperties() {\n\t\t\n\t\tcolPedidoCompraId.setCellValueFactory(new PropertyValueFactory<>(\"id\"));\n//\t\tcolPedidoCompraNome.setCellValueFactory(new PropertyValueFactory<>(\"nome\"));\n\t\tcolStatus.setCellValueFactory(new PropertyValueFactory<>(\"status\"));\n//\t\tcolSaldoInicial.setCellValueFactory(new PropertyValueFactory<>(\"saldoinicial\"));\n//\t\tcolIE.setCellValueFactory(new PropertyValueFactory<>(\"inscricaoestadual\"));\n//\t\tcolEmail.setCellValueFactory(new PropertyValueFactory<>(\"email\"));\n//\t\tcolTelefone.setCellValueFactory(new PropertyValueFactory<>(\"telefone\"));\n\t\tcolAtivo.setCellValueFactory(new PropertyValueFactory<>(\"ativo\"));\n//\t\t\n\t\tcolEdit.setCellFactory(cellFactory);\n\t\tcolDel.setCellFactory(cellFactorydel);\n\t\t\n\t\tsuper.setColumnProperties();\n\t}", "public void limpiarProcesoBusqueda() {\r\n parametroEstado = 1;\r\n parametroNombre = null;\r\n parametroApellido = null;\r\n parametroDocumento = null;\r\n parametroTipoDocumento = null;\r\n parametroCorreo = null;\r\n parametroUsuario = null;\r\n parametroEstado = 1;\r\n parametroGenero = 1;\r\n listaTrabajadores = null;\r\n inicializarFiltros();\r\n }", "@Override\n\t\tpublic Map<String, Object> getAllProperties() {\n\t\t\treturn null;\n\t\t}", "public JSFManagedBeanHistorialTurno() {\r\n }", "public GestorAhorcadoManagedBean() {\r\n ahorcado = new Ahorcado();\r\n }", "@PostConstruct\n void init() {\n try {\n parameter = 0;\n inmuebleEntityObj = new InmuebleEntity();\n tipoInmuebleEntityObj = new TipoInmuebleEntity();\n localidadEntityObj = new LocalidadEntity();\n propiedadEntityObj = new PropiedadEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n localidadEntityObj = new LocalidadEntity();\n municipioEntityObj = new MunicipioEntity();\n departamentoEntityObj = new DepartamentoEntity();\n provinciaEntityObj = new ProvinciaEntity();\n tipoInmuebleEntityList = selectOptions.cbxTipoInmueble();\n propiedadEntityList = selectOptions.cbxPropiedad(true);\n departamentoEntityList = selectOptions.cbxDepartamento();\n setEstadoProvincia(true);\n setEstadoMunicipio(true);\n setEstadoLocalidad(true);\n validateParameter = beanApplicationContext.getMapValidateParameters();\n miscParameter = beanApplicationContext.getMapMiscellaneousParameters();\n mapaPropiedades = new MapaGoole(miscParameter.get(EnumParametros.LATITUD_CENTER_MAPA.toString()) + \",\" + miscParameter.get(EnumParametros.LONGITUD_CENTER_MAPA.toString()),\n miscParameter.get(EnumParametros.ZOOM_MAPA.toString()),\n miscParameter.get(EnumParametros.TIPO_MAPA.toString()));\n } catch (Exception e) {\n logger.error(\"[init] Fallo en el init.\", e);\n }\n }", "public Movimiento(MovimientoBean movimientoBean) {\r\n\r\n\t\t// Cantidad de Movimiento\r\n\t\tthis.cantidadMovimiento = movimientoBean.getCantidadMovimiento();\r\n\t\t// Estado Movimiento\r\n\t\tEstadomovimiento estadomovimiento = new Estadomovimiento();\r\n\t\testadomovimiento.setPkCodigoEstadomovimiento(movimientoBean.getEstadomovimiento().getCodigo());\r\n\t\tthis.estadomovimiento = estadomovimiento;\r\n\t\t// Factor Volquete Movimiento\r\n\t\tthis.factorVolqueteMovimiento = movimientoBean.getFactorVolqueteMovimiento();\r\n\t\t// Fecha Movimiento\r\n\t\tthis.fechaMovimiento = movimientoBean.getFechaMovimiento();\r\n\t\t// Linea Negocio\r\n\t\tLineanegocio lineanegocio = new Lineanegocio();\r\n\t\tlineanegocio.setPkCodigoLineanegocio(movimientoBean.getLineanegocio().getCodigo());\r\n\t\tthis.lineanegocio = lineanegocio;\r\n\t\t// Medio Almacenamiento\r\n\t\tif (movimientoBean.getMedioalmacenamiento() != null && movimientoBean.getMedioalmacenamiento().getCodigo() != null) {\r\n\t\t\tMedioalmacenamiento medioalmacenamiento = new Medioalmacenamiento();\r\n\t\t\tmedioalmacenamiento.setPkCodigoMedioalmacenamiento(movimientoBean.getMedioalmacenamiento().getCodigo());\r\n\t\t\tthis.medioalmacenamiento = medioalmacenamiento;\r\n\t\t}\r\n\t\t// Numero Viajes Movimiento\r\n\t\tthis.numeroViajesMovimiento = movimientoBean.getNumeroViajesMovimiento();\r\n\t\t// Producto\r\n\t\tProducto producto = new Producto();\r\n\t\tproducto.setPkCodigoProducto(movimientoBean.getProducto().getCodigo());\r\n\t\tthis.producto = producto;\r\n\t\t// Tipo Movimiento\r\n\t\tTipomovimiento tipomovimiento = new Tipomovimiento();\r\n\t\ttipomovimiento.setPkCodigoTipomovimiento(movimientoBean.getTipomovimiento().getCodigo());\r\n\t\tthis.tipomovimiento = tipomovimiento;\r\n\t\t// Ubicacion Origen\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionOrigen() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionOrigen = new Ubicacion();\r\n\t\t\tubicacionOrigen.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionOrigen().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionOrigen = ubicacionOrigen;\r\n\t\t}\r\n\t\t// Ubicacion Destino\r\n\t\tif (movimientoBean.getUbicacionByFkCodigoUbicacionDestino() != null\r\n\t\t\t\t&& movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo() != null) {\r\n\t\t\tUbicacion ubicacionDestino = new Ubicacion();\r\n\t\t\tubicacionDestino.setPkCodigoUbicacion(movimientoBean.getUbicacionByFkCodigoUbicacionDestino().getCodigo());\r\n\t\t\tthis.ubicacionByFkCodigoUbicacionDestino = ubicacionDestino;\r\n\t\t}\r\n\t\t// Unidad Medida\r\n\t\tUnidadmedida unidadmedida = new Unidadmedida();\r\n\t\tunidadmedida.setPkCodigoUnidadMedida(movimientoBean.getUnidadmedida().getCodigo());\r\n\t\tthis.unidadmedida = unidadmedida;\r\n\t\tthis.origenMovimiento = \"\";\r\n\t\tthis.factorHumedad = 0d;\r\n\t\tthis.cantidadMovimientoHumedad = movimientoBean.getCantidadMovimiento();\r\n\t\tthis.codigoSapproductoMovimiento = movimientoBean.getCodigoSapproducto();\r\n\r\n\t}", "public FuncionarioBean() {\n }", "@PostConstruct\n public void loadData()\n {\n try \n {\n usu = new RhUsuario();\n \n rol = new RhRol();\n \n uc = new UsuController();\n \n usuList = uc.findAll(usu);\n \n encrypter = new Encryption();\n } \n catch (Exception ex) \n {\n Logger.getLogger(UsuarioManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public List<Poruke> getAllPoruke(){\r\n return porukeBeanLocal.getAllPoruke();\r\n }", "public libroBean() throws SQLException\r\n {\r\n variables = new VariablesConexion();\r\n variables.iniciarConexion();\r\n conexion=variables.getConexion();\r\n \r\n }", "@Override\n public Map<String, String> getProperties() {\n return null;\n }", "@PostConstruct\r\n public void iniciar() {\n notaEntrada.setIdnotaentrada(0);\r\n notaEntrada.setOrdenCompra(new OrdenCompra());\r\n notaEntrada.setNumero(maxNumero() + 1);\r\n notaEntrada.setFechaReg(new Date());\r\n notaEntrada.setFechaDocref(null);\r\n notaEntrada.setNroDocref(\"\");\r\n notaEntrada.setObservacion(\"\");\r\n notaEntrada.setTipoIngreso(\"\");\r\n notaEntrada.setProveedor(new Proveedor());\r\n notaEntrada.setAlmacenDestino(new Almacen());\r\n listNotaEntradaDetalle.clear();\r\n this.producto = null;\r\n }", "public void datosIniciales() {\n try {\n nombre.setCellValueFactory(new PropertyValueFactory<>(\"nombre\"));\n subTipo.setCellValueFactory(new PropertyValueFactory<>(\"subTipo\"));\n tipo.setCellValueFactory(new PropertyValueFactory<>(\"tipo\"));\n editar.setCellValueFactory(new PropertyValueFactory<>(\"imagenEditar\"));\n listaSubTipoDAO = subTipoDAO.hacerConsulta();\n listaSubTipo = FXCollections.observableArrayList(listaSubTipoDAO);\n valoresSubtipo = new ListSpinnerValueFactory(listaSubTipo);\n spinnerSubtipo.setValueFactory(valoresSubtipo);\n\n puntuacion = new SpinnerValueFactory.IntegerSpinnerValueFactory(1, 5, 1, 1);\n\n editar.getStyleClass().add(\"cursorMano\");\n refrescarDatos();\n\n } catch (SQLException ex) {\n alarmaFalloSQL();\n }\n }", "@Local\npublic interface IGestionarUsuarioBean {\n\n\t\n\t/**\n\t * \n\t * Metodo encargado de crear un usuario y persistirlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicNuevo informacion nueva a crear\n\t */\n\tpublic ResultadoDTO crearUsuario(UsuarioDTO UsuarioDTO)throws EntityExistsException, IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de consultar un usuari o modificar su nombre y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicModificar informacion nueva a modificar\n\t */\n\tpublic ResultadoDTO modificarUsuario(String id, String nombre, UsuarioDTO usuarioDTO)throws IllegalArgumentException;\n\n\t/**\n\t * \n\t * Metodo encargado de eliminar un afiliado modificarlo y guardarlo\n\t * \n\t * @author ccastano\n\t * \n\t * @param comicEliminar informacion a eliminar\n\t */\n\tpublic void ponerUsuarioInactivo(String idUsuario);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar la informacion de un usuario\n\t * \n\t * @param idUsuario identificador del usuarioo a ser consultado\n\t * @return usuario Resultado de la consulta\n\t * @throws Exception si no se recibe idComic\n\t */\n\tpublic UsuarioDTO consultarUsuario(String idAfiliado);\n\n\t/**\n\t * \n\t * Metodo encargado de retornar una lista de usuarios\n\t * \n\t * @return\n\t */\n\tpublic List<UsuarioDTO> consultarUsuarios();\n\t\n\t/**\n\t * metodo encargado de validar fecha de ingreso\n\t * @param fechaIngresada\n\t * @return true si es una fecha valida, flase de lo contrario\n\t */\n\tpublic Boolean validarFecha(LocalDate fechaIngresada);\n\t\n\t/**\n\t * metodo encargado de validar si un usuario esta activo\n\t * @param idUsuario\n\t * @return true si el usuario esta activo , false de lo contrario\n\t */\n\tpublic Boolean validarUsuarioActivo(String idUsuario);\n\t\n\t\n}", "@Override\n public void afterPropertiesSet() {\n validateProperties();\n }", "public void afterPropertiesSet() throws Exception {\n\t\t System.out.println(\"Log Bean is going through init method using Interfaces.\");\n\t\t\n\t}", "public Propuestas() {}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.edu.jhu.cvrg.waveform.main.dbpersistence.model.AnnotationInfo\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<AnnotationInfo>> listenersList = new ArrayList<ModelListener<AnnotationInfo>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<AnnotationInfo>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.agbar.intranet.quienesquien.model.CompanyAg\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<CompanyAg>> listenersList = new ArrayList<ModelListener<CompanyAg>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<CompanyAg>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "@PostConstruct\n public void CargarTimbresMasivosBean() {\n try {\n objectContext = cargarComponenteAjaxObjectContext();\n loggerApp = objectContext.getConfigApp().loggerApp;\n cargarTimbresMasivosObjectContext = new CargarTimbresMasivosObjectContext(getRequestFaces(), getResponseFaces());\n if (objectContext != null) {\n init();\n }\n } catch (Exception ex) {\n abrirModal(\"SARA\", \"Error\", ex);\n }\n }", "public String getNombreBeanActual() {\n\t\tString nombre = this.getClass().getAnnotation(ManagedBean.class).name();\n\t\tif (TratamientoDeDatos.esNullCeroVacio(nombre)) {\n\t\t\tnombre = this.getClass().getSimpleName().substring(0, 1).toLowerCase()+ this.getClass().getSimpleName().substring(1);\n\t\t}\n\t\treturn nombre;\n\t}", "public void afterPropertiesSet() {\r\n\t}", "@Override\n\tpublic int cambiaEstado(VisitaTecnica bean) {\n\t\treturn 0;\n\t}", "public RegistroBean() {\r\n }", "@PostConstruct\r\n/* 37: */ public void init()\r\n/* 38: */ {\r\n/* 39: 49 */ this.listaMotivoLlamadoAtencion = new LazyDataModel()\r\n/* 40: */ {\r\n/* 41: */ private static final long serialVersionUID = 1L;\r\n/* 42: */ \r\n/* 43: */ public List<MotivoLlamadoAtencion> load(int startIndex, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters)\r\n/* 44: */ {\r\n/* 45: 59 */ List<MotivoLlamadoAtencion> lista = new ArrayList();\r\n/* 46: 60 */ boolean ordenar = sortOrder == SortOrder.ASCENDING;\r\n/* 47: */ \r\n/* 48: 62 */ filters.put(\"idOrganizacion\", String.valueOf(AppUtil.getOrganizacion().getId()));\r\n/* 49: 63 */ lista = MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.obtenerListaPorPagina(startIndex, pageSize, sortField, ordenar, filters);\r\n/* 50: */ \r\n/* 51: 65 */ MotivoLlamadoAtencionBean.this.listaMotivoLlamadoAtencion.setRowCount(MotivoLlamadoAtencionBean.this.servicioMotivoLlamadoAtencion.contarPorCriterio(filters));\r\n/* 52: */ \r\n/* 53: 67 */ return lista;\r\n/* 54: */ }\r\n/* 55: */ };\r\n/* 56: */ }", "@PostConstruct\n public void init() {\n entradas = entradaFacadeLocal.findAll();\n salidas = salidaFacadeLocal.findAll();\n inventarios = inventarioFacadeLocal.leerTodos();\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public void setUsuario(Usuario usuario) {\n this.usuario = usuario;\n }", "public abstract DtPropuesta[] getPropuestasPopulares();", "public void setListaCuentaContableBean(ListaCuentaContableBean listaCuentaContableBean)\r\n/* 324: */ {\r\n/* 325:387 */ this.listaCuentaContableBean = listaCuentaContableBean;\r\n/* 326: */ }", "public ListarInscritosManagedBean() {\n this.member1Service = new Member1Service();\n }", "private void listadoEstados() {\r\n sessionProyecto.getEstados().clear();\r\n sessionProyecto.setEstados(itemService.buscarPorCatalogo(CatalogoEnum.ESTADOPROYECTO.getTipo()));\r\n }", "protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "@PostConstruct\n private void postConstruct() {\n if (customValue == null) {\n throw new RuntimeException(\"[customValue] property is not set \");\n }\n if (customSecondValue == null) {\n throw new RuntimeException(\"[customSecondValue] property is not set \");\n }\n }", "@Override\n public Map<String, String> getProperties()\n {\n return null;\n }", "public clientesBean() {\n this.clie = new Clientes();\n }", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.vn.com.ecopharma.hrm.rc.model.InterviewSchedule\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<InterviewSchedule>> listenersList = new ArrayList<ModelListener<InterviewSchedule>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<InterviewSchedule>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.com.vportal.portlet.vcalendar.model.VCal\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<VCal>> listenersList = new ArrayList<ModelListener<VCal>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<VCal>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tlistenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}", "public void setNombre(String nombre) {this.nombre = nombre;}", "public ListaCuentaContableBean getListaCuentaContableBean()\r\n/* 319: */ {\r\n/* 320:383 */ return this.listaCuentaContableBean;\r\n/* 321: */ }", "public void setTelefono(String telefono) {\r\n\tthis.telefono = telefono;\r\n}", "public void afterPropertiesSet() {\n\t\tString[] listenerClassNames = StringUtil.split(GetterUtil.getString(\n\t\t\t\t\tcom.liferay.util.service.ServiceProps.get(\n\t\t\t\t\t\t\"value.object.listener.hu.webtown.liferay.portlet.model.TvShow\")));\n\n\t\tif (listenerClassNames.length > 0) {\n\t\t\ttry {\n\t\t\t\tList<ModelListener<TvShow>> listenersList = new ArrayList<ModelListener<TvShow>>();\n\n\t\t\t\tfor (String listenerClassName : listenerClassNames) {\n\t\t\t\t\tlistenersList.add((ModelListener<TvShow>)InstanceFactory.newInstance(\n\t\t\t\t\t\t\tgetClassLoader(), listenerClassName));\n\t\t\t\t}\n\n\t\t\t\tlisteners = listenersList.toArray(new ModelListener[listenersList.size()]);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\t_log.error(e);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.65650547", "0.64057475", "0.63212436", "0.6269319", "0.6122994", "0.60058504", "0.5934088", "0.58688766", "0.58536536", "0.5853307", "0.5851491", "0.5832997", "0.5823117", "0.5822541", "0.5810664", "0.5809974", "0.5806562", "0.5775784", "0.577266", "0.57508254", "0.5732638", "0.5728653", "0.5716992", "0.56933427", "0.5685119", "0.5684979", "0.56806165", "0.56631655", "0.56594145", "0.565823", "0.56578547", "0.5640617", "0.5640403", "0.5630341", "0.5629457", "0.56283796", "0.56221294", "0.5617864", "0.5599119", "0.55983645", "0.5596013", "0.5594598", "0.5589024", "0.5587103", "0.55852044", "0.55783784", "0.5574782", "0.5571817", "0.5571034", "0.55497015", "0.55374926", "0.55296034", "0.5517207", "0.55167395", "0.5508652", "0.5496134", "0.54860723", "0.54850256", "0.5484943", "0.54817075", "0.54815745", "0.54740024", "0.54721445", "0.5469519", "0.5468827", "0.5464041", "0.54602605", "0.54562193", "0.5453317", "0.5450224", "0.5446486", "0.5439821", "0.5437305", "0.54339737", "0.5424377", "0.5422974", "0.5422431", "0.5421799", "0.5420158", "0.5418901", "0.54186535", "0.54178876", "0.54177123", "0.5416689", "0.5414866", "0.5414866", "0.54143244", "0.54133445", "0.54124373", "0.54123944", "0.541098", "0.5410406", "0.5407158", "0.54068124", "0.54056495", "0.5405415", "0.54044247", "0.5402535", "0.53993386", "0.5397445", "0.5382995" ]
0.0
-1
// // // // // // GETTERS & SETTERS // // // // // //
public String getPassword() { return password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public void get() {\n }", "String setValue();", "public void setdat()\n {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "public void setAge(int age) { this.age = age; }", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "protected abstract Set method_1559();", "@Override\npublic void setAttributes() {\n\t\n}", "public String get();", "private ReadProperty()\r\n {\r\n\r\n }", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public int\t\tget() { return value; }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "private void assignment() {\n\n\t\t\t}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "public void setName(String name){this.name=name;}", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "@Override\n String get();", "@Override\n protected void updateProperties() {\n }", "public int getSet() {\n return set;\n }", "public T get() {\n return value;\n }", "public abstract String get();", "public int getAge() {return age;}", "public int get () { return rating; }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public int getlife(){\r\n return life;\r\n}", "@Test\n public void testGetSets() {\n ref.setKey(\"test23\");\n assertEquals(\"test23\", ref.getKey());\n ref.setAuthor(\"test23\");\n assertEquals(\"test23\", ref.getAuthor());\n ref.setEditor(\"test23\");\n assertEquals(\"test23\", ref.getEditor());\n ref.setTitle(\"test23\");\n assertEquals(\"test23\", ref.getTitle());\n ref.setBooktitle(\"test23\");\n assertEquals(\"test23\", ref.getBooktitle());\n ref.setYear(\"1839\");\n assertEquals(\"1839\", ref.getYear());\n ref.setPublisher(\"Otava\");\n assertEquals(\"Otava\", ref.getPublisher());\n ref.setJournal(\"test23\");\n assertEquals(\"test23\", ref.getJournal());\n ref.setVolume(\"3\");\n assertEquals(\"3\", ref.getVolume());\n ref.setNumber(\"123\");\n assertEquals(\"123\", ref.getNumber());\n ref.setSeries(\"test23\");\n assertEquals(\"test23\", ref.getSeries());\n ref.setEdition(\"3rd\");\n assertEquals(\"3rd\", ref.getEdition());\n ref.setPages(\"12-35\");\n assertEquals(\"12-35\", ref.getPages());\n ref.setMonth(\"May\");\n assertEquals(\"May\", ref.getMonth());\n ref.setNote(\"test23\");\n assertEquals(\"test23\", ref.getNote());\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "private void setData() {\n\n }", "public void setAge(int age);", "@Override\n public void saveValues() {\n \n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setName(String name){this.name = name;}", "public String get()\n {\n return this.string;\n }", "private void setUserData(){\n }", "public void setName (String newName)\n {\n this.name = newName; \n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setPrice(double price){this.price=price;}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "String get();", "String get();", "public int value() { \n return this.value; \n }", "@Override\r\n\tpublic void read() {\n\r\n\t}", "@Override\n\tpublic void setValue(Object value) {\n\t\t\n\t}", "@Test\n\tpublic void testSet() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "void setAge(int age);", "public byte[] get(){\n return this.value;\n }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public Book getBook() \t\t{ return this.myBook; }", "public String getAuthor(){return author;}", "public int getAge(){\n return age;\n }", "public void setU(String f){\n u = f;\n}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "public void setRes(){\r\n \r\n }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "@Test\n\tpublic void get_test()\n\t{\n\t\tb.set(1,2,'x');\n\t\tassertEquals(b.get(1,2),'x');\n\t}", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "public Object get()\n {\n return m_internalValue;\n }", "String getName(){return this.name;}", "public void setNombre(String nombre){\n this.nombre =nombre;\n }", "public Object getNewValue()\n {\n return newValue;\n }", "public void set(String name, Object value) {\n }", "public void setModified();", "public void setNew();", "public V get() {\n return value;\n }", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "@Override\n\tprotected void GetDataFromNative() {\n\t\t\n\t}", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "@Override\n\tpublic void read() {\n\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public int getLives(){return lives;}", "public void setBirthday() { this.birthday = birthday; }", "public String get() {\n return value;\n\t}", "@Override\n\tpublic void setValue(Object object) {\n\t\t\n\t}", "public void setX(int x) { this.x=x; }", "private Get() {}", "private Get() {}", "public int getNumber(){return number;}", "public void setNombre(String nombre)\r\n/* 65: */ {\r\n/* 66: 76 */ this.nombre = nombre;\r\n/* 67: */ }", "public String getName(){return this.name;}", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}", "@Override\n public void init() {\n\n }", "int getBlue(){\n\n return this.blue;\n }", "public String getName(){\n return name;\n}", "public int getArmadura(){return armadura;}", "@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}", "private UserPrefernce(){\r\n\t\t\r\n\t}", "@Override\n\tprotected void getDataFromUCF() {\n\n\t}" ]
[ "0.67863923", "0.67541206", "0.64044684", "0.62142867", "0.6155047", "0.61447954", "0.61393034", "0.6132739", "0.61318946", "0.61147976", "0.6096064", "0.60212004", "0.5951063", "0.5932159", "0.59126157", "0.59117204", "0.59065354", "0.5899997", "0.589989", "0.5888448", "0.5888448", "0.588215", "0.5879523", "0.5863804", "0.58287", "0.582117", "0.5815887", "0.58097714", "0.5807013", "0.5790282", "0.5789101", "0.5788709", "0.57708657", "0.5768424", "0.5760935", "0.57608813", "0.5751744", "0.5750718", "0.57376796", "0.57346165", "0.57334024", "0.5719712", "0.5715233", "0.57093084", "0.57029575", "0.5698197", "0.5695073", "0.5695073", "0.5692247", "0.56680727", "0.5668068", "0.56665623", "0.56633884", "0.5659884", "0.5647805", "0.5643325", "0.56414753", "0.5641339", "0.5631546", "0.5624216", "0.5616925", "0.56153816", "0.5612803", "0.5607589", "0.5602887", "0.5602698", "0.5600881", "0.5598431", "0.5596578", "0.5594849", "0.5587581", "0.55862176", "0.5583488", "0.55718434", "0.5571473", "0.55696625", "0.5566942", "0.5566942", "0.55667746", "0.5566678", "0.55665594", "0.5565757", "0.55638033", "0.5548555", "0.55389386", "0.5536036", "0.5534848", "0.55339354", "0.55339354", "0.5525107", "0.55238664", "0.5518301", "0.5503878", "0.5503111", "0.5498811", "0.5495598", "0.54922277", "0.5486099", "0.5483206", "0.5481863", "0.5481262" ]
0.0
-1
Metodo chiamato quando si verifica un eccezione
@Override public void exceptionCaught(IoSession session, Throwable cause) throws Exception { //Se eccezione SSL(e.g. handshake fallito, termino la connessione if (cause instanceof SSLException) { System.out.println("ECCEZIONE TLS SESSION " + session.getId()); session.close(true); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "@Override\n\tpublic boolean verificarCancelar() {\n\t\treturn true;\n\t}", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void act() \n {\n verificaClique();\n }", "@Override\n\tpublic void verificar() {\n\t\tsuper.verificar();\n\t}", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif(tblListaDetallePedido.getRowCount() > 0)\n {\n if(!validaChecksTable())\n {\n FarmaUtility.showMessage(this,\"No es posible realizar la operación. Existen productos sin selección de lotes.\",tblListaDetallePedido);\n return;\n }\n if(componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\"Está seguro de generar el pedido institucional?\"))\n cerrarVentana(true);\n }\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n }", "@Override\n\tpublic void statusVomMenschen() {\n\t\tSystem.out.println(\"Sie wurden getroffen nun können Sie nicht mehr so schnell laufen!\");\n\t}", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (UtilityPtoVenta.verificaVK_F1(e)) // Reservado para ayuda\n\t\t{\n\t\t} else if (UtilityPtoVenta.verificaVK_F11(e)) {\n \n boolean valor=true;\n if (datosValidados()){\n //JCORTEZ 14.03.09 solo para tipo ticket no se podra modificar la cola de impresion con una que ya exista\n if (VariablesImpresoras.vTipoComp.trim().equalsIgnoreCase(ConstantsPtoVenta.TIP_COMP_TICKET)){\n if(!validaRuta()){\n FarmaUtility.showMessage(this,\"No se puede asignar una ruta de impresion que ya existe.\",txtColaImpresion);\n valor=false;\n }\n }\n if(valor)\n if (JConfirmDialog.rptaConfirmDialog(this,\"¿Está seguro que desea grabar los datos ?\")) {\n try {\n if (existenDatos) {\n actualizarImpresora();\n } else {\n insertarImpresora();\n actualizaNumeracionImpresoras();\n }\n\n FarmaUtility.aceptarTransaccion();\n FarmaUtility.showMessage(this,\"La operación se realizó correctamente\",txtDescImpresora);\n\n } catch (SQLException ex) {\n FarmaUtility.liberarTransaccion();\n FarmaUtility.showMessage(this,\"Error al grabar datos de la impresora: \\n\"+ ex.getMessage(), txtDescImpresora);\n log.error(\"\",ex);\n\n }\n cerrarVentana(true);\n }\n }\n\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\n\t}", "@Override\n\tpublic String textoVerificarAceptar() {\n\t\treturn \"Debe seleccionar un item o hacer click en [Cancelar] para continuar\";\n\t}", "@Override\n\tpublic void dialogar() {\n\t\tSystem.out.println(\"Ofrece un Discurso \");\n\t\t\n\t}", "public void cadenaEsAceptada() {\n\t\tfor (int i = 0; i < conjuntoF.size(); i++) {\n\t\t\tif (estadoActual.equals(conjuntoF.get(i))) {\n\t\t\t\tSystem.out.println(\"Cadena aceptada!\");\n\t\t\t\tbreak;\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"Cadena no aceptada\");\n\t\t}\n\t}", "@When(\"je clique sur le bouton Valider ma commande\")\n\tpublic void je_clique_sur_le_bouton_Valider_ma_commande() {\n\t throw new PendingException();\n\t}", "@Override\r\n\tpublic void exibir() {\n\t\t\r\n\t\tSystem.out.println(\"Condicoes atuais: \" + temp + \"°C e \" + umid + \"% de umidade \" \r\n\t\t\t\t+ pressao + \" pressao\");\r\n\t\t\r\n\t}", "public void lance() {\n\t\tthis.laRequete.ecrireMessage(\"202\",\" Commande Non implementee\"); //502 ou 202?\n\t\tthis.laRequete.ecrireLog(\"Commande Non implementee\");\n\t}", "public void verifyText( VerifyEvent e )\n {\n if ( !filterCombo.getText().equals( e.text ) && e.character == 0 && e.start == e.end )\n {\n filterCPA.closeProposalPopup();\n }\n\n // or with ctrl+v / command+v\n if ( !filterCombo.getText().equals( e.text ) && e.stateMask == SWT.MOD1 && e.start == e.end )\n {\n filterCPA.closeProposalPopup();\n }\n }", "private void verificaVencedor(){\n\n // Metodo para verificar o vencedor da partida\n\n if(numJogadas > 4) {\n\n String vencedor = tabuleiro.verificaVencedor();\n\n vencedor = (numJogadas == tabuleiro.TAM_TABULEIRO && vencedor == null) ? \"Deu Velha!\" : vencedor;\n\n if (vencedor != null) {\n\n mostraVencedor(vencedor);\n temVencedor = true;\n\n }\n\n }\n\n }", "public void carroAgregado(){\n System.out.println(\"Su carro fue agregado con exito al sistema\");\n }", "@Override\r\n\tpublic void hacerSonido() {\n\t\tSystem.out.print(\"miau,miau -- o depende\");\r\n\t\t\r\n\t}", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public void ingresar_a_la_Opcion_de_eventos() {\n\t\t\n\t}", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "public void carroNoAgregado(){\n System.out.println(\"No hay un parqueo para su automovil\");\n }", "final void checkForComodification() {\n\t}", "private void chkKeyPressed(KeyEvent e) {\n\t\tif (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) {\n\t\t\tif (datosValidados())\n\t\t\t\tif (componentes.gs.componentes.JConfirmDialog.rptaConfirmDialog(this,\n\t\t\t\t\t\t\"Esta seguro que desea afectar la página?\")) {\n\t\t\t\t\tVariablesInventario.vNumPag = cmbPagina.getSelectedItem()\n\t\t\t\t\t\t\t.toString().trim();\n\t\t\t\t\tcerrarVentana(true);\n\t\t\t\t}\n\t\t} else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\n\t\t\tcerrarVentana(false);\n\t\t}\n\t}", "public void acaba() \n\t\t{\n\t\t\tsigo2 = false;\n\t\t}", "public void verarbeite() {\n\t\t\r\n\t}", "public void toolAccepted()\n {\n printOut(cliToolsManager.simpleQuestionsMaker(\"Strumento accettato\", 40, true));\n }", "@Override\n\tpublic boolean vender(String placa) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void chocoContraPared() {}", "public void e() {\n com.shopee.app.ui.dialog.a.a(getContext(), (int) R.string.sp_open_shop_categories_in_broswer, (int) R.string.sp_label_cancel, (int) R.string.sp_open_in_browser, (a.C0318a) new a.C0318a() {\n public void onNegative() {\n }\n\n public void onPositive() {\n g.this.f25459e.ah();\n }\n });\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n String command = ae.getActionCommand();\n switch (command) {\n case \"Conferma\":\n if (convalidaCampi()) {\n salvaPrescrizione(creaPrescrizione());\n Utility.chiudiDialog(ae);\n }\n break;\n case \"Annulla\":\n Utility.chiudiDialog(ae);\n break;\n }\n }", "public void verComprobante() {\r\n if (tab_tabla1.getValorSeleccionado() != null) {\r\n if (!tab_tabla1.isFilaInsertada()) {\r\n Map parametros = new HashMap();\r\n parametros.put(\"ide_cnccc\", Long.parseLong(tab_tabla1.getValorSeleccionado()));\r\n parametros.put(\"ide_cnlap_debe\", p_con_lugar_debe);\r\n parametros.put(\"ide_cnlap_haber\", p_con_lugar_haber);\r\n vpdf_ver.setVisualizarPDF(\"rep_contabilidad/rep_comprobante_contabilidad.jasper\", parametros);\r\n vpdf_ver.dibujar();\r\n } else {\r\n utilitario.agregarMensajeInfo(\"Debe guardar el comprobante\", \"\");\r\n }\r\n\r\n } else {\r\n utilitario.agregarMensajeInfo(\"No hay ningun comprobante seleccionado\", \"\");\r\n }\r\n }", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "private void verificaData() {\n\t\t\n\t}", "public void onEulaAction(boolean isAccepted);", "@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 }", "static boolean continuar(){\r\n\t\tchar respuesta = Teclado.leerCaracter(\"¿Desea continuar? (s/n): \");\r\n\t\tif (respuesta == 's' || respuesta == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "@Override\n\tpublic boolean preModify() {\n\t\tif(!cuentaPapaCorrecta(instance)) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctapdrno\"));\n\t\t\treturn false;\n\t\t}\n\t\tif(!cuentaEsUnica()) {\n\t\t\tFacesMessages.instance().add(\n\t\t\t\t\tsainv_messages.get(\"cuentac_error_ctaexis\"));\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public void verVerDescripcion()\r\n\t{\r\n\t\tverdescripcion = new VerDescripcion(this);\r\n\t\tverdescripcion.setVisible(true);\r\n\t}", "@Override\n\tpublic void acomodaVista() {\n\n\t}", "public abstract boolean esComestible();", "private void verificaIdade() {\r\n\t\thasErroIdade(idade.getText());\r\n\t\tisCanSave();\r\n\t}", "@Override\n public void comunicar() {\n System.out.println(\"miauuuu\");\n\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tif (ta.getText().trim().length() > 0) {\n\t\t\t\t\tint re = -1;\n\t\t\t\t\tif (isChanged)\n\t\t\t\t\t\tre = JOptionPane.showConfirmDialog(f, \"변경된 내용을 저장하시겠습니까?\", \"확인\",\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_CANCEL_OPTION);\n\n\t\t\t\t\tSystem.out.println(\"new \" + re);\n\t\t\t\t\tif (re == 0) {\n\t\t\t\t\t\tsaveFile();\n\t\t\t\t\t\tfile = null;\n\t\t\t\t\t\tta.setText(\"\");\n\t\t\t\t\t} else if (re == 1) {\n\t\t\t\t\t\tfile = null;\n\t\t\t\t\t\tta.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else\n\t\t\t\t\tta.setText(\"\");\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent ae) {\n\t\tif(ae.getActionCommand().equals(\"Ação 3\"));\n\t\tSystem.out.println(\"Clicke no botão 3\");\n\t\t\n\t}", "private void chkKeyPressed(KeyEvent e) {\n \n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) \n { \n FarmaVariables.vAceptar = true;\n this.setVisible(false);\n this.dispose();\n e.consume();\n //cerrarVentana(true); \n } \n \n else if (venta.reference.UtilityPtoVenta.verificaVK_F11(e)) \n {\n if (datosValidados()) {\n try {\n ingresarCantidad();\n FarmaUtility.aceptarTransaccion();\n cerrarVentana(false);\n } catch (SQLException sql) {\n FarmaUtility.liberarTransaccion();\n log.error(\"\",sql);\n FarmaUtility.showMessage(this, \n \"Ocurrió un error al registrar la cantidad : \\n\" +\n sql.getMessage(), txtCruce);\n cerrarVentana(false);\n }\n }\n }\n }", "@Override\n public void run() {\n\t\t\t\t\t\t\tif (!wrapped)\n\t\t\t\t\t\t\t\thexEditor.getEditorSite().getActionBars().getStatusLineManager().setMessage(found == null && matchCount == 0 ? Messages.HexEditorControl_7 : matchCount > 0 ? Messages.HexEditorControl_8 + matchCount + Messages.HexEditorControl_9 : null);\n\t\t\t\t\t\t\tupdateStatusPanel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusActivo());\n\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t}", "public void selecao () {}", "@Override\n\tpublic void chechStatus(int idu) {\n\t\t\n\t}", "private void chkKeyPressed(KeyEvent e) {\r\n if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {\r\n cerrarVentana(false);\r\n } else if (UtilityPtoVenta.verificaVK_F11(e)) {\r\n aceptaCantidadIngresada(\"VK_F11\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n \r\n \r\n } else if (UtilityPtoVenta.verificaVK_F12(e)) {\r\n if (vIndTieneSug) {\r\n aceptaCantidadIngresada(\"VK_F12\");\r\n //DVELIZ\r\n //cerrarVentana(true);\r\n }\r\n }\r\n }", "public void Pedircarnet() {\n\t\tSystem.out.println(\"solicitar carnet para verificar si es cliente de ese consultorio\");\r\n\t}", "public void verificaCambioEstado(int op) {\r\n try {\r\n if (Seg.getCodAvaluo() == 0) {\r\n mbTodero.setMens(\"Seleccione un numero de Radicacion\");\r\n mbTodero.warn();\r\n } else {\r\n mBRadicacion.Radi.setCodAvaluo(Seg.getCodAvaluo());\r\n if (op == 1) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DlgEstAvaluo').show()\");\r\n } else if (op == 2) {\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').show()\");\r\n }\r\n\r\n }\r\n } catch (Exception e) {\r\n mbTodero.setMens(\"Error en el metodo '\" + this.getClass() + \".verificaCambioEstado()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n\r\n }", "private void verificaUnicitaAccertamento() {\n\t\t\n\t\t//chiamo il servizio ricerca accertamento per chiave\n\t\tRicercaAccertamentoPerChiave request = model.creaRequestRicercaAccertamento();\n\t\tRicercaAccertamentoPerChiaveResponse response = movimentoGestioneService.ricercaAccertamentoPerChiave(request);\n\t\tlogServiceResponse(response);\n\t\t// Controllo gli errori\n\t\tif(response.hasErrori()) {\n\t\t\t//si sono verificati degli errori: esco.\n\t\t\taddErrori(response);\n\t\t} else {\n\t\t\t//non si sono verificatui errori, ma devo comunque controllare di aver trovato un accertamento su db\n\t\t\tcheckCondition(response.getAccertamento() != null, ErroreCore.ENTITA_NON_TROVATA.getErrore(\"Movimento Anno e numero\", \"L'impegno indicato\"));\n\t\t\tmodel.setAccertamento(response.getAccertamento());\n\t\t}\n\t}", "public void comer(){\r\n\t\tSystem.out.println(\"He comido\");\r\n\t}", "private static void askForContinue() {\n\t\t\t\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n setOnVacationOk(atc, guiD, sm);\n }", "@Override\n\tpublic void concentrarse() {\n\t\tSystem.out.println(\"Se centra en sacar lo mejor del Equipo\");\n\t\t\n\t}", "private void inizia() throws Exception {\n this.setMessaggio(\"Addebiti in corso\");\n this.setBreakAbilitato(true);\n }", "@When(\"je verifie le montant des frais de port et clique sur suivant\")\n\tpublic void je_verifie_le_montant_des_frais_de_port_et_clique_sur_suivant() {\n\t throw new PendingException();\n\t}", "private void doExcluir() {\n ClearMsgsEvent.fire(this);\n if (Window.confirm(\"Tem certeza que deseja excluir o contato \" + contato.getNome() + \"?\")) {\n dispatcher\n .execute(new ExcluirContatoAction(contato), new AsyncCallback<ExcluirContatoResult>() {\n @Override\n public void onFailure(Throwable caught) {\n ShowMsgEvent\n .fire(CadastroContatoPresenter.this, \"Erro: \" + caught.getLocalizedMessage(),\n AlertType.ERROR);\n }\n\n @Override\n public void onSuccess(ExcluirContatoResult result) {\n if (result.isOk()) {\n doNovo();\n AtualizarListaDeContatosEvent.fire(CadastroContatoPresenter.this);\n }\n for (String msg : result.getMensagens()) {\n ShowMsgEvent.fire(CadastroContatoPresenter.this, msg,\n result.isOk() ? AlertType.SUCCESS : AlertType.ERROR);\n }\n }\n });\n }\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tJOptionPane.showConfirmDialog(null, \"BOTAO CLICADO\", \"VALOR\", JOptionPane.PLAIN_MESSAGE);\n\n\t\t}", "public void verificaJogo(){\n\t\t\t\tif(jogo.verificaPerdeu()) {\n\t \t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce Perdeu!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t\tif(jogo.verificaGanhou()) {\n\t\t\t\t\tJOptionPane dialogo = new JOptionPane();\n\t \t\t\n\t \t\tint opcao = dialogo.showConfirmDialog(this, \"Voce GANHOOOOO!!\\nDeseja jogar novamente?\", \"mensagem\", JOptionPane.YES_NO_OPTION);\n\t \t\t\n\t \t\tif(opcao == JOptionPane.YES_OPTION) {\n\t \t\t\tMatriz novamente = new Matriz();\n\t \t\t}\n\t \t\tsetVisible(false);\n\t \t\tdispose();\n\t \t}\n\t\t\t\t\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}", "public abstract void actualiserLettre(char lettre, boolean valide, String message) throws RemoteException;", "public boolean attivaPulsanteProsegui(){\n\t\tif(!model.isSonoInAggiornamentoIncasso()){\n\t\t\tif(null!=model.getGestioneOrdinativoStep1Model().getOrdinativo() && model.getGestioneOrdinativoStep1Model().getOrdinativo().isFlagCopertura() && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso()!= null && model.getGestioneOrdinativoStep2Model().getListaSubOrdinativiIncasso().size()>0){\n\t\t\t return true;\t\n\t\t\t}else{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t\t\n\t}", "public void actionPerformed(ActionEvent e) {\r\n\t\tif (verifier()){\r\n\t\t\tvue.ajouterJoueur();\r\n\t\t\tJOptionPane.showMessageDialog(vue,\"Joueur ajouté !\");\r\n\t\t}\r\n\r\n\t}", "public boolean voikoSulkea() {\n handleTallenna();\n return true;\n }", "@Override\n\tpublic void coba() {\n\t\t\n\t}", "public void activarAceptar() {\n aceptar = false;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tgetControleur(). saisirExemplaire() ;}", "public void verVerConvocatorias()\r\n\t{\r\n\t\tactualizarFinalizacionConvocatorias();\r\n\t\tverconvocatorias = new VerConvocatorias(this);\r\n\t\tverconvocatorias.setVisible(true);\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"<html><center><u><strong>Edité par :</strong></u><br>RAHMANI ABD EL KADER<br>SEIF EL ISLEM<br> Groupe 1 Section 1</center></html>\", \"A propros\", JOptionPane.INFORMATION_MESSAGE);\r\n\t\t\t}", "public void comprar(){\r\n\t\tSystem.out.println(\"He comprado...\");\r\n\t}", "public void aceptarAction (ActionEvent event){\r\n cadena+=hilera.getText();\r\n escribirHilera.setText(cadena);\r\n hilera.setText(\"\");\r\n hilera.setVisible(false);\r\n aceptar.setDisable(true);\r\n hileraNula.setDisable(false);\r\n hileraNoNula.setDisable(false);\r\n concatenar.setDisable(false);\r\n union.setDisable(false);\r\n abreParentesis.setDisable(true);\r\n finSecuencia.setDisable(true);\r\n if(contadorParentesis>0){\r\n cierraParentesis.setDisable(false);\r\n }\r\n }", "@Override\n\t\t\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t\t\tMessagebox.Button button = (Messagebox.Button) event.getData();\n\t\t\t\t\t\tif (button == Messagebox.Button.YES) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n\t\t//\t\t\t\tEL METODO DICE ACTUTALIZARPERSONA\n\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n\t\t\t\t\t\tnotifyChange(\"analistas\");\n\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t\t\tif (sTransaccion.validarAnalistaEnRequerimientos(analista)){\n//\t\t\t\t\t\t\t\t\t\t\tanalista.setiEstatus(EstatusPersonaFactory.getEstatusInactivo());\n//\t\t\t\t\t\t\t\t\t\t\t//EL METODO DICE ACTUTALIZARPERSONA\n//\t\t\t\t\t\t\t\t\t\t\tsMaestros.acutalizarPersona(analista);\n//\t\t\t\t\t\t\t\t\t\t\tcambiarAnalistas(0, null, null);\n//\t\t\t\t\t\t\t\t\t\t\tnotifyChange(\"analistas\");\n//\t\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t\t\telse\n//\t\t\t\t\t\t\t\t\t\t\tmostrarMensaje(\"Informacion\", \"No se Puede eliminar el analista, esta asignado a un requerimiento que esta activo\", Messagebox.EXCLAMATION, null, null, null);\n//\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void carroRemovido(){\n System.out.println(\"Su carro fue removido exitosamente\");\n }", "public static void poder(){\n System.out.print(\"\\033[H\\033[2J\");//limpia pantalla\n System.out.flush();\n if(experiencia>=100){ //condicion de aumento de nivel\n nivel=nivel+1;\n System.out.println(\"Aumento de nivel exitoso\");\n }\n else{\n System.out.println(\"carece de experiencia para subir su nivel\");\n }\n }", "public void verificaReCarregarArquivo() throws ACBrException {\n int ret = ACBrAACInterop.INSTANCE.AAC_VerificaReCarregarArquivo(getHandle());\n checkResult(ret);\n }", "@Override\n\tpublic void HowtoEat() {\n\t\tSystem.out.println(\"Fırında Ye!!\");\n\t}", "@Override\n\t\tpublic void done() {\n\t\t\tToolkit.getDefaultToolkit().beep();\n\t\t\t//JOptionPane.showMessageDialog(panel,\n\t\t\t//\t\t\"Rotina concluída com sucesso\",\n\t\t\t//\t\t\"Atualização de Grupos de Documentos\", JOptionPane.OK_OPTION);\n\t\t\tjButtonConsulta.setEnabled(true);\n\t\t\tjButtonFechar.setEnabled(true);\n\t\t\tsetCursor(null); //turn off the wait cursor\n\n\t\t}", "public void fechar() {\n\t\tif(this.isOpen == true) {\n\t\t\tthis.isOpen = false;\n\t\t} else {\n\t\t\tSystem.out.println(\"Mateus, você é burro! A porta já está fechada!\");\n\t\t}\n\t}", "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 }", "public void verVacanteExclusivo(String convocatoriaselecconada, Candidato actualcandidat)\r\n\t{\r\n\t\texclusivo = new VacanteExclusivo(this, convocatoriaselecconada, actualcandidat);\r\n\t\texclusivo.setVisible(true);\r\n\t}", "protected boolean onExecute(String command, long hconv)\n {\n return onExecute(command);\n }", "@Given(\"En tant qu utilisateur je souhaite acceder au bon de commande afin de valider ma commande\")\n\tpublic void en_tant_qu_utilisateur_je_souhaite_acceder_au_bon_de_commande_afin_de_valider_ma_commande() {\n\t throw new PendingException();\n\t}", "@Override\n\t\t\t\t\t\tpublic void onInvateComplet() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "private void mIesireActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mIesireActionPerformed\n int response = JOptionPane.showConfirmDialog(this, \"Doriti sa parasiti aplicatia?\", \"Confirmare\", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);\n if (response == JOptionPane.YES_OPTION) {\n System.exit(0);\n }\n }", "public boolean Vacia (){\n return cima==-1;\n \n }", "private void verificarMuerte() {\n if(vidas==0){\n if(estadoJuego==EstadoJuego.JUGANDO){\n estadoJuego=EstadoJuego.PIERDE;\n //Crear escena Pausa\n if(escenaMuerte==null){\n escenaMuerte=new EscenaMuerte(vistaHUD,batch);\n }\n Gdx.input.setInputProcessor(escenaMuerte);\n efectoGameOver.play();\n if(music){\n musicaFondo.pause();\n }\n }\n guardarPuntos();\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n JOptionPane.showConfirmDialog(OverCounterForm.this, \"Check this\");\n }", "void berechneFlaeche() {\n\t}", "private void setStatusTelaExibir () {\n setStatusTelaExibir(-1);\n }", "public void esperarRecogidaIngrediente(){\n enter();\n if ( ingredienteact != -1 )\n estanquero.await();\n leave();\n }", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "private void fncConversacionPendienteSessionActiva() {\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == true && \r\n Storage.fncStorageEncontrarUnaLinea(perfil.stgChats, yoker) == true\r\n ){\r\n\r\n // Agrego un nuevo mensaje a la conversion original\r\n // por que si perfil me tiene como amigo pudo estar enviado mesajes... (Entonces es el más actualizado)\r\n String chat_original = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat_original, mensaje);\r\n\r\n // Registrar a perfil en mi cuenta o session_activa\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n\r\n // Regitrar a perfil en mi cuenta o session_activa (Este no es necesario)\r\n // Storage.fncStorageActualizarUnaLinea(session_activa.stgChats, perfil);\r\n\r\n // Clonar la conversion de perfil a session_activa (Entonces es el más actualizado)\r\n String chat_clone = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat_original), chat_clone);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Tienes una conversación pendiente con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n }else{ \r\n\r\n // Agrego un nuevo mensaje en la conversación de session_activa\r\n String chat = Storage.fncStorageCrearRutaChats(session_activa.getStrEmail(), perfil.getStrEmail());\r\n Storage.fncStorageAcoplarUnaLinea(chat, mensaje);\r\n\r\n // Clonar la conversion de session_activa a perfil \r\n String chat_clone = Storage.fncStorageCrearRutaChats(perfil.getStrEmail(), session_activa.getStrEmail());\r\n Storage.fncStorageCopiarArchivo(new File(chat), chat_clone);\r\n\r\n // * Verificar que los puedan conversar entre ellos ....\r\n if( Storage.fncStorageEncontrarUnaLinea(perfil.stgFriends, yoker) == false && \r\n Storage.fncStorageEncontrarUnaLinea(session_activa.stgFriends, perfil_seleccionado) == false\r\n ){\r\n\r\n Storage.fncStorageActualizarUnaLinea(perfil.stgFriends, yoker);\r\n Storage.fncStorageActualizarUnaLinea(session_activa.stgFriends, perfil_seleccionado);\r\n \r\n if( this.mostrar_msg )\r\n JOptionPane.showMessageDialog(null, \"Haz recuperado la conversación con \"\r\n + \"\\n\\t\\t\\t\\t\" + perfil.getStrEmail()\r\n + \"\\nPuedes chatear pueden conservar en usuario en las lista de amigos.\");\r\n\r\n }else JOptionPane.showMessageDialog(null, \"Mensaje enviado.\"); \r\n } \r\n }" ]
[ "0.66837555", "0.6477415", "0.6448136", "0.6411272", "0.6408165", "0.63731694", "0.6361287", "0.6344769", "0.62514806", "0.61700004", "0.61267716", "0.6101484", "0.6096743", "0.6061287", "0.6050747", "0.6048617", "0.5995583", "0.59820646", "0.5981364", "0.5963272", "0.59611887", "0.5956706", "0.5951158", "0.59182614", "0.5917061", "0.5897882", "0.5896996", "0.5890034", "0.5881264", "0.5879937", "0.58742285", "0.5858857", "0.58506393", "0.5832496", "0.58298326", "0.58268213", "0.5824474", "0.5819381", "0.58132", "0.58077276", "0.58070016", "0.58029425", "0.5779494", "0.57650566", "0.57549804", "0.57440364", "0.5730446", "0.5717678", "0.5711496", "0.5711067", "0.5710742", "0.5700839", "0.5699209", "0.56980056", "0.5694139", "0.5690669", "0.5679267", "0.5675257", "0.56719005", "0.5670012", "0.56695807", "0.56642246", "0.5662811", "0.5660454", "0.5657367", "0.56565994", "0.56565213", "0.5652058", "0.56386334", "0.5628531", "0.56238234", "0.5597341", "0.55937535", "0.5587976", "0.5587559", "0.5582537", "0.5577228", "0.55687517", "0.55593693", "0.555668", "0.5549564", "0.5549163", "0.554731", "0.5543493", "0.55420065", "0.55405486", "0.5537042", "0.5531309", "0.5527523", "0.55257004", "0.5525614", "0.5525388", "0.5525308", "0.5524486", "0.5522341", "0.5518704", "0.55171454", "0.5516491", "0.5514292", "0.5497793", "0.54936767" ]
0.0
-1
Chiamato quando arriva un messaggio
@Override public void messageReceived(IoSession session, Object message) throws Exception { Packet pacchetto = null; try { pacchetto = (Packet) message; } catch (Exception ex) { System.out.println("EXCEPTION Pacchetto non riconosciuto"); } /* OPERAZIONE LIBERA */ if (pacchetto instanceof RegistrationCVRequest) { RegistrationCVRequest req = (RegistrationCVRequest) pacchetto; try { session.write(new RegistrationCVResponse(db.insertCV(req.getCv()))); } catch (Exception ex) { session.write(new RegistrationCVResponse(false)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof RegistrationVaccinatedRequest) { RegistrationVaccinatedRequest req = (RegistrationVaccinatedRequest) pacchetto; Vaccinazione v = req.getVaccinazione(); String codVaccinazione; try { codVaccinazione = db.insertVaccination(v); } catch (Exception ex) { codVaccinazione = null; } RegistrationVaccinatedResponse response; if (codVaccinazione == null) { response = new RegistrationVaccinatedResponse(false, null); session.write(response); } else { response = new RegistrationVaccinatedResponse(true, Prettier.makeReadable(codVaccinazione)); session.write(response); //Invio mail di conferma String email = req.getVaccinazione().getVaccinato().getEmail(); if (email != null && !email.equals("")) MailHelper.sendEmail(email, "ID VACCINAZIONE PER " + v.getVaccinato().getCodiceFiscale(), "ID VACCINAZIONE: " + Prettier.makeReadable(codVaccinazione)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof UserRegistrationRequest) { UserRegistrationRequest req = (UserRegistrationRequest) pacchetto; UserRegistrationResponse response; try { boolean esito = db.registerUser(req.getVaccinato(), Prettier.normalizeKey(req.getKey())); if (esito) setClientAuthenticated(session, req.getVaccinato().getCodiceFiscale()); response = new UserRegistrationResponse(esito); } catch (Exception ex) { response = new UserRegistrationResponse(false); } session.write(response); return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof UserLoginRequest) { UserLoginRequest req = (UserLoginRequest) pacchetto; try { Vaccinato v = db.login(req.getUsername(), req.getPassword()); if (v != null) { session.write(new UserLoginResponse(true, v)); setClientAuthenticated(session, v.getCodiceFiscale()); } else session.write(new UserLoginResponse(false)); } catch (Exception ex) { session.write(new UserLoginResponse(false)); } return; } /* OPERAZIONE VINCOLATA A LOGIN */ if (pacchetto instanceof RegistrationEVRequest) { if (!isClientAuthenticated(session)) { session.write(new RegistrationEVResponse(false)); return; } RegistrationEVRequest req = (RegistrationEVRequest) pacchetto; RegistrationEVResponse response; try { boolean esito = db.insertEvent(req.getEventoAvverso(), getAuthVaccinated(session)); response = new RegistrationEVResponse(esito); } catch (Exception ex) { response = new RegistrationEVResponse(false); } session.write(response); return; } if(pacchetto instanceof UserDisconnectRequest){ session.write(new UserDisconnectResponse(resetClientAuthenticated(session))); return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetCVByNameRequest) { GetCVByNameRequest req = (GetCVByNameRequest) pacchetto; List<CentroVaccinale> list = null; boolean esito = false; try { list = db.getCV(req.getNome()); esito = true; } catch (Exception ignored) { } finally { session.write(new GetCVResponse(esito, list)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetCVByMunicipalityTypologyRequest) { GetCVByMunicipalityTypologyRequest req = (GetCVByMunicipalityTypologyRequest) pacchetto; List<CentroVaccinale> list = null; boolean esito = false; try { list = db.getCV(req.getMunicipality(), req.getTypology()); esito = true; } catch (Exception ignored) { } finally { session.write(new GetCVResponse(esito, list)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetAllCVRequest) { GetAllCVRequest req = (GetAllCVRequest) pacchetto; List<CentroVaccinale> list = null; boolean esito = false; try { list = db.getCV(); esito = true; } catch (Exception ignored) { } finally { session.write(new GetCVResponse(esito, list)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetVaccinationByKeyRequest) { GetVaccinationByKeyRequest req = (GetVaccinationByKeyRequest) pacchetto; try { Vaccinazione vaccinazione = db.getVaccinationById(Prettier.normalizeKey(req.getKey())); if (vaccinazione != null) session.write(new GetVaccinationByKeyResponse(true, vaccinazione)); else session.write(new GetVaccinationByKeyResponse(false, null)); } catch (Exception sqlexcp) { session.write(new GetVaccinationByKeyResponse(false, null)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetVaccinesRequest) { try { session.write(new GetVaccinesResponse(true, db.getVaccines())); } catch (Exception excp) { session.write(new GetVaccinesResponse(false, null)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetEVTypologiesRequest) { try { session.write(new GetEvTypologiesResponse(true, db.getEventTypes())); } catch (Exception excp) { session.write(new GetEvTypologiesResponse(false, null)); } return; } /* OPERAZIONE LIBERA */ if (pacchetto instanceof GetReportRequest) { GetReportRequest req = (GetReportRequest) pacchetto; try { session.write(new GetReportResponse(true, db.generateReport(req.getCv()))); } catch (Exception excp) { session.write(new GetReportResponse(false, null)); } } /* OPERAZIONE LIBERA */ if (pacchetto instanceof CheckUserIdRequest) { try { session.write(new CheckUserIdResponse(db.checkUserIdExists(((CheckUserIdRequest) pacchetto).getUserId()))); } catch (Exception excp) { session.write(new CheckUserIdResponse(false)); } } /* OPERAZIONE LIBERA */ if (pacchetto instanceof CheckEmailRequest) { try { session.write(new CheckEmailResponse(db.checkEmailExists(((CheckEmailRequest) pacchetto).getEmail()))); } catch (Exception excp) { session.write(new CheckEmailResponse(false)); } } /* OPERAZIONE LIBERA */ if (pacchetto instanceof CheckVaccinatedCVRequest) { CentroVaccinale cv = ((CheckVaccinatedCVRequest) pacchetto).getCentroVaccinale(); try { Vaccinazione vaccinazione = db.getLastVaccination(getAuthVaccinated(session)); session.write(new CheckVaccinatedCVResponse(cv.equals(vaccinazione.getCentroVaccinale()))); } catch (Exception ex) { session.write(new CheckVaccinatedCVResponse(false)); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void stampaMessaggio(String messaggio);", "public void afficherMessage();", "@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = server.getChannel(conf.getChannelName()); \n //Crear el missatge per a donar la benvinguda al usuari\n IChatMessage message = new ChatMessage(user, channel,\n \"Benvingut, \" + msg.getText().substring(ChatChannel.JOIN.length() + 1));\n //Enviar el missatge\n channel.sendMessage(message);\n }\n } catch (RemoteException e) {\n \n }\n }", "private void ChatNachricht() {\n\t\t//Kein leerer Text\n\t\tif (this.chatSendenArea.getText() != null) {\n\t\t\ttry {\n\t\t\t\tserver.sendChatMessage(\"Spieler \" + this.spielerNummer + \":\"\n\t\t\t\t\t\t+ this.chatSendenArea.getText());\n\t\t\t\tthis.chatSendenArea.setText(\"\");\n\t\t\t} catch (RemoteException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void receberMensagem(String msg);", "@Override\n public void actionPerformed(ActionEvent e) {\n fenetre.getClient().envoyerMessage(getMessage(), optionEnvoi); // Envoie du message\n saisieMessage.setText(\"\"); // On supprime le texte de la saisie message\n }", "@Override\n public void onMessage(String channel, String message) {\n String result[] = new String[3];\n result = jsonToString.recorrer(message, result);\n System.out.println(result[0]);\n System.out.println(result[1]);\n System.out.println(result[2]);\n nn = new NanozNotificacion(result[1], result[0]);\n nn.setVisible(true);\n //estado = JOptionPane.showConfirmDialog(null, result[0]);\n //notificacionCiclada(result, estado);\n }", "@Override\n\tpublic void enteradoCambioMensaje(EventObject event) {\n\t\tList<MensajeWhatsApp> newMsgs = ((MensajeEvent) event).getNewMensajes();\n\t\tList<MensajeWhatsApp> oldMsgs = ((MensajeEvent) event).getOldMensajes();\n\t\t// Makes no sense to identify the contact as the person's actual name!\n\t\tif (!newMsgs.equals(oldMsgs)) {\n\t\t\tOptional<MensajeWhatsApp> WAmsg = newMsgs.stream()\n\t\t\t\t\t.filter(msg -> !msg.getAutor().equals(currentUser.getName())).findFirst();\n\t\t\tif (WAmsg != null) {\n\t\t\t\tString contactName = WAmsg.get().getAutor();\n\t\t\t\tOptional<Contacto> contact = currentUser.getContacts().stream()\n\t\t\t\t\t\t.filter(c -> c.getName().equals(contactName)).findFirst();\n\t\t\t\tif (contact.isPresent()) {\n\t\t\t\t\tnewMsgs.stream().forEach(msg -> {\n\t\t\t\t\t\tint speakerId = 0;\n\t\t\t\t\t\tif (msg.getAutor().equals(currentUser.getName()))\n\t\t\t\t\t\t\tspeakerId = currentUser.getId();\n\t\t\t\t\t\telse if (msg.getAutor().equals(contactName))\n\t\t\t\t\t\t\tspeakerId = contact.get().getId();\n\t\t\t\t\t\tif (speakerId != 0) {\n\t\t\t\t\t\t\taddMessage(msg.getTexto(), 0, contact.get());\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}", "private void enviarMensaje(String mensaje) {\n if (!TextUtils.isEmpty(mensaje)) {\n // Se obtiene la hora actual.\n String hora = formateadorFechas.format(new Date());\n // Se agrega el mensaje.\n lblTexto.append(getString(R.string.mensaje_hora, hora, mensaje));\n // Se limpia el cuadro de texto.\n txtMensaje.setText(\"\");\n // Se mueve el scroll al final para ver el último mensaje.\n hacerScroll(scvTexto, View.FOCUS_DOWN);\n }\n }", "@Override\n\tpublic void onMessage(Message m) {\n\t\t\t\ttry {\n\n\t\t\t\t\tTextMessage ms = (TextMessage) m;\n\n\t\t\t\t\tString linea = ms.getText();\n\n\t\t\t\t\tString args[] = linea.split(\" - \");\n\n\t\t\t\t\tif (args[0].equals(\"consulta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\t\t\t\t\t\tif (args[1].equals(\"1\")) {\t\t\t\t\t\n\t\t\t\t\t\t\t//registrarPedido(args[2], args[3], args[4], args[5]);\n\t\t\t\t\t\t}else if (args[1].equals(\"2\")) {\n\t\t\t\t\t\t\t//cambiarEstado(args[2], args[3]);\n\t\t\t\t\t\t}else if (args[1].equals(\"3\")) {\n\t\t\t\t\t\t\t//ArrayList<String> ejecuciones = consultarEjecucionDeEtapas(args[2], args[3], args[4]);\n\t\t\t\t\t\t\t//responderConEjecucionesDeEtapas(ejecuciones);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if (args[0].equals(\"respuesta2\")) {\n\t\t\t\t\t\t// Ver envios del usuario\n\n\t\t\t\t\t\tif ( args[1].equals(\"1\") || args[1].equals(\"2\") ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}else if( args[1].equals(\"3\") ){\n\t\t\t\t\t\t\tString[] data = linea.substring( 16, ( linea.length() - 1 ) ).split(\"-\");\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> ejec = new ArrayList<String>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor (int i = 0; i < data.length; i++) {\n\t\t\t\t\t\t\t\tString data0 = data[i];\n\t\t\t\t\t\t\t\tejec.add(data0);\n\t\t\t\t\t\t\t\t\n//\t\t\t\t\t\t\t\t//Numero del Pedido\n//\t\t\t\t\t\t\t\tString numPedido = data0[0];\n//\t\t\t\t\t\t\t\t//Codigo de la EstaciÛn\n//\t\t\t\t\t\t\t\tString codEstacion = data0[1];\n//\t\t\t\t\t\t\t\t//Numero de ejecuciones\n//\t\t\t\t\t\t\t\tString numEjecuciones = data0[2];\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} catch (Exception e) {\n\n\t\t\t\t}\n\t\t\t}", "void prosegui(String messaggio);", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void sendMessage() {\n String userMessage = textMessage.getText();\n if (!userMessage.isBlank()) {//проверяю а есть ли что то в текстовом поле\n textMessage.clear();//очищаю текстовое поле на форме\n\n //пока оставлю\n //sb.append(userMessage).append(\"\\n\");\n\n //в общее поле добавляю сообщение\n areaMessage.appendText(userMessage+\"\\n\");\n }\n\n }", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "@Override\n public void escreverMensagem(String mensagem) {\n chat.appendText(mensagem);\n }", "private void sendMessage(String content, String room) {\n }", "@Override\n public void recibirMensaje(Mensaje mensaje) {\n mensajes.append(mensaje);\n }", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "public void onRecieve(RoundTimeMessage message) {\n\n\n }", "private void receberMensagem() throws Exception {\n\t\ttry {\n\t\t\tbyte[] buffer = new byte[1000];\n\t\t\tMessage mensagem;\n\t\t\tDatagramPacket messageIn = new DatagramPacket(buffer, buffer.length);\n\n\t\t\tthis.socket.receive(messageIn);\n\n\t\t\tmensagem = Message.fromBytes(buffer);\n\n\t\t\tSystem.out.println(mensagem.toString());\n\n\t\t\tif (!mensagem.getRemetente().equals(this.identificador)) {\n\t\t\t\tbyte[] chavePublicaRemetenteBytes = this.listaChavesPublicas.get(mensagem.getRemetente());\n\n\t\t\t\tif (mensagem.getTipoMensagem().equals(EnumMessageType.ENTRADA)\n\t\t\t\t\t\t|| mensagem.getTipoMensagem().equals(EnumMessageType.RESPOSTA_ENTRADA)) {\n\t\t\t\t\tchavePublicaRemetenteBytes = mensagem.getChavePublica();\n\t\t\t\t}\n\n\t\t\t\tmensagem.validar(chavePublicaRemetenteBytes);\n\n\t\t\t\tthis.tratarMensagem(mensagem);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new Exception(\"Erro ao receber mensagem\");\n\t\t}\n\t}", "@Override\n public void handleMessage(Message m)\n {\n String content = m.getContent();\n if (content.isEmpty())\n {\n content = \"N/A\";\n }\n\n JOptionPane.showMessageDialog(null, \"From: \" + m.getFrom() + \"\\n\"\n + \"To: \" + m.getTo() + \"\\n\"\n + \"Content: \" + content + \"\\n\"\n + \"Type: \" + m.getType().toString(),\n \"Message Notification\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public void enviarRequisicaoAtualizarChat(String mensagem) {\n servidor.enviarMensagem(nomeJogador, mensagem);\n }", "@Override\n\tpublic void onSendChatDone(byte arg0) {\n\t\t\n\t}", "public void enviarMensagem(String mensagem) {\n //Painel.COMPUTADOR_TRANSMISSOR.limparTextoCamadas();//Limpando texto do Computador Transmissor\n //Painel.COMPUTADOR_RECEPTOR.limparTextoCamadas();//Limpando texto do Computador Receptor\n\n //Painel.COMPUTADOR_TRANSMISSOR.limparTela();//Limpando texto da Tela\n //Painel.COMPUTADOR_RECEPTOR.limparTela();//Limpando texto da Tela\n\n //this.id_temporizador = 1;\n //this.idQuadroEsperado = 1;\n //MeioDeComunicacao.inicarTransmissao();\n\n adicionarMensagem(\"Msg Enviada: \" + mensagem);//Adiciona a mensagem enviada no Computador Transmissor\n\n aplicacaoTransmissora.aplicacaoTransmissora(mensagem);//Enviando a mensagem para aplicacao transmissora\n }", "private void remplirTabNewMess(){\n\t\tCalendar date = Calendar.getInstance();\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\n\n\t\tString passage[]= new String[7];\n\n\t\tpassage[0]=tab[2]; //sender\n\t\tpassage[1]=tab[1]; //recep\n\t\tpassage[2]=tab[4]; //obj\n\t\tpassage[3]=tab[3]; //txt\n\t\tpassage[4]=\"0\"; //importance\n\t\tpassage[5]=sdf.format(date.getTime()); //date\n\t\tpassage[6]=\"1\"; //non lu\n\n\t\tmessages.add((String[])passage);\n\t\tthis.send(messages);\n\t\tmessagerie.Server.con.closeSocket();\n\n\t}", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public synchronized void mensajeRecibido(int tipo, Serializable mensaje) {\n\n System.out.println(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n log.info(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n /*Tipos de mensajes:\n * 1- Mensaje de Chat\n * 2- Mensaje de Jugada o Informacion de Salas y mesas\n * 3- Mensaje de Entrada en mesa\n * 4- Mensaje de Salida de Mesa\n * 5- Cierre de conexión\n * 6- Mensaje de Entrada en Sala\n * 7- Mensaje de Salida de Sala\n *\n */\n if (tipo == TipoMensaje.MENSAJE_CHAT) {\n MensajeChat mensajeChat = ((MensajeChat) mensaje);\n System.out.println(\"server \" + mensajeChat.get_usuario());\n GestorChatServidor.getInstance(this).dejamensaje(mensajeChat);\n\n } else if (tipo == TipoMensaje.MENSAJE_JUGADA) {\n MensajeJugada mensajeJugada = ((MensajeJugada) mensaje);\n GestorJuegosServidor.getInstance(this).dejamensaje(mensajeJugada);\n //TODO Devolver la confirmacion de la jugada\n\n } else if (tipo == TipoMensaje.ENTRADA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n if (GestorUsuarios.getInstancia(this).insertarJugadorEnMesa(m.getUsuario(), m.getMesa())) //Envio mensaje de confimacion de la entrada en la mesa\n {\n enviarMensajeMesa(m.getUsuario(), m);//necesito saber en qué mesa se ha insertado el cliente. Quito null y envio mensaje de vuelta\n } else {\n enviarMensajeMesa(m.getUsuario(), m);//TODO mirar porque devuelve false\n }\n } else if (tipo == TipoMensaje.SALIDA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnMesa(m.getUsuario());\n\n } else if (tipo == TipoMensaje.CERRAR_CONEXION) {\n //TODO cierre de conexion\n } else if (tipo == TipoMensaje.ENTRADA_SALA) {\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).insertarJugadorEnSala(m.getUsuario(), m.getSala());\n\n //envío mensaje de vuelta para confirmarle al usuario que ha entrado en la sala\n enviarMensajeSala(m.getUsuario(), m);\n\n //envío la info de todas las mesas de la sala.\n enviarMesasDeUnaSala(m.getUsuario(), m.getSala());\n\n } else if (tipo == TipoMensaje.SALIDA_SALA) {\n\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnSala(m.getUsuario());\n }\n\n\n\n }", "public void sendMessage()\r\n {\r\n MessageScreen messageScreen = new MessageScreen(_lastMessageSent);\r\n pushScreen(messageScreen);\r\n }", "public void tratarMensagemRecebida(String msg){\n String comando = msg.substring(0, 8); //Extrai o comando \n String payLoad = msg.replaceFirst(comando, \"\");\n String campo[];\n\n // Trata a mensagem conforme o protocolo\n switch (comando){\n\n case Protocolo.CHAT_MSG:\n String data;\n data = usuarioBySocket(usuarioVector, cliente).getNome() + \" enviou: \" + payLoad;\n enviarMensagemParaTodosChat(Protocolo.CHAT_MSG, data);\n break;\n\n case Protocolo.CHAT_SAI: \n enviarMensagemParaUmUsuario(Protocolo.CHAT_SAI, \"\");\n String notificacao = usuarioBySocket(usuarioVector, cliente).getNome() + \" acabou de sair.\";\n enviarMensagemParaTodosChat(Protocolo.CHAT_NOT, notificacao);\n enviarMensagemParaTodosChat(Protocolo.CHAT_REM, usuarioBySocket(usuarioVector, cliente).getNome());\n removeUsuario(usuarioVector, cliente);\n System.out.println(\"Removeu Usuario \"); \n break; \n \n case Protocolo.IMG_CQUA:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CQUA, \"\"+idImg+\":10\"+\":10\"); \n Imagem quadrado = new Imagem(idImg++, TipoFigura.QUADRADO, 10, 10);\n imagemVector.add(quadrado);\n System.out.println(\"Criar Quadrado\"); \n break;\n\n case Protocolo.IMG_CCIR:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CCIR, \"\"+idImg+\":10\"+\":10\"); \n Imagem circulo = new Imagem(idImg++, TipoFigura.CIRCULO, 10, 10);\n imagemVector.add(circulo);\n System.out.println(\"Removeu Circulo \"); \n break;\n \n case Protocolo.IMG_CTRI:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_CTRI, \"\"+idImg+\":10\"+\":10\"); \n Imagem triangulo = new Imagem(idImg++, TipoFigura.TRIANGULO, 10, 10);\n imagemVector.add(triangulo);\n System.out.println(\"Criar Triangulo \"); \n break;\n \n case Protocolo.IMG_REMO:\n enviarMensagemParaTodosEdicao(Protocolo.IMG_REMO, \"\"+payLoad);\n removeImagem(imagemVector, Integer.parseInt(payLoad));\n System.out.println(\"Removeu Figura id= \" + payLoad); \n break;\n \n case Protocolo.IMG_MOVE:\n campo = payLoad.split(\":\"); //pega id, posX e posY da figura\n atualizaPosicaoImagem(Integer.parseInt(campo[0]), Integer.parseInt(campo[1]), Integer.parseInt(campo[2]));\n enviarMensagemParaTodosEdicao(Protocolo.IMG_MOVE, payLoad); \n System.out.println(\"Mover figura\");\n break;\n \n case Protocolo.PNL_MOVP:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVP, payLoad);\n System.out.println(\"Movendo Mouse\");\n break;\n \n case Protocolo.PNL_MOVF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_MOVF, payLoad);\n System.out.println(\"Movendo Mouse na figura\");\n break;\n\n case Protocolo.PNL_DRGF:\n campo = payLoad.split(\":\");\n payLoad = usuarioBySocket(usuarioVector, cliente).getNome()+\":\"+campo[0]+\":\"+campo[1];\n enviarMensagemParaTodosEdicao(Protocolo.PNL_DRGF, payLoad);\n System.out.println(\"Movendo Mouse na figura Drag\");\n break;\n \n default:\n System.out.println(\"Case Default - MSG Recebida: \" + comando);\n }\n }", "@Override\r\n\t\t\tpublic void onChat(String message) {\n\r\n\t\t\t}", "public void processMessage(Chat chat, Message message)\n {\n }", "private void sendCustomMessage(String message, String alli) {\n String frontA = \"V\" + alli;\n String gobbleDeGuck = \"<ID 0><CLR><WIN 0 0 287 31><POS 0 0><SL><S S><BL N><CS 3><GRN><T>\";\n String mid = message;\n String ender = \"</T>\";\n String sendableMsgString = frontA + gobbleDeGuck + mid + ender;\n //\n sendRawMessage(sendableMsgString);\n }", "@Override\r\n\tpublic void onMessage(Message rcvMessage) {\n\r\n\t\tObjectMessage msg = null;\r\n\t\ttry {\r\n\r\n\t\t\tLOGGER.warning(\"Inicio\");\r\n\t\t\tThread.sleep(3000);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tLOGGER.warning(\"Desapachado.\");\r\n\r\n\t}", "private void sendMessage()\n\t{\n\t\tfinal String message = messageTextArea.getText(); \n\t\tif(message.length() == 0)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\tmessageTextArea.setText(\"\");\n\t\ttry\n\t\t{\n\t\t\teventsBlockingQueue.put(new MessageEvent(message));\n\t\t}\n\t\tcatch (final InterruptedException e1)\n\t\t{\n\t\t}\n\t}", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "private void fncMensajeEnviadoMensajeTo() {\n this.perfil_seleccionado = this.perfil.getStrEmail();\r\n this.yoker = session_activa.getStrEmail();\r\n \r\n \r\n if( !Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, this.perfil.getStrEmail()+Storage.identificador_amigo1) ){\r\n // Si no somos amigos nos ponemos un *\r\n perfil_seleccionado += \"*\"; // Si perfil selecciona no es amigo mio se pone un *\r\n yoker += \"*\";\r\n }\r\n \r\n // Buscar el chat\r\n boolean db_chats = Storage.fncStorageBuscarUnaLinea(session_activa.stgChats, perfil_seleccionado);\r\n boolean db_friends = Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, perfil_seleccionado+Storage.identificador_amigo1);\r\n \r\n // * Verificar estado de amistad para perfil\r\n String amistad = Storage.fncStorageVerificarAmistad(this.session_activa.stgFriends, this.perfil.getStrEmail());\r\n \r\n // * Verificar si somos amigos\r\n if( db_friends == true && db_chats == true && amistad.equals(\"amigos\") )\r\n this.fncConversacionActiva();\r\n else if( db_friends == false && db_chats == false && amistad.equals(\"none\") ) \r\n this.fncCrearConversacion();\r\n \r\n// }else if( db_friends == true && db_chats == false ){\r\n// this.fncConversacionPendientePerfil();\r\n// \r\n// }else if( db_friends == false && db_chats == true ){\r\n// this.fncConversacionPendienteSessionActiva();\r\n// \r\n// }else if( db_friends == false && db_chats == false ){\r\n// this.fncCrearConversacion();\r\n// '\r\n// }\r\n\r\n }", "public void recibirMensajesServidor(){\n String mensaje;\n try {\n entradaDatos = new DataInputStream(socket.getInputStream());\n } catch (IOException ex) {\n mostrarMensaje(\"Error al crear el stream de entrada: \" + ex.getMessage());\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n }\n \n // Bucle infinito que recibe mensajes del servidor\n boolean conectado = true; \n while (conectado) {\n try {\n mensaje = entradaDatos.readUTF();\n mostrarMensaje(mensaje);\n } catch (IOException ex) {\n mostrarMensaje(\"Error al leer del stream de entrada: \" + ex.getMessage());\n conectado = false;\n } catch (NullPointerException ex) {\n mostrarMensaje(\"El socket no se creo correctamente. \");\n conectado = false;\n }\n }\n }", "private void ReceiveFromOther(String message){\n ChatMessage chatMessage = new ChatMessage(message, false, false);\n mAdapter.add(chatMessage);\n\n }", "@Override\r\n\t\t\t\t// here the messageReceived method is implemented\r\n\t\t\t\tpublic void messageReceived(String message) {\n\t\t\t\t\tpublishProgress(message);\r\n\t\t\t\t\t// serverMessage[0] = message;\r\n\r\n\t\t\t\t\tserverMessage[count] = message;\r\n\r\n\t\t\t\t\t// count++;\r\n\t\t\t\t\tLog.i(\"TAG\", count + \"辞獄拭辞 閤精 葵: \" + serverMessage[count]);\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * Log.i(\"TAG\", \"0腰属閤精 葵: \" + serverMessage[0]);\r\n\t\t\t\t\t * Log.i(\"TAG\", \"1腰属 閤精 葵: \" + serverMessage[1]);\r\n\t\t\t\t\t */\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "public void receberMensagem(String mensagem) {\n this.textArea.setText(textArea.getText() + mensagem);//Limpa a Tela do Computador\n this.textArea.appendText(\"\");//Descendo Scroll da tela do Computador\n }", "void onSendMessageComplete(String message);", "@RabbitListener(queues = RabbitMQConfig.QUEUE_MESSAGES)\n\tpublic void processMessage(Message message) {\n\t\t\n\t\tSet<Acao> acoes = acaoService.getAcoesByEmpresaId(message.getEmpresaId());\n \tint qtdComprada = 0;\n \t\n \tfor (Acao acao : acoes) { \t\t\n \t\tif (qtdComprada == message.getQtd())\n \t\t\tbreak;\n \t\t\n \t\tif (acao.getAVenda() == true) {\n \t\t\tacao.setAcionistaId(message.getAcionistaId());\n \t\t\tacao.setAVenda(false);\n \t\t\t\n \t\t\tacaoService.saveAcao(acao.getId(), acao);\n \t\t\tqtdComprada++;\n \t\t} \t\t\n \t}\n \t\n \t// Enviar email de confirmacao de compra\n \tAcionista acionista = acionistaService.getById(message.getAcionistaId());\n \t \t\n\t\tfinal String toEmail = acionista.getEmail();\t\t\n\t\t\n\t\tEmailConfig config = new EmailConfig();\n\t\t\n\t\tconfig.sendEmail(toEmail, \"Subject\", \"Email Body\");\n\t}", "public void sendMessage(String content, String toUser) throws IOException, BadLocationException{\r\n\t\tdataSending.sendMessage(content, toUser);\r\n\t\tuserModel.getArchive().getArchiveWriter().addNewTalk(toUser,\"Messeage sent to user\" +toUser + System.lineSeparator() + content);\r\n\t\tclientView.addNewMesseage(content, \"sent to user: \"+toUser);\r\n\t\t\r\n\t}", "private void sendMessage() {\n\t\tString text = myMessagePane.getText();\n\t\tMessage msg = new Message(text, myData.userName, myData.color);\n\n\t\tcommunicationsHandler.send(msg);\n\n\t\t// De-escape xml-specific characters\n\t\tXmlParser xmlParser = new XmlParser(myData);\n\t\tString outText = xmlParser.deEscapeXMLChars(msg.text);\n\t\tmsg.text = outText;\n\n\t\tmyMessagePane.setText(\"\");\n\t\tupdateMessageArea(msg);\n\n\t}", "void messageSent();", "@Override\r\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\r\n switch(msg.what){\r\n case baglanti:\r\n\r\n ConnectedThread connectedThread = new ConnectedThread((BluetoothSocket)msg.obj);\r\n Toast.makeText(getApplicationContext(), \"Baglandi\",Toast.LENGTH_LONG).show();\r\n String s = \"successfully connected\";\r\n break;\r\n case mesajoku:\r\n byte[] readBuf = (byte[])msg.obj;\r\n String string = new String(readBuf);\r\n Toast.makeText(getApplicationContext(), string, Toast.LENGTH_LONG).show();\r\n break;\r\n }\r\n }", "@CrossOrigin(origins = \"*\", allowedHeaders = \"*\")\n @MessageMapping(\"/send/message\")\n public void onReceivedMesage(String message){\n this.template.convertAndSend(\"/chat\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\"- \"+message);\n // this.template.convertAndSend(\"/chat2\", new SimpleDateFormat(\"HH:mm:ss\").format(new Date())+\"- \"+message);\n\n // System.err.println(\"msg from client \"+message);\n }", "@Override\r\n\tpublic void onMessage(BmobMsg message) {\n\t\trefreshNewMsg(message);\r\n\t}", "@Override\n public void action() {\n ACLMessage acl = receive();\n if (acl != null) {\n if (acl.getPerformative() == ACLMessage.REQUEST) {\n try {\n ContentElement elemento = myAgent.getContentManager().extractContent(acl);\n if (elemento instanceof PublicarServicio) {\n PublicarServicio publicar = (PublicarServicio) elemento;\n Servicio servicio = publicar.getServicio();\n jadeContainer.iniciarChat(servicio.getTipo(), servicio.getDescripcion());\n //myAgent.addBehaviour(new IniciarChatBehaviour(myAgent, servicio.getTipo(), servicio.getDescripcion()));\n } else if (elemento instanceof EnviarMensaje) {\n EnviarMensaje enviar = (EnviarMensaje) elemento;\n Mensaje mensaje = enviar.getMensaje();\n jadeContainer.enviarMensajeChatJXTA(mensaje.getRemitente(), mensaje.getMensaje());\n }\n } catch (CodecException ex) {\n System.out.println(\"CodecException: \" + ex.getMessage());\n } catch (UngroundedException ex) {\n System.out.println(\"UngroundedException: \" + ex.getMessage());\n } catch (OntologyException ex) {\n System.out.println(\"OntologyException: \" + ex.getMessage());\n }\n }\n } else {\n block();\n }\n }", "@Override\n public void action() {\n ACLMessage acl = blockingReceive();\n System.err.println(\"Hola, que gusto \" + acl.getSender() + \", yo soy \" + getAgent().getName());\n new EnviarMensaje().enviarMensajeString(ACLMessage.INFORM, \"Ag4\", getAgent(), \"Hola agente, soy \" + getAgent().getName(),\n \"COD0001\");\n }", "@Override\n public void onReceive(Context context, Intent intent) {\n srvrMessage = intent.getStringExtra(\"message\");\n if (srvrMessage != null) {\n String[] parametreler = srvrMessage.split(\"&\");\n String[] esitlik;\n final Dictionary<String, String> collection = new Hashtable<String, String>(parametreler.length);\n for (String parametre : parametreler) {\n esitlik = parametre.split(\"=\");\n if (esitlik.length == 2)\n collection.put(esitlik[0], esitlik[1]);\n }\n String gelenkomut = collection.get(\"komut\");\n\n GlobalApplication.Komutlar komut;\n\n try\n {\n komut = GlobalApplication.Komutlar.valueOf(gelenkomut);\n }\n catch (Exception ex)\n {\n komut = GlobalApplication.Komutlar.Default;\n }\n\n switch (komut)\n {\n case guncellemeyiBaslat:\n veriGuncellemeyiBaslat();\n break;\n case dosyalar:\n kacinci = Integer.parseInt(collection.get(\"kacinci\"));\n kacinci++;\n g.commonAsyncTask.client.sendMessage(\"komut=veriGonder&kacinci=\" + kacinci + \"&sadeceXML=0\");\n break;\n case aktarimTamamlandi:\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n alertDialog.show();\n SetViewGroupEnabled.setViewGroupEnabled((RelativeLayout) findViewById(R.id.settings), true);\n if(g.bitmapDictionary !=null && g.bitmapDictionary.size()>0)\n g.bitmapDictionary = null;\n }\n });\n dosyaAktarimiVarMi = false;\n break;\n case modemBilgileri:\n SharedPreferences.Editor editor = preferences.edit();\n try {\n editor.putString(\"SSID\", collection.get(\"SSID\"));\n editor.putString(\"ModemSifresi\", collection.get(\"Sifre\"));\n editor.apply();\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarılı\",\n \"Modem bilgileri kayıt edildi.\");\n alertDialog.show();\n } catch (Exception e) {\n showAlertDialog = new ShowAlertDialog();\n AlertDialog alertDialog = showAlertDialog.showAlert(context, \"Kayıt başarısız!\",\n \"Modem bilgileri kayıt edilemedi.\");\n alertDialog.show();\n }\n default:\n break;\n }\n\n\n }\n }", "@Override\n protected void onComplited(String mess) {\n super.onComplited(mess);\n showDialogDisconnect(mess);\n }", "@Override public void handleMessage(Message msg) {\n super.handleMessage(msg);\n byte[] byteArray = (byte[]) msg.obj;\n int length = msg.arg1;\n byte[] resultArray = length == -1 ? byteArray : new byte[length];\n for (int i = 0; i < byteArray.length && i < length; ++i) {\n resultArray[i] = byteArray[i];\n }\n String text = new String(resultArray, StandardCharsets.UTF_8);\n if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_WRITE) {\n Log.i(TAG, \"we just wrote... [\" + length + \"] '\" + text + \"'\");\n// mIncomingMsgs.onNext(text);\n } else if (msg.what == BluetoothTalker.MessageConstants.MESSAGE_READ) {\n Log.i(TAG, \"we just read... [\" + length + \"] '\" + text + \"'\");\n Log.i(TAG, \" >>r \" + Arrays.toString((byte[]) msg.obj));\n mIncomingMsgs.onNext(text);\n sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// mReadTxt.setText(++ri + \"] \" + text);\n// if (mServerBound && mServerService.isConnected()) {\n// mServerService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// } else if (mClientBound && mClientService.isConnected()) {\n// mClientService.sendMsg(\"I heard you : \" + Math.random() + \"!\");\n// }\n// mBluetoothStuff.mTalker.write();\n }\n }", "public void message(String from,String msg,String to);", "private void receiveMessage() {\n ParseQuery<ParseObject> refreshQuery = ParseQuery.getQuery(\"Group\");\n\n refreshQuery.getInBackground(mGroupId, new GetCallback<ParseObject>() {\n @Override\n public void done(ParseObject parseObject, ParseException e) {\n if (e == null) {\n chatMessageArray = parseObject.getList(\"groupMessageArray\");\n\n messageArrayList.clear();\n messageArrayList.addAll(chatMessageArray);\n chatListAdapter.notifyDataSetChanged();\n chatLV.invalidate();\n } else {\n System.out.println(e.getMessage());\n }\n }\n });\n }", "public void handleMessage(Message message){\r\n\r\n // Application Protocol : 100 ==> 정상\r\n if(message.what == 100){\r\n scrollView.post(new Runnable(){\r\n public void run(){\r\n scrollView.fullScroll(ScrollView.FOCUS_DOWN);\r\n }\r\n });\r\n\r\n }else if(message.what==200){\r\n System.out.println(\"핸들러에 온 메시지가 200프로토콜로 왔습니다.\");\r\n\r\n final Booking booking = (Booking)message.obj;\r\n System.out.println(\":: booking.getMovieNm() in Activity : \"+booking.getMovie().getMovieNm());\r\n\r\n RelativeLayout relativeLayout = (RelativeLayout)View.inflate(AddBookingActivity.this, R.layout.booking_layout, null );\r\n\r\n TextView selectedTitle = (TextView)findViewById(R.id.selected_title_textview);\r\n selectedTitle.setText(booking.getMovie().getMovieNm());\r\n\r\n TextView selectedTime = (TextView)findViewById(R.id.selected_time_textview);\r\n selectedTime.setText(booking.getScreenContent().getScreenOpenTime());\r\n\r\n TextView selectedCount = (TextView)findViewById(R.id.selected_count_textview);\r\n selectedCount.setText(Integer.toString(booking.getHeadCount())+\"명\");\r\n\r\n TextView selectedPrice = (TextView)findViewById(R.id.selected_price_textview);\r\n selectedPrice.setText(Integer.toString(booking.getTotalTicketPrice())+\"원\");\r\n\r\n Button button = (Button)findViewById(R.id.request_pay_button);\r\n button.setOnClickListener(new View.OnClickListener() {\r\n\r\n @Override\r\n public void onClick(View view) {\r\n Intent intent = new Intent(AddBookingActivity.this, KakaoPayActivity.class);\r\n intent.putExtra(\"booking\", booking);\r\n startActivity(intent);\r\n }\r\n });\r\n }\r\n }", "private void mostrarMensaje(final String mensajeAMostrar) {\n //mostrar el mensaje del subproceso de ejecucion despachador de eventos\n SwingUtilities.invokeLater(\n new Runnable() {//clase interna para asegurar que la giu se actualice apropiadamente\n public void run()//actualiza areaPantalla \n {\n areaPantalla.append(mensajeAMostrar);\n areaPantalla.setCaretPosition(\n areaPantalla.getText().length());\n\n }\n }//fin de la clase interna\n );//fin de la llamada a SwingUtilities.invokeLater\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\n }", "void sendMessage() {\n\n\t}", "public void sendToActivity(String message){\n //In questo metodo \"avviso\" l'app che è arrivato un nuovo dato dal raspberry.\n\n Intent intent = new Intent(\"NOTIFY_ACTIVITY\");\n\n if(message != null){\n intent.putExtra(\"CURRENT_ACTIVITY\",message);\n }\n\n //invio messaggio tramite broadcaster\n broadcast.sendBroadcast(intent);\n\n }", "private void showMessage() throws IOException {\n String msg = fromServer.readUTF();\n chatArea.append(msg + \"\\n\");\n // set the chat area always keep focus at bottom\n chatArea.setCaretPosition(chatArea.getDocument().getLength());\n }", "private void afficher_les_messages() {\n List<Message> liste_message = ticket_courant.getMessage();\n String texte = \"\";\n for(Message mess: liste_message){\n texte += mess.getExpediteur()+ \" : \"+mess.getTexte()+\"\\n\";\n }\n aff_message.setText(texte);\n /*String[] tab_messages_brut = {\"\"};\n int incr = 0;\n for (Message message : liste_message) {\n tab_messages_brut[incr] = message.getTexte();\n incr++;\n }\n /*JList<String> Liste_messages = new JList<>(tab_messages_brut);\n Conteneur_liste.removeAll();\n Conteneur_liste.add(Liste_messages);\n Liste_messages.setVisible(true);\n Conteneur_liste.updateUI();*/\n }", "protected void sendMessage(String msg) {\n message = msg; \n newMessage = true;\n }", "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "@Override\n\tpublic void procesareMesajChat(MesajChat mesaj) {\n\t\tif(mesaj.getDestinatie(). isEmpty() || mesaj.getDestinatie().equals(\"@Everyoane\")) {\n\t\t\tif(this.next!=null)\n\t\t\t\tthis.next.procesareMesajChat(mesaj);\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//procesare mesaj privat\n\t\t\tSystem.out.println(String.format(\"Mesaj privat pentru %s = %s\",\n\t\t\t\t\tmesaj.getDestinatie(), mesaj.getContinut()));\n\t\t}\n\t}", "private void receiveMessage(int index, String from, String text) {\n\t\tchathistory[index].append(\"\\n\" + from + \": \" + text);\n\n\t\t/* keep the text bar 'autoscrolling' */\n\t\tStyledTextContent doc = chathistory[index].getContent();\n\t\tint docLength = doc.getCharCount();\n\t\tif (docLength > 0) {\n\t\t\tchathistory[index].setCaretOffset(docLength);\n\t\t\tchathistory[index].showSelection();\n\t\t}\n\n\t}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "@Override\r\n\tpublic void Received(Object o, String msg) {\n\t\tif(interval == 50){\r\n\t\t\tfor(int i = 0; i < 50; i++){\r\n\t\t\t\tif(i == 0){\r\n\t\t\t\t\ttext[i] = null;\r\n\t\t\t\t}else{\r\n\t\t\t\t\ttext[i-1] = text[i];\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\ttext[interval-1] = msg;\r\n\t\t}else{\r\n\t\t\ttext[interval] = msg;\r\n\t\t\tinterval++;\r\n\t\t}\r\n\t}", "@Override\n public void onChatMessageFragmentInteraction(MessageEnum message, Object result) {\n ((MyMessage)result).setSenderId(this.user.getUserId());\n ((MyMessage)result).setReceiverId(this.receiverId);\n ((MyMessage)result).setBookId(this.selectedBook.getBookId());\n //send message to message list\n databaseHandler.sendMessageToDatabase((MyMessage)result);\n //message should come back with reference change?\n }", "public void mensajeInformacion(String mensaje){\n\t\tAlertDialog.Builder builder =\n new AlertDialog.Builder(Postre.this);\n \n builder.setMessage(mensaje)\n .setTitle(\"Información\")\n .setPositiveButton(\"Aceptar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\t\n builder.show();\n\t}", "public void receptaMensagem(MensagemParaCliente mensagem) throws IOException {\n System.out.println(\"[CLIENTE/\" + SOCKET.getLocalAddress() + \":\" +\n SOCKET.getLocalPort() + \n \"] > Recebendo mensagem [\"+mensagem+\"]\\n\");\n OUT.writeObject(mensagem);\n }", "private void enviarMensagem(String mensagem) {\n //Este for anda de acordo com o tamanho do array da mensagem\n for ( int a = 0; a < clientes.size(); a++ ) {\n //Enquanto o cliente estiver enviado ele pega a mensagem\n clientes.get(a).println(mensagem);\n clientes.get(a).flush();\n }\n }", "public static String lireMessageAuClavier() throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString messa = sc.nextLine();\n\t\treturn messa;\n\t}", "public void onChatMessageReceived(ConversationMessage convo, String errorMessage);", "private void onIpcMessage(JSONObject data) {\n try {\n String type = data.getString(IPC_MESSAGE_TYPE);\n\n if (type.equals(IPC_MESSAGE_STARTHEARTBEAT)) {\n log.e(\"receiver ready to start heartbeat!!!\");\n } else if (type.equals(IPC_MESSAGE_REGISTEROK)) {\n\n mFlintServerIp = data\n .getJSONObject(IPC_MESSAGE_DATA_SERVICE_INFO)\n .getJSONArray(IPC_MESSAGE_DATA_SERVICE_INFO_IP)\n .getString(0);\n\n log.e(\"receiver register done!!![\" + mFlintServerIp + \"]\");\n\n sendAdditionalData();\n } else if (type.equals(IPC_MESSAGE_HEARTBEAT)) {\n String t = data.getString(IPC_MESSAGE_DATA_HEARTBEAT);\n if (t.equals(IPC_MESSAGE_DATA_HEARTBEAT_PING)) {\n JSONObject pong = new JSONObject();\n try {\n pong.put(IPC_MESSAGE_TYPE, IPC_MESSAGE_DATA_HEARTBEAT);\n pong.put(IPC_MESSAGE_TYPE_HEARTBEAT,\n IPC_MESSAGE_DATA_HEARTBEAT_PONG);\n ipcSend(pong);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if (t.equals(IPC_MESSAGE_DATA_HEARTBEAT_PONG)) {\n JSONObject pong = new JSONObject();\n try {\n pong.put(IPC_MESSAGE_TYPE, IPC_MESSAGE_DATA_HEARTBEAT);\n pong.put(IPC_MESSAGE_TYPE_HEARTBEAT,\n IPC_MESSAGE_DATA_HEARTBEAT_PING);\n ipcSend(pong);\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n log.e(\"unknow heartbeat message:\" + t);\n }\n } else if (type.equals(IPC_MESSAGE_SENDERCONNECTED)) {\n log.e(\"IPC senderconnected: \"\n + data.getString(IPC_MESSAGE_DATA_TOKEN));\n } else if (type.equals(IPC_MESSAGE_SENDERDISCONNECTED)) {\n log.e(\"IPC senderdisconnected: \"\n + data.getString(IPC_MESSAGE_DATA_TOKEN));\n } else {\n log.e(\"IPC unknow type:\" + type);\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void chatMsg(String msg)\n\t{\n\t\tchatArea.append(msg + \"\\n\");\n\t}", "private void getMessage(MessageEvent messageEvent) {\n if(GUI.getInstance().getBusiness().getCurrentChat() != null && messageEvent.getMessageIn().getChatId() == GUI.getInstance().getBusiness().getCurrentChat().getId()) {\n Platform.runLater(() -> {\n IMessageIn message = messageEvent.getMessageIn();\n messages.add(message);\n });\n }\n }", "private void onReceiveNewMessage(String topic, DataTransfer message) {\n Message msg = null;\n\n NotiAudio notiAudio = new NotiAudio();\n notiAudio.start();\n\n Object content = message.data;\n if (content instanceof String) {\n TextMessage textMessage = new TextMessage();\n textMessage.setContent(content.toString());\n msg = textMessage;\n } else if (content instanceof FileInfo) {\n FileMessage fileMessage = new FileMessage();\n fileMessage.setContent((FileInfo) content);\n msg = fileMessage;\n } else if (content instanceof Emoji) {\n EmojiMessage emojiMessage = new EmojiMessage();\n emojiMessage.setContent((Emoji) content);\n msg = emojiMessage;\n }\n\n if (msg != null) {\n msg.setFrom(message.name);\n msg.setTime(message.datetime);\n\n Messages messages = MessageManager.getInstance().append(topic, msg);\n boolean isGroup = messages.isGroup();\n\n boolean isCurrentChat = false;\n ChatBox chatBox = getCurrentChat();\n if (chatBox != null) {\n String current = chatBox.getTarget();\n if ((!isGroup && message.name.equals(current))\n || (isGroup && topic.equals(String.format(\"group/%s\", current)))) {\n isCurrentChat = true;\n }\n }\n\n ChatItem chatItem = getChatItemByMessages(messages);\n if (chatItem != null) {\n chatItem.setSeen(isCurrentChat);\n }\n\n if (isCurrentChat) {\n chatBox.addItem(msg);\n }\n\n updateChatItems(messages);\n }\n }", "@Override\r\n public void onMessageReceived(RemoteMessage remoteMessage) {\n if(remoteMessage.getData().size()>0)\r\n {\r\n Log.d(TAG, \"Mensaje recibido: \"+ remoteMessage.getData());\r\n }\r\n //Checa si el mensaje contiene notificacion\r\n if(remoteMessage.getNotification() != null){\r\n String title = remoteMessage.getNotification().getTitle();\r\n String message = remoteMessage.getNotification().getBody();\r\n\r\n Log.d(TAG, \"Titulo del mensaje de notificación: \"+ title);\r\n Log.d(TAG, \"Cuerpo del mensaje de notificación: \"+message);\r\n\r\n mostrarNotificacion(title, message);\r\n }\r\n\r\n if(remoteMessage.getData() != null) {\r\n Log.d(\"FIREBASE\", \"DATOS RECIBIDOS\");\r\n Log.d(\"FIREBASE\", \"Usuario: \" + remoteMessage.getData().get(\"usuario\"));\r\n Log.d(\"FIREBASE\", \"Estado: \" + remoteMessage.getData().get(\"estado\"));\r\n }\r\n\r\n //super.onMessageReceived(remoteMessage);\r\n /*String from = remoteMessage.getFrom();\r\n String title = remoteMessage.getNotification().getTitle();\r\n String message = remoteMessage.getNotification().getBody();\r\n Log.d(TAG, \"Mensaje Recibido de: \"+ from + \"\\nTitulo:\"+title+\" Mensaje: \"+message);\r\n mostrarNotificacion(title, message);*/\r\n /*if(remoteMessage.getNotification()!=null)\r\n {\r\n Log.d(TAG, \"Notificacion: \"+ remoteMessage.getNotification().getBody());\r\n //mostrarNotificacion(remoteMessage.getNotification().getTitle(), remoteMessage.getNotification().getBody());\r\n }\r\n if(remoteMessage.getData().size()>0)\r\n {\r\n Log.d(TAG, \"data: \"+ remoteMessage.getData());\r\n }*/\r\n }", "void onNewMessage(String message);", "private void createMessagesForPhones() {\n int msgQtd = getMessageQuantityInterval().randomValue();\n getEvents().forEach((event)->{\n Phone originPhone = event.getOriginPhone();\n \n Message message = new Message(originPhone, event.getDestinationPhone(), MessageStatus.PHONE_TO_ANTENNA);\n if ( msgQtd > 0 ) {\n message.setSendQuantity(msgQtd);\n message.setSendAgain(false);\n \n originPhone.addMessageToOutbox(message);\n }\n });\n }", "public abstract void stickerMessage(Message m);", "@Override\n public void run() {\n Message message = new Message();\n message.what = 4;\n handler.sendMessage(message);\n }", "public void onMessageReceived(MessageReceivedEvent e) {\n\t\tFunctions funcao = new Functions(e);\n\t\tString message = e.getMessage().getContent();\n\t\tString name = e.getAuthor().getName();\n\t\tString response = \"\";\n\t\tif ((message.startsWith(\"!!!\") || message.startsWith(\"-\")) && !e.getTextChannel().getName().equals(\"commands\")) {\n\t\t//if(e.getMessage().getAuthor().isBot()) {\n\t\t\tfuncao.limparComando();\n\t\t} else if (name.equals(\"Jads1\")) {\n\t\t\tRandom rand = new Random();\n\t\t\tint rng = rand.nextInt(100 + 1);\n\t\t\tif (rng == 9) {\n\t\t\t\tresponse = \"Cala boca, Jads!\";\n\t\t\t\te.getTextChannel().sendMessage(response).queue();\n\t\t\t}\n\t\t} else if (message.equals(\"'flipCoin\")) {\n\t\t\tfuncao.flipCoin();\n\t\t}else if (message.startsWith(\"'ranking\")) {\n\t\t\tfuncao.displayRanking();\n\t\t} else if (message.startsWith(\"'whois\")) {\n\t\t\tfuncao.whoIs();\n\t\t}else if (message.equals(\"'atribuirCargos\") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.atribuirCargos();\n\t\t}else if(message.startsWith(\"'setNumEpics \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumEpics();\n\t\t}else if(message.startsWith(\"'setNumRares \") && (e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(0).getName()) || e.getMember().getRoles().get(0).getName().equals(e.getGuild().getRoles().get(1).getName()))) {\n\t\t\tfuncao.setNumRares();\n\t\t}\n\t}", "void onMessageReceived(Message message);", "@OnWebSocketMessage\n public void recibiendoMensaje(Session usuario, String message) {\n\n\n System.out.println(\"Recibiendo del cliente: \"+usuario.getLocalAddress().getAddress().toString()+\" - Mensaje \"+message);\n try {\n\n String[] mensaje = message.split(\"~\") ;\n\n\n\n System.out.println(mensaje[0]);\n System.out.println(mensaje[1]);\n\n\n switch (mensaje[1]){\n\n case \"iniciarSesion\":\n usuarios.put(usuario, mensaje[0].trim());\n sesiones.put(mensaje[0].trim(), usuario);\n\n break;\n case \"iniciarSesionAdmin\":\n sesionAdmin = usuario;\n break;\n case \"mensajeNuevo\":\n\n if(sesionAdmin != null){\n System.out.println(mensaje[0]);\n sesionAdmin.getRemote().sendString(mensaje[0] +\"~\"+ usuarios.get(usuario) );\n }\n break;\n\n case \"mensajeNuevoAdmin\":\n String destino = mensaje[2];\n\n Session sesionDestino = sesiones.get(destino);\n if(sesionDestino != null){\n System.out.println(destino);\n sesionDestino.getRemote().sendString(mensaje[0] +\"~\"+sesiones.get(usuario));\n }\n break;\n\n\n }\n\n\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected void queryMsg() {\n\t\tif (currentPosition == 0) {//LIVE\n\t\t\tobtainLiveData(true, currentPosition, liveMaxChatId);\n\t\t} else {//CHAT\n\t\t\tobtainChatData(true, currentPosition, chatModels.get(0).getChatId());\n\t\t}\n\t}", "@Override\n\tpublic void onReceive(final Context context, Intent intent) {\n\t\tLog.i(\"msg\", \"new message\");\n\t\tif (Constants.MoShi==3) {\n\t\t\tnew Thread(){\n\t\t\t\tpublic void run() {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tsleep(3000);\n\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSmsDao smsdao = new SmsDao(context);\n\t\t\t\t\tMap<String, String> data = smsdao.getSmsData();\n\t\t\t\t\t\n\t\t\t\t\tIntent itent = new Intent(Constants.ACTION_RING);\n\t\t\t\t\tif (data != null) {\n\t\t\t\t\t\titent.putExtra(\"data\", Constants.SMSINFO);\n\t\t\t\t\t\titent.putExtra(\"person\", data.get(\"person\"));\n\t\t\t\t\t\titent.putExtra(\"body\", data.get(\"body\"));\n\t\t\t\t\t}\n\n\t\t\t\t\tcontext.sendBroadcast(itent);\n\t\t\t\t};\n\t\t\t\t\n\t\t\t}.start();\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n }", "public static void privateMessage(Player fromPlayer, Player toPlayer, String[] message) {\n PlayerDataObject fromPDO = PlayerManager.getPlayerDataObject(fromPlayer);\n PlayerDataObject toPDO = PlayerManager.getPlayerDataObject(toPlayer);\n //target.sendMessage(ChatColor.DARK_GRAY + \"[\" + player.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n //player.sendMessage(ChatColor.DARK_GRAY + \"[You > \" + target.getDisplayName() + ChatColor.DARK_GRAY + \"]: \" + ChatColor.WHITE + String.join(\" \", Arrays.copyOfRange(arg3, 1, arg3.length)).trim());\n ComponentBuilder toComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[\" + fromPDO.getFriendlyName() + ChatColor.DARK_GRAY + \" > you]\" + ChatColor.WHITE + \":\");\n toComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + fromPDO.getPlainNick()).create()));\n toComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + fromPDO.getName() + \" \"));\n toComp.append(\" \").reset();\n \n ComponentBuilder fromComp = new ComponentBuilder(ChatColor.DARK_GRAY + \"[You > \" + toPDO.getDisplayName() + ChatColor.DARK_GRAY + \"]\" + ChatColor.WHITE + \":\");\n fromComp.event(new HoverEvent(HoverEvent.Action.SHOW_TEXT, new ComponentBuilder(\"PM \" + toPDO.getPlainNick()).create()));\n fromComp.event(new ClickEvent(ClickEvent.Action.SUGGEST_COMMAND, \"/pm \" + toPDO.getName() + \" \"));\n fromComp.append(\" \").reset();\n \n TextComponent messageComp = new TextComponent();\n for (String part : message) {\n if (part.matches(\"^.*(https?)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|].*$\")) {\n messageComp.addExtra(assembleURLComponent(part));\n messageComp.addExtra(\" \");\n } else {\n messageComp.addExtra(part + \" \");\n }\n }\n \n BaseComponent[] toMSG = toComp\n .append(messageComp)\n .create();\n BaseComponent[] fromMsg = fromComp\n .append(messageComp)\n .create();\n \n toPDO.sendMessageIf(toMSG);\n fromPDO.sendMessageIf(fromMsg);\n }", "public void OnMessageReceived(String msg);", "private void initialisationChampMessage() {\n messageArea = new JTextArea();\n messageArea.setLineWrap(true);\n messageArea.setWrapStyleWord(true);\n messageArea.setOpaque(false);\n messageArea.setBackground(COULEUR_VIDE);\n messageArea.setFont(FONT_TEXTE);\n messageArea.setBorder(BorderFactory.createEmptyBorder(GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE,\n GRANDEUR_BORDURE_VIDE, GRANDEUR_BORDURE_VIDE));\n dimTotal = calculerDimensionTotalMessage(this.message);\n messageArea.setSize((int) dimTotal.getWidth() + GRANDEUR_BORDURE_VIDE * 2,\n (int) dimTotal.getHeight() + GRANDEUR_BORDURE_VIDE * 2);\n messageArea.append(this.message);\n }", "protected void onSendMessage(View view){\n et = (EditText)findViewById(R.id.message);\n String message = et.getText().toString();\n Intent intent = new Intent(this, ReceiveMessageActivity.class);\n intent.putExtra(\"message\",message);\n startActivity(intent);\n }", "public void receiveMyMessage(String msg) {\n \t\n final String str = msg;\n \n mHandler.post(new Runnable() {\n @Override\n public void run() {\n // This gets executed on the UI thread so it can safely modify Views\n receivedTextView1.setText(str);\n }\n });\n }", "void sendMessage(String msg);", "@Override\n\tpublic void onMessage(CommandMessage msg) {\n\t}", "private void handleMessage (Message message, Update update){\r\n\t\tSendMessage sendMessage = new SendMessage();\r\n\t\tLong chatId = update.getMessage().getChatId();\r\n\t\tif (isPolling == true){//Si el comando de la encuesta ha sido pulsado, modo encuesta...\t\t\t\r\n\t\t\tif (haveQuestion == false){//Si es falso todavia no se ha asignado la pregunta...\r\n\t\t\t\tpoll.setQuestion(message.getText());//Asignamos\tla pregunta.\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setParseMode(Poll.parseMode);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_QUESTION_STRING+ message.getText() +BotConfig.POLL_FIRST_ANSWER_STRING);\r\n\t\t\t\thaveQuestion = true;//Marcamos que hay pregunta.\r\n\t\t\t} else {//En este estado tenemos la pregunta, asignamos las respuestas.\r\n\t\t\t\tpoll.setAnswers(message.getText());\t\t\t\t\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.POLL_ANSWER_STRING);\r\n\t\t\t}\t\t\t\r\n\t\t} else if(update.getMessage().getFrom().getId() != null){//Si el id del usuario no es null...\r\n\t\t\tInteger id = update.getMessage().getFrom().getId();\r\n\t\t\tif (id == BotConfig.DEV_ID){//Si es mi id...\r\n\t\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\t\tsendMessage.setText(BotConfig.DEV_WORDS);//Mensaje personalizado...xD\r\n\t\t\t}\t\r\n\t\t} else {//Sino respondemos con el mismo texto enviado por el usuario.\r\n\t\t\tsendMessage.setChatId(chatId);\r\n\t\t\tsendMessage.setText(update.getMessage().getText());\r\n\t\t} \t\t\r\n try { \t\r\n execute(sendMessage);//Enviamos mensaje. \r\n } catch (TelegramApiException e) {\r\n \tBotLogger.error(LOGTAG, e);//Guardamos mensaje y lo mostramos en pantalla de la consola.\r\n e.printStackTrace();\r\n }\r\n\t}", "private void onMessage(JsonRpcMessage msg) {\n List<JsonRpcMessage> extraMessages = super.handleMessage(msg, true);\n notifyMessage(msg);\n for(JsonRpcMessage extraMsg: extraMessages) {\n notifyMessage(extraMsg);\n }\n }" ]
[ "0.70930564", "0.70794284", "0.6944108", "0.6916962", "0.6898128", "0.6786609", "0.671585", "0.66659355", "0.6641087", "0.6632934", "0.662391", "0.660646", "0.65884405", "0.6582974", "0.65602785", "0.6539016", "0.65161246", "0.6513058", "0.64927214", "0.6472654", "0.6460291", "0.64468396", "0.6415318", "0.6410755", "0.63767195", "0.6370951", "0.6348839", "0.6332232", "0.6325906", "0.629951", "0.62950134", "0.62875146", "0.6273107", "0.6268475", "0.6260384", "0.6255957", "0.62352324", "0.6224604", "0.62238055", "0.6192761", "0.6178277", "0.61654603", "0.6148826", "0.6137044", "0.6136061", "0.6120069", "0.6110884", "0.6109003", "0.6105676", "0.6103945", "0.6103085", "0.60979533", "0.60946745", "0.6091183", "0.60833037", "0.6074929", "0.60709727", "0.606972", "0.60640824", "0.6063243", "0.60602295", "0.6059849", "0.6058377", "0.6057018", "0.60528874", "0.6044602", "0.6041436", "0.6037958", "0.60361046", "0.6034836", "0.60251796", "0.60192937", "0.6017619", "0.60167557", "0.601369", "0.6013168", "0.60107523", "0.6006285", "0.5997206", "0.599718", "0.59968394", "0.5982737", "0.5974447", "0.59696907", "0.59585243", "0.5955514", "0.59531295", "0.59500617", "0.59499496", "0.5942534", "0.5936568", "0.5934229", "0.59282094", "0.59275883", "0.59217787", "0.5921006", "0.59182274", "0.5908073", "0.5899539", "0.5897357" ]
0.6132406
45
Ottiene il vaccinato autenticato
private Vaccinato getAuthVaccinated(IoSession session) { if (session != null) return (Vaccinato) session.getAttribute("vaccinato"); else return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void accionUsuario() {\n\t\t\r\n\t}", "public VentanaPrincipal() {\n initComponents();\n editar = false;\n }", "public void altaUsuario();", "public Cgg_res_oficial_seguimiento_usuario(){}", "protected void agregarUbicacion(){\n\n\n\n }", "private DittaAutonoleggio(){\n \n }", "public void limpiar() {\n\t\taut_empleado.limpiar();\n\t\tutilitario.addUpdate(\"aut_empleado\");// limpia y refresca el autocompletar\n\n\n\t}", "public Asignacion_usuario_Perfil1() {\n int CodigoAplicacion = 120;\n initComponents();\n llenadoDeCombos();\n llenadoDeTablas();\n \n\n \n }", "private void controladorAtras(Controlador controlador){\n this.contAtras = controlador.getAtras();\n registro.setControlAtras(contAtras);\n login.setControlAtras(contAtras);\n }", "public cambiarContrasenna() {\n initComponents();\n txtNombreUsuario.setEnabled(false);\n inicializarComponentes();\n cargarUsuarios();\n }", "public void asignarVida();", "public void estiloAcierto() {\r\n\t\t /**Bea y Jose**/\t\t\r\n \r\n\t}", "public void setAutorizacion(String autorizacion)\r\n/* 139: */ {\r\n/* 140:236 */ this.autorizacion = autorizacion;\r\n/* 141: */ }", "public void setContrasena(String contrasena) {this.contrasena = contrasena;}", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "@Override\n\tpublic boolean autentica(String senha) {\n\t\treturn false;\n\t}", "public vistaEjemplo() {\n initComponents();\n con=new Conexion();\n data = new Datas(con);\n usuario = new Usuario();\n jTApellido.setEnabled(false);\n jTMail.setEnabled(false);\n jTNombre.setEnabled(false);\n jTPassword.setEnabled(false);\n JdcFechaDeEntrada.setEnabled(false);\n jBPdf.setEnabled(false);\n }", "private void cargarAutorizaciones() {\r\n\t\tif (parametros_empresa != null) {\r\n\t\t\tif (parametros_empresa.getTrabaja_autorizacion()) {\r\n\t\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\t\tparametros.put(\"tipo_hc\", \"\");\r\n\t\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\t\tadmision_seleccionada);\r\n\r\n\t\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\t\tIRutas_historia.PAGINA_AUTORIZACIONES,\r\n\t\t\t\t\t\t\"AUTORIZACIONES\", parametros);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void valider() {\n\n\t\t/**\n\t\t * Renvoie un tableau de caractères qui sera transformé en chaine de caractère\n\t\t **/\n\n\t\tString passewordTraduit = new String(passeword.getPassword());\n\n\t\t/**\n\t\t * login.getText() récupère le contenu de la barre de saisie\n\t\t **/\n\t\t\n\t\tString user = login.getText();\n\t\tString passwd = passewordTraduit;\n\t\t/**\n\t\t *Permettra de savoir si la connexion à la BDD SQL c'est bien passée.\n\t\t */\n\t\tboolean reussite;\n\t\t/**\n\t\t * On va créer la BDD si elle n'existe pas\n\t\t */\n\t\t\n\t\treussite = Initialisation.getInstance().creerBDD(user, passwd);\n\t\t/**\n\t\t * On set le password et l'utilisateur pour que les paramètres de connexion soient les bons\n\t\t */\n\t\tInitialisation.getInstance().setPasswd(passwd);\n\t\tInitialisation.getInstance().setUser(user);\n\t\tModification.getInstance().setPasswd(passwd);\n\t\tModification.getInstance().setUser(user);\n\t\tif(reussite) {\n\t\t\t/**\n\t\t\t *Si tout c'est bien passé on regarde si l'utilisateur existe dans le fichier et dans le cas contraire on le crée.\n\t\t\t */\n\t\t\tif(personnesDejaInscrite.getInstance().getMaListDePersonneInscrite().get(user) == null) {\n\t\t\t\tpersonnesDejaInscrite.getInstance().getMaListDePersonneInscrite().put(user, new CompteAdministrateur(passwd));\n\t\t\t\tpersonnesDejaInscrite.getInstance().sauvegarder();\n\t\t\t}\n\t\t\tFenetreLogin.getInstance().dispose();\n\t\t\tFenetreFond.getInstance().changerFenetre(login.getText());\n\t\t\t/**\n\t\t\t *On remet les champs à nul pour que quand on se déconnecte on est pas le login et le mot de passe de l'utilisateur précédent.\n\t\t\t */\n\t\t\tlogin.setText(\"\");\n\t\t\tpasseword.setText(\"\");\n\t\t}\n\t\n\t}", "public void setAutor(String autor) {\n this.autor = autor;\n }", "public void Ordenamiento() {\n\n\t}", "private ControleurAcceuil(){ }", "protected Asignatura()\r\n\t{}", "public static void tener_Usuario_activo() {\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='username']\").typeKeys(\"ocastro\");\n\t\t\t\tdesktop.<DomTextField>find(\"//BrowserApplication//BrowserWindow//input[@id='password']\").setText(\"bogota2016\");\n\t\t\t\tdesktop.<DomButton>find(\"//BrowserApplication//BrowserWindow//input[@id='loginbtn']\").click();\n\t\t\t\t//end recording\n\t\t\t\tSerenity.takeScreenshot();\n\t}", "private void RealizarAccion() {\n if (ValidarCampos()) {\n\n persona.setPrimerNombre(txtPrimerNombre.getText());\n persona.setSegundoNombre(txtSegundoNombre.getText());\n persona.setPrimerApellido(txtPrimerApellido.getText());\n persona.setSegundoApellido(txtSegundoApellido.getText());\n persona.setTelefono(txtTelefono.getText());\n persona.setCedula(txtCedula.getText());\n persona.setCorreo(txtCorreo.getText());\n persona.setDireccion(txtDireccion.getText());\n\n empleado.setFechaInicio(dcFechaInicio.getDate());\n empleado.setSalario(Double.parseDouble(txtSalario.getText()));\n empleado.setCargo(txtCargo.getText());\n empleado.setUsuarioByUserModificacion(SessionHelper.usuario);\n empleado.setFechaModificacion(new Date());\n empleado.setRegAnulado(false);\n\n switch (btnAction.getText()) {\n case \"Guardar\":\n int maxid = personaBean.MaxId() + 1;\n persona.setIdPersona(maxid);\n\n Dbcontext.guardar(persona);\n\n empleado.setIdEmpleado(maxid);\n empleado.setPersona(persona);\n empleado.setUsuarioByUserCreacion(SessionHelper.usuario);\n empleado.setFechaCreacion(new Date());\n\n Dbcontext.guardar(empleado);\n break;\n\n case \"Actualizar\":\n\n Dbcontext.actualizar(persona);\n\n Dbcontext.actualizar(empleado);\n break;\n }\n if (ifrRegistroEmpleados.isActive) {\n ifrRegistroEmpleados.CargarTabla();\n }\n\n Mensajes.OperacionExitosa(this);\n dispose();\n } else {\n Mensajes.InformacionIncompleta(this);\n }\n }", "@Override\n\tprotected void entrada(WebRequestContext request, Ocorrencia form) throws Exception {\t\t\n\t\tif (!\"true\".equals(request.getParameter(\"reload\"))) {\n\t\t\tFiltroUtils.preencheFiltroPlanoGestaoUnidadeUsuario(form);\n\t\t}\n\t\t\n\t\t//Se for uma nova ocorrência será dada a opção de gerar uma anomalia.\n\t\tif(form.getId() == null){\n\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", true);\n\n\t\t\t//seta a data e o usuario que esta logado\n\t\t\tform.setDataLancamento(new Date(System.currentTimeMillis()));\n\t\t\tform.setRelator((Usuario)request.getUser());\t\t\t\n\t\t}\n\t\t//Senão será apenas editada.\n\t\telse {\n\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", false);\n\t\t\tif(!anomaliaService.fazParteAnomalia(form)){\n\t\t\t\trequest.setAttribute(\"opcaoCriarAnomalia\", true);\n\t\t\t}\n\t\t\t\n\t\t\tif (!usuarioService.isUsuarioLogadoAdmin()) {\n\t\t\t\trequest.setAttribute(\"editarSomenteSituacao\", Boolean.TRUE);\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t}", "private void recogerDatos() {\n\t\ttry {\n\t\t\tusuSelecc.setId(etId.getText().toString());\n\t\t\tusuSelecc.setName(etNombre.getText().toString());\n\t\t\tusuSelecc.setFirstName(etPApellido.getText().toString());\n\t\t\tusuSelecc.setLastName(etSApellido.getText().toString());\n\t\t\tusuSelecc.setEmail(etCorreo.getText().toString());\n\t\t\tusuSelecc.setCustomFields(etAuth.getText().toString());\n\t\t} catch (Exception e) {\n\t\t\t// Auto-generated catch block\n\t\t\tmostrarException(e.getMessage());\n\t\t}\n\t}", "public VistaUsuarioContenido() {\n initComponents();\n }", "public void anulaAvaluo() {\r\n try {\r\n if (\"\".equals(mBRadicacion.Radi.getObservacionAnulaAvaluo())) {\r\n mbTodero.setMens(\"Falta informacion por Llenar\");\r\n mbTodero.warn();\r\n } else {\r\n int CodRad = mBRadicacion.Radi.getCodAvaluo();\r\n mBRadicacion.Radi.AnulaRadicacion(mBsesion.codigoMiSesion());\r\n mbTodero.setMens(\"El Avaluo N*: \" + CodRad + \" ha sido anulada\");\r\n mbTodero.info();\r\n mbTodero.resetTable(\"FRMSeguimiento:SeguimientoTable\");\r\n mbTodero.resetTable(\"FormMisAsignados:RadicadosSegTable\");\r\n RequestContext.getCurrentInstance().execute(\"PF('DLGAnuAvaluo').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() + \".anulaAvaluo()' causado por: \" + e.getMessage());\r\n mbTodero.error();\r\n }\r\n }", "public RenovarLicencia() {\n //borrar todo cuando este listo el metodo de abajo\n initComponents();\n setTitle(\"Renovar Licencia\");\n setLocationRelativeTo(null);\n //se pide al gestor y se muestra por pantalla los datos del administrativo registrado\n txt_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getUsername());\n txt_nombre_user.setText(GestorAdministrativo.getInstance().getAdministrativo().getNombre() + \" \" + GestorAdministrativo.getInstance().getAdministrativo().getApellido());\n //borrar hasta aca\n }", "@Override\n\tpublic Boolean vota(String listaElettorale) {\n\t\t//definisco utente registato in questo momento\n\t\tString userVotante = autenticazioneServizio.getUsername();\n\t\tVoto voto = new Voto(userVotante, listaElettorale);\n\t\taggiungiVoto(voto);\n\t\t//controlla se l'user ha già votato\n\t\taggiungiVoto(voto);\n\t\treturn true;\n//\t\tif (verificaVotoValido(userVotante)) {\n//\t\t\t//vota\n//\t\t\taggiungiVoto(voto);\n//\t\t\t\n//\t\t\treturn true;\n//\t\t} else {\n//\t\t\treturn false;\n//\t\t}\n\t}", "public void inicializarFirebaseAuth() {\n refAutenticacaofb = ConfiguracaoFirebase.metodoAutenticacaoFirebase();\n }", "public void comprobarEficaciaAccion() throws IOException{\n if((fVerif.SetVerificacionEficaciaAccion(FechaComprobacionEficacia, ObservacionesEficacia, ComprobacionSeleccionadaEficacia, AccionSeleccionada.getId()))== -1){\n FacesContext.getCurrentInstance().addMessage(\"form_seguimiento_accion:btn_comprobar_eficacia\", new FacesMessage(SEVERITY_FATAL, \"No se pudo comprobar eficacia\", \"No se pudo comprobar eficacia\" ));\n FacesContext.getCurrentInstance().renderResponse();\n }else{\n // regresar a la pagina listar acciones\n String url = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();\n FacesContext.getCurrentInstance().getExternalContext().redirect(url+\"/Views/Acciones/General/SeguimientoAccion.xhtml?id=\"+AccionSeleccionada.getId());\n }\n }", "public void setIdAutenticacao(String idAutenticacao) {\n\t\tthis.idAutenticacao = idAutenticacao;\n\t}", "public TelaEsqueceuSenha() {\n initComponents();\n }", "public void activarNuevoAlmacen() {\n\t\ttxtId.setVisible(false);\n\t\tpnAlmacen.setVisible(true);\n\t\tsetTxtUbicacion(\"\");\n\t\tgetPnTabla().setVisible(false);\n\t\tadd(pnAlmacen,BorderLayout.CENTER);\n\t \n\t}", "public tela_GerencLogin() {\n initComponents();\n lb_NomeLogin.setText(Sessao.getLogin());\n lb_Id.setText(Integer.toString(Sessao.getId()));\n \n }", "@Override\n\tpublic boolean atentica(String senha) {\n\t\treturn false;\n\t}", "public JogadorTradutor() {\n this.nome= \"Sem Registro\";\n this.pontuacao = pontuacao;\n id = id;\n \n geradorDesafioItaliano = new GerarPalavra(); // primeira palavra ja é gerada para o cliente\n }", "private void actualizaUsuario() {\n\t\t\n\t\tInteger edad=miCoordinador.validarEdad(campoEdad.getText().trim());\n\t\t\n\t\tif (edad!=null) {\n\t\t\t\n\t\t\tUsuarioVo miUsuarioVo=new UsuarioVo();\n\t\t\t//se asigna cada dato... el metodo trim() del final, permite eliminar espacios al inicio y al final, en caso de que se ingresen datos con espacio\n\t\t\tmiUsuarioVo.setDocumento(campoDocumento.getText().trim());\n\t\t\tmiUsuarioVo.setNombre(campoNombre.getText().trim());\n\t\t\tmiUsuarioVo.setEdad(Integer.parseInt(campoEdad.getText().trim()));\n\t\t\tmiUsuarioVo.setProfesion(campoProfesion.getText().trim());\n\t\t\tmiUsuarioVo.setTelefono(campoTelefono.getText().trim());\n\t\t\tmiUsuarioVo.setDireccion(campoDireccion.getText().trim());\n\t\t\t\n\t\t\tString actualiza=\"\";\n\t\t\t//se llama al metodo validarCampos(), este retorna true o false, dependiendo de eso ingresa a una de las opciones\n\t\t\tif (miCoordinador.validarCampos(miUsuarioVo)) {\n\t\t\t\t//si se retornó true es porque todo está correcto y se llama a actualizar\n\t\t\t\tactualiza=miCoordinador.actualizaUsuario(miUsuarioVo);//en registro se almacena ok o error, dependiendo de lo que retorne el metodo\n\t\t\t}else{\n\t\t\t\tactualiza=\"mas_datos\";//si validarCampos() retorna false, entonces se guarda la palabra mas_datos para indicar que hace falta diligenciar los campos obligatorios\n\t\t\t}\n\t\t\t\n\t\t\t//si el registro es exitoso muestra un mensaje en pantalla, sino, se valida si necesita mas datos o hay algun error\n\t\t\tif (actualiza.equals(\"ok\")) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \" Se ha Modificado Correctamente \",\"Confirmación\",JOptionPane.INFORMATION_MESSAGE);\t\t\t\n\t\t\t}else{\n\t\t\t\tif (actualiza.equals(\"mas_datos\")) {\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Debe Ingresar los campos obligatorios\",\"Faltan Datos\",JOptionPane.WARNING_MESSAGE);\t\t\t\n\t\t\t\t}else{\n\t\t JOptionPane.showMessageDialog(null, \"Error al Modificar\",\"Error\",JOptionPane.ERROR_MESSAGE);\n\t\t\t\t}\n\t\t\t}\t\t\t\t\t\n\t\t\t\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(null, \"Debe ingresar una edad Valida!!!\",\"Advertencia\",JOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t\t\t\t\n\t}", "protected void botonAceptarPulsado() {\n\t\tString pass = this.vista.getClave();\n\t\tchar[] arrayC = campoClave.getPassword();\n\t\tString clave = new String(arrayC);\n\t\tclave = Vista.md5(clave);\n\t\t\n\t\tif (pass.equals(clave)) {\n\t\t\tarrayC = campoClaveNueva.getPassword();\n\t\t\tString pass1 = new String(arrayC);\n\t\t\t\n\t\t\tarrayC = campoClaveRepita.getPassword();\n\t\t\tString pass2 = new String(arrayC);\n\t\t\t\n\t\t\tif (pass1.equals(pass2)) {\n\t\t\t\tif (this.vista.cambiarClave(pass1)) {\n\t\t\t\t\tthis.vista.msg(this, \"Contraseña maestra cambiada con éxito\");\n\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.vista.error(this, \"Error al cambiar la contraseña maestra\");\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthis.vista.error(this, \"Las contraseñas no coinciden\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tthis.vista.error(this, \"Contraseña incorrecta\");\n\t\t}\n\t}", "void entrerAuGarage();", "@Override\r\n\tpublic void aggiornaUI() {\r\n\t\tString valore = input_ricerca_cliente.getText();\r\n\t\tthis.clienti.setAll(AppFacadeController.getInstance().getGestisciClientiController().cercaCliente(valore));\r\n\t}", "public String retourPageAuthentification() {\r\n\t\tdefaultVue.setPassword(null);\r\n\t\t// Retour à la page d'authentification\r\n\t\treturn \"LoginPassword\";\r\n\t}", "public boolean autentica(int senha) {\n\t\tif(this.senha == senha) {\n\t\treturn true;\n\t\t} else {\n\t\treturn false;\n\t\t}\n\t}", "private void enviarRequisicaoAdicionar() {\n servidor.adicionarPalito(nomeJogador);\n atualizarPalitos();\n }", "private void exibirSenha() {\n if (exibeSenha) {\n txtSenha.setTransformationMethod(PasswordTransformationMethod.getInstance());\n exibeSenha = false;\n } else {\n txtSenha.setTransformationMethod(HideReturnsTransformationMethod.getInstance());\n exibeSenha = true;\n }\n }", "public String authentification(){\r\n\t\t\r\n\t\tString v$navigation = null;\r\n\t\ttry {\r\n\t\t\tTabUsr\tusr = AdminSvcoDeleguate.getSvcoUsr().authenticate(defaultVue.getLogin(), defaultVue.getPassword());\r\n\t\t\tif(usr != null && usr.getCodUsr() != null && !usr.getPwdExpire()){\r\n\t\t\t\t// Navigation vers le formulaire d'acceuil\r\n\t\t\t\tdefaultVue.setUser(usr);\r\n\t\t\t\tv$navigation = \"AcceuilDeBase\";\r\n\t\t\t}else if(usr != null && usr.getPwdExpire()){\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Votre mot de passe a expiré : veuillez contacter l'administrateur\", \"Votre mot de passe a expiré : veuillez contacter l'administrateur\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tFacesUtil.addWarnMessage(\"Login/Mot de passe incorrect\", \"Login/Mot de passe incorrect\");\r\n\t\t\t}\r\n\t\t} catch (SysGehoAppException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ServiceLocatorException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn v$navigation;\r\n\t}", "private void atualizarTela() {\n\t\tSystem.out.println(\"\\n*** Refresh da Pagina / Consultando Todos os Registro da Tabela Paciente\\n\");\n\t\tpaciente = new Paciente();\n\t\tlistaPaciente = pacienteService.buscarTodos();\n\t\t\n\t}", "@Override\n public void beforeShowNewEntity()\n {\n entity = new Aluno();\n entity.setDataNascimento(new GregorianCalendar());\n String senha = CriptografiaLogic.encriptar(\"123\");\n entity.setSenha(senha);\n }", "private void controladorUser(Controlador controlador){\n this.contUserCrearProyecto = controlador.getUserCrearProyecto();\n inicioUser.setControlCrearProyecto(contUserCrearProyecto);\n \n this.contUserCrearColectivo = controlador.getUserCrearColectivo();\n inicioUser.setControlCrearColectivo(contUserCrearColectivo);\n\n this.contInformes = controlador.getInformes();\n inicioUser.setControlSolicitarInformes(contInformes); \n \n this.contFiltrar = controlador.getFiltrar();\n inicioUser.setControlFiltrar(contFiltrar);\n\n this.contLimpiar = controlador.getLimpiarFiltro();\n inicioUser.setControlLimpiarFiltro(contLimpiar);\n }", "@Override\n\tpublic void credite() {\n\t\t\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 }", "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 }", "private void controladorInicio(Controlador controlador){\n this.inicioRegistro = controlador.getInicioRegistro();\n inicio.setControlRegistro(inicioRegistro);\n this.inicioLogin = controlador.getInicioLogin();\n inicio.setControlLogin(inicioLogin);\n }", "private void commitApuesta() {\n\t\tif(tipo != -1){\n\t\t\tmodelo.setDestLogin(ModeloApuestas.DEST_APOSTUBERRI);\n\t\t\tmodelo.setApuestaInProgress(apostado.get(), tipo);\n\t\t\tif(!myController.isScreenLoaded(\"login\")){\n\t\t\t\tmyController.loadScreen(ScreensFramework.Login, ScreensFramework.Login_FXML);\n\t\t\t}\n\t\t\tmyController.setScreenOverlay(\"login\");\n\t\t}\n\t\t\n\t\t\n\t}", "private void iniciarNovaVez() {\n this.terminouVez = false;\n }", "public void asetaTeksti(){\n }", "public frmAnagraficaUsers() {\n initComponents();\n\n this.texCodi.setVisible(false);\n \n //associo il panel ai dati\n this.dati.dbNomeTabella = \"accessi_utenti\";\n Vector chiave = new Vector();\n chiave.add(\"id\");\n this.dati.dbChiave = chiave;\n this.dati.butSave = this.butSave;\n this.dati.butUndo = this.butUndo;\n this.dati.butFind = this.butFind;\n this.dati.butNew = this.butNew;\n this.dati.butDele = this.butDele;\n this.dati.tipo_permesso = Permesso.PERMESSO_GESTIONE_UTENTI;\n\n this.texDbPassword.setVisible(false);\n this.comRoleId.dbOpenList(Db.getConn(), \"SELECT descrizione, id FROM accessi_ruoli ORDER BY id\");\n this.dati.dbOpen(Db.getConn(), \"select * from \" + this.dati.dbNomeTabella + \" order by id\");\n this.dati.dbRefresh();\n\n dati.addDbListener(new DbListener() {\n public void statusFired(DbEvent event) {\n if (event.getStatus() == tnxDbPanel.STATUS_REFRESHING) {\n controllaAdmin();\n }\n }\n\n });\n\n this.salvaPassword = false;\n\n //apro la griglia\n //this.griglia.dbEditabile = true;\n this.griglia.dbChiave = chiave;\n this.griglia.flagUsaThread = false;\n\n java.util.Hashtable colsWidthPerc = new java.util.Hashtable();\n colsWidthPerc.put(\"id\", new Double(15));\n colsWidthPerc.put(\"username\", new Double(85));\n this.griglia.columnsSizePerc = colsWidthPerc;\n this.griglia.dbOpen(Db.getConn(), \"select id, username from \" + this.dati.dbNomeTabella + \" order by id\");\n controllaAdmin();\n this.griglia.dbPanel = this.dati;\n }", "private void controladorLogin(Controlador controlador){\n this.contLogin = controlador.getLogin();\n login.setControlContinuar(contLogin);\n }", "private void inicializarVista() {\n this.vista.jtfNombreRol.setText(this.modelo.getRol().getDescripcion());\n this.vista.jbAgregar.setEnabled(false);\n this.vista.jbQuitar.setEnabled(false);\n this.vista.jtPermisosDisponibles.setModel(modelo.obtenerAccesosDispon());\n this.vista.jtPermisosSeleccionados.setModel(modelo.obtenerAccesoSelecc());\n Utilities.c_packColumn.packColumns(this.vista.jtPermisosDisponibles, 1);\n Utilities.c_packColumn.packColumns(this.vista.jtPermisosSeleccionados, 1);\n }", "public login() {\n\n initComponents();\n \n usuarios.add(new usuarios(\"claudio\", \"claudioben10\"));\n usuarios.get(0).setAdminOno(true);\n \n }", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public void salir() {\n LoginManager.getInstance().logOut();\n irInicio();\n }", "@Override\n\tpublic void updateEncuestaConExito() {\n\n\t}", "public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}", "public ControleurVueLogin() {\n\n\t}", "@Override\n public void manejarLogin() {\n loginPresenter.validarLogin(etxtEmail.getText().toString(),etxtPass.getText().toString());\n }", "public static void traduitSiteAnglais() {\n\t\t\n\t}", "public void setIdAutenticacao(int idAutenticacao) {\n\t\tthis.idAutenticacao = idAutenticacao;\n\t}", "private void inizia() throws Exception {\n this.setNomeChiave(CHIAVE_NAV);\n this.setUsaNuovo(false);\n this.setUsaElimina(false);\n this.setUsaRicerca(true);\n this.setUsaSelezione(true);\n this.setUsaStampaLista(false);\n this.setUsaProietta(false);\n this.setAggiornamentoTotaliContinuo(true);\n }", "@Override\n\tpublic void atualizar() {\n\t\t\n\t\t \n\t\t String idstring = id.getText();\n\t\t UUID idlong = UUID.fromString(idstring);\n\t\t \n\t\t PedidoCompra PedidoCompra = new PedidoCompra();\n\t\t\tPedidoCompra.setId(idlong);\n\t\t\tPedidoCompra.setAtivo(true);\n//\t\t\tPedidoCompra.setNome(nome.getText());\n\t\t\tPedidoCompra.setStatus(StatusPedido.valueOf(status.getSelectionModel().getSelectedItem().name()));\n//\t\t\tPedidoCompra.setSaldoinicial(saldoinicial.getText());\n\t\t\tPedidoCompra.setData(new Date());\n\t\t\tPedidoCompra.setIspago(false);\n\t\t\tPedidoCompra.setData_criacao(new Date());\n//\t\t\tPedidoCompra.setFornecedor(fornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setFornecedor(cbfornecedores.getSelectionModel().getSelectedItem());\n\t\t\tPedidoCompra.setTotal(PedidoCompra.CalcularTotal(PedidoCompra.getItems()));\n\t\t\tPedidoCompra.setTotalpago(PedidoCompra.CalculaTotalPago(PedidoCompra.getFormas()));\n\t\t\t\n\t\t\t\n\t\t\tgetservice().edit(PedidoCompra);\n\t\t\tupdateAlert(PedidoCompra);\n\t\t\tclearFields();\n\t\t\tdesligarLuz();\n\t\t\tloadEntityDetails();\n\t\t\tatualizar.setDisable(true);\n\t\t\tsalvar.setDisable(false);\n\t\t\t\n\t\t \n\t\t \n\t\tsuper.atualizar();\n\t}", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public void inicializarInterfaz() {\n\t\tvista.setVisible(true);\n\t\tvista.bienvenida.setVisible(true);\n\t\tvista.sel_billete.setVisible(false);\n\t\tvista.sel_fecha.setVisible(false);\n\t\tvista.detalles_compra.setVisible(false);\n\t\tvista.login.setVisible(false);\n\t\tvista.registro.setVisible(false);\n\t\tvista.pago.setVisible(false);\n\t\tvista.fin_pago.setVisible(false);\n\t\tvista.agur.setVisible(false);\n\t\t\n\t}", "public Editar_Entrada() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setResizable(false);\n this.setTitle(\"CPU System Service S.A.S - FACTURAS DE ENTRADA\");\n //CargarCmbCliente();\n txtSec.setEnabled(false);\n txtIdCli.setEnabled(false);\n traerDatos();\n txtEstado.setEnabled(false);\n txtGarantia.setEnabled(false);\n }", "public VentanaPrincipal(Modelo s) {\n modelo = s;\n initComponents();\n capturarEventos();\n }", "public String asignarActividad() throws SQLException {\n\t\tFacesContext context = FacesContext.getCurrentInstance();\n\t\t\n\t\t//Bloque bloque = context.getApplication().evaluateExpressionGet(context, \"#{bloque}\", Bloque.class);\n\t\tActividad actividad = context.getApplication().evaluateExpressionGet(context, \"#{actividad}\", Actividad.class);\n\t\tAsistente asistente = context.getApplication().evaluateExpressionGet(context, \"#{asistente}\", Asistente.class);\n\t\t\n\t\tSystem.out.println(\"resultado: \"+actividad.getNombreActividad());\n\t actividad.registrarActividad_Asistente(asistente.getCedula());\n\t\t\n\t\t// put the user object into the POST request \n\t\tFacesContext.getCurrentInstance().getExternalContext().getRequestMap().put(\"actividad\", actividad);\n\t\t\n\t\treturn\"principalAsistente.xhtml\";\n\t}", "public void editar() {\n try {\n ClienteDao fdao = new ClienteDao();\n fdao.Atualizar(cliente);\n\n JSFUtil.AdicionarMensagemSucesso(\"Cliente editado com sucesso!\");\n\n } catch (RuntimeException e) {\n JSFUtil.AdicionarMensagemErro(\"ex.getMessage()\");\n e.printStackTrace();\n }\n }", "private void razia(){\n /* Mereset semua Error dan fokus menjadi default */\n mViewUser.setError(null);\n mViewPassword.setError(null);\n View fokus = null;\n boolean cancel = false;\n\n /* Mengambil text dari form User dan form Password dengan variable baru bertipe String*/\n String user = mViewUser.getText().toString();\n String password = mViewPassword.getText().toString();\n\n /* Jika form user kosong atau TIDAK memenuhi kriteria di Method cekUser() maka, Set error\n * di Form User dengan menset variable fokus dan error di Viewnya juga cancel menjadi true*/\n if (TextUtils.isEmpty(user)){\n mViewUser.setError(\"This field is required\");\n fokus = mViewUser;\n cancel = true;\n }else if(!cekUser(user)){\n mViewUser.setError(\"This Username is not found\");\n fokus = mViewUser;\n cancel = true;\n }\n\n /* Sama syarat percabangannya dengan User seperti di atas. Bedanya ini untuk Form Password*/\n if (TextUtils.isEmpty(password)){\n mViewPassword.setError(\"This field is required\");\n fokus = mViewPassword;\n cancel = true;\n }else if (!cekPassword(password)){\n mViewPassword.setError(\"This password is incorrect\");\n fokus = mViewPassword;\n cancel = true;\n }\n\n /* Jika cancel true, variable fokus mendapatkan fokus */\n if (cancel) fokus.requestFocus();\n else masuk();\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public Authentification() {\n initComponents();\n }", "private void authorize() {\r\n\r\n\t}", "public void atualizar() {\n System.out.println(\"Metodo atualizar chamado!\");\n setR1(0);\n setR2(0);\n setR3(0);\n setN(0);\n\n //context.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, \"Atualizado!\", \"\"));\n }", "public JFPrincipioActivo() {\n initComponents();\n this.activarControles(false);\n this.listarPrincipiosActivos();\n }", "@Override\r\n\tprotected void initVentajas() {\n\r\n\t}", "public principal() {\n initComponents();\n \n // Verificando si se completó el nivel\n verificar_niveles();\n \n \n }", "public void caminar(){\n if(this.robot.getOrden() == true){\n System.out.println(\"Ya tengo la orden, caminare a la cocina para empezar a prepararla.\");\n this.robot.asignarEstadoActual(this.robot.getEstadoCaminar());\n }\n }", "public int getIdAutenticacao() {\n\t\treturn idAutenticacao;\n\t}", "private void verificaNome() {\r\n\t\thasErroNome(nome.getText());\r\n\t\tisCanSave();\r\n\t}", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }", "public void setOrigen(java.lang.String param){\n \n this.localOrigen=param;\n \n\n }", "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}", "public void inicializarDatos(aplicacion.Usuario u){\n //Pestaña Informacion\n this.usuario=fa.obtenerUsuarioVivo(u.getIdUsuario());\n ModeloTablaBuenasAcciones mba;\n mba = (ModeloTablaBuenasAcciones) tablaBA.getModel();\n mba.setFilas(usuario.getBuenasAcciones());\n ModeloTablaPecados mp;\n mp = (ModeloTablaPecados) tablaPecados.getModel();\n mp.setFilas(usuario.getPecados());\n textoNombre.setText(usuario.getNombre());\n textoUsuario.setText(usuario.getNombreUsuario());\n textoContrasena.setText(usuario.getClave());\n textoLocalidad.setText(usuario.getLocalidad());\n textoFechaNacimiento.setText(String.valueOf(usuario.getFechaNacimiento()));\n //PestañaVenganzas\n ModeloTablaUsuarios mu;\n mu = (ModeloTablaUsuarios) tablaUsuarios.getModel();\n mu.setFilas(fa.consultarUsuariosMenos(usuario.getIdUsuario(), textoNombreBusqueda.getText()));\n ModeloTablaVenganzas mv;\n mv = (ModeloTablaVenganzas) tablaVenganzas.getModel();\n mv.setFilas(fa.listaVenganzas());\n }", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public Vencimientos() {\n initComponents();\n \n \n }", "public void setVigencia(String vigencia) { this.vigencia = vigencia; }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "public FrmCadUsuario() {\n initComponents();\n Connection conexao = new Conexao().getConnection();\n\n txtId.setEnabled(false);\n lista = usuarioController.getUsuarios();\n if (lista.isEmpty()) {\n JOptionPane.showMessageDialog(null, \"Ainda não foram cadastrados usuários\");\n } else {\n mostrarDados();\n }\n }", "public Cliente() {\n initComponents();\n Saida.setSaida(txtSaida);\n }", "@Override\r\n\tprotected void verificaUtentePrivilegiato() {\n\r\n\t}", "public doimatkhau() {\n initComponents();\n setLocationRelativeTo(null);\n txtTendangnhap.setText(sharehelper.user.getMaNV());\n }" ]
[ "0.6955136", "0.66371554", "0.65752894", "0.6565052", "0.65549177", "0.6542372", "0.64050335", "0.6392996", "0.6353196", "0.63398975", "0.6310922", "0.6304127", "0.6303001", "0.6290228", "0.6247307", "0.6244798", "0.6205296", "0.6204907", "0.6196801", "0.61822397", "0.6172397", "0.6145725", "0.61342", "0.6127585", "0.607887", "0.60699517", "0.606235", "0.6051184", "0.60410535", "0.6020552", "0.6014646", "0.5989367", "0.5986715", "0.59750956", "0.59742147", "0.5967983", "0.5966117", "0.5952076", "0.5941533", "0.59316766", "0.5929593", "0.5926095", "0.5915993", "0.5907785", "0.58983374", "0.58892316", "0.58805144", "0.5872364", "0.58703345", "0.5866897", "0.58658296", "0.58646303", "0.5862912", "0.5862557", "0.5861837", "0.58612704", "0.5852431", "0.58450997", "0.5841671", "0.58347756", "0.5831078", "0.5825267", "0.58107567", "0.5798071", "0.5779973", "0.57797915", "0.57792777", "0.5774046", "0.5772043", "0.5765623", "0.57582164", "0.57516164", "0.5742305", "0.57389045", "0.57268625", "0.57260686", "0.5720497", "0.57201934", "0.5716176", "0.5713666", "0.57133174", "0.57110256", "0.57078993", "0.570414", "0.5701308", "0.570066", "0.56988335", "0.5697898", "0.56967974", "0.56917036", "0.5691139", "0.56902134", "0.5689666", "0.56878734", "0.5687024", "0.5682512", "0.56730634", "0.56714255", "0.5670549", "0.5670488", "0.56630063" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int[] arr={45,56,73,34,21}; System.out.println("정렬전 : "); for(int i=0;i<5;i++){ System.out.print(arr[i]+" "); } System.out.println(); System.out.println("정렬후 : "); for(int i=0;i<4;i++){ for(int j=i+1;j<5;j++){ if(arr[i]<arr[j]){ int temp=arr[i]; arr[i]=arr[j]; arr[j]=temp; } } } for(int i=0;i<5;i++){ System.out.print(arr[i]+" "); } System.out.println(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
IntStack no1 = new IntStack(); no1.push(10); no1.push(20); no1.push(30); no1.push(40); no1.push(50); System.out.println(no1.pop()); System.out.println(no1.pop()); System.out.println(no1.pop()); Output 50 40 30
public static void main(String[] args) { Person p1 = new Person("1", "Nishant"); Person p2 = new Person("2", "Nikhil"); PersonStack ps = new PersonStack(); ps.push(p1); ps.push(p2); System.out.println(ps.pop().toString()); System.out.println(ps.pop().toString()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void stack_pop(Stack<Integer> stack)\r\n\t{\r\n\t\t\r\n\t\tSystem.out.print(\"Pop : \");\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tInteger dataElement=(Integer)stack.pop();\r\n\t\t\tSystem.out.print(\" \"+ dataElement);\r\n\t\t\t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public static void main(String[] args) {\n \n \n \n Stack st = new Stack();\n st.push(40);\n st.push(30);\n \n int poppedElement = (int) st.pop();\n System.out.println(poppedElement);\n \n \n \n }", "public static void main(String[] args) {\r\n\t\tStack <Integer> s=new Stack<>();//Stack s=new Stack();\r\n\t\ts.push(12);\r\n\t\ts.push(32);\r\n\t\ts.push(62);\r\n\t\ts.push(72);\r\n\t\tSystem.out.println(s.pop());\r\n\t\tSystem.out.println(s.pop());\r\n\t\tSystem.out.println(s.pop());\r\n\t\t\r\n\t\tStack <String> s2=new Stack<>();\r\n\t\ts2.push(\"h\");\r\n\t\ts2.push(\"o\");\r\n\t\ts2.push(\"l\");\r\n\t\ts2.push(\"a\");\r\n\t\tSystem.out.println(s2.pop());\r\n\t\tSystem.out.println(s2.pop());\r\n\t\tSystem.out.println(s2.pop());\r\n\r\n\t\t\r\n\t}", "public void pop() {\r\n \t Queue<Integer> temp=new LinkedList<Integer>();\r\n \t int counter=0;\r\n \t while(!stack.isEmpty()){\r\n \t temp.add((Integer) stack.poll());\r\n \t counter++;\r\n \t \r\n \t }\r\n \t while(counter>1)\r\n \t {\r\n \t \r\n \t stack.add(temp.poll());\r\n \t counter--;\r\n \t }\r\n }", "@Test\n public void testThreePushPop(){\n ms = new MyStack();\n int pn1=3, pn2=4, pn3=5;\n ms.push(pn1);\n ms.push(pn2);\n ms.push(pn3);\n assertEquals(pn3,ms.pop());\n assertEquals(pn2,ms.pop());\n assertEquals(pn1,ms.pop());\n }", "@Test\n public void testPop() {\n System.out.println(\"pop\");\n Stack2 instance = new Stack2();\n int expResult = 3;\n instance.push(1);\n instance.push(2);\n instance.push(expResult);\n int result = instance.pop();\n assertEquals(expResult, result);\n }", "public static void main(String[] args) {\n// System.out.println(\"as.getSize() == \" + as.getSize());\n// as.pop();\n// System.out.println(\"as.pop() == \" + as);\n// System.out.println(\"as.peek() == \" + as.peek());\n// as.push(\"17\");\n// System.out.println(as);\n\n LinkedListStack<Integer> stack = new LinkedListStack<>();\n\n for(int i = 0 ; i < 5 ; i ++){\n stack.push(i);\n System.out.println(stack);\n }\n\n stack.pop();\n System.out.println(stack);\n\n }", "@Override\n\tpublic int pop() {\n\t\tint topValue;\n\t\tif (top != -1) {\n\t\t\ttopValue = intContainer[top];\n\t\t\ttop = top - 1;\n\t\t\treturn topValue;\n\t\t} else {\n\t\t\tSystem.out.println(\"Stack Undeflow\");\n\t\t\treturn -1;\n\t\t}\n\t}", "public int pop() {\r\n LinkedList<Integer> queue = new LinkedList<>();\r\n int value = stack.poll();\r\n while(!stack.isEmpty()){\r\n queue.offer(value);\r\n value = stack.poll();\r\n }\r\n stack = queue;\r\n return value;\r\n }", "public int pop();", "@Test\n public void testPrintStack() {\n System.out.println(\"printStack\");\n Stack2 instance = new Stack2();\n instance.push(2);\n instance.push(4);\n instance.push(5);\n int temp = instance.pop();\n instance.printStack();\n }", "@Test\r\n public void testPopShouldReturnObjectWhenStackNotEmpty() {\r\n stackInstance=new StackUsingLinkedList<Integer>();\r\n stackInstance.push(49);\r\n stackInstance.push(57);\r\n stackInstance.push(2);\r\n Integer actualOutput=stackInstance.pop();\r\n Integer expectedOutput=2;\r\n assertEquals(expectedOutput,actualOutput);\r\n }", "public void pop(){\n // check if there is any stack present or not\n if(this.arr==null){\n System.out.println(\"No stack present, first create a stack\");\n return;\n }\n // check if stack is empty\n if(this.topOfStack==-1){\n System.out.println(\"Stack is empty, can't pop from stack\");\n return;\n }\n // if stack is not empty\n this.arr[this.topOfStack]=Integer.MIN_VALUE;\n this.topOfStack--;\n }", "public int pop(){\n return runStack.pop();\n }", "public int pop() {\n return stack1.pop();\n }", "@Test\r\n\tpublic void testPop()\r\n\t{\n\t\tassertEquals(null,myStack.pop());\r\n\t\r\n\t\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\t\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\t\tassertEquals(27,myStack.top().getId());\r\n\t\tassertEquals(\"Chur\",myStack.pop().getName());\r\n\t\tassertEquals(4,myStack.pop().getId());\r\n\t\tassertEquals(2,myStack.pop().getId());\r\n\t\t\r\n\t\t// leerer Stack\r\n\t\tassertEquals(null,myStack.pop());\r\n\t\tassertEquals(null,myStack.top());\r\n\t}", "public int pop() { return 0; }", "public int pop() {\n\n if (top > 0) {\n top --;\n }\n else {\n System.out.println(\"Stack Underflow\");\n return -100;\n }\n return stack[top];\n }", "int pop() {\r\n\t\ttop--;\r\n\t\treturn stack[top];\r\n\t}", "@Test\n public void pop() {\n SimpleStack stack = new DefaultSimpleStack();\n Item item = new Item();\n Item item1 = new Item();\n stack.push(item);\n stack.push(item1);\n\n // When we pop the stack\n Item topItem = stack.pop();\n\n // Then…\n assertEquals(\"The stack constains 1 item\", 1, stack.getSize());\n assertSame(\"The first item is on top of the stack\", item, stack.peek());\n assertSame(item1, topItem);\n }", "@Test\n public void testRememberNumberPushPop(){\n ms = new MyStack();\n int pushNum=4, popNum;\n ms.push(pushNum);\n popNum=ms.pop();\n assertEquals(pushNum,popNum);\n }", "public void pop() {\n System.out.print(stack1.pop());\n }", "public void pop() {\n if (top==-1) {\n System.out.println(\"Stack is empty\");\n return;\n\n\n } else {\n System.out.println(\"item popde is:-\"+ stack[top]);\n top--;\n }\n }", "public void pop();", "public void pop() throws StackUnderflowException;", "public void printStack(){\n Stack<Integer> tempStack = new Stack<>();\n if (numStack.empty()==true){\n System.out.println(Integer.MIN_VALUE);\n }\n else{\n while (numStack.empty() == false){\n tempStack.push(numStack.peek());\n numStack.pop();\n }\n while (tempStack.empty() == false){\n int i = tempStack.peek();\n System.out.println(i);\n tempStack.pop();\n numStack.push(i);\n } \n }\n }", "private static int pop(Stack<Integer> top_ref) {\n /*If stack is empty then error */\n if (top_ref.isEmpty()) {\n System.out.println(\"Stack Underflow\");\n System.exit(0);\n }\n //pop the data from the stack\n return top_ref.pop();\n }", "public static void main(String[] args) {\r\n\r\n\t\tArrayStack arrst = new ArrayStack(5);\r\n\t\tIntStream.range(0, 5).forEach(arrst::push);\r\n\t\tSystem.out.println(\"Response of peek \" + arrst.peek());\r\n\t\tSystem.out.println(\"Response of pop\" + arrst.pop());\r\n\t\tSystem.out.println(\"push one random number in the middle\");\r\n\t\tarrst.push(10);\r\n\t\tSystem.out.println(\"printing stack after first pop\");\r\n\t\tarrst.display();\r\n\r\n\t\tIntStream.range(0, arrst.size()).forEach(i -> arrst.pop());\r\n\r\n\t\tSystem.out.println(\"isEmpty after poping all the elements ???\" + arrst.isEmpty());\r\n\r\n\t\tarrst.display();\r\n\r\n\t}", "public void pop(){\n \n if(top==null) System.out.println(\"stack is empty\");\n else top=top.next;\n \t\n }", "int pop();", "int pop();", "int pop();", "int pop();", "int pop();", "public void pop() {\n\t\tif (top == -1) {\n\t\t\tSystem.out.println(\"Stack is empty\");\n\t\t} else {\n\t\t\tSystem.out.println(stacks[top] + \" is popped\");\n\t\t\ttop--;\n\t\t}\n\t\tsize--;\n\t}", "Object pop(){\r\n\t\tlastStack = getLastStack();\r\n\t\tif(lastStack!=null){\r\n\t\t\tint num = lastStack.pop();\r\n\t\t\treturn num;\r\n\t\t} else {stacks.remove(stacks.size()-1);\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public void pop()\r\n\t{\r\n\t\ttop--;\r\n\t\tstack[top] = null;\r\n\t}", "public int pop(){\n \tint data=0;\n \tif(isEmpty())\n \tSystem.out.println(\"Stack is underflow\");\n \telse\n \tdata=elements[top--];\n \treturn data;\n\t}", "public int pop() {\n return stack.pop();\n }", "public int pop() {\n return stack.pop();\n }", "public T pop(){ \r\n \t--this.size;\r\n \treturn stack1.pop();\r\n }", "public Integer pop() \n\t{ \n\t\tint x = super.pop(); \n\t\tmin.pop(); \n\t\treturn x; \n\t}", "int pop() \r\n {\n if(top < 0)\r\n {\r\n System.out.println(\"Stack Underflow Occurred!\");\r\n return -1;\r\n }\r\n //Write your code here\r\n int p = a[top];\r\n top--;\r\n return p; \r\n }", "public int pop(){\n if (isEmpty()) throw new RuntimeException(\"Stack underflow\");\n int tmp=myarray[top];\n top--;\n return tmp;\n \n \n }", "public int pop() {\n return popStack.pop();\n }", "static int pop(Stack<Integer> top_ref) {\r\n /* If stack is empty then error */\r\n if (top_ref.isEmpty()) {\r\n System.out.println(\"Stack Underflow\");\r\n System.exit(0);\r\n }\r\n\r\n // pop the data from the stack\r\n return top_ref.pop();\r\n }", "@Override\r\n\tpublic int pop() {\n\t\tif(tos < 0){\r\n\t\t\tSystem.out.println(\"스택이 비어있음.\");\r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\telse return stack[tos--];//하나 꺼내주고 화살표 한칸아래로 이동\r\n\t}", "public int pop(){\n if (top==null) throw new EmptyStackException();\n int data = top.data;\n top=top.next;\n return data;\n }", "@Override\r\n\tpublic void pop() {\n\t\tSystem.out.println(\"Pop logic for Fixed Stack\");\r\n\t}", "public Object pop();", "int pop1(TwoStack sq)\n {\n if(sq.top1>=0)\n {\n int yo=sq.arr[sq.top1];\n sq.top1--;\n return yo;\n }\n else\n {\n return -1;\n }\n \n }", "public T pop() {\r\n\t\t\r\n\t\tT numPila = this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\tfor (StackObserver<T> o : observers )\r\n\t\t\to.onPop(numPila);\r\n\t\t\r\n\t\t\r\n\t\t\t\r\n\t\treturn numPila;\r\n\t\t\r\n\t\t//return this.num.remove(this.num.size()-1);\r\n\t\t\r\n\t\t\r\n\t}", "public void pop() {\n\t\tif(stackTmp.isEmpty()){\n\t\t\twhile(!stack.isEmpty()){\n\t\t\t\tint tmp = stack.peek();\n\t\t\t\tstackTmp.push(tmp);\n\t\t\t\tstack.pop();\n\t\t\t}\n\t\t}\n\t\telse{\n\t\t\tstackTmp.pop();\n\t\t}\n\t}", "@Override\n\tpublic T pop() {\n\t\tif(isEmpty()) {\n\t\t\tSystem.out.println(\"Stack is Empty\");\n\t\treturn null;}\n\t\ttop--;\t\t\t\t\t\t//top-- now before since we need index top-1\n\t\tT result = stack[top];\n\t\tstack[top] = null;\n\t\treturn result;\n\t\t\t\n\t}", "public int pop() {\n //出栈为空,将进栈导入\n if (outSt.isEmpty()){\n while (!inSt.isEmpty()){\n outSt.push(inSt.pop());\n }\n }\n\n //弹出\n return outSt.pop();\n }", "int pop()\n\t{\n // Your code here\n if(top == -1){\n return -1;\n }\n int x = arr[top];\n top--;\n return x;\n\t}", "public T pop() {\n \tT retVal = stack.get(stack.size() - 1); // get the value at the top of the stack\n \tstack.remove(stack.size() - 1); // remove the value at the top of the stack\n \treturn retVal;\n }", "public static void main(String[] args) {\n// reverse(queue);\n// System.out.println(queue);\n\n Stack<Integer> stack=new Stack<>();\n stack.push(1);\n stack.push(2);\n stack.push(3);\n stack.push(4);\n System.out.println(stack);\n stack=reverse(stack);\n System.out.println(stack);\n\n\n\n\n }", "public int pop() {\n /**\n * 将stack中所有元素逆序保存到otherStack中后弹出otherStack栈顶元素\n */\n while (!stack.isEmpty()) {\n otherStack.push(stack.pop());\n }\n return otherStack.pop();\n }", "public static void main(String[] args) {\n Stack<Integer> st = new Stack<Integer>();\n System.out.println(\"push\"+st.push(2));\n st.push((54));\n st.push(10);\n System.out.println(\"pop \"+st.pop());\n System.out.println(st.peek());\n System.out.println(st.isEmpty());\n \n System.out.println(\"----\");\n \n Queue<Integer> qu = new LinkedList<Integer>();\n System.out.println(qu.isEmpty());\n System.out.println(qu.add(5));\n System.out.println(qu.add(12));\n System.out.println(qu.size());\n qu.clear();\n System.out.println(qu.size());\n \n }", "public E pop(){\n return this.stack.remove(stack.size()-1);\n }", "public int pop() { //第二个栈为空 , 就将第一个栈的数据往第二个里面加\n if(empty()){\n throw new UnsupportedOperationException(\"栈为空\");\n }\n if(temp2.empty()){\n while(!temp1.empty()){\n temp2.push(temp1.pop());\n }\n }\n return temp2.pop(); //不管是否为空,直接pop第二个栈\n }", "static void stackPush(Stack<Integer> stack)\r\n\t{\r\n\t\tfor(int i=0;i<5;i++)\r\n\t\t{\r\n\t\t\tstack.push(i*5);\r\n\t\t}\r\n\t\tSystem.out.println(\"Printing the stack value which is push:\");\r\n\t\tSystem.out.println(\"Push :\"+stack +\"\\nsize of stack: \"+ stack.size());\r\n\t}", "public static void main(String[] args) {\n\t\tGenericStack<String> myStringStack = new GenericStack<>();// Declearing a GenericStack object\n\t\t\n\t\t// Places string literals into the GenericStack object \n\t\tmyStringStack.push(\"Apple\");\n\t\tmyStringStack.push(\"Pie\");\n\t\tmyStringStack.push(\"Is\");\n\t\tmyStringStack.push(\"Good\");\n\t\tmyStringStack.push(\"By\");\n\t\tmyStringStack.push(\"Itself\");\n\t\tmyStringStack.push(\"But\");\n\t\tmyStringStack.push(\"Better\");\n\t\tmyStringStack.push(\"With\");\n\t\tmyStringStack.push(\"Icecream\");\n\t\t\n\t\tmyStringStack.toString();// Display the object \n\t\t\n\t\t// Remove string literals from the object \n\t\tmyStringStack.pop();\n\t\tmyStringStack.pop();\n\t\tmyStringStack.pop();\n\t\tmyStringStack.pop();\n\t\tmyStringStack.pop();\n\t\tmyStringStack.pop();\n\t\t\n\t\tmyStringStack.toString();// Display the object\n\t\t\n\t\tGenericStack<Integer> myIntStack = new GenericStack<>();// Declearing another GenericStack object\n\t\t\n\t\tfor(int i = 0; i <= 10; i++) {\n\t\t\tmyIntStack.push(i); // Filling the Integer \"stack\"\n\t\t}\n\t\t\n\t\tmyIntStack.toString(); // Display the object \n\t\t\n\t\t// Removing Integer objects from the GenericStack object myIntStack\n\t\tmyIntStack.pop();\n\t\tmyIntStack.pop();\n\t\tmyIntStack.pop();\n\t\tmyIntStack.pop();\n\t\tmyIntStack.pop();\n\t\n\t\t\n\t\tmyIntStack.toString();// Display the object\n\t}", "public int pop() {\n peek();\n return stack2.pop();\n }", "@Override\n\tpublic int pop() {\n\t\treturn 0;\n\t}", "@Test\n public void testPop(){\n FunctionalLinkedList newList = new FunctionalLinkedList(); \n stack = new ImprovedStackImpl(newList);\n for(int i = 1; i < 101; i++){\n stack.push(i * 10);\n }\n \n // Check that popping an element leave the correct element on top.\n stack.pop();\n int pop = (Integer) stack.pop().getReturnValue();\n assertEquals(\"Initial pop did not work correctly.\", 990, pop);\n \n // Check that the size after popping is correct.\n int size = stack.size();\n assertEquals(\"Stack is not the correct size.\", 98, size);\n \n // Check that correct error is returned from popping an empty stack.\n for(int i = 98; i > 0; i--){\n stack.pop();\n }\n ErrorMessage error = stack.pop().getError();\n assertEquals(\"A correct error message is not returned.\", ErrorMessage.EMPTY_STRUCTURE, error);\n }", "static void stack_peek(Stack<Integer> stack)\r\n\t{\r\n\t\tInteger element=stack.peek();\r\n\t\tSystem.out.println(\"Element on stack top :\" + element);\r\n\t}", "@Test\n public void testStackInteger() {\n DatastructureTest.INTSTACK.push(3);\n DatastructureTest.INTSTACK.push(7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 7);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == 3);\n Assert.assertTrue(DatastructureTest.INTSTACK.peek() == -1);\n Assert.assertTrue(DatastructureTest.INTSTACK.pop() == -1);\n }", "public int pop() {\n while (!push.isEmpty()){\n pull.push(push.pop());\n }\n int result= pull.pop();\n while (!pull.isEmpty()){\n push.push(pull.pop());\n }\n return result;\n }", "public int pop() {\n if (!popStack.isEmpty()) {\n return popStack.pop();\n }\n shift();\n return popStack.pop();\n }", "public Object pop() {\n return stack.pop();\n }", "public static void main(String[] args) {\n\t\tStack s = new Stack();\r\n\t\ts.push(10);\r\n\t\ts.push(20);\r\n\t\ts.push(30);\r\n\t\tSystem.out.println(s.pop());\r\n\t\ts.printStack();\r\n\t}", "public Item pop(){\n\t\tif(isEmpty()){\r\n\t\t\tSystem.out.println(\"Stack is empty\");\r\n\t\t}\r\n\t\t\r\n\t\tItem item=first.item;\r\n\t\tfirst=first.next;\r\n\t\tN--;\r\n\t\treturn item;\r\n\t\r\n\r\n\t}", "@Test\r\npublic void testTop()\r\n{\n\tassertEquals(null,myStack.top());\r\n\r\n\tassertEquals(true, myStack.push(new Element(2,\"Basel\")));\t\r\n\tassertEquals(true, myStack.push(new Element(4,\"Wil\")));\t\r\n\tassertEquals(true, myStack.push(new Element(27,\"Chur\")));\r\n\tassertEquals(27,myStack.top().getId());\r\n\tassertEquals(27,myStack.pop().getId());\r\n\tassertEquals(4,myStack.top().getId());\r\n\tassertEquals(4,myStack.pop().getId());\r\n\tassertEquals(2,myStack.pop().getId());\r\n\t\r\n\t// Stack leer\r\n\tassertEquals(null,myStack.top());\r\n\r\n}", "@SubL(source = \"cycl/stacks.lisp\", position = 3109) \n public static final SubLObject stack_pop(SubLObject stack) {\n checkType(stack, $sym1$STACK_P);\n if ((NIL == stack_empty_p(stack))) {\n {\n SubLObject elements = stack_struc_elements(stack);\n SubLObject item = elements.first();\n SubLObject rest = elements.rest();\n _csetf_stack_struc_num(stack, Numbers.subtract(stack_struc_num(stack), ONE_INTEGER));\n _csetf_stack_struc_elements(stack, rest);\n return item;\n }\n }\n return NIL;\n }", "public T pop() { //pop = remove the last element added to the array, in a stack last in, first out (in a queue pop and push from different ends)\n try {\n T getOut = (T) myCustomStack[numElements - 1]; //variable for element to remove (pop off) = last element (if you have 7 elements, the index # is 6)\n myCustomStack[numElements] = null; //remove element by making it null\n numElements--; //remove last element, decrease the numElements\n return getOut; //return popped number\n\n } catch (Exception exc) {\n System.out.println(\"Can't pop from empty stack!\");\n return null;\n }\n }", "@Test\n public void testPushAndPopD() {\n System.out.println(\"popC - Out of Order\");\n\n String elementOne = \"Bill\";\n String elementTwo = \"Steve\";\n String elementThree = \"Tim\";\n String elementFour = \"Dave\";\n\n //Stack<String> instance = new StackArrayImpl();\n int emptySize = instance.size();\n assertEquals(emptySize, 0);\n assertEquals(instance.isEmpty(), true);\n\n instance.push(elementOne);\n instance.push(elementTwo);\n instance.push(elementThree);\n\n int fourSize = instance.size();\n assertEquals(fourSize, 3);\n assertEquals(instance.isEmpty(), false);\n\n String resultThree = instance.pop();\n String resultTwo = instance.pop();\n\n instance.push(elementFour);\n String resultFour = instance.pop();\n\n String resultOne = instance.pop();\n\n assertEquals(elementOne, resultOne);\n assertEquals(elementTwo, resultTwo);\n assertEquals(elementThree, resultThree);\n assertEquals(elementFour, resultFour);\n\n int zeroSize = instance.size();\n assertEquals(zeroSize, 0);\n assertEquals(instance.isEmpty(), true);\n\n String shouldBeNull = instance.pop();\n\n assertEquals(shouldBeNull, null);\n\n assertEquals(instance.size(), 0);\n assertEquals(instance.isEmpty(), true);\n\n }", "@Test\n public void testStack() {\n DatastructureTest.STACK.push(3);\n DatastructureTest.STACK.push(7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 7);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == 3);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.peek()) == -1);\n Assert.assertTrue(((Integer) DatastructureTest.STACK.pop()) == -1);\n }", "public AnyType pop() throws StackException;", "public int top() {\r\n Queue<Integer> temp=new LinkedList<Integer>();\r\n int counter=0;\r\n while(!stack.isEmpty()){\r\n temp.add((Integer) stack.poll());\r\n counter++;\r\n \r\n }\r\n while(counter>1)\r\n {\r\n \r\n stack.add(temp.poll());\r\n counter--;\r\n }\r\n int topInteger=temp.poll();\r\n stack.add(topInteger);\r\n return topInteger;\r\n \r\n }", "public GenericStack popStack(){\n if(isEmpty() == true)return null;\n GenericStack temp = top;\n // makes next item in list the tip\n top = top.next;\n return temp;\n }", "Object pop();", "private void pop() {\r\n pop( false );\r\n }", "@Test\n public void testPushTop(){\n ms = new MyStack();\n ms.push(2);\n assertEquals(2,ms.top());\n }", "public int pop() {\n int result;\n while(!stack.isEmpty()){\n cache.add(stack.removeLast());\n }\n result = cache.removeLast();\n while(!cache.isEmpty()){\n stack.add(cache.removeLast());\n }\n System.out.println(result);\n return result;\n }", "private final Object pop() {\r\n\t\treturn eval_stack.remove(eval_stack.size() - 1);\r\n\t}", "@Test /*Test 20 - implemented pop() method to NumStack class. Refactored this method to a singe \n line return statement.*/\n public void testPop() throws Exception {\n numStackTest.push(5);\n assertEquals(\"The pop() method should return 5\", numStackTest.pop(), 5, 0.001);\n assertTrue(\"The stack should be empty after popping the only entry\", numStackTest.isEmpty());\n }", "public Object pop() {\n if (top != null) {\n Object item = top.getOperand();\n\n top = top.next;\n return item;\n }\n\n System.out.println(\"Stack is empty\");\n return null;\n\n }", "static void showPop(Stack<String> stack) {\n\t\tSystem.out.println(\"pop -> \" + stack.pop());\n\t\tSystem.out.println(\"Stack: \" + stack);\n\t}", "public int pop() {\n if (this.stack2.empty()) {\n while (!this.stack1.empty()) {\n this.stack2.push(this.stack1.pop());\n }\n }\n if (!this.stack2.empty()) {\n return this.stack2.pop();\n }\n return -1;\n\n }", "@Test\n public void testTop() {\n System.out.println(\"top\");\n Stack2 instance = new Stack2();\n int expResult = 7;\n instance.push(7);\n int result = instance.top();\n assertEquals(expResult, result);\n }", "@Override\n\tpublic void decrementPop(int x) {\n\t\t\n\t}", "int pop1(TwoStack sq) {\n if (sq.top1 >= 0) {\n int x = sq.arr[sq.top1];\n sq.top1--;\n return x;\n } else {\n return -1;\n }\n }", "@Override\r\n\tpublic T pop() {\r\n\t\tT top = stack[topIndex];\r\n\t\tstack[topIndex] = null;\r\n\t\ttopIndex--;\r\n\t\treturn top;\r\n\t}", "public int pop() {\n if(!stack2.isEmpty()) return stack2.pop();\n else {\n while(!stack1.isEmpty()) {\n stack2.push(stack1.pop());\n }\n return stack2.pop();\n }\n }", "public static void main(String[] args) \r\n\t{\n\t \r\n Stack st=new Stack();\r\n st.push(6);\r\n st.push(5);\r\n st.push(3);\r\n st.push(2);\r\n st.push(1);\r\n \r\n System.out.println( st.peek());\r\n \r\n \r\n // System.out.println( st.isEmpty());\r\n\t}", "int pop2(TwoStack sq)\n {\n if(sq.top2<sq.size)\n {\n int yo2=sq.arr[sq.top2];\n sq.top2++;\n return yo2;\n }\n else\n {\n return -1;\n }\n \n }", "public E pop()\n {\n E topVal = stack.removeFirst();\n return topVal;\n }", "public int pop() {\n int carNumber = -1;\n \n if(top > -1) {\n carNumber = carStack[top];\n top--;\n }\n else {\n System.out.println(\"The car stack is empty\");\n }\n return carNumber;\n }" ]
[ "0.8389153", "0.8355531", "0.788679", "0.7804555", "0.77461874", "0.7720008", "0.7699178", "0.7698796", "0.76645064", "0.76469874", "0.7611217", "0.7610851", "0.7583652", "0.75712085", "0.7546682", "0.7531877", "0.7528509", "0.7502759", "0.7493656", "0.7483978", "0.74646527", "0.7457839", "0.7435715", "0.743424", "0.74304956", "0.74170697", "0.74170375", "0.7370851", "0.7356958", "0.73536175", "0.73536175", "0.73536175", "0.73536175", "0.73536175", "0.7345999", "0.7343564", "0.73391926", "0.7338252", "0.7332372", "0.7325924", "0.73241055", "0.7303871", "0.72854185", "0.7285049", "0.72803235", "0.7228787", "0.7225899", "0.721401", "0.72046894", "0.71691847", "0.7164415", "0.71630967", "0.7155365", "0.7154323", "0.7148918", "0.7142311", "0.7142139", "0.71351177", "0.7134544", "0.7133886", "0.7127963", "0.7127922", "0.7127287", "0.712544", "0.7122835", "0.7121759", "0.7120303", "0.71101534", "0.7104952", "0.7103821", "0.7091101", "0.7085735", "0.708442", "0.7081664", "0.7075003", "0.7067754", "0.70637584", "0.7061753", "0.7054317", "0.70506215", "0.7038089", "0.70313746", "0.7027155", "0.7026246", "0.7025552", "0.7015907", "0.70118886", "0.70112437", "0.7009509", "0.70088625", "0.7007799", "0.7006248", "0.7005217", "0.7003935", "0.70028496", "0.6993026", "0.6992357", "0.69881505", "0.69799787", "0.6975138" ]
0.7120012
67
json representation of the Entity.
public JsonObject toJson();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String jsonify() {\n return gson.toJson(this);\n }", "public String toJson() { return new Gson().toJson(this); }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\n return JSON.getGson().toJson(this);\n }", "public String toJson() {\r\n\r\n\treturn new Gson().toJson(this);\r\n }", "public String toJSON(){\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "@Override\n\tpublic String toJSON() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "public String toJSON() {\n return new Gson().toJson(this);\n }", "@Override\n\tprotected String toJSON()\n\t{\n\t\treturn getJSON(null);\n\t}", "@Override\n public String toString() {\n return jsonString;\n }", "public abstract String toJson();", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "@Override\n\tpublic String toJSON()\n\t{\n\t\tStringJoiner json = new StringJoiner(\", \", \"{\", \"}\")\n\t\t.add(\"\\\"name\\\": \\\"\" + this.name + \"\\\"\")\n\t\t.add(\"\\\"id\\\": \" + this.getId());\n\t\tString locationJSON = \"\"; \n\t\tif(this.getLocation() == null)\n\t\t{\n\t\t\tlocationJSON = null;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tlocationJSON = this.getLocation().toJSON(); \n\t\t}\n\t\tjson.add(\"\\\"location\\\": \" + locationJSON);\n\t\tStringJoiner carsJSON = new StringJoiner(\", \", \"[\", \"]\");\n\t\tfor(Object r : cars)\n\t\t{\n\t\t\tcarsJSON.add(((RollingStock) r).toJSON());\n\t\t}\n\t\tjson.add(\"\\\"cars\\\": \" + carsJSON.toString());\n\t\treturn json.toString(); \n\t}", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "public abstract Object toJson();", "@Override\r\n public JSONObject toJSON() {\r\n return this.studente.toJSON();\r\n }", "public String toJsonData() {\n\t\treturn new Gson().toJson(this);\n\t}", "@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }", "String toJSON();", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "public String toJson() {\n try{\n return new JsonSerializer().getObjectMapper().writeValueAsString(this);\n } catch (IOException e){\n throw new RuntimeException(e);\n }\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "public abstract String toJsonString();", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }", "public String toJson() {\n return this.toJson(SerializationFormattingPolicy.None);\n }", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toJsonString() {\n return JsonUtils.getGson().toJson(toJson());\n }", "public String getJson();", "public String getAsJson() {\n StringBuffer sb = new StringBuffer();\n sb.append(\"{\\\"code\\\": \\\"\").append(this.code).append(\"\\\", \");\n sb.append(\"\\\"color\\\": \\\"\").append(this.color).append(\"\\\", \");\n\n /* Append a size only if the product has a Size */\n if (this.size.getClass() != NoSize.class) {\n sb.append(\"\\\"size\\\": \\\"\").append(this.size).append(\"\\\", \");\n }\n\n sb.append(\"\\\"price\\\": \").append(this.price).append(\", \");\n sb.append(\"\\\"currency\\\": \\\"\").append(this.currency).append(\"\\\"}, \");\n\n return sb.toString();\n }", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String encode() {\n JsonObject tmp = new JsonObject();\n addIfSet(tmp, \"id\", id);\n addIfSet(tmp, \"courseId\", courseId);\n addIfSet(tmp, \"sheetId\", sheetId);\n addIfSet(tmp, \"maxPoints\", maxPoints);\n addIfSet(tmp, \"type\", type);\n addIfSet(tmp, \"link\", link);\n addIfSet(tmp, \"bonus\", bonus);\n addIfSet(tmp, \"linkName\", linkName);\n addIfSet(tmp, \"submittable\", submittable);\n addIfSet(tmp, \"resultVisibility\", resultVisibility);\n tmp = super.encodeToObject(tmp);\n return tmp.toString();\n }", "public String toString() {\n return \"Entity(coordinates: \" + this.coordinates + \", icon: \" + this.icon\n + \")\";\n }", "public String toJson() {\n\n final StringBuilder jsonRepresentation = new StringBuilder();\n\n jsonRepresentation.append(\"[\");\n\n final Iterator<TrackingDataEntry> entriesIter = getEntries().iterator();\n while (entriesIter.hasNext()) {\n\n final TrackingDataEntry entry = entriesIter.next();\n\n serializeTrackingDataVariables(jsonRepresentation, entry.getVars());\n\n if (null != entry.getName()) {\n jsonRepresentation.append(\",\\\"name\\\":\\\"\").append(entry.getName()).append(\"\\\"\");\n }\n if (null != entry.getId()) {\n jsonRepresentation.append(\",\\\"id\\\":\\\"\").append(entry.getId()).append(\"\\\"\");\n }\n if (null != entry.getType()) {\n jsonRepresentation.append(\",\\\"type\\\":\\\"\").append(entry.getType()).append(\"\\\"\");\n }\n if (null != entry.getUrl()) {\n jsonRepresentation.append(\",\\\"url\\\":\\\"\").append(entry.getUrl()).append(\"\\\"\");\n }\n jsonRepresentation.append(\"}\");\n if (entriesIter.hasNext()) {\n jsonRepresentation.append(\",\");\n }\n }\n\n jsonRepresentation.append(\"]\");\n\n return jsonRepresentation.toString();\n }", "@Override\r\n\tpublic JSONObject toJSON() {\n\t\treturn null;\r\n\t}", "public String toJSON() throws JSONException;", "public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }", "public String toJson() throws JsonProcessingException {\n return JSON.getMapper().writeValueAsString(this);\n }", "public String serializeJSON () {\n ObjectMapper mapper = new ObjectMapper();\n String jsonString = null;\n \n try {\n jsonString = mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n e.printStackTrace();\n }\n return jsonString;\n }", "@Override\r\n\tpublic String toJsonString() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic JSONObject toJson() throws JSONException {\n\t\tJSONObject result = super.toJson();\n\t\treturn result;\n\t}", "@Override\n public String toJson() {\n return \"{'content':'\" + this.content + \"'}\";\n }", "@Override\n public Object toJson() {\n JSONObject json = (JSONObject)super.toJson();\n json.put(\"name\", name);\n json.put(\"reason\", reason);\n return json;\n }", "public JSONObject toJson() {\n }", "protected String toJSONFragment() {\n StringBuffer json = new StringBuffer();\n boolean first = true;\n if (isSetProductCategoryId()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryId\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryId()));\n first = false;\n }\n if (isSetProductCategoryName()) {\n if (!first) json.append(\", \");\n json.append(quoteJSON(\"ProductCategoryName\"));\n json.append(\" : \");\n json.append(quoteJSON(getProductCategoryName()));\n first = false;\n }\n if (isSetParent()) {\n if (!first) json.append(\", \");\n json.append(\"\\\"Parent\\\" : {\");\n Categories parent = getParent();\n\n\n json.append(parent.toJSONFragment());\n json.append(\"}\");\n first = false;\n }\n return json.toString();\n }", "public String toJson() throws Exception {\n\t\treturn WebAccess.mapper.writeValueAsString(this);\n\t}", "public String toJson()\n\t{\n\t\tJsonStringEncoder encoder = JsonStringEncoder.getInstance();\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tbuilder.append('{');\n\n\t\tboolean needComma = true;\n\t\tif (m_Message != null)\n\t\t{\n\t\t\tchar [] message = encoder.quoteAsString(m_Message.toString());\n\t\t\tbuilder.append(\"\\n \\\"message\\\" : \\\"\").append(message).append('\"').append(',');\n\t\t\tneedComma = false;\n\t\t}\n\n\t\tif (m_ErrorCode != null)\n\t\t{\n\t\t\tbuilder.append(\"\\n \\\"errorCode\\\" : \").append(m_ErrorCode.getValueString());\n\t\t\tneedComma = true;\n\t\t}\n\n\t\tif (m_Cause != null)\n\t\t{\n\t\t\tif (needComma)\n\t\t\t{\n\t\t\t\tbuilder.append(',');\n\t\t\t}\n\t\t\tchar [] cause = encoder.quoteAsString(m_Cause.toString());\n\t\t\tbuilder.append(\"\\n \\\"cause\\\" : \\\"\").append(cause).append('\"');\n\t\t}\n\n\t\tbuilder.append(\"\\n}\\n\");\n\n\t\treturn builder.toString();\n\t}", "public String toJson() {\n Gson gson = new Gson();\n TurretServer ta = cast(this);\n return gson.toJson(ta);\n }", "@Override\n\tpublic JSONObject toJson() {\n\t\treturn null;\n\t}", "@JsonIgnore\n\tpublic String getAsJSON() {\n\t\ttry {\n\t\t\treturn TransportService.mapper.writeValueAsString(this); // thread-safe\n\t\t} catch (JsonGenerationException e) {\n\t\t\tlog.error(e, \"JSON Generation failed\");\n\t\t} catch (JsonMappingException e) {\n\t\t\tlog.error(e, \"Mapping from Object to JSON String failed\");\n\t\t} catch (IOException e) {\n\t\t\tlog.error(e, \"IO failed\");\n\t\t}\n\t\treturn null;\n\t}", "protected JSONObject getJsonRepresentation() throws Exception {\n\n JSONObject jsonObj = new JSONObject();\n jsonObj.put(\"name\", getName());\n return jsonObj;\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"name\", name);\n json.put(\"startingTime\", startingTime);\n json.put(\"endingTime\", endingTime);\n json.put(\"event\", eventToJson());\n json.put(\"duration\", duration);\n return json;\n }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getThingName() != null)\n sb.append(\"ThingName: \").append(getThingName()).append(\",\");\n if (getEntityType() != null)\n sb.append(\"EntityType: \").append(getEntityType());\n sb.append(\"}\");\n return sb.toString();\n }", "@Override\n protected String bodyAsJsonString() {\n return gson.toJson(draft);\n }", "public String toJson() {\n\t\treturn Serializer.serializeLevelPack(this);\n\t}", "public String toJson() throws Exception {\r\n\t\treturn SimpleJson.HashMapToText(getJsonToken());\r\n\t}", "@JsonValue\n @Override\n public String toString()\n {\n return value;\n }", "public String toJsonString() {\n\t\tString json = null;\n\t\t\n\t\tObjectMapper mapper = new ObjectMapper();\n\t\tmapper.setSerializationInclusion(Include.NON_NULL);\n\t\tmapper.configure(SerializationFeature.WRAP_ROOT_VALUE, true);\n\t\ttry {\n\t\t\tjson = mapper.writeValueAsString(this);\n\t\t} catch (JsonProcessingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn json;\n\t}", "@Transactional(propagation = Propagation.REQUIRED)\n\tpublic String getEmployeeListJSON(){\n\t\tGson gson = new GsonBuilder()\n\t\t\t\t\t\t.setDateFormat(\"dd/MM/yyyy\")\n\t\t\t\t\t\t.create();\n\t\t String rtnString = gson.toJson(daoImpl.getEmployees());\n\t\t \n\t\t return rtnString;\n\t}", "public JsonObject toJson() {\n\t\tJsonObject json = new JsonObject();\n\t\t\n\t\tif (id != null) {\n\t\t\tjson.addProperty( \"id\", id );\n\t\t}\n\t\tif (name != null) {\n\t\t\tjson.addProperty( \"name\", name );\n\t\t}\n\t\tif (version != null) {\n\t\t\tjson.addProperty( \"version\", version );\n\t\t}\n\t\tif (context != null) {\n\t\t\tjson.addProperty( \"context\", context );\n\t\t}\n\t\tif (provider != null) {\n\t\t\tjson.addProperty( \"provider\", provider );\n\t\t}\n\t\tif (description != null) {\n\t\t\tjson.addProperty( \"description\", description );\n\t\t}\n\t\tif (status != null) {\n\t\t\tjson.addProperty( \"status\", status );\n\t\t}\n\t\treturn json;\n\t}", "public static <T> String serizalize(T entity) {\n\t\t\n\t\tif (entity != null) {\n\t\t\tGson gson = new GsonBuilder()\n\t\t\t\t\t// .setPrettyPrinting() // uncomment this line to turn on debugging\n\t\t\t\t\t.registerTypeAdapterFactory(new EnumAdapterFactory())\n\t\t\t\t\t.registerTypeAdapter(Date.class, new JSONDateTypeAdapter())\n\t\t\t\t\t.create();\n\n\t\t\treturn gson.toJson(entity);\n\t\t}\n\n\t\treturn null;\n\t}", "@Override\n public String toJsonString() {\n GsonBuilder gsonBuilder = new GsonBuilder();\n gsonBuilder.registerTypeAdapter(TransferOperation.class, new TransferSerializer());\n return gsonBuilder.create().toJson(this);\n }", "@Override\n public JSONObject toJson() {\n JSONObject json = new JSONObject();\n json.put(\"frontInfo\", frontInfo);\n json.put(\"backInfo\", backInfo);\n\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = dateFormat.format(startTime);\n\n json.put(\"startTime\", formattedDate);\n json.put(\"cardID\", cardID);\n return json;\n }", "protected JSONObject getJsonRepresentation() throws Exception {\r\n\r\n JSONObject jsonObj = new JSONObject();\r\n jsonObj.put(\"note\", note);\r\n return jsonObj;\r\n }", "JSONObject toJson();", "JSONObject toJson();", "@Override\n public JsonElement toJson() {\n\n // get a list of active flow uuids\n List<String> flowUuids = new ArrayList<>();\n for (Flow flow : m_activeFlows) {\n flowUuids.add(flow.getUuid());\n }\n\n return JsonUtils.object(\n \"org\", m_org.toJson(),\n \"fields\", JsonUtils.toJsonArray(m_fields),\n \"contact\", m_contact.toJson(),\n \"started\", ExpressionUtils.formatJsonDate(m_started),\n \"steps\", JsonUtils.toJsonArray(m_steps),\n \"values\", toJsonObjectArray(m_values),\n \"extra\", JsonUtils.toJsonObject(m_extra),\n \"state\", m_state.name().toLowerCase(),\n \"active_flows\", JsonUtils.toJsonArray(flowUuids),\n \"suspended_steps\", JsonUtils.toJsonArray(m_suspendedSteps),\n \"level\", m_level\n );\n }", "public JSONObject toJSON()\n {\n JSONObject jsonField = new JSONObject();\n\n jsonField.put(\"name\", name);\n jsonField.put(\"type\", type);\n jsonField.put(\"visibility\", vis.name());\n\n return jsonField;\n }", "@Override\n public String toString() {\n return \"UserEntity{\" +\n \"id=\" + id +\n \", peerId=\" + peerId +\n \", gender=\" + gender +\n \", mainName='\" + mainName + '\\'' +\n \", pinyinName='\" + pinyinName + '\\'' +\n \", realName='\" + realName + '\\'' +\n \", avatar='\" + avatar + '\\'' +\n \", phone='\" + phone + '\\'' +\n \", email='\" + email + '\\'' +\n \", departmentId=\" + departmentId +\n \", status=\" + status +\n \", created=\" + created +\n \", updated=\" + updated +\n \", pinyinElement=\" + pinyinElement +\n \", searchElement=\" + searchElement +\n '}';\n }", "public ZEntity getEntity() {\r\n return entity;\r\n }", "@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Get(\"json\")\n public Representation toJSON() {\n \tString status = getRequestFlag(\"status\", \"valid\");\n \tString access = getRequestFlag(\"location\", \"all\");\n\n \tList<Map<String, String>> metadata = null;\n\n \tString msg = \"no metadata matching query found\";\n\n \ttry {\n \t\tmetadata = getMetadata(status, access,\n \t\t\t\tgetRequestQueryValues());\n \t} catch(ResourceException r){\n \t\tmetadata = new ArrayList<Map<String, String>>();\n \tif(r.getCause() != null){\n \t\tmsg = \"ERROR: \" + r.getCause().getMessage();\n \t}\n \t}\n\n\t\tString iTotalDisplayRecords = \"0\";\n\t\tString iTotalRecords = \"0\";\n\t\tif (metadata.size() > 0) {\n\t\t\tMap<String, String> recordCounts = (Map<String, String>) metadata\n\t\t\t\t\t.remove(0);\n\t\t\tiTotalDisplayRecords = recordCounts.get(\"iTotalDisplayRecords\");\n\t\t\tiTotalRecords = recordCounts.get(\"iTotalRecords\");\n\t\t}\n\n\t\tMap<String, Object> json = buildJsonHeader(iTotalRecords,\n\t\t\t\tiTotalDisplayRecords, msg);\n\t\tList<ArrayList<String>> jsonResults = buildJsonResults(metadata);\n\n\t\tjson.put(\"aaData\", jsonResults);\n\n\t\t// Returns the XML representation of this document.\n\t\treturn new StringRepresentation(JSONValue.toJSONString(json),\n\t\t\t\tMediaType.APPLICATION_JSON);\n }", "protected abstract Serializable getEntity();", "public String toJSON() {\n\t JSONObject outer = new JSONObject();\r\n\t JSONObject inner = new JSONObject();\r\n\t // Now generate the JSON output\r\n\t try {\r\n\t outer.put(\"articleMobile\", inner); // the outer object name\r\n\t inner.put(\"codeArticle\", codeArticle); // a name/value pair\r\n\t inner.put(\"designation\", designation); // a name/value pair\r\n\t inner.put(\"prixVente\", prixVente); // a name/value pair\r\n\t inner.put(\"stockTh\", stockTh);\r\n\t inner.put(\"error\", error); // a name/value pair\r\n\t inner.put(\"gisement\", gisement); // a name/value pair\r\n\t } catch (JSONException ex) {\r\n\t ex.printStackTrace();\r\n\t }\r\n\t return outer.toString(); // return the JSON text\r\n\t}", "java.lang.String getMetadataJson();", "protected String getJSON() {\n/*Generated! Do not modify!*/ return gson.toJson(replyDTO);\n/*Generated! Do not modify!*/ }", "public String getJsonAsString() {\n\t\treturn this.flodJsonObject.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn JSON.toJSONString(this,SerializerFeature.WriteMapNullValue,\n\t\t\t\tSerializerFeature.WriteNonStringKeyAsString,\n\t\t\t\tSerializerFeature.WriteNullListAsEmpty,\n\t\t\t\tSerializerFeature.WriteNullNumberAsZero,\n\t\t\t\tSerializerFeature.WriteNullStringAsEmpty);\n\t}", "@Override\n public String toString() {\n try {\n return new ObjectMapper().writeValueAsString(this);\n } catch (final JsonProcessingException ioe) {\n return ioe.getLocalizedMessage();\n }\n }", "@Override\n public String toJSONString()\n {\n return \"{\\\"packet\\\":{\\\"agentsName\\\":\\\"\\\",\\\"placesName\\\":\\\"\\\",\\\"placesX\\\":0,\\\"placesY\\\":0,\\\"numberOfPlaces\\\":0,\\\"numberOfAgents\\\":0,\\\"placeOverloadsSetDebugData\\\":false,\\\"placeOverloadsGetDebugData\\\":false,\\\"agentOverloadsSetDebugData\\\":false,\\\"agentOverloadsGetDebugData\\\":false,\\\"placeDataType\\\":\\\"\\\",\\\"agentDataType\\\":\\\"\\\"},\\\"request\\\":0}\";\n }", "@Override\r\n public String toString() {\r\n \treturn \"{ id : \" + getId() + \", costo : \\\"\" + getCosto() + \", fecha : \\\"\" + getFecha() + \"\\\" }\" ; \r\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "private JsonElement serializeEntityType(Pair<EntityPrimitiveTypes, Stats> content) {\n JsonObject entityObject = new JsonObject();\n JsonObject statObject = new JsonObject();\n for (Map.Entry<Statistic, Double> entry :\n content.getSecond().getStatistics().entrySet()) {\n statObject.add(entry.getKey().name(), new JsonPrimitive(entry.getValue()));\n }\n entityObject.add(STATS, statObject);\n entityObject.add(JSONEntitySerializer.PRIMITIVE_TYPE, new JsonPrimitive(content.getFirst().name()));\n return entityObject;\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\" {\");\n sb.append(\" \\\"fileid\\\":\\\"\").append(fileid);\n sb.append(\", \\\"filename\\\":\\\"\").append(filename);\n sb.append(\", \\\"fileupdate\\\":\\\"\").append(fileupdate);\n sb.append(\", \\\"filepath\\\":\\\"\").append(filepath);\n sb.append(\", \\\"fileuploader\\\":\\\"\").append(fileuploader);\n sb.append(\", \\\"isdelete\\\":\\\"\").append(isdelete);\n sb.append(\", \\\"filedesc\\\":\\\"\").append(filedesc);\n sb.append(\", \\\"filetype\\\":\\\"\").append(filetype);\n sb.append(\"\\\"}\");\n return sb.toString();\n }", "@SuppressWarnings({\"hiding\", \"static-access\"})\n @Override\n public RavenJObject toJson() {\n RavenJObject ret = new RavenJObject();\n ret.add(\"Key\", new RavenJValue(key));\n ret.add(\"Method\", RavenJValue.fromObject(getMethod().name()));\n\n RavenJObject patch = new RavenJObject();\n patch.add(\"Script\", new RavenJValue(this.patch.getScript()));\n patch.add(\"Values\", RavenJObject.fromObject(this.patch.getValues()));\n\n ret.add(\"Patch\", patch);\n ret.add(\"DebugMode\", new RavenJValue(debugMode));\n ret.add(\"AdditionalData\", additionalData);\n ret.add(\"Metadata\", metadata);\n\n if (etag != null) {\n ret.add(\"Etag\", new RavenJValue(etag.toString()));\n }\n if (patchIfMissing != null) {\n RavenJObject patchIfMissing = new RavenJObject();\n patchIfMissing.add(\"Script\", new RavenJValue(this.patchIfMissing.getScript()));\n patchIfMissing.add(\"Values\", RavenJObject.fromObject(this.patchIfMissing.getValues()));\n ret.add(\"PatchIfMissing\", patchIfMissing);\n }\n return ret;\n }", "public String CriteriatoJson() {\n\t\t\tJsonb jsonb = JsonbBuilder.create((new JsonbConfig().withFormatting(true)));\n\t\t \tString json = jsonb.toJson(criteria);\n\t\t\treturn json;\n\n\t }" ]
[ "0.7159781", "0.711396", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.7083751", "0.70004886", "0.6983412", "0.6927577", "0.690795", "0.6888284", "0.6821592", "0.6817484", "0.68144274", "0.6795192", "0.6780114", "0.6734735", "0.67116666", "0.6692722", "0.6675474", "0.6653274", "0.6652789", "0.66334444", "0.66288984", "0.66090876", "0.65923077", "0.65923077", "0.6590321", "0.6584866", "0.6576729", "0.6546012", "0.6534379", "0.65181214", "0.6509064", "0.6509064", "0.6509064", "0.65040904", "0.6503945", "0.6497486", "0.64605945", "0.64592457", "0.6454029", "0.6454029", "0.6441388", "0.6419592", "0.6415046", "0.6406396", "0.640603", "0.629592", "0.62956464", "0.62923086", "0.629074", "0.62702394", "0.6262319", "0.62321323", "0.62312305", "0.62183976", "0.62183976", "0.6199206", "0.6189472", "0.6159398", "0.6157001", "0.6141867", "0.61339253", "0.61330307", "0.6116794", "0.61014646", "0.60903233", "0.6086966", "0.60810983", "0.60644716", "0.6048722", "0.6039493", "0.6039493", "0.6033637", "0.60285413", "0.60059506", "0.6003398", "0.5992542", "0.5991908", "0.5973853", "0.5967498", "0.5962011", "0.5956132", "0.5952683", "0.5949508", "0.59493464", "0.59374446", "0.5913802", "0.5911089", "0.59109837", "0.59098995", "0.5900853", "0.5897856" ]
0.5922829
94
Read the payload and show the result
public static void main(String[] args) throws IOException, ClassNotFoundException { Payload payload = null; try (FileInputStream fin = new FileInputStream(INPUT_FILE); ObjectInputStream ois = new ObjectInputStream(fin);) { payload = (Payload) ois.readObject(); System.out.println("Payload read successfully: " + payload); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void readPayload() throws IOException {\n _data_stream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _data_stream.readInt();\n if (rlen == 0) {\n return;\n }\n _text_buffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(752);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(752);\n{\n rv = _in.read(_text_buffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv);\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(752);\n\n _data_stream = new DataInputStream(new ByteArrayInputStream(_text_buffer));\n }", "protected void readPayload() throws IOException {\n _dataStream.skipBytes(PushCacheProtocol.COMMAND_LEN);\n int rlen = _dataStream.readInt();\n if (rlen == 0) {\n return;\n }\n if (rlen > PushCacheProtocol.MAX_PAYLOAD_LEN) {\n throw new IOException(\"Payload length \" + rlen + \" exceeds maximum length \" + PushCacheProtocol.MAX_PAYLOAD_LEN);\n }\n _textBuffer = new byte[rlen];\n int sofar = 0;\n int toread = rlen;\n sofar = 0;\n toread = rlen;\n int rv = -1;\n edu.hkust.clap.monitor.Monitor.loopBegin(142);\nwhile (toread > 0) { \nedu.hkust.clap.monitor.Monitor.loopInc(142);\n{\n rv = _stream.read(_textBuffer, sofar, toread);\n if (rv < 0) {\n throw new IOException(\"read returned \" + rv + \" after reading \" + sofar + \" bytes\");\n }\n sofar += rv;\n toread -= rv;\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(142);\n\n _dataStream = new DataInputStream(new ByteArrayInputStream(_textBuffer));\n }", "private void read() {\n\t\tticketint = preticketint.getInt(\"ticketint\", 0);\r\n\t\tLog.d(\"ticketint\", \"ticketint\" + \"read\" + ticketint);\r\n\t}", "public void execHandlerRead( Message msg ) {\n\t \t// create valid data bytes\n\t\tbyte[] buffer = (byte[]) msg.obj;\n\t\tint length = (int) msg.arg1;\n\t\tbyte[] bytes = new byte[ length ];\n\t\tfor ( int i=0; i < length; i++ ) {\n\t\t\tbytes[ i ] = buffer[ i ];\n\t\t}\n\t\t// debug\n\t\tString read = buildMsgBytes( \"r \", bytes );\n\t\tlog_d( read );\n\t\taddAndShowTextViewDebug( read );\n\t\tnotifyRead( bytes );\n\t}", "public String getPayload() {\n return this.payload;\n }", "public String read();", "public Source getPayload();", "private String readResult() throws IOException {\n return reader.readLine();\n }", "public String getPayload() {\n return payload;\n }", "public String getPayload() {\n return payload;\n }", "public String getPayload() {\n return payload;\n }", "Document getPayload();", "private void read() throws IOException {\n // The first byte of every data frame\n int firstByte;\n\n // Loop until end of stream is reached.\n while ((firstByte = bis.read()) != -1) {\n // Data contained in the first byte\n // int fin = (firstByte << 24) >>> 31;\n // int rsv1 = (firstByte << 25) >>> 31;\n // int rsv2 = (firstByte << 26) >>> 31;\n // int rsv3 = (firstByte << 27) >>> 31;\n int opcode = (firstByte << 28) >>> 28;\n\n // Reads the second byte\n int secondByte = bis.read();\n\n // Data contained in the second byte\n // int mask = (secondByte << 24) >>> 31;\n int payloadLength = (secondByte << 25) >>> 25;\n\n // If the length of payload data is less than 126, that's the\n // final\n // payload length\n // Otherwise, it must be calculated as follows\n if (payloadLength == 126) {\n // Attempts to read the next 2 bytes\n byte[] nextTwoBytes = new byte[2];\n for (int i = 0; i < 2; i++) {\n byte b = (byte) bis.read();\n nextTwoBytes[i] = b;\n }\n\n // Those last 2 bytes will be interpreted as a 16-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{0, 0, nextTwoBytes[0], nextTwoBytes[1]};\n payloadLength = Utils.fromByteArray(integer);\n } else if (payloadLength == 127) {\n // Attempts to read the next 8 bytes\n byte[] nextEightBytes = new byte[8];\n for (int i = 0; i < 8; i++) {\n byte b = (byte) bis.read();\n nextEightBytes[i] = b;\n }\n\n // Only the last 4 bytes matter because Java doesn't support\n // arrays with more than 2^31 -1 elements, so a 64-bit\n // unsigned\n // integer cannot be processed\n // Those last 4 bytes will be interpreted as a 32-bit\n // unsigned\n // integer\n byte[] integer = new byte[]{nextEightBytes[4], nextEightBytes[5], nextEightBytes[6],\n nextEightBytes[7]};\n payloadLength = Utils.fromByteArray(integer);\n }\n\n // Attempts to read the payload data\n byte[] data = new byte[payloadLength];\n for (int i = 0; i < payloadLength; i++) {\n byte b = (byte) bis.read();\n data[i] = b;\n }\n\n // Execute the action depending on the opcode\n switch (opcode) {\n case OPCODE_CONTINUATION:\n // Should be implemented\n break;\n case OPCODE_TEXT:\n notifyOnTextReceived(new String(data, Charset.forName(\"UTF-8\")));\n break;\n case OPCODE_BINARY:\n notifyOnBinaryReceived(data);\n break;\n case OPCODE_CLOSE:\n closeInternal();\n notifyOnCloseReceived();\n return;\n case OPCODE_PING:\n notifyOnPingReceived(data);\n sendPong(data);\n break;\n case OPCODE_PONG:\n notifyOnPongReceived(data);\n break;\n default:\n closeInternal();\n Exception e = new UnknownOpcodeException(\"Unknown opcode: 0x\" + Integer.toHexString(opcode));\n notifyOnException(e);\n return;\n }\n }\n\n // If there are not more data to be read,\n // and if the connection didn't receive a close frame,\n // an IOException must be thrown because the connection didn't close\n // gracefully\n throw new IOException(\"Unexpected end of stream\");\n }", "public Payload getPayload() {\n return this.payload;\n }", "public int getPayload() {\n return payload;\n }", "String read();", "String read();", "public Payload.Inbound getInboundPayload();", "@Override\n\tpublic void read() {\n\n\t}", "private byte[] consumePayload() throws IOException {\n byte[] payload = new byte[(int) payloadLength];\n int count = 0;\n while (payloadLength > 0L) {\n payload[count] = (byte) this.read();\n count++;\n }\n return payload;\n }", "@Override\n\tpublic void readData() {\n\t\t\n\t}", "public byte[] getPayload();", "public Object getPayload() {\n return payload;\n }", "public java.lang.CharSequence getPayload() {\n return payload;\n }", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "String readData() {\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Waiting for synapse unit test agent response\");\n }\n\n if (clientSocket != null) {\n try (InputStream inputStream = clientSocket.getInputStream();\n ObjectInputStream objectInputStream = new ObjectInputStream(inputStream)) {\n\n return (String) objectInputStream.readObject();\n } catch (Exception e) {\n getLog().error(\"Error in getting response from the synapse unit test agent\", e);\n }\n }\n\n return null;\n }", "protected abstract Object read ();", "public char[] payload_GET()\n {return payload_GET(new char[249], 0);}", "public java.lang.CharSequence getPayload() {\n return payload;\n }", "@Override\r\n\tpublic void read() {\n\r\n\t}", "@Override\r\n\tpublic void reading() {\n\t\tSystem.out.println(\"reading\");\r\n\t}", "public void readData(Scanner scanner)\n {\n super.readData(scanner);\n payload = scanner.nextInt();\n \n }", "public abstract void readTagPayload(DataInput in) throws IOException;", "@Override\n public void handleMessage(Message msg) {\n super.handleMessage(msg);\n switch (msg.what) {\n case 0x001:\n Bundle bundle1 = msg.getData();\n String result1 = bundle1.getString(\"result\");\n parseData(result1);\n break;\n default:\n break;\n }\n }", "public Object read();", "abstract void read();", "@Override\n\tpublic void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n\t\tString receiveData = (String)msg;\n\t\tSystem.out.println(receiveData);\n\t}", "public String receive(){\n\t\tString val = \"\";\n\t\ttry {\n\t\t\tval = Jsoup.parse(inStream.read()+ \"\").text();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(val);\n\t\treturn val;\n\t\t/*String val = \"\";\n\t\ttry {\n\t\t\tval = Jsoup.parse(inStream.read() + \"\").text();\n\t\t\t\n\t\t\tplace = Jsoup.parse(inStream.read() + \"\").text();\n\t\t\tif(!(place == null)) {\n\t\t\t\tplaceInt = Integer.parseInt(place);\n\t\t\t}\n\t\t\tif (placeInt == 71) {\n\t\t\t\tgData = val;\n\t\t\t} else if (placeInt == 65) {\n\t\t\t\taData = val;\n\t\t\t} else if (placeInt == 68) {\n\t\t\t\tdData = val;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"VALEUR NON RECONNUE : \" + place);\n\t\t\t}\n\t\t\tSystem.out.println(val);\n\t\t\treturn val;\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"Problem receiving\");\n\t\t\treturn \"Error\";\n\t\t}*/\n\t}", "public void readResponse()\n\t{\n\t\tDataObject rec = null;\n\t\tsynchronized(receive)\n\t\t{\n\t\t\trec = receive.get();\n\t\t}\n\t\tAssertArgument.assertNotNull(rec, \"Received packet\");\n\t\tpublishResponse(rec);\n\t}", "com.google.protobuf.ByteString getPayload();", "com.google.protobuf.ByteString getPayload();", "protected final Object getPayload() {\r\n return this.payload;\r\n }", "@Override\n\tpublic String toString() {\n\t\treturn inputPayload;\n\t}", "private String readVoidMessage() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if(tokener.more()) {\n return TokenerHandler.getNextJSONStringNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "public void setPayload(String payload) {\n this.payload = payload;\n }", "public void setPayload(String payload) {\n this.payload = payload;\n }", "@AutoEscape\n\tpublic String getPayload();", "private String readText(NdefRecord record) throws UnsupportedEncodingException {\n\n byte[] payload = record.getPayload();\n\n // Get the Text Encoding\n String textEncoding = ((payload[0] & 128) == 0) ? \"UTF-8\" : \"UTF-16\";\n\n // Get the Language Code\n int languageCodeLength = payload[0] & 0063;\n\n // String languageCode = new String(payload, 1, languageCodeLength, \"US-ASCII\");\n // e.g. \"en\"\n\n // Get the Text\n return new String(payload, languageCodeLength + 1, payload.length - languageCodeLength - 1, textEncoding);\n }", "@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }", "@Override\n\tpublic void onMessage(Message message) {\n\t\tSystem.out.println(message.getBody());\n\t}", "private void readObject() {\n }", "@Override\n\tpublic int read() {\n\t\treturn super.read();\n\t}", "@Override\n public void success(Response result, Response response) {\n BufferedReader reader = null;\n\n //An string to store output from the server\n String output = \"\";\n\n try {\n //Initializing buffered reader\n reader = new BufferedReader(new InputStreamReader(result.getBody().in()));\n\n //Reading the output in the string\n output = reader.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //Displaying the output as a toast\n Toast.makeText(MainActivity.this, output, Toast.LENGTH_LONG).show();\n }", "private void standByForMessages() throws IOException {\n if (reader.readLine() != null) {\n try {\n JSONObject j = (JSONObject) jps.parse(reader.readLine());\n sequence = Integer.valueOf(j.get(\"sequence\").toString());\n String cmd = (String) j.get(\"command\");\n JSONArray parameter = (JSONArray) j.get(\"parameter\");\n cmdHandler(parameter, cmd);\n } catch (ParseException ex) {\n }\n }\n }", "public void read() throws IOException, JSONException, NoSuchAlgorithmException {\n\t\tlong taille_ans = inchan.readLong();\n\t\tbyte [] cbuf = new byte[(int)taille_ans];\n\t\tinchan.read(cbuf, 0, (int)taille_ans);\n\t\tString s = new String(cbuf,\"UTF-8\");\n\t\t\n\t\tJSONObject msg = new JSONObject(s);\n\t\tJSONObject obj;\n\t\t\n\t\tswitch ((String)msg.keys().next()) {\n\t\tcase \"next_turn\":\n\t\t\tchooseWord(periode);\n\t\t\tperiode = msg.getInt(\"next_turn\");\n\t\t\tmap_wordPool.put(periode, new JSONArray());\n\t\t\tSystem.out.println(\"AUTEUR \"+identifiant+\" est en nouvelle periode : \"+periode);\n\t\t\twork = true;\n\t\t\tbreak;\n\t\tcase \"letters_bag\":\n\t\t\t\tletters_bag = msg.getJSONArray(\"letters_bag\");\n\t\t\t\tSystem.out.println(\"AUTEUR \"+identifiant+\" a recu sac de lettres : \"+letters_bag);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"full_letterpool\":\n\t\t\tobj = msg.getJSONObject(\"full_letterpool\");\n\t\t\tupdateLetterPool(obj);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"full_wordpool\": \n\t\t\tobj = msg.getJSONObject(\"full_wordpool\");\n\t\t\tafficheFullWordrPool(obj);\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"diff_letterpool\": //TODO\n\t\t\tbreak;\n\t\tcase \"diff_wordpool\":\n\t\t\t//TODO Election du mot au début de la blockchain ?\n\t\t\t\t\tmsg.getJSONObject(\"diff_wordpool\").getJSONObject(\"wordpool\");\n\t\t\tbreak;\n\t\t\t\n\t\tcase \"inject_word\":\n//\t\t\tSystem.out.println(\"inject word\");\n\t\t\tobj = msg.getJSONObject(\"inject_word\");\n\t\t\taddWordToPeriod(periode,obj);\n\t\t\tbreak;\n\t\tcase \"inject_letter\":\n\t\t\tobj = msg.getJSONObject(\"inject_letter\");\n\t\t\taddLetterToPeriod(obj.getInt(\"period\"), obj);\n\t\t\tbreak;\n\t\t\n\t\tdefault:\n//\t\t\tSystem.out.println(msg);\n\t\t\tbreak;\n\t\t}\n\t}", "private void read() {\n\n\t\t\t\tString road=getActivity().getFilesDir().getAbsolutePath()+\"product\"+\".txt\";\n\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(road); \n\t\t\t\t\tFileInputStream fis = new FileInputStream(file); \n\t\t\t\t\tint length = fis.available(); \n\t\t\t\t\tbyte [] buffer = new byte[length]; \n\t\t\t\t\tfis.read(buffer); \n\t\t\t\t\tString res1 = EncodingUtils.getString(buffer, \"UTF-8\"); \n\t\t\t\t\tfis.close(); \n\t\t\t\t\tjson(res1.toString());\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} \n\t\t\t}", "@Override\n\t\t\tpublic void handleMessage(Message msg) {\n\t\t\t\tsuper.handleMessage(msg);\n\t\t\t\tString temp;\n\t\t\t\tswitch (msg.what) {\n\t\t\t\tcase MSG_SHOW_RESULT:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\t Reader.writelog(temp,tvResult);\n\t\t\t\t\t break;\n\t\t\t\tcase MSG_SHOW_INFO:\n\t\t\t\t\t temp = (String) msg.obj;\n\t\t\t\t\treadContent.setText(temp);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "private void readObject() {}", "private void readObject() {}", "private void readObject() {}", "private void readEvent() {\n\t\t\t\n\t\t\thandlePacket();\n\t\t\t\n\t\t}", "Object getRawData();", "public static Object parse(Payload payload) {\n Class classType = PayloadRegistry.getClassByType(payload.getMetadata().getType());\n if (classType != null) {\n ByteString byteString = payload.getBody().getValue();\n ByteBuffer byteBuffer = byteString.asReadOnlyByteBuffer();\n Object obj = JacksonUtils.toObj(new ByteBufferBackedInputStream(byteBuffer), classType);\n if (obj instanceof Request) {\n ((Request) obj).putAllHeader(payload.getMetadata().getHeadersMap());\n }\n return obj;\n } else {\n throw new RemoteException(NacosException.SERVER_ERROR,\n \"Unknown payload type:\" + payload.getMetadata().getType());\n }\n \n }", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }", "public static void main(String[] args) throws IOException {\n\t\tjsonData = readFile(\"json.txt\",StandardCharsets.UTF_8 );\n\t\tMessage[] advanceObjectArray = (Message[]) (new Conversion()).getObjectFromJson(jsonData, Message[].class);\n\t\tList<Message> advanceObjectList = Arrays.asList(advanceObjectArray);\n\t\tint index = 0;\n\t\tfor (Message message : advanceObjectList) {\n\t\t\tSystem.out.println(\"---------------------Record # \"+(++index)+\"--------------------\");\n\t\t\tSystem.out.println(\"ObjectId : \" +message.getObjectId());\n\t\t\tSystem.out.println(\"Number : \" +message.getNumber());\n\t\t\tSystem.out.println(\"MessgeId : \" +message.getId());\n\t\t\tSystem.out.println(\"Lat : \" +message.getLatitude());\n\t\t\tSystem.out.println(\"Long : \" +message.getLongitude());\n\t\t\tSystem.out.println(\"LandMark : \" +message.getLandMark());\n\t\t\tSystem.out.println(\"Speed : \" +message.getSpeed());\n\t\t\t\n\t\t\tSystem.out.println(\"---------------------Message Data--------------------\");\n\t\t\tfor (MessageData messageData : message.getMessageData()) {\n\t\t\t\tSystem.out.println(\"DataSourceName : \" +messageData.getDataSourceName());\n\t\t\t\tSystem.out.println(\"DataSourceId : \" +messageData.getDataSourceId());\n\t\t\t\tSystem.out.println(\"Value : \" +messageData.getValue());\n\t\t\t}\n\t\t\tSystem.out.println(\"------------------------------------------------------\");\n\t\t}\n\n\t}", "@Override\n\tpublic void interpretBytes() {\n\t\telementType = input.getInt(0x14);\n\t\tcardLevel = input.getInt(0x18);\n\t\tcardType = input.getInt(0x1C); // first digit - item type (weapon/accessory/magic/...). second digit - subtype (axe/sword/...). 0 for elements\n\t\t\n\t\tSystem.out.println(elementType);\n\t\tSystem.out.println(cardLevel);\n\t\tSystem.out.println(cardType);\n\t}", "public String getPayload() {\n\t\t\t\t\t\treturn payLoad;\r\n\t\t\t\t\t}", "public boolean receiveMqttMessage(CharSequence topic, ChannelReader payload) {\n\t\tSystem.out.print(\"\\ningress body: \");\n\n\t\t// Read the message payload and output it to System.out\n\t\tpayload.readUTFOfLength(payload.available(), System.out);\n\t\tSystem.out.println();\n\n\t\t// Create the on-demand mqtt payload writer\n\t\tWritable mqttPayload = writer -> writer.writeUTF(\"\\nsecond step test message\");\n\n\t\t// On the 'localtest' topic publish the mqtt payload\n\t\tcmd.publishTopic(mqttPayload, WaitFor.None);\n\n\t\t// We consumed the message\n\t\treturn true;\n\t}", "public static void main(String[] args) throws IOException {\n RJEReader reader = new RJEReader(Lib.readResource(\"mt103.rje\", null));\n\n /*\n * Iterate the reader\n */\n while (reader.hasNext()) {\n /*\n * Read the message.\n */\n //System.out.println(reader.next());\n AbstractMT msg = reader.nextMT();\n\n if (msg.isType(103)) {\n\n /*\n * Specialize the message\n */\n MT103 mt = (MT103) msg;\n\n /*\n * Print some content from message\n *\n * Expected output:\n * Sender: FOOTUS3NBXXX\n * Receiver: BICFOOYYAXXX\n * Reference: FDF0510141142100\n * Value Date: 2005/10/14\n * Amount: USD 1814,28\n * --------------------------\n * Sender: FOOBESMMAXXX\n * Receiver: BICFOOYYAXXX\n * Reference: INGDESMM\n * Value Date: 2005/10/28\n * Amount: EUR 111222,33\n * --------------------------\n */\n System.out.println(\"Sender: \" + mt.getSender());\n System.out.println(\"Receiver: \" + mt.getReceiver());\n System.out.println(\"Reference: \" + mt.getField20().getValue());\n\n Field32A f = mt.getField32A();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n System.out.println(\"Value Date: \" + sdf.format(f.getDateAsCalendar().getTime()));\n System.out.println(\"Amount: \" + f.getCurrency() + \" \" + f.getAmount());\n System.out.println(\"--------------------------\");\n }\n }\n }", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private static void readAndPrint(InputStream is) {\n try {\n int a = is.read();\n int b = is.read();\n int c = is.read();\n int d = is.read();\n System.out.print(\"Received: \");\n System.out.println(\"0x\" + Integer.toString(a, 16) + Integer.toString(b, 16) + Integer.toString(c, 16) + Integer.toString(d, 16));\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "@Override\n public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {\n String body = msg.toString();\n System.out.println(\"返回值:\" + body + \", count = \" + counter.getAndIncrement());\n }", "public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}", "static String readRequestBody(HttpExchange t) throws IOException {\n InputStream is = t.getRequestBody();\n String value = new Scanner(is).useDelimiter(\"\\\\A\").next();\n is.close();\n return value;\n }", "public String readString() {\n byte[] byteForStream = new byte[1024];\n String message = \"\";\n\n mListener.onCarRunning();\n\n\n int bytes;\n\n while (true) {\n try {\n bytes = mInputStream.read(byteForStream);\n message = new String(byteForStream, 0, bytes);\n Log.d(TAG, \" Read from inputstream \" + message);\n\n } catch (IOException e) {\n Log.e(TAG, \" error reading from inputstream \" + e.getMessage());\n break;\n }\n }\n return message;\n }", "public byte[] read();", "public void read() {\n\t\tSystem.out.println(\"word document\");\r\n\t}", "private void handleRead(SelectionKey key) throws IOException {\n\t\t\tSSLSocketChannel ssl_socket_channel = ((SSLClientSession)key.attachment()).getSSLSocketChannel();\n\t\t\tByteBuffer request = ssl_socket_channel.getAppRecvBuffer();\n\t\t\tint count = ssl_socket_channel.read();\n\t\t\t\n\t\t\tif (count < 0) {\n\t\t\t\t\n\t\t\t\tremoveKeyAndSession(key);\n\t\t\t\t\n\t\t\t} else if (request.position() > 0) {\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tString message = new String(request.array(),0,request.position());\n\t\t\t\t\t\n//\t\t\t\t\tOutputHandler.println(\"Server: read \"+message);\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t// Parse the JSON message\n\t\t\t\t\tJSONObject json = (JSONObject) parser.parse(message);\n\t\t\t\t\t\n\t\t\t\t\t// Process the message\n\t\t\t\t\tprocessNetworkMessage(json, key);\n\t\t\t\t\t\n\t\t\t\t\trequest.clear();\n\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\tSystem.out.println(\"Invalid message format.\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "private static void readResponse(ClientResponse response)\r\n\t{\r\n\t// Response\r\n\tSystem.out.println();\r\n\tSystem.out.println(\"Response: \" + response.toString());\r\n\r\n\t}", "@Override\n public void completed(Integer result, String attachment)\n {\n log.info(\"Successful read!\");\n }", "static protected void readContent(DatagramPacket dp) throws IOException {\r\n\t\t ByteArrayInputStream biStream = new ByteArrayInputStream(dp.getData(), 0, dp.getLength());\r\n\t\t DataInputStream diStream = new DataInputStream(biStream);\r\n\t\t message = diStream.readUTF();\r\n\t\t System.out.println(\"Messaggio ricevuto: \"+message);\r\n\t\t readMessage();\r\n\t }", "@Override\n\tpublic String readLine() throws IOException {\n\t\tint length = readInt();\n\t\twriteInt(length);\n\t\tbyte[] data = awaitNextPacket(new byte[length]);\n\t\treturn new String(data);\n\t}", "@Override\n\t\tprotected void onRead(int mark, int type, String content) {\n\t\t\tswitch (type) {\n\t\t\tcase 5003:\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(content);\n\t\t\t\t\tif (0 == jsonObject.getInt(\"result\")) {\n\t\t\t\t\t\tshowToast(\"获取成功\");\n\t\t\t\t\t\tmuserJsonArray = jsonObject.getJSONObject(\"msg\").getJSONArray(\"security_phone_numbers\");\n\t\t\t\t\t\tsetViews();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tshowToast(getString(R.string.error_protocol));\n\t\t\t\t}\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\tbreak;\n\t\t\tcase 5004:\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject jsonObject = new JSONObject(content);\n\t\t\t\t\tif (0 == jsonObject.getInt(\"result\")) {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tshowToast(jsonObject.getString(\"msg\"));\n\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tshowToast(getString(R.string.error_protocol));\n\t\t\t\t}\n\t\t\t\tmProgressDialog.dismiss();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "public void run(){\r\n\r\n try{\r\n InputStreamReader isr = new InputStreamReader(inputStream);\r\n BufferedReader br = new BufferedReader(isr);\r\n String line = null;\r\n\r\n while((line = br.readLine()) != null){\r\n System.out.println(\"CLIENT: \" + type + \">\" + line);\r\n }\r\n\r\n }catch (IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - log this error and handle it like a boss\r\n }\r\n }", "public String readIns(SynchronisedFile fromFile) {\r\n\t\tString msg = inst.ToJSON();\r\n\t\tSystem.err.println(\"Sending: \" + msg);\r\n\t\treturn msg;\r\n\t}", "@Override\n protected Object readResponse(XmlRpcStreamRequestConfig pConfig, InputStream pStream) throws XmlRpcException {\n final StringBuffer sb = new StringBuffer();\n\n try {\n final BufferedReader reader = new BufferedReader(new InputStreamReader(pStream));\n String line = reader.readLine();\n while (line != null) {\n sb.append(line);\n line = reader.readLine();\n }\n }\n catch (final IOException e) {\n LOG.error(\"Fail to dump\", e);\n }\n\n LOG.debug(\"Receive response=\\n{}\", XmlPrettyFormatter.toPrettyString(sb.toString()));\n\n final ByteArrayInputStream bais = new ByteArrayInputStream(sb.toString().getBytes());\n return super.readResponse(pConfig, bais);\n }", "public void ownRead();", "@Test\n public void testGetJsonPayload() {\n System.out.println(\"getJsonPayload\");\n String expResult = (\"{\\n\"\n + \" \\\"iss\\\": \\\"https://ConsumerSystemURL\\\",\\n\"\n + \" \\\"sub\\\": \\\"1\\\",\\n\"\n + \" \\\"aud\\\": \\\"https://authorize.fhir.nhs.net/token\\\",\\n\"\n + \" \\\"exp\\\": 1503995882,\\n\"\n + \" \\\"iat\\\": 1503995582,\\n\"\n + \" \\\"reason_for_request\\\": \\\"directcare\\\",\\n\"\n + \" \\\"requesting_device\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Device\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"GPConnectTestSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"Client\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"type\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"DeviceIdentifierSystem\\\",\\n\"\n + \" \\\"code\\\": \\\"DeviceIdentifier\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"model\\\": \\\"v1\\\",\\n\"\n + \" \\\"version\\\": \\\"1.1\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_organization\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Organization\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/Id/ods-organization-code\\\",\\n\"\n + \" \\\"value\\\": \\\"GPCA0001\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": \\\"GP Connect Assurance\\\"\\n\"\n + \" },\\n\"\n + \" \\\"requesting_practitioner\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Practitioner\\\",\\n\"\n + \" \\\"id\\\": \\\"1\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/sds-user-id\\\",\\n\"\n + \" \\\"value\\\": \\\"GCASDS0001\\\"\\n\"\n + \" },\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"LocalIdentifierSystem\\\",\\n\"\n + \" \\\"value\\\": \\\"1\\\"\\n\"\n + \" }\\n\"\n + \" ],\\n\"\n + \" \\\"name\\\": {\\n\"\n + \" \\\"family\\\": [\\n\"\n + \" \\\"AssurancePractitioner\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"given\\\": [\\n\"\n + \" \\\"AssuranceTest\\\"\\n\"\n + \" ],\\n\"\n + \" \\\"prefix\\\": [\\n\"\n + \" \\\"Mr\\\"\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"practitionerRole\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"role\\\": {\\n\"\n + \" \\\"coding\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"http://fhir.nhs.net/ValueSet/sds-job-role-name-1\\\",\\n\"\n + \" \\\"code\\\": \\\"AssuranceJobRole\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" },\\n\"\n + \" \\\"requested_scope\\\": \\\"patient/*.read\\\",\\n\"\n + \" \\\"requested_record\\\": {\\n\"\n + \" \\\"resourceType\\\": \\\"Patient\\\",\\n\"\n + \" \\\"identifier\\\": [\\n\"\n + \" {\\n\"\n + \" \\\"system\\\": \\\"https://fhir.nhs.uk/Id/nhs-number\\\",\\n\"\n + \" \\\"value\\\": \\\"9476719931\\\"\\n\"\n + \" }\\n\"\n + \" ]\\n\"\n + \" }\\n\"\n + \"}\\n\").replaceAll(\"\\n\", \"\\r\\n\");\n String result = instance.getJsonPayload();\n assertEquals(expResult, result);\n }", "@Override\n\tpublic Object readObject() {\n\t\treturn super.readObject();\n\t}", "private String readToken( PushbackInputStream stream ) throws IOException {\n buffer = new StringBuffer();\n for ( boolean done = false; ! done; ) {\n int c = stream.read();\n switch ( (char) c ) {\n case '\\n':\n case '\\r':\n stream.unread( c );\n done = true;\n break;\n case ' ':\n case '\\t':\n case END:\n done = true;\n break;\n default:\n buffer.append( (char) c );\n }\n }\n return buffer.toString();\n }", "void read ();", "public int getPayloadType() {\n return _payload;\n }", "private String getResponseText(InputStream inStream) {\n return new Scanner(inStream).useDelimiter(\"\\\\A\").next();\n }", "public void run() {\n readFromClient();\n }", "public Object read() throws IOException, RecordIOException;", "public UserPayload getUserPayload(String payload) {\n try {\n\n UserPayload user = (UserPayload) xstream.fromXML(payload);\n return user;\n\n //context = JAXBContext.newInstance(UserPayload.class);\n //Unmarshaller m = context.createUnmarshaller();\n //return (UserPayload)m.unmarshal(new StringReader(payload));\n //} catch (JAXBException e) {\n }catch(Exception e){\n e.printStackTrace();\n }\n return null;\n }", "@Override\n public void payload(byte[] data) {\n \tmLastMessage.append(new String(data));\n Log.d(TAG, \"Payload received: \" + data);\n }", "public void setPayload(Payload payload) {\n this.payload = payload;\n }", "public Object getPayload() {\r\n return null;\r\n }", "public byte[] getPayload() {\n return mPayload;\n }" ]
[ "0.6567893", "0.6446882", "0.6205054", "0.6137868", "0.6033718", "0.6008646", "0.59608227", "0.58851594", "0.58634967", "0.58634967", "0.5832493", "0.58204323", "0.58190936", "0.57480377", "0.5742387", "0.5741042", "0.5741042", "0.56993216", "0.5675143", "0.5667588", "0.5640888", "0.5640544", "0.5623954", "0.55910116", "0.55895793", "0.5570034", "0.55664134", "0.5514592", "0.55110544", "0.54923207", "0.54911184", "0.548701", "0.5465066", "0.545074", "0.5447038", "0.5441538", "0.54224336", "0.54110736", "0.5406426", "0.54021937", "0.54021937", "0.53950137", "0.53894025", "0.538021", "0.5372926", "0.5370726", "0.53594506", "0.53523487", "0.5331908", "0.533001", "0.53280485", "0.5325296", "0.5312306", "0.53056073", "0.52991605", "0.5288779", "0.5283723", "0.5268644", "0.5268644", "0.5268644", "0.5256914", "0.5231482", "0.5223251", "0.5222545", "0.522249", "0.5222356", "0.5219938", "0.5212286", "0.520702", "0.52033335", "0.5202439", "0.51955277", "0.5193745", "0.5174422", "0.5146874", "0.51466334", "0.5124352", "0.51232886", "0.5123283", "0.51200396", "0.5119388", "0.5095614", "0.50922114", "0.50881344", "0.5073555", "0.506606", "0.5064478", "0.5057298", "0.50568044", "0.5050494", "0.5050421", "0.50439155", "0.50347435", "0.5026243", "0.50255007", "0.50226414", "0.5020714", "0.5014435", "0.5008551", "0.5007525" ]
0.54035753
39
Creates a position 2d.
public Position2D(double x, double y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Position createPosition();", "Position_Position createPosition_Position();", "public Point2Dd () {\r\n x = 0;\r\n y = 0;\r\n }", "public abstract Point2D getPosition();", "private void CreaCoordinate(){\n \n this.punto = new Point(80, 80);\n \n }", "public Vector2D getPosition ();", "public Vector2d() {\n\t\tthis.x = 0;\n\t\tthis.y = 0;\n\t}", "public Point2D()\n {\n this.x = this.y = 0f;\n }", "public Point2d() {\r\n\t // Call two-argument constructor and specify the origin.\r\n\t\t this(0, 0);\r\n\t\t System.out.println(\"Point2d default initiializing\");\r\n\t }", "Vector2 getPosition();", "public Point2D(int x1,int y1) {\n\t\tx= x1;\n\t\ty=y1;\n\t}", "public Point2d(double x, double y) {\r\n\t\t this.xCoord = x;\r\n\t\t this.yCoord = y;\r\n\t }", "public Point2D(double x, double y){\n this.x = x;\n this.y = y;\n }", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Point2Dd (int x, int y){\r\n this.x = (double)x;\r\n this.y = (double)y;\r\n }", "public Point2Dd (double x, double y){\r\n this.x = x;\r\n this.y = y;\r\n }", "public Pixel(int xPos, int yPos){\n\t\t\n\t\tthis.x = new Integer(xPos);\n\t\tthis.y = new Integer(yPos);\n\t\tthis.z = null;\n\t\tthis.intensity = null;\n\t\tthis.type = \"2Dposition\";\n\t}", "public static Coordinate create2D(double x, double y) {\r\n return new Coordinate(x, y, Double.NaN, Double.NaN);\r\n }", "Coordinate createCoordinate();", "public abstract void setPosition(Point2D position);", "public Vector2 getPosition();", "public Position(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public void setPosition(Point2D position)\n {\n mPosition = position;\n }", "public Vector2 getPosition() {\n\t\treturn new Vector2(getX(), getY());\n\t}", "public Point2D(double x, double y) {\r\n this.x = x;\r\n this.y = y;\r\n }", "public Vector2D(double x, double y) {\n \n _x = x;\n _y = y;\n \n }", "public Vec2(int x, int y) {\n\t\t// Store position\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Point2D(Point2D point){\n \n //on peut faire point.x et point.y puisqu'on est dans la classe\n this.x = point.x;\n this.y = point.y;\n }", "PositionedObject(){\n float x = DrawingHelper.getGameViewWidth()/2;\n float y = DrawingHelper.getGameViewHeight()/2;\n _position.set(x,y);\n }", "posXY(int x, int y){\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void setPosition(Vector2 position);", "public VariablePoint2(){\n super(0, 0);\n x = 0;\n y = 0;\n }", "public Position position();", "public StsPoint2D()\n\t{\n\t}", "public Position(int x, int y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "public Position2D getPosition()\n {\n return position;\n }", "Point createPoint();", "public Vector2(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Point2D getLocation();", "public Position(int p_X, int p_Y)\n {\n this.x = p_X;\n this.y = p_Y;\n }", "public Coordinate generatePosition() {\n Random rng = new Random();\n return new Coordinate(rng.nextFloat(), rng.nextFloat());\n }", "public Point2D(double x, double y) {\n this.setX(x);\n this.setY(y);\n }", "public Vector2d(double x, double y) {\n\t\tthis.x = x;\n\t\tthis.y = y;\n\t}", "@Override\n public Position setPosition(double x, double y) {\n this.x = x;\n this.y = y;\n\n return new Position(x, y);\n }", "public void case4_Position() {\r\n Position testPosition = new Position(0,0);\r\n\r\n }", "public Point2D_2_9(int x, int y) {\n\t this.x = x;\n\t this.y = y;\n\t }", "public abstract Vec2 doorPosition();", "void setPosition(double xPos, double yPos);", "public Position(Position position) {\n this.x = position.x;\n this.y = position.y;\n this.xVelocity = position.xVelocity;\n this.yVelocity = position.yVelocity;\n this.xAcceleration = position.xAcceleration;\n this.yAcceleration = position.yAcceleration;\n }", "public MapFactoryObject(Vector2 position) {\n this.position = position;\n }", "public void setLocation(Point2D p);", "Position_abscisse createPosition_abscisse();", "public void setPosition(Point2 position) {\r\n this.position = position;\r\n }", "public Position(double x, double y) {\n\t\txCoord = x;\n\t\tyCoord = y;\n\t}", "public Object2D(double xs,double ys,Dimension sizes)\r\n\t{\r\n\t\tx = xs;\r\n\t\ty = ys;\r\n\t\twidth = (int)sizes.getHeight();\r\n\t\theight= (int)sizes.getWidth();\r\n\t}", "protected Coord2d xy(MouseEvent e) {\n return new Coord2d(x(e), y(e));\n }", "public static Point2D fromGridPoint2(GridPoint2 gridPoint2) {\n return new Point2D(gridPoint2.x, gridPoint2.y);\n }", "private void createPosition() {\n\n switch (new Random().nextInt(4)) {\n\n case 0:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":-90\";\n break;\n\n case 1:\n sendString = enemyPositionX.nextInt(Window.WIDTH) + \":\" + (Window.HEIGHT + 90);\n break;\n\n case 2:\n sendString = \"-90:\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n\n case 3:\n sendString = (Window.WIDTH + 90) + \":\" + enemyPositionY.nextInt(Window.HEIGHT);\n break;\n }\n sendString += \":\" + new Random().nextInt(4);\n sendString += \":\" + new Random().nextInt(2);\n }", "public Point2D getPosition()\n {\n return mPosition;\n }", "Coordinate(int Xposition, int Yposition) {\n\t\tthis.X = Xposition;\n\t\tthis.Y = Yposition;\n\n\t}", "public Position(Position p_p)\n {\n this.x = p_p.x;\n this.y = p_p.y;\n }", "Point(int x_, int y_){\n x = x_;\n y = y_;\n }", "public Point(int x,int y){\r\n\t\tthis.pos = x;\r\n\t\tthis.id = y;\r\n\t}", "public Position(final int xPos, final int yPos) {\n this.posX = xPos;\n this.posY = yPos;\n this.charAlg = PositionTraductor.getAlgebraicNotation(posX, posY);\n }", "public GridPosition(int x, int y) {\n this.posX = x;\n this.posY = y;\n }", "public Position() {\n\n\t}", "public Vector2(float x, float y) {\n\t\tthis.X = x;\n\t\tthis.Y = y;\n\t}", "public End_position(int x, int y){\n super(x, y);\n this.destinationX = x;\n\n loadImage(\"end_position.PNG\");\n getImageDimension();\n }", "public void setPosition(double x, double y)\n {\n mPosition = new Point2D.Double(x, y);\n }", "public Vector2() {\n\t\tthis(0.0f, 0.0f);\n\t}", "Vaisseau_positionner createVaisseau_positionner();", "Position_ordonnee createPosition_ordonnee();", "void setPos2(Vector2 pos2) {\n\t\tthis.pos2 = pos2;\n\t}", "@Override\n public Position getPosition() {\n return new Position(this.x, this.y);\n }", "public Monster(int x,int y){\n\tposition[0] = x; //x position\n\tposition[1] = y; //y position\n }", "public void setPosition(final Vector2f position);", "public void setPosition(Vector2 p) {\n\t\tpos = p;\n\t}", "public Short2DPoint() {\n this(0,0);\n }", "public void setPosition(float x, float y);", "Position getNewPosition();", "public Short2DPoint(int x, int y) {\n this((short) x,(short) y);\n }", "public Rotation2D()\n {\n this.x = 0.0f;\n this.y = 0.0f;\n }", "public Point getPosition(int x, int y) {\r\n return new Point(getWidth()/board.getWidth() * x, getHeight()/board.getHeight() * y);\r\n }", "public Spots(int ID, double x, double y, double x2, double y2) {\n\t\tsuper(ID, x, y, x2, y2);\n\t}", "public Point getPosition(){\r\n return new Point(this.position);\r\n }", "Block create(int xpos, int ypos);", "public Vec2f() {\n\t\tthis(0, 0);\n\t}", "public static Point2D fromVector2(Vector2 vector2) {\n return new Point2D((int) vector2.x, (int) vector2.y);\n }", "public static Vector2 LevelCoordinatesToScreen(int x, int y){\n\t\tVector2 screenPos = new Vector2();\n\t\tfloat screenX = (X_OFFSET + x)*TILE_SIZE;\n\t\tfloat screenY = (Y_OFFSET + y)*TILE_SIZE;\n\t\tscreenPos.x = screenX;\n\t\tscreenPos.y = screenY;\n\t\treturn screenPos;\n\t}", "public Point.Double getPosition(){\r\n return new Point.Double(x, y);\r\n }", "public PositionComponent(float x, float y) {\n\t\tthis(x, y, 0);\n\t}", "public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}", "Punto(){\r\n x=0;\r\n y=0;\r\n }", "public Position( int xCoordinate, int yCoordinate ) {\n xPosition = xCoordinate;\n yPosition = yCoordinate;\n }", "public static SquareCoordinate makeCoordinate(int x, int y)\n {\n \treturn new SquareCoordinate(x, y);\n }", "public Vector2f (float x, float y)\n {\n set(x, y);\n }", "public AnimatorType position(float x, float y)\n {\n return position(new PointF(x, y));\n }", "private PointF s2c(float x, float y) {\n return new PointF(- (originX - x), originY - y);\n }", "public position convertToPosition(){\n\t\tdouble x = r * Math.cos(theta);\n\t\tdouble y = r * Math.sin(theta);\n\t\treturn new position(x, y);\n\t}", "public static Point pos(){\r\n\t\tRandom random = new Random();\r\n\t\tint x = 0;\r\n\t\tint y = 0;\r\n\t\t//acts as a 4 sided coin flip\r\n\t\t//this is to decide which side the asteroid will appear\r\n\t\tint pos = random.nextInt(4);\r\n\t\t//west\r\n\t\tif(pos == 0){\r\n\t\t\tx = 0;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//north\r\n\t\telse if(pos == 1){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 0;\r\n\t\t}\r\n\t\t//east\r\n\t\telse if(pos == 2){\r\n\t\t\tx = 800;\r\n\t\t\ty = random.nextInt(601);\r\n\t\t}\r\n\t\t//\r\n\t\telse if(pos == 3){\r\n\t\t\tx = random.nextInt(801);\r\n\t\t\ty = 600;\r\n\t\t}\r\n\t\tPoint p = new Point(x,y);\r\n\t\treturn p;\r\n\t}" ]
[ "0.7384593", "0.6984336", "0.69561374", "0.6904413", "0.67742723", "0.67401844", "0.66543233", "0.66115916", "0.6576259", "0.6547382", "0.6476616", "0.6457236", "0.64457935", "0.64456874", "0.6419174", "0.63924336", "0.6375407", "0.63592845", "0.6348657", "0.6335586", "0.63035876", "0.62888336", "0.62660795", "0.62487155", "0.6247698", "0.6240942", "0.6232593", "0.62072694", "0.61840034", "0.618173", "0.6114087", "0.6088762", "0.60849553", "0.6084004", "0.60688585", "0.60638195", "0.6036417", "0.599659", "0.5969117", "0.5945461", "0.594522", "0.5938223", "0.5938121", "0.59234005", "0.59225976", "0.5914037", "0.59062433", "0.59057236", "0.589803", "0.58976907", "0.58752614", "0.5873063", "0.5868042", "0.58574426", "0.5851368", "0.5834327", "0.58336663", "0.58189255", "0.58136785", "0.5798917", "0.5794022", "0.57908595", "0.5787351", "0.5780107", "0.5775354", "0.57738507", "0.5768512", "0.576491", "0.57625794", "0.575557", "0.57483435", "0.5742887", "0.5737738", "0.5737253", "0.5736861", "0.57203215", "0.5719136", "0.5714485", "0.5700835", "0.56948876", "0.5694156", "0.5686302", "0.56841165", "0.5672542", "0.566328", "0.56627417", "0.5660616", "0.5659469", "0.5657629", "0.56555355", "0.56553185", "0.5647326", "0.56336856", "0.5629692", "0.5629054", "0.5627166", "0.56220806", "0.5613915", "0.56135285", "0.56105745" ]
0.76138043
0
username password we would be sending information through a form
public static boolean login(Context ctx) { String username = ctx.formParam("username"); String password = ctx.formParam("password"); System.out.println(username); System.out.println(password); if(username.equals("user") && password.equals("pass")) { ctx.res.setStatus(204); ctx.sessionAttribute("user", new User("McBobby",true)); return true; }else { ctx.res.setStatus(400); ctx.sessionAttribute("user", new User("fake",false)); return false; } // ctx.queryParam(password); /authenticate?password=value // ctx.pathParam(password); /authenticate/{password} }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void login() {\n AnonimoTO dati = new AnonimoTO();\n String username = usernameText.getText();\n String password = passwordText.getText();\n\n if (isValidInput(username, password)) {\n dati.username = username;\n dati.password = password;\n\n ComplexRequest<AnonimoTO> request =\n new ComplexRequest<AnonimoTO>(\"login\", RequestType.SERVICE);\n request.addParameter(dati);\n\n SimpleResponse response =\n (SimpleResponse) fc.processRequest(request);\n\n if (!response.getResponse()) {\n if (ShowAlert.showMessage(\n \"Username o password non corretti\", AlertType.ERROR)) {\n usernameText.clear();\n passwordText.clear();\n }\n }\n }\n\n }", "String getUserPassword();", "private void sendPasswordToUser(UserForm userForm) {\n }", "private void login(String username,String password){\n\n }", "private void formRequest() {\r\n\t\tbyte[] user_bytes = _userName.getBytes();\r\n\t\tbyte[] password_bytes = _password.getBytes();\r\n\r\n\t\t_request = new byte[3 + user_bytes.length + password_bytes.length];\r\n\t\t_request[0] = (byte) 1;\r\n\t\t_request[1] = (byte) user_bytes.length;\r\n\t\tSystem.arraycopy(user_bytes, 0, _request, 2, user_bytes.length);\r\n\t\t_request[2 + user_bytes.length] = (byte) password_bytes.length;\r\n\t\tSystem.arraycopy(password_bytes, 0, _request, 3 + user_bytes.length, password_bytes.length);\r\n\t}", "private void logIn() {\n char[] password = jPasswordField1.getPassword();\n String userCode = jTextField1.getText();\n\n String txtpassword = \"\";\n for (char pw : password) {\n txtpassword += pw;\n }\n if (\"\".equals(txtpassword)) {\n JOptionPane.showMessageDialog(this, textBundle.getTextBundle().getString(\"enterPassword\"), \"No Password\", JOptionPane.WARNING_MESSAGE);\n } else if (txtpassword.equals(userData.get(0).toString())) {\n jPasswordField2.setEnabled(true);\n jPasswordField3.setEnabled(true);\n jPasswordField2.setEditable(true);\n jPasswordField3.setEditable(true);\n jPasswordField2.grabFocus();\n }\n }", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "String getPassword();", "void login(String user, String password);", "private void logIn() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String line = reader.readLine();\n String[] a = line.split(\";\");\n\n String user = a[0];\n String password = a[1];\n boolean rez = service.checkPassword(user, password);\n if(rez == TRUE)\n System.out.println(\"Ok\");\n else\n System.out.println(\"Not ok\");\n }", "public void setPassword(String pass);", "public void loginAsTom() {\n textFieldUsername.withTimeoutOf(2000, MILLIS).type(\"tomsmith\");\n textFieldPassword.type(\"SuperSecretPassword!\");\n buttonLogin.click();\n }", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "private void login(String username, String password) {\n WebElement usernameTextBox = driver.findElement(By.id(\"username\"));\n WebElement passwordTextBox = driver.findElement(By.id(\"password\"));\n usernameTextBox.sendKeys(username);\n passwordTextBox.sendKeys(password);\n WebElement submitButton = driver.findElement(By.xpath(\"/html/body/div/div/div/div/div[2]/form/fieldset/div[3]/div/button\"));\n submitButton.click();\n }", "public String getPassword();", "public String getPassword();", "public void login() {\n\n String username = usernameEditText.getText().toString();\n String password = passwordEditText.getText().toString();\n regPresenter.setHost(hostEditText.getText().toString());\n regPresenter.login(username, password);\n }", "private void handlePass(String password) {\n // User has entered a valid username and password is correct\n if (currentUserStatus == userStatus.ENTEREDUSERNAME && password.equals(validPassword)) {\n currentUserStatus = userStatus.LOGGEDIN;\n sendMsgToClient(\"230-Welcome to HKUST\");\n sendMsgToClient(\"230 User logged in successfully\");\n }\n\n // User is already logged in\n else if (currentUserStatus == userStatus.LOGGEDIN) {\n sendMsgToClient(\"530 User already logged in\");\n }\n\n // Wrong password\n else {\n sendMsgToClient(\"530 Not logged in\");\n }\n }", "public void login() {\n if (!areFull()) {\n return;\n }\n\n // Get the user login info\n loginInfo = getDBQuery(nameField.getText());\n if (loginInfo.equals(\"\")) {\n return;\n }\n\n // Get password and check if the entered password is true\n infoArray = loginInfo.split(\" \");\n String password = infoArray[1];\n if (!passField.getText().equals(password)) {\n errorLabel.setText(\"Wrong Password!\");\n return;\n }\n\n continueToNextPage();\n }", "Password getPsw();", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void loginAsUser() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"user\");\n vinyardApp.fillPassord(\"123\");\n vinyardApp.clickSubmitButton();\n }", "private String getPasswordFromUser() {\n JPasswordField passField = new JPasswordField(10);\n int action = JOptionPane.showConfirmDialog(null, passField, \"Please enter your password:\", JOptionPane.OK_CANCEL_OPTION);\n\n if (action < 0) {\n System.exit(0);\n }\n\n __logger.info(\"Got password from user\");\n\n return new String(passField.getPassword());\n }", "private void serchUser() {\n if (!userNameTextField.getText().isEmpty() && !passwordPasswordField.getText().isEmpty()) {\n try {\n User user = UserController.searchUserByUserName(userNameTextField.getText());\n if (user != null) {\n if (passwordPasswordField.getText().equals(user.getPassword())) {\n closeFadeOut();\n Hi hi = new Hi();\n hi.setUser(user);\n hi.setVisible(true);\n dispose();\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Incorrect username or password !\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n } catch (ClassNotFoundException ex) {\n ex.printStackTrace();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n } else {\n JOptionPane.showMessageDialog(this, \"Please enter username and password\");\n passwordPasswordField.setText(\"\");\n userNameTextField.requestFocus();\n userNameTextField.selectAll();\n }\n\n }", "public void logMe(String username){\r\n\t\tif(controller.isUsernameValid(username,1)){\r\n\t\t\tString password= \"\";\r\n\t\t\tdisplay(\"Enter your password: \");\r\n\t\t\tpassword = sc.nextLine();\r\n\t\t\tcontroller.log(username, password);\r\n\t\t}\r\n\t}", "public void fillInLogin(String username, String password) {\n WebElement usernameField = driver.findElement(By.id(\"username\"));\n WebElement passwordField = driver.findElement(By.cssSelector(\"input[name=password]\"));\n WebElement loginButton = driver.findElement(By.xpath(\"//button[@type='submit']\"));\n\n // Sending username and password: tomsmith / SuperSecretPassword!\n usernameField.sendKeys(username);\n passwordField.sendKeys(password);\n\n // Clicking Login button\n loginButton.click();\n\n // 5 sec waiting\n try {\n Thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "private void userInformation()\n {\n name = eName.getText().toString();\n userName = eUserName.getText().toString();\n email = eEmail.getText().toString();\n password = ePassword.getText().toString();\n password = encryptionAlgo.encryptPass(password);//initialize new encrypt password\n address = eAddress.getText().toString();\n favouriteWord = eFavourite.getText().toString();\n }", "@Override\n\t\t\tpublic void submit(String user, String pass) {\n\t\t\t\tsetUsername(user);\n\t\t\t\tsetPassword(pass);\n\t\t\t\tlogin();\n\t\t\t}", "public void showPasswordPrompt();", "public void PreparedPostRequest(String username, String password);", "private void register(String username,String password){\n\n }", "@When(\"user enter the username and password\")\n\tpublic void user_enter_the_username_and_password() {\n\t\tSystem.out.println(\"user enter the username and password\");\n\t\tdriver.findElement(By.id(\"txtUsername\")).sendKeys(\"Admin\");\n\t\tdriver.findElement(By.id(\"txtPassword\")).sendKeys(\"admin123\");\n\t \n\t}", "@Override\r\n protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException{\n String usuarioOk = \"Martin\";\r\n String passwordOk = \"123\";\r\n \r\n String usuario = request.getParameter(\"usuario\");\r\n String password = request.getParameter(\"password\");\r\n \r\n PrintWriter out = response.getWriter();\r\n if(usuarioOk.equals(usuario) && passwordOk.equals(password)){\r\n out.print(\"<h1>\");\r\n out.print(\"Datos correctos\");\r\n out.print(\"<br> Usuario: \" + usuario);\r\n out.print(\"<br> Password: \" + password);\r\n out.print(\"</h1>\");\r\n \r\n }else {\r\n response.sendError(response.SC_UNAUTHORIZED, \"Las credenciales son incorrectas\");\r\n }\r\n out.close();\r\n }", "private void login(String username, String password) {\n driver.findElement(usernameTextBox).sendKeys(username);\n driver.findElement(passwordTextBox).sendKeys(password);\n driver.findElement(submitButton).click();\n }", "private void submitForm() {\n // Build list params\n List<NameValuePair> list = new ArrayList<>();\n list.add(new BasicNameValuePair(\"tag\", AppConfig.TAG_LOGIN));\n list.add(new BasicNameValuePair(\"username\", editTextLogin.getText().toString()));\n list.add(new BasicNameValuePair(\"password\", editTextPassword.getText().toString()));\n\n ConnectionTask connectionTask = new ConnectionTask(this, list);\n connectionTask.execute();\n }", "public String getReceptionist_password(){ return receptionist_password;}", "public void loginTo(String strUserName,String strPasword)\n { \n if(strUserName.equals(\"\"))\n \tthis.getUserName().clear();\n \n if(strPasword.equals(\"\"))\n \tthis.getPassword().clear();\n \n \n \tthis.getUserName().sendKeys(strUserName); \n\n this.getPassword().sendKeys(strPasword); \n\n this.getLoginButton().click(); \n }", "@When(\"user enters username and password\")\n\tpublic void user_enters_username_and_password() throws InterruptedException {\n\t\tdriver.findElement(By.id(\"name\")).sendKeys(\"Raghav\");\n\t\tdriver.findElement(By.id(\"password\")).sendKeys(\"12345\");\n\t\tThread.sleep(2000);\n\n\n\t}", "String password();", "public String signIn(String username, String password);", "private void login() {\n\t\t \tetUserName.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etUserName);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t \t\n\t\t \t // TextWatcher would let us check validation error on the fly\n\t\t \tetPass.addTextChangedListener(new TextWatcher() {\n\t\t public void afterTextChanged(Editable s) {\n\t\t Validation.hasText(etPass);\n\t\t }\n\t\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t\t });\n\t\t }", "public String signin() {\n \t//System.out.print(share);\n \tSystem.out.println(username+\"&&\"+password);\n String sqlForsignin = \"select password from User where username=?\";\n Matcher matcher = pattern.matcher(sqlForsignin);\n String sql1 = matcher.replaceFirst(\"'\"+username+\"'\");//要到数据库中查询的语句\n select();\n DBConnection connect = new DBConnection();\n List<String> result = connect.select(sql1);//查询结果\n if (result.size() == 0) return \"Fail1\";\n \n if (result.get(0).equals(password)){\n \tsession.setAttribute( \"username\", username);\n \treturn \"Success\";\n }\n else return \"Fail\";\n }", "public java.lang.String getPassword();", "void setUserPasswordHash(String passwordHash);", "@When(\"^User enters \\\"([^\\\"]*)\\\" and \\\"([^\\\"]*)\\\"$\")\r\n\tpublic void user_enters_UserName_and_Password(String username, String password) throws Throwable {\n\t\tdriver.findElement(By.id(\"Email\")).sendKeys(username);\r\n\t\tdriver.findElement(By.id(\"Password\")).sendKeys(password);\r\n\t\tdriver.findElement(By.xpath(\"//input[@class='button-1 login-button']\")).click();\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (arg0.getActionCommand().equals(\"LOGIN\")) {\n\t\t\t\n\t\t\t// Verify username is valid and acquire associated password for account\n\t\t\tString username = usernameTF.getText();\n\t\t\t\n\t\t\t// Database: Check for username\n\t\t\tif (username == \"jmn7080\") {\n\t\t\t\t// Get password from database\n\t\t\t//\tcorrectPassword = getAssociatedPassword(username);\n\t\t\t\t\n\t\t\t\t// Retrieve password input by user\n\t\t\t\tchar[] input = passwordPF.getPassword();\n\t\t\t\tchar[] correctPassword = { 's', 'a', 'v', 'e', 'm', 'e'};\n\t\t\t\t\n\t\t\t\tif (isPasswordCorrect(input, correctPassword)) {\n\t\t\t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Success! You typed the right password.\");\n\t\t\t\t\tloginWindow.dispose();\n\t\t\t\t\tcreateTempData();\n\t\t\t\t\tteacherPortalScreen();\n\t\t\t\t\t\n\t\t } else {\n\t\t \t\t\tJOptionPane.showMessageDialog(newUserWindow,\"Invalid password. Try again.\",\n\t\t \"Error Message\", JOptionPane.ERROR_MESSAGE);\n\t\t usernameTF.setText(\"\");\n\t\t passwordPF.setText(\"\");\n\t\t \n\t\t // Zero out the possible password, for security.\n\t\t Arrays.fill(input, '0');\n\t\t }\n\t\t\t\t\n\t\t\t\t// Zero out the possible password, for security.\n\t Arrays.fill(input, '0');\n\t \n\t passwordPF.selectAll();\n\t resetFocus();\n\t\t\t} \n\t\t}\n\t}", "public static String logIn() {\n\t\tboolean flag;\n\t\tdo {\n\t\t\tflag = false;\n\t\t\ttry {\n\t\t\t\tResultSet rs = Messages.connect().executeQuery(\"SELECT B_Username, B_Password FROM BloodDonor\");\n\t\t\t\tusername_login = JOptionPane.showInputDialog(null,\"Welcome! Please type your username\", \"LOG IN\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\tpassword_login = JOptionPane.showInputDialog(null,\"Enter your password\", \"LOG IN\", JOptionPane.INFORMATION_MESSAGE);\n\t\t\t\twhile (rs.next()){\n\t\t\t\t\tif (rs.getString(\"B_Username\").equals(username_login) && rs.getString(\"B_password\").equals(password_login)){\n\t\t\t\t\t\tflag = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\t\n\t\t\t\tif (flag == false){\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Invalid username or password. Please try again.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n\t\t\t\t}\n\t\t\t\tMessages.connect().close();\n\t\t\t } catch (InputMismatchException | SQLException e) {\n JOptionPane.showMessageDialog(null, \"Please enter a valid username or password.\", \"ALERT MESSAGE\", JOptionPane.WARNING_MESSAGE);\n flag = false;\n }\n\t\n\t\t}while (flag == false);\n\t\treturn username_login;\n\t}", "@When(\"^Enter password as \\\"([^\\\"]*)\\\"$\")\n\tpublic void enter_password_as(String arg1) throws Throwable {\n\t\tpass = arg1;\n\t\tSystem.out.println(userName+\" - \"+ pass);\n\t\tloginPage.loginWithCredentials(userName, pass);\n\t}", "public String getPassword() {return password;}", "void askUsername();", "@When(\"^The user enters the password$\")\n\tpublic void the_user_enters_the_password() throws Throwable {\n\t\t\n\t lpw.password_textbox();\n\t}", "private void setUserCredentials() {\n ((EditText) findViewById(R.id.username)).setText(\"harish\");\n ((EditText) findViewById(R.id.password)).setText(\"11111111\");\n PayPalHereSDK.setServerName(\"stage2pph10\");\n }", "public void loginUser() {\n \tString username = usernameField.getText().toString();\n \tString password = passwordField.getText().toString();\n \n \t// Validation part.\n \tString empty = \"\";\n \t// Check if username is empty.\n \tif(username.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a username.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t// Check if username contains othe characters.\n \tif(! Pattern.matches(\"[a-zA-Z]+\", username)) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Username can only contain alphabets\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n \t\n \t// Check if password is empty.\n \tif(password.isEmpty()) {\n \t\tToast toast = Toast.makeText(\n \t\t\tthis,\n \t\t\t\"Please enter a password.\",\n \t\t\tToast.LENGTH_LONG);\n \t\ttoast.show();\n \t\treturn;\n \t}\n\n \t\n \tArrayList<NameValuePair> userData = new ArrayList<NameValuePair>();\n \tuserData.add(new BasicNameValuePair(\"username\", username));\n \tuserData.add(new BasicNameValuePair(\"password\", password));\n \t\n \t// Now send the data to the login user task to\n \t// check if they are correct.\n \tnew AuthenticateUserTask(this, userData).execute();\n \t\n }", "boolean validateUserAndPassword(String username, String password);", "public void checkUsername(ActionEvent actionEvent) {\n String temp= ClientAPI.getForgetPassword(username.getText());\n if(temp==null){\n userExist.setVisible(true);\n } else{\n userExist.setVisible(false);\n question.setText(temp.substring(0, temp.indexOf(\"|\")));\n help=temp.substring(temp.indexOf(\"|\")+1, temp.lastIndexOf(\"|\"));\n password.setText(temp.substring(temp.lastIndexOf(\"|\")+1));\n question.setVisible(true);\n }\n }", "public void login(String uname, String pwd) {\n username.type(uname);\n password.type(pwd);\n loginButton.click();\n }", "public abstract boolean checkCredentials (String username, String password);", "public void Login(String userName, String password) \n\t{\n\t\ttxtUserName.sendKeys(userName);\n\t\ttxtPassword.sendKeys(password);\n\t}", "private void loginAsAdmin() {\n vinyardApp.navigateToUrl(\"http://localhost:8080\");\n vinyardApp.fillUsername(\"admin\");\n vinyardApp.fillPassord(\"321\");\n vinyardApp.clickSubmitButton();\n }", "@Override\r\n public void onClick(View v) {\n String username = etUsername.getText().toString();\r\n String password = etPassword.getText().toString();\r\n\r\n // cek apakah username dan password terisi\r\n if (username.length() > 0 && password.length() > 0) {\r\n loginWithEmailAndPassword(username, password);\r\n } else {\r\n Toast.makeText(login.this, \"Fill all field!\",\r\n Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void handlePost( HttpExchange exchange ) throws IOException {\n switch( exchange.getRequestURI().toString().replace(\"%20\", \" \") ) {\n // the web client wants to submit a log in request\n case \"/log-in\":\n // get the body of the HttpExchange\n String body = getBody(exchange);\n print(\"BODY: \\n\" + body);\n if ( body.equals(\"-1\") == true) { // if the body is empty\n sendResponse(exchange, new byte[0], 204);\n // HTTP Response code 204 - no content\n } else {\n\n String[] content = body.split(\"&\");\n //pos 0 : username=<content>; pos 1 : password=<content>; pos 2 : <submit type>\n\n String username = content[0].split(\"=\")[1];\n String password = content[1].split(\"=\")[1];\n\n //check database\n if( username.equals(\"james\") && password.equals(\"123\")) {\n print(\"Username and Password Match\");\n sendResponse(exchange, getHTMLPage(\"/home.html\"), 200); // this will be changed to a redirect notice\n // set client as logged in\n logged_in = true;\n\n// sendResponse(exchange, getPanel(exchange, \"home.html\"), 200);\n } else {\n sendResponse(exchange, new byte[0], 406);\n // send HTTP Response code 406 - Not acceptable\n }\n }\n\n break;\n case \"/home\":\n\n default:\n print(\"Body:\");\n print( getBody(exchange) );\n sendResponse(exchange, htmlBuilder( \"Not Implemented\", \"Http Error 501: Not Implemented\").getBytes(), 501);\n break;\n }\n // got body response .. check form sending to - if form is login then get username and password combo\n }", "private String extractUsername() {\n return SwingUtil.extract(usernameJTextField, Boolean.TRUE);\n }", "public void user_signin()\r\n\t{\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"email\")).clear();\r\n\t\tdriver.findElement(By.id(\"email\")).sendKeys(UID);\r\n\t\t\r\n\t\tdriver.findElement(By.id(\"pass\")).clear();\r\n\t\tdriver.findElement(By.id(\"pass\")).sendKeys(PWD);\r\n\t}", "protected boolean login() {\n\t\tString Id = id.getText();\n\t\tif (id.equals(\"\")){\n\t\t\tJOptionPane.showMessageDialog(null, \"请输入用户名!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tUserVO user = bl.findUser(Id);\n\t\tif (user == null){\n\t\t\tJOptionPane.showMessageDialog(null, \"该用户不存在!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (! user.getPassword().equals(String.valueOf(key.getPassword()))){\n\t\t\tSystem.out.println(user.getPassword());\n\t\t\tJOptionPane.showMessageDialog(null, \"密码错误!\",\"\", JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tsimpleLoginPanel.this.setVisible(false);\n\t\tUserblService user2 = new Userbl(Id);\n\t\tReceiptsblService bl = new Receiptsbl(user2);\n\t\tClient.frame.add(new simpleMainPanel(user2,bl));\n\t\tClient.frame.repaint();\n\t\t\n\t\treturn true;\n\t\t\n\t}", "public void doLogin() {\r\n\t\tif(this.getUserName()!=null && this.getPassword()!=null) {\r\n\t\t\tcdb=new Connectiondb();\r\n\t\t\tcon=cdb.createConnection();\r\n\t\t\ttry {\r\n\t\t\t\tps=con.prepareStatement(\"Select idUser,nom,prenom,userName,type,tel from t_user where userName=? and pass=? and status=?\");\r\n\t\t\t\tps.setString(1, this.getUserName());\r\n\t\t\t\tps.setString(2, this.getPassword());\r\n\t\t\t\tif(rs.next()) {\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"idUser\", rs.getInt(\"idUser\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"nom\", rs.getString(\"nom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"prenom\", rs.getString(\"prenom\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"userName\", rs.getString(\"userName\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"type\", rs.getString(\"type\"));\r\n\t\t\t\t\tSessionConfig.getSession().setAttribute(\"tel\", rs.getString(\"tel\"));\r\n\t\t\t\t\tFacesContext.getCurrentInstance().getExternalContext().redirect(\"view/welcome.xhtml\");\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tnew Message().error(\"echec de connexion\");\r\n\t\t\t}finally {\r\n\t\t\t\tcdb.closeConnection(con);\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\tnew Message().warnig(\"Nom d'utilisateur ou mot de passe incorrecte\");\r\n\t\t}\r\n\t}", "private void adminLogin() {\n\t\tdriver.get(loginUrl);\r\n\t\t// fill the form\r\n\t\tdriver.findElement(By.name(\"username\")).sendKeys(USERNAME);\r\n\t\tdriver.findElement(By.name(\"password\")).sendKeys(PASSWORD);\r\n\t\t// submit login\r\n\t\tdriver.findElement(By.name(\"btn_submit\")).click();\r\n\t}", "void setPassword(String ps) {\n this.password = ps;\n }", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "public void setPassword2(String password2);", "private void proseslogin() {\n String user = username.getText();\n char[] pass = password.getPassword();\n \n if (user.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"Username Harus Diisi\");\n username.requestFocus();\n } else if (pass.length == 0){\n JOptionPane.showMessageDialog(this, \"Password Harus Diisi\");\n password.requestFocus();\n }else{\n String password = new String(pass);\n login.setEnabled(false);\n try {\n Connection conn = koneksi.sambungDB();\n Statement st = conn.createStatement();\n String n = \"SELECT * FROM tb_admin \"\n +\"WHERE admin_username='\"+user+\"' \"\n +\"AND admin_password=MD5('\"+password+\"')\" ;\n// System.out.println(q);\n ResultSet rs = st.executeQuery(n);\n if (rs.next()) {\n Data_perumahan h = new Data_perumahan();\n h.setExtendedState(Frame.MAXIMIZED_BOTH);\n this.setVisible(false);\n h.setVisible(true);\n }else{\n JOptionPane.showMessageDialog(this, \"Username dan Password Salah\");\n username.requestFocus();\n }\n login.setEnabled(true);\n } catch (HeadlessException | SQLException e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n }\n }", "@When(\"user enters username as {string} and password as {string}\")\n public void userEntersUsernameAsAndPasswordAs(String username, String password) {\n homePage.enterUsername(username);\n homePage.enterPassword(password);\n }", "public void sendOTP(String username){\n }", "@Override\r\n\tpublic String execute() throws Exception {\n\t\tSystem.out.println(username + \"---\" + password + \"---\" + address);\r\n\t\t\r\n\t\tActionContext context = ServletActionContext.getContext();\r\n\t\tMap<String, Parameter> map = context.getParameters();\r\n\t\t\r\n\t\tSystem.out.println(\"username=\" + map.get(\"username\"));\r\n\t\t\r\n\t\treturn NONE;\r\n\t}", "public String login(String username, String password){\n return login.login(username, password);\n }", "private void getUserNamePwd() {\n\n try {\n // get Application Connection ID\n LogonCoreContext lgCtx = LogonCore.getInstance().getLogonContext();\n userName = lgCtx.getBackendUser();\n pwd = lgCtx.getBackendPassword();\n appConnID = LogonCore.getInstance().getLogonContext()\n .getConnId();\n } catch (LogonCoreException e) {\n LogManager.writeLogError(Constants.device_reg_failed_txt, e);\n }\n }", "public void login_pw() {\n\t\tIntent intent = new Intent(this, ResetPasswordActivity.class);\n\t\tstartActivity(intent);\n\t}", "private void login()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Get the connection to the database\r\n\t\t\tDatabase db = new Database();\r\n\r\n\t\t\t//Get the data and format it correctly\r\n\t\t\tString username = txtUsername.getText().trim().toLowerCase();\r\n\t\t\tString password = new String(txtPassword.getPassword()).trim();\r\n\r\n\t\t\t//Verify that user information has been inserted into the username/password fields\r\n\t\t\tif (username.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your username.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtUsername.requestFocus();\r\n\t\t\t}//End of if\r\n\t\t\telse if (password.length() == 0)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\tthis,\r\n\t\t\t\t\t\"Please enter your password.\",\r\n\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t);\r\n\r\n\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t}//End of else if\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tif (!db.usernameExists(username))\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t);\r\n\r\n\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t}//End of if\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tUser user = db.loadUser(username);\r\n\t\t\t\t\tbyte [] bPassword = PasswordEncryption.hashPassword(username, password);\r\n\r\n\t\t\t\t\tif (bPassword.length != user.getPassword().length)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination you provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t}//End of if\r\n\t\t\t\t\telse\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tboolean same = true;\r\n\r\n\t\t\t\t\t\t//Check the passwords for equality\r\n\t\t\t\t\t\tfor (int x = 0; x < bPassword.length; x++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (bPassword[x] != user.getPassword()[x])\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tsame = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t}//End of for\r\n\r\n\t\t\t\t\t\tif (same)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (user.getAccountLevel() < 10)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\t\"You do not have sufficient rights to access this application.\",\r\n\t\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t//Login the user\r\n\t\t\t\t\t\t\t\tSession.login(user);\r\n\r\n\t\t\t\t\t\t\t\t//Open the dashbard\r\n\t\t\t\t\t\t\t\tSession.openWindow(new Dashboard());\r\n\r\n\t\t\t\t\t\t\t\t//Close this window\r\n\t\t\t\t\t\t\t\tthis.dispose();\r\n\t\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t\t}//End of if\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\t\t\t\t\tthis,\r\n\t\t\t\t\t\t\t\t\"The username/password combination your provided does not exist.\",\r\n\t\t\t\t\t\t\t\tApplication.NAME,\r\n\t\t\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE\r\n\t\t\t\t\t\t\t);\r\n\r\n\t\t\t\t\t\t\ttxtPassword.setText(\"\");\r\n\t\t\t\t\t\t\ttxtPassword.requestFocus();\r\n\t\t\t\t\t\t}//End of else\r\n\t\t\t\t\t}//End of else\r\n\t\t\t\t}//End of else\r\n\t\t\t}//End of else\r\n\t\t}//End of try\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\t//Inform the user that the application was unable to connect to the database.\r\n\t\t\tJOptionPane.showMessageDialog(\r\n\t\t\t\tthis,\r\n\t\t\t\t\"An error occured connecting to the database.\\n\\nIf this problem continues, please contact your system administrator.\",\r\n\t\t\t\tApplication.NAME,\r\n\t\t\t\tJOptionPane.ERROR_MESSAGE\r\n\t\t\t);\r\n\t\t}//End of catch\r\n\t}", "private void authenticate(String user, String pass) {\n }", "public void registerUser(String username, String password)\n {\n if(!spaceExists.spaceExists(SpaceUtils.getSpace()))\n {\n spaceExists.getSpaceExistsWarning(loginForm,\n \"\");\n }\n // check text fields are not blank\n if(StringUtils.isNotBlank(username) &&\n StringUtils.isNotBlank(password))\n {\n // Check length of password\n if(password.length() >= 6 &&\n password.length() <= 25)\n {\n // check username length\n if(username.length() >= 3 &&\n username.length() <= 20)\n {\n // continue\n String confirmDialogResponse = confirmPassword();\n\n// System.out.println(\"Dialog: \" + confirmDialogResponse);\n// System.out.println(\"Password: \"+password);\n if(password.equals(confirmDialogResponse))\n {\n // passwords match\n // save user to space\n try\n {\n // create new entry\n // encrypt password\n UserEntry user = new UserEntry();\n user.setUsername(username);\n user.setID(UUID.randomUUID());\n user.setSalt(CipherUtils.getSalt(30));\n user.setPassword(\n CipherUtils.generateSecurePassword(\n password, user.getSalt()));\n\n if(user.getSecureUsername().length() > 3)\n {\n // there are at least 3 non-special characters\n // create user\n if(userUtils.createUser(user) != null)\n {\n\n JOptionPane.showMessageDialog(loginForm,\n \"Welcome \" + user.getUsername() + \"!\");\n\n // remove loginForm\n loginForm.setVisible(false);\n loginForm.dispose();\n // Lease is renewed at every login\n userUtils.renewUserLease(user);\n\n // Debug:\n// UserEntry debug = (UserEntry) space.readIfExists(user, null, 3000);\n// System.out.println(\"User: \" + debug.getUsername() +\" Successfully added!\");\n// System.out.println(\"Main Form Created!\");\n\n // Create MainForm\n new MainForm(user);\n }\n else\n {\n // user already exists\n JOptionPane.showMessageDialog(loginForm,\n user.getUsername() + \" is taken.\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must have at least 3 non-special characters. \");\n }\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Passwords did not match!\");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Username must be 3 - 20 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"Password must be 6 - 25 characters. \");\n }\n }\n else\n {\n JOptionPane.showMessageDialog(loginForm,\n \"A username and password are required.\");\n }\n }", "public void pass1()throws Exception\r\n { \r\n guiframe g=new guiframe();\r\n g.setSize(400,400);\r\n g.setTitle(\"Authentication A\");\r\n g.setVisible(true);\r\n \r\n \r\n \r\n \r\n \r\n /*Scanner s =new Scanner(System.in);\r\n System.out.println(\"Enter the Password:\");\r\n String str=s.nextLine();\r\n DateFormat df=new SimpleDateFormat(\"HH:mm\");\r\n Date d=new Date();\r\n String time=df.format(d);\r\n StringBuffer t1=new StringBuffer(time);\r\n t1=t1.deleteCharAt(2);\r\n time=t1.toString();\r\n System.out.println(t1);\r\n \r\n if(str.equals(time))\r\n System.out.println(\"Access Granted\");\r\n else\r\n System.out.println(\"Access Denied\");*/\r\n }", "public Login(Main pai) {\n this.pai = pai;\n initComponents();\n senhaBox.setEchoChar('*');\n \n loginBox.setText(\"[email protected]\");\n senhaBox.setText(\"eymar\");\n }", "public String getPassword() { \n return this.password; \n }", "public Person login(String username, String password);", "public void setUsername(String username) {this.username = username;}", "private void submitForm() {\n this.setDisable(true);\n clearErrorMessage();\n if(validateForm()) {\n CharSequence chars = passwordField.getCharacters();\n String username = usernameField.getText();\n this.controller.validateLoginCredentials(username, chars);\n }\n this.setDisable(false);\n }", "public void loginByHittingEnterInPasswordBox(String username, String password) {\n\t\t\n\t\tusernameBox.sendKeys(username);\n\t\tpasswordBox.sendKeys(password, Keys.ENTER);\n\t}" ]
[ "0.7231357", "0.7037279", "0.7020391", "0.69345504", "0.6855498", "0.6697263", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66854435", "0.66616184", "0.66144943", "0.6607131", "0.6560049", "0.6539534", "0.6539534", "0.6539534", "0.6539534", "0.6539534", "0.6539534", "0.6539534", "0.65344477", "0.64866227", "0.64866227", "0.6479839", "0.6472122", "0.646933", "0.646131", "0.6451691", "0.6451691", "0.6451691", "0.64432156", "0.6432137", "0.6425643", "0.64006466", "0.63880336", "0.63788635", "0.6372801", "0.6358558", "0.63524354", "0.63512987", "0.63484883", "0.6337321", "0.6333515", "0.6330844", "0.63201785", "0.63097006", "0.6298133", "0.62967277", "0.6294052", "0.6281712", "0.6277062", "0.62744576", "0.62633604", "0.62498736", "0.6248916", "0.62460333", "0.6232427", "0.6230821", "0.6226793", "0.6224557", "0.6206569", "0.62062484", "0.6195191", "0.61821884", "0.6181127", "0.6177566", "0.6176881", "0.61733204", "0.6157576", "0.6154437", "0.6153375", "0.61515045", "0.6149101", "0.61468756", "0.6144873", "0.61432004", "0.61390865", "0.61330235", "0.6126929", "0.6122108", "0.6115751", "0.6113747", "0.6096879", "0.60949343", "0.6093761", "0.60919034", "0.6081624", "0.6081259", "0.6080071", "0.60786605", "0.6077382", "0.6076839", "0.6074585", "0.6072109", "0.60715085" ]
0.0
-1
A stateless server treats every request the same, independent of prior requests.
public static void main(String[] args) { Javalin app = Javalin.create(config -> config.addStaticFiles( staticFiles -> { staticFiles.directory = "/public"; } ) ).start(6001); app.get("/", ctx -> ctx.html("hello!")); app.post("/authenticate", ctx -> {login(ctx);} ); //Someone has to ping my authenticate, //before they can access my "/secret" app.get("/secret", ctx -> { User sessionUser = ctx.sessionAttribute("user"); if(sessionUser == null) { ctx.res.setStatus(400); System.out.println("Login in first!"); }else if(sessionUser.isAdmin()) { ctx.res.setStatus(200); //success! ctx.req.getRequestDispatcher("/SuperSecretPage.html").forward(ctx.req, ctx.res); }else if(sessionUser.isAdmin() == false) { ctx.res.setStatus(401); ctx.req.getRequestDispatcher("/failed.html").forward(ctx.req, ctx.res); } }); //That I only want access once they login! app.get("logout", ctx -> { ctx.sessionAttribute("user", new User("fake",false)); //instead of removing altogther! // ctx.consumeSessionAttribute("user"); //logout! }); //creating cookies app.get("/cookie", ctx -> { //cookies stored in the client machine! ctx.cookie("user", "McBobby"); ctx.cookie("favoriteColor","Blue"); ctx.cookie("member","true"); ctx.cookie("admin", "false"); ctx.cookie("access", "true"); }); app.get("/checkCookies", ctx -> ctx.html(ctx.cookieMap().toString())); //checking if the cookies exist // app.get("/checkCookies", ctx -> { // // ctx.res.setStatus(404); // // //checking if the cookieMap exists // if(ctx.cookieMap() != null) { // if(ctx.cookieMap().get("member")!= null //checking if the "member" cookie exists // && ctx.cookieMap().get("member").equals("true")) { //checkif the member cookie has the right value // ctx.res.setStatus(200); // // }} // // // // // }); //removing or overwriting the value of the cookie app.get("/removeCookies", ctx ->{ ctx.removeCookie("member"); ctx.cookie("access", "false"); }); app.get("/setSession", ctx -> { ctx.sessionAttribute("user", new User("Mcbobby",false)); }); app.get("/checkSession", ctx -> { User sessionUser = ctx.sessionAttribute("user"); System.out.println(sessionUser); }); app.get("/invalidateSession", ctx -> { ctx.consumeSessionAttribute("user"); //this invalidates the session! }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static BiFunction<HttpServerRequest, HttpServerResponse, Publisher<Void>> serveSse() {\n Flux<Long> flux = Flux.interval(Duration.ofMillis(10));\n return (request, response) ->\n response.sse()\n .send(flux.map(in -> toByteBuf(UUID.randomUUID().toString())), b -> true);\n }", "Mono<ServerResponse> indexManagement(ServerRequest request);", "ManagedEndpoint next();", "public void incrementActiveRequests() \n {\n ++requests;\n }", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355620946302\"; //--separate-comp\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multicomp\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"sep_comp\");\r\n\t\t\t\t\r\n\t\t\t\t//multiCounter.printResponse(req, \"sep_comp\");\r\n\t\t\t\t// use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"sep_comp\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "Mono<ServerResponse> indexing(ServerRequest request);", "@Override\r\n\t\t\tpublic void handle(final HttpServerRequest req) {\n\t\t\t\tString startTime = \"1355562000000\"; //--multi-dist\r\n\t\t\t\tIterator<EventInfo> iter = \r\n\t\t\t\t\t\tdataService.events()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(EventInfo.class).iterator();\r\n\t\t\t\tEventCounter multiCounter = new EventCounter(\"/multi\");\r\n\t\t\t\tint processed = 0;\r\n\t\t\t\twhile (iter.hasNext() && processed < limit) {\r\n\t\t\t\t\tEventInfo event = iter.next();\r\n\t\t\t\t\tmultiCounter.countEvent(event);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\treq.response.setChunked(true);\r\n\t\t\t\tmultiCounter.printDistance(req, \"multidist\");\r\n\t\t\t\t//multiCounter.printResponse(req, \"multidist\");\r\n\t\t\t\t//use response time data\r\n\t\t\t\tIterator<ResponseInfo> respIter = \r\n\t\t\t\t\t\tdataService.response()\r\n\t\t\t\t\t\t\t.find(\"{timestamp:{$gt:\"+startTime+\"}}\")\r\n\t\t\t\t\t\t\t.sort(\"{timestamp:1}\")\r\n\t\t\t\t\t\t\t.as(ResponseInfo.class).iterator();\r\n\t\t\t\tResponseCounter responseCounter = new ResponseCounter();\r\n\t\t\t\tprocessed = 0;\r\n\t\t\t\twhile (respIter.hasNext() && processed < limit) {\r\n\t\t\t\t\tResponseInfo resp = respIter.next();\r\n\t\t\t\t\tresponseCounter.count(resp);\r\n\t\t\t\t\tprocessed++;\r\n\t\t\t\t}\r\n\t\t\t\tresponseCounter.printResponse(req, \"multidist\");\r\n\r\n\t\t\t\treq.response.end();\r\n\t\t\t}", "@SuppressWarnings(\"java:S2189\")\n public static void main(String[] args) {\n ExecutorService executorService = Executors.newFixedThreadPool(4);\n try (ServerSocket serverSocket = new ServerSocket(8080)) {\n log.info(\"Waiting For New Clients...\");\n while (true) {\n Socket sock = serverSocket.accept();\n log.info(\"Connected to a client...\");\n executorService.execute(new ServeRequests(sock));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "ResponseDTO startAllServers();", "@Override\n public void process() {\n Simulator.allocateServer(c);\n }", "public static void main(String[] args) throws Throwable {\n ServerSocket server = new ServerSocket();\n server.bind(new InetSocketAddress(3000));\n System.out.println(\"Blocking Socket : listening for new Request\");\n while (true) { // <1>\n Socket socket = server.accept();\n //each incomming request(socket request) allocate in a separate thread\n new Thread(clientHandler(socket)).start();\n }\n }", "private void dispatchRequests(RoutingContext context) {\n int initialOffset = 5; // length of `/api/`\n // Run with circuit breaker in order to deal with failure\n circuitBreaker.execute(future -> {\n getAllEndpoints().setHandler(ar -> {\n if (ar.succeeded()) {\n List<Record> recordList = ar.result();\n // Get relative path and retrieve prefix to dispatch client\n String path = context.request().uri();\n if (path.length() <= initialOffset) {\n notFound(context);\n future.complete();\n return;\n }\n\n String prefix = (path.substring(initialOffset).split(\"/\"))[0];\n String newPath = path.substring(initialOffset + prefix.length());\n\n // Get one relevant HTTP client, may not exist\n Optional<Record> client = recordList.stream()\n .filter(record -> record.getMetadata().getString(\"api.name\") != null)\n .filter(record -> record.getMetadata().getString(\"api.name\").equals(prefix))\n .findAny(); // simple load balance\n\n if (client.isPresent()) {\n doDispatch(context, newPath, discovery.getReference(client.get()).get(), future);\n } else {\n notFound(context);\n future.complete();\n }\n } else {\n future.fail(ar.cause());\n }\n });\n }).setHandler(ar -> {\n if (ar.failed()) {\n badGateway(ar.cause(), context);\n }\n });\n }", "private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {\n if (!req.getDecoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.getMethod() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // Send the demo page and favicon.ico\n if (\"/\".equals(req.getUri())) {\n ByteBuf content = getContent(getWebSocketLocation(req));\n FullHttpResponse res = new DefaultFullHttpResponse(HTTP_1_1, OK, content);\n res.headers().set(CONTENT_TYPE, \"text/html; charset=UTF-8\");\n setContentLength(res, content.readableBytes());\n sendHttpResponse(ctx, req, res);\n return;\n }\n if (\"/favicon.ico\".equals(req.getUri())) {\n FullHttpResponse res = new DefaultFullHttpResponse(HTTP_1_1, NOT_FOUND);\n sendHttpResponse(ctx, req, res);\n return;\n }\n\n Channel channel = ctx.channel();\n\n QueryStringDecoder dec = new QueryStringDecoder(req.getUri());\n String username = dec.parameters().get(\"username\").get(0);\n String page = dec.parameters().get(\"page\").get(0);\n channel.attr(WebSocketServer.USERNAME).set(username);\n Archon.getInstance().getLogger().warning(Thread.currentThread().getName() + \" [WS] channel username for \" + channel + \": \" + username + \" - page=\" + page);\n\n // Handshake\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(getWebSocketLocation(req), null, false);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());\n } else {\n handshaker.handshake(ctx.channel(), req).addListener((ChannelFutureListener) future -> {\n Channel channel1 = future.channel();\n if (future.isSuccess()) {\n channel1.attr(WebSocketServer.REGISTERED).set(true);\n server.addChannel(channel1);\n } else {\n future.channel().attr(WebSocketServer.REGISTERED).set(false);\n Archon.getInstance().getLogger().log(Level.WARNING, Thread.currentThread().getName() + \" [WS] Failed to register channel (handshake): \" + channel1, future.cause());\n }\n });\n }\n }", "public void run() {\n req.response().end(\"0\"); // Default response = 0\n }", "@Override\n public Flux<Response> statefulChannel(Publisher<Request> messages, ByteBuf metadata) {\n Flux.from(messages).limitRate(8).subscribe(processor::onNext);\n return responseFlux;\n }", "public void sendGetRequest() {\r\n\t\tString[] requests = this.input.substring(4, this.input.length()).split(\" \"); \r\n\t\t\r\n\t\tif(requests.length <= 1 || !(MyMiddleware.readSharded)){\r\n\t\t\tnumOfRecipients = 1;\r\n\t\t\trecipient = servers.get(loadBalance());\r\n\r\n\t\t\trecipient.send(this, input);\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\t\r\n\t\t\tif(requests.length <= 1) {\r\n\t\t\t\tnumOfGets++;\r\n\t\t\t\ttype= \"10\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tnumOfMultiGets++;\r\n\t\t\t\ttype = requests.length+\"\";\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tString reply = recipient.receive();\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\t\r\n\t\t\tint hit = 0;\r\n\t\t\thit += reply.split(\"VALUE\").length - 1;\r\n\t\t\tmiss += requests.length-hit;\r\n\r\n\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tsendBack(currentJob.getClient(), reply);\r\n\r\n\t\t}\r\n\t\telse {\r\n\t\t\tnumOfMultiGets++;\r\n\t\t\ttype = requests.length+\"\";\r\n\t\t\tnumOfRecipients = servers.size();\r\n\t\t\trequestsPerServer = requests.length / servers.size();\r\n\t\t\tremainingRequests = requests.length % servers.size() ;\r\n\t\t\t\r\n\t\t\t//The worker thread sends a number of requests to each server equal to requestsPerServer \r\n\t\t\t//and at most requestsPerServer + remainingRequests\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < servers.size(); i++) {\r\n\t\t\t\tmessage = requestType;\r\n\t\t\t\tfor(int j = 0; j < requestsPerServer; j++){\r\n\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\tmessage += requests[requestsPerServer*i+j];\r\n\t\t\t\t\tif(i < remainingRequests) {\r\n\t\t\t\t\t\tmessage += \" \";\r\n\t\t\t\t\t\tmessage += requests[requests.length - remainingRequests + i];\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tservers.get(i).send(this, message);\r\n\t\t\t}\r\n\t\t\tsendTime = System.nanoTime();\r\n\r\n\t\t\tworkerTime = sendTime - pollTime;\r\n\r\n\t\t\tint hit = 0;\r\n\t\t\tfor(ServerHandler s : servers) {\r\n\t\t\t\tString ricevuto = s.receive();\r\n\t\t\t\thit += ricevuto.split(\"VALUE\").length - 1;\r\n\t\t\t\treplies.add(ricevuto);\r\n\t\t\t}\r\n\t\t\treceiveTime = System.nanoTime();\r\n\t\t\tprocessingTime = receiveTime - sendTime;\r\n\r\n\t\t\tmiss += requests.length-hit;\r\n\t\t\t\r\n\t\t\tfinalReply = \"\";\r\n\t\t\tfor(String reply : replies) {\r\n\t\t\t\tif(!(reply.endsWith(\"END\"))) {\r\n\t\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\t\treplies.clear();\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treply = reply.substring(0, reply.length() - 3);\r\n\t\t\t\t\tfinalReply += reply;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfinalReply += \"END\";\r\n\t\t\tsendBack(currentJob.getClient(), finalReply);\r\n\t\t\treplies.clear();\r\n\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) throws Exception {\n new GStreamClient(\"localhost\", 8080).makeStreamingRequestForBatchedSum();\n\n // Observation : for the first two calls - behavior is same.\n // Iterable hasNext and next are getting called every 2 seconds once server responds\n\n // Observation : server is always assumed to stream the response\n // hence responseObserver is always present\n // if client does not stream the request, then input is just the simple request object, else StreamObserver\n }", "Mono<ServerResponse> reset(ServerRequest request);", "protected abstract boolean sendNextRequests();", "protected abstract void nextRequest ();", "int getServerProcessingIterations();", "ResponseDTO performServerActions();", "public void listen(int port_num) {\n port(port_num);\n\n /**\n *\n */\n post(\"/transactions/new\", (Request request, Response response) -> {\n HashMap<String, Object> rsp = new HashMap<>();\n\n String sender, recipient;\n Integer amount;\n\n try {\n sender = request.queryParams(\"sender\");\n recipient = request.queryParams(\"recipient\");\n amount = Integer.parseInt(request.queryParams(\"amount\"));\n\n this.blockchain.new_transaction(sender, recipient, amount);\n response.status(200);\n rsp.put(\"message\",\"Transaction will be added to Block\");\n } catch (Exception e) {\n response.status(401);\n rsp.put(\"message\",\"Invalid Parameters Passed\");\n }\n\n return JsonUtil.toJson(rsp);\n\n\n });\n\n /**\n *\n */\n post(\"/nodes/register\", (Request request, Response response) -> {\n HashMap<String, Object> rsp = new HashMap<>();\n\n try {\n\n String stringified = request.queryParams(\"nodes\");\n Map jsonJavaRootObject = new Gson().fromJson(stringified, Map.class);\n List<String> nodes = (List<String>) jsonJavaRootObject.get(\"nodes\");\n\n for(String node : nodes) {\n blockchain.register_node(node);\n }\n\n if (nodes.size() == 0) {\n response.status(201);\n rsp.put(\"message\",\"Transaction will be added to Block\");\n } else {\n response.status(201);\n rsp.put(\"message\",\"Transaction will be added to Block\");\n }\n\n } catch (Exception e) {\n response.status(401);\n rsp.put(\"message\",\"Invalid Parameters Passed\");\n }\n\n return JsonUtil.toJson(rsp);\n\n });\n\n /**\n *\n */\n get(\"/nodes/resolve\", (Request request, Response response) -> {\n boolean is_updated = blockchain.resolve_conflict();\n HashMap<String, Object> rsp = new HashMap<>();\n\n if (is_updated) {\n rsp.put(\"message\",\"our blockchain is replaced\");\n rsp.put(\"new_chain\", blockchain.getChain());\n } else {\n rsp.put(\"message\",\"our blockchain is authorative\");\n rsp.put(\"chain\", blockchain.getChain());\n }\n\n return JsonUtil.toJson(rsp);\n\n });\n\n /**\n *\n */\n get(\"/mine\", (Request request, Response response) -> {\n System.out.println(\"Mining a new Block\");\n\n HashMap<String, Object> rsp = new HashMap<String,Object>();\n\n Block last_block = blockchain.last_block();\n int last_proof = last_block.getProof();\n int proof = blockchain.proof_of_work(last_proof);\n\n blockchain.new_transaction(\"0\",this.node_identifier,1);\n\n String previous_hash = Blockchain.hash(last_block);\n Block block = blockchain.new_block(proof, previous_hash);\n\n rsp.put(\"message\",\"New Block Forged\");\n rsp.put(\"index\",block.getIndex());\n rsp.put(\"transactions\",block.getProof());\n rsp.put(\"proof\", block.getProof());\n rsp.put(\"previous_hash\", block.getPrevious_hash());\n\n response.status(200);\n return JsonUtil.toJson(rsp);\n });\n\n /**\n *\n */\n get(\"/chain\", (Request request, Response response) -> {\n HashMap<String, Object> rsp = new HashMap<String,Object>();\n rsp.put(\"chain\",blockchain.getChain());\n rsp.put(\"length\",blockchain.getChain().size());\n\n response.status(200);\n return JsonUtil.toJson(rsp);\n });\n\n }", "private void handleRequest(Request request) throws IOException{\n switch (request){\n case NEXTODD:\n case NEXTEVEN:\n new LocalThread(this, request, nextOddEven).start();\n break;\n case NEXTPRIME:\n case NEXTEVENFIB:\n case NEXTLARGERRAND:\n new NetworkThread(this, userID, serverIPAddress, request).start();\n break;\n default:\n break;\n }\n }", "@GetMapping\n public Mono<String> trigger() {\n\n int count = 10000;\n List list = new ArrayList<Integer>();\n\n for (int i = 0; i < count; i ++) {\n list.add(i);\n }\n\n // simulate concurrent API calls\n return Flux.fromStream(list.stream())\n .flatMap(id -> sampleApiClient.postSomethingWithExchange())\n .collectList()\n .map(results -> \"success\");\n }", "public static void main(String[] args){ new ThreadPoolBlockingServer().processRequests(); }", "public void handleRequest(Request req) {\n\n }", "@Override\n public PooledHttpResponse serve(ServiceRequestContext ctx, PooledHttpRequest req) throws Exception {\n assert !(unwrap() instanceof PooledHttpService);\n return PooledHttpResponse.of(unwrap().serve(ctx, req));\n }", "public void run() {\n long creationInterval = MILLISEC_PER_SEC / this.generationRate;\n\n int curIndex = 0;\n long startTime, endTime, diff, sleepTime, dur = this.test_duration;\n\n do {\n // startTime = System.nanoTime();\n startTime = System.currentTimeMillis();\n\n Request r = new DataKeeperRequest((HttpClient) this.clients[curIndex], this.appserverID, this.url);\n curIndex = (curIndex + 1) % clientsPerNode;\n this.requests.add(r);\n\n try {\n r.setEnterQueueTime();\n this.requestQueue.put(r);\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n\n // endTime = System.nanoTime();\n endTime = System.currentTimeMillis();\n diff = endTime - startTime;\n dur -= diff;\n sleepTime = creationInterval - diff;\n if (sleepTime < 0) {\n continue;\n }\n\n try {\n // Thread.sleep(NANO_PER_MILLISEC / sleepTime, (int) (NANO_PER_MILLISEC % sleepTime));\n Thread.sleep(sleepTime);\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n\n dur -= sleepTime;\n } while (dur > 0);\n\n try {\n this.requestQueue.put(new ExitRequest());\n this.requestQueueHandler.join();\n } catch (InterruptedException e) {\n throw new RuntimeException(e);\n }\n }", "public void handle_request(Request request){\n currentRequest.add(request);\n System.out.println(\"[Worker\"+String.valueOf(id)+\"] Received request of client \"+String.valueOf(request.getId()));\n }", "@Override\n\tpublic void preServe() {\n\n\t}", "@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n try {\n // attempt to find the existing session..\n TwiMLResponse twiMLResponse;\n String id = getWorkflowSessionId(req);\n PyObject twilioRequest = buildRequestTuple(req);\n PyGenerator pygen = workflowSessionCache.getIfPresent(id);\n if (null == pygen) {\n // load the workflow provided\n Invocable f = loadWorkflow(getWorkflowName(req));\n // create the python generator\n pygen = (PyGenerator) f.invokeFunction(\"execute\", twilioRequest);\n twiMLResponse = toTwiMLResponse(pygen.next());\n } else {\n // execute the next request..\n twiMLResponse = toTwiMLResponse(pygen.send(twilioRequest));\n }\n\n // determine if this is the last response..\n if (twiMLResponse instanceof LastTwilioResponse) {\n workflowSessionCache.invalidate(id);\n } else {\n workflowSessionCache.put(id, pygen);\n }\n\n // send back the Twilio response..\n resp.addCookie(new Cookie(\"uuid\", id));\n resp.getWriter().write(twiMLResponse.toXML());\n } catch (Exception ex) {\n throw new ServletException(ex);\n }\n }", "@Override\n public void start() throws Exception {\n\n Set<String> allowedHeaders = new HashSet<>();\n allowedHeaders.add(HEADER_ACCEPT);\n allowedHeaders.add(HEADER_TOKEN);\n allowedHeaders.add(HEADER_CONTENT_LENGTH);\n allowedHeaders.add(HEADER_CONTENT_TYPE);\n allowedHeaders.add(HEADER_HOST);\n allowedHeaders.add(HEADER_ORIGIN);\n allowedHeaders.add(HEADER_REFERER);\n allowedHeaders.add(HEADER_ALLOW_ORIGIN);\n\n Set<HttpMethod> allowedMethods = new HashSet<>();\n allowedMethods.add(HttpMethod.GET);\n allowedMethods.add(HttpMethod.POST);\n allowedMethods.add(HttpMethod.OPTIONS);\n allowedMethods.add(HttpMethod.DELETE);\n allowedMethods.add(HttpMethod.PATCH);\n allowedMethods.add(HttpMethod.PUT);\n\n /* Create a reference to HazelcastClusterManager. */\n\n router = Router.router(vertx);\n\n /* Define the APIs, methods, endpoints and associated methods. */\n\n router = Router.router(vertx);\n router.route().handler(\n CorsHandler.create(\"*\").allowedHeaders(allowedHeaders).allowedMethods(allowedMethods));\n // router.route().handler(HeadersHandler.create());\n router.route().handler(BodyHandler.create());\n // router.route().handler(AuthHandler.create(vertx));\n\n HTTPRequestValidatiorsHandlersFactory validators = new HTTPRequestValidatiorsHandlersFactory();\n ValidationFailureHandler validationsFailureHandler = new ValidationFailureHandler();\n\n /* NGSI-LD api endpoints */\n router.get(NGSILD_ENTITIES_URL).handler(validators.getValidation4Context(\"ENTITY\"))\n .handler(AuthHandler.create(vertx)).handler(this::handleEntitiesQuery)\n .failureHandler(validationsFailureHandler);\n\n router\n .get(NGSILD_ENTITIES_URL + \"/:domain/:userSha/:resourceServer/:resourceGroup/:resourceName\")\n .handler(validators.getValidation4Context(\"LATEST\")).handler(AuthHandler.create(vertx))\n .handler(this::handleLatestEntitiesQuery).failureHandler(validationsFailureHandler);\n\n router.post(NGSILD_POST_QUERY_PATH).consumes(APPLICATION_JSON)\n .handler(validators.getValidation4Context(\"POST\")).handler(AuthHandler.create(vertx))\n .handler(this::handlePostEntitiesQuery).failureHandler(validationsFailureHandler);\n\n router.get(NGSILD_TEMPORAL_URL).handler(validators.getValidation4Context(\"TEMPORAL\"))\n .handler(AuthHandler.create(vertx)).handler(this::handleTemporalQuery)\n .failureHandler(validationsFailureHandler);\n\n router.post(NGSILD_SUBSCRIPTION_URL).handler(AuthHandler.create(vertx))\n .handler(this::handleSubscriptions);\n // append sub\n router.patch(NGSILD_SUBSCRIPTION_URL + \"/:domain/:userSHA/:alias\")\n .handler(AuthHandler.create(vertx)).handler(this::appendSubscription);\n // update sub\n router.put(NGSILD_SUBSCRIPTION_URL + \"/:domain/:userSHA/:alias\")\n .handler(AuthHandler.create(vertx)).handler(this::updateSubscription);\n // get sub\n router.get(NGSILD_SUBSCRIPTION_URL + \"/:domain/:userSHA/:alias\")\n .handler(AuthHandler.create(vertx)).handler(this::getSubscription);\n // delete sub\n router.delete(NGSILD_SUBSCRIPTION_URL + \"/:domain/:userSHA/:alias\")\n .handler(AuthHandler.create(vertx)).handler(this::deleteSubscription);\n\n /* Management Api endpoints */\n // Exchange\n router.post(IUDX_MANAGEMENT_EXCHANGE_URL).handler(AuthHandler.create(vertx))\n .handler(this::createExchange);\n router.delete(IUDX_MANAGEMENT_EXCHANGE_URL + \"/:exId\").handler(AuthHandler.create(vertx))\n .handler(this::deleteExchange);\n router.get(IUDX_MANAGEMENT_EXCHANGE_URL + \"/:exId\").handler(AuthHandler.create(vertx))\n .handler(this::getExchangeDetails);\n // Queue\n router.post(IUDX_MANAGEMENT_QUEUE_URL).handler(AuthHandler.create(vertx))\n .handler(this::createQueue);\n router.delete(IUDX_MANAGEMENT_QUEUE_URL + \"/:queueId\").handler(AuthHandler.create(vertx))\n .handler(this::deleteQueue);\n router.get(IUDX_MANAGEMENT_QUEUE_URL + \"/:queueId\").handler(AuthHandler.create(vertx))\n .handler(this::getQueueDetails);\n // bind\n router.post(IUDX_MANAGEMENT_BIND_URL).handler(AuthHandler.create(vertx))\n .handler(this::bindQueue2Exchange);\n // unbind\n router.post(IUDX_MANAGEMENT_UNBIND_URL).handler(AuthHandler.create(vertx))\n .handler(this::unbindQueue2Exchange);\n // vHost\n router.post(IUDX_MANAGEMENT_VHOST_URL).handler(AuthHandler.create(vertx))\n .handler(this::createVHost);\n router.delete(IUDX_MANAGEMENT_VHOST_URL + \"/:vhostId\").handler(AuthHandler.create(vertx))\n .handler(this::deleteVHost);\n // adapter\n router.post(IUDX_MANAGEMENT_ADAPTER_URL + \"/register\").handler(AuthHandler.create(vertx))\n .handler(this::registerAdapter);\n router.delete(IUDX_MANAGEMENT_ADAPTER_URL + \"/:domain/:userSHA/:resourceServer/:resourceGroup\")\n .handler(AuthHandler.create(vertx)).handler(this::deleteAdapter);\n router.get(IUDX_MANAGEMENT_ADAPTER_URL + \"/:domain/:userSHA/:resourceServer/:resourceGroup\")\n .handler(AuthHandler.create(vertx)).handler(this::getAdapterDetails);\n router.post(IUDX_MANAGEMENT_ADAPTER_URL + \"/heartbeat\").handler(AuthHandler.create(vertx))\n .handler(this::publishHeartbeat);\n router.post(IUDX_MANAGEMENT_ADAPTER_URL + \"/downstreamissue\").handler(AuthHandler.create(vertx))\n .handler(this::publishDownstreamIssue);\n router.post(IUDX_MANAGEMENT_ADAPTER_URL + \"/dataissue\").handler(AuthHandler.create(vertx))\n .handler(this::publishDataIssue);\n router.post(IUDX_MANAGEMENT_ADAPTER_URL + \"/entities\").handler(AuthHandler.create(vertx))\n .handler(this::publishDataFromAdapter);\n\n /**\n * Documentation routes\n */\n /* Static Resource Handler */\n /* Get openapiv3 spec */\n router.get(ROUTE_STATIC_SPEC).produces(MIME_APPLICATION_JSON).handler(routingContext -> {\n HttpServerResponse response = routingContext.response();\n response.sendFile(\"docs/openapi.yaml\");\n });\n /* Get redoc */\n router.get(ROUTE_DOC).produces(MIME_TEXT_HTML).handler(routingContext -> {\n HttpServerResponse response = routingContext.response();\n response.sendFile(\"docs/apidoc.html\");\n });\n\n /* Read ssl configuration. */\n isSSL = config().getBoolean(\"ssl\");\n\n /* Read server deployment configuration. */\n isProduction = config().getBoolean(\"production\");\n\n HttpServerOptions serverOptions = new HttpServerOptions();\n\n if (isSSL) {\n LOGGER.debug(\"Info: Starting HTTPs server\");\n\n /* Read the configuration and set the HTTPs server properties. */\n\n keystore = config().getString(\"keystore\");\n keystorePassword = config().getString(\"keystorePassword\");\n\n /* Setup the HTTPs server properties, APIs and port. */\n\n serverOptions.setSsl(true)\n .setKeyStoreOptions(new JksOptions().setPath(keystore).setPassword(keystorePassword));\n\n } else {\n LOGGER.debug(\"Info: Starting HTTP server\");\n\n /* Setup the HTTP server properties, APIs and port. */\n\n serverOptions.setSsl(false);\n if (isProduction) {\n port = 80;\n } else {\n port = 8080;\n }\n }\n\n serverOptions.setCompressionSupported(true).setCompressionLevel(5);\n server = vertx.createHttpServer(serverOptions);\n server.requestHandler(router).listen(port);\n\n /* Get a handler for the Service Discovery interface. */\n\n database = DatabaseService.createProxy(vertx, DATABASE_SERVICE_ADDRESS);\n\n authenticator = AuthenticationService.createProxy(vertx, AUTH_SERVICE_ADDRESS);\n\n databroker = DataBrokerService.createProxy(vertx, BROKER_SERVICE_ADDRESS);\n\n latestDataService = LatestDataService.createProxy(vertx, LATEST_SEARCH_ADDRESS);\n\n managementApi = new ManagementApiImpl();\n subsService = new SubscriptionService();\n catalogueService = new CatalogueService(vertx, config());\n validator = new Validator(catalogueService);\n\n }", "@Override\n public Single<StreamingHttpResponse> handle(HttpServiceContext ctx,\n StreamingHttpRequest request,\n StreamingHttpResponseFactory responseFactory) {\n request.context().put(CLIENT_CTX, request.headers().get(header(CLIENT_CTX)));\n request.context().put(CLIENT_FILTER_OUT_CTX, request.headers().get(header(CLIENT_FILTER_OUT_CTX)));\n // Set server-side values:\n request.context().put(SERVER_FILTER_IN_CTX, value(SERVER_FILTER_IN_CTX));\n request.context().put(SERVER_FILTER_IN_TRAILER_CTX, value(SERVER_FILTER_IN_TRAILER_CTX));\n return delegate().handle(ctx, request, responseFactory).map(response -> {\n HttpHeaders headers = response.headers();\n // Take the first two values from context:\n headers.set(header(SERVER_FILTER_IN_CTX),\n requireNonNull(response.context().get(SERVER_FILTER_IN_CTX)));\n headers.set(header(SERVER_CTX), requireNonNull(response.context().get(SERVER_CTX)));\n // Set the last value explicitly:\n assertThat(response.context().containsKey(SERVER_FILTER_OUT_CTX), is(false));\n headers.set(header(SERVER_FILTER_OUT_CTX), value(SERVER_FILTER_OUT_CTX));\n\n // For Trailers-Only response put everything into headers:\n if (headers.contains(GRPC_STATUS)) {\n setTrailers(response.context(), headers);\n return response;\n }\n return response.transform(new StatelessTrailersTransformer<Buffer>() {\n @Override\n protected HttpHeaders payloadComplete(HttpHeaders trailers) {\n setTrailers(response.context(), trailers);\n return trailers;\n }\n });\n });\n }", "public void request() {\n }", "public static void main(String... args) {\n HttpServer httpServer = httpServerBuilder()\n .setPort(8080).build();\n\n /* Setting up a request Consumer with Java 8 Lambda expression. */\n httpServer.setHttpRequestConsumer(httpRequest -> {\n\n Map<String, Object> results = new HashMap<>();\n results.put(\"method\", httpRequest.getMethod());\n results.put(\"uri\", httpRequest.getUri());\n results.put(\"body\", httpRequest.getBodyAsString());\n results.put(\"headers\", httpRequest.getHeaders());\n results.put(\"params\", httpRequest.getParams());\n httpRequest.getReceiver().response(200, \"application/json\", toJson(results));\n });\n\n /* Start the server. */\n httpServer.start();\n\n\n /* Setup an httpClient. */\n HttpClient httpClient = httpClientBuilder().setHost(\"localhost\").setPort(8080).build();\n httpClient.startClient();\n\n sendGets(httpClient);\n sendPosts(httpClient);\n sendPuts(httpClient);\n\n\n Sys.sleep(1000);\n\n httpServer.stop();\n httpClient.stop();\n }", "public void run()\n {\n Connection conn;\n Socket clientSock;\n int timeout;\n\n conn = new Connection();\n timeout = _config.getClientTimeout() * 1000;\n\n for ( ; ; ) {\n /*\n * Wait for connection request.\n */\n try {\n clientSock = _serverSock.accept();\n }\n catch(IOException e) {\n logError(\"accept() failure: \" + e.getMessage());\n continue;\n }\n\n try {\n clientSock.setSoTimeout(timeout);\n }\n catch(SocketException e) {\n logError(\"Cannot set timeout of client socket: \" + e.getMessage()\n + \" -- closing socket\");\n\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close socket: \" + e2.getMessage());\n }\n continue;\n }\n\n /*\n * `Create' a new connection.\n */\n try {\n conn.init(clientSock);\n }\n catch(IOException e) {\n logError(\"Cannot open client streams\" + getExceptionMessage(e));\n try {\n clientSock.close();\n }\n catch(IOException e2) {\n logError(\"Cannot close client socket\" + getExceptionMessage(e2));\n }\n continue;\n }\n\n if (DEBUG && _debugLevel > 0) {\n debugPrintLn(\"Reading HTTP Request...\");\n }\n\n /*\n * `Create' a new container for the request.\n */\n setCurrentDate(_date);\n _req.init(conn, _clfDateFormatter.format(_date));\n\n // Get the current GAP list.\n _gapList = GlobeRedirector.getGAPList();\n\n processRequest(conn);\n\n /*\n * If access logging is enabled, write an entry to the access log.\n */\n if (_config.getAccessLogEnabledFlag()) {\n GlobeRedirector.accessLog.write(_req.getCommonLogFileStatistics());\n } \n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Closing client connection\");\n }\n\n try {\n conn.close();\n }\n catch(IOException e) {\n logError(\"Cannot close client connection\" + getExceptionMessage(e));\n }\n\n /*\n * Release references that are no longer needed. To reduce the\n * memory footprint, these references are released now because it\n * may take a long time before this thread handles a new request\n * (in which case the references are released too).\n */\n _gapList = null;\n _req.clear();\n _httpRespHdr.clear();\n _cookieCoords = null;\n }\n }", "public void process()\n {\n ClientRequest clientRequest = threadPool.remove();\n\n if (clientRequest == null)\n {\n return;\n }\n\n\n // Do the work\n // Create new Client\n ServiceLogger.LOGGER.info(\"Building client...\");\n Client client = ClientBuilder.newClient();\n client.register(JacksonFeature.class);\n\n // Get uri\n ServiceLogger.LOGGER.info(\"Getting URI...\");\n String URI = clientRequest.getURI();\n\n ServiceLogger.LOGGER.info(\"Getting endpoint...\");\n String endpointPath = clientRequest.getEndpoint();\n\n // Create WebTarget\n ServiceLogger.LOGGER.info(\"Building WebTarget...\");\n WebTarget webTarget = client.target(URI).path(endpointPath);\n\n // Send the request and save it to a Response\n ServiceLogger.LOGGER.info(\"Sending request...\");\n Response response = null;\n if (clientRequest.getHttpMethodType() == Constants.getRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n String pathParam = clientRequest.getPathParam();\n\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a GET request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .get();\n }\n else if (clientRequest.getHttpMethodType() == Constants.postRequest)\n {\n // Create InvocationBuilder\n ServiceLogger.LOGGER.info(\"Starting invocation builder...\");\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n Map<String, Object> queryMap = clientRequest.getQueryParams();\n\n if (queryMap != null)\n {\n ServiceLogger.LOGGER.info(\"QUERY MAP NOT NULL.\");\n for (Map.Entry<String, Object> entry : queryMap.entrySet())\n {\n webTarget = webTarget.queryParam(entry.getKey(), entry.getValue());\n }\n }\n ServiceLogger.LOGGER.info(\"WEBTARGET: \" + webTarget.toString());\n\n ServiceLogger.LOGGER.info(\"Got a POST request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .post(Entity.entity(clientRequest.getRequest(), MediaType.APPLICATION_JSON));\n }\n else if (clientRequest.getHttpMethodType() == Constants.deleteRequest)\n {\n String pathParam = clientRequest.getPathParam();\n if (pathParam != null)\n {\n webTarget = webTarget.path(pathParam);\n }\n Invocation.Builder invocationBuilder = webTarget.request(MediaType.APPLICATION_JSON);\n\n ServiceLogger.LOGGER.info(\"Got a DELETE request.\");\n response = invocationBuilder\n .header(\"email\", clientRequest.getEmail())\n .header(\"sessionID\", clientRequest.getSessionID())\n .header(\"transactionID\", clientRequest.getTransactionID())\n .delete();\n }\n else\n {\n ServiceLogger.LOGGER.warning(ANSI_YELLOW + \"Request was not sent successfully\");\n }\n ServiceLogger.LOGGER.info(ANSI_GREEN + \"Sent!\" + ANSI_RESET);\n\n // Check status code of request\n String jsonText = \"\";\n int httpstatus = response.getStatus();\n\n jsonText = response.readEntity(String.class);\n\n // Add response to database\n String email = clientRequest.getEmail();\n String sessionID = clientRequest.getSessionID();\n ResponseDatabase.insertResponseIntoDB(clientRequest.getTransactionID(), jsonText, email, sessionID, httpstatus);\n\n }", "public static void main(String[] args) throws IOException {\n ServerSocket server = new ServerSocket(8080);\n ExecutorService service = Executors.newCachedThreadPool();\n while (true) {\n Socket socket = server.accept();\n System.out.println(\"Client accept\");\n service.submit(new ClientSession(socket));\n }\n\n }", "private void handleHttpRequest(ChannelHandlerContext ctx, HttpRequest req) throws Exception {\n\t\tif (req.getMethod() != HttpMethod.GET) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.FORBIDDEN);\n\t\t\treturn;\n\t\t}\n\n\t\t// Send the demo page and favicon.ico\n\t\tif (req.getUri().equals(\"/\")) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.OK, WebSocketServerIndexPage.getContent(getWebSocketLocation(req)), \"UTF-8\",\n\t\t\t\t\t\"text/html; charset=UTF-8\");\n\t\t\treturn;\n\t\t} else if (req.getUri().equals(\"/favicon.ico\")) {\n\t\t\tresponseSender.sendResponse(ctx.getChannel(), HttpResponseStatus.NOT_FOUND);\n\t\t\treturn;\n\t\t}\n\n\t\t// Handshake\n\t\tWebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(getWebSocketLocation(req), null, false);\n\t\thandshaker = wsFactory.newHandshaker(req);\n\t\tif (handshaker == null) {\n\t\t\twsFactory.sendUnsupportedWebSocketVersionResponse(ctx.getChannel());\n\t\t} else {\n\t\t\thandshaker.handshake(ctx.getChannel(), req).addListener(WebSocketServerHandshaker.HANDSHAKE_LISTENER);\n\t\t}\n\t}", "@Test\n void highConcurrencyOnSingleConnection() {\n SingleConnection singleConnection =\n options.getSingleConnectionFactory().apply(\"localhost\", server.httpPort());\n assumeTrue(singleConnection != null);\n\n int count = 50;\n String method = \"GET\";\n String path = \"/success\";\n URI uri = resolveAddress(path);\n\n CountDownLatch latch = new CountDownLatch(1);\n ExecutorService pool = Executors.newFixedThreadPool(4);\n for (int i = 0; i < count; i++) {\n int index = i;\n Runnable job =\n () -> {\n try {\n latch.await();\n } catch (InterruptedException e) {\n throw new AssertionError(e);\n }\n try {\n Integer result =\n testing.runWithSpan(\n \"Parent span \" + index,\n () -> {\n Span.current().setAttribute(\"test.request.id\", index);\n return singleConnection.doRequest(\n path,\n Collections.singletonMap(\"test-request-id\", String.valueOf(index)));\n });\n assertThat(result).isEqualTo(200);\n } catch (Throwable throwable) {\n if (throwable instanceof AssertionError) {\n throw (AssertionError) throwable;\n }\n throw new AssertionError(throwable);\n }\n };\n pool.submit(job);\n }\n latch.countDown();\n\n List<Consumer<TraceAssert>> assertions = new ArrayList<>();\n for (int i = 0; i < count; i++) {\n assertions.add(\n trace -> {\n SpanData rootSpan = trace.getSpan(0);\n // Traces can be in arbitrary order, let us find out the request id of the current one\n int requestId = Integer.parseInt(rootSpan.getName().substring(\"Parent span \".length()));\n\n trace.hasSpansSatisfyingExactly(\n span ->\n span.hasName(rootSpan.getName())\n .hasKind(SpanKind.INTERNAL)\n .hasNoParent()\n .hasAttributesSatisfyingExactly(\n equalTo(AttributeKey.longKey(\"test.request.id\"), requestId)),\n span -> assertClientSpan(span, uri, method, 200, null).hasParent(rootSpan),\n span ->\n assertServerSpan(span)\n .hasParent(trace.getSpan(1))\n .hasAttributesSatisfyingExactly(\n equalTo(AttributeKey.longKey(\"test.request.id\"), requestId)));\n });\n }\n\n testing.waitAndAssertTraces(assertions);\n\n pool.shutdown();\n }", "public abstract void handle(Request request, Response response) throws Exception;", "public static void main(String[] args) throws Exception {\n Set<Users> likedSet = new HashSet<>();\n new Server(8080){{\n setHandler(new ServletContextHandler() {{\n addServlet(new ServletHolder(new ServletUsers(likedSet)) ,\"/users\");\n addServlet(new ServletHolder(new ServletsLiked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new StaticServlet()),\"/assets/*\");\n /* addServlet(new ServletHolder(new ServletsLinked(likedSet)) ,\"/liked\");\n addServlet(new ServletHolder(new ServletMessages()) ,\"/messages\");*/\n }}\n );\n start();\n join();\n }};\n\n }", "public static void main(String[] args) throws InterruptedException {\n\n Random random = new Random();\n RateLimitingVOne rateLimiter = new RateLimitingVOne();\n UUID userId = UUID.randomUUID();\n\n List<Request> allRequests = new ArrayList<>();\n\n long start = System.currentTimeMillis();\n for (int i = 1; i < 100; i++) {\n int count = random.nextInt(10);\n Request nr = new Request(count> 0 ? count : 1, System.currentTimeMillis(), i);\n allRequests.add(nr);\n rateLimiter.handleNewRequest(nr, userId);\n// sleep(random.nextInt(350));\n sleep(250);\n }\n\n long elapsed = System.currentTimeMillis() - start;\n\n System.out.println(\"Time ---- >> \"+ elapsed);\n\n for (Request tr : allRequests) {\n long since = (tr.timestamp - start);\n int count = tr.isRejected ? -tr.requestsCount : tr.requestsCount;\n System.out.println(tr.sequence+\", \"+ since + \" , \" + count);\n }\n\n\n Request r = rateLimiter.userRequestLog.get(userId);\n int count =0;\n while (r.previous != null) {\n count++;\n r = r.previous;\n }\n\n System.out.println(count);\n\n\n }", "private void changeRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "static void acceptTwoServerRequests(Tracer server1Tracer, Tracer server2Tracer) {\n Span server1 = server1Tracer.newTrace().name(\"get\").kind(Kind.SERVER).start();\n Span server2 = server1Tracer.newTrace().name(\"get\").kind(Kind.SERVER).start();\n try {\n Span client1 =\n server1Tracer.newChild(server1.context()).name(\"post\").kind(Kind.CLIENT).start();\n\n server2Tracer.joinSpan(fakeUseOfHeaders(client1.context()))\n .name(\"post\")\n .kind(Kind.SERVER)\n .start().finish();\n\n ScopedSpan local1 = server1Tracer.startScopedSpanWithParent(\"controller\", server1.context());\n try {\n try {\n server1Tracer.newTrace().name(\"async1\").start().finish();\n server2Tracer.newTrace().name(\"async2\").start().finish();\n\n ScopedSpan local2 =\n server1Tracer.startScopedSpanWithParent(\"controller2\", server2.context());\n Span client2 = server1Tracer.nextSpan().name(\"post\").kind(Kind.CLIENT).start();\n try {\n server2Tracer.joinSpan(fakeUseOfHeaders(client2.context()))\n .name(\"post\")\n .kind(Kind.SERVER)\n .start().error(new RuntimeException()).finish();\n\n server1Tracer.nextSpan()\n .name(\"post\")\n .kind(Kind.CLIENT)\n .start()\n .remoteServiceName(\"uninstrumentedServer\")\n .error(new RuntimeException())\n .finish();\n } finally {\n client2.finish();\n local2.finish();\n }\n } finally {\n server2.finish();\n }\n } finally {\n client1.finish();\n local1.finish();\n }\n } finally {\n server1.finish();\n }\n }", "@Test(timeout=10000)\n public void testHttpOnErrorBeforeSend1stAnd2ndHappyPathKeepAliveReuseConnection() throws Exception {\n \n final HttpTestServer server = createTestServerWithDefaultHandler(false, \"test\");\n\n final TestChannelCreator creator = new TestChannelCreator();\n \n final TestChannelPool pool = new TestChannelPool(1);\n final DefaultHttpClient client = new DefaultHttpClient(creator, pool,\n ENABLE_LOGGING);\n \n try {\n // first \n {\n final TestSubscriber<HttpObject> testSubscriber = new TestSubscriber<HttpObject>();\n final CountDownLatch unsubscribed = new CountDownLatch(1);\n try {\n client.defineInteraction(\n new LocalAddress(\"test\"), \n Observable.<HttpObject>error(new RuntimeException(\"test error\")))\n .compose(RxFunctions.<HttpObject>countDownOnUnsubscribe(unsubscribed))\n .subscribe(testSubscriber);\n unsubscribed.await();\n \n // await for 1 second\n pool.awaitRecycleChannels(1);\n } finally {\n assertEquals(1, testSubscriber.getOnErrorEvents().size());\n assertEquals(RuntimeException.class, \n testSubscriber.getOnErrorEvents().get(0).getClass());\n assertEquals(0, testSubscriber.getCompletions());\n assertEquals(0, testSubscriber.getOnNextEvents().size());\n }\n }\n assertEquals(1, creator.getChannels().size());\n creator.getChannels().get(0).assertNotClose(1);\n // second\n {\n final Iterator<HttpObject> itr = \n client.defineInteraction(\n new LocalAddress(\"test\"), \n Observable.just(fullHttpRequest()))\n .map(RxNettys.<HttpObject>retainer())\n .toBlocking().toIterable().iterator();\n \n final byte[] bytes = RxNettys.httpObjectsAsBytes(itr);\n \n assertTrue(Arrays.equals(bytes, HttpTestServer.CONTENT));\n }\n assertEquals(1, creator.getChannels().size());\n creator.getChannels().get(0).assertNotClose(1);\n } finally {\n client.close();\n// server.unsubscribe();\n server.stop();\n }\n }", "@Override\n\tpublic void run() {\n\t\trespond();\n\t\tlisten();\n\t}", "private void setupEndpoints() {\n post(API_CONTEXT, \"application/json\", (request, response) -> {\n try {\n response.status(201);\n return gameService.startGame(request.body());\n } catch (Exception e) {\n logger.error(\"Failed to create a new game\");\n response.status(400);\n }\n return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // Join a game\n put(API_CONTEXT + \"/:id\", \"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.joinGame(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n } catch (GameService.GameServiceJoinException ex) {\n response.status(410);\n return new ErrorMessage(ex.getMessage());\n }\n }, new JsonTransformer());\n\n // Play a game\n post(API_CONTEXT + \"/:id/turns\",\"application/json\", (request, response) -> {\n try {\n response.status(200);\n gameService.play(request.params(\":id\"), request.body());\n } catch (GameService.GameServiceIdException ex){\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n } catch (GameService.GameServiceMoveException ex) {\n response.status(422);\n return new ErrorMessage(ex.getMessage());\n }\n return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // Describe the game board\n get(API_CONTEXT + \"/:id/board\", \"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.describeBoard(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n }\n //return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n // fetch state\n get(API_CONTEXT + \"/:id/state\",\"application/json\", (request, response) -> {\n try {\n response.status(200);\n return gameService.describeState(request.params(\":id\"));\n } catch (GameService.GameServiceIdException ex) {\n response.status(404);\n return new ErrorMessage(ex.getMessage());\n }\n //return Collections.EMPTY_MAP;\n }, new JsonTransformer());\n\n// get(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// return todoService.find(request.params(\":id\"));\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to find object with id: %s\", request.params(\":id\")));\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// get(API_CONTEXT + \"/todos\", \"application/json\", (request, response)-> {\n// try {\n// return todoService.findAll() ;\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(\"Failed to fetch the list of todos\");\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// put(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// return todoService.update(request.params(\":id\"), request.body());\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to update todo with id: %s\", request.params(\":id\")));\n// response.status(500);\n// return Collections.EMPTY_MAP;\n// }\n// }, new JsonTransformer());\n//\n// delete(API_CONTEXT + \"/todos/:id\", \"application/json\", (request, response) -> {\n// try {\n// todoService.delete(request.params(\":id\"));\n// response.status(200);\n// } catch (TodoService.TodoServiceException ex) {\n// logger.error(String.format(\"Failed to delete todo with id: %s\", request.params(\":id\")));\n// response.status(500);\n// }\n// return Collections.EMPTY_MAP;\n// }, new JsonTransformer());\n\n }", "@Override\n public void run() {\n handleClientRequest();\n }", "@Override\n\tpublic void run() {\n\t\tSocket connect_port = null;\n\t\twhile (true) {\t\t\t\n\t\t\ttry {\n\t\t\t\tconnect_port = this.listen_port.accept();\n\t\t\t\tRequest req = new Request(connect_port);\n\t\t\t\tthis.pool.submit(req);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testHttpHappyPathOnce() throws Exception {\n final String testAddr = UUID.randomUUID().toString();\n final Subscription server = TestHttpUtil.createTestServerWith(testAddr, \n responseBy(\"text/plain\", HttpTestServer.CONTENT),\n ENABLE_LOGGING);\n final DefaultHttpClient client = new DefaultHttpClient(new TestChannelCreator(), ENABLE_LOGGING);\n try {\n \n final Iterator<HttpObject> itr = \n client.defineInteraction(\n new LocalAddress(testAddr), \n Observable.just(fullHttpRequest()))\n .map(RxNettys.<HttpObject>retainer())\n .toBlocking().toIterable().iterator();\n \n final byte[] bytes = RxNettys.httpObjectsAsBytes(itr);\n \n assertTrue(Arrays.equals(bytes, HttpTestServer.CONTENT));\n } finally {\n client.close();\n server.unsubscribe();\n }\n }", "private Object proxyGet (Request request, Response response) {\n\n final long startTimeMsec = System.currentTimeMillis();\n\n final String bundleId = request.params(\"bundleId\");\n final String workerVersion = request.params(\"workerVersion\");\n\n WorkerCategory workerCategory = new WorkerCategory(bundleId, workerVersion);\n String address = broker.getWorkerAddress(workerCategory);\n if (address == null) {\n Bundle bundle = null;\n // There are no workers that can handle this request. Request one and ask the UI to retry later.\n final String accessGroup = request.attribute(\"accessGroup\");\n final String userEmail = request.attribute(\"email\");\n WorkerTags workerTags = new WorkerTags(accessGroup, userEmail, \"anyProjectId\", bundle.regionId);\n broker.createOnDemandWorkerInCategory(workerCategory, workerTags);\n response.status(HttpStatus.ACCEPTED_202);\n response.header(\"Retry-After\", \"30\");\n response.body(\"Starting worker.\");\n return response;\n } else {\n // Workers exist in this category, clear out any record that we're waiting for one to start up.\n // FIXME the tracking of which workers are starting up should really be encapsulated using a \"start up if needed\" method.\n broker.recentlyRequestedWorkers.remove(workerCategory);\n }\n\n String workerUrl = \"http://\" + address + \":7080/single\"; // TODO remove hard-coded port number.\n LOG.info(\"Re-issuing HTTP request from UI to worker at {}\", workerUrl);\n\n\n HttpClient httpClient = HttpClient.newBuilder().build();\n HttpRequest httpRequest = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(workerUrl))\n .header(\"Accept-Encoding\", \"gzip\") // TODO Explore: is this unzipping and re-zipping the result from the worker?\n .build();\n try {\n response.status(0);\n // content-type response.header();\n return httpClient.send(httpRequest, HttpResponse.BodyHandlers.ofInputStream());\n } catch (Exception exception) {\n response.status(HttpStatus.BAD_GATEWAY_502);\n response.body(ExceptionUtils.stackTraceString(exception));\n return response;\n } finally {\n\n }\n }", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException\n\t{\n\t\tfor (int i = 0; i < NUM_LOOPS; i++)\n\t\t{\n\t\t\tTuple tuple = Tuple.defaultTuple();\n\t\t\tCounterWorkCallable task = new CounterWorkCallable(\"counter\" + i, shardedCounterService, tuple);\n\t\t\ttry\n\t\t\t{\n\t\t\t\ttask.call();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tint actualIncrements = 0;\n\t\tlogger.info(\"Expected \" + (NUM_INCREMENTS_PER_LOOPS * NUM_LOOPS) + \" Increments. Actual Increments: \"\n\t\t\t+ actualIncrements);\n\n\t}", "private void processRequest(HttpServletRequest request, HttpServletResponse response) {\n }", "@Test(dataProvider = \"uris\")\n void testWithCustomSubscriber(String uri) throws Exception {\n HttpClient client = HttpClient.newBuilder().sslContext(sslContext).build();\n\n Map<HttpRequest, String> requests = new HashMap<>();\n for (int i=0;i<CONCURRENT_REQUESTS; i++) {\n HttpRequest request = HttpRequest.newBuilder(URI.create(uri + \"?\" + i))\n .build();\n requests.put(request, BODIES[i]);\n }\n\n // initial connection to seed the cache so next parallel connections reuse it\n client.sendAsync(HttpRequest.newBuilder(URI.create(uri)).build(), discard(null)).join();\n\n // will reuse connection cached from the previous request ( when HTTP/2 )\n CompletableFuture.allOf(requests.keySet().parallelStream()\n .map(request -> client.sendAsync(request, CustomSubscriber.handler))\n .map(cf -> cf.thenCompose(ConcurrentResponses::assert200ResponseCode))\n .map(cf -> cf.thenCompose(response -> assertbody(response, requests.get(response.request()))))\n .toArray(CompletableFuture<?>[]::new))\n .join();\n }", "public static void main(String[] args) {\n\n Request getReq = new Request();\n\n try {\n// getReq.sendReq(\"127.0.0.1\", \"/\", 80);\n getReq.sendReq(\"127.0.0.1\", \"/\", 40289);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n\n\n }", "private static void startService() {\n //noinspection deprecation\n setPort(configuration.getPort());\n get(\":version/route/:user\", (request, response) -> {\n try {\n String apiVersion = request.params(\":version\");\n String user = request.params(\":user\");\n String version = request.headers(\"version\"); \n if (!isValidApiVersion(apiVersion)) {\n response.status(400);\n return new RouteResponse(\"Wrong API version\", \"400\", \"\");\n }\n return new RouteResponse(splitter.getGroupForUser(user)); // no overhead measured compared to using string concat or StringBuilder\n } catch (Exception e) {\n logger.error(\"Problem serving the request.\", e);\n response.status(500);\n return new RouteResponse(e.getMessage(), \"500\", \"\");\n }\n }, new JsonTransformer());\n }", "@Override\n\tpublic void service(ServletRequest req, ServletResponse res)\n\t\t\tthrows ServletException, IOException {\n\t\t\n\t}", "void handleRequest();", "@Override\r\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp)\r\n\t\t\tthrows ServletException, IOException {\n\t\tsuper.service(req, resp);\r\n\t}", "private void serve() {\n\t\tif (request == null) {\n\t\t\tchannel.close();\n\t\t\treturn;\n\t\t}\n\t\tlogger.fine(\"Serving \" + type + \" request : \" + request.getPath());\n\t\tResponse resp = RequestHandler.handle(request);\n\t\tif (resp.getRespCode() == ResponseCode.NOT_FOUND) {\n\t\t\terror404(resp);\n\t\t\treturn;\n\t\t}\n\n\t\tStringBuilder header = new StringBuilder();\n\t\tif (type == Type.HTTP) {\n\t\t\theader.append(\"HTTP/1.0 200 OK\\r\\n\");\n\t\t\theader.append(\"Content-Length: \")\n\t\t\t\t\t.append(resp.getFileData().remaining()).append(\"\\r\\n\");\n\t\t\theader.append(\"Connection: close\\r\\n\");\n\t\t\theader.append(\"Server: Hyperion/1.0\\r\\n\");\n\t\t\theader.append(\"Content-Type: \" + resp.getMimeType() + \"\\r\\n\");\n\t\t\theader.append(\"\\r\\n\");\n\t\t}\n\t\tbyte[] headerBytes = header.toString().getBytes();\n\n\t\tByteBuffer bb = resp.getFileData();\n\t\tChannelBuffer ib = ChannelBuffers.buffer(bb.remaining()\n\t\t\t\t+ headerBytes.length);\n\t\tib.writeBytes(headerBytes);\n\t\tib.writeBytes(bb);\n\t\tchannel.write(ib).addListener(ChannelFutureListener.CLOSE);\n\t}", "@Override\n\tprotected void initInternal() throws LifecycleException {\n bootstrap = new ServerBootstrap();\n //初始化\n bootstrap.group(bossGroup, workGroup)\n .channel(NioServerSocketChannel.class)\n .childHandler(new ChannelInitializer<SocketChannel>(){\n\n\t @Override\n\t protected void initChannel(SocketChannel ch) throws Exception {\n\t // TODO Auto-generated method stub\n\t //目前是每次new出来 由于4.0不允许加入加入一个ChannelHandler超过一次,除非它由@Sharable注解,或者每次new出来\n\t //ch.pipeline().addLast(\"idleChannelTester\", new IdleStateHandler(10, 5, 30));\n\t //ch.pipeline().addLast(\"keepaliveTimeoutHandler\", keepaliveTimeoutHandler);\n\t \t \n\t // server端接收到的是httpRequest,所以要使用HttpRequestDecoder进行解码\n\t ch.pipeline().addLast(\"http-encoder\", new HttpRequestDecoder()); \n\t //将解析出来的http报文的数据组装成为封装好的httpRequest对象 \n\t ch.pipeline().addLast(\"http-aggregator\", new HttpObjectAggregator(1024 * 1024));\n\t // server端发送的是httpResponse,所以要使用HttpResponseEncoder进行编码\n\t ch.pipeline().addLast(\"http-decoder\", new HttpResponseEncoder());\n\t //主要用于处理大数据流\n\t ch.pipeline().addLast(\"http-chunkedWriter\", new ChunkedWriteHandler()); \n\t //加强业务逻辑处理效率\n\t if(null == eventExecutor){\n\t \tch.pipeline().addLast(\"http-processor\",new HttpHandler()); \n\t }else {\n\t\t ch.pipeline().addLast(eventExecutor,\"http-processor\",new HttpHandler()); \n\t }\n\t \n\t /**\n\t // 这里只允许增加无状态允许共享的ChannelHandler,对于有状态的channelHandler需要重写\n\t // getPipelineFactory()方法\n\t for (Entry<String, ChannelHandler> channelHandler : channelHandlers.entrySet()) {\n\t ch.pipeline().addLast(channelHandler.getKey(), channelHandler.getValue());\n\t }\n\t \n\t **/\n\t }\n \n }) \n .option(ChannelOption.SO_BACKLOG, 1024000)\n .option(ChannelOption.SO_REUSEADDR, true)\n .childOption(ChannelOption.SO_REUSEADDR, true)\n .childOption(ChannelOption.TCP_NODELAY, true) //tcp\n .childOption(ChannelOption.SO_KEEPALIVE, true);\n\t}", "@Override\n\tpublic void onRepeatRequest(HttpRequest request,int requestId, int count) {\n\t\t\n\t}", "private NodeRestartRequest() {\n\t\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tthis.abiServerMain.setStatusMessage(request.toString());\n\t\t}\n\n\t}", "@Test\n public void testHttp200AuthorRequest() {\n final NioEventLoopGroup bootGroup = new NioEventLoopGroup(1);\n final NioEventLoopGroup processGroup = new NioEventLoopGroup();\n final String json = \"{\\\"action\\\":\\\"ping\\\"}\";\n final ByteBuf content = Unpooled.copiedBuffer(json, StandardCharsets.UTF_8);\n\n final ChannelFuture serverChannel = runServer(bootGroup, processGroup);\n runClient(HttpMethod.POST, content, \"/author\");\n\n serverChannel.awaitUninterruptibly();\n bootGroup.shutdownGracefully();\n processGroup.shutdownGracefully();\n\n final String expected = \"{\\\"action\\\":\\\"author\\\",\\\"content\\\":\\\"Dmitriy Shishmakov, https://github.com/DmitriySh\\\",\\\"status\\\":\\\"200 OK\\\"}\";\n final String actual = buffer.toString();\n logger.info(\"Expected result: {}\", expected);\n logger.info(\"Actual result: {}\", actual);\n Assert.assertEquals(\"Haven't received info about author\", expected, actual);\n }", "public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private int spreadWriteRequests() {\n return RANDOM.nextInt(MAX_SLEEP_TIME);\n }", "@Override\n public void run(String... args) throws Exception {\n Stream.of(Request.builder().name(\"Request #1\"), Request.builder().name(\"Request #2\"))\n .forEach(reqRepo::save);\n reqRepo.findAll().forEach(log::info);\n }", "public void requestServerData() throws IOException {\n Iterator it = gameServers.entrySet().iterator();\n while (it.hasNext()) {\n Map.Entry<InetSocketAddress, GameServer> pair = (Map.Entry) it.next();\n pair.getValue().requestAll();\n }\n }", "void requestProcessed( C conn, int numResponseExpected ) ;", "private void doPing()\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_JSON_DATA, \r\n PING_URL,\r\n SN_HOST,\r\n null, \r\n cookieData,\r\n false,\r\n token,\r\n secret ) );\r\n }", "public static void main(String[] args) throws IOException {\n\t\tServerSocket ss= new ServerSocket(5000); \r\n\t\tSocket s = null; \r\n\t\twhile(true) {\r\n\t\t\ts = ss.accept();\r\n\t\t\t\r\n\t\t\tDataOutputStream out = new DataOutputStream(s.getOutputStream());\r\n\t\t\tDataInputStream in = new DataInputStream(s.getInputStream());\r\n\t\t\t\r\n\t\t\tserverHelper c = new serverHelper(s,\"client\"+clientCount,in,out);\r\n\t\t\t\r\n\t\t\tThread t = new Thread(c);\r\n\t\t\t//System.out.println(\"client\"+clientCount+\"is online\");\r\n\t\t\tclients.add(c);\r\n\t\t\tt.start();\r\n\t\t\tclientCount++;\r\n\t\t}\r\n\t}", "@Override\n\tprotected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tsuper.service(req, resp);\n\t}", "protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }", "private spark.Service configureSparkService () {\n LOG.info(\"Analysis server will listen for HTTP connections on port {}.\", config.serverPort());\n spark.Service sparkService = spark.Service.ignite();\n sparkService.port(config.serverPort());\n\n // Specify actions to take before the main logic of handling each HTTP request.\n sparkService.before((req, res) -> {\n // Record when the request started, so we can measure elapsed response time.\n req.attribute(REQUEST_START_TIME_ATTRIBUTE, Instant.now());\n\n // Set CORS headers to allow requests to this API server from a frontend hosted on a different domain.\n // This used to be hardwired to Access-Control-Allow-Origin: * but that leaves the server open to XSRF\n // attacks when authentication is disabled (e.g. when running locally).\n res.header(\"Access-Control-Allow-Origin\", config.allowOrigin());\n // For caching, signal to the browser that responses may be different based on origin.\n // TODO clarify why this is important, considering that normally all requests come from the same origin.\n res.header(\"Vary\", \"Origin\");\n\n // The default MIME type is JSON. This will be overridden by the few controllers that do not return JSON.\n res.type(\"application/json\");\n\n // Do not require authentication for internal API endpoints contacted by workers or for OPTIONS requests.\n // FIXME those internal endpoints should be hidden from the outside world by the reverse proxy.\n // Or now with non-static Spark we can run two HTTP servers on different ports.\n String method = req.requestMethod();\n String pathInfo = req.pathInfo();\n boolean authorize = pathInfo.startsWith(\"/api\") && !\"OPTIONS\".equalsIgnoreCase(method);\n if (authorize) {\n // Determine which user is sending the request, and which permissions that user has.\n // This method throws an exception if the user cannot be authenticated.\n UserPermissions userPermissions = authentication.authenticate(req);\n // Store the resulting permissions object in the request so it can be examined by any handler.\n req.attribute(USER_PERMISSIONS_ATTRIBUTE, userPermissions);\n }\n });\n\n sparkService.after((req, res) -> {\n // Firing an event after the request allows us to report the response time,\n // but may fail to record requests experiencing authentication problems.\n Instant requestStartTime = req.attribute(REQUEST_START_TIME_ATTRIBUTE);\n Duration elapsed = Duration.between(requestStartTime, Instant.now());\n eventBus.send(new HttpApiEvent(req.requestMethod(), res.status(), req.pathInfo(), elapsed.toMillis())\n .forUser(UserPermissions.from(req)));\n });\n\n // Handle CORS preflight requests (which are OPTIONS requests).\n // See comment above about Access-Control-Allow-Origin\n sparkService.options(\"/*\", (req, res) -> {\n // Cache the preflight response for up to one day (the maximum allowed by browsers)\n res.header(\"Access-Control-Max-Age\", \"86400\");\n res.header(\"Access-Control-Allow-Methods\", \"GET,PUT,POST,DELETE,OPTIONS\");\n // Allowing credentials is necessary to send an Authorization header\n res.header(\"Access-Control-Allow-Credentials\", \"true\");\n res.header(\"Access-Control-Allow-Headers\", \"Accept,Authorization,Content-Type,Origin,\" +\n \"X-Requested-With,Content-Length,X-Conveyal-Access-Group\"\n );\n return \"OK\";\n });\n\n // Allow client to fetch information about the backend build version.\n sparkService.get(\n \"/version\",\n (Request req, Response res) -> SoftwareVersion.instance,\n JsonUtil.objectMapper::writeValueAsString\n );\n\n // Can we consolidate all these exception handlers and get rid of the hard-wired \"BAD_REQUEST\" parameters?\n\n sparkService.exception(AnalysisServerException.class, (e, request, response) -> {\n respondToException(e, request, response, e.type, e.message, e.httpCode);\n });\n\n sparkService.exception(IOException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(FileUploadException.class, (e, request, response) -> {\n respondToException(e, request, response, BAD_REQUEST, e.toString(), 400);\n });\n\n sparkService.exception(NullPointerException.class, (e, request, response) -> {\n respondToException(e, request, response, UNKNOWN, e.toString(), 400);\n });\n\n sparkService.exception(RuntimeException.class, (e, request, response) -> {\n respondToException(e, request, response, RUNTIME, e.toString(), 400);\n });\n\n return sparkService;\n }", "@Override\n\tpublic void handler(Packet packet, ChannelContext channelContext) throws Exception {\n\t\tlong c = HttpClientStarter.receivedCount.incrementAndGet();\n\t\tlong stageC = HttpClientStarter.receivedStageCount.incrementAndGet();\n\n\t\tlong bs = HttpClientStarter.receivedBytes.addAndGet(packet.getByteCount());\n\t\tlong stageBs = HttpClientStarter.receivedStageBytes.addAndGet(packet.getByteCount());\n\n\t\tif (c % HttpClientStarter.stepCount == 0) {\n\t\t\tlong endtime = System.currentTimeMillis();\n\t\t\tlong stageIv = endtime - HttpClientStarter.stageStartTime;\n\t\t\tlong iv = endtime - HttpClientStarter.startTime;\n\t\t\t//\t\t\tSystem.out.println(\"已经完成请求数:\" + StrUtil.fillBefore(c + \"\", '0', 10) + \", 本次耗时:\" + stageIv + \"ms, 总耗时:\" + iv + \"ms, \" + \"本次平均每秒处理请求数:\" + (1000 * (stageC / stageIv)));\n\n\t\t\t/*\n\t\t\t * %10s: 输出固定长度为10的字符串 默认右对齐 \n\t\t\t %-10s: 输出固定长度10的字符串 左对齐;\n\t\t\t */\n\t\t\tSystem.out.printf(\"已收到响应数:%-12s 流量:%-12s 本次耗时:%-8s 总耗时:%-8s \" + \"本次R/S:%-10s 本次吞吐量/S:%-10s\\r\\n\", c, (bs / 1024) + \" KB\", stageIv + \" ms\", iv + \" ms\",\n\t\t\t (1000 * (stageC / stageIv)), (1000 * (stageBs / stageIv)) / 1024 + \" KB\");\n\n\t\t\tHttpClientStarter.stageStartTime = System.currentTimeMillis();\n\t\t\tHttpClientStarter.receivedStageCount.set(0);\n\t\t\tHttpClientStarter.receivedStageBytes.set(0);\n\n\t\t}\n\t\tif (c == HttpClientStarter.totalRequestCount) {\n\t\t\tlong endtime = System.currentTimeMillis();\n\t\t\tlong iv = endtime - HttpClientStarter.startTime;\n\t\t\tSystem.out.printf(SysConst.CRLF);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"request path\", HttpClientStarter.requestPath);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"client count\", HttpClientStarter.clientCount);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"complete requests\", c);\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"time taken for tests\", iv + \" ms\");\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"requests per second\", (1000 * (c / iv)));\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"transfer rate(KB/S)\", ((1000 * (bs / iv)) / 1024));\n\t\t\tSystem.out.printf(\"%-30s%-20s\\r\\n\", \"Bytes/Response\", bs / c);\n\t\t\tSystem.out.printf(SysConst.CRLF);\n\t\t}\n\n\t}", "public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}", "int getServerWorkIterations();", "public void sendRRequests() {\n\n }", "private void sendSetRequest() {\r\n\t\tnumOfSets++;\r\n\t\ttype = \"0\";\r\n\t\tnumOfRecipients = servers.size();\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\ts.send(this, input);\r\n\t\t}\r\n\t\tsendTime = System.nanoTime();\r\n\r\n\t\tworkerTime = sendTime - pollTime;\r\n\t\t\r\n\t\tfor(ServerHandler s : servers) {\r\n\t\t\tString ricevuto = s.receive();\r\n\t\t\treplies.add(ricevuto);\r\n\t\t}\r\n\t\treceiveTime = System.nanoTime();\r\n\t\tprocessingTime = receiveTime - sendTime;\r\n\t\t\r\n\t\t\r\n\t\tfor(String reply : replies) {\r\n\t\t\tif(!(\"STORED\".equals(reply))) {\r\n\t\t\t\tunproperRequests.add(reply);\r\n\t\t\t\tsendBack(currentJob.getClient(), reply);\r\n\t\t\t\treplies.clear();\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsendBack(currentJob.getClient(), \"STORED\");\r\n\t\treplies.clear();\r\n\t\t\r\n\t}", "@Override\n\t\tpublic Response proceed(Request request) throws IOException {\n\t\t\tif (index < client.interceptors().size()) {\n\t\t\t\tInterceptor.Chain chain = new ApplicationInterceptorChain(\n\t\t\t\t\t\tindex + 1, request, forWebSocket);\n\t\t\t\tInterceptor interceptor = client.interceptors().get(index);\n\t\t\t\tResponse interceptedResponse = interceptor.intercept(chain);\n\n\t\t\t\tif (interceptedResponse == null) {\n\t\t\t\t\tthrow new NullPointerException(\"application interceptor \"\n\t\t\t\t\t\t\t+ interceptor + \" returned null\");\n\t\t\t\t}\n\n\t\t\t\treturn interceptedResponse;\n\t\t\t}\n\n\t\t\t// No more interceptors. Do HTTP.\n\t\t\treturn getResponse(request, forWebSocket);\n\t\t}", "Mono<HttpResponse> process(HttpPipelineCallContext context, HttpPipelineNextPolicy next);", "@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n doOpenConnection();\n\n HttpRequest request = (HttpRequest) request_spec.context.\n getAttribute(ExecutionContext.HTTP_REQUEST);\n request_spec.executor.preProcess\n (request, request_spec.processor, request_spec.context);\n\n response = request_spec.executor.execute\n (request, connection, request_spec.context);\n\n request_spec.executor.postProcess\n (response, request_spec.processor, request_spec.context);\n\n doConsumeResponse();\n\n } catch (Exception ex) {\n if (exception != null)\n exception = ex;\n\n } finally {\n conn_manager.releaseConnection(connection, -1, null);\n }\n }", "public IServerState changeState(ServerEvents serverEvent);", "void service(ServletRequest req, ServletResponse res) throws ServletException, IOException;", "public interface EndpointBase {\n\n boolean isIdleNow();\n\n /**\n * @param connectionTimeout\n * @param methodTimeout\n */\n void setTimeouts(int connectionTimeout, int methodTimeout);\n\n /**\n * @param alwaysMainThread\n */\n void setCallbackThread(boolean alwaysMainThread);\n\n /**\n * @param flags\n */\n void setDebugFlags(int flags);\n\n int getDebugFlags();\n\n /**\n * @param delay\n */\n void setDelay(int delay);\n\n void addErrorLogger(ErrorLogger logger);\n\n void removeErrorLogger(ErrorLogger logger);\n\n void setOnRequestEventListener(OnRequestEventListener listener);\n\n\n void setPercentLoss(float percentLoss);\n\n int getThreadPriority();\n\n void setThreadPriority(int threadPriority);\n\n\n ProtocolController getProtocolController();\n\n void setUrlModifier(UrlModifier urlModifier);\n\n /**\n * No log.\n */\n int NO_DEBUG = 0;\n\n /**\n * Log time of requests.\n */\n int TIME_DEBUG = 1;\n\n /**\n * Log request content.\n */\n int REQUEST_DEBUG = 2;\n\n /**\n * Log response content.\n */\n int RESPONSE_DEBUG = 4;\n\n /**\n * Log cache behavior.\n */\n int CACHE_DEBUG = 8;\n\n /**\n * Log request code line.\n */\n int REQUEST_LINE_DEBUG = 16;\n\n /**\n * Log request and response headers.\n */\n int HEADERS_DEBUG = 32;\n\n /**\n * Log request errors\n */\n int ERROR_DEBUG = 64;\n\n /**\n * Log cancellations\n */\n int CANCEL_DEBUG = 128;\n\n /**\n * Log cancellations\n */\n int THREAD_DEBUG = 256;\n\n /**\n * Log everything.\n */\n int FULL_DEBUG = TIME_DEBUG | REQUEST_DEBUG | RESPONSE_DEBUG | CACHE_DEBUG | REQUEST_LINE_DEBUG | HEADERS_DEBUG | ERROR_DEBUG | CANCEL_DEBUG;\n\n int INTERNAL_DEBUG = FULL_DEBUG | THREAD_DEBUG;\n\n /**\n * Created by Kuba on 17/07/14.\n */\n interface UrlModifier {\n\n String createUrl(String url);\n\n }\n\n interface OnRequestEventListener {\n\n void onStart(Request request, int requestsCount);\n\n void onStop(Request request, int requestsCount);\n\n }\n}", "public void run() {\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tSocket client = serverSocket.accept();\n\t\t\t\ttry {\n\t\t\t\t\tSystem.out.println(\"连接到服务器的用户:\" + client);\n\t\t\t\t\t// 定义输入输出流\n\t\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\t\t\tPrintWriter out = new PrintWriter(client.getOutputStream(), true);\n\t\t\t\t\t// 定义request与response\n\t\t\t\t\tHttpServletRequest request = new Request(in);\n\t\t\t\t\tif (request.getMethod() == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tHttpServletResponse response = new Response(out);\n\t\t\t\t\t// 处理\n\n\t\t\t\t\tString url = request.getRequestURI(); // 例如/index.html\n\n\t\t\t\t\t// new Process().service(request, response);\n\n\t\t\t\t\tHttpServlet servlet = container.getServlet(url.substring(1));\n\t\t\t\t\tif (servlet != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tservlet.service(request, response);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (ServletException e) {\n\t\t\t\t\t\t\tthrow new RuntimeException(e);\n\t\t\t\t\t\t}\n\t\t\t\t\telse { //页面不存在\n\t\t\t\t\t\tnew Process().service(request, response);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tfinally {\n\t\t\t\t\tclient.close();\n\t\t\t\t\tSystem.out.println(client + \"离开了HTTP服务器\\n----------------\\n\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcatch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tthrow new RuntimeException();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n ServerSocket ss = new ServerSocket(3000);\n\n // infinite loop is running for getting client request\n while (true) {\n Socket serverSocket = null;\n\n try {\n // server socket object receive incoming client requests\n serverSocket = ss.accept();\n count++;\n\n System.out.println(\"A new client\" + clientNum++ + \" is connected : \" + serverSocket);\n\n // getting input and out streams\n DataInputStream dataInputStream = new DataInputStream(serverSocket.getInputStream());\n DataOutputStream dataOutputStream = new DataOutputStream(serverSocket.getOutputStream());\n\n System.out.println(\"Allocating new thread for this client\" + clientNum);\n\n // create a new thread object\n Thread newThread = new ClientHandler(serverSocket, dataInputStream, dataOutputStream, count);\n\n // Invoking the start() method\n newThread.start();\n\n } catch (Exception e) {\n serverSocket.close();\n e.printStackTrace();\n }\n }\n }", "private void refreshServerList() {\n\t\tcurrentRequestId++;\n\t\tserverNames.clear();\n\t\tserverTable.clear();\n\t\tnew Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\taddresses = client.discoverHosts(WifiHelper.UDP_PORT, 1000);\n\t\t\t\tint removed = 0;\n\t\t\t\tfor(int i = 0; i + removed < addresses.size(); i++) {\n\t\t\t\t\tsynchronized(client) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tclient.connect(1000, addresses.get(i - removed), WifiHelper.TCP_PORT, WifiHelper.UDP_PORT);\n\t\t\t\t\t\t\tclient.sendTCP(new NameRequest(currentRequestId, addresses.size()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tclient.wait(5000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tThread.sleep(1000);\n\t\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\taddresses.remove(i);\n\t\t\t\t\t\t\tremoved++;\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}).start();\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String name = request.getParameter(GenericConstants.COMPONENT_PNAME);\n \n RealTimeSUStateHelper suRTHelper = new RealTimeSUStateHelper(name);\n String responseData = suRTHelper.getServiceUnitsState();\n response.setStatus(HttpServletResponse.SC_OK);\n response.setHeader(RealTimeStatisticServlet.CONTENT_TYPE_HEADER, \n RealTimeStatisticServlet.CONTENT_TYPE_VALUE);\n response.setHeader(RealTimeStatisticServlet.CACHE_CONTROL_HEADER, \n RealTimeStatisticServlet.CACHE_CONTROL_VALUE);\n \n // Write out the message on the response stream\n OutputStream outputStream = response.getOutputStream();\n try {\n outputStream.write(responseData.getBytes());\n } catch (IOException e2) {\n }\n outputStream.flush();\n \n }", "IMember getServerStub();", "public void incrementNumBindRequests() {\n this.numBindRequests.incrementAndGet();\n }", "R request();", "S getServer();", "@Override\n public Mono<Response<ServiceInstance>> choose(Request request) {\n ServiceInstanceListSupplier supplier = serviceInstanceListSupplierProvider\n .getIfAvailable(NoopServiceInstanceListSupplier::new);\n return supplier.get(request).next()\n .map(serviceInstances -> processInstanceResponse(supplier, serviceInstances));\n }", "public interface ServerProcessor {\n\n\t/**\n\t * Handle request,then return Object\n\t * \n\t * @param request\n\t * @return Object\n\t */\n\tObject handle(Object request);\n\t\n}", "private IdServer() {\n\t\t//System.out.println(\"Creating new instance of ID Server!\");\n\t\tclientIDCounter = 1;\n\t\tmemberIDCounter = 1;\n\t\tticketIdCounter = 1;\n\t}" ]
[ "0.60175145", "0.60154706", "0.5903902", "0.5796321", "0.57593024", "0.57048756", "0.5693276", "0.56694686", "0.5657029", "0.5628387", "0.5620586", "0.560461", "0.5595041", "0.5589006", "0.5566896", "0.5533893", "0.5498959", "0.5488722", "0.5483748", "0.5453705", "0.54491264", "0.5444801", "0.54416656", "0.5436494", "0.5431452", "0.5427728", "0.54152936", "0.5390142", "0.53584564", "0.5346295", "0.5343304", "0.531848", "0.531188", "0.52729243", "0.5269693", "0.5248835", "0.5201454", "0.518718", "0.517451", "0.51742977", "0.5173843", "0.5170187", "0.5163959", "0.51617104", "0.5156421", "0.5150906", "0.51413834", "0.5140494", "0.51333433", "0.51311255", "0.5129789", "0.5129398", "0.51209104", "0.5111002", "0.5101552", "0.5093459", "0.5093297", "0.507757", "0.5074921", "0.5072272", "0.5071266", "0.5067595", "0.5057449", "0.50526994", "0.50511545", "0.50511295", "0.5039607", "0.5037679", "0.50275517", "0.50234145", "0.5019953", "0.5009458", "0.49983948", "0.4997509", "0.49936518", "0.4991759", "0.4988374", "0.49797493", "0.49794424", "0.49762473", "0.49727505", "0.4969828", "0.49682865", "0.49657685", "0.49643862", "0.4960032", "0.49586803", "0.49515533", "0.49477592", "0.4944327", "0.49423328", "0.4933524", "0.49334207", "0.49333435", "0.49306226", "0.49251136", "0.4922146", "0.49220178", "0.49187663", "0.49164778" ]
0.49444723
89
Created by YJ on 2018/1/22.
public interface UserInfoService { /** * 查询用户信息 * @param id * @return */ public User queryUserInfo(String id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo38117a() {\n }", "@Override\n protected void init() {\n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void memoria() {\n \n }", "private TMCourse() {\n\t}", "private void poetries() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private void init() {\n\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\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\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "public void mo4359a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public Pitonyak_09_02() {\r\n }", "@Override\n\tpublic void init() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "@Override\n public void initialize() {\n \n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "Consumable() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void einkaufen() {\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 }", "private Singletion3() {}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}" ]
[ "0.60138726", "0.59727305", "0.57377034", "0.57364416", "0.5700921", "0.5700921", "0.5633111", "0.5613107", "0.5607693", "0.5579356", "0.5576601", "0.556329", "0.5537278", "0.5537278", "0.5537278", "0.5537278", "0.5537278", "0.5537278", "0.5531461", "0.55311984", "0.55253935", "0.5520124", "0.5506742", "0.5505303", "0.5477954", "0.5472601", "0.5465915", "0.5450498", "0.54450136", "0.54392016", "0.54392016", "0.54392016", "0.54392016", "0.54392016", "0.5435462", "0.5432412", "0.54300517", "0.54250467", "0.54092646", "0.54084086", "0.5405205", "0.539372", "0.53924143", "0.5391133", "0.53897774", "0.5378931", "0.5375409", "0.5375409", "0.5373631", "0.53723603", "0.5371393", "0.5371393", "0.5368193", "0.5363752", "0.5363612", "0.53635323", "0.53635323", "0.53635323", "0.536236", "0.5361899", "0.5358264", "0.5358264", "0.53398806", "0.53398806", "0.53398806", "0.5335417", "0.532473", "0.5316186", "0.5311286", "0.5311286", "0.5311286", "0.5309337", "0.5309197", "0.5303153", "0.52876854", "0.52876854", "0.52876854", "0.5281108", "0.5274358", "0.52695334", "0.5269161", "0.5266278", "0.5265385", "0.52581036", "0.5255235", "0.52537996", "0.5252653", "0.52521765", "0.5248984", "0.5240744", "0.52391815", "0.52329177", "0.52329177", "0.52329177", "0.52329177", "0.52329177", "0.52329177", "0.52329177", "0.5222433", "0.52155405", "0.52155405" ]
0.0
-1
create a simple jpanel
public static void main(String[] args) { JPanel panel = new JPanel(); panel.setBackground(Color.BLUE); panel.setMinimumSize(new Dimension(200,200)); // display the jpanel in a joptionpane dialog, using showMessageDialog JFrame frame = new JFrame("JOptionPane showMessageDialog component example"); JOptionPane.showMessageDialog(frame, panel); System.exit(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void crearPanel(){\n\n panel = new JPanel();\n this.getContentPane().add(panel);\n panel.setBackground(Color.CYAN);\n panel.setLayout(null);\n }", "private void createpanel1() {\r\n\t\theader = new JLabel();\r\n\t\theader.setText(\"Type in Userinformation\");\r\n\t\theader.setFont(customFont.deriveFont(25f));\r\n\t\theader.setForeground(Color.WHITE);\r\n\r\n\t\tpanels[0].add(header);\r\n\t\tpanels[0].setOpaque(false);\r\n\t\tallComponents.add(panels[0]);\r\n\r\n\t}", "void addPanel() {\n \tPanel panel = new Panel();\r\n\r\n panel.setLayout(new GridLayout(4, 1));\r\n jSliderBrightness = makeTitledSilder(\"Helligkeit\", 0, 256, 128); // werte veraendert\r\n jSliderContrast = makeTitledSilder(\"Kontrast\", 0, 10, 5);\r\n jSliderSaturation = makeTitledSilder(\"Sättigung\", 0, 9, 4);\r\n jSliderHue = makeTitledSilder(\"Hue\", 0, 360, 0);\r\n //jSliderContrast = makeTitledSilder(\"Slider2-Wert\", 0, 100, 50);\r\n panel.add(jSliderBrightness);\r\n panel.add(jSliderContrast);\r\n panel.add(jSliderSaturation);\r\n panel.add(jSliderHue);\r\n \r\n add(panel);\r\n \r\n pack();\r\n }", "public NewJPanel() {\n initComponents();\n }", "public NewJPanel() {\n initComponents();\n }", "private void createPanel() {\n JPanel panel = new JPanel();\n \n for(int i = 0; i < button.size(); i++){\n panel.add(button.get(i));\n }\n panel.add(label);\n \n add(panel);\n }", "public JJPanel() {\n\n\t}", "public PanelJuego() {\r\n\t\tsetLayout(new GridLayout(3, 3, 20, 20));// Se crea una matriz 3x3 con un\r\n\t\t\t\t\t\t\t\t\t\t\t\t// espaciado tanto horizontal\r\n\t\t\t\t\t\t\t\t\t\t\t\t// como vertical.\r\n\t\tposicion = new JTextField[9];\r\n\t\tllenarPanel();\r\n\t\tsetBackground(Color.BLACK);// Se pinta el fondo de negro.\r\n\t\tsetVisible(true);\r\n\t}", "private void createManualJPanel() {\r\n createJPanelWithManual();\r\n JFrame frame = new JFrame();\r\n customizeFrame(frame);\r\n }", "public PrintsPanel() {\n initComponents();\n createPanels();\n\n }", "private void initPanels() {\r\n\t\r\n\tpanel = new JPanel();\r\n\tpanel.setBounds(0, 0, ScreenSize.WIDTH + 25, ScreenSize.HEIGHT + 50);\r\n\tpanel.setLayout(new BorderLayout());\r\n\tpanel.addComponentListener(this);\r\n\r\n\tbord = new BordPanel();\r\n\tbord.setBounds(0 ,0 ,ScreenSize.WIDTH, ScreenSize.HEIGHT);\r\n\tbord.setOpaque(true);\r\n\r\n\tlabel = new JLabel();\r\n\tlabel.setText(\"Text\");\r\n\r\n\tpanel.add(label, BorderLayout.SOUTH);\r\n\tpanel.add(bord, BorderLayout.CENTER);\r\n\t\r\n\tframe.add(panel);\r\n }", "public JPanel createPanel() {\n\t\t\r\n\t\tJPanel mainPanel = new JPanel();\r\n\t\tmainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\r\n\t\tmainPanel.setBackground(Color.WHITE);\r\n\t\tmainPanel.setBorder(new CompoundBorder(\r\n\t\t\t\tBorderFactory.createLineBorder(new Color(0x3B70A3), 4),\r\n\t\t\t\tnew EmptyBorder(10, 20, 10, 20)));\r\n\r\n\t\t/*\r\n\t\t * Instruction\r\n\t\t */\t\r\n\t\tmainPanel.add(instructionPanel());\r\n\t\t\r\n\t\t\r\n\t\t// TODO: set task order for each group - make first 3 tasks = groups tasks\r\n\t\tmainPanel.add(messagesPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(phonePanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(clockPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(cameraPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\t\r\n\r\n\t\tmainPanel.add(contactPanel());\r\n\t\tmainPanel.add(Box.createRigidArea(new Dimension(this.getWidth(), 5)));\r\n\r\n\t\tmainPanel.add(galleryPanel());\r\n\t\t\r\n\t\treturn mainPanel;\r\n\t}", "private void initPanel() {\n\t\tthis.panel = new JPanel();\n\t\tthis.panel.setBounds(5, 5, 130, 20);\n\t\tthis.panel.setLayout(null); \n\n\t}", "public static JPanel createDemoPanel() {\r\n JFreeChart chart = createChart(createDataset());\r\n ChartPanel panel = new ChartPanel(chart);\r\n panel.setMouseWheelEnabled(true);\r\n return panel;\r\n }", "public JPanel menuPanel() {\n\t\tJPanel mpanel = new JPanel(null);\n\t\tmpanel.setBounds(0, 100, 700, 300);\n\t\tmpanel.setBackground(Color.PINK);\n\t\tFont lblfont = new Font(\"SansSerif\", Font.BOLD, 30);\n\t\t\n\t\tworkerBtn = new JButton(workerpic);\n\t\tvisitorBtn = new JButton(visitorpic);\n\t\tworkerBtn.addActionListener(this);\n\t\tvisitorBtn.addActionListener(this);\n\t\tvisitorBtn.setBounds(100, 50, 150, 200);\n\t\tworkerBtn.setBounds(450, 50, 150, 200);\n\t\t\n\t\tlblworker.setBounds(450, 0, 150, 50);\n\t\tlblvisitor.setBounds(100, 0, 150, 50);\n\t\tlblworker.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblvisitor.setHorizontalAlignment(JLabel.CENTER);\n\t\tlblworker.setFont(lblfont);\n\t\tlblvisitor.setFont(lblfont);\n\t\tmpanel.add(lblworker);\n\t\tmpanel.add(lblvisitor);\n\t\tmpanel.add(visitorBtn);\n\t\tmpanel.add(workerBtn);\n\t\treturn mpanel;\n\t}", "public JavaPanel() {\n\t\tsuper();\n\t}", "private JPanel getJPanel() {\r\n\t\tif (jPanel == null) {\r\n\t\t\tjLabel = new JLabel();\r\n\t\t\tjLabel.setBounds(new Rectangle(40, 68, 105, 29));\r\n\t\t\tjLabel.setText(\" Enter your word\");\r\n\t\t\tjPanel = new JPanel();\r\n\t\t\tjPanel.setLayout(null);\r\n\t\t\tjPanel.setBackground(new Color(0, 255, 51));\r\n\t\t\tjPanel.setPreferredSize(new Dimension(100, 100));\r\n\t\t\tjPanel.add(jLabel, null);\r\n\t\t\tjPanel.add(getJTextField(), null);\r\n\t\t\tjPanel.add(getJTextArea(), null);\r\n\t\t\tjPanel.add(getJButton1(), null);\r\n\t\t\tjPanel.add(getJButton2(), null);\r\n\t\t\tjPanel.add(getJButton(), null);\r\n\t\t\tjPanel.add(getJButton3(), null);\r\n\t\t\tjPanel.add(getJTextArea1(), null);\r\n\t\t\tjPanel.add(getJScrollBar(), null);\r\n\t\t}\r\n\t\treturn jPanel;\r\n\t}", "private Component doInit() {\n\t\tJXPanel panel = new JXPanel();\n\t\tpanel.setLayout(new BorderLayout());\n\n\t\t// create a label\n\t\tfinal JXLabel label = new JXLabel();\n\t\tlabel.setFont(new Font(\"Segoe UI\", Font.BOLD, 14));\n\t\tlabel.setText(\"task pane item 1 : a label\");\n\t\tlabel.setIcon(Images.NetworkDisconnected.getIcon(32, 32));\n\t\tlabel.setHorizontalAlignment(JXLabel.LEFT);\n\t\tlabel.setBackgroundPainter(getPainter());\n\n\t\t// tweak with the UI defaults for the taskpane and taskpanecontainer\n\t\tchangeUIdefaults();\n\n\t\t// create a taskpanecontainer\n\t\tJXTaskPaneContainer taskpanecontainer = new JXTaskPaneContainer();\n\n\t\t// create a taskpane, and set it's title and icon\n\t\tJXTaskPane taskpane = new JXTaskPane();\n\t\ttaskpane.setTitle(\"My Tasks\");\n\t\ttaskpane.setIcon(Images.Quit.getIcon(24, 24));\n\n\t\t// add various actions and components to the taskpane\n\t\ttaskpane.add(label);\n\t\ttaskpane.add(new AbstractAction() {\n\t\t\tprivate static final long serialVersionUID = -7314920635669764914L;\n\t\t\t{\n\t\t\t\tputValue(Action.NAME, \"task pane item 2 : an action\");\n\t\t\t\tputValue(Action.SHORT_DESCRIPTION, \"perform an action\");\n\t\t\t\tputValue(Action.SMALL_ICON,\n\t\t\t\t\t\tImages.NetworkConnected.getIcon(32, 32));\n\t\t\t}\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tlabel.setText(\"an action performed\");\n\t\t\t}\n\t\t});\n\n\t\t// add the task pane to the taskpanecontainer\n\t\ttaskpanecontainer.add(taskpane);\n\n\t\t// set the transparency of the JXPanel to 50% transparent\n\t\tpanel.setAlpha(0.7f);\n\n\t\tpanel.add(taskpanecontainer, BorderLayout.CENTER);\n\t\tpanel.setPreferredSize(new Dimension(250, 200));\n\n\t\treturn panel;\n\t}", "private JPanel makePanel()\n {\n JPanel mainPanel = new JPanel();\n mainPanel.add(myLoginPanel);\n\n return mainPanel;\n }", "private void setPanel()\r\n\t{\r\n\t\tpanel = new JPanel();\r\n\t\tpanel.setLayout(new GridLayout(5, 2));\r\n\t\t\r\n\t\tpanel.add(bubbleL);\r\n\t\tpanel.add(bubblePB);\r\n\t\t\r\n\t\tpanel.add(insertionL);\r\n\t\tpanel.add(insertionPB);\r\n\t\t\r\n\t\tpanel.add(mergeL);\r\n\t\tpanel.add(mergePB);\r\n\t\t\r\n\t\tpanel.add(quickL);\r\n\t\tpanel.add(quickPB);\r\n\t\t\r\n\t\tpanel.add(radixL);\r\n\t\tpanel.add(radixPB);\r\n\t}", "protected void createMainPanel() {\n\t\tthis.mainPanel = new VerticalPanel(); \n\t\tthis.mainPanel.setSpacing(5);\n\t\tthis.mainPanel.setScrollMode(getScrollMode());\n\t}", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n JFrame frame = new JFrame(\"TablePanel\");\n JPanel contentP = new JPanel();\n Box v = Box.createVerticalBox();\n Box h = Box.createHorizontalBox();\n Box h2 = Box.createHorizontalBox();\n TablePanel tablePanel = new TablePanel();\n tablePanel.setOpaque(true); //content panes must be opaque\n\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setContentPane(contentP);\n contentP.add(tablePanel);\n contentP.add(v);\n v.add(h);\n v.add(h2);\n\n h.add(tablePanel);\n h2.add(new JButton(\"Hello\"));\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "private JPanel createPanel(String title) {\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(0, 1));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), title));\n\t\treturn panel;\n\t}", "private void createGUI() {\n ResizeGifPanel newContentPane = new ResizeGifPanel();\n newContentPane.setOpaque(true); \n setContentPane(newContentPane); \n }", "public Parent creatPanel() {\r\n\t\t\r\n\t\thlavniPanel = new BorderPane();\r\n\t\thlavniPanel.setCenter(creatGameDesk());\r\n\t\thlavniPanel.setTop(createMenuBar());\r\n\t\t\r\n\t\thlavniPanel.setBackground(new Background(new BackgroundFill(Color.BURLYWOOD, CornerRadii.EMPTY, Insets.EMPTY)));\r\n\t\thlavniPanel.setPadding(new Insets(8));\r\n\t\treturn hlavniPanel;\r\n\t}", "private JPanel addPannelName(){\n\t\tJPanel panNom = new JPanel();\n\t\tpanNom.setPreferredSize(new Dimension(175, 75));\n\t\tnameT = new JTextField();\n\t\tnameT.setPreferredSize(new Dimension(100, 25));\n\t\tpanNom.setBorder(BorderFactory.createTitledBorder(\"Channel name\"));\n\t\tname = new JLabel(\"Put a name :\");\n\t\tpanNom.add(name);\n\t\tpanNom.add(nameT);\n\t\treturn panNom;\n\t}", "public void setupPanel() {\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new ModifiedFlowLayout(FlowLayout.LEFT));\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setOpaque(true);\n\t}", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "public void testOnePanel() {\n\t\t// Instantiate nested panels\n\t\tRasterFileTestPlotPanel parent =\n\t\t\tnew RasterFileTestPlotPanel(TEST_DIR);\n\t\t\n\t\t// Add background widgets to panel such that\n\t\t// they are top aligned and non-overlapping\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_1), true);\n\t\tparent.add(new Background(WIDTH, HEIGHT, COLOR_2),\n\t\t\t\tHorizontalAlignment.RIGHT_OF,\n\t\t\t\tVerticalAlignment.TOP_JUSTIFIED);\n\t\t\n\t\t// Output graphics to file\n\t\tparent.toPngFile(\"one-panel.png\");\n\t}", "public static JPanel newPanel() {\n\t\treturn null;\n\t}", "public HoaDonJPanel() {\n initComponents(); \n this.init();\n }", "private JPanel createNorthPanel() \r\n\t{\r\n\t\tJPanel panel = new JPanel();\r\n\t\t\r\n\t\tJLabel title = new JLabel(\"Reservations\", SwingConstants.CENTER);\r\n\t\ttitle.setFont(new Font(\"serif\", Font.PLAIN, 29));\r\n\t\tpanel.add(title);\r\n\t\t\r\n\t\treturn panel;\r\n\t}", "private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}", "public Panel() {\n initComponents();\n\n\n }", "private void setup() {\n this.jpanel = new JPanel(new BorderLayout());\n this.jframe = new JFrame(\"Minesweeper\");\n this.jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.jframe.setSize(sizeX * LENGTH + 18, (sizeY + 1) * LENGTH + 43);\n\n this.jframe.setVisible(true);\n this.jpanel.addMouseListener(this);\n this.jpanel.setSize(sizeX * LENGTH, (sizeY + 1) * LENGTH);\n this.jframe.add(this.jpanel);\n\n this.g = jpanel.getGraphics();\n }", "public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}", "JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }", "public DemoPanel() {\n }", "private JPanel getJPLinha()\n\t{\n\t\tif ( jPLinha == null )\n\t\t{\n\t\t\tjPLinha = new JPanel();\n\t\t\tjPLinha.setLayout(new BorderLayout());\n\t\t\tjPLinha.setBounds(new Rectangle(17, 170, 981, 2));\n\t\t\tjPLinha.setBorder(BorderFactory.createLineBorder(Color.gray));\n\t\t}\n\t\treturn jPLinha;\n\t}", "private JPanel initializePanel() {\n JPanel myPanel = new JPanel();\n //myPanel.setPreferredSize(new Dimension(600,600));\n\n myPanel.setLayout(new GridLayout(8,8));\n myPanel.setSize(600,600);\n myPanel.setLocation(100,100);\n myPanel.setBorder(new LineBorder(Color.BLACK));\n return myPanel;\n }", "public static void main(String[] args)\n\t{\n\t\tnew JPanelTest();\n\t\t\n\t}", "public SudoFrame() {\n topPanel = new JTabbedPane();\n bottomPanel = new JPanel();\n bottomPanel.setOpaque(false);\n\n paintButton();\n paintSudo();\n\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Soduku\");\n\n JPanel contentPaneBoss = new ContentPanel();\n this.setContentPane(contentPaneBoss);\n\n contentPaneBoss.setLayout(new BoxLayout(contentPaneBoss, BoxLayout.Y_AXIS));\n// contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(topPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n contentPaneBoss.add(bottomPanel);\n contentPaneBoss.add(Box.createVerticalStrut(5));\n\n this.setBounds(900, 100, 450, 450);\n // this.pack();\n// this.setResizable(false);\n this.setVisible(true);\n }", "public SnowmanPanel()\n {\n setPreferredSize(new Dimension(300,225));\n setBackground(Color.cyan);\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Gomaku - 5 In A Row\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.setSize(600, 600);\n\n //Add the ubiquitous \"Hello World\" label.\n JPanel board = new JPanel();\n board.setSize(400, 400);\n board.set\n frame.getContentPane().add(board);\n\n //Display the window.\n frame.setVisible(true);\n }", "public CreateNewEventJPanel() {\n }", "void createGebruikersBeheerPanel() {\n frame.add(gebruikersBeheerView.createGebruikersBeheerPanel());\n frame.setTitle(gebruikersBeheerModel.getTitle());\n }", "private void constructMainPanel() {\n // initialize the main panel\n mainPanel = new JPanel();\n mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));\n mainPanel.setPreferredSize(new Dimension(model.getWidth() + 50,\n model.getHeight() + 240));\n JScrollPane mainPane = new JScrollPane(mainPanel, ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS,\n ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n this.add(mainPane);\n\n }", "public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "private void createSchedulePanel()\n\t{\n\t\t//newWeek=new Week(selectedId);\n\t\t//contentPane.add(newWeek,BorderLayout.SOUTH);\n\t\t//System.out.println(\"first time load:\"+selectedId);\n\t\tschedule=new Schedule(selectedId, isSprinklerSelected);\n\t\tschedulePane=new JPanel();\n\t\tschedulePane.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tschedulePane.add(schedule);\n\t\tcontentPane.add(schedulePane,BorderLayout.CENTER);//add to content pane\n\t}", "private JPanel makeControlPanel() {\n\n final JPanel panel = new JPanel(new FlowLayout(3));\n final JButton refreshButton = new JButton(new ImageIcon(iconMaker(\"refreshREAL.png\")));\n refreshButton.setFocusPainted(false);\n refreshButton.addActionListener(this::refreshButtonClicked);\n refreshButton.setToolTipText(\"Refresh Item Price(s)\");\n //checkButton.setPreferredSize(new Dimension(25,25));\n JButton viewLink = new JButton(new ImageIcon(iconMaker(\"visitSite.png\")));\n viewLink.setToolTipText(\"Visit Item Website\");\n JButton deleteItem = new JButton(new ImageIcon(iconMaker(\"delete.png\")));\n deleteItem.setToolTipText(\"Remove Item\");\n JButton addItem = buttonMaker(\"additem.png\");\n addItem.setToolTipText(\"Add Item to Price Watcher\");\n JButton editItem = buttonMaker(\"edititem.png\");\n editItem.setToolTipText(\"Edit Item Details\");\n\n\n viewLink.setFocusPainted(false);\n deleteItem.setFocusPainted(false);\n\n viewLink.addActionListener(this::viewPageClicked);\n panel.add(refreshButton);\n panel.add(viewLink);\n panel.add(deleteItem);\n panel.add(addItem);\n panel.add(editItem);\n\n return panel;\n }", "public JComponent createTopPanel() {\n\n\t//\tcontent();\n\t\tfields = new JTextField[NBR_FIELDS];\n\t\tmyTable = new PalletTable(db);\n\t\ttable = new JTable(myTable);\n\t\ttable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n\t\ttable.setPreferredScrollableViewportSize(new Dimension(750, 100));\n table.setFillsViewportHeight(true);\n\t\tscroll = new JScrollPane(table);\n\t//\tcontent();\n\t\tmainPanel= new JPanel();\n\t\tmainPanel.setLayout(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.gridy=0;\n\t\tmainPanel.add(scroll,c);\n\t\tc.gridy=1;\n\t\tmainPanel.add(content(),c);\n\t\t//scroll.setPreferredSize(new Dimension(300,250));\n\t\treturn mainPanel;\n\t}", "private Component buildMainPanel() {\r\n \tDPanel mainPanel = new DPanel();\r\n \tJLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon(\"happycow.jpg\"));\r\n \tmainPanel.add(backGroundLabel);\r\n \tsetCurrentContentPane(mainPanel);\r\n \thome = mainPanel;\r\n return home;\r\n }", "private void createpanel2() {\r\n\t\tpanels[1].setLayout(new GridLayout(1, 2));\r\n\r\n\t\tdescription[0] = new JLabel(\"Accountname: \");\r\n\t\tdescription[0].setFont(smallfont);\r\n\t\tdescription[0].setHorizontalAlignment(JLabel.CENTER);\r\n\t\tuserinfo = new JTextField() {\r\n\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tg.drawImage(ImageLoader.getImage(\"black_0.4\"), 0, 0, null);\r\n\t\t\t\tsuper.paint(g);\r\n\t\t\t}\r\n\t\t};\r\n\t\tif (System.getProperty(\"os.name\").startsWith(\"Windows\")) {\r\n\t\t\tuserinfo.setForeground(Color.WHITE);\r\n\t\t} else {\r\n\t\t\tuserinfo.setForeground(Color.BLACK);\r\n\t\t}\r\n\t\tuserinfo.setOpaque(false);\r\n\t\tuserinfo.setFont(smallfont);\r\n\t\tpanels[1].add(description[0]);\r\n\t\tpanels[1].add(userinfo);\r\n\t\tpanels[1].setOpaque(false);\r\n\t\tallComponents.add(panels[1]);\r\n\t\tpanels[0].revalidate();\r\n\t}", "public TestGUI() {\n initComponents();\n this.test = new Test(); \n super.setTitle(\"User Test\"); \n this.jButton1.setEnabled(false); \n this.jButton2.setEnabled(false); \n this.jButton3.setEnabled(false); \n this.jLabel3.setVisible(false);\n // this.jPanel1.add( new TFQPanel()); \n // this.jPanel1.repaint(); \n }", "private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t}", "UserLoginPanel() {\n\t\tJPanel myPanel = new MyPanel();\n\t\tJPanel feedbackPanel = new FeedbackPanel();\n\n\t\tthis.setLayout(new GridLayout(3, 1));\n\t\tthis.add(feedbackPanel);\n\t\tthis.add(myPanel);\n\t\tthis.add(new JPanel());\n\n\t\tthis.setVisible(true);\n\t}", "public Panel() {\n }", "private static void createAndShowGUI() {\r\n JFrame.setDefaultLookAndFeelDecorated(true);\r\n\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n frame.setLayout(new BorderLayout());\r\n\r\n JPanel parametersPanel = new JPanel();\r\n parametersPanel.setPreferredSize(new Dimension(preferredWidth, 50));\r\n \r\n addComponentsToPane(parametersPanel);\r\n \r\n frame.add(parametersPanel, BorderLayout.PAGE_START);\r\n \r\n schedulePanel.add(monLabel);\r\n schedulePanel.add(tueLabel);\r\n schedulePanel.add(wedLabel);\r\n schedulePanel.add(thuLabel);\r\n schedulePanel.add(friLabel);\r\n schedulePanel.setPreferredSize(new Dimension(preferredWidth, 500));\r\n JScrollPane scrollPane = new JScrollPane();\r\n scrollPane.setViewportView(schedulePanel);\r\n JPanel bigPanel = new JPanel(); \r\n bigPanel.setLayout(new BorderLayout());\r\n bigPanel.setPreferredSize(schedulePanel.getPreferredSize());\r\n bigPanel.add(scrollPane, BorderLayout.CENTER);\r\n frame.add(bigPanel, BorderLayout.CENTER);\r\n\r\n frame.setJMenuBar(createMenu());\r\n \r\n frame.pack();\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n \r\n frame.setVisible(true);\r\n frame.setResizable(false);\r\n }", "private Panel createMessagePanel()\n {\n Panel messagePanel;\n Label product;\n Label version;\n Label copyright;\n\n product = new Label(\"File System Archiver\");\n version = new Label(\"Version \" + Constants.CLIENT_VERSION);\n copyright = new Label(\"Copyright (c) 2001\");\n\n messagePanel = new Panel();\n messagePanel.setLayout(new GridLayout(3, 0));\n\n messagePanel.add(product);\n messagePanel.add(version);\n messagePanel.add(copyright);\n\n messagePanel.setVisible(true);\n\n return messagePanel;\n }", "private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }", "private void createAdminPanel() {\n username = new JTextField(8);\n password = new JPasswordField(8);\n JPanel loginArea = adminLoginPanels();\n JPanel buttons = adminLoginButtons();\n loginFrame = new JFrame();\n loginFrame.setLayout(new BorderLayout());\n loginFrame.getRootPane().setBorder(BorderFactory.createEmptyBorder(10,10,10,10));\n loginLabel = new JLabel(\"Please log in as administrator\", SwingConstants.CENTER);\n loginFrame.getContentPane().add(loginLabel, BorderLayout.NORTH);\n loginFrame.getContentPane().add(loginArea, BorderLayout.CENTER);\n loginFrame.getContentPane().add(buttons, BorderLayout.SOUTH);\n loginFrame.setVisible(true);\n loginFrame.pack();\n }", "public Container createContentPane()\r\n\t{\r\n\t\t//add items to lvl choice\r\n\t\tfor(int g=1; g<21; g++)\r\n\t\t{\r\n\t\t\tcharLvlChoice.addItem(String.valueOf(g));\r\n\t\t}\r\n\r\n\t\t//add stuff to panels\r\n\t\tinputsPanel.setLayout(new GridLayout(2,2,3,3));\r\n\t\tdisplayPanel.setLayout(new GridLayout(1,1,8,8));\r\n\t\tinputsPanel.add(runButton);\r\n\t\tinputsPanel.add(clearButton);\r\n\t\t\ttimesPanel.add(timesLabel);\r\n\t\t\ttimesPanel.add(runTimesField);\r\n\t\tinputsPanel.add(timesPanel);\r\n\t\t\tlevelPanel.add(levelLabel);\r\n\t\t\tlevelPanel.add(charLvlChoice);\r\n\t\tinputsPanel.add(levelPanel);\r\n\t\t\trunTimesField.setText(\"1\");\r\n\t\tdisplay.setEditable(false);\r\n\r\n\t\trunButton.addActionListener(this);\r\n\t\tclearButton.addActionListener(this);\r\n\r\n\t\tdisplay.setBackground(Color.black);\r\n\t\tdisplay.setForeground(Color.white);\r\n\r\n\t\tsetTabsAndStyles(display);\r\n\t\tdisplay = addTextToTextPane();\r\n\t\t\tJScrollPane scrollPane = new JScrollPane(display);\r\n\t\t\t\tscrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\r\n\t\t\t\tscrollPane.setPreferredSize(new Dimension(500, 200));\r\n\t\tdisplayPanel.add(scrollPane);\r\n\r\n\t\t//create Container and set attributes\r\n\t\tContainer c = getContentPane();\r\n\t\t\tc.setLayout(new BorderLayout());\r\n\t\t\tc.add(inputsPanel, BorderLayout.NORTH);\r\n\t\t\tc.add(displayPanel, BorderLayout.CENTER);\r\n\r\n\t\treturn c;\r\n\t}", "public abstract void createContents(Panel mainPanel);", "private JPanel getJPanel()\n\t{\n\t\tif (jPanel == null)\n\t\t{\n\t\t\tjPanel = new JPanel();\n\t\t\tjPanel.setLayout(new BorderLayout());\n\t\t\tBorder bdr = BorderFactory.createTitledBorder(\"\");\n\t \tjPanel.setBorder(bdr);\n\t\t\tjPanel.add(getRPFilesPanel(), BorderLayout.CENTER);\n\t\t\tjPanel.add(getJPathPanel(), BorderLayout.NORTH);\n\t\t}\n\t\treturn jPanel;\n\t}", "private JPanel addPannelTopic(){\n\t\tJPanel panTopic = new JPanel();\n\t\tpanTopic.setPreferredSize(new Dimension(175, 75));\n\t\ttopicT = new JTextField();\n\t\ttopicT.setPreferredSize(new Dimension(100, 25));\n\t\tpanTopic.setBorder(BorderFactory.createTitledBorder(\"Topic\"));\n\t\ttopic = new JLabel(\"Put a topic :\");\n\t\tpanTopic.add(topic);\n\t\tpanTopic.add(topicT);\n\t\treturn panTopic;\n\t}", "public BoardPanel() {\n\t\t\tfinal Dimension size = new Dimension(600, 600);\n\t\t\tsetSize(size);\n\t\t\tsetPreferredSize(size);\n\t\t\t\n\t\t\taddMouseListener(new ClickHandler());\n\t\t}", "private static void createAndShowUI(){\n JFrame frame = new JFrame(\"TargetTest\");\n TargetTest test = new TargetTest();\n frame.setLayout(new FlowLayout());\n frame.getContentPane().add(test.getMainPanel());\n //frame.getContentPane().add(test.getControlsPanel());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n frame.pack();\n\n frame.setLocationRelativeTo(null);\n\n frame.setVisible(true);\n}", "public void createGui(){\n\t\twindow = this.getContentPane(); \n\t\twindow.setLayout(new FlowLayout());\n\n\t\t//\tAdd \"panel\" to be used for drawing \n\t\t_panel = new ResizableImagePanel();\n\t\tDimension d= new Dimension(1433,642);\n\t\t_panel.setPreferredSize(d);\t\t \n\t\twindow.add(_panel);\n\n\t\t// A menu-bar contains menus. A menu contains menu-items (or sub-Menu)\n\t\tJMenuBar menuBar; // the menu-bar\n\t\tJMenu menu; // each menu in the menu-bar\n\n\t\tmenuBar = new JMenuBar();\n\t\t// First Menu\n\t\tmenu = new JMenu(\"Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A); // alt short-cut key\n\t\tmenuBar.add(menu); // the menu-bar adds this menu\n\n\t\tmenuItem1 = new JMenuItem(\"Fruit\", KeyEvent.VK_F);\n\t\tmenu.add(menuItem1); // the menu adds this item\n\n\t\tmenuItem2 = new JMenuItem(\"Pacman\", KeyEvent.VK_S);\n\t\tmenu.add(menuItem2); // the menu adds this item\n\t\tmenuItem3 = new JMenuItem(\"Run\");\n\t\tmenu.add(menuItem3); // the menu adds this item \n\t\tmenuItem4 = new JMenuItem(\"Save Game\");\n\t\tmenu.add(menuItem4); // the menu adds this item\n\n\t\tmenuItem5 = new JMenuItem(\"Open Game\");\n\t\tmenu.add(menuItem5); // the menu adds this item\n\t\tmenuItem6 = new JMenuItem(\"Clear Game\");\n\t\tmenu.add(menuItem6); // the menu adds this item\n\t\tmenuItem1.addActionListener(this);\n\t\tmenuItem2.addActionListener(this);\n\t\tmenuItem3.addActionListener(this);\n\t\tmenuItem4.addActionListener(this);\n\t\tmenuItem5.addActionListener(this);\n\t\tmenuItem6.addActionListener(this);\n\n\t\tsetJMenuBar(menuBar); // \"this\" JFrame sets its menu-bar\n\t\t// panel (source) fires the MouseEvent.\n\t\t//\tpanel adds \"this\" object as a MouseEvent listener.\n\t\t_panel.addMouseListener(this);\n\t}", "public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}", "public ControlPanel(String propFile) {\n super(propFile);\n frame = new JFrame(\"Control Panel\");\n frame.setPreferredSize(new Dimension(900, 500));\n frame.setDefaultCloseOperation(frame.EXIT_ON_CLOSE);\n }", "public JPanel createPeoplePanel() {\n\t\t//setup\n\t\tJPanel panel = new JPanel();\n\t\tpanel.setLayout(new GridLayout(3, 2));\n\t\tpanel.setBorder(new TitledBorder(new EtchedBorder(), \"People\"));\n\t\tpanel.add(new JCheckBox(\"Miss Scarlet\"));\n\t\tpanel.add(new JCheckBox(\"Colonel Mustard\"));\n\t\tpanel.add(new JCheckBox(\"Mr. Green\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. White\"));\n\t\tpanel.add(new JCheckBox(\"Mrs. Peacock\"));\n\t\tpanel.add(new JCheckBox(\"Professor Plum\"));\n\t\treturn panel;\t\t\n\t}", "private JPanel makePanel(JFrame frame, String layout, String panelLabel,\r\n int x, int y, int width, int height) {\r\n //Create a panel\r\n JPanel panel = new JPanel();\r\n panel.setSize(width, height);\r\n frame.add(panel, layout);\r\n panel.setLayout(null);\r\n JLabel label = new JLabel(panelLabel);\r\n label.setBounds(x, y, width, height);\r\n label.setFont(new Font(\"Monaco\", Font.BOLD, 20));\r\n panel.add(label);\r\n return panel;\r\n }", "public UserInterfaceJFrame() {\n initComponents();\n jPanel1.add(new FeatureViewPanel());\n jPanel2.add(new DataVisualizationPanel());\n jPanel3.add(new DataParserPanel());\n }", "private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }", "protected JComponent makeTextPanel(String text)\n\t{\n\t\tJPanel panel = new JPanel(false);\n\t\tpanel.setBackground(new Color(55, 55, 55));\n\t\tpanel.setLayout(null);\n\t\treturn panel;\n\t}", "public kinpanel() {\n initComponents();\n }", "public static void createUI (JTextField fName, JTextField lName, JTextField vDesc, JTextField cLoc,\r\n JTextField dLoc, JTextField pNum, JPanel panel) {\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\r\n panel.setAlignmentX(Component.LEFT_ALIGNMENT);\r\n panel.add(new JLabel(\"First Name:\"));\r\n panel.add(fName);\r\n panel.add(Box.createHorizontalStrut(15)); // a spacer\r\n panel.add(new JLabel(\"Last Name:\"));\r\n panel.add(lName);\r\n panel.add(new JLabel(\"Vehicle Description:\"));\r\n panel.add(vDesc);\r\n panel.add(new JLabel(\"Pick Up Location\"));\r\n panel.add(cLoc);\r\n panel.add(new JLabel(\"Drop Off Location\"));\r\n panel.add(dLoc);\r\n panel.add(new JLabel(\"Phone Number\"));\r\n panel.add(pNum);\r\n }", "public void createAndShowGUI() {\n //Create and set up the window.\n JFrame frame = new JFrame(\"SimpleTableDemo\");\n frame.setTitle(titulo);\n frame.setLocationRelativeTo(null);\n frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n //Create and set up the content pane.\n SimpleTableDemo newContentPane = new SimpleTableDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(this);\n \n //Display the window.\n frame.pack();\n frame.setVisible(true);\n \n }", "final JPanel createMainPanel() {\r\n\r\n logger.entering(this.getClass().getName(), \"createMainPanel\");\r\n\r\n this.pnlMain = new JPanel();\r\n\r\n this.pnlMain.setLayout(new BorderLayout());\r\n\r\n this.pnlMain.add(new JLabel(\r\n \"Select the MicroSensorDataTypes that shall be filtered out\"),\r\n BorderLayout.NORTH);\r\n\r\n this.pnlMain.add(createCheckBoxPanel(), BorderLayout.CENTER);\r\n\r\n this.pnlMain.add(getButtonPanel(), BorderLayout.SOUTH);\r\n\r\n logger.exiting(this.getClass().getName(), \"createMainPanel\",\r\n this.pnlMain);\r\n\r\n return this.pnlMain;\r\n }", "private static void createAndShowGUI() {\n JFrame frame = new JFrame(\"Combo box editabel\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //2. kreirati kontrole i pobacati kako nam kaže neki manager LayoutManager\n JComponent comboBoxPanel = new ComboBoxPanel2();\n comboBoxPanel.setOpaque(true);\n frame.setContentPane(comboBoxPanel);\n\n //3. prikazati prozor\n frame.pack();\n frame.setVisible(true);\n }", "public void createUI() {\r\n\t\ttry {\r\n\t\t\tJPanel centerPanel = this.createCenterPane();\r\n\t\t\tJPanel westPanel = this.createWestPanel();\r\n\t\t\tm_XONContentPane.add(westPanel, BorderLayout.WEST);\r\n\t\t\tm_XONContentPane.add(centerPanel, BorderLayout.CENTER);\r\n\t\t\tm_XONContentPane.revalidate();\r\n\t\t} catch (Exception ex) {\r\n\t\t\tRGPTLogger.logToFile(\"Exception at createUI \", ex);\r\n\t\t}\r\n\t}", "public void dibujar(JPanel panel);", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, 120dlu:grow\", // cols //$NON-NLS-1$\n\t\t\t\t\"p, 3dlu,p,3dlu,p\"); // rows //$NON-NLS-1$\n\n\t\t// Create a builder that assists in adding components to the container.\n\t\t// Wrap the panel with a standardized border.\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tbuilder.append(Messages.getString(\"RenameDialog.CurrentName\"), oldName); //$NON-NLS-1$\n\t\tbuilder.nextLine(2);\n\t\tbuilder.append(Messages.getString(\"RenameDialog.NewName\"), newName); //$NON-NLS-1$\n\t\treturn builder.getPanel();\n\t}", "private JPanel getJContentPane() {\r\n\t\tif (jContentPane == null) {\r\n\t\t\tjContentPane = new JPanel();\r\n\t\t\tjContentPane.setLayout(null);\r\n\r\n\t\t\tJTabbedPane mainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\t\tmainTabbedPane.setBounds(10, 29, 606, 331);\r\n\t\t\tjContentPane.add(mainTabbedPane);\r\n\t\t\tmainTabbedPane.addTab(\"Verify\", null, getVerifyPanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Add/Capture\", null, getCapturePanel(), null);\r\n\t\t\tmainTabbedPane.addTab(\"Train\", null, getTrainPanel(), null);\r\n\t\t\t// mainTabbedPane.addTab(\"Train Data Editor\", null,\r\n\t\t\t// getTrainTestDataEditorPanel(), null);\r\n\t\t\tjContentPane.add(getStatusLabel());\r\n\t\t\tjContentPane.add(getAboutLabel());\r\n\r\n\t\t\tJLabel lblMouseGestureRecognition = new JLabel(\"Mouse Gesture Recognition\");\r\n\t\t\tlblMouseGestureRecognition.setFont(new Font(\"Arial\", Font.BOLD, 15));\r\n\t\t\tlblMouseGestureRecognition.setBounds(410, 11, 206, 27);\r\n\t\t\tjContentPane.add(lblMouseGestureRecognition);\r\n\t\t}\r\n\t\treturn jContentPane;\r\n\t}", "public Panel()\n/* */ {\n/* 56 */ this(new FlowLayout());\n/* */ }", "public LoginJPanel() {\n initComponents();\n }", "public JPanel createSouthPanel() {\n\t\tsouth = new JPanel(new GridLayout(1, 1));\n\t\t// adds start button and its functionality\n\t\tstartGame();\n\t\treturn south;\n\t}", "public LocalPanel() {\r\n\t\tinitComponents();\r\n\t}", "public JComponent createContentPanel() {\n\t\t// Separating the component initialization and configuration\n\t\t// from the layout code makes both parts easier to read.\n\t\tinitControls();\n\t\t//TODO set minimum size\n\t\tFormLayout layout = new FormLayout(\"default, 3dlu, default\", // cols\n\t\t\t\t\"p, 3dlu,p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu\"); // rows\n\t\tDefaultFormBuilder builder = new DefaultFormBuilder(layout);\n\t\tbuilder.setDefaultDialogBorder();\n\t\tCellConstraints cc = new CellConstraints();\n\t\t\n\t\tIterator l=labels.iterator();\n\t\tIterator c=valueComponents.iterator();\n\t\twhile (l.hasNext()){\n\t\t String name=(String)l.next();\n\t\t JComponent comp=(JComponent)c.next();\n\t\t builder.append(name,comp);\n\t\t builder.nextLine(2);\n\t\t}\n\t\treturn builder.getPanel();\n\t}", "private JPanel getJPanel(String s) {\n if (jPanel == null) {\n final GridBagConstraints gridBagConstraints1 = new GridBagConstraints();\n gridBagConstraints1.gridx = 0; // Generated\n gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH; // Generated\n gridBagConstraints1.gridy = 1; // Generated\n final GridBagConstraints gridBagConstraints = new GridBagConstraints();\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH; // Generated\n gridBagConstraints.gridy = 0; // Generated\n gridBagConstraints.weightx = 1.0; // Generated\n gridBagConstraints.weighty = 1.0; // Generated\n gridBagConstraints.insets = new java.awt.Insets(4, 4, 4, 4); // Generated\n gridBagConstraints.gridx = 0; // Generated\n jPanel = new JPanel();\n jPanel.setLayout(new GridBagLayout()); // Generated\n jPanel.add(getJScrollPane(s), gridBagConstraints); // Generated\n jPanel.add(getButtonPanel(), gridBagConstraints1);\n }\n return jPanel;\n }", "private JPanel criarPainelCentro() {\n\n JPanel painelCentro = new JPanel(new BorderLayout());\n\n this.lblLista = new JLabel(\"\", JLabel.LEFT);\n painelCentro.add(this.lblLista);\n\n this.jListAtores = new JList();\n this.jListAtores.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n this.jListAtores.addListSelectionListener(new ListSelectionListener() {\n\n @Override\n public void valueChanged(ListSelectionEvent e) {\n\n if (jListAtores.getSelectedIndex() >= 0) {\n btnUC4.setEnabled((btnFae.isSelected()));\n btnUC3.setEnabled((btnOrg.isSelected()));\n btnUC5.setEnabled((btnRep.isSelected()));\n } else {\n btnUC4.setEnabled(false);\n btnUC3.setEnabled(false);\n btnUC5.setEnabled(false);\n }\n }\n });\n\n JPanel painelScroll = new JPanel(new GridLayout());\n JScrollPane jScroll = new JScrollPane(this.jListAtores);\n painelScroll.add(jScroll);\n\n painelCentro.add(painelScroll, BorderLayout.SOUTH);\n\n painelCentro.setBorder(PADDING_BORDER);\n\n return painelCentro;\n }", "private void addComponents() {\n //this.getContentPane().add(new ViewDeckComputer(), BorderLayout.NORTH);\n createTopPanel();\n createCentralPanel();\n createBottomPanel();\n }", "private void setUpPanel() {\n this.panel = new JPanel();\n functions = new JPanel();\n panel.setPreferredSize(new Dimension(Screen.screenWidth, Screen.screenHeight));\n\n int borderBottom = Screen.screenHeight / 8;\n if (Screen.screenHeight > 1400) {\n borderBottom = Screen.screenHeight / 7;\n }\n\n panel.setBorder(BorderFactory.createEmptyBorder(80, Screen.border, borderBottom, Screen.border));\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n functions.setPreferredSize(new Dimension(600, 500));\n functions.setLayout(cardLayout);\n }", "public InfoPanel()\n\t\t{\n\t\t\t//setting color and instantiating textfield and button\n\t\t\tsetBackground(bCol);\n\t\t\tnameJF = new JTextField(\"Type Your Name\", 20);\n\t\t\tFont naFont = new Font(\"Serif\", Font.PLAIN, 25);\n\t\t\tnameJF.setFont(naFont);\n\t\t\tsub = new JButton(\"Submit\");\n\t\t\tsub.addActionListener(this);\n\t\t\tsub.setFont(naFont);\n\t\t\tname = new String(\"\");\n\t\t\tadd(nameJF);\n\t\t\tadd(sub);\n\t\t}", "private void setupPanel()\n\t{\n\t\tthis.setLayout(baseLayout);\n\t\tqueryButton = new JButton(\"query\");\n\t\tthis.add(queryButton);\n\t\tthis.add(displayPane);\n\t\tdisplayArea = new JTextArea(10,30);\n\t\tadd(displayArea);\n\t\t\n\t\t\n\t}", "private JPanel createPanelKeywordt() {\n\n JPanel panel2 = new JPanel(new BorderLayout());\n panel2.setBorder(PADDING_BORDER);\n\n JPanel panelButton = new JPanel(new FlowLayout(FlowLayout.CENTER));\n panelButton.add(createButtonAddKeyword());\n\n panel2.add(createScrollPaneKeyWords(), BorderLayout.NORTH);\n panel2.add(panelButton, BorderLayout.CENTER);\n panel2.add(createConfirmButtonsPanel(), BorderLayout.SOUTH);\n return panel2;\n }", "private void setUpPanel() { \n this.setPreferredSize(new Dimension(myWidth, myHeight)); \n // Set this panel as a grid panel with 1 column, 6 rows. \n this.setLayout(new GridLayout(NUM_ROWS, 1)); \n // Create the next piece panel.\n this.myNextPiece = new TetrisNextPiecePanel();\n this.add(myNextPiece); \n // Add another panel which will show game instruction.\n final HowToPlayPanel instructionsPanel = new HowToPlayPanel();\n this.add(instructionsPanel);\n // add the last panel which will show the scores, level, game state etc.\n this.setUpLastPanel();\n }", "private JPanel buildNorthPanel() {\n\t\t\n\t\tGridBagLayout layout;\n\t\tGridBagConstraints constraints;\n\t\tJPanel panel;\n\t\tint row, col;\n\t\t\n\t\tlayout = new GridBagLayout();\n\t\tconstraints = new GridBagConstraints();\n\t\tpanel = new JPanel(layout);\n\t\trow = 0;\n\t\tcol = 0;\n\t\tJLabel headerLabel = new JLabel(stringFactory.getString(\n\t\t\t\tLabelStringFactory.SAVEASCONFIG_FRAME_SAVE_NEW_CONFIGURATION));\n\t\theaderLabel.setFont(new Font(\"arial\", Font.PLAIN, 18));\n\t\tGUIUtils.add(panel, headerLabel, layout, constraints, row++, col, \n\t\t\t1, 1, 1, 1, GridBagConstraints.NORTHEAST, GridBagConstraints.BOTH,\n\t\t\tGUIUtils.MED_LARGE_INSETS);\n\t\treturn panel;\n\t}", "public JPanelCreateClient() {\r\n\t\tsuper(new BorderLayout());\r\n\t\tthis.title = new CustomLabel(ConstantView.TITLE_CREATE_CLIENT, null, Color.decode(\"#2E5569\"));\r\n\t\tthis.okButton = new JButton(\"REGISTRAR CLIENTE\");\r\n\t\tthis.returnButton = new JButton(ConstantView.BUTTON_RETURN_SIGNIN);\r\n\t\tthis.jPanelFormClient = new JPanelFormClient();\r\n\t\tControlClient.getInstance().setjPanelCreateClient(this);\r\n\t\tthis.init();\r\n\t}", "private static void createAndShowGUI() {\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"ButtonDemo\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n //Create and set up the content pane.\n ButtonDemo newContentPane = new ButtonDemo();\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }" ]
[ "0.7941363", "0.72974735", "0.72772", "0.7234879", "0.7234879", "0.72125053", "0.7155671", "0.713512", "0.7125593", "0.70264983", "0.7024754", "0.6971635", "0.6960435", "0.6944277", "0.69222516", "0.69146377", "0.6907122", "0.6893973", "0.6886223", "0.6886048", "0.68234", "0.6817822", "0.68112016", "0.67983884", "0.6791767", "0.67867607", "0.67556816", "0.67520285", "0.6738203", "0.6728037", "0.67237175", "0.67068696", "0.6699901", "0.6698903", "0.667093", "0.6647452", "0.6633602", "0.6632283", "0.6624038", "0.6622539", "0.66199905", "0.6613281", "0.66028124", "0.66011417", "0.6601037", "0.6574029", "0.65621704", "0.65597796", "0.6558395", "0.6556501", "0.6554961", "0.65501595", "0.6544325", "0.65382946", "0.6538238", "0.65351987", "0.65231615", "0.6516977", "0.6511087", "0.65029836", "0.6499284", "0.6491143", "0.6485145", "0.6484046", "0.64794356", "0.64734244", "0.6469521", "0.64691156", "0.6464308", "0.6461481", "0.6459138", "0.645009", "0.6440625", "0.6434435", "0.64336616", "0.64323914", "0.64313245", "0.6429294", "0.64286005", "0.6426082", "0.64214313", "0.64196503", "0.641699", "0.6412343", "0.64089555", "0.64053607", "0.6404939", "0.6402871", "0.63946825", "0.63937324", "0.6390251", "0.6386908", "0.638454", "0.6383899", "0.63762516", "0.6374854", "0.63698477", "0.6369074", "0.63689137", "0.63621837", "0.63621324" ]
0.0
-1
function that finds the maximum run of a string. initializing variables
public static int MaxRun(String userInput){ int maxRun = 1; int currentRun = 0; char lastLetter = userInput.charAt( 0 ); for (int count = 0; count < userInput.length(); count++){ //loop that loops until each character in string is done. if (lastLetter == userInput.charAt(count)){ //adds one more number to the current run. currentRun++; //System.out.println("current run: " + currentRun); if (currentRun > maxRun){ //if the current count is higher than the max, it's the new max. maxRun = currentRun; } } else { //if the last letter was different than this one, reset currentRun to 1. currentRun = 1; } //makes the current letter the new last letter before re-looping. lastLetter = userInput.charAt(count); } return maxRun; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int maxRun(String str) {\n\t\tif(str.length() == 0) return 0;\n\t\tint max = 1, curLen = 1;\n\t\tchar lastChar = str.charAt(0);\n\t\tfor(int i = 1; i < str.length(); i++){\n\t\t\tif(str.charAt(i) == lastChar) {\n\t\t\t\tcurLen++;\n\t\t\t} else {\n\t\t\t\tlastChar = str.charAt(i);\n\t\t\t\tcurLen = 1;\n\t\t\t}\n\t\t\tif (curLen > max) max = curLen;\n\t\t}\n\t\treturn max;\n\t}", "public static int maxRun(String str) {\n\t\tif (str.length()==0) return 0;\n\t\tint max = 1;\n\t\tint currcount = 1;\n\t\tfor (int i=0; i < str.length()-1; i++){\n\t\t\tif (str.charAt(i)==str.charAt(i+1)){\n\t\t\t\tcurrcount++;\n\t\t\t\tif (currcount > max) max = currcount;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcurrcount = 1;\n\t\t\t}\n\t\t}\n\t\treturn max; // TODO ADD YOUR CODE HERE\n\t}", "public int lengthOfLongestSubstring(String s) {\n if(s == null || s.length() == 0){\n return 0;\n }\n int runner = 0;\n int walker = 0;\n int max = 0;\n HashSet<Character> set = new HashSet<Character>();\n while(runner < s.length()){\n if(set.contains(s.charAt(runner))){\n if(max < runner - walker){\n max = runner - walker;\n }\n while(s.charAt(walker) != s.charAt(runner)){\n set.remove(s.charAt(walker));\n walker++;\n }\n walker++;\n }else{\n set.add(s.charAt(runner));\n }\n runner++;\n }\n max = Math.max(max, runner - walker);\n return max;\n }", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "public static void main(String args[]){\n String s=\"abcabcbb\";\n String s1=\"bbbbb\";\n String s2=\"pwwkew\";\n System.out.println(solution(s));\n System.out.println(solution(s1));\n System.out.println(solution(s2));\n System.out.println(maxNonrepeatingstring(s));\n System.out.println(maxNonrepeatingstring(s1));\n System.out.println(maxNonrepeatingstring(s2));\n }", "public int lengthOfLongestSubstring(String s) {\n\t\tint max=0;\n\t\tif (s == null )\n\t\t\treturn max;\n\n\t\tchar[] aChars = s.toCharArray();\n\t\tSet<Character> set=new HashSet<Character>();\n\t\tString slidingWindow =\"\";\n\t\tfor (int i = 0; i < aChars.length; i++) {\n\t\t\tset.add(aChars[i]);\n\t\t\tfor(int j=i+1;j<=aChars.length;j++) {\n\t\t\t\tslidingWindow = s.substring(i,j);\n\t\t\t\tif(j==aChars.length || set.contains(aChars[j])) {\n\t\t\t\t\tmax = max>slidingWindow.length()?max:slidingWindow.length();\n\t\t\t\t\tset.clear();\n\t\t\t\t\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\tset.add(aChars[j]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\n\t}", "private int find(String input) {\n int maxSubsequent = 0;\n int currentSubsequent = 1;\n\n String[] inputArray = input.split(\" \");\n List<Integer> numbers = new ArrayList<Integer>();\n\n for (String s : inputArray) {\n numbers.add(Integer.parseInt(s));\n }\n\n for (int i = 0; i < numbers.size() - 1; i++) {\n if (Math.abs((numbers.get(i + 1) - numbers.get(i))) == DIFFERENCE) {\n currentSubsequent++;\n } else {\n maxSubsequent = (currentSubsequent > maxSubsequent) ? currentSubsequent : maxSubsequent;\n currentSubsequent = 1;\n }\n }\n\n maxSubsequent = (currentSubsequent > maxSubsequent) ? currentSubsequent : maxSubsequent;\n\n return maxSubsequent;\n }", "public String solve1(String s) {\n Map<String, Integer> frequency = new HashMap<>();\n String maxWord = null;\n String[] split = s.split(\" \");\n\n for (String word : split) {\n int newFrequency = frequency.getOrDefault(word, 0) + 1;\n frequency.put(word, newFrequency);\n if (newFrequency > frequency.getOrDefault(maxWord, 0)) {\n maxWord = word;\n }\n }\n\n return maxWord;\n }", "public static void main(String[] args) {\n // TODO Auto-generated method stub\n String test = \"abcabcbb\";\n int result = LongestSubStringWithoutRepeatingCharacters.solution(test);\n System.out.println(result);\n }", "public static void main(String[] args) {\n String str = \"bbaabdd\";\n System.out.println(maximumChar( str ));\n\n }", "public static int lengthOfLongestSubstring(String s) {\n int[] dp=new int[256];\n for(int i=0;i<dp.length;i++){\n dp[i]=-1;\n }\n int start=0,result=0;\n for(int i=0;i<s.length();i++){\n start=Math.max(dp[s.charAt(i)]+1,start);\n dp[s.charAt(i)]=i;\n result=Math.max(result,i-start+1);\n }\n return result;\n }", "public int lengthOfLongestSubstring(String s) {\n if(s.length()<=1) return s.length();\n HashMap<Character,Integer> h=new HashMap<Character,Integer>();\n int curmax=0,max=0;\n for(int i=0;i<s.length();i++) {\n char c=s.charAt(i);\n if(h.containsKey(c)) { \n if(i-h.get(c)<curmax) { // previous is in the middle of curmax, then restart from the previous next char\n curmax=1; // otherwise previous is the start of curmax, then simply replace current with previous\n i=h.get(c)+1; \n c=s.charAt(i);\n h.clear();\n }\n }\n else {\n curmax++;\n }\n h.put(c,i);\n max=curmax>max?curmax:max;\n }\n return max;\n }", "private static int getLongestSemiAlternatingSubString(String s) {\n int max = 0, count = 1, len = s.length(), p1 = 0;\n for (int p2 = 1; p2 < len; p2++) {\n if (s.charAt(p2 - 1) == s.charAt(p2)) {\n count++;\n } else {\n count = 1;\n }\n if (count < 3) {\n max = Math.max(max, p2 - p1 + 1);\n } else {\n p1 = p2 - 1;\n count = 2;\n }\n }\n return max;\n }", "public int longestRod ();", "String getMax_res();", "public abstract String getLongestRepeatedSubstring();", "public static void main(String[] args) {\n String str = \"aabacbebebe\";\n int k = 3;\n\n int maxLength = getMaxSubstr(str, k);\n System.out.println(maxLength);\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tString str=sc.next();\r\n\t\tSystem.out.println(findMaxLen(str));\r\n\t\tsc.close();\r\n\t}", "static int computeTheLongestSubstringWithMatchingParens(String string) {\n Deque<Integer> stack = new ArrayDeque<>();\n\n int length = 0;\n int endIndex = -1;\n\n for (int i = 0; i < string.length(); i++) {\n if (string.charAt(i) == '(') stack.push(i);\n else {\n if (stack.isEmpty()) {\n endIndex = i;\n } else {\n stack.pop();\n\n int start = stack.isEmpty() ? endIndex : stack.peek();\n length = Math.max(length, i - start);\n }\n }\n }\n\n return length;\n }", "public int lengthOfLongestSubstring(String s) {\n int len = s.length();\n HashMap map = new HashMap();\n int i = 0;\n for(; i<len; i++) {\n char c = s.charAt(i);\n // System.out.println(c);\n if (map.containsKey(c)) {\n return Math.max(i, lengthOfLongestSubstring(s.substring((int)map.get(c)+1, len)));\n }\n else {\n map.put(c, i);\n }\n }\n return i;\n }", "public int lengthOfLongestSubstring(String s) {\n\t\tint n = s.length();\n\t\tint ans = 0;\n\t\tMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tfor (int i = 0, j = 0; j < n; j++) {\n\t\t\tif (map.containsKey(s.charAt(j))) {\n\t\t\t\ti = Math.max(map.get(s.charAt(j)), i);\n\t\t\t}\n\t\t\tans = Math.max(ans, j - i + 1);\n\t\t\tmap.put(s.charAt(j), j + 1);\n\t\t}\n\t\treturn ans;\n\n\t}", "public static void main(String[] args){\n String s = \"()()()\";\n System.out.println(find_max_length_of_matching_parentheses(s));\n }", "public int lengthOfLongestSubstring(String s) {\n\t\tif (s == null || s.length() == 0) {\n\t\t\treturn 0;\n\t\t}\n\n\t\tint slow = 0, fast = 0;\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tint maxLen = 0;\n\t\tint start = 0, end = 0;\n\t\twhile (fast < s.length()) {\n\t\t\tchar cur = s.charAt(fast);\n\t\t\tif (!map.containsKey(cur)) {\n\t\t\t\tmap.put(cur, 1);\n\t\t\t} else {\n\t\t\t\tmap.put(cur, map.get(cur) + 1);\n\t\t\t}\n\n\t\t\twhile (map.get(cur) > 1 && slow <= fast) {\n\t\t\t\tchar slow_char = s.charAt(slow);\n\t\t\t\tmap.put(slow_char, map.get(slow_char) - 1);\n\t\t\t\tslow++;\n\t\t\t}\n\t\t\tif (maxLen < fast - slow + 1) {\n\t\t\t\tmaxLen = fast - slow + 1;\n\t\t\t\tstart = slow;\n\t\t\t\tend = fast;\n\t\t\t}\n\t\t\tfast++;\n\t\t}\n\n\t\t// System.out.println(\"maxLen = \" + maxLen);\n\t\t// System.out.println(s.substring(start, end + 1));\n\t\treturn maxLen;\n\t}", "private static int longestString(List<String> arr) {\n\t\tList<String> ll=new ArrayList();\r\n\t\tlongestString(arr,0,\"\",ll);\r\n\t\tint max=0;\r\n\t\tfor(String a:ll) {\r\n\t\t\tint len=a.length();\r\n\t\t\tif(len>max) {\r\n\t\t\t\tmax=len;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public int lengthOfLongestSubstring2(String s) {\n int n = s.length(), ans = 0;\n int[] index = new int[128]; // current index of character\n // try to extend the range [i, j]\n for (int j = 0, i = 0; j < n; j++) {\n i = Math.max(index[s.charAt(j)], i);\n ans = Math.max(ans, j - i + 1);\n index[s.charAt(j)] = j + 1;\n }\n return ans;\n }", "public String longestPalindrome(String s) {\n // string to hold the current max\n String max = \"\";\n // deal with edge cases where it is either empty or one letter\n if(s.length() < 2){\n return s;\n }\n // go through each possible string\n for(int i = 0; i < s.length(); ++i){\n \n for(int j = i + 1; j <= s.length(); ++j){\n // if the reversed substring is equal, its a palindrome \n if(s.substring(i,j).equals(reverse(s.substring(i,j)))){\n // if it is greater than the current max's length, it is the new max\n if(s.substring(i,j).length() > max.length() ){\n max = s.substring(i,j);\n }\n }\n }\n }\n // give them back the max\n return max;\n }", "public static void main(String[] args) {\n String str = \"pwwkew\";\n// System.out.println(str.length());\n System.out.println(lengthOfLongestSubstring(str));\n\n\n }", "public int lengthOfLongestSubstring(String s) {\n if(s.length() == 0) return 0;\r\n \r\n int windowEnd = 0;\r\n int windowStart = 0;\r\n int maxLen = 0;\r\n \r\n \r\n HashMap<Character, Integer> hm = new HashMap<>();\r\n \r\n for(windowEnd = 0;windowEnd < s.length(); windowEnd++){\r\n \r\n char ch = s.charAt(windowEnd);\r\n \r\n if(hm.containsKey(ch)){\r\n windowStart = Math.max(windowStart , hm.get(ch)+1);\r\n }\r\n \r\n hm.put(ch,windowEnd);\r\n maxLen = Math.max(maxLen, windowEnd-windowStart+1);\r\n }\r\n \r\n return maxLen; \r\n }", "public static void main(String[] args) {\n\t\tString s = \"9999\"; int k =2 ;\n\t\tSystem.out.println(findMaxSegment(s, k));\n\n\t}", "public static void main(String[] args) {\n String str = \"geeksforgeeks\";\n System.out.println(longestRepeatedSubstring(str));\n String str1 = \"aaaaaaabbbbbaaa \";\n System.out.println(longestRepeatedSubstring(str1));\n }", "public int lengthOfLSS(String s){\n HashMap<Character, Integer> m = new HashMap<>();\n int ans = 0;\n \n for(int i=0, j=0; j<s.length(); j++){\n if(m.containsKey(s.charAt(j))){\n i = Math.max(m.get(s.charAt(j)),i);\n }\n ans = Math.max(j-i+1,ans);\n m.put(s.charAt(j),j+1);\n }\n\n return ans;\n }", "public void maxSubString(String subString){\n String word = subString;//abc, bca, cab, abcd, bcd,cd,d\n Map<Character,Integer> testMap=new HashMap<>();\n testMap.clear();\n char [] cw=word.toCharArray();\n Map<String,Integer> stringMap=new HashMap<>();\n stringMap.clear();\n\n for(int i=0;i<word.length();i++){\n String addedStrings=\"\";\n for(int j=i;j<word.length();j++) {\n Character ch = cw[j];\n if (!testMap.containsKey(ch)) {\n testMap.put(ch, 1);\n addedStrings =addedStrings+String.valueOf(ch);\n if(j==word.length()-1){\n stringMap.put(addedStrings,addedStrings.length());\n testMap.clear();\n }\n } else {\n stringMap.put(addedStrings,addedStrings.length());\n testMap.clear();\n break;\n }\n }\n }\n Integer maxString=Collections.max(stringMap.values());\n System.out.println(\"MAX STRING---------------\"+maxString);\n for(Map.Entry<String,Integer> collectedString: stringMap.entrySet()){\n if(maxString==collectedString.getValue()){\n System.out.println(collectedString.getKey());\n System.out.println(\"********************************\");\n System.out.println(collectedString.getValue());\n }\n }\n }", "public static void main(String [] args){\n System.out.println(lengthOfLongestSubstring(\"1a1b1c1d1\"));\n System.out.println(lengthOfLongestSubstring1(\"1a1b1c1d1\"));\n\n System.out.println(17/10);\n }", "public int lengthOfLongestSubstring2(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n int start=0;\n int max = 0;\n int[] map = new int[256];\n\n for (int i = 0; i < s.length(); i++) {\n int c = (int)s.charAt(i);\n start = Math.max(map[c], start);\n map[c] = i + 1;\n max = Math.max(max, i + 1 - start);\n }\n\n return max;\n }", "private static void longestRepeatingSubsequence(String string) {\n\t\t\n\t}", "public static void main(String[] args) {\n String s = \"Human brain is a biological learning machine\";\n String [] word = s.split(\" \");\n String maxlethWord = \"\";\n for(int i = 0; i < word.length; i++){\n if(word[i].length() >= maxlethWord.length()){\n maxlethWord = word[i];\n }\n }\n System.out.println(\"The length and longest word : \"+maxlethWord);\n\n }", "public int lengthOfLongestSubstring(String s) {\n HashMap<Character, Integer> hm = new HashMap<Character, Integer>();\n int counter = 0;\n int max = 0;\n char[] charArray = s.toCharArray();\n for (int i = 0; i < charArray.length; i++) {\n if (!hm.containsKey(charArray[i])) {\n hm.put(charArray[i], i);\n counter++;\n } else {\n max = (max > counter) ? max : counter;\n int index = hm.get(charArray[i]);\n for (int j = 0; j <= index; j++)\n hm.remove(charArray[j]);\n hm.put(charArray[i], i);\n counter = hm.size();\n }\n }\n max = (max > counter) ? max : counter;\n return max;\n }", "public static int longestStreak(String str) {\n\n\t\tint longest = 0;\n\t\tfor(int i = 0; i<str.length(); i++){\n\t\t\tint temp = 0;\n\t\t\tfor(int j = i; j<str.length(); j++){\n\t\t\t\tif(str.charAt(i)==str.charAt(j)) {\n\t\t\t\t\ttemp++;\n\t\t\t\t}else\n\t\t\t\t\tbreak;\n\t\t\t} if(temp>longest) longest = temp;\n\t\t}\n\n\n\n\t\treturn longest;\n\t}", "public int lengthOfLongestSubstring(String s) {\n HashMap<Character, Integer> charsVisit = new HashMap();\n int result = 0;\n int longest = 0;\n\n for (int i = 0; i < s.length(); i++) {\n\n if (charsVisit.containsKey(s.charAt(i))) {\n\n /* Start at repeat character to see if that is where the longest substring starts */\n i = charsVisit.get(s.charAt(i));\n\n charsVisit.clear(); // Clear hash map.\n result = 0;\n\n } else {\n result++;\n\n /* KEY/VALUE = char/index */\n charsVisit.put(s.charAt(i), i);\n }\n\n if (longest < result)\n longest = result;\n }\n return longest;\n }", "public static int getMaxSubstr(String str, int k) {\n int[] freqArr = new int[256];\n int uniqCount = 0;\n\n int cStart = 0;\n int cEnd = 0;\n\n int resStart = -1;\n int resLen = -1;\n\n for(int i = 0; i < str.length(); i++) {\n int ch = str.charAt(i);\n\n if(freqArr[ch] == 0) {\n uniqCount++;\n }\n\n freqArr[ch]++;\n cEnd++;\n\n while(uniqCount > k) {\n cStart++;\n int c = str.charAt(cStart);\n\n if(freqArr[c] == 1) {\n uniqCount--;\n }\n\n freqArr[c]--;\n }\n\n\n if(uniqCount == k && (cEnd - cStart > resLen) ) {\n resLen = cEnd - cStart;\n resStart = cStart;\n }\n\n }\n\n //print \"resLen\" characters starting from \"resStart\"\n for(int i = resStart; i < resStart + resLen; i++) {\n System.out.print(str.charAt(i));\n }\n\n\n //returning the length\n return resLen;\n }", "@Test\n\tpublic void eg1() {\n\t\tString s=\"babad\";\n\t\tSystem.out.println(longestPalindromicSubString(s));\n\t\t\n\t}", "public static void main(String[] args) {\n\r\n\t\tFind_String f1;\r\n\t\tf1 = new Find_String();\r\n\t\tint p = f1.Max_Length(\"The cow jumped over the moon\");\r\n\t System.out.println(p);\r\n\t String ss = f1.Word_with_max_length(\"The cow jumped over the moon\");\r\n\t System.out.println(ss);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tString s = \"10000\";\r\n\t\tSystem.out.println(maxScoreSplit(s));\r\n\t}", "public static void main(String[] args) {\n\t\tint n = 10;\r\n\t\tScanner sc = new Scanner(System.in);\t\t\r\n\t\t//String max = \"\", min = \"\", str = \"\";\t\t\r\n\t\tString str = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < n; i++) {\r\n\t\t str = GetString(sc, i);\r\n\t\t if (i == 0) {\r\n\t\t min = str;\r\n\t\t }\r\n\t\t if (IsStringLonger(str, max.length())) {\r\n\t\t max = str;\r\n\t\t } else \r\n\t\t if (IsStringLess(str, min.length())) {\r\n\t\t min = str;\r\n\t\t }\r\n\t\t};\r\n\t\tSystem.out.println(\"max string = \" + max + \" length=\" + max.length());\r\n\t\tSystem.out.println(\"min string = \" + min + \" length=\" + min.length());\r\n\t\tSystem.out.println(\" MinMaxString() finished\");\r\n\t}", "private static String getMaxString(String str) {\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tif (stripColors(str.substring(0, i)).length() == maxLength) {\n\t\t\t\tif (stripColors(str.substring(i, i+1)) == \"\")\n\t\t\t\t\treturn str.substring(0, i-1);\n\t\t\t\telse\n\t\t\t\t\treturn str.substring(0, i);\n\t\t\t}\n\t\t}\n\t\treturn str;\n\t}", "public int longestValidParentheses(String s) {\n \tint a[] = new int[s.length()];\n \tint last = -1;\n \tint max = 0;\n \tfor(int i = 0 ; i < s.length() ; i++){\n \t\tif(s.charAt(i) == '('){\n \t\t\ta[i] = last;\n \t\t\tlast = i;\n \t\t}\n \t\telse{\n \t\t\ta[i] = last;\n \t\t\tif(last != -1){\n \t\t\t\tint len = i - last + 1;\n \t\t\t\tint temp = last - 1;\n \t\t\t\twhile(temp >= 0 && s.charAt(temp) == ')' && a[temp] >=0){\n \t\t\t\t\tlen += temp - a[temp] + 1;\n \t\t\t\t\ttemp = a[temp]-1;\n \t\t\t\t}\n \t\t\t\tif(len> max){ \t\t\t\t\t\n \t\t\t\t\tmax = len;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(last >= 0)\n \t\t\t\tlast = a[last];\n \t\t\telse\n \t\t\t\tlast = -1;\n \t\t}\n \t}\n\n \treturn max;\n }", "public static int findLength(String str) {\n flushMap();\n if (str==null || str.isEmpty()) return -1;\n int x = 0;\n int count = 0;\n int maxCount = 0;\n while (x<str.length()) {\n char letter = str.charAt(x);\n if (!isRepeating(letter)) count++;\n else {\n flushMap();\n maxCount = Math.max(maxCount, count);\n x--;\n count = 0;\n }\n x++;\n }\n return Math.max(maxCount, count);\n }", "public static void main(String[] args) {\n\t\tString input = \"Genetics 012345678933 undergo or cause recombination; form new combinations\";\n\t\tString result = getMaxLength(input);\n\t\tSystem.out.println(result);\n\t}", "public int longestValidParenthesesBrute(String s) {\n Stack<Integer> stack = new Stack<>();\n stack.push(-2);\n\n for (int i = 0; i < s.length(); i++) {\n if (s.charAt(i) == '(') {\n stack.push(-1);\n } else if (s.charAt(i) == ')') {\n int count = 0;\n while (true) {\n int len = stack.pop();\n if (len == -1) {\n count += 2;\n stack.push(count);\n break;\n } else if (len == -2) {\n stack.push(-2);\n if (count > 0) {\n stack.push(count);\n stack.push(-2);\n } else {\n stack.push(-2);\n }\n break;\n } else {\n count += len;\n }\n }\n }\n }\n int maxLength = 0;\n int count = 0;\n while (!stack.empty()) {\n int len = stack.pop();\n if (len == -2 || len == -1) {\n maxLength = Math.max(maxLength, count);\n count = 0;\n } else {\n count += len;\n }\n }\n\n return Math.max(maxLength, count);\n }", "public static void main(String args[]) {\n\t\tString str = \"abcd\";\n\t\tint leftmostRepeat = leftmostRepeat(str);\n\t\tSystem.out.println(leftmostRepeat);\n\t\t\n\t}", "public static String findMaxSubStringAlpha(String str) {\n if (!str.equals(\"\")) {\n\n // Loop to find the maximum alphabetical substring in\n // the substring array \n String s = \"\"; \n for (int i = 0; i < str.length(); ++i) { \n // Using the compareTo method to compare each substring in array\n // source : https://docs.oracle.com/javase/8/docs/api/java/lang/Comparable.html\n if (s.compareTo(str.substring(i)) <= 0) { \n s = str.substring(i); \n // See how we get there\n System.out.println(\"The string is: \" + s);\n } \n } \n\n return s; \n } else {\n throw new IllegalArgumentException(\"Please input a valid string.\");\n }\n }", "int max_cut_2(String s)\n {\n\n if(s==null || s.length()<2)\n {\n return 0;\n }\n int n = s.length();\n boolean[][] dp = new boolean[n][n];\n int[] cut = new int[n];\n for(int i = n-1;i>=0;i++) {\n\n //i represents the 左大段和右小段的左边界\n //j represents the 右小段的右边界\n cut[i] = n - 1 - i;\n\n for (int j = i; j < n; j++) {\n if (s.charAt(i) == s.charAt(j) && (j - i < 2 || dp[i + 1][j - 1]))\n {\n dp[i][j] = true;\n if(j == n-1)\n {\n cut[i]=0;\n }\n else{\n cut[i] = Math.min(cut[i],cut[j+1]+1);\n }\n }\n }\n }\n\n return cut[0];\n }", "public static int LongestName () {\n int result = 0;\r\n\r\n // LOOP THROUGH THE PLAYERS\r\n for (int i = 0; i < player_count; i++) {\r\n // DID WE FIND A LONGER NAME?\r\n if (player[i].GetName().length() > result)\r\n result = player[i].GetName().length();\r\n }\r\n\r\n // RETURN THE RESULT\r\n return result;\r\n }", "public int lengthOfLongestSubstring(String s) {\n int[] chars = new int[128];\n\n int left = 0;\n int right = 0;\n\n int res = 0;\n while (right < s.length()) {\n char r = s.charAt(right);\n chars[r]++;\n\n while (chars[r] > 1) {\n char l = s.charAt(left);\n chars[l]--;\n left++;\n }\n\n res = Math.max(res, right - left + 1);\n\n right++;\n }\n return res;\n }", "public static char maximumOccurringCharacter(String text) {\n char[] charArray= text.toCharArray() ;\n HashMap<Character, Integer> map= new HashMap<>() ;\n for(Character c : charArray){\n if(map.containsKey(c)){\n int value = map.get(c) ;\n map.put(c , value + 1) ;\n }\n else{\n map.put(c , 1) ;\n }\n }\n\n char maxKey ; int maxValue = Integer.MIN_VALUE ;\n LinkedList<Character> maxList = new LinkedList<>() ;\n for(char key: map.keySet()){\n if(map.get(key)>maxValue){\n maxValue = map.get(key) ;\n }\n }\n\n for(char key: map.keySet()){\n if(map.get(key)== maxValue){\n maxList.add(key) ;\n }\n }\n\n char earlier = Character.MAX_VALUE ;\n for(int counter = 0 ; counter< maxList.size() ; counter++){\n if( maxList.get(counter)< earlier){\n earlier = maxList.get(counter) ;\n }\n }\n return earlier ;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\tchar[] arr= s.toLowerCase().toCharArray();\n\t\tint indx[] = new int[26];\n\t\tint asciiOffset = 97;\n\t\tfor(int x=0;x<arr.length ;x++){\n\t\t\tindx[arr[x]-asciiOffset] = indx[arr[x]-asciiOffset]+1;\n\t\t}\n\t\tint max =indx[0];\n\t\tint indexOfMax = 0;\n\t\tfor(int i=1; i<indx.length; i++){\n\t\t\tif(indx[i]>max){\n\t\t\t\tmax = indx[i];\n\t\t\t\tindexOfMax=i;\n\t\t\t}\t\n\t\t}\n\t\tchar ch = (char)(asciiOffset+indexOfMax);\n\t\tSystem.out.println(\"Max occurance of the character is =\"+ch);\n\t}", "public int findLUSlength(String[] strs) { //O(n^2) time. O(1) space.\r\n\t\tif (strs.length == 0)\r\n\t\t\treturn 0;\r\n\t\tint max = -1;\r\n\t\tint i = 0;\r\n\t\t// Arrays.sort(strs, (a,b) -> b.length() - a.length());\r\n\t\tfor (int j = 0; j < strs.length; j++) {\r\n\t\t\tfor (i = 0; i < strs.length; i++) {\r\n\t\t\t\tif (j == i || !isSubsequence(strs[j], strs[i]))\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\telse\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (i == strs.length)\r\n\t\t\t\tmax = Math.max(strs[j].length(), max);\r\n\t\t}\r\n\t\treturn max;\r\n\t}", "public static void main(String[] args){\n\t\tLongestSubString obj = new LongestSubString();\n\t\t//System.out.println(obj.lengthOfLongestSubString(\"sandeep\"));\n\t\tSystem.out.println(obj.lengthOfLongestSubString(\"anday\"));\n\t}", "static int maxCharacter(String string) {\n\t\tchar[] ch = string.toCharArray();\n\t\t// create a hashmap for lookup using the char as a key\n\t\tMap<Character, int[]> map = new HashMap<Character, int[]>();\n\t\t// loop through string\n\t\tfor (int i = 0; i < ch.length; i++) {\n\t\t\t// if the character is already in the map increase occurrence value\n\t\t\tif (map.containsKey(ch[i])) {\n\t\t\t\t// get value array\n\t\t\t\t// increase occurrence\n\t\t\t\t// set new value\n\t\t\t\tint[] curArr = map.get(ch[i]);\n\t\t\t\tcurArr[1] = curArr[1] + 1;\n\t\t\t\tmap.put(ch[i], curArr);\n\t\t\t\t// if the character isn't in map, make a new entry\n\t\t\t} else {\n\t\t\t\t// create an array { index, occurrence vale}\n\t\t\t\tint[] newArr = { i, 1 };\n\t\t\t\tmap.put(ch[i], newArr);\n\t\t\t}\n\t\t}\n\t\tint max = 0;\n\t\tint index = 0;\n\t\t// loop through entries\n\t\tfor (Map.Entry<Character, int[]> e : map.entrySet()) {\n\t\t\t// find the largest occurrence value\n\t\t\tint[] maxArr = e.getValue();\n\t\t\tif (maxArr[1] > max) {\n\t\t\t\tmax = maxArr[1];\n\t\t\t\tindex = maxArr[0];\n\t\t\t}\n\t\t}\n\t\t// return the index of the first found character\n\t\treturn index;\n\t}", "public int lengthOfLongestSubstring(String s)\n {\n\tif (s.length() < 2)\n\t return s.length();\n\n\tint max = 0, i = 0, j = 1;\n\n\tboolean[] cache = new boolean[128];\n\tcache[s.charAt(i) - ' '] = true;\n\n\twhile (i < s.length() && j < s.length())\n\t{\n\t while (cache[s.charAt(j)-' '])\n\t\t cache[s.charAt(i++)-' '] = false; \n\t cache[s.charAt(j++)-' '] = true;;\n\t max = Math.max(max, j - i);\n\t}\n\treturn max;\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint t=sc.nextInt();\r\n\t\twhile(t-->0) {\r\n\t\t\tList<String> arr=new ArrayList();\r\n\t\t\tint n=sc.nextInt();\r\n\t\t\tfor(int i=0;i<n;i++) {\r\n\t\t\t\tarr.add(sc.next());\r\n\t\t\t}\r\n\t\t\tint max=longestString(arr);\r\n\t\t\tSystem.out.println(max);\r\n\t\t}\r\n\r\n\t}", "private static int lengthOfLongestSubstring2(String s) {\n int maxLength = 0;\n int currentlength = 0;\n int startIndex = -1;\n Map<Character, Integer> charMap = new HashMap<>();\n \n for(int index = 0; index < s.length(); index++){\n Character c = s.charAt(index);\n Integer currentIndex = charMap.get(c);\n if(currentIndex != null){\n \tcurrentlength = index - startIndex -1 ;\n if(maxLength < currentlength){\n maxLength = currentlength;\n }\n if(currentIndex > startIndex) {\n startIndex = currentIndex;\n }\n }\n charMap.put(c, index);\n }\n currentlength = s.length() - startIndex -1 ;\n if(maxLength < currentlength){\n maxLength = currentlength;\n }\n return maxLength;\n }", "public String longestPalindrome(String s) {\n String ans = \"\";\n int maxLen = 0;\n for (int i = 0; i < s.length(); i++) {\n int[] pair = expand(s, i, i);\n if (pair[1] - pair[0] + 1 > maxLen) {\n maxLen = pair[1] - pair[0] + 1;\n ans = s.substring(pair[0], pair[1] + 1);\n }\n pair = expand(s, i, i + 1);\n if (pair[1] - pair[0] + 1 > maxLen) {\n maxLen = pair[1] - pair[0] + 1;\n ans = s.substring(pair[0], pair[1] + 1);\n }\n }\n return ans;\n }", "public int lengthOfLongestSubstringE(String s)\n {\n\tif (s.length() < 2)\n\t return s.length();\n\n\tint max = 0, i = 0, j = 1;\n\n\tSet<Character> cache = new HashSet<Character>();\n\tcache.add(s.charAt(i));\n\n\twhile (i < s.length() && j < s.length())\n\t{\n\t while (cache.contains(s.charAt(j)))\n\t\tcache.remove(s.charAt(i++));\n\t cache.add(s.charAt(j++));\n\t max = Math.max(max, j - i);\n\t}\n\treturn max;\n }", "public static void main(String[] args) {\n\t\tScanner in=new Scanner(System.in);\r\n\t\tint l=in.nextInt();\r\n\t\tString string=in.next();\r\n\t\tint max=0;\r\n\t\tString rs=\"\";\r\n\t\tMap<String, Integer>map=new HashMap<>();\r\n\t\tfor(int i=0;i<string.length()-l+1;i++) {\r\n\t\t\tString s=string.substring(i, i+l);\r\n\t\t\tif(map.containsKey(s)) {\r\n\t\t\t\t//更新子串计数\r\n\t\t\t\tint temp=map.get(s);\r\n\t\t\t\tif(temp>max) {\r\n\t\t\t\t\tmax=temp;\r\n\t\t\t\t\trs=s;\r\n\t\t\t\t}\r\n\t\t\t\tmap.put(s, ++temp);\r\n\t\t\t}else {\r\n\t\t\t\t//若没有子串,则设初值为1\r\n\t\t\t\tmap.put(s, 1);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(rs);\r\n\t}", "private int runValue() {\n int rValue = 0;\n int maxLength = 0;\n \n CribbageRank[] rank = new CribbageRank[cards.length];\n CribbageRank[][] combos;\n \n for (int i = 0; i < cards.length; i++) {\n for (CribbageRank card : CribbageRank.values()) {\n if (cards[i].charAt(0) == card.abbrev()) {\n rank[i] = card;\n }\n }\n }\n \n /** Find the maximum length for the combination which can form a run.\n */\n combos = Combinations.combinations(rank);\n \n for (int i = 0; i < combos.length; i++) {\n Arrays.sort(combos[i]); \n if(combos[i].length>=3 && isRun(combos[i])){\n if (combos[i].length > maxLength) {\n maxLength = combos[i].length;\n }\n } \n } \n\n /** Add up the scores if the maximum length combination is a run.\n */\n for (int i = 0; i < combos.length; i++) {\n if (combos[i].length == maxLength && isRun(combos[i])) {\n rValue += combos[i].length;\n }\n } \n return rValue;\n }", "static int lcs(String s, String t)\n{\n\tint n = s.length(), m = t.length();\n\tint[][] dp = new int[n+1][m+1];\n\tfor(int i = 1; i<=n; i++)\n\t\tfor(int j = 1; j<=m; j++)\n\t\t{\n\t\t\tdp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]);\n\t\t\tint cur = (s.charAt(i-1) == t.charAt(j-1)) ? 1 : 0;\n\t\t\tdp[i][j] = Math.max(dp[i][j], cur + dp[i-1][j-1]);\n\t\t}\n\treturn dp[n][m];\n}", "public int minCut4(String s) {\n boolean[][] dp = new boolean[s.length()][s.length()];\n for (int len = 1; len <= s.length(); len++) {\n for (int i = 0; i <= s.length() - len; i++) {\n int j = i + len - 1;\n dp[i][j] = s.charAt(i) == s.charAt(j) && (len < 3 || dp[i + 1][j - 1]);\n }\n }\n\n Map<Integer, Integer> memo = new HashMap<>();\n\n int[] res = new int[1];\n res[0] = Integer.MAX_VALUE;\n\n helper3(s, 0, res, 0, dp, memo);\n return res[0];\n }", "public String findMax(String[] vals)\r\n\t{\r\n\t\treturn \"nothing yet\";\r\n\t}", "public static String minimum_window(String s, String t) {\n // Write your code here\n if(s.length() < t.length()){\n return \"-1\";\n }\n String result = \"\";\n int n = s.length();\n int m = t.length();\n char[] freq1 = new char[128];\n char[] freq2 = new char[128];\n\n for(char c : t.toCharArray()){\n freq1[c]++;\n }\n\n int len = n+1;\n int cnt = 0;\n int l = 0;\n\n for(int i = 0 ; i< s.length(); i++){\n char temp = s.charAt(i);\n freq2[temp]++;\n if(freq1[temp]!=0 && freq2[temp] <= freq1[temp]){\n cnt++;\n }\n\n if(cnt >= m){\n while(freq2[s.charAt(l)] > freq1[s.charAt(l)] || freq1[s.charAt(l)] == 0){\n if(freq2[s.charAt(l)] > freq1[s.charAt(l)]){\n freq2[s.charAt(l)]--;\n }\n l++;\n }\n if(len > i - l + 1){\n len = i-l+1;\n result = s.substring(l,l+len);\n }\n }\n\n\n }\n return result.length() == 0 ? \"-1\": result;\n }", "@Test\n public void test_kmax_String_Collection1() {\n populate_s1();\n String actual = Selector.kmax(s1, 4, new CompareStringAscending());\n String expected = \"B\";\n Assert.assertEquals(\"4th maximum not found (strings)\", expected, actual);\n }", "public static int longestValidParentheses2(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch == ' ') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public static int longestValidParentheses_best(String s) {\n if (s == null || s.length() <= 1) {\n return 0;\n }\n\n int len = s.length();\n int max = 0;\n int left = 0;\n int right = 0;\n for (int i = 0; i < len; i++) {\n if (s.charAt(i) == '(') {\n left++;\n } else {\n right++;\n }\n\n if (left == right) {\n max = Math.max(max, 2 * left);\n } else if (right > left) {\n left = right = 0;\n }\n }\n\n left = right = 0;\n for (int i = len - 1; i >= 0; i--) {\n if (s.charAt(i) == '(') {\n left++;\n } else {\n right++;\n }\n\n if (left == right) {\n max = Math.max(max, 2 * right);\n } else if (left > right) {\n left = right = 0;\n }\n }\n\n return max;\n }", "public int lengthOfLongestSubstring(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n int res = 0;\n boolean[] used = new boolean[128];//ASCII 表共能表示 256 个字符,但是由于键盘只能表示 128 个字符,所以用 128 也行\n int left = 0, right = 0; //维持[i, j) 滑动窗口\n while (right < s.length()) {\n if (!used[s.charAt(right)]) {\n used[s.charAt(right ++)] = true;\n } else {\n res = Math.max(res, right - left);\n while ( left < right && s.charAt(left) != s.charAt(right)) {\n used[s.charAt(left ++)] = false;\n }\n left ++;\n right ++;\n }\n }\n res = Math.max(res, right - left);\n return res;\n }", "public int lengthOfLongestSubstring(String s) {\n if (s == null || s.length() == 0) {\n return 0;\n }\n\n int n = s.length();\n\n int i=0, j=0, max=0;\n\n Set<Character> chars = new HashSet<>();\n while (i < n && j < n) {\n if (!chars.contains(s.charAt(j))) {\n chars.add(s.charAt(j));\n j++;\n max = Math.max(max, j - i);\n } else {\n chars.remove(s.charAt(i));\n i++;\n }\n }\n\n return max;\n }", "public int lengthOfLongestSubstring(String s) {\n // Sanitization\n // Create a hashmap to save the character and the index\n // fast pointer - Move until it didn't find the duplicate\n // slow pointer - If the fast pointer pointed the duplicate, get that index and\n // place it next to it.\n\n if (s == null || s.length() == 0)\n return 0;\n int slowPointer = 0;\n int fastPointer = 0;\n int result = 0;\n HashMap<Character, Integer> map = new HashMap();\n while (fastPointer < s.length()) {\n char currentChar = s.charAt(fastPointer);\n if (map.containsKey(currentChar)) {\n int currentIndedx = map.get(currentChar);\n if (slowPointer <= currentIndedx) {\n slowPointer = currentIndedx + 1;\n }\n }\n int difference = fastPointer - slowPointer;\n result = Math.max(result, difference + 1);\n map.put(currentChar, fastPointer);\n fastPointer++;\n }\n return result;\n }", "public static int maximumPower(String s) {\n int power = 1,maxpower=1;\n for (int i = 0; i < s.length()-1; i++) {\n System.out.println(\"i \" + i);\n System.err.println(s + \" \" + Integer.parseInt(s, 2));\n int decimal = Integer.parseInt(s, 2);\n power = 1;\n System.out.println(\"result \" + decimal / Math.pow(2, power));\n if (decimal % Math.pow(2, power) == 0)\n {\n maxpower = max(maxpower,power);\n while(decimal % Math.pow(2, ++power) == 0){}\n maxpower = max(maxpower,power);\n\n } \n else if (decimal % Math.pow(2, power) < 0) {\n System.out.println(\"inside \" + decimal / Math.pow(2, power));\n s = leftrotate(s) + \"\";\n continue;\n } else {\n\n while (decimal >= Math.pow(2, ++power) / 2) {\n System.out.println(\"inside while \" + decimal / Math.pow(2, power));\n if (decimal % Math.pow(2, power) == 0)\n maxpower = max(maxpower, power);\n else if (decimal % Math.pow(2, power) < 0)\n break;\n }\n }\n System.out.println(\"End \");\n s = leftrotate(s) + \"\";\n\n }\n\n return maxpower;\n\n }", "public static String MaxSequence(String X, String Y) \r\n\t{\r\n\t\tint mat[][] = BuildMatrix(X,Y);\r\n\t\tint row = mat.length;\r\n\t\tint col = mat[0].length;\r\n\t\tint seqLength = mat[row-1][col-1];\r\n\t\tString result = \"\";\r\n\t\tint i =row-1;\r\n\t\tint j = col-1;\r\n\t\tint count = seqLength-1;\r\n\t\t\r\n\t\twhile(count >= 0) \r\n\t\t{\r\n\t\t\tif(X.charAt(i-1) == Y.charAt(j-1)) \r\n\t\t\t{\r\n\t\t\t\tresult = X.charAt(i-1) + result;\r\n\t\t\t\ti--;\r\n\t\t\t\tj--;\r\n\t\t\t\tcount--;\r\n\t\t\t}\r\n\t\t\telse if(mat[i][j] == mat[i][j-1])\r\n\t\t\t\tj--;\r\n\t\t\telse\r\n\t\t\t\ti--;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public int longestPalindromeSubseq(String s) {\n return lps(s, 0, s.length() - 1);\n }", "public static int maxRepeats(String dna) {\n int consecutive = 0;\n int bestScore = 0;\n for (int i = 0; i < dna.length() - 2; i++) {\n if (dna.substring(i,i+3).equals(\"CAG\")) {\n i += 2;\n consecutive += 1;\n }\n else {\n if (bestScore < consecutive) bestScore = consecutive;\n consecutive = 0;\n }\n }\n return bestScore;\n }", "public static int lengthOfLongestSubstring(String s) \r\n {\r\n \tif (s.length()==0) \r\n \t\treturn 0;\r\n \t\r\n HashMap<Character, Integer> map = new HashMap<Character, Integer>();\r\n int length = 0;\r\n int start = 0;\r\n \r\n for (int end=0; end < s.length(); end++)\r\n {\r\n \t// When we have reached a repeated character, then the currently held string is potentially the largest string.\r\n \t// If the character is there in the map, start needs to be changed. \r\n \t// If it is not there, start remains the same so that it can increase the count\r\n if (map.containsKey(s.charAt(end)))\r\n {\r\n \t// Consider input as abba. For b[2], start < map.get(s.charAt(end)) + 1 \r\n \t// For b[3], start > map.get(s.charAt(end)) + 1. It means, if the character has occured towards the beginning, we dont want the start to be modified.\r\n \tstart = Math.max(start, map.get(s.charAt(end)) + 1);\r\n } \r\n \r\n map.put(s.charAt(end), end);\r\n \r\n // Why +1? Lets say start=2, end=5. Then the length will be 5-2=3. And, 3+1 = 4.\r\n length = Math.max(length, end-start+1);\r\n \r\n }\r\n return length;\r\n }", "static int longestSubsequence(String x, String y) {\n char[] strX = x.toCharArray();\n char[] strY = y.toCharArray();\n\n Map<Character, Integer> xMap = new HashMap<>();\n Map<Character, Integer> yMap = new HashMap<>();\n\n for (int i = 0; i < strX.length; i++) {\n char c = strX[i];\n if (xMap.containsKey(c)) {\n xMap.put(c, xMap.get(c) + 1);\n } else {\n xMap.put(c, 1);\n }\n }\n\n for (int i = 0; i < strY.length; i++) {\n char c = strY[i];\n if (yMap.containsKey(c)) {\n yMap.put(c, yMap.get(c) + 1);\n } else {\n yMap.put(c, 1);\n }\n }\n\n System.out.println(xMap);\n System.out.println(yMap);\n\n ArrayList<Character> subsequence = new ArrayList<>();\n\n // first find match subsequence\n for (Character c : yMap.keySet()) {\n if (!xMap.containsKey(c)) {\n continue;\n }\n\n int xCount = xMap.get(c);\n int yCount = yMap.get(c);\n int charCount = xCount < yCount ? xCount : yCount;\n\n for (int i = 0; i < charCount; i++) {\n subsequence.add(c);\n }\n }\n\n System.out.println(\"may be seq\" + subsequence);\n\n int max = 0;\n for (int i = 0; i < subsequence.size(); i++) {\n char c = subsequence.get(i);\n ArrayList<Character> remains = new ArrayList<>(subsequence);\n remains.remove(i);\n StringBuilder curr = new StringBuilder();\n curr.append(c);\n// System.out.println(\"max\" + max);\n int result = findPermutation(y, curr, remains, max);\n if (result > max) {\n max = result;\n }\n }\n\n // find matching permutation\n\n System.out.println(\"result\" + max);\n // then find sub string\n return max;\n }", "public static int longestValidParentheses3(String str) {\n\t\tint max = 0;\n\t\tStack<Integer> stack = new Stack<Integer>();\n\t\tstack.push(-1);//先前最远的不可匹配的位置,\n\t\tint i = -1;\n// for(int i = 0;i < str.length();i++){\n\t\tfor (int j = 0; j < str.length(); j++) {\n\t\t\tchar ch = str.charAt(j);\n\t\t\tif (ch != '(' && ch != ')') {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tif (ch == '(') {\n\t\t\t\tstack.push(i);//不进行匹配,那么它就是先前最远的不可匹配的位置,\n\t\t\t} else {\n\t\t\t\tstack.pop();//闭起眼睛,匹配先前不可匹配的字符,\n\t\t\t\tif (stack.empty()) {\n\t\t\t\t\tstack.push(i);//如果栈为空,说明其实没有什么可以进行匹配的,所以当前就是新的最近的不可匹配的位置\n\t\t\t\t} else {\n\t\t\t\t\t//如果栈不为空,说明有可以进行匹配的,并且匹配完成,那么匹配的字符串长度为 i-stack.peek()\n\t\t\t\t\tif (i - stack.peek() > max) {\n\t\t\t\t\t\tSystem.out.printf(\"start:end %d:%d \\n\", stack.peek() + 1, i);\n\t\t\t\t\t}\n\t\t\t\t\tmax = Math.max(i - stack.peek(), max);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max;\n\t}", "public static void main(String[] args)\n\t{\n\t\tString s= \"abcbaaaaaa\";\n\t\tSystem.out.println(longestPalindromicSubstring(s));\n\t}", "public int lengthOfLongestSubstring(String s) {\r\n\r\n int answer = 0;\r\n int index = 0;\r\n while (index < s.length()) {\r\n String tmp = \"\";\r\n for (int i = index; i < s.length(); i++) {\r\n if (tmp.contains(String.valueOf(s.charAt(i)))) {\r\n break;\r\n } else {\r\n tmp += String.valueOf(s.charAt(i));\r\n }\r\n }\r\n if (tmp.length() > answer) {\r\n answer = tmp.length();\r\n }\r\n index++;\r\n }\r\n\r\n return answer;\r\n }", "public int findMaxForm(String[] strs, int m, int n) {\n\t\tint[][] dp = new int[m+1][n+1];\n\t\tfor (String str : strs) {\n\t\t\tint ones = 0, zeros = 0;\n\t\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\t\tif (str.charAt(i) == '1') ones++; else zeros++;\n\t\t\t}\n\t\t\tfor (int i = m; i >= zeros; i--) {\n\t\t\t\tfor (int j = n; j >= ones; j--) {\n\t\t\t\t\tdp[i][j] = Math.max(dp[i][j], dp[i-zeros][j-ones] + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn dp[m][n];\n\t}", "protected abstract int findMax(final String prefix);", "public int longestPalindromeSubseqV2(String s) {\n int n = s.length();\n Integer[][] memo = new Integer[n][n];\n return helper(s, memo, 0, n - 1);\n }", "public int lengthOfLongestSubstring(String s) {\n\n int res = 0;\n int len = s.length();\n int i = 0, j = 0;\n Set<Character> set = new HashSet<>();\n while (i < len && j < len) {\n if (!set.contains(s.charAt(j))) {\n set.add(s.charAt(j++)); // here s.set an ele then j already plus\n res = Math.max(res, j - i); // so use j-i\n } else {\n set.remove(s.charAt(i++));\n }\n }\n\n return res;\n }", "public int findSubstringInWraproundString(String p) {\n if(p == null || p.length() == 0) {\n return 0;\n }\n // count[i] is the maximum unique substring that ends with a...z\n int[] count = new int[26];\n // keep track of the number of consecutive letters ended with current letter\n int consecutiveCount = 1;\n for(int i = 0; i < p.length(); i++) {\n if(i > 0 && isConsecutive(p.charAt(i - 1), p.charAt(i))) {\n consecutiveCount++;\n } else {\n consecutiveCount = 1;\n }\n int index = p.charAt(i) - 'a';\n count[index] = Math.max(count[index], consecutiveCount);\n }\n int result = 0;\n for(int singleCount : count) {\n result += singleCount;\n }\n return result;\n }", "public int maxLength(List<String> arr) {\n\n List<String> results = new ArrayList<>();\n\n results.add(\"\");\n\n for (String word : arr) {\n if (!isValid(word)) continue;\n\n List<String> tempResults = new ArrayList<>();\n for (String result : results) {\n String candidate = result + word;\n if (isValid(candidate)) tempResults.add(candidate);\n }\n results.addAll(tempResults);\n }\n\n String result = results.stream().max(Comparator.comparingInt(String::length)).orElse(\"\");\n\n return result.length();\n }", "static int[] calculateMaxMatchLengths(String pattern) {\n //initiate PMT\n int[] pmt = new int[pattern.length()];\n int maxMatched = 0;\n //loop in the whole string for pattern\n for (int i = 1;i<pattern.length();i++){\n //when not matched, return to last match position\n while(maxMatched > 0 && pattern.charAt(maxMatched) != pattern.charAt(i)){\n maxMatched = pmt[maxMatched -1];\n }\n //when match, maxMatch ++\n if(pattern.charAt(i)==pattern.charAt(maxMatched)){\n maxMatched++;\n }\n //record the maxMatch at separete index\n pmt[i]=maxMatched;\n }\n return pmt;\n }", "public static int lengthOfLongestSubstring(String s) {\n\t\tchar[] chars = s.toCharArray();\n\t\tint x = 0;\n\t\tint head = 0;\n\t\tHashMap<Character, Integer> map = new HashMap<Character, Integer>();\n\t\tfor (int i = 0; i < chars.length; i++) {\n\t\t\tif (!map.containsKey(chars[i])) {\n\t\t\t\tmap.put(chars[i], i);\n\t\t\t\tif (map.size() > x) {\n\t\t\t\t\tx = map.size();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (map.size() > x) {\n\t\t\t\t\tx = map.size();\n\t\t\t\t}\n\t\t\t\tint temp = map.get(chars[i]);\n\n\t\t\t\tfor (int j = head; j <= temp; j++) {\n\t\t\t\t\tmap.remove(chars[j]);\n\t\t\t\t}\n\t\t\t\thead = temp + 1;\n\t\t\t\tmap.put(chars[i], i);\n\t\t\t}\n\t\t}\n\t\treturn x;\n\t}", "public int lengthOfLongestSubstring(String s) {\n int i = 0, j = 0, max = 0;\n Set<Character> set = new HashSet<>();\n \n while (j < s.length()) {\n if (!set.contains(s.charAt(j))) {\n set.add(s.charAt(j++));\n max = Math.max(max, set.size());\n } else {\n set.remove(s.charAt(i++));\n }\n }\n \n return max;\n}", "public static void main(String[] args) {\n\t\tString A = \"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb\";\r\n\t\tLongestSubString longestSubString = new LongestSubString();\r\n\t\tint lengthOfLongestSubstring = longestSubString.lengthOfLongestSubstring(A);\r\n\t\tSystem.out.println(lengthOfLongestSubstring);\r\n\r\n\t}", "public int longestValidParentheses(String s) {\n\t\tint max_len = 0, last = -1; \n\t\t// keep track of the positions of non-matching '('s\n\t\tStack<Integer> lefts = new Stack<Integer>(); \n\t\tfor (int i = 0; i < s.length(); ++i) {\n\t\t\tif (s.charAt(i) == '(') {\n\t\t\t\tlefts.push(i);\n\t\t\t} else {\n\t\t\t\tif (lefts.empty()) {\n\t\t\t\t\t// no matching left\n\t\t\t\t\tlast = i;\n\t\t\t\t} else {\n\t\t\t\t\t// find a matching pair\n\t\t\t\t\tlefts.pop();\n\t\t\t\t\tif (lefts.empty()) {\n\t\t\t\t\t\tmax_len = Math.max(max_len, i - last);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tmax_len = Math.max(max_len, i - lefts.peek());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn max_len;\n\t}", "public static int lengthOfLongestSubstring(String s) {\n if(s.length()==1)\n return 1;\n\n int sum=0;\n int left = 0, right = 0;\n boolean[] used = new boolean[128];\n\n while(right < s.length()){\n if(used[s.charAt(right)] == false){\n used[s.charAt(right)] = true;\n right++;\n }else{\n sum = Math.max(sum, right-left);\n while(left<right && s.charAt(right) != s.charAt(left)){\n used[s.charAt(left)] = false;\n left++;\n }\n left++;\n right++;\n }\n }\n sum = Math.max(sum, right - left);\n\n return sum;\n }", "public String extractMax(){\n\t\tString maxValue = queueArray[1][1];\n\t\t\n\t\tremove();\n\t\tmove();\n\t\t\n\t\treturn maxValue;\n\t}", "public static void main(String[] args) {\n String s=\"Human brain is a biological learning machine\";\n Map<Integer, String> wordNLength = findTheLargestWord(s);\n //implement\n\n }", "public static int lengthOfLongestSubstring(String s) {\n\t int i = 0, j = 0, max = 0;\n\t Set<Character> set = new HashSet<>();\n\t while (j < s.length()) {\n\t \tSystem.out.println(j);\n\t \tSystem.out.println(set);\n\t \t// if set doesnot contain a character in string - add it to set\n\t if (!set.contains(s.charAt(j))) {\n\t set.add(s.charAt(j));\n\t j++;\n\t max = Math.max(max, set.size());\n\t } else {\n\t set.remove(s.charAt(i++));\n\t }\n\t }\n\t \n\t return max;\n\t}" ]
[ "0.821375", "0.8108047", "0.68893516", "0.6700308", "0.6672873", "0.6606055", "0.65875477", "0.6564786", "0.65338594", "0.6522826", "0.6490977", "0.64837193", "0.6479376", "0.64488065", "0.64008635", "0.6390522", "0.6390239", "0.63752455", "0.63694614", "0.632733", "0.6314685", "0.62734085", "0.62732285", "0.6266213", "0.62652457", "0.6257179", "0.62480575", "0.6234316", "0.6227293", "0.62256247", "0.62239224", "0.62215835", "0.6218114", "0.6214707", "0.6202498", "0.6187983", "0.61710215", "0.61692756", "0.6162477", "0.6159437", "0.61451006", "0.6143512", "0.6138691", "0.61343527", "0.6094398", "0.60919756", "0.60897106", "0.6078947", "0.6078048", "0.60705864", "0.6062312", "0.60587525", "0.60501003", "0.6047708", "0.60429704", "0.60421014", "0.60264283", "0.6019541", "0.6012698", "0.59992313", "0.5987364", "0.59856045", "0.5984739", "0.598007", "0.5976195", "0.5974635", "0.5971143", "0.59658235", "0.5960748", "0.5958541", "0.5955412", "0.595065", "0.595018", "0.5946412", "0.5945519", "0.59416664", "0.592819", "0.59272325", "0.592317", "0.59108704", "0.5908488", "0.5899952", "0.5876229", "0.5874286", "0.58718926", "0.5870872", "0.5870688", "0.58706135", "0.5870316", "0.5868631", "0.5865245", "0.58631295", "0.5851449", "0.5849881", "0.5844183", "0.58434206", "0.58420974", "0.58411676", "0.584032", "0.58372504" ]
0.74418145
2
/ access modifiers changed from: protected
public int getBorderColor() { if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) { return super.getBorderColor(); } return Color.parseColor("#394b65"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public float getBorderWidth() { if (getFieldState() != BaseField.FieldState.ENABLE || !this.mEditText.hasFocus()) { return super.getBorderWidth(); } return 8.0f; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public void onLayout(boolean z, int i, int i2, int i3, int i4) { float f = this.mFontSize * this.mDispDensity * this.mScale; post(this); this.mEditText.layout(0, 0, getWidth(), getHeight()); if (this.mFontSize > 0.0f) { this.mEditText.setTextSize(f); } else { adjustTextSize(getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public void onDraw(Canvas canvas) { super.onDraw(canvas); if (this.mDefaultDrawingIsUsed) { this.mPaint.setStyle(Paint.Style.FILL); this.mPaint.setColor(getBackgroundColor()); Canvas canvas2 = canvas; canvas2.drawRect(0.0f, 0.0f, (float) getWidth(), (float) getHeight(), this.mPaint); this.mPaint.setStyle(Paint.Style.STROKE); this.mPaint.setColor(getBorderColor()); this.mPaint.setAntiAlias(true); this.mPaint.setStrokeWidth(getBorderWidth()); canvas2.drawRect(0.0f, 0.0f, (float) getWidth(), (float) getHeight(), this.mPaint); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public boolean onTapUp(MotionEvent motionEvent) { if (this.mListener != null && this.mListener.onClick(this)) { return true; } runBasicAction(); return super.onTouchEvent(motionEvent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: private
public void adjustTextSize(String str) { int i; int i2 = this.mMinTextSize; int height = (this.mEditText.getHeight() - this.mEditText.getCompoundPaddingBottom()) - this.mEditText.getCompoundPaddingTop(); int width = (this.mEditText.getWidth() - this.mEditText.getCompoundPaddingLeft()) - this.mEditText.getCompoundPaddingRight(); this.mWidthLimit = width; this.mAvailableSpaceRect.right = (float) width; this.mAvailableSpaceRect.bottom = (float) height; if (!this.mIsMultiLine || Math.min(getRect().width(), getRect().height()) <= 40.0f) { i = binarySearch(i2, this.mMaxTextSize, this.mSizeTester, this.mAvailableSpaceRect); } else { i = 40; } this.mEditText.setTextSize(0, (float) i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n protected void prot() {\n }", "private Rekenhulp()\n\t{\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private TMCourse() {\n\t}", "private void m50366E() {\n }", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public void method_4270() {}", "public abstract Object mo26777y();", "@Override\n protected void init() {\n }", "@Override\n\tprotected void interr() {\n\t}", "private MApi() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo38117a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "private Infer() {\n\n }", "protected abstract Set method_1559();", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "public abstract void mo70713b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "private Singletion3() {}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private ChainingMethods() {\n // private constructor\n\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "private abstract void privateabstract();", "protected boolean func_70814_o() { return true; }", "private Get() {}", "private Get() {}", "public void m23075a() {\n }", "private Util() { }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21779D() {\n }", "private test5() {\r\n\t\r\n\t}", "public void mo21825b() {\n }", "@Override\n public void memoria() {\n \n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "protected Doodler() {\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "private FlyWithWings(){\n\t\t\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n public boolean isPrivate() {\n return true;\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public abstract void mo56925d();", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "public void mo21877s() {\n }", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "@Override\n public void get() {}", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "private void ss(){\n }", "public void mo21782G() {\n }", "public abstract void mo27385c();", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "protected void h() {}", "private void init() {\n\n\t}", "private final void i() {\n }" ]
[ "0.70451087", "0.66481936", "0.66338545", "0.6534467", "0.6533057", "0.63756114", "0.6368523", "0.63063055", "0.6244554", "0.62261415", "0.62046665", "0.61776316", "0.6142759", "0.6131381", "0.6131381", "0.61274433", "0.610919", "0.610797", "0.60792845", "0.6062989", "0.6059318", "0.60447836", "0.6037732", "0.6033637", "0.6028711", "0.60249", "0.6015989", "0.6015989", "0.6010123", "0.5991239", "0.5977965", "0.59756213", "0.59711885", "0.59652776", "0.59562653", "0.59491456", "0.5947999", "0.5942879", "0.5941421", "0.59406793", "0.5936351", "0.5936351", "0.5934477", "0.5934473", "0.59311885", "0.59261817", "0.592184", "0.59162307", "0.59162307", "0.5915696", "0.5908215", "0.5903059", "0.5903059", "0.5894341", "0.5887855", "0.58869827", "0.5884463", "0.5881538", "0.588023", "0.5879579", "0.58791363", "0.58698714", "0.58686715", "0.5857818", "0.5855094", "0.5851806", "0.58393794", "0.58365846", "0.58286095", "0.5816463", "0.58148336", "0.58144826", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5814171", "0.5809802", "0.5802026", "0.57927555", "0.5792171", "0.5790551", "0.5786574", "0.5786574", "0.5786574", "0.5786574", "0.5786161", "0.578553", "0.5785096", "0.57780075", "0.5774098", "0.57732016", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.57683206", "0.5763271", "0.57621974", "0.57540506" ]
0.0
-1
/ access modifiers changed from: protected
public void onSizeChanged(int i, int i2, int i3, int i4) { EditText editText = this.mEditText; editText.setText(editText.getText()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
Do some stuff using a session before returning the result. The session is closed after the operation (could end in error).
List<T> fetch(Session session);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Session begin();", "public void executeWithSession(AbstractSession session) {\n }", "protected Session getSession() { return session; }", "private Session fetchSession()\n\t{\n\t\t\tlog.info (\"******Fetching Hibernate Session\");\n\n\t\t\tSession session = HibernateFactory.currentSession();\n\n\t\t\treturn session;\n\t \n\t}", "public Session getSession() { return session; }", "Session getSession();", "Session getSession();", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "private Session openSession() {\n return sessionFactory.getCurrentSession();\n }", "Session getCurrentSession();", "Session getCurrentSession();", "DatabaseSession openSession();", "public Session getSession();", "public String execute(){\n HttpSession session = request.getSession();\n System.out.println(request);\n System.out.println(response);\n System.out.println(application);\n System.out.println(session);\n\n return null;\n\n}", "protected Session buildOrObtainSession() {\r\n\t\tLOGGER.fine(\"Opening a new Session\");\r\n\t\tSession s = super.buildOrObtainSession();\r\n\r\n\t\tLOGGER.fine(\"Disabling automatic flushing of the Session\");\r\n\t\ts.setFlushMode(FlushMode.MANUAL);\r\n\r\n\t\treturn s;\r\n\t}", "public Result withNewSession() {\n return withSession(Collections.emptyMap());\n }", "public <R> R doWithFreshSessionCache(Supplier<R> work) {\n try {\n com.googlecode.objectify.ObjectifyService.push(\n com.googlecode.objectify.ObjectifyService.factory().begin());\n return work.get();\n } finally {\n com.googlecode.objectify.ObjectifyService.pop();\n }\n }", "public LocalSession session() { return session; }", "@Override\n\tpublic Session getSession() throws Exception {\n\t\treturn null;\n\t}", "void flushSession();", "void flushSession();", "@Override\n public Session getSession() throws SQLException {\n // If we don't yet have a live transaction, start a new one\n // NOTE: a Session cannot be used until a Transaction is started.\n if (!isTransActionAlive()) {\n sessionFactory.getCurrentSession().beginTransaction();\n configureDatabaseMode();\n }\n // Return the current Hibernate Session object (Hibernate will create one if it doesn't yet exist)\n return sessionFactory.getCurrentSession();\n }", "public Result withSession(Session session) {\n return new Result(header, body, session, flash, cookies);\n }", "public Session openSession() {\r\n //Interceptor interceptor= new Interceptor();\r\n //Session regresar = sessionFactory.withOptions().interceptor(interceptor).openSession();\r\n Session regresar = sessionFactory.openSession();\r\n //interceptor.setSession(regresar);\r\n return regresar;\r\n }", "public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}", "public Session getSession() {\n return session;\n }", "protected abstract SESSION getThisAsSession();", "public Session getSession()\n {\n return session;\n }", "@Override\n public Session getSession() throws HibernateException {\n Session session = threadLocal.get();\n\n if (session == null || !session.isOpen()) {\n session = (sessionFactory != null) ? sessionFactory.openSession()\n : null;\n threadLocal.set(session);\n }\n return session;\n }", "private void doCloseSession()\n {\n if (session != null)\n {\n try\n {\n database.closeHibernateSession(session);\n }\n finally\n {\n session = null;\n }\n }\n }", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "public Session getSafeSession()\n {\n beginSession(false);\n return session;\n }", "public Session session() {\n return session;\n }", "public RDBMSSession getSession() {\r\n\t\treturn (RDBMSSession) session;\r\n\t}", "public Session openSession() {\r\n return sessionFactory.openSession();\r\n }", "protected final Session getSession() {\n\t\treturn m_sess;\n\t}", "public Result withSession(Map<String, String> session) {\n return withSession(new Session(session));\n }", "public Session createSession() {\n\t\treturn this.session;\n\t}", "public abstract I_SessionInfo getSession(I_SessionName sessionName);", "public Session openSession() {\r\n\t\treturn sessionFactory.openSession();\r\n\t}", "protected Session getSession() {\n return sessionUtility.getSession();\n }", "private Session getSession() throws RepositoryException {\n return getRepository().loginAdministrative(null);\n }", "public synchronized void sessionRestored(Session session) {\n if (session != null) {\n flushQueueOnSuccess(session);\n } else if (queue.size() > 0) {\n requestAuth();\n } else {\n // We can not find any session on the disk, future requests for Session\n awaitingSession.set(false);\n }\n }", "public Session getSession() {\n return session;\n }", "public AbstractSession getSession() {\n return session;\n }", "private Session getCurrentSession() {\n return sessionFactory.getCurrentSession();\n }", "protected final Session getSession() {\n return sessionTracker.getSession();\n }", "public Object getResult()\n\t{\n\t\treturn getResult( getSession().getSessionContext() );\n\t}", "@Override\n\tpublic ExecuteResult execute(SessionRequestContent content) {\n\t\treturn null;\n\t}", "@Override // java.util.concurrent.Callable\n public AppRaterSession call() {\n return this.a.a.getLastSession();\n }", "public PSUserSession getSession();", "@Transactional\n public StatusDTO finalizeImport(String session) {\n return null;\n }", "public Session getSession() {\n\t\treturn session;\n\t}", "public Session getSession() {\n\t\treturn session;\n\t}", "public Session getSession() {\n\t\treturn session;\n\t}", "void flushAndClearSession();", "protected final void openSession() {\n openSessionForRead(null, null);\n }", "void storeSession() {\n retrieveSessionIfNeeded(false);\n\n if (session != null) {\n try {\n session.commit();\n } catch (Exception e) { // NOSONAR - some error occured, log it\n logger.warn(\"cannot store session: {}\", session, e);\n throw e;\n }\n } else {\n logger.debug(\"session was null, nothing to commit\");\n }\n }", "public void setSession(Session session) { this.session = session; }", "@Override\r\n\tpublic HttpSession getSession()\r\n\t{\r\n\t\t// This method was implemented as a workaround to __CR3668__ and Vignette Support ticket __247976__.\r\n\t\t// The issue seems to be due to the fact that both local and remote portlets try to retrieve\r\n\t\t// the session object in the same request. Invoking getSession during local portlets\r\n\t\t// processing results in a new session being allocated. Unfortunately, as remote portlets\r\n\t\t// use non-WebLogic thread pool for rendering, WebLogic seems to get confused and associates\r\n\t\t// the session created during local portlet processing with the portal request.\r\n\t\t// As a result none of the information stored originally in the session can be found\r\n\t\t// and this results in errors.\r\n\t\t// To work around the issue we maintain a reference to original session (captured on the\r\n\t\t// first invocation of this method during the request) and return it any time this method\r\n\t\t// is called. This seems to prevent the issue.\r\n\t\t// In addition, to isolate SPF code from the session retrieval issue performed by Axis\r\n\t\t// handlers used during WSRP request processing (e.g. StickyHandler), we also store\r\n\t\t// a reference to the session as request attribute. Newly added com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t// can then use the request attribute value instead of calling request.getSession()\r\n\t\t// which before this change resulted in new session being allocated and associated with\r\n\t\t// the portal request.\r\n\r\n\t\tif (mSession == null) {\r\n\t\t\tmSession = ((HttpServletRequest)getRequest()).getSession();\r\n\r\n\t\t\t// Store session in request attribute for com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t\tgetRequest().setAttribute(ORIGINAL_SESSION, mSession);\r\n\t\t}\r\n\r\n\t\treturn mSession;\r\n\t}", "protected abstract SESSION newSessionObject() throws EX;", "public Session getSession() {\n\t\treturn sessionFactory.getCurrentSession();\r\n\t}", "private static void closeSession() {\n isSessionOpen = false;\n }", "protected Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public jkt.hms.masters.business.MasSession getSession () {\n\t\treturn session;\n\t}", "public Session openOrRetrieveSessionForThread() {\n Session session = THREADED_SESSION.get();\n if (session == null) {\n session = getSessionFactory().openSession();\n THREADED_SESSION.set(session);\n }\n return session;\n }", "protected Session getCurrentSession()\n \t{\n \t\treturn this.sessionFactory.getCurrentSession();\n \t}", "@Override\n public String execute(RequestWrapper wrapper) throws SQLException {\n HttpSession session = wrapper.getSession();\n session.invalidate();\n return \"/jsp/index.jsp\";\n }", "private void getHibernateSession() {\n try {\n session = em.unwrap(Session.class)\n .getSessionFactory().openSession();\n\n } catch(Exception ex) {\n logger.error(\"Failed to invoke the getter to obtain the hibernate session \" + ex.getMessage());\n ex.printStackTrace();\n }\n\n if(session == null) {\n logger.error(\"Failed to find hibernate session from \" + em.toString());\n }\n }", "public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }", "private static void sessionFromCurrentSession(final Context context) {\n\n \t// The session itself\n final Session newSession = Session.getInstance();\n \n // The service\n Service newService = new Service();\n newSession.setService(newService);\n\n // The shared preferences\n Preferences preferences = new Preferences(context);\n newSession.setPreferences(preferences);\n\n // The database\n RestaurantDBAdapter restaurantDBAdapter = new RestaurantDBAdapter(context);\n newSession.setRestaurantDBAdapter(restaurantDBAdapter);\n\n // The hashmap of all the restaurants\n HashMap<String, Restaurant> restaurants = restaurantDBAdapter.getAllRestaurants();\n newSession.setRestaurants(restaurants);\n\n //Save the current session\n Session.setCurrentSession(newSession);\n Session.currentSession.saveAsCurrentSession(context);\n }", "protected Session getSession() {\r\n if (session == null || !session.isOpen()) {\r\n LOG.debug(\"Session is null or not open...\");\r\n return HibernateUtil.getCurrentSession();\r\n }\r\n LOG.debug(\"Session is current...\");\r\n return session;\r\n }", "@Override\n\t\tpublic HttpSession getSession() {\n\t\t\treturn null;\n\t\t}", "@Override\r\n\tpublic HttpSession getSession(boolean create)\r\n\t{\r\n\t\treturn getSession();\r\n\t}", "Object getNativeSession();", "public static Session getSession() {\n\n if (serverRunning.get() && !session.isClosed()) {\n return session;\n } else {\n if (session.isClosed()) {\n throw new IllegalStateException(\"Session is closed\");\n } else {\n throw new IllegalStateException(\"Cluster not running\");\n }\n }\n }", "@Override\r\n public PhoenixSession getSession()\r\n {\n return null;\r\n }", "@Override\r\n\tpublic ResultSet call() throws Exception {\n\t\tif (statement.execute()) {\r\n\t\t\tpool.checkIn(conn);\r\n\t\t\treturn statement.getResultSet();\r\n\t\t}\r\n\t\tpool.checkIn(conn); // Release the connection back to the pool\r\n\t\treturn null;\r\n\t}", "protected Session getCurrentSession() {\n\t\treturn sessionFactory.getCurrentSession();\n\t}", "protected Session getCurrentSession() {\n\t\treturn sessionFactory.getCurrentSession();\n\t}", "void closeSession();", "void closeSession();", "public static Session getSession() throws HException {\r\n\t\tSession s = (Session) threadSession.get();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tif (s == null) {\r\n\t\t\t\tlog.debug(\"Opening new Session for this thread.\");\r\n\t\t\t\tif (getInterceptor() != null) {\r\n\t\t\t\t\t\r\n\t\t\t\t\ts = getSessionFactory().withOptions().interceptor(getInterceptor()).openSession();\r\n\t\t\t\t} else {\r\n\t\t\t\t\ts = getSessionFactory().openSession();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tthreadSession.set(s);\r\n\t\t\t\tsetConnections(1);\r\n\t\t\t}\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tthrow new HException(ex);\r\n\t\t}\r\n\t\treturn s;\r\n\t}", "public static Session getSession() {\n return session;\n }", "public Session createEmptySession();", "public static void loadSession(Session session){\n currentSession = session;\n }", "public abstract Thread startSession();", "public Session getSession()\n\t{\n\t\treturn m_Session;\n\t}", "@RequestMapping(value=\"/continue\")\n\tpublic String continueFromSession(ModelMap modelMap, HttpSession session) {\n\t\tMap<Long, SaleOrReturnOrderLine> orderLineMap = (Map<Long, SaleOrReturnOrderLine>) session.getAttribute(\"orderLineMap\");\n\t\tSaleOrReturn saleOrReturn = (SaleOrReturn) session.getAttribute(\"saleOrReturn\");\n\n\t\t//Place into session\n\t\tsession.setAttribute(\"saleOrReturn\", saleOrReturn);\n\t\tsession.setAttribute(\"orderLineMap\", orderLineMap);\n\n\t\t//Place into model\n\t\tfillModel(saleOrReturn, new StockItemSearchBean(), modelMap, orderLineMap);\n\t\treturn editOrCreateView(saleOrReturn);\n\t}", "void commit(Session session);", "public User getSession(){\n\t\treturn this.session;\n\t}", "Session decorate(Session session);", "public Session getCurrentSession() {\r\n return sessionFactory.getCurrentSession();\r\n }", "private void refreshSession() {\n\t\ttry {\n\t\t\tAuthenticationUtils.endSession();\n\t\t\tAuthenticationUtils.startSession(endpointUser, endpointPassword);\n\t\t} catch(Throwable e) {\n\t\t\tLOG.error(\"Error refreshing session\", e);\n\t\t}\n\t}", "public Session getSession() {\n if (this.session == null) {\n this.logger.error(\"Sessão não iniciada.\");\n throw new IllegalStateException(\"A sessão não foi criada antes do uso do DAO\");\n }\n return this.session;\n }", "@Override\n public void closeSession() throws HibernateException {\n Session session = threadLocal.get();\n threadLocal.set(null);\n\n if (session != null) {\n session.close();\n }\n }", "@ConfigOperation\r\n @Order(10)\r\n protected void execLoadSession() throws ProcessingException {\r\n }", "public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}", "DatastoreSession createSession();" ]
[ "0.6713578", "0.6508264", "0.6335961", "0.6292658", "0.6286879", "0.6286477", "0.6286477", "0.6238156", "0.6222646", "0.61889446", "0.61889446", "0.61799145", "0.6164042", "0.6163716", "0.61473197", "0.6133186", "0.61121553", "0.60908836", "0.606956", "0.6063346", "0.6063346", "0.6030768", "0.6028802", "0.5983739", "0.59781986", "0.5961465", "0.5955706", "0.5908407", "0.59052503", "0.58647346", "0.585778", "0.5851094", "0.58491796", "0.5841232", "0.5837661", "0.5822806", "0.5815917", "0.57953197", "0.5776205", "0.5770699", "0.57641524", "0.5763378", "0.5751047", "0.5749198", "0.5746135", "0.57383364", "0.5734339", "0.5706254", "0.56846726", "0.56799096", "0.5677777", "0.567374", "0.5660864", "0.5660864", "0.5660864", "0.5642001", "0.56262815", "0.5621601", "0.56182176", "0.5614777", "0.5614206", "0.5610072", "0.56026673", "0.5599825", "0.55963695", "0.5582791", "0.55754894", "0.557264", "0.55707586", "0.55675936", "0.5539319", "0.55242836", "0.5521222", "0.55206203", "0.5516728", "0.5507489", "0.5501758", "0.549309", "0.54912436", "0.54912436", "0.54840577", "0.54840577", "0.54838705", "0.54791605", "0.54742724", "0.5451445", "0.54472625", "0.5447002", "0.54274994", "0.5415944", "0.5413323", "0.5413296", "0.53982425", "0.5395885", "0.5390903", "0.5386435", "0.5379002", "0.53710324", "0.53657514", "0.53616744" ]
0.5500416
77
/ 20220412: Main domain has changed from kamababa.com to kamababa.desi
@Override public String rewriteHost(final String host) { return this.rewriteHost(getPluginDomains(), host); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void changeDomain(String newDomain);", "public static void refreshDomain()\n\t{\n\t API_APP_INFO = \"https://\"+DOMAIN+\"/api/a/iGET/app/oinfo?app_key=\";\n\t API_LOG_DEVICE_INFO = \"https://\"+DOMAIN+\"/api/a/POST/mobile/LogInstall?type=0\";\n\t API_GCM_REGISTER = \"https://\"+DOMAIN+\"/api/a/POST/Push/RegisterDevice\";\n\t API_EXCHANGE_TOKEN = \"https://\"+DOMAIN+\"/api/a/GET/me/exchangetoken?\";\n\t}", "private void renameOriginalDomainConfig() {\n File domXml = getDASDomainXML();\n movedDomXml = new File(domXml.getParentFile(), \"domain.xml.moved\");\n report(\"moved-domain\", domXml.renameTo(movedDomXml));\n }", "public void test8(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getParameter(\"domain\"));\n\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public String normalizeDomainName( final String name );", "public void test2(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void markFullDomainNameReplace() throws JNCException {\n markLeafReplace(\"fullDomainName\");\n }", "public void disableDomainBasedUnfixing() { this.exec = this.exec.withProperty(\"sm.domainUnfix\", false); }", "private String normalizeHostName(String host) {\n if (host == null || host.length() == 0) {\n host = AddressUtils.getHostToAdvertise();\n } else {\n if (URLUtil.hasScheme(host)) {\n host = URLUtil.removeScheme(host);\n }\n }\n\n return host;\n }", "protected String getDomain() {\n return \"\";\n }", "private void restoreOriginalDomainConfig() {\n getDASDomainXML().delete();\n report(\"restored-domain\", movedDomXml.renameTo(getDASDomainXML()));\n }", "public void test6(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void test7(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n\n if(addr.getCanonicalHostName().startsWith(\"trustme.com\", 3)){ /* BUG */\n\n }\n }", "public void test10(HttpServletRequest request) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void test4(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equalsIgnoreCase(\"trustme.com\")){ /* BUG */\n\n }\n }", "public java.lang.String getWebToCaseDefaultOrigin() {\n return webToCaseDefaultOrigin;\n }", "public void test3(HttpServletRequest request, HttpServletResponse response) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(request.getRemoteAddr());\n if(addr.getCanonicalHostName().equals(\"trustme.com\")){ /* BUG */\n\n }\n }", "public void setDomain(String value) {\n\t\tapp.setSetting(\"domain\", value);\n\t}", "@Override\n public String domain() {\n return null;\n }", "public static void main(String[] args) throws Exception {\n String url = \"http://mtosmt.org/issues/mto.04.10.1/toc.10.1.html\"; \n// String url = \"http://www.mtosmt.org/issues/mto.04.10.1/mto.04.10.1.schmalfeldt.html\"; \n \n String baseUrl = \"https://mtosmt.org/\";\n String urlWithoutWww = UrlUtil.delSubDomain(url, \"www\");\n try {\n if (UrlUtil.getUrlPrefix(urlWithoutWww).equals(baseUrl)) {\n System.out.println(urlWithoutWww);\n System.exit(0);\n } \n }\n catch (MalformedURLException mue) {\n System.out.println(\"Malformed URL: \" + mue);\n }\n System.out.println(url);\n System.exit(1);\n }", "String getDomain();", "public void setDomain(String domain) {\r\n this.domain = domain;\r\n }", "public static void traduitSiteAnglais() {\n\t\t\n\t}", "public static String getDomainName(String url) {\n if (url == null || url.isEmpty()) {\n return \"\";\n }\n \n String urlAddress = url.trim();\n String domainFull = \"?\";\n String domainError = \"?\";\n try {\n if (urlAddress.startsWith(\"file://\")) {\n return null;\n }\n\n // extract the full domain:\n if (urlAddress.startsWith(\"http\")) {\n URL urlObj = new URL(urlAddress);\n domainFull = urlObj.getHost();\n if (domainFull == null || domainFull.isEmpty()) {\n return urlAddress;\n }\n domainFull = domainFull.trim();\n } else {\n domainFull = urlAddress;\n }\n\n // Check for an ip address here:\n if (isIpAddress(domainFull)) {\n return domainFull;\n }\n\n // Extract the site domain. Below are references for valid endings:\n // http://en.wikipedia.org/wiki/CcTLD\n // http://en.wikipedia.org/wiki/Generic_top-level_domain\n // http://www.iana.org/domains/root/db/\n // http://www.net.cn/static/domain/\n String regex = \"\\\\.*([^.\\\\s]+)\\\\.(\" + \"biz|com|info|name|net|org|pro\" + \n // general\n \"|aero|asia|cat|coop|edu|gov|int|jobs|mil|mobi|museum|tel|travel\" + \n // sponsored\n \"|arpa|nato\" + \n // Infrastructure/Deleted/retired\n \"|example|invalid|localhost|test\" + \n // Reserved\n \"|bitnet|csnet|local|root|uucp|onion|exit\" + \n // Pseudo\n \"|berlin|lat|nyc|bcn|paris\" + \n // Locations\n \"|bzh|cym|eus|gal|lli|scot|sic\" + \n // Language and nationality\n \"|geo|mail\" + \n // Technical\n \"|kids|post|shop|web|xxx|eco|music\" + \n // Other\n \"|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi\" + \n \"|bj|bm|bn|bo|br|bs|bt|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cx\" + \n \"|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gd|ge|gf|gg\" + \n \"|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq\" + \n \"|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt\" + \n \"|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na\" + \n \"|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pn|pr|ps|pt|pw|py|qa\" + \n \"|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sk|sl|sm|sn|sr|st|su|sv|sy|sz|tc|td|tf\" + \n \"|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu\" + \n \"|wf|ws|ye|za|zm|zw\" + \n // country codes\n \"|um|bl|eh|mf|bv|gb|pm|sj|so|yt|tp|yu|bu|cs|dd|zr\" + \n // Others\n \"|xn--j1amh|xn--90ae|xn--p1ai\" + \n // Others punycode (укр,бг,рф)\n \"|xn--fiqs8s|xn--io0a7i|xn--55qx5d|xn--0zwm56d\" + \n // Others China punycode (中国,网络,公司,测试)\n \"|co\\\\.uk|org\\\\.uk|ac\\\\.uk|org\\\\.au|com\\\\.au|org\\\\.ru|cz\\\\.cc|com\\\\.nu|net\\\\.ru\" + \n \"|us\\\\.com|uk\\\\.com|eu\\\\.com|co\\\\.nz|net\\\\.nz|org\\\\.nz|co.\\\\tv\" + \n // dual codes (world)\n \"|com\\\\.cn|org\\\\.cn|gov\\\\.cn|edu\\\\.cn|net\\\\.cn|com\\\\.tw|com\\\\.hk|org\\\\.tw|co\\\\.jp\" + \n \"|com\\\\.sp|com\\\\.ar|com\\\\.my|com\\\\.mo|com\\\\.im |com\\\\.tw|com\\\\.hk|org\\\\.tw|co\\\\.jp\" + \n // dual codes (asia)\n \"|ac\\\\.cn|bj\\\\.cn|sh\\\\.cn|tj\\\\.cn|cq\\\\.cn|he\\\\.cn|sx\\\\.cn|nm\\\\.cn|ln\\\\.cn|jl\\\\.cn\" + \n \"|hl\\\\.cn|js\\\\.cn|zj\\\\.cn|ah\\\\.cn|fj\\\\.cn|jx\\\\.cn|sd\\\\.cn|ha\\\\.cn|hb\\\\.cn|hn\\\\.cn\" +\n \"|gd\\\\.cn|gx\\\\.cn|hi\\\\.cn|sc\\\\.cn|gz\\\\.cn|yn\\\\.cn|xz\\\\.cn|sn\\\\.cn|gs\\\\.cn|qh\\\\.cn\" +\n \"|nx\\\\.cn|xj\\\\.cn|tw\\\\.cn|hk\\\\.cn|mo\\\\.cn\" +\n // China city dual codes\n \")$\";\n\n String domainName = domainFull.toLowerCase();\n domainError = domainName;\n\n Pattern domainNamePattern = Pattern.compile(regex);\n Matcher m = domainNamePattern.matcher(domainName);\n if (m.find()) {\n domainName = m.group(0);\n if (domainName.length() > 0) {\n if (domainName.startsWith(\".\")) {\n return decodePunycode(domainName.substring(1));\n }\n return decodePunycode(domainName);\n }\n }\n return domainName;\n } catch (MalformedURLException e) {\n return urlAddress;\n } catch (PatternSyntaxException p) {\n return domainFull;\n } catch (IllegalStateException ise) {\n return domainError;\n } catch (IndexOutOfBoundsException ioe) {\n return domainError;\n }\n }", "public void setWebToCaseDefaultOrigin(java.lang.String webToCaseDefaultOrigin) {\n this.webToCaseDefaultOrigin = webToCaseDefaultOrigin;\n }", "@Test\n public void testSplitDomain1() {\n System.out.println(\"splitDomain1\");\n String domain = \"www.cars.example.co.uk\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"co.uk\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, \"www.cars\");\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "@Given(\"^the correct web address$\")\n\tpublic void the_correct_web_address() {\n\t \n\t}", "public static void main(String args[]){\n String pattern = \"/^(http(s)?(:\\\\/\\\\/))?(www\\\\.)?\\\\.(\\\\/.*)?$/\";\r\n String input = \"(http://www.archive.com/web/http://www.mrvc.indianrai.gov.in/overview)\";\r\n\r\n Matcher matcher = Pattern.compile(pattern).matcher(input);\r\n while (matcher.find()) {\r\n System.out.println(matcher.group());\r\n int start = matcher.start(1);\r\n int end = matcher.end(1);\r\n String result = input.substring(start,end).replaceFirst(\"www.\",\"\");\r\n if(result.startsWith(\"www.\") ){\r\n input.substring(start,end).replaceFirst(\"www.\",\"\");\r\n }else if(result.startsWith(\"ww2.\")){\r\n input.substring(start,end).replaceFirst(\"ww2.\",\"\");\r\n }else if(result.startsWith(\"web.\")){\r\n input.substring(start,end).replaceFirst(\"web.\",\"\");\r\n }\r\n System.out.println(result);\r\n\r\n }\r\n }", "protected String adjustHost(final String host) {\n if (host.startsWith(HTTP_PROTOCOL)) {\n return host.replace(HTTP_PROTOCOL, EMPTY_STRING);\n } else if (host.startsWith(HTTPS_PROTOCOL)) {\n return host.replace(HTTPS_PROTOCOL, EMPTY_STRING);\n }\n return host;\n }", "@Test\n public void testSplitDomain2() {\n System.out.println(\"splitDomain2\");\n String domain = \"example.com\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"com\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, null);\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "@Test\n public void testSplitDomain3() {\n System.out.println(\"splitDomain3\");\n String domain = \"www.example.com\";\n Map<URLParser.DomainParts, String> expResult = new HashMap<>();\n expResult.put(URLParser.DomainParts.TLD, \"com\");\n expResult.put(URLParser.DomainParts.DOMAINNAME, \"example\");\n expResult.put(URLParser.DomainParts.SUBDOMAIN, \"www\");\n \n \n Map<URLParser.DomainParts, String> result = URLParser.splitDomain(domain);\n assertEquals(expResult, result);\n }", "public String getDomainName(){\n return this.domainName;\n }", "public static String getDomainName(URL url) {\n\t\tDomainSuffixes tlds = DomainSuffixes.getInstance();\n\t\tString host = url.getHost();\n\t\t// it seems that java returns hostnames ending with .\n\t\tif (host.endsWith(\".\"))\n\t\t\thost = host.substring(0, host.length() - 1);\n\t\tif (IP_PATTERN.matcher(host).matches())\n\t\t\treturn host;\n\n\t\tint index = 0;\n\t\tString candidate = host;\n\t\tfor (; index >= 0;) {\n\t\t\tindex = candidate.indexOf('.');\n\t\t\tString subCandidate = candidate.substring(index + 1);\n\t\t\tif (tlds.isDomainSuffix(subCandidate)) {\n\t\t\t\treturn candidate;\n\t\t\t}\n\t\t\tcandidate = subCandidate;\n\t\t}\n\t\treturn candidate;\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void appUpdateBegin(String newAppNetworkUrl) {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "public boolean _paymentpage_overrideurl(String _url) throws Exception{\n__c.LogImpl(\"21114113\",_url,0);\n //BA.debugLineNum = 172;BA.debugLine=\"If Url.Contains(\\\"api.com\\\") Then\";\nif (_url.contains(\"api.com\")) { \n };\n //BA.debugLineNum = 175;BA.debugLine=\"Return True\";\nif (true) return __c.True;\n //BA.debugLineNum = 176;BA.debugLine=\"End Sub\";\nreturn false;\n}", "private static boolean isSpecialDomain(String domain) {\n/* 84 */ String ucDomain = domain.toUpperCase(Locale.ENGLISH);\n/* 85 */ return (ucDomain.endsWith(\".COM\") || ucDomain.endsWith(\".EDU\") || ucDomain.endsWith(\".NET\") || ucDomain.endsWith(\".GOV\") || ucDomain.endsWith(\".MIL\") || ucDomain.endsWith(\".ORG\") || ucDomain.endsWith(\".INT\"));\n/* */ }", "String rewriteUrl(String originalUrl);", "public void test9(HttpServletRequest request, BufferedReader reader) throws javax.servlet.ServletException, java.io.IOException {\n InetAddress addr = InetAddress.getByName(reader.readLine());\n\n if(addr.getCanonicalHostName().endsWith(\"trustme.com\")){ /* BUG */\n\n }\n }", "private static String handleUrl(String s) {\n if (s.endsWith(\"/..\")) {\n int idx = s.lastIndexOf('/');\n s = s.substring(0, idx - 1);\n idx = s.lastIndexOf('/');\n String gs = s.substring(0, idx);\n if (!gs.equals(\"smb:/\")) {\n s = gs;\n }\n }\n if (!s.endsWith(\"/\")) {\n s += \"/\";\n }\n System.out.println(\"now its \" + s);\n return s;\n }", "protected void setDomain(String domain) {\n this.domain = domain;\n }", "boolean isSite271(String url) {\n if (url.startsWith(\"http://pay.88vipbet.com/onlinePay\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "public String getDomain() {\r\n return domain;\r\n }", "private String getUrlHost(String url) {\n // httpx://host/.....\n\n int hostStart = url.indexOf(\"//\");\n if (hostStart == -1) {\n return \"\";\n }\n int hostEnd = url.indexOf(\"/\", hostStart + 2);\n if (hostEnd == -1) {\n return url.substring(hostStart + 2);\n } else {\n return url.substring(hostStart + 2, hostEnd);\n }\n\n }", "static String getNextDomain(String curDomain) {\n String nextDomain;\n\n int idxCheckedChar = curDomain.length() - 1; // right most character\n char checkedCh;\n\n while (idxCheckedChar >= 0) { // to the first character\n checkedCh = curDomain.charAt(idxCheckedChar);\n if (checkedCh < 'z') { //\n nextDomain = curDomain.substring(0, idxCheckedChar) + (char) (checkedCh + 1)\n + curDomain.substring(idxCheckedChar + 1);\n return nextDomain;\n } else { // last character reaches to 'z'\n // check the left side character\n idxCheckedChar--;\n }\n }\n nextDomain = curDomain + 'a';\n\n return nextDomain;\n }", "public void setDomainName(java.lang.String domainName) {\r\n this.domainName = domainName;\r\n }", "private String getDomain(String host){\n StringBuffer sb = new StringBuffer(\"\");\r\n try{\r\n StringTokenizer stk = new StringTokenizer(host, \".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(stk.nextToken());\r\n sb.append(\".\");\r\n sb.append(\"*\");\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n return sb.toString();\r\n }", "@Override\n\tpublic boolean isSafeOrigin(URL linkedURL) {\n\t\tURL base = getBaseURL();\n\t\tString docHost = base.getHost();\n\t\tint docPort = base.getPort();\n\t\tif (docPort == -1) {\n\t\t\tdocPort = base.getDefaultPort();\n\t\t}\n\t\tString linkedHost = linkedURL.getHost();\n\t\tint linkedPort = linkedURL.getPort();\n\t\tif (linkedPort == -1) {\n\t\t\tlinkedPort = linkedURL.getDefaultPort();\n\t\t}\n\t\treturn (docHost.equalsIgnoreCase(linkedHost) || linkedHost.endsWith(docHost)) && docPort == linkedPort;\n\t}", "public static String stripDomain(String user) {\n if (user.lastIndexOf(\"\\\\\") > -1) {\n user = user.substring(user.lastIndexOf(\"\\\\\")+1); \n }\n if (user.indexOf('@') > -1) {\n user = user.substring(0,user.indexOf('@')); \n }\n return user;\n }", "public void addDAppURL(String url)\n {\n\n String checkVal = url.replaceFirst(\"^(http[s]?://www\\\\.|http[s]?://|www\\\\.)\",\"\");\n for (String item : history)\n {\n if (item.contains(checkVal))\n {\n //replace with this new one\n history.remove(item);\n if (!history.contains(item))\n {\n history.add(0, url);\n }\n storeHistory();\n return;\n }\n }\n\n history.add(0, url);\n storeHistory();\n }", "public static void main(String[] args) throws Exception {\n\tPhishTankBlackList.main(args);\n\tstr=PhishTankBlackList.url();\n\tString mstr=str;\n\tmstr = mstr.replaceAll(\"http://www.\",\"\");\n\tmstr = mstr.replaceAll(\"http://\",\"\");\n\tmstr = mstr.replaceAll(\"https://www.\", \"\");\n\tmstr = mstr.split(\".com\")[0];\n\tmstr = mstr.split(\".in\")[0];\n\tmstr = mstr.split(\".net\")[0];\n\tmstr = mstr.split(\".org\")[0];\n\tmstr = mstr.split(\".uk\")[0];\n\tmstr = mstr.split(\".eu\")[0];\n\tmstr = mstr.split(\".ac.in\")[0];\n\tSystem.out.println(mstr);\n\tint fullLength = mstr.length();\n\tString modifiedString = mstr.replaceAll(\"\\\\p{Punct}\",\"\");\n\tint modStringLength = modifiedString.length();\n\tint numberOfSpecialChars = fullLength - modStringLength;\n\t//number of tokens in domain\n\tSystem.out.println(\"The number of tokens in the domain are\");\n\t\n\tSystem.out.println(numberOfSpecialChars);\n\tSystem.out.println(\"\");\n\tif(numberOfSpecialChars>3)\n\tSystem.out.println(\"Probably Phishing site\");\n\t\n\t\n\t\n\t\n\t//number of dots in domain\n\t\n int ctr=0;\n\tString newstr=mstr;\n\t\t\tfor(int i=0;i<newstr.length();i++)\n\t\t\t{ if(newstr.charAt(i)=='.')\n\t\t\t {ctr = ctr+1;}}\n\t\t\tSystem.out.println(\"number of dots in the domain of the URL\");\n\t\t\tSystem.out.println(ctr);\n\t\t\tif(ctr>=4)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Probably Phishing\");\n\t\t\t}\n\t\t\t/*ctr=0;\nmstr=mstr.replaceAll(\".\", \"\");\n\t\t String sb=mstr;\n\t\t \n\t\t sb.toCharArray();\n\t\t for(int i=0;i<sb.length();i++)\n\t\t {\n\t\t \n\t\t ctr=ctr+1;\n\t\t }\n\t\t System.out.println(\"The digits present in the domain\");\n\t\t System.out.println(ctr);\n\t\t \n\t\t \n\t\t if(ctr>4)\n\t\t {\n\t\t \tSystem.out.println(\"Probably Phishing\");\n\t\t }}\n\t\t \n\n\n\t\t\t */\n\t\t\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tSystem.out.println(\"Enter url: \");\n\t\tString url = scan.next();\n\t\t\n//1- check it that starts with www.\n\t\t\n\t\tif(url.startsWith(\"www.\")) {\n\t\t\tSystem.out.println(\"www. is present\");\n\t\t}else {\n\t\t\tSystem.out.println(\"Invalid url format\");\n\t\t\treturn;\n\t\t}\n\t\t\n//2- check it contains the ending dot (.) right before the extension\n\t\t// \t\texp. www.etsy.com 12-4'de . var\n\t\t\n\t\tint dotIndex = url.length()-4; //\t- find out the length of the url and do -4 and using chart get the character\n\t\t//url.lastIndexOf(\".\");\n\t\t\n\t\tif(url.charAt(dotIndex) == ( '.')) { // - compare if it is '.'\n\t\t\tSystem.out.println(\"Yes it contains (.) before extension\");\n\t\t}else {\n\t\t\tSystem.out.println(\". might be misplaced\");\n\t\t}\n\t\t/*\n\t\t * if (url.charAt(url.lengrh() - 4) == '.'){ //bu da ayni sonucu verir.\n\t\t * \n\t\t * } */\n\t\t\n/* 3- assign String domain and String extension.\n 4- print them\n\t\t\t\"Domain: \" amazon\n\t\t\t\"Extension: \" com\n\t\t */\n\t\t\n\t\tString domain = url.substring(4, dotIndex); //www.'dan dotIndex'e kadar sonasini okutuyoruz\n\t\tSystem.out.println(\"Domain: \" + domain);\n\t\tString extension = url.substring(dotIndex+1, url.length()); //dotIndex, -4'e gelmisti \n\t\t\t\t\t\t\t\t\t\t\t\t\t// (.' yi cikarmak icin +1 ekledik,\n\t\t\t\t\t\t\t\t\t\t\t\t\t// nereye kadar=> sonuna yani url.length()'e kadar\n\t\tSystem.out.println(\"Extension: \"+ extension);\n\t\t\n\t\t\n\t\t\n\t}", "public static void installHostNameVerifierNotValidatingSSLHostname()\n {\n HostnameVerifier hv = new HostnameVerifier()\n {\n @Override\n public boolean verify(String urlHostName, SSLSession session)\n {\n return true;\n }\n };\n HttpsURLConnection.setDefaultHostnameVerifier(hv);\n }", "public void changlink(String url2) {\n\t\t_webView.loadUrl(url2);\n\t}", "String getWebsite();", "public String getApplicationDomain()\n {\n ASPManager mgr = getASPManager();\n String curr_host = mgr.getCurrentHost();\n if(mgr.isDifferentApplicationPath())\n {\n int host_no = mgr.getCurrentHostIndex()+1;\n String[] data =Str.split((String)configfile.hosts.get(host_no+\"\"),\",\");\n \n if(!\"NONE\".equals(data[1]))\n curr_host = data[1];\n }\n\n return curr_host;\n }", "@Test\n\tpublic void testGetBaseUrlDomain() {\n\t\tString result = helper.getBaseUrl(\"http://www.bobbylough.com\");\n\t\tassertEquals(\"http://www.bobbylough.com\", result);\n\t}", "boolean isZXPay(String url) {\n if (url.startsWith(\"https://zhongxin.junka.com/\")) {\r\n return true;\r\n }\r\n return false;\r\n }", "public void setDomainNameValue(String domainNameValue) throws JNCException {\n setDomainNameValue(new YangString(domainNameValue));\n }", "private String extractHostFromDBUrl(String url) throws Exception {\n\t\tint start = url.indexOf(\"sid=\") + 4;\n\t\tif (start > 3) {\n\t\t\tint stop = url.indexOf(\")\", start);\n\t\t\tif (stop > -1) {\n\t\t\t\treturn url.substring(start, stop);\n\t\t\t}\n\t\t} else {\n\t\t\tlog.warn(\"Try to extract sid from short url\");\n\t\t\tstart = url.lastIndexOf(\":\") + 1;\n\t\t\tif (start > 0) {\n\t\t\t\treturn url.substring(start, url.length());\n\t\t\t}\n\t\t}\n\t\tthrow new Exception(\"Unable to extract the SID from the URL \" + url);\n\t}", "private String removeDMSSuffix(String key) {\r\n\t\tint suffixPos = key.lastIndexOf(\"#DMS#\");\r\n\t\tif (suffixPos != -1) {\r\n\t\t\treturn key.substring(0, suffixPos);\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public final static String transformUrl(String url) {\n \n int c = url.indexOf('?');\n if (c > -1) {\n url = url.substring(0, c);\n }\n \n // temporary work around to enable authorization on opendap URLs\n url = url.replace(\"dodsC\", \"fileServer\").replace(\".ascii\", \"\").replace(\".dods\", \"\").replace(\".das\", \"\").replace(\".ddds\", \"\");\n \n return url;\n }", "public void setDomainName(java.lang.String domainName) {\n this.domainName = domainName;\n }", "private boolean m14041a() {\n return this.f12187c.startsWith(\"https://\");\n }", "protected int chooseAppropriateDomainIndex(String originalDomain) {\n int domainIndex = 0;\n do {\n domainIndex = rnd.nextInt(replacements.size());\n } while (originalDomain.equals(replacements.get(domainIndex)));\n return domainIndex;\n }", "public void addDomainName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"domain-name\",\n null,\n childrenNames());\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "public void setDomain(Domain domain) {\n this.domain = domain;\n }", "private static String m35846a(String str) {\n StringBuilder sb = new StringBuilder(\"http://ib.snssdk.com\");\n sb.append(str);\n return sb.toString();\n }", "public String getBaseDomain(String url)\r\n\t{\r\n\t\tString host = getHost(url);\r\n\r\n\t\tint startIndex = 0;\r\n\t\tint nextIndex = host.indexOf('.');\r\n\t\tint lastIndex = host.lastIndexOf('.');\r\n\t\twhile (nextIndex < lastIndex)\r\n\t\t{\r\n\t\t\tstartIndex = nextIndex + 1;\r\n\t\t\tnextIndex = host.indexOf('.', startIndex);\r\n\t\t}\r\n\t\tif(startIndex > 0)\r\n\t\t{\r\n\t\t\treturn host.substring(startIndex);\r\n\t\t} else\r\n\t\t{\r\n\t\t\treturn host;\r\n\t\t}\r\n\t}", "@Override\n\tpublic void selectDomain(String domainName) {\t\t\t\n\t\tDomainFactory domainFactory=new DomainFactory();\n\t\tthis.problem.setDomainName(domainFactory.getDomain(domainName));\n\t\tthis.setChanged();\n\t\tthis.notifyObservers();\t\n\t\t\n\t}", "private void updateNotesDomainNames(List<String> userUnids) {\n final String METHOD = \"updateNotesDomainNames\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n\n int count = 0;\n for (String unid : userUnids) {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n\n NotesDocument doc = getDocumentByUnid(directoryDatabase, unid);\n if (doc == null) {\n LOGGER.log(Level.FINEST, \"Document [{0}] is not found in {1} database\",\n new Object[] {unid, getDatabaseFilePath(directoryDatabase)});\n } else {\n try {\n Vector fullNames = doc.getItemValue(NCCONST.PITM_FULLNAME);\n if (fullNames.size() == 0) {\n continue;\n }\n // Create domains/OUs as groups in H2 if not existed and \n // update domain cache\n List<String> canonicalOUs = notesDomainNames\n .computeExpandedWildcardDomainNames((String) fullNames.get(0));\n verifyMultiDomainsExist(canonicalOUs, true);\n } catch (RepositoryException re) {\n LOGGER.log(Level.WARNING, \n \"Failed to update Notes domain names for person document [\"\n + unid + \"]\", re);\n } finally {\n Util.recycle(doc);\n }\n }\n }\n\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINEST, \"Update Notes domain cache [{0}ms]: {1}\",\n new Object[] {(timeFinish - timeStart), notesDomainNames});\n LOGGER.exiting(CLASS_NAME, METHOD);\n }", "@Override\n public boolean shouldOverrideUrlLoading(WebView view, String url) {\n try {\n webview.loadUrl(\"http://www.sina.com/\");\n sleep(5);\n webview.loadUrl(\"http://www.163.com/\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n return true;\n }", "public void setProxyHost(java.lang.String newProxyHost)\r\n {\r\n System.out.println(\"Host: \" + newProxyHost);\r\n proxyHost = newProxyHost;\r\n }", "void removeIsNodeOf(Subdomain oldIsNodeOf);", "public Host renameHost(String hostName, String newHostName) {\n if (\"\".equals(hostName) || \"\".equals(newHostName)) {\n return null;\n }\n\n // Get Host\n Host host = site.getHost(hostName);\n\n // Remove Services and set Type and IP\n host.setHostName(newHostName);\n\n // Save Site\n saveSite();\n\n // Return updated Host\n return host;\n }", "public static String getDomainURL(String pageURL){\r\n\t\ttry{\r\n\t\t\tString[] splitpageurl = pageURL.split(\"/\");\r\n\t\t\treturn splitpageurl[0] + \"//\" + splitpageurl[2];\r\n\t\t\t\r\n\t\t}catch(Exception e){\r\n\t\t\tDebug.println(\"LINKSANITISER:GETDOMAINURL\", \"failed to get domain url from given url. probably bad url provided\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "synchronized String getFixedName(String originalName) {\r\n return originalNamesToFixedNames.get(originalName);\r\n }", "public void setSourceSite(String newsource) {\n sourceSite=newsource;\n }", "private String cleanHostHeader(String header) {\n String[] hostPieces = header.split(\":\")[1].split(\"\\\\.\");\n if(hostPieces.length > 2) {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-2]+\".\"+hostPieces[hostPieces.length-1]);\n } else {\n return \"Host: \"+(\"redacted.\"+hostPieces[hostPieces.length-1]);\n }\n }", "public void unsetFullDomainNameValue() throws JNCException {\n delete(\"full-domain-name\");\n }", "public String getDomainName() {\n return domainName;\n }", "public String getDomain() {\n return domain;\n }", "public String getDomain() {\n return domain;\n }", "private String prependServerDot(String s) {\n\n final String namedot = serverEnv.getInstanceName() + \".\";\n\n if(s.startsWith(namedot))\n return s;\n\n return namedot + s;\n }", "@Test\n public void shouldNotAllowSubdomainsWhenLinkingFromOutside() {\n assertFalse(sutHttp.shouldCrawl(create(\"http://anotherHost\"), create(\"http://sub.host\")));\n }", "@Test\n public void shouldNotCrawlEntirelyDifferentDomains() {\n assertFalse(sutHttp.shouldCrawl(BASE_HTTP, create(\"http://differentHost\")));\n }", "@Override\n public void update() { Ping the connection to see if it is still alive. At\n // some point the ProxyClient class should centralize\n // the connection aliveness monitoring and no longer\n // rely on the custom tabs to ping the connections.\n //\n try {\n getMBeanServerConnection().getDefaultDomain();\n } catch (IOException ex) {\n vmPanel.getProxyClient().markAsDead();\n }\n }", "@Override\r\n public String[] siteSupportedNames() {\r\n return new String[] { \"nowdownload.to\", \"nowdownload.eu\", \"nowdownload.co\", \"nowdownload.ag\", \"nowdownload.at\", \"nowdownload.ec\" };\r\n }", "public void changeUrl() {\n url();\n }", "private static String fixRemoteAddress(String remoteAddress) {\n if (remoteAddress.contains(\"%\")) {\n remoteAddress = remoteAddress.substring(0, remoteAddress.indexOf(\"%\"));\n }\n return remoteAddress;\n }", "public URL standardizeURL(URL startingURL);", "private static void fillSourceSite() {\r\n\t\tsourceSites.add(\"http://hom.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.nfe.fazenda.gov.br/portal/WebServices.aspx\");\r\n\t\tsourceSites.add(\"http://www.cte.fazenda.gov.br/webservices.aspx\");\r\n\t\tsourceSites.add(\"http://hom.cte.fazenda.gov.br/webservices.aspx\");\r\n\t\tsourceSites.add(\"https://mdfe-portal.sefaz.rs.gov.br/Site/Servicos\");\r\n\t}", "public void addFullDomainName() throws JNCException {\n setLeafValue(Epc.NAMESPACE,\n \"full-domain-name\",\n null,\n childrenNames());\n }", "public void clickIAlreadyOwnThisDomain()\n\t{\n\t\tdriver.findElement(_iOwnThisDomain).click();\n\t\tlog.info(\"Switched to I Already Own This Domain Tab\");\n\t}", "private String getDnsDomain() throws UnknownHostException\r\n {\r\n // get dns domain\r\n String lDnsDomain = null;\r\n\r\n if ( lDnsDomain == null ) {\r\n String lLocalhost = InetAddress.getLocalHost().getCanonicalHostName();\r\n String[] lParts = lLocalhost.split( \"[.]\" );\r\n if ( lParts.length > 1 )\r\n lDnsDomain = lParts[ lParts.length - 2 ] + \".\" + lParts[ lParts.length - 1 ];\r\n }\r\n\r\n return (lDnsDomain);\r\n }", "@Override\n\t\tpublic void ipChange() {\n\t\t\t\n\t\t}", "@SuppressWarnings(\"unused\")\n\tprivate static String resolveURL(String dnsServer, String serviceName) throws UnknownHostException {\n\t\tSystem.setProperty(\"sun.net.spi.nameservice.nameservers\", dnsServer);\n\t\tSystem.setProperty(\"sun.net.spi.nameservice.provider.1\", \"dns,sun\");\n\t\tInetAddress[] inetAddressArray = InetAddress.getAllByName(serviceName);\n\t\tif (inetAddressArray.length == 0) throw new UnknownHostException(\"Cannot resolve service name: \" + serviceName + \" using DNS: \" + dnsServer);\n\t\treturn inetAddressArray[0].getHostAddress();\n\t}", "@Override\n\tpublic void onTenantRename(int tenantId, String oldDomainName,\n String newDomainName) throws StratosException {\n\t}", "private void setKlarosUrl(final String value) {\n\n klarosUrl = value;\n }", "public boolean updatePage( URL url ) {\n\n\t\tString domain = url.getHost();\n\t\tif (sed == null || !sed.getDomain().equalsIgnoreCase(domain)) {\n\t\t\t// if (sed != null)\n\t\t\t// sed.unloadData();\n\t\t\tsed = SiteEfficiencyData.getForDomain(domain);\n\t\t\tif (!sed.isLoaded())\n\t\t\t\tsed.loadData();\n\t\t\tif (sed.isLoaded())\n\t\t\t\tmaid = sed.newMouseData();\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\tSystem.out.println(sed);\n\t\t\tSystem.out.println(maid);\n\t\t}\n\t\treturn true;\n\t}" ]
[ "0.6327436", "0.6118917", "0.5970932", "0.58628035", "0.56276953", "0.54666644", "0.545162", "0.5428522", "0.53649974", "0.53489244", "0.5328171", "0.5326675", "0.53062236", "0.52897495", "0.528562", "0.52613175", "0.52443814", "0.5178291", "0.5132788", "0.5120124", "0.5108924", "0.5106657", "0.5105267", "0.5076146", "0.50630116", "0.5033576", "0.5031841", "0.49814802", "0.49770662", "0.49695554", "0.49468693", "0.49382466", "0.49259287", "0.48976314", "0.48939136", "0.4877668", "0.4860192", "0.485636", "0.48460314", "0.4838581", "0.4827253", "0.48249838", "0.4823632", "0.48224482", "0.48098403", "0.4800685", "0.47956812", "0.47897354", "0.4780696", "0.4780067", "0.47750187", "0.47749826", "0.47657368", "0.4762418", "0.47480732", "0.4740923", "0.47403207", "0.47314236", "0.47285885", "0.47263795", "0.47190395", "0.47186372", "0.47058663", "0.47024578", "0.46985206", "0.46975857", "0.46975857", "0.4696768", "0.46934947", "0.4691561", "0.46912447", "0.46908635", "0.46823543", "0.46779153", "0.46755925", "0.4661973", "0.46617508", "0.46543023", "0.46508178", "0.4650167", "0.4644403", "0.46304122", "0.46304122", "0.46207342", "0.46110684", "0.46049014", "0.45980275", "0.4597503", "0.45758897", "0.45702475", "0.45689368", "0.45680946", "0.45621333", "0.45599332", "0.4559895", "0.45591393", "0.4549669", "0.45347148", "0.4533216", "0.45316172" ]
0.55915844
5
TODO Autogenerated method stub
public boolean approveAppointment() { Set <String> set=(HealthCareDAO.map).keySet(); int count=1; for(String s:set) { System.out.println("You have a center "+map.get(s).getCenterName() +"--"+"Center and id is "+s); count++; } System.out.println("Enter Center id :"); String str=scan.next(); DiagnoisticCenter center=HealthCareDAO.map.get(str); //get Diagonistic object of given key List<Appointment> l=center.getAppointmentList(); //System.out.println(l); int y=1; for(Appointment a:l) { System.out.println("Enter Approval or disapproval"); boolean decision=scan.nextBoolean() ; a.setApproved(decision); if(a.isApproved()==true) { System.out.println("Appointment id number "+a.getAppointmentid()+"---is Approved");} else {System.out.println("Appointment id number "+a.getAppointmentid()+"---is not Approved");} y++; if(y>3) break; } center.setAppointmentList(l); System.out.println("Appointment List count :"+l.size()); 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
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { DataGetter getter = new DataGetter(DatabaseAccounts.PROJECT); BoardViewRegisterBean boardcontent = getter.getBoardView(Integer.parseInt(request.getParameter("num"))); request.setAttribute("boardcontent", boardcontent); getter.close(); RequestDispatcher dispatcher = request.getRequestDispatcher("/study/each/board/boardModify.jsp"); dispatcher.forward(request, response); }
{ "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
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { DataGetter getter = new DataGetter(DatabaseAccounts.PROJECT); System.out.println("BoardModify 서블릿으로 들어옴"); String studyName = (String) request.getAttribute("studyName"); int studyIndex = getter.getStudyIndex(studyName); BoardViewRegisterBean boardmodify = new BoardViewRegisterBean(); boardmodify.setTitle(request.getParameter("boardSubject")); boardmodify.setContent(request.getParameter("boardContent")); boardmodify.setDate(request.getParameter("boardDate")); boardmodify.setFilename(request.getParameter("fileName")); boardmodify.setIndex(Integer.parseInt(request.getParameter("num"))); DataPoster poster = new DataPoster(DatabaseAccounts.PROJECT); int boardnum = Integer.parseInt(request.getParameter("num")); poster.postBoardModify(boardmodify, studyIndex); response.sendRedirect("view" + "?num=" + boardnum); poster.close(); getter.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { int i = 1; do { System.out.println("i = "+i); i++; }while(i<=10); System.out.println("Outside the lopp"); /* * do { System.out.println("i = "+i); i++; * * }while(true); System.out.println("Outside the loop"); */ }
{ "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
/ access modifiers changed from: protected
public String getActualCriteria(GLState pGLState) { return Build.MODEL; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { new Menu(); }
{ "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 actionPerformed(ActionEvent m) { if(m.getSource()==test) { System.out.println("Final test"); frame.dispose(); new FinalMenu(); } if(m.getSource()==history) { System.out.println("History"); frame.dispose(); new Sampleid(); } if(m.getSource()==logout) { int a=JOptionPane.showConfirmDialog(frame, "Do you want Logout"); if(a==JOptionPane.YES_OPTION){ JOptionPane.showMessageDialog(frame, "Logged out successfully!!!"); frame.dispose(); new LoginPage(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Get the channel for using the http connection
public Channel getChannel() throws ConnectException { return getChannel(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SocketChannel getChannel();", "java.lang.String getChannel();", "protected Channel getChannel()\n {\n return mChannel;\n }", "public Channel getChannel()\n {\n return channel;\n }", "Channel channel() {\n return channel;\n }", "@Override\n public int getChannel()\n {\n return channel;\n }", "public Channel getChannel() {\n return channel;\n }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "EzyChannel getChannel();", "public String getChannel() {\r\n return channel;\r\n }", "public String getChannel() {\n return channel;\n }", "public SocketChannel getChannel() {\n return channel;\n }", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public int getChannel() {\n return channel;\n }", "public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public int GetChannel();", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public Byte getChannel() {\n return channel;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n }\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "String getServerConnectionChannelName();", "public SocketChannel getChannel() { return null; }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n }\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Channel getChannel(Long timeout) throws ConnectException\n {\n if (channel == null && connectFuture != null) //first call after connection attempt\n {\n NettyHelper.awaitUninterruptibly(connectFuture, timeout);\n if (!connectFuture.isSuccess())\n {\n ConnectException ce = NativeMessages.MESSAGES.couldNotConnectTo(url.getHost());\n ce.initCause(connectFuture.getCause());\n throw ce;\n }\n channel = connectFuture.getChannel();\n }\n return channel;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ChannelFuture getChannelFuture() {\n return channelFuture;\n }", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n return channel_.get(index);\n }", "public String getChannelData()\n {\n System.setProperty(\"http.keepAlive\", \"false\");\n HttpParams httpParameters = new BasicHttpParams();\n\n int timeoutConnection = 60000 * 20;\n HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\n int timeoutSocket = 60000 * 20;\n HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n HttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n HttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\n DefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n String link = \"https://api.hkgalden.com/f/\";\n\n System.out.println(\"link :\" + link);\n\n HttpGet httppost = new HttpGet(link);\n\n httppost.addHeader(\"X-GALAPI-KEY\",\"d9b511eb952d7da22e7d575750766bb5807a8bd0\");\n\n httppost.setHeader(\"Cache-Control\", \"no-cache\");\n\n try {\n System.out.println(\"Response:\"+ \"start execute\");\n HttpResponse response = httpclient.execute(httppost);\n System.out.println(\"Response:\"+response.getStatusLine().getStatusCode());\n HttpEntity getResponseEntity = response.getEntity();\n InputStream httpResponseStream = getResponseEntity.getContent();\n String result = slurp(httpResponseStream , 8192);\n return result;\n\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n return e.getMessage();\n } catch (ConnectTimeoutException e){\n e.printStackTrace();\n return e.getMessage();\n }catch (IOException e) {\n e.printStackTrace();\n return e.getMessage();\n }\n }", "public interface HttpChannel extends NettyChannel, HttpOutbound, HttpInbound {\n\n\t/**\n\t * add the passed cookie\n\t * @return this\n\t */\n\tHttpChannel addResponseCookie(Cookie cookie);\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t * @return\n\t */\n\tHttpChannel addResponseHeader(CharSequence name, CharSequence value);\n\n\t/**\n\t *\n\t * @param key\n\t * @return\n\t */\n\tObject param(CharSequence key);\n\n\t/**\n\t *\n\t * @return\n\t */\n\tMap<String, Object> params();\n\n\t/**\n\t *\n\t * @param headerResolver\n\t * @return\n\t */\n\tHttpChannel paramsResolver(Function<? super String, Map<String, Object>> headerResolver);\n\n\t/**\n\t *\n\t */\n\tHttpChannel responseTransfer(boolean chunked);\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t * @return\n\t */\n\tHttpChannel responseHeader(CharSequence name, CharSequence value);\n\n\t/**\n\t *\n\t * @return\n\t */\n\tHttpChannel sse();\n\n\t/**\n\t *\n\t * @param status\n\t * @return\n\t */\n\tHttpChannel status(HttpResponseStatus status);\n\n\t/**\n\t *\n\t * @param status\n\t * @return\n\t */\n\tdefault HttpChannel status(int status){\n\t\treturn status(HttpResponseStatus.valueOf(status));\n\t}\n\n\n}", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n if (channelBuilder_ == null) {\n return channel_.get(index);\n } else {\n return channelBuilder_.getMessage(index);\n }\n }", "WebSocketConnection getWebSocketConnection();", "@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract Channel getChannel(String name);", "public String getChannel() {\n if(this.isRFC2812())\n return this.getNumericArg(1);\n else\n return this.getNumericArg(0);\n }", "public final int getChannel() {\n return device.getChannel();\n }", "public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}", "java.lang.String getChannelName();", "public String getChannelId()\n {\n return channelId;\n }", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "public ChannelLogger getChannelLogger() {\n return this.channelLogger;\n }", "public int getChannelId( ) {\r\n return channelId;\r\n }", "public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}", "public ChannelGroup getConnections();", "public NotificationsChannel getChannel(String channelId) throws Exception;", "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public ChannelLocator getChannelLocator();", "java.lang.String getChannelToken();", "java.lang.String getChannelToken();", "public String getChannelId() {\n return channelId;\n }", "public Channel getChannel(String queue) {\r\n try {\r\n channelLock.lock();\r\n if (!channels.containsKey(queue)) {\r\n start(queue);\r\n }\r\n return channels.get(queue);\r\n } finally {\r\n channelLock.unlock();\r\n }\r\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public org.apache.axis.types.UnsignedInt getChannel() {\n return channel;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ChannelType getChannelType() {\n return type;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static ManagedChannel getManagedChannel(int port) {\n return ManagedChannelBuilder.forAddress(\"localhost\", port)\n .usePlaintext(true)\n .build();\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private SmartCardChannel getChannel() throws UsbDeviceException, NotAvailableUSBDeviceException{\n\t\tif(this.channel != null){\n\t\t\treturn this.channel;\n\t\t}\n\t\tif(getUsbInterface() != null){\n\t\t\tif (!getUsbDeviceConnection().claimInterface(getUsbInterface(), true)) {\n\t\t\t\tthrow new NotAvailableUSBDeviceException(\"Imposible acceder al interfaz del dispositivo USB\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\tthis.channel = new SmartCardChannel(getUsbDeviceConnection(), getUsbInterface());\n\t\t\treturn this.channel;\n\t\t}\n\t\tthrow new UsbDeviceException(\"usbInterface cannot be NULL\"); //$NON-NLS-1$\n\t}", "@Override\n\tpublic int getChannel() {\n\t\treturn super.getDeviceID();\n\t}", "public ChannelID getChannelID() {\n return channelID1;\n }", "com.google.protobuf.ByteString\n getChannelBytes();", "public DmaChannel getChannelAt(int i);", "@java.lang.Override\n public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}", "@java.lang.Override public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public SlackChannel getPublicChannel() {\n return gameChannel;\n }", "public Integer getChannelid() {\n return channelid;\n }", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "public final String getChannelNumber() {\n\t\treturn impl.getChannelNumber();\n }", "public URLConnection getConnection(){\n return this.mConnection;\n }", "public Channel getCurrentDataChannel() throws FtpNoConnectionException {\n if (dataChannel == null) {\n throw new FtpNoConnectionException(\"No Data Connection active\");\n }\n return dataChannel;\n }", "@Override\n public List<Channel> getChannels() {\n List<Channel> channels = new ArrayList<>();\n channels.add(Channels.NICK_CHANNEL);\n return channels;\n }", "public VideoChannel getVideoChannel()\n {\n WeakReference<VideoChannel> wvc = this.weakVideoChannel;\n return wvc != null ? wvc.get() : null;\n }", "public TextChannel getSupportChannel() { return supportChannel; }", "public String getChannelId() {\n\t\treturn channelId;\n\t}", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public String getCHANNEL_ID() {\n return CHANNEL_ID;\n }", "public SelectableChannel getHandle() {\n return this._handle;\n }", "public String getChannelCode() {\n return channelCode;\n }", "public String getChannelUrl()\n {\n return getProvider() != null ? String.format(getProvider().channelUrl(), channelId) : null;\n }", "public URLConnection getConnection() {\n return this.urlConnection;\n }", "public int getChannelType( ) {\r\n return 1;\r\n }", "com.google.ads.googleads.v14.common.YouTubeChannelInfo getYoutubeChannel();", "public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}", "public Connection(Channel channel) {\r\n this.channel = channel;\r\n }", "public Integer getChannelCode() {\n return channelCode;\n }", "@Override\n\tpublic User getChannel() {\n\t\treturn null;\n\t}", "public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n return channel_.get(index);\n }", "public Connection ObtenirConnexion(){return cn;}" ]
[ "0.75204355", "0.73981816", "0.72842175", "0.7265881", "0.72518027", "0.70962965", "0.7080786", "0.70726866", "0.7059956", "0.7046256", "0.7016991", "0.7015092", "0.6973394", "0.6968245", "0.6894513", "0.68196577", "0.67680746", "0.67680746", "0.6748005", "0.6731142", "0.6716552", "0.6666206", "0.6640948", "0.6586531", "0.65808743", "0.6552466", "0.6542248", "0.6536376", "0.65143156", "0.6472767", "0.6462943", "0.6441498", "0.643791", "0.6399758", "0.63906616", "0.6352878", "0.6351727", "0.62752163", "0.6173025", "0.61716425", "0.61680114", "0.61253595", "0.6125198", "0.6114144", "0.6084006", "0.6080327", "0.60634804", "0.60465026", "0.6045642", "0.60410047", "0.5994741", "0.5963103", "0.59600365", "0.59564555", "0.5953866", "0.59445524", "0.5919669", "0.5919669", "0.5907858", "0.5899675", "0.58994645", "0.5891617", "0.58867776", "0.5850355", "0.584264", "0.5836998", "0.58266234", "0.5812994", "0.5792289", "0.5781932", "0.57705134", "0.57636887", "0.57598525", "0.5759594", "0.5758227", "0.5756775", "0.574634", "0.5743506", "0.57154316", "0.57047343", "0.5704261", "0.5697496", "0.56929094", "0.56885904", "0.568842", "0.5665574", "0.5661224", "0.5653216", "0.5645548", "0.56202424", "0.5596776", "0.5596335", "0.55953187", "0.55918795", "0.5583351", "0.5573129", "0.5562069", "0.55512005", "0.5543055", "0.55369335" ]
0.7090176
6
Get the channel for using the http connection
public Channel getChannel(Long timeout) throws ConnectException { if (channel == null && connectFuture != null) //first call after connection attempt { NettyHelper.awaitUninterruptibly(connectFuture, timeout); if (!connectFuture.isSuccess()) { ConnectException ce = NativeMessages.MESSAGES.couldNotConnectTo(url.getHost()); ce.initCause(connectFuture.getCause()); throw ce; } channel = connectFuture.getChannel(); } return channel; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "SocketChannel getChannel();", "java.lang.String getChannel();", "protected Channel getChannel()\n {\n return mChannel;\n }", "public Channel getChannel()\n {\n return channel;\n }", "Channel channel() {\n return channel;\n }", "@Override\n public int getChannel()\n {\n return channel;\n }", "public Channel getChannel() throws ConnectException\n {\n return getChannel(null);\n }", "public Channel getChannel() {\n return channel;\n }", "public Channel getChannel()\n\t{\n\t\treturn channel;\n\t}", "EzyChannel getChannel();", "public String getChannel() {\r\n return channel;\r\n }", "public String getChannel() {\n return channel;\n }", "public SocketChannel getChannel() {\n return channel;\n }", "private SocketChannel getChannel(){\n if ( key == null ) {\n return getSocket().getChannel();\n } else {\n return (SocketChannel)key.channel();\n }\n }", "public Channel getChannel() {\r\n\t\treturn channel;\r\n\t}", "public int getChannel() {\n return channel;\n }", "public String getChannel() {\r\n\t\treturn this.channel;\r\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public String getChannel() {\n\t\treturn channel;\n\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public Channel channel()\r\n/* 36: */ {\r\n/* 37: 68 */ return this.channel;\r\n/* 38: */ }", "public int getChannel() {\r\n\t\treturn channel;\r\n\t}", "public ChannelManager getChannelManager() {\n return channelMgr;\n }", "public int GetChannel();", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "public Byte getChannel() {\n return channel;\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n }\n }", "protected SocketChannel getSocket() {\n\t\treturn channel;\n\t}", "@objid (\"1bb2731c-131f-497d-9749-1f4f1e705acb\")\n Link getChannel();", "String getServerConnectionChannelName();", "public SocketChannel getChannel() { return null; }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n }\n }", "org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel();", "private ManagedChannel getManagedChannel() {\n return ManagedChannelBuilder.forAddress(\"localhost\", mGrpcPortNum)\n .usePlaintext()\n .build();\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n channel_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getChannel() {\n java.lang.Object ref = channel_;\n if (!(ref instanceof java.lang.String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n channel_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public ChannelFuture getChannelFuture() {\n return channelFuture;\n }", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n return channel_.get(index);\n }", "public String getChannelData()\n {\n System.setProperty(\"http.keepAlive\", \"false\");\n HttpParams httpParameters = new BasicHttpParams();\n\n int timeoutConnection = 60000 * 20;\n HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\n int timeoutSocket = 60000 * 20;\n HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n HttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n HttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\n DefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n String link = \"https://api.hkgalden.com/f/\";\n\n System.out.println(\"link :\" + link);\n\n HttpGet httppost = new HttpGet(link);\n\n httppost.addHeader(\"X-GALAPI-KEY\",\"d9b511eb952d7da22e7d575750766bb5807a8bd0\");\n\n httppost.setHeader(\"Cache-Control\", \"no-cache\");\n\n try {\n System.out.println(\"Response:\"+ \"start execute\");\n HttpResponse response = httpclient.execute(httppost);\n System.out.println(\"Response:\"+response.getStatusLine().getStatusCode());\n HttpEntity getResponseEntity = response.getEntity();\n InputStream httpResponseStream = getResponseEntity.getContent();\n String result = slurp(httpResponseStream , 8192);\n return result;\n\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n return e.getMessage();\n } catch (ConnectTimeoutException e){\n e.printStackTrace();\n return e.getMessage();\n }catch (IOException e) {\n e.printStackTrace();\n return e.getMessage();\n }\n }", "public interface HttpChannel extends NettyChannel, HttpOutbound, HttpInbound {\n\n\t/**\n\t * add the passed cookie\n\t * @return this\n\t */\n\tHttpChannel addResponseCookie(Cookie cookie);\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t * @return\n\t */\n\tHttpChannel addResponseHeader(CharSequence name, CharSequence value);\n\n\t/**\n\t *\n\t * @param key\n\t * @return\n\t */\n\tObject param(CharSequence key);\n\n\t/**\n\t *\n\t * @return\n\t */\n\tMap<String, Object> params();\n\n\t/**\n\t *\n\t * @param headerResolver\n\t * @return\n\t */\n\tHttpChannel paramsResolver(Function<? super String, Map<String, Object>> headerResolver);\n\n\t/**\n\t *\n\t */\n\tHttpChannel responseTransfer(boolean chunked);\n\n\t/**\n\t *\n\t * @param name\n\t * @param value\n\t * @return\n\t */\n\tHttpChannel responseHeader(CharSequence name, CharSequence value);\n\n\t/**\n\t *\n\t * @return\n\t */\n\tHttpChannel sse();\n\n\t/**\n\t *\n\t * @param status\n\t * @return\n\t */\n\tHttpChannel status(HttpResponseStatus status);\n\n\t/**\n\t *\n\t * @param status\n\t * @return\n\t */\n\tdefault HttpChannel status(int status){\n\t\treturn status(HttpResponseStatus.valueOf(status));\n\t}\n\n\n}", "public io.grpc.channelz.v1.Channel getChannel(int index) {\n if (channelBuilder_ == null) {\n return channel_.get(index);\n } else {\n return channelBuilder_.getMessage(index);\n }\n }", "WebSocketConnection getWebSocketConnection();", "@PreAuthorize(\"hasRole('superman')\")\n\tpublic abstract Channel getChannel(String name);", "public String getChannel() {\n if(this.isRFC2812())\n return this.getNumericArg(1);\n else\n return this.getNumericArg(0);\n }", "public final int getChannel() {\n return device.getChannel();\n }", "public String getChannelName()\r\n\t{\r\n\t\treturn this.sChannelName;\r\n\t}", "java.lang.String getChannelName();", "public String getChannelId()\n {\n return channelId;\n }", "public ReadableByteChannel getByteChannel() throws IOException {\n InputStream source = getInputStream();\n \n if(source != null) {\n return Channels.newChannel(source);\n }\n return null;\n }", "public ChannelLogger getChannelLogger() {\n return this.channelLogger;\n }", "public int getChannelId( ) {\r\n return channelId;\r\n }", "public String getSubChannel() {\r\n\t\treturn this.subChannel;\r\n\t}", "public ChannelGroup getConnections();", "public NotificationsChannel getChannel(String channelId) throws Exception;", "public interface ChannelConnection {\n public Channel getChannel();\n public Connector getConnector();\n}", "public ChannelLocator getChannelLocator();", "java.lang.String getChannelToken();", "java.lang.String getChannelToken();", "public String getChannelId() {\n return channelId;\n }", "public Channel getChannel(String queue) {\r\n try {\r\n channelLock.lock();\r\n if (!channels.containsKey(queue)) {\r\n start(queue);\r\n }\r\n return channels.get(queue);\r\n } finally {\r\n channelLock.unlock();\r\n }\r\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public org.apache.axis.types.UnsignedInt getChannel() {\n return channel;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ChannelType getChannelType() {\n return type;\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private static ManagedChannel getManagedChannel(int port) {\n return ManagedChannelBuilder.forAddress(\"localhost\", port)\n .usePlaintext(true)\n .build();\n }", "public com.google.protobuf.ByteString\n getChannelBytes() {\n java.lang.Object ref = channel_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n channel_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "private SmartCardChannel getChannel() throws UsbDeviceException, NotAvailableUSBDeviceException{\n\t\tif(this.channel != null){\n\t\t\treturn this.channel;\n\t\t}\n\t\tif(getUsbInterface() != null){\n\t\t\tif (!getUsbDeviceConnection().claimInterface(getUsbInterface(), true)) {\n\t\t\t\tthrow new NotAvailableUSBDeviceException(\"Imposible acceder al interfaz del dispositivo USB\"); //$NON-NLS-1$\n\t\t\t}\n\t\t\tthis.channel = new SmartCardChannel(getUsbDeviceConnection(), getUsbInterface());\n\t\t\treturn this.channel;\n\t\t}\n\t\tthrow new UsbDeviceException(\"usbInterface cannot be NULL\"); //$NON-NLS-1$\n\t}", "@Override\n\tpublic int getChannel() {\n\t\treturn super.getDeviceID();\n\t}", "public ChannelID getChannelID() {\n return channelID1;\n }", "com.google.protobuf.ByteString\n getChannelBytes();", "public DmaChannel getChannelAt(int i);", "@java.lang.Override\n public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "public String getChannelId()\r\n\t{\r\n\t\treturn this.sChannelId;\r\n\t}", "@java.lang.Override public org.apache.drill.exec.proto.UserBitShared.RpcChannel getChannel() {\n @SuppressWarnings(\"deprecation\")\n org.apache.drill.exec.proto.UserBitShared.RpcChannel result = org.apache.drill.exec.proto.UserBitShared.RpcChannel.valueOf(channel_);\n return result == null ? org.apache.drill.exec.proto.UserBitShared.RpcChannel.BIT_DATA : result;\n }", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public SlackChannel getPublicChannel() {\n return gameChannel;\n }", "public Integer getChannelid() {\n return channelid;\n }", "protected Channel createChannel() throws IOException, TimeoutException, NoSuchAlgorithmException {\n LOGGER.debug(\"Creating channel\");\n Channel channel = connectionProducer.getConnection(config).createChannel();\n LOGGER.debug(\"Created channel\");\n return channel;\n }", "public final String getChannelNumber() {\n\t\treturn impl.getChannelNumber();\n }", "public URLConnection getConnection(){\n return this.mConnection;\n }", "public Channel getCurrentDataChannel() throws FtpNoConnectionException {\n if (dataChannel == null) {\n throw new FtpNoConnectionException(\"No Data Connection active\");\n }\n return dataChannel;\n }", "@Override\n public List<Channel> getChannels() {\n List<Channel> channels = new ArrayList<>();\n channels.add(Channels.NICK_CHANNEL);\n return channels;\n }", "public VideoChannel getVideoChannel()\n {\n WeakReference<VideoChannel> wvc = this.weakVideoChannel;\n return wvc != null ? wvc.get() : null;\n }", "public TextChannel getSupportChannel() { return supportChannel; }", "public String getChannelId() {\n\t\treturn channelId;\n\t}", "private Connection getConn(){\n \n return new util.ConnectionPar().getConn();\n }", "public String getCHANNEL_ID() {\n return CHANNEL_ID;\n }", "public SelectableChannel getHandle() {\n return this._handle;\n }", "public String getChannelCode() {\n return channelCode;\n }", "public String getChannelUrl()\n {\n return getProvider() != null ? String.format(getProvider().channelUrl(), channelId) : null;\n }", "public URLConnection getConnection() {\n return this.urlConnection;\n }", "public int getChannelType( ) {\r\n return 1;\r\n }", "com.google.ads.googleads.v14.common.YouTubeChannelInfo getYoutubeChannel();", "public Channel connect() {\n\t\tChannelFuture channel = bootstrap.connect(new InetSocketAddress(host, port));\n\n\t\t// wait for the connection to establish\n\t\tchannel.awaitUninterruptibly();\n\n\t\tif (channel.isDone() && channel.isSuccess()) {\n\t\t\treturn channel.getChannel();\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}\n\t}", "public Connection(Channel channel) {\r\n this.channel = channel;\r\n }", "public Integer getChannelCode() {\n return channelCode;\n }", "@Override\n\tpublic User getChannel() {\n\t\treturn null;\n\t}", "public io.grpc.channelz.v1.ChannelOrBuilder getChannelOrBuilder(\n int index) {\n return channel_.get(index);\n }", "public Connection ObtenirConnexion(){return cn;}" ]
[ "0.75204355", "0.73981816", "0.72842175", "0.7265881", "0.72518027", "0.70962965", "0.7090176", "0.7080786", "0.70726866", "0.7059956", "0.7046256", "0.7016991", "0.7015092", "0.6973394", "0.6968245", "0.6894513", "0.68196577", "0.67680746", "0.67680746", "0.6748005", "0.6731142", "0.6716552", "0.6666206", "0.6640948", "0.6586531", "0.65808743", "0.6552466", "0.6542248", "0.6536376", "0.65143156", "0.6472767", "0.6462943", "0.6441498", "0.643791", "0.6399758", "0.6352878", "0.6351727", "0.62752163", "0.6173025", "0.61716425", "0.61680114", "0.61253595", "0.6125198", "0.6114144", "0.6084006", "0.6080327", "0.60634804", "0.60465026", "0.6045642", "0.60410047", "0.5994741", "0.5963103", "0.59600365", "0.59564555", "0.5953866", "0.59445524", "0.5919669", "0.5919669", "0.5907858", "0.5899675", "0.58994645", "0.5891617", "0.58867776", "0.5850355", "0.584264", "0.5836998", "0.58266234", "0.5812994", "0.5792289", "0.5781932", "0.57705134", "0.57636887", "0.57598525", "0.5759594", "0.5758227", "0.5756775", "0.574634", "0.5743506", "0.57154316", "0.57047343", "0.5704261", "0.5697496", "0.56929094", "0.56885904", "0.568842", "0.5665574", "0.5661224", "0.5653216", "0.5645548", "0.56202424", "0.5596776", "0.5596335", "0.55953187", "0.55918795", "0.5583351", "0.5573129", "0.5562069", "0.55512005", "0.5543055", "0.55369335" ]
0.63906616
35
Signal an invocation has been done using the current connection, but we're going on using it.
public void goOn(Map<String, Object> metadata, Map<String, Object> headers) { checkKeepAliveHeaders(metadata, headers); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void synchronizationDone() {\n }", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "default void afterInvocation() {\n afterInvocation(false);\n }", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "protected void connectionClosed() {}", "public void connectionClosed(Spy spy, long execTime);", "@Override\n\tpublic void replyOperationCompleted() { ; }", "void synchronizationDone();", "@Override\n\t\t\t\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t\t\t\t\tmDelegateConnected.onConnect(false);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tif (mBluetoothGatt != null) {\n\t\t\t\t\t\t\t\t\t\tmBluetoothGatt.close();\n\t\t\t\t\t\t\t\t\t\tmBluetoothGatt = null;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t// Let the user launch a new connection request\n\t\t\t\t\t\t\t\t\twaitingForConnResp = false;\n\t\t\t\t\t\t\t\t}", "public synchronized static void resetInvoked() {\n\n invoked = false;\n }", "public Reply done() throws ThingsException, InterruptedException;", "public void end() {\n\t\tsigue = false;\n\t}", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "protected void markAsDone() {\n isDone = true;\n }", "public void markAsDone() {\n this.done = true;\n }", "void ifDoneFinish() {\r\n\t\t\t\t\t\tif (wip.decrementAndGet() == 0) {\r\n\t\t\t\t\t\t\tobserver.finish();\r\n\t\t\t\t\t\t\tclose();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void done() {\n done = true;\n }", "public void disconnect() {\n/* 244 */ this.delegate.disconnect();\n/* */ }", "@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}", "void handleConnectionClosed();", "public void end(){\r\n\t\tsetResult( true ); \r\n\t}", "public void done() {\n if (!isCancelled()) {\n try {\n C0637h.this.mo7991a(get());\n } catch (InterruptedException | ExecutionException e) {\n C0637h.this.mo7992a(e.getCause());\n }\n } else {\n C0637h.this.mo7992a((Throwable) new CancellationException());\n }\n }", "public void done() {\n isDone = true;\n }", "@Override\n public boolean isDone() {\n return false;\n }", "public abstract void interactionEnds(long ms);", "@Override\n public void afterConnectionAcquired(InstrumentedConnectionProvider connectionProvider, Connection connection) {\n int depth = connectionAcquisitionDepth.incrementAndGet();\n if (depth == 1) {\n connectionUsageStopwatch.get().reset().start();\n connectionMetricReporter.recordConnectionAcquired(/*isTopLevel=*/true);\n } else {\n // record that we did this but do not consider it an 'acquisition' in the metrics unless we are also timing\n // it\n connectionMetricReporter.recordConnectionAcquired(/*isTopLevel=*/false);\n }\n }", "public void onConnectSpamDone() {\n loggingIn = false;\n }", "public boolean takeBugreportOnInvocationEnded();", "public void markAsDone() {\n isDone = true;\n }", "public void markAsDone() {\n isDone = true;\n }", "public void markAsDone() {\n isDone = true;\n }", "public void complete() {\n\t}", "@Override\n\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n\t\t\tSystem.out.println(\"Channel closed\");\n\t\t\t// @TODO if lost, try to re-establish the connection\n\t\t}", "@Override\n\tpublic void onDisconnectDone(ConnectEvent arg0) {\n\t\t\n\t}", "@Override\n public boolean isDone()\n {\n return false;\n }", "private void disconnectCompleted(AsyncResult<?> result) {\n\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"Disconnect completed - result: %s, cause: %s\", result.result(), result.cause()));\n }\n\n connectionClosed(result.cause());\n }", "private void connectCompleted(AsyncResult<MqttConnAckMessage> result) {\n\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"Connect completed - result: %s, cause: %s\", result.result(), result.cause()));\n }\n\n if (result.failed() || result.result() == null) {\n // this will include CONACKs with error codes\n setState(SessionState.DISCONNECTED, result.cause());\n return;\n }\n\n MqttConnAckMessage ack = result.result();\n\n setState(SessionState.CONNECTED, null);\n\n if (log.isDebugEnabled()) {\n log.debug(String.format(\"Subscriptions: %s, cleanSession: %s, sessionPresent: %s\", !this.subscriptions.isEmpty(),\n options.isCleanSession(), ack.isSessionPresent()));\n }\n\n if (options.isCleanSession() || !ack.isSessionPresent()) {\n // re-subscribe if we have requested subscriptions and (either cleanSession=true or no session found on the server)\n requestSubscribe(new LinkedHashMap<>(this.subscriptions));\n } else {\n // If the session is present on broker, I mark all subscription to SUBSC\n log.debug(\"Session present on broker, subscriptions request not sent. \"\n + \"Be sure that the subscriptions on the broker side are the same that this client needs.\");\n this.subscriptions.forEach((t, q) -> notifySubscriptionState(t, SubscriptionState.SUBSCRIBED, q.toInteger()));\n }\n\n }", "public void markAsDone() {\n // TODO consider adding assertion here\n isDone = true;\n }", "public synchronized void connectionClosed(Connection con) {\n if (!term) connections.remove(con);\n }", "private void countConnectFinished() {\n \t\tcurrentlyConnectingSockets.decrementAndGet();\n \t\tsynchronized (this) {\n \t\t\tthis.notifyAll();\n \t\t}\n \t}", "void handleSubchannelTerminated() {\n executorPool.returnObject(executor);\n terminatedLatch.countDown();\n }", "@Override\n\tprotected void done() {\n\t\tif (isCancelled()) {\n\t\t\tSystem.out.printf(\"%s: Has been canceled\\n\", name);\n\t\t} else {\n\t\t\tSystem.out.printf(\"%s: Has finished\\n\", name);\n\t\t}\n\t}", "@Override\n public void onConnect() {\n connected.complete(null);\n }", "@Override\n\tpublic void finalize() {\n\t\tcontext.unbindService(CONNECTION);\n\t}", "public void markAsDone(){\n isDone = true;\n }", "@Override\r\n\tpublic void done() {\n\t\tSystem.out.println(\"done\");\r\n\t}", "@Override\n\t\t\t\tpublic void deliveryComplete(MqttDeliveryToken arg0) {\n\t\t\t\t\tSystem.out.println(\"deliveryComplete---------\"\n\t\t\t\t\t\t\t+ arg0.isComplete());\n\t\t\t\t}", "public void done() {\n\t\t\tif (pool != null) {\n\t\t\t\tpool.offer(logTarget, this);\n\t\t\t}\n\t\t}", "protected void end() {\n isFinished();\n }", "public void markAsDone() {\r\n this.isDone = true;\r\n }", "public void afterDone() {\n }", "public void afterDone() {\n }", "@Override\n\tpublic void connectionClosed() {\n\t}", "public boolean isDone() { return true; }", "public void markAsDone() {\n this.isDone = true;\n }", "public void markAsDone() {\n this.isDone = true;\n }", "public void markAsDone() {\n this.isDone = true;\n }", "public void setDone() {\n isDone = true;\n }", "public void disconnect() {\r\n\t\trunning = false;\r\n\t}", "@Override\n protected boolean isFinished() {\n return true;\n }", "private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }", "@Override\n public boolean completed() {\n return false;\n }", "protected void onEnd() {}", "public void queryEnded()\r\n {\r\n myActiveQueryCountProvider.setValue(Integer.valueOf(myActiveQueryCounter.decrementAndGet()));\r\n if (myActiveQueryCounter.get() == 0)\r\n {\r\n myDoneQueryCounter.set(0);\r\n myTotalSinceLastAllDoneCounter.set(0);\r\n }\r\n else\r\n {\r\n myDoneQueryCounter.incrementAndGet();\r\n }\r\n updateTaskActivityLabel();\r\n if (myActiveQueryCounter.intValue() == 0 && isActive())\r\n {\r\n setActive(false);\r\n }\r\n }", "public void markAsDone() {\n this.isDone = true;\n\n }", "@Override\n public void onCompleted() {\n logger.info(\"Forwarding for query {} complete.\", queryId);\n }", "private void alertReplicatorsDoneExecutingTask(Version theTask) {\n\tsynchronized(_replicatorQueue) {\n\t for (int i = 0; i < _replicatorQueue.size(); i++) {\n\t\tReplicatorHandle rh = (ReplicatorHandle) \n\t\t _replicatorQueue.get(i);\n\t\trh.alertDoneExecutingTask(theTask, this);\n\t }\n\t}\t\n }", "protected void execute() {\n finished = true;\n }", "@Override\n\tpublic void connectionSucceeded(String message) {\n\t}", "public void complete()\n {\n isComplete = true;\n }", "@Override\n\tpublic void eventFinished() {\n\t\tstatus=EventCompleted;\n\t}", "public void handleInUse() {\n InternalSubchannel.this.callback.onInUse(InternalSubchannel.this);\n }", "@Override\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t}", "@ForOverride\n public void onTerminated(InternalSubchannel internalSubchannel) {\n }", "@OnClose\n public void end() {\n listener.connectionTerminated();\n Logger.getGlobal().info(\"Connection with \" \n + nickname + \" terminated.\\n\"); //$NON-NLS-1$ //$NON-NLS-2$\n }", "public boolean isDone() { return false; }", "public void finishedAllRequests() {\n hasMoreRequests = false;\n }", "public void notifyEnd() {\n\n\t}", "@Override\r\n\tpublic void connected(Connection connection, ConnectApprove datagram)\r\n\t{\n\t\t\r\n\t}", "public void onAbort() {\n releaseInitialRef.run();\n }", "@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}", "void finish(Channel channel, Object msg);", "@Override\n\t\t\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\t\tSystem.out.println(\"deliveryComplete\");\n\t\t\t}", "public void done() {\n\t\t}", "synchronized public void jobDone(){ // l'action a été réalisée\n\t\tdone = true; // changement d'état\n\t\tthis.notifyAll(); // on notifie tout le monde\n\t}", "public abstract void finished();", "public abstract void finished(Object result);", "@Override\n\tpublic void complete()\n\t{\n\t}", "public boolean endConnection() throws CommunicationException;", "@Override\n protected boolean isFinished() {\n return true;\n }", "public void handleFinish()\n {\n }", "@Override\n\tpublic void deliveryComplete(IMqttDeliveryToken token) {\n\t\t\n\t}", "public void finished();", "@Override\n public void onComplete() {\n refCause.compareAndSet(null, DELIBERATE_EXCEPTION);\n }", "public void optinCompleted(Context arg0, boolean arg1, boolean arg2) {\n\n\t}", "public void setDone() {\n this.isDone = true;\n }", "public void setDone() {\n this.isDone = true;\n }", "public void setDone() {\n this.isDone = true;\n }", "void connectionActivity(ConnectionEvent ce);", "public void finished() {\r\n\t\t// Mark ourselves as finished.\r\n\t\tif (finished) { return; }\r\n\t\tfinished = true;\r\n\t\tif (ic != null) {\r\n\t\t\tjvr.removeEventListener(ic);\r\n\t\t\ttry {\r\n\t\t\t\tdx.stopch(dxdev,dx.EV_ASYNC);\r\n\t\t\t}\r\n\t\t\tcatch (JVRException e) { logger.throwing(getClass().getName(),\"finished\",e); }\r\n\t\t}\r\n\t\t// Notify any \"waiters\" that we are done.\r\n\t\tsynchronized (this) { notifyAll(); }\r\n\t\t// Fire an event for asynchronous JVR event listeners.\r\n\t\tnew JVREvent(this,\"finished\").fire();\r\n\t\t// For debugging only.\r\n\t\t// logger.info(\"(FINISHED)\\n\" + this);\r\n\t}", "private void eventLookupCompleted() {\n\t\tsynchronized(lookupCounterMutex) {\n\t\t\tlookupCounter--;\n\t\t\tif (lookupCounter == 0)\n\t\t\t\tlookupCounterMutex.notifyAll();\n\t\t}\n\t}" ]
[ "0.58663607", "0.56956446", "0.56860805", "0.5673806", "0.56494415", "0.5576854", "0.55464154", "0.5511743", "0.55099726", "0.5492747", "0.54656327", "0.5457242", "0.53689843", "0.53603584", "0.53562564", "0.5352879", "0.53495604", "0.534264", "0.5315473", "0.53068453", "0.52874184", "0.52847296", "0.52805334", "0.5270702", "0.52694106", "0.5268179", "0.5267691", "0.52612984", "0.52612597", "0.52612597", "0.52612597", "0.5260065", "0.52453554", "0.5241887", "0.5233604", "0.5230749", "0.5214505", "0.5208511", "0.519966", "0.51837224", "0.5183281", "0.5180702", "0.5177457", "0.516751", "0.5164807", "0.5157455", "0.51484317", "0.51479423", "0.51457715", "0.51444095", "0.51421225", "0.51421225", "0.5136622", "0.5131019", "0.51287585", "0.51287585", "0.51287585", "0.51262736", "0.511989", "0.5118893", "0.5118237", "0.5117267", "0.51156944", "0.51125634", "0.5111875", "0.51103115", "0.51100826", "0.510591", "0.5100813", "0.5097704", "0.50936174", "0.50928044", "0.50927114", "0.50924283", "0.50917137", "0.50915873", "0.50906193", "0.50904465", "0.5088953", "0.5084988", "0.50808847", "0.50789475", "0.50734013", "0.50730836", "0.50706613", "0.5067938", "0.5064757", "0.5060956", "0.5057327", "0.50570846", "0.50559384", "0.505522", "0.5051522", "0.5043035", "0.5042008", "0.5041433", "0.5041433", "0.5041433", "0.50351775", "0.50339794", "0.50317454" ]
0.0
-1
Signal end of processing for the current connection. The transport handler either goes to the idle cache or is closed depending on the number of keep alive connections left (and this being a keepalive connection or not, of course)
public void finished(Map<String, Object> metadata, Map<String, Object> headers) { checkKeepAliveHeaders(metadata, headers); keepAliveConnections--; if (keepAliveConnections > 0 && isKeepingAlive()) { /* This connection is keepingAlive && still valid. * Return it to the cache. */ putInKeepAliveCache(); } else { end(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void connectionClosed() {}", "protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\n {\n f_engine.closeInbound();\n closeOutbound(false);\n }\n catch (SSLException e)\n {\n // mimicking SSLSocket\n }\n catch (IOException ignored)\n {\n // won't occur\n }\n }\n }\n }\n }", "void handleConnectionClosed();", "private void handleClosedConnection() {\n final int currentConnections = concurrentConnections.decrementAndGet();\n\n log.debug(\"[Vertx-EventMetricsStream] - Current Connections - {} / Max Connections {}\", currentConnections, maxConcurrentConnections.get());\n }", "public void onConnectionClosed() {\r\n\t\tcurrentConnections.decrementAndGet();\r\n\t}", "public void end()\n {\n keepingAlive = false;\n if (channel == null)\n {\n channel = connectFuture.getChannel();\n connectFuture.cancel();\n }\n if (channel != null)\n {\n channel.close();\n }\n }", "public void afterProcessSession() throws Exception\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (server != null)\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tserver.close();\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\tlogMonitor(\"close server error: \" + e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t\tfinally\r\n\t\t\t\t{\r\n\t\t\t\t\tserver = null;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tIterator<Integer> sessionIds = handlers.keySet().iterator();\r\n\r\n\t\t\twhile (sessionIds.hasNext())\r\n\t\t\t{\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tTCPHandler handler = handlers.get(sessionIds.next());\r\n\r\n\t\t\t\t\tif (handler != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\thandler.stop(1000);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e)\r\n\t\t\t\t{\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\thandlers.clear();\r\n\t\t}\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tsuper.afterProcessSession();\r\n\t\t}\r\n\t}", "@Override\n public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n logger.debug(\"client {} inactive\", Connection.this);\n if (!isInitialized || isClosed()) {\n errorOutAllHandler(new TransportException(address, \"Channel has been closed\"));\n // we still want to force so that the future completes\n Connection.this.closeAsync().force();\n } else {\n defunct(new TransportException(address, \"Channel has been closed\"));\n }\n }", "@Override\n\tpublic void connectionClosed() {\n\t}", "private void handleMqttEndpointClose() {\n\n if (this.mqttEndpointCloseHandler != null) {\n this.mqttEndpointCloseHandler.handle(this);\n }\n }", "@Override\n \tpublic void connectionClosed() {\n \t\t\n \t}", "@Override\n\tpublic void finalize() {\n\t\tcontext.unbindService(CONNECTION);\n\t}", "public synchronized void responseEnded(ClientConnection conn, boolean close) {\n synchronized (queue) {\n if ((pipelining || keepAlive) && !close) {\n if (conn.getCurrentRequest() == null) {\n Waiter waiter = queue.getNextWaiter();\n if (waiter != null) {\n Context context = waiter.context;\n if (context == null) {\n context = conn.getContext();\n }\n context.runOnContext(v -> deliverStream(conn, waiter));\n } else if (conn.getOutstandingRequestCount() == 0) {\n // Return to set of available from here to not return it several times\n availableConnections.add(conn);\n }\n }\n } else {\n // Close it now\n conn.close();\n }\n }\n }", "public void closeIdleConnections()\n {\n \n }", "private void onResponseTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n cleanAfterConnection(true, true);\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "@Override\n protected void connectionClosed(Peer.CloseReason reason)\n {\n Stream.concat(sendQueue.stream(), blockRequests.stream())\n .filter(pm -> pm.type == StdPeerMessage.REQUEST)\n .forEach(pm -> {\n torrent.cancelBlockRequest(pm.index, pm.begin);\n });\n\n // release messages\n sendQueue.forEach( pmCache::release);\n sendQueue.clear();\n // and active requests\n blockRequests.forEach( pmCache::release);\n blockRequests.clear();\n // peerRequests\n peerBlockRequests.forEach( pmCache::release);\n peerBlockRequests.clear();\n\n peer.setConnectionClosed(reason);\n\n // incoming connections could be not linked yet\n if (torrent != null) {\n torrent.onPeerDisconnect(this);\n }\n\n // todo: release caches via connectionFactory\n }", "private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelInactive\");\n\t\tsuper.channelInactive(ctx);\n\t}", "public void close() {\n connection.close();\n running = false;\n }", "public void handleAuctionEnd();", "@Override\n\tpublic void onTerminating() {\n\t\tWriterUtil.flushBuffer(this.registryBuffer, this.socketChannel, LOGGER);\n\t\tWriterUtil.flushBuffer(this.buffer, this.socketChannel, LOGGER);\n\t\tWriterUtil.close(this.socketChannel, LOGGER);\n\t}", "public int onEnd() {\n\t\t\t\tflushMessageQueue();\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public void onClose(Connection connection, Session session) {\n }", "@Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }", "public void end() {\n\t\tsigue = false;\n\t}", "@OnClose\n public void end() {\n listener.connectionTerminated();\n Logger.getGlobal().info(\"Connection with \" \n + nickname + \" terminated.\\n\"); //$NON-NLS-1$ //$NON-NLS-2$\n }", "void onClose(IServerConnection<_ATTACHMENT> connection);", "@Override\n\tprotected void onClose() {\n\t\tcloseConnections();\n\t}", "@GuardedBy(\"lock\")\n public void handleTermination() {\n this.channelLogger.log(ChannelLogger.ChannelLogLevel.INFO, \"Terminated\");\n this.syncContext.executeLater(new Runnable() {\n public void run() {\n InternalSubchannel.this.callback.onTerminated(InternalSubchannel.this);\n }\n });\n }", "public boolean endConnection() throws CommunicationException;", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "@Override\n public void connectionLost() {\n }", "void endNegotiation();", "private void handleRemoteConnectionClose(ProtonConnection connection, AsyncResult<ProtonConnection> result) {\n\n // NOTE : the connection parameter is needed because Vert.x doesn't provide the ProtonConnection\n // instance when the operation ends with errors (so exception). We need the instance for closing.\n if (result.succeeded()) {\n LOG.info(\"AMQP connection closed with {}\", connection.getRemoteContainer());\n } else {\n LOG.info(\"AMQP connection closed with {} with error\", connection.getRemoteContainer(), result.cause());\n }\n connection.close();\n\n try {\n this.mqttEndpoint.close();\n } catch (IllegalStateException e) {\n LOG.warn(\"MQTT endpoint for client {} already closed\", this.mqttEndpoint.clientIdentifier());\n }\n }", "public void terminate () {\n active = false;\n try { server_socket.close (); } catch (IOException e) {}\n yield ();\n }", "@Override\r\n\tpublic boolean end() {\r\n\t\tif (closed.compareAndSet(false, true)) {\r\n\t\t\taddToQueueAndSend(new byte[0]);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "@Override\n public void channelReadComplete(final ChannelHandlerContext ctx) {\n ctx.flush();\n }", "@Override\n public synchronized void requestReceived(final C conn ) {\n if (debug())\n dprint( \"->requestReceived: connection \" + conn ) ;\n\n try {\n ConnectionState<C> cs = getConnectionState( conn ) ;\n\n final int totalConnections = totalBusy + totalIdle ;\n if (totalConnections > highWaterMark())\n reclaim() ;\n\n ConcurrentQueue.Handle<C> reclaimHandle = cs.reclaimableHandle ;\n if (reclaimHandle != null) {\n if (debug())\n dprint( \".requestReceived: \" + conn\n + \" removed from reclaimableQueue\" ) ;\n reclaimHandle.remove() ;\n }\n\n int count = cs.busyCount++ ;\n if (count == 0) {\n if (debug())\n dprint( \".requestReceived: \" + conn\n + \" transition from idle to busy\" ) ;\n\n totalIdle-- ;\n totalBusy++ ;\n }\n } finally {\n if (debug())\n dprint( \"<-requestReceived: connection \" + conn ) ;\n }\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\t\n\t\tif (this.connection != null) {\n\t\t\tthis.connection.close();\t\t\n\t\t}\n\t\tsuper.finalize();\n\t}", "public void closeHandler() {\n\n super.closeHandler();\n\n // Close the session socket\n if (m_sessSock != null) {\n m_sessSock.closeSocket();\n }\n }", "@Override\r\n public void close() {\r\n\tsaveZip();\r\n\tsetChanged();\r\n\tnotifyObservers(\"shutting down\");\r\n\tthreadpool.shutdown();\r\n\t// wait 10 seconds over and over again until all running jobs have\r\n\t// finished\r\n\ttry {\r\n\t boolean allTasksCompleted = false;\r\n\t while (!(allTasksCompleted = threadpool.awaitTermination(10, TimeUnit.SECONDS)))\r\n\t\t;\r\n\t setChanged();\r\n\t notifyObservers(\"Server is safely closed\");\r\n\t} catch (InterruptedException e) {\r\n\t e.printStackTrace();\r\n\t}\r\n }", "@Override\n\tpublic void finish() {\n\t\ttry {\n\t\t\tunregisterReceiver(closeReceiver);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t}\n\t\tsuper.finish();\n\t}", "private void handleQuit() {\n sendMsgToClient(\"221 Closing connection\");\n quitCommandLoop = true;\n }", "void handleSubchannelTerminated() {\n executorPool.returnObject(executor);\n terminatedLatch.countDown();\n }", "private void handleCloseFrame() throws IOException {\n // the client has sent us a close frame\n closeReceived = true;\n // if we already sent a close frame before\n if (isCloseSent()) {\n // then we received an acknowledgement close frame\n // from the client, so we need to close the underlying\n // TCP socket now\n this.close();\n return;\n }\n // otherwise, the client has sent us a close frame\n // and we will acknowledge that close frame now\n byte[] closePayload = consumePayload();\n if (closePayload.length >= 2) {\n int highByte = asUnsignedInt(closePayload[0]);\n int lowByte = asUnsignedInt(closePayload[1]);\n int closeStatusCode = (highByte << OCTET) | lowByte;\n outputPeer.writeClose(closeStatusCode);\n } else {\n outputPeer.writeClose();\n }\n // we need to close the underlying TCP socket now\n this.close();\n }", "public void endMessage()\n\t{\n\t}", "protected void onEnd() {}", "public synchronized void connectionClosed() {\n connCount--;\n Waiter waiter = getNextWaiter();\n if (waiter != null) {\n // There's a waiter - so it can have a new connection\n createNewConnection(waiter);\n } else if (connCount == 0) {\n // No waiters and no connections - remove the ConnQueue\n connQueues.remove(address);\n }\n }", "@Override\n public synchronized void close(final C conn ) {\n if (debug())\n dprint( \"->close: \" + conn ) ;\n\n try {\n final ConnectionState<C> cs = connectionMap.remove( conn );\n\n if (cs == null) return;\n\n int count = cs.busyCount ;\n if (debug())\n dprint( \".close: \" + conn + \" count = \" + count ) ;\n\n if (count == 0)\n totalIdle-- ;\n else\n totalBusy-- ;\n\n final ConcurrentQueue.Handle rh = cs.reclaimableHandle ;\n if (rh != null) {\n if (debug())\n dprint( \".close: \" + conn + \" connection was reclaimable\" ) ;\n\n rh.remove() ;\n }\n\n conn.close() ;\n } finally {\n if (debug())\n dprint( \"<-close: \" + conn ) ;\n }\n }", "public void busyClose() {\r\n handler.sendBusy( this );\r\n\t\tclose();\r\n\t}", "public void end() {\n \t\ttry {\n \t\t\tnameServerClient.leave();\n \t\t} catch (Exception e) {\n \t\t\t__.fwdAbort__(e);\n \t\t}\n \t}", "private void closeIdleTimeoutConnection() {\r\n if (poolState.get() == POOL_NORMAL) {\r\n PooledConnection[] array = connArray;\r\n for (int i = 0, len = array.length; i < len; i++) {\r\n PooledConnection pConn = array[i];\r\n int state = pConn.state;\r\n if (state == CONNECTION_IDLE && !existBorrower()) {\r\n boolean isTimeoutInIdle = (currentTimeMillis() - pConn.lastAccessTime - poolConfig.getIdleTimeout() >= 0);\r\n if (isTimeoutInIdle && ConnStUpd.compareAndSet(pConn, state, CONNECTION_CLOSED)) {//need close idle\r\n removePooledConn(pConn, DESC_REMOVE_IDLE);\r\n tryToCreateNewConnByAsyn();\r\n }\r\n } else if (state == CONNECTION_USING) {\r\n ProxyConnectionBase proxyConn = pConn.proxyConn;\r\n boolean isHoldTimeoutInNotUsing = currentTimeMillis() - pConn.lastAccessTime - poolConfig.getHoldTimeout() >= 0;\r\n if (isHoldTimeoutInNotUsing) {//recycle connection\r\n if (proxyConn != null) {\r\n proxyConn.trySetAsClosed();\r\n } else {\r\n removePooledConn(pConn, DESC_REMOVE_BAD);\r\n tryToCreateNewConnByAsyn();\r\n }\r\n }\r\n } else if (state == CONNECTION_CLOSED) {\r\n removePooledConn(pConn, DESC_REMOVE_CLOSED);\r\n tryToCreateNewConnByAsyn();\r\n }\r\n }\r\n ConnectionPoolMonitorVo vo = this.getMonitorVo();\r\n commonLog.debug(\"BeeCP({})idle:{},using:{},semaphore-waiter:{},wait-transfer:{}\", poolName, vo.getIdleSize(), vo.getUsingSize(), vo.getSemaphoreWaiterSize(), vo.getTransferWaiterSize());\r\n }\r\n }", "public void exchangeComplete(final HttpServerExchange exchange) {\n final HttpServerConnection connection = (HttpServerConnection) exchange.getConnection();\n if (connection.getExtraBytes() == null || exchange.isUpgrade()) {\n performFlush(exchange, connection);\n } else {\n connection.getReadListener().exchangeComplete(exchange);\n }\n }", "public synchronized void closeExpiredConnections() {\n/* 337 */ if (this.isShutdown.get()) {\n/* */ return;\n/* */ }\n/* 340 */ if (!this.leased) {\n/* 341 */ checkExpiry();\n/* */ }\n/* */ }", "protected void finalize() throws Throwable {\n\t\ttry {\n\t\t\tthis.listen_socket.close();\n\t\t} catch (IOException e1) {\n\t\t}\n\t}", "public final void finalize() {\n if (!this.f5341c) {\n mo12514a(\"Request on the loose\");\n C1264ee.m6818c(\"Marker log finalized without finish() - uncaught exit point for request\", new Object[0]);\n }\n }", "@Override\n public boolean queueIdle() {\n mThread.getLooper().quit();\n nativeOnLooperStopped(nativeThread);\n return false;\n }", "@Override\n\tpublic void close(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"close\");\n\t\tsuper.close(ctx, promise);\n\t}", "protected void endProtocol()\n throws IOException\n {\n try\n {\n boolean fWrite = f_buffEncOut.hasRemaining();\n\n for (SSLSelectionKey key = m_keyFirst; key != null;\n key = key.m_keyNext)\n {\n key.setProtocolReadyOps(fWrite ? SelectionKey.OP_READ : 0);\n key.interestProtocol(fWrite ? SelectionKey.OP_WRITE : 0, 0);\n }\n }\n catch (CancelledKeyException e) {}\n\n if (!m_fValidated && f_engine.getSession().isValid())\n {\n validatePeer();\n m_fValidated = true;\n }\n }", "@Override\n\tpublic void finish() {\n\t\ttry {\n\t\t\tif(muc!=null){\n\t\t\t\t\n\t\t\t\tmuc.leave();\n\t\t\t}\n\t\t\tif(connection!=null){\n\t\t\t\t\n\t\t\t\tconnection.disconnect();\n\t\t\t\t\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\n\t\tsuper.finish();\n\t}", "@Override\n\tpublic void listenerClosed(ConnectionListenerEvent evt) {\n\t\t\n\t}", "@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}", "private void connectionClosed(final Throwable cause) {\n if (log.isDebugEnabled()) {\n log.debug(\"Connection closed\", cause);\n } else {\n log.info(\"Connection closed: \" + (cause != null ? cause.getMessage() : \"<unknown>\"));\n }\n\n if (this.client != null) {\n this.client.exceptionHandler(null);\n this.client.publishHandler(null);\n this.client.closeHandler(null);\n this.client.subscribeCompletionHandler(null);\n this.client.publishCompletionHandler(null);\n this.client.publishCompletionExpirationHandler(null);\n this.client.publishCompletionUnknownPacketIdHandler(null);\n this.client = null;\n }\n setState(SessionState.DISCONNECTED, cause);\n }", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "@Override\n\tpublic void channelReadComplete(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelReadComplete\");\n\t\tsuper.channelReadComplete(ctx);\n\t}", "@SideOnly(Side.CLIENT)\n private void channelEndClient()\n {\n }", "public void close() throws IOException {\n /*\n * Set m_iport to 0, in order to quit out of the while loop\n * in the receiver thread.\n */\n\tint save_iport = m_iport;\n\n\tm_iport = 0;\n\n synchronized (closeLock) {\n if (open) {\n /*\n * Reset open flag early to prevent receive0 executed by\n * concurrent thread to operate on partially closed\n * connection\n */\n open = false;\n\n close0(save_iport, connHandle, 1);\n\n setMessageListener(null);\n\n /*\n * Reset handle and other params to default\n * values. Multiple calls to close() are allowed\n * by the spec and the resetting would prevent any\n * strange behaviour.\n */\n connHandle = 0;\n host = null;\n m_mode = 0;\n\n /*\n * Remove this connection from the list of open\n * connections.\n */\n int len = openconnections.size();\n for (int i = 0; i < len; i++) {\n if (openconnections.elementAt(i) == this) {\n openconnections.removeElementAt(i);\n break;\n }\n }\n\n open_count--;\n }\n }\n }", "@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }", "@Override\n public synchronized void close() {\n mOpenConnections--;\n if (mOpenConnections == 0) {\n super.close();\n }\n }", "@Fluent\n Redis endHandler(@Nullable Handler<Void> endHandler);", "@Override\n\t\t\tpublic void connectionLost(Throwable throwable) {\n\t\t\t\tSystem.out.println(\"connectionLost\");\n\t\t\t}", "public void cleanup()\n {\n \tsuper.cleanup();\n _channelHandler.cleanup();\n }", "@Override\n\tpublic void handlerRemoved(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"handlerRemoved\");\n\t\tsuper.handlerRemoved(ctx);\n\t}", "@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n log.error(\"Input Stream {} : Channel Disconnected - Stream Engine RTS process!\", name);\n channelAtomicReference.set(null);\n }", "public void connectionLost(String channelID);", "@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelInactive(ctx);\n\t\tif(connectListener != null) {\n\t\t\tconnectListener.onDisconnect(ctx.channel());\n\t\t}\n\t}", "@Override\n\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n\t\t\tSystem.out.println(\"Channel closed\");\n\t\t\t// @TODO if lost, try to re-establish the connection\n\t\t}", "private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void terminate() {\n this.terminated = true;\n executor.interrupt();\n this.handler = null;\n this.out = null;\n this.in = null;\n this.logger = null;\n this.buffer = null;\n }", "public void sendDone()\n\t{\n\t\tmSendBusy = false;\n\t\tStatistics.numPacketsSent++;\n\t\tmWriteHandler.call(mHandlerArg);\n\t}", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "protected void end()\n\t{\n\t\tstop();\n\t}", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "public void connectionClosed(Spy spy, long execTime);", "protected void onEndRequest()\n\t{\n\t}", "public void close()\n {\n getConnectionManager().shutdown();\n }", "@Override\n public synchronized void close() {\n disconnect();\n mClosed = true;\n }", "private static void completedReceive(long handle, long byteCount) {\n Log.w(LogDomain.NETWORK, \"C4Socket.completedReceive() handle -> \" + handle);\n }", "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "public void closeConnection(){\r\n\t\t_instance.getServerConnection().logout();\r\n\t}", "@Override public void closed() {\n\t\t}", "protected void handleKillThread() {\n \t\ttry {\n \t\t\tif (server != null)\tserver.close();\n \t\t\tif (client != null) client.close();\n \t\t} catch (IOException e) {\n \t\t\thandleError(e.getMessage());\n \t\t}\n \t}", "protected void finalize() {\n this.asClient.close();\n this.asClient = null;\n }", "@Override\n public void stop() {\n try {\n serverSocket.close();\n }\n catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Close all open connections.\n synchronized (listConnections) {\n for (TcpConnectionHandler tch : listConnections)\n tch.kill();\n listConnections.clear();\n }\n\n // Now close the executor service.\n executorService.shutdown();\n try {\n executorService.awaitTermination(3, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n getExceptionHandler().receivedException(e);\n }\n }", "@Override\n\tprotected void handleClose() {\n\t}", "@ForOverride\n public void onTerminated(InternalSubchannel internalSubchannel) {\n }" ]
[ "0.6641677", "0.65626097", "0.64595914", "0.64450306", "0.63610363", "0.6336957", "0.63239485", "0.63127947", "0.6271321", "0.6201005", "0.6120685", "0.60896033", "0.6036569", "0.5909492", "0.5907427", "0.5890965", "0.5862087", "0.58325386", "0.58325386", "0.58325386", "0.58325386", "0.58206165", "0.5771947", "0.5759088", "0.57533747", "0.57378894", "0.57301426", "0.5726773", "0.5725069", "0.57226384", "0.5718803", "0.56974834", "0.56933373", "0.5691987", "0.5656037", "0.56469035", "0.5621011", "0.56070644", "0.5597749", "0.5577092", "0.5567773", "0.5558166", "0.5539757", "0.5538745", "0.55351675", "0.5531776", "0.5527793", "0.5519991", "0.5514084", "0.55139905", "0.5503541", "0.55004936", "0.54992634", "0.54973084", "0.54952615", "0.54900086", "0.5481209", "0.54804635", "0.5477058", "0.54724807", "0.54683244", "0.5468015", "0.5464684", "0.5460568", "0.545019", "0.5429637", "0.54284143", "0.54204094", "0.541973", "0.5416086", "0.540498", "0.54004526", "0.54004526", "0.5395461", "0.5379797", "0.537774", "0.53717977", "0.5366903", "0.5365648", "0.53652245", "0.5364727", "0.53505045", "0.5333869", "0.53338206", "0.53332895", "0.5330864", "0.5319996", "0.53148246", "0.5312825", "0.5309555", "0.53086287", "0.5300677", "0.52964956", "0.5288653", "0.52882355", "0.52876836", "0.5284985", "0.5280597", "0.5276215", "0.52726346" ]
0.60413206
12
Update the keepalive status according to the received message's headers.
protected void checkKeepAliveHeaders(Map<String, Object> metadata, Map<String, Object> headers) { if (headers == null || metadata == null) return; keepAliveConnections = -1; keepAliveTimeout = 0; try { String connectionHeader = NettyHelper.getFirstHeaderAsString(headers, HttpHeaders.Names.CONNECTION); if (connectionHeader != null && connectionHeader.equalsIgnoreCase(HttpHeaders.Values.KEEP_ALIVE)) { //support for old servers (out of spec but quite used) String keepAliveHeader = NettyHelper.getFirstHeaderAsString(headers, "Keep-Alive"); if (keepAliveHeader != null) { StringTokenizer st = new StringTokenizer(keepAliveHeader, ", ", false); while (st.hasMoreTokens()) { keepAliveTimeout = 5; keepAliveConnections = DEFAULT_KEEP_ALIVE_CONS; String s = st.nextToken(); if (s.startsWith("timeout=")) { keepAliveTimeout = Integer.parseInt(s.substring(8)); } if (s.startsWith("max=")) { keepAliveConnections = Integer.parseInt(s.substring(4)); } } } } else if (HttpVersion.HTTP_1_1.toString().equals(NettyHelper.getFirstHeaderAsString(metadata, NettyClient.PROTOCOL))) { //Consider the only valid value for Connection in responses is "close" keepAliveConnections = (connectionHeader == null) ? DEFAULT_KEEP_ALIVE_CONS : 1; } if (keepAliveConnections <=1) keepingAlive = false; } catch (Exception ex) { NativeLoggers.CLIENT_LOGGER.errorParsingHeadersForConfiguringKeepAlive(ex); keepAliveConnections = -1; keepingAlive = false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setKeepalive (boolean keepalive) {\n\tthis.keepalive = (this.keepalive && keepalive);\n }", "private void sendKeepAlive() {\n\t\tlong now = new java.util.Date().getTime() / 1000;\n\t\tif (now - lastKeepAlive > properties.getInt(\"keepAliveInterval\")) {\n\t\t\tfsmTeacher.handleAction(\"tap%\" + properties.get(\"keepAliveX\") + \"#\" + properties.get(\"keepAliveY\"));\n\t\t\tlastKeepAlive = now;\n\t\t\tSystem.out.println(\"Kept alive.\");\n\t\t}\n\t}", "private void checkResponseHeader(HttpResponse p_checkResponseHeader_1_) {\n/* 277 */ String s = p_checkResponseHeader_1_.getHeader(\"Connection\");\n/* */ \n/* 279 */ if (s != null && !s.toLowerCase().equals(\"keep-alive\"))\n/* */ {\n/* 281 */ terminate(new EOFException(\"Connection not keep-alive\"));\n/* */ }\n/* */ \n/* 284 */ String s1 = p_checkResponseHeader_1_.getHeader(\"Keep-Alive\");\n/* */ \n/* 286 */ if (s1 != null) {\n/* */ \n/* 288 */ String[] astring = Config.tokenize(s1, \",;\");\n/* */ \n/* 290 */ for (int i = 0; i < astring.length; i++) {\n/* */ \n/* 292 */ String s2 = astring[i];\n/* 293 */ String[] astring1 = split(s2, '=');\n/* */ \n/* 295 */ if (astring1.length >= 2) {\n/* */ \n/* 297 */ if (astring1[0].equals(\"timeout\")) {\n/* */ \n/* 299 */ int j = Config.parseInt(astring1[1], -1);\n/* */ \n/* 301 */ if (j > 0)\n/* */ {\n/* 303 */ this.keepaliveTimeoutMs = (j * 1000);\n/* */ }\n/* */ } \n/* */ \n/* 307 */ if (astring1[0].equals(\"max\")) {\n/* */ \n/* 309 */ int k = Config.parseInt(astring1[1], -1);\n/* */ \n/* 311 */ if (k > 0)\n/* */ {\n/* 313 */ this.keepaliveMaxCount = k;\n/* */ }\n/* */ } \n/* */ } \n/* */ } \n/* */ } \n/* */ }", "public int getKeepAlive() {\n return keepAlive_;\n }", "public int getKeepAlive() {\n return keepAlive_;\n }", "private boolean keepAlive(Request request){\n MimeHeaders headers = request.getMimeHeaders();\n\n // Check connection header\n MessageBytes connectionValueMB = headers.getValue(\"connection\");\n if (connectionValueMB != null) {\n ByteChunk connectionValueBC = connectionValueMB.getByteChunk();\n if (findBytes(connectionValueBC, Constants.CLOSE_BYTES) != -1) {\n return false;\n } else if (findBytes(connectionValueBC, \n Constants.KEEPALIVE_BYTES) != -1) {\n return true;\n }\n }\n return false;\n }", "public boolean getKeepalive () {\n\treturn keepalive;\n }", "@Override\n\tpublic void visit(KeepAlive ka) {\n\t\tSystem.out.println(\"peer keepAlive connection\");\n\t\tph.setAlive(true);\n\t\tthis.lastKeepAlive = System.currentTimeMillis();\n\t}", "public void setKeepAliveEnabled(boolean keepAlive){\n return; //TODO codavaj!!\n }", "@Test\r\n\tpublic void test_KeepAlive() throws UnknownHostException, IOException {\n\t\tSocket socket = new Socket(\"localhost\", 8080);\r\n\t\t\r\n\t\t// first request\r\n\t\tRawHttpResponse<?> response = executeRequest(\"GET\", \"/index.html\", \"Connection: keep-alive\", socket);\r\n\t\t// check the response code\r\n\t\tassertEquals(200, response.getStatusCode());\r\n\t\t// check for keep-alive responsse\r\n\t\tOptional<String> connectionHeader = response.getHeaders().getFirst(\"Connection\");\r\n\t\tassertTrue(connectionHeader.isPresent());\r\n\t\tassertEquals(\"keep-alive\", connectionHeader.get());\r\n\r\n\t\t// second request\r\n\t\tresponse = executeRequest(\"GET\", \"/img/main/logo.jpg\", \"\", socket);\r\n\t\t// check the response code\r\n\t\tassertEquals(200, response.getStatusCode());\r\n\t\t// check for keep-alive responsse\r\n\t\tconnectionHeader = response.getHeaders().getFirst(\"Connection\");\r\n\t\tassertFalse(connectionHeader.isPresent());\r\n\t\t\r\n\t\tsocket.close();\r\n\t}", "public SocketChannelConfig setKeepAlive(boolean keepAlive)\r\n/* 183: */ {\r\n/* 184: */ try\r\n/* 185: */ {\r\n/* 186:194 */ this.javaSocket.setKeepAlive(keepAlive);\r\n/* 187: */ }\r\n/* 188: */ catch (SocketException e)\r\n/* 189: */ {\r\n/* 190:196 */ throw new ChannelException(e);\r\n/* 191: */ }\r\n/* 192:198 */ return this;\r\n/* 193: */ }", "public void setTCPAliveTime(int keepAliveMillis) {\r\n\t\ttcp.aliveTime = keepAliveMillis;\r\n\t}", "public void setKeepAlive (boolean aKeepAlive)\n\t{\n\t\tkeepAlive = aKeepAlive;\n\t}", "public HttpClient setKeepAlive(Env env, BooleanValue keepAlive) {\n client.setKeepAlive(keepAlive.toBoolean());\n return this;\n }", "@Override\n public void userEventTriggered(ChannelHandlerContext ctx, Object evt) throws Exception {\n if (evt instanceof IdleStateEvent) {\n IdleState state = ((IdleStateEvent) evt).state();\n if (state == IdleState.WRITER_IDLE) {\n // write heartbeat to server\n //ctx.writeAndFlush(HEARTBEAT_SEQUENCE.duplicate());\n System.out.println(\"-----Send KeepAlive-----\");\n/* PacketProto.Packet.Builder builder = newBuilder();\n builder.setPacketType(PacketProto.Packet.PacketType.HEARTBEAT);\n PacketProto.Packet packet = builder.build();\n ctx.writeAndFlush(packet);*/\n ProtoMessage.ProtoMsg.Builder msg = ProtoMessage.ProtoMsg.newBuilder();\n msg.setType(ProtoHead.EMsgHead.KEEP_ALIVE_REQ);\n msg.setSequence(0);\n msg.setSessionId(1);\n ProtoMessage.Request.Builder req = ProtoMessage.Request.newBuilder();\n KeepAliveMsg.KeepAliveReq.Builder keepReq = KeepAliveMsg.KeepAliveReq.newBuilder();\n keepReq.setTime(111);\n req.setKeepAliveReq(keepReq);\n msg.setRequest(req);\n ctx.writeAndFlush(msg.build());\n }\n } else {\n super.userEventTriggered(ctx, evt);\n }\n }", "public void setKeepAliveTime(Duration keepAliveTime) {\n this.keepAliveTime = keepAliveTime;\n }", "public boolean getKeepAlive ()\n\t{\n\t\treturn keepAlive;\n\t}", "public void finished(Map<String, Object> metadata, Map<String, Object> headers)\n {\n checkKeepAliveHeaders(metadata, headers);\n keepAliveConnections--;\n if (keepAliveConnections > 0 && isKeepingAlive())\n {\n /* This connection is keepingAlive && still valid.\n * Return it to the cache.\n */\n putInKeepAliveCache();\n }\n else\n {\n end();\n }\n }", "int getKeepAlive();", "public Builder setKeepAlive(int value) {\n bitField0_ |= 0x00000001;\n keepAlive_ = value;\n onChanged();\n return this;\n }", "private void closeMessage() {\n setContentLengthHeader();\n setCookieHeader();\n }", "public void goOn(Map<String, Object> metadata, Map<String, Object> headers)\n {\n checkKeepAliveHeaders(metadata, headers);\n }", "public CallStatsBridgeKeepAliveManager(int appId, String bridgeId, String token,\n final CallStatsHttp2Client httpClient,\n CallStatsBridgeKeepAliveStatusListener keepAliveStatusListener) {\n super();\n keepAliveEventUrl = \"/\" + appId + \"/stats/bridge/alive\";\n this.keepAliveInterval = CallStatsConfigProvider.keepAliveInterval;\n this.appId = appId;\n this.bridgeId = bridgeId;\n this.token = token;\n this.httpClient = httpClient;\n this.keepAliveStatusListener = keepAliveStatusListener;\n gson = new Gson();\n\n }", "public ClientBuilder keepAlive(boolean keepAlive) {\n this.keepAlive = keepAlive;\n return this;\n }", "void notifyNewHeaderCount(int newHeaderCount);", "public void keepAlive() throws IOException {\n long currentTimeMillis = clock.currentTimeMillis();\n\n if (currentTimeMillis - lastTxMillis > TX_HEARTBEAT_INTERVAL_MILLIS)\n send(heartbeatMessageType);\n\n if (currentTimeMillis - lastRxMillis > RX_HEARTBEAT_TIMEOUT_MILLIS)\n handleHeartbeatTimeout();\n }", "public boolean hasKeepAlive() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isKeepAlive()\r\n/* 147: */ {\r\n/* 148: */ try\r\n/* 149: */ {\r\n/* 150:167 */ return this.javaSocket.getKeepAlive();\r\n/* 151: */ }\r\n/* 152: */ catch (SocketException e)\r\n/* 153: */ {\r\n/* 154:169 */ throw new ChannelException(e);\r\n/* 155: */ }\r\n/* 156: */ }", "public void setKeepAliveTimeout(int keepAliveTimeout) {\r\n\t\tthis.keepAliveTimeout = keepAliveTimeout;\r\n\t}", "public boolean hasKeepAlive() {\n return ((bitField0_ & 0x00000001) == 0x00000001);\n }", "public boolean isKeepAlive(){\n if(contains(\"Connection\")) {\n return !contains(\"Connection\", \"close\");\n } else if(getMajor() > 1) {\n return true; \n } else if(getMajor() == 1) {\n return getMinor() > 0;\n }\n return false;\n }", "public void setKeepAliveTimeout(Duration keepAliveTimeout) {\n this.keepAliveTimeout = keepAliveTimeout;\n }", "public boolean isKeepAlive(Env env) {\n return client.isKeepAlive();\n }", "void onKeepAlive() {}", "private void sendKeepAliveBridgeMessage(int appId, String bridgeId, String token,\n final CallStatsHttp2Client httpClient) {\n long apiTS = System.currentTimeMillis();\n BridgeKeepAliveMessage message = new BridgeKeepAliveMessage(bridgeId, apiTS);\n String requestMessageString = gson.toJson(message);\n httpClient.sendBridgeAlive(keepAliveEventUrl, token, requestMessageString,\n new CallStatsHttp2ResponseListener() {\n public void onResponse(Response response) {\n int responseStatus = response.code();\n BridgeKeepAliveResponse keepAliveResponse;\n try {\n String responseString = response.body().string();\n keepAliveResponse = gson.fromJson(responseString, BridgeKeepAliveResponse.class);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(e);\n } catch (JsonSyntaxException e) {\n logger.log(Level.SEVERE, \"Json Syntax Exception \" + e.getMessage(), e);\n e.printStackTrace();\n throw new RuntimeException(e);\n }\n httpClient.setDisrupted(false);\n if (responseStatus == CallStatsResponseStatus.RESPONSE_STATUS_SUCCESS) {\n keepAliveStatusListener.onSuccess();\n\n } else if (responseStatus == CallStatsResponseStatus.INVALID_AUTHENTICATION_TOKEN) {\n stopKeepAliveSender();\n keepAliveStatusListener.onKeepAliveError(CallStatsErrors.AUTH_ERROR,\n keepAliveResponse.getMsg());\n } else {\n httpClient.setDisrupted(true);\n }\n }\n\n public void onFailure(Exception e) {\n logger.info(\"Response exception \" + e.toString());\n httpClient.setDisrupted(true);\n }\n\n });\n }", "boolean hasKeepAlive();", "public boolean keepAliveEnabled();", "@Override\n public void update() { Ping the connection to see if it is still alive. At\n // some point the ProxyClient class should centralize\n // the connection aliveness monitoring and no longer\n // rely on the custom tabs to ping the connections.\n //\n try {\n getMBeanServerConnection().getDefaultDomain();\n } catch (IOException ex) {\n vmPanel.getProxyClient().markAsDead();\n }\n }", "long getKeepAliveTime();", "public void setAlive(boolean aliveStatus) {\n\t\t\n\t\tthis.aliveStatus = aliveStatus;\n\t}", "public static boolean keepAlive(){\n return keepAlive;\n }", "int getKeepAliveTime();", "protected synchronized void updateHeaders() throws MessagingException {\n/* 417 */ parse();\n/* 418 */ for (int i = 0; i < this.parts.size(); i++) {\n/* 419 */ ((MimeBodyPart)this.parts.elementAt(i)).updateHeaders();\n/* */ }\n/* */ }", "public void keepAlive(Socket s) \n throws CopsPepException {\n\t short clientType = 0;\n\t if (s == null) {\n\t throw new CopsPepException(\"Invalid socket: \" +s, ERR_PARAMS);\n\t }\n CopsKA ka = new CopsKA(clientType);\n sendMessage(s, ka);\n}", "public void run() {\n // variables to store key HTTP(S) request information\n String sReadLine;\n boolean bNewHTTPHeader = true;\n String sHTTPMethod = \"\";\n String sHTTPRequest = \"\";\n boolean bPersistentConnection = true;\n\n // print the client IP:port\n System.out.println(\"client \" + connectedClient.getInetAddress() + \":\"\n + connectedClient.getPort() + \" is connected\");\n System.out.println();\n\n // create BufferedReader to read in from socket & DataOutputStream to send out to socket\n try {\n inFromClient = new BufferedReader(new InputStreamReader(connectedClient.getInputStream()));\n outToClient = new DataOutputStream(connectedClient.getOutputStream());\n\n } catch (IOException e) {\n System.out.println(\"There was an error setting up the buffered reader, \" +\n \"data stream, or reading from the client:\");\n System.out.println(\" \" + e);\n }\n\n // process the HTTP(S) request\n try {\n // break apart the input to read the http method and request\n while ((sReadLine = inFromClient.readLine()) != null) {\n // create a tokenizer to parse the string\n StringTokenizer tokenizer = new StringTokenizer(sReadLine);\n\n // if new HTTP header, then pull out the Method and Request (first line)\n if (bNewHTTPHeader) {\n sHTTPMethod = tokenizer.nextToken().toUpperCase(); // HTTP method: GET, HEAD\n sHTTPRequest = tokenizer.nextToken().toLowerCase(); // HTTP query: file path\n bNewHTTPHeader = false; // next lines are not part of a new HTTP header\n\n // print to console\n System.out.println(\"New HTTP Header:\");\n System.out.println(\" HTTP Method: \" + sHTTPMethod);\n System.out.println(\" HTTP Request: \" + sHTTPRequest);\n\n // not a new HTTP header: check for key params Connection or empty line\n } else if (sReadLine.length() > 0) {\n // get the next token in the input line\n String sParam = tokenizer.nextToken();\n\n // check to update connection status\n if (sParam.equalsIgnoreCase(\"Connection:\")) {\n String sConnectionRequest = tokenizer.nextToken();\n bPersistentConnection = (sConnectionRequest.equalsIgnoreCase(\"keep-alive\"));\n // print param to console\n System.out.println(\" param: \" + sParam + \" \" + sConnectionRequest);\n } else {\n // otherwise just print param to console\n System.out.println(\" param: \" + sParam);\n }\n\n // no more lines to header: header is over\n } else {\n //print to console\n System.out.println(\"End of Header\");\n System.out.println();\n\n // get the status code & response, then send back to client\n int iStatusCode = getStatusCode(sHTTPMethod, sHTTPRequest);\n String sResponse = getResponse(sHTTPMethod, sHTTPRequest, iStatusCode);\n sendResponse(sHTTPMethod, sHTTPRequest, iStatusCode, sResponse, bPersistentConnection);\n\n // next line is part of a new HTTP header\n bNewHTTPHeader = true;\n }\n }\n\n // loop has ended: client input is null (client must want to disconnect)\n this.connectedClient.close();\n System.out.println(\"input from client \" + connectedClient.getInetAddress() +\n + connectedClient.getPort() + \" is null. This socket closed.\");\n } catch (IOException e) {\n System.out.println(\"There was an error reading the HTTP request:\");\n System.out.println(\" \" + e);\n }\n }", "public void handleStatusUpdated() {\n copyWifiStates();\n notifyListenersIfNecessary();\n }", "public synchronized void releaseConnection(HttpClientConnection conn, Object state, long keepalive, TimeUnit timeUnit) {\n/* 259 */ Args.notNull(conn, \"Connection\");\n/* 260 */ Asserts.check((conn == this.conn), \"Connection not obtained from this manager\");\n/* 261 */ if (this.log.isDebugEnabled()) {\n/* 262 */ this.log.debug(\"Releasing connection \" + conn);\n/* */ }\n/* 264 */ if (this.isShutdown.get()) {\n/* */ return;\n/* */ }\n/* */ try {\n/* 268 */ this.updated = System.currentTimeMillis();\n/* 269 */ if (!this.conn.isOpen()) {\n/* 270 */ this.conn = null;\n/* 271 */ this.route = null;\n/* 272 */ this.conn = null;\n/* 273 */ this.expiry = Long.MAX_VALUE;\n/* */ } else {\n/* 275 */ this.state = state;\n/* 276 */ this.conn.setSocketTimeout(0);\n/* 277 */ if (this.log.isDebugEnabled()) {\n/* */ String s;\n/* 279 */ if (keepalive > 0L) {\n/* 280 */ s = \"for \" + keepalive + \" \" + timeUnit;\n/* */ } else {\n/* 282 */ s = \"indefinitely\";\n/* */ } \n/* 284 */ this.log.debug(\"Connection can be kept alive \" + s);\n/* */ } \n/* 286 */ if (keepalive > 0L) {\n/* 287 */ this.expiry = this.updated + timeUnit.toMillis(keepalive);\n/* */ } else {\n/* 289 */ this.expiry = Long.MAX_VALUE;\n/* */ } \n/* */ } \n/* */ } finally {\n/* 293 */ this.leased = false;\n/* */ } \n/* */ }", "protected void updateHeader() {\n\t}", "public void statusUpdate(Header parentHeader, String status) {\n\t\tHeader header = new Header(parentHeader.getSession(), MessageType.STATUS, parentHeader.getVersion(), parentHeader.getUsername());\n\t\tContentStatus content = new ContentStatus(status);\n\t\tsendMessage(communication.getIOPubSocket(), header, parentHeader, content);\n\t}", "public boolean keepAlive() {\n\t\tDate date = LocPairsServerTime.getTime();\n\t\tthis.lastLifeSign = date;\n\t\treturn true;\n\t}", "public void messageArrived(StatusMessage statusMessage);", "@Test\n public void keepAliveMechanismCheck() {\n System.out.println(\"* Device JUnit4Test: keepAliveMechanismCheck()\");\n long waitInterval = 1000;\n\n // authenticate the device and get the initial timestamp\n authenticateSimulatedDevice();\n long preKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n \n // sleep a delay and send the timestamp keepalive\n TestsConfig.delay(waitInterval);\n mSimulatedDevice.writeln(Config.kDeviceKeepAlive);\n TestsConfig.delay(100);\n long afterKeepAlive = mDeviceInstance.getTimestampLastKeepAlive();\n assertTrue(afterKeepAlive > preKeepAlive + waitInterval);\n }", "protected void pingReceived(){\r\n\t\tpings++;\r\n\t\troundTrip = System.currentTimeMillis() - pingSent;\r\n\t\tlastPing = System.currentTimeMillis();\r\n\t\tlog.trace(\"\\\"\" + getName() + \"\\\" responded to ping after \" + roundTrip + \"ms\");\r\n\t}", "public void processGetRequest(String request, boolean keepAlive) throws IOException {\n\t\t/**\n\t\t * Send the request to the server.\n\t\t */\n\t\trequest += CRLF;\n\t\trequest += \"Host: \" + this.host + CRLF;\n\t\trequest += \"User-Agent: MyClient-1.0\" + CRLF;\n\t\trequest += \"Accept-Encoding: ISO-8859-1\" + CRLF;\n\t\tif (keepAlive) {\n\t\t\trequest += \"Connection: keep-alive\" + CRLF + CRLF;\n\t\t} else {\n\t\t\trequest += \"Connection: close\" + CRLF + CRLF;\n\t\t}\n\t\tbyte[] buffer = request.getBytes(ENCODING);\n\t\tostream.write(buffer, 0, request.length());\n\t\tostream.flush();\n\t\t/**\n\t\t * waiting for the response.\n\t\t */\n\t\tprocessResponse(\"GET\");\n\t}", "public void updateADMsg(OL_Message msg) {\n if (myState != HavePayload) {\n socket.appmsgArrived(msg, socket.callback);\n data = msg.getPayload();\n myState = HavePayload;\n messageStore.setTimer(this, DELETE_TIMER_INDEX, delete);\n }\n }", "public void onStatus(Status status) {\n \t\t\t\t_receivedStatus++;\n \t\t\t\tif(!_statusQueue.offer(status)){\n \t\t\t\t\t_lostStatus++; \n \t\t\t\t}\t\t\t\n \t\t\t}", "private void updateStatus(MsgEvent event) {\n//\t\t | Operation | Body? | SIP-If-Match? | Expires Value |\r\n//\t\t +-----------+-------+---------------+---------------+\r\n//\t\t | Initial | yes | no | > 0 |\r\n//\t\t | Refresh | no | yes | > 0 |\r\n//\t\t | Modify | yes | yes | > 0 |\r\n//\t\t | Remove | no | yes | 0 |\r\n//\t\t +-----------+-------+---------------+---------------+\r\n\t\tif (event instanceof SIPMsg) {\r\n\t\t\tRequest req = ((SIPMsg)event).getRequest();\r\n\t\t\tif (req != null) {\r\n\t\t\t\tString publish = req.toString();\r\n\t\t\t\t// Get the SIP-If-Match information\r\n\t\t\t\tString entityTag = sipLocator.getSIPParameter(\"SIP-If-Match\", \r\n\t\t\t\t\t\t\"entity-tag\", MsgQueue.FIRST, publish);\r\n\t\t\t\t// Get the Expires value\r\n\t\t\t\tString expires = sipLocator.getSIPParameter(\"Expires\", \r\n\t\t\t\t\t\t\"value\", MsgQueue.FIRST, publish);\r\n\t\t\t\t// Get the Content-Length\tvalue\r\n\t\t\t\tString length = sipLocator.getSIPParameter(\"Content-Length\", \r\n\t\t\t\t\t\t\"value\", MsgQueue.FIRST, publish);\r\n\t\t\t\tint exp = -1;\r\n\t\t\t\tboolean hasBody = false;\r\n\t\t\t\tint contentLen = -1;\r\n\t\t\t\tif (length != null) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tcontentLen = Integer.parseInt(length);\r\n\t\t\t\t\t\tif (expires != null) {\r\n\t\t\t\t\t\t\texp = Integer.parseInt(expires);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (contentLen > 0)\r\n\t\t\t\t\t\t\thasBody = true;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcatch (NumberFormatException nfe) {\r\n\t\t\t\t\t\tlogger.warn(PC2LogCategory.Model, subCat,\r\n\t\t\t\t\t\t\t\t\"PresenceSever retrieved a value from the Content-Length header that doesn't appear to be an integer.\");\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// Initial condition\r\n\t\t\t\tif (entityTag == null) {\r\n\t\t\t\t\tProperties p = SystemSettings.getPropertiesByValue(SettingConstants.IP, event.getSrcIP());\r\n\t\t\t\t\tif (p != null) {\r\n\t\t\t\t\t\tString ne = p.getProperty(SettingConstants.NE);\r\n\t\t\t\t\t\tPresenceData pd = new PresenceData(ne, PresenceStatus.OPEN, System.currentTimeMillis());\r\n\t\t\t\t\t\tneTable.put(pd.getLabel(), pd);\r\n\t\t\t\t\t\tentityTable.put(pd.getEntity(), pd);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse if (entityTag != null) {\r\n\t\t\t\t\t// Remove condition\r\n\t\t\t\t\tif (contentLen == 0 && exp == 0) {\r\n\t\t\t\t\t\tPresenceData pd = entityTable.get(entityTag);\r\n\t\t\t\t\t\tif (pd != null)\r\n\t\t\t\t\t\t\tnotifyWatchers.add(pd);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (exp > 0) {\r\n\t\t\t\t\t\t// This indicates that the device is only updating its existing\r\n\t\t\t\t\t\t// status.\r\n\t\t\t\t\t\tPresenceData pd = entityTable.remove(entityTag);\r\n\t\t\t\t\t\tif (pd != null) {\r\n\t\t\t\t\t\t\tpd.updateEntity(System.currentTimeMillis());\r\n\t\t\t\t\t\t\tentityTable.put(pd.getEntity(), pd);\r\n\t\t\t\t\t\t\tif (hasBody) {\r\n\t\t\t\t\t\t\t\t// This indicates that the device is modifying its information\r\n\t\t\t\t\t\t\t\tnotifyWatchers.add(pd);\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}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void addProxyConnectionHeader(HttpState state,\n HttpConnection conn)\n throws IOException, HttpException {\n LOG.trace(\"enter HttpMethodBase.addProxyConnectionHeader(\"\n + \"HttpState, HttpConnection)\");\n if (!conn.isTransparent()) {\n setRequestHeader(\"Proxy-Connection\", \"Keep-Alive\");\n }\n }", "public void setStatus( short newStatus, int statusSeconds, String aStatusReason )\r\n {\r\n // dont care for same status\r\n if ( statusObj.value == newStatus )\r\n {\r\n return;\r\n }\r\n int oldStatus = statusObj.value;\r\n statusObj.value = newStatus;\r\n \r\n long newStatusTimeout;\r\n statusTimeout = newStatusTimeout = System.currentTimeMillis();\r\n switch( statusObj.value )\r\n {\r\n case STATUS_CANDIDATE_BAD:\r\n newStatusTimeout += BAD_CANDIDATE_STATUS_TIMEOUT;\r\n break;\r\n case STATUS_CANDIDATE_IGNORED:\r\n newStatusTimeout = Long.MAX_VALUE;\r\n break;\r\n case STATUS_CANDIDATE_CONNECTING:\r\n //connectionTries ++;\r\n break;\r\n case STATUS_CANDIDATE_CONNECTION_FAILED:\r\n failedConnectionTries ++;\r\n if ( failedConnectionTries >= IGNORE_CANDIDATE_CONNECTION_TRIES )\r\n {// we have tried long enough to connect to this candidate, ignore\r\n // it for the future (causes delete after session).\r\n downloadFile.markCandidateIgnored( this, \r\n \"CandidateStatusReason_ConnectionFailed\" );\r\n // markCandidateIgnored updates the statusTimeout \r\n // and statusReason, this value is reset here to not \r\n // overwrite it...\r\n newStatusTimeout = statusTimeout;\r\n aStatusReason = statusReason;\r\n break;\r\n }\r\n else if ( failedConnectionTries >= BAD_CANDIDATE_CONNECTION_TRIES )\r\n {\r\n // we dont remove candidates but put them into a bad list.\r\n // once we see a new X-Alt the candidate is valid again.\r\n // candidates might go into the bad list quickly.\r\n // when no \"good\" candidates are avaiable we might also try additional\r\n // bad list connects, every 3 hours or so...\r\n downloadFile.markCandidateBad( this );\r\n // markCandidateBad updates the statusTimeout, this value is\r\n // reset here to not overwrite it...\r\n newStatusTimeout = statusTimeout;\r\n break;\r\n }\r\n else\r\n {\r\n downloadFile.markCandidateMedium( this );\r\n newStatusTimeout += calculateConnectionFailedTimeout();\r\n break;\r\n }\r\n // watch... no break here...\r\n case STATUS_CANDIDATE_REQUESTING:\r\n failedConnectionTries = 0;\r\n break;\r\n case STATUS_CANDIDATE_BUSY:\r\n case STATUS_CANDIDATE_RANGE_UNAVAILABLE:\r\n case STATUS_CANDIDATE_REMOTLY_QUEUED:\r\n failedConnectionTries = 0;\r\n if ( statusSeconds > 0 )\r\n {\r\n newStatusTimeout += statusSeconds * 1000;\r\n }\r\n else\r\n {\r\n newStatusTimeout += determineErrorStatusTimeout( statusObj.value );\r\n }\r\n break;\r\n case STATUS_CANDIDATE_PUSH_REQUEST:\r\n newStatusTimeout += ServiceManager.sCfg.mPushTransferTimeout;\r\n break;\r\n case STATUS_CANDIDATE_DOWNLOADING:\r\n // clear the current error status.\r\n errorStatus = STATUS_CLEARED;\r\n failedConnectionTries = 0;\r\n break;\r\n \r\n }\r\n this.statusReason = aStatusReason;\r\n \r\n NLogger.debug( NLoggerNames.Download_Candidate, \r\n \"Setting status to \" + newStatus + \" and raise timeout from \"\r\n + statusTimeout + \" to \" + newStatusTimeout + \"(\" + \r\n (newStatusTimeout-statusTimeout) + \") Reason:\" + aStatusReason + \".\");\r\n addToCandidateLog( \"Setting status to \" \r\n + SWDownloadInfo.getDownloadCandidateStatusString(this) \r\n + \" and raise timeout from \" + statusTimeout + \" to \" \r\n + newStatusTimeout + \"(\" + (newStatusTimeout-statusTimeout) \r\n + \") Reason:\" + aStatusReason + \".\");\r\n \r\n statusTimeout = newStatusTimeout;\r\n downloadFile.candidateStatusChanged( this, oldStatus, newStatus );\r\n }", "public void setMessageStatus(Integer messageStatus) {\n this.messageStatus = messageStatus;\n }", "@Override\n public void handleMessage(Message m) {\n int gameState = Integer.valueOf(m.getText());\n System.out.println(\"Got authoritative game state \" + gameState + \" from server. Updating local state now...\");\n this.gameState = gameState;\n }", "public KeepAliveStats getKeepAliveStats() {\n return (selectorThread != null?\n selectorThread.getKeepAliveStats() : null);\n }", "@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/9009\")\n public T permitKeepAliveTime(long keepAliveTime, TimeUnit timeUnit) {\n throw new UnsupportedOperationException();\n }", "public void enableKeepAlive(boolean enable);", "void keepAlive();", "public static String createAliveMessage(){\n\t\tStringBuffer sb = new StringBuffer();\n\t\t\n\t\tsb.append(\"NOTIFY * HTTP/1.1\").append(\"\\n\");\n\t\tsb.append(\"HOST: 239.255.255.250:1900\").append(\"\\n\");\n\t\tsb.append(\"NT: urn:schemas-upnp-org:service:ContentDirectory:1\").append(\"\\n\");\n\t\tsb.append(\"NTS: ssdp:alive\").append(\"\\n\");\n\t\tsb.append(\"LOCATION: http://142.225.35.55:5001/description/fetch\").append(\"\\n\");\n\t\tsb.append(\"USN: uuid:9dcf6222-fc4b-33eb-bf49-e54643b4f416::urn:schemas-upnp-org:service:ContentDirectory:1\").append(\"\\n\");\n\t\tsb.append(\"CACHE-CONTROL: max-age=1800\").append(\"\\n\");\n\t\tsb.append(\"SERVER: Windows_XP-x86-5.1, UPnP/1.0, PMS/1.11\").append(\"\\n\");\n\t\t\n\t\t\n\t\treturn sb.toString();\n\t}", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\tthis.abiServerMain.setStatusMessage(request.toString());\n\t\t}\n\n\t}", "private void mimicSunRequestHeaders() {\n if (!isHeaderSet(method.getRequestHeader(\"Accept\"))) {\n setRequestProperty(\"Accept\", acceptHeader);\n }\n if (!isHeaderSet(method.getRequestHeader(\"Connection\"))) {\n setRequestProperty(\"Connection\", \"keep-alive\");\n }\n }", "public void setStatusMessage(java.lang.String statusMessage) {\r\n this.statusMessage = statusMessage;\r\n }", "public int getStatus() {\n return alive ? CacheConstants.STATUS_ALIVE : CacheConstants.STATUS_DISPOSED;\n }", "void keepAliveUserDataStream(String listenKey, Long recvWindow, Long timestamp);", "public void updateClientBadges()\n\t{\n\t\tString data = \"\";\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tdata += m_badges[i];\n\t\tServerMessage message = new ServerMessage(ClientPacket.BADGES_PACKET);\n\t\tmessage.addInt(0);\n\t\tmessage.addString(data);\n\t\tgetSession().Send(message);\n\t}", "@Override\n public void setConnectionStatus( int status )\n {\n }", "@Override\n public void handleMessage(Message msg) {\n switch (msg.what) {\n case Constants.MESSAGE_STATE_CHANGE:\n\n break;\n\n }\n }", "public void setStatus(int newStatus) {\n status = newStatus;\n }", "@Override\n\t\tpublic void handleMessage(Message msg) {\n\t\t\tsuper.handleMessage(msg);\n\t\t\tif (msg.what == 1) {\n\t\t\t\tCkeckUpServer.this.stopSelf();\n\t\t\t} else if (msg.what == 2) {\n\t\t\t\tif (android.os.Build.VERSION.SDK_INT < 12) {\n\t\t\t\t\tCkeckUpServer.this.stopSelf();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// 发送通知栏 有新版本应用程序\n\t\t\t\tNotificationManager mNotificationManager = (NotificationManager) getSystemService(NOTIFICATION_SERVICE);\n\t\t\t\tNotificationCompat.Builder mBuilder = new NotificationCompat.Builder(\n\t\t\t\t\t\tCkeckUpServer.this);\n\t\t\t\tIntent service = new Intent(CkeckUpServer.this,\n\t\t\t\t\t\torg.aisin.sipphone.DwonNewAppService.class);\n\t\t\t\tservice.putExtra(\"ver\", ver);\n\t\t\t\tservice.putExtra(\"update_addr\", update_addr);\n\t\t\t\tservice.putExtra(\"update_tips\", update_tips);\n\t\t\t\tPendingIntent pendingIntent = PendingIntent.getService(\n\t\t\t\t\t\tCkeckUpServer.this,\n\t\t\t\t\t\tNotificationConstants.NrequestCode_UP, service,\n\t\t\t\t\t\tPendingIntent.FLAG_UPDATE_CURRENT);\n\t\t\t\tmBuilder.setLargeIcon(BitmapFactory.decodeResource(\n\t\t\t\t\t\tCkeckUpServer.this.getResources(),\n\t\t\t\t\t\tR.drawable.ic_launcher));\n\t\t\t\tmBuilder.setSmallIcon(R.drawable.notificationimage);\n\t\t\t\tmBuilder.setContentTitle(\"环宇新版本升级啦\");\n\t\t\t\tmBuilder.setContentText(update_tips);\n\t\t\t\tmBuilder.setTicker(\"发现环宇新版本\\n\" + update_tips);\n\t\t\t\tmBuilder.setOngoing(false);// true无法通过左右滑动清除\n\t\t\t\tmBuilder.setAutoCancel(true);// 点击后消失\n\t\t\t\tmBuilder.setContentIntent(pendingIntent);\n\t\t\t\tmBuilder.setDefaults(Notification.DEFAULT_ALL);\n\t\t\t\tmBuilder.setNumber(1);\n\t\t\t\tmNotificationManager\n\t\t\t\t\t\t.notify(NotificationConstants.NrequestCode_UP,\n\t\t\t\t\t\t\t\tmBuilder.build());\n\t\t\t\tCkeckUpServer.this.stopSelf();\n\t\t\t}\n\t\t}", "public void startKeepAliveSender(String authToken) {\n this.token = authToken;\n stopKeepAliveSender();\n\n logger.info(\"Starting keepAlive Sender\");\n future = scheduler.scheduleAtFixedRate(new Runnable() {\n public void run() {\n sendKeepAliveBridgeMessage(appId, bridgeId, token, httpClient);\n }\n }, 0, keepAliveInterval, TimeUnit.MILLISECONDS);\n }", "@Override\r\n\tpublic short getFlag() {\r\n\t\treturn FLAG_MESSAGE_SERVER_CONNECTION_ACKNOWLEDGE;\r\n\t}", "@Override\n public void updateStatus(Status status) {\n this.status = status;\n }", "void onStatusUpdate(int status);", "@Override\n public void handleMessage(Message pMsg) {\n\n TallyDeviceConnectionStatusActivity tempActivity = activity.get();\n if (tempActivity != null) {\n\n switch (pMsg.what) {\n\n case TallyDeviceService.MSG_CONNECTION_STATE:\n tempActivity.stateChanged(TallyDeviceService.State.values()[pMsg.arg1], pMsg);\n break;\n\n }\n\n }\n\n super.handleMessage(pMsg);\n\n }", "public void setAlive() {\n\t\tif (this.alive == true) {\n\t\t\tthis.alive = false;\n\t\t} else {\n\t\t\tthis.alive = true;\n\t\t}\n\t}", "public boolean keepAliveEnabled(){\n return false; //TODO codavaj!!\n }", "public Integer getMessageStatus() {\n return messageStatus;\n }", "public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);", "private void updatePlanboardMessageStatus(PlanboardMessage planboardMessage, DocumentStatus status) {\n if (DocumentStatus.SENT == planboardMessage.getDocumentStatus()\n || DocumentStatus.PENDING_FLEX_TRADING == planboardMessage.getDocumentStatus()) {\n planboardMessage.setDocumentStatus(status);\n }\n }", "public void updateNewState() {\n Integer aliveCount = 0;\n for (final Cell neighbor : this.neighbors) {\n if (neighbor.isAlive()) {\n aliveCount++;\n }\n }\n\n if (aliveCount < 2) {\n this.setNewState(false);\n } else if (!this.isAlive() && aliveCount == 3) {\n this.setNewState(true);\n } else if (aliveCount > 3) {\n this.setNewState(false);\n }\n }", "public boolean handleMessage(Message msg) \r\n\t{\t\r\n\t\tswitch (msg.what)\r\n\t\t{\r\n\t\tcase TCPClient.MSG_COMSTATUSCHANGE:\r\n\t\tcase MSG_UIREFRESHCOM:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tUI_RefreshConnStatus ();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_NEWSTATUSMESSAGE:\r\n\t\tcase MSG_NEWSTATUSMESSAGE:\t\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.e(TAG,\"Status Message ACCE : \" + (String)msg.obj);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTART:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tonRobotConnect (true);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTOP:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean bbNotify;\r\n\t\t\t\t\tsynchronized (this)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbbNotify=_bbCanSend;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tonRobotDisconnect (bbNotify);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_SENT:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tlast_sent_msg = (String)msg.obj;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase MSG_CENTER:\r\n\t\t\t{\r\n\t\t\t\tif (isConnecting())\r\n\t\t\t\t{\r\n\t\t\t\t\tstopConnection(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tstartConnection();\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public void setAlive(boolean alive) {\r\n\t\tthis.alive = alive;\r\n\t}", "@ExperimentalApi(\"https://github.com/grpc/grpc-java/issues/9009\")\n public T keepAliveTimeout(long keepAliveTimeout, TimeUnit timeUnit) {\n throw new UnsupportedOperationException();\n }", "private RendezVousPropagateMessage updatePropHeader(RendezVousPropagateMessage propHdr, int maxTTL) {\r\n int msgTTL = propHdr.getTTL();\r\n URI me = group.getPeerID().toURI();\r\n int useTTL = msgTTL;\r\n if (!propHdr.isVisited(me)) {\r\n // only reduce TTL if message has not previously visited us.\r\n useTTL--;\r\n }\r\n // ensure TTL does not exceed maxTTL\r\n useTTL = Math.min(useTTL, maxTTL);\r\n propHdr.setTTL(useTTL);\r\n // Add this peer to the path.\r\n propHdr.addVisited(me);\r\n // If message came in with TTL one or less, it was last trip. It can not go any further.\r\n return (useTTL <= 0) ? null : propHdr;\r\n }", "@Override\n public void readInboundResponseHeaders(ChannelHandlerContext ctx, Http2HeadersFrame http2HeadersFrame,\n OutboundMsgHolder outboundMsgHolder, boolean serverPush,\n Http2MessageStateContext http2MessageStateContext) throws Http2Exception {\n outboundMsgHolder.getRequest().setIoException(new IOException(INBOUND_RESPONSE_ALREADY_RECEIVED));\n http2MessageStateContext.setSenderState(new ReceivingHeaders(http2TargetHandler, http2RequestWriter));\n http2MessageStateContext.getSenderState().readInboundResponseHeaders(ctx, http2HeadersFrame, outboundMsgHolder,\n serverPush, http2MessageStateContext);\n }", "public void setAlive(boolean alive) {\n\t\tthis.alive = alive;\n\t}", "public void setAlive(boolean alive) {\n\t\tthis.alive = alive;\n\t}", "protected void inboundHeadersReceived(Metadata headers) {\n checkState(listener != null, \"stream not started\");\n if (inboundPhase() == Phase.STATUS) {\n log.log(Level.INFO, \"Received headers on closed stream {0} {1}\",\n new Object[]{id(), headers});\n }\n\n inboundPhase(Phase.MESSAGE);\n listener.headersRead(headers);\n }", "@Override\r\n public void handleMessage(Message msg) {\n if (msg.what == Configuration.MSG_DISCONNECT_REMOTE_SERVER) {\r\n serviceStatus = false;\r\n }\r\n if (msg.what == Configuration.MSG_CONNECT_REMOTE_SERVER) {\r\n serviceStatus = true;\r\n }\r\n if (adbMainHandler != null) {\r\n // adbMainHandler.obtainMessage(msg.what,\r\n // msg.obj).sendToTarget();\r\n adbMainHandler.sendMessage(Message.obtain(msg));\r\n }\r\n }", "public void flushHeader() {\r\n\t\t//resetBuffer();\r\n\t\tif (sc_status == 0) {\r\n\t\t\tsetStatus(200);\r\n\t\t}\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss z\", Locale.US);\r\n\t\tdateFormat.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\r\n StringBuffer headerVal = new StringBuffer();\r\n headerVal.append(request.getProtocol() + \" \" + sc_status + \" \" + HttpResponse.getStatusMessage(sc_status) + \"\\r\\n\");\r\n// System.out.println(\"1st line:\" + headerVal.toString());\r\n headerVal.append(\"Date: \" + dateFormat.format(new Date()) + \"\\r\\n\");\r\n for (String headerName : headersMap.keySet()) {\r\n headerVal.append(headerName + \": \" + headersMap.get(headerName).get(0) + \"\\r\\n\");\r\n }\r\n //System.out.println(\"IF request.hasSession? \" + request.hasSession());\r\n if (request.hasSession() && request.getSession().isNew()) {\r\n \tServletEngine.deleteInvalidatedSession();\r\n \tHttpServletSessionM sessionM = (HttpServletSessionM) request.getSession(false);\r\n \tCookie sessionCookie = new Cookie(\"sessionId\", sessionM.getId());\r\n \t\r\n \t//HttpSession calExpireTime = request.getSession(false);\r\n \tint maxAge = (int) ((sessionM.getLastAccessedTime() - new Date().getTime())/1000 + sessionM.getMaxInactiveInterval());\r\n \t//maxAge = maxAge/1000;\r\n \tsessionCookie.setMaxAge(maxAge*60);\r\n// \tif (!sessionM.isValid()) {\r\n// \t\tSystem.out.println(\"Here the session is invaid\");\r\n// \t\tsessionCookie.setMaxAge(0);\r\n// \t}\r\n \theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(sessionCookie)).append(\"\\r\\n\");\r\n }\r\n if (cookies.size() > 0) {\r\n \tfor (Cookie cur : cookies) {\r\n \t\theaderVal.append(\"Set-Cookie: \").append(getCookieInfo(cur)).append(\"\\r\\n\");\r\n \t}\r\n }\r\n \r\n headerVal.append(\"Content-Length: \" + buffer.getContentLength() + \"\\r\\n\");\r\n //System.out.println(\"buffer.getContentLength:\" + buffer.getContentLength());\r\n headerVal.append(\"Content-Type: \" + contentType + \"\\r\\n\");\r\n headerVal.append(\"Content-Encoding: \" + encoding + \"\\r\\n\");\r\n headerVal.append(\"Connection: close\\r\\n\\r\\n\");\r\n //System.out.println(headerVal.toString());\r\n try {\r\n\t\t\tout.write(headerVal.toString().getBytes());\r\n\t\t\tout.flush();\r\n\t\t\tisCommitted = true;\r\n\t\t\t//System.out.println(\"flushed \");\r\n\t\t} catch (IOException e) {\r\n\t\t\tLogRecorder.addErrorMessage(e, \"cannot write or flush\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "protected void publishIsAlive(java.lang.Boolean newIsAliveValue) {\n _isAlive = newIsAliveValue;\n getProcessor().publishValue(getOutProperties(), \"isAlive\", newIsAliveValue); \n }", "public void setAlive() {\n\t\tif(alive)\n\t\t\talive = false;\n\t\telse\n\t\t\talive = true;\n\t}", "public void setAlive(boolean alive){\r\n\t\tthis.alive = alive;\r\n\t}" ]
[ "0.6611772", "0.63165283", "0.62297565", "0.6088016", "0.6085068", "0.6021859", "0.5801056", "0.57799894", "0.5729048", "0.5710498", "0.5649066", "0.5627488", "0.5545224", "0.5478758", "0.53909594", "0.5324862", "0.5295354", "0.52831876", "0.5240867", "0.51940906", "0.5151193", "0.5126578", "0.512241", "0.5113378", "0.5109359", "0.5092027", "0.5065951", "0.50605834", "0.50457203", "0.5040195", "0.5038594", "0.5035137", "0.50000596", "0.49892333", "0.4981677", "0.49544007", "0.49337548", "0.4916519", "0.49133798", "0.49002486", "0.48771495", "0.48361945", "0.47985885", "0.4758784", "0.47581294", "0.47559983", "0.47375917", "0.4725057", "0.46980578", "0.46760273", "0.46463192", "0.4640175", "0.4638847", "0.46262625", "0.46060443", "0.4590048", "0.45699787", "0.45698506", "0.45655185", "0.4557091", "0.45536178", "0.45502913", "0.4547965", "0.4523273", "0.4498642", "0.44899258", "0.44742572", "0.447393", "0.44687054", "0.44512683", "0.443511", "0.44250745", "0.4416208", "0.441607", "0.4414928", "0.44010234", "0.44007087", "0.43940574", "0.4390211", "0.43863353", "0.43792248", "0.43739784", "0.43728733", "0.4371593", "0.4369159", "0.43660343", "0.43650618", "0.43508035", "0.4348973", "0.43476465", "0.43408623", "0.4338337", "0.43378305", "0.43378305", "0.43353266", "0.43347925", "0.43343708", "0.43207398", "0.4319079", "0.4317042" ]
0.6703792
0
End the transport handler, closing the underlying connection.
public void end() { keepingAlive = false; if (channel == null) { channel = connectFuture.getChannel(); connectFuture.cancel(); } if (channel != null) { channel.close(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void handleMqttEndpointClose() {\n\n if (this.mqttEndpointCloseHandler != null) {\n this.mqttEndpointCloseHandler.handle(this);\n }\n }", "public boolean endConnection() throws CommunicationException;", "protected void onEndOfStream()\n {\n synchronized (f_aBuffSingleInbound)\n {\n synchronized (f_aBuffSingleOutbound)\n {\n if (f_engine.getSession().isValid())\n {\n try\n {\n f_engine.closeInbound();\n closeOutbound(false);\n }\n catch (SSLException e)\n {\n // mimicking SSLSocket\n }\n catch (IOException ignored)\n {\n // won't occur\n }\n }\n }\n }\n }", "private void close() {\n\t\ttry {\n\t\t\tsendCommand(\"end\\n\");\n\t\t\tout.close();\n\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (MossException e) {\n\t\t} catch (IOException e2) {\n\t\t} finally {\n\t\t\tcurrentStage = Stage.DISCONNECTED;\n\t\t}\n\n\t}", "@Override\r\n\tpublic void close() {\r\n\t\tthis.socket.close();\r\n\t}", "private void handleRemoteConnectionClose(ProtonConnection connection, AsyncResult<ProtonConnection> result) {\n\n // NOTE : the connection parameter is needed because Vert.x doesn't provide the ProtonConnection\n // instance when the operation ends with errors (so exception). We need the instance for closing.\n if (result.succeeded()) {\n LOG.info(\"AMQP connection closed with {}\", connection.getRemoteContainer());\n } else {\n LOG.info(\"AMQP connection closed with {} with error\", connection.getRemoteContainer(), result.cause());\n }\n connection.close();\n\n try {\n this.mqttEndpoint.close();\n } catch (IllegalStateException e) {\n LOG.warn(\"MQTT endpoint for client {} already closed\", this.mqttEndpoint.clientIdentifier());\n }\n }", "@Override\r\n public void close() {\r\n sock.close();\r\n }", "public void endTransmission()\n\t\t\t{\n\t\t\t\t//Send close of transmission\n\t\t\t\tsend(\"</transmission>\", false);\n\t\t\t\t\n\t\t\t\t//Set connected to false so that server does not keep listening on this conn\n\t\t\t\tconnected = false;\n\t\t\t\ttry {\n\t\t\t\t\toutput.flush();\n\t\t\t\t\toutput.close();\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t\toutput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} */\n\t\t\t\t\n\t\t\t}", "@Fluent\n Redis endHandler(@Nullable Handler<Void> endHandler);", "public void end() {\n \t\ttry {\n \t\t\tnameServerClient.leave();\n \t\t} catch (Exception e) {\n \t\t\t__.fwdAbort__(e);\n \t\t}\n \t}", "@OnClose\n public void end() {\n listener.connectionTerminated();\n Logger.getGlobal().info(\"Connection with \" \n + nickname + \" terminated.\\n\"); //$NON-NLS-1$ //$NON-NLS-2$\n }", "public void end() {\n\t\tsigue = false;\n\t}", "public void shutdown() {\n // Shutting down a 'null' transport is invalid. Also, shutting down a server for multiple times is invalid.\n ensureServerState(true);\n try {\n transport.close();\n } catch (final Exception e) {\n throw new RuntimeException(e);\n } finally {\n isShutdown = true;\n }\n }", "private void endConnection(){\n\t\tif(this.connection != null){\n\t\t\ttry {\n\t\t\t\tthis.connection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "void endNegotiation();", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tpublic void finish() {\n\t\ttry {\n\t\t\tunregisterReceiver(closeReceiver);\n\t\t}\n\t\tcatch (Exception e) {\n\t\t}\n\t\tsuper.finish();\n\t}", "public void close() {\n try {\n closeConnection(socket);\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }", "public void close() {\n connection.close();\n running = false;\n }", "public void end(Throwable cause) {}", "public void closeConnection() {\n try {\n socket.close();\n oStream.close();\n } catch (Exception e) { }\n }", "void close()\n {\n DisconnectInfo disconnectInfo = connection.getDisconnectInfo();\n if (disconnectInfo == null)\n {\n disconnectInfo = connection.setDisconnectInfo(\n new DisconnectInfo(connection, DisconnectType.UNKNOWN, null, null));\n }\n\n // Determine if this connection was closed by a finalizer.\n final boolean closedByFinalizer =\n ((disconnectInfo.getType() == DisconnectType.CLOSED_BY_FINALIZER) &&\n socket.isConnected());\n\n\n // Make sure that the connection reader is no longer running.\n try\n {\n connectionReader.close(false);\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n outputStream.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n try\n {\n socket.close();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n\n if (saslClient != null)\n {\n try\n {\n saslClient.dispose();\n }\n catch (final Exception e)\n {\n debugException(e);\n }\n finally\n {\n saslClient = null;\n }\n }\n\n debugDisconnect(host, port, connection, disconnectInfo.getType(),\n disconnectInfo.getMessage(), disconnectInfo.getCause());\n if (closedByFinalizer && debugEnabled(DebugType.LDAP))\n {\n debug(Level.WARNING, DebugType.LDAP,\n \"Connection closed by LDAP SDK finalizer: \" + toString());\n }\n disconnectInfo.notifyDisconnectHandler();\n }", "protected void close() {\n\t\tthis.connection.close();\n\t\tthis.connection = null;\n\t}", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "public abstract void Close() throws TransportLayerException;", "public void close() {\n try {\n socket.close();\n outputStream.close();\n inputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public void closeConnection() {\n\n System.out.println(\"[CLIENT] Closing socket connection...\");\n try {\n socket.close();\n in.close();\n out.close();\n System.out.println(\"[CLIENT] Closed socket connection.\");\n } catch (IOException e) {\n System.out.println(\"[CLIENT] Error occurred when closing socket\");\n }\n System.exit(0);\n\n }", "@Override\r\n\tpublic boolean close() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\txmlStreamTracerService.postEndOfTrace(mURL, mTraceID, mCookie, \r\n\t\t\t\tnew AsyncCallback<String>() {\r\n\t\t\tpublic void onFailure(Throwable caught) {\r\n\t\t\t\t// Show the RPC error message to the user\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Failed to end the trace.\");\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(String result) {\r\n\t\t\t\tSystem.out.println(\"XMLStreamTracer: Trace ended.\");\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn true;\r\n\t}", "private void close() {\n\t\t\n//\t\tif (handlingEvent) { return; } // hopefully this is never used\n\t\t\n\t\tif (serialPort != null) {\n\t\t\tUtil.debug(\"close port: \" + serialPort.getName() + \" baud: \" + serialPort.getBaudRate(), this);\n\t\t\t// serialPort.removeEventListener();\n\t\t\tserialPort.close();\n\t\t\tserialPort = null;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tif (inputStream != null) inputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"input stream close():\" + e.getMessage(), this);\n\t\t}\n\t\ttry {\n\t\t\tif (outputStream != null) outputStream.close();\n\t\t} catch (Exception e) {\n\t\t\tUtil.log(\"output stream close():\" + e.getMessage(), this);\n\t\t}\n\t\t\n\t\tbuffer = null;\n\t\t// Util.delay(TIMEOUT);\n\n\t}", "protected void end() {\n \n \n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "public abstract void end();", "@Override\n\tpublic void close() {\n\t\t\n\t\t\t\n\t\t\t\n\t\n\t\tif(flightGear!=null)\n\t\t\ttry {\n\t\t\t\tflightGear.getInputStream().close();\n\t\t\t\tflightGear.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\tif(server!=null)\n\t\t\ttry {\n\t\t\t\tserver.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\tif(telnetConnection!=null)\n\t\t\ttry {\n\t\t\t\ttelnetConnection.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\treturn;\n\t\t\t\t\n\t\t\t}\n\t}", "protected void connectionClosed() {}", "public void end() throws Exception;", "protected void end() {\n isFinished();\n }", "public void close() {\n\t\ttry {\n\t\t\t_inputStream.close();\n\t\t\t_outputStream.close();\n\t\t\t_socket.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void close() {\n\t\ttry {\n\t\t\texecutorService.shutdownNow();\n\t\t\toutput.close();\n\t\t\tinput.close();\n\t\t\tconnection.close();\n\t\t} catch (IOException ioe) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error closing GameHandler\", ioe);\n\t\t} \n\t}", "public void close() throws SSLException {\r\n // Indicate that application is done with engine\r\n tlsEngine.closeOutbound();\r\n }", "@Override\n public void close() throws IOException {\n inputMessageStream.close();\n outputMessageStream.close();\n socket.close();\n }", "protected void end()\n\t{\n\t\tstop();\n\t}", "private void closeConnection(){\n report(\"Close connection\");\n try{\n if(socket != null && !socket.isClosed()) {\n report(\"Client: Close socket\");\n socket.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n report(\"End\");\n }", "public void close()\n {\n getConnectionManager().shutdown();\n }", "private void closeConnection() {\n\t\t\tSystem.out.println(\"\\nTerminating connection \" + myConID + \"\\n\");\n\t\t\ttry {\n\t\t\t\toutput.close(); // close output stream\n\t\t\t\tinput.close(); // close input stream\n\t\t\t\tconnection.close(); // close socket\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"Exception occured in closing connection\"\n\t\t\t\t\t\t+ ioException);\n\t\t\t}\n\t\t}", "void disconnect() throws TransportException;", "public void endMessage()\n\t{\n\t}", "@Override\n public void stop() {\n try {\n socket.close();\n } catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Now close the executor service.\n\n }", "@Override\n public void close() {\n this.destructorHandler.close();\n }", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "protected void end() {\n\t}", "public void endRecord() {\n if (recordHandler != null)\n recordHandler.record(record);\n }", "private void closeConnection() {\n\t\t_client.getConnectionManager().shutdown();\n\t}", "protected void end()\n\t{\n\t}", "protected abstract boolean end();", "private void closeConnection() {\r\n try {\r\n socket.close();\r\n } catch (IOException ex) {\r\n // Ex on close\r\n }\r\n }", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "public void exit() {\r\n\t\tsendReceiveSocket.close();\r\n\t}", "private void closeHandler(Void v) {\n LOG.info(\"Close from MQTT client {} at {}\", this.mqttEndpoint.clientIdentifier(), this.remoteAddress);\n close();\n }", "protected void end() {\n\r\n\t}", "protected void end() {\n \t\n \tlift.liftStop();\n }" ]
[ "0.6466068", "0.64284205", "0.63952297", "0.6227621", "0.6220465", "0.61671853", "0.6158467", "0.6141405", "0.6137196", "0.61263955", "0.6115011", "0.61080897", "0.6073702", "0.6071378", "0.6028089", "0.60279006", "0.60279006", "0.60279006", "0.60279006", "0.5996354", "0.5996084", "0.59834665", "0.5964529", "0.5957424", "0.59554917", "0.59546256", "0.5951921", "0.5951921", "0.5951921", "0.5951921", "0.59492147", "0.59473145", "0.59194595", "0.59126574", "0.59024334", "0.58989596", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.589126", "0.5879656", "0.58733654", "0.5855541", "0.58552724", "0.5846917", "0.58465075", "0.5845135", "0.5824214", "0.58237904", "0.58208233", "0.58105886", "0.5779433", "0.5773886", "0.5772857", "0.5772603", "0.5769566", "0.5766071", "0.5764935", "0.5764935", "0.5764935", "0.5764935", "0.5764935", "0.5764935", "0.57646185", "0.5763128", "0.57598275", "0.5752814", "0.5747019", "0.57408583", "0.57395244", "0.5734032", "0.5728991", "0.5722036" ]
0.6718854
0